2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.58.
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="bin/adv1tov2/adv1tov2.c"
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='PERL GREP PS 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 NETATALK_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS AFS_LIBS AFS_CFLAGS PKGCONFDIR NLSDIR SERVERTEXT COMPILE_CNID_TRUE COMPILE_CNID_FALSE BDB_CFLAGS BDB_LIBS BDB_BIN BDB_PATH QUOTA_LIBS SLP_LIBS SLP_CFLAGS PAMDIR PAM_CFLAGS PAM_LIBS UAMS_PATH SSL_CFLAGS SSL_LIBS AFPD_LIBS PAPD_LIBS OVERWRITE_CONFIG SOLARIS_MODULE_TRUE SOLARIS_MODULE_FALSE COMPILE_TIMELORD_TRUE COMPILE_TIMELORD_FALSE USE_DHX_TRUE USE_DHX_FALSE USE_KERBEROS_TRUE USE_KERBEROS_FALSE USE_PAM_SO_TRUE USE_PAM_SO_FALSE USE_PAM_TRUE USE_PAM_FALSE BUILD_PAM_TRUE BUILD_PAM_FALSE USE_PGP_TRUE USE_PGP_FALSE USE_COBALT_TRUE USE_COBALT_FALSE USE_NETBSD_TRUE USE_NETBSD_FALSE USE_REDHAT_TRUE USE_REDHAT_FALSE USE_SUSE_TRUE USE_SUSE_FALSE USE_SHADOWPW_TRUE USE_SHADOWPW_FALSE USE_TRU64_TRUE USE_TRU64_FALSE 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
--build=BUILD configure for building on BUILD [guessed]
1015
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1016
--target=TARGET configure for building compilers for TARGET [HOST]
1020
if test -n "$ac_init_help"; then
1025
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1027
--disable-dependency-tracking Speeds up one-time builds
1028
--enable-dependency-tracking Do not reject slow dependency extractors
1029
--enable-shared[=PKGS]
1030
build shared libraries [default=yes]
1031
--enable-static[=PKGS]
1032
build static libraries [default=yes]
1033
--enable-fast-install[=PKGS]
1034
optimize for fast installation [default=yes]
1035
--disable-libtool-lock avoid locking (might break parallel builds)
1036
--enable-afs enable AFS support
1037
--disable-ddp disable DDP
1038
--enable-debug enable debug code
1039
--enable-dropkludge enable the experimental dropbox fix (INSECURE!)
1040
--enable-force-uidgid allow forcing of uid/gid per volume (BROKEN)
1041
--enable-srvloc=DIR turn on Server Location Protocol support
1042
--disable-shell-check disable checking for a valid shell
1043
--enable-redhat use redhat-style sysv configuration
1044
--enable-suse use suse-style sysv configuration
1045
--enable-cobalt use cobalt-style sysv configuration
1046
--enable-netbsd use NetBSD-style rc.d configuration
1047
--enable-timelord enable compilation of timelord server
1048
--enable-fhs use Filesystem Hierarchy Standard (FHS) compatibility
1049
--enable-pgp-uam enable build of PGP UAM module
1050
--enable-krb4-uam enable build of Kerberos v4 UAM module
1051
--enable-overwrite overwrite configuration files during installation
1054
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1055
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1056
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1057
--with-pic try to use only PIC/non-PIC objects [default=use
1060
include additional configurations [automatic]
1061
--disable-admin-group disable admin group
1062
--with-pkgconfdir=DIR package specific configuration in DIR
1064
--with-nls-dir=PATH path to NLS files PKGCONF/nls
1065
--with-message-dir=PATH path to server message files PKGCONF/msg
1066
--with-logfile=PATH path for file used by logger /var/log/netatalk.log
1067
use --without-logfile to disable logger
1068
--with-cracklib=DICT enable/set location of cracklib dictionary
1069
--with-did=SCHEME set DID scheme (cnid,last)
1070
--with-mangling enable filename mangling
1071
--with-cdb enable CNID with Concurrent Data Store
1072
--with-bdb=PATH specify path to Berkeley DB installation
1073
--with-pam=PATH specify path to PAM installation
1074
--with-shadow enable shadow password support
1075
--with-tcp-wrappers enable TCP wrappers support
1076
--with-uams-path=PATH path to UAMs [PKGCONF/uams]
1077
--with-ssl-dir=PATH specify path to OpenSSL installation (must contain
1078
lib and include dirs)
1080
Some influential environment variables:
1081
CC C compiler command
1082
CFLAGS C compiler flags
1083
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1084
nonstandard directory <lib dir>
1085
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1086
headers in a nonstandard directory <include dir>
1088
CXX C++ compiler command
1089
CXXFLAGS C++ compiler flags
1090
CXXCPP C++ preprocessor
1091
F77 Fortran 77 compiler command
1092
FFLAGS Fortran 77 compiler flags
1094
Use these variables to override the choices made by `configure' or to help
1095
it to find libraries and programs with nonstandard names/locations.
1100
if test "$ac_init_help" = "recursive"; then
1101
# If there are subdirs, report their specific --help.
1103
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1104
test -d $ac_dir || continue
1107
if test "$ac_dir" != .; then
1108
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1109
# A "../" for each directory in $ac_dir_suffix.
1110
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1112
ac_dir_suffix= ac_top_builddir=
1116
.) # No --srcdir option. We are building in place.
1118
if test -z "$ac_top_builddir"; then
1121
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1123
[\\/]* | ?:[\\/]* ) # Absolute path.
1124
ac_srcdir=$srcdir$ac_dir_suffix;
1125
ac_top_srcdir=$srcdir ;;
1127
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1128
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1131
# Do not use `cd foo && pwd` to compute absolute paths, because
1132
# the directories may not exist.
1134
.) ac_abs_builddir="$ac_dir";;
1137
.) ac_abs_builddir=`pwd`;;
1138
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1139
*) ac_abs_builddir=`pwd`/"$ac_dir";;
1142
case $ac_abs_builddir in
1143
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1145
case ${ac_top_builddir}. in
1146
.) ac_abs_top_builddir=$ac_abs_builddir;;
1147
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1148
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1151
case $ac_abs_builddir in
1152
.) ac_abs_srcdir=$ac_srcdir;;
1155
.) ac_abs_srcdir=$ac_abs_builddir;;
1156
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1157
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1160
case $ac_abs_builddir in
1161
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1163
case $ac_top_srcdir in
1164
.) ac_abs_top_srcdir=$ac_abs_builddir;;
1165
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1166
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1171
# Check for guested configure; otherwise get Cygnus style configure.
1172
if test -f $ac_srcdir/configure.gnu; then
1174
$SHELL $ac_srcdir/configure.gnu --help=recursive
1175
elif test -f $ac_srcdir/configure; then
1177
$SHELL $ac_srcdir/configure --help=recursive
1178
elif test -f $ac_srcdir/configure.ac ||
1179
test -f $ac_srcdir/configure.in; then
1181
$ac_configure --help
1183
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1189
test -n "$ac_init_help" && exit 0
1190
if $ac_init_version; then
1193
Copyright (C) 2003 Free Software Foundation, Inc.
1194
This configure script is free software; the Free Software Foundation
1195
gives unlimited permission to copy, distribute and modify it.
1201
This file contains any messages produced by compilers while
1202
running configure, to aid debugging if configure makes a mistake.
1204
It was created by $as_me, which was
1205
generated by GNU Autoconf 2.58. Invocation command line was
1216
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1217
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1218
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1219
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1220
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1222
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1223
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1225
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1226
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1227
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1228
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1229
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1230
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1231
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1239
test -z "$as_dir" && as_dir=.
1240
echo "PATH: $as_dir"
1255
# Keep a trace of the command line.
1256
# Strip out --no-create and --no-recursion so they do not pile up.
1257
# Strip out --silent because we don't want to record it for future runs.
1258
# Also quote any args containing shell meta-characters.
1259
# Make two passes to allow for proper duplicate-argument suppression.
1264
ac_must_keep_next=false
1270
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1271
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1272
| -silent | --silent | --silen | --sile | --sil)
1274
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1275
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1278
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1280
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1281
if test $ac_must_keep_next = true; then
1282
ac_must_keep_next=false # Got value, back to normal.
1285
*=* | --config-cache | -C | -disable-* | --disable-* \
1286
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1287
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1288
| -with-* | --with-* | -without-* | --without-* | --x)
1289
case "$ac_configure_args0 " in
1290
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1293
-* ) ac_must_keep_next=true ;;
1296
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1297
# Get rid of the leading space.
1303
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1304
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1306
# When interrupted or exit'd, cleanup temporary files, and complete
1307
# config.log. We remove comments because anyway the quotes in there
1308
# would cause problems or look ugly.
1309
# WARNING: Be sure not to use single quotes in there, as some shells,
1310
# such as our DU 5.0 friend, will then `close' the trap.
1311
trap 'exit_status=$?
1312
# Save into config.log some information that might help in debugging.
1317
## ---------------- ##
1318
## Cache variables. ##
1319
## ---------------- ##
1322
# The following way of writing the cache mishandles newlines in values,
1325
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1328
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1329
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1333
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1340
## ----------------- ##
1341
## Output variables. ##
1342
## ----------------- ##
1345
for ac_var in $ac_subst_vars
1347
eval ac_val=$`echo $ac_var`
1348
echo "$ac_var='"'"'$ac_val'"'"'"
1352
if test -n "$ac_subst_files"; then
1359
for ac_var in $ac_subst_files
1361
eval ac_val=$`echo $ac_var`
1362
echo "$ac_var='"'"'$ac_val'"'"'"
1367
if test -s confdefs.h; then
1374
sed "/^$/d" confdefs.h | sort
1377
test "$ac_signal" != 0 &&
1378
echo "$as_me: caught signal $ac_signal"
1379
echo "$as_me: exit $exit_status"
1381
rm -f core *.core &&
1382
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1385
for ac_signal in 1 2 13 15; do
1386
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1390
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1391
rm -rf conftest* confdefs.h
1392
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1395
# Predefined preprocessor variables.
1397
cat >>confdefs.h <<_ACEOF
1398
#define PACKAGE_NAME "$PACKAGE_NAME"
1402
cat >>confdefs.h <<_ACEOF
1403
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1407
cat >>confdefs.h <<_ACEOF
1408
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1412
cat >>confdefs.h <<_ACEOF
1413
#define PACKAGE_STRING "$PACKAGE_STRING"
1417
cat >>confdefs.h <<_ACEOF
1418
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1422
# Let the site file select an alternate cache file if it wants to.
1423
# Prefer explicitly selected file to automatically selected ones.
1424
if test -z "$CONFIG_SITE"; then
1425
if test "x$prefix" != xNONE; then
1426
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1428
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1431
for ac_site_file in $CONFIG_SITE; do
1432
if test -r "$ac_site_file"; then
1433
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1434
echo "$as_me: loading site script $ac_site_file" >&6;}
1435
sed 's/^/| /' "$ac_site_file" >&5
1440
if test -r "$cache_file"; then
1441
# Some versions of bash will fail to source /dev/null (special
1442
# files actually), so we avoid doing that.
1443
if test -f "$cache_file"; then
1444
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1445
echo "$as_me: loading cache $cache_file" >&6;}
1447
[\\/]* | ?:[\\/]* ) . $cache_file;;
1448
*) . ./$cache_file;;
1452
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1453
echo "$as_me: creating cache $cache_file" >&6;}
1457
# Check that the precious variables saved in the cache have kept the same
1459
ac_cache_corrupted=false
1460
for ac_var in `(set) 2>&1 |
1461
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1462
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1463
eval ac_new_set=\$ac_env_${ac_var}_set
1464
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1465
eval ac_new_val="\$ac_env_${ac_var}_value"
1466
case $ac_old_set,$ac_new_set in
1468
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1469
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1470
ac_cache_corrupted=: ;;
1472
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1473
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1474
ac_cache_corrupted=: ;;
1477
if test "x$ac_old_val" != "x$ac_new_val"; then
1478
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1479
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1480
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1481
echo "$as_me: former value: $ac_old_val" >&2;}
1482
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1483
echo "$as_me: current value: $ac_new_val" >&2;}
1484
ac_cache_corrupted=:
1487
# Pass precious variables to config.status.
1488
if test "$ac_new_set" = set; then
1490
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1491
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1492
*) ac_arg=$ac_var=$ac_new_val ;;
1494
case " $ac_configure_args " in
1495
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1496
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1500
if $ac_cache_corrupted; then
1501
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1502
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1503
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1504
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1505
{ (exit 1); exit 1; }; }
1509
ac_cpp='$CPP $CPPFLAGS'
1510
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1511
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1512
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1533
NETATALK_VERSION=`cat $srcdir/VERSION`
1537
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1538
if test -f $ac_dir/install-sh; then
1540
ac_install_sh="$ac_aux_dir/install-sh -c"
1542
elif test -f $ac_dir/install.sh; then
1544
ac_install_sh="$ac_aux_dir/install.sh -c"
1546
elif test -f $ac_dir/shtool; then
1548
ac_install_sh="$ac_aux_dir/shtool install -c"
1552
if test -z "$ac_aux_dir"; then
1553
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1554
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1555
{ (exit 1); exit 1; }; }
1557
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561
# Make sure we can run config.sub.
1562
$ac_config_sub sun4 >/dev/null 2>&1 ||
1563
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1564
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1565
{ (exit 1); exit 1; }; }
1567
echo "$as_me:$LINENO: checking build system type" >&5
1568
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1569
if test "${ac_cv_build+set}" = set; then
1570
echo $ECHO_N "(cached) $ECHO_C" >&6
1572
ac_cv_build_alias=$build_alias
1573
test -z "$ac_cv_build_alias" &&
1574
ac_cv_build_alias=`$ac_config_guess`
1575
test -z "$ac_cv_build_alias" &&
1576
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1577
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1578
{ (exit 1); exit 1; }; }
1579
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1580
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1581
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1582
{ (exit 1); exit 1; }; }
1585
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1586
echo "${ECHO_T}$ac_cv_build" >&6
1588
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
echo "$as_me:$LINENO: checking host system type" >&5
1594
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1595
if test "${ac_cv_host+set}" = set; then
1596
echo $ECHO_N "(cached) $ECHO_C" >&6
1598
ac_cv_host_alias=$host_alias
1599
test -z "$ac_cv_host_alias" &&
1600
ac_cv_host_alias=$ac_cv_build_alias
1601
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1602
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1603
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1604
{ (exit 1); exit 1; }; }
1607
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1608
echo "${ECHO_T}$ac_cv_host" >&6
1610
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1611
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1612
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615
echo "$as_me:$LINENO: checking target system type" >&5
1616
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1617
if test "${ac_cv_target+set}" = set; then
1618
echo $ECHO_N "(cached) $ECHO_C" >&6
1620
ac_cv_target_alias=$target_alias
1621
test "x$ac_cv_target_alias" = "x" &&
1622
ac_cv_target_alias=$ac_cv_host_alias
1623
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1624
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1625
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1626
{ (exit 1); exit 1; }; }
1629
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1630
echo "${ECHO_T}$ac_cv_target" >&6
1631
target=$ac_cv_target
1632
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637
# The aliases save the names the user supplied, while $host etc.
1638
# will get canonicalized.
1639
test -n "$target_alias" &&
1640
test "$program_prefix$program_suffix$program_transform_name" = \
1642
program_prefix=${target_alias}-
1643
am__api_version="1.7"
1644
# Find a good install program. We prefer a C program (faster),
1645
# so one script is as good as another. But avoid the broken or
1646
# incompatible versions:
1647
# SysV /etc/install, /usr/sbin/install
1648
# SunOS /usr/etc/install
1649
# IRIX /sbin/install
1651
# AmigaOS /C/install, which installs bootblocks on floppy discs
1652
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1653
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1654
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1655
# OS/2's system install, which has a completely different semantic
1656
# ./install, which can be erroneously created by make from ./install.sh.
1657
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1658
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1659
if test -z "$INSTALL"; then
1660
if test "${ac_cv_path_install+set}" = set; then
1661
echo $ECHO_N "(cached) $ECHO_C" >&6
1663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667
test -z "$as_dir" && as_dir=.
1668
# Account for people who put trailing slashes in PATH elements.
1670
./ | .// | /cC/* | \
1671
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1672
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1675
# OSF1 and SCO ODT 3.0 have their own names for install.
1676
# Don't use installbsd from OSF since it installs stuff as root
1678
for ac_prog in ginstall scoinst install; do
1679
for ac_exec_ext in '' $ac_executable_extensions; do
1680
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1681
if test $ac_prog = install &&
1682
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1683
# AIX install. It has an incompatible calling convention.
1685
elif test $ac_prog = install &&
1686
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1687
# program-specific install script used by HP pwplus--don't use.
1690
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1702
if test "${ac_cv_path_install+set}" = set; then
1703
INSTALL=$ac_cv_path_install
1705
# As a last resort, use the slow shell script. We don't cache a
1706
# path for INSTALL within a source directory, because that will
1707
# break other packages using the cache if that directory is
1708
# removed, or if the path is relative.
1709
INSTALL=$ac_install_sh
1712
echo "$as_me:$LINENO: result: $INSTALL" >&5
1713
echo "${ECHO_T}$INSTALL" >&6
1715
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1716
# It thinks the first close brace ends the variable substitution.
1717
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1719
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1721
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1723
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1724
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1727
echo timestamp > conftest.file
1728
# Do `set' in a subshell so we don't clobber the current shell's
1729
# arguments. Must try -L first in case configure is actually a
1730
# symlink; some systems play weird games with the mod time of symlinks
1731
# (eg FreeBSD returns the mod time of the symlink's containing
1734
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1735
if test "$*" = "X"; then
1737
set X `ls -t $srcdir/configure conftest.file`
1740
if test "$*" != "X $srcdir/configure conftest.file" \
1741
&& test "$*" != "X conftest.file $srcdir/configure"; then
1743
# If neither matched, then we have a broken ls. This can happen
1744
# if, for instance, CONFIG_SHELL is bash and it inherits a
1745
# broken ls alias from the environment. This has actually
1746
# happened. Such a system could not be considered "sane".
1747
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1748
alias in your environment" >&5
1749
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1750
alias in your environment" >&2;}
1751
{ (exit 1); exit 1; }; }
1754
test "$2" = conftest.file
1760
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1761
Check your system clock" >&5
1762
echo "$as_me: error: newly created file is older than distributed files!
1763
Check your system clock" >&2;}
1764
{ (exit 1); exit 1; }; }
1766
echo "$as_me:$LINENO: result: yes" >&5
1767
echo "${ECHO_T}yes" >&6
1768
test "$program_prefix" != NONE &&
1769
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1770
# Use a double $ so make ignores it.
1771
test "$program_suffix" != NONE &&
1772
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1773
# Double any \ or $. echo might interpret backslashes.
1774
# By default was `s,x,x', remove it if useless.
1775
cat <<\_ACEOF >conftest.sed
1776
s/[\\$]/&&/g;s/;s,x,x,$//
1778
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1782
# expand $ac_aux_dir to an absolute path
1783
am_aux_dir=`cd $ac_aux_dir && pwd`
1785
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1786
# Use eval to expand $SHELL
1787
if eval "$MISSING --run true"; then
1788
am_missing_run="$MISSING --run "
1791
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1792
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1795
for ac_prog in gawk mawk nawk awk
1797
# Extract the first word of "$ac_prog", so it can be a program name with args.
1798
set dummy $ac_prog; ac_word=$2
1799
echo "$as_me:$LINENO: checking for $ac_word" >&5
1800
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801
if test "${ac_cv_prog_AWK+set}" = set; then
1802
echo $ECHO_N "(cached) $ECHO_C" >&6
1804
if test -n "$AWK"; then
1805
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1807
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1811
test -z "$as_dir" && as_dir=.
1812
for ac_exec_ext in '' $ac_executable_extensions; do
1813
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814
ac_cv_prog_AWK="$ac_prog"
1815
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824
if test -n "$AWK"; then
1825
echo "$as_me:$LINENO: result: $AWK" >&5
1826
echo "${ECHO_T}$AWK" >&6
1828
echo "$as_me:$LINENO: result: no" >&5
1829
echo "${ECHO_T}no" >&6
1832
test -n "$AWK" && break
1835
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1836
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1837
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1838
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1839
echo $ECHO_N "(cached) $ECHO_C" >&6
1841
cat >conftest.make <<\_ACEOF
1843
@echo 'ac_maketemp="$(MAKE)"'
1845
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1846
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1847
if test -n "$ac_maketemp"; then
1848
eval ac_cv_prog_make_${ac_make}_set=yes
1850
eval ac_cv_prog_make_${ac_make}_set=no
1854
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1855
echo "$as_me:$LINENO: result: yes" >&5
1856
echo "${ECHO_T}yes" >&6
1859
echo "$as_me:$LINENO: result: no" >&5
1860
echo "${ECHO_T}no" >&6
1861
SET_MAKE="MAKE=${MAKE-make}"
1864
rm -rf .tst 2>/dev/null
1865
mkdir .tst 2>/dev/null
1866
if test -d .tst; then
1871
rmdir .tst 2>/dev/null
1873
# test to see if srcdir already configured
1874
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1875
test -f $srcdir/config.status; then
1876
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1877
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1878
{ (exit 1); exit 1; }; }
1881
# test whether we have cygpath
1882
if test -z "$CYGPATH_W"; then
1883
if (cygpath --version) >/dev/null 2>/dev/null; then
1884
CYGPATH_W='cygpath -w'
1891
# Define the identity of the package.
1893
VERSION=${NETATALK_VERSION}
1896
cat >>confdefs.h <<_ACEOF
1897
#define PACKAGE "$PACKAGE"
1901
cat >>confdefs.h <<_ACEOF
1902
#define VERSION "$VERSION"
1905
# Some tools Automake needs.
1907
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1910
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1913
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1916
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1919
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1922
AMTAR=${AMTAR-"${am_missing_run}tar"}
1924
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1926
# Installed binaries are usually stripped using `strip' when the user
1927
# run `make install-strip'. However `strip' might not be the right
1928
# tool to use in cross-compilation environments, therefore Automake
1929
# will honor the `STRIP' environment variable to overrule this program.
1930
if test "$cross_compiling" != no; then
1931
if test -n "$ac_tool_prefix"; then
1932
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1933
set dummy ${ac_tool_prefix}strip; ac_word=$2
1934
echo "$as_me:$LINENO: checking for $ac_word" >&5
1935
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936
if test "${ac_cv_prog_STRIP+set}" = set; then
1937
echo $ECHO_N "(cached) $ECHO_C" >&6
1939
if test -n "$STRIP"; then
1940
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946
test -z "$as_dir" && as_dir=.
1947
for ac_exec_ext in '' $ac_executable_extensions; do
1948
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1950
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1958
STRIP=$ac_cv_prog_STRIP
1959
if test -n "$STRIP"; then
1960
echo "$as_me:$LINENO: result: $STRIP" >&5
1961
echo "${ECHO_T}$STRIP" >&6
1963
echo "$as_me:$LINENO: result: no" >&5
1964
echo "${ECHO_T}no" >&6
1968
if test -z "$ac_cv_prog_STRIP"; then
1970
# Extract the first word of "strip", so it can be a program name with args.
1971
set dummy strip; ac_word=$2
1972
echo "$as_me:$LINENO: checking for $ac_word" >&5
1973
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1975
echo $ECHO_N "(cached) $ECHO_C" >&6
1977
if test -n "$ac_ct_STRIP"; then
1978
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1984
test -z "$as_dir" && as_dir=.
1985
for ac_exec_ext in '' $ac_executable_extensions; do
1986
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987
ac_cv_prog_ac_ct_STRIP="strip"
1988
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1994
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1997
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1998
if test -n "$ac_ct_STRIP"; then
1999
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2000
echo "${ECHO_T}$ac_ct_STRIP" >&6
2002
echo "$as_me:$LINENO: result: no" >&5
2003
echo "${ECHO_T}no" >&6
2008
STRIP="$ac_cv_prog_STRIP"
2012
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2014
# We need awk for the "check" target. The system "awk" is bad on
2019
ac_config_headers="$ac_config_headers config.h"
2022
for ac_prog in gawk mawk nawk awk
2024
# Extract the first word of "$ac_prog", so it can be a program name with args.
2025
set dummy $ac_prog; ac_word=$2
2026
echo "$as_me:$LINENO: checking for $ac_word" >&5
2027
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028
if test "${ac_cv_prog_AWK+set}" = set; then
2029
echo $ECHO_N "(cached) $ECHO_C" >&6
2031
if test -n "$AWK"; then
2032
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038
test -z "$as_dir" && as_dir=.
2039
for ac_exec_ext in '' $ac_executable_extensions; do
2040
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041
ac_cv_prog_AWK="$ac_prog"
2042
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051
if test -n "$AWK"; then
2052
echo "$as_me:$LINENO: result: $AWK" >&5
2053
echo "${ECHO_T}$AWK" >&6
2055
echo "$as_me:$LINENO: result: no" >&5
2056
echo "${ECHO_T}no" >&6
2059
test -n "$AWK" && break
2063
ac_cpp='$CPP $CPPFLAGS'
2064
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067
if test -n "$ac_tool_prefix"; then
2068
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2069
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2070
echo "$as_me:$LINENO: checking for $ac_word" >&5
2071
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072
if test "${ac_cv_prog_CC+set}" = set; then
2073
echo $ECHO_N "(cached) $ECHO_C" >&6
2075
if test -n "$CC"; then
2076
ac_cv_prog_CC="$CC" # Let the user override the test.
2078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082
test -z "$as_dir" && as_dir=.
2083
for ac_exec_ext in '' $ac_executable_extensions; do
2084
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2086
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2095
if test -n "$CC"; then
2096
echo "$as_me:$LINENO: result: $CC" >&5
2097
echo "${ECHO_T}$CC" >&6
2099
echo "$as_me:$LINENO: result: no" >&5
2100
echo "${ECHO_T}no" >&6
2104
if test -z "$ac_cv_prog_CC"; then
2106
# Extract the first word of "gcc", so it can be a program name with args.
2107
set dummy gcc; ac_word=$2
2108
echo "$as_me:$LINENO: checking for $ac_word" >&5
2109
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111
echo $ECHO_N "(cached) $ECHO_C" >&6
2113
if test -n "$ac_ct_CC"; then
2114
ac_cv_prog_ac_ct_CC="$ac_ct_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
ac_cv_prog_ac_ct_CC="gcc"
2124
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2133
if test -n "$ac_ct_CC"; then
2134
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135
echo "${ECHO_T}$ac_ct_CC" >&6
2137
echo "$as_me:$LINENO: result: no" >&5
2138
echo "${ECHO_T}no" >&6
2146
if test -z "$CC"; then
2147
if test -n "$ac_tool_prefix"; then
2148
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2149
set dummy ${ac_tool_prefix}cc; ac_word=$2
2150
echo "$as_me:$LINENO: checking for $ac_word" >&5
2151
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152
if test "${ac_cv_prog_CC+set}" = set; then
2153
echo $ECHO_N "(cached) $ECHO_C" >&6
2155
if test -n "$CC"; then
2156
ac_cv_prog_CC="$CC" # Let the user override the test.
2158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162
test -z "$as_dir" && as_dir=.
2163
for ac_exec_ext in '' $ac_executable_extensions; do
2164
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165
ac_cv_prog_CC="${ac_tool_prefix}cc"
2166
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175
if test -n "$CC"; then
2176
echo "$as_me:$LINENO: result: $CC" >&5
2177
echo "${ECHO_T}$CC" >&6
2179
echo "$as_me:$LINENO: result: no" >&5
2180
echo "${ECHO_T}no" >&6
2184
if test -z "$ac_cv_prog_CC"; then
2186
# Extract the first word of "cc", so it can be a program name with args.
2187
set dummy cc; ac_word=$2
2188
echo "$as_me:$LINENO: checking for $ac_word" >&5
2189
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191
echo $ECHO_N "(cached) $ECHO_C" >&6
2193
if test -n "$ac_ct_CC"; then
2194
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200
test -z "$as_dir" && as_dir=.
2201
for ac_exec_ext in '' $ac_executable_extensions; do
2202
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203
ac_cv_prog_ac_ct_CC="cc"
2204
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213
if test -n "$ac_ct_CC"; then
2214
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2215
echo "${ECHO_T}$ac_ct_CC" >&6
2217
echo "$as_me:$LINENO: result: no" >&5
2218
echo "${ECHO_T}no" >&6
2227
if test -z "$CC"; then
2228
# Extract the first word of "cc", so it can be a program name with args.
2229
set dummy cc; ac_word=$2
2230
echo "$as_me:$LINENO: checking for $ac_word" >&5
2231
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2232
if test "${ac_cv_prog_CC+set}" = set; then
2233
echo $ECHO_N "(cached) $ECHO_C" >&6
2235
if test -n "$CC"; then
2236
ac_cv_prog_CC="$CC" # Let the user override the test.
2239
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243
test -z "$as_dir" && as_dir=.
2244
for ac_exec_ext in '' $ac_executable_extensions; do
2245
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2247
ac_prog_rejected=yes
2251
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257
if test $ac_prog_rejected = yes; then
2258
# We found a bogon in the path, so make sure we never use it.
2259
set dummy $ac_cv_prog_CC
2261
if test $# != 0; then
2262
# We chose a different compiler from the bogus one.
2263
# However, it has the same basename, so the bogon will be chosen
2264
# first if we set CC to just the basename; use the full file name.
2266
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2272
if test -n "$CC"; then
2273
echo "$as_me:$LINENO: result: $CC" >&5
2274
echo "${ECHO_T}$CC" >&6
2276
echo "$as_me:$LINENO: result: no" >&5
2277
echo "${ECHO_T}no" >&6
2281
if test -z "$CC"; then
2282
if test -n "$ac_tool_prefix"; then
2285
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2286
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2287
echo "$as_me:$LINENO: checking for $ac_word" >&5
2288
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2289
if test "${ac_cv_prog_CC+set}" = set; then
2290
echo $ECHO_N "(cached) $ECHO_C" >&6
2292
if test -n "$CC"; then
2293
ac_cv_prog_CC="$CC" # Let the user override the test.
2295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299
test -z "$as_dir" && as_dir=.
2300
for ac_exec_ext in '' $ac_executable_extensions; do
2301
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2302
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2303
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312
if test -n "$CC"; then
2313
echo "$as_me:$LINENO: result: $CC" >&5
2314
echo "${ECHO_T}$CC" >&6
2316
echo "$as_me:$LINENO: result: no" >&5
2317
echo "${ECHO_T}no" >&6
2320
test -n "$CC" && break
2323
if test -z "$CC"; then
2327
# Extract the first word of "$ac_prog", so it can be a program name with args.
2328
set dummy $ac_prog; ac_word=$2
2329
echo "$as_me:$LINENO: checking for $ac_word" >&5
2330
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2331
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2332
echo $ECHO_N "(cached) $ECHO_C" >&6
2334
if test -n "$ac_ct_CC"; then
2335
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341
test -z "$as_dir" && as_dir=.
2342
for ac_exec_ext in '' $ac_executable_extensions; do
2343
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344
ac_cv_prog_ac_ct_CC="$ac_prog"
2345
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2354
if test -n "$ac_ct_CC"; then
2355
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2356
echo "${ECHO_T}$ac_ct_CC" >&6
2358
echo "$as_me:$LINENO: result: no" >&5
2359
echo "${ECHO_T}no" >&6
2362
test -n "$ac_ct_CC" && break
2371
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2372
See \`config.log' for more details." >&5
2373
echo "$as_me: error: no acceptable C compiler found in \$PATH
2374
See \`config.log' for more details." >&2;}
2375
{ (exit 1); exit 1; }; }
2377
# Provide some information about the compiler.
2378
echo "$as_me:$LINENO:" \
2379
"checking for C compiler version" >&5
2380
ac_compiler=`set X $ac_compile; echo $2`
2381
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2382
(eval $ac_compiler --version </dev/null >&5) 2>&5
2384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385
(exit $ac_status); }
2386
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2387
(eval $ac_compiler -v </dev/null >&5) 2>&5
2389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390
(exit $ac_status); }
2391
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2392
(eval $ac_compiler -V </dev/null >&5) 2>&5
2394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395
(exit $ac_status); }
2397
cat >conftest.$ac_ext <<_ACEOF
2400
cat confdefs.h >>conftest.$ac_ext
2401
cat >>conftest.$ac_ext <<_ACEOF
2402
/* end confdefs.h. */
2412
ac_clean_files_save=$ac_clean_files
2413
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2414
# Try to create an executable without -o first, disregard a.out.
2415
# It will help us diagnose broken compilers, and finding out an intuition
2417
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2418
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2419
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2420
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2421
(eval $ac_link_default) 2>&5
2423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424
(exit $ac_status); }; then
2425
# Find the output, starting from the most likely. This scheme is
2426
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2429
# Be careful to initialize this variable, since it used to be cached.
2430
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2432
# b.out is created by i960 compilers.
2433
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2435
test -f "$ac_file" || continue
2437
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2440
# This is the source file.
2443
# We found the default executable, but exeext='' is most
2447
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2448
# FIXME: I believe we export ac_cv_exeext for Libtool,
2449
# but it would be cool to find out if it's true. Does anybody
2450
# maintain Libtool? --akim.
2458
echo "$as_me: failed program was:" >&5
2459
sed 's/^/| /' conftest.$ac_ext >&5
2461
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2462
See \`config.log' for more details." >&5
2463
echo "$as_me: error: C compiler cannot create executables
2464
See \`config.log' for more details." >&2;}
2465
{ (exit 77); exit 77; }; }
2468
ac_exeext=$ac_cv_exeext
2469
echo "$as_me:$LINENO: result: $ac_file" >&5
2470
echo "${ECHO_T}$ac_file" >&6
2472
# Check the compiler produces executables we can run. If not, either
2473
# the compiler is broken, or we cross compile.
2474
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2475
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2476
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2477
# If not cross compiling, check that we can run a simple program.
2478
if test "$cross_compiling" != yes; then
2479
if { ac_try='./$ac_file'
2480
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484
(exit $ac_status); }; }; then
2487
if test "$cross_compiling" = maybe; then
2490
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2491
If you meant to cross compile, use \`--host'.
2492
See \`config.log' for more details." >&5
2493
echo "$as_me: error: cannot run C compiled programs.
2494
If you meant to cross compile, use \`--host'.
2495
See \`config.log' for more details." >&2;}
2496
{ (exit 1); exit 1; }; }
2500
echo "$as_me:$LINENO: result: yes" >&5
2501
echo "${ECHO_T}yes" >&6
2503
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2504
ac_clean_files=$ac_clean_files_save
2505
# Check the compiler produces executables we can run. If not, either
2506
# the compiler is broken, or we cross compile.
2507
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2508
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2509
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2510
echo "${ECHO_T}$cross_compiling" >&6
2512
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2513
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2514
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2515
(eval $ac_link) 2>&5
2517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518
(exit $ac_status); }; then
2519
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2520
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2521
# work properly (i.e., refer to `conftest.exe'), while it won't with
2523
for ac_file in conftest.exe conftest conftest.*; do
2524
test -f "$ac_file" || continue
2526
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2527
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2534
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2535
See \`config.log' for more details." >&5
2536
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2537
See \`config.log' for more details." >&2;}
2538
{ (exit 1); exit 1; }; }
2541
rm -f conftest$ac_cv_exeext
2542
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2543
echo "${ECHO_T}$ac_cv_exeext" >&6
2545
rm -f conftest.$ac_ext
2546
EXEEXT=$ac_cv_exeext
2548
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2549
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2550
if test "${ac_cv_objext+set}" = set; then
2551
echo $ECHO_N "(cached) $ECHO_C" >&6
2553
cat >conftest.$ac_ext <<_ACEOF
2556
cat confdefs.h >>conftest.$ac_ext
2557
cat >>conftest.$ac_ext <<_ACEOF
2558
/* end confdefs.h. */
2568
rm -f conftest.o conftest.obj
2569
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570
(eval $ac_compile) 2>&5
2572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573
(exit $ac_status); }; then
2574
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2576
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2577
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2582
echo "$as_me: failed program was:" >&5
2583
sed 's/^/| /' conftest.$ac_ext >&5
2585
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2586
See \`config.log' for more details." >&5
2587
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2588
See \`config.log' for more details." >&2;}
2589
{ (exit 1); exit 1; }; }
2592
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2594
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2595
echo "${ECHO_T}$ac_cv_objext" >&6
2596
OBJEXT=$ac_cv_objext
2598
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2599
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2600
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2601
echo $ECHO_N "(cached) $ECHO_C" >&6
2603
cat >conftest.$ac_ext <<_ACEOF
2606
cat confdefs.h >>conftest.$ac_ext
2607
cat >>conftest.$ac_ext <<_ACEOF
2608
/* end confdefs.h. */
2621
rm -f conftest.$ac_objext
2622
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623
(eval $ac_compile) 2>conftest.er1
2625
grep -v '^ *+' conftest.er1 >conftest.err
2627
cat conftest.err >&5
2628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629
(exit $ac_status); } &&
2630
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2631
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635
(exit $ac_status); }; } &&
2636
{ ac_try='test -s conftest.$ac_objext'
2637
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641
(exit $ac_status); }; }; then
2644
echo "$as_me: failed program was:" >&5
2645
sed 's/^/| /' conftest.$ac_ext >&5
2649
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2650
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2653
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2654
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2655
GCC=`test $ac_compiler_gnu = yes && echo yes`
2656
ac_test_CFLAGS=${CFLAGS+set}
2657
ac_save_CFLAGS=$CFLAGS
2659
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2660
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2661
if test "${ac_cv_prog_cc_g+set}" = set; then
2662
echo $ECHO_N "(cached) $ECHO_C" >&6
2664
cat >conftest.$ac_ext <<_ACEOF
2667
cat confdefs.h >>conftest.$ac_ext
2668
cat >>conftest.$ac_ext <<_ACEOF
2669
/* end confdefs.h. */
2679
rm -f conftest.$ac_objext
2680
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2681
(eval $ac_compile) 2>conftest.er1
2683
grep -v '^ *+' conftest.er1 >conftest.err
2685
cat conftest.err >&5
2686
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687
(exit $ac_status); } &&
2688
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2689
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693
(exit $ac_status); }; } &&
2694
{ ac_try='test -s conftest.$ac_objext'
2695
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699
(exit $ac_status); }; }; then
2702
echo "$as_me: failed program was:" >&5
2703
sed 's/^/| /' conftest.$ac_ext >&5
2707
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2709
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2710
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2711
if test "$ac_test_CFLAGS" = set; then
2712
CFLAGS=$ac_save_CFLAGS
2713
elif test $ac_cv_prog_cc_g = yes; then
2714
if test "$GCC" = yes; then
2720
if test "$GCC" = yes; then
2726
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2727
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2728
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2729
echo $ECHO_N "(cached) $ECHO_C" >&6
2731
ac_cv_prog_cc_stdc=no
2733
cat >conftest.$ac_ext <<_ACEOF
2736
cat confdefs.h >>conftest.$ac_ext
2737
cat >>conftest.$ac_ext <<_ACEOF
2738
/* end confdefs.h. */
2741
#include <sys/types.h>
2742
#include <sys/stat.h>
2743
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2744
struct buf { int x; };
2745
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2746
static char *e (p, i)
2752
static char *f (char * (*g) (char **, int), char **p, ...)
2757
s = g (p, va_arg (v,int));
2762
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2763
function prototypes and stuff, but not '\xHH' hex character constants.
2764
These don't provoke an error unfortunately, instead are silently treated
2765
as 'x'. The following induces an error, until -std1 is added to get
2766
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2767
array size at least. It's necessary to write '\x00'==0 to get something
2768
that's true only with -std1. */
2769
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2771
int test (int i, double x);
2772
struct s1 {int (*f) (int a);};
2773
struct s2 {int (*f) (double a);};
2774
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2780
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2785
# Don't try gcc -ansi; that turns off useful extensions and
2786
# breaks some systems' header files.
2787
# AIX -qlanglvl=ansi
2788
# Ultrix and OSF/1 -std1
2789
# HP-UX 10.20 and later -Ae
2790
# HP-UX older versions -Aa -D_HPUX_SOURCE
2791
# SVR4 -Xc -D__EXTENSIONS__
2792
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2794
CC="$ac_save_CC $ac_arg"
2795
rm -f conftest.$ac_objext
2796
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2797
(eval $ac_compile) 2>conftest.er1
2799
grep -v '^ *+' conftest.er1 >conftest.err
2801
cat conftest.err >&5
2802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803
(exit $ac_status); } &&
2804
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2805
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
(exit $ac_status); }; } &&
2810
{ ac_try='test -s conftest.$ac_objext'
2811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815
(exit $ac_status); }; }; then
2816
ac_cv_prog_cc_stdc=$ac_arg
2819
echo "$as_me: failed program was:" >&5
2820
sed 's/^/| /' conftest.$ac_ext >&5
2823
rm -f conftest.err conftest.$ac_objext
2825
rm -f conftest.$ac_ext conftest.$ac_objext
2830
case "x$ac_cv_prog_cc_stdc" in
2832
echo "$as_me:$LINENO: result: none needed" >&5
2833
echo "${ECHO_T}none needed" >&6 ;;
2835
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2836
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2837
CC="$CC $ac_cv_prog_cc_stdc" ;;
2840
# Some people use a C++ compiler to compile C. Since we use `exit',
2841
# in C++ we need to declare it. In case someone uses the same compiler
2842
# for both compiling C and C++ we need to have the C++ compiler decide
2843
# the declaration of exit, since it's the most demanding environment.
2844
cat >conftest.$ac_ext <<_ACEOF
2849
rm -f conftest.$ac_objext
2850
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2851
(eval $ac_compile) 2>conftest.er1
2853
grep -v '^ *+' conftest.er1 >conftest.err
2855
cat conftest.err >&5
2856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857
(exit $ac_status); } &&
2858
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2859
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863
(exit $ac_status); }; } &&
2864
{ ac_try='test -s conftest.$ac_objext'
2865
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869
(exit $ac_status); }; }; then
2870
for ac_declaration in \
2872
'extern "C" void std::exit (int) throw (); using std::exit;' \
2873
'extern "C" void std::exit (int); using std::exit;' \
2874
'extern "C" void exit (int) throw ();' \
2875
'extern "C" void exit (int);' \
2878
cat >conftest.$ac_ext <<_ACEOF
2881
cat confdefs.h >>conftest.$ac_ext
2882
cat >>conftest.$ac_ext <<_ACEOF
2883
/* end confdefs.h. */
2894
rm -f conftest.$ac_objext
2895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2896
(eval $ac_compile) 2>conftest.er1
2898
grep -v '^ *+' conftest.er1 >conftest.err
2900
cat conftest.err >&5
2901
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902
(exit $ac_status); } &&
2903
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2904
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908
(exit $ac_status); }; } &&
2909
{ ac_try='test -s conftest.$ac_objext'
2910
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914
(exit $ac_status); }; }; then
2917
echo "$as_me: failed program was:" >&5
2918
sed 's/^/| /' conftest.$ac_ext >&5
2922
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2923
cat >conftest.$ac_ext <<_ACEOF
2926
cat confdefs.h >>conftest.$ac_ext
2927
cat >>conftest.$ac_ext <<_ACEOF
2928
/* end confdefs.h. */
2938
rm -f conftest.$ac_objext
2939
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940
(eval $ac_compile) 2>conftest.er1
2942
grep -v '^ *+' conftest.er1 >conftest.err
2944
cat conftest.err >&5
2945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946
(exit $ac_status); } &&
2947
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952
(exit $ac_status); }; } &&
2953
{ ac_try='test -s conftest.$ac_objext'
2954
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958
(exit $ac_status); }; }; then
2961
echo "$as_me: failed program was:" >&5
2962
sed 's/^/| /' conftest.$ac_ext >&5
2965
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2968
if test -n "$ac_declaration"; then
2969
echo '#ifdef __cplusplus' >>confdefs.h
2970
echo $ac_declaration >>confdefs.h
2971
echo '#endif' >>confdefs.h
2975
echo "$as_me: failed program was:" >&5
2976
sed 's/^/| /' conftest.$ac_ext >&5
2979
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2981
ac_cpp='$CPP $CPPFLAGS'
2982
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2983
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2984
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2985
DEPDIR="${am__leading_dot}deps"
2987
ac_config_commands="$ac_config_commands depfiles"
2990
am_make=${MAKE-make}
2991
cat > confinc << 'END'
2996
# If we don't find an include directive, just comment out the code.
2997
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2998
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3002
# First try GNU make style include.
3003
echo "include confinc" > confmf
3004
# We grep out `Entering directory' and `Leaving directory'
3005
# messages which can occur if `w' ends up in MAKEFLAGS.
3006
# In particular we don't look at `^make:' because GNU make might
3007
# be invoked under some other name (usually "gmake"), in which
3008
# case it prints its new name instead of `make'.
3009
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3014
# Now try BSD make style include.
3015
if test "$am__include" = "#"; then
3016
echo '.include "confinc"' > confmf
3017
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3018
am__include=.include
3025
echo "$as_me:$LINENO: result: $_am_result" >&5
3026
echo "${ECHO_T}$_am_result" >&6
3027
rm -f confinc confmf
3029
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3030
if test "${enable_dependency_tracking+set}" = set; then
3031
enableval="$enable_dependency_tracking"
3034
if test "x$enable_dependency_tracking" != xno; then
3035
am_depcomp="$ac_aux_dir/depcomp"
3040
if test "x$enable_dependency_tracking" != xno; then
3051
depcc="$CC" am_compiler_list=
3053
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3054
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3055
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3056
echo $ECHO_N "(cached) $ECHO_C" >&6
3058
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3059
# We make a subdir and do the tests there. Otherwise we can end up
3060
# making bogus files that we don't know about and never remove. For
3061
# instance it was reported that on HP-UX the gcc test will end up
3062
# making a dummy file named `D' -- because `-MD' means `put the output
3065
# Copy depcomp to subdir because otherwise we won't find it if we're
3066
# using a relative directory.
3067
cp "$am_depcomp" conftest.dir
3069
# We will build objects and dependencies in a subdirectory because
3070
# it helps to detect inapplicable dependency modes. For instance
3071
# both Tru64's cc and ICC support -MD to output dependencies as a
3072
# side effect of compilation, but ICC will put the dependencies in
3073
# the current directory while Tru64 will put them in the object
3077
am_cv_CC_dependencies_compiler_type=none
3078
if test "$am_compiler_list" = ""; then
3079
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3081
for depmode in $am_compiler_list; do
3082
# Setup a source with many dependencies, because some compilers
3083
# like to wrap large dependency lists on column 80 (with \), and
3084
# we should not choose a depcomp mode which is confused by this.
3086
# We need to recreate these files for each test, as the compiler may
3087
# overwrite some of them when testing with obscure command lines.
3088
# This happens at least with the AIX C compiler.
3090
for i in 1 2 3 4 5 6; do
3091
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3094
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3098
# after this tag, mechanisms are not by side-effect, so they'll
3099
# only be used when explicitly requested
3100
if test "x$enable_dependency_tracking" = xyes; then
3108
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3109
# mode. It turns out that the SunPro C++ compiler does not properly
3110
# handle `-M -o', and we need to detect this.
3111
if depmode=$depmode \
3112
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3113
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3114
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3115
>/dev/null 2>conftest.err &&
3116
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3117
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3118
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3119
# icc doesn't choke on unknown options, it will just issue warnings
3120
# (even with -Werror). So we grep stderr for any message
3121
# that says an option was ignored.
3122
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3123
am_cv_CC_dependencies_compiler_type=$depmode
3132
am_cv_CC_dependencies_compiler_type=none
3136
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3137
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3138
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3143
test "x$enable_dependency_tracking" != xno \
3144
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3146
am__fastdepCC_FALSE='#'
3148
am__fastdepCC_TRUE='#'
3149
am__fastdepCC_FALSE=
3153
# Find a good install program. We prefer a C program (faster),
3154
# so one script is as good as another. But avoid the broken or
3155
# incompatible versions:
3156
# SysV /etc/install, /usr/sbin/install
3157
# SunOS /usr/etc/install
3158
# IRIX /sbin/install
3160
# AmigaOS /C/install, which installs bootblocks on floppy discs
3161
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3162
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3163
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3164
# OS/2's system install, which has a completely different semantic
3165
# ./install, which can be erroneously created by make from ./install.sh.
3166
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3167
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3168
if test -z "$INSTALL"; then
3169
if test "${ac_cv_path_install+set}" = set; then
3170
echo $ECHO_N "(cached) $ECHO_C" >&6
3172
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176
test -z "$as_dir" && as_dir=.
3177
# Account for people who put trailing slashes in PATH elements.
3179
./ | .// | /cC/* | \
3180
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3181
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3184
# OSF1 and SCO ODT 3.0 have their own names for install.
3185
# Don't use installbsd from OSF since it installs stuff as root
3187
for ac_prog in ginstall scoinst install; do
3188
for ac_exec_ext in '' $ac_executable_extensions; do
3189
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3190
if test $ac_prog = install &&
3191
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3192
# AIX install. It has an incompatible calling convention.
3194
elif test $ac_prog = install &&
3195
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3196
# program-specific install script used by HP pwplus--don't use.
3199
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3211
if test "${ac_cv_path_install+set}" = set; then
3212
INSTALL=$ac_cv_path_install
3214
# As a last resort, use the slow shell script. We don't cache a
3215
# path for INSTALL within a source directory, because that will
3216
# break other packages using the cache if that directory is
3217
# removed, or if the path is relative.
3218
INSTALL=$ac_install_sh
3221
echo "$as_me:$LINENO: result: $INSTALL" >&5
3222
echo "${ECHO_T}$INSTALL" >&6
3224
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3225
# It thinks the first close brace ends the variable substitution.
3226
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3228
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3230
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3232
echo "$as_me:$LINENO: checking whether ln -s works" >&5
3233
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3235
if test "$LN_S" = "ln -s"; then
3236
echo "$as_me:$LINENO: result: yes" >&5
3237
echo "${ECHO_T}yes" >&6
3239
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3240
echo "${ECHO_T}no, using $LN_S" >&6
3243
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3244
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3245
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3246
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3247
echo $ECHO_N "(cached) $ECHO_C" >&6
3249
cat >conftest.make <<\_ACEOF
3251
@echo 'ac_maketemp="$(MAKE)"'
3253
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3254
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3255
if test -n "$ac_maketemp"; then
3256
eval ac_cv_prog_make_${ac_make}_set=yes
3258
eval ac_cv_prog_make_${ac_make}_set=no
3262
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3263
echo "$as_me:$LINENO: result: yes" >&5
3264
echo "${ECHO_T}yes" >&6
3267
echo "$as_me:$LINENO: result: no" >&5
3268
echo "${ECHO_T}no" >&6
3269
SET_MAKE="MAKE=${MAKE-make}"
3274
# Check whether --enable-shared or --disable-shared was given.
3275
if test "${enable_shared+set}" = set; then
3276
enableval="$enable_shared"
3277
p=${PACKAGE-default}
3279
yes) enable_shared=yes ;;
3280
no) enable_shared=no ;;
3283
# Look at the argument we got. We use all the common list separators.
3284
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3285
for pkg in $enableval; do
3287
if test "X$pkg" = "X$p"; then
3298
# Check whether --enable-static or --disable-static was given.
3299
if test "${enable_static+set}" = set; then
3300
enableval="$enable_static"
3301
p=${PACKAGE-default}
3303
yes) enable_static=yes ;;
3304
no) enable_static=no ;;
3307
# Look at the argument we got. We use all the common list separators.
3308
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3309
for pkg in $enableval; do
3311
if test "X$pkg" = "X$p"; then
3322
# Check whether --enable-fast-install or --disable-fast-install was given.
3323
if test "${enable_fast_install+set}" = set; then
3324
enableval="$enable_fast_install"
3325
p=${PACKAGE-default}
3327
yes) enable_fast_install=yes ;;
3328
no) enable_fast_install=no ;;
3330
enable_fast_install=no
3331
# Look at the argument we got. We use all the common list separators.
3332
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3333
for pkg in $enableval; do
3335
if test "X$pkg" = "X$p"; then
3336
enable_fast_install=yes
3343
enable_fast_install=yes
3346
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3347
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3348
if test "${lt_cv_path_SED+set}" = set; then
3349
echo $ECHO_N "(cached) $ECHO_C" >&6
3351
# Loop through the user's path and test for sed and gsed.
3352
# Then use that list of sed's as ones to test for truncation.
3353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3357
test -z "$as_dir" && as_dir=.
3358
for lt_ac_prog in sed gsed; do
3359
for ac_exec_ext in '' $ac_executable_extensions; do
3360
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3361
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3368
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3369
# along with /bin/sed that truncates output.
3370
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3371
test ! -f $lt_ac_sed && break
3372
cat /dev/null > conftest.in
3374
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3375
# Check for GNU sed and select it if it is found.
3376
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3377
lt_cv_path_SED=$lt_ac_sed
3381
cat conftest.in conftest.in >conftest.tmp
3382
mv conftest.tmp conftest.in
3383
cp conftest.in conftest.nl
3385
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3386
cmp -s conftest.out conftest.nl || break
3387
# 10000 chars as input seems more than enough
3388
test $lt_ac_count -gt 10 && break
3389
lt_ac_count=`expr $lt_ac_count + 1`
3390
if test $lt_ac_count -gt $lt_ac_max; then
3391
lt_ac_max=$lt_ac_count
3392
lt_cv_path_SED=$lt_ac_sed
3400
echo "$as_me:$LINENO: result: $SED" >&5
3401
echo "${ECHO_T}$SED" >&6
3403
echo "$as_me:$LINENO: checking for egrep" >&5
3404
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3405
if test "${ac_cv_prog_egrep+set}" = set; then
3406
echo $ECHO_N "(cached) $ECHO_C" >&6
3408
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3409
then ac_cv_prog_egrep='grep -E'
3410
else ac_cv_prog_egrep='egrep'
3413
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3414
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3415
EGREP=$ac_cv_prog_egrep
3419
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3420
if test "${with_gnu_ld+set}" = set; then
3421
withval="$with_gnu_ld"
3422
test "$withval" = no || with_gnu_ld=yes
3427
if test "$GCC" = yes; then
3428
# Check if gcc -print-prog-name=ld gives a path.
3429
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3430
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3433
# gcc leaves a trailing carriage return which upsets mingw
3434
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3436
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3439
# Accept absolute paths.
3441
re_direlt='/[^/][^/]*/\.\./'
3442
# Canonicalize the pathname of ld
3443
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3444
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3445
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3447
test -z "$LD" && LD="$ac_prog"
3450
# If it fails, then pretend we aren't using GCC.
3454
# If it is relative, then search for the first ld in PATH.
3458
elif test "$with_gnu_ld" = yes; then
3459
echo "$as_me:$LINENO: checking for GNU ld" >&5
3460
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3462
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3463
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3465
if test "${lt_cv_path_LD+set}" = set; then
3466
echo $ECHO_N "(cached) $ECHO_C" >&6
3468
if test -z "$LD"; then
3469
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3470
for ac_dir in $PATH; do
3472
test -z "$ac_dir" && ac_dir=.
3473
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3474
lt_cv_path_LD="$ac_dir/$ac_prog"
3475
# Check to see if the program is GNU ld. I'd rather use --version,
3476
# but apparently some GNU ld's only accept -v.
3477
# Break only if it was the GNU/non-GNU ld that we prefer.
3478
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3479
*GNU* | *'with BFD'*)
3480
test "$with_gnu_ld" != no && break
3483
test "$with_gnu_ld" != yes && break
3490
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3495
if test -n "$LD"; then
3496
echo "$as_me:$LINENO: result: $LD" >&5
3497
echo "${ECHO_T}$LD" >&6
3499
echo "$as_me:$LINENO: result: no" >&5
3500
echo "${ECHO_T}no" >&6
3502
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3503
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3504
{ (exit 1); exit 1; }; }
3505
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3506
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3507
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3508
echo $ECHO_N "(cached) $ECHO_C" >&6
3510
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3511
case `$LD -v 2>&1 </dev/null` in
3512
*GNU* | *'with BFD'*)
3513
lt_cv_prog_gnu_ld=yes
3516
lt_cv_prog_gnu_ld=no
3520
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3521
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3522
with_gnu_ld=$lt_cv_prog_gnu_ld
3525
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3526
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3527
if test "${lt_cv_ld_reload_flag+set}" = set; then
3528
echo $ECHO_N "(cached) $ECHO_C" >&6
3530
lt_cv_ld_reload_flag='-r'
3532
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3533
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3534
reload_flag=$lt_cv_ld_reload_flag
3535
case $reload_flag in
3537
*) reload_flag=" $reload_flag" ;;
3539
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3541
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3542
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3543
if test "${lt_cv_path_NM+set}" = set; then
3544
echo $ECHO_N "(cached) $ECHO_C" >&6
3546
if test -n "$NM"; then
3547
# Let the user override the test.
3550
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3551
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3553
test -z "$ac_dir" && ac_dir=.
3554
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3555
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3556
# Check to see if the nm accepts a BSD-compat flag.
3557
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3558
# nm: unknown option "B" ignored
3559
# Tru64's nm complains that /dev/null is an invalid object file
3560
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3561
*/dev/null* | *'Invalid file or object type'*)
3562
lt_cv_path_NM="$tmp_nm -B"
3566
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3568
lt_cv_path_NM="$tmp_nm -p"
3572
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3573
continue # so that we can try to find one that supports BSD flags
3580
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3583
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3584
echo "${ECHO_T}$lt_cv_path_NM" >&6
3587
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3588
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3589
if test "${lt_cv_deplibs_check_method+set}" = set; then
3590
echo $ECHO_N "(cached) $ECHO_C" >&6
3592
lt_cv_file_magic_cmd='$MAGIC_CMD'
3593
lt_cv_file_magic_test_file=
3594
lt_cv_deplibs_check_method='unknown'
3595
# Need to set the preceding variable on all platforms that support
3596
# interlibrary dependencies.
3597
# 'none' -- dependencies not supported.
3598
# `unknown' -- same as none, but documents that we really don't know.
3599
# 'pass_all' -- all dependencies passed with no checks.
3600
# 'test_compile' -- check by making test program.
3601
# 'file_magic [[regex]]' -- check by looking for files in library path
3602
# which responds to the $file_magic_cmd with a given extended regex.
3603
# If you have `file' or equivalent on your system and you're not sure
3604
# whether `pass_all' will *always* work, you probably want this one.
3608
lt_cv_deplibs_check_method=pass_all
3612
lt_cv_deplibs_check_method=pass_all
3616
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3617
lt_cv_file_magic_cmd='/usr/bin/file -L'
3618
lt_cv_file_magic_test_file=/shlib/libc.so
3622
# win32_libid is a shell function defined in ltmain.sh
3623
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3624
lt_cv_file_magic_cmd='win32_libid'
3628
# Base MSYS/MinGW do not provide the 'file' command needed by
3629
# win32_libid shell function, so use a weaker test based on 'objdump'.
3630
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3631
lt_cv_file_magic_cmd='$OBJDUMP -f'
3634
darwin* | rhapsody*)
3635
lt_cv_deplibs_check_method=pass_all
3638
freebsd* | kfreebsd*-gnu)
3639
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3642
# Not sure whether the presence of OpenBSD here was a mistake.
3643
# Let's accept both of them until this is cleared up.
3644
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3645
lt_cv_file_magic_cmd=/usr/bin/file
3646
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3650
lt_cv_deplibs_check_method=pass_all
3655
lt_cv_deplibs_check_method=pass_all
3658
hpux10.20* | hpux11*)
3659
lt_cv_file_magic_cmd=/usr/bin/file
3662
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3663
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3666
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]'
3667
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3670
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3671
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3676
irix5* | irix6* | nonstopux*)
3678
*-32|*"-32 ") libmagic=32-bit;;
3679
*-n32|*"-n32 ") libmagic=N32;;
3680
*-64|*"-64 ") libmagic=64-bit;;
3681
*) libmagic=never-match;;
3683
lt_cv_deplibs_check_method=pass_all
3686
# This must be Linux ELF.
3688
lt_cv_deplibs_check_method=pass_all
3692
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3693
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3695
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3700
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3701
lt_cv_file_magic_cmd=/usr/bin/file
3702
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3706
lt_cv_deplibs_check_method=unknown
3710
lt_cv_file_magic_cmd=/usr/bin/file
3711
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3712
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3713
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3715
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3719
osf3* | osf4* | osf5*)
3720
lt_cv_deplibs_check_method=pass_all
3724
lt_cv_deplibs_check_method=pass_all
3728
lt_cv_deplibs_check_method=pass_all
3731
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3732
case $host_vendor in
3734
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]'
3735
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3738
lt_cv_deplibs_check_method=pass_all
3741
lt_cv_file_magic_cmd='/bin/file'
3742
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3745
lt_cv_file_magic_cmd='/bin/file'
3746
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3747
lt_cv_file_magic_test_file=/lib/libc.so
3750
lt_cv_deplibs_check_method=pass_all
3755
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3756
lt_cv_deplibs_check_method=pass_all
3761
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3762
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3763
file_magic_cmd=$lt_cv_file_magic_cmd
3764
deplibs_check_method=$lt_cv_deplibs_check_method
3765
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3770
# If no C compiler was specified, use CC.
3773
# Allow CC to be a program name with arguments.
3777
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3778
if test "${enable_libtool_lock+set}" = set; then
3779
enableval="$enable_libtool_lock"
3782
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3784
# Some flags need to be propagated to the compiler or linker for good
3788
# Find out which ABI we are using.
3789
echo 'int i;' > conftest.$ac_ext
3790
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3791
(eval $ac_compile) 2>&5
3793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794
(exit $ac_status); }; then
3795
case `/usr/bin/file conftest.$ac_objext` in
3807
# Find out which ABI we are using.
3808
echo '#line 3808 "configure"' > conftest.$ac_ext
3809
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3810
(eval $ac_compile) 2>&5
3812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813
(exit $ac_status); }; then
3814
if test "$lt_cv_prog_gnu_ld" = yes; then
3815
case `/usr/bin/file conftest.$ac_objext` in
3817
LD="${LD-ld} -melf32bsmip"
3820
LD="${LD-ld} -melf32bmipn32"
3823
LD="${LD-ld} -melf64bmip"
3827
case `/usr/bin/file conftest.$ac_objext` in
3843
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3844
# Find out which ABI we are using.
3845
echo 'int i;' > conftest.$ac_ext
3846
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3847
(eval $ac_compile) 2>&5
3849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850
(exit $ac_status); }; then
3851
case "`/usr/bin/file conftest.o`" in
3855
LD="${LD-ld} -m elf_i386"
3857
ppc64-*linux*|powerpc64-*linux*)
3858
LD="${LD-ld} -m elf32ppclinux"
3861
LD="${LD-ld} -m elf_s390"
3864
LD="${LD-ld} -m elf32_sparc"
3871
LD="${LD-ld} -m elf_x86_64"
3873
ppc*-*linux*|powerpc*-*linux*)
3874
LD="${LD-ld} -m elf64ppc"
3877
LD="${LD-ld} -m elf64_s390"
3880
LD="${LD-ld} -m elf64_sparc"
3890
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
3891
SAVE_CFLAGS="$CFLAGS"
3892
CFLAGS="$CFLAGS -belf"
3893
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3894
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3895
if test "${lt_cv_cc_needs_belf+set}" = set; then
3896
echo $ECHO_N "(cached) $ECHO_C" >&6
3899
ac_cpp='$CPP $CPPFLAGS'
3900
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3901
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3902
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3904
cat >conftest.$ac_ext <<_ACEOF
3907
cat confdefs.h >>conftest.$ac_ext
3908
cat >>conftest.$ac_ext <<_ACEOF
3909
/* end confdefs.h. */
3919
rm -f conftest.$ac_objext conftest$ac_exeext
3920
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3921
(eval $ac_link) 2>conftest.er1
3923
grep -v '^ *+' conftest.er1 >conftest.err
3925
cat conftest.err >&5
3926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927
(exit $ac_status); } &&
3928
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3929
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933
(exit $ac_status); }; } &&
3934
{ ac_try='test -s conftest$ac_exeext'
3935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939
(exit $ac_status); }; }; then
3940
lt_cv_cc_needs_belf=yes
3942
echo "$as_me: failed program was:" >&5
3943
sed 's/^/| /' conftest.$ac_ext >&5
3945
lt_cv_cc_needs_belf=no
3947
rm -f conftest.err conftest.$ac_objext \
3948
conftest$ac_exeext conftest.$ac_ext
3950
ac_cpp='$CPP $CPPFLAGS'
3951
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3957
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3958
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3959
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3960
CFLAGS="$SAVE_CFLAGS"
3966
need_locks="$enable_libtool_lock"
3970
ac_cpp='$CPP $CPPFLAGS'
3971
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3975
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3976
# On Suns, sometimes $CPP names a directory.
3977
if test -n "$CPP" && test -d "$CPP"; then
3980
if test -z "$CPP"; then
3981
if test "${ac_cv_prog_CPP+set}" = set; then
3982
echo $ECHO_N "(cached) $ECHO_C" >&6
3984
# Double quotes because CPP needs to be expanded
3985
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3988
for ac_c_preproc_warn_flag in '' yes
3990
# Use a header file that comes with gcc, so configuring glibc
3991
# with a fresh cross-compiler works.
3992
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3993
# <limits.h> exists even on freestanding compilers.
3994
# On the NeXT, cc -E runs the code through the compiler's parser,
3995
# not just through cpp. "Syntax error" is here to catch this case.
3996
cat >conftest.$ac_ext <<_ACEOF
3999
cat confdefs.h >>conftest.$ac_ext
4000
cat >>conftest.$ac_ext <<_ACEOF
4001
/* end confdefs.h. */
4003
# include <limits.h>
4005
# include <assert.h>
4009
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4010
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4012
grep -v '^ *+' conftest.er1 >conftest.err
4014
cat conftest.err >&5
4015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016
(exit $ac_status); } >/dev/null; then
4017
if test -s conftest.err; then
4018
ac_cpp_err=$ac_c_preproc_warn_flag
4019
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4026
if test -z "$ac_cpp_err"; then
4029
echo "$as_me: failed program was:" >&5
4030
sed 's/^/| /' conftest.$ac_ext >&5
4032
# Broken: fails on valid input.
4035
rm -f conftest.err conftest.$ac_ext
4037
# OK, works on sane cases. Now check whether non-existent headers
4038
# can be detected and how.
4039
cat >conftest.$ac_ext <<_ACEOF
4042
cat confdefs.h >>conftest.$ac_ext
4043
cat >>conftest.$ac_ext <<_ACEOF
4044
/* end confdefs.h. */
4045
#include <ac_nonexistent.h>
4047
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4048
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4050
grep -v '^ *+' conftest.er1 >conftest.err
4052
cat conftest.err >&5
4053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054
(exit $ac_status); } >/dev/null; then
4055
if test -s conftest.err; then
4056
ac_cpp_err=$ac_c_preproc_warn_flag
4057
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4064
if test -z "$ac_cpp_err"; then
4065
# Broken: success on invalid input.
4068
echo "$as_me: failed program was:" >&5
4069
sed 's/^/| /' conftest.$ac_ext >&5
4071
# Passes both tests.
4075
rm -f conftest.err conftest.$ac_ext
4078
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079
rm -f conftest.err conftest.$ac_ext
4080
if $ac_preproc_ok; then
4092
echo "$as_me:$LINENO: result: $CPP" >&5
4093
echo "${ECHO_T}$CPP" >&6
4095
for ac_c_preproc_warn_flag in '' yes
4097
# Use a header file that comes with gcc, so configuring glibc
4098
# with a fresh cross-compiler works.
4099
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100
# <limits.h> exists even on freestanding compilers.
4101
# On the NeXT, cc -E runs the code through the compiler's parser,
4102
# not just through cpp. "Syntax error" is here to catch this case.
4103
cat >conftest.$ac_ext <<_ACEOF
4106
cat confdefs.h >>conftest.$ac_ext
4107
cat >>conftest.$ac_ext <<_ACEOF
4108
/* end confdefs.h. */
4110
# include <limits.h>
4112
# include <assert.h>
4116
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4117
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4119
grep -v '^ *+' conftest.er1 >conftest.err
4121
cat conftest.err >&5
4122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123
(exit $ac_status); } >/dev/null; then
4124
if test -s conftest.err; then
4125
ac_cpp_err=$ac_c_preproc_warn_flag
4126
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4133
if test -z "$ac_cpp_err"; then
4136
echo "$as_me: failed program was:" >&5
4137
sed 's/^/| /' conftest.$ac_ext >&5
4139
# Broken: fails on valid input.
4142
rm -f conftest.err conftest.$ac_ext
4144
# OK, works on sane cases. Now check whether non-existent headers
4145
# can be detected and how.
4146
cat >conftest.$ac_ext <<_ACEOF
4149
cat confdefs.h >>conftest.$ac_ext
4150
cat >>conftest.$ac_ext <<_ACEOF
4151
/* end confdefs.h. */
4152
#include <ac_nonexistent.h>
4154
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4155
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4157
grep -v '^ *+' conftest.er1 >conftest.err
4159
cat conftest.err >&5
4160
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161
(exit $ac_status); } >/dev/null; then
4162
if test -s conftest.err; then
4163
ac_cpp_err=$ac_c_preproc_warn_flag
4164
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4171
if test -z "$ac_cpp_err"; then
4172
# Broken: success on invalid input.
4175
echo "$as_me: failed program was:" >&5
4176
sed 's/^/| /' conftest.$ac_ext >&5
4178
# Passes both tests.
4182
rm -f conftest.err conftest.$ac_ext
4185
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4186
rm -f conftest.err conftest.$ac_ext
4187
if $ac_preproc_ok; then
4190
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4191
See \`config.log' for more details." >&5
4192
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4193
See \`config.log' for more details." >&2;}
4194
{ (exit 1); exit 1; }; }
4198
ac_cpp='$CPP $CPPFLAGS'
4199
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4205
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4206
if test "${ac_cv_header_stdc+set}" = set; then
4207
echo $ECHO_N "(cached) $ECHO_C" >&6
4209
cat >conftest.$ac_ext <<_ACEOF
4212
cat confdefs.h >>conftest.$ac_ext
4213
cat >>conftest.$ac_ext <<_ACEOF
4214
/* end confdefs.h. */
4228
rm -f conftest.$ac_objext
4229
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4230
(eval $ac_compile) 2>conftest.er1
4232
grep -v '^ *+' conftest.er1 >conftest.err
4234
cat conftest.err >&5
4235
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236
(exit $ac_status); } &&
4237
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4238
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242
(exit $ac_status); }; } &&
4243
{ ac_try='test -s conftest.$ac_objext'
4244
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248
(exit $ac_status); }; }; then
4249
ac_cv_header_stdc=yes
4251
echo "$as_me: failed program was:" >&5
4252
sed 's/^/| /' conftest.$ac_ext >&5
4254
ac_cv_header_stdc=no
4256
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4258
if test $ac_cv_header_stdc = yes; then
4259
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4260
cat >conftest.$ac_ext <<_ACEOF
4263
cat confdefs.h >>conftest.$ac_ext
4264
cat >>conftest.$ac_ext <<_ACEOF
4265
/* end confdefs.h. */
4269
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4270
$EGREP "memchr" >/dev/null 2>&1; then
4273
ac_cv_header_stdc=no
4279
if test $ac_cv_header_stdc = yes; then
4280
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4281
cat >conftest.$ac_ext <<_ACEOF
4284
cat confdefs.h >>conftest.$ac_ext
4285
cat >>conftest.$ac_ext <<_ACEOF
4286
/* end confdefs.h. */
4290
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4291
$EGREP "free" >/dev/null 2>&1; then
4294
ac_cv_header_stdc=no
4300
if test $ac_cv_header_stdc = yes; then
4301
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4302
if test "$cross_compiling" = yes; then
4305
cat >conftest.$ac_ext <<_ACEOF
4308
cat confdefs.h >>conftest.$ac_ext
4309
cat >>conftest.$ac_ext <<_ACEOF
4310
/* end confdefs.h. */
4312
#if ((' ' & 0x0FF) == 0x020)
4313
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4314
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4316
# define ISLOWER(c) \
4317
(('a' <= (c) && (c) <= 'i') \
4318
|| ('j' <= (c) && (c) <= 'r') \
4319
|| ('s' <= (c) && (c) <= 'z'))
4320
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4323
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4328
for (i = 0; i < 256; i++)
4329
if (XOR (islower (i), ISLOWER (i))
4330
|| toupper (i) != TOUPPER (i))
4335
rm -f conftest$ac_exeext
4336
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4337
(eval $ac_link) 2>&5
4339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4341
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345
(exit $ac_status); }; }; then
4348
echo "$as_me: program exited with status $ac_status" >&5
4349
echo "$as_me: failed program was:" >&5
4350
sed 's/^/| /' conftest.$ac_ext >&5
4353
ac_cv_header_stdc=no
4355
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4359
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4360
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4361
if test $ac_cv_header_stdc = yes; then
4363
cat >>confdefs.h <<\_ACEOF
4364
#define STDC_HEADERS 1
4369
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4379
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4380
inttypes.h stdint.h unistd.h
4382
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4383
echo "$as_me:$LINENO: checking for $ac_header" >&5
4384
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4385
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4386
echo $ECHO_N "(cached) $ECHO_C" >&6
4388
cat >conftest.$ac_ext <<_ACEOF
4391
cat confdefs.h >>conftest.$ac_ext
4392
cat >>conftest.$ac_ext <<_ACEOF
4393
/* end confdefs.h. */
4394
$ac_includes_default
4396
#include <$ac_header>
4398
rm -f conftest.$ac_objext
4399
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4400
(eval $ac_compile) 2>conftest.er1
4402
grep -v '^ *+' conftest.er1 >conftest.err
4404
cat conftest.err >&5
4405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406
(exit $ac_status); } &&
4407
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412
(exit $ac_status); }; } &&
4413
{ ac_try='test -s conftest.$ac_objext'
4414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418
(exit $ac_status); }; }; then
4419
eval "$as_ac_Header=yes"
4421
echo "$as_me: failed program was:" >&5
4422
sed 's/^/| /' conftest.$ac_ext >&5
4424
eval "$as_ac_Header=no"
4426
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4428
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4429
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4430
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4431
cat >>confdefs.h <<_ACEOF
4432
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4441
for ac_header in dlfcn.h
4443
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4445
echo "$as_me:$LINENO: checking for $ac_header" >&5
4446
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4447
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4448
echo $ECHO_N "(cached) $ECHO_C" >&6
4450
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4451
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4453
# Is the header compilable?
4454
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4455
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4456
cat >conftest.$ac_ext <<_ACEOF
4459
cat confdefs.h >>conftest.$ac_ext
4460
cat >>conftest.$ac_ext <<_ACEOF
4461
/* end confdefs.h. */
4462
$ac_includes_default
4463
#include <$ac_header>
4465
rm -f conftest.$ac_objext
4466
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467
(eval $ac_compile) 2>conftest.er1
4469
grep -v '^ *+' conftest.er1 >conftest.err
4471
cat conftest.err >&5
4472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473
(exit $ac_status); } &&
4474
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4475
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479
(exit $ac_status); }; } &&
4480
{ ac_try='test -s conftest.$ac_objext'
4481
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485
(exit $ac_status); }; }; then
4486
ac_header_compiler=yes
4488
echo "$as_me: failed program was:" >&5
4489
sed 's/^/| /' conftest.$ac_ext >&5
4491
ac_header_compiler=no
4493
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4494
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4495
echo "${ECHO_T}$ac_header_compiler" >&6
4497
# Is the header present?
4498
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4499
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4500
cat >conftest.$ac_ext <<_ACEOF
4503
cat confdefs.h >>conftest.$ac_ext
4504
cat >>conftest.$ac_ext <<_ACEOF
4505
/* end confdefs.h. */
4506
#include <$ac_header>
4508
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4509
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4511
grep -v '^ *+' conftest.er1 >conftest.err
4513
cat conftest.err >&5
4514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515
(exit $ac_status); } >/dev/null; then
4516
if test -s conftest.err; then
4517
ac_cpp_err=$ac_c_preproc_warn_flag
4518
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4525
if test -z "$ac_cpp_err"; then
4526
ac_header_preproc=yes
4528
echo "$as_me: failed program was:" >&5
4529
sed 's/^/| /' conftest.$ac_ext >&5
4531
ac_header_preproc=no
4533
rm -f conftest.err conftest.$ac_ext
4534
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4535
echo "${ECHO_T}$ac_header_preproc" >&6
4537
# So? What about this header?
4538
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4540
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4541
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4542
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4543
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4544
ac_header_preproc=yes
4547
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4548
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4549
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4550
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4551
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4552
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4553
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4554
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4555
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4556
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4557
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4558
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4561
## ------------------------------------------ ##
4562
## Report this to the AC_PACKAGE_NAME lists. ##
4563
## ------------------------------------------ ##
4566
sed "s/^/$as_me: WARNING: /" >&2
4569
echo "$as_me:$LINENO: checking for $ac_header" >&5
4570
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4571
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4572
echo $ECHO_N "(cached) $ECHO_C" >&6
4574
eval "$as_ac_Header=\$ac_header_preproc"
4576
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4577
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4580
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4581
cat >>confdefs.h <<_ACEOF
4582
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4590
ac_cpp='$CXXCPP $CPPFLAGS'
4591
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4594
if test -n "$ac_tool_prefix"; then
4595
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4597
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4598
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4599
echo "$as_me:$LINENO: checking for $ac_word" >&5
4600
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4601
if test "${ac_cv_prog_CXX+set}" = set; then
4602
echo $ECHO_N "(cached) $ECHO_C" >&6
4604
if test -n "$CXX"; then
4605
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4607
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611
test -z "$as_dir" && as_dir=.
4612
for ac_exec_ext in '' $ac_executable_extensions; do
4613
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4614
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4615
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624
if test -n "$CXX"; then
4625
echo "$as_me:$LINENO: result: $CXX" >&5
4626
echo "${ECHO_T}$CXX" >&6
4628
echo "$as_me:$LINENO: result: no" >&5
4629
echo "${ECHO_T}no" >&6
4632
test -n "$CXX" && break
4635
if test -z "$CXX"; then
4637
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4639
# Extract the first word of "$ac_prog", so it can be a program name with args.
4640
set dummy $ac_prog; ac_word=$2
4641
echo "$as_me:$LINENO: checking for $ac_word" >&5
4642
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4643
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4644
echo $ECHO_N "(cached) $ECHO_C" >&6
4646
if test -n "$ac_ct_CXX"; then
4647
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653
test -z "$as_dir" && as_dir=.
4654
for ac_exec_ext in '' $ac_executable_extensions; do
4655
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4656
ac_cv_prog_ac_ct_CXX="$ac_prog"
4657
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4665
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4666
if test -n "$ac_ct_CXX"; then
4667
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4668
echo "${ECHO_T}$ac_ct_CXX" >&6
4670
echo "$as_me:$LINENO: result: no" >&5
4671
echo "${ECHO_T}no" >&6
4674
test -n "$ac_ct_CXX" && break
4676
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4682
# Provide some information about the compiler.
4683
echo "$as_me:$LINENO:" \
4684
"checking for C++ compiler version" >&5
4685
ac_compiler=`set X $ac_compile; echo $2`
4686
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4687
(eval $ac_compiler --version </dev/null >&5) 2>&5
4689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690
(exit $ac_status); }
4691
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4692
(eval $ac_compiler -v </dev/null >&5) 2>&5
4694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695
(exit $ac_status); }
4696
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4697
(eval $ac_compiler -V </dev/null >&5) 2>&5
4699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700
(exit $ac_status); }
4702
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4703
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4704
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4705
echo $ECHO_N "(cached) $ECHO_C" >&6
4707
cat >conftest.$ac_ext <<_ACEOF
4710
cat confdefs.h >>conftest.$ac_ext
4711
cat >>conftest.$ac_ext <<_ACEOF
4712
/* end confdefs.h. */
4725
rm -f conftest.$ac_objext
4726
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727
(eval $ac_compile) 2>conftest.er1
4729
grep -v '^ *+' conftest.er1 >conftest.err
4731
cat conftest.err >&5
4732
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733
(exit $ac_status); } &&
4734
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4735
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739
(exit $ac_status); }; } &&
4740
{ ac_try='test -s conftest.$ac_objext'
4741
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745
(exit $ac_status); }; }; then
4748
echo "$as_me: failed program was:" >&5
4749
sed 's/^/| /' conftest.$ac_ext >&5
4753
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4754
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4757
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4758
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4759
GXX=`test $ac_compiler_gnu = yes && echo yes`
4760
ac_test_CXXFLAGS=${CXXFLAGS+set}
4761
ac_save_CXXFLAGS=$CXXFLAGS
4763
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4764
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4765
if test "${ac_cv_prog_cxx_g+set}" = set; then
4766
echo $ECHO_N "(cached) $ECHO_C" >&6
4768
cat >conftest.$ac_ext <<_ACEOF
4771
cat confdefs.h >>conftest.$ac_ext
4772
cat >>conftest.$ac_ext <<_ACEOF
4773
/* end confdefs.h. */
4783
rm -f conftest.$ac_objext
4784
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4785
(eval $ac_compile) 2>conftest.er1
4787
grep -v '^ *+' conftest.er1 >conftest.err
4789
cat conftest.err >&5
4790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791
(exit $ac_status); } &&
4792
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4793
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797
(exit $ac_status); }; } &&
4798
{ ac_try='test -s conftest.$ac_objext'
4799
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803
(exit $ac_status); }; }; then
4804
ac_cv_prog_cxx_g=yes
4806
echo "$as_me: failed program was:" >&5
4807
sed 's/^/| /' conftest.$ac_ext >&5
4811
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4813
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4814
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4815
if test "$ac_test_CXXFLAGS" = set; then
4816
CXXFLAGS=$ac_save_CXXFLAGS
4817
elif test $ac_cv_prog_cxx_g = yes; then
4818
if test "$GXX" = yes; then
4824
if test "$GXX" = yes; then
4830
for ac_declaration in \
4832
'extern "C" void std::exit (int) throw (); using std::exit;' \
4833
'extern "C" void std::exit (int); using std::exit;' \
4834
'extern "C" void exit (int) throw ();' \
4835
'extern "C" void exit (int);' \
4838
cat >conftest.$ac_ext <<_ACEOF
4841
cat confdefs.h >>conftest.$ac_ext
4842
cat >>conftest.$ac_ext <<_ACEOF
4843
/* end confdefs.h. */
4854
rm -f conftest.$ac_objext
4855
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4856
(eval $ac_compile) 2>conftest.er1
4858
grep -v '^ *+' conftest.er1 >conftest.err
4860
cat conftest.err >&5
4861
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862
(exit $ac_status); } &&
4863
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4864
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868
(exit $ac_status); }; } &&
4869
{ ac_try='test -s conftest.$ac_objext'
4870
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874
(exit $ac_status); }; }; then
4877
echo "$as_me: failed program was:" >&5
4878
sed 's/^/| /' conftest.$ac_ext >&5
4882
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4883
cat >conftest.$ac_ext <<_ACEOF
4886
cat confdefs.h >>conftest.$ac_ext
4887
cat >>conftest.$ac_ext <<_ACEOF
4888
/* end confdefs.h. */
4898
rm -f conftest.$ac_objext
4899
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900
(eval $ac_compile) 2>conftest.er1
4902
grep -v '^ *+' conftest.er1 >conftest.err
4904
cat conftest.err >&5
4905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906
(exit $ac_status); } &&
4907
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4908
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912
(exit $ac_status); }; } &&
4913
{ ac_try='test -s conftest.$ac_objext'
4914
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918
(exit $ac_status); }; }; then
4921
echo "$as_me: failed program was:" >&5
4922
sed 's/^/| /' conftest.$ac_ext >&5
4925
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4928
if test -n "$ac_declaration"; then
4929
echo '#ifdef __cplusplus' >>confdefs.h
4930
echo $ac_declaration >>confdefs.h
4931
echo '#endif' >>confdefs.h
4935
ac_cpp='$CXXCPP $CPPFLAGS'
4936
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4940
depcc="$CXX" am_compiler_list=
4942
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4943
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4944
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4945
echo $ECHO_N "(cached) $ECHO_C" >&6
4947
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4948
# We make a subdir and do the tests there. Otherwise we can end up
4949
# making bogus files that we don't know about and never remove. For
4950
# instance it was reported that on HP-UX the gcc test will end up
4951
# making a dummy file named `D' -- because `-MD' means `put the output
4954
# Copy depcomp to subdir because otherwise we won't find it if we're
4955
# using a relative directory.
4956
cp "$am_depcomp" conftest.dir
4958
# We will build objects and dependencies in a subdirectory because
4959
# it helps to detect inapplicable dependency modes. For instance
4960
# both Tru64's cc and ICC support -MD to output dependencies as a
4961
# side effect of compilation, but ICC will put the dependencies in
4962
# the current directory while Tru64 will put them in the object
4966
am_cv_CXX_dependencies_compiler_type=none
4967
if test "$am_compiler_list" = ""; then
4968
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4970
for depmode in $am_compiler_list; do
4971
# Setup a source with many dependencies, because some compilers
4972
# like to wrap large dependency lists on column 80 (with \), and
4973
# we should not choose a depcomp mode which is confused by this.
4975
# We need to recreate these files for each test, as the compiler may
4976
# overwrite some of them when testing with obscure command lines.
4977
# This happens at least with the AIX C compiler.
4979
for i in 1 2 3 4 5 6; do
4980
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4983
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4987
# after this tag, mechanisms are not by side-effect, so they'll
4988
# only be used when explicitly requested
4989
if test "x$enable_dependency_tracking" = xyes; then
4997
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4998
# mode. It turns out that the SunPro C++ compiler does not properly
4999
# handle `-M -o', and we need to detect this.
5000
if depmode=$depmode \
5001
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5002
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5003
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5004
>/dev/null 2>conftest.err &&
5005
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5006
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5007
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5008
# icc doesn't choke on unknown options, it will just issue warnings
5009
# (even with -Werror). So we grep stderr for any message
5010
# that says an option was ignored.
5011
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
5012
am_cv_CXX_dependencies_compiler_type=$depmode
5021
am_cv_CXX_dependencies_compiler_type=none
5025
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5026
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5027
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5032
test "x$enable_dependency_tracking" != xno \
5033
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5034
am__fastdepCXX_TRUE=
5035
am__fastdepCXX_FALSE='#'
5037
am__fastdepCXX_TRUE='#'
5038
am__fastdepCXX_FALSE=
5043
ac_cpp='$CXXCPP $CPPFLAGS'
5044
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5047
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5048
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5049
if test -z "$CXXCPP"; then
5050
if test "${ac_cv_prog_CXXCPP+set}" = set; then
5051
echo $ECHO_N "(cached) $ECHO_C" >&6
5053
# Double quotes because CXXCPP needs to be expanded
5054
for CXXCPP in "$CXX -E" "/lib/cpp"
5057
for ac_cxx_preproc_warn_flag in '' yes
5059
# Use a header file that comes with gcc, so configuring glibc
5060
# with a fresh cross-compiler works.
5061
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5062
# <limits.h> exists even on freestanding compilers.
5063
# On the NeXT, cc -E runs the code through the compiler's parser,
5064
# not just through cpp. "Syntax error" is here to catch this case.
5065
cat >conftest.$ac_ext <<_ACEOF
5068
cat confdefs.h >>conftest.$ac_ext
5069
cat >>conftest.$ac_ext <<_ACEOF
5070
/* end confdefs.h. */
5072
# include <limits.h>
5074
# include <assert.h>
5078
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5079
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5081
grep -v '^ *+' conftest.er1 >conftest.err
5083
cat conftest.err >&5
5084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085
(exit $ac_status); } >/dev/null; then
5086
if test -s conftest.err; then
5087
ac_cpp_err=$ac_cxx_preproc_warn_flag
5088
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5095
if test -z "$ac_cpp_err"; then
5098
echo "$as_me: failed program was:" >&5
5099
sed 's/^/| /' conftest.$ac_ext >&5
5101
# Broken: fails on valid input.
5104
rm -f conftest.err conftest.$ac_ext
5106
# OK, works on sane cases. Now check whether non-existent headers
5107
# can be detected and how.
5108
cat >conftest.$ac_ext <<_ACEOF
5111
cat confdefs.h >>conftest.$ac_ext
5112
cat >>conftest.$ac_ext <<_ACEOF
5113
/* end confdefs.h. */
5114
#include <ac_nonexistent.h>
5116
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5117
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5119
grep -v '^ *+' conftest.er1 >conftest.err
5121
cat conftest.err >&5
5122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123
(exit $ac_status); } >/dev/null; then
5124
if test -s conftest.err; then
5125
ac_cpp_err=$ac_cxx_preproc_warn_flag
5126
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5133
if test -z "$ac_cpp_err"; then
5134
# Broken: success on invalid input.
5137
echo "$as_me: failed program was:" >&5
5138
sed 's/^/| /' conftest.$ac_ext >&5
5140
# Passes both tests.
5144
rm -f conftest.err conftest.$ac_ext
5147
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148
rm -f conftest.err conftest.$ac_ext
5149
if $ac_preproc_ok; then
5154
ac_cv_prog_CXXCPP=$CXXCPP
5157
CXXCPP=$ac_cv_prog_CXXCPP
5159
ac_cv_prog_CXXCPP=$CXXCPP
5161
echo "$as_me:$LINENO: result: $CXXCPP" >&5
5162
echo "${ECHO_T}$CXXCPP" >&6
5164
for ac_cxx_preproc_warn_flag in '' yes
5166
# Use a header file that comes with gcc, so configuring glibc
5167
# with a fresh cross-compiler works.
5168
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169
# <limits.h> exists even on freestanding compilers.
5170
# On the NeXT, cc -E runs the code through the compiler's parser,
5171
# not just through cpp. "Syntax error" is here to catch this case.
5172
cat >conftest.$ac_ext <<_ACEOF
5175
cat confdefs.h >>conftest.$ac_ext
5176
cat >>conftest.$ac_ext <<_ACEOF
5177
/* end confdefs.h. */
5179
# include <limits.h>
5181
# include <assert.h>
5185
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5186
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5188
grep -v '^ *+' conftest.er1 >conftest.err
5190
cat conftest.err >&5
5191
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192
(exit $ac_status); } >/dev/null; then
5193
if test -s conftest.err; then
5194
ac_cpp_err=$ac_cxx_preproc_warn_flag
5195
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5202
if test -z "$ac_cpp_err"; then
5205
echo "$as_me: failed program was:" >&5
5206
sed 's/^/| /' conftest.$ac_ext >&5
5208
# Broken: fails on valid input.
5211
rm -f conftest.err conftest.$ac_ext
5213
# OK, works on sane cases. Now check whether non-existent headers
5214
# can be detected and how.
5215
cat >conftest.$ac_ext <<_ACEOF
5218
cat confdefs.h >>conftest.$ac_ext
5219
cat >>conftest.$ac_ext <<_ACEOF
5220
/* end confdefs.h. */
5221
#include <ac_nonexistent.h>
5223
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5224
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5226
grep -v '^ *+' conftest.er1 >conftest.err
5228
cat conftest.err >&5
5229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230
(exit $ac_status); } >/dev/null; then
5231
if test -s conftest.err; then
5232
ac_cpp_err=$ac_cxx_preproc_warn_flag
5233
ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5240
if test -z "$ac_cpp_err"; then
5241
# Broken: success on invalid input.
5244
echo "$as_me: failed program was:" >&5
5245
sed 's/^/| /' conftest.$ac_ext >&5
5247
# Passes both tests.
5251
rm -f conftest.err conftest.$ac_ext
5254
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5255
rm -f conftest.err conftest.$ac_ext
5256
if $ac_preproc_ok; then
5259
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5260
See \`config.log' for more details." >&5
5261
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5262
See \`config.log' for more details." >&2;}
5263
{ (exit 1); exit 1; }; }
5267
ac_cpp='$CXXCPP $CPPFLAGS'
5268
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5274
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5275
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5276
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5277
if test -n "$ac_tool_prefix"; then
5278
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5280
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5281
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5282
echo "$as_me:$LINENO: checking for $ac_word" >&5
5283
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5284
if test "${ac_cv_prog_F77+set}" = set; then
5285
echo $ECHO_N "(cached) $ECHO_C" >&6
5287
if test -n "$F77"; then
5288
ac_cv_prog_F77="$F77" # Let the user override the test.
5290
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294
test -z "$as_dir" && as_dir=.
5295
for ac_exec_ext in '' $ac_executable_extensions; do
5296
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5297
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5298
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307
if test -n "$F77"; then
5308
echo "$as_me:$LINENO: result: $F77" >&5
5309
echo "${ECHO_T}$F77" >&6
5311
echo "$as_me:$LINENO: result: no" >&5
5312
echo "${ECHO_T}no" >&6
5315
test -n "$F77" && break
5318
if test -z "$F77"; then
5320
for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5322
# Extract the first word of "$ac_prog", so it can be a program name with args.
5323
set dummy $ac_prog; ac_word=$2
5324
echo "$as_me:$LINENO: checking for $ac_word" >&5
5325
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5326
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5327
echo $ECHO_N "(cached) $ECHO_C" >&6
5329
if test -n "$ac_ct_F77"; then
5330
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336
test -z "$as_dir" && as_dir=.
5337
for ac_exec_ext in '' $ac_executable_extensions; do
5338
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5339
ac_cv_prog_ac_ct_F77="$ac_prog"
5340
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5349
if test -n "$ac_ct_F77"; then
5350
echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5351
echo "${ECHO_T}$ac_ct_F77" >&6
5353
echo "$as_me:$LINENO: result: no" >&5
5354
echo "${ECHO_T}no" >&6
5357
test -n "$ac_ct_F77" && break
5364
# Provide some information about the compiler.
5365
echo "$as_me:5365:" \
5366
"checking for Fortran 77 compiler version" >&5
5367
ac_compiler=`set X $ac_compile; echo $2`
5368
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5369
(eval $ac_compiler --version </dev/null >&5) 2>&5
5371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372
(exit $ac_status); }
5373
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5374
(eval $ac_compiler -v </dev/null >&5) 2>&5
5376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377
(exit $ac_status); }
5378
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5379
(eval $ac_compiler -V </dev/null >&5) 2>&5
5381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382
(exit $ac_status); }
5385
# If we don't use `.F' as extension, the preprocessor is not run on the
5386
# input file. (Note that this only needs to work for GNU compilers.)
5389
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5390
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5391
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5392
echo $ECHO_N "(cached) $ECHO_C" >&6
5394
cat >conftest.$ac_ext <<_ACEOF
5402
rm -f conftest.$ac_objext
5403
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404
(eval $ac_compile) 2>conftest.er1
5406
grep -v '^ *+' conftest.er1 >conftest.err
5408
cat conftest.err >&5
5409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410
(exit $ac_status); } &&
5411
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416
(exit $ac_status); }; } &&
5417
{ ac_try='test -s conftest.$ac_objext'
5418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422
(exit $ac_status); }; }; then
5425
echo "$as_me: failed program was:" >&5
5426
sed 's/^/| /' conftest.$ac_ext >&5
5430
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5434
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5435
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5437
ac_test_FFLAGS=${FFLAGS+set}
5438
ac_save_FFLAGS=$FFLAGS
5440
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5441
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5442
if test "${ac_cv_prog_f77_g+set}" = set; then
5443
echo $ECHO_N "(cached) $ECHO_C" >&6
5446
cat >conftest.$ac_ext <<_ACEOF
5451
rm -f conftest.$ac_objext
5452
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5453
(eval $ac_compile) 2>conftest.er1
5455
grep -v '^ *+' conftest.er1 >conftest.err
5457
cat conftest.err >&5
5458
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459
(exit $ac_status); } &&
5460
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5461
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465
(exit $ac_status); }; } &&
5466
{ ac_try='test -s conftest.$ac_objext'
5467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471
(exit $ac_status); }; }; then
5472
ac_cv_prog_f77_g=yes
5474
echo "$as_me: failed program was:" >&5
5475
sed 's/^/| /' conftest.$ac_ext >&5
5479
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5482
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5483
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5484
if test "$ac_test_FFLAGS" = set; then
5485
FFLAGS=$ac_save_FFLAGS
5486
elif test $ac_cv_prog_f77_g = yes; then
5487
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5493
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5500
G77=`test $ac_compiler_gnu = yes && echo yes`
5502
ac_cpp='$CPP $CPPFLAGS'
5503
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5504
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5505
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5511
# find the maximum length of command line arguments
5512
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5513
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5514
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5515
echo $ECHO_N "(cached) $ECHO_C" >&6
5522
# On DJGPP, this test can blow up pretty badly due to problems in libc
5523
# (any single argument exceeding 2000 bytes causes a buffer overrun
5524
# during glob expansion). Even if it were fixed, the result of this
5525
# check would be larger than it should be.
5526
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5530
# Under GNU Hurd, this test is not required because there is
5531
# no limit to the length of command line arguments.
5532
# Libtool will interpret -1 as no limit whatsoever
5533
lt_cv_sys_max_cmd_len=-1;
5537
# On Win9x/ME, this test blows up -- it succeeds, but takes
5538
# about 5 minutes as the teststring grows exponentially.
5539
# Worse, since 9x/ME are not pre-emptively multitasking,
5540
# you end up with a "frozen" computer, even though with patience
5541
# the test eventually succeeds (with a max line length of 256k).
5542
# Instead, let's just punt: use the minimum linelength reported by
5543
# all of the supported platforms: 8192 (on NT/2K/XP).
5544
lt_cv_sys_max_cmd_len=8192;
5548
# On AmigaOS with pdksh, this test takes hours, literally.
5549
# So we just punt and use a minimum line length of 8192.
5550
lt_cv_sys_max_cmd_len=8192;
5554
# If test is not a shell built-in, we'll probably end up computing a
5555
# maximum length that is only half of the actual maximum length, but
5557
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5558
= "XX$testring") >/dev/null 2>&1 &&
5559
new_result=`expr "X$testring" : ".*" 2>&1` &&
5560
lt_cv_sys_max_cmd_len=$new_result &&
5561
test $i != 17 # 1/2 MB should be enough
5564
testring=$testring$testring
5567
# Add a significant safety factor because C++ compilers can tack on massive
5568
# amounts of additional arguments before passing them to the linker.
5569
# It appears as though 1/2 is a usable value.
5570
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5576
if test -n $lt_cv_sys_max_cmd_len ; then
5577
echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5578
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5580
echo "$as_me:$LINENO: result: none" >&5
5581
echo "${ECHO_T}none" >&6
5587
# Check for command to grab the raw symbol name followed by C symbol from nm.
5588
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5589
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5590
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5591
echo $ECHO_N "(cached) $ECHO_C" >&6
5594
# These are sane defaults that work on at least a few old systems.
5595
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5597
# Character class describing NM global symbol codes.
5598
symcode='[BCDEGRST]'
5600
# Regexp to match symbols that can be accessed directly from C.
5601
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5603
# Transform the above into a raw symbol and a C symbol.
5604
symxfrm='\1 \2\3 \3'
5606
# Transform an extracted symbol line into a proper C declaration
5607
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5609
# Transform an extracted symbol line into symbol name and symbol address
5610
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'"
5612
# Define system-specific variables.
5617
cygwin* | mingw* | pw32*)
5618
symcode='[ABCDGISTW]'
5620
hpux*) # Its linker distinguishes data from code symbols
5621
if test "$host_cpu" = ia64; then
5622
symcode='[ABCDEGRST]'
5624
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5625
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'"
5628
symcode='[BCDEGRST]'
5631
symcode='[BCDEGQRST]'
5641
# Handle CRLF in mingw tool chain
5645
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5649
# If we're using GNU nm, then use its standard symbol codes.
5650
case `$NM -V 2>&1` in
5651
*GNU* | *'with BFD'*)
5652
symcode='[ABCDGIRSTW]' ;;
5655
# Try without a prefix undercore, then with it.
5656
for ac_symprfx in "" "_"; do
5658
# Write the raw and C identifiers.
5659
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5661
# Check to see that the pipe works correctly.
5665
cat > conftest.$ac_ext <<EOF
5670
void nm_test_func(){}
5674
int main(){nm_test_var='a';nm_test_func();return(0);}
5677
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5678
(eval $ac_compile) 2>&5
5680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681
(exit $ac_status); }; then
5682
# Now try to grab the symbols.
5684
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5685
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688
(exit $ac_status); } && test -s "$nlist"; then
5689
# Try sorting and uniquifying the output.
5690
if sort "$nlist" | uniq > "$nlist"T; then
5691
mv -f "$nlist"T "$nlist"
5696
# Make sure that we snagged all the symbols we need.
5697
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5698
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5699
cat <<EOF > conftest.$ac_ext
5705
# Now generate the symbol file.
5706
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5708
cat <<EOF >> conftest.$ac_ext
5709
#if defined (__STDC__) && __STDC__
5710
# define lt_ptr_t void *
5712
# define lt_ptr_t char *
5716
/* The mapping between symbol names and symbols. */
5721
lt_preloaded_symbols[] =
5724
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5725
cat <<\EOF >> conftest.$ac_ext
5733
# Now try linking the two files.
5734
mv conftest.$ac_objext conftstm.$ac_objext
5735
lt_save_LIBS="$LIBS"
5736
lt_save_CFLAGS="$CFLAGS"
5737
LIBS="conftstm.$ac_objext"
5738
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5739
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5740
(eval $ac_link) 2>&5
5742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5746
LIBS="$lt_save_LIBS"
5747
CFLAGS="$lt_save_CFLAGS"
5749
echo "cannot find nm_test_func in $nlist" >&5
5752
echo "cannot find nm_test_var in $nlist" >&5
5755
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5758
echo "$progname: failed program was:" >&5
5759
cat conftest.$ac_ext >&5
5761
rm -f conftest* conftst*
5763
# Do not use the global_symbol_pipe unless it works.
5764
if test "$pipe_works" = yes; then
5767
lt_cv_sys_global_symbol_pipe=
5773
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5774
lt_cv_sys_global_symbol_to_cdecl=
5776
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5777
echo "$as_me:$LINENO: result: failed" >&5
5778
echo "${ECHO_T}failed" >&6
5780
echo "$as_me:$LINENO: result: ok" >&5
5781
echo "${ECHO_T}ok" >&6
5784
echo "$as_me:$LINENO: checking for objdir" >&5
5785
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5786
if test "${lt_cv_objdir+set}" = set; then
5787
echo $ECHO_N "(cached) $ECHO_C" >&6
5789
rm -f .libs 2>/dev/null
5790
mkdir .libs 2>/dev/null
5791
if test -d .libs; then
5794
# MS-DOS does not allow filenames that begin with a dot.
5797
rmdir .libs 2>/dev/null
5799
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5800
echo "${ECHO_T}$lt_cv_objdir" >&6
5801
objdir=$lt_cv_objdir
5809
# AIX sometimes has problems with the GCC collect2 program. For some
5810
# reason, if we set the COLLECT_NAMES environment variable, the problems
5811
# vanish in a puff of smoke.
5812
if test "X${COLLECT_NAMES+set}" != Xset; then
5814
export COLLECT_NAMES
5819
# Sed substitution that helps us do robust quoting. It backslashifies
5820
# metacharacters that are still active within double-quoted strings.
5821
Xsed='sed -e s/^X//'
5822
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5824
# Same as above, but do not quote variable references.
5825
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5827
# Sed substitution to delay expansion of an escaped shell variable in a
5828
# double_quote_subst'ed string.
5829
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5831
# Sed substitution to avoid accidental globbing in evaled expressions
5832
no_glob_subst='s/\*/\\\*/g'
5838
default_ofile=libtool
5839
can_build_shared=yes
5841
# All known linkers require a `.a' archive for static linking (except M$VC,
5842
# which needs '.lib').
5844
ltmain="$ac_aux_dir/ltmain.sh"
5845
ofile="$default_ofile"
5846
with_gnu_ld="$lt_cv_prog_gnu_ld"
5848
if test -n "$ac_tool_prefix"; then
5849
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5850
set dummy ${ac_tool_prefix}ar; ac_word=$2
5851
echo "$as_me:$LINENO: checking for $ac_word" >&5
5852
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5853
if test "${ac_cv_prog_AR+set}" = set; then
5854
echo $ECHO_N "(cached) $ECHO_C" >&6
5856
if test -n "$AR"; then
5857
ac_cv_prog_AR="$AR" # Let the user override the test.
5859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863
test -z "$as_dir" && as_dir=.
5864
for ac_exec_ext in '' $ac_executable_extensions; do
5865
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5866
ac_cv_prog_AR="${ac_tool_prefix}ar"
5867
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876
if test -n "$AR"; then
5877
echo "$as_me:$LINENO: result: $AR" >&5
5878
echo "${ECHO_T}$AR" >&6
5880
echo "$as_me:$LINENO: result: no" >&5
5881
echo "${ECHO_T}no" >&6
5885
if test -z "$ac_cv_prog_AR"; then
5887
# Extract the first word of "ar", so it can be a program name with args.
5888
set dummy ar; ac_word=$2
5889
echo "$as_me:$LINENO: checking for $ac_word" >&5
5890
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5891
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5892
echo $ECHO_N "(cached) $ECHO_C" >&6
5894
if test -n "$ac_ct_AR"; then
5895
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5897
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901
test -z "$as_dir" && as_dir=.
5902
for ac_exec_ext in '' $ac_executable_extensions; do
5903
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904
ac_cv_prog_ac_ct_AR="ar"
5905
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911
test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5914
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5915
if test -n "$ac_ct_AR"; then
5916
echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5917
echo "${ECHO_T}$ac_ct_AR" >&6
5919
echo "$as_me:$LINENO: result: no" >&5
5920
echo "${ECHO_T}no" >&6
5928
if test -n "$ac_tool_prefix"; then
5929
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5930
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5931
echo "$as_me:$LINENO: checking for $ac_word" >&5
5932
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5933
if test "${ac_cv_prog_RANLIB+set}" = set; then
5934
echo $ECHO_N "(cached) $ECHO_C" >&6
5936
if test -n "$RANLIB"; then
5937
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943
test -z "$as_dir" && as_dir=.
5944
for ac_exec_ext in '' $ac_executable_extensions; do
5945
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5946
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5947
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5955
RANLIB=$ac_cv_prog_RANLIB
5956
if test -n "$RANLIB"; then
5957
echo "$as_me:$LINENO: result: $RANLIB" >&5
5958
echo "${ECHO_T}$RANLIB" >&6
5960
echo "$as_me:$LINENO: result: no" >&5
5961
echo "${ECHO_T}no" >&6
5965
if test -z "$ac_cv_prog_RANLIB"; then
5966
ac_ct_RANLIB=$RANLIB
5967
# Extract the first word of "ranlib", so it can be a program name with args.
5968
set dummy ranlib; ac_word=$2
5969
echo "$as_me:$LINENO: checking for $ac_word" >&5
5970
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5971
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5972
echo $ECHO_N "(cached) $ECHO_C" >&6
5974
if test -n "$ac_ct_RANLIB"; then
5975
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981
test -z "$as_dir" && as_dir=.
5982
for ac_exec_ext in '' $ac_executable_extensions; do
5983
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984
ac_cv_prog_ac_ct_RANLIB="ranlib"
5985
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5994
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5995
if test -n "$ac_ct_RANLIB"; then
5996
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5997
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5999
echo "$as_me:$LINENO: result: no" >&5
6000
echo "${ECHO_T}no" >&6
6003
RANLIB=$ac_ct_RANLIB
6005
RANLIB="$ac_cv_prog_RANLIB"
6008
if test -n "$ac_tool_prefix"; then
6009
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6010
set dummy ${ac_tool_prefix}strip; ac_word=$2
6011
echo "$as_me:$LINENO: checking for $ac_word" >&5
6012
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6013
if test "${ac_cv_prog_STRIP+set}" = set; then
6014
echo $ECHO_N "(cached) $ECHO_C" >&6
6016
if test -n "$STRIP"; then
6017
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023
test -z "$as_dir" && as_dir=.
6024
for ac_exec_ext in '' $ac_executable_extensions; do
6025
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6026
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6027
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6035
STRIP=$ac_cv_prog_STRIP
6036
if test -n "$STRIP"; then
6037
echo "$as_me:$LINENO: result: $STRIP" >&5
6038
echo "${ECHO_T}$STRIP" >&6
6040
echo "$as_me:$LINENO: result: no" >&5
6041
echo "${ECHO_T}no" >&6
6045
if test -z "$ac_cv_prog_STRIP"; then
6047
# Extract the first word of "strip", so it can be a program name with args.
6048
set dummy strip; ac_word=$2
6049
echo "$as_me:$LINENO: checking for $ac_word" >&5
6050
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6051
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6052
echo $ECHO_N "(cached) $ECHO_C" >&6
6054
if test -n "$ac_ct_STRIP"; then
6055
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061
test -z "$as_dir" && as_dir=.
6062
for ac_exec_ext in '' $ac_executable_extensions; do
6063
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6064
ac_cv_prog_ac_ct_STRIP="strip"
6065
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6071
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6074
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6075
if test -n "$ac_ct_STRIP"; then
6076
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6077
echo "${ECHO_T}$ac_ct_STRIP" >&6
6079
echo "$as_me:$LINENO: result: no" >&5
6080
echo "${ECHO_T}no" >&6
6085
STRIP="$ac_cv_prog_STRIP"
6090
old_CFLAGS="$CFLAGS"
6092
# Set sane defaults for various variables
6093
test -z "$AR" && AR=ar
6094
test -z "$AR_FLAGS" && AR_FLAGS=cru
6095
test -z "$AS" && AS=as
6096
test -z "$CC" && CC=cc
6097
test -z "$LTCC" && LTCC=$CC
6098
test -z "$DLLTOOL" && DLLTOOL=dlltool
6099
test -z "$LD" && LD=ld
6100
test -z "$LN_S" && LN_S="ln -s"
6101
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6102
test -z "$NM" && NM=nm
6103
test -z "$SED" && SED=sed
6104
test -z "$OBJDUMP" && OBJDUMP=objdump
6105
test -z "$RANLIB" && RANLIB=:
6106
test -z "$STRIP" && STRIP=:
6107
test -z "$ac_objext" && ac_objext=o
6109
# Determine commands to create old-style static archives.
6110
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6111
old_postinstall_cmds='chmod 644 $oldlib'
6112
old_postuninstall_cmds=
6114
if test -n "$RANLIB"; then
6117
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6120
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6123
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6126
# Only perform the check for file, if the check method requires it
6127
case $deplibs_check_method in
6129
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6130
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6131
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6132
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6133
echo $ECHO_N "(cached) $ECHO_C" >&6
6137
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6140
lt_save_MAGIC_CMD="$MAGIC_CMD"
6141
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6142
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6143
for ac_dir in $ac_dummy; do
6145
test -z "$ac_dir" && ac_dir=.
6146
if test -f $ac_dir/${ac_tool_prefix}file; then
6147
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6148
if test -n "$file_magic_test_file"; then
6149
case $deplibs_check_method in
6151
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6152
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6153
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6154
$EGREP "$file_magic_regex" > /dev/null; then
6159
*** Warning: the command libtool uses to detect shared libraries,
6160
*** $file_magic_cmd, produces output that libtool cannot recognize.
6161
*** The result is that libtool may fail to recognize shared libraries
6162
*** as such. This will affect the creation of libtool libraries that
6163
*** depend on shared libraries, but programs linked with such libtool
6164
*** libraries will work regardless of this problem. Nevertheless, you
6165
*** may want to report the problem to your system manager and/or to
6166
*** bug-libtool@gnu.org
6176
MAGIC_CMD="$lt_save_MAGIC_CMD"
6181
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6182
if test -n "$MAGIC_CMD"; then
6183
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6184
echo "${ECHO_T}$MAGIC_CMD" >&6
6186
echo "$as_me:$LINENO: result: no" >&5
6187
echo "${ECHO_T}no" >&6
6190
if test -z "$lt_cv_path_MAGIC_CMD"; then
6191
if test -n "$ac_tool_prefix"; then
6192
echo "$as_me:$LINENO: checking for file" >&5
6193
echo $ECHO_N "checking for file... $ECHO_C" >&6
6194
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6195
echo $ECHO_N "(cached) $ECHO_C" >&6
6199
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6202
lt_save_MAGIC_CMD="$MAGIC_CMD"
6203
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6204
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6205
for ac_dir in $ac_dummy; do
6207
test -z "$ac_dir" && ac_dir=.
6208
if test -f $ac_dir/file; then
6209
lt_cv_path_MAGIC_CMD="$ac_dir/file"
6210
if test -n "$file_magic_test_file"; then
6211
case $deplibs_check_method in
6213
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6214
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6215
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6216
$EGREP "$file_magic_regex" > /dev/null; then
6221
*** Warning: the command libtool uses to detect shared libraries,
6222
*** $file_magic_cmd, produces output that libtool cannot recognize.
6223
*** The result is that libtool may fail to recognize shared libraries
6224
*** as such. This will affect the creation of libtool libraries that
6225
*** depend on shared libraries, but programs linked with such libtool
6226
*** libraries will work regardless of this problem. Nevertheless, you
6227
*** may want to report the problem to your system manager and/or to
6228
*** bug-libtool@gnu.org
6238
MAGIC_CMD="$lt_save_MAGIC_CMD"
6243
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6244
if test -n "$MAGIC_CMD"; then
6245
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6246
echo "${ECHO_T}$MAGIC_CMD" >&6
6248
echo "$as_me:$LINENO: result: no" >&5
6249
echo "${ECHO_T}no" >&6
6264
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6265
if test "${enable_libtool_lock+set}" = set; then
6266
enableval="$enable_libtool_lock"
6269
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6272
# Check whether --with-pic or --without-pic was given.
6273
if test "${with_pic+set}" = set; then
6279
test -z "$pic_mode" && pic_mode=default
6281
# Use C for the default configuration in the libtool script
6285
ac_cpp='$CPP $CPPFLAGS'
6286
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6287
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6288
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6291
# Source file extension for C test sources.
6294
# Object file extension for compiled C test sources.
6298
# Code to be used in simple compile tests
6299
lt_simple_compile_test_code="int some_variable = 0;\n"
6301
# Code to be used in simple link tests
6302
lt_simple_link_test_code='int main(){return(0);}\n'
6305
# If no C compiler was specified, use CC.
6308
# Allow CC to be a program name with arguments.
6313
# Check for any special shared library compilation flags.
6316
if test "$GCC" = no; then
6319
lt_prog_cc_shlib='-belf'
6323
if test -n "$lt_prog_cc_shlib"; then
6324
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6325
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6326
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6328
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6329
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6330
lt_cv_prog_cc_can_build_shared=no
6336
# Check to make sure the static flag actually works.
6338
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6339
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6340
if test "${lt_prog_compiler_static_works+set}" = set; then
6341
echo $ECHO_N "(cached) $ECHO_C" >&6
6343
lt_prog_compiler_static_works=no
6344
save_LDFLAGS="$LDFLAGS"
6345
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6346
printf "$lt_simple_link_test_code" > conftest.$ac_ext
6347
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6348
# The compiler can only warn and ignore the option if not recognized
6349
# So say no if there are warnings
6350
if test -s conftest.err; then
6351
# Append any errors to the config.log.
6352
cat conftest.err 1>&5
6354
lt_prog_compiler_static_works=yes
6358
LDFLAGS="$save_LDFLAGS"
6361
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6362
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6364
if test x"$lt_prog_compiler_static_works" = xyes; then
6367
lt_prog_compiler_static=
6373
lt_prog_compiler_no_builtin_flag=
6375
if test "$GCC" = yes; then
6376
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6379
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6380
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6381
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6382
echo $ECHO_N "(cached) $ECHO_C" >&6
6384
lt_cv_prog_compiler_rtti_exceptions=no
6385
ac_outfile=conftest.$ac_objext
6386
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6387
lt_compiler_flag="-fno-rtti -fno-exceptions"
6388
# Insert the option either (1) after the last *FLAGS variable, or
6389
# (2) before a word containing "conftest.", or (3) at the end.
6390
# Note that $ac_compile itself does not contain backslashes and begins
6391
# with a dollar sign (not a hyphen), so the echo should work correctly.
6392
# The option is referenced via a variable to avoid confusing sed.
6393
lt_compile=`echo "$ac_compile" | $SED \
6394
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6395
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6396
-e 's:$: $lt_compiler_flag:'`
6397
(eval echo "\"\$as_me:6397: $lt_compile\"" >&5)
6398
(eval "$lt_compile" 2>conftest.err)
6400
cat conftest.err >&5
6401
echo "$as_me:6401: \$? = $ac_status" >&5
6402
if (exit $ac_status) && test -s "$ac_outfile"; then
6403
# The compiler can only warn and ignore the option if not recognized
6404
# So say no if there are warnings
6405
if test ! -s conftest.err; then
6406
lt_cv_prog_compiler_rtti_exceptions=yes
6412
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6413
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6415
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6416
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6423
lt_prog_compiler_wl=
6424
lt_prog_compiler_pic=
6425
lt_prog_compiler_static=
6427
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6428
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6430
if test "$GCC" = yes; then
6431
lt_prog_compiler_wl='-Wl,'
6432
lt_prog_compiler_static='-static'
6436
# All AIX code is PIC.
6437
if test "$host_cpu" = ia64; then
6438
# AIX 5 now supports IA64 processor
6439
lt_prog_compiler_static='-Bstatic'
6444
# FIXME: we need at least 68020 code to build shared libraries, but
6445
# adding the `-m68020' flag to GCC prevents building anything better,
6447
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6450
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6451
# PIC is the default for these OSes.
6454
mingw* | pw32* | os2*)
6455
# This hack is so that the source file can tell whether it is being
6456
# built for inclusion in a dll (and should export symbols for example).
6457
lt_prog_compiler_pic='-DDLL_EXPORT'
6460
darwin* | rhapsody*)
6461
# PIC is the default on this platform
6462
# Common symbols not allowed in MH_DYLIB files
6463
lt_prog_compiler_pic='-fno-common'
6467
# Just because we use GCC doesn't mean we suddenly get shared libraries
6468
# on systems that don't support them.
6469
lt_prog_compiler_can_build_shared=no
6474
if test -d /usr/nec; then
6475
lt_prog_compiler_pic=-Kconform_pic
6480
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6487
lt_prog_compiler_pic='-fPIC'
6493
lt_prog_compiler_pic='-fPIC'
6497
# PORTME Check for flag to pass linker flags through the system compiler.
6500
lt_prog_compiler_wl='-Wl,'
6501
if test "$host_cpu" = ia64; then
6502
# AIX 5 now supports IA64 processor
6503
lt_prog_compiler_static='-Bstatic'
6505
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6509
mingw* | pw32* | os2*)
6510
# This hack is so that the source file can tell whether it is being
6511
# built for inclusion in a dll (and should export symbols for example).
6512
lt_prog_compiler_pic='-DDLL_EXPORT'
6515
hpux9* | hpux10* | hpux11*)
6516
lt_prog_compiler_wl='-Wl,'
6517
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6524
lt_prog_compiler_pic='+Z'
6527
# Is there a better lt_prog_compiler_static that works with the bundled CC?
6528
lt_prog_compiler_static='${wl}-a ${wl}archive'
6531
irix5* | irix6* | nonstopux*)
6532
lt_prog_compiler_wl='-Wl,'
6533
# PIC (with -KPIC) is the default.
6534
lt_prog_compiler_static='-non_shared'
6538
lt_prog_compiler_pic='-KPIC'
6539
lt_prog_compiler_static='-Bstatic'
6545
lt_prog_compiler_wl='-Wl,'
6546
lt_prog_compiler_pic='-KPIC'
6547
lt_prog_compiler_static='-static'
6550
lt_prog_compiler_wl='-Wl,'
6551
# All Alpha code is PIC.
6552
lt_prog_compiler_static='-non_shared'
6557
osf3* | osf4* | osf5*)
6558
lt_prog_compiler_wl='-Wl,'
6559
# All OSF/1 code is PIC.
6560
lt_prog_compiler_static='-non_shared'
6564
lt_prog_compiler_pic='-Kpic'
6565
lt_prog_compiler_static='-dn'
6569
lt_prog_compiler_wl='-Wl,'
6570
lt_prog_compiler_pic='-KPIC'
6571
lt_prog_compiler_static='-Bstatic'
6575
lt_prog_compiler_wl='-Qoption ld '
6576
lt_prog_compiler_pic='-PIC'
6577
lt_prog_compiler_static='-Bstatic'
6580
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6581
lt_prog_compiler_wl='-Wl,'
6582
lt_prog_compiler_pic='-KPIC'
6583
lt_prog_compiler_static='-Bstatic'
6587
if test -d /usr/nec ;then
6588
lt_prog_compiler_pic='-Kconform_pic'
6589
lt_prog_compiler_static='-Bstatic'
6594
lt_prog_compiler_pic='-pic'
6595
lt_prog_compiler_static='-Bstatic'
6599
lt_prog_compiler_can_build_shared=no
6604
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6605
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6608
# Check to make sure the PIC flag actually works.
6610
if test -n "$lt_prog_compiler_pic"; then
6612
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6613
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6614
if test "${lt_prog_compiler_pic_works+set}" = set; then
6615
echo $ECHO_N "(cached) $ECHO_C" >&6
6617
lt_prog_compiler_pic_works=no
6618
ac_outfile=conftest.$ac_objext
6619
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6620
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6621
# Insert the option either (1) after the last *FLAGS variable, or
6622
# (2) before a word containing "conftest.", or (3) at the end.
6623
# Note that $ac_compile itself does not contain backslashes and begins
6624
# with a dollar sign (not a hyphen), so the echo should work correctly.
6625
# The option is referenced via a variable to avoid confusing sed.
6626
lt_compile=`echo "$ac_compile" | $SED \
6627
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6628
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6629
-e 's:$: $lt_compiler_flag:'`
6630
(eval echo "\"\$as_me:6630: $lt_compile\"" >&5)
6631
(eval "$lt_compile" 2>conftest.err)
6633
cat conftest.err >&5
6634
echo "$as_me:6634: \$? = $ac_status" >&5
6635
if (exit $ac_status) && test -s "$ac_outfile"; then
6636
# The compiler can only warn and ignore the option if not recognized
6637
# So say no if there are warnings
6638
if test ! -s conftest.err; then
6639
lt_prog_compiler_pic_works=yes
6645
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6646
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6648
if test x"$lt_prog_compiler_pic_works" = xyes; then
6649
case $lt_prog_compiler_pic in
6651
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6654
lt_prog_compiler_pic=
6655
lt_prog_compiler_can_build_shared=no
6660
# For platforms which do not support PIC, -DPIC is meaningless:
6662
lt_prog_compiler_pic=
6665
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6669
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6670
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6671
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6672
echo $ECHO_N "(cached) $ECHO_C" >&6
6674
lt_cv_prog_compiler_c_o=no
6675
$rm -r conftest 2>/dev/null
6679
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6681
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6682
# that will create temporary files in the current directory regardless of
6683
# the output directory. Thus, making CWD read-only will cause this test
6684
# to fail, enabling locking or at least warning the user not to do parallel
6688
lt_compiler_flag="-o out/conftest2.$ac_objext"
6689
# Insert the option either (1) after the last *FLAGS variable, or
6690
# (2) before a word containing "conftest.", or (3) at the end.
6691
# Note that $ac_compile itself does not contain backslashes and begins
6692
# with a dollar sign (not a hyphen), so the echo should work correctly.
6693
lt_compile=`echo "$ac_compile" | $SED \
6694
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6695
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6696
-e 's:$: $lt_compiler_flag:'`
6697
(eval echo "\"\$as_me:6697: $lt_compile\"" >&5)
6698
(eval "$lt_compile" 2>out/conftest.err)
6700
cat out/conftest.err >&5
6701
echo "$as_me:6701: \$? = $ac_status" >&5
6702
if (exit $ac_status) && test -s out/conftest2.$ac_objext
6704
# The compiler can only warn and ignore the option if not recognized
6705
# So say no if there are warnings
6706
if test ! -s out/conftest.err; then
6707
lt_cv_prog_compiler_c_o=yes
6712
# SGI C++ compiler will create directory out/ii_files/ for
6713
# template instantiation
6714
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6715
$rm out/* && rmdir out
6721
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6722
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6725
hard_links="nottested"
6726
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6727
# do not overwrite the value of need_locks provided by the user
6728
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6729
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6732
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6734
ln conftest.a conftest.b 2>&5 || hard_links=no
6735
ln conftest.a conftest.b 2>/dev/null && hard_links=no
6736
echo "$as_me:$LINENO: result: $hard_links" >&5
6737
echo "${ECHO_T}$hard_links" >&6
6738
if test "$hard_links" = no; then
6739
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6740
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6747
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6748
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6751
allow_undefined_flag=
6752
enable_shared_with_static_runtimes=no
6754
archive_expsym_cmds=
6755
old_archive_From_new_cmds=
6756
old_archive_from_expsyms_cmds=
6757
export_dynamic_flag_spec=
6758
whole_archive_flag_spec=
6759
thread_safe_flag_spec=
6760
hardcode_libdir_flag_spec=
6761
hardcode_libdir_flag_spec_ld=
6762
hardcode_libdir_separator=
6765
hardcode_shlibpath_var=unsupported
6766
link_all_deplibs=unknown
6767
hardcode_automatic=no
6770
always_export_symbols=no
6771
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6772
# include_expsyms should be a list of space-separated symbols to be *always*
6773
# included in the symbol list
6775
# exclude_expsyms can be an extended regexp of symbols to exclude
6776
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6777
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6778
# as well as any symbol that contains `d'.
6779
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6780
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6781
# platforms (ab)use it in PIC code, but their linkers get confused if
6782
# the symbol is explicitly referenced. Since portable code cannot
6783
# rely on this symbol name, it's probably fine to never include it in
6784
# preloaded symbol tables.
6785
extract_expsyms_cmds=
6788
cygwin* | mingw* | pw32*)
6789
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6790
# When not using gcc, we currently assume that we are using
6791
# Microsoft Visual C++.
6792
if test "$GCC" != yes; then
6802
if test "$with_gnu_ld" = yes; then
6803
# If archive_cmds runs LD, not CC, wlarc should be empty
6806
# See if GNU ld supports shared libraries.
6808
aix3* | aix4* | aix5*)
6809
# On AIX/PPC, the GNU linker is very broken
6810
if test "$host_cpu" != ia64; then
6814
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6815
*** to be unable to reliably create shared libraries on AIX.
6816
*** Therefore, libtool is disabling shared libraries support. If you
6817
*** really care for shared libraries, you may want to modify your PATH
6818
*** so that a non-GNU linker is found, and then restart.
6825
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)'
6826
hardcode_libdir_flag_spec='-L$libdir'
6827
hardcode_minus_L=yes
6829
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6830
# that the semantics of dynamic libraries on AmigaOS, at least up
6831
# to version 4, is to share data among multiple programs linked
6832
# with the same dynamic library. Since this doesn't match the
6833
# behavior of shared libraries on other platforms, we can't use
6839
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6840
allow_undefined_flag=unsupported
6841
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6842
# support --undefined. This deserves some investigation. FIXME
6843
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6849
cygwin* | mingw* | pw32*)
6850
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6851
# as there is no search path for DLLs.
6852
hardcode_libdir_flag_spec='-L$libdir'
6853
allow_undefined_flag=unsupported
6854
always_export_symbols=no
6855
enable_shared_with_static_runtimes=yes
6856
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6858
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6859
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6860
# If the export-symbols file already is a .def file (1st line
6861
# is EXPORTS), use it as is; otherwise, prepend...
6862
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6863
cp $export_symbols $output_objdir/$soname.def;
6865
echo EXPORTS > $output_objdir/$soname.def;
6866
cat $export_symbols >> $output_objdir/$soname.def;
6868
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6875
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6876
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6879
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6880
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6885
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6889
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6890
*** create shared libraries on Solaris systems. Therefore, libtool
6891
*** is disabling shared libraries support. We urge you to upgrade GNU
6892
*** binutils to release 2.9.1 or newer. Another option is to modify
6893
*** your PATH or compiler configuration so that the native linker is
6894
*** used, and then restart.
6897
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6898
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6899
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6906
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6909
hardcode_shlibpath_var=no
6913
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6914
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6915
archive_cmds="$tmp_archive_cmds"
6916
supports_anon_versioning=no
6917
case `$LD -v 2>/dev/null` in
6918
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6919
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6920
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6921
*\ 2.11.*) ;; # other 2.11 versions
6922
*) supports_anon_versioning=yes ;;
6924
if test $supports_anon_versioning = yes; then
6925
archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6926
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6927
$echo "local: *; };" >> $output_objdir/$libname.ver~
6928
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6930
archive_expsym_cmds="$tmp_archive_cmds"
6938
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6939
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6940
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6947
if test "$ld_shlibs" = yes; then
6948
runpath_var=LD_RUN_PATH
6949
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6950
export_dynamic_flag_spec='${wl}--export-dynamic'
6951
# ancient GNU ld didn't support --whole-archive et. al.
6952
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6953
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6955
whole_archive_flag_spec=
6959
# PORTME fill in a description of your system's linker (not GNU ld)
6962
allow_undefined_flag=unsupported
6963
always_export_symbols=yes
6964
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'
6965
# Note: this linker hardcodes the directories in LIBPATH if there
6966
# are no directories specified by -L.
6967
hardcode_minus_L=yes
6968
if test "$GCC" = yes && test -z "$link_static_flag"; then
6969
# Neither direct hardcoding nor static linking is supported with a
6971
hardcode_direct=unsupported
6976
if test "$host_cpu" = ia64; then
6977
# On IA64, the linker does run time linking by default, so we don't
6978
# have to do anything special.
6979
aix_use_runtimelinking=no
6980
exp_sym_flag='-Bexport'
6983
# If we're using GNU nm, then we don't want the "-C" option.
6984
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6985
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6986
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'
6988
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'
6990
aix_use_runtimelinking=no
6992
# Test if we are trying to use run time linking or normal
6993
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6994
# need to do runtime linking.
6995
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6996
for ld_flag in $LDFLAGS; do
6997
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6998
aix_use_runtimelinking=yes
7004
exp_sym_flag='-bexport'
7005
no_entry_flag='-bnoentry'
7008
# When large executables or shared objects are built, AIX ld can
7009
# have problems creating the table of contents. If linking a library
7010
# or program results in "error TOC overflow" add -mminimal-toc to
7011
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7012
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7016
hardcode_libdir_separator=':'
7017
link_all_deplibs=yes
7019
if test "$GCC" = yes; then
7020
case $host_os in aix4.012|aix4.012.*)
7021
# We only want to do this on AIX 4.2 and lower, the check
7022
# below for broken collect2 doesn't work under 4.3+
7023
collect2name=`${CC} -print-prog-name=collect2`
7024
if test -f "$collect2name" && \
7025
strings "$collect2name" | grep resolve_lib_name >/dev/null
7027
# We have reworked collect2
7030
# We have old collect2
7031
hardcode_direct=unsupported
7032
# It fails to find uninstalled libraries when the uninstalled
7033
# path is not listed in the libpath. Setting hardcode_minus_L
7034
# to unsupported forces relinking
7035
hardcode_minus_L=yes
7036
hardcode_libdir_flag_spec='-L$libdir'
7037
hardcode_libdir_separator=
7040
shared_flag='-shared'
7043
if test "$host_cpu" = ia64; then
7044
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7045
# chokes on -Wl,-G. The following line is correct:
7048
if test "$aix_use_runtimelinking" = yes; then
7049
shared_flag='${wl}-G'
7051
shared_flag='${wl}-bM:SRE'
7056
# It seems that -bexpall does not export symbols beginning with
7057
# underscore (_), so it is better to generate a list of symbols to export.
7058
always_export_symbols=yes
7059
if test "$aix_use_runtimelinking" = yes; then
7060
# Warning - without using the other runtime loading flags (-brtl),
7061
# -berok will link without error, but may produce a broken library.
7062
allow_undefined_flag='-berok'
7063
# Determine the default libpath from the value encoded in an empty executable.
7064
cat >conftest.$ac_ext <<_ACEOF
7067
cat confdefs.h >>conftest.$ac_ext
7068
cat >>conftest.$ac_ext <<_ACEOF
7069
/* end confdefs.h. */
7079
rm -f conftest.$ac_objext conftest$ac_exeext
7080
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081
(eval $ac_link) 2>conftest.er1
7083
grep -v '^ *+' conftest.er1 >conftest.err
7085
cat conftest.err >&5
7086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087
(exit $ac_status); } &&
7088
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093
(exit $ac_status); }; } &&
7094
{ ac_try='test -s conftest$ac_exeext'
7095
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099
(exit $ac_status); }; }; then
7101
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7103
# Check for a 64-bit object if we didn't find anything.
7104
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; }
7107
echo "$as_me: failed program was:" >&5
7108
sed 's/^/| /' conftest.$ac_ext >&5
7111
rm -f conftest.err conftest.$ac_objext \
7112
conftest$ac_exeext conftest.$ac_ext
7113
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7115
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7116
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"
7118
if test "$host_cpu" = ia64; then
7119
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7120
allow_undefined_flag="-z nodefs"
7121
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"
7123
# Determine the default libpath from the value encoded in an empty executable.
7124
cat >conftest.$ac_ext <<_ACEOF
7127
cat confdefs.h >>conftest.$ac_ext
7128
cat >>conftest.$ac_ext <<_ACEOF
7129
/* end confdefs.h. */
7139
rm -f conftest.$ac_objext conftest$ac_exeext
7140
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7141
(eval $ac_link) 2>conftest.er1
7143
grep -v '^ *+' conftest.er1 >conftest.err
7145
cat conftest.err >&5
7146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147
(exit $ac_status); } &&
7148
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153
(exit $ac_status); }; } &&
7154
{ ac_try='test -s conftest$ac_exeext'
7155
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159
(exit $ac_status); }; }; then
7161
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7163
# Check for a 64-bit object if we didn't find anything.
7164
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; }
7167
echo "$as_me: failed program was:" >&5
7168
sed 's/^/| /' conftest.$ac_ext >&5
7171
rm -f conftest.err conftest.$ac_objext \
7172
conftest$ac_exeext conftest.$ac_ext
7173
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7175
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7176
# Warning - without using the other run time loading flags,
7177
# -berok will link without error, but may produce a broken library.
7178
no_undefined_flag=' ${wl}-bernotok'
7179
allow_undefined_flag=' ${wl}-berok'
7180
# -bexpall does not export symbols beginning with underscore (_)
7181
always_export_symbols=yes
7182
# Exported symbols can be pulled into shared objects from archives
7183
whole_archive_flag_spec=' '
7184
archive_cmds_need_lc=yes
7185
# This is similar to how AIX traditionally builds it's shared libraries.
7186
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'
7192
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)'
7193
hardcode_libdir_flag_spec='-L$libdir'
7194
hardcode_minus_L=yes
7195
# see comment about different semantics on the GNU ld section
7200
export_dynamic_flag_spec=-rdynamic
7203
cygwin* | mingw* | pw32*)
7204
# When not using gcc, we currently assume that we are using
7205
# Microsoft Visual C++.
7206
# hardcode_libdir_flag_spec is actually meaningless, as there is
7207
# no search path for DLLs.
7208
hardcode_libdir_flag_spec=' '
7209
allow_undefined_flag=unsupported
7210
# Tell ltmain to make .lib files, not .a files.
7212
# Tell ltmain to make .dll files, not .so files.
7214
# FIXME: Setting linknames here is a bad hack.
7215
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7216
# The linker will automatically build a .lib file if we build a DLL.
7217
old_archive_From_new_cmds='true'
7218
# FIXME: Should let the user specify the lib program.
7219
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7220
fix_srcfile_path='`cygpath -w "$srcfile"`'
7221
enable_shared_with_static_runtimes=yes
7224
darwin* | rhapsody*)
7225
if test "$GXX" = yes ; then
7226
archive_cmds_need_lc=no
7228
rhapsody* | darwin1.[012])
7229
allow_undefined_flag='-undefined suppress'
7232
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7233
allow_undefined_flag='-flat_namespace -undefined suppress'
7235
case ${MACOSX_DEPLOYMENT_TARGET} in
7237
allow_undefined_flag='-flat_namespace -undefined suppress'
7240
allow_undefined_flag='-undefined dynamic_lookup'
7246
lt_int_apple_cc_single_mod=no
7247
output_verbose_link_cmd='echo'
7248
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7249
lt_int_apple_cc_single_mod=yes
7251
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7252
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7254
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'
7256
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7257
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7258
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7259
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}'
7261
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}'
7263
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}'
7265
hardcode_automatic=yes
7266
hardcode_shlibpath_var=unsupported
7267
whole_archive_flag_spec='-all_load $convenience'
7268
link_all_deplibs=yes
7275
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7276
hardcode_libdir_flag_spec='-L$libdir'
7277
hardcode_shlibpath_var=no
7284
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7285
# support. Future versions do this automatically, but an explicit c++rt0.o
7286
# does not break anything, and helps significantly (at the cost of a little
7289
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7290
hardcode_libdir_flag_spec='-R$libdir'
7292
hardcode_shlibpath_var=no
7295
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
7297
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7299
hardcode_minus_L=yes
7300
hardcode_shlibpath_var=no
7303
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7304
freebsd* | kfreebsd*-gnu)
7305
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7306
hardcode_libdir_flag_spec='-R$libdir'
7308
hardcode_shlibpath_var=no
7312
if test "$GCC" = yes; then
7313
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'
7315
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'
7317
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7318
hardcode_libdir_separator=:
7321
# hardcode_minus_L: Not really in the search PATH,
7322
# but as the default location of the library.
7323
hardcode_minus_L=yes
7324
export_dynamic_flag_spec='${wl}-E'
7328
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7331
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7334
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7340
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7343
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7347
if test "$with_gnu_ld" = no; then
7350
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7351
hardcode_libdir_flag_spec_ld='+b $libdir'
7352
hardcode_libdir_separator=:
7354
hardcode_shlibpath_var=no
7357
hardcode_libdir_flag_spec='-L$libdir'
7359
hardcode_shlibpath_var=no
7361
# hardcode_minus_L: Not really in the search PATH,
7362
# but as the default location of the library.
7363
hardcode_minus_L=yes
7366
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7367
hardcode_libdir_separator=:
7369
export_dynamic_flag_spec='${wl}-E'
7371
# hardcode_minus_L: Not really in the search PATH,
7372
# but as the default location of the library.
7373
hardcode_minus_L=yes
7379
irix5* | irix6* | nonstopux*)
7380
if test "$GCC" = yes; then
7381
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'
7383
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'
7384
hardcode_libdir_flag_spec_ld='-rpath $libdir'
7386
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7387
hardcode_libdir_separator=:
7388
link_all_deplibs=yes
7392
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7393
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7395
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7397
hardcode_libdir_flag_spec='-R$libdir'
7399
hardcode_shlibpath_var=no
7403
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7405
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7406
hardcode_libdir_separator=:
7407
hardcode_shlibpath_var=no
7412
hardcode_shlibpath_var=no
7413
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7414
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7415
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7416
export_dynamic_flag_spec='${wl}-E'
7419
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7420
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7421
hardcode_libdir_flag_spec='-R$libdir'
7424
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7425
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7432
hardcode_libdir_flag_spec='-L$libdir'
7433
hardcode_minus_L=yes
7434
allow_undefined_flag=unsupported
7435
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'
7436
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7440
if test "$GCC" = yes; then
7441
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7442
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'
7444
allow_undefined_flag=' -expect_unresolved \*'
7445
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'
7447
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7448
hardcode_libdir_separator=:
7451
osf4* | osf5*) # as osf3* with the addition of -msym flag
7452
if test "$GCC" = yes; then
7453
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7454
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'
7455
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7457
allow_undefined_flag=' -expect_unresolved \*'
7458
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'
7459
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7460
$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'
7462
# Both c and cxx compiler support -rpath directly
7463
hardcode_libdir_flag_spec='-rpath $libdir'
7465
hardcode_libdir_separator=:
7469
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7470
hardcode_shlibpath_var=no
7471
export_dynamic_flag_spec='${wl}-Bexport'
7472
runpath_var=LD_RUN_PATH
7473
hardcode_runpath_var=yes
7477
no_undefined_flag=' -z text'
7478
if test "$GCC" = yes; then
7479
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7480
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7481
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7483
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7484
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7485
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7487
hardcode_libdir_flag_spec='-R$libdir'
7488
hardcode_shlibpath_var=no
7490
solaris2.[0-5] | solaris2.[0-5].*) ;;
7491
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
7492
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7494
link_all_deplibs=yes
7498
if test "x$host_vendor" = xsequent; then
7499
# Use $CC to link under sequent, because it throws in some extra .o
7500
# files that make .init and .fini sections work.
7501
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7503
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7505
hardcode_libdir_flag_spec='-L$libdir'
7507
hardcode_minus_L=yes
7508
hardcode_shlibpath_var=no
7512
case $host_vendor in
7514
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7515
hardcode_direct=yes # is this really true???
7518
## LD is ld it makes a PLAMLIB
7519
## CC just makes a GrossModule.
7520
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7521
reload_cmds='$CC -r -o $output$reload_objs'
7525
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7526
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7529
runpath_var='LD_RUN_PATH'
7530
hardcode_shlibpath_var=no
7534
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7535
hardcode_shlibpath_var=no
7536
export_dynamic_flag_spec='-Bexport'
7540
if test -d /usr/nec; then
7541
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7542
hardcode_shlibpath_var=no
7543
runpath_var=LD_RUN_PATH
7544
hardcode_runpath_var=yes
7550
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7553
hardcode_shlibpath_var=no
7554
hardcode_runpath_var=yes
7555
runpath_var=LD_RUN_PATH
7558
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7559
no_undefined_flag='${wl}-z ${wl}text'
7560
if test "$GCC" = yes; then
7561
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7563
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7565
runpath_var='LD_RUN_PATH'
7566
hardcode_shlibpath_var=no
7570
no_undefined_flag=' -z text'
7571
# $CC -shared without GNU ld will not create a library from C++
7572
# object files and a static libstdc++, better avoid it by now
7573
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7574
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7575
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7576
hardcode_libdir_flag_spec=
7577
hardcode_shlibpath_var=no
7578
runpath_var='LD_RUN_PATH'
7582
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7583
hardcode_libdir_flag_spec='-L$libdir'
7584
hardcode_shlibpath_var=no
7593
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7594
echo "${ECHO_T}$ld_shlibs" >&6
7595
test "$ld_shlibs" = no && can_build_shared=no
7597
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7598
if test "$GCC" = yes; then
7599
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7603
# Do we need to explicitly link libc?
7605
case "x$archive_cmds_need_lc" in
7607
# Assume -lc should be added
7608
archive_cmds_need_lc=yes
7610
if test "$enable_shared" = yes && test "$GCC" = yes; then
7611
case $archive_cmds in
7613
# FIXME: we may have to deal with multi-command sequences.
7616
# Test whether the compiler implicitly links with -lc since on some
7617
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7618
# to ld, don't add -lc before -lgcc.
7619
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7620
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7622
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7624
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625
(eval $ac_compile) 2>&5
7627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628
(exit $ac_status); } 2>conftest.err; then
7631
libobjs=conftest.$ac_objext
7633
wl=$lt_prog_compiler_wl
7639
lt_save_allow_undefined_flag=$allow_undefined_flag
7640
allow_undefined_flag=
7641
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7642
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645
(exit $ac_status); }
7647
archive_cmds_need_lc=no
7649
archive_cmds_need_lc=yes
7651
allow_undefined_flag=$lt_save_allow_undefined_flag
7653
cat conftest.err 1>&5
7656
echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7657
echo "${ECHO_T}$archive_cmds_need_lc" >&6
7664
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7665
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7667
libname_spec='lib$name'
7675
shlibpath_overrides_runpath=unknown
7677
dynamic_linker="$host_os ld.so"
7678
sys_lib_dlsearch_path_spec="/lib /usr/lib"
7679
if test "$GCC" = yes; then
7680
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7681
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7682
# if the path contains ";" then we assume it to be the separator
7683
# otherwise default to the standard path separator (i.e. ":") - it is
7684
# assumed that no part of a normal pathname contains ";" but that should
7685
# okay in the real world where ";" in dirpaths is itself problematic.
7686
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7688
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7691
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7693
need_lib_prefix=unknown
7694
hardcode_into_libs=no
7696
# when you set need_version to no, make sure it does not cause -set_version
7697
# flags to be left without arguments
7698
need_version=unknown
7703
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7704
shlibpath_var=LIBPATH
7706
# AIX 3 has no versioning support, so we append a major version to the name.
7707
soname_spec='${libname}${release}${shared_ext}$major'
7714
hardcode_into_libs=yes
7715
if test "$host_cpu" = ia64; then
7716
# AIX 5 supports IA64
7717
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7718
shlibpath_var=LD_LIBRARY_PATH
7720
# With GCC up to 2.95.x, collect2 would create an import file
7721
# for dependence libraries. The import file would start with
7722
# the line `#! .'. This would cause the generated library to
7723
# depend on `.', always an invalid library. This was fixed in
7724
# development snapshots of GCC prior to 3.0.
7726
aix4 | aix4.[01] | aix4.[01].*)
7727
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7729
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7736
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7737
# soname into executable. Probably we can add versioning support to
7738
# collect2, so additional links can be useful in future.
7739
if test "$aix_use_runtimelinking" = yes; then
7740
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
7741
# instead of lib<name>.a to let people know that these are not
7742
# typical AIX shared libraries.
7743
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7745
# We preserve .a as extension for shared libraries through AIX4.2
7746
# and later when we are not doing run time linking.
7747
library_names_spec='${libname}${release}.a $libname.a'
7748
soname_spec='${libname}${release}${shared_ext}$major'
7750
shlibpath_var=LIBPATH
7755
library_names_spec='$libname.ixlibrary $libname.a'
7756
# Create ${libname}_ixlibrary.a entries in /sys/libs.
7757
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'
7761
library_names_spec='${libname}${shared_ext}'
7762
dynamic_linker="$host_os ld.so"
7763
shlibpath_var=LIBRARY_PATH
7769
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7770
soname_spec='${libname}${release}${shared_ext}$major'
7771
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7772
shlibpath_var=LD_LIBRARY_PATH
7773
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7774
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7775
# the default ld.so.conf also contains /usr/contrib/lib and
7776
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7777
# libtool to hard-code these into programs
7780
cygwin* | mingw* | pw32*)
7781
version_type=windows
7786
case $GCC,$host_os in
7787
yes,cygwin* | yes,mingw* | yes,pw32*)
7788
library_names_spec='$libname.dll.a'
7789
# DLL is installed to $(libdir)/../bin by postinstall_cmds
7790
postinstall_cmds='base_file=`basename \${file}`~
7791
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7792
dldir=$destdir/`dirname \$dlpath`~
7793
test -d \$dldir || mkdir -p \$dldir~
7794
$install_prog $dir/$dlname \$dldir/$dlname'
7795
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7796
dlpath=$dir/\$dldll~
7798
shlibpath_overrides_runpath=yes
7802
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
7803
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7804
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7807
# MinGW DLLs use traditional 'lib' prefix
7808
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7809
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7810
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7811
# It is most probably a Windows format PATH printed by
7812
# mingw gcc, but we are running on Cygwin. Gcc prints its search
7813
# path with ; separators, and with drive letters. We can handle the
7814
# drive letters (cygwin fileutils understands them), so leave them,
7815
# especially as we might pass files found there to a mingw objdump,
7816
# which wouldn't understand a cygwinified path. Ahh.
7817
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7819
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7823
# pw32 DLLs use 'pw' prefix rather than 'lib'
7824
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7830
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7833
dynamic_linker='Win32 ld.exe'
7834
# FIXME: first we should search . and the directory the executable is in
7838
darwin* | rhapsody*)
7839
dynamic_linker="$host_os dyld"
7843
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7844
soname_spec='${libname}${release}${major}$shared_ext'
7845
shlibpath_overrides_runpath=yes
7846
shlibpath_var=DYLD_LIBRARY_PATH
7847
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7848
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7849
if test "$GCC" = yes; then
7850
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"`
7852
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7854
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7862
soname_spec='${libname}${release}${shared_ext}$major'
7863
shlibpath_var=LD_LIBRARY_PATH
7874
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7875
soname_spec='${libname}${release}${shared_ext}$major'
7876
shlibpath_var=LD_LIBRARY_PATH
7877
shlibpath_overrides_runpath=no
7878
hardcode_into_libs=yes
7879
dynamic_linker='GNU ld.so'
7883
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7884
version_type=freebsd-$objformat
7885
case $version_type in
7887
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7892
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7896
shlibpath_var=LD_LIBRARY_PATH
7899
shlibpath_overrides_runpath=yes
7901
freebsd3.01* | freebsdelf3.01*)
7902
shlibpath_overrides_runpath=yes
7903
hardcode_into_libs=yes
7906
shlibpath_overrides_runpath=no
7907
hardcode_into_libs=yes
7916
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7917
soname_spec='${libname}${release}${shared_ext}$major'
7918
shlibpath_var=LD_LIBRARY_PATH
7919
hardcode_into_libs=yes
7922
hpux9* | hpux10* | hpux11*)
7923
# Give a soname corresponding to the major version so that dld.sl refuses to
7924
# link against other versions.
7931
hardcode_into_libs=yes
7932
dynamic_linker="$host_os dld.so"
7933
shlibpath_var=LD_LIBRARY_PATH
7934
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7935
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7936
soname_spec='${libname}${release}${shared_ext}$major'
7937
if test "X$HPUX_IA64_MODE" = X32; then
7938
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7940
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7942
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7946
hardcode_into_libs=yes
7947
dynamic_linker="$host_os dld.sl"
7948
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7949
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7950
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7951
soname_spec='${libname}${release}${shared_ext}$major'
7952
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7953
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7957
dynamic_linker="$host_os dld.sl"
7958
shlibpath_var=SHLIB_PATH
7959
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7960
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961
soname_spec='${libname}${release}${shared_ext}$major'
7964
# HP-UX runs *really* slowly unless shared libraries are mode 555.
7965
postinstall_cmds='chmod 555 $lib'
7968
irix5* | irix6* | nonstopux*)
7970
nonstopux*) version_type=nonstopux ;;
7972
if test "$lt_cv_prog_gnu_ld" = yes; then
7980
soname_spec='${libname}${release}${shared_ext}$major'
7981
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7983
irix5* | nonstopux*)
7987
case $LD in # libtool.m4 will add one of these switches to LD
7988
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7989
libsuff= shlibsuff= libmagic=32-bit;;
7990
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7991
libsuff=32 shlibsuff=N32 libmagic=N32;;
7992
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7993
libsuff=64 shlibsuff=64 libmagic=64-bit;;
7994
*) libsuff= shlibsuff= libmagic=never-match;;
7998
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7999
shlibpath_overrides_runpath=no
8000
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8001
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8002
hardcode_into_libs=yes
8005
# No shared lib support for Linux oldld, aout, or coff.
8006
linux*oldld* | linux*aout* | linux*coff*)
8010
# This must be Linux ELF.
8015
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8016
soname_spec='${libname}${release}${shared_ext}$major'
8017
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8018
shlibpath_var=LD_LIBRARY_PATH
8019
shlibpath_overrides_runpath=no
8020
# This implies no fast_install, which is unacceptable.
8021
# Some rework will be needed to allow for fast_install
8022
# before this can be enabled.
8023
hardcode_into_libs=yes
8025
# Append ld.so.conf contents to the search path
8026
if test -f /etc/ld.so.conf; then
8027
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
8028
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
8031
# We used to test for /lib/ld.so.1 and disable shared libraries on
8032
# powerpc, because MkLinux only supported shared libraries with the
8033
# GNU dynamic linker. Since this was broken with cross compilers,
8034
# most powerpc-linux boxes support dynamic linking these days and
8035
# people can always --disable-shared, the test was removed, and we
8036
# assume the GNU/Linux dynamic linker is in use.
8037
dynamic_linker='GNU/Linux ld.so'
8044
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8045
soname_spec='${libname}${release}${shared_ext}$major'
8046
shlibpath_var=LD_LIBRARY_PATH
8047
shlibpath_overrides_runpath=no
8048
hardcode_into_libs=yes
8049
dynamic_linker='GNU ld.so'
8056
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8057
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8058
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8059
dynamic_linker='NetBSD (a.out) ld.so'
8061
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8062
soname_spec='${libname}${release}${shared_ext}$major'
8063
dynamic_linker='NetBSD ld.elf_so'
8065
shlibpath_var=LD_LIBRARY_PATH
8066
shlibpath_overrides_runpath=yes
8067
hardcode_into_libs=yes
8072
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8073
shlibpath_var=LD_LIBRARY_PATH
8074
shlibpath_overrides_runpath=yes
8081
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8082
soname_spec='${libname}${release}${shared_ext}$major'
8083
shlibpath_var=LD_LIBRARY_PATH
8084
shlibpath_overrides_runpath=yes
8091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8092
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8093
shlibpath_var=LD_LIBRARY_PATH
8094
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8096
openbsd2.[89] | openbsd2.[89].*)
8097
shlibpath_overrides_runpath=no
8100
shlibpath_overrides_runpath=yes
8104
shlibpath_overrides_runpath=yes
8109
libname_spec='$name'
8112
library_names_spec='$libname${shared_ext} $libname.a'
8113
dynamic_linker='OS/2 ld.exe'
8114
shlibpath_var=LIBPATH
8117
osf3* | osf4* | osf5*)
8121
soname_spec='${libname}${release}${shared_ext}$major'
8122
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8123
shlibpath_var=LD_LIBRARY_PATH
8124
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8125
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8130
soname_spec='${libname}${release}${shared_ext}$major'
8131
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8132
shlibpath_var=LD_LIBRARY_PATH
8139
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8140
soname_spec='${libname}${release}${shared_ext}$major'
8141
shlibpath_var=LD_LIBRARY_PATH
8142
shlibpath_overrides_runpath=yes
8143
hardcode_into_libs=yes
8144
# ldd complains unless libraries are executable
8145
postinstall_cmds='chmod +x $lib'
8150
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8151
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8152
shlibpath_var=LD_LIBRARY_PATH
8153
shlibpath_overrides_runpath=yes
8154
if test "$with_gnu_ld" = yes; then
8160
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8163
soname_spec='${libname}${release}${shared_ext}$major'
8164
shlibpath_var=LD_LIBRARY_PATH
8165
case $host_vendor in
8167
shlibpath_overrides_runpath=no
8169
export_dynamic_flag_spec='${wl}-Blargedynsym'
8170
runpath_var=LD_RUN_PATH
8178
shlibpath_overrides_runpath=no
8179
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8185
if test -d /usr/nec ;then
8187
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8188
soname_spec='$libname${shared_ext}.$major'
8189
shlibpath_var=LD_LIBRARY_PATH
8195
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8196
soname_spec='${libname}${release}${shared_ext}$major'
8197
shlibpath_var=LD_LIBRARY_PATH
8204
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8205
echo "${ECHO_T}$dynamic_linker" >&6
8206
test "$dynamic_linker" = no && can_build_shared=no
8208
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8209
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8211
if test -n "$hardcode_libdir_flag_spec" || \
8212
test -n "$runpath_var " || \
8213
test "X$hardcode_automatic"="Xyes" ; then
8215
# We can hardcode non-existant directories.
8216
if test "$hardcode_direct" != no &&
8217
# If the only mechanism to avoid hardcoding is shlibpath_var, we
8218
# have to relink, otherwise we might link with an installed library
8219
# when we should be linking with a yet-to-be-installed one
8220
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8221
test "$hardcode_minus_L" != no; then
8222
# Linking always hardcodes the temporary library directory.
8223
hardcode_action=relink
8225
# We can link without hardcoding, and we can hardcode nonexisting dirs.
8226
hardcode_action=immediate
8229
# We cannot hardcode anything, or else we can only hardcode existing
8231
hardcode_action=unsupported
8233
echo "$as_me:$LINENO: result: $hardcode_action" >&5
8234
echo "${ECHO_T}$hardcode_action" >&6
8236
if test "$hardcode_action" = relink; then
8237
# Fast installation is not supported
8238
enable_fast_install=no
8239
elif test "$shlibpath_overrides_runpath" = yes ||
8240
test "$enable_shared" = no; then
8241
# Fast installation is not necessary
8242
enable_fast_install=needless
8247
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8248
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8249
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8250
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8251
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8252
echo "$as_me:$LINENO: result: yes" >&5
8253
echo "${ECHO_T}yes" >&6
8255
# FIXME - insert some real tests, host_os isn't really good enough
8258
if test -n "$STRIP" ; then
8259
striplib="$STRIP -x"
8260
echo "$as_me:$LINENO: result: yes" >&5
8261
echo "${ECHO_T}yes" >&6
8263
echo "$as_me:$LINENO: result: no" >&5
8264
echo "${ECHO_T}no" >&6
8268
echo "$as_me:$LINENO: result: no" >&5
8269
echo "${ECHO_T}no" >&6
8274
if test "x$enable_dlopen" != xyes; then
8275
enable_dlopen=unknown
8276
enable_dlopen_self=unknown
8277
enable_dlopen_self_static=unknown
8284
lt_cv_dlopen="load_add_on"
8286
lt_cv_dlopen_self=yes
8290
lt_cv_dlopen="LoadLibrary"
8295
lt_cv_dlopen="dlopen"
8300
# if libdl is installed we need to link against it
8301
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8302
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8303
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8304
echo $ECHO_N "(cached) $ECHO_C" >&6
8306
ac_check_lib_save_LIBS=$LIBS
8308
cat >conftest.$ac_ext <<_ACEOF
8311
cat confdefs.h >>conftest.$ac_ext
8312
cat >>conftest.$ac_ext <<_ACEOF
8313
/* end confdefs.h. */
8315
/* Override any gcc2 internal prototype to avoid an error. */
8319
/* We use char because int might match the return type of a gcc2
8320
builtin and then its argument prototype would still apply. */
8330
rm -f conftest.$ac_objext conftest$ac_exeext
8331
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8332
(eval $ac_link) 2>conftest.er1
8334
grep -v '^ *+' conftest.er1 >conftest.err
8336
cat conftest.err >&5
8337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338
(exit $ac_status); } &&
8339
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8340
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344
(exit $ac_status); }; } &&
8345
{ ac_try='test -s conftest$ac_exeext'
8346
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350
(exit $ac_status); }; }; then
8351
ac_cv_lib_dl_dlopen=yes
8353
echo "$as_me: failed program was:" >&5
8354
sed 's/^/| /' conftest.$ac_ext >&5
8356
ac_cv_lib_dl_dlopen=no
8358
rm -f conftest.err conftest.$ac_objext \
8359
conftest$ac_exeext conftest.$ac_ext
8360
LIBS=$ac_check_lib_save_LIBS
8362
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8363
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8364
if test $ac_cv_lib_dl_dlopen = yes; then
8365
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8370
lt_cv_dlopen_self=yes
8377
echo "$as_me:$LINENO: checking for shl_load" >&5
8378
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8379
if test "${ac_cv_func_shl_load+set}" = set; then
8380
echo $ECHO_N "(cached) $ECHO_C" >&6
8382
cat >conftest.$ac_ext <<_ACEOF
8385
cat confdefs.h >>conftest.$ac_ext
8386
cat >>conftest.$ac_ext <<_ACEOF
8387
/* end confdefs.h. */
8388
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8389
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8390
#define shl_load innocuous_shl_load
8392
/* System header to define __stub macros and hopefully few prototypes,
8393
which can conflict with char shl_load (); below.
8394
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8395
<limits.h> exists even on freestanding compilers. */
8398
# include <limits.h>
8400
# include <assert.h>
8405
/* Override any gcc2 internal prototype to avoid an error. */
8410
/* We use char because int might match the return type of a gcc2
8411
builtin and then its argument prototype would still apply. */
8413
/* The GNU C library defines this for functions which it implements
8414
to always fail with ENOSYS. Some functions are actually named
8415
something starting with __ and the normal name is an alias. */
8416
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8419
char (*f) () = shl_load;
8428
return f != shl_load;
8433
rm -f conftest.$ac_objext conftest$ac_exeext
8434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8435
(eval $ac_link) 2>conftest.er1
8437
grep -v '^ *+' conftest.er1 >conftest.err
8439
cat conftest.err >&5
8440
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8441
(exit $ac_status); } &&
8442
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8443
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447
(exit $ac_status); }; } &&
8448
{ ac_try='test -s conftest$ac_exeext'
8449
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453
(exit $ac_status); }; }; then
8454
ac_cv_func_shl_load=yes
8456
echo "$as_me: failed program was:" >&5
8457
sed 's/^/| /' conftest.$ac_ext >&5
8459
ac_cv_func_shl_load=no
8461
rm -f conftest.err conftest.$ac_objext \
8462
conftest$ac_exeext conftest.$ac_ext
8464
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8465
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8466
if test $ac_cv_func_shl_load = yes; then
8467
lt_cv_dlopen="shl_load"
8469
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8470
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8471
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8472
echo $ECHO_N "(cached) $ECHO_C" >&6
8474
ac_check_lib_save_LIBS=$LIBS
8476
cat >conftest.$ac_ext <<_ACEOF
8479
cat confdefs.h >>conftest.$ac_ext
8480
cat >>conftest.$ac_ext <<_ACEOF
8481
/* end confdefs.h. */
8483
/* Override any gcc2 internal prototype to avoid an error. */
8487
/* We use char because int might match the return type of a gcc2
8488
builtin and then its argument prototype would still apply. */
8498
rm -f conftest.$ac_objext conftest$ac_exeext
8499
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500
(eval $ac_link) 2>conftest.er1
8502
grep -v '^ *+' conftest.er1 >conftest.err
8504
cat conftest.err >&5
8505
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506
(exit $ac_status); } &&
8507
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8508
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512
(exit $ac_status); }; } &&
8513
{ ac_try='test -s conftest$ac_exeext'
8514
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518
(exit $ac_status); }; }; then
8519
ac_cv_lib_dld_shl_load=yes
8521
echo "$as_me: failed program was:" >&5
8522
sed 's/^/| /' conftest.$ac_ext >&5
8524
ac_cv_lib_dld_shl_load=no
8526
rm -f conftest.err conftest.$ac_objext \
8527
conftest$ac_exeext conftest.$ac_ext
8528
LIBS=$ac_check_lib_save_LIBS
8530
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8531
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8532
if test $ac_cv_lib_dld_shl_load = yes; then
8533
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8535
echo "$as_me:$LINENO: checking for dlopen" >&5
8536
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8537
if test "${ac_cv_func_dlopen+set}" = set; then
8538
echo $ECHO_N "(cached) $ECHO_C" >&6
8540
cat >conftest.$ac_ext <<_ACEOF
8543
cat confdefs.h >>conftest.$ac_ext
8544
cat >>conftest.$ac_ext <<_ACEOF
8545
/* end confdefs.h. */
8546
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8547
For example, HP-UX 11i <limits.h> declares gettimeofday. */
8548
#define dlopen innocuous_dlopen
8550
/* System header to define __stub macros and hopefully few prototypes,
8551
which can conflict with char dlopen (); below.
8552
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8553
<limits.h> exists even on freestanding compilers. */
8556
# include <limits.h>
8558
# include <assert.h>
8563
/* Override any gcc2 internal prototype to avoid an error. */
8568
/* We use char because int might match the return type of a gcc2
8569
builtin and then its argument prototype would still apply. */
8571
/* The GNU C library defines this for functions which it implements
8572
to always fail with ENOSYS. Some functions are actually named
8573
something starting with __ and the normal name is an alias. */
8574
#if defined (__stub_dlopen) || defined (__stub___dlopen)
8577
char (*f) () = dlopen;
8591
rm -f conftest.$ac_objext conftest$ac_exeext
8592
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593
(eval $ac_link) 2>conftest.er1
8595
grep -v '^ *+' conftest.er1 >conftest.err
8597
cat conftest.err >&5
8598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599
(exit $ac_status); } &&
8600
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8601
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605
(exit $ac_status); }; } &&
8606
{ ac_try='test -s conftest$ac_exeext'
8607
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611
(exit $ac_status); }; }; then
8612
ac_cv_func_dlopen=yes
8614
echo "$as_me: failed program was:" >&5
8615
sed 's/^/| /' conftest.$ac_ext >&5
8617
ac_cv_func_dlopen=no
8619
rm -f conftest.err conftest.$ac_objext \
8620
conftest$ac_exeext conftest.$ac_ext
8622
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8623
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8624
if test $ac_cv_func_dlopen = yes; then
8625
lt_cv_dlopen="dlopen"
8627
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8628
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8629
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8630
echo $ECHO_N "(cached) $ECHO_C" >&6
8632
ac_check_lib_save_LIBS=$LIBS
8634
cat >conftest.$ac_ext <<_ACEOF
8637
cat confdefs.h >>conftest.$ac_ext
8638
cat >>conftest.$ac_ext <<_ACEOF
8639
/* end confdefs.h. */
8641
/* Override any gcc2 internal prototype to avoid an error. */
8645
/* We use char because int might match the return type of a gcc2
8646
builtin and then its argument prototype would still apply. */
8656
rm -f conftest.$ac_objext conftest$ac_exeext
8657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8658
(eval $ac_link) 2>conftest.er1
8660
grep -v '^ *+' conftest.er1 >conftest.err
8662
cat conftest.err >&5
8663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664
(exit $ac_status); } &&
8665
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8666
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670
(exit $ac_status); }; } &&
8671
{ ac_try='test -s conftest$ac_exeext'
8672
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676
(exit $ac_status); }; }; then
8677
ac_cv_lib_dl_dlopen=yes
8679
echo "$as_me: failed program was:" >&5
8680
sed 's/^/| /' conftest.$ac_ext >&5
8682
ac_cv_lib_dl_dlopen=no
8684
rm -f conftest.err conftest.$ac_objext \
8685
conftest$ac_exeext conftest.$ac_ext
8686
LIBS=$ac_check_lib_save_LIBS
8688
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8689
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8690
if test $ac_cv_lib_dl_dlopen = yes; then
8691
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8693
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8694
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8695
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8696
echo $ECHO_N "(cached) $ECHO_C" >&6
8698
ac_check_lib_save_LIBS=$LIBS
8700
cat >conftest.$ac_ext <<_ACEOF
8703
cat confdefs.h >>conftest.$ac_ext
8704
cat >>conftest.$ac_ext <<_ACEOF
8705
/* end confdefs.h. */
8707
/* Override any gcc2 internal prototype to avoid an error. */
8711
/* We use char because int might match the return type of a gcc2
8712
builtin and then its argument prototype would still apply. */
8722
rm -f conftest.$ac_objext conftest$ac_exeext
8723
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8724
(eval $ac_link) 2>conftest.er1
8726
grep -v '^ *+' conftest.er1 >conftest.err
8728
cat conftest.err >&5
8729
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730
(exit $ac_status); } &&
8731
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8732
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736
(exit $ac_status); }; } &&
8737
{ ac_try='test -s conftest$ac_exeext'
8738
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742
(exit $ac_status); }; }; then
8743
ac_cv_lib_svld_dlopen=yes
8745
echo "$as_me: failed program was:" >&5
8746
sed 's/^/| /' conftest.$ac_ext >&5
8748
ac_cv_lib_svld_dlopen=no
8750
rm -f conftest.err conftest.$ac_objext \
8751
conftest$ac_exeext conftest.$ac_ext
8752
LIBS=$ac_check_lib_save_LIBS
8754
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8755
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8756
if test $ac_cv_lib_svld_dlopen = yes; then
8757
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8759
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8760
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8761
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8762
echo $ECHO_N "(cached) $ECHO_C" >&6
8764
ac_check_lib_save_LIBS=$LIBS
8766
cat >conftest.$ac_ext <<_ACEOF
8769
cat confdefs.h >>conftest.$ac_ext
8770
cat >>conftest.$ac_ext <<_ACEOF
8771
/* end confdefs.h. */
8773
/* Override any gcc2 internal prototype to avoid an error. */
8777
/* We use char because int might match the return type of a gcc2
8778
builtin and then its argument prototype would still apply. */
8788
rm -f conftest.$ac_objext conftest$ac_exeext
8789
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8790
(eval $ac_link) 2>conftest.er1
8792
grep -v '^ *+' conftest.er1 >conftest.err
8794
cat conftest.err >&5
8795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796
(exit $ac_status); } &&
8797
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8798
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802
(exit $ac_status); }; } &&
8803
{ ac_try='test -s conftest$ac_exeext'
8804
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808
(exit $ac_status); }; }; then
8809
ac_cv_lib_dld_dld_link=yes
8811
echo "$as_me: failed program was:" >&5
8812
sed 's/^/| /' conftest.$ac_ext >&5
8814
ac_cv_lib_dld_dld_link=no
8816
rm -f conftest.err conftest.$ac_objext \
8817
conftest$ac_exeext conftest.$ac_ext
8818
LIBS=$ac_check_lib_save_LIBS
8820
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8821
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8822
if test $ac_cv_lib_dld_dld_link = yes; then
8823
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8844
if test "x$lt_cv_dlopen" != xno; then
8850
case $lt_cv_dlopen in
8852
save_CPPFLAGS="$CPPFLAGS"
8853
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8855
save_LDFLAGS="$LDFLAGS"
8856
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8859
LIBS="$lt_cv_dlopen_libs $LIBS"
8861
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8862
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8863
if test "${lt_cv_dlopen_self+set}" = set; then
8864
echo $ECHO_N "(cached) $ECHO_C" >&6
8866
if test "$cross_compiling" = yes; then :
8867
lt_cv_dlopen_self=cross
8869
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8870
lt_status=$lt_dlunknown
8871
cat > conftest.$ac_ext <<EOF
8872
#line 8872 "configure"
8873
#include "confdefs.h"
8882
# define LT_DLGLOBAL RTLD_GLOBAL
8885
# define LT_DLGLOBAL DL_GLOBAL
8887
# define LT_DLGLOBAL 0
8891
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8892
find out it does not work in some platform. */
8893
#ifndef LT_DLLAZY_OR_NOW
8895
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8898
# define LT_DLLAZY_OR_NOW DL_LAZY
8901
# define LT_DLLAZY_OR_NOW RTLD_NOW
8904
# define LT_DLLAZY_OR_NOW DL_NOW
8906
# define LT_DLLAZY_OR_NOW 0
8914
extern "C" void exit (int);
8917
void fnord() { int i=42;}
8920
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8921
int status = $lt_dlunknown;
8925
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8926
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8927
/* dlclose (self); */
8933
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934
(eval $ac_link) 2>&5
8936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8938
(./conftest; exit; ) 2>/dev/null
8941
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8942
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8943
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8946
# compilation failed
8947
lt_cv_dlopen_self=no
8954
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8955
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8957
if test "x$lt_cv_dlopen_self" = xyes; then
8958
LDFLAGS="$LDFLAGS $link_static_flag"
8959
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8960
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8961
if test "${lt_cv_dlopen_self_static+set}" = set; then
8962
echo $ECHO_N "(cached) $ECHO_C" >&6
8964
if test "$cross_compiling" = yes; then :
8965
lt_cv_dlopen_self_static=cross
8967
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8968
lt_status=$lt_dlunknown
8969
cat > conftest.$ac_ext <<EOF
8970
#line 8970 "configure"
8971
#include "confdefs.h"
8980
# define LT_DLGLOBAL RTLD_GLOBAL
8983
# define LT_DLGLOBAL DL_GLOBAL
8985
# define LT_DLGLOBAL 0
8989
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8990
find out it does not work in some platform. */
8991
#ifndef LT_DLLAZY_OR_NOW
8993
# define LT_DLLAZY_OR_NOW RTLD_LAZY
8996
# define LT_DLLAZY_OR_NOW DL_LAZY
8999
# define LT_DLLAZY_OR_NOW RTLD_NOW
9002
# define LT_DLLAZY_OR_NOW DL_NOW
9004
# define LT_DLLAZY_OR_NOW 0
9012
extern "C" void exit (int);
9015
void fnord() { int i=42;}
9018
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9019
int status = $lt_dlunknown;
9023
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9024
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9025
/* dlclose (self); */
9031
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9032
(eval $ac_link) 2>&5
9034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9036
(./conftest; exit; ) 2>/dev/null
9039
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9040
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9041
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9044
# compilation failed
9045
lt_cv_dlopen_self_static=no
9052
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9053
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9056
CPPFLAGS="$save_CPPFLAGS"
9057
LDFLAGS="$save_LDFLAGS"
9062
case $lt_cv_dlopen_self in
9063
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9064
*) enable_dlopen_self=unknown ;;
9067
case $lt_cv_dlopen_self_static in
9068
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9069
*) enable_dlopen_self_static=unknown ;;
9074
# Report which librarie types wil actually be built
9075
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9076
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9077
echo "$as_me:$LINENO: result: $can_build_shared" >&5
9078
echo "${ECHO_T}$can_build_shared" >&6
9080
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9081
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9082
test "$can_build_shared" = "no" && enable_shared=no
9084
# On AIX, shared libraries and static libraries use the same namespace, and
9085
# are all built from PIC.
9088
test "$enable_shared" = yes && enable_static=no
9089
if test -n "$RANLIB"; then
9090
archive_cmds="$archive_cmds~\$RANLIB \$lib"
9091
postinstall_cmds='$RANLIB $lib'
9096
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9097
test "$enable_shared" = yes && enable_static=no
9100
darwin* | rhapsody*)
9101
if test "$GCC" = yes; then
9102
archive_cmds_need_lc=no
9104
rhapsody* | darwin1.[012])
9105
allow_undefined_flag='-undefined suppress'
9108
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9109
allow_undefined_flag='-flat_namespace -undefined suppress'
9111
case ${MACOSX_DEPLOYMENT_TARGET} in
9113
allow_undefined_flag='-flat_namespace -undefined suppress'
9116
allow_undefined_flag='-undefined dynamic_lookup'
9122
output_verbose_link_cmd='echo'
9123
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9124
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9125
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9126
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}'
9127
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}'
9129
hardcode_automatic=yes
9130
hardcode_shlibpath_var=unsupported
9131
whole_archive_flag_spec='-all_load $convenience'
9132
link_all_deplibs=yes
9138
echo "$as_me:$LINENO: result: $enable_shared" >&5
9139
echo "${ECHO_T}$enable_shared" >&6
9141
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9142
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9143
# Make sure either enable_shared or enable_static is yes.
9144
test "$enable_shared" = yes || enable_static=yes
9145
echo "$as_me:$LINENO: result: $enable_static" >&5
9146
echo "${ECHO_T}$enable_static" >&6
9148
# The else clause should only fire when bootstrapping the
9149
# libtool distribution, otherwise you forgot to ship ltmain.sh
9150
# with your package, and you will get complaints that there are
9151
# no rules to generate ltmain.sh.
9152
if test -f "$ltmain"; then
9153
# See if we are running on zsh, and set the options which allow our commands through
9154
# without removal of \ escapes.
9155
if test -n "${ZSH_VERSION+set}" ; then
9156
setopt NO_GLOB_SUBST
9158
# Now quote all the things that may contain metacharacters while being
9159
# careful not to overquote the AC_SUBSTed values. We take copies of the
9160
# variables and quote the copies for generation of the libtool script.
9161
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9163
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9164
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9165
deplibs_check_method reload_flag reload_cmds need_locks \
9166
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9167
lt_cv_sys_global_symbol_to_c_name_address \
9168
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9169
old_postinstall_cmds old_postuninstall_cmds \
9173
lt_prog_compiler_wl \
9174
lt_prog_compiler_pic \
9175
lt_prog_compiler_static \
9176
lt_prog_compiler_no_builtin_flag \
9177
export_dynamic_flag_spec \
9178
thread_safe_flag_spec \
9179
whole_archive_flag_spec \
9180
enable_shared_with_static_runtimes \
9182
old_archive_from_new_cmds \
9187
compiler_lib_search_path \
9189
archive_expsym_cmds \
9191
postuninstall_cmds \
9192
old_archive_from_expsyms_cmds \
9193
allow_undefined_flag \
9195
export_symbols_cmds \
9196
hardcode_libdir_flag_spec \
9197
hardcode_libdir_flag_spec_ld \
9198
hardcode_libdir_separator \
9199
hardcode_automatic \
9201
module_expsym_cmds \
9202
lt_cv_prog_compiler_c_o \
9207
old_archive_cmds | \
9208
old_archive_from_new_cmds | \
9210
archive_expsym_cmds | \
9212
module_expsym_cmds | \
9213
old_archive_from_expsyms_cmds | \
9214
export_symbols_cmds | \
9215
extract_expsyms_cmds | reload_cmds | finish_cmds | \
9216
postinstall_cmds | postuninstall_cmds | \
9217
old_postinstall_cmds | old_postuninstall_cmds | \
9218
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9219
# Double-quote double-evaled strings.
9220
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9223
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9229
*'\$0 --fallback-echo"')
9230
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9235
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9237
{ echo "$as_me:$LINENO: creating $ofile" >&5
9238
echo "$as_me: creating $ofile" >&6;}
9240
cat <<__EOF__ >> "$cfgfile"
9243
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9244
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9245
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9247
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9248
# Free Software Foundation, Inc.
9250
# This file is part of GNU Libtool:
9251
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9253
# This program is free software; you can redistribute it and/or modify
9254
# it under the terms of the GNU General Public License as published by
9255
# the Free Software Foundation; either version 2 of the License, or
9256
# (at your option) any later version.
9258
# This program is distributed in the hope that it will be useful, but
9259
# WITHOUT ANY WARRANTY; without even the implied warranty of
9260
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9261
# General Public License for more details.
9263
# You should have received a copy of the GNU General Public License
9264
# along with this program; if not, write to the Free Software
9265
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9267
# As a special exception to the GNU General Public License, if you
9268
# distribute this file as part of a program that contains a
9269
# configuration script generated by Autoconf, you may include it under
9270
# the same distribution terms that you use for the rest of that program.
9272
# A sed program that does not truncate output.
9275
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9276
Xsed="$SED -e s/^X//"
9278
# The HP-UX ksh and POSIX shell print the target directory to stdout
9280
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9282
# The names of the tagged configurations supported by this script.
9285
# ### BEGIN LIBTOOL CONFIG
9287
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9289
# Shell to use when invoking shell scripts.
9292
# Whether or not to build shared libraries.
9293
build_libtool_libs=$enable_shared
9295
# Whether or not to build static libraries.
9296
build_old_libs=$enable_static
9298
# Whether or not to add -lc for building shared libraries.
9299
build_libtool_need_lc=$archive_cmds_need_lc
9301
# Whether or not to disallow shared libs when runtime libs are static
9302
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9304
# Whether or not to optimize for fast installation.
9305
fast_install=$enable_fast_install
9308
host_alias=$host_alias
9311
# An echo program that does not interpret backslashes.
9316
AR_FLAGS=$lt_AR_FLAGS
9321
# A language-specific compiler.
9324
# Is the compiler the GNU C compiler?
9330
# The linker used to build libraries.
9333
# Whether we need hard or soft links.
9336
# A BSD-compatible nm program.
9339
# A symbol stripping program
9342
# Used to examine libraries when file_magic_cmd begins "file"
9343
MAGIC_CMD=$MAGIC_CMD
9345
# Used on cygwin: DLL creation program.
9348
# Used on cygwin: object dumper.
9351
# Used on cygwin: assembler.
9354
# The name of the directory that contains temporary libtool files.
9357
# How to create reloadable object files.
9358
reload_flag=$lt_reload_flag
9359
reload_cmds=$lt_reload_cmds
9361
# How to pass a linker flag through the compiler.
9362
wl=$lt_lt_prog_compiler_wl
9364
# Object file suffix (normally "o").
9367
# Old archive suffix (normally "a").
9370
# Shared library suffix (normally ".so").
9373
# Executable file suffix (normally "").
9376
# Additional compiler flags for building library objects.
9377
pic_flag=$lt_lt_prog_compiler_pic
9380
# What is the maximum length of a command?
9381
max_cmd_len=$lt_cv_sys_max_cmd_len
9383
# Does compiler simultaneously support -c and -o options?
9384
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9386
# Must we lock files when doing compilation ?
9387
need_locks=$lt_need_locks
9389
# Do we need the lib prefix for modules?
9390
need_lib_prefix=$need_lib_prefix
9392
# Do we need a version for libraries?
9393
need_version=$need_version
9395
# Whether dlopen is supported.
9396
dlopen_support=$enable_dlopen
9398
# Whether dlopen of programs is supported.
9399
dlopen_self=$enable_dlopen_self
9401
# Whether dlopen of statically linked programs is supported.
9402
dlopen_self_static=$enable_dlopen_self_static
9404
# Compiler flag to prevent dynamic linking.
9405
link_static_flag=$lt_lt_prog_compiler_static
9407
# Compiler flag to turn off builtin functions.
9408
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9410
# Compiler flag to allow reflexive dlopens.
9411
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9413
# Compiler flag to generate shared objects directly from archives.
9414
whole_archive_flag_spec=$lt_whole_archive_flag_spec
9416
# Compiler flag to generate thread-safe objects.
9417
thread_safe_flag_spec=$lt_thread_safe_flag_spec
9419
# Library versioning type.
9420
version_type=$version_type
9422
# Format of library name prefix.
9423
libname_spec=$lt_libname_spec
9425
# List of archive names. First name is the real one, the rest are links.
9426
# The last name is the one that the linker finds with -lNAME.
9427
library_names_spec=$lt_library_names_spec
9429
# The coded name of the library, if different from the real name.
9430
soname_spec=$lt_soname_spec
9432
# Commands used to build and install an old-style archive.
9434
old_archive_cmds=$lt_old_archive_cmds
9435
old_postinstall_cmds=$lt_old_postinstall_cmds
9436
old_postuninstall_cmds=$lt_old_postuninstall_cmds
9438
# Create an old-style archive from a shared archive.
9439
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9441
# Create a temporary old-style archive to link instead of a shared archive.
9442
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9444
# Commands used to build and install a shared archive.
9445
archive_cmds=$lt_archive_cmds
9446
archive_expsym_cmds=$lt_archive_expsym_cmds
9447
postinstall_cmds=$lt_postinstall_cmds
9448
postuninstall_cmds=$lt_postuninstall_cmds
9450
# Commands used to build a loadable module (assumed same as above if empty)
9451
module_cmds=$lt_module_cmds
9452
module_expsym_cmds=$lt_module_expsym_cmds
9454
# Commands to strip libraries.
9455
old_striplib=$lt_old_striplib
9456
striplib=$lt_striplib
9458
# Dependencies to place before the objects being linked to create a
9460
predep_objects=$lt_predep_objects
9462
# Dependencies to place after the objects being linked to create a
9464
postdep_objects=$lt_postdep_objects
9466
# Dependencies to place before the objects being linked to create a
9470
# Dependencies to place after the objects being linked to create a
9472
postdeps=$lt_postdeps
9474
# The library search path used internally by the compiler when linking
9476
compiler_lib_search_path=$lt_compiler_lib_search_path
9478
# Method to check whether dependent libraries are shared objects.
9479
deplibs_check_method=$lt_deplibs_check_method
9481
# Command to use when deplibs_check_method == file_magic.
9482
file_magic_cmd=$lt_file_magic_cmd
9484
# Flag that allows shared libraries with undefined symbols to be built.
9485
allow_undefined_flag=$lt_allow_undefined_flag
9487
# Flag that forces no undefined symbols.
9488
no_undefined_flag=$lt_no_undefined_flag
9490
# Commands used to finish a libtool library installation in a directory.
9491
finish_cmds=$lt_finish_cmds
9493
# Same as above, but a single script fragment to be evaled but not shown.
9494
finish_eval=$lt_finish_eval
9496
# Take the output of nm and produce a listing of raw symbols and C names.
9497
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9499
# Transform the output of nm in a proper C declaration
9500
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9502
# Transform the output of nm in a C name address pair
9503
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9505
# This is the shared library runtime path variable.
9506
runpath_var=$runpath_var
9508
# This is the shared library path variable.
9509
shlibpath_var=$shlibpath_var
9511
# Is shlibpath searched before the hard-coded library search path?
9512
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9514
# How to hardcode a shared library path into an executable.
9515
hardcode_action=$hardcode_action
9517
# Whether we should hardcode library paths into libraries.
9518
hardcode_into_libs=$hardcode_into_libs
9520
# Flag to hardcode \$libdir into a binary during linking.
9521
# This must work even if \$libdir does not exist.
9522
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9524
# If ld is used when linking, flag to hardcode \$libdir into
9525
# a binary during linking. This must work even if \$libdir does
9527
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9529
# Whether we need a single -rpath flag with a separated argument.
9530
hardcode_libdir_separator=$lt_hardcode_libdir_separator
9532
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9534
hardcode_direct=$hardcode_direct
9536
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9538
hardcode_minus_L=$hardcode_minus_L
9540
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9541
# the resulting binary.
9542
hardcode_shlibpath_var=$hardcode_shlibpath_var
9544
# Set to yes if building a shared library automatically hardcodes DIR into the library
9545
# and all subsequent libraries and executables linked against it.
9546
hardcode_automatic=$hardcode_automatic
9548
# Variables whose values should be saved in libtool wrapper scripts and
9549
# restored at relink time.
9550
variables_saved_for_relink="$variables_saved_for_relink"
9552
# Whether libtool must link a program against all its dependency libraries.
9553
link_all_deplibs=$link_all_deplibs
9555
# Compile-time system search path for libraries
9556
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9558
# Run-time system search path for libraries
9559
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9561
# Fix the shell variable \$srcfile for the compiler.
9562
fix_srcfile_path="$fix_srcfile_path"
9564
# Set to yes if exported symbols are required.
9565
always_export_symbols=$always_export_symbols
9567
# The commands to list exported symbols.
9568
export_symbols_cmds=$lt_export_symbols_cmds
9570
# The commands to extract the exported symbol list from a shared archive.
9571
extract_expsyms_cmds=$lt_extract_expsyms_cmds
9573
# Symbols that should not be listed in the preloaded symbols.
9574
exclude_expsyms=$lt_exclude_expsyms
9576
# Symbols that must always be exported.
9577
include_expsyms=$lt_include_expsyms
9579
# ### END LIBTOOL CONFIG
9586
cat <<\EOF >> "$cfgfile"
9588
# AIX sometimes has problems with the GCC collect2 program. For some
9589
# reason, if we set the COLLECT_NAMES environment variable, the problems
9590
# vanish in a puff of smoke.
9591
if test "X${COLLECT_NAMES+set}" != Xset; then
9593
export COLLECT_NAMES
9599
# We use sed instead of cat because bash on DJGPP gets confused if
9600
# if finds mixed CR/LF and LF-only lines. Since sed operates in
9601
# text mode, it properly converts lines to CR/LF. This bash problem
9602
# is reportedly fixed, but why not run on old versions too?
9603
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9605
mv -f "$cfgfile" "$ofile" || \
9606
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9610
# If there is no Makefile yet, we rely on a make rule to execute
9611
# `config.status --recheck' to rerun these tests and create the
9612
# libtool script then.
9613
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9614
if test -f "$ltmain_in"; then
9615
test -f Makefile && make "$ltmain"
9621
ac_cpp='$CPP $CPPFLAGS'
9622
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9623
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9624
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9629
# Check whether --with-tags or --without-tags was given.
9630
if test "${with_tags+set}" = set; then
9631
withval="$with_tags"
9635
if test -f "$ltmain" && test -n "$tagnames"; then
9636
if test ! -f "${ofile}"; then
9637
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9638
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9641
if test -z "$LTCC"; then
9642
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9643
if test -z "$LTCC"; then
9644
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9645
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9647
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9648
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9652
# Extract list of available tagged configurations in $ofile.
9653
# Note that this assumes the entire list is on one line.
9654
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9656
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9657
for tagname in $tagnames; do
9659
# Check whether tagname contains only valid characters
9660
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9662
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9663
echo "$as_me: error: invalid tag name: $tagname" >&2;}
9664
{ (exit 1); exit 1; }; }
9668
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9670
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9671
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9672
{ (exit 1); exit 1; }; }
9675
# Update the list of available tags.
9676
if test -n "$tagname"; then
9677
echo appending configuration tag \"$tagname\" to $ofile
9681
if test -n "$CXX" && test "X$CXX" != "Xno"; then
9683
ac_cpp='$CXXCPP $CPPFLAGS'
9684
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9685
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9686
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9691
archive_cmds_need_lc_CXX=no
9692
allow_undefined_flag_CXX=
9693
always_export_symbols_CXX=no
9694
archive_expsym_cmds_CXX=
9695
export_dynamic_flag_spec_CXX=
9696
hardcode_direct_CXX=no
9697
hardcode_libdir_flag_spec_CXX=
9698
hardcode_libdir_flag_spec_ld_CXX=
9699
hardcode_libdir_separator_CXX=
9700
hardcode_minus_L_CXX=no
9701
hardcode_automatic_CXX=no
9703
module_expsym_cmds_CXX=
9704
link_all_deplibs_CXX=unknown
9705
old_archive_cmds_CXX=$old_archive_cmds
9706
no_undefined_flag_CXX=
9707
whole_archive_flag_spec_CXX=
9708
enable_shared_with_static_runtimes_CXX=no
9710
# Dependencies to place before and after the object being linked:
9712
postdep_objects_CXX=
9715
compiler_lib_search_path_CXX=
9717
# Source file extension for C++ test sources.
9720
# Object file extension for compiled C++ test sources.
9724
# Code to be used in simple compile tests
9725
lt_simple_compile_test_code="int some_variable = 0;\n"
9727
# Code to be used in simple link tests
9728
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9730
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9732
# If no C compiler was specified, use CC.
9735
# Allow CC to be a program name with arguments.
9739
# Allow CC to be a program name with arguments.
9744
lt_save_with_gnu_ld=$with_gnu_ld
9745
lt_save_path_LD=$lt_cv_path_LD
9746
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9747
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9749
unset lt_cv_prog_gnu_ld
9751
if test -n "${lt_cv_path_LDCXX+set}"; then
9752
lt_cv_path_LD=$lt_cv_path_LDCXX
9756
test -z "${LDCXX+set}" || LD=$LDCXX
9760
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9762
# We don't want -fno-exception wen compiling C++ code, so set the
9763
# no_builtin_flag separately
9764
if test "$GXX" = yes; then
9765
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9767
lt_prog_compiler_no_builtin_flag_CXX=
9770
if test "$GXX" = yes; then
9771
# Set up default GNU C++ configuration
9774
# Check whether --with-gnu-ld or --without-gnu-ld was given.
9775
if test "${with_gnu_ld+set}" = set; then
9776
withval="$with_gnu_ld"
9777
test "$withval" = no || with_gnu_ld=yes
9782
if test "$GCC" = yes; then
9783
# Check if gcc -print-prog-name=ld gives a path.
9784
echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9785
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9788
# gcc leaves a trailing carriage return which upsets mingw
9789
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9791
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9794
# Accept absolute paths.
9796
re_direlt='/[^/][^/]*/\.\./'
9797
# Canonicalize the pathname of ld
9798
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9799
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9800
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9802
test -z "$LD" && LD="$ac_prog"
9805
# If it fails, then pretend we aren't using GCC.
9809
# If it is relative, then search for the first ld in PATH.
9813
elif test "$with_gnu_ld" = yes; then
9814
echo "$as_me:$LINENO: checking for GNU ld" >&5
9815
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9817
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9818
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9820
if test "${lt_cv_path_LD+set}" = set; then
9821
echo $ECHO_N "(cached) $ECHO_C" >&6
9823
if test -z "$LD"; then
9824
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9825
for ac_dir in $PATH; do
9827
test -z "$ac_dir" && ac_dir=.
9828
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9829
lt_cv_path_LD="$ac_dir/$ac_prog"
9830
# Check to see if the program is GNU ld. I'd rather use --version,
9831
# but apparently some GNU ld's only accept -v.
9832
# Break only if it was the GNU/non-GNU ld that we prefer.
9833
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9834
*GNU* | *'with BFD'*)
9835
test "$with_gnu_ld" != no && break
9838
test "$with_gnu_ld" != yes && break
9845
lt_cv_path_LD="$LD" # Let the user override the test with a path.
9850
if test -n "$LD"; then
9851
echo "$as_me:$LINENO: result: $LD" >&5
9852
echo "${ECHO_T}$LD" >&6
9854
echo "$as_me:$LINENO: result: no" >&5
9855
echo "${ECHO_T}no" >&6
9857
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9858
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9859
{ (exit 1); exit 1; }; }
9860
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9861
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9862
if test "${lt_cv_prog_gnu_ld+set}" = set; then
9863
echo $ECHO_N "(cached) $ECHO_C" >&6
9865
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
9866
case `$LD -v 2>&1 </dev/null` in
9867
*GNU* | *'with BFD'*)
9868
lt_cv_prog_gnu_ld=yes
9871
lt_cv_prog_gnu_ld=no
9875
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9876
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9877
with_gnu_ld=$lt_cv_prog_gnu_ld
9881
# Check if GNU C++ uses GNU ld as the underlying linker, since the
9882
# archiving commands below assume that GNU ld is being used.
9883
if test "$with_gnu_ld" = yes; then
9884
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9885
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'
9887
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9888
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9890
# If archive_cmds runs LD, not CC, wlarc should be empty
9891
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9892
# investigate it a little bit more. (MM)
9895
# ancient GNU ld didn't support --whole-archive et. al.
9896
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9897
grep 'no-whole-archive' > /dev/null; then
9898
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9900
whole_archive_flag_spec_CXX=
9906
# A generic and very simple default shared library creation
9907
# command for GNU C++ for the case where it uses the native
9908
# linker, instead of GNU ld. If possible, this setting should
9909
# overridden to take advantage of the native linker features on
9910
# the platform it is being used on.
9911
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9914
# Commands to make compiler produce verbose output that lists
9915
# what "hidden" libraries, object files and flags are used when
9916
# linking a shared library.
9917
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9925
# PORTME: fill in a description of your system's C++ link characteristics
9926
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9927
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9931
# FIXME: insert proper C++ library support
9935
if test "$host_cpu" = ia64; then
9936
# On IA64, the linker does run time linking by default, so we don't
9937
# have to do anything special.
9938
aix_use_runtimelinking=no
9939
exp_sym_flag='-Bexport'
9942
aix_use_runtimelinking=no
9944
# Test if we are trying to use run time linking or normal
9945
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9946
# need to do runtime linking.
9947
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9948
for ld_flag in $LDFLAGS; do
9951
aix_use_runtimelinking=yes
9958
exp_sym_flag='-bexport'
9959
no_entry_flag='-bnoentry'
9962
# When large executables or shared objects are built, AIX ld can
9963
# have problems creating the table of contents. If linking a library
9964
# or program results in "error TOC overflow" add -mminimal-toc to
9965
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9966
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9969
hardcode_direct_CXX=yes
9970
hardcode_libdir_separator_CXX=':'
9971
link_all_deplibs_CXX=yes
9973
if test "$GXX" = yes; then
9974
case $host_os in aix4.012|aix4.012.*)
9975
# We only want to do this on AIX 4.2 and lower, the check
9976
# below for broken collect2 doesn't work under 4.3+
9977
collect2name=`${CC} -print-prog-name=collect2`
9978
if test -f "$collect2name" && \
9979
strings "$collect2name" | grep resolve_lib_name >/dev/null
9981
# We have reworked collect2
9982
hardcode_direct_CXX=yes
9984
# We have old collect2
9985
hardcode_direct_CXX=unsupported
9986
# It fails to find uninstalled libraries when the uninstalled
9987
# path is not listed in the libpath. Setting hardcode_minus_L
9988
# to unsupported forces relinking
9989
hardcode_minus_L_CXX=yes
9990
hardcode_libdir_flag_spec_CXX='-L$libdir'
9991
hardcode_libdir_separator_CXX=
9994
shared_flag='-shared'
9997
if test "$host_cpu" = ia64; then
9998
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9999
# chokes on -Wl,-G. The following line is correct:
10002
if test "$aix_use_runtimelinking" = yes; then
10003
shared_flag='${wl}-G'
10005
shared_flag='${wl}-bM:SRE'
10010
# It seems that -bexpall does not export symbols beginning with
10011
# underscore (_), so it is better to generate a list of symbols to export.
10012
always_export_symbols_CXX=yes
10013
if test "$aix_use_runtimelinking" = yes; then
10014
# Warning - without using the other runtime loading flags (-brtl),
10015
# -berok will link without error, but may produce a broken library.
10016
allow_undefined_flag_CXX='-berok'
10017
# Determine the default libpath from the value encoded in an empty executable.
10018
cat >conftest.$ac_ext <<_ACEOF
10021
cat confdefs.h >>conftest.$ac_ext
10022
cat >>conftest.$ac_ext <<_ACEOF
10023
/* end confdefs.h. */
10033
rm -f conftest.$ac_objext conftest$ac_exeext
10034
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10035
(eval $ac_link) 2>conftest.er1
10037
grep -v '^ *+' conftest.er1 >conftest.err
10039
cat conftest.err >&5
10040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041
(exit $ac_status); } &&
10042
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10043
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10044
(eval $ac_try) 2>&5
10046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047
(exit $ac_status); }; } &&
10048
{ ac_try='test -s conftest$ac_exeext'
10049
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050
(eval $ac_try) 2>&5
10052
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053
(exit $ac_status); }; }; then
10055
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10057
# Check for a 64-bit object if we didn't find anything.
10058
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; }
10061
echo "$as_me: failed program was:" >&5
10062
sed 's/^/| /' conftest.$ac_ext >&5
10065
rm -f conftest.err conftest.$ac_objext \
10066
conftest$ac_exeext conftest.$ac_ext
10067
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10069
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10071
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"
10073
if test "$host_cpu" = ia64; then
10074
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10075
allow_undefined_flag_CXX="-z nodefs"
10076
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"
10078
# Determine the default libpath from the value encoded in an empty executable.
10079
cat >conftest.$ac_ext <<_ACEOF
10082
cat confdefs.h >>conftest.$ac_ext
10083
cat >>conftest.$ac_ext <<_ACEOF
10084
/* end confdefs.h. */
10094
rm -f conftest.$ac_objext conftest$ac_exeext
10095
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10096
(eval $ac_link) 2>conftest.er1
10098
grep -v '^ *+' conftest.er1 >conftest.err
10100
cat conftest.err >&5
10101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102
(exit $ac_status); } &&
10103
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10105
(eval $ac_try) 2>&5
10107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108
(exit $ac_status); }; } &&
10109
{ ac_try='test -s conftest$ac_exeext'
10110
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10111
(eval $ac_try) 2>&5
10113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114
(exit $ac_status); }; }; then
10116
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10118
# Check for a 64-bit object if we didn't find anything.
10119
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; }
10122
echo "$as_me: failed program was:" >&5
10123
sed 's/^/| /' conftest.$ac_ext >&5
10126
rm -f conftest.err conftest.$ac_objext \
10127
conftest$ac_exeext conftest.$ac_ext
10128
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10130
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10131
# Warning - without using the other run time loading flags,
10132
# -berok will link without error, but may produce a broken library.
10133
no_undefined_flag_CXX=' ${wl}-bernotok'
10134
allow_undefined_flag_CXX=' ${wl}-berok'
10135
# -bexpall does not export symbols beginning with underscore (_)
10136
always_export_symbols_CXX=yes
10137
# Exported symbols can be pulled into shared objects from archives
10138
whole_archive_flag_spec_CXX=' '
10139
archive_cmds_need_lc_CXX=yes
10140
# This is similar to how AIX traditionally builds it's shared libraries.
10141
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'
10146
case $cc_basename in
10148
# FIXME: insert proper C++ library support
10154
cygwin* | mingw* | pw32*)
10155
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10156
# as there is no search path for DLLs.
10157
hardcode_libdir_flag_spec_CXX='-L$libdir'
10158
allow_undefined_flag_CXX=unsupported
10159
always_export_symbols_CXX=no
10160
enable_shared_with_static_runtimes_CXX=yes
10162
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10163
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'
10164
# If the export-symbols file already is a .def file (1st line
10165
# is EXPORTS), use it as is; otherwise, prepend...
10166
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10167
cp $export_symbols $output_objdir/$soname.def;
10169
echo EXPORTS > $output_objdir/$soname.def;
10170
cat $export_symbols >> $output_objdir/$soname.def;
10172
$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'
10178
darwin* | rhapsody*)
10179
if test "$GXX" = yes; then
10180
archive_cmds_need_lc_CXX=no
10182
rhapsody* | darwin1.[012])
10183
allow_undefined_flag_CXX='-undefined suppress'
10186
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10187
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10189
case ${MACOSX_DEPLOYMENT_TARGET} in
10191
allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10194
allow_undefined_flag_CXX='-undefined dynamic_lookup'
10200
lt_int_apple_cc_single_mod=no
10201
output_verbose_link_cmd='echo'
10202
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10203
lt_int_apple_cc_single_mod=yes
10205
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10206
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10208
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'
10210
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10212
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10213
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10214
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}'
10216
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}'
10218
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}'
10219
hardcode_direct_CXX=no
10220
hardcode_automatic_CXX=yes
10221
hardcode_shlibpath_var_CXX=unsupported
10222
whole_archive_flag_spec_CXX='-all_load $convenience'
10223
link_all_deplibs_CXX=yes
10230
case $cc_basename in
10232
# FIXME: insert proper C++ library support
10236
# Green Hills C++ Compiler
10237
# FIXME: insert proper C++ library support
10241
# FIXME: insert proper C++ library support
10247
# C++ shared libraries reported to be fairly broken before switch to ELF
10251
archive_cmds_need_lc_CXX=no
10253
freebsd* | kfreebsd*-gnu)
10254
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10261
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10262
hardcode_libdir_separator_CXX=:
10263
export_dynamic_flag_spec_CXX='${wl}-E'
10264
hardcode_direct_CXX=yes
10265
hardcode_minus_L_CXX=yes # Not in the search PATH,
10266
# but as the default
10267
# location of the library.
10269
case $cc_basename in
10271
# FIXME: insert proper C++ library support
10275
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'
10276
# Commands to make compiler produce verbose output that lists
10277
# what "hidden" libraries, object files and flags are used when
10278
# linking a shared library.
10280
# There doesn't appear to be a way to prevent this compiler from
10281
# explicitly linking system object files so we need to strip them
10282
# from the output so that they don't get included in the library
10284
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10287
if test "$GXX" = yes; then
10288
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'
10290
# FIXME: insert proper C++ library support
10297
if test $with_gnu_ld = no; then
10298
case "$host_cpu" in
10300
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10301
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10302
hardcode_libdir_separator_CXX=:
10305
hardcode_libdir_flag_spec_CXX='-L$libdir'
10308
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10309
hardcode_libdir_separator_CXX=:
10310
export_dynamic_flag_spec_CXX='${wl}-E'
10314
case "$host_cpu" in
10316
hardcode_direct_CXX=no
10317
hardcode_shlibpath_var_CXX=no
10320
hardcode_direct_CXX=no
10321
hardcode_shlibpath_var_CXX=no
10322
hardcode_minus_L_CXX=yes # Not in the search PATH,
10323
# but as the default
10324
# location of the library.
10327
hardcode_direct_CXX=yes
10328
hardcode_minus_L_CXX=yes # Not in the search PATH,
10329
# but as the default
10330
# location of the library.
10334
case $cc_basename in
10336
# FIXME: insert proper C++ library support
10340
case "$host_cpu" in
10342
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10345
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10348
# Commands to make compiler produce verbose output that lists
10349
# what "hidden" libraries, object files and flags are used when
10350
# linking a shared library.
10352
# There doesn't appear to be a way to prevent this compiler from
10353
# explicitly linking system object files so we need to strip them
10354
# from the output so that they don't get included in the library
10356
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'
10359
if test "$GXX" = yes; then
10360
if test $with_gnu_ld = no; then
10361
case "$host_cpu" in
10363
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10366
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'
10371
# FIXME: insert proper C++ library support
10378
case $cc_basename in
10381
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'
10383
# Archives containing C++ object files must be created using
10384
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
10385
# necessary to make sure instantiated templates are included
10387
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10390
if test "$GXX" = yes; then
10391
if test "$with_gnu_ld" = no; then
10392
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'
10394
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'
10397
link_all_deplibs_CXX=yes
10400
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10401
hardcode_libdir_separator_CXX=:
10404
case $cc_basename in
10406
# Kuck and Associates, Inc. (KAI) C++ Compiler
10408
# KCC will only create a shared library if the output file
10409
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10410
# to its proper name (with version) after linking.
10411
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'
10412
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'
10413
# Commands to make compiler produce verbose output that lists
10414
# what "hidden" libraries, object files and flags are used when
10415
# linking a shared library.
10417
# There doesn't appear to be a way to prevent this compiler from
10418
# explicitly linking system object files so we need to strip them
10419
# from the output so that they don't get included in the library
10421
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'
10423
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10424
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10426
# Archives containing C++ object files must be created using
10427
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10428
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10433
archive_cmds_need_lc_CXX=no
10434
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10435
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'
10436
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10437
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10438
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10442
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10443
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'
10445
runpath_var=LD_RUN_PATH
10446
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10447
hardcode_libdir_separator_CXX=:
10449
# Commands to make compiler produce verbose output that lists
10450
# what "hidden" libraries, object files and flags are used when
10451
# linking a shared library.
10453
# There doesn't appear to be a way to prevent this compiler from
10454
# explicitly linking system object files so we need to strip them
10455
# from the output so that they don't get included in the library
10457
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'
10462
# FIXME: insert proper C++ library support
10466
# FIXME: insert proper C++ library support
10470
case $cc_basename in
10472
# FIXME: insert proper C++ library support
10476
# FIXME: insert proper C++ library support
10482
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10483
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10485
hardcode_libdir_flag_spec_CXX='-R$libdir'
10486
hardcode_direct_CXX=yes
10487
hardcode_shlibpath_var_CXX=no
10489
# Workaround some broken pre-1.5 toolchains
10490
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10493
case $cc_basename in
10495
# Kuck and Associates, Inc. (KAI) C++ Compiler
10497
# KCC will only create a shared library if the output file
10498
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10499
# to its proper name (with version) after linking.
10500
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'
10502
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10503
hardcode_libdir_separator_CXX=:
10505
# Archives containing C++ object files must be created using
10506
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10507
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10511
# Rational C++ 2.4.1
10512
# FIXME: insert proper C++ library support
10516
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10517
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'
10519
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10520
hardcode_libdir_separator_CXX=:
10522
# Commands to make compiler produce verbose output that lists
10523
# what "hidden" libraries, object files and flags are used when
10524
# linking a shared library.
10526
# There doesn't appear to be a way to prevent this compiler from
10527
# explicitly linking system object files so we need to strip them
10528
# from the output so that they don't get included in the library
10530
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'
10533
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10534
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10535
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'
10537
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10538
hardcode_libdir_separator_CXX=:
10540
# Commands to make compiler produce verbose output that lists
10541
# what "hidden" libraries, object files and flags are used when
10542
# linking a shared library.
10543
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10546
# FIXME: insert proper C++ library support
10553
case $cc_basename in
10555
# Kuck and Associates, Inc. (KAI) C++ Compiler
10557
# KCC will only create a shared library if the output file
10558
# ends with ".so" (or ".sl" for HP-UX), so rename the library
10559
# to its proper name (with version) after linking.
10560
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'
10562
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10563
hardcode_libdir_separator_CXX=:
10565
# Archives containing C++ object files must be created using
10566
# the KAI C++ compiler.
10567
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10570
# Rational C++ 2.4.1
10571
# FIXME: insert proper C++ library support
10575
allow_undefined_flag_CXX=' -expect_unresolved \*'
10576
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'
10577
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10578
echo "-hidden">> $lib.exp~
10579
$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~
10582
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10583
hardcode_libdir_separator_CXX=:
10585
# Commands to make compiler produce verbose output that lists
10586
# what "hidden" libraries, object files and flags are used when
10587
# linking a shared library.
10589
# There doesn't appear to be a way to prevent this compiler from
10590
# explicitly linking system object files so we need to strip them
10591
# from the output so that they don't get included in the library
10593
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'
10596
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10597
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10598
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'
10600
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10601
hardcode_libdir_separator_CXX=:
10603
# Commands to make compiler produce verbose output that lists
10604
# what "hidden" libraries, object files and flags are used when
10605
# linking a shared library.
10606
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10609
# FIXME: insert proper C++ library support
10616
# FIXME: insert proper C++ library support
10620
archive_cmds_need_lc_CXX=no
10621
case $cc_basename in
10623
# FIXME: insert proper C++ library support
10627
# FIXME: insert proper C++ library support
10633
case $cc_basename in
10636
# FIXME: insert proper C++ library support
10641
# FIXME: insert proper C++ library support
10645
# FIXME: insert proper C++ library support
10651
case $cc_basename in
10653
# Sun C++ 4.2, 5.x and Centerline C++
10654
no_undefined_flag_CXX=' -zdefs'
10655
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10656
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10657
$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'
10659
hardcode_libdir_flag_spec_CXX='-R$libdir'
10660
hardcode_shlibpath_var_CXX=no
10662
solaris2.0-5 | solaris2.0-5.*) ;;
10664
# The C++ compiler is used as linker so we must use $wl
10665
# flag to pass the commands to the underlying system
10667
# Supported since Solaris 2.6 (maybe 2.5.1?)
10668
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10671
link_all_deplibs_CXX=yes
10673
# Commands to make compiler produce verbose output that lists
10674
# what "hidden" libraries, object files and flags are used when
10675
# linking a shared library.
10677
# There doesn't appear to be a way to prevent this compiler from
10678
# explicitly linking system object files so we need to strip them
10679
# from the output so that they don't get included in the library
10681
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'
10683
# Archives containing C++ object files must be created using
10684
# "CC -xar", where "CC" is the Sun C++ compiler. This is
10685
# necessary to make sure instantiated templates are included
10687
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10690
# Green Hills C++ Compiler
10691
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10693
# The C++ compiler must be used to create the archive.
10694
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10697
# GNU C++ compiler with Solaris linker
10698
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10699
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10700
if $CC --version | grep -v '^2\.7' > /dev/null; then
10701
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10702
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10703
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10705
# Commands to make compiler produce verbose output that lists
10706
# what "hidden" libraries, object files and flags are used when
10707
# linking a shared library.
10708
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10710
# g++ 2.7 appears to require `-G' NOT `-shared' on this
10712
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10713
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10714
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10716
# Commands to make compiler produce verbose output that lists
10717
# what "hidden" libraries, object files and flags are used when
10718
# linking a shared library.
10719
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10722
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10727
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10728
archive_cmds_need_lc_CXX=no
10731
case $cc_basename in
10733
# NonStop-UX NCC 3.20
10734
# FIXME: insert proper C++ library support
10738
# FIXME: insert proper C++ library support
10744
# FIXME: insert proper C++ library support
10748
# FIXME: insert proper C++ library support
10752
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10753
echo "${ECHO_T}$ld_shlibs_CXX" >&6
10754
test "$ld_shlibs_CXX" = no && can_build_shared=no
10760
cat > conftest.$ac_ext <<EOF
10764
Foo (void) { a = 0; }
10770
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10771
(eval $ac_compile) 2>&5
10773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774
(exit $ac_status); }; then
10775
# Parse the compiler output and extract the necessary
10776
# objects, libraries and library flags.
10778
# Sentinel used to keep track of whether or not we are before
10779
# the conftest object file.
10780
pre_test_object_deps_done=no
10782
# The `*' in the case matches for architectures that use `case' in
10783
# $output_verbose_cmd can trigger glob expansion during the loop
10784
# eval without this substitution.
10785
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10787
for p in `eval $output_verbose_link_cmd`; do
10791
# Some compilers place space between "-{L,R}" and the path.
10792
# Remove the space.
10793
if test $p = "-L" \
10794
|| test $p = "-R"; then
10801
if test "$pre_test_object_deps_done" = no; then
10804
# Internal compiler library paths should come after those
10805
# provided the user. The postdeps already come after the
10806
# user supplied libs so there is no need to process them.
10807
if test -z "$compiler_lib_search_path_CXX"; then
10808
compiler_lib_search_path_CXX="${prev}${p}"
10810
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10813
# The "-l" case would never come before the object being
10814
# linked, so don't bother handling this case.
10817
if test -z "$postdeps_CXX"; then
10818
postdeps_CXX="${prev}${p}"
10820
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10826
# This assumes that the test object file only shows up
10827
# once in the compiler output.
10828
if test "$p" = "conftest.$objext"; then
10829
pre_test_object_deps_done=yes
10833
if test "$pre_test_object_deps_done" = no; then
10834
if test -z "$predep_objects_CXX"; then
10835
predep_objects_CXX="$p"
10837
predep_objects_CXX="$predep_objects_CXX $p"
10840
if test -z "$postdep_objects_CXX"; then
10841
postdep_objects_CXX="$p"
10843
postdep_objects_CXX="$postdep_objects_CXX $p"
10848
*) ;; # Ignore the rest.
10856
echo "libtool.m4: error: problem compiling CXX test program"
10859
$rm -f confest.$objext
10861
case " $postdeps_CXX " in
10862
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10865
lt_prog_compiler_wl_CXX=
10866
lt_prog_compiler_pic_CXX=
10867
lt_prog_compiler_static_CXX=
10869
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10870
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10872
# C++ specific cases for pic, static, wl, etc.
10873
if test "$GXX" = yes; then
10874
lt_prog_compiler_wl_CXX='-Wl,'
10875
lt_prog_compiler_static_CXX='-static'
10879
# All AIX code is PIC.
10880
if test "$host_cpu" = ia64; then
10881
# AIX 5 now supports IA64 processor
10882
lt_prog_compiler_static_CXX='-Bstatic'
10886
# FIXME: we need at least 68020 code to build shared libraries, but
10887
# adding the `-m68020' flag to GCC prevents building anything better,
10889
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10891
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10892
# PIC is the default for these OSes.
10894
mingw* | os2* | pw32*)
10895
# This hack is so that the source file can tell whether it is being
10896
# built for inclusion in a dll (and should export symbols for example).
10897
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10899
darwin* | rhapsody*)
10900
# PIC is the default on this platform
10901
# Common symbols not allowed in MH_DYLIB files
10902
lt_prog_compiler_pic_CXX='-fno-common'
10905
# DJGPP does not support shared libraries at all
10906
lt_prog_compiler_pic_CXX=
10909
if test -d /usr/nec; then
10910
lt_prog_compiler_pic_CXX=-Kconform_pic
10914
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10915
# not for PA HP-UX.
10916
case "$host_cpu" in
10920
lt_prog_compiler_pic_CXX='-fPIC'
10925
lt_prog_compiler_pic_CXX='-fPIC'
10931
# All AIX code is PIC.
10932
if test "$host_cpu" = ia64; then
10933
# AIX 5 now supports IA64 processor
10934
lt_prog_compiler_static_CXX='-Bstatic'
10936
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10940
case $cc_basename in
10942
# Green Hills C++ Compiler
10943
# _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"
10948
case $cc_basename in
10950
lt_prog_compiler_pic_CXX='-KPIC'
10953
# Green Hills C++ Compiler
10954
lt_prog_compiler_pic_CXX='-pic'
10960
freebsd* | kfreebsd*-gnu)
10961
# FreeBSD uses GNU C++
10963
hpux9* | hpux10* | hpux11*)
10964
case $cc_basename in
10966
lt_prog_compiler_wl_CXX='-Wl,'
10967
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10968
if test "$host_cpu" != ia64; then
10969
lt_prog_compiler_pic_CXX='+Z'
10973
lt_prog_compiler_wl_CXX='-Wl,'
10974
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10975
case "$host_cpu" in
10980
lt_prog_compiler_pic_CXX='+Z'
10988
irix5* | irix6* | nonstopux*)
10989
case $cc_basename in
10991
lt_prog_compiler_wl_CXX='-Wl,'
10992
lt_prog_compiler_static_CXX='-non_shared'
10993
# CC pic flag -KPIC is the default.
11000
case $cc_basename in
11003
lt_prog_compiler_wl_CXX='--backend -Wl,'
11004
lt_prog_compiler_pic_CXX='-fPIC'
11008
lt_prog_compiler_wl_CXX='-Wl,'
11009
lt_prog_compiler_pic_CXX='-KPIC'
11010
lt_prog_compiler_static_CXX='-static'
11014
# Make sure the PIC flag is empty. It appears that all Alpha
11015
# Linux and Compaq Tru64 Unix objects are PIC.
11016
lt_prog_compiler_pic_CXX=
11017
lt_prog_compiler_static_CXX='-non_shared'
11028
case $cc_basename in
11030
lt_prog_compiler_pic_CXX='-W c,exportall'
11038
osf3* | osf4* | osf5*)
11039
case $cc_basename in
11041
lt_prog_compiler_wl_CXX='--backend -Wl,'
11044
# Rational C++ 2.4.1
11045
lt_prog_compiler_pic_CXX='-pic'
11048
# Digital/Compaq C++
11049
lt_prog_compiler_wl_CXX='-Wl,'
11050
# Make sure the PIC flag is empty. It appears that all Alpha
11051
# Linux and Compaq Tru64 Unix objects are PIC.
11052
lt_prog_compiler_pic_CXX=
11053
lt_prog_compiler_static_CXX='-non_shared'
11062
case $cc_basename in
11064
lt_prog_compiler_pic_CXX='-fPIC'
11071
case $cc_basename in
11073
# Sun C++ 4.2, 5.x and Centerline C++
11074
lt_prog_compiler_pic_CXX='-KPIC'
11075
lt_prog_compiler_static_CXX='-Bstatic'
11076
lt_prog_compiler_wl_CXX='-Qoption ld '
11079
# Green Hills C++ Compiler
11080
lt_prog_compiler_pic_CXX='-PIC'
11087
case $cc_basename in
11090
lt_prog_compiler_pic_CXX='-pic'
11091
lt_prog_compiler_static_CXX='-Bstatic'
11095
lt_prog_compiler_pic_CXX='-pic'
11102
case $cc_basename in
11104
# NonStop-UX NCC 3.20
11105
lt_prog_compiler_pic_CXX='-KPIC'
11116
lt_prog_compiler_can_build_shared_CXX=no
11121
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11122
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11125
# Check to make sure the PIC flag actually works.
11127
if test -n "$lt_prog_compiler_pic_CXX"; then
11129
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11130
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11131
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11132
echo $ECHO_N "(cached) $ECHO_C" >&6
11134
lt_prog_compiler_pic_works_CXX=no
11135
ac_outfile=conftest.$ac_objext
11136
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11137
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11138
# Insert the option either (1) after the last *FLAGS variable, or
11139
# (2) before a word containing "conftest.", or (3) at the end.
11140
# Note that $ac_compile itself does not contain backslashes and begins
11141
# with a dollar sign (not a hyphen), so the echo should work correctly.
11142
# The option is referenced via a variable to avoid confusing sed.
11143
lt_compile=`echo "$ac_compile" | $SED \
11144
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11145
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11146
-e 's:$: $lt_compiler_flag:'`
11147
(eval echo "\"\$as_me:11147: $lt_compile\"" >&5)
11148
(eval "$lt_compile" 2>conftest.err)
11150
cat conftest.err >&5
11151
echo "$as_me:11151: \$? = $ac_status" >&5
11152
if (exit $ac_status) && test -s "$ac_outfile"; then
11153
# The compiler can only warn and ignore the option if not recognized
11154
# So say no if there are warnings
11155
if test ! -s conftest.err; then
11156
lt_prog_compiler_pic_works_CXX=yes
11162
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11163
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11165
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11166
case $lt_prog_compiler_pic_CXX in
11168
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11171
lt_prog_compiler_pic_CXX=
11172
lt_prog_compiler_can_build_shared_CXX=no
11177
# For platforms which do not support PIC, -DPIC is meaningless:
11179
lt_prog_compiler_pic_CXX=
11182
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11186
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11187
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11188
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11189
echo $ECHO_N "(cached) $ECHO_C" >&6
11191
lt_cv_prog_compiler_c_o_CXX=no
11192
$rm -r conftest 2>/dev/null
11196
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11198
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11199
# that will create temporary files in the current directory regardless of
11200
# the output directory. Thus, making CWD read-only will cause this test
11201
# to fail, enabling locking or at least warning the user not to do parallel
11205
lt_compiler_flag="-o out/conftest2.$ac_objext"
11206
# Insert the option either (1) after the last *FLAGS variable, or
11207
# (2) before a word containing "conftest.", or (3) at the end.
11208
# Note that $ac_compile itself does not contain backslashes and begins
11209
# with a dollar sign (not a hyphen), so the echo should work correctly.
11210
lt_compile=`echo "$ac_compile" | $SED \
11211
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11212
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11213
-e 's:$: $lt_compiler_flag:'`
11214
(eval echo "\"\$as_me:11214: $lt_compile\"" >&5)
11215
(eval "$lt_compile" 2>out/conftest.err)
11217
cat out/conftest.err >&5
11218
echo "$as_me:11218: \$? = $ac_status" >&5
11219
if (exit $ac_status) && test -s out/conftest2.$ac_objext
11221
# The compiler can only warn and ignore the option if not recognized
11222
# So say no if there are warnings
11223
if test ! -s out/conftest.err; then
11224
lt_cv_prog_compiler_c_o_CXX=yes
11229
# SGI C++ compiler will create directory out/ii_files/ for
11230
# template instantiation
11231
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11232
$rm out/* && rmdir out
11238
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11239
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11242
hard_links="nottested"
11243
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11244
# do not overwrite the value of need_locks provided by the user
11245
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11246
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11249
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11251
ln conftest.a conftest.b 2>&5 || hard_links=no
11252
ln conftest.a conftest.b 2>/dev/null && hard_links=no
11253
echo "$as_me:$LINENO: result: $hard_links" >&5
11254
echo "${ECHO_T}$hard_links" >&6
11255
if test "$hard_links" = no; then
11256
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11257
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11264
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11265
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11267
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11270
# If we're using GNU nm, then we don't want the "-C" option.
11271
# -C means demangle to AIX nm, but means don't demangle with GNU nm
11272
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11273
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'
11275
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'
11279
export_symbols_cmds_CXX="$ltdll_cmds"
11282
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11285
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11289
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11290
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11291
test "$ld_shlibs_CXX" = no && can_build_shared=no
11293
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11294
if test "$GCC" = yes; then
11295
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11299
# Do we need to explicitly link libc?
11301
case "x$archive_cmds_need_lc_CXX" in
11303
# Assume -lc should be added
11304
archive_cmds_need_lc_CXX=yes
11306
if test "$enable_shared" = yes && test "$GCC" = yes; then
11307
case $archive_cmds_CXX in
11309
# FIXME: we may have to deal with multi-command sequences.
11312
# Test whether the compiler implicitly links with -lc since on some
11313
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11314
# to ld, don't add -lc before -lgcc.
11315
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11316
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11318
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11320
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11321
(eval $ac_compile) 2>&5
11323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324
(exit $ac_status); } 2>conftest.err; then
11327
libobjs=conftest.$ac_objext
11329
wl=$lt_prog_compiler_wl_CXX
11335
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11336
allow_undefined_flag_CXX=
11337
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11338
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11340
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341
(exit $ac_status); }
11343
archive_cmds_need_lc_CXX=no
11345
archive_cmds_need_lc_CXX=yes
11347
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11349
cat conftest.err 1>&5
11352
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11353
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11360
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11361
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11362
library_names_spec=
11363
libname_spec='lib$name'
11367
postuninstall_cmds=
11371
shlibpath_overrides_runpath=unknown
11373
dynamic_linker="$host_os ld.so"
11374
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11375
if test "$GCC" = yes; then
11376
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11377
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11378
# if the path contains ";" then we assume it to be the separator
11379
# otherwise default to the standard path separator (i.e. ":") - it is
11380
# assumed that no part of a normal pathname contains ";" but that should
11381
# okay in the real world where ";" in dirpaths is itself problematic.
11382
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11384
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11387
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11389
need_lib_prefix=unknown
11390
hardcode_into_libs=no
11392
# when you set need_version to no, make sure it does not cause -set_version
11393
# flags to be left without arguments
11394
need_version=unknown
11399
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11400
shlibpath_var=LIBPATH
11402
# AIX 3 has no versioning support, so we append a major version to the name.
11403
soname_spec='${libname}${release}${shared_ext}$major'
11410
hardcode_into_libs=yes
11411
if test "$host_cpu" = ia64; then
11412
# AIX 5 supports IA64
11413
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11414
shlibpath_var=LD_LIBRARY_PATH
11416
# With GCC up to 2.95.x, collect2 would create an import file
11417
# for dependence libraries. The import file would start with
11418
# the line `#! .'. This would cause the generated library to
11419
# depend on `.', always an invalid library. This was fixed in
11420
# development snapshots of GCC prior to 3.0.
11422
aix4 | aix4.[01] | aix4.[01].*)
11423
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11425
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11428
can_build_shared=no
11432
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11433
# soname into executable. Probably we can add versioning support to
11434
# collect2, so additional links can be useful in future.
11435
if test "$aix_use_runtimelinking" = yes; then
11436
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11437
# instead of lib<name>.a to let people know that these are not
11438
# typical AIX shared libraries.
11439
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11441
# We preserve .a as extension for shared libraries through AIX4.2
11442
# and later when we are not doing run time linking.
11443
library_names_spec='${libname}${release}.a $libname.a'
11444
soname_spec='${libname}${release}${shared_ext}$major'
11446
shlibpath_var=LIBPATH
11451
library_names_spec='$libname.ixlibrary $libname.a'
11452
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11453
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'
11457
library_names_spec='${libname}${shared_ext}'
11458
dynamic_linker="$host_os ld.so"
11459
shlibpath_var=LIBRARY_PATH
11465
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466
soname_spec='${libname}${release}${shared_ext}$major'
11467
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11468
shlibpath_var=LD_LIBRARY_PATH
11469
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11470
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11471
# the default ld.so.conf also contains /usr/contrib/lib and
11472
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11473
# libtool to hard-code these into programs
11476
cygwin* | mingw* | pw32*)
11477
version_type=windows
11482
case $GCC,$host_os in
11483
yes,cygwin* | yes,mingw* | yes,pw32*)
11484
library_names_spec='$libname.dll.a'
11485
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11486
postinstall_cmds='base_file=`basename \${file}`~
11487
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11488
dldir=$destdir/`dirname \$dlpath`~
11489
test -d \$dldir || mkdir -p \$dldir~
11490
$install_prog $dir/$dlname \$dldir/$dlname'
11491
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11492
dlpath=$dir/\$dldll~
11494
shlibpath_overrides_runpath=yes
11498
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11499
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11500
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11503
# MinGW DLLs use traditional 'lib' prefix
11504
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11505
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11506
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11507
# It is most probably a Windows format PATH printed by
11508
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11509
# path with ; separators, and with drive letters. We can handle the
11510
# drive letters (cygwin fileutils understands them), so leave them,
11511
# especially as we might pass files found there to a mingw objdump,
11512
# which wouldn't understand a cygwinified path. Ahh.
11513
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11515
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11519
# pw32 DLLs use 'pw' prefix rather than 'lib'
11520
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11526
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11529
dynamic_linker='Win32 ld.exe'
11530
# FIXME: first we should search . and the directory the executable is in
11534
darwin* | rhapsody*)
11535
dynamic_linker="$host_os dyld"
11536
version_type=darwin
11539
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11540
soname_spec='${libname}${release}${major}$shared_ext'
11541
shlibpath_overrides_runpath=yes
11542
shlibpath_var=DYLD_LIBRARY_PATH
11543
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11544
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11545
if test "$GCC" = yes; then
11546
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"`
11548
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11550
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11557
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11558
soname_spec='${libname}${release}${shared_ext}$major'
11559
shlibpath_var=LD_LIBRARY_PATH
11570
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11571
soname_spec='${libname}${release}${shared_ext}$major'
11572
shlibpath_var=LD_LIBRARY_PATH
11573
shlibpath_overrides_runpath=no
11574
hardcode_into_libs=yes
11575
dynamic_linker='GNU ld.so'
11579
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11580
version_type=freebsd-$objformat
11581
case $version_type in
11583
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11588
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11592
shlibpath_var=LD_LIBRARY_PATH
11595
shlibpath_overrides_runpath=yes
11597
freebsd3.01* | freebsdelf3.01*)
11598
shlibpath_overrides_runpath=yes
11599
hardcode_into_libs=yes
11602
shlibpath_overrides_runpath=no
11603
hardcode_into_libs=yes
11612
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11613
soname_spec='${libname}${release}${shared_ext}$major'
11614
shlibpath_var=LD_LIBRARY_PATH
11615
hardcode_into_libs=yes
11618
hpux9* | hpux10* | hpux11*)
11619
# Give a soname corresponding to the major version so that dld.sl refuses to
11620
# link against other versions.
11624
case "$host_cpu" in
11627
hardcode_into_libs=yes
11628
dynamic_linker="$host_os dld.so"
11629
shlibpath_var=LD_LIBRARY_PATH
11630
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11631
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632
soname_spec='${libname}${release}${shared_ext}$major'
11633
if test "X$HPUX_IA64_MODE" = X32; then
11634
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11636
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11638
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11642
hardcode_into_libs=yes
11643
dynamic_linker="$host_os dld.sl"
11644
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11645
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11646
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11647
soname_spec='${libname}${release}${shared_ext}$major'
11648
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11649
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11653
dynamic_linker="$host_os dld.sl"
11654
shlibpath_var=SHLIB_PATH
11655
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11656
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11657
soname_spec='${libname}${release}${shared_ext}$major'
11660
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11661
postinstall_cmds='chmod 555 $lib'
11664
irix5* | irix6* | nonstopux*)
11666
nonstopux*) version_type=nonstopux ;;
11668
if test "$lt_cv_prog_gnu_ld" = yes; then
11676
soname_spec='${libname}${release}${shared_ext}$major'
11677
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11679
irix5* | nonstopux*)
11680
libsuff= shlibsuff=
11683
case $LD in # libtool.m4 will add one of these switches to LD
11684
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11685
libsuff= shlibsuff= libmagic=32-bit;;
11686
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11687
libsuff=32 shlibsuff=N32 libmagic=N32;;
11688
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11689
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11690
*) libsuff= shlibsuff= libmagic=never-match;;
11694
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11695
shlibpath_overrides_runpath=no
11696
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11697
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11698
hardcode_into_libs=yes
11701
# No shared lib support for Linux oldld, aout, or coff.
11702
linux*oldld* | linux*aout* | linux*coff*)
11706
# This must be Linux ELF.
11711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712
soname_spec='${libname}${release}${shared_ext}$major'
11713
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11714
shlibpath_var=LD_LIBRARY_PATH
11715
shlibpath_overrides_runpath=no
11716
# This implies no fast_install, which is unacceptable.
11717
# Some rework will be needed to allow for fast_install
11718
# before this can be enabled.
11719
hardcode_into_libs=yes
11721
# Append ld.so.conf contents to the search path
11722
if test -f /etc/ld.so.conf; then
11723
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11724
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11727
# We used to test for /lib/ld.so.1 and disable shared libraries on
11728
# powerpc, because MkLinux only supported shared libraries with the
11729
# GNU dynamic linker. Since this was broken with cross compilers,
11730
# most powerpc-linux boxes support dynamic linking these days and
11731
# people can always --disable-shared, the test was removed, and we
11732
# assume the GNU/Linux dynamic linker is in use.
11733
dynamic_linker='GNU/Linux ld.so'
11740
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11741
soname_spec='${libname}${release}${shared_ext}$major'
11742
shlibpath_var=LD_LIBRARY_PATH
11743
shlibpath_overrides_runpath=no
11744
hardcode_into_libs=yes
11745
dynamic_linker='GNU ld.so'
11752
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11753
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11754
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11755
dynamic_linker='NetBSD (a.out) ld.so'
11757
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11758
soname_spec='${libname}${release}${shared_ext}$major'
11759
dynamic_linker='NetBSD ld.elf_so'
11761
shlibpath_var=LD_LIBRARY_PATH
11762
shlibpath_overrides_runpath=yes
11763
hardcode_into_libs=yes
11768
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11769
shlibpath_var=LD_LIBRARY_PATH
11770
shlibpath_overrides_runpath=yes
11777
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11778
soname_spec='${libname}${release}${shared_ext}$major'
11779
shlibpath_var=LD_LIBRARY_PATH
11780
shlibpath_overrides_runpath=yes
11787
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11788
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11789
shlibpath_var=LD_LIBRARY_PATH
11790
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11792
openbsd2.[89] | openbsd2.[89].*)
11793
shlibpath_overrides_runpath=no
11796
shlibpath_overrides_runpath=yes
11800
shlibpath_overrides_runpath=yes
11805
libname_spec='$name'
11808
library_names_spec='$libname${shared_ext} $libname.a'
11809
dynamic_linker='OS/2 ld.exe'
11810
shlibpath_var=LIBPATH
11813
osf3* | osf4* | osf5*)
11817
soname_spec='${libname}${release}${shared_ext}$major'
11818
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819
shlibpath_var=LD_LIBRARY_PATH
11820
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11821
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11826
soname_spec='${libname}${release}${shared_ext}$major'
11827
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11828
shlibpath_var=LD_LIBRARY_PATH
11835
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11836
soname_spec='${libname}${release}${shared_ext}$major'
11837
shlibpath_var=LD_LIBRARY_PATH
11838
shlibpath_overrides_runpath=yes
11839
hardcode_into_libs=yes
11840
# ldd complains unless libraries are executable
11841
postinstall_cmds='chmod +x $lib'
11846
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11847
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11848
shlibpath_var=LD_LIBRARY_PATH
11849
shlibpath_overrides_runpath=yes
11850
if test "$with_gnu_ld" = yes; then
11856
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11859
soname_spec='${libname}${release}${shared_ext}$major'
11860
shlibpath_var=LD_LIBRARY_PATH
11861
case $host_vendor in
11863
shlibpath_overrides_runpath=no
11865
export_dynamic_flag_spec='${wl}-Blargedynsym'
11866
runpath_var=LD_RUN_PATH
11874
shlibpath_overrides_runpath=no
11875
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11881
if test -d /usr/nec ;then
11883
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11884
soname_spec='$libname${shared_ext}.$major'
11885
shlibpath_var=LD_LIBRARY_PATH
11891
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892
soname_spec='${libname}${release}${shared_ext}$major'
11893
shlibpath_var=LD_LIBRARY_PATH
11900
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11901
echo "${ECHO_T}$dynamic_linker" >&6
11902
test "$dynamic_linker" = no && can_build_shared=no
11904
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11905
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11906
hardcode_action_CXX=
11907
if test -n "$hardcode_libdir_flag_spec_CXX" || \
11908
test -n "$runpath_var CXX" || \
11909
test "X$hardcode_automatic_CXX"="Xyes" ; then
11911
# We can hardcode non-existant directories.
11912
if test "$hardcode_direct_CXX" != no &&
11913
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11914
# have to relink, otherwise we might link with an installed library
11915
# when we should be linking with a yet-to-be-installed one
11916
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11917
test "$hardcode_minus_L_CXX" != no; then
11918
# Linking always hardcodes the temporary library directory.
11919
hardcode_action_CXX=relink
11921
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11922
hardcode_action_CXX=immediate
11925
# We cannot hardcode anything, or else we can only hardcode existing
11927
hardcode_action_CXX=unsupported
11929
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11930
echo "${ECHO_T}$hardcode_action_CXX" >&6
11932
if test "$hardcode_action_CXX" = relink; then
11933
# Fast installation is not supported
11934
enable_fast_install=no
11935
elif test "$shlibpath_overrides_runpath" = yes ||
11936
test "$enable_shared" = no; then
11937
# Fast installation is not necessary
11938
enable_fast_install=needless
11943
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11944
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11945
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11946
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11947
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11948
echo "$as_me:$LINENO: result: yes" >&5
11949
echo "${ECHO_T}yes" >&6
11951
# FIXME - insert some real tests, host_os isn't really good enough
11954
if test -n "$STRIP" ; then
11955
striplib="$STRIP -x"
11956
echo "$as_me:$LINENO: result: yes" >&5
11957
echo "${ECHO_T}yes" >&6
11959
echo "$as_me:$LINENO: result: no" >&5
11960
echo "${ECHO_T}no" >&6
11964
echo "$as_me:$LINENO: result: no" >&5
11965
echo "${ECHO_T}no" >&6
11970
if test "x$enable_dlopen" != xyes; then
11971
enable_dlopen=unknown
11972
enable_dlopen_self=unknown
11973
enable_dlopen_self_static=unknown
11980
lt_cv_dlopen="load_add_on"
11982
lt_cv_dlopen_self=yes
11986
lt_cv_dlopen="LoadLibrary"
11991
lt_cv_dlopen="dlopen"
11996
# if libdl is installed we need to link against it
11997
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11998
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11999
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12000
echo $ECHO_N "(cached) $ECHO_C" >&6
12002
ac_check_lib_save_LIBS=$LIBS
12004
cat >conftest.$ac_ext <<_ACEOF
12007
cat confdefs.h >>conftest.$ac_ext
12008
cat >>conftest.$ac_ext <<_ACEOF
12009
/* end confdefs.h. */
12011
/* Override any gcc2 internal prototype to avoid an error. */
12015
/* We use char because int might match the return type of a gcc2
12016
builtin and then its argument prototype would still apply. */
12026
rm -f conftest.$ac_objext conftest$ac_exeext
12027
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028
(eval $ac_link) 2>conftest.er1
12030
grep -v '^ *+' conftest.er1 >conftest.err
12032
cat conftest.err >&5
12033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034
(exit $ac_status); } &&
12035
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12036
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12037
(eval $ac_try) 2>&5
12039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040
(exit $ac_status); }; } &&
12041
{ ac_try='test -s conftest$ac_exeext'
12042
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043
(eval $ac_try) 2>&5
12045
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046
(exit $ac_status); }; }; then
12047
ac_cv_lib_dl_dlopen=yes
12049
echo "$as_me: failed program was:" >&5
12050
sed 's/^/| /' conftest.$ac_ext >&5
12052
ac_cv_lib_dl_dlopen=no
12054
rm -f conftest.err conftest.$ac_objext \
12055
conftest$ac_exeext conftest.$ac_ext
12056
LIBS=$ac_check_lib_save_LIBS
12058
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12059
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12060
if test $ac_cv_lib_dl_dlopen = yes; then
12061
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12064
lt_cv_dlopen="dyld"
12066
lt_cv_dlopen_self=yes
12073
echo "$as_me:$LINENO: checking for shl_load" >&5
12074
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12075
if test "${ac_cv_func_shl_load+set}" = set; then
12076
echo $ECHO_N "(cached) $ECHO_C" >&6
12078
cat >conftest.$ac_ext <<_ACEOF
12081
cat confdefs.h >>conftest.$ac_ext
12082
cat >>conftest.$ac_ext <<_ACEOF
12083
/* end confdefs.h. */
12084
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12085
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12086
#define shl_load innocuous_shl_load
12088
/* System header to define __stub macros and hopefully few prototypes,
12089
which can conflict with char shl_load (); below.
12090
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12091
<limits.h> exists even on freestanding compilers. */
12094
# include <limits.h>
12096
# include <assert.h>
12101
/* Override any gcc2 internal prototype to avoid an error. */
12106
/* We use char because int might match the return type of a gcc2
12107
builtin and then its argument prototype would still apply. */
12109
/* The GNU C library defines this for functions which it implements
12110
to always fail with ENOSYS. Some functions are actually named
12111
something starting with __ and the normal name is an alias. */
12112
#if defined (__stub_shl_load) || defined (__stub___shl_load)
12115
char (*f) () = shl_load;
12124
return f != shl_load;
12129
rm -f conftest.$ac_objext conftest$ac_exeext
12130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12131
(eval $ac_link) 2>conftest.er1
12133
grep -v '^ *+' conftest.er1 >conftest.err
12135
cat conftest.err >&5
12136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137
(exit $ac_status); } &&
12138
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12139
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140
(eval $ac_try) 2>&5
12142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143
(exit $ac_status); }; } &&
12144
{ ac_try='test -s conftest$ac_exeext'
12145
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146
(eval $ac_try) 2>&5
12148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149
(exit $ac_status); }; }; then
12150
ac_cv_func_shl_load=yes
12152
echo "$as_me: failed program was:" >&5
12153
sed 's/^/| /' conftest.$ac_ext >&5
12155
ac_cv_func_shl_load=no
12157
rm -f conftest.err conftest.$ac_objext \
12158
conftest$ac_exeext conftest.$ac_ext
12160
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12161
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12162
if test $ac_cv_func_shl_load = yes; then
12163
lt_cv_dlopen="shl_load"
12165
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12166
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12167
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12168
echo $ECHO_N "(cached) $ECHO_C" >&6
12170
ac_check_lib_save_LIBS=$LIBS
12172
cat >conftest.$ac_ext <<_ACEOF
12175
cat confdefs.h >>conftest.$ac_ext
12176
cat >>conftest.$ac_ext <<_ACEOF
12177
/* end confdefs.h. */
12179
/* Override any gcc2 internal prototype to avoid an error. */
12183
/* We use char because int might match the return type of a gcc2
12184
builtin and then its argument prototype would still apply. */
12194
rm -f conftest.$ac_objext conftest$ac_exeext
12195
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12196
(eval $ac_link) 2>conftest.er1
12198
grep -v '^ *+' conftest.er1 >conftest.err
12200
cat conftest.err >&5
12201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202
(exit $ac_status); } &&
12203
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12204
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12205
(eval $ac_try) 2>&5
12207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208
(exit $ac_status); }; } &&
12209
{ ac_try='test -s conftest$ac_exeext'
12210
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12211
(eval $ac_try) 2>&5
12213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214
(exit $ac_status); }; }; then
12215
ac_cv_lib_dld_shl_load=yes
12217
echo "$as_me: failed program was:" >&5
12218
sed 's/^/| /' conftest.$ac_ext >&5
12220
ac_cv_lib_dld_shl_load=no
12222
rm -f conftest.err conftest.$ac_objext \
12223
conftest$ac_exeext conftest.$ac_ext
12224
LIBS=$ac_check_lib_save_LIBS
12226
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12227
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12228
if test $ac_cv_lib_dld_shl_load = yes; then
12229
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12231
echo "$as_me:$LINENO: checking for dlopen" >&5
12232
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12233
if test "${ac_cv_func_dlopen+set}" = set; then
12234
echo $ECHO_N "(cached) $ECHO_C" >&6
12236
cat >conftest.$ac_ext <<_ACEOF
12239
cat confdefs.h >>conftest.$ac_ext
12240
cat >>conftest.$ac_ext <<_ACEOF
12241
/* end confdefs.h. */
12242
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12243
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12244
#define dlopen innocuous_dlopen
12246
/* System header to define __stub macros and hopefully few prototypes,
12247
which can conflict with char dlopen (); below.
12248
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12249
<limits.h> exists even on freestanding compilers. */
12252
# include <limits.h>
12254
# include <assert.h>
12259
/* Override any gcc2 internal prototype to avoid an error. */
12264
/* We use char because int might match the return type of a gcc2
12265
builtin and then its argument prototype would still apply. */
12267
/* The GNU C library defines this for functions which it implements
12268
to always fail with ENOSYS. Some functions are actually named
12269
something starting with __ and the normal name is an alias. */
12270
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12273
char (*f) () = dlopen;
12282
return f != dlopen;
12287
rm -f conftest.$ac_objext conftest$ac_exeext
12288
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12289
(eval $ac_link) 2>conftest.er1
12291
grep -v '^ *+' conftest.er1 >conftest.err
12293
cat conftest.err >&5
12294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295
(exit $ac_status); } &&
12296
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12297
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12298
(eval $ac_try) 2>&5
12300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301
(exit $ac_status); }; } &&
12302
{ ac_try='test -s conftest$ac_exeext'
12303
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12304
(eval $ac_try) 2>&5
12306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307
(exit $ac_status); }; }; then
12308
ac_cv_func_dlopen=yes
12310
echo "$as_me: failed program was:" >&5
12311
sed 's/^/| /' conftest.$ac_ext >&5
12313
ac_cv_func_dlopen=no
12315
rm -f conftest.err conftest.$ac_objext \
12316
conftest$ac_exeext conftest.$ac_ext
12318
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12319
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12320
if test $ac_cv_func_dlopen = yes; then
12321
lt_cv_dlopen="dlopen"
12323
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12324
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12325
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12326
echo $ECHO_N "(cached) $ECHO_C" >&6
12328
ac_check_lib_save_LIBS=$LIBS
12330
cat >conftest.$ac_ext <<_ACEOF
12333
cat confdefs.h >>conftest.$ac_ext
12334
cat >>conftest.$ac_ext <<_ACEOF
12335
/* end confdefs.h. */
12337
/* Override any gcc2 internal prototype to avoid an error. */
12341
/* We use char because int might match the return type of a gcc2
12342
builtin and then its argument prototype would still apply. */
12352
rm -f conftest.$ac_objext conftest$ac_exeext
12353
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12354
(eval $ac_link) 2>conftest.er1
12356
grep -v '^ *+' conftest.er1 >conftest.err
12358
cat conftest.err >&5
12359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360
(exit $ac_status); } &&
12361
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12362
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12363
(eval $ac_try) 2>&5
12365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12366
(exit $ac_status); }; } &&
12367
{ ac_try='test -s conftest$ac_exeext'
12368
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369
(eval $ac_try) 2>&5
12371
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372
(exit $ac_status); }; }; then
12373
ac_cv_lib_dl_dlopen=yes
12375
echo "$as_me: failed program was:" >&5
12376
sed 's/^/| /' conftest.$ac_ext >&5
12378
ac_cv_lib_dl_dlopen=no
12380
rm -f conftest.err conftest.$ac_objext \
12381
conftest$ac_exeext conftest.$ac_ext
12382
LIBS=$ac_check_lib_save_LIBS
12384
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12385
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12386
if test $ac_cv_lib_dl_dlopen = yes; then
12387
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12389
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12390
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12391
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12392
echo $ECHO_N "(cached) $ECHO_C" >&6
12394
ac_check_lib_save_LIBS=$LIBS
12395
LIBS="-lsvld $LIBS"
12396
cat >conftest.$ac_ext <<_ACEOF
12399
cat confdefs.h >>conftest.$ac_ext
12400
cat >>conftest.$ac_ext <<_ACEOF
12401
/* end confdefs.h. */
12403
/* Override any gcc2 internal prototype to avoid an error. */
12407
/* We use char because int might match the return type of a gcc2
12408
builtin and then its argument prototype would still apply. */
12418
rm -f conftest.$ac_objext conftest$ac_exeext
12419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12420
(eval $ac_link) 2>conftest.er1
12422
grep -v '^ *+' conftest.er1 >conftest.err
12424
cat conftest.err >&5
12425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426
(exit $ac_status); } &&
12427
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12429
(eval $ac_try) 2>&5
12431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432
(exit $ac_status); }; } &&
12433
{ ac_try='test -s conftest$ac_exeext'
12434
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12435
(eval $ac_try) 2>&5
12437
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438
(exit $ac_status); }; }; then
12439
ac_cv_lib_svld_dlopen=yes
12441
echo "$as_me: failed program was:" >&5
12442
sed 's/^/| /' conftest.$ac_ext >&5
12444
ac_cv_lib_svld_dlopen=no
12446
rm -f conftest.err conftest.$ac_objext \
12447
conftest$ac_exeext conftest.$ac_ext
12448
LIBS=$ac_check_lib_save_LIBS
12450
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12451
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12452
if test $ac_cv_lib_svld_dlopen = yes; then
12453
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12455
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12456
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12457
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12458
echo $ECHO_N "(cached) $ECHO_C" >&6
12460
ac_check_lib_save_LIBS=$LIBS
12462
cat >conftest.$ac_ext <<_ACEOF
12465
cat confdefs.h >>conftest.$ac_ext
12466
cat >>conftest.$ac_ext <<_ACEOF
12467
/* end confdefs.h. */
12469
/* Override any gcc2 internal prototype to avoid an error. */
12473
/* We use char because int might match the return type of a gcc2
12474
builtin and then its argument prototype would still apply. */
12484
rm -f conftest.$ac_objext conftest$ac_exeext
12485
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12486
(eval $ac_link) 2>conftest.er1
12488
grep -v '^ *+' conftest.er1 >conftest.err
12490
cat conftest.err >&5
12491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492
(exit $ac_status); } &&
12493
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12494
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12495
(eval $ac_try) 2>&5
12497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498
(exit $ac_status); }; } &&
12499
{ ac_try='test -s conftest$ac_exeext'
12500
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501
(eval $ac_try) 2>&5
12503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504
(exit $ac_status); }; }; then
12505
ac_cv_lib_dld_dld_link=yes
12507
echo "$as_me: failed program was:" >&5
12508
sed 's/^/| /' conftest.$ac_ext >&5
12510
ac_cv_lib_dld_dld_link=no
12512
rm -f conftest.err conftest.$ac_objext \
12513
conftest$ac_exeext conftest.$ac_ext
12514
LIBS=$ac_check_lib_save_LIBS
12516
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12517
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12518
if test $ac_cv_lib_dld_dld_link = yes; then
12519
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12540
if test "x$lt_cv_dlopen" != xno; then
12546
case $lt_cv_dlopen in
12548
save_CPPFLAGS="$CPPFLAGS"
12549
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12551
save_LDFLAGS="$LDFLAGS"
12552
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12555
LIBS="$lt_cv_dlopen_libs $LIBS"
12557
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12558
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12559
if test "${lt_cv_dlopen_self+set}" = set; then
12560
echo $ECHO_N "(cached) $ECHO_C" >&6
12562
if test "$cross_compiling" = yes; then :
12563
lt_cv_dlopen_self=cross
12565
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12566
lt_status=$lt_dlunknown
12567
cat > conftest.$ac_ext <<EOF
12568
#line 12568 "configure"
12569
#include "confdefs.h"
12578
# define LT_DLGLOBAL RTLD_GLOBAL
12581
# define LT_DLGLOBAL DL_GLOBAL
12583
# define LT_DLGLOBAL 0
12587
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12588
find out it does not work in some platform. */
12589
#ifndef LT_DLLAZY_OR_NOW
12591
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12594
# define LT_DLLAZY_OR_NOW DL_LAZY
12597
# define LT_DLLAZY_OR_NOW RTLD_NOW
12600
# define LT_DLLAZY_OR_NOW DL_NOW
12602
# define LT_DLLAZY_OR_NOW 0
12610
extern "C" void exit (int);
12613
void fnord() { int i=42;}
12616
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12617
int status = $lt_dlunknown;
12621
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12622
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12623
/* dlclose (self); */
12629
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12630
(eval $ac_link) 2>&5
12632
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12634
(./conftest; exit; ) 2>/dev/null
12636
case x$lt_status in
12637
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12638
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12639
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12642
# compilation failed
12643
lt_cv_dlopen_self=no
12650
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12651
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12653
if test "x$lt_cv_dlopen_self" = xyes; then
12654
LDFLAGS="$LDFLAGS $link_static_flag"
12655
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12656
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12657
if test "${lt_cv_dlopen_self_static+set}" = set; then
12658
echo $ECHO_N "(cached) $ECHO_C" >&6
12660
if test "$cross_compiling" = yes; then :
12661
lt_cv_dlopen_self_static=cross
12663
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12664
lt_status=$lt_dlunknown
12665
cat > conftest.$ac_ext <<EOF
12666
#line 12666 "configure"
12667
#include "confdefs.h"
12676
# define LT_DLGLOBAL RTLD_GLOBAL
12679
# define LT_DLGLOBAL DL_GLOBAL
12681
# define LT_DLGLOBAL 0
12685
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12686
find out it does not work in some platform. */
12687
#ifndef LT_DLLAZY_OR_NOW
12689
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12692
# define LT_DLLAZY_OR_NOW DL_LAZY
12695
# define LT_DLLAZY_OR_NOW RTLD_NOW
12698
# define LT_DLLAZY_OR_NOW DL_NOW
12700
# define LT_DLLAZY_OR_NOW 0
12708
extern "C" void exit (int);
12711
void fnord() { int i=42;}
12714
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12715
int status = $lt_dlunknown;
12719
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12720
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12721
/* dlclose (self); */
12727
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12728
(eval $ac_link) 2>&5
12730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12732
(./conftest; exit; ) 2>/dev/null
12734
case x$lt_status in
12735
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12736
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12737
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12740
# compilation failed
12741
lt_cv_dlopen_self_static=no
12748
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12749
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12752
CPPFLAGS="$save_CPPFLAGS"
12753
LDFLAGS="$save_LDFLAGS"
12758
case $lt_cv_dlopen_self in
12759
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12760
*) enable_dlopen_self=unknown ;;
12763
case $lt_cv_dlopen_self_static in
12764
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12765
*) enable_dlopen_self_static=unknown ;;
12770
# The else clause should only fire when bootstrapping the
12771
# libtool distribution, otherwise you forgot to ship ltmain.sh
12772
# with your package, and you will get complaints that there are
12773
# no rules to generate ltmain.sh.
12774
if test -f "$ltmain"; then
12775
# See if we are running on zsh, and set the options which allow our commands through
12776
# without removal of \ escapes.
12777
if test -n "${ZSH_VERSION+set}" ; then
12778
setopt NO_GLOB_SUBST
12780
# Now quote all the things that may contain metacharacters while being
12781
# careful not to overquote the AC_SUBSTed values. We take copies of the
12782
# variables and quote the copies for generation of the libtool script.
12783
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12785
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12786
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12787
deplibs_check_method reload_flag reload_cmds need_locks \
12788
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12789
lt_cv_sys_global_symbol_to_c_name_address \
12790
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12791
old_postinstall_cmds old_postuninstall_cmds \
12795
lt_prog_compiler_wl_CXX \
12796
lt_prog_compiler_pic_CXX \
12797
lt_prog_compiler_static_CXX \
12798
lt_prog_compiler_no_builtin_flag_CXX \
12799
export_dynamic_flag_spec_CXX \
12800
thread_safe_flag_spec_CXX \
12801
whole_archive_flag_spec_CXX \
12802
enable_shared_with_static_runtimes_CXX \
12803
old_archive_cmds_CXX \
12804
old_archive_from_new_cmds_CXX \
12805
predep_objects_CXX \
12806
postdep_objects_CXX \
12809
compiler_lib_search_path_CXX \
12811
archive_expsym_cmds_CXX \
12812
postinstall_cmds_CXX \
12813
postuninstall_cmds_CXX \
12814
old_archive_from_expsyms_cmds_CXX \
12815
allow_undefined_flag_CXX \
12816
no_undefined_flag_CXX \
12817
export_symbols_cmds_CXX \
12818
hardcode_libdir_flag_spec_CXX \
12819
hardcode_libdir_flag_spec_ld_CXX \
12820
hardcode_libdir_separator_CXX \
12821
hardcode_automatic_CXX \
12823
module_expsym_cmds_CXX \
12824
lt_cv_prog_compiler_c_o_CXX \
12825
exclude_expsyms_CXX \
12826
include_expsyms_CXX; do
12829
old_archive_cmds_CXX | \
12830
old_archive_from_new_cmds_CXX | \
12831
archive_cmds_CXX | \
12832
archive_expsym_cmds_CXX | \
12833
module_cmds_CXX | \
12834
module_expsym_cmds_CXX | \
12835
old_archive_from_expsyms_cmds_CXX | \
12836
export_symbols_cmds_CXX | \
12837
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12838
postinstall_cmds | postuninstall_cmds | \
12839
old_postinstall_cmds | old_postuninstall_cmds | \
12840
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12841
# Double-quote double-evaled strings.
12842
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12845
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12851
*'\$0 --fallback-echo"')
12852
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12858
cat <<__EOF__ >> "$cfgfile"
12859
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12861
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12863
# Shell to use when invoking shell scripts.
12866
# Whether or not to build shared libraries.
12867
build_libtool_libs=$enable_shared
12869
# Whether or not to build static libraries.
12870
build_old_libs=$enable_static
12872
# Whether or not to add -lc for building shared libraries.
12873
build_libtool_need_lc=$archive_cmds_need_lc_CXX
12875
# Whether or not to disallow shared libs when runtime libs are static
12876
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12878
# Whether or not to optimize for fast installation.
12879
fast_install=$enable_fast_install
12882
host_alias=$host_alias
12885
# An echo program that does not interpret backslashes.
12890
AR_FLAGS=$lt_AR_FLAGS
12895
# A language-specific compiler.
12896
CC=$lt_compiler_CXX
12898
# Is the compiler the GNU C compiler?
12904
# The linker used to build libraries.
12907
# Whether we need hard or soft links.
12910
# A BSD-compatible nm program.
12913
# A symbol stripping program
12916
# Used to examine libraries when file_magic_cmd begins "file"
12917
MAGIC_CMD=$MAGIC_CMD
12919
# Used on cygwin: DLL creation program.
12922
# Used on cygwin: object dumper.
12925
# Used on cygwin: assembler.
12928
# The name of the directory that contains temporary libtool files.
12931
# How to create reloadable object files.
12932
reload_flag=$lt_reload_flag
12933
reload_cmds=$lt_reload_cmds
12935
# How to pass a linker flag through the compiler.
12936
wl=$lt_lt_prog_compiler_wl_CXX
12938
# Object file suffix (normally "o").
12939
objext="$ac_objext"
12941
# Old archive suffix (normally "a").
12944
# Shared library suffix (normally ".so").
12947
# Executable file suffix (normally "").
12950
# Additional compiler flags for building library objects.
12951
pic_flag=$lt_lt_prog_compiler_pic_CXX
12954
# What is the maximum length of a command?
12955
max_cmd_len=$lt_cv_sys_max_cmd_len
12957
# Does compiler simultaneously support -c and -o options?
12958
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12960
# Must we lock files when doing compilation ?
12961
need_locks=$lt_need_locks
12963
# Do we need the lib prefix for modules?
12964
need_lib_prefix=$need_lib_prefix
12966
# Do we need a version for libraries?
12967
need_version=$need_version
12969
# Whether dlopen is supported.
12970
dlopen_support=$enable_dlopen
12972
# Whether dlopen of programs is supported.
12973
dlopen_self=$enable_dlopen_self
12975
# Whether dlopen of statically linked programs is supported.
12976
dlopen_self_static=$enable_dlopen_self_static
12978
# Compiler flag to prevent dynamic linking.
12979
link_static_flag=$lt_lt_prog_compiler_static_CXX
12981
# Compiler flag to turn off builtin functions.
12982
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12984
# Compiler flag to allow reflexive dlopens.
12985
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12987
# Compiler flag to generate shared objects directly from archives.
12988
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12990
# Compiler flag to generate thread-safe objects.
12991
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12993
# Library versioning type.
12994
version_type=$version_type
12996
# Format of library name prefix.
12997
libname_spec=$lt_libname_spec
12999
# List of archive names. First name is the real one, the rest are links.
13000
# The last name is the one that the linker finds with -lNAME.
13001
library_names_spec=$lt_library_names_spec
13003
# The coded name of the library, if different from the real name.
13004
soname_spec=$lt_soname_spec
13006
# Commands used to build and install an old-style archive.
13008
old_archive_cmds=$lt_old_archive_cmds_CXX
13009
old_postinstall_cmds=$lt_old_postinstall_cmds
13010
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13012
# Create an old-style archive from a shared archive.
13013
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13015
# Create a temporary old-style archive to link instead of a shared archive.
13016
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13018
# Commands used to build and install a shared archive.
13019
archive_cmds=$lt_archive_cmds_CXX
13020
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13021
postinstall_cmds=$lt_postinstall_cmds
13022
postuninstall_cmds=$lt_postuninstall_cmds
13024
# Commands used to build a loadable module (assumed same as above if empty)
13025
module_cmds=$lt_module_cmds_CXX
13026
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13028
# Commands to strip libraries.
13029
old_striplib=$lt_old_striplib
13030
striplib=$lt_striplib
13032
# Dependencies to place before the objects being linked to create a
13034
predep_objects=$lt_predep_objects_CXX
13036
# Dependencies to place after the objects being linked to create a
13038
postdep_objects=$lt_postdep_objects_CXX
13040
# Dependencies to place before the objects being linked to create a
13042
predeps=$lt_predeps_CXX
13044
# Dependencies to place after the objects being linked to create a
13046
postdeps=$lt_postdeps_CXX
13048
# The library search path used internally by the compiler when linking
13049
# a shared library.
13050
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13052
# Method to check whether dependent libraries are shared objects.
13053
deplibs_check_method=$lt_deplibs_check_method
13055
# Command to use when deplibs_check_method == file_magic.
13056
file_magic_cmd=$lt_file_magic_cmd
13058
# Flag that allows shared libraries with undefined symbols to be built.
13059
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13061
# Flag that forces no undefined symbols.
13062
no_undefined_flag=$lt_no_undefined_flag_CXX
13064
# Commands used to finish a libtool library installation in a directory.
13065
finish_cmds=$lt_finish_cmds
13067
# Same as above, but a single script fragment to be evaled but not shown.
13068
finish_eval=$lt_finish_eval
13070
# Take the output of nm and produce a listing of raw symbols and C names.
13071
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13073
# Transform the output of nm in a proper C declaration
13074
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13076
# Transform the output of nm in a C name address pair
13077
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13079
# This is the shared library runtime path variable.
13080
runpath_var=$runpath_var
13082
# This is the shared library path variable.
13083
shlibpath_var=$shlibpath_var
13085
# Is shlibpath searched before the hard-coded library search path?
13086
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13088
# How to hardcode a shared library path into an executable.
13089
hardcode_action=$hardcode_action_CXX
13091
# Whether we should hardcode library paths into libraries.
13092
hardcode_into_libs=$hardcode_into_libs
13094
# Flag to hardcode \$libdir into a binary during linking.
13095
# This must work even if \$libdir does not exist.
13096
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13098
# If ld is used when linking, flag to hardcode \$libdir into
13099
# a binary during linking. This must work even if \$libdir does
13101
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13103
# Whether we need a single -rpath flag with a separated argument.
13104
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13106
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13107
# resulting binary.
13108
hardcode_direct=$hardcode_direct_CXX
13110
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13111
# resulting binary.
13112
hardcode_minus_L=$hardcode_minus_L_CXX
13114
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13115
# the resulting binary.
13116
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13118
# Set to yes if building a shared library automatically hardcodes DIR into the library
13119
# and all subsequent libraries and executables linked against it.
13120
hardcode_automatic=$hardcode_automatic_CXX
13122
# Variables whose values should be saved in libtool wrapper scripts and
13123
# restored at relink time.
13124
variables_saved_for_relink="$variables_saved_for_relink"
13126
# Whether libtool must link a program against all its dependency libraries.
13127
link_all_deplibs=$link_all_deplibs_CXX
13129
# Compile-time system search path for libraries
13130
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13132
# Run-time system search path for libraries
13133
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13135
# Fix the shell variable \$srcfile for the compiler.
13136
fix_srcfile_path="$fix_srcfile_path_CXX"
13138
# Set to yes if exported symbols are required.
13139
always_export_symbols=$always_export_symbols_CXX
13141
# The commands to list exported symbols.
13142
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13144
# The commands to extract the exported symbol list from a shared archive.
13145
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13147
# Symbols that should not be listed in the preloaded symbols.
13148
exclude_expsyms=$lt_exclude_expsyms_CXX
13150
# Symbols that must always be exported.
13151
include_expsyms=$lt_include_expsyms_CXX
13153
# ### END LIBTOOL TAG CONFIG: $tagname
13159
# If there is no Makefile yet, we rely on a make rule to execute
13160
# `config.status --recheck' to rerun these tests and create the
13161
# libtool script then.
13162
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13163
if test -f "$ltmain_in"; then
13164
test -f Makefile && make "$ltmain"
13170
ac_cpp='$CPP $CPPFLAGS'
13171
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13172
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13173
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13179
with_gnu_ldcxx=$with_gnu_ld
13180
with_gnu_ld=$lt_save_with_gnu_ld
13181
lt_cv_path_LDCXX=$lt_cv_path_LD
13182
lt_cv_path_LD=$lt_save_path_LD
13183
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13184
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13192
if test -n "$F77" && test "X$F77" != "Xno"; then
13195
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13196
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13197
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13200
archive_cmds_need_lc_F77=no
13201
allow_undefined_flag_F77=
13202
always_export_symbols_F77=no
13203
archive_expsym_cmds_F77=
13204
export_dynamic_flag_spec_F77=
13205
hardcode_direct_F77=no
13206
hardcode_libdir_flag_spec_F77=
13207
hardcode_libdir_flag_spec_ld_F77=
13208
hardcode_libdir_separator_F77=
13209
hardcode_minus_L_F77=no
13210
hardcode_automatic_F77=no
13212
module_expsym_cmds_F77=
13213
link_all_deplibs_F77=unknown
13214
old_archive_cmds_F77=$old_archive_cmds
13215
no_undefined_flag_F77=
13216
whole_archive_flag_spec_F77=
13217
enable_shared_with_static_runtimes_F77=no
13219
# Source file extension for f77 test sources.
13222
# Object file extension for compiled f77 test sources.
13226
# Code to be used in simple compile tests
13227
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13229
# Code to be used in simple link tests
13230
lt_simple_link_test_code=" program t\n end\n"
13232
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13234
# If no C compiler was specified, use CC.
13237
# Allow CC to be a program name with arguments.
13241
# Allow CC to be a program name with arguments.
13246
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13248
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13249
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13250
echo "$as_me:$LINENO: result: $can_build_shared" >&5
13251
echo "${ECHO_T}$can_build_shared" >&6
13253
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13254
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13255
test "$can_build_shared" = "no" && enable_shared=no
13257
# On AIX, shared libraries and static libraries use the same namespace, and
13258
# are all built from PIC.
13261
test "$enable_shared" = yes && enable_static=no
13262
if test -n "$RANLIB"; then
13263
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13264
postinstall_cmds='$RANLIB $lib'
13268
test "$enable_shared" = yes && enable_static=no
13271
echo "$as_me:$LINENO: result: $enable_shared" >&5
13272
echo "${ECHO_T}$enable_shared" >&6
13274
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13275
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13276
# Make sure either enable_shared or enable_static is yes.
13277
test "$enable_shared" = yes || enable_static=yes
13278
echo "$as_me:$LINENO: result: $enable_static" >&5
13279
echo "${ECHO_T}$enable_static" >&6
13281
test "$ld_shlibs_F77" = no && can_build_shared=no
13286
lt_prog_compiler_wl_F77=
13287
lt_prog_compiler_pic_F77=
13288
lt_prog_compiler_static_F77=
13290
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13291
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13293
if test "$GCC" = yes; then
13294
lt_prog_compiler_wl_F77='-Wl,'
13295
lt_prog_compiler_static_F77='-static'
13299
# All AIX code is PIC.
13300
if test "$host_cpu" = ia64; then
13301
# AIX 5 now supports IA64 processor
13302
lt_prog_compiler_static_F77='-Bstatic'
13307
# FIXME: we need at least 68020 code to build shared libraries, but
13308
# adding the `-m68020' flag to GCC prevents building anything better,
13310
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13313
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13314
# PIC is the default for these OSes.
13317
mingw* | pw32* | os2*)
13318
# This hack is so that the source file can tell whether it is being
13319
# built for inclusion in a dll (and should export symbols for example).
13320
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13323
darwin* | rhapsody*)
13324
# PIC is the default on this platform
13325
# Common symbols not allowed in MH_DYLIB files
13326
lt_prog_compiler_pic_F77='-fno-common'
13330
# Just because we use GCC doesn't mean we suddenly get shared libraries
13331
# on systems that don't support them.
13332
lt_prog_compiler_can_build_shared_F77=no
13337
if test -d /usr/nec; then
13338
lt_prog_compiler_pic_F77=-Kconform_pic
13343
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13344
# not for PA HP-UX.
13345
case "$host_cpu" in
13350
lt_prog_compiler_pic_F77='-fPIC'
13356
lt_prog_compiler_pic_F77='-fPIC'
13360
# PORTME Check for flag to pass linker flags through the system compiler.
13363
lt_prog_compiler_wl_F77='-Wl,'
13364
if test "$host_cpu" = ia64; then
13365
# AIX 5 now supports IA64 processor
13366
lt_prog_compiler_static_F77='-Bstatic'
13368
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13372
mingw* | pw32* | os2*)
13373
# This hack is so that the source file can tell whether it is being
13374
# built for inclusion in a dll (and should export symbols for example).
13375
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13378
hpux9* | hpux10* | hpux11*)
13379
lt_prog_compiler_wl_F77='-Wl,'
13380
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13381
# not for PA HP-UX.
13382
case "$host_cpu" in
13387
lt_prog_compiler_pic_F77='+Z'
13390
# Is there a better lt_prog_compiler_static that works with the bundled CC?
13391
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13394
irix5* | irix6* | nonstopux*)
13395
lt_prog_compiler_wl_F77='-Wl,'
13396
# PIC (with -KPIC) is the default.
13397
lt_prog_compiler_static_F77='-non_shared'
13401
lt_prog_compiler_pic_F77='-KPIC'
13402
lt_prog_compiler_static_F77='-Bstatic'
13408
lt_prog_compiler_wl_F77='-Wl,'
13409
lt_prog_compiler_pic_F77='-KPIC'
13410
lt_prog_compiler_static_F77='-static'
13413
lt_prog_compiler_wl_F77='-Wl,'
13414
# All Alpha code is PIC.
13415
lt_prog_compiler_static_F77='-non_shared'
13420
osf3* | osf4* | osf5*)
13421
lt_prog_compiler_wl_F77='-Wl,'
13422
# All OSF/1 code is PIC.
13423
lt_prog_compiler_static_F77='-non_shared'
13427
lt_prog_compiler_pic_F77='-Kpic'
13428
lt_prog_compiler_static_F77='-dn'
13432
lt_prog_compiler_wl_F77='-Wl,'
13433
lt_prog_compiler_pic_F77='-KPIC'
13434
lt_prog_compiler_static_F77='-Bstatic'
13438
lt_prog_compiler_wl_F77='-Qoption ld '
13439
lt_prog_compiler_pic_F77='-PIC'
13440
lt_prog_compiler_static_F77='-Bstatic'
13443
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13444
lt_prog_compiler_wl_F77='-Wl,'
13445
lt_prog_compiler_pic_F77='-KPIC'
13446
lt_prog_compiler_static_F77='-Bstatic'
13450
if test -d /usr/nec ;then
13451
lt_prog_compiler_pic_F77='-Kconform_pic'
13452
lt_prog_compiler_static_F77='-Bstatic'
13457
lt_prog_compiler_pic_F77='-pic'
13458
lt_prog_compiler_static_F77='-Bstatic'
13462
lt_prog_compiler_can_build_shared_F77=no
13467
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13468
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13471
# Check to make sure the PIC flag actually works.
13473
if test -n "$lt_prog_compiler_pic_F77"; then
13475
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13476
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13477
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13478
echo $ECHO_N "(cached) $ECHO_C" >&6
13480
lt_prog_compiler_pic_works_F77=no
13481
ac_outfile=conftest.$ac_objext
13482
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13483
lt_compiler_flag="$lt_prog_compiler_pic_F77"
13484
# Insert the option either (1) after the last *FLAGS variable, or
13485
# (2) before a word containing "conftest.", or (3) at the end.
13486
# Note that $ac_compile itself does not contain backslashes and begins
13487
# with a dollar sign (not a hyphen), so the echo should work correctly.
13488
# The option is referenced via a variable to avoid confusing sed.
13489
lt_compile=`echo "$ac_compile" | $SED \
13490
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13491
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13492
-e 's:$: $lt_compiler_flag:'`
13493
(eval echo "\"\$as_me:13493: $lt_compile\"" >&5)
13494
(eval "$lt_compile" 2>conftest.err)
13496
cat conftest.err >&5
13497
echo "$as_me:13497: \$? = $ac_status" >&5
13498
if (exit $ac_status) && test -s "$ac_outfile"; then
13499
# The compiler can only warn and ignore the option if not recognized
13500
# So say no if there are warnings
13501
if test ! -s conftest.err; then
13502
lt_prog_compiler_pic_works_F77=yes
13508
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13509
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13511
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13512
case $lt_prog_compiler_pic_F77 in
13514
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13517
lt_prog_compiler_pic_F77=
13518
lt_prog_compiler_can_build_shared_F77=no
13523
# For platforms which do not support PIC, -DPIC is meaningless:
13525
lt_prog_compiler_pic_F77=
13528
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13532
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13533
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13534
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13535
echo $ECHO_N "(cached) $ECHO_C" >&6
13537
lt_cv_prog_compiler_c_o_F77=no
13538
$rm -r conftest 2>/dev/null
13542
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13544
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13545
# that will create temporary files in the current directory regardless of
13546
# the output directory. Thus, making CWD read-only will cause this test
13547
# to fail, enabling locking or at least warning the user not to do parallel
13551
lt_compiler_flag="-o out/conftest2.$ac_objext"
13552
# Insert the option either (1) after the last *FLAGS variable, or
13553
# (2) before a word containing "conftest.", or (3) at the end.
13554
# Note that $ac_compile itself does not contain backslashes and begins
13555
# with a dollar sign (not a hyphen), so the echo should work correctly.
13556
lt_compile=`echo "$ac_compile" | $SED \
13557
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13558
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13559
-e 's:$: $lt_compiler_flag:'`
13560
(eval echo "\"\$as_me:13560: $lt_compile\"" >&5)
13561
(eval "$lt_compile" 2>out/conftest.err)
13563
cat out/conftest.err >&5
13564
echo "$as_me:13564: \$? = $ac_status" >&5
13565
if (exit $ac_status) && test -s out/conftest2.$ac_objext
13567
# The compiler can only warn and ignore the option if not recognized
13568
# So say no if there are warnings
13569
if test ! -s out/conftest.err; then
13570
lt_cv_prog_compiler_c_o_F77=yes
13575
# SGI C++ compiler will create directory out/ii_files/ for
13576
# template instantiation
13577
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13578
$rm out/* && rmdir out
13584
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13585
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13588
hard_links="nottested"
13589
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13590
# do not overwrite the value of need_locks provided by the user
13591
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13592
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13595
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13597
ln conftest.a conftest.b 2>&5 || hard_links=no
13598
ln conftest.a conftest.b 2>/dev/null && hard_links=no
13599
echo "$as_me:$LINENO: result: $hard_links" >&5
13600
echo "${ECHO_T}$hard_links" >&6
13601
if test "$hard_links" = no; then
13602
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13603
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13610
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13611
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13614
allow_undefined_flag_F77=
13615
enable_shared_with_static_runtimes_F77=no
13617
archive_expsym_cmds_F77=
13618
old_archive_From_new_cmds_F77=
13619
old_archive_from_expsyms_cmds_F77=
13620
export_dynamic_flag_spec_F77=
13621
whole_archive_flag_spec_F77=
13622
thread_safe_flag_spec_F77=
13623
hardcode_libdir_flag_spec_F77=
13624
hardcode_libdir_flag_spec_ld_F77=
13625
hardcode_libdir_separator_F77=
13626
hardcode_direct_F77=no
13627
hardcode_minus_L_F77=no
13628
hardcode_shlibpath_var_F77=unsupported
13629
link_all_deplibs_F77=unknown
13630
hardcode_automatic_F77=no
13632
module_expsym_cmds_F77=
13633
always_export_symbols_F77=no
13634
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13635
# include_expsyms should be a list of space-separated symbols to be *always*
13636
# included in the symbol list
13637
include_expsyms_F77=
13638
# exclude_expsyms can be an extended regexp of symbols to exclude
13639
# it will be wrapped by ` (' and `)$', so one must not match beginning or
13640
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13641
# as well as any symbol that contains `d'.
13642
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13643
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13644
# platforms (ab)use it in PIC code, but their linkers get confused if
13645
# the symbol is explicitly referenced. Since portable code cannot
13646
# rely on this symbol name, it's probably fine to never include it in
13647
# preloaded symbol tables.
13648
extract_expsyms_cmds=
13651
cygwin* | mingw* | pw32*)
13652
# FIXME: the MSVC++ port hasn't been tested in a loooong time
13653
# When not using gcc, we currently assume that we are using
13654
# Microsoft Visual C++.
13655
if test "$GCC" != yes; then
13665
if test "$with_gnu_ld" = yes; then
13666
# If archive_cmds runs LD, not CC, wlarc should be empty
13669
# See if GNU ld supports shared libraries.
13671
aix3* | aix4* | aix5*)
13672
# On AIX/PPC, the GNU linker is very broken
13673
if test "$host_cpu" != ia64; then
13677
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13678
*** to be unable to reliably create shared libraries on AIX.
13679
*** Therefore, libtool is disabling shared libraries support. If you
13680
*** really care for shared libraries, you may want to modify your PATH
13681
*** so that a non-GNU linker is found, and then restart.
13688
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)'
13689
hardcode_libdir_flag_spec_F77='-L$libdir'
13690
hardcode_minus_L_F77=yes
13692
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13693
# that the semantics of dynamic libraries on AmigaOS, at least up
13694
# to version 4, is to share data among multiple programs linked
13695
# with the same dynamic library. Since this doesn't match the
13696
# behavior of shared libraries on other platforms, we can't use
13702
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13703
allow_undefined_flag_F77=unsupported
13704
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13705
# support --undefined. This deserves some investigation. FIXME
13706
archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13712
cygwin* | mingw* | pw32*)
13713
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13714
# as there is no search path for DLLs.
13715
hardcode_libdir_flag_spec_F77='-L$libdir'
13716
allow_undefined_flag_F77=unsupported
13717
always_export_symbols_F77=no
13718
enable_shared_with_static_runtimes_F77=yes
13719
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13721
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13722
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13723
# If the export-symbols file already is a .def file (1st line
13724
# is EXPORTS), use it as is; otherwise, prepend...
13725
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13726
cp $export_symbols $output_objdir/$soname.def;
13728
echo EXPORTS > $output_objdir/$soname.def;
13729
cat $export_symbols >> $output_objdir/$soname.def;
13731
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13738
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13739
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13742
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13743
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13748
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13752
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13753
*** create shared libraries on Solaris systems. Therefore, libtool
13754
*** is disabling shared libraries support. We urge you to upgrade GNU
13755
*** binutils to release 2.9.1 or newer. Another option is to modify
13756
*** your PATH or compiler configuration so that the native linker is
13757
*** used, and then restart.
13760
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13761
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13762
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13769
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13771
hardcode_direct_F77=yes
13772
hardcode_shlibpath_var_F77=no
13776
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13777
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13778
archive_cmds_F77="$tmp_archive_cmds"
13779
supports_anon_versioning=no
13780
case `$LD -v 2>/dev/null` in
13781
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13782
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13783
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13784
*\ 2.11.*) ;; # other 2.11 versions
13785
*) supports_anon_versioning=yes ;;
13787
if test $supports_anon_versioning = yes; then
13788
archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13789
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13790
$echo "local: *; };" >> $output_objdir/$libname.ver~
13791
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13793
archive_expsym_cmds_F77="$tmp_archive_cmds"
13801
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13802
archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13803
archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13810
if test "$ld_shlibs_F77" = yes; then
13811
runpath_var=LD_RUN_PATH
13812
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13813
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13814
# ancient GNU ld didn't support --whole-archive et. al.
13815
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13816
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13818
whole_archive_flag_spec_F77=
13822
# PORTME fill in a description of your system's linker (not GNU ld)
13825
allow_undefined_flag_F77=unsupported
13826
always_export_symbols_F77=yes
13827
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'
13828
# Note: this linker hardcodes the directories in LIBPATH if there
13829
# are no directories specified by -L.
13830
hardcode_minus_L_F77=yes
13831
if test "$GCC" = yes && test -z "$link_static_flag"; then
13832
# Neither direct hardcoding nor static linking is supported with a
13834
hardcode_direct_F77=unsupported
13839
if test "$host_cpu" = ia64; then
13840
# On IA64, the linker does run time linking by default, so we don't
13841
# have to do anything special.
13842
aix_use_runtimelinking=no
13843
exp_sym_flag='-Bexport'
13846
# If we're using GNU nm, then we don't want the "-C" option.
13847
# -C means demangle to AIX nm, but means don't demangle with GNU nm
13848
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13849
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'
13851
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'
13853
aix_use_runtimelinking=no
13855
# Test if we are trying to use run time linking or normal
13856
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13857
# need to do runtime linking.
13858
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13859
for ld_flag in $LDFLAGS; do
13860
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13861
aix_use_runtimelinking=yes
13867
exp_sym_flag='-bexport'
13868
no_entry_flag='-bnoentry'
13871
# When large executables or shared objects are built, AIX ld can
13872
# have problems creating the table of contents. If linking a library
13873
# or program results in "error TOC overflow" add -mminimal-toc to
13874
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13875
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13877
archive_cmds_F77=''
13878
hardcode_direct_F77=yes
13879
hardcode_libdir_separator_F77=':'
13880
link_all_deplibs_F77=yes
13882
if test "$GCC" = yes; then
13883
case $host_os in aix4.012|aix4.012.*)
13884
# We only want to do this on AIX 4.2 and lower, the check
13885
# below for broken collect2 doesn't work under 4.3+
13886
collect2name=`${CC} -print-prog-name=collect2`
13887
if test -f "$collect2name" && \
13888
strings "$collect2name" | grep resolve_lib_name >/dev/null
13890
# We have reworked collect2
13891
hardcode_direct_F77=yes
13893
# We have old collect2
13894
hardcode_direct_F77=unsupported
13895
# It fails to find uninstalled libraries when the uninstalled
13896
# path is not listed in the libpath. Setting hardcode_minus_L
13897
# to unsupported forces relinking
13898
hardcode_minus_L_F77=yes
13899
hardcode_libdir_flag_spec_F77='-L$libdir'
13900
hardcode_libdir_separator_F77=
13903
shared_flag='-shared'
13906
if test "$host_cpu" = ia64; then
13907
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13908
# chokes on -Wl,-G. The following line is correct:
13911
if test "$aix_use_runtimelinking" = yes; then
13912
shared_flag='${wl}-G'
13914
shared_flag='${wl}-bM:SRE'
13919
# It seems that -bexpall does not export symbols beginning with
13920
# underscore (_), so it is better to generate a list of symbols to export.
13921
always_export_symbols_F77=yes
13922
if test "$aix_use_runtimelinking" = yes; then
13923
# Warning - without using the other runtime loading flags (-brtl),
13924
# -berok will link without error, but may produce a broken library.
13925
allow_undefined_flag_F77='-berok'
13926
# Determine the default libpath from the value encoded in an empty executable.
13927
cat >conftest.$ac_ext <<_ACEOF
13932
rm -f conftest.$ac_objext conftest$ac_exeext
13933
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13934
(eval $ac_link) 2>conftest.er1
13936
grep -v '^ *+' conftest.er1 >conftest.err
13938
cat conftest.err >&5
13939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940
(exit $ac_status); } &&
13941
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13942
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943
(eval $ac_try) 2>&5
13945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946
(exit $ac_status); }; } &&
13947
{ ac_try='test -s conftest$ac_exeext'
13948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949
(eval $ac_try) 2>&5
13951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952
(exit $ac_status); }; }; then
13954
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13956
# Check for a 64-bit object if we didn't find anything.
13957
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; }
13960
echo "$as_me: failed program was:" >&5
13961
sed 's/^/| /' conftest.$ac_ext >&5
13964
rm -f conftest.err conftest.$ac_objext \
13965
conftest$ac_exeext conftest.$ac_ext
13966
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13968
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13969
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"
13971
if test "$host_cpu" = ia64; then
13972
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13973
allow_undefined_flag_F77="-z nodefs"
13974
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"
13976
# Determine the default libpath from the value encoded in an empty executable.
13977
cat >conftest.$ac_ext <<_ACEOF
13982
rm -f conftest.$ac_objext conftest$ac_exeext
13983
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13984
(eval $ac_link) 2>conftest.er1
13986
grep -v '^ *+' conftest.er1 >conftest.err
13988
cat conftest.err >&5
13989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990
(exit $ac_status); } &&
13991
{ ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13992
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993
(eval $ac_try) 2>&5
13995
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996
(exit $ac_status); }; } &&
13997
{ ac_try='test -s conftest$ac_exeext'
13998
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999
(eval $ac_try) 2>&5
14001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002
(exit $ac_status); }; }; then
14004
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14006
# Check for a 64-bit object if we didn't find anything.
14007
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; }
14010
echo "$as_me: failed program was:" >&5
14011
sed 's/^/| /' conftest.$ac_ext >&5
14014
rm -f conftest.err conftest.$ac_objext \
14015
conftest$ac_exeext conftest.$ac_ext
14016
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14018
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14019
# Warning - without using the other run time loading flags,
14020
# -berok will link without error, but may produce a broken library.
14021
no_undefined_flag_F77=' ${wl}-bernotok'
14022
allow_undefined_flag_F77=' ${wl}-berok'
14023
# -bexpall does not export symbols beginning with underscore (_)
14024
always_export_symbols_F77=yes
14025
# Exported symbols can be pulled into shared objects from archives
14026
whole_archive_flag_spec_F77=' '
14027
archive_cmds_need_lc_F77=yes
14028
# This is similar to how AIX traditionally builds it's shared libraries.
14029
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'
14035
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)'
14036
hardcode_libdir_flag_spec_F77='-L$libdir'
14037
hardcode_minus_L_F77=yes
14038
# see comment about different semantics on the GNU ld section
14043
export_dynamic_flag_spec_F77=-rdynamic
14046
cygwin* | mingw* | pw32*)
14047
# When not using gcc, we currently assume that we are using
14048
# Microsoft Visual C++.
14049
# hardcode_libdir_flag_spec is actually meaningless, as there is
14050
# no search path for DLLs.
14051
hardcode_libdir_flag_spec_F77=' '
14052
allow_undefined_flag_F77=unsupported
14053
# Tell ltmain to make .lib files, not .a files.
14055
# Tell ltmain to make .dll files, not .so files.
14057
# FIXME: Setting linknames here is a bad hack.
14058
archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14059
# The linker will automatically build a .lib file if we build a DLL.
14060
old_archive_From_new_cmds_F77='true'
14061
# FIXME: Should let the user specify the lib program.
14062
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14063
fix_srcfile_path='`cygpath -w "$srcfile"`'
14064
enable_shared_with_static_runtimes_F77=yes
14067
darwin* | rhapsody*)
14068
if test "$GXX" = yes ; then
14069
archive_cmds_need_lc_F77=no
14071
rhapsody* | darwin1.[012])
14072
allow_undefined_flag_F77='-undefined suppress'
14075
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14076
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14078
case ${MACOSX_DEPLOYMENT_TARGET} in
14080
allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14083
allow_undefined_flag_F77='-undefined dynamic_lookup'
14089
lt_int_apple_cc_single_mod=no
14090
output_verbose_link_cmd='echo'
14091
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14092
lt_int_apple_cc_single_mod=yes
14094
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14095
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14097
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'
14099
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14100
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14101
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14102
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}'
14104
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}'
14106
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}'
14107
hardcode_direct_F77=no
14108
hardcode_automatic_F77=yes
14109
hardcode_shlibpath_var_F77=unsupported
14110
whole_archive_flag_spec_F77='-all_load $convenience'
14111
link_all_deplibs_F77=yes
14118
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14119
hardcode_libdir_flag_spec_F77='-L$libdir'
14120
hardcode_shlibpath_var_F77=no
14127
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14128
# support. Future versions do this automatically, but an explicit c++rt0.o
14129
# does not break anything, and helps significantly (at the cost of a little
14132
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14133
hardcode_libdir_flag_spec_F77='-R$libdir'
14134
hardcode_direct_F77=yes
14135
hardcode_shlibpath_var_F77=no
14138
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
14140
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14141
hardcode_direct_F77=yes
14142
hardcode_minus_L_F77=yes
14143
hardcode_shlibpath_var_F77=no
14146
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14147
freebsd* | kfreebsd*-gnu)
14148
archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14149
hardcode_libdir_flag_spec_F77='-R$libdir'
14150
hardcode_direct_F77=yes
14151
hardcode_shlibpath_var_F77=no
14155
if test "$GCC" = yes; then
14156
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'
14158
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'
14160
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14161
hardcode_libdir_separator_F77=:
14162
hardcode_direct_F77=yes
14164
# hardcode_minus_L: Not really in the search PATH,
14165
# but as the default location of the library.
14166
hardcode_minus_L_F77=yes
14167
export_dynamic_flag_spec_F77='${wl}-E'
14171
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14172
case "$host_cpu" in
14174
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14177
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14181
case "$host_cpu" in
14183
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14186
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14190
if test "$with_gnu_ld" = no; then
14191
case "$host_cpu" in
14193
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14194
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14195
hardcode_libdir_separator_F77=:
14196
hardcode_direct_F77=no
14197
hardcode_shlibpath_var_F77=no
14200
hardcode_libdir_flag_spec_F77='-L$libdir'
14201
hardcode_direct_F77=no
14202
hardcode_shlibpath_var_F77=no
14204
# hardcode_minus_L: Not really in the search PATH,
14205
# but as the default location of the library.
14206
hardcode_minus_L_F77=yes
14209
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14210
hardcode_libdir_separator_F77=:
14211
hardcode_direct_F77=yes
14212
export_dynamic_flag_spec_F77='${wl}-E'
14214
# hardcode_minus_L: Not really in the search PATH,
14215
# but as the default location of the library.
14216
hardcode_minus_L_F77=yes
14222
irix5* | irix6* | nonstopux*)
14223
if test "$GCC" = yes; then
14224
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'
14226
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'
14227
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14229
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14230
hardcode_libdir_separator_F77=:
14231
link_all_deplibs_F77=yes
14235
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14236
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14238
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14240
hardcode_libdir_flag_spec_F77='-R$libdir'
14241
hardcode_direct_F77=yes
14242
hardcode_shlibpath_var_F77=no
14246
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14247
hardcode_direct_F77=yes
14248
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14249
hardcode_libdir_separator_F77=:
14250
hardcode_shlibpath_var_F77=no
14254
hardcode_direct_F77=yes
14255
hardcode_shlibpath_var_F77=no
14256
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14257
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14258
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14259
export_dynamic_flag_spec_F77='${wl}-E'
14262
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14263
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14264
hardcode_libdir_flag_spec_F77='-R$libdir'
14267
archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14268
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14275
hardcode_libdir_flag_spec_F77='-L$libdir'
14276
hardcode_minus_L_F77=yes
14277
allow_undefined_flag_F77=unsupported
14278
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'
14279
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14283
if test "$GCC" = yes; then
14284
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14285
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'
14287
allow_undefined_flag_F77=' -expect_unresolved \*'
14288
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'
14290
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14291
hardcode_libdir_separator_F77=:
14294
osf4* | osf5*) # as osf3* with the addition of -msym flag
14295
if test "$GCC" = yes; then
14296
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14297
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'
14298
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14300
allow_undefined_flag_F77=' -expect_unresolved \*'
14301
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'
14302
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~
14303
$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'
14305
# Both c and cxx compiler support -rpath directly
14306
hardcode_libdir_flag_spec_F77='-rpath $libdir'
14308
hardcode_libdir_separator_F77=:
14312
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14313
hardcode_shlibpath_var_F77=no
14314
export_dynamic_flag_spec_F77='${wl}-Bexport'
14315
runpath_var=LD_RUN_PATH
14316
hardcode_runpath_var=yes
14320
no_undefined_flag_F77=' -z text'
14321
if test "$GCC" = yes; then
14322
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14323
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14324
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14326
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14327
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14328
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14330
hardcode_libdir_flag_spec_F77='-R$libdir'
14331
hardcode_shlibpath_var_F77=no
14333
solaris2.[0-5] | solaris2.[0-5].*) ;;
14334
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
14335
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14337
link_all_deplibs_F77=yes
14341
if test "x$host_vendor" = xsequent; then
14342
# Use $CC to link under sequent, because it throws in some extra .o
14343
# files that make .init and .fini sections work.
14344
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14346
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14348
hardcode_libdir_flag_spec_F77='-L$libdir'
14349
hardcode_direct_F77=yes
14350
hardcode_minus_L_F77=yes
14351
hardcode_shlibpath_var_F77=no
14355
case $host_vendor in
14357
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358
hardcode_direct_F77=yes # is this really true???
14361
## LD is ld it makes a PLAMLIB
14362
## CC just makes a GrossModule.
14363
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14364
reload_cmds_F77='$CC -r -o $output$reload_objs'
14365
hardcode_direct_F77=no
14368
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14369
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14372
runpath_var='LD_RUN_PATH'
14373
hardcode_shlibpath_var_F77=no
14377
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14378
hardcode_shlibpath_var_F77=no
14379
export_dynamic_flag_spec_F77='-Bexport'
14383
if test -d /usr/nec; then
14384
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14385
hardcode_shlibpath_var_F77=no
14386
runpath_var=LD_RUN_PATH
14387
hardcode_runpath_var=yes
14393
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14394
hardcode_direct_F77=yes
14395
hardcode_minus_L_F77=no
14396
hardcode_shlibpath_var_F77=no
14397
hardcode_runpath_var=yes
14398
runpath_var=LD_RUN_PATH
14401
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14402
no_undefined_flag_F77='${wl}-z ${wl}text'
14403
if test "$GCC" = yes; then
14404
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14406
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14408
runpath_var='LD_RUN_PATH'
14409
hardcode_shlibpath_var_F77=no
14413
no_undefined_flag_F77=' -z text'
14414
# $CC -shared without GNU ld will not create a library from C++
14415
# object files and a static libstdc++, better avoid it by now
14416
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14417
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14418
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14419
hardcode_libdir_flag_spec_F77=
14420
hardcode_shlibpath_var_F77=no
14421
runpath_var='LD_RUN_PATH'
14425
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14426
hardcode_libdir_flag_spec_F77='-L$libdir'
14427
hardcode_shlibpath_var_F77=no
14436
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14437
echo "${ECHO_T}$ld_shlibs_F77" >&6
14438
test "$ld_shlibs_F77" = no && can_build_shared=no
14440
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14441
if test "$GCC" = yes; then
14442
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14446
# Do we need to explicitly link libc?
14448
case "x$archive_cmds_need_lc_F77" in
14450
# Assume -lc should be added
14451
archive_cmds_need_lc_F77=yes
14453
if test "$enable_shared" = yes && test "$GCC" = yes; then
14454
case $archive_cmds_F77 in
14456
# FIXME: we may have to deal with multi-command sequences.
14459
# Test whether the compiler implicitly links with -lc since on some
14460
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14461
# to ld, don't add -lc before -lgcc.
14462
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14463
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14465
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14467
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14468
(eval $ac_compile) 2>&5
14470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471
(exit $ac_status); } 2>conftest.err; then
14474
libobjs=conftest.$ac_objext
14476
wl=$lt_prog_compiler_wl_F77
14482
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14483
allow_undefined_flag_F77=
14484
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14485
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488
(exit $ac_status); }
14490
archive_cmds_need_lc_F77=no
14492
archive_cmds_need_lc_F77=yes
14494
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14496
cat conftest.err 1>&5
14499
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14500
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14507
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14508
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14509
library_names_spec=
14510
libname_spec='lib$name'
14514
postuninstall_cmds=
14518
shlibpath_overrides_runpath=unknown
14520
dynamic_linker="$host_os ld.so"
14521
sys_lib_dlsearch_path_spec="/lib /usr/lib"
14522
if test "$GCC" = yes; then
14523
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14524
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14525
# if the path contains ";" then we assume it to be the separator
14526
# otherwise default to the standard path separator (i.e. ":") - it is
14527
# assumed that no part of a normal pathname contains ";" but that should
14528
# okay in the real world where ";" in dirpaths is itself problematic.
14529
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14531
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14534
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14536
need_lib_prefix=unknown
14537
hardcode_into_libs=no
14539
# when you set need_version to no, make sure it does not cause -set_version
14540
# flags to be left without arguments
14541
need_version=unknown
14546
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14547
shlibpath_var=LIBPATH
14549
# AIX 3 has no versioning support, so we append a major version to the name.
14550
soname_spec='${libname}${release}${shared_ext}$major'
14557
hardcode_into_libs=yes
14558
if test "$host_cpu" = ia64; then
14559
# AIX 5 supports IA64
14560
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14561
shlibpath_var=LD_LIBRARY_PATH
14563
# With GCC up to 2.95.x, collect2 would create an import file
14564
# for dependence libraries. The import file would start with
14565
# the line `#! .'. This would cause the generated library to
14566
# depend on `.', always an invalid library. This was fixed in
14567
# development snapshots of GCC prior to 3.0.
14569
aix4 | aix4.[01] | aix4.[01].*)
14570
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14572
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14575
can_build_shared=no
14579
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14580
# soname into executable. Probably we can add versioning support to
14581
# collect2, so additional links can be useful in future.
14582
if test "$aix_use_runtimelinking" = yes; then
14583
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
14584
# instead of lib<name>.a to let people know that these are not
14585
# typical AIX shared libraries.
14586
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14588
# We preserve .a as extension for shared libraries through AIX4.2
14589
# and later when we are not doing run time linking.
14590
library_names_spec='${libname}${release}.a $libname.a'
14591
soname_spec='${libname}${release}${shared_ext}$major'
14593
shlibpath_var=LIBPATH
14598
library_names_spec='$libname.ixlibrary $libname.a'
14599
# Create ${libname}_ixlibrary.a entries in /sys/libs.
14600
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'
14604
library_names_spec='${libname}${shared_ext}'
14605
dynamic_linker="$host_os ld.so"
14606
shlibpath_var=LIBRARY_PATH
14612
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14613
soname_spec='${libname}${release}${shared_ext}$major'
14614
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14615
shlibpath_var=LD_LIBRARY_PATH
14616
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14617
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14618
# the default ld.so.conf also contains /usr/contrib/lib and
14619
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14620
# libtool to hard-code these into programs
14623
cygwin* | mingw* | pw32*)
14624
version_type=windows
14629
case $GCC,$host_os in
14630
yes,cygwin* | yes,mingw* | yes,pw32*)
14631
library_names_spec='$libname.dll.a'
14632
# DLL is installed to $(libdir)/../bin by postinstall_cmds
14633
postinstall_cmds='base_file=`basename \${file}`~
14634
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14635
dldir=$destdir/`dirname \$dlpath`~
14636
test -d \$dldir || mkdir -p \$dldir~
14637
$install_prog $dir/$dlname \$dldir/$dlname'
14638
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14639
dlpath=$dir/\$dldll~
14641
shlibpath_overrides_runpath=yes
14645
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
14646
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14647
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14650
# MinGW DLLs use traditional 'lib' prefix
14651
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14652
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14653
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14654
# It is most probably a Windows format PATH printed by
14655
# mingw gcc, but we are running on Cygwin. Gcc prints its search
14656
# path with ; separators, and with drive letters. We can handle the
14657
# drive letters (cygwin fileutils understands them), so leave them,
14658
# especially as we might pass files found there to a mingw objdump,
14659
# which wouldn't understand a cygwinified path. Ahh.
14660
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14662
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14666
# pw32 DLLs use 'pw' prefix rather than 'lib'
14667
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14673
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14676
dynamic_linker='Win32 ld.exe'
14677
# FIXME: first we should search . and the directory the executable is in
14681
darwin* | rhapsody*)
14682
dynamic_linker="$host_os dyld"
14683
version_type=darwin
14686
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14687
soname_spec='${libname}${release}${major}$shared_ext'
14688
shlibpath_overrides_runpath=yes
14689
shlibpath_var=DYLD_LIBRARY_PATH
14690
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14691
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14692
if test "$GCC" = yes; then
14693
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"`
14695
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14697
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14704
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14705
soname_spec='${libname}${release}${shared_ext}$major'
14706
shlibpath_var=LD_LIBRARY_PATH
14717
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14718
soname_spec='${libname}${release}${shared_ext}$major'
14719
shlibpath_var=LD_LIBRARY_PATH
14720
shlibpath_overrides_runpath=no
14721
hardcode_into_libs=yes
14722
dynamic_linker='GNU ld.so'
14726
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14727
version_type=freebsd-$objformat
14728
case $version_type in
14730
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14735
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14739
shlibpath_var=LD_LIBRARY_PATH
14742
shlibpath_overrides_runpath=yes
14744
freebsd3.01* | freebsdelf3.01*)
14745
shlibpath_overrides_runpath=yes
14746
hardcode_into_libs=yes
14749
shlibpath_overrides_runpath=no
14750
hardcode_into_libs=yes
14759
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14760
soname_spec='${libname}${release}${shared_ext}$major'
14761
shlibpath_var=LD_LIBRARY_PATH
14762
hardcode_into_libs=yes
14765
hpux9* | hpux10* | hpux11*)
14766
# Give a soname corresponding to the major version so that dld.sl refuses to
14767
# link against other versions.
14771
case "$host_cpu" in
14774
hardcode_into_libs=yes
14775
dynamic_linker="$host_os dld.so"
14776
shlibpath_var=LD_LIBRARY_PATH
14777
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14778
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14779
soname_spec='${libname}${release}${shared_ext}$major'
14780
if test "X$HPUX_IA64_MODE" = X32; then
14781
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14783
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14785
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14789
hardcode_into_libs=yes
14790
dynamic_linker="$host_os dld.sl"
14791
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14792
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14793
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794
soname_spec='${libname}${release}${shared_ext}$major'
14795
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14796
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14800
dynamic_linker="$host_os dld.sl"
14801
shlibpath_var=SHLIB_PATH
14802
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14804
soname_spec='${libname}${release}${shared_ext}$major'
14807
# HP-UX runs *really* slowly unless shared libraries are mode 555.
14808
postinstall_cmds='chmod 555 $lib'
14811
irix5* | irix6* | nonstopux*)
14813
nonstopux*) version_type=nonstopux ;;
14815
if test "$lt_cv_prog_gnu_ld" = yes; then
14823
soname_spec='${libname}${release}${shared_ext}$major'
14824
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14826
irix5* | nonstopux*)
14827
libsuff= shlibsuff=
14830
case $LD in # libtool.m4 will add one of these switches to LD
14831
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14832
libsuff= shlibsuff= libmagic=32-bit;;
14833
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14834
libsuff=32 shlibsuff=N32 libmagic=N32;;
14835
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14836
libsuff=64 shlibsuff=64 libmagic=64-bit;;
14837
*) libsuff= shlibsuff= libmagic=never-match;;
14841
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14842
shlibpath_overrides_runpath=no
14843
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14844
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14845
hardcode_into_libs=yes
14848
# No shared lib support for Linux oldld, aout, or coff.
14849
linux*oldld* | linux*aout* | linux*coff*)
14853
# This must be Linux ELF.
14858
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14859
soname_spec='${libname}${release}${shared_ext}$major'
14860
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14861
shlibpath_var=LD_LIBRARY_PATH
14862
shlibpath_overrides_runpath=no
14863
# This implies no fast_install, which is unacceptable.
14864
# Some rework will be needed to allow for fast_install
14865
# before this can be enabled.
14866
hardcode_into_libs=yes
14868
# Append ld.so.conf contents to the search path
14869
if test -f /etc/ld.so.conf; then
14870
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14871
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14874
# We used to test for /lib/ld.so.1 and disable shared libraries on
14875
# powerpc, because MkLinux only supported shared libraries with the
14876
# GNU dynamic linker. Since this was broken with cross compilers,
14877
# most powerpc-linux boxes support dynamic linking these days and
14878
# people can always --disable-shared, the test was removed, and we
14879
# assume the GNU/Linux dynamic linker is in use.
14880
dynamic_linker='GNU/Linux ld.so'
14887
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14888
soname_spec='${libname}${release}${shared_ext}$major'
14889
shlibpath_var=LD_LIBRARY_PATH
14890
shlibpath_overrides_runpath=no
14891
hardcode_into_libs=yes
14892
dynamic_linker='GNU ld.so'
14899
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14900
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14901
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14902
dynamic_linker='NetBSD (a.out) ld.so'
14904
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14905
soname_spec='${libname}${release}${shared_ext}$major'
14906
dynamic_linker='NetBSD ld.elf_so'
14908
shlibpath_var=LD_LIBRARY_PATH
14909
shlibpath_overrides_runpath=yes
14910
hardcode_into_libs=yes
14915
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14916
shlibpath_var=LD_LIBRARY_PATH
14917
shlibpath_overrides_runpath=yes
14924
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14925
soname_spec='${libname}${release}${shared_ext}$major'
14926
shlibpath_var=LD_LIBRARY_PATH
14927
shlibpath_overrides_runpath=yes
14934
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14935
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14936
shlibpath_var=LD_LIBRARY_PATH
14937
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14939
openbsd2.[89] | openbsd2.[89].*)
14940
shlibpath_overrides_runpath=no
14943
shlibpath_overrides_runpath=yes
14947
shlibpath_overrides_runpath=yes
14952
libname_spec='$name'
14955
library_names_spec='$libname${shared_ext} $libname.a'
14956
dynamic_linker='OS/2 ld.exe'
14957
shlibpath_var=LIBPATH
14960
osf3* | osf4* | osf5*)
14964
soname_spec='${libname}${release}${shared_ext}$major'
14965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14966
shlibpath_var=LD_LIBRARY_PATH
14967
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14968
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14973
soname_spec='${libname}${release}${shared_ext}$major'
14974
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14975
shlibpath_var=LD_LIBRARY_PATH
14982
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14983
soname_spec='${libname}${release}${shared_ext}$major'
14984
shlibpath_var=LD_LIBRARY_PATH
14985
shlibpath_overrides_runpath=yes
14986
hardcode_into_libs=yes
14987
# ldd complains unless libraries are executable
14988
postinstall_cmds='chmod +x $lib'
14993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14994
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14995
shlibpath_var=LD_LIBRARY_PATH
14996
shlibpath_overrides_runpath=yes
14997
if test "$with_gnu_ld" = yes; then
15003
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15005
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15006
soname_spec='${libname}${release}${shared_ext}$major'
15007
shlibpath_var=LD_LIBRARY_PATH
15008
case $host_vendor in
15010
shlibpath_overrides_runpath=no
15012
export_dynamic_flag_spec='${wl}-Blargedynsym'
15013
runpath_var=LD_RUN_PATH
15021
shlibpath_overrides_runpath=no
15022
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15028
if test -d /usr/nec ;then
15030
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15031
soname_spec='$libname${shared_ext}.$major'
15032
shlibpath_var=LD_LIBRARY_PATH
15038
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039
soname_spec='${libname}${release}${shared_ext}$major'
15040
shlibpath_var=LD_LIBRARY_PATH
15047
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15048
echo "${ECHO_T}$dynamic_linker" >&6
15049
test "$dynamic_linker" = no && can_build_shared=no
15051
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15052
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15053
hardcode_action_F77=
15054
if test -n "$hardcode_libdir_flag_spec_F77" || \
15055
test -n "$runpath_var F77" || \
15056
test "X$hardcode_automatic_F77"="Xyes" ; then
15058
# We can hardcode non-existant directories.
15059
if test "$hardcode_direct_F77" != no &&
15060
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15061
# have to relink, otherwise we might link with an installed library
15062
# when we should be linking with a yet-to-be-installed one
15063
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15064
test "$hardcode_minus_L_F77" != no; then
15065
# Linking always hardcodes the temporary library directory.
15066
hardcode_action_F77=relink
15068
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15069
hardcode_action_F77=immediate
15072
# We cannot hardcode anything, or else we can only hardcode existing
15074
hardcode_action_F77=unsupported
15076
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15077
echo "${ECHO_T}$hardcode_action_F77" >&6
15079
if test "$hardcode_action_F77" = relink; then
15080
# Fast installation is not supported
15081
enable_fast_install=no
15082
elif test "$shlibpath_overrides_runpath" = yes ||
15083
test "$enable_shared" = no; then
15084
# Fast installation is not necessary
15085
enable_fast_install=needless
15090
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15091
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15092
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15093
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15094
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15095
echo "$as_me:$LINENO: result: yes" >&5
15096
echo "${ECHO_T}yes" >&6
15098
# FIXME - insert some real tests, host_os isn't really good enough
15101
if test -n "$STRIP" ; then
15102
striplib="$STRIP -x"
15103
echo "$as_me:$LINENO: result: yes" >&5
15104
echo "${ECHO_T}yes" >&6
15106
echo "$as_me:$LINENO: result: no" >&5
15107
echo "${ECHO_T}no" >&6
15111
echo "$as_me:$LINENO: result: no" >&5
15112
echo "${ECHO_T}no" >&6
15119
# The else clause should only fire when bootstrapping the
15120
# libtool distribution, otherwise you forgot to ship ltmain.sh
15121
# with your package, and you will get complaints that there are
15122
# no rules to generate ltmain.sh.
15123
if test -f "$ltmain"; then
15124
# See if we are running on zsh, and set the options which allow our commands through
15125
# without removal of \ escapes.
15126
if test -n "${ZSH_VERSION+set}" ; then
15127
setopt NO_GLOB_SUBST
15129
# Now quote all the things that may contain metacharacters while being
15130
# careful not to overquote the AC_SUBSTed values. We take copies of the
15131
# variables and quote the copies for generation of the libtool script.
15132
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15134
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15135
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15136
deplibs_check_method reload_flag reload_cmds need_locks \
15137
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15138
lt_cv_sys_global_symbol_to_c_name_address \
15139
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15140
old_postinstall_cmds old_postuninstall_cmds \
15144
lt_prog_compiler_wl_F77 \
15145
lt_prog_compiler_pic_F77 \
15146
lt_prog_compiler_static_F77 \
15147
lt_prog_compiler_no_builtin_flag_F77 \
15148
export_dynamic_flag_spec_F77 \
15149
thread_safe_flag_spec_F77 \
15150
whole_archive_flag_spec_F77 \
15151
enable_shared_with_static_runtimes_F77 \
15152
old_archive_cmds_F77 \
15153
old_archive_from_new_cmds_F77 \
15154
predep_objects_F77 \
15155
postdep_objects_F77 \
15158
compiler_lib_search_path_F77 \
15160
archive_expsym_cmds_F77 \
15161
postinstall_cmds_F77 \
15162
postuninstall_cmds_F77 \
15163
old_archive_from_expsyms_cmds_F77 \
15164
allow_undefined_flag_F77 \
15165
no_undefined_flag_F77 \
15166
export_symbols_cmds_F77 \
15167
hardcode_libdir_flag_spec_F77 \
15168
hardcode_libdir_flag_spec_ld_F77 \
15169
hardcode_libdir_separator_F77 \
15170
hardcode_automatic_F77 \
15172
module_expsym_cmds_F77 \
15173
lt_cv_prog_compiler_c_o_F77 \
15174
exclude_expsyms_F77 \
15175
include_expsyms_F77; do
15178
old_archive_cmds_F77 | \
15179
old_archive_from_new_cmds_F77 | \
15180
archive_cmds_F77 | \
15181
archive_expsym_cmds_F77 | \
15182
module_cmds_F77 | \
15183
module_expsym_cmds_F77 | \
15184
old_archive_from_expsyms_cmds_F77 | \
15185
export_symbols_cmds_F77 | \
15186
extract_expsyms_cmds | reload_cmds | finish_cmds | \
15187
postinstall_cmds | postuninstall_cmds | \
15188
old_postinstall_cmds | old_postuninstall_cmds | \
15189
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15190
# Double-quote double-evaled strings.
15191
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15194
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15200
*'\$0 --fallback-echo"')
15201
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15207
cat <<__EOF__ >> "$cfgfile"
15208
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15210
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15212
# Shell to use when invoking shell scripts.
15215
# Whether or not to build shared libraries.
15216
build_libtool_libs=$enable_shared
15218
# Whether or not to build static libraries.
15219
build_old_libs=$enable_static
15221
# Whether or not to add -lc for building shared libraries.
15222
build_libtool_need_lc=$archive_cmds_need_lc_F77
15224
# Whether or not to disallow shared libs when runtime libs are static
15225
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15227
# Whether or not to optimize for fast installation.
15228
fast_install=$enable_fast_install
15231
host_alias=$host_alias
15234
# An echo program that does not interpret backslashes.
15239
AR_FLAGS=$lt_AR_FLAGS
15244
# A language-specific compiler.
15245
CC=$lt_compiler_F77
15247
# Is the compiler the GNU C compiler?
15253
# The linker used to build libraries.
15256
# Whether we need hard or soft links.
15259
# A BSD-compatible nm program.
15262
# A symbol stripping program
15265
# Used to examine libraries when file_magic_cmd begins "file"
15266
MAGIC_CMD=$MAGIC_CMD
15268
# Used on cygwin: DLL creation program.
15271
# Used on cygwin: object dumper.
15274
# Used on cygwin: assembler.
15277
# The name of the directory that contains temporary libtool files.
15280
# How to create reloadable object files.
15281
reload_flag=$lt_reload_flag
15282
reload_cmds=$lt_reload_cmds
15284
# How to pass a linker flag through the compiler.
15285
wl=$lt_lt_prog_compiler_wl_F77
15287
# Object file suffix (normally "o").
15288
objext="$ac_objext"
15290
# Old archive suffix (normally "a").
15293
# Shared library suffix (normally ".so").
15296
# Executable file suffix (normally "").
15299
# Additional compiler flags for building library objects.
15300
pic_flag=$lt_lt_prog_compiler_pic_F77
15303
# What is the maximum length of a command?
15304
max_cmd_len=$lt_cv_sys_max_cmd_len
15306
# Does compiler simultaneously support -c and -o options?
15307
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15309
# Must we lock files when doing compilation ?
15310
need_locks=$lt_need_locks
15312
# Do we need the lib prefix for modules?
15313
need_lib_prefix=$need_lib_prefix
15315
# Do we need a version for libraries?
15316
need_version=$need_version
15318
# Whether dlopen is supported.
15319
dlopen_support=$enable_dlopen
15321
# Whether dlopen of programs is supported.
15322
dlopen_self=$enable_dlopen_self
15324
# Whether dlopen of statically linked programs is supported.
15325
dlopen_self_static=$enable_dlopen_self_static
15327
# Compiler flag to prevent dynamic linking.
15328
link_static_flag=$lt_lt_prog_compiler_static_F77
15330
# Compiler flag to turn off builtin functions.
15331
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15333
# Compiler flag to allow reflexive dlopens.
15334
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15336
# Compiler flag to generate shared objects directly from archives.
15337
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15339
# Compiler flag to generate thread-safe objects.
15340
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15342
# Library versioning type.
15343
version_type=$version_type
15345
# Format of library name prefix.
15346
libname_spec=$lt_libname_spec
15348
# List of archive names. First name is the real one, the rest are links.
15349
# The last name is the one that the linker finds with -lNAME.
15350
library_names_spec=$lt_library_names_spec
15352
# The coded name of the library, if different from the real name.
15353
soname_spec=$lt_soname_spec
15355
# Commands used to build and install an old-style archive.
15357
old_archive_cmds=$lt_old_archive_cmds_F77
15358
old_postinstall_cmds=$lt_old_postinstall_cmds
15359
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15361
# Create an old-style archive from a shared archive.
15362
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15364
# Create a temporary old-style archive to link instead of a shared archive.
15365
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15367
# Commands used to build and install a shared archive.
15368
archive_cmds=$lt_archive_cmds_F77
15369
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15370
postinstall_cmds=$lt_postinstall_cmds
15371
postuninstall_cmds=$lt_postuninstall_cmds
15373
# Commands used to build a loadable module (assumed same as above if empty)
15374
module_cmds=$lt_module_cmds_F77
15375
module_expsym_cmds=$lt_module_expsym_cmds_F77
15377
# Commands to strip libraries.
15378
old_striplib=$lt_old_striplib
15379
striplib=$lt_striplib
15381
# Dependencies to place before the objects being linked to create a
15383
predep_objects=$lt_predep_objects_F77
15385
# Dependencies to place after the objects being linked to create a
15387
postdep_objects=$lt_postdep_objects_F77
15389
# Dependencies to place before the objects being linked to create a
15391
predeps=$lt_predeps_F77
15393
# Dependencies to place after the objects being linked to create a
15395
postdeps=$lt_postdeps_F77
15397
# The library search path used internally by the compiler when linking
15398
# a shared library.
15399
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15401
# Method to check whether dependent libraries are shared objects.
15402
deplibs_check_method=$lt_deplibs_check_method
15404
# Command to use when deplibs_check_method == file_magic.
15405
file_magic_cmd=$lt_file_magic_cmd
15407
# Flag that allows shared libraries with undefined symbols to be built.
15408
allow_undefined_flag=$lt_allow_undefined_flag_F77
15410
# Flag that forces no undefined symbols.
15411
no_undefined_flag=$lt_no_undefined_flag_F77
15413
# Commands used to finish a libtool library installation in a directory.
15414
finish_cmds=$lt_finish_cmds
15416
# Same as above, but a single script fragment to be evaled but not shown.
15417
finish_eval=$lt_finish_eval
15419
# Take the output of nm and produce a listing of raw symbols and C names.
15420
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15422
# Transform the output of nm in a proper C declaration
15423
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15425
# Transform the output of nm in a C name address pair
15426
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15428
# This is the shared library runtime path variable.
15429
runpath_var=$runpath_var
15431
# This is the shared library path variable.
15432
shlibpath_var=$shlibpath_var
15434
# Is shlibpath searched before the hard-coded library search path?
15435
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15437
# How to hardcode a shared library path into an executable.
15438
hardcode_action=$hardcode_action_F77
15440
# Whether we should hardcode library paths into libraries.
15441
hardcode_into_libs=$hardcode_into_libs
15443
# Flag to hardcode \$libdir into a binary during linking.
15444
# This must work even if \$libdir does not exist.
15445
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15447
# If ld is used when linking, flag to hardcode \$libdir into
15448
# a binary during linking. This must work even if \$libdir does
15450
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15452
# Whether we need a single -rpath flag with a separated argument.
15453
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15455
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15456
# resulting binary.
15457
hardcode_direct=$hardcode_direct_F77
15459
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15460
# resulting binary.
15461
hardcode_minus_L=$hardcode_minus_L_F77
15463
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15464
# the resulting binary.
15465
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15467
# Set to yes if building a shared library automatically hardcodes DIR into the library
15468
# and all subsequent libraries and executables linked against it.
15469
hardcode_automatic=$hardcode_automatic_F77
15471
# Variables whose values should be saved in libtool wrapper scripts and
15472
# restored at relink time.
15473
variables_saved_for_relink="$variables_saved_for_relink"
15475
# Whether libtool must link a program against all its dependency libraries.
15476
link_all_deplibs=$link_all_deplibs_F77
15478
# Compile-time system search path for libraries
15479
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15481
# Run-time system search path for libraries
15482
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15484
# Fix the shell variable \$srcfile for the compiler.
15485
fix_srcfile_path="$fix_srcfile_path_F77"
15487
# Set to yes if exported symbols are required.
15488
always_export_symbols=$always_export_symbols_F77
15490
# The commands to list exported symbols.
15491
export_symbols_cmds=$lt_export_symbols_cmds_F77
15493
# The commands to extract the exported symbol list from a shared archive.
15494
extract_expsyms_cmds=$lt_extract_expsyms_cmds
15496
# Symbols that should not be listed in the preloaded symbols.
15497
exclude_expsyms=$lt_exclude_expsyms_F77
15499
# Symbols that must always be exported.
15500
include_expsyms=$lt_include_expsyms_F77
15502
# ### END LIBTOOL TAG CONFIG: $tagname
15508
# If there is no Makefile yet, we rely on a make rule to execute
15509
# `config.status --recheck' to rerun these tests and create the
15510
# libtool script then.
15511
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15512
if test -f "$ltmain_in"; then
15513
test -f Makefile && make "$ltmain"
15519
ac_cpp='$CPP $CPPFLAGS'
15520
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15521
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15522
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15532
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15536
# Source file extension for Java test sources.
15539
# Object file extension for compiled Java test sources.
15543
# Code to be used in simple compile tests
15544
lt_simple_compile_test_code="class foo {}\n"
15546
# Code to be used in simple link tests
15547
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15549
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15551
# If no C compiler was specified, use CC.
15554
# Allow CC to be a program name with arguments.
15558
# Allow CC to be a program name with arguments.
15564
# GCJ did not exist at the time GCC didn't implicitly link libc in.
15565
archive_cmds_need_lc_GCJ=no
15568
lt_prog_compiler_no_builtin_flag_GCJ=
15570
if test "$GCC" = yes; then
15571
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15574
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15575
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15576
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15577
echo $ECHO_N "(cached) $ECHO_C" >&6
15579
lt_cv_prog_compiler_rtti_exceptions=no
15580
ac_outfile=conftest.$ac_objext
15581
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15582
lt_compiler_flag="-fno-rtti -fno-exceptions"
15583
# Insert the option either (1) after the last *FLAGS variable, or
15584
# (2) before a word containing "conftest.", or (3) at the end.
15585
# Note that $ac_compile itself does not contain backslashes and begins
15586
# with a dollar sign (not a hyphen), so the echo should work correctly.
15587
# The option is referenced via a variable to avoid confusing sed.
15588
lt_compile=`echo "$ac_compile" | $SED \
15589
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15590
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15591
-e 's:$: $lt_compiler_flag:'`
15592
(eval echo "\"\$as_me:15592: $lt_compile\"" >&5)
15593
(eval "$lt_compile" 2>conftest.err)
15595
cat conftest.err >&5
15596
echo "$as_me:15596: \$? = $ac_status" >&5
15597
if (exit $ac_status) && test -s "$ac_outfile"; then
15598
# The compiler can only warn and ignore the option if not recognized
15599
# So say no if there are warnings
15600
if test ! -s conftest.err; then
15601
lt_cv_prog_compiler_rtti_exceptions=yes
15607
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15608
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15610
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15611
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15618
lt_prog_compiler_wl_GCJ=
15619
lt_prog_compiler_pic_GCJ=
15620
lt_prog_compiler_static_GCJ=
15622
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15623
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15625
if test "$GCC" = yes; then
15626
lt_prog_compiler_wl_GCJ='-Wl,'
15627
lt_prog_compiler_static_GCJ='-static'
15631
# All AIX code is PIC.
15632
if test "$host_cpu" = ia64; then
15633
# AIX 5 now supports IA64 processor
15634
lt_prog_compiler_static_GCJ='-Bstatic'
15639
# FIXME: we need at least 68020 code to build shared libraries, but
15640
# adding the `-m68020' flag to GCC prevents building anything better,
15642
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15645
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15646
# PIC is the default for these OSes.
15649
mingw* | pw32* | os2*)
15650
# This hack is so that the source file can tell whether it is being
15651
# built for inclusion in a dll (and should export symbols for example).
15652
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15655
darwin* | rhapsody*)
15656
# PIC is the default on this platform
15657
# Common symbols not allowed in MH_DYLIB files
15658
lt_prog_compiler_pic_GCJ='-fno-common'
15662
# Just because we use GCC doesn't mean we suddenly get shared libraries
15663
# on systems that don't support them.
15664
lt_prog_compiler_can_build_shared_GCJ=no
15669
if test -d /usr/nec; then
15670
lt_prog_compiler_pic_GCJ=-Kconform_pic
15675
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15676
# not for PA HP-UX.
15677
case "$host_cpu" in
15682
lt_prog_compiler_pic_GCJ='-fPIC'
15688
lt_prog_compiler_pic_GCJ='-fPIC'
15692
# PORTME Check for flag to pass linker flags through the system compiler.
15695
lt_prog_compiler_wl_GCJ='-Wl,'
15696
if test "$host_cpu" = ia64; then
15697
# AIX 5 now supports IA64 processor
15698
lt_prog_compiler_static_GCJ='-Bstatic'
15700
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15704
mingw* | pw32* | os2*)
15705
# This hack is so that the source file can tell whether it is being
15706
# built for inclusion in a dll (and should export symbols for example).
15707
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15710
hpux9* | hpux10* | hpux11*)
15711
lt_prog_compiler_wl_GCJ='-Wl,'
15712
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15713
# not for PA HP-UX.
15714
case "$host_cpu" in
15719
lt_prog_compiler_pic_GCJ='+Z'
15722
# Is there a better lt_prog_compiler_static that works with the bundled CC?
15723
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15726
irix5* | irix6* | nonstopux*)
15727
lt_prog_compiler_wl_GCJ='-Wl,'
15728
# PIC (with -KPIC) is the default.
15729
lt_prog_compiler_static_GCJ='-non_shared'
15733
lt_prog_compiler_pic_GCJ='-KPIC'
15734
lt_prog_compiler_static_GCJ='-Bstatic'
15740
lt_prog_compiler_wl_GCJ='-Wl,'
15741
lt_prog_compiler_pic_GCJ='-KPIC'
15742
lt_prog_compiler_static_GCJ='-static'
15745
lt_prog_compiler_wl_GCJ='-Wl,'
15746
# All Alpha code is PIC.
15747
lt_prog_compiler_static_GCJ='-non_shared'
15752
osf3* | osf4* | osf5*)
15753
lt_prog_compiler_wl_GCJ='-Wl,'
15754
# All OSF/1 code is PIC.
15755
lt_prog_compiler_static_GCJ='-non_shared'
15759
lt_prog_compiler_pic_GCJ='-Kpic'
15760
lt_prog_compiler_static_GCJ='-dn'
15764
lt_prog_compiler_wl_GCJ='-Wl,'
15765
lt_prog_compiler_pic_GCJ='-KPIC'
15766
lt_prog_compiler_static_GCJ='-Bstatic'
15770
lt_prog_compiler_wl_GCJ='-Qoption ld '
15771
lt_prog_compiler_pic_GCJ='-PIC'
15772
lt_prog_compiler_static_GCJ='-Bstatic'
15775
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15776
lt_prog_compiler_wl_GCJ='-Wl,'
15777
lt_prog_compiler_pic_GCJ='-KPIC'
15778
lt_prog_compiler_static_GCJ='-Bstatic'
15782
if test -d /usr/nec ;then
15783
lt_prog_compiler_pic_GCJ='-Kconform_pic'
15784
lt_prog_compiler_static_GCJ='-Bstatic'
15789
lt_prog_compiler_pic_GCJ='-pic'
15790
lt_prog_compiler_static_GCJ='-Bstatic'
15794
lt_prog_compiler_can_build_shared_GCJ=no
15799
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15800
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15803
# Check to make sure the PIC flag actually works.
15805
if test -n "$lt_prog_compiler_pic_GCJ"; then
15807
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15808
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15809
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15810
echo $ECHO_N "(cached) $ECHO_C" >&6
15812
lt_prog_compiler_pic_works_GCJ=no
15813
ac_outfile=conftest.$ac_objext
15814
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15815
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15816
# Insert the option either (1) after the last *FLAGS variable, or
15817
# (2) before a word containing "conftest.", or (3) at the end.
15818
# Note that $ac_compile itself does not contain backslashes and begins
15819
# with a dollar sign (not a hyphen), so the echo should work correctly.
15820
# The option is referenced via a variable to avoid confusing sed.
15821
lt_compile=`echo "$ac_compile" | $SED \
15822
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15823
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15824
-e 's:$: $lt_compiler_flag:'`
15825
(eval echo "\"\$as_me:15825: $lt_compile\"" >&5)
15826
(eval "$lt_compile" 2>conftest.err)
15828
cat conftest.err >&5
15829
echo "$as_me:15829: \$? = $ac_status" >&5
15830
if (exit $ac_status) && test -s "$ac_outfile"; then
15831
# The compiler can only warn and ignore the option if not recognized
15832
# So say no if there are warnings
15833
if test ! -s conftest.err; then
15834
lt_prog_compiler_pic_works_GCJ=yes
15840
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15841
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15843
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15844
case $lt_prog_compiler_pic_GCJ in
15846
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15849
lt_prog_compiler_pic_GCJ=
15850
lt_prog_compiler_can_build_shared_GCJ=no
15855
# For platforms which do not support PIC, -DPIC is meaningless:
15857
lt_prog_compiler_pic_GCJ=
15860
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15864
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15865
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15866
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15867
echo $ECHO_N "(cached) $ECHO_C" >&6
15869
lt_cv_prog_compiler_c_o_GCJ=no
15870
$rm -r conftest 2>/dev/null
15874
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15876
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15877
# that will create temporary files in the current directory regardless of
15878
# the output directory. Thus, making CWD read-only will cause this test
15879
# to fail, enabling locking or at least warning the user not to do parallel
15883
lt_compiler_flag="-o out/conftest2.$ac_objext"
15884
# Insert the option either (1) after the last *FLAGS variable, or
15885
# (2) before a word containing "conftest.", or (3) at the end.
15886
# Note that $ac_compile itself does not contain backslashes and begins
15887
# with a dollar sign (not a hyphen), so the echo should work correctly.
15888
lt_compile=`echo "$ac_compile" | $SED \
15889
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15890
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15891
-e 's:$: $lt_compiler_flag:'`
15892
(eval echo "\"\$as_me:15892: $lt_compile\"" >&5)
15893
(eval "$lt_compile" 2>out/conftest.err)
15895
cat out/conftest.err >&5
15896
echo "$as_me:15896: \$? = $ac_status" >&5
15897
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15899
# The compiler can only warn and ignore the option if not recognized
15900
# So say no if there are warnings
15901
if test ! -s out/conftest.err; then
15902
lt_cv_prog_compiler_c_o_GCJ=yes
15907
# SGI C++ compiler will create directory out/ii_files/ for
15908
# template instantiation
15909
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15910
$rm out/* && rmdir out
15916
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15917
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15920
hard_links="nottested"
15921
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15922
# do not overwrite the value of need_locks provided by the user
15923
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15924
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15927
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15929
ln conftest.a conftest.b 2>&5 || hard_links=no
15930
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15931
echo "$as_me:$LINENO: result: $hard_links" >&5
15932
echo "${ECHO_T}$hard_links" >&6
15933
if test "$hard_links" = no; then
15934
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15935
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15942
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15943
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15946
allow_undefined_flag_GCJ=
15947
enable_shared_with_static_runtimes_GCJ=no
15949
archive_expsym_cmds_GCJ=
15950
old_archive_From_new_cmds_GCJ=
15951
old_archive_from_expsyms_cmds_GCJ=
15952
export_dynamic_flag_spec_GCJ=
15953
whole_archive_flag_spec_GCJ=
15954
thread_safe_flag_spec_GCJ=
15955
hardcode_libdir_flag_spec_GCJ=
15956
hardcode_libdir_flag_spec_ld_GCJ=
15957
hardcode_libdir_separator_GCJ=
15958
hardcode_direct_GCJ=no
15959
hardcode_minus_L_GCJ=no
15960
hardcode_shlibpath_var_GCJ=unsupported
15961
link_all_deplibs_GCJ=unknown
15962
hardcode_automatic_GCJ=no
15964
module_expsym_cmds_GCJ=
15965
always_export_symbols_GCJ=no
15966
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15967
# include_expsyms should be a list of space-separated symbols to be *always*
15968
# included in the symbol list
15969
include_expsyms_GCJ=
15970
# exclude_expsyms can be an extended regexp of symbols to exclude
15971
# it will be wrapped by ` (' and `)$', so one must not match beginning or
15972
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15973
# as well as any symbol that contains `d'.
15974
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15975
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15976
# platforms (ab)use it in PIC code, but their linkers get confused if
15977
# the symbol is explicitly referenced. Since portable code cannot
15978
# rely on this symbol name, it's probably fine to never include it in
15979
# preloaded symbol tables.
15980
extract_expsyms_cmds=
15983
cygwin* | mingw* | pw32*)
15984
# FIXME: the MSVC++ port hasn't been tested in a loooong time
15985
# When not using gcc, we currently assume that we are using
15986
# Microsoft Visual C++.
15987
if test "$GCC" != yes; then
15997
if test "$with_gnu_ld" = yes; then
15998
# If archive_cmds runs LD, not CC, wlarc should be empty
16001
# See if GNU ld supports shared libraries.
16003
aix3* | aix4* | aix5*)
16004
# On AIX/PPC, the GNU linker is very broken
16005
if test "$host_cpu" != ia64; then
16009
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16010
*** to be unable to reliably create shared libraries on AIX.
16011
*** Therefore, libtool is disabling shared libraries support. If you
16012
*** really care for shared libraries, you may want to modify your PATH
16013
*** so that a non-GNU linker is found, and then restart.
16020
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)'
16021
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16022
hardcode_minus_L_GCJ=yes
16024
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16025
# that the semantics of dynamic libraries on AmigaOS, at least up
16026
# to version 4, is to share data among multiple programs linked
16027
# with the same dynamic library. Since this doesn't match the
16028
# behavior of shared libraries on other platforms, we can't use
16034
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16035
allow_undefined_flag_GCJ=unsupported
16036
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16037
# support --undefined. This deserves some investigation. FIXME
16038
archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16044
cygwin* | mingw* | pw32*)
16045
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16046
# as there is no search path for DLLs.
16047
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16048
allow_undefined_flag_GCJ=unsupported
16049
always_export_symbols_GCJ=no
16050
enable_shared_with_static_runtimes_GCJ=yes
16051
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16053
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16054
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16055
# If the export-symbols file already is a .def file (1st line
16056
# is EXPORTS), use it as is; otherwise, prepend...
16057
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16058
cp $export_symbols $output_objdir/$soname.def;
16060
echo EXPORTS > $output_objdir/$soname.def;
16061
cat $export_symbols >> $output_objdir/$soname.def;
16063
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16070
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16071
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16074
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16075
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16080
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16084
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16085
*** create shared libraries on Solaris systems. Therefore, libtool
16086
*** is disabling shared libraries support. We urge you to upgrade GNU
16087
*** binutils to release 2.9.1 or newer. Another option is to modify
16088
*** your PATH or compiler configuration so that the native linker is
16089
*** used, and then restart.
16092
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16093
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16094
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16101
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16103
hardcode_direct_GCJ=yes
16104
hardcode_shlibpath_var_GCJ=no
16108
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
16109
tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16110
archive_cmds_GCJ="$tmp_archive_cmds"
16111
supports_anon_versioning=no
16112
case `$LD -v 2>/dev/null` in
16113
*\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16114
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16115
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16116
*\ 2.11.*) ;; # other 2.11 versions
16117
*) supports_anon_versioning=yes ;;
16119
if test $supports_anon_versioning = yes; then
16120
archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16121
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16122
$echo "local: *; };" >> $output_objdir/$libname.ver~
16123
$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16125
archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16133
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16134
archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16135
archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16142
if test "$ld_shlibs_GCJ" = yes; then
16143
runpath_var=LD_RUN_PATH
16144
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16145
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16146
# ancient GNU ld didn't support --whole-archive et. al.
16147
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16148
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16150
whole_archive_flag_spec_GCJ=
16154
# PORTME fill in a description of your system's linker (not GNU ld)
16157
allow_undefined_flag_GCJ=unsupported
16158
always_export_symbols_GCJ=yes
16159
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'
16160
# Note: this linker hardcodes the directories in LIBPATH if there
16161
# are no directories specified by -L.
16162
hardcode_minus_L_GCJ=yes
16163
if test "$GCC" = yes && test -z "$link_static_flag"; then
16164
# Neither direct hardcoding nor static linking is supported with a
16166
hardcode_direct_GCJ=unsupported
16171
if test "$host_cpu" = ia64; then
16172
# On IA64, the linker does run time linking by default, so we don't
16173
# have to do anything special.
16174
aix_use_runtimelinking=no
16175
exp_sym_flag='-Bexport'
16178
# If we're using GNU nm, then we don't want the "-C" option.
16179
# -C means demangle to AIX nm, but means don't demangle with GNU nm
16180
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16181
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'
16183
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'
16185
aix_use_runtimelinking=no
16187
# Test if we are trying to use run time linking or normal
16188
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16189
# need to do runtime linking.
16190
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16191
for ld_flag in $LDFLAGS; do
16192
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16193
aix_use_runtimelinking=yes
16199
exp_sym_flag='-bexport'
16200
no_entry_flag='-bnoentry'
16203
# When large executables or shared objects are built, AIX ld can
16204
# have problems creating the table of contents. If linking a library
16205
# or program results in "error TOC overflow" add -mminimal-toc to
16206
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16207
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16209
archive_cmds_GCJ=''
16210
hardcode_direct_GCJ=yes
16211
hardcode_libdir_separator_GCJ=':'
16212
link_all_deplibs_GCJ=yes
16214
if test "$GCC" = yes; then
16215
case $host_os in aix4.012|aix4.012.*)
16216
# We only want to do this on AIX 4.2 and lower, the check
16217
# below for broken collect2 doesn't work under 4.3+
16218
collect2name=`${CC} -print-prog-name=collect2`
16219
if test -f "$collect2name" && \
16220
strings "$collect2name" | grep resolve_lib_name >/dev/null
16222
# We have reworked collect2
16223
hardcode_direct_GCJ=yes
16225
# We have old collect2
16226
hardcode_direct_GCJ=unsupported
16227
# It fails to find uninstalled libraries when the uninstalled
16228
# path is not listed in the libpath. Setting hardcode_minus_L
16229
# to unsupported forces relinking
16230
hardcode_minus_L_GCJ=yes
16231
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16232
hardcode_libdir_separator_GCJ=
16235
shared_flag='-shared'
16238
if test "$host_cpu" = ia64; then
16239
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16240
# chokes on -Wl,-G. The following line is correct:
16243
if test "$aix_use_runtimelinking" = yes; then
16244
shared_flag='${wl}-G'
16246
shared_flag='${wl}-bM:SRE'
16251
# It seems that -bexpall does not export symbols beginning with
16252
# underscore (_), so it is better to generate a list of symbols to export.
16253
always_export_symbols_GCJ=yes
16254
if test "$aix_use_runtimelinking" = yes; then
16255
# Warning - without using the other runtime loading flags (-brtl),
16256
# -berok will link without error, but may produce a broken library.
16257
allow_undefined_flag_GCJ='-berok'
16258
# Determine the default libpath from the value encoded in an empty executable.
16259
cat >conftest.$ac_ext <<_ACEOF
16262
cat confdefs.h >>conftest.$ac_ext
16263
cat >>conftest.$ac_ext <<_ACEOF
16264
/* end confdefs.h. */
16274
rm -f conftest.$ac_objext conftest$ac_exeext
16275
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16276
(eval $ac_link) 2>conftest.er1
16278
grep -v '^ *+' conftest.er1 >conftest.err
16280
cat conftest.err >&5
16281
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282
(exit $ac_status); } &&
16283
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16284
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16285
(eval $ac_try) 2>&5
16287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288
(exit $ac_status); }; } &&
16289
{ ac_try='test -s conftest$ac_exeext'
16290
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291
(eval $ac_try) 2>&5
16293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294
(exit $ac_status); }; }; then
16296
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16298
# Check for a 64-bit object if we didn't find anything.
16299
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; }
16302
echo "$as_me: failed program was:" >&5
16303
sed 's/^/| /' conftest.$ac_ext >&5
16306
rm -f conftest.err conftest.$ac_objext \
16307
conftest$ac_exeext conftest.$ac_ext
16308
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16310
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16311
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"
16313
if test "$host_cpu" = ia64; then
16314
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16315
allow_undefined_flag_GCJ="-z nodefs"
16316
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"
16318
# Determine the default libpath from the value encoded in an empty executable.
16319
cat >conftest.$ac_ext <<_ACEOF
16322
cat confdefs.h >>conftest.$ac_ext
16323
cat >>conftest.$ac_ext <<_ACEOF
16324
/* end confdefs.h. */
16334
rm -f conftest.$ac_objext conftest$ac_exeext
16335
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16336
(eval $ac_link) 2>conftest.er1
16338
grep -v '^ *+' conftest.er1 >conftest.err
16340
cat conftest.err >&5
16341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16342
(exit $ac_status); } &&
16343
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16344
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345
(eval $ac_try) 2>&5
16347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348
(exit $ac_status); }; } &&
16349
{ ac_try='test -s conftest$ac_exeext'
16350
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351
(eval $ac_try) 2>&5
16353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354
(exit $ac_status); }; }; then
16356
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16358
# Check for a 64-bit object if we didn't find anything.
16359
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; }
16362
echo "$as_me: failed program was:" >&5
16363
sed 's/^/| /' conftest.$ac_ext >&5
16366
rm -f conftest.err conftest.$ac_objext \
16367
conftest$ac_exeext conftest.$ac_ext
16368
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16370
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16371
# Warning - without using the other run time loading flags,
16372
# -berok will link without error, but may produce a broken library.
16373
no_undefined_flag_GCJ=' ${wl}-bernotok'
16374
allow_undefined_flag_GCJ=' ${wl}-berok'
16375
# -bexpall does not export symbols beginning with underscore (_)
16376
always_export_symbols_GCJ=yes
16377
# Exported symbols can be pulled into shared objects from archives
16378
whole_archive_flag_spec_GCJ=' '
16379
archive_cmds_need_lc_GCJ=yes
16380
# This is similar to how AIX traditionally builds it's shared libraries.
16381
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'
16387
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)'
16388
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16389
hardcode_minus_L_GCJ=yes
16390
# see comment about different semantics on the GNU ld section
16395
export_dynamic_flag_spec_GCJ=-rdynamic
16398
cygwin* | mingw* | pw32*)
16399
# When not using gcc, we currently assume that we are using
16400
# Microsoft Visual C++.
16401
# hardcode_libdir_flag_spec is actually meaningless, as there is
16402
# no search path for DLLs.
16403
hardcode_libdir_flag_spec_GCJ=' '
16404
allow_undefined_flag_GCJ=unsupported
16405
# Tell ltmain to make .lib files, not .a files.
16407
# Tell ltmain to make .dll files, not .so files.
16409
# FIXME: Setting linknames here is a bad hack.
16410
archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16411
# The linker will automatically build a .lib file if we build a DLL.
16412
old_archive_From_new_cmds_GCJ='true'
16413
# FIXME: Should let the user specify the lib program.
16414
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16415
fix_srcfile_path='`cygpath -w "$srcfile"`'
16416
enable_shared_with_static_runtimes_GCJ=yes
16419
darwin* | rhapsody*)
16420
if test "$GXX" = yes ; then
16421
archive_cmds_need_lc_GCJ=no
16423
rhapsody* | darwin1.[012])
16424
allow_undefined_flag_GCJ='-undefined suppress'
16427
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16428
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16430
case ${MACOSX_DEPLOYMENT_TARGET} in
16432
allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16435
allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16441
lt_int_apple_cc_single_mod=no
16442
output_verbose_link_cmd='echo'
16443
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16444
lt_int_apple_cc_single_mod=yes
16446
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16447
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16449
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'
16451
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16452
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16453
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16454
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}'
16456
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}'
16458
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}'
16459
hardcode_direct_GCJ=no
16460
hardcode_automatic_GCJ=yes
16461
hardcode_shlibpath_var_GCJ=unsupported
16462
whole_archive_flag_spec_GCJ='-all_load $convenience'
16463
link_all_deplibs_GCJ=yes
16470
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16471
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16472
hardcode_shlibpath_var_GCJ=no
16479
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16480
# support. Future versions do this automatically, but an explicit c++rt0.o
16481
# does not break anything, and helps significantly (at the cost of a little
16484
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16485
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16486
hardcode_direct_GCJ=yes
16487
hardcode_shlibpath_var_GCJ=no
16490
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
16492
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16493
hardcode_direct_GCJ=yes
16494
hardcode_minus_L_GCJ=yes
16495
hardcode_shlibpath_var_GCJ=no
16498
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16499
freebsd* | kfreebsd*-gnu)
16500
archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16501
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16502
hardcode_direct_GCJ=yes
16503
hardcode_shlibpath_var_GCJ=no
16507
if test "$GCC" = yes; then
16508
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'
16510
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'
16512
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16513
hardcode_libdir_separator_GCJ=:
16514
hardcode_direct_GCJ=yes
16516
# hardcode_minus_L: Not really in the search PATH,
16517
# but as the default location of the library.
16518
hardcode_minus_L_GCJ=yes
16519
export_dynamic_flag_spec_GCJ='${wl}-E'
16523
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16524
case "$host_cpu" in
16526
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16529
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16533
case "$host_cpu" in
16535
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16538
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16542
if test "$with_gnu_ld" = no; then
16543
case "$host_cpu" in
16545
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16546
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16547
hardcode_libdir_separator_GCJ=:
16548
hardcode_direct_GCJ=no
16549
hardcode_shlibpath_var_GCJ=no
16552
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16553
hardcode_direct_GCJ=no
16554
hardcode_shlibpath_var_GCJ=no
16556
# hardcode_minus_L: Not really in the search PATH,
16557
# but as the default location of the library.
16558
hardcode_minus_L_GCJ=yes
16561
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16562
hardcode_libdir_separator_GCJ=:
16563
hardcode_direct_GCJ=yes
16564
export_dynamic_flag_spec_GCJ='${wl}-E'
16566
# hardcode_minus_L: Not really in the search PATH,
16567
# but as the default location of the library.
16568
hardcode_minus_L_GCJ=yes
16574
irix5* | irix6* | nonstopux*)
16575
if test "$GCC" = yes; then
16576
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'
16578
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'
16579
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16581
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16582
hardcode_libdir_separator_GCJ=:
16583
link_all_deplibs_GCJ=yes
16587
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16588
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16590
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16592
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16593
hardcode_direct_GCJ=yes
16594
hardcode_shlibpath_var_GCJ=no
16598
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599
hardcode_direct_GCJ=yes
16600
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16601
hardcode_libdir_separator_GCJ=:
16602
hardcode_shlibpath_var_GCJ=no
16606
hardcode_direct_GCJ=yes
16607
hardcode_shlibpath_var_GCJ=no
16608
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16609
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16610
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16611
export_dynamic_flag_spec_GCJ='${wl}-E'
16614
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16615
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16616
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16619
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16620
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16627
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16628
hardcode_minus_L_GCJ=yes
16629
allow_undefined_flag_GCJ=unsupported
16630
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'
16631
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16635
if test "$GCC" = yes; then
16636
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16637
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'
16639
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16640
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'
16642
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16643
hardcode_libdir_separator_GCJ=:
16646
osf4* | osf5*) # as osf3* with the addition of -msym flag
16647
if test "$GCC" = yes; then
16648
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16649
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'
16650
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16652
allow_undefined_flag_GCJ=' -expect_unresolved \*'
16653
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'
16654
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~
16655
$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'
16657
# Both c and cxx compiler support -rpath directly
16658
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16660
hardcode_libdir_separator_GCJ=:
16664
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16665
hardcode_shlibpath_var_GCJ=no
16666
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16667
runpath_var=LD_RUN_PATH
16668
hardcode_runpath_var=yes
16672
no_undefined_flag_GCJ=' -z text'
16673
if test "$GCC" = yes; then
16674
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16675
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16676
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16678
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16679
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16680
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16682
hardcode_libdir_flag_spec_GCJ='-R$libdir'
16683
hardcode_shlibpath_var_GCJ=no
16685
solaris2.[0-5] | solaris2.[0-5].*) ;;
16686
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
16687
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16689
link_all_deplibs_GCJ=yes
16693
if test "x$host_vendor" = xsequent; then
16694
# Use $CC to link under sequent, because it throws in some extra .o
16695
# files that make .init and .fini sections work.
16696
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16698
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16700
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16701
hardcode_direct_GCJ=yes
16702
hardcode_minus_L_GCJ=yes
16703
hardcode_shlibpath_var_GCJ=no
16707
case $host_vendor in
16709
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710
hardcode_direct_GCJ=yes # is this really true???
16713
## LD is ld it makes a PLAMLIB
16714
## CC just makes a GrossModule.
16715
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16716
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16717
hardcode_direct_GCJ=no
16720
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16724
runpath_var='LD_RUN_PATH'
16725
hardcode_shlibpath_var_GCJ=no
16729
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730
hardcode_shlibpath_var_GCJ=no
16731
export_dynamic_flag_spec_GCJ='-Bexport'
16735
if test -d /usr/nec; then
16736
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737
hardcode_shlibpath_var_GCJ=no
16738
runpath_var=LD_RUN_PATH
16739
hardcode_runpath_var=yes
16745
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16746
hardcode_direct_GCJ=yes
16747
hardcode_minus_L_GCJ=no
16748
hardcode_shlibpath_var_GCJ=no
16749
hardcode_runpath_var=yes
16750
runpath_var=LD_RUN_PATH
16753
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16754
no_undefined_flag_GCJ='${wl}-z ${wl}text'
16755
if test "$GCC" = yes; then
16756
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16758
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16760
runpath_var='LD_RUN_PATH'
16761
hardcode_shlibpath_var_GCJ=no
16765
no_undefined_flag_GCJ=' -z text'
16766
# $CC -shared without GNU ld will not create a library from C++
16767
# object files and a static libstdc++, better avoid it by now
16768
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16769
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16770
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16771
hardcode_libdir_flag_spec_GCJ=
16772
hardcode_shlibpath_var_GCJ=no
16773
runpath_var='LD_RUN_PATH'
16777
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16778
hardcode_libdir_flag_spec_GCJ='-L$libdir'
16779
hardcode_shlibpath_var_GCJ=no
16788
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16789
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16790
test "$ld_shlibs_GCJ" = no && can_build_shared=no
16792
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16793
if test "$GCC" = yes; then
16794
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16798
# Do we need to explicitly link libc?
16800
case "x$archive_cmds_need_lc_GCJ" in
16802
# Assume -lc should be added
16803
archive_cmds_need_lc_GCJ=yes
16805
if test "$enable_shared" = yes && test "$GCC" = yes; then
16806
case $archive_cmds_GCJ in
16808
# FIXME: we may have to deal with multi-command sequences.
16811
# Test whether the compiler implicitly links with -lc since on some
16812
# systems, -lgcc has to come before -lc. If gcc already passes -lc
16813
# to ld, don't add -lc before -lgcc.
16814
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16815
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16817
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16819
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16820
(eval $ac_compile) 2>&5
16822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823
(exit $ac_status); } 2>conftest.err; then
16826
libobjs=conftest.$ac_objext
16828
wl=$lt_prog_compiler_wl_GCJ
16834
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16835
allow_undefined_flag_GCJ=
16836
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16837
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16839
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840
(exit $ac_status); }
16842
archive_cmds_need_lc_GCJ=no
16844
archive_cmds_need_lc_GCJ=yes
16846
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16848
cat conftest.err 1>&5
16851
echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16852
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16859
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16860
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16861
library_names_spec=
16862
libname_spec='lib$name'
16866
postuninstall_cmds=
16870
shlibpath_overrides_runpath=unknown
16872
dynamic_linker="$host_os ld.so"
16873
sys_lib_dlsearch_path_spec="/lib /usr/lib"
16874
if test "$GCC" = yes; then
16875
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16876
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16877
# if the path contains ";" then we assume it to be the separator
16878
# otherwise default to the standard path separator (i.e. ":") - it is
16879
# assumed that no part of a normal pathname contains ";" but that should
16880
# okay in the real world where ";" in dirpaths is itself problematic.
16881
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16883
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16886
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16888
need_lib_prefix=unknown
16889
hardcode_into_libs=no
16891
# when you set need_version to no, make sure it does not cause -set_version
16892
# flags to be left without arguments
16893
need_version=unknown
16898
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16899
shlibpath_var=LIBPATH
16901
# AIX 3 has no versioning support, so we append a major version to the name.
16902
soname_spec='${libname}${release}${shared_ext}$major'
16909
hardcode_into_libs=yes
16910
if test "$host_cpu" = ia64; then
16911
# AIX 5 supports IA64
16912
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16913
shlibpath_var=LD_LIBRARY_PATH
16915
# With GCC up to 2.95.x, collect2 would create an import file
16916
# for dependence libraries. The import file would start with
16917
# the line `#! .'. This would cause the generated library to
16918
# depend on `.', always an invalid library. This was fixed in
16919
# development snapshots of GCC prior to 3.0.
16921
aix4 | aix4.[01] | aix4.[01].*)
16922
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16924
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16927
can_build_shared=no
16931
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16932
# soname into executable. Probably we can add versioning support to
16933
# collect2, so additional links can be useful in future.
16934
if test "$aix_use_runtimelinking" = yes; then
16935
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
16936
# instead of lib<name>.a to let people know that these are not
16937
# typical AIX shared libraries.
16938
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16940
# We preserve .a as extension for shared libraries through AIX4.2
16941
# and later when we are not doing run time linking.
16942
library_names_spec='${libname}${release}.a $libname.a'
16943
soname_spec='${libname}${release}${shared_ext}$major'
16945
shlibpath_var=LIBPATH
16950
library_names_spec='$libname.ixlibrary $libname.a'
16951
# Create ${libname}_ixlibrary.a entries in /sys/libs.
16952
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'
16956
library_names_spec='${libname}${shared_ext}'
16957
dynamic_linker="$host_os ld.so"
16958
shlibpath_var=LIBRARY_PATH
16964
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965
soname_spec='${libname}${release}${shared_ext}$major'
16966
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16967
shlibpath_var=LD_LIBRARY_PATH
16968
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16969
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16970
# the default ld.so.conf also contains /usr/contrib/lib and
16971
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16972
# libtool to hard-code these into programs
16975
cygwin* | mingw* | pw32*)
16976
version_type=windows
16981
case $GCC,$host_os in
16982
yes,cygwin* | yes,mingw* | yes,pw32*)
16983
library_names_spec='$libname.dll.a'
16984
# DLL is installed to $(libdir)/../bin by postinstall_cmds
16985
postinstall_cmds='base_file=`basename \${file}`~
16986
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16987
dldir=$destdir/`dirname \$dlpath`~
16988
test -d \$dldir || mkdir -p \$dldir~
16989
$install_prog $dir/$dlname \$dldir/$dlname'
16990
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16991
dlpath=$dir/\$dldll~
16993
shlibpath_overrides_runpath=yes
16997
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
16998
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17002
# MinGW DLLs use traditional 'lib' prefix
17003
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17006
# It is most probably a Windows format PATH printed by
17007
# mingw gcc, but we are running on Cygwin. Gcc prints its search
17008
# path with ; separators, and with drive letters. We can handle the
17009
# drive letters (cygwin fileutils understands them), so leave them,
17010
# especially as we might pass files found there to a mingw objdump,
17011
# which wouldn't understand a cygwinified path. Ahh.
17012
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17014
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17018
# pw32 DLLs use 'pw' prefix rather than 'lib'
17019
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17025
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17028
dynamic_linker='Win32 ld.exe'
17029
# FIXME: first we should search . and the directory the executable is in
17033
darwin* | rhapsody*)
17034
dynamic_linker="$host_os dyld"
17035
version_type=darwin
17038
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039
soname_spec='${libname}${release}${major}$shared_ext'
17040
shlibpath_overrides_runpath=yes
17041
shlibpath_var=DYLD_LIBRARY_PATH
17042
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
17043
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17044
if test "$GCC" = yes; then
17045
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"`
17047
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17049
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17057
soname_spec='${libname}${release}${shared_ext}$major'
17058
shlibpath_var=LD_LIBRARY_PATH
17069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17070
soname_spec='${libname}${release}${shared_ext}$major'
17071
shlibpath_var=LD_LIBRARY_PATH
17072
shlibpath_overrides_runpath=no
17073
hardcode_into_libs=yes
17074
dynamic_linker='GNU ld.so'
17078
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17079
version_type=freebsd-$objformat
17080
case $version_type in
17082
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17087
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17091
shlibpath_var=LD_LIBRARY_PATH
17094
shlibpath_overrides_runpath=yes
17096
freebsd3.01* | freebsdelf3.01*)
17097
shlibpath_overrides_runpath=yes
17098
hardcode_into_libs=yes
17101
shlibpath_overrides_runpath=no
17102
hardcode_into_libs=yes
17111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17112
soname_spec='${libname}${release}${shared_ext}$major'
17113
shlibpath_var=LD_LIBRARY_PATH
17114
hardcode_into_libs=yes
17117
hpux9* | hpux10* | hpux11*)
17118
# Give a soname corresponding to the major version so that dld.sl refuses to
17119
# link against other versions.
17123
case "$host_cpu" in
17126
hardcode_into_libs=yes
17127
dynamic_linker="$host_os dld.so"
17128
shlibpath_var=LD_LIBRARY_PATH
17129
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17130
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131
soname_spec='${libname}${release}${shared_ext}$major'
17132
if test "X$HPUX_IA64_MODE" = X32; then
17133
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17135
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17137
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17141
hardcode_into_libs=yes
17142
dynamic_linker="$host_os dld.sl"
17143
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17144
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17145
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146
soname_spec='${libname}${release}${shared_ext}$major'
17147
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17148
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17152
dynamic_linker="$host_os dld.sl"
17153
shlibpath_var=SHLIB_PATH
17154
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156
soname_spec='${libname}${release}${shared_ext}$major'
17159
# HP-UX runs *really* slowly unless shared libraries are mode 555.
17160
postinstall_cmds='chmod 555 $lib'
17163
irix5* | irix6* | nonstopux*)
17165
nonstopux*) version_type=nonstopux ;;
17167
if test "$lt_cv_prog_gnu_ld" = yes; then
17175
soname_spec='${libname}${release}${shared_ext}$major'
17176
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17178
irix5* | nonstopux*)
17179
libsuff= shlibsuff=
17182
case $LD in # libtool.m4 will add one of these switches to LD
17183
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17184
libsuff= shlibsuff= libmagic=32-bit;;
17185
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17186
libsuff=32 shlibsuff=N32 libmagic=N32;;
17187
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17188
libsuff=64 shlibsuff=64 libmagic=64-bit;;
17189
*) libsuff= shlibsuff= libmagic=never-match;;
17193
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17194
shlibpath_overrides_runpath=no
17195
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17196
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17197
hardcode_into_libs=yes
17200
# No shared lib support for Linux oldld, aout, or coff.
17201
linux*oldld* | linux*aout* | linux*coff*)
17205
# This must be Linux ELF.
17210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211
soname_spec='${libname}${release}${shared_ext}$major'
17212
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17213
shlibpath_var=LD_LIBRARY_PATH
17214
shlibpath_overrides_runpath=no
17215
# This implies no fast_install, which is unacceptable.
17216
# Some rework will be needed to allow for fast_install
17217
# before this can be enabled.
17218
hardcode_into_libs=yes
17220
# Append ld.so.conf contents to the search path
17221
if test -f /etc/ld.so.conf; then
17222
ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17223
sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17226
# We used to test for /lib/ld.so.1 and disable shared libraries on
17227
# powerpc, because MkLinux only supported shared libraries with the
17228
# GNU dynamic linker. Since this was broken with cross compilers,
17229
# most powerpc-linux boxes support dynamic linking these days and
17230
# people can always --disable-shared, the test was removed, and we
17231
# assume the GNU/Linux dynamic linker is in use.
17232
dynamic_linker='GNU/Linux ld.so'
17239
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17240
soname_spec='${libname}${release}${shared_ext}$major'
17241
shlibpath_var=LD_LIBRARY_PATH
17242
shlibpath_overrides_runpath=no
17243
hardcode_into_libs=yes
17244
dynamic_linker='GNU ld.so'
17251
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17253
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17254
dynamic_linker='NetBSD (a.out) ld.so'
17256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17257
soname_spec='${libname}${release}${shared_ext}$major'
17258
dynamic_linker='NetBSD ld.elf_so'
17260
shlibpath_var=LD_LIBRARY_PATH
17261
shlibpath_overrides_runpath=yes
17262
hardcode_into_libs=yes
17267
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17268
shlibpath_var=LD_LIBRARY_PATH
17269
shlibpath_overrides_runpath=yes
17276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17277
soname_spec='${libname}${release}${shared_ext}$major'
17278
shlibpath_var=LD_LIBRARY_PATH
17279
shlibpath_overrides_runpath=yes
17286
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17287
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17288
shlibpath_var=LD_LIBRARY_PATH
17289
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17291
openbsd2.[89] | openbsd2.[89].*)
17292
shlibpath_overrides_runpath=no
17295
shlibpath_overrides_runpath=yes
17299
shlibpath_overrides_runpath=yes
17304
libname_spec='$name'
17307
library_names_spec='$libname${shared_ext} $libname.a'
17308
dynamic_linker='OS/2 ld.exe'
17309
shlibpath_var=LIBPATH
17312
osf3* | osf4* | osf5*)
17316
soname_spec='${libname}${release}${shared_ext}$major'
17317
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17318
shlibpath_var=LD_LIBRARY_PATH
17319
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17320
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17325
soname_spec='${libname}${release}${shared_ext}$major'
17326
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17327
shlibpath_var=LD_LIBRARY_PATH
17334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335
soname_spec='${libname}${release}${shared_ext}$major'
17336
shlibpath_var=LD_LIBRARY_PATH
17337
shlibpath_overrides_runpath=yes
17338
hardcode_into_libs=yes
17339
# ldd complains unless libraries are executable
17340
postinstall_cmds='chmod +x $lib'
17345
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17346
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17347
shlibpath_var=LD_LIBRARY_PATH
17348
shlibpath_overrides_runpath=yes
17349
if test "$with_gnu_ld" = yes; then
17355
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17357
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358
soname_spec='${libname}${release}${shared_ext}$major'
17359
shlibpath_var=LD_LIBRARY_PATH
17360
case $host_vendor in
17362
shlibpath_overrides_runpath=no
17364
export_dynamic_flag_spec='${wl}-Blargedynsym'
17365
runpath_var=LD_RUN_PATH
17373
shlibpath_overrides_runpath=no
17374
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17380
if test -d /usr/nec ;then
17382
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17383
soname_spec='$libname${shared_ext}.$major'
17384
shlibpath_var=LD_LIBRARY_PATH
17390
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391
soname_spec='${libname}${release}${shared_ext}$major'
17392
shlibpath_var=LD_LIBRARY_PATH
17399
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17400
echo "${ECHO_T}$dynamic_linker" >&6
17401
test "$dynamic_linker" = no && can_build_shared=no
17403
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17404
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17405
hardcode_action_GCJ=
17406
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17407
test -n "$runpath_var GCJ" || \
17408
test "X$hardcode_automatic_GCJ"="Xyes" ; then
17410
# We can hardcode non-existant directories.
17411
if test "$hardcode_direct_GCJ" != no &&
17412
# If the only mechanism to avoid hardcoding is shlibpath_var, we
17413
# have to relink, otherwise we might link with an installed library
17414
# when we should be linking with a yet-to-be-installed one
17415
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17416
test "$hardcode_minus_L_GCJ" != no; then
17417
# Linking always hardcodes the temporary library directory.
17418
hardcode_action_GCJ=relink
17420
# We can link without hardcoding, and we can hardcode nonexisting dirs.
17421
hardcode_action_GCJ=immediate
17424
# We cannot hardcode anything, or else we can only hardcode existing
17426
hardcode_action_GCJ=unsupported
17428
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17429
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17431
if test "$hardcode_action_GCJ" = relink; then
17432
# Fast installation is not supported
17433
enable_fast_install=no
17434
elif test "$shlibpath_overrides_runpath" = yes ||
17435
test "$enable_shared" = no; then
17436
# Fast installation is not necessary
17437
enable_fast_install=needless
17442
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17443
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17444
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17445
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17446
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17447
echo "$as_me:$LINENO: result: yes" >&5
17448
echo "${ECHO_T}yes" >&6
17450
# FIXME - insert some real tests, host_os isn't really good enough
17453
if test -n "$STRIP" ; then
17454
striplib="$STRIP -x"
17455
echo "$as_me:$LINENO: result: yes" >&5
17456
echo "${ECHO_T}yes" >&6
17458
echo "$as_me:$LINENO: result: no" >&5
17459
echo "${ECHO_T}no" >&6
17463
echo "$as_me:$LINENO: result: no" >&5
17464
echo "${ECHO_T}no" >&6
17469
if test "x$enable_dlopen" != xyes; then
17470
enable_dlopen=unknown
17471
enable_dlopen_self=unknown
17472
enable_dlopen_self_static=unknown
17479
lt_cv_dlopen="load_add_on"
17481
lt_cv_dlopen_self=yes
17485
lt_cv_dlopen="LoadLibrary"
17490
lt_cv_dlopen="dlopen"
17495
# if libdl is installed we need to link against it
17496
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17497
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17498
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17499
echo $ECHO_N "(cached) $ECHO_C" >&6
17501
ac_check_lib_save_LIBS=$LIBS
17503
cat >conftest.$ac_ext <<_ACEOF
17506
cat confdefs.h >>conftest.$ac_ext
17507
cat >>conftest.$ac_ext <<_ACEOF
17508
/* end confdefs.h. */
17510
/* Override any gcc2 internal prototype to avoid an error. */
17514
/* We use char because int might match the return type of a gcc2
17515
builtin and then its argument prototype would still apply. */
17525
rm -f conftest.$ac_objext conftest$ac_exeext
17526
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17527
(eval $ac_link) 2>conftest.er1
17529
grep -v '^ *+' conftest.er1 >conftest.err
17531
cat conftest.err >&5
17532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533
(exit $ac_status); } &&
17534
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17535
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17536
(eval $ac_try) 2>&5
17538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539
(exit $ac_status); }; } &&
17540
{ ac_try='test -s conftest$ac_exeext'
17541
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17542
(eval $ac_try) 2>&5
17544
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545
(exit $ac_status); }; }; then
17546
ac_cv_lib_dl_dlopen=yes
17548
echo "$as_me: failed program was:" >&5
17549
sed 's/^/| /' conftest.$ac_ext >&5
17551
ac_cv_lib_dl_dlopen=no
17553
rm -f conftest.err conftest.$ac_objext \
17554
conftest$ac_exeext conftest.$ac_ext
17555
LIBS=$ac_check_lib_save_LIBS
17557
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17558
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17559
if test $ac_cv_lib_dl_dlopen = yes; then
17560
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17563
lt_cv_dlopen="dyld"
17565
lt_cv_dlopen_self=yes
17572
echo "$as_me:$LINENO: checking for shl_load" >&5
17573
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17574
if test "${ac_cv_func_shl_load+set}" = set; then
17575
echo $ECHO_N "(cached) $ECHO_C" >&6
17577
cat >conftest.$ac_ext <<_ACEOF
17580
cat confdefs.h >>conftest.$ac_ext
17581
cat >>conftest.$ac_ext <<_ACEOF
17582
/* end confdefs.h. */
17583
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17584
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17585
#define shl_load innocuous_shl_load
17587
/* System header to define __stub macros and hopefully few prototypes,
17588
which can conflict with char shl_load (); below.
17589
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17590
<limits.h> exists even on freestanding compilers. */
17593
# include <limits.h>
17595
# include <assert.h>
17600
/* Override any gcc2 internal prototype to avoid an error. */
17605
/* We use char because int might match the return type of a gcc2
17606
builtin and then its argument prototype would still apply. */
17608
/* The GNU C library defines this for functions which it implements
17609
to always fail with ENOSYS. Some functions are actually named
17610
something starting with __ and the normal name is an alias. */
17611
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17614
char (*f) () = shl_load;
17623
return f != shl_load;
17628
rm -f conftest.$ac_objext conftest$ac_exeext
17629
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17630
(eval $ac_link) 2>conftest.er1
17632
grep -v '^ *+' conftest.er1 >conftest.err
17634
cat conftest.err >&5
17635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636
(exit $ac_status); } &&
17637
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17638
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17639
(eval $ac_try) 2>&5
17641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642
(exit $ac_status); }; } &&
17643
{ ac_try='test -s conftest$ac_exeext'
17644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17645
(eval $ac_try) 2>&5
17647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648
(exit $ac_status); }; }; then
17649
ac_cv_func_shl_load=yes
17651
echo "$as_me: failed program was:" >&5
17652
sed 's/^/| /' conftest.$ac_ext >&5
17654
ac_cv_func_shl_load=no
17656
rm -f conftest.err conftest.$ac_objext \
17657
conftest$ac_exeext conftest.$ac_ext
17659
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17660
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17661
if test $ac_cv_func_shl_load = yes; then
17662
lt_cv_dlopen="shl_load"
17664
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17665
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17666
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17667
echo $ECHO_N "(cached) $ECHO_C" >&6
17669
ac_check_lib_save_LIBS=$LIBS
17671
cat >conftest.$ac_ext <<_ACEOF
17674
cat confdefs.h >>conftest.$ac_ext
17675
cat >>conftest.$ac_ext <<_ACEOF
17676
/* end confdefs.h. */
17678
/* Override any gcc2 internal prototype to avoid an error. */
17682
/* We use char because int might match the return type of a gcc2
17683
builtin and then its argument prototype would still apply. */
17693
rm -f conftest.$ac_objext conftest$ac_exeext
17694
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17695
(eval $ac_link) 2>conftest.er1
17697
grep -v '^ *+' conftest.er1 >conftest.err
17699
cat conftest.err >&5
17700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701
(exit $ac_status); } &&
17702
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17703
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704
(eval $ac_try) 2>&5
17706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707
(exit $ac_status); }; } &&
17708
{ ac_try='test -s conftest$ac_exeext'
17709
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710
(eval $ac_try) 2>&5
17712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713
(exit $ac_status); }; }; then
17714
ac_cv_lib_dld_shl_load=yes
17716
echo "$as_me: failed program was:" >&5
17717
sed 's/^/| /' conftest.$ac_ext >&5
17719
ac_cv_lib_dld_shl_load=no
17721
rm -f conftest.err conftest.$ac_objext \
17722
conftest$ac_exeext conftest.$ac_ext
17723
LIBS=$ac_check_lib_save_LIBS
17725
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17726
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17727
if test $ac_cv_lib_dld_shl_load = yes; then
17728
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17730
echo "$as_me:$LINENO: checking for dlopen" >&5
17731
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17732
if test "${ac_cv_func_dlopen+set}" = set; then
17733
echo $ECHO_N "(cached) $ECHO_C" >&6
17735
cat >conftest.$ac_ext <<_ACEOF
17738
cat confdefs.h >>conftest.$ac_ext
17739
cat >>conftest.$ac_ext <<_ACEOF
17740
/* end confdefs.h. */
17741
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17742
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17743
#define dlopen innocuous_dlopen
17745
/* System header to define __stub macros and hopefully few prototypes,
17746
which can conflict with char dlopen (); below.
17747
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17748
<limits.h> exists even on freestanding compilers. */
17751
# include <limits.h>
17753
# include <assert.h>
17758
/* Override any gcc2 internal prototype to avoid an error. */
17763
/* We use char because int might match the return type of a gcc2
17764
builtin and then its argument prototype would still apply. */
17766
/* The GNU C library defines this for functions which it implements
17767
to always fail with ENOSYS. Some functions are actually named
17768
something starting with __ and the normal name is an alias. */
17769
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17772
char (*f) () = dlopen;
17781
return f != dlopen;
17786
rm -f conftest.$ac_objext conftest$ac_exeext
17787
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17788
(eval $ac_link) 2>conftest.er1
17790
grep -v '^ *+' conftest.er1 >conftest.err
17792
cat conftest.err >&5
17793
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794
(exit $ac_status); } &&
17795
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17796
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17797
(eval $ac_try) 2>&5
17799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800
(exit $ac_status); }; } &&
17801
{ ac_try='test -s conftest$ac_exeext'
17802
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17803
(eval $ac_try) 2>&5
17805
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806
(exit $ac_status); }; }; then
17807
ac_cv_func_dlopen=yes
17809
echo "$as_me: failed program was:" >&5
17810
sed 's/^/| /' conftest.$ac_ext >&5
17812
ac_cv_func_dlopen=no
17814
rm -f conftest.err conftest.$ac_objext \
17815
conftest$ac_exeext conftest.$ac_ext
17817
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17818
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17819
if test $ac_cv_func_dlopen = yes; then
17820
lt_cv_dlopen="dlopen"
17822
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17823
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17824
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17825
echo $ECHO_N "(cached) $ECHO_C" >&6
17827
ac_check_lib_save_LIBS=$LIBS
17829
cat >conftest.$ac_ext <<_ACEOF
17832
cat confdefs.h >>conftest.$ac_ext
17833
cat >>conftest.$ac_ext <<_ACEOF
17834
/* end confdefs.h. */
17836
/* Override any gcc2 internal prototype to avoid an error. */
17840
/* We use char because int might match the return type of a gcc2
17841
builtin and then its argument prototype would still apply. */
17851
rm -f conftest.$ac_objext conftest$ac_exeext
17852
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17853
(eval $ac_link) 2>conftest.er1
17855
grep -v '^ *+' conftest.er1 >conftest.err
17857
cat conftest.err >&5
17858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859
(exit $ac_status); } &&
17860
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17861
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862
(eval $ac_try) 2>&5
17864
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865
(exit $ac_status); }; } &&
17866
{ ac_try='test -s conftest$ac_exeext'
17867
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17868
(eval $ac_try) 2>&5
17870
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871
(exit $ac_status); }; }; then
17872
ac_cv_lib_dl_dlopen=yes
17874
echo "$as_me: failed program was:" >&5
17875
sed 's/^/| /' conftest.$ac_ext >&5
17877
ac_cv_lib_dl_dlopen=no
17879
rm -f conftest.err conftest.$ac_objext \
17880
conftest$ac_exeext conftest.$ac_ext
17881
LIBS=$ac_check_lib_save_LIBS
17883
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17884
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17885
if test $ac_cv_lib_dl_dlopen = yes; then
17886
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17888
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17889
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17890
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17891
echo $ECHO_N "(cached) $ECHO_C" >&6
17893
ac_check_lib_save_LIBS=$LIBS
17894
LIBS="-lsvld $LIBS"
17895
cat >conftest.$ac_ext <<_ACEOF
17898
cat confdefs.h >>conftest.$ac_ext
17899
cat >>conftest.$ac_ext <<_ACEOF
17900
/* end confdefs.h. */
17902
/* Override any gcc2 internal prototype to avoid an error. */
17906
/* We use char because int might match the return type of a gcc2
17907
builtin and then its argument prototype would still apply. */
17917
rm -f conftest.$ac_objext conftest$ac_exeext
17918
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17919
(eval $ac_link) 2>conftest.er1
17921
grep -v '^ *+' conftest.er1 >conftest.err
17923
cat conftest.err >&5
17924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925
(exit $ac_status); } &&
17926
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17927
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17928
(eval $ac_try) 2>&5
17930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931
(exit $ac_status); }; } &&
17932
{ ac_try='test -s conftest$ac_exeext'
17933
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17934
(eval $ac_try) 2>&5
17936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17937
(exit $ac_status); }; }; then
17938
ac_cv_lib_svld_dlopen=yes
17940
echo "$as_me: failed program was:" >&5
17941
sed 's/^/| /' conftest.$ac_ext >&5
17943
ac_cv_lib_svld_dlopen=no
17945
rm -f conftest.err conftest.$ac_objext \
17946
conftest$ac_exeext conftest.$ac_ext
17947
LIBS=$ac_check_lib_save_LIBS
17949
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17950
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17951
if test $ac_cv_lib_svld_dlopen = yes; then
17952
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17954
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17955
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17956
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17957
echo $ECHO_N "(cached) $ECHO_C" >&6
17959
ac_check_lib_save_LIBS=$LIBS
17961
cat >conftest.$ac_ext <<_ACEOF
17964
cat confdefs.h >>conftest.$ac_ext
17965
cat >>conftest.$ac_ext <<_ACEOF
17966
/* end confdefs.h. */
17968
/* Override any gcc2 internal prototype to avoid an error. */
17972
/* We use char because int might match the return type of a gcc2
17973
builtin and then its argument prototype would still apply. */
17983
rm -f conftest.$ac_objext conftest$ac_exeext
17984
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17985
(eval $ac_link) 2>conftest.er1
17987
grep -v '^ *+' conftest.er1 >conftest.err
17989
cat conftest.err >&5
17990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991
(exit $ac_status); } &&
17992
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994
(eval $ac_try) 2>&5
17996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997
(exit $ac_status); }; } &&
17998
{ ac_try='test -s conftest$ac_exeext'
17999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000
(eval $ac_try) 2>&5
18002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003
(exit $ac_status); }; }; then
18004
ac_cv_lib_dld_dld_link=yes
18006
echo "$as_me: failed program was:" >&5
18007
sed 's/^/| /' conftest.$ac_ext >&5
18009
ac_cv_lib_dld_dld_link=no
18011
rm -f conftest.err conftest.$ac_objext \
18012
conftest$ac_exeext conftest.$ac_ext
18013
LIBS=$ac_check_lib_save_LIBS
18015
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18016
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18017
if test $ac_cv_lib_dld_dld_link = yes; then
18018
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18039
if test "x$lt_cv_dlopen" != xno; then
18045
case $lt_cv_dlopen in
18047
save_CPPFLAGS="$CPPFLAGS"
18048
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18050
save_LDFLAGS="$LDFLAGS"
18051
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18054
LIBS="$lt_cv_dlopen_libs $LIBS"
18056
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18057
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18058
if test "${lt_cv_dlopen_self+set}" = set; then
18059
echo $ECHO_N "(cached) $ECHO_C" >&6
18061
if test "$cross_compiling" = yes; then :
18062
lt_cv_dlopen_self=cross
18064
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18065
lt_status=$lt_dlunknown
18066
cat > conftest.$ac_ext <<EOF
18067
#line 18067 "configure"
18068
#include "confdefs.h"
18077
# define LT_DLGLOBAL RTLD_GLOBAL
18080
# define LT_DLGLOBAL DL_GLOBAL
18082
# define LT_DLGLOBAL 0
18086
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18087
find out it does not work in some platform. */
18088
#ifndef LT_DLLAZY_OR_NOW
18090
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18093
# define LT_DLLAZY_OR_NOW DL_LAZY
18096
# define LT_DLLAZY_OR_NOW RTLD_NOW
18099
# define LT_DLLAZY_OR_NOW DL_NOW
18101
# define LT_DLLAZY_OR_NOW 0
18109
extern "C" void exit (int);
18112
void fnord() { int i=42;}
18115
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18116
int status = $lt_dlunknown;
18120
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18121
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18122
/* dlclose (self); */
18128
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18129
(eval $ac_link) 2>&5
18131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18133
(./conftest; exit; ) 2>/dev/null
18135
case x$lt_status in
18136
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18137
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18138
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18141
# compilation failed
18142
lt_cv_dlopen_self=no
18149
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18150
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18152
if test "x$lt_cv_dlopen_self" = xyes; then
18153
LDFLAGS="$LDFLAGS $link_static_flag"
18154
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18155
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18156
if test "${lt_cv_dlopen_self_static+set}" = set; then
18157
echo $ECHO_N "(cached) $ECHO_C" >&6
18159
if test "$cross_compiling" = yes; then :
18160
lt_cv_dlopen_self_static=cross
18162
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18163
lt_status=$lt_dlunknown
18164
cat > conftest.$ac_ext <<EOF
18165
#line 18165 "configure"
18166
#include "confdefs.h"
18175
# define LT_DLGLOBAL RTLD_GLOBAL
18178
# define LT_DLGLOBAL DL_GLOBAL
18180
# define LT_DLGLOBAL 0
18184
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18185
find out it does not work in some platform. */
18186
#ifndef LT_DLLAZY_OR_NOW
18188
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18191
# define LT_DLLAZY_OR_NOW DL_LAZY
18194
# define LT_DLLAZY_OR_NOW RTLD_NOW
18197
# define LT_DLLAZY_OR_NOW DL_NOW
18199
# define LT_DLLAZY_OR_NOW 0
18207
extern "C" void exit (int);
18210
void fnord() { int i=42;}
18213
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18214
int status = $lt_dlunknown;
18218
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18219
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18220
/* dlclose (self); */
18226
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18227
(eval $ac_link) 2>&5
18229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18231
(./conftest; exit; ) 2>/dev/null
18233
case x$lt_status in
18234
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18235
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18236
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18239
# compilation failed
18240
lt_cv_dlopen_self_static=no
18247
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18248
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18251
CPPFLAGS="$save_CPPFLAGS"
18252
LDFLAGS="$save_LDFLAGS"
18257
case $lt_cv_dlopen_self in
18258
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18259
*) enable_dlopen_self=unknown ;;
18262
case $lt_cv_dlopen_self_static in
18263
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18264
*) enable_dlopen_self_static=unknown ;;
18269
# The else clause should only fire when bootstrapping the
18270
# libtool distribution, otherwise you forgot to ship ltmain.sh
18271
# with your package, and you will get complaints that there are
18272
# no rules to generate ltmain.sh.
18273
if test -f "$ltmain"; then
18274
# See if we are running on zsh, and set the options which allow our commands through
18275
# without removal of \ escapes.
18276
if test -n "${ZSH_VERSION+set}" ; then
18277
setopt NO_GLOB_SUBST
18279
# Now quote all the things that may contain metacharacters while being
18280
# careful not to overquote the AC_SUBSTed values. We take copies of the
18281
# variables and quote the copies for generation of the libtool script.
18282
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18284
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18285
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18286
deplibs_check_method reload_flag reload_cmds need_locks \
18287
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18288
lt_cv_sys_global_symbol_to_c_name_address \
18289
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18290
old_postinstall_cmds old_postuninstall_cmds \
18294
lt_prog_compiler_wl_GCJ \
18295
lt_prog_compiler_pic_GCJ \
18296
lt_prog_compiler_static_GCJ \
18297
lt_prog_compiler_no_builtin_flag_GCJ \
18298
export_dynamic_flag_spec_GCJ \
18299
thread_safe_flag_spec_GCJ \
18300
whole_archive_flag_spec_GCJ \
18301
enable_shared_with_static_runtimes_GCJ \
18302
old_archive_cmds_GCJ \
18303
old_archive_from_new_cmds_GCJ \
18304
predep_objects_GCJ \
18305
postdep_objects_GCJ \
18308
compiler_lib_search_path_GCJ \
18310
archive_expsym_cmds_GCJ \
18311
postinstall_cmds_GCJ \
18312
postuninstall_cmds_GCJ \
18313
old_archive_from_expsyms_cmds_GCJ \
18314
allow_undefined_flag_GCJ \
18315
no_undefined_flag_GCJ \
18316
export_symbols_cmds_GCJ \
18317
hardcode_libdir_flag_spec_GCJ \
18318
hardcode_libdir_flag_spec_ld_GCJ \
18319
hardcode_libdir_separator_GCJ \
18320
hardcode_automatic_GCJ \
18322
module_expsym_cmds_GCJ \
18323
lt_cv_prog_compiler_c_o_GCJ \
18324
exclude_expsyms_GCJ \
18325
include_expsyms_GCJ; do
18328
old_archive_cmds_GCJ | \
18329
old_archive_from_new_cmds_GCJ | \
18330
archive_cmds_GCJ | \
18331
archive_expsym_cmds_GCJ | \
18332
module_cmds_GCJ | \
18333
module_expsym_cmds_GCJ | \
18334
old_archive_from_expsyms_cmds_GCJ | \
18335
export_symbols_cmds_GCJ | \
18336
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18337
postinstall_cmds | postuninstall_cmds | \
18338
old_postinstall_cmds | old_postuninstall_cmds | \
18339
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18340
# Double-quote double-evaled strings.
18341
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18344
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18350
*'\$0 --fallback-echo"')
18351
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18357
cat <<__EOF__ >> "$cfgfile"
18358
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18360
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18362
# Shell to use when invoking shell scripts.
18365
# Whether or not to build shared libraries.
18366
build_libtool_libs=$enable_shared
18368
# Whether or not to build static libraries.
18369
build_old_libs=$enable_static
18371
# Whether or not to add -lc for building shared libraries.
18372
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18374
# Whether or not to disallow shared libs when runtime libs are static
18375
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18377
# Whether or not to optimize for fast installation.
18378
fast_install=$enable_fast_install
18381
host_alias=$host_alias
18384
# An echo program that does not interpret backslashes.
18389
AR_FLAGS=$lt_AR_FLAGS
18394
# A language-specific compiler.
18395
CC=$lt_compiler_GCJ
18397
# Is the compiler the GNU C compiler?
18403
# The linker used to build libraries.
18406
# Whether we need hard or soft links.
18409
# A BSD-compatible nm program.
18412
# A symbol stripping program
18415
# Used to examine libraries when file_magic_cmd begins "file"
18416
MAGIC_CMD=$MAGIC_CMD
18418
# Used on cygwin: DLL creation program.
18421
# Used on cygwin: object dumper.
18424
# Used on cygwin: assembler.
18427
# The name of the directory that contains temporary libtool files.
18430
# How to create reloadable object files.
18431
reload_flag=$lt_reload_flag
18432
reload_cmds=$lt_reload_cmds
18434
# How to pass a linker flag through the compiler.
18435
wl=$lt_lt_prog_compiler_wl_GCJ
18437
# Object file suffix (normally "o").
18438
objext="$ac_objext"
18440
# Old archive suffix (normally "a").
18443
# Shared library suffix (normally ".so").
18446
# Executable file suffix (normally "").
18449
# Additional compiler flags for building library objects.
18450
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18453
# What is the maximum length of a command?
18454
max_cmd_len=$lt_cv_sys_max_cmd_len
18456
# Does compiler simultaneously support -c and -o options?
18457
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18459
# Must we lock files when doing compilation ?
18460
need_locks=$lt_need_locks
18462
# Do we need the lib prefix for modules?
18463
need_lib_prefix=$need_lib_prefix
18465
# Do we need a version for libraries?
18466
need_version=$need_version
18468
# Whether dlopen is supported.
18469
dlopen_support=$enable_dlopen
18471
# Whether dlopen of programs is supported.
18472
dlopen_self=$enable_dlopen_self
18474
# Whether dlopen of statically linked programs is supported.
18475
dlopen_self_static=$enable_dlopen_self_static
18477
# Compiler flag to prevent dynamic linking.
18478
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18480
# Compiler flag to turn off builtin functions.
18481
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18483
# Compiler flag to allow reflexive dlopens.
18484
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18486
# Compiler flag to generate shared objects directly from archives.
18487
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18489
# Compiler flag to generate thread-safe objects.
18490
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18492
# Library versioning type.
18493
version_type=$version_type
18495
# Format of library name prefix.
18496
libname_spec=$lt_libname_spec
18498
# List of archive names. First name is the real one, the rest are links.
18499
# The last name is the one that the linker finds with -lNAME.
18500
library_names_spec=$lt_library_names_spec
18502
# The coded name of the library, if different from the real name.
18503
soname_spec=$lt_soname_spec
18505
# Commands used to build and install an old-style archive.
18507
old_archive_cmds=$lt_old_archive_cmds_GCJ
18508
old_postinstall_cmds=$lt_old_postinstall_cmds
18509
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18511
# Create an old-style archive from a shared archive.
18512
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18514
# Create a temporary old-style archive to link instead of a shared archive.
18515
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18517
# Commands used to build and install a shared archive.
18518
archive_cmds=$lt_archive_cmds_GCJ
18519
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18520
postinstall_cmds=$lt_postinstall_cmds
18521
postuninstall_cmds=$lt_postuninstall_cmds
18523
# Commands used to build a loadable module (assumed same as above if empty)
18524
module_cmds=$lt_module_cmds_GCJ
18525
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18527
# Commands to strip libraries.
18528
old_striplib=$lt_old_striplib
18529
striplib=$lt_striplib
18531
# Dependencies to place before the objects being linked to create a
18533
predep_objects=$lt_predep_objects_GCJ
18535
# Dependencies to place after the objects being linked to create a
18537
postdep_objects=$lt_postdep_objects_GCJ
18539
# Dependencies to place before the objects being linked to create a
18541
predeps=$lt_predeps_GCJ
18543
# Dependencies to place after the objects being linked to create a
18545
postdeps=$lt_postdeps_GCJ
18547
# The library search path used internally by the compiler when linking
18548
# a shared library.
18549
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18551
# Method to check whether dependent libraries are shared objects.
18552
deplibs_check_method=$lt_deplibs_check_method
18554
# Command to use when deplibs_check_method == file_magic.
18555
file_magic_cmd=$lt_file_magic_cmd
18557
# Flag that allows shared libraries with undefined symbols to be built.
18558
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18560
# Flag that forces no undefined symbols.
18561
no_undefined_flag=$lt_no_undefined_flag_GCJ
18563
# Commands used to finish a libtool library installation in a directory.
18564
finish_cmds=$lt_finish_cmds
18566
# Same as above, but a single script fragment to be evaled but not shown.
18567
finish_eval=$lt_finish_eval
18569
# Take the output of nm and produce a listing of raw symbols and C names.
18570
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18572
# Transform the output of nm in a proper C declaration
18573
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18575
# Transform the output of nm in a C name address pair
18576
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18578
# This is the shared library runtime path variable.
18579
runpath_var=$runpath_var
18581
# This is the shared library path variable.
18582
shlibpath_var=$shlibpath_var
18584
# Is shlibpath searched before the hard-coded library search path?
18585
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18587
# How to hardcode a shared library path into an executable.
18588
hardcode_action=$hardcode_action_GCJ
18590
# Whether we should hardcode library paths into libraries.
18591
hardcode_into_libs=$hardcode_into_libs
18593
# Flag to hardcode \$libdir into a binary during linking.
18594
# This must work even if \$libdir does not exist.
18595
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18597
# If ld is used when linking, flag to hardcode \$libdir into
18598
# a binary during linking. This must work even if \$libdir does
18600
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18602
# Whether we need a single -rpath flag with a separated argument.
18603
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18605
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18606
# resulting binary.
18607
hardcode_direct=$hardcode_direct_GCJ
18609
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18610
# resulting binary.
18611
hardcode_minus_L=$hardcode_minus_L_GCJ
18613
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18614
# the resulting binary.
18615
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18617
# Set to yes if building a shared library automatically hardcodes DIR into the library
18618
# and all subsequent libraries and executables linked against it.
18619
hardcode_automatic=$hardcode_automatic_GCJ
18621
# Variables whose values should be saved in libtool wrapper scripts and
18622
# restored at relink time.
18623
variables_saved_for_relink="$variables_saved_for_relink"
18625
# Whether libtool must link a program against all its dependency libraries.
18626
link_all_deplibs=$link_all_deplibs_GCJ
18628
# Compile-time system search path for libraries
18629
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18631
# Run-time system search path for libraries
18632
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18634
# Fix the shell variable \$srcfile for the compiler.
18635
fix_srcfile_path="$fix_srcfile_path_GCJ"
18637
# Set to yes if exported symbols are required.
18638
always_export_symbols=$always_export_symbols_GCJ
18640
# The commands to list exported symbols.
18641
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18643
# The commands to extract the exported symbol list from a shared archive.
18644
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18646
# Symbols that should not be listed in the preloaded symbols.
18647
exclude_expsyms=$lt_exclude_expsyms_GCJ
18649
# Symbols that must always be exported.
18650
include_expsyms=$lt_include_expsyms_GCJ
18652
# ### END LIBTOOL TAG CONFIG: $tagname
18658
# If there is no Makefile yet, we rely on a make rule to execute
18659
# `config.status --recheck' to rerun these tests and create the
18660
# libtool script then.
18661
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18662
if test -f "$ltmain_in"; then
18663
test -f Makefile && make "$ltmain"
18669
ac_cpp='$CPP $CPPFLAGS'
18670
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18671
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18672
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18685
# Source file extension for RC test sources.
18688
# Object file extension for compiled RC test sources.
18692
# Code to be used in simple compile tests
18693
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18695
# Code to be used in simple link tests
18696
lt_simple_link_test_code="$lt_simple_compile_test_code"
18698
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18700
# If no C compiler was specified, use CC.
18703
# Allow CC to be a program name with arguments.
18707
# Allow CC to be a program name with arguments.
18712
lt_cv_prog_compiler_c_o_RC=yes
18714
# The else clause should only fire when bootstrapping the
18715
# libtool distribution, otherwise you forgot to ship ltmain.sh
18716
# with your package, and you will get complaints that there are
18717
# no rules to generate ltmain.sh.
18718
if test -f "$ltmain"; then
18719
# See if we are running on zsh, and set the options which allow our commands through
18720
# without removal of \ escapes.
18721
if test -n "${ZSH_VERSION+set}" ; then
18722
setopt NO_GLOB_SUBST
18724
# Now quote all the things that may contain metacharacters while being
18725
# careful not to overquote the AC_SUBSTed values. We take copies of the
18726
# variables and quote the copies for generation of the libtool script.
18727
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18729
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18730
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18731
deplibs_check_method reload_flag reload_cmds need_locks \
18732
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18733
lt_cv_sys_global_symbol_to_c_name_address \
18734
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18735
old_postinstall_cmds old_postuninstall_cmds \
18739
lt_prog_compiler_wl_RC \
18740
lt_prog_compiler_pic_RC \
18741
lt_prog_compiler_static_RC \
18742
lt_prog_compiler_no_builtin_flag_RC \
18743
export_dynamic_flag_spec_RC \
18744
thread_safe_flag_spec_RC \
18745
whole_archive_flag_spec_RC \
18746
enable_shared_with_static_runtimes_RC \
18747
old_archive_cmds_RC \
18748
old_archive_from_new_cmds_RC \
18749
predep_objects_RC \
18750
postdep_objects_RC \
18753
compiler_lib_search_path_RC \
18755
archive_expsym_cmds_RC \
18756
postinstall_cmds_RC \
18757
postuninstall_cmds_RC \
18758
old_archive_from_expsyms_cmds_RC \
18759
allow_undefined_flag_RC \
18760
no_undefined_flag_RC \
18761
export_symbols_cmds_RC \
18762
hardcode_libdir_flag_spec_RC \
18763
hardcode_libdir_flag_spec_ld_RC \
18764
hardcode_libdir_separator_RC \
18765
hardcode_automatic_RC \
18767
module_expsym_cmds_RC \
18768
lt_cv_prog_compiler_c_o_RC \
18769
exclude_expsyms_RC \
18770
include_expsyms_RC; do
18773
old_archive_cmds_RC | \
18774
old_archive_from_new_cmds_RC | \
18775
archive_cmds_RC | \
18776
archive_expsym_cmds_RC | \
18778
module_expsym_cmds_RC | \
18779
old_archive_from_expsyms_cmds_RC | \
18780
export_symbols_cmds_RC | \
18781
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18782
postinstall_cmds | postuninstall_cmds | \
18783
old_postinstall_cmds | old_postuninstall_cmds | \
18784
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18785
# Double-quote double-evaled strings.
18786
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18789
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18795
*'\$0 --fallback-echo"')
18796
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18802
cat <<__EOF__ >> "$cfgfile"
18803
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18805
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18807
# Shell to use when invoking shell scripts.
18810
# Whether or not to build shared libraries.
18811
build_libtool_libs=$enable_shared
18813
# Whether or not to build static libraries.
18814
build_old_libs=$enable_static
18816
# Whether or not to add -lc for building shared libraries.
18817
build_libtool_need_lc=$archive_cmds_need_lc_RC
18819
# Whether or not to disallow shared libs when runtime libs are static
18820
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18822
# Whether or not to optimize for fast installation.
18823
fast_install=$enable_fast_install
18826
host_alias=$host_alias
18829
# An echo program that does not interpret backslashes.
18834
AR_FLAGS=$lt_AR_FLAGS
18839
# A language-specific compiler.
18842
# Is the compiler the GNU C compiler?
18848
# The linker used to build libraries.
18851
# Whether we need hard or soft links.
18854
# A BSD-compatible nm program.
18857
# A symbol stripping program
18860
# Used to examine libraries when file_magic_cmd begins "file"
18861
MAGIC_CMD=$MAGIC_CMD
18863
# Used on cygwin: DLL creation program.
18866
# Used on cygwin: object dumper.
18869
# Used on cygwin: assembler.
18872
# The name of the directory that contains temporary libtool files.
18875
# How to create reloadable object files.
18876
reload_flag=$lt_reload_flag
18877
reload_cmds=$lt_reload_cmds
18879
# How to pass a linker flag through the compiler.
18880
wl=$lt_lt_prog_compiler_wl_RC
18882
# Object file suffix (normally "o").
18883
objext="$ac_objext"
18885
# Old archive suffix (normally "a").
18888
# Shared library suffix (normally ".so").
18891
# Executable file suffix (normally "").
18894
# Additional compiler flags for building library objects.
18895
pic_flag=$lt_lt_prog_compiler_pic_RC
18898
# What is the maximum length of a command?
18899
max_cmd_len=$lt_cv_sys_max_cmd_len
18901
# Does compiler simultaneously support -c and -o options?
18902
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18904
# Must we lock files when doing compilation ?
18905
need_locks=$lt_need_locks
18907
# Do we need the lib prefix for modules?
18908
need_lib_prefix=$need_lib_prefix
18910
# Do we need a version for libraries?
18911
need_version=$need_version
18913
# Whether dlopen is supported.
18914
dlopen_support=$enable_dlopen
18916
# Whether dlopen of programs is supported.
18917
dlopen_self=$enable_dlopen_self
18919
# Whether dlopen of statically linked programs is supported.
18920
dlopen_self_static=$enable_dlopen_self_static
18922
# Compiler flag to prevent dynamic linking.
18923
link_static_flag=$lt_lt_prog_compiler_static_RC
18925
# Compiler flag to turn off builtin functions.
18926
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18928
# Compiler flag to allow reflexive dlopens.
18929
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18931
# Compiler flag to generate shared objects directly from archives.
18932
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18934
# Compiler flag to generate thread-safe objects.
18935
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18937
# Library versioning type.
18938
version_type=$version_type
18940
# Format of library name prefix.
18941
libname_spec=$lt_libname_spec
18943
# List of archive names. First name is the real one, the rest are links.
18944
# The last name is the one that the linker finds with -lNAME.
18945
library_names_spec=$lt_library_names_spec
18947
# The coded name of the library, if different from the real name.
18948
soname_spec=$lt_soname_spec
18950
# Commands used to build and install an old-style archive.
18952
old_archive_cmds=$lt_old_archive_cmds_RC
18953
old_postinstall_cmds=$lt_old_postinstall_cmds
18954
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18956
# Create an old-style archive from a shared archive.
18957
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18959
# Create a temporary old-style archive to link instead of a shared archive.
18960
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18962
# Commands used to build and install a shared archive.
18963
archive_cmds=$lt_archive_cmds_RC
18964
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18965
postinstall_cmds=$lt_postinstall_cmds
18966
postuninstall_cmds=$lt_postuninstall_cmds
18968
# Commands used to build a loadable module (assumed same as above if empty)
18969
module_cmds=$lt_module_cmds_RC
18970
module_expsym_cmds=$lt_module_expsym_cmds_RC
18972
# Commands to strip libraries.
18973
old_striplib=$lt_old_striplib
18974
striplib=$lt_striplib
18976
# Dependencies to place before the objects being linked to create a
18978
predep_objects=$lt_predep_objects_RC
18980
# Dependencies to place after the objects being linked to create a
18982
postdep_objects=$lt_postdep_objects_RC
18984
# Dependencies to place before the objects being linked to create a
18986
predeps=$lt_predeps_RC
18988
# Dependencies to place after the objects being linked to create a
18990
postdeps=$lt_postdeps_RC
18992
# The library search path used internally by the compiler when linking
18993
# a shared library.
18994
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18996
# Method to check whether dependent libraries are shared objects.
18997
deplibs_check_method=$lt_deplibs_check_method
18999
# Command to use when deplibs_check_method == file_magic.
19000
file_magic_cmd=$lt_file_magic_cmd
19002
# Flag that allows shared libraries with undefined symbols to be built.
19003
allow_undefined_flag=$lt_allow_undefined_flag_RC
19005
# Flag that forces no undefined symbols.
19006
no_undefined_flag=$lt_no_undefined_flag_RC
19008
# Commands used to finish a libtool library installation in a directory.
19009
finish_cmds=$lt_finish_cmds
19011
# Same as above, but a single script fragment to be evaled but not shown.
19012
finish_eval=$lt_finish_eval
19014
# Take the output of nm and produce a listing of raw symbols and C names.
19015
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19017
# Transform the output of nm in a proper C declaration
19018
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19020
# Transform the output of nm in a C name address pair
19021
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19023
# This is the shared library runtime path variable.
19024
runpath_var=$runpath_var
19026
# This is the shared library path variable.
19027
shlibpath_var=$shlibpath_var
19029
# Is shlibpath searched before the hard-coded library search path?
19030
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19032
# How to hardcode a shared library path into an executable.
19033
hardcode_action=$hardcode_action_RC
19035
# Whether we should hardcode library paths into libraries.
19036
hardcode_into_libs=$hardcode_into_libs
19038
# Flag to hardcode \$libdir into a binary during linking.
19039
# This must work even if \$libdir does not exist.
19040
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19042
# If ld is used when linking, flag to hardcode \$libdir into
19043
# a binary during linking. This must work even if \$libdir does
19045
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19047
# Whether we need a single -rpath flag with a separated argument.
19048
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19050
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19051
# resulting binary.
19052
hardcode_direct=$hardcode_direct_RC
19054
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19055
# resulting binary.
19056
hardcode_minus_L=$hardcode_minus_L_RC
19058
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19059
# the resulting binary.
19060
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19062
# Set to yes if building a shared library automatically hardcodes DIR into the library
19063
# and all subsequent libraries and executables linked against it.
19064
hardcode_automatic=$hardcode_automatic_RC
19066
# Variables whose values should be saved in libtool wrapper scripts and
19067
# restored at relink time.
19068
variables_saved_for_relink="$variables_saved_for_relink"
19070
# Whether libtool must link a program against all its dependency libraries.
19071
link_all_deplibs=$link_all_deplibs_RC
19073
# Compile-time system search path for libraries
19074
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19076
# Run-time system search path for libraries
19077
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19079
# Fix the shell variable \$srcfile for the compiler.
19080
fix_srcfile_path="$fix_srcfile_path_RC"
19082
# Set to yes if exported symbols are required.
19083
always_export_symbols=$always_export_symbols_RC
19085
# The commands to list exported symbols.
19086
export_symbols_cmds=$lt_export_symbols_cmds_RC
19088
# The commands to extract the exported symbol list from a shared archive.
19089
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19091
# Symbols that should not be listed in the preloaded symbols.
19092
exclude_expsyms=$lt_exclude_expsyms_RC
19094
# Symbols that must always be exported.
19095
include_expsyms=$lt_include_expsyms_RC
19097
# ### END LIBTOOL TAG CONFIG: $tagname
19103
# If there is no Makefile yet, we rely on a make rule to execute
19104
# `config.status --recheck' to rerun these tests and create the
19105
# libtool script then.
19106
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19107
if test -f "$ltmain_in"; then
19108
test -f Makefile && make "$ltmain"
19114
ac_cpp='$CPP $CPPFLAGS'
19115
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19116
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19117
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19124
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19125
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19126
{ (exit 1); exit 1; }; }
19130
# Append the new tag name to the list of available tags.
19131
if test -n "$tagname" ; then
19132
available_tags="$available_tags $tagname"
19138
# Now substitute the updated list of available tags.
19139
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19140
mv "${ofile}T" "$ofile"
19144
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19145
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19146
{ (exit 1); exit 1; }; }
19152
# This can be used to rebuild libtool when needed
19153
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19155
# Always use our own libtool.
19156
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19158
# Prevent multiple expansion
19180
test "x$PERL" = x && # Extract the first word of "perl$EXEEXT", so it can be a program name with args.
19181
set dummy perl$EXEEXT; ac_word=$2
19182
echo "$as_me:$LINENO: checking for $ac_word" >&5
19183
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19184
if test "${ac_cv_path_PERL+set}" = set; then
19185
echo $ECHO_N "(cached) $ECHO_C" >&6
19189
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19192
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19193
for as_dir in $PATH
19196
test -z "$as_dir" && as_dir=.
19197
for ac_exec_ext in '' $ac_executable_extensions; do
19198
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19199
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19200
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19206
test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl$EXEEXT"
19210
PERL=$ac_cv_path_PERL
19212
if test -n "$PERL"; then
19213
echo "$as_me:$LINENO: result: $PERL" >&5
19214
echo "${ECHO_T}$PERL" >&6
19216
echo "$as_me:$LINENO: result: no" >&5
19217
echo "${ECHO_T}no" >&6
19220
test "x$PERL" = x && { { echo "$as_me:$LINENO: error: no acceptable Perl found in \$PATH" >&5
19221
echo "$as_me: error: no acceptable Perl found in \$PATH" >&2;}
19222
{ (exit 1); exit 1; }; }
19225
test x$GREP = x && # Extract the first word of "grep$EXEEXT", so it can be a program name with args.
19226
set dummy grep$EXEEXT; ac_word=$2
19227
echo "$as_me:$LINENO: checking for $ac_word" >&5
19228
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19229
if test "${ac_cv_path_GREP+set}" = set; then
19230
echo $ECHO_N "(cached) $ECHO_C" >&6
19234
ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19238
for as_dir in $PATH
19241
test -z "$as_dir" && as_dir=.
19242
for ac_exec_ext in '' $ac_executable_extensions; do
19243
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19244
ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19245
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19251
test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep$EXEEXT"
19255
GREP=$ac_cv_path_GREP
19257
if test -n "$GREP"; then
19258
echo "$as_me:$LINENO: result: $GREP" >&5
19259
echo "${ECHO_T}$GREP" >&6
19261
echo "$as_me:$LINENO: result: no" >&5
19262
echo "${ECHO_T}no" >&6
19265
test x$GREP = x && { { echo "$as_me:$LINENO: error: no acceptable grep found in \$PATH" >&5
19266
echo "$as_me: error: no acceptable grep found in \$PATH" >&2;}
19267
{ (exit 1); exit 1; }; }
19270
test x$PS = x && # Extract the first word of "ps$EXEEXT", so it can be a program name with args.
19271
set dummy ps$EXEEXT; ac_word=$2
19272
echo "$as_me:$LINENO: checking for $ac_word" >&5
19273
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19274
if test "${ac_cv_path_PS+set}" = set; then
19275
echo $ECHO_N "(cached) $ECHO_C" >&6
19279
ac_cv_path_PS="$PS" # Let the user override the test with a path.
19282
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19283
for as_dir in $PATH
19286
test -z "$as_dir" && as_dir=.
19287
for ac_exec_ext in '' $ac_executable_extensions; do
19288
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19289
ac_cv_path_PS="$as_dir/$ac_word$ac_exec_ext"
19290
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19296
test -z "$ac_cv_path_PS" && ac_cv_path_PS="ps$EXEEXT"
19302
if test -n "$PS"; then
19303
echo "$as_me:$LINENO: result: $PS" >&5
19304
echo "${ECHO_T}$PS" >&6
19306
echo "$as_me:$LINENO: result: no" >&5
19307
echo "${ECHO_T}no" >&6
19310
test x$PS = x && { { echo "$as_me:$LINENO: error: no acceptable ps found in \$PATH" >&5
19311
echo "$as_me: error: no acceptable ps found in \$PATH" >&2;}
19312
{ (exit 1); exit 1; }; }
19317
echo "$as_me:$LINENO: checking for main in -labs" >&5
19318
echo $ECHO_N "checking for main in -labs... $ECHO_C" >&6
19319
if test "${ac_cv_lib_abs_main+set}" = set; then
19320
echo $ECHO_N "(cached) $ECHO_C" >&6
19322
ac_check_lib_save_LIBS=$LIBS
19324
cat >conftest.$ac_ext <<_ACEOF
19327
cat confdefs.h >>conftest.$ac_ext
19328
cat >>conftest.$ac_ext <<_ACEOF
19329
/* end confdefs.h. */
19340
rm -f conftest.$ac_objext conftest$ac_exeext
19341
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19342
(eval $ac_link) 2>conftest.er1
19344
grep -v '^ *+' conftest.er1 >conftest.err
19346
cat conftest.err >&5
19347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348
(exit $ac_status); } &&
19349
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19350
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19351
(eval $ac_try) 2>&5
19353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354
(exit $ac_status); }; } &&
19355
{ ac_try='test -s conftest$ac_exeext'
19356
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357
(eval $ac_try) 2>&5
19359
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360
(exit $ac_status); }; }; then
19361
ac_cv_lib_abs_main=yes
19363
echo "$as_me: failed program was:" >&5
19364
sed 's/^/| /' conftest.$ac_ext >&5
19366
ac_cv_lib_abs_main=no
19368
rm -f conftest.err conftest.$ac_objext \
19369
conftest$ac_exeext conftest.$ac_ext
19370
LIBS=$ac_check_lib_save_LIBS
19372
echo "$as_me:$LINENO: result: $ac_cv_lib_abs_main" >&5
19373
echo "${ECHO_T}$ac_cv_lib_abs_main" >&6
19374
if test $ac_cv_lib_abs_main = yes; then
19375
cat >>confdefs.h <<_ACEOF
19376
#define HAVE_LIBABS 1
19384
echo "$as_me:$LINENO: checking for main in -laudit" >&5
19385
echo $ECHO_N "checking for main in -laudit... $ECHO_C" >&6
19386
if test "${ac_cv_lib_audit_main+set}" = set; then
19387
echo $ECHO_N "(cached) $ECHO_C" >&6
19389
ac_check_lib_save_LIBS=$LIBS
19390
LIBS="-laudit $LIBS"
19391
cat >conftest.$ac_ext <<_ACEOF
19394
cat confdefs.h >>conftest.$ac_ext
19395
cat >>conftest.$ac_ext <<_ACEOF
19396
/* end confdefs.h. */
19407
rm -f conftest.$ac_objext conftest$ac_exeext
19408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409
(eval $ac_link) 2>conftest.er1
19411
grep -v '^ *+' conftest.er1 >conftest.err
19413
cat conftest.err >&5
19414
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415
(exit $ac_status); } &&
19416
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19417
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418
(eval $ac_try) 2>&5
19420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421
(exit $ac_status); }; } &&
19422
{ ac_try='test -s conftest$ac_exeext'
19423
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424
(eval $ac_try) 2>&5
19426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427
(exit $ac_status); }; }; then
19428
ac_cv_lib_audit_main=yes
19430
echo "$as_me: failed program was:" >&5
19431
sed 's/^/| /' conftest.$ac_ext >&5
19433
ac_cv_lib_audit_main=no
19435
rm -f conftest.err conftest.$ac_objext \
19436
conftest$ac_exeext conftest.$ac_ext
19437
LIBS=$ac_check_lib_save_LIBS
19439
echo "$as_me:$LINENO: result: $ac_cv_lib_audit_main" >&5
19440
echo "${ECHO_T}$ac_cv_lib_audit_main" >&6
19441
if test $ac_cv_lib_audit_main = yes; then
19442
cat >>confdefs.h <<_ACEOF
19443
#define HAVE_LIBAUDIT 1
19446
LIBS="-laudit $LIBS"
19451
echo "$as_me:$LINENO: checking for main in -lauth" >&5
19452
echo $ECHO_N "checking for main in -lauth... $ECHO_C" >&6
19453
if test "${ac_cv_lib_auth_main+set}" = set; then
19454
echo $ECHO_N "(cached) $ECHO_C" >&6
19456
ac_check_lib_save_LIBS=$LIBS
19457
LIBS="-lauth $LIBS"
19458
cat >conftest.$ac_ext <<_ACEOF
19461
cat confdefs.h >>conftest.$ac_ext
19462
cat >>conftest.$ac_ext <<_ACEOF
19463
/* end confdefs.h. */
19474
rm -f conftest.$ac_objext conftest$ac_exeext
19475
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476
(eval $ac_link) 2>conftest.er1
19478
grep -v '^ *+' conftest.er1 >conftest.err
19480
cat conftest.err >&5
19481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482
(exit $ac_status); } &&
19483
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19484
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19485
(eval $ac_try) 2>&5
19487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488
(exit $ac_status); }; } &&
19489
{ ac_try='test -s conftest$ac_exeext'
19490
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491
(eval $ac_try) 2>&5
19493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494
(exit $ac_status); }; }; then
19495
ac_cv_lib_auth_main=yes
19497
echo "$as_me: failed program was:" >&5
19498
sed 's/^/| /' conftest.$ac_ext >&5
19500
ac_cv_lib_auth_main=no
19502
rm -f conftest.err conftest.$ac_objext \
19503
conftest$ac_exeext conftest.$ac_ext
19504
LIBS=$ac_check_lib_save_LIBS
19506
echo "$as_me:$LINENO: result: $ac_cv_lib_auth_main" >&5
19507
echo "${ECHO_T}$ac_cv_lib_auth_main" >&6
19508
if test $ac_cv_lib_auth_main = yes; then
19509
cat >>confdefs.h <<_ACEOF
19510
#define HAVE_LIBAUTH 1
19513
LIBS="-lauth $LIBS"
19518
echo "$as_me:$LINENO: checking for main in -lcmd" >&5
19519
echo $ECHO_N "checking for main in -lcmd... $ECHO_C" >&6
19520
if test "${ac_cv_lib_cmd_main+set}" = set; then
19521
echo $ECHO_N "(cached) $ECHO_C" >&6
19523
ac_check_lib_save_LIBS=$LIBS
19525
cat >conftest.$ac_ext <<_ACEOF
19528
cat confdefs.h >>conftest.$ac_ext
19529
cat >>conftest.$ac_ext <<_ACEOF
19530
/* end confdefs.h. */
19541
rm -f conftest.$ac_objext conftest$ac_exeext
19542
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19543
(eval $ac_link) 2>conftest.er1
19545
grep -v '^ *+' conftest.er1 >conftest.err
19547
cat conftest.err >&5
19548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549
(exit $ac_status); } &&
19550
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19551
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552
(eval $ac_try) 2>&5
19554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555
(exit $ac_status); }; } &&
19556
{ ac_try='test -s conftest$ac_exeext'
19557
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558
(eval $ac_try) 2>&5
19560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561
(exit $ac_status); }; }; then
19562
ac_cv_lib_cmd_main=yes
19564
echo "$as_me: failed program was:" >&5
19565
sed 's/^/| /' conftest.$ac_ext >&5
19567
ac_cv_lib_cmd_main=no
19569
rm -f conftest.err conftest.$ac_objext \
19570
conftest$ac_exeext conftest.$ac_ext
19571
LIBS=$ac_check_lib_save_LIBS
19573
echo "$as_me:$LINENO: result: $ac_cv_lib_cmd_main" >&5
19574
echo "${ECHO_T}$ac_cv_lib_cmd_main" >&6
19575
if test $ac_cv_lib_cmd_main = yes; then
19576
cat >>confdefs.h <<_ACEOF
19577
#define HAVE_LIBCMD 1
19585
echo "$as_me:$LINENO: checking for main in -lcrypt" >&5
19586
echo $ECHO_N "checking for main in -lcrypt... $ECHO_C" >&6
19587
if test "${ac_cv_lib_crypt_main+set}" = set; then
19588
echo $ECHO_N "(cached) $ECHO_C" >&6
19590
ac_check_lib_save_LIBS=$LIBS
19591
LIBS="-lcrypt $LIBS"
19592
cat >conftest.$ac_ext <<_ACEOF
19595
cat confdefs.h >>conftest.$ac_ext
19596
cat >>conftest.$ac_ext <<_ACEOF
19597
/* end confdefs.h. */
19608
rm -f conftest.$ac_objext conftest$ac_exeext
19609
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19610
(eval $ac_link) 2>conftest.er1
19612
grep -v '^ *+' conftest.er1 >conftest.err
19614
cat conftest.err >&5
19615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616
(exit $ac_status); } &&
19617
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19618
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19619
(eval $ac_try) 2>&5
19621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622
(exit $ac_status); }; } &&
19623
{ ac_try='test -s conftest$ac_exeext'
19624
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625
(eval $ac_try) 2>&5
19627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628
(exit $ac_status); }; }; then
19629
ac_cv_lib_crypt_main=yes
19631
echo "$as_me: failed program was:" >&5
19632
sed 's/^/| /' conftest.$ac_ext >&5
19634
ac_cv_lib_crypt_main=no
19636
rm -f conftest.err conftest.$ac_objext \
19637
conftest$ac_exeext conftest.$ac_ext
19638
LIBS=$ac_check_lib_save_LIBS
19640
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_main" >&5
19641
echo "${ECHO_T}$ac_cv_lib_crypt_main" >&6
19642
if test $ac_cv_lib_crypt_main = yes; then
19643
cat >>confdefs.h <<_ACEOF
19644
#define HAVE_LIBCRYPT 1
19647
LIBS="-lcrypt $LIBS"
19652
echo "$as_me:$LINENO: checking for main in -ld" >&5
19653
echo $ECHO_N "checking for main in -ld... $ECHO_C" >&6
19654
if test "${ac_cv_lib_d_main+set}" = set; then
19655
echo $ECHO_N "(cached) $ECHO_C" >&6
19657
ac_check_lib_save_LIBS=$LIBS
19659
cat >conftest.$ac_ext <<_ACEOF
19662
cat confdefs.h >>conftest.$ac_ext
19663
cat >>conftest.$ac_ext <<_ACEOF
19664
/* end confdefs.h. */
19675
rm -f conftest.$ac_objext conftest$ac_exeext
19676
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19677
(eval $ac_link) 2>conftest.er1
19679
grep -v '^ *+' conftest.er1 >conftest.err
19681
cat conftest.err >&5
19682
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683
(exit $ac_status); } &&
19684
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19685
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686
(eval $ac_try) 2>&5
19688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689
(exit $ac_status); }; } &&
19690
{ ac_try='test -s conftest$ac_exeext'
19691
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692
(eval $ac_try) 2>&5
19694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695
(exit $ac_status); }; }; then
19696
ac_cv_lib_d_main=yes
19698
echo "$as_me: failed program was:" >&5
19699
sed 's/^/| /' conftest.$ac_ext >&5
19701
ac_cv_lib_d_main=no
19703
rm -f conftest.err conftest.$ac_objext \
19704
conftest$ac_exeext conftest.$ac_ext
19705
LIBS=$ac_check_lib_save_LIBS
19707
echo "$as_me:$LINENO: result: $ac_cv_lib_d_main" >&5
19708
echo "${ECHO_T}$ac_cv_lib_d_main" >&6
19709
if test $ac_cv_lib_d_main = yes; then
19710
cat >>confdefs.h <<_ACEOF
19711
#define HAVE_LIBD 1
19719
echo "$as_me:$LINENO: checking for main in -ldl" >&5
19720
echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
19721
if test "${ac_cv_lib_dl_main+set}" = set; then
19722
echo $ECHO_N "(cached) $ECHO_C" >&6
19724
ac_check_lib_save_LIBS=$LIBS
19726
cat >conftest.$ac_ext <<_ACEOF
19729
cat confdefs.h >>conftest.$ac_ext
19730
cat >>conftest.$ac_ext <<_ACEOF
19731
/* end confdefs.h. */
19742
rm -f conftest.$ac_objext conftest$ac_exeext
19743
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19744
(eval $ac_link) 2>conftest.er1
19746
grep -v '^ *+' conftest.er1 >conftest.err
19748
cat conftest.err >&5
19749
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750
(exit $ac_status); } &&
19751
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19752
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19753
(eval $ac_try) 2>&5
19755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756
(exit $ac_status); }; } &&
19757
{ ac_try='test -s conftest$ac_exeext'
19758
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759
(eval $ac_try) 2>&5
19761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762
(exit $ac_status); }; }; then
19763
ac_cv_lib_dl_main=yes
19765
echo "$as_me: failed program was:" >&5
19766
sed 's/^/| /' conftest.$ac_ext >&5
19768
ac_cv_lib_dl_main=no
19770
rm -f conftest.err conftest.$ac_objext \
19771
conftest$ac_exeext conftest.$ac_ext
19772
LIBS=$ac_check_lib_save_LIBS
19774
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19775
echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
19776
if test $ac_cv_lib_dl_main = yes; then
19777
cat >>confdefs.h <<_ACEOF
19778
#define HAVE_LIBDL 1
19786
echo "$as_me:$LINENO: checking for main in -lkauth" >&5
19787
echo $ECHO_N "checking for main in -lkauth... $ECHO_C" >&6
19788
if test "${ac_cv_lib_kauth_main+set}" = set; then
19789
echo $ECHO_N "(cached) $ECHO_C" >&6
19791
ac_check_lib_save_LIBS=$LIBS
19792
LIBS="-lkauth $LIBS"
19793
cat >conftest.$ac_ext <<_ACEOF
19796
cat confdefs.h >>conftest.$ac_ext
19797
cat >>conftest.$ac_ext <<_ACEOF
19798
/* end confdefs.h. */
19809
rm -f conftest.$ac_objext conftest$ac_exeext
19810
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19811
(eval $ac_link) 2>conftest.er1
19813
grep -v '^ *+' conftest.er1 >conftest.err
19815
cat conftest.err >&5
19816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817
(exit $ac_status); } &&
19818
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19819
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820
(eval $ac_try) 2>&5
19822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823
(exit $ac_status); }; } &&
19824
{ ac_try='test -s conftest$ac_exeext'
19825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826
(eval $ac_try) 2>&5
19828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829
(exit $ac_status); }; }; then
19830
ac_cv_lib_kauth_main=yes
19832
echo "$as_me: failed program was:" >&5
19833
sed 's/^/| /' conftest.$ac_ext >&5
19835
ac_cv_lib_kauth_main=no
19837
rm -f conftest.err conftest.$ac_objext \
19838
conftest$ac_exeext conftest.$ac_ext
19839
LIBS=$ac_check_lib_save_LIBS
19841
echo "$as_me:$LINENO: result: $ac_cv_lib_kauth_main" >&5
19842
echo "${ECHO_T}$ac_cv_lib_kauth_main" >&6
19843
if test $ac_cv_lib_kauth_main = yes; then
19844
cat >>confdefs.h <<_ACEOF
19845
#define HAVE_LIBKAUTH 1
19848
LIBS="-lkauth $LIBS"
19853
echo "$as_me:$LINENO: checking for main in -lkrb" >&5
19854
echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
19855
if test "${ac_cv_lib_krb_main+set}" = set; then
19856
echo $ECHO_N "(cached) $ECHO_C" >&6
19858
ac_check_lib_save_LIBS=$LIBS
19860
cat >conftest.$ac_ext <<_ACEOF
19863
cat confdefs.h >>conftest.$ac_ext
19864
cat >>conftest.$ac_ext <<_ACEOF
19865
/* end confdefs.h. */
19876
rm -f conftest.$ac_objext conftest$ac_exeext
19877
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19878
(eval $ac_link) 2>conftest.er1
19880
grep -v '^ *+' conftest.er1 >conftest.err
19882
cat conftest.err >&5
19883
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884
(exit $ac_status); } &&
19885
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19886
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19887
(eval $ac_try) 2>&5
19889
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890
(exit $ac_status); }; } &&
19891
{ ac_try='test -s conftest$ac_exeext'
19892
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893
(eval $ac_try) 2>&5
19895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896
(exit $ac_status); }; }; then
19897
ac_cv_lib_krb_main=yes
19899
echo "$as_me: failed program was:" >&5
19900
sed 's/^/| /' conftest.$ac_ext >&5
19902
ac_cv_lib_krb_main=no
19904
rm -f conftest.err conftest.$ac_objext \
19905
conftest$ac_exeext conftest.$ac_ext
19906
LIBS=$ac_check_lib_save_LIBS
19908
echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
19909
echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
19910
if test $ac_cv_lib_krb_main = yes; then
19911
cat >>confdefs.h <<_ACEOF
19912
#define HAVE_LIBKRB 1
19920
echo "$as_me:$LINENO: checking for main in -llwp" >&5
19921
echo $ECHO_N "checking for main in -llwp... $ECHO_C" >&6
19922
if test "${ac_cv_lib_lwp_main+set}" = set; then
19923
echo $ECHO_N "(cached) $ECHO_C" >&6
19925
ac_check_lib_save_LIBS=$LIBS
19927
cat >conftest.$ac_ext <<_ACEOF
19930
cat confdefs.h >>conftest.$ac_ext
19931
cat >>conftest.$ac_ext <<_ACEOF
19932
/* end confdefs.h. */
19943
rm -f conftest.$ac_objext conftest$ac_exeext
19944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19945
(eval $ac_link) 2>conftest.er1
19947
grep -v '^ *+' conftest.er1 >conftest.err
19949
cat conftest.err >&5
19950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951
(exit $ac_status); } &&
19952
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19953
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954
(eval $ac_try) 2>&5
19956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957
(exit $ac_status); }; } &&
19958
{ ac_try='test -s conftest$ac_exeext'
19959
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19960
(eval $ac_try) 2>&5
19962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963
(exit $ac_status); }; }; then
19964
ac_cv_lib_lwp_main=yes
19966
echo "$as_me: failed program was:" >&5
19967
sed 's/^/| /' conftest.$ac_ext >&5
19969
ac_cv_lib_lwp_main=no
19971
rm -f conftest.err conftest.$ac_objext \
19972
conftest$ac_exeext conftest.$ac_ext
19973
LIBS=$ac_check_lib_save_LIBS
19975
echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_main" >&5
19976
echo "${ECHO_T}$ac_cv_lib_lwp_main" >&6
19977
if test $ac_cv_lib_lwp_main = yes; then
19978
cat >>confdefs.h <<_ACEOF
19979
#define HAVE_LIBLWP 1
19987
echo "$as_me:$LINENO: checking for main in -ln" >&5
19988
echo $ECHO_N "checking for main in -ln... $ECHO_C" >&6
19989
if test "${ac_cv_lib_n_main+set}" = set; then
19990
echo $ECHO_N "(cached) $ECHO_C" >&6
19992
ac_check_lib_save_LIBS=$LIBS
19994
cat >conftest.$ac_ext <<_ACEOF
19997
cat confdefs.h >>conftest.$ac_ext
19998
cat >>conftest.$ac_ext <<_ACEOF
19999
/* end confdefs.h. */
20010
rm -f conftest.$ac_objext conftest$ac_exeext
20011
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20012
(eval $ac_link) 2>conftest.er1
20014
grep -v '^ *+' conftest.er1 >conftest.err
20016
cat conftest.err >&5
20017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018
(exit $ac_status); } &&
20019
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021
(eval $ac_try) 2>&5
20023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024
(exit $ac_status); }; } &&
20025
{ ac_try='test -s conftest$ac_exeext'
20026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027
(eval $ac_try) 2>&5
20029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030
(exit $ac_status); }; }; then
20031
ac_cv_lib_n_main=yes
20033
echo "$as_me: failed program was:" >&5
20034
sed 's/^/| /' conftest.$ac_ext >&5
20036
ac_cv_lib_n_main=no
20038
rm -f conftest.err conftest.$ac_objext \
20039
conftest$ac_exeext conftest.$ac_ext
20040
LIBS=$ac_check_lib_save_LIBS
20042
echo "$as_me:$LINENO: result: $ac_cv_lib_n_main" >&5
20043
echo "${ECHO_T}$ac_cv_lib_n_main" >&6
20044
if test $ac_cv_lib_n_main = yes; then
20045
cat >>confdefs.h <<_ACEOF
20046
#define HAVE_LIBN 1
20054
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
20055
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
20056
if test "${ac_cv_lib_nsl_main+set}" = set; then
20057
echo $ECHO_N "(cached) $ECHO_C" >&6
20059
ac_check_lib_save_LIBS=$LIBS
20061
cat >conftest.$ac_ext <<_ACEOF
20064
cat confdefs.h >>conftest.$ac_ext
20065
cat >>conftest.$ac_ext <<_ACEOF
20066
/* end confdefs.h. */
20077
rm -f conftest.$ac_objext conftest$ac_exeext
20078
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20079
(eval $ac_link) 2>conftest.er1
20081
grep -v '^ *+' conftest.er1 >conftest.err
20083
cat conftest.err >&5
20084
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085
(exit $ac_status); } &&
20086
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20087
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20088
(eval $ac_try) 2>&5
20090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20091
(exit $ac_status); }; } &&
20092
{ ac_try='test -s conftest$ac_exeext'
20093
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20094
(eval $ac_try) 2>&5
20096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097
(exit $ac_status); }; }; then
20098
ac_cv_lib_nsl_main=yes
20100
echo "$as_me: failed program was:" >&5
20101
sed 's/^/| /' conftest.$ac_ext >&5
20103
ac_cv_lib_nsl_main=no
20105
rm -f conftest.err conftest.$ac_objext \
20106
conftest$ac_exeext conftest.$ac_ext
20107
LIBS=$ac_check_lib_save_LIBS
20109
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
20110
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
20111
if test $ac_cv_lib_nsl_main = yes; then
20112
cat >>confdefs.h <<_ACEOF
20113
#define HAVE_LIBNSL 1
20121
echo "$as_me:$LINENO: checking for main in -lprot" >&5
20122
echo $ECHO_N "checking for main in -lprot... $ECHO_C" >&6
20123
if test "${ac_cv_lib_prot_main+set}" = set; then
20124
echo $ECHO_N "(cached) $ECHO_C" >&6
20126
ac_check_lib_save_LIBS=$LIBS
20127
LIBS="-lprot $LIBS"
20128
cat >conftest.$ac_ext <<_ACEOF
20131
cat confdefs.h >>conftest.$ac_ext
20132
cat >>conftest.$ac_ext <<_ACEOF
20133
/* end confdefs.h. */
20144
rm -f conftest.$ac_objext conftest$ac_exeext
20145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20146
(eval $ac_link) 2>conftest.er1
20148
grep -v '^ *+' conftest.er1 >conftest.err
20150
cat conftest.err >&5
20151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152
(exit $ac_status); } &&
20153
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155
(eval $ac_try) 2>&5
20157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158
(exit $ac_status); }; } &&
20159
{ ac_try='test -s conftest$ac_exeext'
20160
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161
(eval $ac_try) 2>&5
20163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164
(exit $ac_status); }; }; then
20165
ac_cv_lib_prot_main=yes
20167
echo "$as_me: failed program was:" >&5
20168
sed 's/^/| /' conftest.$ac_ext >&5
20170
ac_cv_lib_prot_main=no
20172
rm -f conftest.err conftest.$ac_objext \
20173
conftest$ac_exeext conftest.$ac_ext
20174
LIBS=$ac_check_lib_save_LIBS
20176
echo "$as_me:$LINENO: result: $ac_cv_lib_prot_main" >&5
20177
echo "${ECHO_T}$ac_cv_lib_prot_main" >&6
20178
if test $ac_cv_lib_prot_main = yes; then
20179
cat >>confdefs.h <<_ACEOF
20180
#define HAVE_LIBPROT 1
20183
LIBS="-lprot $LIBS"
20188
echo "$as_me:$LINENO: checking for main in -lrx" >&5
20189
echo $ECHO_N "checking for main in -lrx... $ECHO_C" >&6
20190
if test "${ac_cv_lib_rx_main+set}" = set; then
20191
echo $ECHO_N "(cached) $ECHO_C" >&6
20193
ac_check_lib_save_LIBS=$LIBS
20195
cat >conftest.$ac_ext <<_ACEOF
20198
cat confdefs.h >>conftest.$ac_ext
20199
cat >>conftest.$ac_ext <<_ACEOF
20200
/* end confdefs.h. */
20211
rm -f conftest.$ac_objext conftest$ac_exeext
20212
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20213
(eval $ac_link) 2>conftest.er1
20215
grep -v '^ *+' conftest.er1 >conftest.err
20217
cat conftest.err >&5
20218
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20219
(exit $ac_status); } &&
20220
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20221
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222
(eval $ac_try) 2>&5
20224
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225
(exit $ac_status); }; } &&
20226
{ ac_try='test -s conftest$ac_exeext'
20227
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20228
(eval $ac_try) 2>&5
20230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231
(exit $ac_status); }; }; then
20232
ac_cv_lib_rx_main=yes
20234
echo "$as_me: failed program was:" >&5
20235
sed 's/^/| /' conftest.$ac_ext >&5
20237
ac_cv_lib_rx_main=no
20239
rm -f conftest.err conftest.$ac_objext \
20240
conftest$ac_exeext conftest.$ac_ext
20241
LIBS=$ac_check_lib_save_LIBS
20243
echo "$as_me:$LINENO: result: $ac_cv_lib_rx_main" >&5
20244
echo "${ECHO_T}$ac_cv_lib_rx_main" >&6
20245
if test $ac_cv_lib_rx_main = yes; then
20246
cat >>confdefs.h <<_ACEOF
20247
#define HAVE_LIBRX 1
20255
echo "$as_me:$LINENO: checking for main in -lrxkad" >&5
20256
echo $ECHO_N "checking for main in -lrxkad... $ECHO_C" >&6
20257
if test "${ac_cv_lib_rxkad_main+set}" = set; then
20258
echo $ECHO_N "(cached) $ECHO_C" >&6
20260
ac_check_lib_save_LIBS=$LIBS
20261
LIBS="-lrxkad $LIBS"
20262
cat >conftest.$ac_ext <<_ACEOF
20265
cat confdefs.h >>conftest.$ac_ext
20266
cat >>conftest.$ac_ext <<_ACEOF
20267
/* end confdefs.h. */
20278
rm -f conftest.$ac_objext conftest$ac_exeext
20279
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20280
(eval $ac_link) 2>conftest.er1
20282
grep -v '^ *+' conftest.er1 >conftest.err
20284
cat conftest.err >&5
20285
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286
(exit $ac_status); } &&
20287
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20288
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289
(eval $ac_try) 2>&5
20291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292
(exit $ac_status); }; } &&
20293
{ ac_try='test -s conftest$ac_exeext'
20294
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295
(eval $ac_try) 2>&5
20297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298
(exit $ac_status); }; }; then
20299
ac_cv_lib_rxkad_main=yes
20301
echo "$as_me: failed program was:" >&5
20302
sed 's/^/| /' conftest.$ac_ext >&5
20304
ac_cv_lib_rxkad_main=no
20306
rm -f conftest.err conftest.$ac_objext \
20307
conftest$ac_exeext conftest.$ac_ext
20308
LIBS=$ac_check_lib_save_LIBS
20310
echo "$as_me:$LINENO: result: $ac_cv_lib_rxkad_main" >&5
20311
echo "${ECHO_T}$ac_cv_lib_rxkad_main" >&6
20312
if test $ac_cv_lib_rxkad_main = yes; then
20313
cat >>confdefs.h <<_ACEOF
20314
#define HAVE_LIBRXKAD 1
20317
LIBS="-lrxkad $LIBS"
20322
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
20323
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
20324
if test "${ac_cv_lib_socket_main+set}" = set; then
20325
echo $ECHO_N "(cached) $ECHO_C" >&6
20327
ac_check_lib_save_LIBS=$LIBS
20328
LIBS="-lsocket $LIBS"
20329
cat >conftest.$ac_ext <<_ACEOF
20332
cat confdefs.h >>conftest.$ac_ext
20333
cat >>conftest.$ac_ext <<_ACEOF
20334
/* end confdefs.h. */
20345
rm -f conftest.$ac_objext conftest$ac_exeext
20346
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20347
(eval $ac_link) 2>conftest.er1
20349
grep -v '^ *+' conftest.er1 >conftest.err
20351
cat conftest.err >&5
20352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353
(exit $ac_status); } &&
20354
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20355
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356
(eval $ac_try) 2>&5
20358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359
(exit $ac_status); }; } &&
20360
{ ac_try='test -s conftest$ac_exeext'
20361
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362
(eval $ac_try) 2>&5
20364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365
(exit $ac_status); }; }; then
20366
ac_cv_lib_socket_main=yes
20368
echo "$as_me: failed program was:" >&5
20369
sed 's/^/| /' conftest.$ac_ext >&5
20371
ac_cv_lib_socket_main=no
20373
rm -f conftest.err conftest.$ac_objext \
20374
conftest$ac_exeext conftest.$ac_ext
20375
LIBS=$ac_check_lib_save_LIBS
20377
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
20378
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
20379
if test $ac_cv_lib_socket_main = yes; then
20380
cat >>confdefs.h <<_ACEOF
20381
#define HAVE_LIBSOCKET 1
20384
LIBS="-lsocket $LIBS"
20389
echo "$as_me:$LINENO: checking for main in -lsys" >&5
20390
echo $ECHO_N "checking for main in -lsys... $ECHO_C" >&6
20391
if test "${ac_cv_lib_sys_main+set}" = set; then
20392
echo $ECHO_N "(cached) $ECHO_C" >&6
20394
ac_check_lib_save_LIBS=$LIBS
20396
cat >conftest.$ac_ext <<_ACEOF
20399
cat confdefs.h >>conftest.$ac_ext
20400
cat >>conftest.$ac_ext <<_ACEOF
20401
/* end confdefs.h. */
20412
rm -f conftest.$ac_objext conftest$ac_exeext
20413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20414
(eval $ac_link) 2>conftest.er1
20416
grep -v '^ *+' conftest.er1 >conftest.err
20418
cat conftest.err >&5
20419
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420
(exit $ac_status); } &&
20421
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20422
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423
(eval $ac_try) 2>&5
20425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426
(exit $ac_status); }; } &&
20427
{ ac_try='test -s conftest$ac_exeext'
20428
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20429
(eval $ac_try) 2>&5
20431
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432
(exit $ac_status); }; }; then
20433
ac_cv_lib_sys_main=yes
20435
echo "$as_me: failed program was:" >&5
20436
sed 's/^/| /' conftest.$ac_ext >&5
20438
ac_cv_lib_sys_main=no
20440
rm -f conftest.err conftest.$ac_objext \
20441
conftest$ac_exeext conftest.$ac_ext
20442
LIBS=$ac_check_lib_save_LIBS
20444
echo "$as_me:$LINENO: result: $ac_cv_lib_sys_main" >&5
20445
echo "${ECHO_T}$ac_cv_lib_sys_main" >&6
20446
if test $ac_cv_lib_sys_main = yes; then
20447
cat >>confdefs.h <<_ACEOF
20448
#define HAVE_LIBSYS 1
20456
echo "$as_me:$LINENO: checking for main in -lubik" >&5
20457
echo $ECHO_N "checking for main in -lubik... $ECHO_C" >&6
20458
if test "${ac_cv_lib_ubik_main+set}" = set; then
20459
echo $ECHO_N "(cached) $ECHO_C" >&6
20461
ac_check_lib_save_LIBS=$LIBS
20462
LIBS="-lubik $LIBS"
20463
cat >conftest.$ac_ext <<_ACEOF
20466
cat confdefs.h >>conftest.$ac_ext
20467
cat >>conftest.$ac_ext <<_ACEOF
20468
/* end confdefs.h. */
20479
rm -f conftest.$ac_objext conftest$ac_exeext
20480
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20481
(eval $ac_link) 2>conftest.er1
20483
grep -v '^ *+' conftest.er1 >conftest.err
20485
cat conftest.err >&5
20486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487
(exit $ac_status); } &&
20488
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20489
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490
(eval $ac_try) 2>&5
20492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493
(exit $ac_status); }; } &&
20494
{ ac_try='test -s conftest$ac_exeext'
20495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496
(eval $ac_try) 2>&5
20498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499
(exit $ac_status); }; }; then
20500
ac_cv_lib_ubik_main=yes
20502
echo "$as_me: failed program was:" >&5
20503
sed 's/^/| /' conftest.$ac_ext >&5
20505
ac_cv_lib_ubik_main=no
20507
rm -f conftest.err conftest.$ac_objext \
20508
conftest$ac_exeext conftest.$ac_ext
20509
LIBS=$ac_check_lib_save_LIBS
20511
echo "$as_me:$LINENO: result: $ac_cv_lib_ubik_main" >&5
20512
echo "${ECHO_T}$ac_cv_lib_ubik_main" >&6
20513
if test $ac_cv_lib_ubik_main = yes; then
20514
cat >>confdefs.h <<_ACEOF
20515
#define HAVE_LIBUBIK 1
20518
LIBS="-lubik $LIBS"
20524
# Check presence of some functions
20526
# Check for XPG4 access() function
20527
# Be sure to test before adding AFS libs in LIBS path as AFS lib
20528
# has such a function that works only on AFS filesystems.
20530
for ac_func in access
20532
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20533
echo "$as_me:$LINENO: checking for $ac_func" >&5
20534
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20535
if eval "test \"\${$as_ac_var+set}\" = set"; then
20536
echo $ECHO_N "(cached) $ECHO_C" >&6
20538
cat >conftest.$ac_ext <<_ACEOF
20541
cat confdefs.h >>conftest.$ac_ext
20542
cat >>conftest.$ac_ext <<_ACEOF
20543
/* end confdefs.h. */
20544
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20545
For example, HP-UX 11i <limits.h> declares gettimeofday. */
20546
#define $ac_func innocuous_$ac_func
20548
/* System header to define __stub macros and hopefully few prototypes,
20549
which can conflict with char $ac_func (); below.
20550
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20551
<limits.h> exists even on freestanding compilers. */
20554
# include <limits.h>
20556
# include <assert.h>
20561
/* Override any gcc2 internal prototype to avoid an error. */
20566
/* We use char because int might match the return type of a gcc2
20567
builtin and then its argument prototype would still apply. */
20569
/* The GNU C library defines this for functions which it implements
20570
to always fail with ENOSYS. Some functions are actually named
20571
something starting with __ and the normal name is an alias. */
20572
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20575
char (*f) () = $ac_func;
20584
return f != $ac_func;
20589
rm -f conftest.$ac_objext conftest$ac_exeext
20590
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20591
(eval $ac_link) 2>conftest.er1
20593
grep -v '^ *+' conftest.er1 >conftest.err
20595
cat conftest.err >&5
20596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597
(exit $ac_status); } &&
20598
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20599
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20600
(eval $ac_try) 2>&5
20602
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20603
(exit $ac_status); }; } &&
20604
{ ac_try='test -s conftest$ac_exeext'
20605
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20606
(eval $ac_try) 2>&5
20608
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609
(exit $ac_status); }; }; then
20610
eval "$as_ac_var=yes"
20612
echo "$as_me: failed program was:" >&5
20613
sed 's/^/| /' conftest.$ac_ext >&5
20615
eval "$as_ac_var=no"
20617
rm -f conftest.err conftest.$ac_objext \
20618
conftest$ac_exeext conftest.$ac_ext
20620
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20621
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20622
if test `eval echo '${'$as_ac_var'}'` = yes; then
20623
cat >>confdefs.h <<_ACEOF
20624
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20636
ac_header_dirent=no
20637
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20638
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20639
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20640
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20641
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20642
echo $ECHO_N "(cached) $ECHO_C" >&6
20644
cat >conftest.$ac_ext <<_ACEOF
20647
cat confdefs.h >>conftest.$ac_ext
20648
cat >>conftest.$ac_ext <<_ACEOF
20649
/* end confdefs.h. */
20650
#include <sys/types.h>
20662
rm -f conftest.$ac_objext
20663
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20664
(eval $ac_compile) 2>conftest.er1
20666
grep -v '^ *+' conftest.er1 >conftest.err
20668
cat conftest.err >&5
20669
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20670
(exit $ac_status); } &&
20671
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20672
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20673
(eval $ac_try) 2>&5
20675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676
(exit $ac_status); }; } &&
20677
{ ac_try='test -s conftest.$ac_objext'
20678
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679
(eval $ac_try) 2>&5
20681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682
(exit $ac_status); }; }; then
20683
eval "$as_ac_Header=yes"
20685
echo "$as_me: failed program was:" >&5
20686
sed 's/^/| /' conftest.$ac_ext >&5
20688
eval "$as_ac_Header=no"
20690
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20692
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20693
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20694
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20695
cat >>confdefs.h <<_ACEOF
20696
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20699
ac_header_dirent=$ac_hdr; break
20703
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20704
if test $ac_header_dirent = dirent.h; then
20705
echo "$as_me:$LINENO: checking for library containing opendir" >&5
20706
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20707
if test "${ac_cv_search_opendir+set}" = set; then
20708
echo $ECHO_N "(cached) $ECHO_C" >&6
20710
ac_func_search_save_LIBS=$LIBS
20711
ac_cv_search_opendir=no
20712
cat >conftest.$ac_ext <<_ACEOF
20715
cat confdefs.h >>conftest.$ac_ext
20716
cat >>conftest.$ac_ext <<_ACEOF
20717
/* end confdefs.h. */
20719
/* Override any gcc2 internal prototype to avoid an error. */
20723
/* We use char because int might match the return type of a gcc2
20724
builtin and then its argument prototype would still apply. */
20734
rm -f conftest.$ac_objext conftest$ac_exeext
20735
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20736
(eval $ac_link) 2>conftest.er1
20738
grep -v '^ *+' conftest.er1 >conftest.err
20740
cat conftest.err >&5
20741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742
(exit $ac_status); } &&
20743
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20744
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20745
(eval $ac_try) 2>&5
20747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748
(exit $ac_status); }; } &&
20749
{ ac_try='test -s conftest$ac_exeext'
20750
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751
(eval $ac_try) 2>&5
20753
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754
(exit $ac_status); }; }; then
20755
ac_cv_search_opendir="none required"
20757
echo "$as_me: failed program was:" >&5
20758
sed 's/^/| /' conftest.$ac_ext >&5
20761
rm -f conftest.err conftest.$ac_objext \
20762
conftest$ac_exeext conftest.$ac_ext
20763
if test "$ac_cv_search_opendir" = no; then
20764
for ac_lib in dir; do
20765
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20766
cat >conftest.$ac_ext <<_ACEOF
20769
cat confdefs.h >>conftest.$ac_ext
20770
cat >>conftest.$ac_ext <<_ACEOF
20771
/* end confdefs.h. */
20773
/* Override any gcc2 internal prototype to avoid an error. */
20777
/* We use char because int might match the return type of a gcc2
20778
builtin and then its argument prototype would still apply. */
20788
rm -f conftest.$ac_objext conftest$ac_exeext
20789
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20790
(eval $ac_link) 2>conftest.er1
20792
grep -v '^ *+' conftest.er1 >conftest.err
20794
cat conftest.err >&5
20795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796
(exit $ac_status); } &&
20797
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20798
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799
(eval $ac_try) 2>&5
20801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802
(exit $ac_status); }; } &&
20803
{ ac_try='test -s conftest$ac_exeext'
20804
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805
(eval $ac_try) 2>&5
20807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808
(exit $ac_status); }; }; then
20809
ac_cv_search_opendir="-l$ac_lib"
20812
echo "$as_me: failed program was:" >&5
20813
sed 's/^/| /' conftest.$ac_ext >&5
20816
rm -f conftest.err conftest.$ac_objext \
20817
conftest$ac_exeext conftest.$ac_ext
20820
LIBS=$ac_func_search_save_LIBS
20822
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20823
echo "${ECHO_T}$ac_cv_search_opendir" >&6
20824
if test "$ac_cv_search_opendir" != no; then
20825
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20830
echo "$as_me:$LINENO: checking for library containing opendir" >&5
20831
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20832
if test "${ac_cv_search_opendir+set}" = set; then
20833
echo $ECHO_N "(cached) $ECHO_C" >&6
20835
ac_func_search_save_LIBS=$LIBS
20836
ac_cv_search_opendir=no
20837
cat >conftest.$ac_ext <<_ACEOF
20840
cat confdefs.h >>conftest.$ac_ext
20841
cat >>conftest.$ac_ext <<_ACEOF
20842
/* end confdefs.h. */
20844
/* Override any gcc2 internal prototype to avoid an error. */
20848
/* We use char because int might match the return type of a gcc2
20849
builtin and then its argument prototype would still apply. */
20859
rm -f conftest.$ac_objext conftest$ac_exeext
20860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20861
(eval $ac_link) 2>conftest.er1
20863
grep -v '^ *+' conftest.er1 >conftest.err
20865
cat conftest.err >&5
20866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867
(exit $ac_status); } &&
20868
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20869
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20870
(eval $ac_try) 2>&5
20872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873
(exit $ac_status); }; } &&
20874
{ ac_try='test -s conftest$ac_exeext'
20875
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876
(eval $ac_try) 2>&5
20878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879
(exit $ac_status); }; }; then
20880
ac_cv_search_opendir="none required"
20882
echo "$as_me: failed program was:" >&5
20883
sed 's/^/| /' conftest.$ac_ext >&5
20886
rm -f conftest.err conftest.$ac_objext \
20887
conftest$ac_exeext conftest.$ac_ext
20888
if test "$ac_cv_search_opendir" = no; then
20889
for ac_lib in x; do
20890
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20891
cat >conftest.$ac_ext <<_ACEOF
20894
cat confdefs.h >>conftest.$ac_ext
20895
cat >>conftest.$ac_ext <<_ACEOF
20896
/* end confdefs.h. */
20898
/* Override any gcc2 internal prototype to avoid an error. */
20902
/* We use char because int might match the return type of a gcc2
20903
builtin and then its argument prototype would still apply. */
20913
rm -f conftest.$ac_objext conftest$ac_exeext
20914
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20915
(eval $ac_link) 2>conftest.er1
20917
grep -v '^ *+' conftest.er1 >conftest.err
20919
cat conftest.err >&5
20920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921
(exit $ac_status); } &&
20922
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924
(eval $ac_try) 2>&5
20926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927
(exit $ac_status); }; } &&
20928
{ ac_try='test -s conftest$ac_exeext'
20929
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930
(eval $ac_try) 2>&5
20932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933
(exit $ac_status); }; }; then
20934
ac_cv_search_opendir="-l$ac_lib"
20937
echo "$as_me: failed program was:" >&5
20938
sed 's/^/| /' conftest.$ac_ext >&5
20941
rm -f conftest.err conftest.$ac_objext \
20942
conftest$ac_exeext conftest.$ac_ext
20945
LIBS=$ac_func_search_save_LIBS
20947
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20948
echo "${ECHO_T}$ac_cv_search_opendir" >&6
20949
if test "$ac_cv_search_opendir" != no; then
20950
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20956
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20957
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20958
if test "${ac_cv_header_stdc+set}" = set; then
20959
echo $ECHO_N "(cached) $ECHO_C" >&6
20961
cat >conftest.$ac_ext <<_ACEOF
20964
cat confdefs.h >>conftest.$ac_ext
20965
cat >>conftest.$ac_ext <<_ACEOF
20966
/* end confdefs.h. */
20967
#include <stdlib.h>
20968
#include <stdarg.h>
20969
#include <string.h>
20980
rm -f conftest.$ac_objext
20981
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20982
(eval $ac_compile) 2>conftest.er1
20984
grep -v '^ *+' conftest.er1 >conftest.err
20986
cat conftest.err >&5
20987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988
(exit $ac_status); } &&
20989
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20990
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991
(eval $ac_try) 2>&5
20993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994
(exit $ac_status); }; } &&
20995
{ ac_try='test -s conftest.$ac_objext'
20996
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997
(eval $ac_try) 2>&5
20999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000
(exit $ac_status); }; }; then
21001
ac_cv_header_stdc=yes
21003
echo "$as_me: failed program was:" >&5
21004
sed 's/^/| /' conftest.$ac_ext >&5
21006
ac_cv_header_stdc=no
21008
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21010
if test $ac_cv_header_stdc = yes; then
21011
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21012
cat >conftest.$ac_ext <<_ACEOF
21015
cat confdefs.h >>conftest.$ac_ext
21016
cat >>conftest.$ac_ext <<_ACEOF
21017
/* end confdefs.h. */
21018
#include <string.h>
21021
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21022
$EGREP "memchr" >/dev/null 2>&1; then
21025
ac_cv_header_stdc=no
21031
if test $ac_cv_header_stdc = yes; then
21032
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21033
cat >conftest.$ac_ext <<_ACEOF
21036
cat confdefs.h >>conftest.$ac_ext
21037
cat >>conftest.$ac_ext <<_ACEOF
21038
/* end confdefs.h. */
21039
#include <stdlib.h>
21042
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21043
$EGREP "free" >/dev/null 2>&1; then
21046
ac_cv_header_stdc=no
21052
if test $ac_cv_header_stdc = yes; then
21053
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21054
if test "$cross_compiling" = yes; then
21057
cat >conftest.$ac_ext <<_ACEOF
21060
cat confdefs.h >>conftest.$ac_ext
21061
cat >>conftest.$ac_ext <<_ACEOF
21062
/* end confdefs.h. */
21064
#if ((' ' & 0x0FF) == 0x020)
21065
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21066
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21068
# define ISLOWER(c) \
21069
(('a' <= (c) && (c) <= 'i') \
21070
|| ('j' <= (c) && (c) <= 'r') \
21071
|| ('s' <= (c) && (c) <= 'z'))
21072
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21075
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21080
for (i = 0; i < 256; i++)
21081
if (XOR (islower (i), ISLOWER (i))
21082
|| toupper (i) != TOUPPER (i))
21087
rm -f conftest$ac_exeext
21088
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21089
(eval $ac_link) 2>&5
21091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21093
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21094
(eval $ac_try) 2>&5
21096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097
(exit $ac_status); }; }; then
21100
echo "$as_me: program exited with status $ac_status" >&5
21101
echo "$as_me: failed program was:" >&5
21102
sed 's/^/| /' conftest.$ac_ext >&5
21104
( exit $ac_status )
21105
ac_cv_header_stdc=no
21107
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21111
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21112
echo "${ECHO_T}$ac_cv_header_stdc" >&6
21113
if test $ac_cv_header_stdc = yes; then
21115
cat >>confdefs.h <<\_ACEOF
21116
#define STDC_HEADERS 1
21121
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21122
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21123
if test "${ac_cv_header_sys_wait_h+set}" = set; then
21124
echo $ECHO_N "(cached) $ECHO_C" >&6
21126
cat >conftest.$ac_ext <<_ACEOF
21129
cat confdefs.h >>conftest.$ac_ext
21130
cat >>conftest.$ac_ext <<_ACEOF
21131
/* end confdefs.h. */
21132
#include <sys/types.h>
21133
#include <sys/wait.h>
21134
#ifndef WEXITSTATUS
21135
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21138
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21146
s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21151
rm -f conftest.$ac_objext
21152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21153
(eval $ac_compile) 2>conftest.er1
21155
grep -v '^ *+' conftest.er1 >conftest.err
21157
cat conftest.err >&5
21158
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159
(exit $ac_status); } &&
21160
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21161
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162
(eval $ac_try) 2>&5
21164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165
(exit $ac_status); }; } &&
21166
{ ac_try='test -s conftest.$ac_objext'
21167
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168
(eval $ac_try) 2>&5
21170
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171
(exit $ac_status); }; }; then
21172
ac_cv_header_sys_wait_h=yes
21174
echo "$as_me: failed program was:" >&5
21175
sed 's/^/| /' conftest.$ac_ext >&5
21177
ac_cv_header_sys_wait_h=no
21179
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21181
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21182
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21183
if test $ac_cv_header_sys_wait_h = yes; then
21185
cat >>confdefs.h <<\_ACEOF
21186
#define HAVE_SYS_WAIT_H 1
21218
for ac_header in fcntl.h limits.h stdint.h strings.h sys/fcntl.h sys/file.h sys/ioctl.h sys/time.h sys/mnttab.h sys/statvfs.h sys/stat.h sys/vfs.h mntent.h syslog.h unistd.h termios.h sys/termios.h netdb.h sgtty.h ufs/quota.h mount.h sys/mount.h statfs.h sys/types.h dlfcn.h errno.h sys/errno.h
21220
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21221
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21222
echo "$as_me:$LINENO: checking for $ac_header" >&5
21223
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21224
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21225
echo $ECHO_N "(cached) $ECHO_C" >&6
21227
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21228
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21230
# Is the header compilable?
21231
echo "$as_me:$LINENO: checking $ac_header usability" >&5
21232
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21233
cat >conftest.$ac_ext <<_ACEOF
21236
cat confdefs.h >>conftest.$ac_ext
21237
cat >>conftest.$ac_ext <<_ACEOF
21238
/* end confdefs.h. */
21239
$ac_includes_default
21240
#include <$ac_header>
21242
rm -f conftest.$ac_objext
21243
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21244
(eval $ac_compile) 2>conftest.er1
21246
grep -v '^ *+' conftest.er1 >conftest.err
21248
cat conftest.err >&5
21249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250
(exit $ac_status); } &&
21251
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21252
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253
(eval $ac_try) 2>&5
21255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256
(exit $ac_status); }; } &&
21257
{ ac_try='test -s conftest.$ac_objext'
21258
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259
(eval $ac_try) 2>&5
21261
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262
(exit $ac_status); }; }; then
21263
ac_header_compiler=yes
21265
echo "$as_me: failed program was:" >&5
21266
sed 's/^/| /' conftest.$ac_ext >&5
21268
ac_header_compiler=no
21270
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21271
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21272
echo "${ECHO_T}$ac_header_compiler" >&6
21274
# Is the header present?
21275
echo "$as_me:$LINENO: checking $ac_header presence" >&5
21276
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21277
cat >conftest.$ac_ext <<_ACEOF
21280
cat confdefs.h >>conftest.$ac_ext
21281
cat >>conftest.$ac_ext <<_ACEOF
21282
/* end confdefs.h. */
21283
#include <$ac_header>
21285
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21286
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21288
grep -v '^ *+' conftest.er1 >conftest.err
21290
cat conftest.err >&5
21291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292
(exit $ac_status); } >/dev/null; then
21293
if test -s conftest.err; then
21294
ac_cpp_err=$ac_c_preproc_warn_flag
21295
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21302
if test -z "$ac_cpp_err"; then
21303
ac_header_preproc=yes
21305
echo "$as_me: failed program was:" >&5
21306
sed 's/^/| /' conftest.$ac_ext >&5
21308
ac_header_preproc=no
21310
rm -f conftest.err conftest.$ac_ext
21311
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21312
echo "${ECHO_T}$ac_header_preproc" >&6
21314
# So? What about this header?
21315
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21317
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21318
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21319
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21320
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21321
ac_header_preproc=yes
21324
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21325
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21326
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21327
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21328
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21329
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21330
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21331
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21332
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21333
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21334
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21335
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21338
## ------------------------------------------ ##
21339
## Report this to the AC_PACKAGE_NAME lists. ##
21340
## ------------------------------------------ ##
21343
sed "s/^/$as_me: WARNING: /" >&2
21346
echo "$as_me:$LINENO: checking for $ac_header" >&5
21347
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21348
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21349
echo $ECHO_N "(cached) $ECHO_C" >&6
21351
eval "$as_ac_Header=\$ac_header_preproc"
21353
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21354
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21357
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21358
cat >>confdefs.h <<_ACEOF
21359
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21366
if test "${ac_cv_header_sys_cdefs_h+set}" = set; then
21367
echo "$as_me:$LINENO: checking for sys/cdefs.h" >&5
21368
echo $ECHO_N "checking for sys/cdefs.h... $ECHO_C" >&6
21369
if test "${ac_cv_header_sys_cdefs_h+set}" = set; then
21370
echo $ECHO_N "(cached) $ECHO_C" >&6
21372
echo "$as_me:$LINENO: result: $ac_cv_header_sys_cdefs_h" >&5
21373
echo "${ECHO_T}$ac_cv_header_sys_cdefs_h" >&6
21375
# Is the header compilable?
21376
echo "$as_me:$LINENO: checking sys/cdefs.h usability" >&5
21377
echo $ECHO_N "checking sys/cdefs.h usability... $ECHO_C" >&6
21378
cat >conftest.$ac_ext <<_ACEOF
21381
cat confdefs.h >>conftest.$ac_ext
21382
cat >>conftest.$ac_ext <<_ACEOF
21383
/* end confdefs.h. */
21384
$ac_includes_default
21385
#include <sys/cdefs.h>
21387
rm -f conftest.$ac_objext
21388
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21389
(eval $ac_compile) 2>conftest.er1
21391
grep -v '^ *+' conftest.er1 >conftest.err
21393
cat conftest.err >&5
21394
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395
(exit $ac_status); } &&
21396
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21397
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21398
(eval $ac_try) 2>&5
21400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21401
(exit $ac_status); }; } &&
21402
{ ac_try='test -s conftest.$ac_objext'
21403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404
(eval $ac_try) 2>&5
21406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407
(exit $ac_status); }; }; then
21408
ac_header_compiler=yes
21410
echo "$as_me: failed program was:" >&5
21411
sed 's/^/| /' conftest.$ac_ext >&5
21413
ac_header_compiler=no
21415
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21416
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21417
echo "${ECHO_T}$ac_header_compiler" >&6
21419
# Is the header present?
21420
echo "$as_me:$LINENO: checking sys/cdefs.h presence" >&5
21421
echo $ECHO_N "checking sys/cdefs.h presence... $ECHO_C" >&6
21422
cat >conftest.$ac_ext <<_ACEOF
21425
cat confdefs.h >>conftest.$ac_ext
21426
cat >>conftest.$ac_ext <<_ACEOF
21427
/* end confdefs.h. */
21428
#include <sys/cdefs.h>
21430
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21431
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21433
grep -v '^ *+' conftest.er1 >conftest.err
21435
cat conftest.err >&5
21436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437
(exit $ac_status); } >/dev/null; then
21438
if test -s conftest.err; then
21439
ac_cpp_err=$ac_c_preproc_warn_flag
21440
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21447
if test -z "$ac_cpp_err"; then
21448
ac_header_preproc=yes
21450
echo "$as_me: failed program was:" >&5
21451
sed 's/^/| /' conftest.$ac_ext >&5
21453
ac_header_preproc=no
21455
rm -f conftest.err conftest.$ac_ext
21456
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21457
echo "${ECHO_T}$ac_header_preproc" >&6
21459
# So? What about this header?
21460
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21462
{ echo "$as_me:$LINENO: WARNING: sys/cdefs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21463
echo "$as_me: WARNING: sys/cdefs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21464
{ echo "$as_me:$LINENO: WARNING: sys/cdefs.h: proceeding with the compiler's result" >&5
21465
echo "$as_me: WARNING: sys/cdefs.h: proceeding with the compiler's result" >&2;}
21466
ac_header_preproc=yes
21469
{ echo "$as_me:$LINENO: WARNING: sys/cdefs.h: present but cannot be compiled" >&5
21470
echo "$as_me: WARNING: sys/cdefs.h: present but cannot be compiled" >&2;}
21471
{ echo "$as_me:$LINENO: WARNING: sys/cdefs.h: check for missing prerequisite headers?" >&5
21472
echo "$as_me: WARNING: sys/cdefs.h: check for missing prerequisite headers?" >&2;}
21473
{ echo "$as_me:$LINENO: WARNING: sys/cdefs.h: see the Autoconf documentation" >&5
21474
echo "$as_me: WARNING: sys/cdefs.h: see the Autoconf documentation" >&2;}
21475
{ echo "$as_me:$LINENO: WARNING: sys/cdefs.h: section \"Present But Cannot Be Compiled\"" >&5
21476
echo "$as_me: WARNING: sys/cdefs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21477
{ echo "$as_me:$LINENO: WARNING: sys/cdefs.h: proceeding with the preprocessor's result" >&5
21478
echo "$as_me: WARNING: sys/cdefs.h: proceeding with the preprocessor's result" >&2;}
21479
{ echo "$as_me:$LINENO: WARNING: sys/cdefs.h: in the future, the compiler will take precedence" >&5
21480
echo "$as_me: WARNING: sys/cdefs.h: in the future, the compiler will take precedence" >&2;}
21483
## ------------------------------------------ ##
21484
## Report this to the AC_PACKAGE_NAME lists. ##
21485
## ------------------------------------------ ##
21488
sed "s/^/$as_me: WARNING: /" >&2
21491
echo "$as_me:$LINENO: checking for sys/cdefs.h" >&5
21492
echo $ECHO_N "checking for sys/cdefs.h... $ECHO_C" >&6
21493
if test "${ac_cv_header_sys_cdefs_h+set}" = set; then
21494
echo $ECHO_N "(cached) $ECHO_C" >&6
21496
ac_cv_header_sys_cdefs_h=$ac_header_preproc
21498
echo "$as_me:$LINENO: result: $ac_cv_header_sys_cdefs_h" >&5
21499
echo "${ECHO_T}$ac_cv_header_sys_cdefs_h" >&6
21502
if test $ac_cv_header_sys_cdefs_h = yes; then
21505
echo "$as_me:$LINENO: result: enabling generic cdefs.h from tree" >&5
21506
echo "${ECHO_T}enabling generic cdefs.h from tree" >&6
21507
CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
21513
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21514
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21515
if test "${ac_cv_c_const+set}" = set; then
21516
echo $ECHO_N "(cached) $ECHO_C" >&6
21518
cat >conftest.$ac_ext <<_ACEOF
21521
cat confdefs.h >>conftest.$ac_ext
21522
cat >>conftest.$ac_ext <<_ACEOF
21523
/* end confdefs.h. */
21528
/* FIXME: Include the comments suggested by Paul. */
21529
#ifndef __cplusplus
21530
/* Ultrix mips cc rejects this. */
21531
typedef int charset[2];
21533
/* SunOS 4.1.1 cc rejects this. */
21534
char const *const *ccp;
21536
/* NEC SVR4.0.2 mips cc rejects this. */
21537
struct point {int x, y;};
21538
static struct point const zero = {0,0};
21539
/* AIX XL C 1.02.0.0 rejects this.
21540
It does not let you subtract one const X* pointer from another in
21541
an arm of an if-expression whose if-part is not a constant
21543
const char *g = "string";
21544
ccp = &g + (g ? g-g : 0);
21545
/* HPUX 7.0 cc rejects these. */
21548
ccp = (char const *const *) p;
21549
{ /* SCO 3.2v4 cc rejects this. */
21551
char const *s = 0 ? (char *) 0 : (char const *) 0;
21555
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21556
int x[] = {25, 17};
21557
const int *foo = &x[0];
21560
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21561
typedef const int *iptr;
21565
{ /* AIX XL C 1.02.0.0 rejects this saying
21566
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21567
struct s { int j; const int *ap[3]; };
21568
struct s *b; b->j = 5;
21570
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21571
const int foo = 10;
21579
rm -f conftest.$ac_objext
21580
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21581
(eval $ac_compile) 2>conftest.er1
21583
grep -v '^ *+' conftest.er1 >conftest.err
21585
cat conftest.err >&5
21586
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587
(exit $ac_status); } &&
21588
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21589
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590
(eval $ac_try) 2>&5
21592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593
(exit $ac_status); }; } &&
21594
{ ac_try='test -s conftest.$ac_objext'
21595
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21596
(eval $ac_try) 2>&5
21598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599
(exit $ac_status); }; }; then
21602
echo "$as_me: failed program was:" >&5
21603
sed 's/^/| /' conftest.$ac_ext >&5
21607
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21609
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21610
echo "${ECHO_T}$ac_cv_c_const" >&6
21611
if test $ac_cv_c_const = no; then
21613
cat >>confdefs.h <<\_ACEOF
21619
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21620
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21621
if test "${ac_cv_type_uid_t+set}" = set; then
21622
echo $ECHO_N "(cached) $ECHO_C" >&6
21624
cat >conftest.$ac_ext <<_ACEOF
21627
cat confdefs.h >>conftest.$ac_ext
21628
cat >>conftest.$ac_ext <<_ACEOF
21629
/* end confdefs.h. */
21630
#include <sys/types.h>
21633
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21634
$EGREP "uid_t" >/dev/null 2>&1; then
21635
ac_cv_type_uid_t=yes
21637
ac_cv_type_uid_t=no
21642
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21643
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21644
if test $ac_cv_type_uid_t = no; then
21646
cat >>confdefs.h <<\_ACEOF
21651
cat >>confdefs.h <<\_ACEOF
21657
echo "$as_me:$LINENO: checking for inline" >&5
21658
echo $ECHO_N "checking for inline... $ECHO_C" >&6
21659
if test "${ac_cv_c_inline+set}" = set; then
21660
echo $ECHO_N "(cached) $ECHO_C" >&6
21663
for ac_kw in inline __inline__ __inline; do
21664
cat >conftest.$ac_ext <<_ACEOF
21667
cat confdefs.h >>conftest.$ac_ext
21668
cat >>conftest.$ac_ext <<_ACEOF
21669
/* end confdefs.h. */
21670
#ifndef __cplusplus
21672
static $ac_kw foo_t static_foo () {return 0; }
21673
$ac_kw foo_t foo () {return 0; }
21677
rm -f conftest.$ac_objext
21678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21679
(eval $ac_compile) 2>conftest.er1
21681
grep -v '^ *+' conftest.er1 >conftest.err
21683
cat conftest.err >&5
21684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685
(exit $ac_status); } &&
21686
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688
(eval $ac_try) 2>&5
21690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691
(exit $ac_status); }; } &&
21692
{ ac_try='test -s conftest.$ac_objext'
21693
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694
(eval $ac_try) 2>&5
21696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697
(exit $ac_status); }; }; then
21698
ac_cv_c_inline=$ac_kw; break
21700
echo "$as_me: failed program was:" >&5
21701
sed 's/^/| /' conftest.$ac_ext >&5
21704
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21708
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21709
echo "${ECHO_T}$ac_cv_c_inline" >&6
21712
case $ac_cv_c_inline in
21715
case $ac_cv_c_inline in
21717
*) ac_val=$ac_cv_c_inline;;
21719
cat >>confdefs.h <<_ACEOF
21720
#ifndef __cplusplus
21721
#define inline $ac_val
21727
echo "$as_me:$LINENO: checking for mode_t" >&5
21728
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21729
if test "${ac_cv_type_mode_t+set}" = set; then
21730
echo $ECHO_N "(cached) $ECHO_C" >&6
21732
cat >conftest.$ac_ext <<_ACEOF
21735
cat confdefs.h >>conftest.$ac_ext
21736
cat >>conftest.$ac_ext <<_ACEOF
21737
/* end confdefs.h. */
21738
$ac_includes_default
21744
if (sizeof (mode_t))
21750
rm -f conftest.$ac_objext
21751
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21752
(eval $ac_compile) 2>conftest.er1
21754
grep -v '^ *+' conftest.er1 >conftest.err
21756
cat conftest.err >&5
21757
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758
(exit $ac_status); } &&
21759
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21760
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21761
(eval $ac_try) 2>&5
21763
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764
(exit $ac_status); }; } &&
21765
{ ac_try='test -s conftest.$ac_objext'
21766
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21767
(eval $ac_try) 2>&5
21769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770
(exit $ac_status); }; }; then
21771
ac_cv_type_mode_t=yes
21773
echo "$as_me: failed program was:" >&5
21774
sed 's/^/| /' conftest.$ac_ext >&5
21776
ac_cv_type_mode_t=no
21778
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21780
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21781
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21782
if test $ac_cv_type_mode_t = yes; then
21786
cat >>confdefs.h <<_ACEOF
21792
echo "$as_me:$LINENO: checking for off_t" >&5
21793
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21794
if test "${ac_cv_type_off_t+set}" = set; then
21795
echo $ECHO_N "(cached) $ECHO_C" >&6
21797
cat >conftest.$ac_ext <<_ACEOF
21800
cat confdefs.h >>conftest.$ac_ext
21801
cat >>conftest.$ac_ext <<_ACEOF
21802
/* end confdefs.h. */
21803
$ac_includes_default
21809
if (sizeof (off_t))
21815
rm -f conftest.$ac_objext
21816
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21817
(eval $ac_compile) 2>conftest.er1
21819
grep -v '^ *+' conftest.er1 >conftest.err
21821
cat conftest.err >&5
21822
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823
(exit $ac_status); } &&
21824
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21826
(eval $ac_try) 2>&5
21828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829
(exit $ac_status); }; } &&
21830
{ ac_try='test -s conftest.$ac_objext'
21831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832
(eval $ac_try) 2>&5
21834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835
(exit $ac_status); }; }; then
21836
ac_cv_type_off_t=yes
21838
echo "$as_me: failed program was:" >&5
21839
sed 's/^/| /' conftest.$ac_ext >&5
21841
ac_cv_type_off_t=no
21843
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21845
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21846
echo "${ECHO_T}$ac_cv_type_off_t" >&6
21847
if test $ac_cv_type_off_t = yes; then
21851
cat >>confdefs.h <<_ACEOF
21857
echo "$as_me:$LINENO: checking for pid_t" >&5
21858
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21859
if test "${ac_cv_type_pid_t+set}" = set; then
21860
echo $ECHO_N "(cached) $ECHO_C" >&6
21862
cat >conftest.$ac_ext <<_ACEOF
21865
cat confdefs.h >>conftest.$ac_ext
21866
cat >>conftest.$ac_ext <<_ACEOF
21867
/* end confdefs.h. */
21868
$ac_includes_default
21874
if (sizeof (pid_t))
21880
rm -f conftest.$ac_objext
21881
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21882
(eval $ac_compile) 2>conftest.er1
21884
grep -v '^ *+' conftest.er1 >conftest.err
21886
cat conftest.err >&5
21887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888
(exit $ac_status); } &&
21889
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21890
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891
(eval $ac_try) 2>&5
21893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894
(exit $ac_status); }; } &&
21895
{ ac_try='test -s conftest.$ac_objext'
21896
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21897
(eval $ac_try) 2>&5
21899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900
(exit $ac_status); }; }; then
21901
ac_cv_type_pid_t=yes
21903
echo "$as_me: failed program was:" >&5
21904
sed 's/^/| /' conftest.$ac_ext >&5
21906
ac_cv_type_pid_t=no
21908
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21910
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21911
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21912
if test $ac_cv_type_pid_t = yes; then
21916
cat >>confdefs.h <<_ACEOF
21922
echo "$as_me:$LINENO: checking for size_t" >&5
21923
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21924
if test "${ac_cv_type_size_t+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
$ac_includes_default
21939
if (sizeof (size_t))
21945
rm -f conftest.$ac_objext
21946
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21947
(eval $ac_compile) 2>conftest.er1
21949
grep -v '^ *+' conftest.er1 >conftest.err
21951
cat conftest.err >&5
21952
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953
(exit $ac_status); } &&
21954
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21955
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21956
(eval $ac_try) 2>&5
21958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959
(exit $ac_status); }; } &&
21960
{ ac_try='test -s conftest.$ac_objext'
21961
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21962
(eval $ac_try) 2>&5
21964
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965
(exit $ac_status); }; }; then
21966
ac_cv_type_size_t=yes
21968
echo "$as_me: failed program was:" >&5
21969
sed 's/^/| /' conftest.$ac_ext >&5
21971
ac_cv_type_size_t=no
21973
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21975
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21976
echo "${ECHO_T}$ac_cv_type_size_t" >&6
21977
if test $ac_cv_type_size_t = yes; then
21981
cat >>confdefs.h <<_ACEOF
21982
#define size_t unsigned
21988
echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21989
echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
21990
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21991
echo $ECHO_N "(cached) $ECHO_C" >&6
21993
cat >conftest.$ac_ext <<_ACEOF
21996
cat confdefs.h >>conftest.$ac_ext
21997
cat >>conftest.$ac_ext <<_ACEOF
21998
/* end confdefs.h. */
21999
$ac_includes_default
22003
static struct stat ac_aggr;
22004
if (ac_aggr.st_rdev)
22010
rm -f conftest.$ac_objext
22011
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22012
(eval $ac_compile) 2>conftest.er1
22014
grep -v '^ *+' conftest.er1 >conftest.err
22016
cat conftest.err >&5
22017
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018
(exit $ac_status); } &&
22019
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22020
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22021
(eval $ac_try) 2>&5
22023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024
(exit $ac_status); }; } &&
22025
{ ac_try='test -s conftest.$ac_objext'
22026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027
(eval $ac_try) 2>&5
22029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030
(exit $ac_status); }; }; then
22031
ac_cv_member_struct_stat_st_rdev=yes
22033
echo "$as_me: failed program was:" >&5
22034
sed 's/^/| /' conftest.$ac_ext >&5
22036
cat >conftest.$ac_ext <<_ACEOF
22039
cat confdefs.h >>conftest.$ac_ext
22040
cat >>conftest.$ac_ext <<_ACEOF
22041
/* end confdefs.h. */
22042
$ac_includes_default
22046
static struct stat ac_aggr;
22047
if (sizeof ac_aggr.st_rdev)
22053
rm -f conftest.$ac_objext
22054
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22055
(eval $ac_compile) 2>conftest.er1
22057
grep -v '^ *+' conftest.er1 >conftest.err
22059
cat conftest.err >&5
22060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061
(exit $ac_status); } &&
22062
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22063
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064
(eval $ac_try) 2>&5
22066
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067
(exit $ac_status); }; } &&
22068
{ ac_try='test -s conftest.$ac_objext'
22069
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22070
(eval $ac_try) 2>&5
22072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073
(exit $ac_status); }; }; then
22074
ac_cv_member_struct_stat_st_rdev=yes
22076
echo "$as_me: failed program was:" >&5
22077
sed 's/^/| /' conftest.$ac_ext >&5
22079
ac_cv_member_struct_stat_st_rdev=no
22081
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22083
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22085
echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22086
echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22087
if test $ac_cv_member_struct_stat_st_rdev = yes; then
22089
cat >>confdefs.h <<_ACEOF
22090
#define HAVE_STRUCT_STAT_ST_RDEV 1
22094
cat >>confdefs.h <<\_ACEOF
22095
#define HAVE_ST_RDEV 1
22101
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22102
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
22103
if test "${ac_cv_header_time+set}" = set; then
22104
echo $ECHO_N "(cached) $ECHO_C" >&6
22106
cat >conftest.$ac_ext <<_ACEOF
22109
cat confdefs.h >>conftest.$ac_ext
22110
cat >>conftest.$ac_ext <<_ACEOF
22111
/* end confdefs.h. */
22112
#include <sys/types.h>
22113
#include <sys/time.h>
22119
if ((struct tm *) 0)
22125
rm -f conftest.$ac_objext
22126
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22127
(eval $ac_compile) 2>conftest.er1
22129
grep -v '^ *+' conftest.er1 >conftest.err
22131
cat conftest.err >&5
22132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133
(exit $ac_status); } &&
22134
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22135
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22136
(eval $ac_try) 2>&5
22138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139
(exit $ac_status); }; } &&
22140
{ ac_try='test -s conftest.$ac_objext'
22141
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142
(eval $ac_try) 2>&5
22144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145
(exit $ac_status); }; }; then
22146
ac_cv_header_time=yes
22148
echo "$as_me: failed program was:" >&5
22149
sed 's/^/| /' conftest.$ac_ext >&5
22151
ac_cv_header_time=no
22153
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22155
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22156
echo "${ECHO_T}$ac_cv_header_time" >&6
22157
if test $ac_cv_header_time = yes; then
22159
cat >>confdefs.h <<\_ACEOF
22160
#define TIME_WITH_SYS_TIME 1
22165
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22166
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22167
if test "${ac_cv_struct_tm+set}" = set; then
22168
echo $ECHO_N "(cached) $ECHO_C" >&6
22170
cat >conftest.$ac_ext <<_ACEOF
22173
cat confdefs.h >>conftest.$ac_ext
22174
cat >>conftest.$ac_ext <<_ACEOF
22175
/* end confdefs.h. */
22176
#include <sys/types.h>
22182
struct tm *tp; tp->tm_sec;
22187
rm -f conftest.$ac_objext
22188
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22189
(eval $ac_compile) 2>conftest.er1
22191
grep -v '^ *+' conftest.er1 >conftest.err
22193
cat conftest.err >&5
22194
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195
(exit $ac_status); } &&
22196
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22197
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198
(eval $ac_try) 2>&5
22200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201
(exit $ac_status); }; } &&
22202
{ ac_try='test -s conftest.$ac_objext'
22203
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204
(eval $ac_try) 2>&5
22206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207
(exit $ac_status); }; }; then
22208
ac_cv_struct_tm=time.h
22210
echo "$as_me: failed program was:" >&5
22211
sed 's/^/| /' conftest.$ac_ext >&5
22213
ac_cv_struct_tm=sys/time.h
22215
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22217
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22218
echo "${ECHO_T}$ac_cv_struct_tm" >&6
22219
if test $ac_cv_struct_tm = sys/time.h; then
22221
cat >>confdefs.h <<\_ACEOF
22222
#define TM_IN_SYS_TIME 1
22228
echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
22229
echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
22230
if test "${ac_cv_type_getgroups+set}" = set; then
22231
echo $ECHO_N "(cached) $ECHO_C" >&6
22233
if test "$cross_compiling" = yes; then
22234
ac_cv_type_getgroups=cross
22236
cat >conftest.$ac_ext <<_ACEOF
22239
cat confdefs.h >>conftest.$ac_ext
22240
cat >>conftest.$ac_ext <<_ACEOF
22241
/* end confdefs.h. */
22242
/* Thanks to Mike Rendell for this test. */
22243
#include <sys/types.h>
22246
#define MAX(x, y) ((x) > (y) ? (x) : (y))
22251
gid_t gidset[NGID];
22253
union { gid_t gval; long lval; } val;
22256
for (i = 0; i < NGID; i++)
22257
gidset[i] = val.gval;
22258
n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
22260
/* Exit non-zero if getgroups seems to require an array of ints. This
22261
happens when gid_t is short but getgroups modifies an array of ints. */
22262
exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
22265
rm -f conftest$ac_exeext
22266
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22267
(eval $ac_link) 2>&5
22269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22271
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22272
(eval $ac_try) 2>&5
22274
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275
(exit $ac_status); }; }; then
22276
ac_cv_type_getgroups=gid_t
22278
echo "$as_me: program exited with status $ac_status" >&5
22279
echo "$as_me: failed program was:" >&5
22280
sed 's/^/| /' conftest.$ac_ext >&5
22282
( exit $ac_status )
22283
ac_cv_type_getgroups=int
22285
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22287
if test $ac_cv_type_getgroups = cross; then
22288
cat >conftest.$ac_ext <<_ACEOF
22291
cat confdefs.h >>conftest.$ac_ext
22292
cat >>conftest.$ac_ext <<_ACEOF
22293
/* end confdefs.h. */
22294
#include <unistd.h>
22297
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22298
$EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
22299
ac_cv_type_getgroups=gid_t
22301
ac_cv_type_getgroups=int
22307
echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
22308
echo "${ECHO_T}$ac_cv_type_getgroups" >&6
22310
cat >>confdefs.h <<_ACEOF
22311
#define GETGROUPS_T $ac_cv_type_getgroups
22315
if test $ac_cv_c_compiler_gnu = yes; then
22316
echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
22317
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
22318
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
22319
echo $ECHO_N "(cached) $ECHO_C" >&6
22321
ac_pattern="Autoconf.*'x'"
22322
cat >conftest.$ac_ext <<_ACEOF
22325
cat confdefs.h >>conftest.$ac_ext
22326
cat >>conftest.$ac_ext <<_ACEOF
22327
/* end confdefs.h. */
22331
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22332
$EGREP "$ac_pattern" >/dev/null 2>&1; then
22333
ac_cv_prog_gcc_traditional=yes
22335
ac_cv_prog_gcc_traditional=no
22340
if test $ac_cv_prog_gcc_traditional = no; then
22341
cat >conftest.$ac_ext <<_ACEOF
22344
cat confdefs.h >>conftest.$ac_ext
22345
cat >>conftest.$ac_ext <<_ACEOF
22346
/* end confdefs.h. */
22347
#include <termio.h>
22350
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22351
$EGREP "$ac_pattern" >/dev/null 2>&1; then
22352
ac_cv_prog_gcc_traditional=yes
22358
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
22359
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
22360
if test $ac_cv_prog_gcc_traditional = yes; then
22361
CC="$CC -traditional"
22365
echo "$as_me:$LINENO: checking for working memcmp" >&5
22366
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22367
if test "${ac_cv_func_memcmp_working+set}" = set; then
22368
echo $ECHO_N "(cached) $ECHO_C" >&6
22370
if test "$cross_compiling" = yes; then
22371
ac_cv_func_memcmp_working=no
22373
cat >conftest.$ac_ext <<_ACEOF
22376
cat confdefs.h >>conftest.$ac_ext
22377
cat >>conftest.$ac_ext <<_ACEOF
22378
/* end confdefs.h. */
22379
$ac_includes_default
22384
/* Some versions of memcmp are not 8-bit clean. */
22385
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22386
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22389
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22390
or more and with at least one buffer not starting on a 4-byte boundary.
22391
William Lewis provided this test program. */
22396
for (i = 0; i < 4; i++)
22400
strcpy (a, "--------01111111");
22401
strcpy (b, "--------10000000");
22402
if (memcmp (a, b, 16) >= 0)
22412
rm -f conftest$ac_exeext
22413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22414
(eval $ac_link) 2>&5
22416
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22418
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22419
(eval $ac_try) 2>&5
22421
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422
(exit $ac_status); }; }; then
22423
ac_cv_func_memcmp_working=yes
22425
echo "$as_me: program exited with status $ac_status" >&5
22426
echo "$as_me: failed program was:" >&5
22427
sed 's/^/| /' conftest.$ac_ext >&5
22429
( exit $ac_status )
22430
ac_cv_func_memcmp_working=no
22432
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22435
echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22436
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22437
test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22438
"memcmp.$ac_objext" | \
22439
*" memcmp.$ac_objext" | \
22440
"memcmp.$ac_objext "* | \
22441
*" memcmp.$ac_objext "* ) ;;
22442
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22446
echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
22447
echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
22448
if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
22449
echo $ECHO_N "(cached) $ECHO_C" >&6
22451
cat >conftest.$ac_ext <<_ACEOF
22454
cat confdefs.h >>conftest.$ac_ext
22455
cat >>conftest.$ac_ext <<_ACEOF
22456
/* end confdefs.h. */
22457
#include <sys/types.h>
22461
return makedev(0, 0);
22466
rm -f conftest.$ac_objext conftest$ac_exeext
22467
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22468
(eval $ac_link) 2>conftest.er1
22470
grep -v '^ *+' conftest.er1 >conftest.err
22472
cat conftest.err >&5
22473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474
(exit $ac_status); } &&
22475
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22476
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477
(eval $ac_try) 2>&5
22479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480
(exit $ac_status); }; } &&
22481
{ ac_try='test -s conftest$ac_exeext'
22482
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483
(eval $ac_try) 2>&5
22485
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486
(exit $ac_status); }; }; then
22487
ac_cv_header_sys_types_h_makedev=yes
22489
echo "$as_me: failed program was:" >&5
22490
sed 's/^/| /' conftest.$ac_ext >&5
22492
ac_cv_header_sys_types_h_makedev=no
22494
rm -f conftest.err conftest.$ac_objext \
22495
conftest$ac_exeext conftest.$ac_ext
22498
echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
22499
echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
22501
if test $ac_cv_header_sys_types_h_makedev = no; then
22502
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22503
echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22504
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
22505
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22506
echo $ECHO_N "(cached) $ECHO_C" >&6
22508
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22509
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
22511
# Is the header compilable?
22512
echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
22513
echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
22514
cat >conftest.$ac_ext <<_ACEOF
22517
cat confdefs.h >>conftest.$ac_ext
22518
cat >>conftest.$ac_ext <<_ACEOF
22519
/* end confdefs.h. */
22520
$ac_includes_default
22521
#include <sys/mkdev.h>
22523
rm -f conftest.$ac_objext
22524
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22525
(eval $ac_compile) 2>conftest.er1
22527
grep -v '^ *+' conftest.er1 >conftest.err
22529
cat conftest.err >&5
22530
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531
(exit $ac_status); } &&
22532
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22533
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534
(eval $ac_try) 2>&5
22536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537
(exit $ac_status); }; } &&
22538
{ ac_try='test -s conftest.$ac_objext'
22539
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540
(eval $ac_try) 2>&5
22542
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543
(exit $ac_status); }; }; then
22544
ac_header_compiler=yes
22546
echo "$as_me: failed program was:" >&5
22547
sed 's/^/| /' conftest.$ac_ext >&5
22549
ac_header_compiler=no
22551
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22552
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22553
echo "${ECHO_T}$ac_header_compiler" >&6
22555
# Is the header present?
22556
echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
22557
echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
22558
cat >conftest.$ac_ext <<_ACEOF
22561
cat confdefs.h >>conftest.$ac_ext
22562
cat >>conftest.$ac_ext <<_ACEOF
22563
/* end confdefs.h. */
22564
#include <sys/mkdev.h>
22566
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22567
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22569
grep -v '^ *+' conftest.er1 >conftest.err
22571
cat conftest.err >&5
22572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573
(exit $ac_status); } >/dev/null; then
22574
if test -s conftest.err; then
22575
ac_cpp_err=$ac_c_preproc_warn_flag
22576
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22583
if test -z "$ac_cpp_err"; then
22584
ac_header_preproc=yes
22586
echo "$as_me: failed program was:" >&5
22587
sed 's/^/| /' conftest.$ac_ext >&5
22589
ac_header_preproc=no
22591
rm -f conftest.err conftest.$ac_ext
22592
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22593
echo "${ECHO_T}$ac_header_preproc" >&6
22595
# So? What about this header?
22596
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22598
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
22599
echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22600
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
22601
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
22602
ac_header_preproc=yes
22605
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
22606
echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
22607
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
22608
echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
22609
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
22610
echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
22611
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
22612
echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
22613
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
22614
echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
22615
{ echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
22616
echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
22619
## ------------------------------------------ ##
22620
## Report this to the AC_PACKAGE_NAME lists. ##
22621
## ------------------------------------------ ##
22624
sed "s/^/$as_me: WARNING: /" >&2
22627
echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22628
echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
22629
if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22630
echo $ECHO_N "(cached) $ECHO_C" >&6
22632
ac_cv_header_sys_mkdev_h=$ac_header_preproc
22634
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22635
echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
22638
if test $ac_cv_header_sys_mkdev_h = yes; then
22640
cat >>confdefs.h <<\_ACEOF
22641
#define MAJOR_IN_MKDEV 1
22648
if test $ac_cv_header_sys_mkdev_h = no; then
22649
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22650
echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22651
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
22652
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22653
echo $ECHO_N "(cached) $ECHO_C" >&6
22655
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22656
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
22658
# Is the header compilable?
22659
echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
22660
echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
22661
cat >conftest.$ac_ext <<_ACEOF
22664
cat confdefs.h >>conftest.$ac_ext
22665
cat >>conftest.$ac_ext <<_ACEOF
22666
/* end confdefs.h. */
22667
$ac_includes_default
22668
#include <sys/sysmacros.h>
22670
rm -f conftest.$ac_objext
22671
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22672
(eval $ac_compile) 2>conftest.er1
22674
grep -v '^ *+' conftest.er1 >conftest.err
22676
cat conftest.err >&5
22677
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678
(exit $ac_status); } &&
22679
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22680
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22681
(eval $ac_try) 2>&5
22683
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684
(exit $ac_status); }; } &&
22685
{ ac_try='test -s conftest.$ac_objext'
22686
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22687
(eval $ac_try) 2>&5
22689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690
(exit $ac_status); }; }; then
22691
ac_header_compiler=yes
22693
echo "$as_me: failed program was:" >&5
22694
sed 's/^/| /' conftest.$ac_ext >&5
22696
ac_header_compiler=no
22698
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22699
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22700
echo "${ECHO_T}$ac_header_compiler" >&6
22702
# Is the header present?
22703
echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22704
echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
22705
cat >conftest.$ac_ext <<_ACEOF
22708
cat confdefs.h >>conftest.$ac_ext
22709
cat >>conftest.$ac_ext <<_ACEOF
22710
/* end confdefs.h. */
22711
#include <sys/sysmacros.h>
22713
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22714
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22716
grep -v '^ *+' conftest.er1 >conftest.err
22718
cat conftest.err >&5
22719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720
(exit $ac_status); } >/dev/null; then
22721
if test -s conftest.err; then
22722
ac_cpp_err=$ac_c_preproc_warn_flag
22723
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22730
if test -z "$ac_cpp_err"; then
22731
ac_header_preproc=yes
22733
echo "$as_me: failed program was:" >&5
22734
sed 's/^/| /' conftest.$ac_ext >&5
22736
ac_header_preproc=no
22738
rm -f conftest.err conftest.$ac_ext
22739
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22740
echo "${ECHO_T}$ac_header_preproc" >&6
22742
# So? What about this header?
22743
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22745
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22746
echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22747
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22748
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22749
ac_header_preproc=yes
22752
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22753
echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22754
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
22755
echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
22756
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22757
echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22758
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
22759
echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
22760
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22761
echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22762
{ echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22763
echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22766
## ------------------------------------------ ##
22767
## Report this to the AC_PACKAGE_NAME lists. ##
22768
## ------------------------------------------ ##
22771
sed "s/^/$as_me: WARNING: /" >&2
22774
echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22775
echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
22776
if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22777
echo $ECHO_N "(cached) $ECHO_C" >&6
22779
ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22781
echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22782
echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
22785
if test $ac_cv_header_sys_sysmacros_h = yes; then
22787
cat >>confdefs.h <<\_ACEOF
22788
#define MAJOR_IN_SYSMACROS 1
22799
for ac_header in stdlib.h unistd.h
22801
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22802
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22803
echo "$as_me:$LINENO: checking for $ac_header" >&5
22804
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22805
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22806
echo $ECHO_N "(cached) $ECHO_C" >&6
22808
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22809
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22811
# Is the header compilable?
22812
echo "$as_me:$LINENO: checking $ac_header usability" >&5
22813
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22814
cat >conftest.$ac_ext <<_ACEOF
22817
cat confdefs.h >>conftest.$ac_ext
22818
cat >>conftest.$ac_ext <<_ACEOF
22819
/* end confdefs.h. */
22820
$ac_includes_default
22821
#include <$ac_header>
22823
rm -f conftest.$ac_objext
22824
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22825
(eval $ac_compile) 2>conftest.er1
22827
grep -v '^ *+' conftest.er1 >conftest.err
22829
cat conftest.err >&5
22830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831
(exit $ac_status); } &&
22832
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22833
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834
(eval $ac_try) 2>&5
22836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837
(exit $ac_status); }; } &&
22838
{ ac_try='test -s conftest.$ac_objext'
22839
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22840
(eval $ac_try) 2>&5
22842
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843
(exit $ac_status); }; }; then
22844
ac_header_compiler=yes
22846
echo "$as_me: failed program was:" >&5
22847
sed 's/^/| /' conftest.$ac_ext >&5
22849
ac_header_compiler=no
22851
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22852
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22853
echo "${ECHO_T}$ac_header_compiler" >&6
22855
# Is the header present?
22856
echo "$as_me:$LINENO: checking $ac_header presence" >&5
22857
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22858
cat >conftest.$ac_ext <<_ACEOF
22861
cat confdefs.h >>conftest.$ac_ext
22862
cat >>conftest.$ac_ext <<_ACEOF
22863
/* end confdefs.h. */
22864
#include <$ac_header>
22866
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22867
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22869
grep -v '^ *+' conftest.er1 >conftest.err
22871
cat conftest.err >&5
22872
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873
(exit $ac_status); } >/dev/null; then
22874
if test -s conftest.err; then
22875
ac_cpp_err=$ac_c_preproc_warn_flag
22876
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22883
if test -z "$ac_cpp_err"; then
22884
ac_header_preproc=yes
22886
echo "$as_me: failed program was:" >&5
22887
sed 's/^/| /' conftest.$ac_ext >&5
22889
ac_header_preproc=no
22891
rm -f conftest.err conftest.$ac_ext
22892
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22893
echo "${ECHO_T}$ac_header_preproc" >&6
22895
# So? What about this header?
22896
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22898
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22899
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22900
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22901
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22902
ac_header_preproc=yes
22905
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22906
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22907
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22908
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22909
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22910
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22911
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22912
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22913
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22914
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22915
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22916
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22919
## ------------------------------------------ ##
22920
## Report this to the AC_PACKAGE_NAME lists. ##
22921
## ------------------------------------------ ##
22924
sed "s/^/$as_me: WARNING: /" >&2
22927
echo "$as_me:$LINENO: checking for $ac_header" >&5
22928
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22929
if eval "test \"\${$as_ac_Header+set}\" = set"; then
22930
echo $ECHO_N "(cached) $ECHO_C" >&6
22932
eval "$as_ac_Header=\$ac_header_preproc"
22934
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22935
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22938
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22939
cat >>confdefs.h <<_ACEOF
22940
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22948
for ac_func in getpagesize
22950
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22951
echo "$as_me:$LINENO: checking for $ac_func" >&5
22952
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22953
if eval "test \"\${$as_ac_var+set}\" = set"; then
22954
echo $ECHO_N "(cached) $ECHO_C" >&6
22956
cat >conftest.$ac_ext <<_ACEOF
22959
cat confdefs.h >>conftest.$ac_ext
22960
cat >>conftest.$ac_ext <<_ACEOF
22961
/* end confdefs.h. */
22962
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22963
For example, HP-UX 11i <limits.h> declares gettimeofday. */
22964
#define $ac_func innocuous_$ac_func
22966
/* System header to define __stub macros and hopefully few prototypes,
22967
which can conflict with char $ac_func (); below.
22968
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22969
<limits.h> exists even on freestanding compilers. */
22972
# include <limits.h>
22974
# include <assert.h>
22979
/* Override any gcc2 internal prototype to avoid an error. */
22984
/* We use char because int might match the return type of a gcc2
22985
builtin and then its argument prototype would still apply. */
22987
/* The GNU C library defines this for functions which it implements
22988
to always fail with ENOSYS. Some functions are actually named
22989
something starting with __ and the normal name is an alias. */
22990
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22993
char (*f) () = $ac_func;
23002
return f != $ac_func;
23007
rm -f conftest.$ac_objext conftest$ac_exeext
23008
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23009
(eval $ac_link) 2>conftest.er1
23011
grep -v '^ *+' conftest.er1 >conftest.err
23013
cat conftest.err >&5
23014
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015
(exit $ac_status); } &&
23016
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23017
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018
(eval $ac_try) 2>&5
23020
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021
(exit $ac_status); }; } &&
23022
{ ac_try='test -s conftest$ac_exeext'
23023
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024
(eval $ac_try) 2>&5
23026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027
(exit $ac_status); }; }; then
23028
eval "$as_ac_var=yes"
23030
echo "$as_me: failed program was:" >&5
23031
sed 's/^/| /' conftest.$ac_ext >&5
23033
eval "$as_ac_var=no"
23035
rm -f conftest.err conftest.$ac_objext \
23036
conftest$ac_exeext conftest.$ac_ext
23038
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23039
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23040
if test `eval echo '${'$as_ac_var'}'` = yes; then
23041
cat >>confdefs.h <<_ACEOF
23042
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23048
echo "$as_me:$LINENO: checking for working mmap" >&5
23049
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23050
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23051
echo $ECHO_N "(cached) $ECHO_C" >&6
23053
if test "$cross_compiling" = yes; then
23054
ac_cv_func_mmap_fixed_mapped=no
23056
cat >conftest.$ac_ext <<_ACEOF
23059
cat confdefs.h >>conftest.$ac_ext
23060
cat >>conftest.$ac_ext <<_ACEOF
23061
/* end confdefs.h. */
23062
$ac_includes_default
23063
/* malloc might have been renamed as rpl_malloc. */
23066
/* Thanks to Mike Haertel and Jim Avera for this test.
23067
Here is a matrix of mmap possibilities:
23068
mmap private not fixed
23069
mmap private fixed at somewhere currently unmapped
23070
mmap private fixed at somewhere already mapped
23071
mmap shared not fixed
23072
mmap shared fixed at somewhere currently unmapped
23073
mmap shared fixed at somewhere already mapped
23074
For private mappings, we should verify that changes cannot be read()
23075
back from the file, nor mmap's back from the file at a different
23076
address. (There have been systems where private was not correctly
23077
implemented like the infamous i386 svr4.0, and systems where the
23078
VM page cache was not coherent with the file system buffer cache
23079
like early versions of FreeBSD and possibly contemporary NetBSD.)
23080
For shared mappings, we should conversely verify that changes get
23081
propagated back to all the places they're supposed to be.
23083
Grep wants private fixed already mapped.
23084
The main things grep needs to know about mmap are:
23085
* does it exist and is it safe to write into the mmap'd area
23086
* how to use it (BSD variants) */
23089
#include <sys/mman.h>
23091
#if !STDC_HEADERS && !HAVE_STDLIB_H
23095
/* This mess was copied from the GNU getpagesize.h. */
23096
#if !HAVE_GETPAGESIZE
23097
/* Assume that all systems that can run configure have sys/param.h. */
23098
# if !HAVE_SYS_PARAM_H
23099
# define HAVE_SYS_PARAM_H 1
23102
# ifdef _SC_PAGESIZE
23103
# define getpagesize() sysconf(_SC_PAGESIZE)
23104
# else /* no _SC_PAGESIZE */
23105
# if HAVE_SYS_PARAM_H
23106
# include <sys/param.h>
23107
# ifdef EXEC_PAGESIZE
23108
# define getpagesize() EXEC_PAGESIZE
23109
# else /* no EXEC_PAGESIZE */
23111
# define getpagesize() NBPG * CLSIZE
23114
# endif /* no CLSIZE */
23115
# else /* no NBPG */
23117
# define getpagesize() NBPC
23118
# else /* no NBPC */
23120
# define getpagesize() PAGESIZE
23121
# endif /* PAGESIZE */
23122
# endif /* no NBPC */
23123
# endif /* no NBPG */
23124
# endif /* no EXEC_PAGESIZE */
23125
# else /* no HAVE_SYS_PARAM_H */
23126
# define getpagesize() 8192 /* punt totally */
23127
# endif /* no HAVE_SYS_PARAM_H */
23128
# endif /* no _SC_PAGESIZE */
23130
#endif /* no HAVE_GETPAGESIZE */
23135
char *data, *data2, *data3;
23139
pagesize = getpagesize ();
23141
/* First, make a file with some known garbage in it. */
23142
data = (char *) malloc (pagesize);
23145
for (i = 0; i < pagesize; ++i)
23146
*(data + i) = rand ();
23148
fd = creat ("conftest.mmap", 0600);
23151
if (write (fd, data, pagesize) != pagesize)
23155
/* Next, try to mmap the file at a fixed address which already has
23156
something else allocated at it. If we can, also make sure that
23157
we see the same garbage. */
23158
fd = open ("conftest.mmap", O_RDWR);
23161
data2 = (char *) malloc (2 * pagesize);
23164
data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
23165
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23166
MAP_PRIVATE | MAP_FIXED, fd, 0L))
23168
for (i = 0; i < pagesize; ++i)
23169
if (*(data + i) != *(data2 + i))
23172
/* Finally, make sure that changes to the mapped area do not
23173
percolate back to the file as seen by read(). (This is a bug on
23174
some variants of i386 svr4.0.) */
23175
for (i = 0; i < pagesize; ++i)
23176
*(data2 + i) = *(data2 + i) + 1;
23177
data3 = (char *) malloc (pagesize);
23180
if (read (fd, data3, pagesize) != pagesize)
23182
for (i = 0; i < pagesize; ++i)
23183
if (*(data + i) != *(data3 + i))
23189
rm -f conftest$ac_exeext
23190
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23191
(eval $ac_link) 2>&5
23193
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23195
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23196
(eval $ac_try) 2>&5
23198
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199
(exit $ac_status); }; }; then
23200
ac_cv_func_mmap_fixed_mapped=yes
23202
echo "$as_me: program exited with status $ac_status" >&5
23203
echo "$as_me: failed program was:" >&5
23204
sed 's/^/| /' conftest.$ac_ext >&5
23206
( exit $ac_status )
23207
ac_cv_func_mmap_fixed_mapped=no
23209
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23212
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23213
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23214
if test $ac_cv_func_mmap_fixed_mapped = yes; then
23216
cat >>confdefs.h <<\_ACEOF
23217
#define HAVE_MMAP 1
23221
rm -f conftest.mmap
23223
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23224
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23225
if test "${ac_cv_type_signal+set}" = set; then
23226
echo $ECHO_N "(cached) $ECHO_C" >&6
23228
cat >conftest.$ac_ext <<_ACEOF
23231
cat confdefs.h >>conftest.$ac_ext
23232
cat >>conftest.$ac_ext <<_ACEOF
23233
/* end confdefs.h. */
23234
#include <sys/types.h>
23235
#include <signal.h>
23240
extern "C" void (*signal (int, void (*)(int)))(int);
23242
void (*signal ()) ();
23253
rm -f conftest.$ac_objext
23254
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23255
(eval $ac_compile) 2>conftest.er1
23257
grep -v '^ *+' conftest.er1 >conftest.err
23259
cat conftest.err >&5
23260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261
(exit $ac_status); } &&
23262
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23263
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264
(eval $ac_try) 2>&5
23266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267
(exit $ac_status); }; } &&
23268
{ ac_try='test -s conftest.$ac_objext'
23269
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270
(eval $ac_try) 2>&5
23272
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273
(exit $ac_status); }; }; then
23274
ac_cv_type_signal=void
23276
echo "$as_me: failed program was:" >&5
23277
sed 's/^/| /' conftest.$ac_ext >&5
23279
ac_cv_type_signal=int
23281
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23283
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23284
echo "${ECHO_T}$ac_cv_type_signal" >&6
23286
cat >>confdefs.h <<_ACEOF
23287
#define RETSIGTYPE $ac_cv_type_signal
23291
echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5
23292
echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6
23293
if test "${ac_cv_func_utime_null+set}" = set; then
23294
echo $ECHO_N "(cached) $ECHO_C" >&6
23296
rm -f conftest.data; >conftest.data
23297
# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong.
23298
if test "$cross_compiling" = yes; then
23299
ac_cv_func_utime_null=no
23301
cat >conftest.$ac_ext <<_ACEOF
23304
cat confdefs.h >>conftest.$ac_ext
23305
cat >>conftest.$ac_ext <<_ACEOF
23306
/* end confdefs.h. */
23307
$ac_includes_default
23312
exit (!(stat ("conftest.data", &s) == 0
23313
&& utime ("conftest.data", (long *)0) == 0
23314
&& stat ("conftest.data", &t) == 0
23315
&& t.st_mtime >= s.st_mtime
23316
&& t.st_mtime - s.st_mtime < 120));
23321
rm -f conftest$ac_exeext
23322
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23323
(eval $ac_link) 2>&5
23325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23327
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23328
(eval $ac_try) 2>&5
23330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331
(exit $ac_status); }; }; then
23332
ac_cv_func_utime_null=yes
23334
echo "$as_me: program exited with status $ac_status" >&5
23335
echo "$as_me: failed program was:" >&5
23336
sed 's/^/| /' conftest.$ac_ext >&5
23338
( exit $ac_status )
23339
ac_cv_func_utime_null=no
23341
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23345
echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5
23346
echo "${ECHO_T}$ac_cv_func_utime_null" >&6
23347
if test $ac_cv_func_utime_null = yes; then
23349
cat >>confdefs.h <<\_ACEOF
23350
#define HAVE_UTIME_NULL 1
23354
rm -f conftest.data
23356
echo "$as_me:$LINENO: checking for wait3 that fills in rusage" >&5
23357
echo $ECHO_N "checking for wait3 that fills in rusage... $ECHO_C" >&6
23358
if test "${ac_cv_func_wait3_rusage+set}" = set; then
23359
echo $ECHO_N "(cached) $ECHO_C" >&6
23361
if test "$cross_compiling" = yes; then
23362
ac_cv_func_wait3_rusage=no
23364
cat >conftest.$ac_ext <<_ACEOF
23367
cat confdefs.h >>conftest.$ac_ext
23368
cat >>conftest.$ac_ext <<_ACEOF
23369
/* end confdefs.h. */
23370
#include <sys/types.h>
23371
#include <sys/time.h>
23372
#include <sys/resource.h>
23374
/* HP-UX has wait3 but does not fill in rusage at all. */
23380
/* Use a field that we can force nonzero --
23381
voluntary context switches.
23382
For systems like NeXT and OSF/1 that don't set it,
23383
also use the system CPU time. And page faults (I/O) for Linux. */
23385
r.ru_stime.tv_sec = 0;
23386
r.ru_stime.tv_usec = 0;
23387
r.ru_majflt = r.ru_minflt = 0;
23390
case 0: /* Child. */
23391
sleep(1); /* Give up the CPU. */
23394
case -1: /* What can we do? */
23397
default: /* Parent. */
23399
/* Avoid "text file busy" from rm on fast HP-UX machines. */
23401
exit (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
23402
&& r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
23406
rm -f conftest$ac_exeext
23407
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23408
(eval $ac_link) 2>&5
23410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23412
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23413
(eval $ac_try) 2>&5
23415
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23416
(exit $ac_status); }; }; then
23417
ac_cv_func_wait3_rusage=yes
23419
echo "$as_me: program exited with status $ac_status" >&5
23420
echo "$as_me: failed program was:" >&5
23421
sed 's/^/| /' conftest.$ac_ext >&5
23423
( exit $ac_status )
23424
ac_cv_func_wait3_rusage=no
23426
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23429
echo "$as_me:$LINENO: result: $ac_cv_func_wait3_rusage" >&5
23430
echo "${ECHO_T}$ac_cv_func_wait3_rusage" >&6
23431
if test $ac_cv_func_wait3_rusage = yes; then
23433
cat >>confdefs.h <<\_ACEOF
23434
#define HAVE_WAIT3 1
23454
for ac_func in flock getcwd gethostname gettimeofday getusershell mkdir rmdir select socket strdup strstr strtoul setpgrp strchr memcpy
23456
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23457
echo "$as_me:$LINENO: checking for $ac_func" >&5
23458
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23459
if eval "test \"\${$as_ac_var+set}\" = set"; then
23460
echo $ECHO_N "(cached) $ECHO_C" >&6
23462
cat >conftest.$ac_ext <<_ACEOF
23465
cat confdefs.h >>conftest.$ac_ext
23466
cat >>conftest.$ac_ext <<_ACEOF
23467
/* end confdefs.h. */
23468
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23469
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23470
#define $ac_func innocuous_$ac_func
23472
/* System header to define __stub macros and hopefully few prototypes,
23473
which can conflict with char $ac_func (); below.
23474
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23475
<limits.h> exists even on freestanding compilers. */
23478
# include <limits.h>
23480
# include <assert.h>
23485
/* Override any gcc2 internal prototype to avoid an error. */
23490
/* We use char because int might match the return type of a gcc2
23491
builtin and then its argument prototype would still apply. */
23493
/* The GNU C library defines this for functions which it implements
23494
to always fail with ENOSYS. Some functions are actually named
23495
something starting with __ and the normal name is an alias. */
23496
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23499
char (*f) () = $ac_func;
23508
return f != $ac_func;
23513
rm -f conftest.$ac_objext conftest$ac_exeext
23514
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23515
(eval $ac_link) 2>conftest.er1
23517
grep -v '^ *+' conftest.er1 >conftest.err
23519
cat conftest.err >&5
23520
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521
(exit $ac_status); } &&
23522
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23523
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524
(eval $ac_try) 2>&5
23526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527
(exit $ac_status); }; } &&
23528
{ ac_try='test -s conftest$ac_exeext'
23529
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23530
(eval $ac_try) 2>&5
23532
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533
(exit $ac_status); }; }; then
23534
eval "$as_ac_var=yes"
23536
echo "$as_me: failed program was:" >&5
23537
sed 's/^/| /' conftest.$ac_ext >&5
23539
eval "$as_ac_var=no"
23541
rm -f conftest.err conftest.$ac_objext \
23542
conftest$ac_exeext conftest.$ac_ext
23544
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23545
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23546
if test `eval echo '${'$as_ac_var'}'` = yes; then
23547
cat >>confdefs.h <<_ACEOF
23548
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23554
echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23555
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
23556
if test "${ac_cv_func_setpgrp_void+set}" = set; then
23557
echo $ECHO_N "(cached) $ECHO_C" >&6
23559
if test "$cross_compiling" = yes; then
23560
{ { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
23561
echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
23562
{ (exit 1); exit 1; }; }
23564
cat >conftest.$ac_ext <<_ACEOF
23567
cat confdefs.h >>conftest.$ac_ext
23568
cat >>conftest.$ac_ext <<_ACEOF
23569
/* end confdefs.h. */
23571
# include <unistd.h>
23577
/* If this system has a BSD-style setpgrp which takes arguments,
23578
setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23579
exit successfully. */
23580
exit (setpgrp (1,1) == -1 ? 0 : 1);
23585
rm -f conftest$ac_exeext
23586
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23587
(eval $ac_link) 2>&5
23589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23591
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592
(eval $ac_try) 2>&5
23594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595
(exit $ac_status); }; }; then
23596
ac_cv_func_setpgrp_void=no
23598
echo "$as_me: program exited with status $ac_status" >&5
23599
echo "$as_me: failed program was:" >&5
23600
sed 's/^/| /' conftest.$ac_ext >&5
23602
( exit $ac_status )
23603
ac_cv_func_setpgrp_void=yes
23605
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23608
echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23609
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
23610
if test $ac_cv_func_setpgrp_void = yes; then
23612
cat >>confdefs.h <<\_ACEOF
23613
#define SETPGRP_VOID 1
23622
for ac_func in snprintf vsnprintf
23624
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23625
echo "$as_me:$LINENO: checking for $ac_func" >&5
23626
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23627
if eval "test \"\${$as_ac_var+set}\" = set"; then
23628
echo $ECHO_N "(cached) $ECHO_C" >&6
23630
cat >conftest.$ac_ext <<_ACEOF
23633
cat confdefs.h >>conftest.$ac_ext
23634
cat >>conftest.$ac_ext <<_ACEOF
23635
/* end confdefs.h. */
23636
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23637
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23638
#define $ac_func innocuous_$ac_func
23640
/* System header to define __stub macros and hopefully few prototypes,
23641
which can conflict with char $ac_func (); below.
23642
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23643
<limits.h> exists even on freestanding compilers. */
23646
# include <limits.h>
23648
# include <assert.h>
23653
/* Override any gcc2 internal prototype to avoid an error. */
23658
/* We use char because int might match the return type of a gcc2
23659
builtin and then its argument prototype would still apply. */
23661
/* The GNU C library defines this for functions which it implements
23662
to always fail with ENOSYS. Some functions are actually named
23663
something starting with __ and the normal name is an alias. */
23664
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23667
char (*f) () = $ac_func;
23676
return f != $ac_func;
23681
rm -f conftest.$ac_objext conftest$ac_exeext
23682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23683
(eval $ac_link) 2>conftest.er1
23685
grep -v '^ *+' conftest.er1 >conftest.err
23687
cat conftest.err >&5
23688
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689
(exit $ac_status); } &&
23690
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23691
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23692
(eval $ac_try) 2>&5
23694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695
(exit $ac_status); }; } &&
23696
{ ac_try='test -s conftest$ac_exeext'
23697
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23698
(eval $ac_try) 2>&5
23700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701
(exit $ac_status); }; }; then
23702
eval "$as_ac_var=yes"
23704
echo "$as_me: failed program was:" >&5
23705
sed 's/^/| /' conftest.$ac_ext >&5
23707
eval "$as_ac_var=no"
23709
rm -f conftest.err conftest.$ac_objext \
23710
conftest$ac_exeext conftest.$ac_ext
23712
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23713
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23714
if test `eval echo '${'$as_ac_var'}'` = yes; then
23715
cat >>confdefs.h <<_ACEOF
23716
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23725
for ac_header in stdarg.h varargs.h
23727
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23728
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23729
echo "$as_me:$LINENO: checking for $ac_header" >&5
23730
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23731
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23732
echo $ECHO_N "(cached) $ECHO_C" >&6
23734
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23735
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23737
# Is the header compilable?
23738
echo "$as_me:$LINENO: checking $ac_header usability" >&5
23739
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23740
cat >conftest.$ac_ext <<_ACEOF
23743
cat confdefs.h >>conftest.$ac_ext
23744
cat >>conftest.$ac_ext <<_ACEOF
23745
/* end confdefs.h. */
23746
$ac_includes_default
23747
#include <$ac_header>
23749
rm -f conftest.$ac_objext
23750
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23751
(eval $ac_compile) 2>conftest.er1
23753
grep -v '^ *+' conftest.er1 >conftest.err
23755
cat conftest.err >&5
23756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757
(exit $ac_status); } &&
23758
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23759
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23760
(eval $ac_try) 2>&5
23762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763
(exit $ac_status); }; } &&
23764
{ ac_try='test -s conftest.$ac_objext'
23765
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23766
(eval $ac_try) 2>&5
23768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769
(exit $ac_status); }; }; then
23770
ac_header_compiler=yes
23772
echo "$as_me: failed program was:" >&5
23773
sed 's/^/| /' conftest.$ac_ext >&5
23775
ac_header_compiler=no
23777
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23778
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23779
echo "${ECHO_T}$ac_header_compiler" >&6
23781
# Is the header present?
23782
echo "$as_me:$LINENO: checking $ac_header presence" >&5
23783
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23784
cat >conftest.$ac_ext <<_ACEOF
23787
cat confdefs.h >>conftest.$ac_ext
23788
cat >>conftest.$ac_ext <<_ACEOF
23789
/* end confdefs.h. */
23790
#include <$ac_header>
23792
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23793
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23795
grep -v '^ *+' conftest.er1 >conftest.err
23797
cat conftest.err >&5
23798
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799
(exit $ac_status); } >/dev/null; then
23800
if test -s conftest.err; then
23801
ac_cpp_err=$ac_c_preproc_warn_flag
23802
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23809
if test -z "$ac_cpp_err"; then
23810
ac_header_preproc=yes
23812
echo "$as_me: failed program was:" >&5
23813
sed 's/^/| /' conftest.$ac_ext >&5
23815
ac_header_preproc=no
23817
rm -f conftest.err conftest.$ac_ext
23818
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23819
echo "${ECHO_T}$ac_header_preproc" >&6
23821
# So? What about this header?
23822
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23824
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23825
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23826
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23827
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23828
ac_header_preproc=yes
23831
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23832
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23833
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23834
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23835
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23836
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23837
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23838
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23839
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23840
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23841
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23842
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23845
## ------------------------------------------ ##
23846
## Report this to the AC_PACKAGE_NAME lists. ##
23847
## ------------------------------------------ ##
23850
sed "s/^/$as_me: WARNING: /" >&2
23853
echo "$as_me:$LINENO: checking for $ac_header" >&5
23854
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23855
if eval "test \"\${$as_ac_Header+set}\" = set"; then
23856
echo $ECHO_N "(cached) $ECHO_C" >&6
23858
eval "$as_ac_Header=\$ac_header_preproc"
23860
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23861
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23864
if test `eval echo '${'$as_ac_Header'}'` = yes; then
23865
cat >>confdefs.h <<_ACEOF
23866
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23875
for ac_func in strerror
23877
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23878
echo "$as_me:$LINENO: checking for $ac_func" >&5
23879
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23880
if eval "test \"\${$as_ac_var+set}\" = set"; then
23881
echo $ECHO_N "(cached) $ECHO_C" >&6
23883
cat >conftest.$ac_ext <<_ACEOF
23886
cat confdefs.h >>conftest.$ac_ext
23887
cat >>conftest.$ac_ext <<_ACEOF
23888
/* end confdefs.h. */
23889
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23890
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23891
#define $ac_func innocuous_$ac_func
23893
/* System header to define __stub macros and hopefully few prototypes,
23894
which can conflict with char $ac_func (); below.
23895
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23896
<limits.h> exists even on freestanding compilers. */
23899
# include <limits.h>
23901
# include <assert.h>
23906
/* Override any gcc2 internal prototype to avoid an error. */
23911
/* We use char because int might match the return type of a gcc2
23912
builtin and then its argument prototype would still apply. */
23914
/* The GNU C library defines this for functions which it implements
23915
to always fail with ENOSYS. Some functions are actually named
23916
something starting with __ and the normal name is an alias. */
23917
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23920
char (*f) () = $ac_func;
23929
return f != $ac_func;
23934
rm -f conftest.$ac_objext conftest$ac_exeext
23935
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23936
(eval $ac_link) 2>conftest.er1
23938
grep -v '^ *+' conftest.er1 >conftest.err
23940
cat conftest.err >&5
23941
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942
(exit $ac_status); } &&
23943
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23944
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23945
(eval $ac_try) 2>&5
23947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23948
(exit $ac_status); }; } &&
23949
{ ac_try='test -s conftest$ac_exeext'
23950
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23951
(eval $ac_try) 2>&5
23953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954
(exit $ac_status); }; }; then
23955
eval "$as_ac_var=yes"
23957
echo "$as_me: failed program was:" >&5
23958
sed 's/^/| /' conftest.$ac_ext >&5
23960
eval "$as_ac_var=no"
23962
rm -f conftest.err conftest.$ac_objext \
23963
conftest$ac_exeext conftest.$ac_ext
23965
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23966
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23967
if test `eval echo '${'$as_ac_var'}'` = yes; then
23968
cat >>confdefs.h <<_ACEOF
23969
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23975
echo "$as_me:$LINENO: checking for errno" >&5
23976
echo $ECHO_N "checking for errno... $ECHO_C" >&6
23977
if test "${ac_cv_errno+set}" = set; then
23978
echo $ECHO_N "(cached) $ECHO_C" >&6
23981
cat >conftest.$ac_ext <<_ACEOF
23984
cat confdefs.h >>conftest.$ac_ext
23985
cat >>conftest.$ac_ext <<_ACEOF
23986
/* end confdefs.h. */
23991
extern int errno; return (errno);
23996
rm -f conftest.$ac_objext conftest$ac_exeext
23997
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23998
(eval $ac_link) 2>conftest.er1
24000
grep -v '^ *+' conftest.er1 >conftest.err
24002
cat conftest.err >&5
24003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004
(exit $ac_status); } &&
24005
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24006
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24007
(eval $ac_try) 2>&5
24009
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010
(exit $ac_status); }; } &&
24011
{ ac_try='test -s conftest$ac_exeext'
24012
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24013
(eval $ac_try) 2>&5
24015
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016
(exit $ac_status); }; }; then
24019
echo "$as_me: failed program was:" >&5
24020
sed 's/^/| /' conftest.$ac_ext >&5
24024
rm -f conftest.err conftest.$ac_objext \
24025
conftest$ac_exeext conftest.$ac_ext
24028
echo "$as_me:$LINENO: result: $ac_cv_errno" >&5
24029
echo "${ECHO_T}$ac_cv_errno" >&6
24030
if test "$ac_cv_errno" = yes; then
24031
cat >>confdefs.h <<\_ACEOF
24032
#define HAVE_ERRNO 1
24035
echo "$as_me:$LINENO: checking for errno declaration" >&5
24036
echo $ECHO_N "checking for errno declaration... $ECHO_C" >&6
24037
if test "${ac_cv_decl_errno+set}" = set; then
24038
echo $ECHO_N "(cached) $ECHO_C" >&6
24041
cat >conftest.$ac_ext <<_ACEOF
24044
cat confdefs.h >>conftest.$ac_ext
24045
cat >>conftest.$ac_ext <<_ACEOF
24046
/* end confdefs.h. */
24049
#ifdef HAVE_STDLIB_H
24050
#include <stdlib.h>
24052
#ifdef HAVE_UNISTD_H
24053
#include <unistd.h>
24055
#ifdef HAVE_ERRNO_H
24066
rm -f conftest.$ac_objext
24067
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24068
(eval $ac_compile) 2>conftest.er1
24070
grep -v '^ *+' conftest.er1 >conftest.err
24072
cat conftest.err >&5
24073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24074
(exit $ac_status); } &&
24075
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24076
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077
(eval $ac_try) 2>&5
24079
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080
(exit $ac_status); }; } &&
24081
{ ac_try='test -s conftest.$ac_objext'
24082
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083
(eval $ac_try) 2>&5
24085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086
(exit $ac_status); }; }; then
24087
ac_cv_decl_errno=yes
24089
echo "$as_me: failed program was:" >&5
24090
sed 's/^/| /' conftest.$ac_ext >&5
24092
ac_cv_decl_errno=no
24094
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24097
echo "$as_me:$LINENO: result: $ac_cv_decl_errno" >&5
24098
echo "${ECHO_T}$ac_cv_decl_errno" >&6
24099
if test "$ac_cv_decl_errno" = yes; then
24100
cat >>confdefs.h <<\_ACEOF
24101
#define HAVE_DECL_ERRNO 1
24107
echo "$as_me:$LINENO: checking for sys_nerr" >&5
24108
echo $ECHO_N "checking for sys_nerr... $ECHO_C" >&6
24109
if test "${ac_cv_sys_nerr+set}" = set; then
24110
echo $ECHO_N "(cached) $ECHO_C" >&6
24113
cat >conftest.$ac_ext <<_ACEOF
24116
cat confdefs.h >>conftest.$ac_ext
24117
cat >>conftest.$ac_ext <<_ACEOF
24118
/* end confdefs.h. */
24123
extern int sys_nerr; return (sys_nerr);
24128
rm -f conftest.$ac_objext conftest$ac_exeext
24129
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24130
(eval $ac_link) 2>conftest.er1
24132
grep -v '^ *+' conftest.er1 >conftest.err
24134
cat conftest.err >&5
24135
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136
(exit $ac_status); } &&
24137
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24138
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24139
(eval $ac_try) 2>&5
24141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142
(exit $ac_status); }; } &&
24143
{ ac_try='test -s conftest$ac_exeext'
24144
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24145
(eval $ac_try) 2>&5
24147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24148
(exit $ac_status); }; }; then
24151
echo "$as_me: failed program was:" >&5
24152
sed 's/^/| /' conftest.$ac_ext >&5
24156
rm -f conftest.err conftest.$ac_objext \
24157
conftest$ac_exeext conftest.$ac_ext
24160
echo "$as_me:$LINENO: result: $ac_cv_sys_nerr" >&5
24161
echo "${ECHO_T}$ac_cv_sys_nerr" >&6
24162
if test "$ac_cv_sys_nerr" = yes; then
24163
cat >>confdefs.h <<\_ACEOF
24164
#define HAVE_SYS_NERR 1
24167
echo "$as_me:$LINENO: checking for sys_nerr declaration" >&5
24168
echo $ECHO_N "checking for sys_nerr declaration... $ECHO_C" >&6
24169
if test "${ac_cv_decl_sys_nerr+set}" = set; then
24170
echo $ECHO_N "(cached) $ECHO_C" >&6
24173
cat >conftest.$ac_ext <<_ACEOF
24176
cat confdefs.h >>conftest.$ac_ext
24177
cat >>conftest.$ac_ext <<_ACEOF
24178
/* end confdefs.h. */
24181
#ifdef HAVE_STDLIB_H
24182
#include <stdlib.h>
24184
#ifdef HAVE_UNISTD_H
24185
#include <unistd.h>
24195
rm -f conftest.$ac_objext
24196
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24197
(eval $ac_compile) 2>conftest.er1
24199
grep -v '^ *+' conftest.er1 >conftest.err
24201
cat conftest.err >&5
24202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203
(exit $ac_status); } &&
24204
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24206
(eval $ac_try) 2>&5
24208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209
(exit $ac_status); }; } &&
24210
{ ac_try='test -s conftest.$ac_objext'
24211
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24212
(eval $ac_try) 2>&5
24214
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215
(exit $ac_status); }; }; then
24216
ac_cv_decl_sys_nerr_def=yes
24218
echo "$as_me: failed program was:" >&5
24219
sed 's/^/| /' conftest.$ac_ext >&5
24221
ac_cv_decl_sys_nerr_def=no
24223
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24226
echo "$as_me:$LINENO: result: $ac_cv_decl_sys_nerr" >&5
24227
echo "${ECHO_T}$ac_cv_decl_sys_nerr" >&6
24228
if test "$ac_cv_decl_sys_nerr" = yes; then
24229
cat >>confdefs.h <<\_ACEOF
24230
#define HAVE_DECL_SYS_NERR 1
24237
echo "$as_me:$LINENO: checking for sys_errlist array" >&5
24238
echo $ECHO_N "checking for sys_errlist array... $ECHO_C" >&6
24239
if test "${ac_cv_sys_errlist+set}" = set; then
24240
echo $ECHO_N "(cached) $ECHO_C" >&6
24242
cat >conftest.$ac_ext <<_ACEOF
24245
cat confdefs.h >>conftest.$ac_ext
24246
cat >>conftest.$ac_ext <<_ACEOF
24247
/* end confdefs.h. */
24252
extern char *sys_errlist[];
24258
rm -f conftest.$ac_objext conftest$ac_exeext
24259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24260
(eval $ac_link) 2>conftest.er1
24262
grep -v '^ *+' conftest.er1 >conftest.err
24264
cat conftest.err >&5
24265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266
(exit $ac_status); } &&
24267
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269
(eval $ac_try) 2>&5
24271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272
(exit $ac_status); }; } &&
24273
{ ac_try='test -s conftest$ac_exeext'
24274
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275
(eval $ac_try) 2>&5
24277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278
(exit $ac_status); }; }; then
24279
ac_cv_sys_errlist=yes
24281
echo "$as_me: failed program was:" >&5
24282
sed 's/^/| /' conftest.$ac_ext >&5
24284
ac_cv_sys_errlist=no
24286
rm -f conftest.err conftest.$ac_objext \
24287
conftest$ac_exeext conftest.$ac_ext
24290
echo "$as_me:$LINENO: result: $ac_cv_sys_errlist" >&5
24291
echo "${ECHO_T}$ac_cv_sys_errlist" >&6
24292
if test "$ac_cv_sys_errlist" = yes; then
24293
cat >>confdefs.h <<\_ACEOF
24294
#define HAVE_SYS_ERRLIST 1
24297
echo "$as_me:$LINENO: checking for sys_errlist declaration" >&5
24298
echo $ECHO_N "checking for sys_errlist declaration... $ECHO_C" >&6
24299
if test "${ac_cv_sys_errlist_def+set}" = set; then
24300
echo $ECHO_N "(cached) $ECHO_C" >&6
24302
cat >conftest.$ac_ext <<_ACEOF
24305
cat confdefs.h >>conftest.$ac_ext
24306
cat >>conftest.$ac_ext <<_ACEOF
24307
/* end confdefs.h. */
24311
#ifdef HAVE_STDLIB_H
24312
#include <stdlib.h>
24314
#ifdef HAVE_UNISTD_H
24315
#include <unistd.h>
24320
char *s = sys_errlist[0]; return(*s);
24325
rm -f conftest.$ac_objext
24326
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24327
(eval $ac_compile) 2>conftest.er1
24329
grep -v '^ *+' conftest.er1 >conftest.err
24331
cat conftest.err >&5
24332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24333
(exit $ac_status); } &&
24334
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24335
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24336
(eval $ac_try) 2>&5
24338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339
(exit $ac_status); }; } &&
24340
{ ac_try='test -s conftest.$ac_objext'
24341
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24342
(eval $ac_try) 2>&5
24344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345
(exit $ac_status); }; }; then
24346
ac_cv_decl_sys_errlist=yes
24348
echo "$as_me: failed program was:" >&5
24349
sed 's/^/| /' conftest.$ac_ext >&5
24351
ac_cv_decl_sys_errlist=no
24353
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24356
echo "$as_me:$LINENO: result: $ac_cv_sys_errlist_def" >&5
24357
echo "${ECHO_T}$ac_cv_sys_errlist_def" >&6
24358
if test "$ac_cv_decl_sys_errlist" = yes; then
24359
cat >>confdefs.h <<\_ACEOF
24360
#define HAVE_DECL_SYS_ERRLIST 1
24368
echo "$as_me:$LINENO: checking checking for long long" >&5
24369
echo $ECHO_N "checking checking for long long... $ECHO_C" >&6
24370
if test "${ac_cv_long_long+set}" = set; then
24371
echo $ECHO_N "(cached) $ECHO_C" >&6
24374
cat >conftest.$ac_ext <<_ACEOF
24377
cat confdefs.h >>conftest.$ac_ext
24378
cat >>conftest.$ac_ext <<_ACEOF
24379
/* end confdefs.h. */
24382
#include <sys/types.h>
24387
printf("%d",sizeof(long long));
24392
rm -f conftest.$ac_objext
24393
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24394
(eval $ac_compile) 2>conftest.er1
24396
grep -v '^ *+' conftest.er1 >conftest.err
24398
cat conftest.err >&5
24399
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400
(exit $ac_status); } &&
24401
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24402
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403
(eval $ac_try) 2>&5
24405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406
(exit $ac_status); }; } &&
24407
{ ac_try='test -s conftest.$ac_objext'
24408
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24409
(eval $ac_try) 2>&5
24411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412
(exit $ac_status); }; }; then
24413
ac_cv_long_long=yes
24415
echo "$as_me: failed program was:" >&5
24416
sed 's/^/| /' conftest.$ac_ext >&5
24420
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24423
echo "$as_me:$LINENO: result: $ac_cv_long_long" >&5
24424
echo "${ECHO_T}$ac_cv_long_long" >&6
24425
if test $ac_cv_long_long = yes; then
24426
cat >>confdefs.h <<\_ACEOF
24427
#define HAVE_LONG_LONG 1
24432
echo "$as_me:$LINENO: checking checking for long double" >&5
24433
echo $ECHO_N "checking checking for long double... $ECHO_C" >&6
24434
if test "${ac_cv_long_double+set}" = set; then
24435
echo $ECHO_N "(cached) $ECHO_C" >&6
24438
cat >conftest.$ac_ext <<_ACEOF
24441
cat confdefs.h >>conftest.$ac_ext
24442
cat >>conftest.$ac_ext <<_ACEOF
24443
/* end confdefs.h. */
24446
#include <sys/types.h>
24451
printf("%d",sizeof(long double));
24456
rm -f conftest.$ac_objext
24457
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24458
(eval $ac_compile) 2>conftest.er1
24460
grep -v '^ *+' conftest.er1 >conftest.err
24462
cat conftest.err >&5
24463
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464
(exit $ac_status); } &&
24465
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24466
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24467
(eval $ac_try) 2>&5
24469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24470
(exit $ac_status); }; } &&
24471
{ ac_try='test -s conftest.$ac_objext'
24472
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473
(eval $ac_try) 2>&5
24475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476
(exit $ac_status); }; }; then
24477
ac_cv_long_double=yes
24479
echo "$as_me: failed program was:" >&5
24480
sed 's/^/| /' conftest.$ac_ext >&5
24482
ac_cv_long_double=no
24484
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24487
echo "$as_me:$LINENO: result: $ac_cv_long_double" >&5
24488
echo "${ECHO_T}$ac_cv_long_double" >&6
24489
if test $ac_cv_long_double = yes; then
24490
cat >>confdefs.h <<\_ACEOF
24491
#define HAVE_LONG_DOUBLE 1
24496
echo "$as_me:$LINENO: checking checking for quad_t" >&5
24497
echo $ECHO_N "checking checking for quad_t... $ECHO_C" >&6
24498
if test "${ac_cv_quad_t+set}" = set; then
24499
echo $ECHO_N "(cached) $ECHO_C" >&6
24502
cat >conftest.$ac_ext <<_ACEOF
24505
cat confdefs.h >>conftest.$ac_ext
24506
cat >>conftest.$ac_ext <<_ACEOF
24507
/* end confdefs.h. */
24510
#include <sys/types.h>
24515
printf("%d",sizeof(quad_t));
24520
rm -f conftest.$ac_objext
24521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24522
(eval $ac_compile) 2>conftest.er1
24524
grep -v '^ *+' conftest.er1 >conftest.err
24526
cat conftest.err >&5
24527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528
(exit $ac_status); } &&
24529
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24530
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24531
(eval $ac_try) 2>&5
24533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534
(exit $ac_status); }; } &&
24535
{ ac_try='test -s conftest.$ac_objext'
24536
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537
(eval $ac_try) 2>&5
24539
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540
(exit $ac_status); }; }; then
24543
echo "$as_me: failed program was:" >&5
24544
sed 's/^/| /' conftest.$ac_ext >&5
24548
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24551
echo "$as_me:$LINENO: result: $ac_cv_quad_t" >&5
24552
echo "${ECHO_T}$ac_cv_quad_t" >&6
24553
if test $ac_cv_quad_t = yes; then
24554
cat >>confdefs.h <<\_ACEOF
24555
#define HAVE_QUAD_T 1
24562
cat >>confdefs.h <<\_ACEOF
24563
#define ADMIN_GRP 1
24568
# Check whether --with-admin-group or --without-admin-group was given.
24569
if test "${with_admin_group+set}" = set; then
24570
withval="$with_admin_group"
24571
if test "$enableval" = "no"; then
24572
cat >>confdefs.h <<\_ACEOF
24573
#define ADMIN_GRP 0
24576
echo "$as_me:$LINENO: result: disabling administrative group support" >&5
24577
echo "${ECHO_T}disabling administrative group support" >&6
24586
# Check whether --enable-afs or --disable-afs was given.
24587
if test "${enable_afs+set}" = set; then
24588
enableval="$enable_afs"
24590
if test "x$enableval" = "xyes"; then
24592
echo "$as_me:$LINENO: checking for pioctl in -lafsauthent" >&5
24593
echo $ECHO_N "checking for pioctl in -lafsauthent... $ECHO_C" >&6
24594
if test "${ac_cv_lib_afsauthent_pioctl+set}" = set; then
24595
echo $ECHO_N "(cached) $ECHO_C" >&6
24597
ac_check_lib_save_LIBS=$LIBS
24598
LIBS="-lafsauthent $LIBS"
24599
cat >conftest.$ac_ext <<_ACEOF
24602
cat confdefs.h >>conftest.$ac_ext
24603
cat >>conftest.$ac_ext <<_ACEOF
24604
/* end confdefs.h. */
24606
/* Override any gcc2 internal prototype to avoid an error. */
24610
/* We use char because int might match the return type of a gcc2
24611
builtin and then its argument prototype would still apply. */
24621
rm -f conftest.$ac_objext conftest$ac_exeext
24622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24623
(eval $ac_link) 2>conftest.er1
24625
grep -v '^ *+' conftest.er1 >conftest.err
24627
cat conftest.err >&5
24628
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24629
(exit $ac_status); } &&
24630
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24631
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24632
(eval $ac_try) 2>&5
24634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24635
(exit $ac_status); }; } &&
24636
{ ac_try='test -s conftest$ac_exeext'
24637
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24638
(eval $ac_try) 2>&5
24640
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641
(exit $ac_status); }; }; then
24642
ac_cv_lib_afsauthent_pioctl=yes
24644
echo "$as_me: failed program was:" >&5
24645
sed 's/^/| /' conftest.$ac_ext >&5
24647
ac_cv_lib_afsauthent_pioctl=no
24649
rm -f conftest.err conftest.$ac_objext \
24650
conftest$ac_exeext conftest.$ac_ext
24651
LIBS=$ac_check_lib_save_LIBS
24653
echo "$as_me:$LINENO: result: $ac_cv_lib_afsauthent_pioctl" >&5
24654
echo "${ECHO_T}$ac_cv_lib_afsauthent_pioctl" >&6
24655
if test $ac_cv_lib_afsauthent_pioctl = yes; then
24656
cat >>confdefs.h <<_ACEOF
24657
#define HAVE_LIBAFSAUTHENT 1
24660
LIBS="-lafsauthent $LIBS"
24663
{ { echo "$as_me:$LINENO: error: AFS installation not found" >&5
24664
echo "$as_me: error: AFS installation not found" >&2;}
24665
{ (exit 1); exit 1; }; }
24669
AFS_LIBS=-lafsauthent
24670
cat >>confdefs.h <<\_ACEOF
24684
PKGCONFDIR="${sysconfdir}/netatalk"
24687
# Check whether --with-pkgconfdir or --without-pkgconfdir was given.
24688
if test "${with_pkgconfdir+set}" = set; then
24689
withval="$with_pkgconfdir"
24691
if test "x$withval" != "x"; then
24692
PKGCONFDIR="$withval"
24698
NLSDIR="${PKGCONFDIR}/nls"
24701
# Check whether --with-nls-dir or --without-nls-dir was given.
24702
if test "${with_nls_dir+set}" = set; then
24703
withval="$with_nls_dir"
24705
if test "x$withval" != "x"; then
24712
SERVERTEXT="${PKGCONFDIR}/msg"
24715
# Check whether --with-message-dir or --without-message-dir was given.
24716
if test "${with_message_dir+set}" = set; then
24717
withval="$with_message_dir"
24719
if test "x$withval" != "x"; then
24720
SERVERTEXT="$withval"
24721
cat >> confdefs.h <<EOF
24722
#define SERVERTEXT "$withval"
24735
# Check whether --with-logfile or --without-logfile was given.
24736
if test "${with_logfile+set}" = set; then
24737
withval="$with_logfile"
24738
if test "$withval" = "no"; then
24739
cat >>confdefs.h <<\_ACEOF
24740
#define DISABLE_LOGGER 1
24743
echo "$as_me:$LINENO: result: logger disabled" >&5
24744
echo "${ECHO_T}logger disabled" >&6
24745
elif test "$withval" != "yes"; then
24746
cat >>confdefs.h <<_ACEOF
24747
#define LOGFILEPATH "$withval"
24750
echo "$as_me:$LINENO: result: logfile set to $withval" >&5
24751
echo "${ECHO_T}logfile set to $withval" >&6
24753
cat >>confdefs.h <<_ACEOF
24754
#define LOGFILEPATH "/var/log/netatalk.log"
24757
echo "$as_me:$LINENO: result: logfile set to default" >&5
24758
echo "${ECHO_T}logfile set to default" >&6
24761
cat >>confdefs.h <<_ACEOF
24762
#define LOGFILEPATH "/var/log/netatalk.log"
24765
echo "$as_me:$LINENO: result: logfile set to default" >&5
24766
echo "${ECHO_T}logfile set to default" >&6
24771
# Check whether --with-cracklib or --without-cracklib was given.
24772
if test "${with_cracklib+set}" = set; then
24773
withval="$with_cracklib"
24774
if test "x$withval" != "xno" ; then
24775
cracklib="$withval"
24776
echo "$as_me:$LINENO: checking for main in -lcrack" >&5
24777
echo $ECHO_N "checking for main in -lcrack... $ECHO_C" >&6
24778
if test "${ac_cv_lib_crack_main+set}" = set; then
24779
echo $ECHO_N "(cached) $ECHO_C" >&6
24781
ac_check_lib_save_LIBS=$LIBS
24782
LIBS="-lcrack $LIBS"
24783
cat >conftest.$ac_ext <<_ACEOF
24786
cat confdefs.h >>conftest.$ac_ext
24787
cat >>conftest.$ac_ext <<_ACEOF
24788
/* end confdefs.h. */
24799
rm -f conftest.$ac_objext conftest$ac_exeext
24800
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24801
(eval $ac_link) 2>conftest.er1
24803
grep -v '^ *+' conftest.er1 >conftest.err
24805
cat conftest.err >&5
24806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807
(exit $ac_status); } &&
24808
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24809
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24810
(eval $ac_try) 2>&5
24812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813
(exit $ac_status); }; } &&
24814
{ ac_try='test -s conftest$ac_exeext'
24815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24816
(eval $ac_try) 2>&5
24818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24819
(exit $ac_status); }; }; then
24820
ac_cv_lib_crack_main=yes
24822
echo "$as_me: failed program was:" >&5
24823
sed 's/^/| /' conftest.$ac_ext >&5
24825
ac_cv_lib_crack_main=no
24827
rm -f conftest.err conftest.$ac_objext \
24828
conftest$ac_exeext conftest.$ac_ext
24829
LIBS=$ac_check_lib_save_LIBS
24831
echo "$as_me:$LINENO: result: $ac_cv_lib_crack_main" >&5
24832
echo "${ECHO_T}$ac_cv_lib_crack_main" >&6
24833
if test $ac_cv_lib_crack_main = yes; then
24834
cat >>confdefs.h <<\_ACEOF
24835
#define USE_CRACKLIB 1
24838
LIBS="$LIBS -lcrack"
24839
echo "$as_me:$LINENO: result: enabling cracklib support" >&5
24840
echo "${ECHO_T}enabling cracklib support" >&6
24841
if test "$cracklib" = "yes"; then
24842
cracklib="/usr/lib/cracklib_dict"
24845
cat >>confdefs.h <<_ACEOF
24846
#define _PATH_CRACKLIB "$cracklib"
24849
echo "$as_me:$LINENO: result: setting cracklib dictionary to $cracklib" >&5
24850
echo "${ECHO_T}setting cracklib dictionary to $cracklib" >&6
24852
{ { echo "$as_me:$LINENO: error: cracklib not found!" >&5
24853
echo "$as_me: error: cracklib not found!" >&2;}
24854
{ (exit 1); exit 1; }; }
24862
# Check whether --enable-ddp or --disable-ddp was given.
24863
if test "${enable_ddp+set}" = set; then
24864
enableval="$enable_ddp"
24865
if test "$enableval" = "no"; then
24866
cat >>confdefs.h <<\_ACEOF
24870
echo "$as_me:$LINENO: result: disabling DDP" >&5
24871
echo "${ECHO_T}disabling DDP" >&6
24876
# Check whether --enable-debug or --disable-debug was given.
24877
if test "${enable_debug+set}" = set; then
24878
enableval="$enable_debug"
24879
if test "$enableval" != "no"; then
24880
if test "$enableval" = "yes"; then
24881
cat >>confdefs.h <<\_ACEOF
24886
cat >>confdefs.h <<_ACEOF
24887
#define DEBUG $enableval
24891
echo "$as_me:$LINENO: result: enabling debugging code" >&5
24892
echo "${ECHO_T}enabling debugging code" >&6
24899
# Check whether --enable-dropkludge or --disable-dropkludge was given.
24900
if test "${enable_dropkludge+set}" = set; then
24901
enableval="$enable_dropkludge"
24902
if test "$enableval" = "yes"; then
24903
cat >>confdefs.h <<\_ACEOF
24904
#define DROPKLUDGE 1
24907
echo "$as_me:$LINENO: result: enabling experimental dropbox support" >&5
24908
echo "${ECHO_T}enabling experimental dropbox support" >&6
24913
# Check whether --enable-force-uidgid or --disable-force-uidgid was given.
24914
if test "${enable_force_uidgid+set}" = set; then
24915
enableval="$enable_force_uidgid"
24916
if test "$enableval" = "yes"; then
24917
cat >>confdefs.h <<\_ACEOF
24918
#define FORCE_UIDGID 1
24921
echo "$as_me:$LINENO: result: enabling forcing of uid/gid per volume" >&5
24922
echo "${ECHO_T}enabling forcing of uid/gid per volume" >&6
24929
echo "$as_me:$LINENO: checking for DID scheme to use" >&5
24930
echo $ECHO_N "checking for DID scheme to use... $ECHO_C" >&6
24932
# Check whether --with-did or --without-did was given.
24933
if test "${with_did+set}" = set; then
24934
withval="$with_did"
24935
did_scheme="$withval"
24941
if test "x$did_scheme" = "xlast"; then
24942
cat >>confdefs.h <<\_ACEOF
24943
#define USE_LASTDID 1
24946
echo "$as_me:$LINENO: result: last" >&5
24947
echo "${ECHO_T}last" >&6
24948
elif test "x$did_scheme" = "xcnid"; then
24950
cat >>confdefs.h <<\_ACEOF
24954
echo "$as_me:$LINENO: result: enabling build with CNID DB support" >&5
24955
echo "${ECHO_T}enabling build with CNID DB support" >&6
24957
{ { echo "$as_me:$LINENO: error: unknown DID scheme" >&5
24958
echo "$as_me: error: unknown DID scheme" >&2;}
24959
{ (exit 1); exit 1; }; }
24963
if test "x$did_scheme" = "xcnid"; then
24965
COMPILE_CNID_FALSE='#'
24967
COMPILE_CNID_TRUE='#'
24968
COMPILE_CNID_FALSE=
24972
echo "$as_me:$LINENO: checking whether or not to use filename mangling" >&5
24973
echo $ECHO_N "checking whether or not to use filename mangling... $ECHO_C" >&6
24975
# Check whether --with-mangling or --without-mangling was given.
24976
if test "${with_mangling+set}" = set; then
24977
withval="$with_mangling"
24978
if test "$withval" = "yes"; then
24979
if test "x$did_scheme" != "xcnid"; then
24980
{ { echo "$as_me:$LINENO: error: DID scheme must be CNID to use filename mangling" >&5
24981
echo "$as_me: error: DID scheme must be CNID to use filename mangling" >&2;}
24982
{ (exit 1); exit 1; }; }
24984
cat >>confdefs.h <<\_ACEOF
24985
#define FILE_MANGLING 1
24988
echo "$as_me:$LINENO: result: yes" >&5
24989
echo "${ECHO_T}yes" >&6
24992
echo "$as_me:$LINENO: result: no" >&5
24993
echo "${ECHO_T}no" >&6
24997
echo "$as_me:$LINENO: result: no" >&5
24998
echo "${ECHO_T}no" >&6
25002
if test "$did_scheme" = "cnid"; then
25008
echo "$as_me:$LINENO: checking whether or not to use CNID with Concurrent Data Store" >&5
25009
echo $ECHO_N "checking whether or not to use CNID with Concurrent Data Store... $ECHO_C" >&6
25011
# Check whether --with-cdb or --without-cdb was given.
25012
if test "${with_cdb+set}" = set; then
25013
withval="$with_cdb"
25014
if test "$withval" = "no"; then
25015
if test "x$did_scheme" != "xcnid"; then
25017
{ { echo "$as_me:$LINENO: error: DID scheme must be CNID to use CDB" >&5
25018
echo "$as_me: error: DID scheme must be CNID to use CDB" >&2;}
25019
{ (exit 1); exit 1; }; }
25022
echo "$as_me:$LINENO: result: no" >&5
25023
echo "${ECHO_T}no" >&6
25027
echo "$as_me:$LINENO: result: yes" >&5
25028
echo "${ECHO_T}yes" >&6
25032
echo "$as_me:$LINENO: result: yes" >&5
25033
echo "${ECHO_T}yes" >&6
25037
if test "$USE_CDB" = "yes"; then
25038
cat >>confdefs.h <<\_ACEOF
25039
#define CNID_DB_CDB 1
25044
if test "x$bdb_required" = "xyes"; then
25048
# Check whether --with-bdb or --without-bdb was given.
25049
if test "${with_bdb+set}" = set; then
25050
withval="$with_bdb"
25051
if test "x$withval" != "xno"; then
25052
trybdbdir="$withval"
25058
for bdbdir in "" "$trybdbdir" "$trybdbdir/include" "$trybdbdir/include/db3" "/usr/local/BerkeleyDB.3.3/include" "/usr/local/include/db3" "/usr/local/include" "/usr/include/db3" "/usr/include" ; do
25059
if test -f "$bdbdir/db.h" ; then
25060
bdblibdir="`echo $bdbdir | sed 's/include\/db3$/lib/'`"
25061
bdblibdir="`echo $bdblibdir | sed 's/include$/lib/'`"
25062
bdbbindir="`echo $bdbdir | sed 's/include\/db3$/bin/'`"
25063
bdbbindir="`echo $bdbbindir | sed 's/include$/bin/'`"
25065
savedcflags="$CFLAGS"
25066
savedldflags="$LDFLAGS"
25067
CFLAGS="$CFLAGS -I$bdbdir"
25068
LDFLAGS="-L$bdblibdir $LDFLAGS"
25069
echo "$as_me:$LINENO: checking for main in -ldb" >&5
25070
echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
25071
if test "${ac_cv_lib_db_main+set}" = set; then
25072
echo $ECHO_N "(cached) $ECHO_C" >&6
25074
ac_check_lib_save_LIBS=$LIBS
25076
cat >conftest.$ac_ext <<_ACEOF
25079
cat confdefs.h >>conftest.$ac_ext
25080
cat >>conftest.$ac_ext <<_ACEOF
25081
/* end confdefs.h. */
25092
rm -f conftest.$ac_objext conftest$ac_exeext
25093
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25094
(eval $ac_link) 2>conftest.er1
25096
grep -v '^ *+' conftest.er1 >conftest.err
25098
cat conftest.err >&5
25099
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100
(exit $ac_status); } &&
25101
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25102
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25103
(eval $ac_try) 2>&5
25105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106
(exit $ac_status); }; } &&
25107
{ ac_try='test -s conftest$ac_exeext'
25108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25109
(eval $ac_try) 2>&5
25111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112
(exit $ac_status); }; }; then
25113
ac_cv_lib_db_main=yes
25115
echo "$as_me: failed program was:" >&5
25116
sed 's/^/| /' conftest.$ac_ext >&5
25118
ac_cv_lib_db_main=no
25120
rm -f conftest.err conftest.$ac_objext \
25121
conftest$ac_exeext conftest.$ac_ext
25122
LIBS=$ac_check_lib_save_LIBS
25124
echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
25125
echo "${ECHO_T}$ac_cv_lib_db_main" >&6
25126
if test $ac_cv_lib_db_main = yes; then
25129
if test "$bdbdir" != "/usr/include"; then
25130
BDB_CFLAGS="-I$bdbdir"
25132
if test "$bdblibdir" != "/usr/lib"; then
25133
BDB_LIBS="-L$bdblibdir"
25135
BDB_LIBS="$BDB_LIBS -ldb"
25137
BDB_PATH="`echo $bdbdir | sed 's,include/db3$,,'`"
25138
BDB_PATH="`echo $BDB_PATH | sed 's,include$,,'`"
25142
CFLAGS="$savedcflags"
25143
LDFLAGS="$savedldflags"
25148
if test "x$bdbfound" = "xyes"; then
25151
{ { echo "$as_me:$LINENO: error: Berkeley DB library not found!" >&5
25152
echo "$as_me: error: Berkeley DB library not found!" >&2;}
25153
{ (exit 1); exit 1; }; }
25165
echo "$as_me:$LINENO: checking for main in -lrpcsvc" >&5
25166
echo $ECHO_N "checking for main in -lrpcsvc... $ECHO_C" >&6
25167
if test "${ac_cv_lib_rpcsvc_main+set}" = set; then
25168
echo $ECHO_N "(cached) $ECHO_C" >&6
25170
ac_check_lib_save_LIBS=$LIBS
25171
LIBS="-lrpcsvc $LIBS"
25172
cat >conftest.$ac_ext <<_ACEOF
25175
cat confdefs.h >>conftest.$ac_ext
25176
cat >>conftest.$ac_ext <<_ACEOF
25177
/* end confdefs.h. */
25188
rm -f conftest.$ac_objext conftest$ac_exeext
25189
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25190
(eval $ac_link) 2>conftest.er1
25192
grep -v '^ *+' conftest.er1 >conftest.err
25194
cat conftest.err >&5
25195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196
(exit $ac_status); } &&
25197
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25198
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199
(eval $ac_try) 2>&5
25201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202
(exit $ac_status); }; } &&
25203
{ ac_try='test -s conftest$ac_exeext'
25204
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25205
(eval $ac_try) 2>&5
25207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208
(exit $ac_status); }; }; then
25209
ac_cv_lib_rpcsvc_main=yes
25211
echo "$as_me: failed program was:" >&5
25212
sed 's/^/| /' conftest.$ac_ext >&5
25214
ac_cv_lib_rpcsvc_main=no
25216
rm -f conftest.err conftest.$ac_objext \
25217
conftest$ac_exeext conftest.$ac_ext
25218
LIBS=$ac_check_lib_save_LIBS
25220
echo "$as_me:$LINENO: result: $ac_cv_lib_rpcsvc_main" >&5
25221
echo "${ECHO_T}$ac_cv_lib_rpcsvc_main" >&6
25222
if test $ac_cv_lib_rpcsvc_main = yes; then
25223
QUOTA_LIBS=-lrpcsvc
25234
# Check whether --enable-srvloc or --disable-srvloc was given.
25235
if test "${enable_srvloc+set}" = set; then
25236
enableval="$enable_srvloc"
25243
if test "x$srvloc" != "xno"; then
25245
savedcppflags="$CPPFLAGS"
25246
savedldflags="$LDFLAGS"
25247
if test "x$srvloc" = "xyes"; then
25250
CPPFLAGS="$CPPFLAGS -I$srvloc/include"
25251
LDFLAGS="$LDFLAGS -L$srvloc/lib"
25253
echo "$as_me:$LINENO: checking for slp.h" >&5
25254
echo $ECHO_N "checking for slp.h... $ECHO_C" >&6
25255
cat >conftest.$ac_ext <<_ACEOF
25258
cat confdefs.h >>conftest.$ac_ext
25259
cat >>conftest.$ac_ext <<_ACEOF
25260
/* end confdefs.h. */
25263
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25264
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25266
grep -v '^ *+' conftest.er1 >conftest.err
25268
cat conftest.err >&5
25269
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270
(exit $ac_status); } >/dev/null; then
25271
if test -s conftest.err; then
25272
ac_cpp_err=$ac_c_preproc_warn_flag
25273
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25280
if test -z "$ac_cpp_err"; then
25281
echo "$as_me:$LINENO: result: yes" >&5
25282
echo "${ECHO_T}yes" >&6
25284
echo "$as_me: failed program was:" >&5
25285
sed 's/^/| /' conftest.$ac_ext >&5
25288
echo "$as_me:$LINENO: result: no" >&5
25289
echo "${ECHO_T}no" >&6
25290
{ { echo "$as_me:$LINENO: error: SLP installation not found" >&5
25291
echo "$as_me: error: SLP installation not found" >&2;}
25292
{ (exit 1); exit 1; }; }
25296
rm -f conftest.err conftest.$ac_ext
25297
echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
25298
echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
25299
if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
25300
echo $ECHO_N "(cached) $ECHO_C" >&6
25302
ac_check_lib_save_LIBS=$LIBS
25304
cat >conftest.$ac_ext <<_ACEOF
25307
cat confdefs.h >>conftest.$ac_ext
25308
cat >>conftest.$ac_ext <<_ACEOF
25309
/* end confdefs.h. */
25311
/* Override any gcc2 internal prototype to avoid an error. */
25315
/* We use char because int might match the return type of a gcc2
25316
builtin and then its argument prototype would still apply. */
25326
rm -f conftest.$ac_objext conftest$ac_exeext
25327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25328
(eval $ac_link) 2>conftest.er1
25330
grep -v '^ *+' conftest.er1 >conftest.err
25332
cat conftest.err >&5
25333
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334
(exit $ac_status); } &&
25335
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25336
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337
(eval $ac_try) 2>&5
25339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340
(exit $ac_status); }; } &&
25341
{ ac_try='test -s conftest$ac_exeext'
25342
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25343
(eval $ac_try) 2>&5
25345
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25346
(exit $ac_status); }; }; then
25347
ac_cv_lib_slp_SLPOpen=yes
25349
echo "$as_me: failed program was:" >&5
25350
sed 's/^/| /' conftest.$ac_ext >&5
25352
ac_cv_lib_slp_SLPOpen=no
25354
rm -f conftest.err conftest.$ac_objext \
25355
conftest$ac_exeext conftest.$ac_ext
25356
LIBS=$ac_check_lib_save_LIBS
25358
echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
25359
echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
25360
if test $ac_cv_lib_slp_SLPOpen = yes; then
25362
SLP_LIBS="-L$srvloc/lib -lslp"
25363
SLP_CFLAGS="-I$srvloc/include"
25366
{ { echo "$as_me:$LINENO: error: SLP installation not found" >&5
25367
echo "$as_me: error: SLP installation not found" >&2;}
25368
{ (exit 1); exit 1; }; }
25372
cat >>confdefs.h <<\_ACEOF
25373
#define USE_SRVLOC 1
25377
CPPFLAGS="$savedcppflags"
25378
LDFLAGS="$savedldflags"
25386
echo "$as_me:$LINENO: checking for PAM" >&5
25387
echo $ECHO_N "checking for PAM... $ECHO_C" >&6
25389
# Check whether --with-pam or --without-pam was given.
25390
if test "${with_pam+set}" = set; then
25391
withval="$with_pam"
25394
if test "x$withval" = "xno"; then
25396
require_pam="never"
25397
elif test "x$withval" = "xyes"; then
25404
PAMDIR="NONE";require_pam="no"
25408
if test "x$PAMDIR" = "xNONE" -a "x$require_pam" != "xnever"; then
25409
pam_paths="/ /usr /usr/local"
25410
for path in $pam_paths; do
25411
if test -d "$path/etc/pam.d"; then
25422
if test "x$PAMDIR" != "xNONE"; then
25423
echo "$as_me:$LINENO: result: yes (path: $PAMDIR)" >&5
25424
echo "${ECHO_T}yes (path: $PAMDIR)" >&6
25425
if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
25426
echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
25427
echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
25428
if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
25429
echo $ECHO_N "(cached) $ECHO_C" >&6
25431
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
25432
echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
25434
# Is the header compilable?
25435
echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
25436
echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
25437
cat >conftest.$ac_ext <<_ACEOF
25440
cat confdefs.h >>conftest.$ac_ext
25441
cat >>conftest.$ac_ext <<_ACEOF
25442
/* end confdefs.h. */
25443
$ac_includes_default
25444
#include <security/pam_appl.h>
25446
rm -f conftest.$ac_objext
25447
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25448
(eval $ac_compile) 2>conftest.er1
25450
grep -v '^ *+' conftest.er1 >conftest.err
25452
cat conftest.err >&5
25453
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454
(exit $ac_status); } &&
25455
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25456
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457
(eval $ac_try) 2>&5
25459
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460
(exit $ac_status); }; } &&
25461
{ ac_try='test -s conftest.$ac_objext'
25462
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463
(eval $ac_try) 2>&5
25465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466
(exit $ac_status); }; }; then
25467
ac_header_compiler=yes
25469
echo "$as_me: failed program was:" >&5
25470
sed 's/^/| /' conftest.$ac_ext >&5
25472
ac_header_compiler=no
25474
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25475
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25476
echo "${ECHO_T}$ac_header_compiler" >&6
25478
# Is the header present?
25479
echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
25480
echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
25481
cat >conftest.$ac_ext <<_ACEOF
25484
cat confdefs.h >>conftest.$ac_ext
25485
cat >>conftest.$ac_ext <<_ACEOF
25486
/* end confdefs.h. */
25487
#include <security/pam_appl.h>
25489
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25490
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25492
grep -v '^ *+' conftest.er1 >conftest.err
25494
cat conftest.err >&5
25495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25496
(exit $ac_status); } >/dev/null; then
25497
if test -s conftest.err; then
25498
ac_cpp_err=$ac_c_preproc_warn_flag
25499
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25506
if test -z "$ac_cpp_err"; then
25507
ac_header_preproc=yes
25509
echo "$as_me: failed program was:" >&5
25510
sed 's/^/| /' conftest.$ac_ext >&5
25512
ac_header_preproc=no
25514
rm -f conftest.err conftest.$ac_ext
25515
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25516
echo "${ECHO_T}$ac_header_preproc" >&6
25518
# So? What about this header?
25519
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25521
{ echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25522
echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25523
{ echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
25524
echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
25525
ac_header_preproc=yes
25528
{ echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
25529
echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
25530
{ echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
25531
echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
25532
{ echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
25533
echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
25534
{ echo "$as_me:$LINENO: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&5
25535
echo "$as_me: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&2;}
25536
{ echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
25537
echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
25538
{ echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
25539
echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
25542
## ------------------------------------------ ##
25543
## Report this to the AC_PACKAGE_NAME lists. ##
25544
## ------------------------------------------ ##
25547
sed "s/^/$as_me: WARNING: /" >&2
25550
echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
25551
echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
25552
if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
25553
echo $ECHO_N "(cached) $ECHO_C" >&6
25555
ac_cv_header_security_pam_appl_h=$ac_header_preproc
25557
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
25558
echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
25561
if test $ac_cv_header_security_pam_appl_h = yes; then
25563
echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
25564
echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6
25565
if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
25566
echo $ECHO_N "(cached) $ECHO_C" >&6
25568
ac_check_lib_save_LIBS=$LIBS
25570
cat >conftest.$ac_ext <<_ACEOF
25573
cat confdefs.h >>conftest.$ac_ext
25574
cat >>conftest.$ac_ext <<_ACEOF
25575
/* end confdefs.h. */
25577
/* Override any gcc2 internal prototype to avoid an error. */
25581
/* We use char because int might match the return type of a gcc2
25582
builtin and then its argument prototype would still apply. */
25583
char pam_set_item ();
25592
rm -f conftest.$ac_objext conftest$ac_exeext
25593
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25594
(eval $ac_link) 2>conftest.er1
25596
grep -v '^ *+' conftest.er1 >conftest.err
25598
cat conftest.err >&5
25599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25600
(exit $ac_status); } &&
25601
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25602
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25603
(eval $ac_try) 2>&5
25605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606
(exit $ac_status); }; } &&
25607
{ ac_try='test -s conftest$ac_exeext'
25608
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25609
(eval $ac_try) 2>&5
25611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612
(exit $ac_status); }; }; then
25613
ac_cv_lib_pam_pam_set_item=yes
25615
echo "$as_me: failed program was:" >&5
25616
sed 's/^/| /' conftest.$ac_ext >&5
25618
ac_cv_lib_pam_pam_set_item=no
25620
rm -f conftest.err conftest.$ac_objext \
25621
conftest$ac_exeext conftest.$ac_ext
25622
LIBS=$ac_check_lib_save_LIBS
25624
echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
25625
echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6
25626
if test $ac_cv_lib_pam_pam_set_item = yes; then
25628
PAM_CFLAGS="-I$PAMDIR/include"
25629
PAM_LIBS="-L$PAMDIR/lib -lpam"
25639
echo "$as_me:$LINENO: result: no" >&5
25640
echo "${ECHO_T}no" >&6
25643
if test "x$pam_found" = "xno"; then
25644
if test "x$require_pam" = "xyes"; then
25645
{ { echo "$as_me:$LINENO: error: PAM support missing" >&5
25646
echo "$as_me: error: PAM support missing" >&2;}
25647
{ (exit 1); exit 1; }; }
25652
PAPD_LIBS="$PAPD_LIBS $PAM_LIBS"
25653
AFPD_LIBS="$AFPD_LIBS $PAM_LIBS"
25656
cat >>confdefs.h <<\_ACEOF
25668
echo "$as_me:$LINENO: checking whether shadow support should be enabled" >&5
25669
echo $ECHO_N "checking whether shadow support should be enabled... $ECHO_C" >&6
25671
# Check whether --with-shadow or --without-shadow was given.
25672
if test "${with_shadow+set}" = set; then
25673
withval="$with_shadow"
25674
shadowpw="$withval"
25679
if test "x$shadowpw" = "xyes"; then
25680
cat >>confdefs.h <<\_ACEOF
25685
echo "$as_me:$LINENO: result: $shadowpw" >&5
25686
echo "${ECHO_T}$shadowpw" >&6
25688
# Check whether --enable-shell-check or --disable-shell-check was given.
25689
if test "${enable_shell_check+set}" = set; then
25690
enableval="$enable_shell_check"
25691
if test "$enableval" = "no"; then
25692
cat >>confdefs.h <<\_ACEOF
25693
#define DISABLE_SHELLCHECK 1
25696
echo "$as_me:$LINENO: result: disabling valid shell check" >&5
25697
echo "${ECHO_T}disabling valid shell check" >&6
25703
# Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
25704
if test "${with_tcp_wrappers+set}" = set; then
25705
withval="$with_tcp_wrappers"
25706
echo "$as_me:$LINENO: checking for tcpd_warn in -lwrap" >&5
25707
echo $ECHO_N "checking for tcpd_warn in -lwrap... $ECHO_C" >&6
25708
if test "${ac_cv_lib_wrap_tcpd_warn+set}" = set; then
25709
echo $ECHO_N "(cached) $ECHO_C" >&6
25711
ac_check_lib_save_LIBS=$LIBS
25712
LIBS="-lwrap $LIBS"
25713
cat >conftest.$ac_ext <<_ACEOF
25716
cat confdefs.h >>conftest.$ac_ext
25717
cat >>conftest.$ac_ext <<_ACEOF
25718
/* end confdefs.h. */
25720
/* Override any gcc2 internal prototype to avoid an error. */
25724
/* We use char because int might match the return type of a gcc2
25725
builtin and then its argument prototype would still apply. */
25735
rm -f conftest.$ac_objext conftest$ac_exeext
25736
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25737
(eval $ac_link) 2>conftest.er1
25739
grep -v '^ *+' conftest.er1 >conftest.err
25741
cat conftest.err >&5
25742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743
(exit $ac_status); } &&
25744
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25745
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25746
(eval $ac_try) 2>&5
25748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749
(exit $ac_status); }; } &&
25750
{ ac_try='test -s conftest$ac_exeext'
25751
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25752
(eval $ac_try) 2>&5
25754
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25755
(exit $ac_status); }; }; then
25756
ac_cv_lib_wrap_tcpd_warn=yes
25758
echo "$as_me: failed program was:" >&5
25759
sed 's/^/| /' conftest.$ac_ext >&5
25761
ac_cv_lib_wrap_tcpd_warn=no
25763
rm -f conftest.err conftest.$ac_objext \
25764
conftest$ac_exeext conftest.$ac_ext
25765
LIBS=$ac_check_lib_save_LIBS
25767
echo "$as_me:$LINENO: result: $ac_cv_lib_wrap_tcpd_warn" >&5
25768
echo "${ECHO_T}$ac_cv_lib_wrap_tcpd_warn" >&6
25769
if test $ac_cv_lib_wrap_tcpd_warn = yes; then
25770
cat >>confdefs.h <<\_ACEOF
25774
AFPD_LIBS="$AFPD_LIBS -lwrap"
25775
echo "$as_me:$LINENO: result: enabling TCP wrappers support" >&5
25776
echo "${ECHO_T}enabling TCP wrappers support" >&6
25783
# Check whether --enable-redhat or --disable-redhat was given.
25784
if test "${enable_redhat+set}" = set; then
25785
enableval="$enable_redhat"
25786
if test "$enableval" = "yes"; then
25789
echo "$as_me:$LINENO: result: enabling redhat-style sysv support" >&5
25790
echo "${ECHO_T}enabling redhat-style sysv support" >&6
25794
# Check whether --enable-suse or --disable-suse was given.
25795
if test "${enable_suse+set}" = set; then
25796
enableval="$enable_suse"
25797
if test "$enableval" = "yes"; then
25800
echo "$as_me:$LINENO: result: enabling suse-style sysv support" >&5
25801
echo "${ECHO_T}enabling suse-style sysv support" >&6
25805
# Check whether --enable-cobalt or --disable-cobalt was given.
25806
if test "${enable_cobalt+set}" = set; then
25807
enableval="$enable_cobalt"
25808
if test "$enableval" = "yes"; then
25811
echo "$as_me:$LINENO: result: enabling cobalt-style sysv support" >&5
25812
echo "${ECHO_T}enabling cobalt-style sysv support" >&6
25816
# Check whether --enable-netbsd or --disable-netbsd was given.
25817
if test "${enable_netbsd+set}" = set; then
25818
enableval="$enable_netbsd"
25819
if test "x$enableval" = "xyes"; then
25822
echo "$as_me:$LINENO: result: enabling NetBSD-style rc.d support" >&5
25823
echo "${ECHO_T}enabling NetBSD-style rc.d support" >&6
25827
echo "$as_me:$LINENO: checking whether timelord should be compiled" >&5
25828
echo $ECHO_N "checking whether timelord should be compiled... $ECHO_C" >&6
25829
compile_timelord=no
25830
# Check whether --enable-timelord or --disable-timelord was given.
25831
if test "${enable_timelord+set}" = set; then
25832
enableval="$enable_timelord"
25833
compile_timelord="$enableval"
25835
compile_timelord="no"
25838
echo "$as_me:$LINENO: result: $compile_timelord" >&5
25839
echo "${ECHO_T}$compile_timelord" >&6
25842
# Check whether --with-uams-path or --without-uams-path was given.
25843
if test "${with_uams_path+set}" = set; then
25844
withval="$with_uams_path"
25845
uams_path="$withval"
25847
uams_path="${PKGCONFDIR}/uams"
25852
# Check whether --enable-fhs or --disable-fhs was given.
25853
if test "${enable_fhs+set}" = set; then
25854
enableval="$enable_fhs"
25855
if test "$enableval" = "yes"; then
25856
uams_path="${libdir}/netatalk"
25858
PKGCONFDIR=${sysconfdir}/netatalk
25859
SERVERTEXT="${PKGCONFDIR}/msg"
25860
NLSDIR="${PKGCONFDIR}/nls"
25862
mandir="/usr/share/man"
25863
cat >>confdefs.h <<\_ACEOF
25864
#define FHS_COMPATIBILITY 1
25868
echo "$as_me:$LINENO: result: enabling Filesystem Hierarchy Standard (FHS) compatibility" >&5
25869
echo "${ECHO_T}enabling Filesystem Hierarchy Standard (FHS) compatibility" >&6
25875
cat >>confdefs.h <<_ACEOF
25876
#define UAMS_PATH "${uams_path}"
25879
UAMS_PATH="${uams_path}"
25883
LIBS="$LIBS -L\$(top_srcdir)/libatalk"
25884
CFLAGS="-I\$(top_srcdir)/include $CFLAGS -I\$(top_srcdir)/sys"
25889
*aix*) this_os=aix ;;
25890
*freebsd*) this_os=freebsd ;;
25891
*hpux11*) this_os=hpux11 ;;
25892
*irix*) this_os=irix ;;
25893
*linux*) this_os=linux ;;
25894
*osx*) this_os=macosx ;;
25895
*darwin*) this_os=macosx ;;
25896
*netbsd*) this_os=netbsd ;;
25897
*openbsd*) this_os=openbsd ;;
25898
*osf*) this_os=tru64 ;;
25899
*solaris*) this_os=solaris ;;
25902
case "$host_cpu" in
25903
i386|i486|i586|i686|k7) this_cpu=x86 ;;
25904
alpha) this_cpu=alpha ;;
25905
mips) this_cpu=mips ;;
25906
powerpc|ppc) this_cpu=ppc ;;
25910
if test x"$this_os" = "xaix"; then
25911
echo "$as_me:$LINENO: result: * AIX specific configuration" >&5
25912
echo "${ECHO_T} * AIX specific configuration" >&6
25913
cat >>confdefs.h <<\_ACEOF
25914
#define NO_STRUCT_TM_GMTOFF 1
25918
cat >>confdefs.h <<\_ACEOF
25919
#define HAVE_32BIT_LONGS 1
25924
if test x"$this_os" = "xfreebsd"; then
25925
echo "$as_me:$LINENO: result: * FreeBSD specific configuration" >&5
25926
echo "${ECHO_T} * FreeBSD specific configuration" >&6
25927
cat >>confdefs.h <<\_ACEOF
25931
cat >>confdefs.h <<\_ACEOF
25932
#define SENDFILE_FLAVOR_BSD 1
25936
cat >>confdefs.h <<\_ACEOF
25937
#define NO_CRYPT_H 1
25942
if test x"$this_os" = "xhpux11"; then
25943
echo "$as_me:$LINENO: result: * HP-UX 11 specific configuration" >&5
25944
echo "${ECHO_T} * HP-UX 11 specific configuration" >&6
25946
cat >>confdefs.h <<\_ACEOF
25947
#define _ISOC9X_SOURCE 1
25950
cat >>confdefs.h <<\_ACEOF
25951
#define NO_STRUCT_TM_GMTOFF 1
25956
if test x"$this_os" = "xirix"; then
25957
echo "$as_me:$LINENO: result: * IRIX specific configuration" >&5
25958
echo "${ECHO_T} * IRIX specific configuration" >&6
25960
cat >>confdefs.h <<\_ACEOF
25961
#define NO_STRUCT_TM_GMTOFF 1
25966
ac_have_atalk_addr=no
25967
if test x"$this_os" = "xlinux"; then
25968
echo "$as_me:$LINENO: result: * Linux specific configuration" >&5
25969
echo "${ECHO_T} * Linux specific configuration" >&6
25971
echo "$as_me:$LINENO: checking for struct atalk_addr" >&5
25972
echo $ECHO_N "checking for struct atalk_addr... $ECHO_C" >&6
25973
cat >conftest.$ac_ext <<_ACEOF
25975
#include <sys/socket.h>
25976
#include <asm/types.h>
25977
#include <linux/atalk.h>
25980
struct atalk_addr foo;
25986
rm -f conftest.$ac_objext
25987
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25988
(eval $ac_compile) 2>conftest.er1
25990
grep -v '^ *+' conftest.er1 >conftest.err
25992
cat conftest.err >&5
25993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994
(exit $ac_status); } &&
25995
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25996
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997
(eval $ac_try) 2>&5
25999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000
(exit $ac_status); }; } &&
26001
{ ac_try='test -s conftest.$ac_objext'
26002
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003
(eval $ac_try) 2>&5
26005
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006
(exit $ac_status); }; }; then
26008
ac_have_atalk_addr=yes
26009
echo "$as_me:$LINENO: result: yes" >&5
26010
echo "${ECHO_T}yes" >&6
26013
echo "$as_me: failed program was:" >&5
26014
sed 's/^/| /' conftest.$ac_ext >&5
26017
echo "$as_me:$LINENO: result: no" >&5
26018
echo "${ECHO_T}no" >&6
26021
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26023
if test "x$ac_have_atalk_addr" = "xyes"; then
26025
cat >>confdefs.h <<\_ACEOF
26026
#define HAVE_ATALK_ADDR 1
26033
for ac_header in sys/quota.h linux/quota.h
26035
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26036
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26037
echo "$as_me:$LINENO: checking for $ac_header" >&5
26038
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26039
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26040
echo $ECHO_N "(cached) $ECHO_C" >&6
26042
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26043
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26045
# Is the header compilable?
26046
echo "$as_me:$LINENO: checking $ac_header usability" >&5
26047
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26048
cat >conftest.$ac_ext <<_ACEOF
26051
cat confdefs.h >>conftest.$ac_ext
26052
cat >>conftest.$ac_ext <<_ACEOF
26053
/* end confdefs.h. */
26054
$ac_includes_default
26055
#include <$ac_header>
26057
rm -f conftest.$ac_objext
26058
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26059
(eval $ac_compile) 2>conftest.er1
26061
grep -v '^ *+' conftest.er1 >conftest.err
26063
cat conftest.err >&5
26064
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065
(exit $ac_status); } &&
26066
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26067
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26068
(eval $ac_try) 2>&5
26070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071
(exit $ac_status); }; } &&
26072
{ ac_try='test -s conftest.$ac_objext'
26073
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26074
(eval $ac_try) 2>&5
26076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077
(exit $ac_status); }; }; then
26078
ac_header_compiler=yes
26080
echo "$as_me: failed program was:" >&5
26081
sed 's/^/| /' conftest.$ac_ext >&5
26083
ac_header_compiler=no
26085
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26086
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26087
echo "${ECHO_T}$ac_header_compiler" >&6
26089
# Is the header present?
26090
echo "$as_me:$LINENO: checking $ac_header presence" >&5
26091
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26092
cat >conftest.$ac_ext <<_ACEOF
26095
cat confdefs.h >>conftest.$ac_ext
26096
cat >>conftest.$ac_ext <<_ACEOF
26097
/* end confdefs.h. */
26098
#include <$ac_header>
26100
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26101
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26103
grep -v '^ *+' conftest.er1 >conftest.err
26105
cat conftest.err >&5
26106
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107
(exit $ac_status); } >/dev/null; then
26108
if test -s conftest.err; then
26109
ac_cpp_err=$ac_c_preproc_warn_flag
26110
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26117
if test -z "$ac_cpp_err"; then
26118
ac_header_preproc=yes
26120
echo "$as_me: failed program was:" >&5
26121
sed 's/^/| /' conftest.$ac_ext >&5
26123
ac_header_preproc=no
26125
rm -f conftest.err conftest.$ac_ext
26126
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26127
echo "${ECHO_T}$ac_header_preproc" >&6
26129
# So? What about this header?
26130
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26132
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26133
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26134
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26135
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26136
ac_header_preproc=yes
26139
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26140
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26141
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26142
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26143
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26144
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26145
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26146
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26147
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26148
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26149
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26150
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26153
## ------------------------------------------ ##
26154
## Report this to the AC_PACKAGE_NAME lists. ##
26155
## ------------------------------------------ ##
26158
sed "s/^/$as_me: WARNING: /" >&2
26161
echo "$as_me:$LINENO: checking for $ac_header" >&5
26162
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26163
if eval "test \"\${$as_ac_Header+set}\" = set"; then
26164
echo $ECHO_N "(cached) $ECHO_C" >&6
26166
eval "$as_ac_Header=\$ac_header_preproc"
26168
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26169
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26172
if test `eval echo '${'$as_ac_Header'}'` = yes; then
26173
cat >>confdefs.h <<_ACEOF
26174
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26181
echo "$as_me:$LINENO: checking for quotactl" >&5
26182
echo $ECHO_N "checking for quotactl... $ECHO_C" >&6
26183
if test "${ac_cv_func_quotactl+set}" = set; then
26184
echo $ECHO_N "(cached) $ECHO_C" >&6
26186
cat >conftest.$ac_ext <<_ACEOF
26189
cat confdefs.h >>conftest.$ac_ext
26190
cat >>conftest.$ac_ext <<_ACEOF
26191
/* end confdefs.h. */
26192
/* Define quotactl to an innocuous variant, in case <limits.h> declares quotactl.
26193
For example, HP-UX 11i <limits.h> declares gettimeofday. */
26194
#define quotactl innocuous_quotactl
26196
/* System header to define __stub macros and hopefully few prototypes,
26197
which can conflict with char quotactl (); below.
26198
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26199
<limits.h> exists even on freestanding compilers. */
26202
# include <limits.h>
26204
# include <assert.h>
26209
/* Override any gcc2 internal prototype to avoid an error. */
26214
/* We use char because int might match the return type of a gcc2
26215
builtin and then its argument prototype would still apply. */
26217
/* The GNU C library defines this for functions which it implements
26218
to always fail with ENOSYS. Some functions are actually named
26219
something starting with __ and the normal name is an alias. */
26220
#if defined (__stub_quotactl) || defined (__stub___quotactl)
26223
char (*f) () = quotactl;
26232
return f != quotactl;
26237
rm -f conftest.$ac_objext conftest$ac_exeext
26238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26239
(eval $ac_link) 2>conftest.er1
26241
grep -v '^ *+' conftest.er1 >conftest.err
26243
cat conftest.err >&5
26244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245
(exit $ac_status); } &&
26246
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26248
(eval $ac_try) 2>&5
26250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26251
(exit $ac_status); }; } &&
26252
{ ac_try='test -s conftest$ac_exeext'
26253
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26254
(eval $ac_try) 2>&5
26256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257
(exit $ac_status); }; }; then
26258
ac_cv_func_quotactl=yes
26260
echo "$as_me: failed program was:" >&5
26261
sed 's/^/| /' conftest.$ac_ext >&5
26263
ac_cv_func_quotactl=no
26265
rm -f conftest.err conftest.$ac_objext \
26266
conftest$ac_exeext conftest.$ac_ext
26268
echo "$as_me:$LINENO: result: $ac_cv_func_quotactl" >&5
26269
echo "${ECHO_T}$ac_cv_func_quotactl" >&6
26270
if test $ac_cv_func_quotactl = yes; then
26273
cat >>confdefs.h <<\_ACEOF
26274
#define NEED_QUOTACTL_WRAPPER 1
26277
echo "$as_me:$LINENO: result: enabling quotactl wrapper" >&5
26278
echo "${ECHO_T}enabling quotactl wrapper" >&6
26283
cat >>confdefs.h <<\_ACEOF
26284
#define HAVE_BROKEN_DBTOB 1
26289
majorvers="`uname -r | sed 's/\([0-9]\)..*/\1/'`"
26290
minorvers="`uname -r | sed 's/[0-9]\.\([0-9]\)\..*/\1/'`"
26291
if [ $majorvers -ge 2 ]; then
26292
if [ $minorvers -ge 2 ]; then
26294
echo "$as_me:$LINENO: result: * found Linux 2.2.x or higher" >&5
26295
echo "${ECHO_T} * found Linux 2.2.x or higher" >&6
26296
cat >>confdefs.h <<\_ACEOF
26297
#define SENDFILE_FLAVOR_LINUX 1
26301
echo "$as_me:$LINENO: result: * found Linux 2.0.x " >&5
26302
echo "${ECHO_T} * found Linux 2.0.x " >&6
26306
if test x"$this_cpu" = "xalpha"; then
26307
echo "$as_me:$LINENO: result: enabling gcc memcpy bug workaround" >&5
26308
echo "${ECHO_T}enabling gcc memcpy bug workaround" >&6
26309
cat >>confdefs.h <<\_ACEOF
26310
#define HAVE_GCC_MEMCPY_BUG 1
26317
if test x"$this_os" = "xmacosx"; then
26318
echo "$as_me:$LINENO: result: * Mac OSX specific configuration" >&5
26319
echo "${ECHO_T} * Mac OSX specific configuration" >&6
26320
cat >>confdefs.h <<\_ACEOF
26324
cat >>confdefs.h <<\_ACEOF
26325
#define HAVE_BROKEN_CPP 1
26328
cat >>confdefs.h <<\_ACEOF
26329
#define HAVE_2ARG_DBTOB 1
26332
cat >>confdefs.h <<\_ACEOF
26333
#define MACOSX_SERVER 1
26338
if test x"$this_os" = "xnetbsd"; then
26339
echo "$as_me:$LINENO: result: * NetBSD specific configuration" >&5
26340
echo "${ECHO_T} * NetBSD specific configuration" >&6
26341
cat >>confdefs.h <<\_ACEOF
26345
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
26346
# NetBSD ELF machines don't have to have DLSYM_PREPEND_UNDERSCORE.
26347
# If this test is true, it's not an ELF box.
26348
# This REALLY should be a configure test.
26349
cat >>confdefs.h <<\_ACEOF
26350
#define DLSYM_PREPEND_UNDERSCORE 1
26354
CFLAGS="-I\$(top_srcdir)/sys/netbsd -I/usr/include/kerberosIV $CFLAGS"
26357
cat >>confdefs.h <<\_ACEOF
26361
cat >>confdefs.h <<\_ACEOF
26362
#define NO_CRYPT_H 1
26367
if test x"$this_os" = "xopenbsd"; then
26368
echo "$as_me:$LINENO: result: * OpenBSD specific configuration" >&5
26369
echo "${ECHO_T} * OpenBSD specific configuration" >&6
26370
cat >>confdefs.h <<\_ACEOF
26374
cat >>confdefs.h <<\_ACEOF
26375
#define DLSYM_PREPEND_UNDERSCORE 1
26379
cat >>confdefs.h <<\_ACEOF
26383
cat >>confdefs.h <<\_ACEOF
26384
#define NO_CRYPT_H 1
26389
if test x"$this_os" = "xsolaris"; then
26390
echo "$as_me:$LINENO: result: * Solaris specific configuration" >&5
26391
echo "${ECHO_T} * Solaris specific configuration" >&6
26392
cat >>confdefs.h <<\_ACEOF
26396
cat >>confdefs.h <<\_ACEOF
26397
#define _ISOC9X_SOURCE 1
26400
cat >>confdefs.h <<\_ACEOF
26401
#define NO_STRUCT_TM_GMTOFF 1
26404
cat >>confdefs.h <<\_ACEOF
26408
CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
26411
echo "$as_me:$LINENO: result: enabling Solaris kernel module build" >&5
26412
echo "${ECHO_T}enabling Solaris kernel module build" >&6
26416
if test x"$this_os" = "xtru64"; then
26417
echo "$as_me:$LINENO: result: * Tru64 specific configuration" >&5
26418
echo "${ECHO_T} * Tru64 specific configuration" >&6
26419
cat >>confdefs.h <<\_ACEOF
26423
cat >>confdefs.h <<\_ACEOF
26424
#define HAVE_64BIT_LONGS 1
26427
cat >>confdefs.h <<\_ACEOF
26428
#define USE_OLD_RQUOTA 1
26431
cat >>confdefs.h <<\_ACEOF
26436
echo "$as_me:$LINENO: checking for set_auth_parameters in -lsecurity" >&5
26437
echo $ECHO_N "checking for set_auth_parameters in -lsecurity... $ECHO_C" >&6
26438
if test "${ac_cv_lib_security_set_auth_parameters+set}" = set; then
26439
echo $ECHO_N "(cached) $ECHO_C" >&6
26441
ac_check_lib_save_LIBS=$LIBS
26442
LIBS="-lsecurity $LIBS"
26443
cat >conftest.$ac_ext <<_ACEOF
26446
cat confdefs.h >>conftest.$ac_ext
26447
cat >>conftest.$ac_ext <<_ACEOF
26448
/* end confdefs.h. */
26450
/* Override any gcc2 internal prototype to avoid an error. */
26454
/* We use char because int might match the return type of a gcc2
26455
builtin and then its argument prototype would still apply. */
26456
char set_auth_parameters ();
26460
set_auth_parameters ();
26465
rm -f conftest.$ac_objext conftest$ac_exeext
26466
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26467
(eval $ac_link) 2>conftest.er1
26469
grep -v '^ *+' conftest.er1 >conftest.err
26471
cat conftest.err >&5
26472
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473
(exit $ac_status); } &&
26474
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26475
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476
(eval $ac_try) 2>&5
26478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479
(exit $ac_status); }; } &&
26480
{ ac_try='test -s conftest$ac_exeext'
26481
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482
(eval $ac_try) 2>&5
26484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485
(exit $ac_status); }; }; then
26486
ac_cv_lib_security_set_auth_parameters=yes
26488
echo "$as_me: failed program was:" >&5
26489
sed 's/^/| /' conftest.$ac_ext >&5
26491
ac_cv_lib_security_set_auth_parameters=no
26493
rm -f conftest.err conftest.$ac_objext \
26494
conftest$ac_exeext conftest.$ac_ext
26495
LIBS=$ac_check_lib_save_LIBS
26497
echo "$as_me:$LINENO: result: $ac_cv_lib_security_set_auth_parameters" >&5
26498
echo "${ECHO_T}$ac_cv_lib_security_set_auth_parameters" >&6
26499
if test $ac_cv_lib_security_set_auth_parameters = yes; then
26500
cat >>confdefs.h <<_ACEOF
26501
#define HAVE_LIBSECURITY 1
26504
LIBS="-lsecurity $LIBS"
26508
CFLAGS="-I\$(top_srcdir)/sys/tru64 $CFLAGS"
26515
# Check whether --with-ssl-dir or --without-ssl-dir was given.
26516
if test "${with_ssl_dir+set}" = set; then
26517
withval="$with_ssl_dir"
26519
if test "x$withval" = "xno"; then
26521
elif test "x$withval" = "xyes"; then
26526
tryssldir="$withval"
26538
if test "$tryssl" = "yes"; then
26539
echo "$as_me:$LINENO: checking for SSL" >&5
26540
echo $ECHO_N "checking for SSL... $ECHO_C" >&6
26541
for ssldir in "" $tryssldir /usr /usr/local/openssl /usr/lib/openssl /usr/local/ssl /usr/lib/ssl /usr/local /usr/pkg /opt /opt/openssl /usr/local/ssl ; do
26542
if test -f "$ssldir/include/openssl/cast.h" ; then
26543
SSL_CFLAGS="$SSL_CFLAGS -I$ssldir/include -I$ssldir/include/openssl"
26544
SSL_LIBS="$SSL_LIBS -L$ssldir/lib -L$ssldir -lcrypto"
26545
if test "x$need_dash_r" = "xyes"; then
26546
SSL_LIBS="$SSL_LIBS -R$ssldir/lib -R$ssldir"
26548
echo "$as_me:$LINENO: result: $ssldir (enabling RANDNUM and DHX support)" >&5
26549
echo "${ECHO_T}$ssldir (enabling RANDNUM and DHX support)" >&6
26552
echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
26553
echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6
26554
if test "${ac_cv_lib_crypto_main+set}" = set; then
26555
echo $ECHO_N "(cached) $ECHO_C" >&6
26557
ac_check_lib_save_LIBS=$LIBS
26558
LIBS="-lcrypto $LIBS"
26559
cat >conftest.$ac_ext <<_ACEOF
26562
cat confdefs.h >>conftest.$ac_ext
26563
cat >>conftest.$ac_ext <<_ACEOF
26564
/* end confdefs.h. */
26575
rm -f conftest.$ac_objext conftest$ac_exeext
26576
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26577
(eval $ac_link) 2>conftest.er1
26579
grep -v '^ *+' conftest.er1 >conftest.err
26581
cat conftest.err >&5
26582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26583
(exit $ac_status); } &&
26584
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26585
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26586
(eval $ac_try) 2>&5
26588
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589
(exit $ac_status); }; } &&
26590
{ ac_try='test -s conftest$ac_exeext'
26591
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592
(eval $ac_try) 2>&5
26594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595
(exit $ac_status); }; }; then
26596
ac_cv_lib_crypto_main=yes
26598
echo "$as_me: failed program was:" >&5
26599
sed 's/^/| /' conftest.$ac_ext >&5
26601
ac_cv_lib_crypto_main=no
26603
rm -f conftest.err conftest.$ac_objext \
26604
conftest$ac_exeext conftest.$ac_ext
26605
LIBS=$ac_check_lib_save_LIBS
26607
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
26608
echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6
26609
if test $ac_cv_lib_crypto_main = yes; then
26610
cat >>confdefs.h <<_ACEOF
26611
#define HAVE_LIBCRYPTO 1
26614
LIBS="-lcrypto $LIBS"
26619
echo "$as_me:$LINENO: checking for main in -ldes" >&5
26620
echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
26621
if test "${ac_cv_lib_des_main+set}" = set; then
26622
echo $ECHO_N "(cached) $ECHO_C" >&6
26624
ac_check_lib_save_LIBS=$LIBS
26626
cat >conftest.$ac_ext <<_ACEOF
26629
cat confdefs.h >>conftest.$ac_ext
26630
cat >>conftest.$ac_ext <<_ACEOF
26631
/* end confdefs.h. */
26642
rm -f conftest.$ac_objext conftest$ac_exeext
26643
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26644
(eval $ac_link) 2>conftest.er1
26646
grep -v '^ *+' conftest.er1 >conftest.err
26648
cat conftest.err >&5
26649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650
(exit $ac_status); } &&
26651
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26653
(eval $ac_try) 2>&5
26655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656
(exit $ac_status); }; } &&
26657
{ ac_try='test -s conftest$ac_exeext'
26658
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26659
(eval $ac_try) 2>&5
26661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662
(exit $ac_status); }; }; then
26663
ac_cv_lib_des_main=yes
26665
echo "$as_me: failed program was:" >&5
26666
sed 's/^/| /' conftest.$ac_ext >&5
26668
ac_cv_lib_des_main=no
26670
rm -f conftest.err conftest.$ac_objext \
26671
conftest$ac_exeext conftest.$ac_ext
26672
LIBS=$ac_check_lib_save_LIBS
26674
echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
26675
echo "${ECHO_T}$ac_cv_lib_des_main" >&6
26676
if test $ac_cv_lib_des_main = yes; then
26677
cat >>confdefs.h <<_ACEOF
26678
#define HAVE_LIBDES 1
26686
cat >>confdefs.h <<\_ACEOF
26687
#define OPENSSL_DHX 1
26690
cat >>confdefs.h <<\_ACEOF
26698
if test "x$compile_ssl" = "xno"; then
26699
echo "$as_me:$LINENO: result: no" >&5
26700
echo "${ECHO_T}no" >&6
26708
# Check whether --enable-pgp-uam or --disable-pgp-uam was given.
26709
if test "${enable_pgp_uam+set}" = set; then
26710
enableval="$enable_pgp_uam"
26711
if test "$enableval" = "yes"; then
26712
if test "$compile_ssl" = "yes"; then
26713
cat >>confdefs.h <<\_ACEOF
26718
echo "$as_me:$LINENO: result: enabling build with PGP UAM module" >&5
26719
echo "${ECHO_T}enabling build with PGP UAM module" >&6
26726
# Check whether --enable-krb4-uam or --disable-krb4-uam was given.
26727
if test "${enable_krb4_uam+set}" = set; then
26728
enableval="$enable_krb4_uam"
26729
if test "$enableval" = "yes"; then
26730
cat >>confdefs.h <<\_ACEOF
26734
compile_kerberos=yes
26735
echo "$as_me:$LINENO: result: enabling build with Kerberos v4 UAM module" >&5
26736
echo "${ECHO_T}enabling build with Kerberos v4 UAM module" >&6
26741
echo "$as_me:$LINENO: checking whether configuration files should be overwritten" >&5
26742
echo $ECHO_N "checking whether configuration files should be overwritten... $ECHO_C" >&6
26743
# Check whether --enable-overwrite or --disable-overwrite was given.
26744
if test "${enable_overwrite+set}" = set; then
26745
enableval="$enable_overwrite"
26746
OVERWRITE_CONFIG="${enable_overwrite}"
26748
OVERWRITE_CONFIG="no"
26751
echo "$as_me:$LINENO: result: $OVERWRITE_CONFIG" >&5
26752
echo "${ECHO_T}$OVERWRITE_CONFIG" >&6
26763
if test x$solaris_module = xyes; then
26764
SOLARIS_MODULE_TRUE=
26765
SOLARIS_MODULE_FALSE='#'
26767
SOLARIS_MODULE_TRUE='#'
26768
SOLARIS_MODULE_FALSE=
26773
if test x$compile_timelord = xyes; then
26774
COMPILE_TIMELORD_TRUE=
26775
COMPILE_TIMELORD_FALSE='#'
26777
COMPILE_TIMELORD_TRUE='#'
26778
COMPILE_TIMELORD_FALSE=
26783
if test x$compile_ssl = xyes; then
26793
if test x$compile_kerberos = xyes; then
26795
USE_KERBEROS_FALSE='#'
26797
USE_KERBEROS_TRUE='#'
26798
USE_KERBEROS_FALSE=
26803
if test x$use_pam_so = xyes; then
26805
USE_PAM_SO_FALSE='#'
26807
USE_PAM_SO_TRUE='#'
26813
if test x$compile_pam = xyes; then
26823
if test x$compile_pam = xyes; then
26825
BUILD_PAM_FALSE='#'
26833
if test x$compile_pgp = xyes; then
26843
if test x$sysv_style = xcobalt; then
26845
USE_COBALT_FALSE='#'
26847
USE_COBALT_TRUE='#'
26853
if test x$sysv_style = xnetbsd; then
26855
USE_NETBSD_FALSE='#'
26857
USE_NETBSD_TRUE='#'
26863
if test x$sysv_style = xredhat; then
26865
USE_REDHAT_FALSE='#'
26867
USE_REDHAT_TRUE='#'
26873
if test x$sysv_style = xsuse; then
26883
if test x$shadowpw = xyes; then
26885
USE_SHADOWPW_FALSE='#'
26887
USE_SHADOWPW_TRUE='#'
26888
USE_SHADOWPW_FALSE=
26893
if test x$sysv_style = xtru64; then
26895
USE_TRU64_FALSE='#'
26903
ac_config_files="$ac_config_files Makefile bin/Makefile bin/adv1tov2/Makefile bin/aecho/Makefile bin/afile/Makefile bin/afppasswd/Makefile bin/cnid/Makefile bin/cnid/cnid_maint bin/getzones/Makefile bin/megatron/Makefile bin/nbp/Makefile bin/pap/Makefile bin/psorder/Makefile config/Makefile contrib/Makefile contrib/macusers/Makefile contrib/macusers/macusers contrib/nu/Makefile contrib/nu/nu contrib/printing/Makefile contrib/shell_utils/Makefile contrib/shell_utils/afpd-mtab.pl contrib/shell_utils/apple_cp contrib/shell_utils/apple_mv contrib/shell_utils/apple_rm contrib/shell_utils/cleanappledouble.pl contrib/shell_utils/lp2pap.sh contrib/shell_utils/netatalkshorternamelinks.pl contrib/timelord/Makefile distrib/Makefile distrib/config/Makefile distrib/config/netatalk-config distrib/initscripts/Makefile distrib/m4/Makefile doc/Makefile etc/Makefile etc/afpd/Makefile etc/afpd/nls/Makefile etc/atalkd/Makefile etc/uams/Makefile etc/uams/uams_krb4/Makefile etc/papd/Makefile etc/psf/Makefile include/Makefile include/atalk/Makefile libatalk/Makefile libatalk/adouble/Makefile libatalk/asp/Makefile libatalk/atp/Makefile libatalk/cnid/Makefile libatalk/compat/Makefile libatalk/dsi/Makefile libatalk/nbp/Makefile libatalk/netddp/Makefile libatalk/util/Makefile macros/Makefile man/Makefile man/man1/Makefile man/man3/Makefile man/man4/Makefile man/man5/Makefile man/man8/Makefile sys/Makefile sys/generic/Makefile sys/generic/sys/Makefile sys/netatalk/Makefile sys/netbsd/Makefile sys/netbsd/netatalk/Makefile sys/solaris/Makefile sys/solaris/Makefile.kernel sys/sunos/Makefile sys/ultrix/Makefile"
26904
ac_config_commands="$ac_config_commands default"
26905
cat >confcache <<\_ACEOF
26906
# This file is a shell script that caches the results of configure
26907
# tests run on this system so they can be shared between configure
26908
# scripts and configure runs, see configure's option --config-cache.
26909
# It is not useful on other systems. If it contains results you don't
26910
# want to keep, you may remove or edit it.
26912
# config.status only pays attention to the cache file if you give it
26913
# the --recheck option to rerun configure.
26915
# `ac_cv_env_foo' variables (set or unset) will be overridden when
26916
# loading this file, other *unset* `ac_cv_foo' will be assigned the
26917
# following values.
26921
# The following way of writing the cache mishandles newlines in values,
26922
# but we know of no workaround that is simple, portable, and efficient.
26923
# So, don't put newlines in cache variables' values.
26924
# Ultrix sh set writes to stderr and can't be redirected directly,
26925
# and sets the high bit in the cache file unless we assign to the vars.
26928
case `(ac_space=' '; set | grep ac_space) 2>&1` in
26930
# `set' does not quote correctly, so add quotes (double-quote
26931
# substitution turns \\\\ into \\, and sed turns \\ into \).
26934
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26937
# `set' quotes correctly as required by POSIX, so do not add quotes.
26939
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26946
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26948
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26950
if diff $cache_file confcache >/dev/null 2>&1; then :; else
26951
if test -w $cache_file; then
26952
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26953
cat confcache >$cache_file
26955
echo "not updating unwritable cache $cache_file"
26960
test "x$prefix" = xNONE && prefix=$ac_default_prefix
26961
# Let make expand exec_prefix.
26962
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26964
# VPATH may cause trouble with some makes, so we remove $(srcdir),
26965
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26966
# trailing colons and then remove the whole line if VPATH becomes empty
26967
# (actually we leave an empty line to preserve line numbers).
26968
if test "x$srcdir" = x.; then
26969
ac_vpsub='/^[ ]*VPATH[ ]*=/{
26970
s/:*\$(srcdir):*/:/;
26971
s/:*\${srcdir}:*/:/;
26973
s/^\([^=]*=[ ]*\):*/\1/;
26979
DEFS=-DHAVE_CONFIG_H
26983
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26984
# 1. Remove the extension, and $U if already installed.
26985
ac_i=`echo "$ac_i" |
26986
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26988
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26989
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26991
LIBOBJS=$ac_libobjs
26993
LTLIBOBJS=$ac_ltlibobjs
26996
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26997
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26998
Usually this means the macro was only invoked conditionally." >&5
26999
echo "$as_me: error: conditional \"AMDEP\" was never defined.
27000
Usually this means the macro was only invoked conditionally." >&2;}
27001
{ (exit 1); exit 1; }; }
27003
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27004
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27005
Usually this means the macro was only invoked conditionally." >&5
27006
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27007
Usually this means the macro was only invoked conditionally." >&2;}
27008
{ (exit 1); exit 1; }; }
27010
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27011
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27012
Usually this means the macro was only invoked conditionally." >&5
27013
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27014
Usually this means the macro was only invoked conditionally." >&2;}
27015
{ (exit 1); exit 1; }; }
27017
if test -z "${COMPILE_CNID_TRUE}" && test -z "${COMPILE_CNID_FALSE}"; then
27018
{ { echo "$as_me:$LINENO: error: conditional \"COMPILE_CNID\" was never defined.
27019
Usually this means the macro was only invoked conditionally." >&5
27020
echo "$as_me: error: conditional \"COMPILE_CNID\" was never defined.
27021
Usually this means the macro was only invoked conditionally." >&2;}
27022
{ (exit 1); exit 1; }; }
27024
if test -z "${SOLARIS_MODULE_TRUE}" && test -z "${SOLARIS_MODULE_FALSE}"; then
27025
{ { echo "$as_me:$LINENO: error: conditional \"SOLARIS_MODULE\" was never defined.
27026
Usually this means the macro was only invoked conditionally." >&5
27027
echo "$as_me: error: conditional \"SOLARIS_MODULE\" was never defined.
27028
Usually this means the macro was only invoked conditionally." >&2;}
27029
{ (exit 1); exit 1; }; }
27031
if test -z "${COMPILE_TIMELORD_TRUE}" && test -z "${COMPILE_TIMELORD_FALSE}"; then
27032
{ { echo "$as_me:$LINENO: error: conditional \"COMPILE_TIMELORD\" was never defined.
27033
Usually this means the macro was only invoked conditionally." >&5
27034
echo "$as_me: error: conditional \"COMPILE_TIMELORD\" was never defined.
27035
Usually this means the macro was only invoked conditionally." >&2;}
27036
{ (exit 1); exit 1; }; }
27038
if test -z "${USE_DHX_TRUE}" && test -z "${USE_DHX_FALSE}"; then
27039
{ { echo "$as_me:$LINENO: error: conditional \"USE_DHX\" was never defined.
27040
Usually this means the macro was only invoked conditionally." >&5
27041
echo "$as_me: error: conditional \"USE_DHX\" was never defined.
27042
Usually this means the macro was only invoked conditionally." >&2;}
27043
{ (exit 1); exit 1; }; }
27045
if test -z "${USE_KERBEROS_TRUE}" && test -z "${USE_KERBEROS_FALSE}"; then
27046
{ { echo "$as_me:$LINENO: error: conditional \"USE_KERBEROS\" was never defined.
27047
Usually this means the macro was only invoked conditionally." >&5
27048
echo "$as_me: error: conditional \"USE_KERBEROS\" was never defined.
27049
Usually this means the macro was only invoked conditionally." >&2;}
27050
{ (exit 1); exit 1; }; }
27052
if test -z "${USE_PAM_SO_TRUE}" && test -z "${USE_PAM_SO_FALSE}"; then
27053
{ { echo "$as_me:$LINENO: error: conditional \"USE_PAM_SO\" was never defined.
27054
Usually this means the macro was only invoked conditionally." >&5
27055
echo "$as_me: error: conditional \"USE_PAM_SO\" was never defined.
27056
Usually this means the macro was only invoked conditionally." >&2;}
27057
{ (exit 1); exit 1; }; }
27059
if test -z "${USE_PAM_TRUE}" && test -z "${USE_PAM_FALSE}"; then
27060
{ { echo "$as_me:$LINENO: error: conditional \"USE_PAM\" was never defined.
27061
Usually this means the macro was only invoked conditionally." >&5
27062
echo "$as_me: error: conditional \"USE_PAM\" was never defined.
27063
Usually this means the macro was only invoked conditionally." >&2;}
27064
{ (exit 1); exit 1; }; }
27066
if test -z "${BUILD_PAM_TRUE}" && test -z "${BUILD_PAM_FALSE}"; then
27067
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_PAM\" was never defined.
27068
Usually this means the macro was only invoked conditionally." >&5
27069
echo "$as_me: error: conditional \"BUILD_PAM\" was never defined.
27070
Usually this means the macro was only invoked conditionally." >&2;}
27071
{ (exit 1); exit 1; }; }
27073
if test -z "${USE_PGP_TRUE}" && test -z "${USE_PGP_FALSE}"; then
27074
{ { echo "$as_me:$LINENO: error: conditional \"USE_PGP\" was never defined.
27075
Usually this means the macro was only invoked conditionally." >&5
27076
echo "$as_me: error: conditional \"USE_PGP\" was never defined.
27077
Usually this means the macro was only invoked conditionally." >&2;}
27078
{ (exit 1); exit 1; }; }
27080
if test -z "${USE_COBALT_TRUE}" && test -z "${USE_COBALT_FALSE}"; then
27081
{ { echo "$as_me:$LINENO: error: conditional \"USE_COBALT\" was never defined.
27082
Usually this means the macro was only invoked conditionally." >&5
27083
echo "$as_me: error: conditional \"USE_COBALT\" was never defined.
27084
Usually this means the macro was only invoked conditionally." >&2;}
27085
{ (exit 1); exit 1; }; }
27087
if test -z "${USE_NETBSD_TRUE}" && test -z "${USE_NETBSD_FALSE}"; then
27088
{ { echo "$as_me:$LINENO: error: conditional \"USE_NETBSD\" was never defined.
27089
Usually this means the macro was only invoked conditionally." >&5
27090
echo "$as_me: error: conditional \"USE_NETBSD\" was never defined.
27091
Usually this means the macro was only invoked conditionally." >&2;}
27092
{ (exit 1); exit 1; }; }
27094
if test -z "${USE_REDHAT_TRUE}" && test -z "${USE_REDHAT_FALSE}"; then
27095
{ { echo "$as_me:$LINENO: error: conditional \"USE_REDHAT\" was never defined.
27096
Usually this means the macro was only invoked conditionally." >&5
27097
echo "$as_me: error: conditional \"USE_REDHAT\" was never defined.
27098
Usually this means the macro was only invoked conditionally." >&2;}
27099
{ (exit 1); exit 1; }; }
27101
if test -z "${USE_SUSE_TRUE}" && test -z "${USE_SUSE_FALSE}"; then
27102
{ { echo "$as_me:$LINENO: error: conditional \"USE_SUSE\" was never defined.
27103
Usually this means the macro was only invoked conditionally." >&5
27104
echo "$as_me: error: conditional \"USE_SUSE\" was never defined.
27105
Usually this means the macro was only invoked conditionally." >&2;}
27106
{ (exit 1); exit 1; }; }
27108
if test -z "${USE_SHADOWPW_TRUE}" && test -z "${USE_SHADOWPW_FALSE}"; then
27109
{ { echo "$as_me:$LINENO: error: conditional \"USE_SHADOWPW\" was never defined.
27110
Usually this means the macro was only invoked conditionally." >&5
27111
echo "$as_me: error: conditional \"USE_SHADOWPW\" was never defined.
27112
Usually this means the macro was only invoked conditionally." >&2;}
27113
{ (exit 1); exit 1; }; }
27115
if test -z "${USE_TRU64_TRUE}" && test -z "${USE_TRU64_FALSE}"; then
27116
{ { echo "$as_me:$LINENO: error: conditional \"USE_TRU64\" was never defined.
27117
Usually this means the macro was only invoked conditionally." >&5
27118
echo "$as_me: error: conditional \"USE_TRU64\" was never defined.
27119
Usually this means the macro was only invoked conditionally." >&2;}
27120
{ (exit 1); exit 1; }; }
27123
: ${CONFIG_STATUS=./config.status}
27124
ac_clean_files_save=$ac_clean_files
27125
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27126
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27127
echo "$as_me: creating $CONFIG_STATUS" >&6;}
27128
cat >$CONFIG_STATUS <<_ACEOF
27130
# Generated by $as_me.
27131
# Run this file to recreate the current configuration.
27132
# Compiler output produced by configure, useful for debugging
27133
# configure, is in config.log if it exists.
27136
ac_cs_recheck=false
27138
SHELL=\${CONFIG_SHELL-$SHELL}
27141
cat >>$CONFIG_STATUS <<\_ACEOF
27142
## --------------------- ##
27143
## M4sh Initialization. ##
27144
## --------------------- ##
27146
# Be Bourne compatible
27147
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27150
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27151
# is contrary to our usage. Disable this feature.
27152
alias -g '${1+"$@"}'='"$@"'
27153
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27156
DUALCASE=1; export DUALCASE # for MKS sh
27158
# Support unset when possible.
27159
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27166
# Work around bugs in pre-3.0 UWIN ksh.
27167
$as_unset ENV MAIL MAILPATH
27174
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27175
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27176
LC_TELEPHONE LC_TIME
27178
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27179
eval $as_var=C; export $as_var
27185
# Required to use basename.
27186
if expr a : '\(a\)' >/dev/null 2>&1; then
27192
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27193
as_basename=basename
27199
# Name of the executable.
27200
as_me=`$as_basename "$0" ||
27201
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27202
X"$0" : 'X\(//\)$' \| \
27203
X"$0" : 'X\(/\)$' \| \
27204
. : '\(.\)' 2>/dev/null ||
27206
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27207
/^X\/\(\/\/\)$/{ s//\1/; q; }
27208
/^X\/\(\/\).*/{ s//\1/; q; }
27212
# PATH needs CR, and LINENO needs CR and PATH.
27213
# Avoid depending upon Character Ranges.
27214
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27215
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27216
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27217
as_cr_digits='0123456789'
27218
as_cr_alnum=$as_cr_Letters$as_cr_digits
27220
# The user is always right.
27221
if test "${PATH_SEPARATOR+set}" != set; then
27222
echo "#! /bin/sh" >conf$$.sh
27223
echo "exit 0" >>conf$$.sh
27225
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27234
as_lineno_1=$LINENO
27235
as_lineno_2=$LINENO
27236
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27237
test "x$as_lineno_1" != "x$as_lineno_2" &&
27238
test "x$as_lineno_3" = "x$as_lineno_2" || {
27239
# Find who we are. Look in the path if we contain no path at all
27242
*[\\/]* ) as_myself=$0 ;;
27243
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27244
for as_dir in $PATH
27247
test -z "$as_dir" && as_dir=.
27248
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27253
# We did not find ourselves, most probably we were run as `sh COMMAND'
27254
# in which case we are not to be found in the path.
27255
if test "x$as_myself" = x; then
27258
if test ! -f "$as_myself"; then
27259
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27260
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27261
{ (exit 1); exit 1; }; }
27263
case $CONFIG_SHELL in
27265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27266
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27269
test -z "$as_dir" && as_dir=.
27270
for as_base in sh bash ksh sh5; do
27273
if ("$as_dir/$as_base" -c '
27274
as_lineno_1=$LINENO
27275
as_lineno_2=$LINENO
27276
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27277
test "x$as_lineno_1" != "x$as_lineno_2" &&
27278
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27279
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27280
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27281
CONFIG_SHELL=$as_dir/$as_base
27282
export CONFIG_SHELL
27283
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27291
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27292
# uniformly replaced by the line number. The first 'sed' inserts a
27293
# line-number line before each line; the second 'sed' does the real
27294
# work. The second script uses 'N' to pair each line-number line
27295
# with the numbered line, and appends trailing '-' during
27296
# substitution so that $LINENO is not a special case at line end.
27297
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27298
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27299
sed '=' <$as_myself |
27304
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27307
s,^['$as_cr_digits']*\n,,
27308
' >$as_me.lineno &&
27309
chmod +x $as_me.lineno ||
27310
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27311
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27312
{ (exit 1); exit 1; }; }
27314
# Don't try to exec as it changes $[0], causing all sort of problems
27315
# (the dirname of $[0] is not the place where we might find the
27316
# original and so on. Autoconf is especially sensible to this).
27318
# Exit status is that of the last command.
27323
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27324
*c*,-n*) ECHO_N= ECHO_C='
27326
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27327
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27330
if expr a : '\(a\)' >/dev/null 2>&1; then
27336
rm -f conf$$ conf$$.exe conf$$.file
27338
if ln -s conf$$.file conf$$ 2>/dev/null; then
27339
# We could just check for DJGPP; but this test a) works b) is more generic
27340
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27341
if test -f conf$$.exe; then
27342
# Don't use ln at all; we don't have any links
27347
elif ln conf$$.file conf$$ 2>/dev/null; then
27352
rm -f conf$$ conf$$.exe conf$$.file
27354
if mkdir -p . 2>/dev/null; then
27357
test -d ./-p && rmdir ./-p
27361
as_executable_p="test -f"
27363
# Sed expression to map a string onto a valid CPP name.
27364
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27366
# Sed expression to map a string onto a valid variable name.
27367
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27371
# We need space, tab and new line, in precisely that order.
27381
# Open the log real soon, to keep \$[0] and so on meaningful, and to
27382
# report actual input values of CONFIG_FILES etc. instead of their
27383
# values after options handling. Logging --version etc. is OK.
27387
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27388
## Running $as_me. ##
27393
This file was extended by $as_me, which was
27394
generated by GNU Autoconf 2.58. Invocation command line was
27396
CONFIG_FILES = $CONFIG_FILES
27397
CONFIG_HEADERS = $CONFIG_HEADERS
27398
CONFIG_LINKS = $CONFIG_LINKS
27399
CONFIG_COMMANDS = $CONFIG_COMMANDS
27403
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27407
# Files that config.status was made for.
27408
if test -n "$ac_config_files"; then
27409
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27412
if test -n "$ac_config_headers"; then
27413
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27416
if test -n "$ac_config_links"; then
27417
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27420
if test -n "$ac_config_commands"; then
27421
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27424
cat >>$CONFIG_STATUS <<\_ACEOF
27427
\`$as_me' instantiates files from templates according to the
27428
current configuration.
27430
Usage: $0 [OPTIONS] [FILE]...
27432
-h, --help print this help, then exit
27433
-V, --version print version number, then exit
27434
-q, --quiet do not print progress messages
27435
-d, --debug don't remove temporary files
27436
--recheck update $as_me by reconfiguring in the same conditions
27437
--file=FILE[:TEMPLATE]
27438
instantiate the configuration file FILE
27439
--header=FILE[:TEMPLATE]
27440
instantiate the configuration header FILE
27442
Configuration files:
27445
Configuration headers:
27448
Configuration commands:
27451
Report bugs to <bug-autoconf@gnu.org>."
27454
cat >>$CONFIG_STATUS <<_ACEOF
27457
configured by $0, generated by GNU Autoconf 2.58,
27458
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27460
Copyright (C) 2003 Free Software Foundation, Inc.
27461
This config.status script is free software; the Free Software Foundation
27462
gives unlimited permission to copy, distribute and modify it."
27467
cat >>$CONFIG_STATUS <<\_ACEOF
27468
# If no file are specified by the user, then we need to provide default
27469
# value. By we need to know if files were specified by the user.
27475
ac_option=`expr "x$1" : 'x\([^=]*\)='`
27476
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27484
*) # This is not an option, so the user has probably given explicit
27487
ac_need_defaults=false;;
27491
# Handling of the options.
27493
cat >>$CONFIG_STATUS <<\_ACEOF
27494
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27496
--version | --vers* | -V )
27497
echo "$ac_cs_version"; exit 0 ;;
27499
# Conflict between --help and --header
27500
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
27501
Try \`$0 --help' for more information." >&5
27502
echo "$as_me: error: ambiguous option: $1
27503
Try \`$0 --help' for more information." >&2;}
27504
{ (exit 1); exit 1; }; };;
27505
--help | --hel | -h )
27506
echo "$ac_cs_usage"; exit 0 ;;
27507
--debug | --d* | -d )
27509
--file | --fil | --fi | --f )
27511
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27512
ac_need_defaults=false;;
27513
--header | --heade | --head | --hea )
27515
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27516
ac_need_defaults=false;;
27517
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
27518
| -silent | --silent | --silen | --sile | --sil | --si | --s)
27521
# This is an error.
27522
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27523
Try \`$0 --help' for more information." >&5
27524
echo "$as_me: error: unrecognized option: $1
27525
Try \`$0 --help' for more information." >&2;}
27526
{ (exit 1); exit 1; }; } ;;
27528
*) ac_config_targets="$ac_config_targets $1" ;;
27534
ac_configure_extra_args=
27536
if $ac_cs_silent; then
27538
ac_configure_extra_args="$ac_configure_extra_args --silent"
27542
cat >>$CONFIG_STATUS <<_ACEOF
27543
if \$ac_cs_recheck; then
27544
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27545
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27550
cat >>$CONFIG_STATUS <<_ACEOF
27552
# INIT-COMMANDS section.
27555
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27561
cat >>$CONFIG_STATUS <<\_ACEOF
27562
for ac_config_target in $ac_config_targets
27564
case "$ac_config_target" in
27565
# Handling of arguments.
27566
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27567
"bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
27568
"bin/adv1tov2/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/adv1tov2/Makefile" ;;
27569
"bin/aecho/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/aecho/Makefile" ;;
27570
"bin/afile/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/afile/Makefile" ;;
27571
"bin/afppasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/afppasswd/Makefile" ;;
27572
"bin/cnid/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/cnid/Makefile" ;;
27573
"bin/cnid/cnid_maint" ) CONFIG_FILES="$CONFIG_FILES bin/cnid/cnid_maint" ;;
27574
"bin/getzones/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/getzones/Makefile" ;;
27575
"bin/megatron/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/megatron/Makefile" ;;
27576
"bin/nbp/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/nbp/Makefile" ;;
27577
"bin/pap/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/pap/Makefile" ;;
27578
"bin/psorder/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/psorder/Makefile" ;;
27579
"config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
27580
"contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
27581
"contrib/macusers/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/macusers/Makefile" ;;
27582
"contrib/macusers/macusers" ) CONFIG_FILES="$CONFIG_FILES contrib/macusers/macusers" ;;
27583
"contrib/nu/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/nu/Makefile" ;;
27584
"contrib/nu/nu" ) CONFIG_FILES="$CONFIG_FILES contrib/nu/nu" ;;
27585
"contrib/printing/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/printing/Makefile" ;;
27586
"contrib/shell_utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/Makefile" ;;
27587
"contrib/shell_utils/afpd-mtab.pl" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/afpd-mtab.pl" ;;
27588
"contrib/shell_utils/apple_cp" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/apple_cp" ;;
27589
"contrib/shell_utils/apple_mv" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/apple_mv" ;;
27590
"contrib/shell_utils/apple_rm" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/apple_rm" ;;
27591
"contrib/shell_utils/cleanappledouble.pl" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/cleanappledouble.pl" ;;
27592
"contrib/shell_utils/lp2pap.sh" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/lp2pap.sh" ;;
27593
"contrib/shell_utils/netatalkshorternamelinks.pl" ) CONFIG_FILES="$CONFIG_FILES contrib/shell_utils/netatalkshorternamelinks.pl" ;;
27594
"contrib/timelord/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/timelord/Makefile" ;;
27595
"distrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/Makefile" ;;
27596
"distrib/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/config/Makefile" ;;
27597
"distrib/config/netatalk-config" ) CONFIG_FILES="$CONFIG_FILES distrib/config/netatalk-config" ;;
27598
"distrib/initscripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/initscripts/Makefile" ;;
27599
"distrib/m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES distrib/m4/Makefile" ;;
27600
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27601
"etc/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
27602
"etc/afpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/afpd/Makefile" ;;
27603
"etc/afpd/nls/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/afpd/nls/Makefile" ;;
27604
"etc/atalkd/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/atalkd/Makefile" ;;
27605
"etc/uams/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/uams/Makefile" ;;
27606
"etc/uams/uams_krb4/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/uams/uams_krb4/Makefile" ;;
27607
"etc/papd/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/papd/Makefile" ;;
27608
"etc/psf/Makefile" ) CONFIG_FILES="$CONFIG_FILES etc/psf/Makefile" ;;
27609
"include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27610
"include/atalk/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/atalk/Makefile" ;;
27611
"libatalk/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/Makefile" ;;
27612
"libatalk/adouble/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/adouble/Makefile" ;;
27613
"libatalk/asp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/asp/Makefile" ;;
27614
"libatalk/atp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/atp/Makefile" ;;
27615
"libatalk/cnid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/cnid/Makefile" ;;
27616
"libatalk/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/compat/Makefile" ;;
27617
"libatalk/dsi/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/dsi/Makefile" ;;
27618
"libatalk/nbp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/nbp/Makefile" ;;
27619
"libatalk/netddp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/netddp/Makefile" ;;
27620
"libatalk/util/Makefile" ) CONFIG_FILES="$CONFIG_FILES libatalk/util/Makefile" ;;
27621
"macros/Makefile" ) CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;;
27622
"man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
27623
"man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
27624
"man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
27625
"man/man4/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man4/Makefile" ;;
27626
"man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
27627
"man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
27628
"sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/Makefile" ;;
27629
"sys/generic/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/generic/Makefile" ;;
27630
"sys/generic/sys/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/generic/sys/Makefile" ;;
27631
"sys/netatalk/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/netatalk/Makefile" ;;
27632
"sys/netbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/netbsd/Makefile" ;;
27633
"sys/netbsd/netatalk/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/netbsd/netatalk/Makefile" ;;
27634
"sys/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/solaris/Makefile" ;;
27635
"sys/solaris/Makefile.kernel" ) CONFIG_FILES="$CONFIG_FILES sys/solaris/Makefile.kernel" ;;
27636
"sys/sunos/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/sunos/Makefile" ;;
27637
"sys/ultrix/Makefile" ) CONFIG_FILES="$CONFIG_FILES sys/ultrix/Makefile" ;;
27638
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27639
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27640
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27641
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27642
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27643
{ (exit 1); exit 1; }; };;
27647
# If the user did not use the arguments to specify the items to instantiate,
27648
# then the envvar interface is used. Set only those that are not.
27649
# We use the long form for the default assignment because of an extremely
27650
# bizarre bug on SunOS 4.1.3.
27651
if $ac_need_defaults; then
27652
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27653
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27654
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27657
# Have a temporary directory for convenience. Make it in the build tree
27658
# simply because there is no reason to put it here, and in addition,
27659
# creating and moving files from /tmp can sometimes cause problems.
27660
# Create a temporary directory, and hook for its removal unless debugging.
27663
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27664
trap '{ (exit 1); exit 1; }' 1 2 13 15
27667
# Create a (secure) tmp directory for tmp files.
27670
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27671
test -n "$tmp" && test -d "$tmp"
27674
tmp=./confstat$$-$RANDOM
27675
(umask 077 && mkdir $tmp)
27678
echo "$me: cannot create a temporary directory in ." >&2
27679
{ (exit 1); exit 1; }
27684
cat >>$CONFIG_STATUS <<_ACEOF
27687
# CONFIG_FILES section.
27690
# No need to generate the scripts if there are no CONFIG_FILES.
27691
# This happens for instance when ./config.status config.h
27692
if test -n "\$CONFIG_FILES"; then
27693
# Protect against being on the right side of a sed subst in config.status.
27694
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27695
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27696
s,@PERL@,$PERL,;t t
27697
s,@GREP@,$GREP,;t t
27699
s,@SHELL@,$SHELL,;t t
27700
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27701
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27702
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27703
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27704
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27705
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27706
s,@exec_prefix@,$exec_prefix,;t t
27707
s,@prefix@,$prefix,;t t
27708
s,@program_transform_name@,$program_transform_name,;t t
27709
s,@bindir@,$bindir,;t t
27710
s,@sbindir@,$sbindir,;t t
27711
s,@libexecdir@,$libexecdir,;t t
27712
s,@datadir@,$datadir,;t t
27713
s,@sysconfdir@,$sysconfdir,;t t
27714
s,@sharedstatedir@,$sharedstatedir,;t t
27715
s,@localstatedir@,$localstatedir,;t t
27716
s,@libdir@,$libdir,;t t
27717
s,@includedir@,$includedir,;t t
27718
s,@oldincludedir@,$oldincludedir,;t t
27719
s,@infodir@,$infodir,;t t
27720
s,@mandir@,$mandir,;t t
27721
s,@build_alias@,$build_alias,;t t
27722
s,@host_alias@,$host_alias,;t t
27723
s,@target_alias@,$target_alias,;t t
27724
s,@DEFS@,$DEFS,;t t
27725
s,@ECHO_C@,$ECHO_C,;t t
27726
s,@ECHO_N@,$ECHO_N,;t t
27727
s,@ECHO_T@,$ECHO_T,;t t
27728
s,@LIBS@,$LIBS,;t t
27729
s,@NETATALK_VERSION@,$NETATALK_VERSION,;t t
27730
s,@build@,$build,;t t
27731
s,@build_cpu@,$build_cpu,;t t
27732
s,@build_vendor@,$build_vendor,;t t
27733
s,@build_os@,$build_os,;t t
27734
s,@host@,$host,;t t
27735
s,@host_cpu@,$host_cpu,;t t
27736
s,@host_vendor@,$host_vendor,;t t
27737
s,@host_os@,$host_os,;t t
27738
s,@target@,$target,;t t
27739
s,@target_cpu@,$target_cpu,;t t
27740
s,@target_vendor@,$target_vendor,;t t
27741
s,@target_os@,$target_os,;t t
27742
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27743
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27744
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27745
s,@CYGPATH_W@,$CYGPATH_W,;t t
27746
s,@PACKAGE@,$PACKAGE,;t t
27747
s,@VERSION@,$VERSION,;t t
27748
s,@ACLOCAL@,$ACLOCAL,;t t
27749
s,@AUTOCONF@,$AUTOCONF,;t t
27750
s,@AUTOMAKE@,$AUTOMAKE,;t t
27751
s,@AUTOHEADER@,$AUTOHEADER,;t t
27752
s,@MAKEINFO@,$MAKEINFO,;t t
27753
s,@AMTAR@,$AMTAR,;t t
27754
s,@install_sh@,$install_sh,;t t
27755
s,@STRIP@,$STRIP,;t t
27756
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27757
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27759
s,@SET_MAKE@,$SET_MAKE,;t t
27760
s,@am__leading_dot@,$am__leading_dot,;t t
27762
s,@CFLAGS@,$CFLAGS,;t t
27763
s,@LDFLAGS@,$LDFLAGS,;t t
27764
s,@CPPFLAGS@,$CPPFLAGS,;t t
27765
s,@ac_ct_CC@,$ac_ct_CC,;t t
27766
s,@EXEEXT@,$EXEEXT,;t t
27767
s,@OBJEXT@,$OBJEXT,;t t
27768
s,@DEPDIR@,$DEPDIR,;t t
27769
s,@am__include@,$am__include,;t t
27770
s,@am__quote@,$am__quote,;t t
27771
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27772
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27773
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27774
s,@CCDEPMODE@,$CCDEPMODE,;t t
27775
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27776
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27777
s,@LN_S@,$LN_S,;t t
27778
s,@EGREP@,$EGREP,;t t
27779
s,@ECHO@,$ECHO,;t t
27781
s,@ac_ct_AR@,$ac_ct_AR,;t t
27782
s,@RANLIB@,$RANLIB,;t t
27783
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27786
s,@CXXFLAGS@,$CXXFLAGS,;t t
27787
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27788
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27789
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27790
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27791
s,@CXXCPP@,$CXXCPP,;t t
27793
s,@FFLAGS@,$FFLAGS,;t t
27794
s,@ac_ct_F77@,$ac_ct_F77,;t t
27795
s,@LIBTOOL@,$LIBTOOL,;t t
27796
s,@LIBOBJS@,$LIBOBJS,;t t
27797
s,@AFS_LIBS@,$AFS_LIBS,;t t
27798
s,@AFS_CFLAGS@,$AFS_CFLAGS,;t t
27799
s,@PKGCONFDIR@,$PKGCONFDIR,;t t
27800
s,@NLSDIR@,$NLSDIR,;t t
27801
s,@SERVERTEXT@,$SERVERTEXT,;t t
27802
s,@COMPILE_CNID_TRUE@,$COMPILE_CNID_TRUE,;t t
27803
s,@COMPILE_CNID_FALSE@,$COMPILE_CNID_FALSE,;t t
27804
s,@BDB_CFLAGS@,$BDB_CFLAGS,;t t
27805
s,@BDB_LIBS@,$BDB_LIBS,;t t
27806
s,@BDB_BIN@,$BDB_BIN,;t t
27807
s,@BDB_PATH@,$BDB_PATH,;t t
27808
s,@QUOTA_LIBS@,$QUOTA_LIBS,;t t
27809
s,@SLP_LIBS@,$SLP_LIBS,;t t
27810
s,@SLP_CFLAGS@,$SLP_CFLAGS,;t t
27811
s,@PAMDIR@,$PAMDIR,;t t
27812
s,@PAM_CFLAGS@,$PAM_CFLAGS,;t t
27813
s,@PAM_LIBS@,$PAM_LIBS,;t t
27814
s,@UAMS_PATH@,$UAMS_PATH,;t t
27815
s,@SSL_CFLAGS@,$SSL_CFLAGS,;t t
27816
s,@SSL_LIBS@,$SSL_LIBS,;t t
27817
s,@AFPD_LIBS@,$AFPD_LIBS,;t t
27818
s,@PAPD_LIBS@,$PAPD_LIBS,;t t
27819
s,@OVERWRITE_CONFIG@,$OVERWRITE_CONFIG,;t t
27820
s,@SOLARIS_MODULE_TRUE@,$SOLARIS_MODULE_TRUE,;t t
27821
s,@SOLARIS_MODULE_FALSE@,$SOLARIS_MODULE_FALSE,;t t
27822
s,@COMPILE_TIMELORD_TRUE@,$COMPILE_TIMELORD_TRUE,;t t
27823
s,@COMPILE_TIMELORD_FALSE@,$COMPILE_TIMELORD_FALSE,;t t
27824
s,@USE_DHX_TRUE@,$USE_DHX_TRUE,;t t
27825
s,@USE_DHX_FALSE@,$USE_DHX_FALSE,;t t
27826
s,@USE_KERBEROS_TRUE@,$USE_KERBEROS_TRUE,;t t
27827
s,@USE_KERBEROS_FALSE@,$USE_KERBEROS_FALSE,;t t
27828
s,@USE_PAM_SO_TRUE@,$USE_PAM_SO_TRUE,;t t
27829
s,@USE_PAM_SO_FALSE@,$USE_PAM_SO_FALSE,;t t
27830
s,@USE_PAM_TRUE@,$USE_PAM_TRUE,;t t
27831
s,@USE_PAM_FALSE@,$USE_PAM_FALSE,;t t
27832
s,@BUILD_PAM_TRUE@,$BUILD_PAM_TRUE,;t t
27833
s,@BUILD_PAM_FALSE@,$BUILD_PAM_FALSE,;t t
27834
s,@USE_PGP_TRUE@,$USE_PGP_TRUE,;t t
27835
s,@USE_PGP_FALSE@,$USE_PGP_FALSE,;t t
27836
s,@USE_COBALT_TRUE@,$USE_COBALT_TRUE,;t t
27837
s,@USE_COBALT_FALSE@,$USE_COBALT_FALSE,;t t
27838
s,@USE_NETBSD_TRUE@,$USE_NETBSD_TRUE,;t t
27839
s,@USE_NETBSD_FALSE@,$USE_NETBSD_FALSE,;t t
27840
s,@USE_REDHAT_TRUE@,$USE_REDHAT_TRUE,;t t
27841
s,@USE_REDHAT_FALSE@,$USE_REDHAT_FALSE,;t t
27842
s,@USE_SUSE_TRUE@,$USE_SUSE_TRUE,;t t
27843
s,@USE_SUSE_FALSE@,$USE_SUSE_FALSE,;t t
27844
s,@USE_SHADOWPW_TRUE@,$USE_SHADOWPW_TRUE,;t t
27845
s,@USE_SHADOWPW_FALSE@,$USE_SHADOWPW_FALSE,;t t
27846
s,@USE_TRU64_TRUE@,$USE_TRU64_TRUE,;t t
27847
s,@USE_TRU64_FALSE@,$USE_TRU64_FALSE,;t t
27848
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27853
cat >>$CONFIG_STATUS <<\_ACEOF
27854
# Split the substitutions into bite-sized pieces for seds with
27855
# small command number limits, like on Digital OSF/1 and HP-UX.
27856
ac_max_sed_lines=48
27857
ac_sed_frag=1 # Number of current file.
27858
ac_beg=1 # First line for current file.
27859
ac_end=$ac_max_sed_lines # Line after last line for current file.
27862
while $ac_more_lines; do
27863
if test $ac_beg -gt 1; then
27864
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27866
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27868
if test ! -s $tmp/subs.frag; then
27869
ac_more_lines=false
27871
# The purpose of the label and of the branching condition is to
27872
# speed up the sed processing (if there are no `@' at all, there
27873
# is no need to browse any of the substitutions).
27874
# These are the two extra sed commands mentioned above.
27876
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27877
if test -z "$ac_sed_cmds"; then
27878
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27880
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27882
ac_sed_frag=`expr $ac_sed_frag + 1`
27884
ac_end=`expr $ac_end + $ac_max_sed_lines`
27887
if test -z "$ac_sed_cmds"; then
27890
fi # test -n "$CONFIG_FILES"
27893
cat >>$CONFIG_STATUS <<\_ACEOF
27894
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27895
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27897
- | *:- | *:-:* ) # input from stdin
27899
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27900
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27901
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27902
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27903
* ) ac_file_in=$ac_file.in ;;
27906
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27907
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27908
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27909
X"$ac_file" : 'X\(//\)[^/]' \| \
27910
X"$ac_file" : 'X\(//\)$' \| \
27911
X"$ac_file" : 'X\(/\)' \| \
27912
. : '\(.\)' 2>/dev/null ||
27914
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27915
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
27916
/^X\(\/\/\)$/{ s//\1/; q; }
27917
/^X\(\/\).*/{ s//\1/; q; }
27919
{ if $as_mkdir_p; then
27924
while test ! -d "$as_dir"; do
27925
as_dirs="$as_dir $as_dirs"
27926
as_dir=`(dirname "$as_dir") 2>/dev/null ||
27927
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27928
X"$as_dir" : 'X\(//\)[^/]' \| \
27929
X"$as_dir" : 'X\(//\)$' \| \
27930
X"$as_dir" : 'X\(/\)' \| \
27931
. : '\(.\)' 2>/dev/null ||
27933
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27934
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
27935
/^X\(\/\/\)$/{ s//\1/; q; }
27936
/^X\(\/\).*/{ s//\1/; q; }
27939
test ! -n "$as_dirs" || mkdir $as_dirs
27940
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27941
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27942
{ (exit 1); exit 1; }; }; }
27946
if test "$ac_dir" != .; then
27947
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27948
# A "../" for each directory in $ac_dir_suffix.
27949
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27951
ac_dir_suffix= ac_top_builddir=
27955
.) # No --srcdir option. We are building in place.
27957
if test -z "$ac_top_builddir"; then
27960
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27962
[\\/]* | ?:[\\/]* ) # Absolute path.
27963
ac_srcdir=$srcdir$ac_dir_suffix;
27964
ac_top_srcdir=$srcdir ;;
27965
*) # Relative path.
27966
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27967
ac_top_srcdir=$ac_top_builddir$srcdir ;;
27970
# Do not use `cd foo && pwd` to compute absolute paths, because
27971
# the directories may not exist.
27973
.) ac_abs_builddir="$ac_dir";;
27976
.) ac_abs_builddir=`pwd`;;
27977
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27978
*) ac_abs_builddir=`pwd`/"$ac_dir";;
27981
case $ac_abs_builddir in
27982
.) ac_abs_top_builddir=${ac_top_builddir}.;;
27984
case ${ac_top_builddir}. in
27985
.) ac_abs_top_builddir=$ac_abs_builddir;;
27986
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27987
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27990
case $ac_abs_builddir in
27991
.) ac_abs_srcdir=$ac_srcdir;;
27994
.) ac_abs_srcdir=$ac_abs_builddir;;
27995
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27996
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27999
case $ac_abs_builddir in
28000
.) ac_abs_top_srcdir=$ac_top_srcdir;;
28002
case $ac_top_srcdir in
28003
.) ac_abs_top_srcdir=$ac_abs_builddir;;
28004
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28005
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28011
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28012
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
28015
if test x"$ac_file" != x-; then
28016
{ echo "$as_me:$LINENO: creating $ac_file" >&5
28017
echo "$as_me: creating $ac_file" >&6;}
28020
# Let's still pretend it is `configure' which instantiates (i.e., don't
28021
# use $as_me), people would be surprised to read:
28022
# /* config.h. Generated by config.status. */
28023
if test x"$ac_file" = x-; then
28026
configure_input="$ac_file. "
28028
configure_input=$configure_input"Generated from `echo $ac_file_in |
28029
sed 's,.*/,,'` by configure."
28031
# First look for the input files in the build tree, otherwise in the
28033
ac_file_inputs=`IFS=:
28034
for f in $ac_file_in; do
28036
-) echo $tmp/stdin ;;
28038
# Absolute (can't be DOS-style, as IFS=:)
28039
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28040
echo "$as_me: error: cannot find input file: $f" >&2;}
28041
{ (exit 1); exit 1; }; }
28044
if test -f "$f"; then
28047
elif test -f "$srcdir/$f"; then
28052
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28053
echo "$as_me: error: cannot find input file: $f" >&2;}
28054
{ (exit 1); exit 1; }; }
28057
done` || { (exit 1); exit 1; }
28059
cat >>$CONFIG_STATUS <<_ACEOF
28063
cat >>$CONFIG_STATUS <<\_ACEOF
28065
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28066
s,@configure_input@,$configure_input,;t t
28067
s,@srcdir@,$ac_srcdir,;t t
28068
s,@abs_srcdir@,$ac_abs_srcdir,;t t
28069
s,@top_srcdir@,$ac_top_srcdir,;t t
28070
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28071
s,@builddir@,$ac_builddir,;t t
28072
s,@abs_builddir@,$ac_abs_builddir,;t t
28073
s,@top_builddir@,$ac_top_builddir,;t t
28074
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28075
s,@INSTALL@,$ac_INSTALL,;t t
28076
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28078
if test x"$ac_file" != x-; then
28079
mv $tmp/out $ac_file
28087
cat >>$CONFIG_STATUS <<\_ACEOF
28090
# CONFIG_HEADER section.
28093
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28094
# NAME is the cpp macro being defined and VALUE is the value it is being given.
28096
# ac_d sets the value in "#define NAME VALUE" lines.
28097
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
28098
ac_dB='[ ].*$,\1#\2'
28101
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28102
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
28103
ac_uB='$,\1#\2define\3'
28107
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28108
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28110
- | *:- | *:-:* ) # input from stdin
28112
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28113
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28114
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28115
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28116
* ) ac_file_in=$ac_file.in ;;
28119
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28120
echo "$as_me: creating $ac_file" >&6;}
28122
# First look for the input files in the build tree, otherwise in the
28124
ac_file_inputs=`IFS=:
28125
for f in $ac_file_in; do
28127
-) echo $tmp/stdin ;;
28129
# Absolute (can't be DOS-style, as IFS=:)
28130
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28131
echo "$as_me: error: cannot find input file: $f" >&2;}
28132
{ (exit 1); exit 1; }; }
28133
# Do quote $f, to prevent DOS paths from being IFS'd.
28136
if test -f "$f"; then
28139
elif test -f "$srcdir/$f"; then
28144
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28145
echo "$as_me: error: cannot find input file: $f" >&2;}
28146
{ (exit 1); exit 1; }; }
28149
done` || { (exit 1); exit 1; }
28150
# Remove the trailing spaces.
28151
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
28155
# Transform confdefs.h into two sed scripts, `conftest.defines' and
28156
# `conftest.undefs', that substitutes the proper values into
28157
# config.h.in to produce config.h. The first handles `#define'
28158
# templates, and the second `#undef' templates.
28159
# And first: Protect against being on the right side of a sed subst in
28160
# config.status. Protect against being in an unquoted here document
28161
# in config.status.
28162
rm -f conftest.defines conftest.undefs
28163
# Using a here document instead of a string reduces the quoting nightmare.
28164
# Putting comments in sed scripts is not portable.
28166
# `end' is used to avoid that the second main sed command (meant for
28167
# 0-ary CPP macros) applies to n-ary macro definitions.
28168
# See the Autoconf documentation for `clear'.
28169
cat >confdef2sed.sed <<\_ACEOF
28174
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28176
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28179
# If some macros were called several times there might be several times
28180
# the same #defines, which is useless. Nevertheless, we may not want to
28181
# sort them, since we want the *last* AC-DEFINE to be honored.
28182
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28183
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28184
rm -f confdef2sed.sed
28186
# This sed command replaces #undef with comments. This is necessary, for
28187
# example, in the case of _POSIX_SOURCE, which is predefined and required
28188
# on some systems where configure will not decide to define it.
28189
cat >>conftest.undefs <<\_ACEOF
28190
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28193
# Break up conftest.defines because some shells have a limit on the size
28194
# of here documents, and old seds have small limits too (100 cmds).
28195
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28196
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28197
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28198
echo ' :' >>$CONFIG_STATUS
28199
rm -f conftest.tail
28200
while grep . conftest.defines >/dev/null
28202
# Write a limited-size here document to $tmp/defines.sed.
28203
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28204
# Speed up: don't consider the non `#define' lines.
28205
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
28206
# Work around the forget-to-reset-the-flag bug.
28207
echo 't clr' >>$CONFIG_STATUS
28208
echo ': clr' >>$CONFIG_STATUS
28209
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28211
sed -f $tmp/defines.sed $tmp/in >$tmp/out
28213
mv $tmp/out $tmp/in
28215
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28216
rm -f conftest.defines
28217
mv conftest.tail conftest.defines
28219
rm -f conftest.defines
28220
echo ' fi # grep' >>$CONFIG_STATUS
28221
echo >>$CONFIG_STATUS
28223
# Break up conftest.undefs because some shells have a limit on the size
28224
# of here documents, and old seds have small limits too (100 cmds).
28225
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
28226
rm -f conftest.tail
28227
while grep . conftest.undefs >/dev/null
28229
# Write a limited-size here document to $tmp/undefs.sed.
28230
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28231
# Speed up: don't consider the non `#undef'
28232
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
28233
# Work around the forget-to-reset-the-flag bug.
28234
echo 't clr' >>$CONFIG_STATUS
28235
echo ': clr' >>$CONFIG_STATUS
28236
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28238
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28240
mv $tmp/out $tmp/in
28242
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28243
rm -f conftest.undefs
28244
mv conftest.tail conftest.undefs
28246
rm -f conftest.undefs
28248
cat >>$CONFIG_STATUS <<\_ACEOF
28249
# Let's still pretend it is `configure' which instantiates (i.e., don't
28250
# use $as_me), people would be surprised to read:
28251
# /* config.h. Generated by config.status. */
28252
if test x"$ac_file" = x-; then
28253
echo "/* Generated by configure. */" >$tmp/config.h
28255
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28257
cat $tmp/in >>$tmp/config.h
28259
if test x"$ac_file" != x-; then
28260
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28261
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28262
echo "$as_me: $ac_file is unchanged" >&6;}
28264
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28265
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28266
X"$ac_file" : 'X\(//\)[^/]' \| \
28267
X"$ac_file" : 'X\(//\)$' \| \
28268
X"$ac_file" : 'X\(/\)' \| \
28269
. : '\(.\)' 2>/dev/null ||
28271
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28272
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
28273
/^X\(\/\/\)$/{ s//\1/; q; }
28274
/^X\(\/\).*/{ s//\1/; q; }
28276
{ if $as_mkdir_p; then
28281
while test ! -d "$as_dir"; do
28282
as_dirs="$as_dir $as_dirs"
28283
as_dir=`(dirname "$as_dir") 2>/dev/null ||
28284
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28285
X"$as_dir" : 'X\(//\)[^/]' \| \
28286
X"$as_dir" : 'X\(//\)$' \| \
28287
X"$as_dir" : 'X\(/\)' \| \
28288
. : '\(.\)' 2>/dev/null ||
28290
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28291
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
28292
/^X\(\/\/\)$/{ s//\1/; q; }
28293
/^X\(\/\).*/{ s//\1/; q; }
28296
test ! -n "$as_dirs" || mkdir $as_dirs
28297
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28298
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28299
{ (exit 1); exit 1; }; }; }
28302
mv $tmp/config.h $ac_file
28306
rm -f $tmp/config.h
28308
# Compute $ac_file's index in $config_headers.
28310
for _am_header in $config_headers :; do
28311
case $_am_header in
28312
$ac_file | $ac_file:* )
28315
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
28318
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28319
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28320
X$ac_file : 'X\(//\)[^/]' \| \
28321
X$ac_file : 'X\(//\)$' \| \
28322
X$ac_file : 'X\(/\)' \| \
28323
. : '\(.\)' 2>/dev/null ||
28325
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28326
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
28327
/^X\(\/\/\)$/{ s//\1/; q; }
28328
/^X\(\/\).*/{ s//\1/; q; }
28329
s/.*/./; q'`/stamp-h$_am_stamp_count
28332
cat >>$CONFIG_STATUS <<\_ACEOF
28335
# CONFIG_COMMANDS section.
28337
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28338
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28339
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28340
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28341
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28342
X"$ac_dest" : 'X\(//\)[^/]' \| \
28343
X"$ac_dest" : 'X\(//\)$' \| \
28344
X"$ac_dest" : 'X\(/\)' \| \
28345
. : '\(.\)' 2>/dev/null ||
28347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28348
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
28349
/^X\(\/\/\)$/{ s//\1/; q; }
28350
/^X\(\/\).*/{ s//\1/; q; }
28352
{ if $as_mkdir_p; then
28357
while test ! -d "$as_dir"; do
28358
as_dirs="$as_dir $as_dirs"
28359
as_dir=`(dirname "$as_dir") 2>/dev/null ||
28360
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28361
X"$as_dir" : 'X\(//\)[^/]' \| \
28362
X"$as_dir" : 'X\(//\)$' \| \
28363
X"$as_dir" : 'X\(/\)' \| \
28364
. : '\(.\)' 2>/dev/null ||
28366
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28367
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
28368
/^X\(\/\/\)$/{ s//\1/; q; }
28369
/^X\(\/\).*/{ s//\1/; q; }
28372
test ! -n "$as_dirs" || mkdir $as_dirs
28373
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28374
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28375
{ (exit 1); exit 1; }; }; }
28379
if test "$ac_dir" != .; then
28380
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28381
# A "../" for each directory in $ac_dir_suffix.
28382
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28384
ac_dir_suffix= ac_top_builddir=
28388
.) # No --srcdir option. We are building in place.
28390
if test -z "$ac_top_builddir"; then
28393
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28395
[\\/]* | ?:[\\/]* ) # Absolute path.
28396
ac_srcdir=$srcdir$ac_dir_suffix;
28397
ac_top_srcdir=$srcdir ;;
28398
*) # Relative path.
28399
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28400
ac_top_srcdir=$ac_top_builddir$srcdir ;;
28403
# Do not use `cd foo && pwd` to compute absolute paths, because
28404
# the directories may not exist.
28406
.) ac_abs_builddir="$ac_dir";;
28409
.) ac_abs_builddir=`pwd`;;
28410
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28411
*) ac_abs_builddir=`pwd`/"$ac_dir";;
28414
case $ac_abs_builddir in
28415
.) ac_abs_top_builddir=${ac_top_builddir}.;;
28417
case ${ac_top_builddir}. in
28418
.) ac_abs_top_builddir=$ac_abs_builddir;;
28419
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28420
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28423
case $ac_abs_builddir in
28424
.) ac_abs_srcdir=$ac_srcdir;;
28427
.) ac_abs_srcdir=$ac_abs_builddir;;
28428
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28429
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28432
case $ac_abs_builddir in
28433
.) ac_abs_top_srcdir=$ac_top_srcdir;;
28435
case $ac_top_srcdir in
28436
.) ac_abs_top_srcdir=$ac_abs_builddir;;
28437
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28438
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28443
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28444
echo "$as_me: executing $ac_dest commands" >&6;}
28446
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28447
# Strip MF so we end up with the name of the file.
28448
mf=`echo "$mf" | sed -e 's/:.*$//'`
28449
# Check whether this is an Automake generated Makefile or not.
28450
# We used to match only the files named `Makefile.in', but
28451
# some people rename them; so instead we look at the file content.
28452
# Grep'ing the first line is not enough: some people post-process
28453
# each Makefile.in and add a new line on top of each file to say so.
28454
# So let's grep whole file.
28455
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28456
dirpart=`(dirname "$mf") 2>/dev/null ||
28457
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28458
X"$mf" : 'X\(//\)[^/]' \| \
28459
X"$mf" : 'X\(//\)$' \| \
28460
X"$mf" : 'X\(/\)' \| \
28461
. : '\(.\)' 2>/dev/null ||
28463
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28464
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
28465
/^X\(\/\/\)$/{ s//\1/; q; }
28466
/^X\(\/\).*/{ s//\1/; q; }
28471
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
28472
# Extract the definition of DEP_FILES from the Makefile without
28474
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
28475
test -z "$DEPDIR" && continue
28476
# When using ansi2knr, U may be empty or an underscore; expand it
28477
U=`sed -n -e '/^U = / s///p' < "$mf"`
28478
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
28479
# We invoke sed twice because it is the simplest approach to
28480
# changing $(DEPDIR) to its actual value in the expansion.
28481
for file in `sed -n -e '
28482
/^DEP_FILES = .*\\\\$/ {
28491
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
28492
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28493
# Make sure the directory exists.
28494
test -f "$dirpart/$file" && continue
28495
fdir=`(dirname "$file") 2>/dev/null ||
28496
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28497
X"$file" : 'X\(//\)[^/]' \| \
28498
X"$file" : 'X\(//\)$' \| \
28499
X"$file" : 'X\(/\)' \| \
28500
. : '\(.\)' 2>/dev/null ||
28502
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28503
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
28504
/^X\(\/\/\)$/{ s//\1/; q; }
28505
/^X\(\/\).*/{ s//\1/; q; }
28507
{ if $as_mkdir_p; then
28508
mkdir -p $dirpart/$fdir
28510
as_dir=$dirpart/$fdir
28512
while test ! -d "$as_dir"; do
28513
as_dirs="$as_dir $as_dirs"
28514
as_dir=`(dirname "$as_dir") 2>/dev/null ||
28515
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28516
X"$as_dir" : 'X\(//\)[^/]' \| \
28517
X"$as_dir" : 'X\(//\)$' \| \
28518
X"$as_dir" : 'X\(/\)' \| \
28519
. : '\(.\)' 2>/dev/null ||
28521
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28522
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
28523
/^X\(\/\/\)$/{ s//\1/; q; }
28524
/^X\(\/\).*/{ s//\1/; q; }
28527
test ! -n "$as_dirs" || mkdir $as_dirs
28528
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28529
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28530
{ (exit 1); exit 1; }; }; }
28532
# echo "creating $dirpart/$file"
28533
echo '# dummy' > "$dirpart/$file"
28537
default ) chmod a+x distrib/config/netatalk-config contrib/shell_utils/apple_*
28543
cat >>$CONFIG_STATUS <<\_ACEOF
28545
{ (exit 0); exit 0; }
28547
chmod +x $CONFIG_STATUS
28548
ac_clean_files=$ac_clean_files_save
28551
# configure is writing to config.log, and then calls config.status.
28552
# config.status does its own redirection, appending to config.log.
28553
# Unfortunately, on DOS this fails, as config.log is still kept open
28554
# by configure, so config.status won't be able to write to it; its
28555
# output is simply discarded. So we exec the FD to /dev/null,
28556
# effectively closing config.log, so it can be properly (re)opened and
28557
# appended to by config.status. When coming back to configure, we
28558
# need to make the FD available again.
28559
if test "$no_create" != yes; then
28561
ac_config_status_args=
28562
test "$silent" = yes &&
28563
ac_config_status_args="$ac_config_status_args --quiet"
28565
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28567
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
28568
# would make configure fail if this is the last instruction.
28569
$ac_cs_success || { (exit 1); exit 1; }