2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by Autoconf 2.52.
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6
# Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
10
# Find the correct PATH separator. Usually this is `:', but
11
# DJGPP uses `;' like DOS.
12
if test "X${PATH_SEPARATOR+set}" != Xset; then
13
UNAME=${UNAME-`uname 2>/dev/null`}
15
*-DOS) lt_cv_sys_path_separator=';' ;;
16
*) lt_cv_sys_path_separator=':' ;;
18
PATH_SEPARATOR=$lt_cv_sys_path_separator
21
# Check that we are running under the correct shell.
22
SHELL=${CONFIG_SHELL-/bin/sh}
26
# Remove one level of quotation (which was required for Make).
27
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
32
if test "X$1" = X--no-reexec; then
33
# Discard the --no-reexec flag, and continue.
35
elif test "X$1" = X--fallback-echo; then
36
# Avoid inline document here, it may be left over
38
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
39
# Yippee, $echo works!
42
# Restart under the correct shell.
43
exec $SHELL "$0" --no-reexec ${1+"$@"}
46
if test "X$1" = X--fallback-echo; then
47
# used as fallback echo
55
# The HP-UX ksh and POSIX shell print the target directory to stdout
57
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
if test -z "$ECHO"; then
60
if test "X${echo_test_string+set}" != Xset; then
61
# find a string as large as possible, as long as the shell can cope with it
62
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
63
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
64
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
65
echo_test_string="`eval $cmd`" &&
66
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
73
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
74
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
75
test "X$echo_testing_string" = "X$echo_test_string"; then
78
# The Solaris, AIX, and Digital Unix default echo programs unquote
79
# backslashes. This makes it impossible to quote backslashes using
80
# echo "$something" | sed 's/\\/\\\\/g'
82
# So, first we look for a working echo in the user's PATH.
84
IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
85
for dir in $PATH /usr/ucb; do
86
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
87
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
88
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
89
test "X$echo_testing_string" = "X$echo_test_string"; then
96
if test "X$echo" = Xecho; then
97
# We didn't find a better echo, so look for alternatives.
98
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
99
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
100
test "X$echo_testing_string" = "X$echo_test_string"; then
101
# This shell has a builtin print -r that does the trick.
103
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
104
test "X$CONFIG_SHELL" != X/bin/ksh; then
105
# If we have ksh, try running configure again with it.
106
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
107
export ORIGINAL_CONFIG_SHELL
108
CONFIG_SHELL=/bin/ksh
110
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
114
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
115
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
116
test "X$echo_testing_string" = "X$echo_test_string"; then
119
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120
test "X$echo_testing_string" = 'X\t' &&
121
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122
test "X$echo_testing_string" = "X$echo_test_string"; then
123
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125
SHELL="$CONFIG_SHELL"
127
echo="$CONFIG_SHELL $0 --fallback-echo"
128
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
129
test "X$echo_testing_string" = 'X\t' &&
130
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
131
test "X$echo_testing_string" = "X$echo_test_string"; then
132
echo="$CONFIG_SHELL $0 --fallback-echo"
134
# maybe with a smaller string...
137
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
138
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
145
if test "$prev" != 'sed 50q "$0"'; then
146
echo_test_string=`eval $prev`
147
export echo_test_string
148
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150
# Oops. We lost completely, so just stick with echo.
159
# Copy echo and quote the copy suitably for passing to libtool from
160
# the Makefile, instead of quoting the original, which is used later.
162
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
163
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
166
# Avoid depending upon Character Ranges.
167
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
168
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
169
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
170
as_cr_digits='0123456789'
171
as_cr_alnum=$as_cr_Letters$as_cr_digits
173
# Sed expression to map a string onto a valid variable name.
174
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
176
# Sed expression to map a string onto a valid CPP name.
177
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
179
# Be Bourne compatible
180
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
183
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
187
# Name of the executable.
188
as_me=`echo "$0" |sed 's,.*[\\/],,'`
190
if expr a : '\(a\)' >/dev/null 2>&1; then
196
rm -f conf$$ conf$$.exe conf$$.file
198
if ln -s conf$$.file conf$$ 2>/dev/null; then
199
# We could just check for DJGPP; but this test a) works b) is more generic
200
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201
if test -f conf$$.exe; then
202
# Don't use ln at all; we don't have any links
207
elif ln conf$$.file conf$$ 2>/dev/null; then
212
rm -f conf$$ conf$$.exe conf$$.file
214
as_executable_p="test -f"
216
# Support unset when possible.
217
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
224
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
225
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
226
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
227
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
228
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
229
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
230
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
231
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
234
# We need space, tab and new line, in precisely that order.
240
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
243
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244
# so uname gets run too.
245
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252
ac_default_prefix=/usr/local
256
SHELL=${CONFIG_SHELL-/bin/sh}
258
# Maximum number of lines to put in a shell here document.
259
# This variable seems obsolete. It should probably be removed, and
260
# only ac_max_sed_lines should be used.
261
: ${ac_max_here_lines=38}
263
ac_unique_file="lib/urldata.h"
264
# Factoring default headers for most tests.
265
ac_includes_default="\
268
# include <sys/types.h>
271
# include <sys/stat.h>
282
# if !STDC_HEADERS && HAVE_MEMORY_H
288
# include <strings.h>
291
# include <inttypes.h>
301
# Initialize some variables set by options.
303
ac_init_version=false
304
# The variables have the same names as the options, with
305
# dashes changed to underlines.
313
program_transform_name=s,x,x,
321
# Installation directory options.
322
# These are left unexpanded so users can "make install exec_prefix=/foo"
323
# and all the variables that are supposed to be based on exec_prefix
324
# by default will actually change.
325
# Use braces instead of parens because sh, perl, etc. also accept them.
326
bindir='${exec_prefix}/bin'
327
sbindir='${exec_prefix}/sbin'
328
libexecdir='${exec_prefix}/libexec'
329
datadir='${prefix}/share'
330
sysconfdir='${prefix}/etc'
331
sharedstatedir='${prefix}/com'
332
localstatedir='${prefix}/var'
333
libdir='${exec_prefix}/lib'
334
includedir='${prefix}/include'
335
oldincludedir='/usr/include'
336
infodir='${prefix}/info'
337
mandir='${prefix}/man'
339
# Identity of this package.
349
# If the previous option needs an argument, assign it.
350
if test -n "$ac_prev"; then
351
eval "$ac_prev=\$ac_option"
356
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
358
# Accept the important Cygnus configure options, so we can diagnose typos.
362
-bindir | --bindir | --bindi | --bind | --bin | --bi)
364
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
367
-build | --build | --buil | --bui | --bu)
368
ac_prev=build_alias ;;
369
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
370
build_alias=$ac_optarg ;;
372
-cache-file | --cache-file | --cache-fil | --cache-fi \
373
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
374
ac_prev=cache_file ;;
375
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
376
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
377
cache_file=$ac_optarg ;;
380
cache_file=config.cache ;;
382
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
384
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
386
datadir=$ac_optarg ;;
388
-disable-* | --disable-*)
389
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
390
# Reject names that are not valid shell variable names.
391
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
392
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
393
{ (exit 1); exit 1; }; }
394
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
395
eval "enable_$ac_feature=no" ;;
397
-enable-* | --enable-*)
398
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
399
# Reject names that are not valid shell variable names.
400
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
402
{ (exit 1); exit 1; }; }
403
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
408
eval "enable_$ac_feature='$ac_optarg'" ;;
410
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
411
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
412
| --exec | --exe | --ex)
413
ac_prev=exec_prefix ;;
414
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
415
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
416
| --exec=* | --exe=* | --ex=*)
417
exec_prefix=$ac_optarg ;;
419
-gas | --gas | --ga | --g)
420
# Obsolete; use --with-gas.
423
-help | --help | --hel | --he | -h)
425
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
426
ac_init_help=recursive ;;
427
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
428
ac_init_help=short ;;
430
-host | --host | --hos | --ho)
431
ac_prev=host_alias ;;
432
-host=* | --host=* | --hos=* | --ho=*)
433
host_alias=$ac_optarg ;;
435
-includedir | --includedir | --includedi | --included | --include \
436
| --includ | --inclu | --incl | --inc)
437
ac_prev=includedir ;;
438
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
439
| --includ=* | --inclu=* | --incl=* | --inc=*)
440
includedir=$ac_optarg ;;
442
-infodir | --infodir | --infodi | --infod | --info | --inf)
444
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
445
infodir=$ac_optarg ;;
447
-libdir | --libdir | --libdi | --libd)
449
-libdir=* | --libdir=* | --libdi=* | --libd=*)
452
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
453
| --libexe | --libex | --libe)
454
ac_prev=libexecdir ;;
455
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
456
| --libexe=* | --libex=* | --libe=*)
457
libexecdir=$ac_optarg ;;
459
-localstatedir | --localstatedir | --localstatedi | --localstated \
460
| --localstate | --localstat | --localsta | --localst \
461
| --locals | --local | --loca | --loc | --lo)
462
ac_prev=localstatedir ;;
463
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
464
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
465
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
466
localstatedir=$ac_optarg ;;
468
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
470
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
474
# Obsolete; use --without-fp.
477
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
481
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
482
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
485
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
486
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
487
| --oldin | --oldi | --old | --ol | --o)
488
ac_prev=oldincludedir ;;
489
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
490
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
491
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
492
oldincludedir=$ac_optarg ;;
494
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
496
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
499
-program-prefix | --program-prefix | --program-prefi | --program-pref \
500
| --program-pre | --program-pr | --program-p)
501
ac_prev=program_prefix ;;
502
-program-prefix=* | --program-prefix=* | --program-prefi=* \
503
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
504
program_prefix=$ac_optarg ;;
506
-program-suffix | --program-suffix | --program-suffi | --program-suff \
507
| --program-suf | --program-su | --program-s)
508
ac_prev=program_suffix ;;
509
-program-suffix=* | --program-suffix=* | --program-suffi=* \
510
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
511
program_suffix=$ac_optarg ;;
513
-program-transform-name | --program-transform-name \
514
| --program-transform-nam | --program-transform-na \
515
| --program-transform-n | --program-transform- \
516
| --program-transform | --program-transfor \
517
| --program-transfo | --program-transf \
518
| --program-trans | --program-tran \
519
| --progr-tra | --program-tr | --program-t)
520
ac_prev=program_transform_name ;;
521
-program-transform-name=* | --program-transform-name=* \
522
| --program-transform-nam=* | --program-transform-na=* \
523
| --program-transform-n=* | --program-transform-=* \
524
| --program-transform=* | --program-transfor=* \
525
| --program-transfo=* | --program-transf=* \
526
| --program-trans=* | --program-tran=* \
527
| --progr-tra=* | --program-tr=* | --program-t=*)
528
program_transform_name=$ac_optarg ;;
530
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
531
| -silent | --silent | --silen | --sile | --sil)
534
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
536
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
538
sbindir=$ac_optarg ;;
540
-sharedstatedir | --sharedstatedir | --sharedstatedi \
541
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
542
| --sharedst | --shareds | --shared | --share | --shar \
544
ac_prev=sharedstatedir ;;
545
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
546
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
547
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
549
sharedstatedir=$ac_optarg ;;
551
-site | --site | --sit)
553
-site=* | --site=* | --sit=*)
556
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
558
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
561
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
562
| --syscon | --sysco | --sysc | --sys | --sy)
563
ac_prev=sysconfdir ;;
564
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
565
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
566
sysconfdir=$ac_optarg ;;
568
-target | --target | --targe | --targ | --tar | --ta | --t)
569
ac_prev=target_alias ;;
570
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
571
target_alias=$ac_optarg ;;
573
-v | -verbose | --verbose | --verbos | --verbo | --verb)
576
-version | --version | --versio | --versi | --vers | -V)
580
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
581
# Reject names that are not valid shell variable names.
582
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
583
{ echo "$as_me: error: invalid package name: $ac_package" >&2
584
{ (exit 1); exit 1; }; }
585
ac_package=`echo $ac_package| sed 's/-/_/g'`
587
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
590
eval "with_$ac_package='$ac_optarg'" ;;
592
-without-* | --without-*)
593
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
594
# Reject names that are not valid shell variable names.
595
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
596
{ echo "$as_me: error: invalid package name: $ac_package" >&2
597
{ (exit 1); exit 1; }; }
598
ac_package=`echo $ac_package | sed 's/-/_/g'`
599
eval "with_$ac_package=no" ;;
602
# Obsolete; use --with-x.
605
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
606
| --x-incl | --x-inc | --x-in | --x-i)
607
ac_prev=x_includes ;;
608
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
609
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
610
x_includes=$ac_optarg ;;
612
-x-libraries | --x-libraries | --x-librarie | --x-librari \
613
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
614
ac_prev=x_libraries ;;
615
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
616
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
617
x_libraries=$ac_optarg ;;
619
-*) { echo "$as_me: error: unrecognized option: $ac_option
620
Try \`$0 --help' for more information." >&2
621
{ (exit 1); exit 1; }; }
625
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
626
# Reject names that are not valid shell variable names.
627
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
628
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
629
{ (exit 1); exit 1; }; }
630
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
631
eval "$ac_envvar='$ac_optarg'"
635
# FIXME: should be removed in autoconf 3.0.
636
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
637
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
638
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
639
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
645
if test -n "$ac_prev"; then
646
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
647
{ echo "$as_me: error: missing argument to $ac_option" >&2
648
{ (exit 1); exit 1; }; }
651
# Be sure to have absolute paths.
652
for ac_var in exec_prefix prefix
654
eval ac_val=$`echo $ac_var`
656
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
657
*) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
658
{ (exit 1); exit 1; }; };;
662
# Be sure to have absolute paths.
663
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
664
localstatedir libdir includedir oldincludedir infodir mandir
666
eval ac_val=$`echo $ac_var`
668
[\\/$]* | ?:[\\/]* ) ;;
669
*) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
670
{ (exit 1); exit 1; }; };;
674
# There might be people who depend on the old broken behavior: `$host'
675
# used to hold the argument of --host etc.
680
# FIXME: should be removed in autoconf 3.0.
681
if test "x$host_alias" != x; then
682
if test "x$build_alias" = x; then
683
cross_compiling=maybe
684
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
685
If a cross compiler is detected then cross compile mode will be used." >&2
686
elif test "x$build_alias" != "x$host_alias"; then
692
test -n "$host_alias" && ac_tool_prefix=$host_alias-
694
test "$silent" = yes && exec 6>/dev/null
696
# Find the source files, if location was not specified.
697
if test -z "$srcdir"; then
698
ac_srcdir_defaulted=yes
699
# Try the directory containing this script, then its parent.
701
ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
702
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
704
if test ! -r $srcdir/$ac_unique_file; then
708
ac_srcdir_defaulted=no
710
if test ! -r $srcdir/$ac_unique_file; then
711
if test "$ac_srcdir_defaulted" = yes; then
712
{ echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
713
{ (exit 1); exit 1; }; }
715
{ echo "$as_me: error: cannot find sources in $srcdir" >&2
716
{ (exit 1); exit 1; }; }
719
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
720
ac_env_build_alias_set=${build_alias+set}
721
ac_env_build_alias_value=$build_alias
722
ac_cv_env_build_alias_set=${build_alias+set}
723
ac_cv_env_build_alias_value=$build_alias
724
ac_env_host_alias_set=${host_alias+set}
725
ac_env_host_alias_value=$host_alias
726
ac_cv_env_host_alias_set=${host_alias+set}
727
ac_cv_env_host_alias_value=$host_alias
728
ac_env_target_alias_set=${target_alias+set}
729
ac_env_target_alias_value=$target_alias
730
ac_cv_env_target_alias_set=${target_alias+set}
731
ac_cv_env_target_alias_value=$target_alias
732
ac_env_CC_set=${CC+set}
734
ac_cv_env_CC_set=${CC+set}
735
ac_cv_env_CC_value=$CC
736
ac_env_CFLAGS_set=${CFLAGS+set}
737
ac_env_CFLAGS_value=$CFLAGS
738
ac_cv_env_CFLAGS_set=${CFLAGS+set}
739
ac_cv_env_CFLAGS_value=$CFLAGS
740
ac_env_LDFLAGS_set=${LDFLAGS+set}
741
ac_env_LDFLAGS_value=$LDFLAGS
742
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
743
ac_cv_env_LDFLAGS_value=$LDFLAGS
744
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
745
ac_env_CPPFLAGS_value=$CPPFLAGS
746
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
747
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
748
ac_env_CPP_set=${CPP+set}
749
ac_env_CPP_value=$CPP
750
ac_cv_env_CPP_set=${CPP+set}
751
ac_cv_env_CPP_value=$CPP
754
# Report the --help message.
756
if test "$ac_init_help" = "long"; then
757
# Omit some internal or obsolete options to make the list less imposing.
758
# This message is too long to be a string in the A/UX 3.1 sh.
760
\`configure' configures this package to adapt to many kinds of systems.
762
Usage: $0 [OPTION]... [VAR=VALUE]...
764
To assign environment variables (e.g., CC, CFLAGS...), specify them as
765
VAR=VALUE. See below for descriptions of some of the useful variables.
767
Defaults for the options are specified in brackets.
770
-h, --help display this help and exit
771
--help=short display options specific to this package
772
--help=recursive display the short help of all the included packages
773
-V, --version display version information and exit
774
-q, --quiet, --silent do not print \`checking...' messages
775
--cache-file=FILE cache test results in FILE [disabled]
776
-C, --config-cache alias for \`--cache-file=config.cache'
777
-n, --no-create do not create output files
778
--srcdir=DIR find the sources in DIR [configure dir or \`..']
783
Installation directories:
784
--prefix=PREFIX install architecture-independent files in PREFIX
786
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
789
By default, \`make install' will install all the files in
790
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
791
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
792
for instance \`--prefix=\$HOME'.
794
For better control, use the options below.
796
Fine tuning of the installation directories:
797
--bindir=DIR user executables [EPREFIX/bin]
798
--sbindir=DIR system admin executables [EPREFIX/sbin]
799
--libexecdir=DIR program executables [EPREFIX/libexec]
800
--datadir=DIR read-only architecture-independent data [PREFIX/share]
801
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
802
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
803
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
804
--libdir=DIR object code libraries [EPREFIX/lib]
805
--includedir=DIR C header files [PREFIX/include]
806
--oldincludedir=DIR C header files for non-gcc [/usr/include]
807
--infodir=DIR info documentation [PREFIX/info]
808
--mandir=DIR man documentation [PREFIX/man]
814
--program-prefix=PREFIX prepend PREFIX to installed program names
815
--program-suffix=SUFFIX append SUFFIX to installed program names
816
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
819
--build=BUILD configure for building on BUILD [guessed]
820
--host=HOST build programs to run on HOST [BUILD]
824
if test -n "$ac_init_help"; then
829
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
830
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
831
--disable-dependency-tracking Speeds up one-time builds
832
--enable-dependency-tracking Do not reject slow dependency extractors
833
--disable-largefile omit support for large files
834
--enable-shared=PKGS build shared libraries default=yes
835
--enable-static=PKGS build static libraries default=yes
836
--enable-fast-install=PKGS optimize for fast installation default=yes
837
--disable-libtool-lock avoid locking (might break parallel builds)
838
--enable-debug Enable pedantic debug options
839
--disable-debug Disable debug options
840
--enable-ipv6 Enable ipv6 (with ipv4) support
841
--disable-ipv6 Disable ipv6 support
842
--enable-nonblocking Makes the script detect how to do it
843
--disable-nonblocking Makes the script disable non-blocking sockets
844
--disable-thread tell configure to not look for thread-safe functions
847
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
848
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
849
--with-gnu-ld assume the C compiler uses GNU ld default=no
850
--with-pic try to use only PIC/non-PIC objects default=use both
851
--with-egd-socket=FILE Entropy Gathering Daemon socket pathname
852
--with-random=FILE read randomness from FILE (default=/dev/urandom)
853
--with-krb4-includes=DIR Specify location of kerberos4 headers
854
--with-krb4-libs=DIR Specify location of kerberos4 libs
855
--with-krb4=DIR where to look for Kerberos4
856
--with-ssl=DIR where to look for SSL compiler/linker default paths
857
DIR points to the SSL installation /usr/local/ssl
859
Some influential environment variables:
860
CC C compiler command
861
CFLAGS C compiler flags
862
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
863
nonstandard directory <lib dir>
864
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
865
headers in a nonstandard directory <include dir>
868
Use these variables to override the choices made by `configure' or to help
869
it to find libraries and programs with nonstandard names/locations.
874
if test "$ac_init_help" = "recursive"; then
875
# If there are subdirs, report their specific --help.
877
for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
879
# A "../" for each directory in /$ac_subdir.
880
ac_dots=`echo $ac_subdir |
881
sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
884
.) # No --srcdir option. We are building in place.
885
ac_sub_srcdir=$srcdir ;;
886
[\\/]* | ?:[\\/]* ) # Absolute path.
887
ac_sub_srcdir=$srcdir/$ac_subdir ;;
889
ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
892
# Check for guested configure; otherwise get Cygnus style configure.
893
if test -f $ac_sub_srcdir/configure.gnu; then
895
$SHELL $ac_sub_srcdir/configure.gnu --help=recursive
896
elif test -f $ac_sub_srcdir/configure; then
898
$SHELL $ac_sub_srcdir/configure --help=recursive
899
elif test -f $ac_sub_srcdir/configure.ac ||
900
test -f $ac_sub_srcdir/configure.in; then
904
echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
910
test -n "$ac_init_help" && exit 0
911
if $ac_init_version; then
914
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
915
Free Software Foundation, Inc.
916
This configure script is free software; the Free Software Foundation
917
gives unlimited permission to copy, distribute and modify it.
923
This file contains any messages produced by compilers while
924
running configure, to aid debugging if configure makes a mistake.
926
It was created by $as_me, which was
927
generated by GNU Autoconf 2.52. Invocation command line was
938
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
939
uname -m = `(uname -m) 2>/dev/null || echo unknown`
940
uname -r = `(uname -r) 2>/dev/null || echo unknown`
941
uname -s = `(uname -s) 2>/dev/null || echo unknown`
942
uname -v = `(uname -v) 2>/dev/null || echo unknown`
944
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
945
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
947
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
948
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
949
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
950
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
951
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
952
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
953
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
967
# Keep a trace of the command line.
968
# Strip out --no-create and --no-recursion so they do not pile up.
969
# Also quote any args containing shell meta-characters.
975
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
976
| --no-cr | --no-c) ;;
977
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
978
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
979
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
980
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
981
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
983
*) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
986
# Get rid of the leading space.
989
# When interrupted or exit'd, cleanup temporary files, and complete
990
# config.log. We remove comments because anyway the quotes in there
991
# would cause problems or look ugly.
993
# Save into config.log some information that might help in debugging.
995
echo "## ----------------- ##" >&5
996
echo "## Cache variables. ##" >&5
997
echo "## ----------------- ##" >&5
999
# The following way of writing the cache mishandles newlines in values,
1002
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1005
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1006
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1010
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1014
sed "/^$/d" confdefs.h >conftest.log
1015
if test -s conftest.log; then
1017
echo "## ------------ ##" >&5
1018
echo "## confdefs.h. ##" >&5
1019
echo "## ------------ ##" >&5
1021
cat conftest.log >&5
1024
test "$ac_signal" != 0 &&
1025
echo "$as_me: caught signal $ac_signal" >&5
1026
echo "$as_me: exit $exit_status" >&5
1027
rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
1030
for ac_signal in 1 2 13 15; do
1031
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1035
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1036
rm -rf conftest* confdefs.h
1037
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1040
# Let the site file select an alternate cache file if it wants to.
1041
# Prefer explicitly selected file to automatically selected ones.
1042
if test -z "$CONFIG_SITE"; then
1043
if test "x$prefix" != xNONE; then
1044
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1046
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1049
for ac_site_file in $CONFIG_SITE; do
1050
if test -r "$ac_site_file"; then
1051
{ echo "$as_me:1051: loading site script $ac_site_file" >&5
1052
echo "$as_me: loading site script $ac_site_file" >&6;}
1053
cat "$ac_site_file" >&5
1058
if test -r "$cache_file"; then
1059
# Some versions of bash will fail to source /dev/null (special
1060
# files actually), so we avoid doing that.
1061
if test -f "$cache_file"; then
1062
{ echo "$as_me:1062: loading cache $cache_file" >&5
1063
echo "$as_me: loading cache $cache_file" >&6;}
1065
[\\/]* | ?:[\\/]* ) . $cache_file;;
1066
*) . ./$cache_file;;
1070
{ echo "$as_me:1070: creating cache $cache_file" >&5
1071
echo "$as_me: creating cache $cache_file" >&6;}
1075
# Check that the precious variables saved in the cache have kept the same
1077
ac_cache_corrupted=false
1078
for ac_var in `(set) 2>&1 |
1079
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1080
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1081
eval ac_new_set=\$ac_env_${ac_var}_set
1082
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1083
eval ac_new_val="\$ac_env_${ac_var}_value"
1084
case $ac_old_set,$ac_new_set in
1086
{ echo "$as_me:1086: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1087
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1088
ac_cache_corrupted=: ;;
1090
{ echo "$as_me:1090: error: \`$ac_var' was not set in the previous run" >&5
1091
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1092
ac_cache_corrupted=: ;;
1095
if test "x$ac_old_val" != "x$ac_new_val"; then
1096
{ echo "$as_me:1096: error: \`$ac_var' has changed since the previous run:" >&5
1097
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1098
{ echo "$as_me:1098: former value: $ac_old_val" >&5
1099
echo "$as_me: former value: $ac_old_val" >&2;}
1100
{ echo "$as_me:1100: current value: $ac_new_val" >&5
1101
echo "$as_me: current value: $ac_new_val" >&2;}
1102
ac_cache_corrupted=:
1105
# Pass precious variables to config.status. It doesn't matter if
1106
# we pass some twice (in addition to the command line arguments).
1107
if test "$ac_new_set" = set; then
1109
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1110
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1111
ac_configure_args="$ac_configure_args '$ac_arg'"
1113
*) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1118
if $ac_cache_corrupted; then
1119
{ echo "$as_me:1119: error: changes in the environment can compromise the build" >&5
1120
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1121
{ { echo "$as_me:1121: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1122
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1123
{ (exit 1); exit 1; }; }
1127
ac_cpp='$CPP $CPPFLAGS'
1128
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1129
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1130
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1132
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1133
*c*,-n*) ECHO_N= ECHO_C='
1135
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1136
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1138
echo "#! $SHELL" >conftest.sh
1139
echo "exit 0" >>conftest.sh
1140
chmod +x conftest.sh
1141
if { (echo "$as_me:1141: PATH=\".;.\"; conftest.sh") >&5
1142
(PATH=".;."; conftest.sh) 2>&5
1144
echo "$as_me:1144: \$? = $ac_status" >&5
1145
(exit $ac_status); }; then
1146
ac_path_separator=';'
1150
PATH_SEPARATOR="$ac_path_separator"
1153
ac_config_headers="$ac_config_headers lib/config.h"
1155
ac_config_headers="$ac_config_headers src/config.h"
1157
ac_config_headers="$ac_config_headers tests/server/config.h"
1159
VERSION=`sed -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curl.h`
1161
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1162
if test -f $ac_dir/install-sh; then
1164
ac_install_sh="$ac_aux_dir/install-sh -c"
1166
elif test -f $ac_dir/install.sh; then
1168
ac_install_sh="$ac_aux_dir/install.sh -c"
1170
elif test -f $ac_dir/shtool; then
1172
ac_install_sh="$ac_aux_dir/shtool install -c"
1176
if test -z "$ac_aux_dir"; then
1177
{ { echo "$as_me:1177: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1178
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1179
{ (exit 1); exit 1; }; }
1181
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1182
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1183
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1185
# Find a good install program. We prefer a C program (faster),
1186
# so one script is as good as another. But avoid the broken or
1187
# incompatible versions:
1188
# SysV /etc/install, /usr/sbin/install
1189
# SunOS /usr/etc/install
1190
# IRIX /sbin/install
1192
# AmigaOS /C/install, which installs bootblocks on floppy discs
1193
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1194
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1195
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1196
# ./install, which can be erroneously created by make from ./install.sh.
1197
echo "$as_me:1197: checking for a BSD compatible install" >&5
1198
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1199
if test -z "$INSTALL"; then
1200
if test "${ac_cv_path_install+set}" = set; then
1201
echo $ECHO_N "(cached) $ECHO_C" >&6
1203
ac_save_IFS=$IFS; IFS=$ac_path_separator
1204
for ac_dir in $PATH; do
1206
# Account for people who put trailing slashes in PATH elements.
1208
/ | ./ | .// | /cC/* \
1209
| /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1212
# OSF1 and SCO ODT 3.0 have their own names for install.
1213
# Don't use installbsd from OSF since it installs stuff as root
1215
for ac_prog in ginstall scoinst install; do
1216
if $as_executable_p "$ac_dir/$ac_prog"; then
1217
if test $ac_prog = install &&
1218
grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1219
# AIX install. It has an incompatible calling convention.
1221
elif test $ac_prog = install &&
1222
grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1223
# program-specific install script used by HP pwplus--don't use.
1226
ac_cv_path_install="$ac_dir/$ac_prog -c"
1236
if test "${ac_cv_path_install+set}" = set; then
1237
INSTALL=$ac_cv_path_install
1239
# As a last resort, use the slow shell script. We don't cache a
1240
# path for INSTALL within a source directory, because that will
1241
# break other packages using the cache if that directory is
1242
# removed, or if the path is relative.
1243
INSTALL=$ac_install_sh
1246
echo "$as_me:1246: result: $INSTALL" >&5
1247
echo "${ECHO_T}$INSTALL" >&6
1249
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1250
# It thinks the first close brace ends the variable substitution.
1251
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1253
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1255
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1257
echo "$as_me:1257: checking whether build environment is sane" >&5
1258
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1261
echo timestamp > conftest.file
1262
# Do `set' in a subshell so we don't clobber the current shell's
1263
# arguments. Must try -L first in case configure is actually a
1264
# symlink; some systems play weird games with the mod time of symlinks
1265
# (eg FreeBSD returns the mod time of the symlink's containing
1268
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1269
if test "$*" = "X"; then
1271
set X `ls -t $srcdir/configure conftest.file`
1274
if test "$*" != "X $srcdir/configure conftest.file" \
1275
&& test "$*" != "X conftest.file $srcdir/configure"; then
1277
# If neither matched, then we have a broken ls. This can happen
1278
# if, for instance, CONFIG_SHELL is bash and it inherits a
1279
# broken ls alias from the environment. This has actually
1280
# happened. Such a system could not be considered "sane".
1281
{ { echo "$as_me:1281: error: ls -t appears to fail. Make sure there is not a broken
1282
alias in your environment" >&5
1283
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1284
alias in your environment" >&2;}
1285
{ (exit 1); exit 1; }; }
1288
test "$2" = conftest.file
1294
{ { echo "$as_me:1294: error: newly created file is older than distributed files!
1295
Check your system clock" >&5
1296
echo "$as_me: error: newly created file is older than distributed files!
1297
Check your system clock" >&2;}
1298
{ (exit 1); exit 1; }; }
1300
echo "$as_me:1300: result: yes" >&5
1301
echo "${ECHO_T}yes" >&6
1302
test "$program_prefix" != NONE &&
1303
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1304
# Use a double $ so make ignores it.
1305
test "$program_suffix" != NONE &&
1306
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1307
# Double any \ or $. echo might interpret backslashes.
1308
# By default was `s,x,x', remove it if useless.
1309
cat <<\_ACEOF >conftest.sed
1310
s/[\\$]/&&/g;s/;s,x,x,$//
1312
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1315
# expand $ac_aux_dir to an absolute path
1316
am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1318
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1319
# Use eval to expand $SHELL
1320
if eval "$MISSING --run true"; then
1321
am_missing_run="$MISSING --run "
1325
{ echo "$as_me:1325: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1326
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1329
for ac_prog in mawk gawk nawk awk
1331
# Extract the first word of "$ac_prog", so it can be a program name with args.
1332
set dummy $ac_prog; ac_word=$2
1333
echo "$as_me:1333: checking for $ac_word" >&5
1334
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1335
if test "${ac_cv_prog_AWK+set}" = set; then
1336
echo $ECHO_N "(cached) $ECHO_C" >&6
1338
if test -n "$AWK"; then
1339
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1341
ac_save_IFS=$IFS; IFS=$ac_path_separator
1343
for ac_dir in $ac_dummy; do
1345
test -z "$ac_dir" && ac_dir=.
1346
$as_executable_p "$ac_dir/$ac_word" || continue
1347
ac_cv_prog_AWK="$ac_prog"
1348
echo "$as_me:1348: found $ac_dir/$ac_word" >&5
1355
if test -n "$AWK"; then
1356
echo "$as_me:1356: result: $AWK" >&5
1357
echo "${ECHO_T}$AWK" >&6
1359
echo "$as_me:1359: result: no" >&5
1360
echo "${ECHO_T}no" >&6
1363
test -n "$AWK" && break
1366
echo "$as_me:1366: checking whether ${MAKE-make} sets \${MAKE}" >&5
1367
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1368
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1369
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1370
echo $ECHO_N "(cached) $ECHO_C" >&6
1372
cat >conftest.make <<\EOF
1374
@echo 'ac_maketemp="${MAKE}"'
1376
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1377
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1378
if test -n "$ac_maketemp"; then
1379
eval ac_cv_prog_make_${ac_make}_set=yes
1381
eval ac_cv_prog_make_${ac_make}_set=no
1385
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1386
echo "$as_me:1386: result: yes" >&5
1387
echo "${ECHO_T}yes" >&6
1390
echo "$as_me:1390: result: no" >&5
1391
echo "${ECHO_T}no" >&6
1392
SET_MAKE="MAKE=${MAKE-make}"
1395
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1396
if test "${enable_dependency_tracking+set}" = set; then
1397
enableval="$enable_dependency_tracking"
1400
if test "x$enable_dependency_tracking" != xno; then
1401
am_depcomp="$ac_aux_dir/depcomp"
1405
if test "x$enable_dependency_tracking" != xno; then
1413
rm -f .deps 2>/dev/null
1414
mkdir .deps 2>/dev/null
1415
if test -d .deps; then
1418
# MS-DOS does not allow filenames that begin with a dot.
1421
rmdir .deps 2>/dev/null
1423
# test to see if srcdir already configured
1424
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1425
test -f $srcdir/config.status; then
1426
{ { echo "$as_me:1426: error: source directory already configured; run \"make distclean\" there first" >&5
1427
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1428
{ (exit 1); exit 1; }; }
1431
# Define the identity of the package.
1435
cat >>confdefs.h <<EOF
1436
#define PACKAGE "$PACKAGE"
1439
cat >>confdefs.h <<EOF
1440
#define VERSION "$VERSION"
1443
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1444
# the ones we care about.
1446
# Autoconf 2.50 always computes EXEEXT. However we need to be
1447
# compatible with 2.13, for now. So we always define EXEEXT, but we
1450
# Similar for OBJEXT -- only we only use OBJEXT if the user actually
1451
# requests that it be used. This is a bit dumb.
1454
# Some tools Automake needs.
1456
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1458
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1460
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1462
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1464
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1466
AMTAR=${AMTAR-"${am_missing_run}tar"}
1468
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1470
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1472
# We need awk for the "check" target. The system "awk" is bad on
1475
VERSIONNUM=`sed -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curl.h`
1477
PKGADD_PKG="HAXXcurl"
1478
PKGADD_NAME="cURL - a client that groks URLs"
1479
PKGADD_VENDOR="curl.haxx.se"
1481
# Make sure we can run config.sub.
1482
$ac_config_sub sun4 >/dev/null 2>&1 ||
1483
{ { echo "$as_me:1483: error: cannot run $ac_config_sub" >&5
1484
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1485
{ (exit 1); exit 1; }; }
1487
echo "$as_me:1487: checking build system type" >&5
1488
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1489
if test "${ac_cv_build+set}" = set; then
1490
echo $ECHO_N "(cached) $ECHO_C" >&6
1492
ac_cv_build_alias=$build_alias
1493
test -z "$ac_cv_build_alias" &&
1494
ac_cv_build_alias=`$ac_config_guess`
1495
test -z "$ac_cv_build_alias" &&
1496
{ { echo "$as_me:1496: error: cannot guess build type; you must specify one" >&5
1497
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1498
{ (exit 1); exit 1; }; }
1499
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1500
{ { echo "$as_me:1500: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1501
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1502
{ (exit 1); exit 1; }; }
1505
echo "$as_me:1505: result: $ac_cv_build" >&5
1506
echo "${ECHO_T}$ac_cv_build" >&6
1508
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1509
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1510
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1512
echo "$as_me:1512: checking host system type" >&5
1513
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1514
if test "${ac_cv_host+set}" = set; then
1515
echo $ECHO_N "(cached) $ECHO_C" >&6
1517
ac_cv_host_alias=$host_alias
1518
test -z "$ac_cv_host_alias" &&
1519
ac_cv_host_alias=$ac_cv_build_alias
1520
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1521
{ { echo "$as_me:1521: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1522
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1523
{ (exit 1); exit 1; }; }
1526
echo "$as_me:1526: result: $ac_cv_host" >&5
1527
echo "${ECHO_T}$ac_cv_host" >&6
1529
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1530
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1531
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1533
cat >>confdefs.h <<EOF
1534
#define OS "${host}"
1537
ac_config_commands="$ac_config_commands default-1"
1539
am_make=${MAKE-make}
1540
cat > confinc << 'END'
1544
# If we don't find an include directive, just comment out the code.
1545
echo "$as_me:1545: checking for style of include used by $am_make" >&5
1546
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1550
# First try GNU make style include.
1551
echo "include confinc" > confmf
1552
# We grep out `Entering directory' and `Leaving directory'
1553
# messages which can occur if `w' ends up in MAKEFLAGS.
1554
# In particular we don't look at `^make:' because GNU make might
1555
# be invoked under some other name (usually "gmake"), in which
1556
# case it prints its new name instead of `make'.
1557
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
1562
# Now try BSD make style include.
1563
if test "$am__include" = "#"; then
1564
echo '.include "confinc"' > confmf
1565
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1566
am__include=.include
1572
echo "$as_me:1572: result: $_am_result" >&5
1573
echo "${ECHO_T}$_am_result" >&6
1574
rm -f confinc confmf
1577
ac_cpp='$CPP $CPPFLAGS'
1578
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1579
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1580
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1581
if test -n "$ac_tool_prefix"; then
1582
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1583
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1584
echo "$as_me:1584: checking for $ac_word" >&5
1585
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1586
if test "${ac_cv_prog_CC+set}" = set; then
1587
echo $ECHO_N "(cached) $ECHO_C" >&6
1589
if test -n "$CC"; then
1590
ac_cv_prog_CC="$CC" # Let the user override the test.
1592
ac_save_IFS=$IFS; IFS=$ac_path_separator
1594
for ac_dir in $ac_dummy; do
1596
test -z "$ac_dir" && ac_dir=.
1597
$as_executable_p "$ac_dir/$ac_word" || continue
1598
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1599
echo "$as_me:1599: found $ac_dir/$ac_word" >&5
1606
if test -n "$CC"; then
1607
echo "$as_me:1607: result: $CC" >&5
1608
echo "${ECHO_T}$CC" >&6
1610
echo "$as_me:1610: result: no" >&5
1611
echo "${ECHO_T}no" >&6
1615
if test -z "$ac_cv_prog_CC"; then
1617
# Extract the first word of "gcc", so it can be a program name with args.
1618
set dummy gcc; ac_word=$2
1619
echo "$as_me:1619: checking for $ac_word" >&5
1620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1622
echo $ECHO_N "(cached) $ECHO_C" >&6
1624
if test -n "$ac_ct_CC"; then
1625
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1627
ac_save_IFS=$IFS; IFS=$ac_path_separator
1629
for ac_dir in $ac_dummy; do
1631
test -z "$ac_dir" && ac_dir=.
1632
$as_executable_p "$ac_dir/$ac_word" || continue
1633
ac_cv_prog_ac_ct_CC="gcc"
1634
echo "$as_me:1634: found $ac_dir/$ac_word" >&5
1640
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1641
if test -n "$ac_ct_CC"; then
1642
echo "$as_me:1642: result: $ac_ct_CC" >&5
1643
echo "${ECHO_T}$ac_ct_CC" >&6
1645
echo "$as_me:1645: result: no" >&5
1646
echo "${ECHO_T}no" >&6
1654
if test -z "$CC"; then
1655
if test -n "$ac_tool_prefix"; then
1656
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1657
set dummy ${ac_tool_prefix}cc; ac_word=$2
1658
echo "$as_me:1658: checking for $ac_word" >&5
1659
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660
if test "${ac_cv_prog_CC+set}" = set; then
1661
echo $ECHO_N "(cached) $ECHO_C" >&6
1663
if test -n "$CC"; then
1664
ac_cv_prog_CC="$CC" # Let the user override the test.
1666
ac_save_IFS=$IFS; IFS=$ac_path_separator
1668
for ac_dir in $ac_dummy; do
1670
test -z "$ac_dir" && ac_dir=.
1671
$as_executable_p "$ac_dir/$ac_word" || continue
1672
ac_cv_prog_CC="${ac_tool_prefix}cc"
1673
echo "$as_me:1673: found $ac_dir/$ac_word" >&5
1680
if test -n "$CC"; then
1681
echo "$as_me:1681: result: $CC" >&5
1682
echo "${ECHO_T}$CC" >&6
1684
echo "$as_me:1684: result: no" >&5
1685
echo "${ECHO_T}no" >&6
1689
if test -z "$ac_cv_prog_CC"; then
1691
# Extract the first word of "cc", so it can be a program name with args.
1692
set dummy cc; ac_word=$2
1693
echo "$as_me:1693: checking for $ac_word" >&5
1694
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1696
echo $ECHO_N "(cached) $ECHO_C" >&6
1698
if test -n "$ac_ct_CC"; then
1699
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1701
ac_save_IFS=$IFS; IFS=$ac_path_separator
1703
for ac_dir in $ac_dummy; do
1705
test -z "$ac_dir" && ac_dir=.
1706
$as_executable_p "$ac_dir/$ac_word" || continue
1707
ac_cv_prog_ac_ct_CC="cc"
1708
echo "$as_me:1708: found $ac_dir/$ac_word" >&5
1714
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1715
if test -n "$ac_ct_CC"; then
1716
echo "$as_me:1716: result: $ac_ct_CC" >&5
1717
echo "${ECHO_T}$ac_ct_CC" >&6
1719
echo "$as_me:1719: result: no" >&5
1720
echo "${ECHO_T}no" >&6
1729
if test -z "$CC"; then
1730
# Extract the first word of "cc", so it can be a program name with args.
1731
set dummy cc; ac_word=$2
1732
echo "$as_me:1732: checking for $ac_word" >&5
1733
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734
if test "${ac_cv_prog_CC+set}" = set; then
1735
echo $ECHO_N "(cached) $ECHO_C" >&6
1737
if test -n "$CC"; then
1738
ac_cv_prog_CC="$CC" # Let the user override the test.
1741
ac_save_IFS=$IFS; IFS=$ac_path_separator
1743
for ac_dir in $ac_dummy; do
1745
test -z "$ac_dir" && ac_dir=.
1746
$as_executable_p "$ac_dir/$ac_word" || continue
1747
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1748
ac_prog_rejected=yes
1752
echo "$as_me:1752: found $ac_dir/$ac_word" >&5
1756
if test $ac_prog_rejected = yes; then
1757
# We found a bogon in the path, so make sure we never use it.
1758
set dummy $ac_cv_prog_CC
1760
if test $# != 0; then
1761
# We chose a different compiler from the bogus one.
1762
# However, it has the same basename, so the bogon will be chosen
1763
# first if we set CC to just the basename; use the full file name.
1765
set dummy "$ac_dir/$ac_word" ${1+"$@"}
1773
if test -n "$CC"; then
1774
echo "$as_me:1774: result: $CC" >&5
1775
echo "${ECHO_T}$CC" >&6
1777
echo "$as_me:1777: result: no" >&5
1778
echo "${ECHO_T}no" >&6
1782
if test -z "$CC"; then
1783
if test -n "$ac_tool_prefix"; then
1786
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1787
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1788
echo "$as_me:1788: checking for $ac_word" >&5
1789
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790
if test "${ac_cv_prog_CC+set}" = set; then
1791
echo $ECHO_N "(cached) $ECHO_C" >&6
1793
if test -n "$CC"; then
1794
ac_cv_prog_CC="$CC" # Let the user override the test.
1796
ac_save_IFS=$IFS; IFS=$ac_path_separator
1798
for ac_dir in $ac_dummy; do
1800
test -z "$ac_dir" && ac_dir=.
1801
$as_executable_p "$ac_dir/$ac_word" || continue
1802
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1803
echo "$as_me:1803: found $ac_dir/$ac_word" >&5
1810
if test -n "$CC"; then
1811
echo "$as_me:1811: result: $CC" >&5
1812
echo "${ECHO_T}$CC" >&6
1814
echo "$as_me:1814: result: no" >&5
1815
echo "${ECHO_T}no" >&6
1818
test -n "$CC" && break
1821
if test -z "$CC"; then
1825
# Extract the first word of "$ac_prog", so it can be a program name with args.
1826
set dummy $ac_prog; ac_word=$2
1827
echo "$as_me:1827: checking for $ac_word" >&5
1828
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1829
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1830
echo $ECHO_N "(cached) $ECHO_C" >&6
1832
if test -n "$ac_ct_CC"; then
1833
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1835
ac_save_IFS=$IFS; IFS=$ac_path_separator
1837
for ac_dir in $ac_dummy; do
1839
test -z "$ac_dir" && ac_dir=.
1840
$as_executable_p "$ac_dir/$ac_word" || continue
1841
ac_cv_prog_ac_ct_CC="$ac_prog"
1842
echo "$as_me:1842: found $ac_dir/$ac_word" >&5
1848
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1849
if test -n "$ac_ct_CC"; then
1850
echo "$as_me:1850: result: $ac_ct_CC" >&5
1851
echo "${ECHO_T}$ac_ct_CC" >&6
1853
echo "$as_me:1853: result: no" >&5
1854
echo "${ECHO_T}no" >&6
1857
test -n "$ac_ct_CC" && break
1865
test -z "$CC" && { { echo "$as_me:1865: error: no acceptable cc found in \$PATH" >&5
1866
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1867
{ (exit 1); exit 1; }; }
1869
# Provide some information about the compiler.
1870
echo "$as_me:1870:" \
1871
"checking for C compiler version" >&5
1872
ac_compiler=`set X $ac_compile; echo $2`
1873
{ (eval echo "$as_me:1873: \"$ac_compiler --version </dev/null >&5\"") >&5
1874
(eval $ac_compiler --version </dev/null >&5) 2>&5
1876
echo "$as_me:1876: \$? = $ac_status" >&5
1877
(exit $ac_status); }
1878
{ (eval echo "$as_me:1878: \"$ac_compiler -v </dev/null >&5\"") >&5
1879
(eval $ac_compiler -v </dev/null >&5) 2>&5
1881
echo "$as_me:1881: \$? = $ac_status" >&5
1882
(exit $ac_status); }
1883
{ (eval echo "$as_me:1883: \"$ac_compiler -V </dev/null >&5\"") >&5
1884
(eval $ac_compiler -V </dev/null >&5) 2>&5
1886
echo "$as_me:1886: \$? = $ac_status" >&5
1887
(exit $ac_status); }
1889
cat >conftest.$ac_ext <<_ACEOF
1890
#line 1890 "configure"
1891
#include "confdefs.h"
1901
ac_clean_files_save=$ac_clean_files
1902
ac_clean_files="$ac_clean_files a.out a.exe"
1903
# Try to create an executable without -o first, disregard a.out.
1904
# It will help us diagnose broken compilers, and finding out an intuition
1906
echo "$as_me:1906: checking for C compiler default output" >&5
1907
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1908
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1909
if { (eval echo "$as_me:1909: \"$ac_link_default\"") >&5
1910
(eval $ac_link_default) 2>&5
1912
echo "$as_me:1912: \$? = $ac_status" >&5
1913
(exit $ac_status); }; then
1914
# Find the output, starting from the most likely. This scheme is
1915
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1917
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1918
ls a.out conftest 2>/dev/null;
1919
ls a.* conftest.* 2>/dev/null`; do
1921
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1922
a.out ) # We found the default executable, but exeext='' is most
1925
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1926
# FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1933
echo "$as_me: failed program was:" >&5
1934
cat conftest.$ac_ext >&5
1935
{ { echo "$as_me:1935: error: C compiler cannot create executables" >&5
1936
echo "$as_me: error: C compiler cannot create executables" >&2;}
1937
{ (exit 77); exit 77; }; }
1940
ac_exeext=$ac_cv_exeext
1941
echo "$as_me:1941: result: $ac_file" >&5
1942
echo "${ECHO_T}$ac_file" >&6
1944
# Check the compiler produces executables we can run. If not, either
1945
# the compiler is broken, or we cross compile.
1946
echo "$as_me:1946: checking whether the C compiler works" >&5
1947
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1948
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1949
# If not cross compiling, check that we can run a simple program.
1950
if test "$cross_compiling" != yes; then
1951
if { ac_try='./$ac_file'
1952
{ (eval echo "$as_me:1952: \"$ac_try\"") >&5
1955
echo "$as_me:1955: \$? = $ac_status" >&5
1956
(exit $ac_status); }; }; then
1959
if test "$cross_compiling" = maybe; then
1962
{ { echo "$as_me:1962: error: cannot run C compiled programs.
1963
If you meant to cross compile, use \`--host'." >&5
1964
echo "$as_me: error: cannot run C compiled programs.
1965
If you meant to cross compile, use \`--host'." >&2;}
1966
{ (exit 1); exit 1; }; }
1970
echo "$as_me:1970: result: yes" >&5
1971
echo "${ECHO_T}yes" >&6
1973
rm -f a.out a.exe conftest$ac_cv_exeext
1974
ac_clean_files=$ac_clean_files_save
1975
# Check the compiler produces executables we can run. If not, either
1976
# the compiler is broken, or we cross compile.
1977
echo "$as_me:1977: checking whether we are cross compiling" >&5
1978
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1979
echo "$as_me:1979: result: $cross_compiling" >&5
1980
echo "${ECHO_T}$cross_compiling" >&6
1982
echo "$as_me:1982: checking for executable suffix" >&5
1983
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1984
if { (eval echo "$as_me:1984: \"$ac_link\"") >&5
1985
(eval $ac_link) 2>&5
1987
echo "$as_me:1987: \$? = $ac_status" >&5
1988
(exit $ac_status); }; then
1989
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1990
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1991
# work properly (i.e., refer to `conftest.exe'), while it won't with
1993
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1995
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1996
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2003
{ { echo "$as_me:2003: error: cannot compute EXEEXT: cannot compile and link" >&5
2004
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
2005
{ (exit 1); exit 1; }; }
2008
rm -f conftest$ac_cv_exeext
2009
echo "$as_me:2009: result: $ac_cv_exeext" >&5
2010
echo "${ECHO_T}$ac_cv_exeext" >&6
2012
rm -f conftest.$ac_ext
2013
EXEEXT=$ac_cv_exeext
2015
echo "$as_me:2015: checking for object suffix" >&5
2016
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
2017
if test "${ac_cv_objext+set}" = set; then
2018
echo $ECHO_N "(cached) $ECHO_C" >&6
2020
cat >conftest.$ac_ext <<_ACEOF
2021
#line 2021 "configure"
2022
#include "confdefs.h"
2032
rm -f conftest.o conftest.obj
2033
if { (eval echo "$as_me:2033: \"$ac_compile\"") >&5
2034
(eval $ac_compile) 2>&5
2036
echo "$as_me:2036: \$? = $ac_status" >&5
2037
(exit $ac_status); }; then
2038
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2040
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2041
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2046
echo "$as_me: failed program was:" >&5
2047
cat conftest.$ac_ext >&5
2048
{ { echo "$as_me:2048: error: cannot compute OBJEXT: cannot compile" >&5
2049
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
2050
{ (exit 1); exit 1; }; }
2053
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055
echo "$as_me:2055: result: $ac_cv_objext" >&5
2056
echo "${ECHO_T}$ac_cv_objext" >&6
2057
OBJEXT=$ac_cv_objext
2059
echo "$as_me:2059: checking whether we are using the GNU C compiler" >&5
2060
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062
echo $ECHO_N "(cached) $ECHO_C" >&6
2064
cat >conftest.$ac_ext <<_ACEOF
2065
#line 2065 "configure"
2066
#include "confdefs.h"
2079
rm -f conftest.$ac_objext
2080
if { (eval echo "$as_me:2080: \"$ac_compile\"") >&5
2081
(eval $ac_compile) 2>&5
2083
echo "$as_me:2083: \$? = $ac_status" >&5
2084
(exit $ac_status); } &&
2085
{ ac_try='test -s conftest.$ac_objext'
2086
{ (eval echo "$as_me:2086: \"$ac_try\"") >&5
2089
echo "$as_me:2089: \$? = $ac_status" >&5
2090
(exit $ac_status); }; }; then
2093
echo "$as_me: failed program was:" >&5
2094
cat conftest.$ac_ext >&5
2097
rm -f conftest.$ac_objext conftest.$ac_ext
2098
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2101
echo "$as_me:2101: result: $ac_cv_c_compiler_gnu" >&5
2102
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2103
GCC=`test $ac_compiler_gnu = yes && echo yes`
2104
ac_test_CFLAGS=${CFLAGS+set}
2105
ac_save_CFLAGS=$CFLAGS
2107
echo "$as_me:2107: checking whether $CC accepts -g" >&5
2108
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2109
if test "${ac_cv_prog_cc_g+set}" = set; then
2110
echo $ECHO_N "(cached) $ECHO_C" >&6
2112
cat >conftest.$ac_ext <<_ACEOF
2113
#line 2113 "configure"
2114
#include "confdefs.h"
2124
rm -f conftest.$ac_objext
2125
if { (eval echo "$as_me:2125: \"$ac_compile\"") >&5
2126
(eval $ac_compile) 2>&5
2128
echo "$as_me:2128: \$? = $ac_status" >&5
2129
(exit $ac_status); } &&
2130
{ ac_try='test -s conftest.$ac_objext'
2131
{ (eval echo "$as_me:2131: \"$ac_try\"") >&5
2134
echo "$as_me:2134: \$? = $ac_status" >&5
2135
(exit $ac_status); }; }; then
2138
echo "$as_me: failed program was:" >&5
2139
cat conftest.$ac_ext >&5
2142
rm -f conftest.$ac_objext conftest.$ac_ext
2144
echo "$as_me:2144: result: $ac_cv_prog_cc_g" >&5
2145
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2146
if test "$ac_test_CFLAGS" = set; then
2147
CFLAGS=$ac_save_CFLAGS
2148
elif test $ac_cv_prog_cc_g = yes; then
2149
if test "$GCC" = yes; then
2155
if test "$GCC" = yes; then
2161
# Some people use a C++ compiler to compile C. Since we use `exit',
2162
# in C++ we need to declare it. In case someone uses the same compiler
2163
# for both compiling C and C++ we need to have the C++ compiler decide
2164
# the declaration of exit, since it's the most demanding environment.
2165
cat >conftest.$ac_ext <<_ACEOF
2170
rm -f conftest.$ac_objext
2171
if { (eval echo "$as_me:2171: \"$ac_compile\"") >&5
2172
(eval $ac_compile) 2>&5
2174
echo "$as_me:2174: \$? = $ac_status" >&5
2175
(exit $ac_status); } &&
2176
{ ac_try='test -s conftest.$ac_objext'
2177
{ (eval echo "$as_me:2177: \"$ac_try\"") >&5
2180
echo "$as_me:2180: \$? = $ac_status" >&5
2181
(exit $ac_status); }; }; then
2182
for ac_declaration in \
2184
'#include <stdlib.h>' \
2185
'extern "C" void std::exit (int) throw (); using std::exit;' \
2186
'extern "C" void std::exit (int); using std::exit;' \
2187
'extern "C" void exit (int) throw ();' \
2188
'extern "C" void exit (int);' \
2191
cat >conftest.$ac_ext <<_ACEOF
2192
#line 2192 "configure"
2193
#include "confdefs.h"
2204
rm -f conftest.$ac_objext
2205
if { (eval echo "$as_me:2205: \"$ac_compile\"") >&5
2206
(eval $ac_compile) 2>&5
2208
echo "$as_me:2208: \$? = $ac_status" >&5
2209
(exit $ac_status); } &&
2210
{ ac_try='test -s conftest.$ac_objext'
2211
{ (eval echo "$as_me:2211: \"$ac_try\"") >&5
2214
echo "$as_me:2214: \$? = $ac_status" >&5
2215
(exit $ac_status); }; }; then
2218
echo "$as_me: failed program was:" >&5
2219
cat conftest.$ac_ext >&5
2222
rm -f conftest.$ac_objext conftest.$ac_ext
2223
cat >conftest.$ac_ext <<_ACEOF
2224
#line 2224 "configure"
2225
#include "confdefs.h"
2235
rm -f conftest.$ac_objext
2236
if { (eval echo "$as_me:2236: \"$ac_compile\"") >&5
2237
(eval $ac_compile) 2>&5
2239
echo "$as_me:2239: \$? = $ac_status" >&5
2240
(exit $ac_status); } &&
2241
{ ac_try='test -s conftest.$ac_objext'
2242
{ (eval echo "$as_me:2242: \"$ac_try\"") >&5
2245
echo "$as_me:2245: \$? = $ac_status" >&5
2246
(exit $ac_status); }; }; then
2249
echo "$as_me: failed program was:" >&5
2250
cat conftest.$ac_ext >&5
2252
rm -f conftest.$ac_objext conftest.$ac_ext
2255
if test -n "$ac_declaration"; then
2256
echo '#ifdef __cplusplus' >>confdefs.h
2257
echo $ac_declaration >>confdefs.h
2258
echo '#endif' >>confdefs.h
2262
echo "$as_me: failed program was:" >&5
2263
cat conftest.$ac_ext >&5
2265
rm -f conftest.$ac_objext conftest.$ac_ext
2267
ac_cpp='$CPP $CPPFLAGS'
2268
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2269
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2270
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2272
depcc="$CC" am_compiler_list=
2274
echo "$as_me:2274: checking dependency style of $depcc" >&5
2275
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2276
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2277
echo $ECHO_N "(cached) $ECHO_C" >&6
2279
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2280
# We make a subdir and do the tests there. Otherwise we can end up
2281
# making bogus files that we don't know about and never remove. For
2282
# instance it was reported that on HP-UX the gcc test will end up
2283
# making a dummy file named `D' -- because `-MD' means `put the output
2286
# Copy depcomp to subdir because otherwise we won't find it if we're
2287
# using a relative directory.
2288
cp "$am_depcomp" conftest.dir
2291
am_cv_CC_dependencies_compiler_type=none
2292
if test "$am_compiler_list" = ""; then
2293
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2295
for depmode in $am_compiler_list; do
2296
# We need to recreate these files for each test, as the compiler may
2297
# overwrite some of them when testing with obscure command lines.
2298
# This happens at least with the AIX C compiler.
2299
echo '#include "conftest.h"' > conftest.c
2300
echo 'int i;' > conftest.h
2301
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2305
# after this tag, mechanisms are not by side-effect, so they'll
2306
# only be used when explicitly requested
2307
if test "x$enable_dependency_tracking" = xyes; then
2315
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2316
# mode. It turns out that the SunPro C++ compiler does not properly
2317
# handle `-M -o', and we need to detect this.
2318
if depmode=$depmode \
2319
source=conftest.c object=conftest.o \
2320
depfile=conftest.Po tmpdepfile=conftest.TPo \
2321
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2322
grep conftest.h conftest.Po > /dev/null 2>&1 &&
2323
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2324
am_cv_CC_dependencies_compiler_type=$depmode
2332
am_cv_CC_dependencies_compiler_type=none
2336
echo "$as_me:2336: result: $am_cv_CC_dependencies_compiler_type" >&5
2337
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2338
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2341
ac_cpp='$CPP $CPPFLAGS'
2342
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345
echo "$as_me:2345: checking how to run the C preprocessor" >&5
2346
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2347
# On Suns, sometimes $CPP names a directory.
2348
if test -n "$CPP" && test -d "$CPP"; then
2351
if test -z "$CPP"; then
2352
if test "${ac_cv_prog_CPP+set}" = set; then
2353
echo $ECHO_N "(cached) $ECHO_C" >&6
2355
# Double quotes because CPP needs to be expanded
2356
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2359
for ac_c_preproc_warn_flag in '' yes
2361
# Use a header file that comes with gcc, so configuring glibc
2362
# with a fresh cross-compiler works.
2363
# On the NeXT, cc -E runs the code through the compiler's parser,
2364
# not just through cpp. "Syntax error" is here to catch this case.
2365
cat >conftest.$ac_ext <<_ACEOF
2366
#line 2366 "configure"
2367
#include "confdefs.h"
2371
if { (eval echo "$as_me:2371: \"$ac_cpp conftest.$ac_ext\"") >&5
2372
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2374
egrep -v '^ *\+' conftest.er1 >conftest.err
2376
cat conftest.err >&5
2377
echo "$as_me:2377: \$? = $ac_status" >&5
2378
(exit $ac_status); } >/dev/null; then
2379
if test -s conftest.err; then
2380
ac_cpp_err=$ac_c_preproc_warn_flag
2387
if test -z "$ac_cpp_err"; then
2390
echo "$as_me: failed program was:" >&5
2391
cat conftest.$ac_ext >&5
2392
# Broken: fails on valid input.
2395
rm -f conftest.err conftest.$ac_ext
2397
# OK, works on sane cases. Now check whether non-existent headers
2398
# can be detected and how.
2399
cat >conftest.$ac_ext <<_ACEOF
2400
#line 2400 "configure"
2401
#include "confdefs.h"
2402
#include <ac_nonexistent.h>
2404
if { (eval echo "$as_me:2404: \"$ac_cpp conftest.$ac_ext\"") >&5
2405
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2407
egrep -v '^ *\+' conftest.er1 >conftest.err
2409
cat conftest.err >&5
2410
echo "$as_me:2410: \$? = $ac_status" >&5
2411
(exit $ac_status); } >/dev/null; then
2412
if test -s conftest.err; then
2413
ac_cpp_err=$ac_c_preproc_warn_flag
2420
if test -z "$ac_cpp_err"; then
2421
# Broken: success on invalid input.
2424
echo "$as_me: failed program was:" >&5
2425
cat conftest.$ac_ext >&5
2426
# Passes both tests.
2430
rm -f conftest.err conftest.$ac_ext
2433
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2434
rm -f conftest.err conftest.$ac_ext
2435
if $ac_preproc_ok; then
2447
echo "$as_me:2447: result: $CPP" >&5
2448
echo "${ECHO_T}$CPP" >&6
2450
for ac_c_preproc_warn_flag in '' yes
2452
# Use a header file that comes with gcc, so configuring glibc
2453
# with a fresh cross-compiler works.
2454
# On the NeXT, cc -E runs the code through the compiler's parser,
2455
# not just through cpp. "Syntax error" is here to catch this case.
2456
cat >conftest.$ac_ext <<_ACEOF
2457
#line 2457 "configure"
2458
#include "confdefs.h"
2462
if { (eval echo "$as_me:2462: \"$ac_cpp conftest.$ac_ext\"") >&5
2463
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2465
egrep -v '^ *\+' conftest.er1 >conftest.err
2467
cat conftest.err >&5
2468
echo "$as_me:2468: \$? = $ac_status" >&5
2469
(exit $ac_status); } >/dev/null; then
2470
if test -s conftest.err; then
2471
ac_cpp_err=$ac_c_preproc_warn_flag
2478
if test -z "$ac_cpp_err"; then
2481
echo "$as_me: failed program was:" >&5
2482
cat conftest.$ac_ext >&5
2483
# Broken: fails on valid input.
2486
rm -f conftest.err conftest.$ac_ext
2488
# OK, works on sane cases. Now check whether non-existent headers
2489
# can be detected and how.
2490
cat >conftest.$ac_ext <<_ACEOF
2491
#line 2491 "configure"
2492
#include "confdefs.h"
2493
#include <ac_nonexistent.h>
2495
if { (eval echo "$as_me:2495: \"$ac_cpp conftest.$ac_ext\"") >&5
2496
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498
egrep -v '^ *\+' conftest.er1 >conftest.err
2500
cat conftest.err >&5
2501
echo "$as_me:2501: \$? = $ac_status" >&5
2502
(exit $ac_status); } >/dev/null; then
2503
if test -s conftest.err; then
2504
ac_cpp_err=$ac_c_preproc_warn_flag
2511
if test -z "$ac_cpp_err"; then
2512
# Broken: success on invalid input.
2515
echo "$as_me: failed program was:" >&5
2516
cat conftest.$ac_ext >&5
2517
# Passes both tests.
2521
rm -f conftest.err conftest.$ac_ext
2524
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2525
rm -f conftest.err conftest.$ac_ext
2526
if $ac_preproc_ok; then
2529
{ { echo "$as_me:2529: error: C preprocessor \"$CPP\" fails sanity check" >&5
2530
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2531
{ (exit 1); exit 1; }; }
2535
ac_cpp='$CPP $CPPFLAGS'
2536
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2537
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2538
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
echo "$as_me:2540: checking for AIX" >&5
2541
echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2542
cat >conftest.$ac_ext <<_ACEOF
2543
#line 2543 "configure"
2544
#include "confdefs.h"
2550
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2551
egrep "yes" >/dev/null 2>&1; then
2552
echo "$as_me:2552: result: yes" >&5
2553
echo "${ECHO_T}yes" >&6
2554
cat >>confdefs.h <<\EOF
2555
#define _ALL_SOURCE 1
2559
echo "$as_me:2559: result: no" >&5
2560
echo "${ECHO_T}no" >&6
2565
ac_cpp='$CPP $CPPFLAGS'
2566
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
if test -n "$ac_tool_prefix"; then
2570
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2571
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2572
echo "$as_me:2572: checking for $ac_word" >&5
2573
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2574
if test "${ac_cv_prog_CC+set}" = set; then
2575
echo $ECHO_N "(cached) $ECHO_C" >&6
2577
if test -n "$CC"; then
2578
ac_cv_prog_CC="$CC" # Let the user override the test.
2580
ac_save_IFS=$IFS; IFS=$ac_path_separator
2582
for ac_dir in $ac_dummy; do
2584
test -z "$ac_dir" && ac_dir=.
2585
$as_executable_p "$ac_dir/$ac_word" || continue
2586
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2587
echo "$as_me:2587: found $ac_dir/$ac_word" >&5
2594
if test -n "$CC"; then
2595
echo "$as_me:2595: result: $CC" >&5
2596
echo "${ECHO_T}$CC" >&6
2598
echo "$as_me:2598: result: no" >&5
2599
echo "${ECHO_T}no" >&6
2603
if test -z "$ac_cv_prog_CC"; then
2605
# Extract the first word of "gcc", so it can be a program name with args.
2606
set dummy gcc; ac_word=$2
2607
echo "$as_me:2607: checking for $ac_word" >&5
2608
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2609
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2610
echo $ECHO_N "(cached) $ECHO_C" >&6
2612
if test -n "$ac_ct_CC"; then
2613
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2615
ac_save_IFS=$IFS; IFS=$ac_path_separator
2617
for ac_dir in $ac_dummy; do
2619
test -z "$ac_dir" && ac_dir=.
2620
$as_executable_p "$ac_dir/$ac_word" || continue
2621
ac_cv_prog_ac_ct_CC="gcc"
2622
echo "$as_me:2622: found $ac_dir/$ac_word" >&5
2628
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2629
if test -n "$ac_ct_CC"; then
2630
echo "$as_me:2630: result: $ac_ct_CC" >&5
2631
echo "${ECHO_T}$ac_ct_CC" >&6
2633
echo "$as_me:2633: result: no" >&5
2634
echo "${ECHO_T}no" >&6
2642
if test -z "$CC"; then
2643
if test -n "$ac_tool_prefix"; then
2644
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2645
set dummy ${ac_tool_prefix}cc; ac_word=$2
2646
echo "$as_me:2646: checking for $ac_word" >&5
2647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2648
if test "${ac_cv_prog_CC+set}" = set; then
2649
echo $ECHO_N "(cached) $ECHO_C" >&6
2651
if test -n "$CC"; then
2652
ac_cv_prog_CC="$CC" # Let the user override the test.
2654
ac_save_IFS=$IFS; IFS=$ac_path_separator
2656
for ac_dir in $ac_dummy; do
2658
test -z "$ac_dir" && ac_dir=.
2659
$as_executable_p "$ac_dir/$ac_word" || continue
2660
ac_cv_prog_CC="${ac_tool_prefix}cc"
2661
echo "$as_me:2661: found $ac_dir/$ac_word" >&5
2668
if test -n "$CC"; then
2669
echo "$as_me:2669: result: $CC" >&5
2670
echo "${ECHO_T}$CC" >&6
2672
echo "$as_me:2672: result: no" >&5
2673
echo "${ECHO_T}no" >&6
2677
if test -z "$ac_cv_prog_CC"; then
2679
# Extract the first word of "cc", so it can be a program name with args.
2680
set dummy cc; ac_word=$2
2681
echo "$as_me:2681: checking for $ac_word" >&5
2682
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2683
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2684
echo $ECHO_N "(cached) $ECHO_C" >&6
2686
if test -n "$ac_ct_CC"; then
2687
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2689
ac_save_IFS=$IFS; IFS=$ac_path_separator
2691
for ac_dir in $ac_dummy; do
2693
test -z "$ac_dir" && ac_dir=.
2694
$as_executable_p "$ac_dir/$ac_word" || continue
2695
ac_cv_prog_ac_ct_CC="cc"
2696
echo "$as_me:2696: found $ac_dir/$ac_word" >&5
2702
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2703
if test -n "$ac_ct_CC"; then
2704
echo "$as_me:2704: result: $ac_ct_CC" >&5
2705
echo "${ECHO_T}$ac_ct_CC" >&6
2707
echo "$as_me:2707: result: no" >&5
2708
echo "${ECHO_T}no" >&6
2717
if test -z "$CC"; then
2718
# Extract the first word of "cc", so it can be a program name with args.
2719
set dummy cc; ac_word=$2
2720
echo "$as_me:2720: checking for $ac_word" >&5
2721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2722
if test "${ac_cv_prog_CC+set}" = set; then
2723
echo $ECHO_N "(cached) $ECHO_C" >&6
2725
if test -n "$CC"; then
2726
ac_cv_prog_CC="$CC" # Let the user override the test.
2729
ac_save_IFS=$IFS; IFS=$ac_path_separator
2731
for ac_dir in $ac_dummy; do
2733
test -z "$ac_dir" && ac_dir=.
2734
$as_executable_p "$ac_dir/$ac_word" || continue
2735
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2736
ac_prog_rejected=yes
2740
echo "$as_me:2740: found $ac_dir/$ac_word" >&5
2744
if test $ac_prog_rejected = yes; then
2745
# We found a bogon in the path, so make sure we never use it.
2746
set dummy $ac_cv_prog_CC
2748
if test $# != 0; then
2749
# We chose a different compiler from the bogus one.
2750
# However, it has the same basename, so the bogon will be chosen
2751
# first if we set CC to just the basename; use the full file name.
2753
set dummy "$ac_dir/$ac_word" ${1+"$@"}
2761
if test -n "$CC"; then
2762
echo "$as_me:2762: result: $CC" >&5
2763
echo "${ECHO_T}$CC" >&6
2765
echo "$as_me:2765: result: no" >&5
2766
echo "${ECHO_T}no" >&6
2770
if test -z "$CC"; then
2771
if test -n "$ac_tool_prefix"; then
2774
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2775
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2776
echo "$as_me:2776: checking for $ac_word" >&5
2777
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2778
if test "${ac_cv_prog_CC+set}" = set; then
2779
echo $ECHO_N "(cached) $ECHO_C" >&6
2781
if test -n "$CC"; then
2782
ac_cv_prog_CC="$CC" # Let the user override the test.
2784
ac_save_IFS=$IFS; IFS=$ac_path_separator
2786
for ac_dir in $ac_dummy; do
2788
test -z "$ac_dir" && ac_dir=.
2789
$as_executable_p "$ac_dir/$ac_word" || continue
2790
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2791
echo "$as_me:2791: found $ac_dir/$ac_word" >&5
2798
if test -n "$CC"; then
2799
echo "$as_me:2799: result: $CC" >&5
2800
echo "${ECHO_T}$CC" >&6
2802
echo "$as_me:2802: result: no" >&5
2803
echo "${ECHO_T}no" >&6
2806
test -n "$CC" && break
2809
if test -z "$CC"; then
2813
# Extract the first word of "$ac_prog", so it can be a program name with args.
2814
set dummy $ac_prog; ac_word=$2
2815
echo "$as_me:2815: checking for $ac_word" >&5
2816
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2817
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2818
echo $ECHO_N "(cached) $ECHO_C" >&6
2820
if test -n "$ac_ct_CC"; then
2821
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823
ac_save_IFS=$IFS; IFS=$ac_path_separator
2825
for ac_dir in $ac_dummy; do
2827
test -z "$ac_dir" && ac_dir=.
2828
$as_executable_p "$ac_dir/$ac_word" || continue
2829
ac_cv_prog_ac_ct_CC="$ac_prog"
2830
echo "$as_me:2830: found $ac_dir/$ac_word" >&5
2836
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2837
if test -n "$ac_ct_CC"; then
2838
echo "$as_me:2838: result: $ac_ct_CC" >&5
2839
echo "${ECHO_T}$ac_ct_CC" >&6
2841
echo "$as_me:2841: result: no" >&5
2842
echo "${ECHO_T}no" >&6
2845
test -n "$ac_ct_CC" && break
2853
test -z "$CC" && { { echo "$as_me:2853: error: no acceptable cc found in \$PATH" >&5
2854
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
2855
{ (exit 1); exit 1; }; }
2857
# Provide some information about the compiler.
2858
echo "$as_me:2858:" \
2859
"checking for C compiler version" >&5
2860
ac_compiler=`set X $ac_compile; echo $2`
2861
{ (eval echo "$as_me:2861: \"$ac_compiler --version </dev/null >&5\"") >&5
2862
(eval $ac_compiler --version </dev/null >&5) 2>&5
2864
echo "$as_me:2864: \$? = $ac_status" >&5
2865
(exit $ac_status); }
2866
{ (eval echo "$as_me:2866: \"$ac_compiler -v </dev/null >&5\"") >&5
2867
(eval $ac_compiler -v </dev/null >&5) 2>&5
2869
echo "$as_me:2869: \$? = $ac_status" >&5
2870
(exit $ac_status); }
2871
{ (eval echo "$as_me:2871: \"$ac_compiler -V </dev/null >&5\"") >&5
2872
(eval $ac_compiler -V </dev/null >&5) 2>&5
2874
echo "$as_me:2874: \$? = $ac_status" >&5
2875
(exit $ac_status); }
2877
echo "$as_me:2877: checking whether we are using the GNU C compiler" >&5
2878
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2879
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2880
echo $ECHO_N "(cached) $ECHO_C" >&6
2882
cat >conftest.$ac_ext <<_ACEOF
2883
#line 2883 "configure"
2884
#include "confdefs.h"
2897
rm -f conftest.$ac_objext
2898
if { (eval echo "$as_me:2898: \"$ac_compile\"") >&5
2899
(eval $ac_compile) 2>&5
2901
echo "$as_me:2901: \$? = $ac_status" >&5
2902
(exit $ac_status); } &&
2903
{ ac_try='test -s conftest.$ac_objext'
2904
{ (eval echo "$as_me:2904: \"$ac_try\"") >&5
2907
echo "$as_me:2907: \$? = $ac_status" >&5
2908
(exit $ac_status); }; }; then
2911
echo "$as_me: failed program was:" >&5
2912
cat conftest.$ac_ext >&5
2915
rm -f conftest.$ac_objext conftest.$ac_ext
2916
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2919
echo "$as_me:2919: result: $ac_cv_c_compiler_gnu" >&5
2920
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2921
GCC=`test $ac_compiler_gnu = yes && echo yes`
2922
ac_test_CFLAGS=${CFLAGS+set}
2923
ac_save_CFLAGS=$CFLAGS
2925
echo "$as_me:2925: checking whether $CC accepts -g" >&5
2926
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2927
if test "${ac_cv_prog_cc_g+set}" = set; then
2928
echo $ECHO_N "(cached) $ECHO_C" >&6
2930
cat >conftest.$ac_ext <<_ACEOF
2931
#line 2931 "configure"
2932
#include "confdefs.h"
2942
rm -f conftest.$ac_objext
2943
if { (eval echo "$as_me:2943: \"$ac_compile\"") >&5
2944
(eval $ac_compile) 2>&5
2946
echo "$as_me:2946: \$? = $ac_status" >&5
2947
(exit $ac_status); } &&
2948
{ ac_try='test -s conftest.$ac_objext'
2949
{ (eval echo "$as_me:2949: \"$ac_try\"") >&5
2952
echo "$as_me:2952: \$? = $ac_status" >&5
2953
(exit $ac_status); }; }; then
2956
echo "$as_me: failed program was:" >&5
2957
cat conftest.$ac_ext >&5
2960
rm -f conftest.$ac_objext conftest.$ac_ext
2962
echo "$as_me:2962: result: $ac_cv_prog_cc_g" >&5
2963
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2964
if test "$ac_test_CFLAGS" = set; then
2965
CFLAGS=$ac_save_CFLAGS
2966
elif test $ac_cv_prog_cc_g = yes; then
2967
if test "$GCC" = yes; then
2973
if test "$GCC" = yes; then
2979
# Some people use a C++ compiler to compile C. Since we use `exit',
2980
# in C++ we need to declare it. In case someone uses the same compiler
2981
# for both compiling C and C++ we need to have the C++ compiler decide
2982
# the declaration of exit, since it's the most demanding environment.
2983
cat >conftest.$ac_ext <<_ACEOF
2988
rm -f conftest.$ac_objext
2989
if { (eval echo "$as_me:2989: \"$ac_compile\"") >&5
2990
(eval $ac_compile) 2>&5
2992
echo "$as_me:2992: \$? = $ac_status" >&5
2993
(exit $ac_status); } &&
2994
{ ac_try='test -s conftest.$ac_objext'
2995
{ (eval echo "$as_me:2995: \"$ac_try\"") >&5
2998
echo "$as_me:2998: \$? = $ac_status" >&5
2999
(exit $ac_status); }; }; then
3000
for ac_declaration in \
3002
'#include <stdlib.h>' \
3003
'extern "C" void std::exit (int) throw (); using std::exit;' \
3004
'extern "C" void std::exit (int); using std::exit;' \
3005
'extern "C" void exit (int) throw ();' \
3006
'extern "C" void exit (int);' \
3009
cat >conftest.$ac_ext <<_ACEOF
3010
#line 3010 "configure"
3011
#include "confdefs.h"
3022
rm -f conftest.$ac_objext
3023
if { (eval echo "$as_me:3023: \"$ac_compile\"") >&5
3024
(eval $ac_compile) 2>&5
3026
echo "$as_me:3026: \$? = $ac_status" >&5
3027
(exit $ac_status); } &&
3028
{ ac_try='test -s conftest.$ac_objext'
3029
{ (eval echo "$as_me:3029: \"$ac_try\"") >&5
3032
echo "$as_me:3032: \$? = $ac_status" >&5
3033
(exit $ac_status); }; }; then
3036
echo "$as_me: failed program was:" >&5
3037
cat conftest.$ac_ext >&5
3040
rm -f conftest.$ac_objext conftest.$ac_ext
3041
cat >conftest.$ac_ext <<_ACEOF
3042
#line 3042 "configure"
3043
#include "confdefs.h"
3053
rm -f conftest.$ac_objext
3054
if { (eval echo "$as_me:3054: \"$ac_compile\"") >&5
3055
(eval $ac_compile) 2>&5
3057
echo "$as_me:3057: \$? = $ac_status" >&5
3058
(exit $ac_status); } &&
3059
{ ac_try='test -s conftest.$ac_objext'
3060
{ (eval echo "$as_me:3060: \"$ac_try\"") >&5
3063
echo "$as_me:3063: \$? = $ac_status" >&5
3064
(exit $ac_status); }; }; then
3067
echo "$as_me: failed program was:" >&5
3068
cat conftest.$ac_ext >&5
3070
rm -f conftest.$ac_objext conftest.$ac_ext
3073
if test -n "$ac_declaration"; then
3074
echo '#ifdef __cplusplus' >>confdefs.h
3075
echo $ac_declaration >>confdefs.h
3076
echo '#endif' >>confdefs.h
3080
echo "$as_me: failed program was:" >&5
3081
cat conftest.$ac_ext >&5
3083
rm -f conftest.$ac_objext conftest.$ac_ext
3085
ac_cpp='$CPP $CPPFLAGS'
3086
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090
depcc="$CC" am_compiler_list=
3092
echo "$as_me:3092: checking dependency style of $depcc" >&5
3093
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3094
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3095
echo $ECHO_N "(cached) $ECHO_C" >&6
3097
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3098
# We make a subdir and do the tests there. Otherwise we can end up
3099
# making bogus files that we don't know about and never remove. For
3100
# instance it was reported that on HP-UX the gcc test will end up
3101
# making a dummy file named `D' -- because `-MD' means `put the output
3104
# Copy depcomp to subdir because otherwise we won't find it if we're
3105
# using a relative directory.
3106
cp "$am_depcomp" conftest.dir
3109
am_cv_CC_dependencies_compiler_type=none
3110
if test "$am_compiler_list" = ""; then
3111
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3113
for depmode in $am_compiler_list; do
3114
# We need to recreate these files for each test, as the compiler may
3115
# overwrite some of them when testing with obscure command lines.
3116
# This happens at least with the AIX C compiler.
3117
echo '#include "conftest.h"' > conftest.c
3118
echo 'int i;' > conftest.h
3119
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3123
# after this tag, mechanisms are not by side-effect, so they'll
3124
# only be used when explicitly requested
3125
if test "x$enable_dependency_tracking" = xyes; then
3133
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3134
# mode. It turns out that the SunPro C++ compiler does not properly
3135
# handle `-M -o', and we need to detect this.
3136
if depmode=$depmode \
3137
source=conftest.c object=conftest.o \
3138
depfile=conftest.Po tmpdepfile=conftest.TPo \
3139
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3140
grep conftest.h conftest.Po > /dev/null 2>&1 &&
3141
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3142
am_cv_CC_dependencies_compiler_type=$depmode
3150
am_cv_CC_dependencies_compiler_type=none
3154
echo "$as_me:3154: result: $am_cv_CC_dependencies_compiler_type" >&5
3155
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3156
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
3158
# Check whether --enable-largefile or --disable-largefile was given.
3159
if test "${enable_largefile+set}" = set; then
3160
enableval="$enable_largefile"
3163
if test "$enable_largefile" != no; then
3165
echo "$as_me:3165: checking for special C compiler options needed for large files" >&5
3166
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3167
if test "${ac_cv_sys_largefile_CC+set}" = set; then
3168
echo $ECHO_N "(cached) $ECHO_C" >&6
3170
ac_cv_sys_largefile_CC=no
3171
if test "$GCC" != yes; then
3174
# IRIX 6.2 and later do not support large files by default,
3175
# so use the C compiler's -n32 option if that helps.
3176
cat >conftest.$ac_ext <<_ACEOF
3177
#line 3177 "configure"
3178
#include "confdefs.h"
3179
#include <sys/types.h>
3180
/* Check that off_t can represent 2**63 - 1 correctly.
3181
We can't simply define LARGE_OFF_T to be 9223372036854775807,
3182
since some C++ compilers masquerading as C compilers
3183
incorrectly reject 9223372036854775807. */
3184
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3185
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3186
&& LARGE_OFF_T % 2147483647 == 1)
3196
rm -f conftest.$ac_objext
3197
if { (eval echo "$as_me:3197: \"$ac_compile\"") >&5
3198
(eval $ac_compile) 2>&5
3200
echo "$as_me:3200: \$? = $ac_status" >&5
3201
(exit $ac_status); } &&
3202
{ ac_try='test -s conftest.$ac_objext'
3203
{ (eval echo "$as_me:3203: \"$ac_try\"") >&5
3206
echo "$as_me:3206: \$? = $ac_status" >&5
3207
(exit $ac_status); }; }; then
3210
echo "$as_me: failed program was:" >&5
3211
cat conftest.$ac_ext >&5
3213
rm -f conftest.$ac_objext
3215
rm -f conftest.$ac_objext
3216
if { (eval echo "$as_me:3216: \"$ac_compile\"") >&5
3217
(eval $ac_compile) 2>&5
3219
echo "$as_me:3219: \$? = $ac_status" >&5
3220
(exit $ac_status); } &&
3221
{ ac_try='test -s conftest.$ac_objext'
3222
{ (eval echo "$as_me:3222: \"$ac_try\"") >&5
3225
echo "$as_me:3225: \$? = $ac_status" >&5
3226
(exit $ac_status); }; }; then
3227
ac_cv_sys_largefile_CC=' -n32'; break
3229
echo "$as_me: failed program was:" >&5
3230
cat conftest.$ac_ext >&5
3232
rm -f conftest.$ac_objext
3236
rm -f conftest.$ac_ext
3239
echo "$as_me:3239: result: $ac_cv_sys_largefile_CC" >&5
3240
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
3241
if test "$ac_cv_sys_largefile_CC" != no; then
3242
CC=$CC$ac_cv_sys_largefile_CC
3245
echo "$as_me:3245: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3246
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
3247
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
3248
echo $ECHO_N "(cached) $ECHO_C" >&6
3251
ac_cv_sys_file_offset_bits=no
3252
cat >conftest.$ac_ext <<_ACEOF
3253
#line 3253 "configure"
3254
#include "confdefs.h"
3255
#include <sys/types.h>
3256
/* Check that off_t can represent 2**63 - 1 correctly.
3257
We can't simply define LARGE_OFF_T to be 9223372036854775807,
3258
since some C++ compilers masquerading as C compilers
3259
incorrectly reject 9223372036854775807. */
3260
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3261
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3262
&& LARGE_OFF_T % 2147483647 == 1)
3272
rm -f conftest.$ac_objext
3273
if { (eval echo "$as_me:3273: \"$ac_compile\"") >&5
3274
(eval $ac_compile) 2>&5
3276
echo "$as_me:3276: \$? = $ac_status" >&5
3277
(exit $ac_status); } &&
3278
{ ac_try='test -s conftest.$ac_objext'
3279
{ (eval echo "$as_me:3279: \"$ac_try\"") >&5
3282
echo "$as_me:3282: \$? = $ac_status" >&5
3283
(exit $ac_status); }; }; then
3286
echo "$as_me: failed program was:" >&5
3287
cat conftest.$ac_ext >&5
3289
rm -f conftest.$ac_objext conftest.$ac_ext
3290
cat >conftest.$ac_ext <<_ACEOF
3291
#line 3291 "configure"
3292
#include "confdefs.h"
3293
#define _FILE_OFFSET_BITS 64
3294
#include <sys/types.h>
3295
/* Check that off_t can represent 2**63 - 1 correctly.
3296
We can't simply define LARGE_OFF_T to be 9223372036854775807,
3297
since some C++ compilers masquerading as C compilers
3298
incorrectly reject 9223372036854775807. */
3299
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3300
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3301
&& LARGE_OFF_T % 2147483647 == 1)
3311
rm -f conftest.$ac_objext
3312
if { (eval echo "$as_me:3312: \"$ac_compile\"") >&5
3313
(eval $ac_compile) 2>&5
3315
echo "$as_me:3315: \$? = $ac_status" >&5
3316
(exit $ac_status); } &&
3317
{ ac_try='test -s conftest.$ac_objext'
3318
{ (eval echo "$as_me:3318: \"$ac_try\"") >&5
3321
echo "$as_me:3321: \$? = $ac_status" >&5
3322
(exit $ac_status); }; }; then
3323
ac_cv_sys_file_offset_bits=64; break
3325
echo "$as_me: failed program was:" >&5
3326
cat conftest.$ac_ext >&5
3328
rm -f conftest.$ac_objext conftest.$ac_ext
3332
echo "$as_me:3332: result: $ac_cv_sys_file_offset_bits" >&5
3333
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3334
if test "$ac_cv_sys_file_offset_bits" != no; then
3336
cat >>confdefs.h <<EOF
3337
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3342
echo "$as_me:3342: checking for _LARGE_FILES value needed for large files" >&5
3343
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3344
if test "${ac_cv_sys_large_files+set}" = set; then
3345
echo $ECHO_N "(cached) $ECHO_C" >&6
3348
ac_cv_sys_large_files=no
3349
cat >conftest.$ac_ext <<_ACEOF
3350
#line 3350 "configure"
3351
#include "confdefs.h"
3352
#include <sys/types.h>
3353
/* Check that off_t can represent 2**63 - 1 correctly.
3354
We can't simply define LARGE_OFF_T to be 9223372036854775807,
3355
since some C++ compilers masquerading as C compilers
3356
incorrectly reject 9223372036854775807. */
3357
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3358
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3359
&& LARGE_OFF_T % 2147483647 == 1)
3369
rm -f conftest.$ac_objext
3370
if { (eval echo "$as_me:3370: \"$ac_compile\"") >&5
3371
(eval $ac_compile) 2>&5
3373
echo "$as_me:3373: \$? = $ac_status" >&5
3374
(exit $ac_status); } &&
3375
{ ac_try='test -s conftest.$ac_objext'
3376
{ (eval echo "$as_me:3376: \"$ac_try\"") >&5
3379
echo "$as_me:3379: \$? = $ac_status" >&5
3380
(exit $ac_status); }; }; then
3383
echo "$as_me: failed program was:" >&5
3384
cat conftest.$ac_ext >&5
3386
rm -f conftest.$ac_objext conftest.$ac_ext
3387
cat >conftest.$ac_ext <<_ACEOF
3388
#line 3388 "configure"
3389
#include "confdefs.h"
3390
#define _LARGE_FILES 1
3391
#include <sys/types.h>
3392
/* Check that off_t can represent 2**63 - 1 correctly.
3393
We can't simply define LARGE_OFF_T to be 9223372036854775807,
3394
since some C++ compilers masquerading as C compilers
3395
incorrectly reject 9223372036854775807. */
3396
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3397
int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3398
&& LARGE_OFF_T % 2147483647 == 1)
3408
rm -f conftest.$ac_objext
3409
if { (eval echo "$as_me:3409: \"$ac_compile\"") >&5
3410
(eval $ac_compile) 2>&5
3412
echo "$as_me:3412: \$? = $ac_status" >&5
3413
(exit $ac_status); } &&
3414
{ ac_try='test -s conftest.$ac_objext'
3415
{ (eval echo "$as_me:3415: \"$ac_try\"") >&5
3418
echo "$as_me:3418: \$? = $ac_status" >&5
3419
(exit $ac_status); }; }; then
3420
ac_cv_sys_large_files=1; break
3422
echo "$as_me: failed program was:" >&5
3423
cat conftest.$ac_ext >&5
3425
rm -f conftest.$ac_objext conftest.$ac_ext
3429
echo "$as_me:3429: result: $ac_cv_sys_large_files" >&5
3430
echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3431
if test "$ac_cv_sys_large_files" != no; then
3433
cat >>confdefs.h <<EOF
3434
#define _LARGE_FILES $ac_cv_sys_large_files
3441
# Check whether --enable-shared or --disable-shared was given.
3442
if test "${enable_shared+set}" = set; then
3443
enableval="$enable_shared"
3444
p=${PACKAGE-default}
3446
yes) enable_shared=yes ;;
3447
no) enable_shared=no ;;
3450
# Look at the argument we got. We use all the common list separators.
3451
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3452
for pkg in $enableval; do
3453
if test "X$pkg" = "X$p"; then
3463
# Check whether --enable-static or --disable-static was given.
3464
if test "${enable_static+set}" = set; then
3465
enableval="$enable_static"
3466
p=${PACKAGE-default}
3468
yes) enable_static=yes ;;
3469
no) enable_static=no ;;
3472
# Look at the argument we got. We use all the common list separators.
3473
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3474
for pkg in $enableval; do
3475
if test "X$pkg" = "X$p"; then
3485
# Check whether --enable-fast-install or --disable-fast-install was given.
3486
if test "${enable_fast_install+set}" = set; then
3487
enableval="$enable_fast_install"
3488
p=${PACKAGE-default}
3490
yes) enable_fast_install=yes ;;
3491
no) enable_fast_install=no ;;
3493
enable_fast_install=no
3494
# Look at the argument we got. We use all the common list separators.
3495
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3496
for pkg in $enableval; do
3497
if test "X$pkg" = "X$p"; then
3498
enable_fast_install=yes
3505
enable_fast_install=yes
3507
# Find the correct PATH separator. Usually this is `:', but
3508
# DJGPP uses `;' like DOS.
3509
if test "X${PATH_SEPARATOR+set}" != Xset; then
3510
UNAME=${UNAME-`uname 2>/dev/null`}
3512
*-DOS) lt_cv_sys_path_separator=';' ;;
3513
*) lt_cv_sys_path_separator=':' ;;
3515
PATH_SEPARATOR=$lt_cv_sys_path_separator
3518
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3519
if test "${with_gnu_ld+set}" = set; then
3520
withval="$with_gnu_ld"
3521
test "$withval" = no || with_gnu_ld=yes
3526
if test "$GCC" = yes; then
3527
# Check if gcc -print-prog-name=ld gives a path.
3528
echo "$as_me:3528: checking for ld used by GCC" >&5
3529
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3532
# gcc leaves a trailing carriage return which upsets mingw
3533
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3535
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3538
# Accept absolute paths.
3539
[\\/]* | [A-Za-z]:[\\/]*)
3540
re_direlt='/[^/][^/]*/\.\./'
3541
# Canonicalize the path of ld
3542
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3543
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3544
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3546
test -z "$LD" && LD="$ac_prog"
3549
# If it fails, then pretend we aren't using GCC.
3553
# If it is relative, then search for the first ld in PATH.
3557
elif test "$with_gnu_ld" = yes; then
3558
echo "$as_me:3558: checking for GNU ld" >&5
3559
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3561
echo "$as_me:3561: checking for non-GNU ld" >&5
3562
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3564
if test "${lt_cv_path_LD+set}" = set; then
3565
echo $ECHO_N "(cached) $ECHO_C" >&6
3567
if test -z "$LD"; then
3568
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3569
for ac_dir in $PATH; do
3570
test -z "$ac_dir" && ac_dir=.
3571
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3572
lt_cv_path_LD="$ac_dir/$ac_prog"
3573
# Check to see if the program is GNU ld. I'd rather use --version,
3574
# but apparently some GNU ld's only accept -v.
3575
# Break only if it was the GNU/non-GNU ld that we prefer.
3576
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3577
test "$with_gnu_ld" != no && break
3579
test "$with_gnu_ld" != yes && break
3585
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3590
if test -n "$LD"; then
3591
echo "$as_me:3591: result: $LD" >&5
3592
echo "${ECHO_T}$LD" >&6
3594
echo "$as_me:3594: result: no" >&5
3595
echo "${ECHO_T}no" >&6
3597
test -z "$LD" && { { echo "$as_me:3597: error: no acceptable ld found in \$PATH" >&5
3598
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3599
{ (exit 1); exit 1; }; }
3600
echo "$as_me:3600: checking if the linker ($LD) is GNU ld" >&5
3601
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3602
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3603
echo $ECHO_N "(cached) $ECHO_C" >&6
3605
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3606
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3607
lt_cv_prog_gnu_ld=yes
3609
lt_cv_prog_gnu_ld=no
3612
echo "$as_me:3612: result: $lt_cv_prog_gnu_ld" >&5
3613
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3614
with_gnu_ld=$lt_cv_prog_gnu_ld
3616
echo "$as_me:3616: checking for $LD option to reload object files" >&5
3617
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3618
if test "${lt_cv_ld_reload_flag+set}" = set; then
3619
echo $ECHO_N "(cached) $ECHO_C" >&6
3621
lt_cv_ld_reload_flag='-r'
3623
echo "$as_me:3623: result: $lt_cv_ld_reload_flag" >&5
3624
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3625
reload_flag=$lt_cv_ld_reload_flag
3626
test -n "$reload_flag" && reload_flag=" $reload_flag"
3628
echo "$as_me:3628: checking for BSD-compatible nm" >&5
3629
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3630
if test "${lt_cv_path_NM+set}" = set; then
3631
echo $ECHO_N "(cached) $ECHO_C" >&6
3633
if test -n "$NM"; then
3634
# Let the user override the test.
3637
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3638
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3639
test -z "$ac_dir" && ac_dir=.
3640
tmp_nm=$ac_dir/${ac_tool_prefix}nm
3641
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3642
# Check to see if the nm accepts a BSD-compat flag.
3643
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3644
# nm: unknown option "B" ignored
3645
# Tru64's nm complains that /dev/null is an invalid object file
3646
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3647
lt_cv_path_NM="$tmp_nm -B"
3649
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3650
lt_cv_path_NM="$tmp_nm -p"
3653
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3654
continue # so that we can try to find one that supports BSD flags
3659
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3664
echo "$as_me:3664: result: $NM" >&5
3665
echo "${ECHO_T}$NM" >&6
3667
echo "$as_me:3667: checking whether ln -s works" >&5
3668
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3670
if test "$LN_S" = "ln -s"; then
3671
echo "$as_me:3671: result: yes" >&5
3672
echo "${ECHO_T}yes" >&6
3674
echo "$as_me:3674: result: no, using $LN_S" >&5
3675
echo "${ECHO_T}no, using $LN_S" >&6
3678
echo "$as_me:3678: checking how to recognise dependant libraries" >&5
3679
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3680
if test "${lt_cv_deplibs_check_method+set}" = set; then
3681
echo $ECHO_N "(cached) $ECHO_C" >&6
3683
lt_cv_file_magic_cmd='$MAGIC_CMD'
3684
lt_cv_file_magic_test_file=
3685
lt_cv_deplibs_check_method='unknown'
3686
# Need to set the preceding variable on all platforms that support
3687
# interlibrary dependencies.
3688
# 'none' -- dependencies not supported.
3689
# `unknown' -- same as none, but documents that we really don't know.
3690
# 'pass_all' -- all dependencies passed with no checks.
3691
# 'test_compile' -- check by making test program.
3692
# 'file_magic [[regex]]' -- check by looking for files in library path
3693
# which responds to the $file_magic_cmd with a given egrep regex.
3694
# If you have `file' or equivalent on your system and you're not sure
3695
# whether `pass_all' will *always* work, you probably want this one.
3699
lt_cv_deplibs_check_method=pass_all
3703
lt_cv_deplibs_check_method=pass_all
3707
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3708
lt_cv_file_magic_cmd='/usr/bin/file -L'
3709
lt_cv_file_magic_test_file=/shlib/libc.so
3712
cygwin* | mingw* | pw32*)
3713
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3714
lt_cv_file_magic_cmd='$OBJDUMP -f'
3717
darwin* | rhapsody*)
3718
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3719
lt_cv_file_magic_cmd='/usr/bin/file -L'
3721
rhapsody* | darwin1.[012])
3722
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3725
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3731
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3734
# Not sure whether the presence of OpenBSD here was a mistake.
3735
# Let's accept both of them until this is cleared up.
3736
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3737
lt_cv_file_magic_cmd=/usr/bin/file
3738
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3742
lt_cv_deplibs_check_method=pass_all
3747
lt_cv_deplibs_check_method=pass_all
3751
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3752
lt_cv_file_magic_cmd=/usr/bin/file
3753
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3759
# this will be overridden with pass_all, but let us keep it just in case
3760
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3764
*-32|*"-32 ") libmagic=32-bit;;
3765
*-n32|*"-n32 ") libmagic=N32;;
3766
*-64|*"-64 ") libmagic=64-bit;;
3767
*) libmagic=never-match;;
3769
# this will be overridden with pass_all, but let us keep it just in case
3770
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3773
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3774
lt_cv_deplibs_check_method=pass_all
3777
# This must be Linux ELF.
3780
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
3781
lt_cv_deplibs_check_method=pass_all ;;
3783
# glibc up to 2.1.1 does not perform some relocations on ARM
3784
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3786
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3790
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3791
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3793
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3798
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3799
lt_cv_file_magic_cmd=/usr/bin/file
3800
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3804
lt_cv_file_magic_cmd=/usr/bin/file
3805
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3806
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3807
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3809
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3813
osf3* | osf4* | osf5*)
3814
# this will be overridden with pass_all, but let us keep it just in case
3815
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3816
lt_cv_file_magic_test_file=/shlib/libc.so
3817
lt_cv_deplibs_check_method=pass_all
3821
lt_cv_deplibs_check_method=pass_all
3825
lt_cv_deplibs_check_method=pass_all
3826
lt_cv_file_magic_test_file=/lib/libc.so
3829
sysv5uw[78]* | sysv4*uw2*)
3830
lt_cv_deplibs_check_method=pass_all
3833
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3834
case $host_vendor in
3836
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]'
3837
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3840
lt_cv_deplibs_check_method=pass_all
3843
lt_cv_file_magic_cmd='/bin/file'
3844
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3847
lt_cv_file_magic_cmd='/bin/file'
3848
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3849
lt_cv_file_magic_test_file=/lib/libc.so
3856
echo "$as_me:3856: result: $lt_cv_deplibs_check_method" >&5
3857
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3858
file_magic_cmd=$lt_cv_file_magic_cmd
3859
deplibs_check_method=$lt_cv_deplibs_check_method
3861
# Check for command to grab the raw symbol name followed by C symbol from nm.
3862
echo "$as_me:3862: checking command to parse $NM output" >&5
3863
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3864
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3865
echo $ECHO_N "(cached) $ECHO_C" >&6
3868
# These are sane defaults that work on at least a few old systems.
3869
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3871
# Character class describing NM global symbol codes.
3872
symcode='[BCDEGRST]'
3874
# Regexp to match symbols that can be accessed directly from C.
3875
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3877
# Transform the above into a raw symbol and a C symbol.
3878
symxfrm='\1 \2\3 \3'
3880
# Transform an extracted symbol line into a proper C declaration
3881
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3883
# Transform an extracted symbol line into symbol name and symbol address
3884
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3886
# Define system-specific variables.
3891
cygwin* | mingw* | pw32*)
3892
symcode='[ABCDGISTW]'
3894
hpux*) # Its linker distinguishes data from code symbols
3895
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3896
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3899
symcode='[BCDEGRST]'
3909
# Handle CRLF in mingw tool chain
3913
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3917
# If we're using GNU nm, then use its standard symbol codes.
3918
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3919
symcode='[ABCDGISTW]'
3922
# Try without a prefix undercore, then with it.
3923
for ac_symprfx in "" "_"; do
3925
# Write the raw and C identifiers.
3926
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3928
# Check to see that the pipe works correctly.
3931
cat > conftest.$ac_ext <<EOF
3936
void nm_test_func(){}
3940
int main(){nm_test_var='a';nm_test_func();return(0);}
3943
if { (eval echo "$as_me:3943: \"$ac_compile\"") >&5
3944
(eval $ac_compile) 2>&5
3946
echo "$as_me:3946: \$? = $ac_status" >&5
3947
(exit $ac_status); }; then
3948
# Now try to grab the symbols.
3950
if { (eval echo "$as_me:3950: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3951
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3953
echo "$as_me:3953: \$? = $ac_status" >&5
3954
(exit $ac_status); } && test -s "$nlist"; then
3955
# Try sorting and uniquifying the output.
3956
if sort "$nlist" | uniq > "$nlist"T; then
3957
mv -f "$nlist"T "$nlist"
3962
# Make sure that we snagged all the symbols we need.
3963
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3964
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3965
cat <<EOF > conftest.$ac_ext
3971
# Now generate the symbol file.
3972
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3974
cat <<EOF >> conftest.$ac_ext
3975
#if defined (__STDC__) && __STDC__
3976
# define lt_ptr void *
3978
# define lt_ptr char *
3982
/* The mapping between symbol names and symbols. */
3987
lt_preloaded_symbols[] =
3990
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3991
cat <<\EOF >> conftest.$ac_ext
3999
# Now try linking the two files.
4000
mv conftest.$ac_objext conftstm.$ac_objext
4002
save_CFLAGS="$CFLAGS"
4003
LIBS="conftstm.$ac_objext"
4004
CFLAGS="$CFLAGS$no_builtin_flag"
4005
if { (eval echo "$as_me:4005: \"$ac_link\"") >&5
4006
(eval $ac_link) 2>&5
4008
echo "$as_me:4008: \$? = $ac_status" >&5
4009
(exit $ac_status); } && test -s conftest; then
4013
CFLAGS="$save_CFLAGS"
4015
echo "cannot find nm_test_func in $nlist" >&5
4018
echo "cannot find nm_test_var in $nlist" >&5
4021
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4024
echo "$progname: failed program was:" >&5
4025
cat conftest.$ac_ext >&5
4027
rm -f conftest* conftst*
4029
# Do not use the global_symbol_pipe unless it works.
4030
if test "$pipe_works" = yes; then
4033
lt_cv_sys_global_symbol_pipe=
4039
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4040
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4041
global_symbol_to_cdecl=
4042
global_symbol_to_c_name_address=
4044
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4045
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4047
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4049
echo "$as_me:4049: result: failed" >&5
4050
echo "${ECHO_T}failed" >&6
4052
echo "$as_me:4052: result: ok" >&5
4053
echo "${ECHO_T}ok" >&6
4056
for ac_header in dlfcn.h
4058
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4059
echo "$as_me:4059: checking for $ac_header" >&5
4060
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4061
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4062
echo $ECHO_N "(cached) $ECHO_C" >&6
4064
cat >conftest.$ac_ext <<_ACEOF
4065
#line 4065 "configure"
4066
#include "confdefs.h"
4067
#include <$ac_header>
4069
if { (eval echo "$as_me:4069: \"$ac_cpp conftest.$ac_ext\"") >&5
4070
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4072
egrep -v '^ *\+' conftest.er1 >conftest.err
4074
cat conftest.err >&5
4075
echo "$as_me:4075: \$? = $ac_status" >&5
4076
(exit $ac_status); } >/dev/null; then
4077
if test -s conftest.err; then
4078
ac_cpp_err=$ac_c_preproc_warn_flag
4085
if test -z "$ac_cpp_err"; then
4086
eval "$as_ac_Header=yes"
4088
echo "$as_me: failed program was:" >&5
4089
cat conftest.$ac_ext >&5
4090
eval "$as_ac_Header=no"
4092
rm -f conftest.err conftest.$ac_ext
4094
echo "$as_me:4094: result: `eval echo '${'$as_ac_Header'}'`" >&5
4095
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4096
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4097
cat >>confdefs.h <<EOF
4098
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4104
# Only perform the check for file, if the check method requires it
4105
case $deplibs_check_method in
4107
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4108
echo "$as_me:4108: checking for ${ac_tool_prefix}file" >&5
4109
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4110
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4111
echo $ECHO_N "(cached) $ECHO_C" >&6
4115
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4118
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4121
ac_save_MAGIC_CMD="$MAGIC_CMD"
4122
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4123
ac_dummy="/usr/bin:$PATH"
4124
for ac_dir in $ac_dummy; do
4125
test -z "$ac_dir" && ac_dir=.
4126
if test -f $ac_dir/${ac_tool_prefix}file; then
4127
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4128
if test -n "$file_magic_test_file"; then
4129
case $deplibs_check_method in
4131
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4132
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4133
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4134
egrep "$file_magic_regex" > /dev/null; then
4139
*** Warning: the command libtool uses to detect shared libraries,
4140
*** $file_magic_cmd, produces output that libtool cannot recognize.
4141
*** The result is that libtool may fail to recognize shared libraries
4142
*** as such. This will affect the creation of libtool libraries that
4143
*** depend on shared libraries, but programs linked with such libtool
4144
*** libraries will work regardless of this problem. Nevertheless, you
4145
*** may want to report the problem to your system manager and/or to
4146
*** bug-libtool@gnu.org
4156
MAGIC_CMD="$ac_save_MAGIC_CMD"
4161
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4162
if test -n "$MAGIC_CMD"; then
4163
echo "$as_me:4163: result: $MAGIC_CMD" >&5
4164
echo "${ECHO_T}$MAGIC_CMD" >&6
4166
echo "$as_me:4166: result: no" >&5
4167
echo "${ECHO_T}no" >&6
4170
if test -z "$lt_cv_path_MAGIC_CMD"; then
4171
if test -n "$ac_tool_prefix"; then
4172
echo "$as_me:4172: checking for file" >&5
4173
echo $ECHO_N "checking for file... $ECHO_C" >&6
4174
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4175
echo $ECHO_N "(cached) $ECHO_C" >&6
4179
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4182
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4185
ac_save_MAGIC_CMD="$MAGIC_CMD"
4186
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4187
ac_dummy="/usr/bin:$PATH"
4188
for ac_dir in $ac_dummy; do
4189
test -z "$ac_dir" && ac_dir=.
4190
if test -f $ac_dir/file; then
4191
lt_cv_path_MAGIC_CMD="$ac_dir/file"
4192
if test -n "$file_magic_test_file"; then
4193
case $deplibs_check_method in
4195
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4196
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4197
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4198
egrep "$file_magic_regex" > /dev/null; then
4203
*** Warning: the command libtool uses to detect shared libraries,
4204
*** $file_magic_cmd, produces output that libtool cannot recognize.
4205
*** The result is that libtool may fail to recognize shared libraries
4206
*** as such. This will affect the creation of libtool libraries that
4207
*** depend on shared libraries, but programs linked with such libtool
4208
*** libraries will work regardless of this problem. Nevertheless, you
4209
*** may want to report the problem to your system manager and/or to
4210
*** bug-libtool@gnu.org
4220
MAGIC_CMD="$ac_save_MAGIC_CMD"
4225
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4226
if test -n "$MAGIC_CMD"; then
4227
echo "$as_me:4227: result: $MAGIC_CMD" >&5
4228
echo "${ECHO_T}$MAGIC_CMD" >&6
4230
echo "$as_me:4230: result: no" >&5
4231
echo "${ECHO_T}no" >&6
4243
if test -n "$ac_tool_prefix"; then
4244
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4245
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4246
echo "$as_me:4246: checking for $ac_word" >&5
4247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4248
if test "${ac_cv_prog_RANLIB+set}" = set; then
4249
echo $ECHO_N "(cached) $ECHO_C" >&6
4251
if test -n "$RANLIB"; then
4252
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4254
ac_save_IFS=$IFS; IFS=$ac_path_separator
4256
for ac_dir in $ac_dummy; do
4258
test -z "$ac_dir" && ac_dir=.
4259
$as_executable_p "$ac_dir/$ac_word" || continue
4260
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4261
echo "$as_me:4261: found $ac_dir/$ac_word" >&5
4267
RANLIB=$ac_cv_prog_RANLIB
4268
if test -n "$RANLIB"; then
4269
echo "$as_me:4269: result: $RANLIB" >&5
4270
echo "${ECHO_T}$RANLIB" >&6
4272
echo "$as_me:4272: result: no" >&5
4273
echo "${ECHO_T}no" >&6
4277
if test -z "$ac_cv_prog_RANLIB"; then
4278
ac_ct_RANLIB=$RANLIB
4279
# Extract the first word of "ranlib", so it can be a program name with args.
4280
set dummy ranlib; ac_word=$2
4281
echo "$as_me:4281: checking for $ac_word" >&5
4282
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4283
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4284
echo $ECHO_N "(cached) $ECHO_C" >&6
4286
if test -n "$ac_ct_RANLIB"; then
4287
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4289
ac_save_IFS=$IFS; IFS=$ac_path_separator
4291
for ac_dir in $ac_dummy; do
4293
test -z "$ac_dir" && ac_dir=.
4294
$as_executable_p "$ac_dir/$ac_word" || continue
4295
ac_cv_prog_ac_ct_RANLIB="ranlib"
4296
echo "$as_me:4296: found $ac_dir/$ac_word" >&5
4300
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4303
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4304
if test -n "$ac_ct_RANLIB"; then
4305
echo "$as_me:4305: result: $ac_ct_RANLIB" >&5
4306
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4308
echo "$as_me:4308: result: no" >&5
4309
echo "${ECHO_T}no" >&6
4312
RANLIB=$ac_ct_RANLIB
4314
RANLIB="$ac_cv_prog_RANLIB"
4317
if test -n "$ac_tool_prefix"; then
4318
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4319
set dummy ${ac_tool_prefix}strip; ac_word=$2
4320
echo "$as_me:4320: checking for $ac_word" >&5
4321
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4322
if test "${ac_cv_prog_STRIP+set}" = set; then
4323
echo $ECHO_N "(cached) $ECHO_C" >&6
4325
if test -n "$STRIP"; then
4326
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4328
ac_save_IFS=$IFS; IFS=$ac_path_separator
4330
for ac_dir in $ac_dummy; do
4332
test -z "$ac_dir" && ac_dir=.
4333
$as_executable_p "$ac_dir/$ac_word" || continue
4334
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4335
echo "$as_me:4335: found $ac_dir/$ac_word" >&5
4341
STRIP=$ac_cv_prog_STRIP
4342
if test -n "$STRIP"; then
4343
echo "$as_me:4343: result: $STRIP" >&5
4344
echo "${ECHO_T}$STRIP" >&6
4346
echo "$as_me:4346: result: no" >&5
4347
echo "${ECHO_T}no" >&6
4351
if test -z "$ac_cv_prog_STRIP"; then
4353
# Extract the first word of "strip", so it can be a program name with args.
4354
set dummy strip; ac_word=$2
4355
echo "$as_me:4355: checking for $ac_word" >&5
4356
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4357
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4358
echo $ECHO_N "(cached) $ECHO_C" >&6
4360
if test -n "$ac_ct_STRIP"; then
4361
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4363
ac_save_IFS=$IFS; IFS=$ac_path_separator
4365
for ac_dir in $ac_dummy; do
4367
test -z "$ac_dir" && ac_dir=.
4368
$as_executable_p "$ac_dir/$ac_word" || continue
4369
ac_cv_prog_ac_ct_STRIP="strip"
4370
echo "$as_me:4370: found $ac_dir/$ac_word" >&5
4374
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4377
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4378
if test -n "$ac_ct_STRIP"; then
4379
echo "$as_me:4379: result: $ac_ct_STRIP" >&5
4380
echo "${ECHO_T}$ac_ct_STRIP" >&6
4382
echo "$as_me:4382: result: no" >&5
4383
echo "${ECHO_T}no" >&6
4388
STRIP="$ac_cv_prog_STRIP"
4392
enable_win32_dll=yes
4394
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4395
if test "${enable_libtool_lock+set}" = set; then
4396
enableval="$enable_libtool_lock"
4399
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4401
# Some flags need to be propagated to the compiler or linker for good
4405
# Find out which ABI we are using.
4406
echo '#line 4406 "configure"' > conftest.$ac_ext
4407
if { (eval echo "$as_me:4407: \"$ac_compile\"") >&5
4408
(eval $ac_compile) 2>&5
4410
echo "$as_me:4410: \$? = $ac_status" >&5
4411
(exit $ac_status); }; then
4412
case `/usr/bin/file conftest.$ac_objext` in
4428
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
4429
SAVE_CFLAGS="$CFLAGS"
4430
CFLAGS="$CFLAGS -belf"
4431
echo "$as_me:4431: checking whether the C compiler needs -belf" >&5
4432
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4433
if test "${lt_cv_cc_needs_belf+set}" = set; then
4434
echo $ECHO_N "(cached) $ECHO_C" >&6
4438
ac_cpp='$CPP $CPPFLAGS'
4439
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4440
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4441
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443
cat >conftest.$ac_ext <<_ACEOF
4444
#line 4444 "configure"
4445
#include "confdefs.h"
4455
rm -f conftest.$ac_objext conftest$ac_exeext
4456
if { (eval echo "$as_me:4456: \"$ac_link\"") >&5
4457
(eval $ac_link) 2>&5
4459
echo "$as_me:4459: \$? = $ac_status" >&5
4460
(exit $ac_status); } &&
4461
{ ac_try='test -s conftest$ac_exeext'
4462
{ (eval echo "$as_me:4462: \"$ac_try\"") >&5
4465
echo "$as_me:4465: \$? = $ac_status" >&5
4466
(exit $ac_status); }; }; then
4467
lt_cv_cc_needs_belf=yes
4469
echo "$as_me: failed program was:" >&5
4470
cat conftest.$ac_ext >&5
4471
lt_cv_cc_needs_belf=no
4473
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4475
ac_cpp='$CPP $CPPFLAGS'
4476
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481
echo "$as_me:4481: result: $lt_cv_cc_needs_belf" >&5
4482
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4483
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4484
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4485
CFLAGS="$SAVE_CFLAGS"
4489
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4490
if test -n "$ac_tool_prefix"; then
4491
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4492
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4493
echo "$as_me:4493: checking for $ac_word" >&5
4494
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4495
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4496
echo $ECHO_N "(cached) $ECHO_C" >&6
4498
if test -n "$DLLTOOL"; then
4499
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4501
ac_save_IFS=$IFS; IFS=$ac_path_separator
4503
for ac_dir in $ac_dummy; do
4505
test -z "$ac_dir" && ac_dir=.
4506
$as_executable_p "$ac_dir/$ac_word" || continue
4507
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4508
echo "$as_me:4508: found $ac_dir/$ac_word" >&5
4514
DLLTOOL=$ac_cv_prog_DLLTOOL
4515
if test -n "$DLLTOOL"; then
4516
echo "$as_me:4516: result: $DLLTOOL" >&5
4517
echo "${ECHO_T}$DLLTOOL" >&6
4519
echo "$as_me:4519: result: no" >&5
4520
echo "${ECHO_T}no" >&6
4524
if test -z "$ac_cv_prog_DLLTOOL"; then
4525
ac_ct_DLLTOOL=$DLLTOOL
4526
# Extract the first word of "dlltool", so it can be a program name with args.
4527
set dummy dlltool; ac_word=$2
4528
echo "$as_me:4528: checking for $ac_word" >&5
4529
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4531
echo $ECHO_N "(cached) $ECHO_C" >&6
4533
if test -n "$ac_ct_DLLTOOL"; then
4534
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4536
ac_save_IFS=$IFS; IFS=$ac_path_separator
4538
for ac_dir in $ac_dummy; do
4540
test -z "$ac_dir" && ac_dir=.
4541
$as_executable_p "$ac_dir/$ac_word" || continue
4542
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4543
echo "$as_me:4543: found $ac_dir/$ac_word" >&5
4547
test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4550
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4551
if test -n "$ac_ct_DLLTOOL"; then
4552
echo "$as_me:4552: result: $ac_ct_DLLTOOL" >&5
4553
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4555
echo "$as_me:4555: result: no" >&5
4556
echo "${ECHO_T}no" >&6
4559
DLLTOOL=$ac_ct_DLLTOOL
4561
DLLTOOL="$ac_cv_prog_DLLTOOL"
4564
if test -n "$ac_tool_prefix"; then
4565
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4566
set dummy ${ac_tool_prefix}as; ac_word=$2
4567
echo "$as_me:4567: checking for $ac_word" >&5
4568
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4569
if test "${ac_cv_prog_AS+set}" = set; then
4570
echo $ECHO_N "(cached) $ECHO_C" >&6
4572
if test -n "$AS"; then
4573
ac_cv_prog_AS="$AS" # Let the user override the test.
4575
ac_save_IFS=$IFS; IFS=$ac_path_separator
4577
for ac_dir in $ac_dummy; do
4579
test -z "$ac_dir" && ac_dir=.
4580
$as_executable_p "$ac_dir/$ac_word" || continue
4581
ac_cv_prog_AS="${ac_tool_prefix}as"
4582
echo "$as_me:4582: found $ac_dir/$ac_word" >&5
4589
if test -n "$AS"; then
4590
echo "$as_me:4590: result: $AS" >&5
4591
echo "${ECHO_T}$AS" >&6
4593
echo "$as_me:4593: result: no" >&5
4594
echo "${ECHO_T}no" >&6
4598
if test -z "$ac_cv_prog_AS"; then
4600
# Extract the first word of "as", so it can be a program name with args.
4601
set dummy as; ac_word=$2
4602
echo "$as_me:4602: checking for $ac_word" >&5
4603
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4604
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4605
echo $ECHO_N "(cached) $ECHO_C" >&6
4607
if test -n "$ac_ct_AS"; then
4608
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4610
ac_save_IFS=$IFS; IFS=$ac_path_separator
4612
for ac_dir in $ac_dummy; do
4614
test -z "$ac_dir" && ac_dir=.
4615
$as_executable_p "$ac_dir/$ac_word" || continue
4616
ac_cv_prog_ac_ct_AS="as"
4617
echo "$as_me:4617: found $ac_dir/$ac_word" >&5
4621
test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4624
ac_ct_AS=$ac_cv_prog_ac_ct_AS
4625
if test -n "$ac_ct_AS"; then
4626
echo "$as_me:4626: result: $ac_ct_AS" >&5
4627
echo "${ECHO_T}$ac_ct_AS" >&6
4629
echo "$as_me:4629: result: no" >&5
4630
echo "${ECHO_T}no" >&6
4638
if test -n "$ac_tool_prefix"; then
4639
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4640
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4641
echo "$as_me:4641: checking for $ac_word" >&5
4642
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4643
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4644
echo $ECHO_N "(cached) $ECHO_C" >&6
4646
if test -n "$OBJDUMP"; then
4647
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4649
ac_save_IFS=$IFS; IFS=$ac_path_separator
4651
for ac_dir in $ac_dummy; do
4653
test -z "$ac_dir" && ac_dir=.
4654
$as_executable_p "$ac_dir/$ac_word" || continue
4655
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4656
echo "$as_me:4656: found $ac_dir/$ac_word" >&5
4662
OBJDUMP=$ac_cv_prog_OBJDUMP
4663
if test -n "$OBJDUMP"; then
4664
echo "$as_me:4664: result: $OBJDUMP" >&5
4665
echo "${ECHO_T}$OBJDUMP" >&6
4667
echo "$as_me:4667: result: no" >&5
4668
echo "${ECHO_T}no" >&6
4672
if test -z "$ac_cv_prog_OBJDUMP"; then
4673
ac_ct_OBJDUMP=$OBJDUMP
4674
# Extract the first word of "objdump", so it can be a program name with args.
4675
set dummy objdump; ac_word=$2
4676
echo "$as_me:4676: checking for $ac_word" >&5
4677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4678
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4679
echo $ECHO_N "(cached) $ECHO_C" >&6
4681
if test -n "$ac_ct_OBJDUMP"; then
4682
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4684
ac_save_IFS=$IFS; IFS=$ac_path_separator
4686
for ac_dir in $ac_dummy; do
4688
test -z "$ac_dir" && ac_dir=.
4689
$as_executable_p "$ac_dir/$ac_word" || continue
4690
ac_cv_prog_ac_ct_OBJDUMP="objdump"
4691
echo "$as_me:4691: found $ac_dir/$ac_word" >&5
4695
test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4698
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4699
if test -n "$ac_ct_OBJDUMP"; then
4700
echo "$as_me:4700: result: $ac_ct_OBJDUMP" >&5
4701
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4703
echo "$as_me:4703: result: no" >&5
4704
echo "${ECHO_T}no" >&6
4707
OBJDUMP=$ac_ct_OBJDUMP
4709
OBJDUMP="$ac_cv_prog_OBJDUMP"
4712
# recent cygwin and mingw systems supply a stub DllMain which the user
4713
# can override, but on older systems we have to supply one
4714
echo "$as_me:4714: checking if libtool should supply DllMain function" >&5
4715
echo $ECHO_N "checking if libtool should supply DllMain function... $ECHO_C" >&6
4716
if test "${lt_cv_need_dllmain+set}" = set; then
4717
echo $ECHO_N "(cached) $ECHO_C" >&6
4719
cat >conftest.$ac_ext <<_ACEOF
4720
#line 4720 "configure"
4721
#include "confdefs.h"
4726
extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4732
rm -f conftest.$ac_objext conftest$ac_exeext
4733
if { (eval echo "$as_me:4733: \"$ac_link\"") >&5
4734
(eval $ac_link) 2>&5
4736
echo "$as_me:4736: \$? = $ac_status" >&5
4737
(exit $ac_status); } &&
4738
{ ac_try='test -s conftest$ac_exeext'
4739
{ (eval echo "$as_me:4739: \"$ac_try\"") >&5
4742
echo "$as_me:4742: \$? = $ac_status" >&5
4743
(exit $ac_status); }; }; then
4744
lt_cv_need_dllmain=no
4746
echo "$as_me: failed program was:" >&5
4747
cat conftest.$ac_ext >&5
4748
lt_cv_need_dllmain=yes
4750
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4752
echo "$as_me:4752: result: $lt_cv_need_dllmain" >&5
4753
echo "${ECHO_T}$lt_cv_need_dllmain" >&6
4756
*-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4757
# old mingw systems require "-dll" to link a DLL, while more recent ones
4759
SAVE_CFLAGS="$CFLAGS"
4760
CFLAGS="$CFLAGS -mdll"
4761
echo "$as_me:4761: checking how to link DLLs" >&5
4762
echo $ECHO_N "checking how to link DLLs... $ECHO_C" >&6
4763
if test "${lt_cv_cc_dll_switch+set}" = set; then
4764
echo $ECHO_N "(cached) $ECHO_C" >&6
4766
cat >conftest.$ac_ext <<_ACEOF
4767
#line 4767 "configure"
4768
#include "confdefs.h"
4778
rm -f conftest.$ac_objext conftest$ac_exeext
4779
if { (eval echo "$as_me:4779: \"$ac_link\"") >&5
4780
(eval $ac_link) 2>&5
4782
echo "$as_me:4782: \$? = $ac_status" >&5
4783
(exit $ac_status); } &&
4784
{ ac_try='test -s conftest$ac_exeext'
4785
{ (eval echo "$as_me:4785: \"$ac_try\"") >&5
4788
echo "$as_me:4788: \$? = $ac_status" >&5
4789
(exit $ac_status); }; }; then
4790
lt_cv_cc_dll_switch=-mdll
4792
echo "$as_me: failed program was:" >&5
4793
cat conftest.$ac_ext >&5
4794
lt_cv_cc_dll_switch=-dll
4796
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4798
echo "$as_me:4798: result: $lt_cv_cc_dll_switch" >&5
4799
echo "${ECHO_T}$lt_cv_cc_dll_switch" >&6
4800
CFLAGS="$SAVE_CFLAGS" ;;
4801
*-*-cygwin* | *-*-pw32*)
4802
# cygwin systems need to pass --dll to the linker, and not link
4803
# crt.o which will require a WinMain@16 definition.
4804
lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4810
# Sed substitution that helps us do robust quoting. It backslashifies
4811
# metacharacters that are still active within double-quoted strings.
4812
Xsed='sed -e s/^X//'
4813
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4815
# Same as above, but do not quote variable references.
4816
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4818
# Sed substitution to delay expansion of an escaped shell variable in a
4819
# double_quote_subst'ed string.
4820
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4826
default_ofile=libtool
4827
can_build_shared=yes
4829
# All known linkers require a `.a' archive for static linking (except M$VC,
4830
# which needs '.lib').
4832
ltmain="$ac_aux_dir/ltmain.sh"
4833
ofile="$default_ofile"
4834
with_gnu_ld="$lt_cv_prog_gnu_ld"
4835
need_locks="$enable_libtool_lock"
4838
old_CFLAGS="$CFLAGS"
4840
# Set sane defaults for various variables
4841
test -z "$AR" && AR=ar
4842
test -z "$AR_FLAGS" && AR_FLAGS=cru
4843
test -z "$AS" && AS=as
4844
test -z "$CC" && CC=cc
4845
test -z "$DLLTOOL" && DLLTOOL=dlltool
4846
test -z "$LD" && LD=ld
4847
test -z "$LN_S" && LN_S="ln -s"
4848
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4849
test -z "$NM" && NM=nm
4850
test -z "$OBJDUMP" && OBJDUMP=objdump
4851
test -z "$RANLIB" && RANLIB=:
4852
test -z "$STRIP" && STRIP=:
4853
test -z "$ac_objext" && ac_objext=o
4855
if test x"$host" != x"$build"; then
4856
ac_tool_prefix=${host_alias}-
4861
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4864
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4869
# AIX sometimes has problems with the GCC collect2 program. For some
4870
# reason, if we set the COLLECT_NAMES environment variable, the problems
4871
# vanish in a puff of smoke.
4872
if test "X${COLLECT_NAMES+set}" != Xset; then
4874
export COLLECT_NAMES
4879
# Determine commands to create old-style static archives.
4880
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4881
old_postinstall_cmds='chmod 644 $oldlib'
4882
old_postuninstall_cmds=
4884
if test -n "$RANLIB"; then
4887
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4890
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4893
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4896
# Allow CC to be a program name with arguments.
4900
echo "$as_me:4900: checking for objdir" >&5
4901
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4902
rm -f .libs 2>/dev/null
4903
mkdir .libs 2>/dev/null
4904
if test -d .libs; then
4907
# MS-DOS does not allow filenames that begin with a dot.
4910
rmdir .libs 2>/dev/null
4911
echo "$as_me:4911: result: $objdir" >&5
4912
echo "${ECHO_T}$objdir" >&6
4914
# Check whether --with-pic or --without-pic was given.
4915
if test "${with_pic+set}" = set; then
4921
test -z "$pic_mode" && pic_mode=default
4923
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4924
# in isolation, and that seeing it set (from the cache) indicates that
4925
# the associated values are set (in the cache) correctly too.
4926
echo "$as_me:4926: checking for $compiler option to produce PIC" >&5
4927
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4928
if test "${lt_cv_prog_cc_pic+set}" = set; then
4929
echo $ECHO_N "(cached) $ECHO_C" >&6
4932
lt_cv_prog_cc_shlib=
4934
lt_cv_prog_cc_static=
4935
lt_cv_prog_cc_no_builtin=
4936
lt_cv_prog_cc_can_build_shared=$can_build_shared
4938
if test "$GCC" = yes; then
4939
lt_cv_prog_cc_wl='-Wl,'
4940
lt_cv_prog_cc_static='-static'
4944
# Below there is a dirty hack to force normal static linking with -ldl
4945
# The problem is because libdl dynamically linked with both libc and
4946
# libC (AIX C++ library), which obviously doesn't included in libraries
4947
# list by gcc. This cause undefined symbols with -static flags.
4948
# This hack allows C programs to be linked with "-static -ldl", but
4949
# not sure about C++ programs.
4950
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4953
# FIXME: we need at least 68020 code to build shared libraries, but
4954
# adding the `-m68020' flag to GCC prevents building anything better,
4956
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4958
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4959
# PIC is the default for these OSes.
4961
darwin* | rhapsody*)
4962
# PIC is the default on this platform
4963
# Common symbols not allowed in MH_DYLIB files
4964
lt_cv_prog_cc_pic='-fno-common'
4966
cygwin* | mingw* | pw32* | os2*)
4967
# This hack is so that the source file can tell whether it is being
4968
# built for inclusion in a dll (and should export symbols for example).
4969
lt_cv_prog_cc_pic='-DDLL_EXPORT'
4972
if test -d /usr/nec; then
4973
lt_cv_prog_cc_pic=-Kconform_pic
4977
lt_cv_prog_cc_pic='-fPIC'
4981
# PORTME Check for PIC flags for the system compiler.
4983
aix3* | aix4* | aix5*)
4984
lt_cv_prog_cc_wl='-Wl,'
4985
# All AIX code is PIC.
4986
if test "$host_cpu" = ia64; then
4987
# AIX 5 now supports IA64 processor
4988
lt_cv_prog_cc_static='-Bstatic'
4990
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4994
hpux9* | hpux10* | hpux11*)
4995
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4996
lt_cv_prog_cc_wl='-Wl,'
4997
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4998
lt_cv_prog_cc_pic='+Z'
5002
lt_cv_prog_cc_wl='-Wl,'
5003
lt_cv_prog_cc_static='-non_shared'
5004
# PIC (with -KPIC) is the default.
5007
cygwin* | mingw* | pw32* | os2*)
5008
# This hack is so that the source file can tell whether it is being
5009
# built for inclusion in a dll (and should export symbols for example).
5010
lt_cv_prog_cc_pic='-DDLL_EXPORT'
5014
lt_cv_prog_cc_pic='-KPIC'
5015
lt_cv_prog_cc_static='-Bstatic'
5018
osf3* | osf4* | osf5*)
5019
# All OSF/1 code is PIC.
5020
lt_cv_prog_cc_wl='-Wl,'
5021
lt_cv_prog_cc_static='-non_shared'
5025
lt_cv_prog_cc_pic='-Kpic'
5026
lt_cv_prog_cc_static='-dn'
5027
lt_cv_prog_cc_shlib='-belf'
5031
lt_cv_prog_cc_pic='-KPIC'
5032
lt_cv_prog_cc_static='-Bstatic'
5033
lt_cv_prog_cc_wl='-Wl,'
5037
lt_cv_prog_cc_pic='-PIC'
5038
lt_cv_prog_cc_static='-Bstatic'
5039
lt_cv_prog_cc_wl='-Qoption ld '
5042
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5043
lt_cv_prog_cc_pic='-KPIC'
5044
lt_cv_prog_cc_static='-Bstatic'
5045
if test "x$host_vendor" = xsni; then
5046
lt_cv_prog_cc_wl='-LD'
5048
lt_cv_prog_cc_wl='-Wl,'
5053
lt_cv_prog_cc_pic='-pic'
5054
lt_cv_prog_cc_static='-Bstatic'
5058
if test -d /usr/nec ;then
5059
lt_cv_prog_cc_pic='-Kconform_pic'
5060
lt_cv_prog_cc_static='-Bstatic'
5065
lt_cv_prog_cc_can_build_shared=no
5072
if test -z "$lt_cv_prog_cc_pic"; then
5073
echo "$as_me:5073: result: none" >&5
5074
echo "${ECHO_T}none" >&6
5076
echo "$as_me:5076: result: $lt_cv_prog_cc_pic" >&5
5077
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5079
# Check to make sure the pic_flag actually works.
5080
echo "$as_me:5080: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5081
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5082
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5083
echo $ECHO_N "(cached) $ECHO_C" >&6
5085
save_CFLAGS="$CFLAGS"
5086
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5087
cat >conftest.$ac_ext <<_ACEOF
5088
#line 5088 "configure"
5089
#include "confdefs.h"
5099
rm -f conftest.$ac_objext
5100
if { (eval echo "$as_me:5100: \"$ac_compile\"") >&5
5101
(eval $ac_compile) 2>&5
5103
echo "$as_me:5103: \$? = $ac_status" >&5
5104
(exit $ac_status); } &&
5105
{ ac_try='test -s conftest.$ac_objext'
5106
{ (eval echo "$as_me:5106: \"$ac_try\"") >&5
5109
echo "$as_me:5109: \$? = $ac_status" >&5
5110
(exit $ac_status); }; }; then
5112
hpux9* | hpux10* | hpux11*)
5113
# On HP-UX, both CC and GCC only warn that PIC is supported... then
5114
# they create non-PIC objects. So, if there were any warnings, we
5115
# assume that PIC is not supported.
5116
if test -s conftest.err; then
5117
lt_cv_prog_cc_pic_works=no
5119
lt_cv_prog_cc_pic_works=yes
5123
lt_cv_prog_cc_pic_works=yes
5128
echo "$as_me: failed program was:" >&5
5129
cat conftest.$ac_ext >&5
5130
lt_cv_prog_cc_pic_works=no
5133
rm -f conftest.$ac_objext conftest.$ac_ext
5134
CFLAGS="$save_CFLAGS"
5138
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5140
lt_cv_prog_cc_can_build_shared=no
5142
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5145
echo "$as_me:5145: result: $lt_cv_prog_cc_pic_works" >&5
5146
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5149
# Check for any special shared library compilation flags.
5150
if test -n "$lt_cv_prog_cc_shlib"; then
5151
{ echo "$as_me:5151: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5152
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5153
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5155
{ echo "$as_me:5155: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5156
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5157
lt_cv_prog_cc_can_build_shared=no
5161
echo "$as_me:5161: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5162
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5163
if test "${lt_cv_prog_cc_static_works+set}" = set; then
5164
echo $ECHO_N "(cached) $ECHO_C" >&6
5166
lt_cv_prog_cc_static_works=no
5167
save_LDFLAGS="$LDFLAGS"
5168
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5169
cat >conftest.$ac_ext <<_ACEOF
5170
#line 5170 "configure"
5171
#include "confdefs.h"
5181
rm -f conftest.$ac_objext conftest$ac_exeext
5182
if { (eval echo "$as_me:5182: \"$ac_link\"") >&5
5183
(eval $ac_link) 2>&5
5185
echo "$as_me:5185: \$? = $ac_status" >&5
5186
(exit $ac_status); } &&
5187
{ ac_try='test -s conftest$ac_exeext'
5188
{ (eval echo "$as_me:5188: \"$ac_try\"") >&5
5191
echo "$as_me:5191: \$? = $ac_status" >&5
5192
(exit $ac_status); }; }; then
5193
lt_cv_prog_cc_static_works=yes
5195
echo "$as_me: failed program was:" >&5
5196
cat conftest.$ac_ext >&5
5198
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5199
LDFLAGS="$save_LDFLAGS"
5203
# Belt *and* braces to stop my trousers falling down:
5204
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5205
echo "$as_me:5205: result: $lt_cv_prog_cc_static_works" >&5
5206
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5208
pic_flag="$lt_cv_prog_cc_pic"
5209
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5210
wl="$lt_cv_prog_cc_wl"
5211
link_static_flag="$lt_cv_prog_cc_static"
5212
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5213
can_build_shared="$lt_cv_prog_cc_can_build_shared"
5215
# Check to see if options -o and -c are simultaneously supported by compiler
5216
echo "$as_me:5216: checking if $compiler supports -c -o file.$ac_objext" >&5
5217
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5218
if test "${lt_cv_compiler_c_o+set}" = set; then
5219
echo $ECHO_N "(cached) $ECHO_C" >&6
5222
$rm -r conftest 2>/dev/null
5225
echo "int some_variable = 0;" > conftest.$ac_ext
5227
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5228
# that will create temporary files in the current directory regardless of
5229
# the output directory. Thus, making CWD read-only will cause this test
5230
# to fail, enabling locking or at least warning the user not to do parallel
5233
save_CFLAGS="$CFLAGS"
5234
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5236
if { (eval echo configure:5236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5237
# The compiler can only warn and ignore the option if not recognized
5238
# So say no if there are warnings
5239
if test -s out/conftest.err; then
5240
lt_cv_compiler_c_o=no
5242
lt_cv_compiler_c_o=yes
5245
# Append any errors to the config.log.
5246
cat out/conftest.err 1>&5
5247
lt_cv_compiler_c_o=no
5249
CFLAGS="$save_CFLAGS"
5255
$rm -r conftest 2>/dev/null
5259
compiler_c_o=$lt_cv_compiler_c_o
5260
echo "$as_me:5260: result: $compiler_c_o" >&5
5261
echo "${ECHO_T}$compiler_c_o" >&6
5263
if test x"$compiler_c_o" = x"yes"; then
5264
# Check to see if we can write to a .lo
5265
echo "$as_me:5265: checking if $compiler supports -c -o file.lo" >&5
5266
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5267
if test "${lt_cv_compiler_o_lo+set}" = set; then
5268
echo $ECHO_N "(cached) $ECHO_C" >&6
5271
lt_cv_compiler_o_lo=no
5272
save_CFLAGS="$CFLAGS"
5273
CFLAGS="$CFLAGS -c -o conftest.lo"
5274
save_objext="$ac_objext"
5276
cat >conftest.$ac_ext <<_ACEOF
5277
#line 5277 "configure"
5278
#include "confdefs.h"
5283
int some_variable = 0;
5288
rm -f conftest.$ac_objext
5289
if { (eval echo "$as_me:5289: \"$ac_compile\"") >&5
5290
(eval $ac_compile) 2>&5
5292
echo "$as_me:5292: \$? = $ac_status" >&5
5293
(exit $ac_status); } &&
5294
{ ac_try='test -s conftest.$ac_objext'
5295
{ (eval echo "$as_me:5295: \"$ac_try\"") >&5
5298
echo "$as_me:5298: \$? = $ac_status" >&5
5299
(exit $ac_status); }; }; then
5300
# The compiler can only warn and ignore the option if not recognized
5301
# So say no if there are warnings
5302
if test -s conftest.err; then
5303
lt_cv_compiler_o_lo=no
5305
lt_cv_compiler_o_lo=yes
5309
echo "$as_me: failed program was:" >&5
5310
cat conftest.$ac_ext >&5
5312
rm -f conftest.$ac_objext conftest.$ac_ext
5313
ac_objext="$save_objext"
5314
CFLAGS="$save_CFLAGS"
5318
compiler_o_lo=$lt_cv_compiler_o_lo
5319
echo "$as_me:5319: result: $compiler_o_lo" >&5
5320
echo "${ECHO_T}$compiler_o_lo" >&6
5325
# Check to see if we can do hard links to lock some files if needed
5326
hard_links="nottested"
5327
if test "$compiler_c_o" = no && test "$need_locks" != no; then
5328
# do not overwrite the value of need_locks provided by the user
5329
echo "$as_me:5329: checking if we can lock with hard links" >&5
5330
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5333
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5335
ln conftest.a conftest.b 2>&5 || hard_links=no
5336
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5337
echo "$as_me:5337: result: $hard_links" >&5
5338
echo "${ECHO_T}$hard_links" >&6
5339
if test "$hard_links" = no; then
5340
{ echo "$as_me:5340: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5341
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5348
if test "$GCC" = yes; then
5349
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5350
echo "$as_me:5350: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5351
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5352
echo "int some_variable = 0;" > conftest.$ac_ext
5353
save_CFLAGS="$CFLAGS"
5354
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5355
compiler_rtti_exceptions=no
5356
cat >conftest.$ac_ext <<_ACEOF
5357
#line 5357 "configure"
5358
#include "confdefs.h"
5363
int some_variable = 0;
5368
rm -f conftest.$ac_objext
5369
if { (eval echo "$as_me:5369: \"$ac_compile\"") >&5
5370
(eval $ac_compile) 2>&5
5372
echo "$as_me:5372: \$? = $ac_status" >&5
5373
(exit $ac_status); } &&
5374
{ ac_try='test -s conftest.$ac_objext'
5375
{ (eval echo "$as_me:5375: \"$ac_try\"") >&5
5378
echo "$as_me:5378: \$? = $ac_status" >&5
5379
(exit $ac_status); }; }; then
5380
# The compiler can only warn and ignore the option if not recognized
5381
# So say no if there are warnings
5382
if test -s conftest.err; then
5383
compiler_rtti_exceptions=no
5385
compiler_rtti_exceptions=yes
5389
echo "$as_me: failed program was:" >&5
5390
cat conftest.$ac_ext >&5
5392
rm -f conftest.$ac_objext conftest.$ac_ext
5393
CFLAGS="$save_CFLAGS"
5394
echo "$as_me:5394: result: $compiler_rtti_exceptions" >&5
5395
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5397
if test "$compiler_rtti_exceptions" = "yes"; then
5398
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5400
no_builtin_flag=' -fno-builtin'
5404
# See if the linker supports building shared libraries.
5405
echo "$as_me:5405: checking whether the linker ($LD) supports shared libraries" >&5
5406
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5408
allow_undefined_flag=
5410
need_lib_prefix=unknown
5411
need_version=unknown
5412
# when you set need_version to no, make sure it does not cause -set_version
5413
# flags to be left without arguments
5415
archive_expsym_cmds=
5416
old_archive_from_new_cmds=
5417
old_archive_from_expsyms_cmds=
5418
export_dynamic_flag_spec=
5419
whole_archive_flag_spec=
5420
thread_safe_flag_spec=
5421
hardcode_into_libs=no
5422
hardcode_libdir_flag_spec=
5423
hardcode_libdir_separator=
5426
hardcode_shlibpath_var=unsupported
5428
link_all_deplibs=unknown
5429
always_export_symbols=no
5430
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5431
# include_expsyms should be a list of space-separated symbols to be *always*
5432
# included in the symbol list
5434
# exclude_expsyms can be an egrep regular expression of symbols to exclude
5435
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5436
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5437
# as well as any symbol that contains `d'.
5438
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5439
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5440
# platforms (ab)use it in PIC code, but their linkers get confused if
5441
# the symbol is explicitly referenced. Since portable code cannot
5442
# rely on this symbol name, it's probably fine to never include it in
5443
# preloaded symbol tables.
5444
extract_expsyms_cmds=
5447
cygwin* | mingw* | pw32*)
5448
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5449
# When not using gcc, we currently assume that we are using
5450
# Microsoft Visual C++.
5451
if test "$GCC" != yes; then
5461
if test "$with_gnu_ld" = yes; then
5462
# If archive_cmds runs LD, not CC, wlarc should be empty
5465
# See if GNU ld supports shared libraries.
5467
aix3* | aix4* | aix5*)
5468
# On AIX, the GNU linker is very broken
5469
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5473
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5474
*** to be unable to reliably create shared libraries on AIX.
5475
*** Therefore, libtool is disabling shared libraries support. If you
5476
*** really care for shared libraries, you may want to modify your PATH
5477
*** so that a non-GNU linker is found, and then restart.
5483
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)'
5484
hardcode_libdir_flag_spec='-L$libdir'
5485
hardcode_minus_L=yes
5487
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5488
# that the semantics of dynamic libraries on AmigaOS, at least up
5489
# to version 4, is to share data among multiple programs linked
5490
# with the same dynamic library. Since this doesn't match the
5491
# behavior of shared libraries on other platforms, we can use
5497
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5498
allow_undefined_flag=unsupported
5499
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5500
# support --undefined. This deserves some investigation. FIXME
5501
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5507
cygwin* | mingw* | pw32*)
5508
# hardcode_libdir_flag_spec is actually meaningless, as there is
5509
# no search path for DLLs.
5510
hardcode_libdir_flag_spec='-L$libdir'
5511
allow_undefined_flag=unsupported
5512
always_export_symbols=yes
5514
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5515
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5516
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5517
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5518
else $CC -o impgen impgen.c ; fi)~
5519
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5521
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5523
# cygwin and mingw dlls have different entry points and sets of symbols
5525
# FIXME: what about values for MSVC?
5526
dll_entry=__cygwin_dll_entry@12
5527
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5531
dll_entry=_DllMainCRTStartup@12
5532
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5536
# mingw and cygwin differ, and it's simplest to just exclude the union
5537
# of the two symbol sets.
5538
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5540
# recent cygwin and mingw systems supply a stub DllMain which the user
5541
# can override, but on older systems we have to supply one (in ltdll.c)
5542
if test "x$lt_cv_need_dllmain" = "xyes"; then
5543
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5544
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5545
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5551
# Extract the symbol export list from an `--export-all' def file,
5552
# then regenerate the def file from the symbol export list, so that
5553
# the compiled dll only exports the symbol export list.
5554
# Be careful not to strip the DATA tag left be newer dlltools.
5555
export_symbols_cmds="$ltdll_cmds"'
5556
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5557
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5559
# If the export-symbols file already is a .def file (1st line
5560
# is EXPORTS), use it as is.
5561
# If DATA tags from a recent dlltool are present, honour them!
5562
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5563
cp $export_symbols $output_objdir/$soname-def;
5565
echo EXPORTS > $output_objdir/$soname-def;
5567
cat $export_symbols | while read symbol; do
5570
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5571
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5573
_lt_hint=`expr 1 + \$_lt_hint`;
5577
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5578
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5579
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5580
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5581
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5585
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5586
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5589
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5590
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5595
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5599
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5600
*** create shared libraries on Solaris systems. Therefore, libtool
5601
*** is disabling shared libraries support. We urge you to upgrade GNU
5602
*** binutils to release 2.9.1 or newer. Another option is to modify
5603
*** your PATH or compiler configuration so that the native linker is
5604
*** used, and then restart.
5607
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5608
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5609
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5616
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5619
hardcode_shlibpath_var=no
5623
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5624
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5625
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5632
if test "$ld_shlibs" = yes; then
5633
runpath_var=LD_RUN_PATH
5634
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5635
export_dynamic_flag_spec='${wl}--export-dynamic'
5637
cygwin* | mingw* | pw32*)
5638
# dlltool doesn't understand --whole-archive et. al.
5639
whole_archive_flag_spec=
5642
# ancient GNU ld didn't support --whole-archive et. al.
5643
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5644
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5646
whole_archive_flag_spec=
5652
# PORTME fill in a description of your system's linker (not GNU ld)
5655
allow_undefined_flag=unsupported
5656
always_export_symbols=yes
5657
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'
5658
# Note: this linker hardcodes the directories in LIBPATH if there
5659
# are no directories specified by -L.
5660
hardcode_minus_L=yes
5661
if test "$GCC" = yes && test -z "$link_static_flag"; then
5662
# Neither direct hardcoding nor static linking is supported with a
5664
hardcode_direct=unsupported
5669
if test "$host_cpu" = ia64; then
5670
# On IA64, the linker does run time linking by default, so we don't
5671
# have to do anything special.
5672
aix_use_runtimelinking=no
5673
exp_sym_flag='-Bexport'
5676
aix_use_runtimelinking=no
5678
# Test if we are trying to use run time linking or normal
5679
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5680
# need to do runtime linking.
5681
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5682
for ld_flag in $LDFLAGS; do
5683
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5684
aix_use_runtimelinking=yes
5690
exp_sym_flag='-bexport'
5691
no_entry_flag='-bnoentry'
5694
# When large executables or shared objects are built, AIX ld can
5695
# have problems creating the table of contents. If linking a library
5696
# or program results in "error TOC overflow" add -mminimal-toc to
5697
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5698
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5702
hardcode_libdir_separator=':'
5703
if test "$GCC" = yes; then
5704
case $host_os in aix4.[012]|aix4.[012].*)
5705
collect2name=`${CC} -print-prog-name=collect2`
5706
if test -f "$collect2name" && \
5707
strings "$collect2name" | grep resolve_lib_name >/dev/null
5709
# We have reworked collect2
5712
# We have old collect2
5713
hardcode_direct=unsupported
5714
# It fails to find uninstalled libraries when the uninstalled
5715
# path is not listed in the libpath. Setting hardcode_minus_L
5716
# to unsupported forces relinking
5717
hardcode_minus_L=yes
5718
hardcode_libdir_flag_spec='-L$libdir'
5719
hardcode_libdir_separator=
5723
shared_flag='-shared'
5726
if test "$host_cpu" = ia64; then
5727
shared_flag='${wl}-G'
5729
if test "$aix_use_runtimelinking" = yes; then
5730
shared_flag='${wl}-G'
5732
shared_flag='${wl}-bM:SRE'
5737
# It seems that -bexpall can do strange things, so it is better to
5738
# generate a list of symbols to export.
5739
always_export_symbols=yes
5740
if test "$aix_use_runtimelinking" = yes; then
5741
# Warning - without using the other runtime loading flags (-brtl),
5742
# -berok will link without error, but may produce a broken library.
5743
allow_undefined_flag='-berok'
5744
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5745
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"
5747
if test "$host_cpu" = ia64; then
5748
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5749
allow_undefined_flag="-z nodefs"
5750
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5752
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5753
# Warning - without using the other run time loading flags,
5754
# -berok will link without error, but may produce a broken library.
5755
allow_undefined_flag='${wl}-berok'
5756
# This is a bit strange, but is similar to how AIX traditionally builds
5757
# it's shared libraries.
5758
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5764
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)'
5765
hardcode_libdir_flag_spec='-L$libdir'
5766
hardcode_minus_L=yes
5767
# see comment about different semantics on the GNU ld section
5771
cygwin* | mingw* | pw32*)
5772
# When not using gcc, we currently assume that we are using
5773
# Microsoft Visual C++.
5774
# hardcode_libdir_flag_spec is actually meaningless, as there is
5775
# no search path for DLLs.
5776
hardcode_libdir_flag_spec=' '
5777
allow_undefined_flag=unsupported
5778
# Tell ltmain to make .lib files, not .a files.
5780
# FIXME: Setting linknames here is a bad hack.
5781
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5782
# The linker will automatically build a .lib file if we build a DLL.
5783
old_archive_from_new_cmds='true'
5784
# FIXME: Should let the user specify the lib program.
5785
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5786
fix_srcfile_path='`cygpath -w "$srcfile"`'
5789
darwin* | rhapsody*)
5791
rhapsody* | darwin1.[012])
5792
allow_undefined_flag='-undefined suppress'
5795
allow_undefined_flag='-flat_namespace -undefined suppress'
5798
# FIXME: Relying on posixy $() will cause problems for
5799
# cross-compilation, but unfortunately the echo tests do not
5800
# yet detect zsh echo's removal of \ escapes.
5801
archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5802
# We need to add '_' to the symbols in $export_symbols first
5803
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5805
hardcode_shlibpath_var=no
5806
whole_archive_flag_spec='-all_load $convenience'
5813
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5814
# support. Future versions do this automatically, but an explicit c++rt0.o
5815
# does not break anything, and helps significantly (at the cost of a little
5818
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5819
hardcode_libdir_flag_spec='-R$libdir'
5821
hardcode_shlibpath_var=no
5824
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5826
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5828
hardcode_minus_L=yes
5829
hardcode_shlibpath_var=no
5832
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5834
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5835
hardcode_libdir_flag_spec='-R$libdir'
5837
hardcode_shlibpath_var=no
5840
hpux9* | hpux10* | hpux11*)
5842
hpux9*) 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' ;;
5843
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5845
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5846
hardcode_libdir_separator=:
5848
hardcode_minus_L=yes # Not in the search PATH, but as the default
5849
# location of the library.
5850
export_dynamic_flag_spec='${wl}-E'
5854
if test "$GCC" = yes; then
5855
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'
5857
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'
5859
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5860
hardcode_libdir_separator=:
5861
link_all_deplibs=yes
5865
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5866
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5868
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5870
hardcode_libdir_flag_spec='-R$libdir'
5872
hardcode_shlibpath_var=no
5876
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5878
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5879
hardcode_libdir_separator=:
5880
hardcode_shlibpath_var=no
5885
hardcode_shlibpath_var=no
5886
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5887
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5888
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5889
export_dynamic_flag_spec='${wl}-E'
5892
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5893
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5894
hardcode_libdir_flag_spec='-R$libdir'
5897
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5898
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5905
hardcode_libdir_flag_spec='-L$libdir'
5906
hardcode_minus_L=yes
5907
allow_undefined_flag=unsupported
5908
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'
5909
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5913
if test "$GCC" = yes; then
5914
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5915
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'
5917
allow_undefined_flag=' -expect_unresolved \*'
5918
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'
5920
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5921
hardcode_libdir_separator=:
5924
osf4* | osf5*) # as osf3* with the addition of -msym flag
5925
if test "$GCC" = yes; then
5926
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5927
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'
5928
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5930
allow_undefined_flag=' -expect_unresolved \*'
5931
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'
5932
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5933
$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'
5935
#Both c and cxx compiler support -rpath directly
5936
hardcode_libdir_flag_spec='-rpath $libdir'
5938
hardcode_libdir_separator=:
5942
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5943
hardcode_shlibpath_var=no
5944
runpath_var=LD_RUN_PATH
5945
hardcode_runpath_var=yes
5946
export_dynamic_flag_spec='${wl}-Bexport'
5950
# gcc --version < 3.0 without binutils cannot create self contained
5951
# shared libraries reliably, requiring libgcc.a to resolve some of
5952
# the object symbols generated in some cases. Libraries that use
5953
# assert need libgcc.a to resolve __eprintf, for example. Linking
5954
# a copy of libgcc.a into every shared library to guarantee resolving
5955
# such symbols causes other problems: According to Tim Van Holder
5956
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5957
# (to the application) exception stack for one thing.
5958
no_undefined_flag=' -z defs'
5959
if test "$GCC" = yes; then
5960
case `$CC --version 2>/dev/null` in
5964
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5965
*** create self contained shared libraries on Solaris systems, without
5966
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5967
*** -no-undefined support, which will at least allow you to build shared
5968
*** libraries. However, you may find that when you link such libraries
5969
*** into an application without using GCC, you have to manually add
5970
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5971
*** upgrade to a newer version of GCC. Another option is to rebuild your
5972
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5979
# $CC -shared without GNU ld will not create a library from C++
5980
# object files and a static libstdc++, better avoid it by now
5981
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5982
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5983
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5984
hardcode_libdir_flag_spec='-R$libdir'
5985
hardcode_shlibpath_var=no
5987
solaris2.[0-5] | solaris2.[0-5].*) ;;
5988
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
5989
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5991
link_all_deplibs=yes
5995
if test "x$host_vendor" = xsequent; then
5996
# Use $CC to link under sequent, because it throws in some extra .o
5997
# files that make .init and .fini sections work.
5998
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6000
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6002
hardcode_libdir_flag_spec='-L$libdir'
6004
hardcode_minus_L=yes
6005
hardcode_shlibpath_var=no
6009
if test "x$host_vendor" = xsno; then
6010
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6011
hardcode_direct=yes # is this really true???
6013
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6014
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6016
runpath_var='LD_RUN_PATH'
6017
hardcode_shlibpath_var=no
6021
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6022
hardcode_shlibpath_var=no
6023
export_dynamic_flag_spec='-Bexport'
6027
no_undefined_flag=' -z text'
6028
# $CC -shared without GNU ld will not create a library from C++
6029
# object files and a static libstdc++, better avoid it by now
6030
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6031
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6032
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6033
hardcode_libdir_flag_spec=
6034
hardcode_shlibpath_var=no
6035
runpath_var='LD_RUN_PATH'
6039
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6040
hardcode_libdir_flag_spec='-L$libdir'
6041
hardcode_shlibpath_var=no
6045
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6046
hardcode_libdir_flag_spec='-L$libdir'
6047
hardcode_shlibpath_var=no
6051
if test -d /usr/nec; then
6052
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6053
hardcode_shlibpath_var=no
6054
runpath_var=LD_RUN_PATH
6055
hardcode_runpath_var=yes
6061
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6064
hardcode_shlibpath_var=no
6065
hardcode_runpath_var=yes
6066
runpath_var=LD_RUN_PATH
6069
sysv5uw7* | unixware7*)
6070
no_undefined_flag='${wl}-z ${wl}text'
6071
if test "$GCC" = yes; then
6072
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6074
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6076
runpath_var='LD_RUN_PATH'
6077
hardcode_shlibpath_var=no
6085
echo "$as_me:6085: result: $ld_shlibs" >&5
6086
echo "${ECHO_T}$ld_shlibs" >&6
6087
test "$ld_shlibs" = no && can_build_shared=no
6089
# Check hardcoding attributes.
6090
echo "$as_me:6090: checking how to hardcode library paths into programs" >&5
6091
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6093
if test -n "$hardcode_libdir_flag_spec" || \
6094
test -n "$runpath_var"; then
6096
# We can hardcode non-existant directories.
6097
if test "$hardcode_direct" != no &&
6098
# If the only mechanism to avoid hardcoding is shlibpath_var, we
6099
# have to relink, otherwise we might link with an installed library
6100
# when we should be linking with a yet-to-be-installed one
6101
## test "$hardcode_shlibpath_var" != no &&
6102
test "$hardcode_minus_L" != no; then
6103
# Linking always hardcodes the temporary library directory.
6104
hardcode_action=relink
6106
# We can link without hardcoding, and we can hardcode nonexisting dirs.
6107
hardcode_action=immediate
6110
# We cannot hardcode anything, or else we can only hardcode existing
6112
hardcode_action=unsupported
6114
echo "$as_me:6114: result: $hardcode_action" >&5
6115
echo "${ECHO_T}$hardcode_action" >&6
6119
echo "$as_me:6119: checking whether stripping libraries is possible" >&5
6120
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6121
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6122
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6123
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6124
echo "$as_me:6124: result: yes" >&5
6125
echo "${ECHO_T}yes" >&6
6127
echo "$as_me:6127: result: no" >&5
6128
echo "${ECHO_T}no" >&6
6131
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6132
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6134
# PORTME Fill in your ld.so characteristics
6135
echo "$as_me:6135: checking dynamic linker characteristics" >&5
6136
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6138
libname_spec='lib$name'
6145
shlibpath_overrides_runpath=unknown
6147
dynamic_linker="$host_os ld.so"
6148
sys_lib_dlsearch_path_spec="/lib /usr/lib"
6149
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6154
library_names_spec='${libname}${release}.so$versuffix $libname.a'
6155
shlibpath_var=LIBPATH
6157
# AIX has no versioning support, so we append a major version to the name.
6158
soname_spec='${libname}${release}.so$major'
6163
if test "$host_cpu" = ia64; then
6164
# AIX 5 supports IA64
6165
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6166
shlibpath_var=LD_LIBRARY_PATH
6168
# With GCC up to 2.95.x, collect2 would create an import file
6169
# for dependence libraries. The import file would start with
6170
# the line `#! .'. This would cause the generated library to
6171
# depend on `.', always an invalid library. This was fixed in
6172
# development snapshots of GCC prior to 3.0.
6174
aix4 | aix4.[01] | aix4.[01].*)
6175
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6177
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6184
# AIX (on Power*) has no versioning support, so currently we can
6185
# not hardcode correct soname into executable. Probably we can
6186
# add versioning support to collect2, so additional links can
6187
# be useful in future.
6188
if test "$aix_use_runtimelinking" = yes; then
6189
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
6190
# instead of lib<name>.a to let people know that these are not
6191
# typical AIX shared libraries.
6192
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6194
# We preserve .a as extension for shared libraries through AIX4.2
6195
# and later when we are not doing run time linking.
6196
library_names_spec='${libname}${release}.a $libname.a'
6197
soname_spec='${libname}${release}.so$major'
6199
shlibpath_var=LIBPATH
6204
library_names_spec='$libname.ixlibrary $libname.a'
6205
# Create ${libname}_ixlibrary.a entries in /sys/libs.
6206
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'
6210
library_names_spec='${libname}.so'
6211
dynamic_linker="$host_os ld.so"
6212
shlibpath_var=LIBRARY_PATH
6218
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6219
soname_spec='${libname}${release}.so$major'
6220
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6221
shlibpath_var=LD_LIBRARY_PATH
6222
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6223
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6224
export_dynamic_flag_spec=-rdynamic
6225
# the default ld.so.conf also contains /usr/contrib/lib and
6226
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6227
# libtool to hard-code these into programs
6230
cygwin* | mingw* | pw32*)
6231
version_type=windows
6234
case $GCC,$host_os in
6236
library_names_spec='$libname.dll.a'
6237
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6238
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6239
dldir=$destdir/`dirname \$dlpath`~
6240
test -d \$dldir || mkdir -p \$dldir~
6241
$install_prog .libs/$dlname \$dldir/$dlname'
6242
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6243
dlpath=$dir/\$dldll~
6247
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6248
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6251
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6254
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6257
dynamic_linker='Win32 ld.exe'
6258
# FIXME: first we should search . and the directory the executable is in
6262
darwin* | rhapsody*)
6263
dynamic_linker="$host_os dyld"
6267
# FIXME: Relying on posixy $() will cause problems for
6268
# cross-compilation, but unfortunately the echo tests do not
6269
# yet detect zsh echo's removal of \ escapes.
6270
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6271
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6272
shlibpath_overrides_runpath=yes
6273
shlibpath_var=DYLD_LIBRARY_PATH
6281
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6282
version_type=freebsd-$objformat
6283
case $version_type in
6285
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6290
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6294
shlibpath_var=LD_LIBRARY_PATH
6297
shlibpath_overrides_runpath=yes
6300
shlibpath_overrides_runpath=no
6301
hardcode_into_libs=yes
6310
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6311
soname_spec='${libname}${release}.so$major'
6312
shlibpath_var=LD_LIBRARY_PATH
6313
hardcode_into_libs=yes
6316
hpux9* | hpux10* | hpux11*)
6317
# Give a soname corresponding to the major version so that dld.sl refuses to
6318
# link against other versions.
6319
dynamic_linker="$host_os dld.sl"
6323
shlibpath_var=SHLIB_PATH
6324
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6325
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6326
soname_spec='${libname}${release}.sl$major'
6327
# HP-UX runs *really* slowly unless shared libraries are mode 555.
6328
postinstall_cmds='chmod 555 $lib'
6335
soname_spec='${libname}${release}.so$major'
6336
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6342
case $LD in # libtool.m4 will add one of these switches to LD
6343
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6344
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6345
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6346
*) libsuff= shlibsuff= libmagic=never-match;;
6350
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6351
shlibpath_overrides_runpath=no
6352
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6353
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6356
# No shared lib support for Linux oldld, aout, or coff.
6357
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6361
# This must be Linux ELF.
6366
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6367
soname_spec='${libname}${release}.so$major'
6368
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6369
shlibpath_var=LD_LIBRARY_PATH
6370
shlibpath_overrides_runpath=no
6371
# This implies no fast_install, which is unacceptable.
6372
# Some rework will be needed to allow for fast_install
6373
# before this can be enabled.
6374
hardcode_into_libs=yes
6376
# We used to test for /lib/ld.so.1 and disable shared libraries on
6377
# powerpc, because MkLinux only supported shared libraries with the
6378
# GNU dynamic linker. Since this was broken with cross compilers,
6379
# most powerpc-linux boxes support dynamic linking these days and
6380
# people can always --disable-shared, the test was removed, and we
6381
# assume the GNU/Linux dynamic linker is in use.
6382
dynamic_linker='GNU/Linux ld.so'
6389
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6390
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6391
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6392
dynamic_linker='NetBSD (a.out) ld.so'
6394
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6395
soname_spec='${libname}${release}.so$major'
6396
dynamic_linker='NetBSD ld.elf_so'
6398
shlibpath_var=LD_LIBRARY_PATH
6399
shlibpath_overrides_runpath=yes
6400
hardcode_into_libs=yes
6405
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6406
shlibpath_var=LD_LIBRARY_PATH
6407
shlibpath_overrides_runpath=yes
6414
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6416
openbsd2.[89] | openbsd2.[89].*)
6417
shlibpath_overrides_runpath=no
6420
shlibpath_overrides_runpath=yes
6424
shlibpath_overrides_runpath=yes
6426
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6427
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6428
shlibpath_var=LD_LIBRARY_PATH
6432
libname_spec='$name'
6434
library_names_spec='$libname.dll $libname.a'
6435
dynamic_linker='OS/2 ld.exe'
6436
shlibpath_var=LIBPATH
6439
osf3* | osf4* | osf5*)
6442
soname_spec='${libname}${release}.so'
6443
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6444
shlibpath_var=LD_LIBRARY_PATH
6445
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6446
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6451
soname_spec='${libname}${release}.so$major'
6452
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6453
shlibpath_var=LD_LIBRARY_PATH
6460
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6461
soname_spec='${libname}${release}.so$major'
6462
shlibpath_var=LD_LIBRARY_PATH
6463
shlibpath_overrides_runpath=yes
6464
hardcode_into_libs=yes
6465
# ldd complains unless libraries are executable
6466
postinstall_cmds='chmod +x $lib'
6471
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6472
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6473
shlibpath_var=LD_LIBRARY_PATH
6474
shlibpath_overrides_runpath=yes
6475
if test "$with_gnu_ld" = yes; then
6481
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6483
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6484
soname_spec='${libname}${release}.so$major'
6485
shlibpath_var=LD_LIBRARY_PATH
6486
case $host_vendor in
6488
shlibpath_overrides_runpath=no
6493
shlibpath_overrides_runpath=no
6494
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6501
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6502
soname_spec='${libname}${release}.so$major'
6503
shlibpath_var=LD_LIBRARY_PATH
6510
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6511
soname_spec='${libname}${release}.so$major'
6512
shlibpath_var=LD_LIBRARY_PATH
6516
if test -d /usr/nec ;then
6518
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6519
soname_spec='$libname.so.$major'
6520
shlibpath_var=LD_LIBRARY_PATH
6528
echo "$as_me:6528: result: $dynamic_linker" >&5
6529
echo "${ECHO_T}$dynamic_linker" >&6
6530
test "$dynamic_linker" = no && can_build_shared=no
6532
# Report the final consequences.
6533
echo "$as_me:6533: checking if libtool supports shared libraries" >&5
6534
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6535
echo "$as_me:6535: result: $can_build_shared" >&5
6536
echo "${ECHO_T}$can_build_shared" >&6
6538
echo "$as_me:6538: checking whether to build shared libraries" >&5
6539
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6540
test "$can_build_shared" = "no" && enable_shared=no
6542
# On AIX, shared libraries and static libraries use the same namespace, and
6543
# are all built from PIC.
6546
test "$enable_shared" = yes && enable_static=no
6547
if test -n "$RANLIB"; then
6548
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6549
postinstall_cmds='$RANLIB $lib'
6554
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6555
test "$enable_shared" = yes && enable_static=no
6559
echo "$as_me:6559: result: $enable_shared" >&5
6560
echo "${ECHO_T}$enable_shared" >&6
6562
echo "$as_me:6562: checking whether to build static libraries" >&5
6563
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6564
# Make sure either enable_shared or enable_static is yes.
6565
test "$enable_shared" = yes || enable_static=yes
6566
echo "$as_me:6566: result: $enable_static" >&5
6567
echo "${ECHO_T}$enable_static" >&6
6569
if test "$hardcode_action" = relink; then
6570
# Fast installation is not supported
6571
enable_fast_install=no
6572
elif test "$shlibpath_overrides_runpath" = yes ||
6573
test "$enable_shared" = no; then
6574
# Fast installation is not necessary
6575
enable_fast_install=needless
6578
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6579
if test "$GCC" = yes; then
6580
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6583
if test "x$enable_dlopen" != xyes; then
6584
enable_dlopen=unknown
6585
enable_dlopen_self=unknown
6586
enable_dlopen_self_static=unknown
6593
lt_cv_dlopen="load_add_on"
6595
lt_cv_dlopen_self=yes
6598
cygwin* | mingw* | pw32*)
6599
lt_cv_dlopen="LoadLibrary"
6604
echo "$as_me:6604: checking for shl_load" >&5
6605
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6606
if test "${ac_cv_func_shl_load+set}" = set; then
6607
echo $ECHO_N "(cached) $ECHO_C" >&6
6609
cat >conftest.$ac_ext <<_ACEOF
6610
#line 6610 "configure"
6611
#include "confdefs.h"
6612
/* System header to define __stub macros and hopefully few prototypes,
6613
which can conflict with char shl_load (); below. */
6615
/* Override any gcc2 internal prototype to avoid an error. */
6619
/* We use char because int might match the return type of a gcc2
6620
builtin and then its argument prototype would still apply. */
6627
/* The GNU C library defines this for functions which it implements
6628
to always fail with ENOSYS. Some functions are actually named
6629
something starting with __ and the normal name is an alias. */
6630
#if defined (__stub_shl_load) || defined (__stub___shl_load)
6640
rm -f conftest.$ac_objext conftest$ac_exeext
6641
if { (eval echo "$as_me:6641: \"$ac_link\"") >&5
6642
(eval $ac_link) 2>&5
6644
echo "$as_me:6644: \$? = $ac_status" >&5
6645
(exit $ac_status); } &&
6646
{ ac_try='test -s conftest$ac_exeext'
6647
{ (eval echo "$as_me:6647: \"$ac_try\"") >&5
6650
echo "$as_me:6650: \$? = $ac_status" >&5
6651
(exit $ac_status); }; }; then
6652
ac_cv_func_shl_load=yes
6654
echo "$as_me: failed program was:" >&5
6655
cat conftest.$ac_ext >&5
6656
ac_cv_func_shl_load=no
6658
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6660
echo "$as_me:6660: result: $ac_cv_func_shl_load" >&5
6661
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6662
if test $ac_cv_func_shl_load = yes; then
6663
lt_cv_dlopen="shl_load"
6665
echo "$as_me:6665: checking for shl_load in -ldld" >&5
6666
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6667
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6668
echo $ECHO_N "(cached) $ECHO_C" >&6
6670
ac_check_lib_save_LIBS=$LIBS
6672
cat >conftest.$ac_ext <<_ACEOF
6673
#line 6673 "configure"
6674
#include "confdefs.h"
6676
/* Override any gcc2 internal prototype to avoid an error. */
6680
/* We use char because int might match the return type of a gcc2
6681
builtin and then its argument prototype would still apply. */
6691
rm -f conftest.$ac_objext conftest$ac_exeext
6692
if { (eval echo "$as_me:6692: \"$ac_link\"") >&5
6693
(eval $ac_link) 2>&5
6695
echo "$as_me:6695: \$? = $ac_status" >&5
6696
(exit $ac_status); } &&
6697
{ ac_try='test -s conftest$ac_exeext'
6698
{ (eval echo "$as_me:6698: \"$ac_try\"") >&5
6701
echo "$as_me:6701: \$? = $ac_status" >&5
6702
(exit $ac_status); }; }; then
6703
ac_cv_lib_dld_shl_load=yes
6705
echo "$as_me: failed program was:" >&5
6706
cat conftest.$ac_ext >&5
6707
ac_cv_lib_dld_shl_load=no
6709
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6710
LIBS=$ac_check_lib_save_LIBS
6712
echo "$as_me:6712: result: $ac_cv_lib_dld_shl_load" >&5
6713
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6714
if test $ac_cv_lib_dld_shl_load = yes; then
6715
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6717
echo "$as_me:6717: checking for dlopen" >&5
6718
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6719
if test "${ac_cv_func_dlopen+set}" = set; then
6720
echo $ECHO_N "(cached) $ECHO_C" >&6
6722
cat >conftest.$ac_ext <<_ACEOF
6723
#line 6723 "configure"
6724
#include "confdefs.h"
6725
/* System header to define __stub macros and hopefully few prototypes,
6726
which can conflict with char dlopen (); below. */
6728
/* Override any gcc2 internal prototype to avoid an error. */
6732
/* We use char because int might match the return type of a gcc2
6733
builtin and then its argument prototype would still apply. */
6740
/* The GNU C library defines this for functions which it implements
6741
to always fail with ENOSYS. Some functions are actually named
6742
something starting with __ and the normal name is an alias. */
6743
#if defined (__stub_dlopen) || defined (__stub___dlopen)
6753
rm -f conftest.$ac_objext conftest$ac_exeext
6754
if { (eval echo "$as_me:6754: \"$ac_link\"") >&5
6755
(eval $ac_link) 2>&5
6757
echo "$as_me:6757: \$? = $ac_status" >&5
6758
(exit $ac_status); } &&
6759
{ ac_try='test -s conftest$ac_exeext'
6760
{ (eval echo "$as_me:6760: \"$ac_try\"") >&5
6763
echo "$as_me:6763: \$? = $ac_status" >&5
6764
(exit $ac_status); }; }; then
6765
ac_cv_func_dlopen=yes
6767
echo "$as_me: failed program was:" >&5
6768
cat conftest.$ac_ext >&5
6769
ac_cv_func_dlopen=no
6771
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6773
echo "$as_me:6773: result: $ac_cv_func_dlopen" >&5
6774
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6775
if test $ac_cv_func_dlopen = yes; then
6776
lt_cv_dlopen="dlopen"
6778
echo "$as_me:6778: checking for dlopen in -ldl" >&5
6779
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6780
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6781
echo $ECHO_N "(cached) $ECHO_C" >&6
6783
ac_check_lib_save_LIBS=$LIBS
6785
cat >conftest.$ac_ext <<_ACEOF
6786
#line 6786 "configure"
6787
#include "confdefs.h"
6789
/* Override any gcc2 internal prototype to avoid an error. */
6793
/* We use char because int might match the return type of a gcc2
6794
builtin and then its argument prototype would still apply. */
6804
rm -f conftest.$ac_objext conftest$ac_exeext
6805
if { (eval echo "$as_me:6805: \"$ac_link\"") >&5
6806
(eval $ac_link) 2>&5
6808
echo "$as_me:6808: \$? = $ac_status" >&5
6809
(exit $ac_status); } &&
6810
{ ac_try='test -s conftest$ac_exeext'
6811
{ (eval echo "$as_me:6811: \"$ac_try\"") >&5
6814
echo "$as_me:6814: \$? = $ac_status" >&5
6815
(exit $ac_status); }; }; then
6816
ac_cv_lib_dl_dlopen=yes
6818
echo "$as_me: failed program was:" >&5
6819
cat conftest.$ac_ext >&5
6820
ac_cv_lib_dl_dlopen=no
6822
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6823
LIBS=$ac_check_lib_save_LIBS
6825
echo "$as_me:6825: result: $ac_cv_lib_dl_dlopen" >&5
6826
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6827
if test $ac_cv_lib_dl_dlopen = yes; then
6828
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6830
echo "$as_me:6830: checking for dlopen in -lsvld" >&5
6831
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6832
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6833
echo $ECHO_N "(cached) $ECHO_C" >&6
6835
ac_check_lib_save_LIBS=$LIBS
6837
cat >conftest.$ac_ext <<_ACEOF
6838
#line 6838 "configure"
6839
#include "confdefs.h"
6841
/* Override any gcc2 internal prototype to avoid an error. */
6845
/* We use char because int might match the return type of a gcc2
6846
builtin and then its argument prototype would still apply. */
6856
rm -f conftest.$ac_objext conftest$ac_exeext
6857
if { (eval echo "$as_me:6857: \"$ac_link\"") >&5
6858
(eval $ac_link) 2>&5
6860
echo "$as_me:6860: \$? = $ac_status" >&5
6861
(exit $ac_status); } &&
6862
{ ac_try='test -s conftest$ac_exeext'
6863
{ (eval echo "$as_me:6863: \"$ac_try\"") >&5
6866
echo "$as_me:6866: \$? = $ac_status" >&5
6867
(exit $ac_status); }; }; then
6868
ac_cv_lib_svld_dlopen=yes
6870
echo "$as_me: failed program was:" >&5
6871
cat conftest.$ac_ext >&5
6872
ac_cv_lib_svld_dlopen=no
6874
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6875
LIBS=$ac_check_lib_save_LIBS
6877
echo "$as_me:6877: result: $ac_cv_lib_svld_dlopen" >&5
6878
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6879
if test $ac_cv_lib_svld_dlopen = yes; then
6880
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6882
echo "$as_me:6882: checking for dld_link in -ldld" >&5
6883
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6884
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6885
echo $ECHO_N "(cached) $ECHO_C" >&6
6887
ac_check_lib_save_LIBS=$LIBS
6889
cat >conftest.$ac_ext <<_ACEOF
6890
#line 6890 "configure"
6891
#include "confdefs.h"
6893
/* Override any gcc2 internal prototype to avoid an error. */
6897
/* We use char because int might match the return type of a gcc2
6898
builtin and then its argument prototype would still apply. */
6908
rm -f conftest.$ac_objext conftest$ac_exeext
6909
if { (eval echo "$as_me:6909: \"$ac_link\"") >&5
6910
(eval $ac_link) 2>&5
6912
echo "$as_me:6912: \$? = $ac_status" >&5
6913
(exit $ac_status); } &&
6914
{ ac_try='test -s conftest$ac_exeext'
6915
{ (eval echo "$as_me:6915: \"$ac_try\"") >&5
6918
echo "$as_me:6918: \$? = $ac_status" >&5
6919
(exit $ac_status); }; }; then
6920
ac_cv_lib_dld_dld_link=yes
6922
echo "$as_me: failed program was:" >&5
6923
cat conftest.$ac_ext >&5
6924
ac_cv_lib_dld_dld_link=no
6926
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6927
LIBS=$ac_check_lib_save_LIBS
6929
echo "$as_me:6929: result: $ac_cv_lib_dld_dld_link" >&5
6930
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6931
if test $ac_cv_lib_dld_dld_link = yes; then
6932
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6948
if test "x$lt_cv_dlopen" != xno; then
6954
case $lt_cv_dlopen in
6956
save_CPPFLAGS="$CPPFLAGS"
6957
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6959
save_LDFLAGS="$LDFLAGS"
6960
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6963
LIBS="$lt_cv_dlopen_libs $LIBS"
6965
echo "$as_me:6965: checking whether a program can dlopen itself" >&5
6966
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6967
if test "${lt_cv_dlopen_self+set}" = set; then
6968
echo $ECHO_N "(cached) $ECHO_C" >&6
6970
if test "$cross_compiling" = yes; then :
6971
lt_cv_dlopen_self=cross
6973
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6974
lt_status=$lt_dlunknown
6975
cat > conftest.$ac_ext <<EOF
6976
#line 6976 "configure"
6977
#include "confdefs.h"
6986
# define LT_DLGLOBAL RTLD_GLOBAL
6989
# define LT_DLGLOBAL DL_GLOBAL
6991
# define LT_DLGLOBAL 0
6995
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6996
find out it does not work in some platform. */
6997
#ifndef LT_DLLAZY_OR_NOW
6999
# define LT_DLLAZY_OR_NOW RTLD_LAZY
7002
# define LT_DLLAZY_OR_NOW DL_LAZY
7005
# define LT_DLLAZY_OR_NOW RTLD_NOW
7008
# define LT_DLLAZY_OR_NOW DL_NOW
7010
# define LT_DLLAZY_OR_NOW 0
7018
extern "C" void exit (int);
7021
void fnord() { int i=42;}
7024
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7025
int status = $lt_dlunknown;
7029
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7030
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7031
/* dlclose (self); */
7037
if { (eval echo "$as_me:7037: \"$ac_link\"") >&5
7038
(eval $ac_link) 2>&5
7040
echo "$as_me:7040: \$? = $ac_status" >&5
7041
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7042
(./conftest; exit; ) 2>/dev/null
7045
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7046
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7047
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7050
# compilation failed
7051
lt_cv_dlopen_self=no
7057
echo "$as_me:7057: result: $lt_cv_dlopen_self" >&5
7058
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7060
if test "x$lt_cv_dlopen_self" = xyes; then
7061
LDFLAGS="$LDFLAGS $link_static_flag"
7062
echo "$as_me:7062: checking whether a statically linked program can dlopen itself" >&5
7063
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7064
if test "${lt_cv_dlopen_self_static+set}" = set; then
7065
echo $ECHO_N "(cached) $ECHO_C" >&6
7067
if test "$cross_compiling" = yes; then :
7068
lt_cv_dlopen_self_static=cross
7070
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7071
lt_status=$lt_dlunknown
7072
cat > conftest.$ac_ext <<EOF
7073
#line 7073 "configure"
7074
#include "confdefs.h"
7083
# define LT_DLGLOBAL RTLD_GLOBAL
7086
# define LT_DLGLOBAL DL_GLOBAL
7088
# define LT_DLGLOBAL 0
7092
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7093
find out it does not work in some platform. */
7094
#ifndef LT_DLLAZY_OR_NOW
7096
# define LT_DLLAZY_OR_NOW RTLD_LAZY
7099
# define LT_DLLAZY_OR_NOW DL_LAZY
7102
# define LT_DLLAZY_OR_NOW RTLD_NOW
7105
# define LT_DLLAZY_OR_NOW DL_NOW
7107
# define LT_DLLAZY_OR_NOW 0
7115
extern "C" void exit (int);
7118
void fnord() { int i=42;}
7121
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7122
int status = $lt_dlunknown;
7126
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7127
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7128
/* dlclose (self); */
7134
if { (eval echo "$as_me:7134: \"$ac_link\"") >&5
7135
(eval $ac_link) 2>&5
7137
echo "$as_me:7137: \$? = $ac_status" >&5
7138
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7139
(./conftest; exit; ) 2>/dev/null
7142
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7143
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7144
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7147
# compilation failed
7148
lt_cv_dlopen_self_static=no
7154
echo "$as_me:7154: result: $lt_cv_dlopen_self_static" >&5
7155
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7158
CPPFLAGS="$save_CPPFLAGS"
7159
LDFLAGS="$save_LDFLAGS"
7164
case $lt_cv_dlopen_self in
7165
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7166
*) enable_dlopen_self=unknown ;;
7169
case $lt_cv_dlopen_self_static in
7170
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7171
*) enable_dlopen_self_static=unknown ;;
7175
if test "$enable_shared" = yes && test "$GCC" = yes; then
7176
case $archive_cmds in
7178
# FIXME: we may have to deal with multi-command sequences.
7181
# Test whether the compiler implicitly links with -lc since on some
7182
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7183
# to ld, don't add -lc before -lgcc.
7184
echo "$as_me:7184: checking whether -lc should be explicitly linked in" >&5
7185
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7186
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7187
echo $ECHO_N "(cached) $ECHO_C" >&6
7190
echo 'static int dummy;' > conftest.$ac_ext
7192
if { (eval echo "$as_me:7192: \"$ac_compile\"") >&5
7193
(eval $ac_compile) 2>&5
7195
echo "$as_me:7195: \$? = $ac_status" >&5
7196
(exit $ac_status); }; then
7199
libobjs=conftest.$ac_objext
7201
wl=$lt_cv_prog_cc_wl
7207
save_allow_undefined_flag=$allow_undefined_flag
7208
allow_undefined_flag=
7209
if { (eval echo "$as_me:7209: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7210
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7212
echo "$as_me:7212: \$? = $ac_status" >&5
7213
(exit $ac_status); }
7215
lt_cv_archive_cmds_need_lc=no
7217
lt_cv_archive_cmds_need_lc=yes
7219
allow_undefined_flag=$save_allow_undefined_flag
7221
cat conftest.err 1>&5
7225
echo "$as_me:7225: result: $lt_cv_archive_cmds_need_lc" >&5
7226
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7230
need_lc=${lt_cv_archive_cmds_need_lc-yes}
7232
# The second clause should only fire when bootstrapping the
7233
# libtool distribution, otherwise you forgot to ship ltmain.sh
7234
# with your package, and you will get complaints that there are
7235
# no rules to generate ltmain.sh.
7236
if test -f "$ltmain"; then
7239
# If there is no Makefile yet, we rely on a make rule to execute
7240
# `config.status --recheck' to rerun these tests and create the
7241
# libtool script then.
7242
test -f Makefile && make "$ltmain"
7245
if test -f "$ltmain"; then
7246
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7249
echo creating $ofile
7251
# Now quote all the things that may contain metacharacters while being
7252
# careful not to overquote the AC_SUBSTed values. We take copies of the
7253
# variables and quote the copies for generation of the libtool script.
7254
for var in echo old_CC old_CFLAGS \
7255
AR AR_FLAGS CC LD LN_S NM SHELL \
7256
reload_flag reload_cmds wl \
7257
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7258
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7259
library_names_spec soname_spec \
7260
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7261
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7262
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7263
old_striplib striplib file_magic_cmd export_symbols_cmds \
7264
deplibs_check_method allow_undefined_flag no_undefined_flag \
7265
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7266
global_symbol_to_c_name_address \
7267
hardcode_libdir_flag_spec hardcode_libdir_separator \
7268
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7269
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7272
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7273
old_postinstall_cmds | old_postuninstall_cmds | \
7274
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7275
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7276
postinstall_cmds | postuninstall_cmds | \
7277
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7278
# Double-quote double-evaled strings.
7279
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7282
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7287
cat <<__EOF__ > "${ofile}T"
7290
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7291
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7292
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7294
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7295
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7297
# This program is free software; you can redistribute it and/or modify
7298
# it under the terms of the GNU General Public License as published by
7299
# the Free Software Foundation; either version 2 of the License, or
7300
# (at your option) any later version.
7302
# This program is distributed in the hope that it will be useful, but
7303
# WITHOUT ANY WARRANTY; without even the implied warranty of
7304
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7305
# General Public License for more details.
7307
# You should have received a copy of the GNU General Public License
7308
# along with this program; if not, write to the Free Software
7309
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7311
# As a special exception to the GNU General Public License, if you
7312
# distribute this file as part of a program that contains a
7313
# configuration script generated by Autoconf, you may include it under
7314
# the same distribution terms that you use for the rest of that program.
7316
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7317
Xsed="sed -e s/^X//"
7319
# The HP-UX ksh and POSIX shell print the target directory to stdout
7321
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7323
# ### BEGIN LIBTOOL CONFIG
7325
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7327
# Shell to use when invoking shell scripts.
7330
# Whether or not to build shared libraries.
7331
build_libtool_libs=$enable_shared
7333
# Whether or not to build static libraries.
7334
build_old_libs=$enable_static
7336
# Whether or not to add -lc for building shared libraries.
7337
build_libtool_need_lc=$need_lc
7339
# Whether or not to optimize for fast installation.
7340
fast_install=$enable_fast_install
7343
host_alias=$host_alias
7346
# An echo program that does not interpret backslashes.
7351
AR_FLAGS=$lt_AR_FLAGS
7353
# The default C compiler.
7356
# Is the compiler the GNU C compiler?
7359
# The linker used to build libraries.
7362
# Whether we need hard or soft links.
7365
# A BSD-compatible nm program.
7368
# A symbol stripping program
7371
# Used to examine libraries when file_magic_cmd begins "file"
7372
MAGIC_CMD=$MAGIC_CMD
7374
# Used on cygwin: DLL creation program.
7377
# Used on cygwin: object dumper.
7380
# Used on cygwin: assembler.
7383
# The name of the directory that contains temporary libtool files.
7386
# How to create reloadable object files.
7387
reload_flag=$lt_reload_flag
7388
reload_cmds=$lt_reload_cmds
7390
# How to pass a linker flag through the compiler.
7393
# Object file suffix (normally "o").
7396
# Old archive suffix (normally "a").
7399
# Executable file suffix (normally "").
7402
# Additional compiler flags for building library objects.
7403
pic_flag=$lt_pic_flag
7406
# Does compiler simultaneously support -c and -o options?
7407
compiler_c_o=$lt_compiler_c_o
7409
# Can we write directly to a .lo ?
7410
compiler_o_lo=$lt_compiler_o_lo
7412
# Must we lock files when doing compilation ?
7413
need_locks=$lt_need_locks
7415
# Do we need the lib prefix for modules?
7416
need_lib_prefix=$need_lib_prefix
7418
# Do we need a version for libraries?
7419
need_version=$need_version
7421
# Whether dlopen is supported.
7422
dlopen_support=$enable_dlopen
7424
# Whether dlopen of programs is supported.
7425
dlopen_self=$enable_dlopen_self
7427
# Whether dlopen of statically linked programs is supported.
7428
dlopen_self_static=$enable_dlopen_self_static
7430
# Compiler flag to prevent dynamic linking.
7431
link_static_flag=$lt_link_static_flag
7433
# Compiler flag to turn off builtin functions.
7434
no_builtin_flag=$lt_no_builtin_flag
7436
# Compiler flag to allow reflexive dlopens.
7437
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7439
# Compiler flag to generate shared objects directly from archives.
7440
whole_archive_flag_spec=$lt_whole_archive_flag_spec
7442
# Compiler flag to generate thread-safe objects.
7443
thread_safe_flag_spec=$lt_thread_safe_flag_spec
7445
# Library versioning type.
7446
version_type=$version_type
7448
# Format of library name prefix.
7449
libname_spec=$lt_libname_spec
7451
# List of archive names. First name is the real one, the rest are links.
7452
# The last name is the one that the linker finds with -lNAME.
7453
library_names_spec=$lt_library_names_spec
7455
# The coded name of the library, if different from the real name.
7456
soname_spec=$lt_soname_spec
7458
# Commands used to build and install an old-style archive.
7460
old_archive_cmds=$lt_old_archive_cmds
7461
old_postinstall_cmds=$lt_old_postinstall_cmds
7462
old_postuninstall_cmds=$lt_old_postuninstall_cmds
7464
# Create an old-style archive from a shared archive.
7465
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7467
# Create a temporary old-style archive to link instead of a shared archive.
7468
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7470
# Commands used to build and install a shared archive.
7471
archive_cmds=$lt_archive_cmds
7472
archive_expsym_cmds=$lt_archive_expsym_cmds
7473
postinstall_cmds=$lt_postinstall_cmds
7474
postuninstall_cmds=$lt_postuninstall_cmds
7476
# Commands to strip libraries.
7477
old_striplib=$lt_old_striplib
7478
striplib=$lt_striplib
7480
# Method to check whether dependent libraries are shared objects.
7481
deplibs_check_method=$lt_deplibs_check_method
7483
# Command to use when deplibs_check_method == file_magic.
7484
file_magic_cmd=$lt_file_magic_cmd
7486
# Flag that allows shared libraries with undefined symbols to be built.
7487
allow_undefined_flag=$lt_allow_undefined_flag
7489
# Flag that forces no undefined symbols.
7490
no_undefined_flag=$lt_no_undefined_flag
7492
# Commands used to finish a libtool library installation in a directory.
7493
finish_cmds=$lt_finish_cmds
7495
# Same as above, but a single script fragment to be evaled but not shown.
7496
finish_eval=$lt_finish_eval
7498
# Take the output of nm and produce a listing of raw symbols and C names.
7499
global_symbol_pipe=$lt_global_symbol_pipe
7501
# Transform the output of nm in a proper C declaration
7502
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7504
# Transform the output of nm in a C name address pair
7505
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7507
# This is the shared library runtime path variable.
7508
runpath_var=$runpath_var
7510
# This is the shared library path variable.
7511
shlibpath_var=$shlibpath_var
7513
# Is shlibpath searched before the hard-coded library search path?
7514
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7516
# How to hardcode a shared library path into an executable.
7517
hardcode_action=$hardcode_action
7519
# Whether we should hardcode library paths into libraries.
7520
hardcode_into_libs=$hardcode_into_libs
7522
# Flag to hardcode \$libdir into a binary during linking.
7523
# This must work even if \$libdir does not exist.
7524
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7526
# Whether we need a single -rpath flag with a separated argument.
7527
hardcode_libdir_separator=$lt_hardcode_libdir_separator
7529
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7531
hardcode_direct=$hardcode_direct
7533
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7535
hardcode_minus_L=$hardcode_minus_L
7537
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7538
# the resulting binary.
7539
hardcode_shlibpath_var=$hardcode_shlibpath_var
7541
# Variables whose values should be saved in libtool wrapper scripts and
7542
# restored at relink time.
7543
variables_saved_for_relink="$variables_saved_for_relink"
7545
# Whether libtool must link a program against all its dependency libraries.
7546
link_all_deplibs=$link_all_deplibs
7548
# Compile-time system search path for libraries
7549
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7551
# Run-time system search path for libraries
7552
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7554
# Fix the shell variable \$srcfile for the compiler.
7555
fix_srcfile_path="$fix_srcfile_path"
7557
# Set to yes if exported symbols are required.
7558
always_export_symbols=$always_export_symbols
7560
# The commands to list exported symbols.
7561
export_symbols_cmds=$lt_export_symbols_cmds
7563
# The commands to extract the exported symbol list from a shared archive.
7564
extract_expsyms_cmds=$lt_extract_expsyms_cmds
7566
# Symbols that should not be listed in the preloaded symbols.
7567
exclude_expsyms=$lt_exclude_expsyms
7569
# Symbols that must always be exported.
7570
include_expsyms=$lt_include_expsyms
7572
# ### END LIBTOOL CONFIG
7578
cat <<\EOF >> "${ofile}T"
7580
# AIX sometimes has problems with the GCC collect2 program. For some
7581
# reason, if we set the COLLECT_NAMES environment variable, the problems
7582
# vanish in a puff of smoke.
7583
if test "X${COLLECT_NAMES+set}" != Xset; then
7585
export COLLECT_NAMES
7592
cygwin* | mingw* | pw32* | os2*)
7593
cat <<'EOF' >> "${ofile}T"
7594
# This is a source program that is used to create dlls on Windows
7595
# Don't remove nor modify the starting and closing comments
7596
# /* ltdll.c starts here */
7597
# #define WIN32_LEAN_AND_MEAN
7598
# #include <windows.h>
7599
# #undef WIN32_LEAN_AND_MEAN
7600
# #include <stdio.h>
7602
# #ifndef __CYGWIN__
7603
# # ifdef __CYGWIN32__
7604
# # define __CYGWIN__ __CYGWIN32__
7608
# #ifdef __cplusplus
7611
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7612
# #ifdef __cplusplus
7617
# #include <cygwin/cygwin_dll.h>
7618
# DECLARE_CYGWIN_DLL( DllMain );
7620
# HINSTANCE __hDllInstance_base;
7623
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7625
# __hDllInstance_base = hInst;
7628
# /* ltdll.c ends here */
7629
# This is a source program that is used to create import libraries
7630
# on Windows for dlls which lack them. Don't remove nor modify the
7631
# starting and closing comments
7632
# /* impgen.c starts here */
7633
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7635
# This file is part of GNU libtool.
7637
# This program is free software; you can redistribute it and/or modify
7638
# it under the terms of the GNU General Public License as published by
7639
# the Free Software Foundation; either version 2 of the License, or
7640
# (at your option) any later version.
7642
# This program is distributed in the hope that it will be useful,
7643
# but WITHOUT ANY WARRANTY; without even the implied warranty of
7644
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7645
# GNU General Public License for more details.
7647
# You should have received a copy of the GNU General Public License
7648
# along with this program; if not, write to the Free Software
7649
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7652
# #include <stdio.h> /* for printf() */
7653
# #include <unistd.h> /* for open(), lseek(), read() */
7654
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7655
# #include <string.h> /* for strdup() */
7657
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7659
# #define O_BINARY 0
7662
# static unsigned int
7663
# pe_get16 (fd, offset)
7667
# unsigned char b[2];
7668
# lseek (fd, offset, SEEK_SET);
7670
# return b[0] + (b[1]<<8);
7673
# static unsigned int
7674
# pe_get32 (fd, offset)
7678
# unsigned char b[4];
7679
# lseek (fd, offset, SEEK_SET);
7681
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7684
# static unsigned int
7688
# unsigned char *b = ptr;
7689
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7698
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7699
# unsigned long export_rva, export_size, nsections, secptr, expptr;
7700
# unsigned long name_rvas, nexp;
7701
# unsigned char *expdata, *erva;
7702
# char *filename, *dll_name;
7704
# filename = argv[1];
7706
# dll = open(filename, O_RDONLY|O_BINARY);
7710
# dll_name = filename;
7712
# for (i=0; filename[i]; i++)
7713
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7714
# dll_name = filename + i +1;
7716
# pe_header_offset = pe_get32 (dll, 0x3c);
7717
# opthdr_ofs = pe_header_offset + 4 + 20;
7718
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
7720
# if (num_entries < 1) /* no exports */
7723
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
7724
# export_size = pe_get32 (dll, opthdr_ofs + 100);
7725
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7726
# secptr = (pe_header_offset + 4 + 20 +
7727
# pe_get16 (dll, pe_header_offset + 4 + 16));
7730
# for (i = 0; i < nsections; i++)
7733
# unsigned long secptr1 = secptr + 40 * i;
7734
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7735
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7736
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7737
# lseek(dll, secptr1, SEEK_SET);
7738
# read(dll, sname, 8);
7739
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
7741
# expptr = fptr + (export_rva - vaddr);
7742
# if (export_rva + export_size > vaddr + vsize)
7743
# export_size = vsize - (export_rva - vaddr);
7748
# expdata = (unsigned char*)malloc(export_size);
7749
# lseek (dll, expptr, SEEK_SET);
7750
# read (dll, expdata, export_size);
7751
# erva = expdata - export_rva;
7753
# nexp = pe_as32 (expdata+24);
7754
# name_rvas = pe_as32 (expdata+32);
7756
# printf ("EXPORTS\n");
7757
# for (i = 0; i<nexp; i++)
7759
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7760
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7765
# /* impgen.c ends here */
7771
# We use sed instead of cat because bash on DJGPP gets confused if
7772
# if finds mixed CR/LF and LF-only lines. Since sed operates in
7773
# text mode, it properly converts lines to CR/LF. This bash problem
7774
# is reportedly fixed, but why not run on old versions too?
7775
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7777
mv -f "${ofile}T" "$ofile" || \
7778
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7782
# This can be used to rebuild libtool when needed
7783
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7785
# Always use our own libtool.
7786
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7788
# Prevent multiple expansion
7790
echo "$as_me:7790: checking whether ${MAKE-make} sets \${MAKE}" >&5
7791
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
7792
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
7793
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
7794
echo $ECHO_N "(cached) $ECHO_C" >&6
7796
cat >conftest.make <<\EOF
7798
@echo 'ac_maketemp="${MAKE}"'
7800
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7801
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
7802
if test -n "$ac_maketemp"; then
7803
eval ac_cv_prog_make_${ac_make}_set=yes
7805
eval ac_cv_prog_make_${ac_make}_set=no
7809
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
7810
echo "$as_me:7810: result: yes" >&5
7811
echo "${ECHO_T}yes" >&6
7814
echo "$as_me:7814: result: no" >&5
7815
echo "${ECHO_T}no" >&6
7816
SET_MAKE="MAKE=${MAKE-make}"
7819
echo "$as_me:7819: checking whether to enable debug options" >&5
7820
echo $ECHO_N "checking whether to enable debug options... $ECHO_C" >&6
7821
# Check whether --enable-debug or --disable-debug was given.
7822
if test "${enable_debug+set}" = set; then
7823
enableval="$enable_debug"
7824
case "$enableval" in
7826
echo "$as_me:7826: result: no" >&5
7827
echo "${ECHO_T}no" >&6
7829
*) echo "$as_me:7829: result: yes" >&5
7830
echo "${ECHO_T}yes" >&6
7832
CPPFLAGS="$CPPFLAGS -DMALLOCDEBUG"
7833
CFLAGS="-W -Wall -Wwrite-strings -pedantic -Wundef -Wpointer-arith -Wcast-align -Wnested-externs -g"
7837
echo "$as_me:7837: result: no" >&5
7838
echo "${ECHO_T}no" >&6
7842
echo "$as_me:7842: checking whether to enable ipv6" >&5
7843
echo $ECHO_N "checking whether to enable ipv6... $ECHO_C" >&6
7844
# Check whether --enable-ipv6 or --disable-ipv6 was given.
7845
if test "${enable_ipv6+set}" = set; then
7846
enableval="$enable_ipv6"
7847
case "$enableval" in
7849
echo "$as_me:7849: result: no" >&5
7850
echo "${ECHO_T}no" >&6
7853
*) echo "$as_me:7853: result: yes" >&5
7854
echo "${ECHO_T}yes" >&6
7859
if test "$cross_compiling" = yes; then
7860
echo "$as_me:7860: result: no" >&5
7861
echo "${ECHO_T}no" >&6
7865
cat >conftest.$ac_ext <<_ACEOF
7866
#line 7866 "configure"
7867
#include "confdefs.h"
7868
/* is AF_INET6 available? */
7869
#include <sys/types.h>
7870
#include <sys/socket.h>
7873
if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
7880
rm -f conftest$ac_exeext
7881
if { (eval echo "$as_me:7881: \"$ac_link\"") >&5
7882
(eval $ac_link) 2>&5
7884
echo "$as_me:7884: \$? = $ac_status" >&5
7885
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7886
{ (eval echo "$as_me:7886: \"$ac_try\"") >&5
7889
echo "$as_me:7889: \$? = $ac_status" >&5
7890
(exit $ac_status); }; }; then
7891
echo "$as_me:7891: result: yes" >&5
7892
echo "${ECHO_T}yes" >&6
7895
echo "$as_me: program exited with status $ac_status" >&5
7896
echo "$as_me: failed program was:" >&5
7897
cat conftest.$ac_ext >&5
7898
echo "$as_me:7898: result: no" >&5
7899
echo "${ECHO_T}no" >&6
7902
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7906
if test "$ipv6" = "yes"; then
7908
echo "$as_me:7908: checking for working getaddrinfo" >&5
7909
echo $ECHO_N "checking for working getaddrinfo... $ECHO_C" >&6
7910
if test "${ac_cv_working_getaddrinfo+set}" = set; then
7911
echo $ECHO_N "(cached) $ECHO_C" >&6
7914
if test "$cross_compiling" = yes; then
7916
ac_cv_working_getaddrinfo="yes"
7919
cat >conftest.$ac_ext <<_ACEOF
7920
#line 7920 "configure"
7921
#include "confdefs.h"
7924
#include <sys/types.h>
7925
#include <sys/socket.h>
7928
struct addrinfo hints, *ai;
7931
memset(&hints, 0, sizeof(hints));
7932
hints.ai_family = AF_UNSPEC;
7933
hints.ai_socktype = SOCK_STREAM;
7934
error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
7944
rm -f conftest$ac_exeext
7945
if { (eval echo "$as_me:7945: \"$ac_link\"") >&5
7946
(eval $ac_link) 2>&5
7948
echo "$as_me:7948: \$? = $ac_status" >&5
7949
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7950
{ (eval echo "$as_me:7950: \"$ac_try\"") >&5
7953
echo "$as_me:7953: \$? = $ac_status" >&5
7954
(exit $ac_status); }; }; then
7956
ac_cv_working_getaddrinfo="yes"
7959
echo "$as_me: program exited with status $ac_status" >&5
7960
echo "$as_me: failed program was:" >&5
7961
cat conftest.$ac_ext >&5
7963
ac_cv_working_getaddrinfo="no"
7966
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7969
echo "$as_me:7969: result: $ac_cv_working_getaddrinfo" >&5
7970
echo "${ECHO_T}$ac_cv_working_getaddrinfo" >&6
7971
if test "$ac_cv_working_getaddrinfo" = "yes"; then
7973
cat >>confdefs.h <<\EOF
7974
#define HAVE_GETADDRINFO 1
7977
cat >>confdefs.h <<\EOF
7978
#define ENABLE_IPV6 1
7987
echo "$as_me:7987: checking for gethostbyname" >&5
7988
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7989
if test "${ac_cv_func_gethostbyname+set}" = set; then
7990
echo $ECHO_N "(cached) $ECHO_C" >&6
7992
cat >conftest.$ac_ext <<_ACEOF
7993
#line 7993 "configure"
7994
#include "confdefs.h"
7995
/* System header to define __stub macros and hopefully few prototypes,
7996
which can conflict with char gethostbyname (); below. */
7998
/* Override any gcc2 internal prototype to avoid an error. */
8002
/* We use char because int might match the return type of a gcc2
8003
builtin and then its argument prototype would still apply. */
8004
char gethostbyname ();
8010
/* The GNU C library defines this for functions which it implements
8011
to always fail with ENOSYS. Some functions are actually named
8012
something starting with __ and the normal name is an alias. */
8013
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8023
rm -f conftest.$ac_objext conftest$ac_exeext
8024
if { (eval echo "$as_me:8024: \"$ac_link\"") >&5
8025
(eval $ac_link) 2>&5
8027
echo "$as_me:8027: \$? = $ac_status" >&5
8028
(exit $ac_status); } &&
8029
{ ac_try='test -s conftest$ac_exeext'
8030
{ (eval echo "$as_me:8030: \"$ac_try\"") >&5
8033
echo "$as_me:8033: \$? = $ac_status" >&5
8034
(exit $ac_status); }; }; then
8035
ac_cv_func_gethostbyname=yes
8037
echo "$as_me: failed program was:" >&5
8038
cat conftest.$ac_ext >&5
8039
ac_cv_func_gethostbyname=no
8041
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8043
echo "$as_me:8043: result: $ac_cv_func_gethostbyname" >&5
8044
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8045
if test $ac_cv_func_gethostbyname = yes; then
8049
echo "$as_me:8049: checking for gethostbyname in -lnsl" >&5
8050
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8051
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8052
echo $ECHO_N "(cached) $ECHO_C" >&6
8054
ac_check_lib_save_LIBS=$LIBS
8056
cat >conftest.$ac_ext <<_ACEOF
8057
#line 8057 "configure"
8058
#include "confdefs.h"
8060
/* Override any gcc2 internal prototype to avoid an error. */
8064
/* We use char because int might match the return type of a gcc2
8065
builtin and then its argument prototype would still apply. */
8066
char gethostbyname ();
8075
rm -f conftest.$ac_objext conftest$ac_exeext
8076
if { (eval echo "$as_me:8076: \"$ac_link\"") >&5
8077
(eval $ac_link) 2>&5
8079
echo "$as_me:8079: \$? = $ac_status" >&5
8080
(exit $ac_status); } &&
8081
{ ac_try='test -s conftest$ac_exeext'
8082
{ (eval echo "$as_me:8082: \"$ac_try\"") >&5
8085
echo "$as_me:8085: \$? = $ac_status" >&5
8086
(exit $ac_status); }; }; then
8087
ac_cv_lib_nsl_gethostbyname=yes
8089
echo "$as_me: failed program was:" >&5
8090
cat conftest.$ac_ext >&5
8091
ac_cv_lib_nsl_gethostbyname=no
8093
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8094
LIBS=$ac_check_lib_save_LIBS
8096
echo "$as_me:8096: result: $ac_cv_lib_nsl_gethostbyname" >&5
8097
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8098
if test $ac_cv_lib_nsl_gethostbyname = yes; then
8099
cat >>confdefs.h <<EOF
8100
#define HAVE_LIBNSL 1
8109
if test "$ac_cv_lib_nsl_gethostbyname" != "yes" -a "$ac_cv_func_gethostbyname" != "yes"; then
8110
echo "$as_me:8110: checking for gethostbyname" >&5
8111
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8112
if test "${ac_cv_func_gethostbyname+set}" = set; then
8113
echo $ECHO_N "(cached) $ECHO_C" >&6
8115
cat >conftest.$ac_ext <<_ACEOF
8116
#line 8116 "configure"
8117
#include "confdefs.h"
8118
/* System header to define __stub macros and hopefully few prototypes,
8119
which can conflict with char gethostbyname (); below. */
8121
/* Override any gcc2 internal prototype to avoid an error. */
8125
/* We use char because int might match the return type of a gcc2
8126
builtin and then its argument prototype would still apply. */
8127
char gethostbyname ();
8133
/* The GNU C library defines this for functions which it implements
8134
to always fail with ENOSYS. Some functions are actually named
8135
something starting with __ and the normal name is an alias. */
8136
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8146
rm -f conftest.$ac_objext conftest$ac_exeext
8147
if { (eval echo "$as_me:8147: \"$ac_link\"") >&5
8148
(eval $ac_link) 2>&5
8150
echo "$as_me:8150: \$? = $ac_status" >&5
8151
(exit $ac_status); } &&
8152
{ ac_try='test -s conftest$ac_exeext'
8153
{ (eval echo "$as_me:8153: \"$ac_try\"") >&5
8156
echo "$as_me:8156: \$? = $ac_status" >&5
8157
(exit $ac_status); }; }; then
8158
ac_cv_func_gethostbyname=yes
8160
echo "$as_me: failed program was:" >&5
8161
cat conftest.$ac_ext >&5
8162
ac_cv_func_gethostbyname=no
8164
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8166
echo "$as_me:8166: result: $ac_cv_func_gethostbyname" >&5
8167
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8168
if test $ac_cv_func_gethostbyname = yes; then
8172
echo "$as_me:8172: checking for gethostbyname in -lsocket" >&5
8173
echo $ECHO_N "checking for gethostbyname in -lsocket... $ECHO_C" >&6
8174
if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
8175
echo $ECHO_N "(cached) $ECHO_C" >&6
8177
ac_check_lib_save_LIBS=$LIBS
8178
LIBS="-lsocket $LIBS"
8179
cat >conftest.$ac_ext <<_ACEOF
8180
#line 8180 "configure"
8181
#include "confdefs.h"
8183
/* Override any gcc2 internal prototype to avoid an error. */
8187
/* We use char because int might match the return type of a gcc2
8188
builtin and then its argument prototype would still apply. */
8189
char gethostbyname ();
8198
rm -f conftest.$ac_objext conftest$ac_exeext
8199
if { (eval echo "$as_me:8199: \"$ac_link\"") >&5
8200
(eval $ac_link) 2>&5
8202
echo "$as_me:8202: \$? = $ac_status" >&5
8203
(exit $ac_status); } &&
8204
{ ac_try='test -s conftest$ac_exeext'
8205
{ (eval echo "$as_me:8205: \"$ac_try\"") >&5
8208
echo "$as_me:8208: \$? = $ac_status" >&5
8209
(exit $ac_status); }; }; then
8210
ac_cv_lib_socket_gethostbyname=yes
8212
echo "$as_me: failed program was:" >&5
8213
cat conftest.$ac_ext >&5
8214
ac_cv_lib_socket_gethostbyname=no
8216
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8217
LIBS=$ac_check_lib_save_LIBS
8219
echo "$as_me:8219: result: $ac_cv_lib_socket_gethostbyname" >&5
8220
echo "${ECHO_T}$ac_cv_lib_socket_gethostbyname" >&6
8221
if test $ac_cv_lib_socket_gethostbyname = yes; then
8222
cat >>confdefs.h <<EOF
8223
#define HAVE_LIBSOCKET 1
8226
LIBS="-lsocket $LIBS"
8234
if test "$ac_cv_lib_nsl_gethostbyname" = "$ac_cv_func_gethostbyname"; then
8235
echo "$as_me:8235: checking trying both nsl and socket libs" >&5
8236
echo $ECHO_N "checking trying both nsl and socket libs... $ECHO_C" >&6
8237
my_ac_save_LIBS=$LIBS
8238
LIBS="-lnsl -lsocket $LIBS"
8239
cat >conftest.$ac_ext <<_ACEOF
8240
#line 8240 "configure"
8241
#include "confdefs.h"
8251
rm -f conftest.$ac_objext conftest$ac_exeext
8252
if { (eval echo "$as_me:8252: \"$ac_link\"") >&5
8253
(eval $ac_link) 2>&5
8255
echo "$as_me:8255: \$? = $ac_status" >&5
8256
(exit $ac_status); } &&
8257
{ ac_try='test -s conftest$ac_exeext'
8258
{ (eval echo "$as_me:8258: \"$ac_try\"") >&5
8261
echo "$as_me:8261: \$? = $ac_status" >&5
8262
(exit $ac_status); }; }; then
8263
my_ac_link_result=success
8265
echo "$as_me: failed program was:" >&5
8266
cat conftest.$ac_ext >&5
8267
my_ac_link_result=failure
8269
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8271
if test "$my_ac_link_result" = "failure"; then
8272
echo "$as_me:8272: result: no" >&5
8273
echo "${ECHO_T}no" >&6
8274
{ { echo "$as_me:8274: error: couldn't find libraries for gethostbyname()" >&5
8275
echo "$as_me: error: couldn't find libraries for gethostbyname()" >&2;}
8276
{ (exit 1); exit 1; }; }
8277
LIBS=$my_ac_save_LIBS
8279
echo "$as_me:8279: result: yes" >&5
8280
echo "${ECHO_T}yes" >&6
8284
echo "$as_me:8284: checking for strcasecmp" >&5
8285
echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6
8286
if test "${ac_cv_func_strcasecmp+set}" = set; then
8287
echo $ECHO_N "(cached) $ECHO_C" >&6
8289
cat >conftest.$ac_ext <<_ACEOF
8290
#line 8290 "configure"
8291
#include "confdefs.h"
8292
/* System header to define __stub macros and hopefully few prototypes,
8293
which can conflict with char strcasecmp (); below. */
8295
/* Override any gcc2 internal prototype to avoid an error. */
8299
/* We use char because int might match the return type of a gcc2
8300
builtin and then its argument prototype would still apply. */
8307
/* The GNU C library defines this for functions which it implements
8308
to always fail with ENOSYS. Some functions are actually named
8309
something starting with __ and the normal name is an alias. */
8310
#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp)
8320
rm -f conftest.$ac_objext conftest$ac_exeext
8321
if { (eval echo "$as_me:8321: \"$ac_link\"") >&5
8322
(eval $ac_link) 2>&5
8324
echo "$as_me:8324: \$? = $ac_status" >&5
8325
(exit $ac_status); } &&
8326
{ ac_try='test -s conftest$ac_exeext'
8327
{ (eval echo "$as_me:8327: \"$ac_try\"") >&5
8330
echo "$as_me:8330: \$? = $ac_status" >&5
8331
(exit $ac_status); }; }; then
8332
ac_cv_func_strcasecmp=yes
8334
echo "$as_me: failed program was:" >&5
8335
cat conftest.$ac_ext >&5
8336
ac_cv_func_strcasecmp=no
8338
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8340
echo "$as_me:8340: result: $ac_cv_func_strcasecmp" >&5
8341
echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6
8342
if test $ac_cv_func_strcasecmp = yes; then
8346
echo "$as_me:8346: checking for strcasecmp in -lresolve" >&5
8347
echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
8348
if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
8349
echo $ECHO_N "(cached) $ECHO_C" >&6
8351
ac_check_lib_save_LIBS=$LIBS
8352
LIBS="-lresolve $LIBS"
8353
cat >conftest.$ac_ext <<_ACEOF
8354
#line 8354 "configure"
8355
#include "confdefs.h"
8357
/* Override any gcc2 internal prototype to avoid an error. */
8361
/* We use char because int might match the return type of a gcc2
8362
builtin and then its argument prototype would still apply. */
8372
rm -f conftest.$ac_objext conftest$ac_exeext
8373
if { (eval echo "$as_me:8373: \"$ac_link\"") >&5
8374
(eval $ac_link) 2>&5
8376
echo "$as_me:8376: \$? = $ac_status" >&5
8377
(exit $ac_status); } &&
8378
{ ac_try='test -s conftest$ac_exeext'
8379
{ (eval echo "$as_me:8379: \"$ac_try\"") >&5
8382
echo "$as_me:8382: \$? = $ac_status" >&5
8383
(exit $ac_status); }; }; then
8384
ac_cv_lib_resolve_strcasecmp=yes
8386
echo "$as_me: failed program was:" >&5
8387
cat conftest.$ac_ext >&5
8388
ac_cv_lib_resolve_strcasecmp=no
8390
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8391
LIBS=$ac_check_lib_save_LIBS
8393
echo "$as_me:8393: result: $ac_cv_lib_resolve_strcasecmp" >&5
8394
echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
8395
if test $ac_cv_lib_resolve_strcasecmp = yes; then
8396
cat >>confdefs.h <<EOF
8397
#define HAVE_LIBRESOLVE 1
8400
LIBS="-lresolve $LIBS"
8406
if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
8407
echo "$as_me:8407: checking for strcasecmp in -lresolve" >&5
8408
echo $ECHO_N "checking for strcasecmp in -lresolve... $ECHO_C" >&6
8409
if test "${ac_cv_lib_resolve_strcasecmp+set}" = set; then
8410
echo $ECHO_N "(cached) $ECHO_C" >&6
8412
ac_check_lib_save_LIBS=$LIBS
8413
LIBS="-lresolve -lnsl $LIBS"
8414
cat >conftest.$ac_ext <<_ACEOF
8415
#line 8415 "configure"
8416
#include "confdefs.h"
8418
/* Override any gcc2 internal prototype to avoid an error. */
8422
/* We use char because int might match the return type of a gcc2
8423
builtin and then its argument prototype would still apply. */
8433
rm -f conftest.$ac_objext conftest$ac_exeext
8434
if { (eval echo "$as_me:8434: \"$ac_link\"") >&5
8435
(eval $ac_link) 2>&5
8437
echo "$as_me:8437: \$? = $ac_status" >&5
8438
(exit $ac_status); } &&
8439
{ ac_try='test -s conftest$ac_exeext'
8440
{ (eval echo "$as_me:8440: \"$ac_try\"") >&5
8443
echo "$as_me:8443: \$? = $ac_status" >&5
8444
(exit $ac_status); }; }; then
8445
ac_cv_lib_resolve_strcasecmp=yes
8447
echo "$as_me: failed program was:" >&5
8448
cat conftest.$ac_ext >&5
8449
ac_cv_lib_resolve_strcasecmp=no
8451
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8452
LIBS=$ac_check_lib_save_LIBS
8454
echo "$as_me:8454: result: $ac_cv_lib_resolve_strcasecmp" >&5
8455
echo "${ECHO_T}$ac_cv_lib_resolve_strcasecmp" >&6
8456
if test $ac_cv_lib_resolve_strcasecmp = yes; then
8457
LIBS="-lresolve $LIBS"
8462
echo "$as_me:8462: checking for connect" >&5
8463
echo $ECHO_N "checking for connect... $ECHO_C" >&6
8464
if test "${ac_cv_func_connect+set}" = set; then
8465
echo $ECHO_N "(cached) $ECHO_C" >&6
8467
cat >conftest.$ac_ext <<_ACEOF
8468
#line 8468 "configure"
8469
#include "confdefs.h"
8470
/* System header to define __stub macros and hopefully few prototypes,
8471
which can conflict with char connect (); below. */
8473
/* Override any gcc2 internal prototype to avoid an error. */
8477
/* We use char because int might match the return type of a gcc2
8478
builtin and then its argument prototype would still apply. */
8485
/* The GNU C library defines this for functions which it implements
8486
to always fail with ENOSYS. Some functions are actually named
8487
something starting with __ and the normal name is an alias. */
8488
#if defined (__stub_connect) || defined (__stub___connect)
8498
rm -f conftest.$ac_objext conftest$ac_exeext
8499
if { (eval echo "$as_me:8499: \"$ac_link\"") >&5
8500
(eval $ac_link) 2>&5
8502
echo "$as_me:8502: \$? = $ac_status" >&5
8503
(exit $ac_status); } &&
8504
{ ac_try='test -s conftest$ac_exeext'
8505
{ (eval echo "$as_me:8505: \"$ac_try\"") >&5
8508
echo "$as_me:8508: \$? = $ac_status" >&5
8509
(exit $ac_status); }; }; then
8510
ac_cv_func_connect=yes
8512
echo "$as_me: failed program was:" >&5
8513
cat conftest.$ac_ext >&5
8514
ac_cv_func_connect=no
8516
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8518
echo "$as_me:8518: result: $ac_cv_func_connect" >&5
8519
echo "${ECHO_T}$ac_cv_func_connect" >&6
8520
if test $ac_cv_func_connect = yes; then
8524
echo "$as_me:8524: checking for connect in -lsocket" >&5
8525
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8526
if test "${ac_cv_lib_socket_connect+set}" = set; then
8527
echo $ECHO_N "(cached) $ECHO_C" >&6
8529
ac_check_lib_save_LIBS=$LIBS
8530
LIBS="-lsocket $LIBS"
8531
cat >conftest.$ac_ext <<_ACEOF
8532
#line 8532 "configure"
8533
#include "confdefs.h"
8535
/* Override any gcc2 internal prototype to avoid an error. */
8539
/* We use char because int might match the return type of a gcc2
8540
builtin and then its argument prototype would still apply. */
8550
rm -f conftest.$ac_objext conftest$ac_exeext
8551
if { (eval echo "$as_me:8551: \"$ac_link\"") >&5
8552
(eval $ac_link) 2>&5
8554
echo "$as_me:8554: \$? = $ac_status" >&5
8555
(exit $ac_status); } &&
8556
{ ac_try='test -s conftest$ac_exeext'
8557
{ (eval echo "$as_me:8557: \"$ac_try\"") >&5
8560
echo "$as_me:8560: \$? = $ac_status" >&5
8561
(exit $ac_status); }; }; then
8562
ac_cv_lib_socket_connect=yes
8564
echo "$as_me: failed program was:" >&5
8565
cat conftest.$ac_ext >&5
8566
ac_cv_lib_socket_connect=no
8568
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8569
LIBS=$ac_check_lib_save_LIBS
8571
echo "$as_me:8571: result: $ac_cv_lib_socket_connect" >&5
8572
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8573
if test $ac_cv_lib_socket_connect = yes; then
8574
cat >>confdefs.h <<EOF
8575
#define HAVE_LIBSOCKET 1
8578
LIBS="-lsocket $LIBS"
8584
echo "$as_me:8584: checking for gethostname" >&5
8585
echo $ECHO_N "checking for gethostname... $ECHO_C" >&6
8586
if test "${ac_cv_func_gethostname+set}" = set; then
8587
echo $ECHO_N "(cached) $ECHO_C" >&6
8589
cat >conftest.$ac_ext <<_ACEOF
8590
#line 8590 "configure"
8591
#include "confdefs.h"
8592
/* System header to define __stub macros and hopefully few prototypes,
8593
which can conflict with char gethostname (); below. */
8595
/* Override any gcc2 internal prototype to avoid an error. */
8599
/* We use char because int might match the return type of a gcc2
8600
builtin and then its argument prototype would still apply. */
8601
char gethostname ();
8607
/* The GNU C library defines this for functions which it implements
8608
to always fail with ENOSYS. Some functions are actually named
8609
something starting with __ and the normal name is an alias. */
8610
#if defined (__stub_gethostname) || defined (__stub___gethostname)
8620
rm -f conftest.$ac_objext conftest$ac_exeext
8621
if { (eval echo "$as_me:8621: \"$ac_link\"") >&5
8622
(eval $ac_link) 2>&5
8624
echo "$as_me:8624: \$? = $ac_status" >&5
8625
(exit $ac_status); } &&
8626
{ ac_try='test -s conftest$ac_exeext'
8627
{ (eval echo "$as_me:8627: \"$ac_try\"") >&5
8630
echo "$as_me:8630: \$? = $ac_status" >&5
8631
(exit $ac_status); }; }; then
8632
ac_cv_func_gethostname=yes
8634
echo "$as_me: failed program was:" >&5
8635
cat conftest.$ac_ext >&5
8636
ac_cv_func_gethostname=no
8638
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8640
echo "$as_me:8640: result: $ac_cv_func_gethostname" >&5
8641
echo "${ECHO_T}$ac_cv_func_gethostname" >&6
8642
if test $ac_cv_func_gethostname = yes; then
8646
echo "$as_me:8646: checking for gethostname in -lucb" >&5
8647
echo $ECHO_N "checking for gethostname in -lucb... $ECHO_C" >&6
8648
if test "${ac_cv_lib_ucb_gethostname+set}" = set; then
8649
echo $ECHO_N "(cached) $ECHO_C" >&6
8651
ac_check_lib_save_LIBS=$LIBS
8653
cat >conftest.$ac_ext <<_ACEOF
8654
#line 8654 "configure"
8655
#include "confdefs.h"
8657
/* Override any gcc2 internal prototype to avoid an error. */
8661
/* We use char because int might match the return type of a gcc2
8662
builtin and then its argument prototype would still apply. */
8663
char gethostname ();
8672
rm -f conftest.$ac_objext conftest$ac_exeext
8673
if { (eval echo "$as_me:8673: \"$ac_link\"") >&5
8674
(eval $ac_link) 2>&5
8676
echo "$as_me:8676: \$? = $ac_status" >&5
8677
(exit $ac_status); } &&
8678
{ ac_try='test -s conftest$ac_exeext'
8679
{ (eval echo "$as_me:8679: \"$ac_try\"") >&5
8682
echo "$as_me:8682: \$? = $ac_status" >&5
8683
(exit $ac_status); }; }; then
8684
ac_cv_lib_ucb_gethostname=yes
8686
echo "$as_me: failed program was:" >&5
8687
cat conftest.$ac_ext >&5
8688
ac_cv_lib_ucb_gethostname=no
8690
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8691
LIBS=$ac_check_lib_save_LIBS
8693
echo "$as_me:8693: result: $ac_cv_lib_ucb_gethostname" >&5
8694
echo "${ECHO_T}$ac_cv_lib_ucb_gethostname" >&6
8695
if test $ac_cv_lib_ucb_gethostname = yes; then
8696
cat >>confdefs.h <<EOF
8697
#define HAVE_LIBUCB 1
8706
echo "$as_me:8706: checking for dlclose" >&5
8707
echo $ECHO_N "checking for dlclose... $ECHO_C" >&6
8708
if test "${ac_cv_func_dlclose+set}" = set; then
8709
echo $ECHO_N "(cached) $ECHO_C" >&6
8711
cat >conftest.$ac_ext <<_ACEOF
8712
#line 8712 "configure"
8713
#include "confdefs.h"
8714
/* System header to define __stub macros and hopefully few prototypes,
8715
which can conflict with char dlclose (); below. */
8717
/* Override any gcc2 internal prototype to avoid an error. */
8721
/* We use char because int might match the return type of a gcc2
8722
builtin and then its argument prototype would still apply. */
8729
/* The GNU C library defines this for functions which it implements
8730
to always fail with ENOSYS. Some functions are actually named
8731
something starting with __ and the normal name is an alias. */
8732
#if defined (__stub_dlclose) || defined (__stub___dlclose)
8742
rm -f conftest.$ac_objext conftest$ac_exeext
8743
if { (eval echo "$as_me:8743: \"$ac_link\"") >&5
8744
(eval $ac_link) 2>&5
8746
echo "$as_me:8746: \$? = $ac_status" >&5
8747
(exit $ac_status); } &&
8748
{ ac_try='test -s conftest$ac_exeext'
8749
{ (eval echo "$as_me:8749: \"$ac_try\"") >&5
8752
echo "$as_me:8752: \$? = $ac_status" >&5
8753
(exit $ac_status); }; }; then
8754
ac_cv_func_dlclose=yes
8756
echo "$as_me: failed program was:" >&5
8757
cat conftest.$ac_ext >&5
8758
ac_cv_func_dlclose=no
8760
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8762
echo "$as_me:8762: result: $ac_cv_func_dlclose" >&5
8763
echo "${ECHO_T}$ac_cv_func_dlclose" >&6
8764
if test $ac_cv_func_dlclose = yes; then
8768
echo "$as_me:8768: checking for dlopen in -ldl" >&5
8769
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8770
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8771
echo $ECHO_N "(cached) $ECHO_C" >&6
8773
ac_check_lib_save_LIBS=$LIBS
8775
cat >conftest.$ac_ext <<_ACEOF
8776
#line 8776 "configure"
8777
#include "confdefs.h"
8779
/* Override any gcc2 internal prototype to avoid an error. */
8783
/* We use char because int might match the return type of a gcc2
8784
builtin and then its argument prototype would still apply. */
8794
rm -f conftest.$ac_objext conftest$ac_exeext
8795
if { (eval echo "$as_me:8795: \"$ac_link\"") >&5
8796
(eval $ac_link) 2>&5
8798
echo "$as_me:8798: \$? = $ac_status" >&5
8799
(exit $ac_status); } &&
8800
{ ac_try='test -s conftest$ac_exeext'
8801
{ (eval echo "$as_me:8801: \"$ac_try\"") >&5
8804
echo "$as_me:8804: \$? = $ac_status" >&5
8805
(exit $ac_status); }; }; then
8806
ac_cv_lib_dl_dlopen=yes
8808
echo "$as_me: failed program was:" >&5
8809
cat conftest.$ac_ext >&5
8810
ac_cv_lib_dl_dlopen=no
8812
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8813
LIBS=$ac_check_lib_save_LIBS
8815
echo "$as_me:8815: result: $ac_cv_lib_dl_dlopen" >&5
8816
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8817
if test $ac_cv_lib_dl_dlopen = yes; then
8818
cat >>confdefs.h <<EOF
8819
#define HAVE_LIBDL 1
8828
# Check whether --enable-nonblocking or --disable-nonblocking was given.
8829
if test "${enable_nonblocking+set}" = set; then
8830
enableval="$enable_nonblocking"
8832
if test "$enableval" = "no" ; then
8833
{ echo "$as_me:8833: WARNING: non-blocking sockets disabled" >&5
8834
echo "$as_me: WARNING: non-blocking sockets disabled" >&2;}
8835
cat >>confdefs.h <<\EOF
8836
#define HAVE_DISABLED_NONBLOCKING 1
8841
echo "$as_me:8841: checking non-blocking sockets style" >&5
8842
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
8844
cat >conftest.$ac_ext <<_ACEOF
8845
#line 8845 "configure"
8846
#include "confdefs.h"
8848
/* headers for O_NONBLOCK test */
8849
#include <sys/types.h>
8857
/* try to compile O_NONBLOCK */
8859
#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
8860
# if defined(__SVR4) || defined(__srv4__)
8861
# define PLATFORM_SOLARIS
8863
# define PLATFORM_SUNOS4
8866
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
8867
# define PLATFORM_AIX_V3
8870
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3)
8871
#error "O_NONBLOCK does not work on this platform"
8874
int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
8880
rm -f conftest.$ac_objext
8881
if { (eval echo "$as_me:8881: \"$ac_compile\"") >&5
8882
(eval $ac_compile) 2>&5
8884
echo "$as_me:8884: \$? = $ac_status" >&5
8885
(exit $ac_status); } &&
8886
{ ac_try='test -s conftest.$ac_objext'
8887
{ (eval echo "$as_me:8887: \"$ac_try\"") >&5
8890
echo "$as_me:8890: \$? = $ac_status" >&5
8891
(exit $ac_status); }; }; then
8893
nonblock="O_NONBLOCK"
8894
cat >>confdefs.h <<\EOF
8895
#define HAVE_O_NONBLOCK 1
8899
echo "$as_me: failed program was:" >&5
8900
cat conftest.$ac_ext >&5
8902
cat >conftest.$ac_ext <<_ACEOF
8903
#line 8903 "configure"
8904
#include "confdefs.h"
8906
/* headers for FIONBIO test */
8908
#include <stropts.h>
8914
/* FIONBIO source test */
8915
int flags = ioctl(socket, FIONBIO, &flags);
8921
rm -f conftest.$ac_objext
8922
if { (eval echo "$as_me:8922: \"$ac_compile\"") >&5
8923
(eval $ac_compile) 2>&5
8925
echo "$as_me:8925: \$? = $ac_status" >&5
8926
(exit $ac_status); } &&
8927
{ ac_try='test -s conftest.$ac_objext'
8928
{ (eval echo "$as_me:8928: \"$ac_try\"") >&5
8931
echo "$as_me:8931: \$? = $ac_status" >&5
8932
(exit $ac_status); }; }; then
8935
cat >>confdefs.h <<\EOF
8936
#define HAVE_FIONBIO 1
8940
echo "$as_me: failed program was:" >&5
8941
cat conftest.$ac_ext >&5
8943
cat >conftest.$ac_ext <<_ACEOF
8944
#line 8944 "configure"
8945
#include "confdefs.h"
8947
/* headers for ioctlsocket test (cygwin?) */
8948
#include <windows.h>
8954
/* ioctlsocket source code */
8955
int flags = ioctlsocket(socket, FIONBIO, &flags);
8961
rm -f conftest.$ac_objext
8962
if { (eval echo "$as_me:8962: \"$ac_compile\"") >&5
8963
(eval $ac_compile) 2>&5
8965
echo "$as_me:8965: \$? = $ac_status" >&5
8966
(exit $ac_status); } &&
8967
{ ac_try='test -s conftest.$ac_objext'
8968
{ (eval echo "$as_me:8968: \"$ac_try\"") >&5
8971
echo "$as_me:8971: \$? = $ac_status" >&5
8972
(exit $ac_status); }; }; then
8974
nonblock="ioctlsocket"
8975
cat >>confdefs.h <<\EOF
8976
#define HAVE_IOCTLSOCKET 1
8980
echo "$as_me: failed program was:" >&5
8981
cat conftest.$ac_ext >&5
8983
cat >conftest.$ac_ext <<_ACEOF
8984
#line 8984 "configure"
8985
#include "confdefs.h"
8987
/* headers for IoctlSocket test (Amiga?) */
8988
#include <sys/ioctl.h>
8994
/* IoctlSocket source code */
8995
int flags = IoctlSocket(socket, FIONBIO, (long)1);
9001
rm -f conftest.$ac_objext
9002
if { (eval echo "$as_me:9002: \"$ac_compile\"") >&5
9003
(eval $ac_compile) 2>&5
9005
echo "$as_me:9005: \$? = $ac_status" >&5
9006
(exit $ac_status); } &&
9007
{ ac_try='test -s conftest.$ac_objext'
9008
{ (eval echo "$as_me:9008: \"$ac_try\"") >&5
9011
echo "$as_me:9011: \$? = $ac_status" >&5
9012
(exit $ac_status); }; }; then
9014
nonblock="IoctlSocket"
9015
cat >>confdefs.h <<\EOF
9016
#define HAVE_IOCTLSOCKET_CASE 1
9020
echo "$as_me: failed program was:" >&5
9021
cat conftest.$ac_ext >&5
9024
cat >>confdefs.h <<\EOF
9025
#define HAVE_DISABLED_NONBLOCKING 1
9029
rm -f conftest.$ac_objext conftest.$ac_ext
9032
rm -f conftest.$ac_objext conftest.$ac_ext
9035
rm -f conftest.$ac_objext conftest.$ac_ext
9038
rm -f conftest.$ac_objext conftest.$ac_ext
9039
echo "$as_me:9039: result: $nonblock" >&5
9040
echo "${ECHO_T}$nonblock" >&6
9042
if test "$nonblock" = "nada"; then
9043
{ echo "$as_me:9043: WARNING: non-block sockets disabled" >&5
9044
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
9051
echo "$as_me:9051: checking non-blocking sockets style" >&5
9052
echo $ECHO_N "checking non-blocking sockets style... $ECHO_C" >&6
9054
cat >conftest.$ac_ext <<_ACEOF
9055
#line 9055 "configure"
9056
#include "confdefs.h"
9058
/* headers for O_NONBLOCK test */
9059
#include <sys/types.h>
9067
/* try to compile O_NONBLOCK */
9069
#if defined(sun) || defined(__sun__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
9070
# if defined(__SVR4) || defined(__srv4__)
9071
# define PLATFORM_SOLARIS
9073
# define PLATFORM_SUNOS4
9076
#if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX4)
9077
# define PLATFORM_AIX_V3
9080
#if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3)
9081
#error "O_NONBLOCK does not work on this platform"
9084
int flags = fcntl(socket, F_SETFL, flags | O_NONBLOCK);
9090
rm -f conftest.$ac_objext
9091
if { (eval echo "$as_me:9091: \"$ac_compile\"") >&5
9092
(eval $ac_compile) 2>&5
9094
echo "$as_me:9094: \$? = $ac_status" >&5
9095
(exit $ac_status); } &&
9096
{ ac_try='test -s conftest.$ac_objext'
9097
{ (eval echo "$as_me:9097: \"$ac_try\"") >&5
9100
echo "$as_me:9100: \$? = $ac_status" >&5
9101
(exit $ac_status); }; }; then
9103
nonblock="O_NONBLOCK"
9104
cat >>confdefs.h <<\EOF
9105
#define HAVE_O_NONBLOCK 1
9109
echo "$as_me: failed program was:" >&5
9110
cat conftest.$ac_ext >&5
9112
cat >conftest.$ac_ext <<_ACEOF
9113
#line 9113 "configure"
9114
#include "confdefs.h"
9116
/* headers for FIONBIO test */
9118
#include <stropts.h>
9124
/* FIONBIO source test */
9125
int flags = ioctl(socket, FIONBIO, &flags);
9131
rm -f conftest.$ac_objext
9132
if { (eval echo "$as_me:9132: \"$ac_compile\"") >&5
9133
(eval $ac_compile) 2>&5
9135
echo "$as_me:9135: \$? = $ac_status" >&5
9136
(exit $ac_status); } &&
9137
{ ac_try='test -s conftest.$ac_objext'
9138
{ (eval echo "$as_me:9138: \"$ac_try\"") >&5
9141
echo "$as_me:9141: \$? = $ac_status" >&5
9142
(exit $ac_status); }; }; then
9145
cat >>confdefs.h <<\EOF
9146
#define HAVE_FIONBIO 1
9150
echo "$as_me: failed program was:" >&5
9151
cat conftest.$ac_ext >&5
9153
cat >conftest.$ac_ext <<_ACEOF
9154
#line 9154 "configure"
9155
#include "confdefs.h"
9157
/* headers for ioctlsocket test (cygwin?) */
9158
#include <windows.h>
9164
/* ioctlsocket source code */
9165
int flags = ioctlsocket(socket, FIONBIO, &flags);
9171
rm -f conftest.$ac_objext
9172
if { (eval echo "$as_me:9172: \"$ac_compile\"") >&5
9173
(eval $ac_compile) 2>&5
9175
echo "$as_me:9175: \$? = $ac_status" >&5
9176
(exit $ac_status); } &&
9177
{ ac_try='test -s conftest.$ac_objext'
9178
{ (eval echo "$as_me:9178: \"$ac_try\"") >&5
9181
echo "$as_me:9181: \$? = $ac_status" >&5
9182
(exit $ac_status); }; }; then
9184
nonblock="ioctlsocket"
9185
cat >>confdefs.h <<\EOF
9186
#define HAVE_IOCTLSOCKET 1
9190
echo "$as_me: failed program was:" >&5
9191
cat conftest.$ac_ext >&5
9193
cat >conftest.$ac_ext <<_ACEOF
9194
#line 9194 "configure"
9195
#include "confdefs.h"
9197
/* headers for IoctlSocket test (Amiga?) */
9198
#include <sys/ioctl.h>
9204
/* IoctlSocket source code */
9205
int flags = IoctlSocket(socket, FIONBIO, (long)1);
9211
rm -f conftest.$ac_objext
9212
if { (eval echo "$as_me:9212: \"$ac_compile\"") >&5
9213
(eval $ac_compile) 2>&5
9215
echo "$as_me:9215: \$? = $ac_status" >&5
9216
(exit $ac_status); } &&
9217
{ ac_try='test -s conftest.$ac_objext'
9218
{ (eval echo "$as_me:9218: \"$ac_try\"") >&5
9221
echo "$as_me:9221: \$? = $ac_status" >&5
9222
(exit $ac_status); }; }; then
9224
nonblock="IoctlSocket"
9225
cat >>confdefs.h <<\EOF
9226
#define HAVE_IOCTLSOCKET_CASE 1
9230
echo "$as_me: failed program was:" >&5
9231
cat conftest.$ac_ext >&5
9234
cat >>confdefs.h <<\EOF
9235
#define HAVE_DISABLED_NONBLOCKING 1
9239
rm -f conftest.$ac_objext conftest.$ac_ext
9242
rm -f conftest.$ac_objext conftest.$ac_ext
9245
rm -f conftest.$ac_objext conftest.$ac_ext
9248
rm -f conftest.$ac_objext conftest.$ac_ext
9249
echo "$as_me:9249: result: $nonblock" >&5
9250
echo "${ECHO_T}$nonblock" >&6
9252
if test "$nonblock" = "nada"; then
9253
{ echo "$as_me:9253: WARNING: non-block sockets disabled" >&5
9254
echo "$as_me: WARNING: non-block sockets disabled" >&2;}
9259
# Check whether --with-egd-socket or --without-egd-socket was given.
9260
if test "${with_egd_socket+set}" = set; then
9261
withval="$with_egd_socket"
9262
EGD_SOCKET="$withval"
9265
if test -n "$EGD_SOCKET" ; then
9266
cat >>confdefs.h <<EOF
9267
#define EGD_SOCKET "$EGD_SOCKET"
9272
# Check whether --with-random or --without-random was given.
9273
if test "${with_random+set}" = set; then
9274
withval="$with_random"
9275
RANDOM_FILE="$withval"
9278
echo "$as_me:9278: checking for \"/dev/urandom\"" >&5
9279
echo $ECHO_N "checking for \"/dev/urandom\"... $ECHO_C" >&6
9280
if test "${ac_cv_file___dev_urandom_+set}" = set; then
9281
echo $ECHO_N "(cached) $ECHO_C" >&6
9283
test "$cross_compiling" = yes &&
9284
{ { echo "$as_me:9284: error: cannot check for file existence when cross compiling" >&5
9285
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
9286
{ (exit 1); exit 1; }; }
9287
if test -r ""/dev/urandom""; then
9288
ac_cv_file___dev_urandom_=yes
9290
ac_cv_file___dev_urandom_=no
9293
echo "$as_me:9293: result: $ac_cv_file___dev_urandom_" >&5
9294
echo "${ECHO_T}$ac_cv_file___dev_urandom_" >&6
9295
if test $ac_cv_file___dev_urandom_ = yes; then
9297
RANDOM_FILE="/dev/urandom";
9302
if test -n "$RANDOM_FILE" ; then
9304
cat >>confdefs.h <<EOF
9305
#define RANDOM_FILE "$RANDOM_FILE"
9310
# Check whether --with-krb4-includes or --without-krb4-includes was given.
9311
if test "${with_krb4_includes+set}" = set; then
9312
withval="$with_krb4_includes"
9314
CPPFLAGS="$CPPFLAGS -I$withval"
9320
# Check whether --with-krb4-libs or --without-krb4-libs was given.
9321
if test "${with_krb4_libs+set}" = set; then
9322
withval="$with_krb4_libs"
9324
LDFLAGS="$LDFLAGS -L$withval"
9332
# Check whether --with-krb4 or --without-krb4 was given.
9333
if test "${with_krb4+set}" = set; then
9334
withval="$with_krb4"
9337
if test X"$OPT_KRB4" != Xyes
9339
LDFLAGS="$LDFLAGS -L$OPT_KRB4/lib"
9340
KRB4LIB="$OPT_KRB4/lib"
9341
CPPFLAGS="$CPPFLAGS -I$OPT_KRB4/include"
9342
KRB4INC="$OPT_KRB4/include"
9348
echo "$as_me:9348: checking if Kerberos4 support is requested" >&5
9349
echo $ECHO_N "checking if Kerberos4 support is requested... $ECHO_C" >&6
9351
if test "$want_krb4" = yes
9353
if test "$ipv6" = "yes"; then
9354
echo krb4 is not compatible with IPv6
9357
echo "$as_me:9357: result: yes" >&5
9358
echo "${ECHO_T}yes" >&6
9360
echo "$as_me:9360: checking where to look for Kerberos4" >&5
9361
echo $ECHO_N "checking where to look for Kerberos4... $ECHO_C" >&6
9362
if test X"$OPT_KRB4" = Xyes
9364
echo "$as_me:9364: result: defaults" >&5
9365
echo "${ECHO_T}defaults" >&6
9367
echo "$as_me:9367: result: libs in $KRB4LIB, headers in $KRB4INC" >&5
9368
echo "${ECHO_T}libs in $KRB4LIB, headers in $KRB4INC" >&6
9371
echo "$as_me:9371: checking for des_pcbc_encrypt in -ldes" >&5
9372
echo $ECHO_N "checking for des_pcbc_encrypt in -ldes... $ECHO_C" >&6
9373
if test "${ac_cv_lib_des_des_pcbc_encrypt+set}" = set; then
9374
echo $ECHO_N "(cached) $ECHO_C" >&6
9376
ac_check_lib_save_LIBS=$LIBS
9378
cat >conftest.$ac_ext <<_ACEOF
9379
#line 9379 "configure"
9380
#include "confdefs.h"
9382
/* Override any gcc2 internal prototype to avoid an error. */
9386
/* We use char because int might match the return type of a gcc2
9387
builtin and then its argument prototype would still apply. */
9388
char des_pcbc_encrypt ();
9392
des_pcbc_encrypt ();
9397
rm -f conftest.$ac_objext conftest$ac_exeext
9398
if { (eval echo "$as_me:9398: \"$ac_link\"") >&5
9399
(eval $ac_link) 2>&5
9401
echo "$as_me:9401: \$? = $ac_status" >&5
9402
(exit $ac_status); } &&
9403
{ ac_try='test -s conftest$ac_exeext'
9404
{ (eval echo "$as_me:9404: \"$ac_try\"") >&5
9407
echo "$as_me:9407: \$? = $ac_status" >&5
9408
(exit $ac_status); }; }; then
9409
ac_cv_lib_des_des_pcbc_encrypt=yes
9411
echo "$as_me: failed program was:" >&5
9412
cat conftest.$ac_ext >&5
9413
ac_cv_lib_des_des_pcbc_encrypt=no
9415
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9416
LIBS=$ac_check_lib_save_LIBS
9418
echo "$as_me:9418: result: $ac_cv_lib_des_des_pcbc_encrypt" >&5
9419
echo "${ECHO_T}$ac_cv_lib_des_des_pcbc_encrypt" >&6
9420
if test $ac_cv_lib_des_des_pcbc_encrypt = yes; then
9422
for ac_header in des.h
9424
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9425
echo "$as_me:9425: checking for $ac_header" >&5
9426
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9427
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9428
echo $ECHO_N "(cached) $ECHO_C" >&6
9430
cat >conftest.$ac_ext <<_ACEOF
9431
#line 9431 "configure"
9432
#include "confdefs.h"
9433
#include <$ac_header>
9435
if { (eval echo "$as_me:9435: \"$ac_cpp conftest.$ac_ext\"") >&5
9436
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9438
egrep -v '^ *\+' conftest.er1 >conftest.err
9440
cat conftest.err >&5
9441
echo "$as_me:9441: \$? = $ac_status" >&5
9442
(exit $ac_status); } >/dev/null; then
9443
if test -s conftest.err; then
9444
ac_cpp_err=$ac_c_preproc_warn_flag
9451
if test -z "$ac_cpp_err"; then
9452
eval "$as_ac_Header=yes"
9454
echo "$as_me: failed program was:" >&5
9455
cat conftest.$ac_ext >&5
9456
eval "$as_ac_Header=no"
9458
rm -f conftest.err conftest.$ac_ext
9460
echo "$as_me:9460: result: `eval echo '${'$as_ac_Header'}'`" >&5
9461
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9462
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9463
cat >>confdefs.h <<EOF
9464
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9470
echo "$as_me:9470: checking for res_search" >&5
9471
echo $ECHO_N "checking for res_search... $ECHO_C" >&6
9472
if test "${ac_cv_func_res_search+set}" = set; then
9473
echo $ECHO_N "(cached) $ECHO_C" >&6
9475
cat >conftest.$ac_ext <<_ACEOF
9476
#line 9476 "configure"
9477
#include "confdefs.h"
9478
/* System header to define __stub macros and hopefully few prototypes,
9479
which can conflict with char res_search (); below. */
9481
/* Override any gcc2 internal prototype to avoid an error. */
9485
/* We use char because int might match the return type of a gcc2
9486
builtin and then its argument prototype would still apply. */
9493
/* The GNU C library defines this for functions which it implements
9494
to always fail with ENOSYS. Some functions are actually named
9495
something starting with __ and the normal name is an alias. */
9496
#if defined (__stub_res_search) || defined (__stub___res_search)
9506
rm -f conftest.$ac_objext conftest$ac_exeext
9507
if { (eval echo "$as_me:9507: \"$ac_link\"") >&5
9508
(eval $ac_link) 2>&5
9510
echo "$as_me:9510: \$? = $ac_status" >&5
9511
(exit $ac_status); } &&
9512
{ ac_try='test -s conftest$ac_exeext'
9513
{ (eval echo "$as_me:9513: \"$ac_try\"") >&5
9516
echo "$as_me:9516: \$? = $ac_status" >&5
9517
(exit $ac_status); }; }; then
9518
ac_cv_func_res_search=yes
9520
echo "$as_me: failed program was:" >&5
9521
cat conftest.$ac_ext >&5
9522
ac_cv_func_res_search=no
9524
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9526
echo "$as_me:9526: result: $ac_cv_func_res_search" >&5
9527
echo "${ECHO_T}$ac_cv_func_res_search" >&6
9528
if test $ac_cv_func_res_search = yes; then
9532
echo "$as_me:9532: checking for res_search in -lresolv" >&5
9533
echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6
9534
if test "${ac_cv_lib_resolv_res_search+set}" = set; then
9535
echo $ECHO_N "(cached) $ECHO_C" >&6
9537
ac_check_lib_save_LIBS=$LIBS
9538
LIBS="-lresolv $LIBS"
9539
cat >conftest.$ac_ext <<_ACEOF
9540
#line 9540 "configure"
9541
#include "confdefs.h"
9543
/* Override any gcc2 internal prototype to avoid an error. */
9547
/* We use char because int might match the return type of a gcc2
9548
builtin and then its argument prototype would still apply. */
9558
rm -f conftest.$ac_objext conftest$ac_exeext
9559
if { (eval echo "$as_me:9559: \"$ac_link\"") >&5
9560
(eval $ac_link) 2>&5
9562
echo "$as_me:9562: \$? = $ac_status" >&5
9563
(exit $ac_status); } &&
9564
{ ac_try='test -s conftest$ac_exeext'
9565
{ (eval echo "$as_me:9565: \"$ac_try\"") >&5
9568
echo "$as_me:9568: \$? = $ac_status" >&5
9569
(exit $ac_status); }; }; then
9570
ac_cv_lib_resolv_res_search=yes
9572
echo "$as_me: failed program was:" >&5
9573
cat conftest.$ac_ext >&5
9574
ac_cv_lib_resolv_res_search=no
9576
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9577
LIBS=$ac_check_lib_save_LIBS
9579
echo "$as_me:9579: result: $ac_cv_lib_resolv_res_search" >&5
9580
echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6
9581
if test $ac_cv_lib_resolv_res_search = yes; then
9582
cat >>confdefs.h <<EOF
9583
#define HAVE_LIBRESOLV 1
9586
LIBS="-lresolv $LIBS"
9592
echo "$as_me:9592: checking for krb_net_read in -lkrb" >&5
9593
echo $ECHO_N "checking for krb_net_read in -lkrb... $ECHO_C" >&6
9594
if test "${ac_cv_lib_krb_krb_net_read+set}" = set; then
9595
echo $ECHO_N "(cached) $ECHO_C" >&6
9597
ac_check_lib_save_LIBS=$LIBS
9599
cat >conftest.$ac_ext <<_ACEOF
9600
#line 9600 "configure"
9601
#include "confdefs.h"
9603
/* Override any gcc2 internal prototype to avoid an error. */
9607
/* We use char because int might match the return type of a gcc2
9608
builtin and then its argument prototype would still apply. */
9609
char krb_net_read ();
9618
rm -f conftest.$ac_objext conftest$ac_exeext
9619
if { (eval echo "$as_me:9619: \"$ac_link\"") >&5
9620
(eval $ac_link) 2>&5
9622
echo "$as_me:9622: \$? = $ac_status" >&5
9623
(exit $ac_status); } &&
9624
{ ac_try='test -s conftest$ac_exeext'
9625
{ (eval echo "$as_me:9625: \"$ac_try\"") >&5
9628
echo "$as_me:9628: \$? = $ac_status" >&5
9629
(exit $ac_status); }; }; then
9630
ac_cv_lib_krb_krb_net_read=yes
9632
echo "$as_me: failed program was:" >&5
9633
cat conftest.$ac_ext >&5
9634
ac_cv_lib_krb_krb_net_read=no
9636
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9637
LIBS=$ac_check_lib_save_LIBS
9639
echo "$as_me:9639: result: $ac_cv_lib_krb_krb_net_read" >&5
9640
echo "${ECHO_T}$ac_cv_lib_krb_krb_net_read" >&6
9641
if test $ac_cv_lib_krb_krb_net_read = yes; then
9643
for ac_header in krb.h
9645
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9646
echo "$as_me:9646: checking for $ac_header" >&5
9647
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9648
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9649
echo $ECHO_N "(cached) $ECHO_C" >&6
9651
cat >conftest.$ac_ext <<_ACEOF
9652
#line 9652 "configure"
9653
#include "confdefs.h"
9654
#include <$ac_header>
9656
if { (eval echo "$as_me:9656: \"$ac_cpp conftest.$ac_ext\"") >&5
9657
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9659
egrep -v '^ *\+' conftest.er1 >conftest.err
9661
cat conftest.err >&5
9662
echo "$as_me:9662: \$? = $ac_status" >&5
9663
(exit $ac_status); } >/dev/null; then
9664
if test -s conftest.err; then
9665
ac_cpp_err=$ac_c_preproc_warn_flag
9672
if test -z "$ac_cpp_err"; then
9673
eval "$as_ac_Header=yes"
9675
echo "$as_me: failed program was:" >&5
9676
cat conftest.$ac_ext >&5
9677
eval "$as_ac_Header=no"
9679
rm -f conftest.err conftest.$ac_ext
9681
echo "$as_me:9681: result: `eval echo '${'$as_ac_Header'}'`" >&5
9682
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9683
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9684
cat >>confdefs.h <<EOF
9685
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9691
LIBS="-lkrb -ldes $LIBS"
9693
for ac_func in krb_get_our_ip_for_realm
9695
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9696
echo "$as_me:9696: checking for $ac_func" >&5
9697
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9698
if eval "test \"\${$as_ac_var+set}\" = set"; then
9699
echo $ECHO_N "(cached) $ECHO_C" >&6
9701
cat >conftest.$ac_ext <<_ACEOF
9702
#line 9702 "configure"
9703
#include "confdefs.h"
9704
/* System header to define __stub macros and hopefully few prototypes,
9705
which can conflict with char $ac_func (); below. */
9707
/* Override any gcc2 internal prototype to avoid an error. */
9711
/* We use char because int might match the return type of a gcc2
9712
builtin and then its argument prototype would still apply. */
9719
/* The GNU C library defines this for functions which it implements
9720
to always fail with ENOSYS. Some functions are actually named
9721
something starting with __ and the normal name is an alias. */
9722
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9732
rm -f conftest.$ac_objext conftest$ac_exeext
9733
if { (eval echo "$as_me:9733: \"$ac_link\"") >&5
9734
(eval $ac_link) 2>&5
9736
echo "$as_me:9736: \$? = $ac_status" >&5
9737
(exit $ac_status); } &&
9738
{ ac_try='test -s conftest$ac_exeext'
9739
{ (eval echo "$as_me:9739: \"$ac_try\"") >&5
9742
echo "$as_me:9742: \$? = $ac_status" >&5
9743
(exit $ac_status); }; }; then
9744
eval "$as_ac_var=yes"
9746
echo "$as_me: failed program was:" >&5
9747
cat conftest.$ac_ext >&5
9748
eval "$as_ac_var=no"
9750
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9752
echo "$as_me:9752: result: `eval echo '${'$as_ac_var'}'`" >&5
9753
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9754
if test `eval echo '${'$as_ac_var'}'` = yes; then
9755
cat >>confdefs.h <<EOF
9756
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9762
cat >>confdefs.h <<\EOF
9768
for ac_func in strlcpy
9770
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9771
echo "$as_me:9771: checking for $ac_func" >&5
9772
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9773
if eval "test \"\${$as_ac_var+set}\" = set"; then
9774
echo $ECHO_N "(cached) $ECHO_C" >&6
9776
cat >conftest.$ac_ext <<_ACEOF
9777
#line 9777 "configure"
9778
#include "confdefs.h"
9779
/* System header to define __stub macros and hopefully few prototypes,
9780
which can conflict with char $ac_func (); below. */
9782
/* Override any gcc2 internal prototype to avoid an error. */
9786
/* We use char because int might match the return type of a gcc2
9787
builtin and then its argument prototype would still apply. */
9794
/* The GNU C library defines this for functions which it implements
9795
to always fail with ENOSYS. Some functions are actually named
9796
something starting with __ and the normal name is an alias. */
9797
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9807
rm -f conftest.$ac_objext conftest$ac_exeext
9808
if { (eval echo "$as_me:9808: \"$ac_link\"") >&5
9809
(eval $ac_link) 2>&5
9811
echo "$as_me:9811: \$? = $ac_status" >&5
9812
(exit $ac_status); } &&
9813
{ ac_try='test -s conftest$ac_exeext'
9814
{ (eval echo "$as_me:9814: \"$ac_try\"") >&5
9817
echo "$as_me:9817: \$? = $ac_status" >&5
9818
(exit $ac_status); }; }; then
9819
eval "$as_ac_var=yes"
9821
echo "$as_me: failed program was:" >&5
9822
cat conftest.$ac_ext >&5
9823
eval "$as_ac_var=no"
9825
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9827
echo "$as_me:9827: result: `eval echo '${'$as_ac_var'}'`" >&5
9828
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9829
if test `eval echo '${'$as_ac_var'}'` = yes; then
9830
cat >>confdefs.h <<EOF
9831
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9842
echo "$as_me:9842: result: no" >&5
9843
echo "${ECHO_T}no" >&6
9848
# Check whether --with-ssl or --without-ssl was given.
9849
if test "${with_ssl+set}" = set; then
9855
if test X"$OPT_SSL" = Xno
9857
{ echo "$as_me:9857: WARNING: SSL/https support disabled" >&5
9858
echo "$as_me: WARNING: SSL/https support disabled" >&2;}
9861
CLEANLDFLAGS="$LDFLAGS"
9862
CLEANCPPFLAGS="$CPPFLAGS"
9866
EXTRA_SSL=/usr/local/ssl ;;
9871
LDFLAGS="$LDFLAGS -L$EXTRA_SSL/lib"
9872
CPPFLAGS="$CPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
9876
echo "$as_me:9876: checking for CRYPTO_lock in -lcrypto" >&5
9877
echo $ECHO_N "checking for CRYPTO_lock in -lcrypto... $ECHO_C" >&6
9878
if test "${ac_cv_lib_crypto_CRYPTO_lock+set}" = set; then
9879
echo $ECHO_N "(cached) $ECHO_C" >&6
9881
ac_check_lib_save_LIBS=$LIBS
9882
LIBS="-lcrypto $LIBS"
9883
cat >conftest.$ac_ext <<_ACEOF
9884
#line 9884 "configure"
9885
#include "confdefs.h"
9887
/* Override any gcc2 internal prototype to avoid an error. */
9891
/* We use char because int might match the return type of a gcc2
9892
builtin and then its argument prototype would still apply. */
9893
char CRYPTO_lock ();
9902
rm -f conftest.$ac_objext conftest$ac_exeext
9903
if { (eval echo "$as_me:9903: \"$ac_link\"") >&5
9904
(eval $ac_link) 2>&5
9906
echo "$as_me:9906: \$? = $ac_status" >&5
9907
(exit $ac_status); } &&
9908
{ ac_try='test -s conftest$ac_exeext'
9909
{ (eval echo "$as_me:9909: \"$ac_try\"") >&5
9912
echo "$as_me:9912: \$? = $ac_status" >&5
9913
(exit $ac_status); }; }; then
9914
ac_cv_lib_crypto_CRYPTO_lock=yes
9916
echo "$as_me: failed program was:" >&5
9917
cat conftest.$ac_ext >&5
9918
ac_cv_lib_crypto_CRYPTO_lock=no
9920
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9921
LIBS=$ac_check_lib_save_LIBS
9923
echo "$as_me:9923: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
9924
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_lock" >&6
9925
if test $ac_cv_lib_crypto_CRYPTO_lock = yes; then
9931
OLDLDFLAGS="$LDFLAGS"
9932
OLDCPPFLAGS="$CPPFLAGS"
9933
LDFLAGS="$CLEANLDFLAGS -L$EXTRA_SSL/lib"
9934
CPPFLAGS="$CLEANCPPFLAGS -I$EXTRA_SSL/include/openssl -I$EXTRA_SSL/include"
9935
echo "$as_me:9935: checking for CRYPTO_add_lock in -lcrypto" >&5
9936
echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
9937
if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
9938
echo $ECHO_N "(cached) $ECHO_C" >&6
9940
ac_check_lib_save_LIBS=$LIBS
9941
LIBS="-lcrypto $LIBS"
9942
cat >conftest.$ac_ext <<_ACEOF
9943
#line 9943 "configure"
9944
#include "confdefs.h"
9946
/* Override any gcc2 internal prototype to avoid an error. */
9950
/* We use char because int might match the return type of a gcc2
9951
builtin and then its argument prototype would still apply. */
9952
char CRYPTO_add_lock ();
9961
rm -f conftest.$ac_objext conftest$ac_exeext
9962
if { (eval echo "$as_me:9962: \"$ac_link\"") >&5
9963
(eval $ac_link) 2>&5
9965
echo "$as_me:9965: \$? = $ac_status" >&5
9966
(exit $ac_status); } &&
9967
{ ac_try='test -s conftest$ac_exeext'
9968
{ (eval echo "$as_me:9968: \"$ac_try\"") >&5
9971
echo "$as_me:9971: \$? = $ac_status" >&5
9972
(exit $ac_status); }; }; then
9973
ac_cv_lib_crypto_CRYPTO_add_lock=yes
9975
echo "$as_me: failed program was:" >&5
9976
cat conftest.$ac_ext >&5
9977
ac_cv_lib_crypto_CRYPTO_add_lock=no
9979
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9980
LIBS=$ac_check_lib_save_LIBS
9982
echo "$as_me:9982: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
9983
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
9984
if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
9989
LDFLAGS="$OLDLDFLAGS"
9990
CPPFLAGS="$OLDCPPFLAGS"
9996
if test "$HAVECRYPTO" = "yes"; then
9998
echo "$as_me:9998: checking for CRYPTO_add_lock in -lcrypto" >&5
9999
echo $ECHO_N "checking for CRYPTO_add_lock in -lcrypto... $ECHO_C" >&6
10000
if test "${ac_cv_lib_crypto_CRYPTO_add_lock+set}" = set; then
10001
echo $ECHO_N "(cached) $ECHO_C" >&6
10003
ac_check_lib_save_LIBS=$LIBS
10004
LIBS="-lcrypto $LIBS"
10005
cat >conftest.$ac_ext <<_ACEOF
10006
#line 10006 "configure"
10007
#include "confdefs.h"
10009
/* Override any gcc2 internal prototype to avoid an error. */
10013
/* We use char because int might match the return type of a gcc2
10014
builtin and then its argument prototype would still apply. */
10015
char CRYPTO_add_lock ();
10019
CRYPTO_add_lock ();
10024
rm -f conftest.$ac_objext conftest$ac_exeext
10025
if { (eval echo "$as_me:10025: \"$ac_link\"") >&5
10026
(eval $ac_link) 2>&5
10028
echo "$as_me:10028: \$? = $ac_status" >&5
10029
(exit $ac_status); } &&
10030
{ ac_try='test -s conftest$ac_exeext'
10031
{ (eval echo "$as_me:10031: \"$ac_try\"") >&5
10032
(eval $ac_try) 2>&5
10034
echo "$as_me:10034: \$? = $ac_status" >&5
10035
(exit $ac_status); }; }; then
10036
ac_cv_lib_crypto_CRYPTO_add_lock=yes
10038
echo "$as_me: failed program was:" >&5
10039
cat conftest.$ac_ext >&5
10040
ac_cv_lib_crypto_CRYPTO_add_lock=no
10042
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10043
LIBS=$ac_check_lib_save_LIBS
10045
echo "$as_me:10045: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
10046
echo "${ECHO_T}$ac_cv_lib_crypto_CRYPTO_add_lock" >&6
10047
if test $ac_cv_lib_crypto_CRYPTO_add_lock = yes; then
10048
cat >>confdefs.h <<EOF
10049
#define HAVE_LIBCRYPTO 1
10052
LIBS="-lcrypto $LIBS"
10056
echo "$as_me:10056: checking for SSL_connect in -lssl" >&5
10057
echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
10058
if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
10059
echo $ECHO_N "(cached) $ECHO_C" >&6
10061
ac_check_lib_save_LIBS=$LIBS
10063
cat >conftest.$ac_ext <<_ACEOF
10064
#line 10064 "configure"
10065
#include "confdefs.h"
10067
/* Override any gcc2 internal prototype to avoid an error. */
10071
/* We use char because int might match the return type of a gcc2
10072
builtin and then its argument prototype would still apply. */
10073
char SSL_connect ();
10082
rm -f conftest.$ac_objext conftest$ac_exeext
10083
if { (eval echo "$as_me:10083: \"$ac_link\"") >&5
10084
(eval $ac_link) 2>&5
10086
echo "$as_me:10086: \$? = $ac_status" >&5
10087
(exit $ac_status); } &&
10088
{ ac_try='test -s conftest$ac_exeext'
10089
{ (eval echo "$as_me:10089: \"$ac_try\"") >&5
10090
(eval $ac_try) 2>&5
10092
echo "$as_me:10092: \$? = $ac_status" >&5
10093
(exit $ac_status); }; }; then
10094
ac_cv_lib_ssl_SSL_connect=yes
10096
echo "$as_me: failed program was:" >&5
10097
cat conftest.$ac_ext >&5
10098
ac_cv_lib_ssl_SSL_connect=no
10100
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10101
LIBS=$ac_check_lib_save_LIBS
10103
echo "$as_me:10103: result: $ac_cv_lib_ssl_SSL_connect" >&5
10104
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
10105
if test $ac_cv_lib_ssl_SSL_connect = yes; then
10106
cat >>confdefs.h <<EOF
10107
#define HAVE_LIBSSL 1
10114
if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
10115
echo "$as_me:10115: checking for ssl with RSAglue/rsaref libs in use" >&5
10116
echo $ECHO_N "checking for ssl with RSAglue/rsaref libs in use... $ECHO_C" >&6;
10118
LIBS="$LIBS -lRSAglue -lrsaref"
10120
echo "$as_me:10120: checking for SSL_connect in -lssl" >&5
10121
echo $ECHO_N "checking for SSL_connect in -lssl... $ECHO_C" >&6
10122
if test "${ac_cv_lib_ssl_SSL_connect+set}" = set; then
10123
echo $ECHO_N "(cached) $ECHO_C" >&6
10125
ac_check_lib_save_LIBS=$LIBS
10127
cat >conftest.$ac_ext <<_ACEOF
10128
#line 10128 "configure"
10129
#include "confdefs.h"
10131
/* Override any gcc2 internal prototype to avoid an error. */
10135
/* We use char because int might match the return type of a gcc2
10136
builtin and then its argument prototype would still apply. */
10137
char SSL_connect ();
10146
rm -f conftest.$ac_objext conftest$ac_exeext
10147
if { (eval echo "$as_me:10147: \"$ac_link\"") >&5
10148
(eval $ac_link) 2>&5
10150
echo "$as_me:10150: \$? = $ac_status" >&5
10151
(exit $ac_status); } &&
10152
{ ac_try='test -s conftest$ac_exeext'
10153
{ (eval echo "$as_me:10153: \"$ac_try\"") >&5
10154
(eval $ac_try) 2>&5
10156
echo "$as_me:10156: \$? = $ac_status" >&5
10157
(exit $ac_status); }; }; then
10158
ac_cv_lib_ssl_SSL_connect=yes
10160
echo "$as_me: failed program was:" >&5
10161
cat conftest.$ac_ext >&5
10162
ac_cv_lib_ssl_SSL_connect=no
10164
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10165
LIBS=$ac_check_lib_save_LIBS
10167
echo "$as_me:10167: result: $ac_cv_lib_ssl_SSL_connect" >&5
10168
echo "${ECHO_T}$ac_cv_lib_ssl_SSL_connect" >&6
10169
if test $ac_cv_lib_ssl_SSL_connect = yes; then
10170
cat >>confdefs.h <<EOF
10171
#define HAVE_LIBSSL 1
10178
if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
10179
echo "$as_me:10179: result: no" >&5
10180
echo "${ECHO_T}no" >&6
10183
echo "$as_me:10183: result: yes" >&5
10184
echo "${ECHO_T}yes" >&6
10188
for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
10189
openssl/pem.h openssl/ssl.h openssl/err.h
10191
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10192
echo "$as_me:10192: checking for $ac_header" >&5
10193
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10194
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10195
echo $ECHO_N "(cached) $ECHO_C" >&6
10197
cat >conftest.$ac_ext <<_ACEOF
10198
#line 10198 "configure"
10199
#include "confdefs.h"
10200
#include <$ac_header>
10202
if { (eval echo "$as_me:10202: \"$ac_cpp conftest.$ac_ext\"") >&5
10203
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10205
egrep -v '^ *\+' conftest.er1 >conftest.err
10207
cat conftest.err >&5
10208
echo "$as_me:10208: \$? = $ac_status" >&5
10209
(exit $ac_status); } >/dev/null; then
10210
if test -s conftest.err; then
10211
ac_cpp_err=$ac_c_preproc_warn_flag
10218
if test -z "$ac_cpp_err"; then
10219
eval "$as_ac_Header=yes"
10221
echo "$as_me: failed program was:" >&5
10222
cat conftest.$ac_ext >&5
10223
eval "$as_ac_Header=no"
10225
rm -f conftest.err conftest.$ac_ext
10227
echo "$as_me:10227: result: `eval echo '${'$as_ac_Header'}'`" >&5
10228
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10229
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10230
cat >>confdefs.h <<EOF
10231
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10237
if test $ac_cv_header_openssl_x509_h = no; then
10239
for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
10241
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10242
echo "$as_me:10242: checking for $ac_header" >&5
10243
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10244
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10245
echo $ECHO_N "(cached) $ECHO_C" >&6
10247
cat >conftest.$ac_ext <<_ACEOF
10248
#line 10248 "configure"
10249
#include "confdefs.h"
10250
#include <$ac_header>
10252
if { (eval echo "$as_me:10252: \"$ac_cpp conftest.$ac_ext\"") >&5
10253
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10255
egrep -v '^ *\+' conftest.er1 >conftest.err
10257
cat conftest.err >&5
10258
echo "$as_me:10258: \$? = $ac_status" >&5
10259
(exit $ac_status); } >/dev/null; then
10260
if test -s conftest.err; then
10261
ac_cpp_err=$ac_c_preproc_warn_flag
10268
if test -z "$ac_cpp_err"; then
10269
eval "$as_ac_Header=yes"
10271
echo "$as_me: failed program was:" >&5
10272
cat conftest.$ac_ext >&5
10273
eval "$as_ac_Header=no"
10275
rm -f conftest.err conftest.$ac_ext
10277
echo "$as_me:10277: result: `eval echo '${'$as_ac_Header'}'`" >&5
10278
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10279
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10280
cat >>confdefs.h <<EOF
10281
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10289
for ac_header in openssl/engine.h
10291
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10292
echo "$as_me:10292: checking for $ac_header" >&5
10293
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10294
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10295
echo $ECHO_N "(cached) $ECHO_C" >&6
10297
cat >conftest.$ac_ext <<_ACEOF
10298
#line 10298 "configure"
10299
#include "confdefs.h"
10300
#include <$ac_header>
10302
if { (eval echo "$as_me:10302: \"$ac_cpp conftest.$ac_ext\"") >&5
10303
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10305
egrep -v '^ *\+' conftest.er1 >conftest.err
10307
cat conftest.err >&5
10308
echo "$as_me:10308: \$? = $ac_status" >&5
10309
(exit $ac_status); } >/dev/null; then
10310
if test -s conftest.err; then
10311
ac_cpp_err=$ac_c_preproc_warn_flag
10318
if test -z "$ac_cpp_err"; then
10319
eval "$as_ac_Header=yes"
10321
echo "$as_me: failed program was:" >&5
10322
cat conftest.$ac_ext >&5
10323
eval "$as_ac_Header=no"
10325
rm -f conftest.err conftest.$ac_ext
10327
echo "$as_me:10327: result: `eval echo '${'$as_ac_Header'}'`" >&5
10328
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10329
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10330
cat >>confdefs.h <<EOF
10331
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10339
if test X"$OPT_SSL" != Xoff &&
10340
test "$OPENSSL_ENABLED" != "1"; then
10341
{ { echo "$as_me:10341: error: OpenSSL libs and/or directories were not found where specified!" >&5
10342
echo "$as_me: error: OpenSSL libs and/or directories were not found where specified!" >&2;}
10343
{ (exit 1); exit 1; }; }
10346
for ac_func in RAND_status \
10350
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10351
echo "$as_me:10351: checking for $ac_func" >&5
10352
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10353
if eval "test \"\${$as_ac_var+set}\" = set"; then
10354
echo $ECHO_N "(cached) $ECHO_C" >&6
10356
cat >conftest.$ac_ext <<_ACEOF
10357
#line 10357 "configure"
10358
#include "confdefs.h"
10359
/* System header to define __stub macros and hopefully few prototypes,
10360
which can conflict with char $ac_func (); below. */
10361
#include <assert.h>
10362
/* Override any gcc2 internal prototype to avoid an error. */
10366
/* We use char because int might match the return type of a gcc2
10367
builtin and then its argument prototype would still apply. */
10374
/* The GNU C library defines this for functions which it implements
10375
to always fail with ENOSYS. Some functions are actually named
10376
something starting with __ and the normal name is an alias. */
10377
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10387
rm -f conftest.$ac_objext conftest$ac_exeext
10388
if { (eval echo "$as_me:10388: \"$ac_link\"") >&5
10389
(eval $ac_link) 2>&5
10391
echo "$as_me:10391: \$? = $ac_status" >&5
10392
(exit $ac_status); } &&
10393
{ ac_try='test -s conftest$ac_exeext'
10394
{ (eval echo "$as_me:10394: \"$ac_try\"") >&5
10395
(eval $ac_try) 2>&5
10397
echo "$as_me:10397: \$? = $ac_status" >&5
10398
(exit $ac_status); }; }; then
10399
eval "$as_ac_var=yes"
10401
echo "$as_me: failed program was:" >&5
10402
cat conftest.$ac_ext >&5
10403
eval "$as_ac_var=no"
10405
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10407
echo "$as_me:10407: result: `eval echo '${'$as_ac_var'}'`" >&5
10408
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10409
if test `eval echo '${'$as_ac_var'}'` = yes; then
10410
cat >>confdefs.h <<EOF
10411
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10420
# Check whether --enable-thread or --disable-thread was given.
10421
if test "${enable_thread+set}" = set; then
10422
enableval="$enable_thread"
10427
if test X"$OPT_THREAD" = Xoff
10429
{ echo "$as_me:10429: WARNING: libcurl will not get built using thread-safe functions" >&5
10430
echo "$as_me: WARNING: libcurl will not get built using thread-safe functions" >&2;}
10432
cat >>confdefs.h <<\EOF
10433
#define DISABLED_THREADSAFE 1
10438
for ac_func in gethostbyname_r
10440
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10441
echo "$as_me:10441: checking for $ac_func" >&5
10442
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10443
if eval "test \"\${$as_ac_var+set}\" = set"; then
10444
echo $ECHO_N "(cached) $ECHO_C" >&6
10446
cat >conftest.$ac_ext <<_ACEOF
10447
#line 10447 "configure"
10448
#include "confdefs.h"
10449
/* System header to define __stub macros and hopefully few prototypes,
10450
which can conflict with char $ac_func (); below. */
10451
#include <assert.h>
10452
/* Override any gcc2 internal prototype to avoid an error. */
10456
/* We use char because int might match the return type of a gcc2
10457
builtin and then its argument prototype would still apply. */
10464
/* The GNU C library defines this for functions which it implements
10465
to always fail with ENOSYS. Some functions are actually named
10466
something starting with __ and the normal name is an alias. */
10467
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10477
rm -f conftest.$ac_objext conftest$ac_exeext
10478
if { (eval echo "$as_me:10478: \"$ac_link\"") >&5
10479
(eval $ac_link) 2>&5
10481
echo "$as_me:10481: \$? = $ac_status" >&5
10482
(exit $ac_status); } &&
10483
{ ac_try='test -s conftest$ac_exeext'
10484
{ (eval echo "$as_me:10484: \"$ac_try\"") >&5
10485
(eval $ac_try) 2>&5
10487
echo "$as_me:10487: \$? = $ac_status" >&5
10488
(exit $ac_status); }; }; then
10489
eval "$as_ac_var=yes"
10491
echo "$as_me: failed program was:" >&5
10492
cat conftest.$ac_ext >&5
10493
eval "$as_ac_var=no"
10495
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10497
echo "$as_me:10497: result: `eval echo '${'$as_ac_var'}'`" >&5
10498
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10499
if test `eval echo '${'$as_ac_var'}'` = yes; then
10500
cat >>confdefs.h <<EOF
10501
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10504
echo "$as_me:10504: checking if gethostbyname_r takes 3 arguments" >&5
10505
echo $ECHO_N "checking if gethostbyname_r takes 3 arguments... $ECHO_C" >&6
10506
cat >conftest.$ac_ext <<_ACEOF
10507
#line 10507 "configure"
10508
#include "confdefs.h"
10510
#include <string.h>
10511
#include <sys/types.h>
10514
#define NULL (void *)0
10517
gethostbyname_r(const char *, struct hostent *, struct hostent_data *);
10522
struct hostent_data data;
10523
gethostbyname_r(NULL, NULL, NULL);
10528
rm -f conftest.$ac_objext
10529
if { (eval echo "$as_me:10529: \"$ac_compile\"") >&5
10530
(eval $ac_compile) 2>&5
10532
echo "$as_me:10532: \$? = $ac_status" >&5
10533
(exit $ac_status); } &&
10534
{ ac_try='test -s conftest.$ac_objext'
10535
{ (eval echo "$as_me:10535: \"$ac_try\"") >&5
10536
(eval $ac_try) 2>&5
10538
echo "$as_me:10538: \$? = $ac_status" >&5
10539
(exit $ac_status); }; }; then
10541
echo "$as_me:10541: result: yes" >&5
10542
echo "${ECHO_T}yes" >&6
10543
cat >>confdefs.h <<\EOF
10544
#define HAVE_GETHOSTBYNAME_R_3 1
10547
ac_cv_gethostbyname_args=3
10549
echo "$as_me: failed program was:" >&5
10550
cat conftest.$ac_ext >&5
10552
echo "$as_me:10552: result: no" >&5
10553
echo "${ECHO_T}no" >&6
10554
echo "$as_me:10554: checking if gethostbyname_r with -D_REENTRANT takes 3 arguments" >&5
10555
echo $ECHO_N "checking if gethostbyname_r with -D_REENTRANT takes 3 arguments... $ECHO_C" >&6
10556
cat >conftest.$ac_ext <<_ACEOF
10557
#line 10557 "configure"
10558
#include "confdefs.h"
10562
#include <string.h>
10563
#include <sys/types.h>
10566
#define NULL (void *)0
10569
gethostbyname_r(const char *,struct hostent *, struct hostent_data *);
10574
struct hostent_data data;
10575
gethostbyname_r(NULL, NULL, NULL);
10580
rm -f conftest.$ac_objext
10581
if { (eval echo "$as_me:10581: \"$ac_compile\"") >&5
10582
(eval $ac_compile) 2>&5
10584
echo "$as_me:10584: \$? = $ac_status" >&5
10585
(exit $ac_status); } &&
10586
{ ac_try='test -s conftest.$ac_objext'
10587
{ (eval echo "$as_me:10587: \"$ac_try\"") >&5
10588
(eval $ac_try) 2>&5
10590
echo "$as_me:10590: \$? = $ac_status" >&5
10591
(exit $ac_status); }; }; then
10593
echo "$as_me:10593: result: yes" >&5
10594
echo "${ECHO_T}yes" >&6
10595
cat >>confdefs.h <<\EOF
10596
#define HAVE_GETHOSTBYNAME_R_3 1
10599
cat >>confdefs.h <<\EOF
10600
#define NEED_REENTRANT 1
10603
ac_cv_gethostbyname_args=3
10605
echo "$as_me: failed program was:" >&5
10606
cat conftest.$ac_ext >&5
10608
echo "$as_me:10608: result: no" >&5
10609
echo "${ECHO_T}no" >&6
10610
echo "$as_me:10610: checking if gethostbyname_r takes 5 arguments" >&5
10611
echo $ECHO_N "checking if gethostbyname_r takes 5 arguments... $ECHO_C" >&6
10612
cat >conftest.$ac_ext <<_ACEOF
10613
#line 10613 "configure"
10614
#include "confdefs.h"
10616
#include <sys/types.h>
10619
#define NULL (void *)0
10622
gethostbyname_r(const char *, struct hostent *, char *, int, int *);
10627
gethostbyname_r(NULL, NULL, NULL, 0, NULL);
10632
rm -f conftest.$ac_objext
10633
if { (eval echo "$as_me:10633: \"$ac_compile\"") >&5
10634
(eval $ac_compile) 2>&5
10636
echo "$as_me:10636: \$? = $ac_status" >&5
10637
(exit $ac_status); } &&
10638
{ ac_try='test -s conftest.$ac_objext'
10639
{ (eval echo "$as_me:10639: \"$ac_try\"") >&5
10640
(eval $ac_try) 2>&5
10642
echo "$as_me:10642: \$? = $ac_status" >&5
10643
(exit $ac_status); }; }; then
10645
echo "$as_me:10645: result: yes" >&5
10646
echo "${ECHO_T}yes" >&6
10647
cat >>confdefs.h <<\EOF
10648
#define HAVE_GETHOSTBYNAME_R_5 1
10651
ac_cv_gethostbyname_args=5
10653
echo "$as_me: failed program was:" >&5
10654
cat conftest.$ac_ext >&5
10656
echo "$as_me:10656: result: no" >&5
10657
echo "${ECHO_T}no" >&6
10658
echo "$as_me:10658: checking if gethostbyname_r takes 6 arguments" >&5
10659
echo $ECHO_N "checking if gethostbyname_r takes 6 arguments... $ECHO_C" >&6
10660
cat >conftest.$ac_ext <<_ACEOF
10661
#line 10661 "configure"
10662
#include "confdefs.h"
10664
#include <sys/types.h>
10667
#define NULL (void *)0
10670
gethostbyname_r(const char *, struct hostent *, char *, size_t,
10671
struct hostent **, int *);
10676
gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL);
10681
rm -f conftest.$ac_objext
10682
if { (eval echo "$as_me:10682: \"$ac_compile\"") >&5
10683
(eval $ac_compile) 2>&5
10685
echo "$as_me:10685: \$? = $ac_status" >&5
10686
(exit $ac_status); } &&
10687
{ ac_try='test -s conftest.$ac_objext'
10688
{ (eval echo "$as_me:10688: \"$ac_try\"") >&5
10689
(eval $ac_try) 2>&5
10691
echo "$as_me:10691: \$? = $ac_status" >&5
10692
(exit $ac_status); }; }; then
10694
echo "$as_me:10694: result: yes" >&5
10695
echo "${ECHO_T}yes" >&6
10696
cat >>confdefs.h <<\EOF
10697
#define HAVE_GETHOSTBYNAME_R_6 1
10700
ac_cv_gethostbyname_args=6
10702
echo "$as_me: failed program was:" >&5
10703
cat conftest.$ac_ext >&5
10705
echo "$as_me:10705: result: no" >&5
10706
echo "${ECHO_T}no" >&6
10707
have_missing_r_funcs="$have_missing_r_funcs gethostbyname_r"
10709
rm -f conftest.$ac_objext conftest.$ac_ext
10711
rm -f conftest.$ac_objext conftest.$ac_ext
10713
rm -f conftest.$ac_objext conftest.$ac_ext
10715
rm -f conftest.$ac_objext conftest.$ac_ext
10719
if test "$ac_cv_func_gethostbyname_r" = "yes"; then
10720
if test "$ac_cv_gethostbyname_args" = "0"; then
10721
{ { echo "$as_me:10721: error: couldn't figure out how to use gethostbyname_r()" >&5
10722
echo "$as_me: error: couldn't figure out how to use gethostbyname_r()" >&2;}
10723
{ (exit 1); exit 1; }; }
10727
for ac_func in gethostbyaddr_r
10729
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10730
echo "$as_me:10730: checking for $ac_func" >&5
10731
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10732
if eval "test \"\${$as_ac_var+set}\" = set"; then
10733
echo $ECHO_N "(cached) $ECHO_C" >&6
10735
cat >conftest.$ac_ext <<_ACEOF
10736
#line 10736 "configure"
10737
#include "confdefs.h"
10738
/* System header to define __stub macros and hopefully few prototypes,
10739
which can conflict with char $ac_func (); below. */
10740
#include <assert.h>
10741
/* Override any gcc2 internal prototype to avoid an error. */
10745
/* We use char because int might match the return type of a gcc2
10746
builtin and then its argument prototype would still apply. */
10753
/* The GNU C library defines this for functions which it implements
10754
to always fail with ENOSYS. Some functions are actually named
10755
something starting with __ and the normal name is an alias. */
10756
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10766
rm -f conftest.$ac_objext conftest$ac_exeext
10767
if { (eval echo "$as_me:10767: \"$ac_link\"") >&5
10768
(eval $ac_link) 2>&5
10770
echo "$as_me:10770: \$? = $ac_status" >&5
10771
(exit $ac_status); } &&
10772
{ ac_try='test -s conftest$ac_exeext'
10773
{ (eval echo "$as_me:10773: \"$ac_try\"") >&5
10774
(eval $ac_try) 2>&5
10776
echo "$as_me:10776: \$? = $ac_status" >&5
10777
(exit $ac_status); }; }; then
10778
eval "$as_ac_var=yes"
10780
echo "$as_me: failed program was:" >&5
10781
cat conftest.$ac_ext >&5
10782
eval "$as_ac_var=no"
10784
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10786
echo "$as_me:10786: result: `eval echo '${'$as_ac_var'}'`" >&5
10787
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10788
if test `eval echo '${'$as_ac_var'}'` = yes; then
10789
cat >>confdefs.h <<EOF
10790
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10793
echo "$as_me:10793: checking if gethostbyaddr_r takes 5 arguments" >&5
10794
echo $ECHO_N "checking if gethostbyaddr_r takes 5 arguments... $ECHO_C" >&6
10795
cat >conftest.$ac_ext <<_ACEOF
10796
#line 10796 "configure"
10797
#include "confdefs.h"
10799
#include <sys/types.h>
10809
struct hostent_data hdata;
10811
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
10816
rm -f conftest.$ac_objext
10817
if { (eval echo "$as_me:10817: \"$ac_compile\"") >&5
10818
(eval $ac_compile) 2>&5
10820
echo "$as_me:10820: \$? = $ac_status" >&5
10821
(exit $ac_status); } &&
10822
{ ac_try='test -s conftest.$ac_objext'
10823
{ (eval echo "$as_me:10823: \"$ac_try\"") >&5
10824
(eval $ac_try) 2>&5
10826
echo "$as_me:10826: \$? = $ac_status" >&5
10827
(exit $ac_status); }; }; then
10829
echo "$as_me:10829: result: yes" >&5
10830
echo "${ECHO_T}yes" >&6
10831
cat >>confdefs.h <<\EOF
10832
#define HAVE_GETHOSTBYADDR_R_5 1
10835
ac_cv_gethostbyaddr_args=5
10837
echo "$as_me: failed program was:" >&5
10838
cat conftest.$ac_ext >&5
10840
echo "$as_me:10840: result: no" >&5
10841
echo "${ECHO_T}no" >&6
10842
echo "$as_me:10842: checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments" >&5
10843
echo $ECHO_N "checking if gethostbyaddr_r with -D_REENTRANT takes 5 arguments... $ECHO_C" >&6
10844
cat >conftest.$ac_ext <<_ACEOF
10845
#line 10845 "configure"
10846
#include "confdefs.h"
10849
#include <sys/types.h>
10859
struct hostent_data hdata;
10861
rc = gethostbyaddr_r(address, length, type, &h, &hdata);
10866
rm -f conftest.$ac_objext
10867
if { (eval echo "$as_me:10867: \"$ac_compile\"") >&5
10868
(eval $ac_compile) 2>&5
10870
echo "$as_me:10870: \$? = $ac_status" >&5
10871
(exit $ac_status); } &&
10872
{ ac_try='test -s conftest.$ac_objext'
10873
{ (eval echo "$as_me:10873: \"$ac_try\"") >&5
10874
(eval $ac_try) 2>&5
10876
echo "$as_me:10876: \$? = $ac_status" >&5
10877
(exit $ac_status); }; }; then
10879
echo "$as_me:10879: result: yes" >&5
10880
echo "${ECHO_T}yes" >&6
10881
cat >>confdefs.h <<\EOF
10882
#define HAVE_GETHOSTBYADDR_R_5 1
10885
cat >>confdefs.h <<\EOF
10886
#define NEED_REENTRANT 1
10889
ac_cv_gethostbyaddr_args=5
10891
echo "$as_me: failed program was:" >&5
10892
cat conftest.$ac_ext >&5
10894
echo "$as_me:10894: result: no" >&5
10895
echo "${ECHO_T}no" >&6
10896
echo "$as_me:10896: checking if gethostbyaddr_r takes 7 arguments" >&5
10897
echo $ECHO_N "checking if gethostbyaddr_r takes 7 arguments... $ECHO_C" >&6
10898
cat >conftest.$ac_ext <<_ACEOF
10899
#line 10899 "configure"
10900
#include "confdefs.h"
10902
#include <sys/types.h>
10914
struct hostent * hp;
10916
hp = gethostbyaddr_r(address, length, type, &h,
10917
buffer, 8192, &h_errnop);
10922
rm -f conftest.$ac_objext
10923
if { (eval echo "$as_me:10923: \"$ac_compile\"") >&5
10924
(eval $ac_compile) 2>&5
10926
echo "$as_me:10926: \$? = $ac_status" >&5
10927
(exit $ac_status); } &&
10928
{ ac_try='test -s conftest.$ac_objext'
10929
{ (eval echo "$as_me:10929: \"$ac_try\"") >&5
10930
(eval $ac_try) 2>&5
10932
echo "$as_me:10932: \$? = $ac_status" >&5
10933
(exit $ac_status); }; }; then
10935
echo "$as_me:10935: result: yes" >&5
10936
echo "${ECHO_T}yes" >&6
10937
cat >>confdefs.h <<\EOF
10938
#define HAVE_GETHOSTBYADDR_R_7 1
10941
ac_cv_gethostbyaddr_args=7
10943
echo "$as_me: failed program was:" >&5
10944
cat conftest.$ac_ext >&5
10946
echo "$as_me:10946: result: no" >&5
10947
echo "${ECHO_T}no" >&6
10948
echo "$as_me:10948: checking if gethostbyaddr_r takes 8 arguments" >&5
10949
echo $ECHO_N "checking if gethostbyaddr_r takes 8 arguments... $ECHO_C" >&6
10950
cat >conftest.$ac_ext <<_ACEOF
10951
#line 10951 "configure"
10952
#include "confdefs.h"
10954
#include <sys/types.h>
10966
struct hostent * hp;
10969
rc = gethostbyaddr_r(address, length, type, &h,
10970
buffer, 8192, &hp, &h_errnop);
10975
rm -f conftest.$ac_objext
10976
if { (eval echo "$as_me:10976: \"$ac_compile\"") >&5
10977
(eval $ac_compile) 2>&5
10979
echo "$as_me:10979: \$? = $ac_status" >&5
10980
(exit $ac_status); } &&
10981
{ ac_try='test -s conftest.$ac_objext'
10982
{ (eval echo "$as_me:10982: \"$ac_try\"") >&5
10983
(eval $ac_try) 2>&5
10985
echo "$as_me:10985: \$? = $ac_status" >&5
10986
(exit $ac_status); }; }; then
10988
echo "$as_me:10988: result: yes" >&5
10989
echo "${ECHO_T}yes" >&6
10990
cat >>confdefs.h <<\EOF
10991
#define HAVE_GETHOSTBYADDR_R_8 1
10994
ac_cv_gethostbyaddr_args=8
10996
echo "$as_me: failed program was:" >&5
10997
cat conftest.$ac_ext >&5
10999
echo "$as_me:10999: result: no" >&5
11000
echo "${ECHO_T}no" >&6
11001
have_missing_r_funcs="$have_missing_r_funcs gethostbyaddr_r"
11003
rm -f conftest.$ac_objext conftest.$ac_ext
11005
rm -f conftest.$ac_objext conftest.$ac_ext
11007
rm -f conftest.$ac_objext conftest.$ac_ext
11009
rm -f conftest.$ac_objext conftest.$ac_ext
11013
for ac_func in inet_ntoa_r
11015
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11016
echo "$as_me:11016: checking for $ac_func" >&5
11017
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11018
if eval "test \"\${$as_ac_var+set}\" = set"; then
11019
echo $ECHO_N "(cached) $ECHO_C" >&6
11021
cat >conftest.$ac_ext <<_ACEOF
11022
#line 11022 "configure"
11023
#include "confdefs.h"
11024
/* System header to define __stub macros and hopefully few prototypes,
11025
which can conflict with char $ac_func (); below. */
11026
#include <assert.h>
11027
/* Override any gcc2 internal prototype to avoid an error. */
11031
/* We use char because int might match the return type of a gcc2
11032
builtin and then its argument prototype would still apply. */
11039
/* The GNU C library defines this for functions which it implements
11040
to always fail with ENOSYS. Some functions are actually named
11041
something starting with __ and the normal name is an alias. */
11042
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11052
rm -f conftest.$ac_objext conftest$ac_exeext
11053
if { (eval echo "$as_me:11053: \"$ac_link\"") >&5
11054
(eval $ac_link) 2>&5
11056
echo "$as_me:11056: \$? = $ac_status" >&5
11057
(exit $ac_status); } &&
11058
{ ac_try='test -s conftest$ac_exeext'
11059
{ (eval echo "$as_me:11059: \"$ac_try\"") >&5
11060
(eval $ac_try) 2>&5
11062
echo "$as_me:11062: \$? = $ac_status" >&5
11063
(exit $ac_status); }; }; then
11064
eval "$as_ac_var=yes"
11066
echo "$as_me: failed program was:" >&5
11067
cat conftest.$ac_ext >&5
11068
eval "$as_ac_var=no"
11070
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11072
echo "$as_me:11072: result: `eval echo '${'$as_ac_var'}'`" >&5
11073
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11074
if test `eval echo '${'$as_ac_var'}'` = yes; then
11075
cat >>confdefs.h <<EOF
11076
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11079
echo "$as_me:11079: checking whether inet_ntoa_r is declared" >&5
11080
echo $ECHO_N "checking whether inet_ntoa_r is declared... $ECHO_C" >&6
11081
cat >conftest.$ac_ext <<_ACEOF
11082
#line 11082 "configure"
11083
#include "confdefs.h"
11085
#include <arpa/inet.h>
11087
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11088
egrep "inet_ntoa_r" >/dev/null 2>&1; then
11090
cat >>confdefs.h <<\EOF
11091
#define HAVE_INET_NTOA_R_DECL 1
11094
echo "$as_me:11094: result: yes" >&5
11095
echo "${ECHO_T}yes" >&6
11098
echo "$as_me:11098: result: no" >&5
11099
echo "${ECHO_T}no" >&6
11100
echo "$as_me:11100: checking whether inet_ntoa_r with -D_REENTRANT is declared" >&5
11101
echo $ECHO_N "checking whether inet_ntoa_r with -D_REENTRANT is declared... $ECHO_C" >&6
11102
cat >conftest.$ac_ext <<_ACEOF
11103
#line 11103 "configure"
11104
#include "confdefs.h"
11107
#include <arpa/inet.h>
11109
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11110
egrep "inet_ntoa_r" >/dev/null 2>&1; then
11112
cat >>confdefs.h <<\EOF
11113
#define HAVE_INET_NTOA_R_DECL 1
11116
cat >>confdefs.h <<\EOF
11117
#define NEED_REENTRANT 1
11120
echo "$as_me:11120: result: yes" >&5
11121
echo "${ECHO_T}yes" >&6
11123
echo "$as_me:11123: result: no" >&5
11124
echo "${ECHO_T}no" >&6
11134
for ac_func in localtime_r
11136
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11137
echo "$as_me:11137: checking for $ac_func" >&5
11138
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11139
if eval "test \"\${$as_ac_var+set}\" = set"; then
11140
echo $ECHO_N "(cached) $ECHO_C" >&6
11142
cat >conftest.$ac_ext <<_ACEOF
11143
#line 11143 "configure"
11144
#include "confdefs.h"
11145
/* System header to define __stub macros and hopefully few prototypes,
11146
which can conflict with char $ac_func (); below. */
11147
#include <assert.h>
11148
/* Override any gcc2 internal prototype to avoid an error. */
11152
/* We use char because int might match the return type of a gcc2
11153
builtin and then its argument prototype would still apply. */
11160
/* The GNU C library defines this for functions which it implements
11161
to always fail with ENOSYS. Some functions are actually named
11162
something starting with __ and the normal name is an alias. */
11163
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11173
rm -f conftest.$ac_objext conftest$ac_exeext
11174
if { (eval echo "$as_me:11174: \"$ac_link\"") >&5
11175
(eval $ac_link) 2>&5
11177
echo "$as_me:11177: \$? = $ac_status" >&5
11178
(exit $ac_status); } &&
11179
{ ac_try='test -s conftest$ac_exeext'
11180
{ (eval echo "$as_me:11180: \"$ac_try\"") >&5
11181
(eval $ac_try) 2>&5
11183
echo "$as_me:11183: \$? = $ac_status" >&5
11184
(exit $ac_status); }; }; then
11185
eval "$as_ac_var=yes"
11187
echo "$as_me: failed program was:" >&5
11188
cat conftest.$ac_ext >&5
11189
eval "$as_ac_var=no"
11191
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11193
echo "$as_me:11193: result: `eval echo '${'$as_ac_var'}'`" >&5
11194
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11195
if test `eval echo '${'$as_ac_var'}'` = yes; then
11196
cat >>confdefs.h <<EOF
11197
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11200
echo "$as_me:11200: checking whether localtime_r is declared" >&5
11201
echo $ECHO_N "checking whether localtime_r is declared... $ECHO_C" >&6
11202
cat >conftest.$ac_ext <<_ACEOF
11203
#line 11203 "configure"
11204
#include "confdefs.h"
11208
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11209
egrep "localtime_r" >/dev/null 2>&1; then
11211
echo "$as_me:11211: result: yes" >&5
11212
echo "${ECHO_T}yes" >&6
11215
echo "$as_me:11215: result: no" >&5
11216
echo "${ECHO_T}no" >&6
11217
echo "$as_me:11217: checking whether localtime_r with -D_REENTRANT is declared" >&5
11218
echo $ECHO_N "checking whether localtime_r with -D_REENTRANT is declared... $ECHO_C" >&6
11219
cat >conftest.$ac_ext <<_ACEOF
11220
#line 11220 "configure"
11221
#include "confdefs.h"
11226
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11227
egrep "localtime_r" >/dev/null 2>&1; then
11229
cat >>confdefs.h <<\EOF
11230
#define NEED_REENTRANT 1
11233
echo "$as_me:11233: result: yes" >&5
11234
echo "${ECHO_T}yes" >&6
11236
echo "$as_me:11236: result: no" >&5
11237
echo "${ECHO_T}no" >&6
11247
for ac_func in gmtime_r
11249
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11250
echo "$as_me:11250: checking for $ac_func" >&5
11251
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11252
if eval "test \"\${$as_ac_var+set}\" = set"; then
11253
echo $ECHO_N "(cached) $ECHO_C" >&6
11255
cat >conftest.$ac_ext <<_ACEOF
11256
#line 11256 "configure"
11257
#include "confdefs.h"
11258
/* System header to define __stub macros and hopefully few prototypes,
11259
which can conflict with char $ac_func (); below. */
11260
#include <assert.h>
11261
/* Override any gcc2 internal prototype to avoid an error. */
11265
/* We use char because int might match the return type of a gcc2
11266
builtin and then its argument prototype would still apply. */
11273
/* The GNU C library defines this for functions which it implements
11274
to always fail with ENOSYS. Some functions are actually named
11275
something starting with __ and the normal name is an alias. */
11276
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11286
rm -f conftest.$ac_objext conftest$ac_exeext
11287
if { (eval echo "$as_me:11287: \"$ac_link\"") >&5
11288
(eval $ac_link) 2>&5
11290
echo "$as_me:11290: \$? = $ac_status" >&5
11291
(exit $ac_status); } &&
11292
{ ac_try='test -s conftest$ac_exeext'
11293
{ (eval echo "$as_me:11293: \"$ac_try\"") >&5
11294
(eval $ac_try) 2>&5
11296
echo "$as_me:11296: \$? = $ac_status" >&5
11297
(exit $ac_status); }; }; then
11298
eval "$as_ac_var=yes"
11300
echo "$as_me: failed program was:" >&5
11301
cat conftest.$ac_ext >&5
11302
eval "$as_ac_var=no"
11304
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11306
echo "$as_me:11306: result: `eval echo '${'$as_ac_var'}'`" >&5
11307
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11308
if test `eval echo '${'$as_ac_var'}'` = yes; then
11309
cat >>confdefs.h <<EOF
11310
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11318
echo "$as_me:11318: checking for ANSI C header files" >&5
11319
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11320
if test "${ac_cv_header_stdc+set}" = set; then
11321
echo $ECHO_N "(cached) $ECHO_C" >&6
11323
cat >conftest.$ac_ext <<_ACEOF
11324
#line 11324 "configure"
11325
#include "confdefs.h"
11326
#include <stdlib.h>
11327
#include <stdarg.h>
11328
#include <string.h>
11332
if { (eval echo "$as_me:11332: \"$ac_cpp conftest.$ac_ext\"") >&5
11333
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11335
egrep -v '^ *\+' conftest.er1 >conftest.err
11337
cat conftest.err >&5
11338
echo "$as_me:11338: \$? = $ac_status" >&5
11339
(exit $ac_status); } >/dev/null; then
11340
if test -s conftest.err; then
11341
ac_cpp_err=$ac_c_preproc_warn_flag
11348
if test -z "$ac_cpp_err"; then
11349
ac_cv_header_stdc=yes
11351
echo "$as_me: failed program was:" >&5
11352
cat conftest.$ac_ext >&5
11353
ac_cv_header_stdc=no
11355
rm -f conftest.err conftest.$ac_ext
11357
if test $ac_cv_header_stdc = yes; then
11358
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11359
cat >conftest.$ac_ext <<_ACEOF
11360
#line 11360 "configure"
11361
#include "confdefs.h"
11362
#include <string.h>
11365
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11366
egrep "memchr" >/dev/null 2>&1; then
11369
ac_cv_header_stdc=no
11375
if test $ac_cv_header_stdc = yes; then
11376
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11377
cat >conftest.$ac_ext <<_ACEOF
11378
#line 11378 "configure"
11379
#include "confdefs.h"
11380
#include <stdlib.h>
11383
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11384
egrep "free" >/dev/null 2>&1; then
11387
ac_cv_header_stdc=no
11393
if test $ac_cv_header_stdc = yes; then
11394
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11395
if test "$cross_compiling" = yes; then
11398
cat >conftest.$ac_ext <<_ACEOF
11399
#line 11399 "configure"
11400
#include "confdefs.h"
11402
#if ((' ' & 0x0FF) == 0x020)
11403
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11404
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11406
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
11407
|| ('j' <= (c) && (c) <= 'r') \
11408
|| ('s' <= (c) && (c) <= 'z'))
11409
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11412
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11417
for (i = 0; i < 256; i++)
11418
if (XOR (islower (i), ISLOWER (i))
11419
|| toupper (i) != TOUPPER (i))
11424
rm -f conftest$ac_exeext
11425
if { (eval echo "$as_me:11425: \"$ac_link\"") >&5
11426
(eval $ac_link) 2>&5
11428
echo "$as_me:11428: \$? = $ac_status" >&5
11429
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11430
{ (eval echo "$as_me:11430: \"$ac_try\"") >&5
11431
(eval $ac_try) 2>&5
11433
echo "$as_me:11433: \$? = $ac_status" >&5
11434
(exit $ac_status); }; }; then
11437
echo "$as_me: program exited with status $ac_status" >&5
11438
echo "$as_me: failed program was:" >&5
11439
cat conftest.$ac_ext >&5
11440
ac_cv_header_stdc=no
11442
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11446
echo "$as_me:11446: result: $ac_cv_header_stdc" >&5
11447
echo "${ECHO_T}$ac_cv_header_stdc" >&6
11448
if test $ac_cv_header_stdc = yes; then
11450
cat >>confdefs.h <<\EOF
11451
#define STDC_HEADERS 1
11463
netinet/if_ether.h \
11486
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11487
echo "$as_me:11487: checking for $ac_header" >&5
11488
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11489
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11490
echo $ECHO_N "(cached) $ECHO_C" >&6
11492
cat >conftest.$ac_ext <<_ACEOF
11493
#line 11493 "configure"
11494
#include "confdefs.h"
11495
#include <$ac_header>
11497
if { (eval echo "$as_me:11497: \"$ac_cpp conftest.$ac_ext\"") >&5
11498
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11500
egrep -v '^ *\+' conftest.er1 >conftest.err
11502
cat conftest.err >&5
11503
echo "$as_me:11503: \$? = $ac_status" >&5
11504
(exit $ac_status); } >/dev/null; then
11505
if test -s conftest.err; then
11506
ac_cpp_err=$ac_c_preproc_warn_flag
11513
if test -z "$ac_cpp_err"; then
11514
eval "$as_ac_Header=yes"
11516
echo "$as_me: failed program was:" >&5
11517
cat conftest.$ac_ext >&5
11518
eval "$as_ac_Header=no"
11520
rm -f conftest.err conftest.$ac_ext
11522
echo "$as_me:11522: result: `eval echo '${'$as_ac_Header'}'`" >&5
11523
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11524
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11525
cat >>confdefs.h <<EOF
11526
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11532
echo "$as_me:11532: checking for $CC option to accept ANSI C" >&5
11533
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11534
if test "${ac_cv_prog_cc_stdc+set}" = set; then
11535
echo $ECHO_N "(cached) $ECHO_C" >&6
11537
ac_cv_prog_cc_stdc=no
11539
cat >conftest.$ac_ext <<_ACEOF
11540
#line 11540 "configure"
11541
#include "confdefs.h"
11542
#include <stdarg.h>
11544
#include <sys/types.h>
11545
#include <sys/stat.h>
11546
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11547
struct buf { int x; };
11548
FILE * (*rcsopen) (struct buf *, struct stat *, int);
11549
static char *e (p, i)
11555
static char *f (char * (*g) (char **, int), char **p, ...)
11560
s = g (p, va_arg (v,int));
11564
int test (int i, double x);
11565
struct s1 {int (*f) (int a);};
11566
struct s2 {int (*f) (double a);};
11567
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11573
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11578
# Don't try gcc -ansi; that turns off useful extensions and
11579
# breaks some systems' header files.
11580
# AIX -qlanglvl=ansi
11581
# Ultrix and OSF/1 -std1
11582
# HP-UX 10.20 and later -Ae
11583
# HP-UX older versions -Aa -D_HPUX_SOURCE
11584
# SVR4 -Xc -D__EXTENSIONS__
11585
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11587
CC="$ac_save_CC $ac_arg"
11588
rm -f conftest.$ac_objext
11589
if { (eval echo "$as_me:11589: \"$ac_compile\"") >&5
11590
(eval $ac_compile) 2>&5
11592
echo "$as_me:11592: \$? = $ac_status" >&5
11593
(exit $ac_status); } &&
11594
{ ac_try='test -s conftest.$ac_objext'
11595
{ (eval echo "$as_me:11595: \"$ac_try\"") >&5
11596
(eval $ac_try) 2>&5
11598
echo "$as_me:11598: \$? = $ac_status" >&5
11599
(exit $ac_status); }; }; then
11600
ac_cv_prog_cc_stdc=$ac_arg
11603
echo "$as_me: failed program was:" >&5
11604
cat conftest.$ac_ext >&5
11606
rm -f conftest.$ac_objext
11608
rm -f conftest.$ac_ext conftest.$ac_objext
11613
case "x$ac_cv_prog_cc_stdc" in
11615
echo "$as_me:11615: result: none needed" >&5
11616
echo "${ECHO_T}none needed" >&6 ;;
11618
echo "$as_me:11618: result: $ac_cv_prog_cc_stdc" >&5
11619
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11620
CC="$CC $ac_cv_prog_cc_stdc" ;;
11623
echo "$as_me:11623: checking for an ANSI C-conforming const" >&5
11624
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11625
if test "${ac_cv_c_const+set}" = set; then
11626
echo $ECHO_N "(cached) $ECHO_C" >&6
11628
cat >conftest.$ac_ext <<_ACEOF
11629
#line 11629 "configure"
11630
#include "confdefs.h"
11635
/* FIXME: Include the comments suggested by Paul. */
11636
#ifndef __cplusplus
11637
/* Ultrix mips cc rejects this. */
11638
typedef int charset[2];
11640
/* SunOS 4.1.1 cc rejects this. */
11641
char const *const *ccp;
11643
/* NEC SVR4.0.2 mips cc rejects this. */
11644
struct point {int x, y;};
11645
static struct point const zero = {0,0};
11646
/* AIX XL C 1.02.0.0 rejects this.
11647
It does not let you subtract one const X* pointer from another in
11648
an arm of an if-expression whose if-part is not a constant
11650
const char *g = "string";
11651
ccp = &g + (g ? g-g : 0);
11652
/* HPUX 7.0 cc rejects these. */
11655
ccp = (char const *const *) p;
11656
{ /* SCO 3.2v4 cc rejects this. */
11658
char const *s = 0 ? (char *) 0 : (char const *) 0;
11662
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11663
int x[] = {25, 17};
11664
const int *foo = &x[0];
11667
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11668
typedef const int *iptr;
11672
{ /* AIX XL C 1.02.0.0 rejects this saying
11673
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11674
struct s { int j; const int *ap[3]; };
11675
struct s *b; b->j = 5;
11677
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11678
const int foo = 10;
11686
rm -f conftest.$ac_objext
11687
if { (eval echo "$as_me:11687: \"$ac_compile\"") >&5
11688
(eval $ac_compile) 2>&5
11690
echo "$as_me:11690: \$? = $ac_status" >&5
11691
(exit $ac_status); } &&
11692
{ ac_try='test -s conftest.$ac_objext'
11693
{ (eval echo "$as_me:11693: \"$ac_try\"") >&5
11694
(eval $ac_try) 2>&5
11696
echo "$as_me:11696: \$? = $ac_status" >&5
11697
(exit $ac_status); }; }; then
11700
echo "$as_me: failed program was:" >&5
11701
cat conftest.$ac_ext >&5
11704
rm -f conftest.$ac_objext conftest.$ac_ext
11706
echo "$as_me:11706: result: $ac_cv_c_const" >&5
11707
echo "${ECHO_T}$ac_cv_c_const" >&6
11708
if test $ac_cv_c_const = no; then
11710
cat >>confdefs.h <<\EOF
11716
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
11718
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
11719
inttypes.h stdint.h unistd.h
11721
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11722
echo "$as_me:11722: checking for $ac_header" >&5
11723
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11724
if eval "test \"\${$as_ac_Header+set}\" = set"; then
11725
echo $ECHO_N "(cached) $ECHO_C" >&6
11727
cat >conftest.$ac_ext <<_ACEOF
11728
#line 11728 "configure"
11729
#include "confdefs.h"
11730
$ac_includes_default
11731
#include <$ac_header>
11733
rm -f conftest.$ac_objext
11734
if { (eval echo "$as_me:11734: \"$ac_compile\"") >&5
11735
(eval $ac_compile) 2>&5
11737
echo "$as_me:11737: \$? = $ac_status" >&5
11738
(exit $ac_status); } &&
11739
{ ac_try='test -s conftest.$ac_objext'
11740
{ (eval echo "$as_me:11740: \"$ac_try\"") >&5
11741
(eval $ac_try) 2>&5
11743
echo "$as_me:11743: \$? = $ac_status" >&5
11744
(exit $ac_status); }; }; then
11745
eval "$as_ac_Header=yes"
11747
echo "$as_me: failed program was:" >&5
11748
cat conftest.$ac_ext >&5
11749
eval "$as_ac_Header=no"
11751
rm -f conftest.$ac_objext conftest.$ac_ext
11753
echo "$as_me:11753: result: `eval echo '${'$as_ac_Header'}'`" >&5
11754
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11755
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11756
cat >>confdefs.h <<EOF
11757
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11763
echo "$as_me:11763: checking for size_t" >&5
11764
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11765
if test "${ac_cv_type_size_t+set}" = set; then
11766
echo $ECHO_N "(cached) $ECHO_C" >&6
11768
cat >conftest.$ac_ext <<_ACEOF
11769
#line 11769 "configure"
11770
#include "confdefs.h"
11771
$ac_includes_default
11777
if (sizeof (size_t))
11783
rm -f conftest.$ac_objext
11784
if { (eval echo "$as_me:11784: \"$ac_compile\"") >&5
11785
(eval $ac_compile) 2>&5
11787
echo "$as_me:11787: \$? = $ac_status" >&5
11788
(exit $ac_status); } &&
11789
{ ac_try='test -s conftest.$ac_objext'
11790
{ (eval echo "$as_me:11790: \"$ac_try\"") >&5
11791
(eval $ac_try) 2>&5
11793
echo "$as_me:11793: \$? = $ac_status" >&5
11794
(exit $ac_status); }; }; then
11795
ac_cv_type_size_t=yes
11797
echo "$as_me: failed program was:" >&5
11798
cat conftest.$ac_ext >&5
11799
ac_cv_type_size_t=no
11801
rm -f conftest.$ac_objext conftest.$ac_ext
11803
echo "$as_me:11803: result: $ac_cv_type_size_t" >&5
11804
echo "${ECHO_T}$ac_cv_type_size_t" >&6
11805
if test $ac_cv_type_size_t = yes; then
11809
cat >>confdefs.h <<EOF
11810
#define size_t unsigned
11815
echo "$as_me:11815: checking whether time.h and sys/time.h may both be included" >&5
11816
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11817
if test "${ac_cv_header_time+set}" = set; then
11818
echo $ECHO_N "(cached) $ECHO_C" >&6
11820
cat >conftest.$ac_ext <<_ACEOF
11821
#line 11821 "configure"
11822
#include "confdefs.h"
11823
#include <sys/types.h>
11824
#include <sys/time.h>
11830
if ((struct tm *) 0)
11836
rm -f conftest.$ac_objext
11837
if { (eval echo "$as_me:11837: \"$ac_compile\"") >&5
11838
(eval $ac_compile) 2>&5
11840
echo "$as_me:11840: \$? = $ac_status" >&5
11841
(exit $ac_status); } &&
11842
{ ac_try='test -s conftest.$ac_objext'
11843
{ (eval echo "$as_me:11843: \"$ac_try\"") >&5
11844
(eval $ac_try) 2>&5
11846
echo "$as_me:11846: \$? = $ac_status" >&5
11847
(exit $ac_status); }; }; then
11848
ac_cv_header_time=yes
11850
echo "$as_me: failed program was:" >&5
11851
cat conftest.$ac_ext >&5
11852
ac_cv_header_time=no
11854
rm -f conftest.$ac_objext conftest.$ac_ext
11856
echo "$as_me:11856: result: $ac_cv_header_time" >&5
11857
echo "${ECHO_T}$ac_cv_header_time" >&6
11858
if test $ac_cv_header_time = yes; then
11860
cat >>confdefs.h <<\EOF
11861
#define TIME_WITH_SYS_TIME 1
11866
# mprintf() checks:
11868
# check for 'long double'
11869
# AC_CHECK_SIZEOF(long double, 8)
11870
# check for 'long long'
11871
# AC_CHECK_SIZEOF(long long, 4)
11873
# check for ssize_t
11874
echo "$as_me:11874: checking for ssize_t" >&5
11875
echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11876
if test "${ac_cv_type_ssize_t+set}" = set; then
11877
echo $ECHO_N "(cached) $ECHO_C" >&6
11879
cat >conftest.$ac_ext <<_ACEOF
11880
#line 11880 "configure"
11881
#include "confdefs.h"
11882
$ac_includes_default
11888
if (sizeof (ssize_t))
11894
rm -f conftest.$ac_objext
11895
if { (eval echo "$as_me:11895: \"$ac_compile\"") >&5
11896
(eval $ac_compile) 2>&5
11898
echo "$as_me:11898: \$? = $ac_status" >&5
11899
(exit $ac_status); } &&
11900
{ ac_try='test -s conftest.$ac_objext'
11901
{ (eval echo "$as_me:11901: \"$ac_try\"") >&5
11902
(eval $ac_try) 2>&5
11904
echo "$as_me:11904: \$? = $ac_status" >&5
11905
(exit $ac_status); }; }; then
11906
ac_cv_type_ssize_t=yes
11908
echo "$as_me: failed program was:" >&5
11909
cat conftest.$ac_ext >&5
11910
ac_cv_type_ssize_t=no
11912
rm -f conftest.$ac_objext conftest.$ac_ext
11914
echo "$as_me:11914: result: $ac_cv_type_ssize_t" >&5
11915
echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11916
if test $ac_cv_type_ssize_t = yes; then
11920
cat >>confdefs.h <<EOF
11921
#define ssize_t int
11926
echo "$as_me:11926: checking for socklen_t" >&5
11927
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11928
if test "${ac_cv_type_socklen_t+set}" = set; then
11929
echo $ECHO_N "(cached) $ECHO_C" >&6
11931
cat >conftest.$ac_ext <<_ACEOF
11932
#line 11932 "configure"
11933
#include "confdefs.h"
11934
#include <sys/types.h>
11935
#include <sys/socket.h>
11940
if ((socklen_t *) 0)
11942
if (sizeof (socklen_t))
11948
rm -f conftest.$ac_objext
11949
if { (eval echo "$as_me:11949: \"$ac_compile\"") >&5
11950
(eval $ac_compile) 2>&5
11952
echo "$as_me:11952: \$? = $ac_status" >&5
11953
(exit $ac_status); } &&
11954
{ ac_try='test -s conftest.$ac_objext'
11955
{ (eval echo "$as_me:11955: \"$ac_try\"") >&5
11956
(eval $ac_try) 2>&5
11958
echo "$as_me:11958: \$? = $ac_status" >&5
11959
(exit $ac_status); }; }; then
11960
ac_cv_type_socklen_t=yes
11962
echo "$as_me: failed program was:" >&5
11963
cat conftest.$ac_ext >&5
11964
ac_cv_type_socklen_t=no
11966
rm -f conftest.$ac_objext conftest.$ac_ext
11968
echo "$as_me:11968: result: $ac_cv_type_socklen_t" >&5
11969
echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
11970
if test $ac_cv_type_socklen_t = yes; then
11974
echo "$as_me:11974: checking for socklen_t equivalent" >&5
11975
echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
11976
if test "${curl_cv_socklen_t_equiv+set}" = set; then
11977
echo $ECHO_N "(cached) $ECHO_C" >&6
11980
# Systems have either "struct sockaddr *" or
11981
# "void *" as the second argument to getpeername
11982
curl_cv_socklen_t_equiv=
11983
for arg2 in "struct sockaddr" void; do
11984
for t in int size_t unsigned long "unsigned long"; do
11985
cat >conftest.$ac_ext <<_ACEOF
11986
#line 11986 "configure"
11987
#include "confdefs.h"
11989
#include <sys/types.h>
11990
#include <sys/socket.h>
11992
int getpeername (int, $arg2 *, $t *);
11999
getpeername(0,0,&len);
12005
rm -f conftest.$ac_objext
12006
if { (eval echo "$as_me:12006: \"$ac_compile\"") >&5
12007
(eval $ac_compile) 2>&5
12009
echo "$as_me:12009: \$? = $ac_status" >&5
12010
(exit $ac_status); } &&
12011
{ ac_try='test -s conftest.$ac_objext'
12012
{ (eval echo "$as_me:12012: \"$ac_try\"") >&5
12013
(eval $ac_try) 2>&5
12015
echo "$as_me:12015: \$? = $ac_status" >&5
12016
(exit $ac_status); }; }; then
12018
curl_cv_socklen_t_equiv="$t"
12022
echo "$as_me: failed program was:" >&5
12023
cat conftest.$ac_ext >&5
12025
rm -f conftest.$ac_objext conftest.$ac_ext
12029
if test "x$curl_cv_socklen_t_equiv" = x; then
12030
{ { echo "$as_me:12030: error: Cannot find a type to use in place of socklen_t" >&5
12031
echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
12032
{ (exit 1); exit 1; }; }
12037
echo "$as_me:12037: result: $curl_cv_socklen_t_equiv" >&5
12038
echo "${ECHO_T}$curl_cv_socklen_t_equiv" >&6
12040
cat >>confdefs.h <<EOF
12041
#define socklen_t $curl_cv_socklen_t_equiv
12046
echo "$as_me:12046: checking for in_addr_t" >&5
12047
echo $ECHO_N "checking for in_addr_t... $ECHO_C" >&6
12048
if test "${ac_cv_type_in_addr_t+set}" = set; then
12049
echo $ECHO_N "(cached) $ECHO_C" >&6
12051
cat >conftest.$ac_ext <<_ACEOF
12052
#line 12052 "configure"
12053
#include "confdefs.h"
12054
#include <sys/types.h>
12055
#include <sys/socket.h>
12056
#include <arpa/inet.h>
12061
if ((in_addr_t *) 0)
12063
if (sizeof (in_addr_t))
12069
rm -f conftest.$ac_objext
12070
if { (eval echo "$as_me:12070: \"$ac_compile\"") >&5
12071
(eval $ac_compile) 2>&5
12073
echo "$as_me:12073: \$? = $ac_status" >&5
12074
(exit $ac_status); } &&
12075
{ ac_try='test -s conftest.$ac_objext'
12076
{ (eval echo "$as_me:12076: \"$ac_try\"") >&5
12077
(eval $ac_try) 2>&5
12079
echo "$as_me:12079: \$? = $ac_status" >&5
12080
(exit $ac_status); }; }; then
12081
ac_cv_type_in_addr_t=yes
12083
echo "$as_me: failed program was:" >&5
12084
cat conftest.$ac_ext >&5
12085
ac_cv_type_in_addr_t=no
12087
rm -f conftest.$ac_objext conftest.$ac_ext
12089
echo "$as_me:12089: result: $ac_cv_type_in_addr_t" >&5
12090
echo "${ECHO_T}$ac_cv_type_in_addr_t" >&6
12091
if test $ac_cv_type_in_addr_t = yes; then
12095
echo "$as_me:12095: checking for in_addr_t equivalent" >&5
12096
echo $ECHO_N "checking for in_addr_t equivalent... $ECHO_C" >&6
12097
if test "${curl_cv_in_addr_t_equiv+set}" = set; then
12098
echo $ECHO_N "(cached) $ECHO_C" >&6
12101
# Systems have either "struct sockaddr *" or
12102
# "void *" as the second argument to getpeername
12103
curl_cv_in_addr_t_equiv=
12104
for t in int size_t unsigned long "unsigned long"; do
12105
cat >conftest.$ac_ext <<_ACEOF
12106
#line 12106 "configure"
12107
#include "confdefs.h"
12109
#include <sys/types.h>
12110
#include <sys/socket.h>
12111
#include <arpa/inet.h>
12117
$t data = inet_addr ("1.2.3.4");
12123
rm -f conftest.$ac_objext
12124
if { (eval echo "$as_me:12124: \"$ac_compile\"") >&5
12125
(eval $ac_compile) 2>&5
12127
echo "$as_me:12127: \$? = $ac_status" >&5
12128
(exit $ac_status); } &&
12129
{ ac_try='test -s conftest.$ac_objext'
12130
{ (eval echo "$as_me:12130: \"$ac_try\"") >&5
12131
(eval $ac_try) 2>&5
12133
echo "$as_me:12133: \$? = $ac_status" >&5
12134
(exit $ac_status); }; }; then
12136
curl_cv_in_addr_t_equiv="$t"
12140
echo "$as_me: failed program was:" >&5
12141
cat conftest.$ac_ext >&5
12143
rm -f conftest.$ac_objext conftest.$ac_ext
12146
if test "x$curl_cv_in_addr_t_equiv" = x; then
12147
{ { echo "$as_me:12147: error: Cannot find a type to use in place of in_addr_t" >&5
12148
echo "$as_me: error: Cannot find a type to use in place of in_addr_t" >&2;}
12149
{ (exit 1); exit 1; }; }
12154
echo "$as_me:12154: result: $curl_cv_in_addr_t_equiv" >&5
12155
echo "${ECHO_T}$curl_cv_in_addr_t_equiv" >&6
12157
cat >>confdefs.h <<EOF
12158
#define in_addr_t $curl_cv_in_addr_t_equiv
12163
echo "$as_me:12163: checking return type of signal handlers" >&5
12164
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12165
if test "${ac_cv_type_signal+set}" = set; then
12166
echo $ECHO_N "(cached) $ECHO_C" >&6
12168
cat >conftest.$ac_ext <<_ACEOF
12169
#line 12169 "configure"
12170
#include "confdefs.h"
12171
#include <sys/types.h>
12172
#include <signal.h>
12177
extern "C" void (*signal (int, void (*)(int)))(int);
12179
void (*signal ()) ();
12190
rm -f conftest.$ac_objext
12191
if { (eval echo "$as_me:12191: \"$ac_compile\"") >&5
12192
(eval $ac_compile) 2>&5
12194
echo "$as_me:12194: \$? = $ac_status" >&5
12195
(exit $ac_status); } &&
12196
{ ac_try='test -s conftest.$ac_objext'
12197
{ (eval echo "$as_me:12197: \"$ac_try\"") >&5
12198
(eval $ac_try) 2>&5
12200
echo "$as_me:12200: \$? = $ac_status" >&5
12201
(exit $ac_status); }; }; then
12202
ac_cv_type_signal=void
12204
echo "$as_me: failed program was:" >&5
12205
cat conftest.$ac_ext >&5
12206
ac_cv_type_signal=int
12208
rm -f conftest.$ac_objext conftest.$ac_ext
12210
echo "$as_me:12210: result: $ac_cv_type_signal" >&5
12211
echo "${ECHO_T}$ac_cv_type_signal" >&6
12213
cat >>confdefs.h <<EOF
12214
#define RETSIGTYPE $ac_cv_type_signal
12217
for ac_func in socket \
12247
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12248
echo "$as_me:12248: checking for $ac_func" >&5
12249
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12250
if eval "test \"\${$as_ac_var+set}\" = set"; then
12251
echo $ECHO_N "(cached) $ECHO_C" >&6
12253
cat >conftest.$ac_ext <<_ACEOF
12254
#line 12254 "configure"
12255
#include "confdefs.h"
12256
/* System header to define __stub macros and hopefully few prototypes,
12257
which can conflict with char $ac_func (); below. */
12258
#include <assert.h>
12259
/* Override any gcc2 internal prototype to avoid an error. */
12263
/* We use char because int might match the return type of a gcc2
12264
builtin and then its argument prototype would still apply. */
12271
/* The GNU C library defines this for functions which it implements
12272
to always fail with ENOSYS. Some functions are actually named
12273
something starting with __ and the normal name is an alias. */
12274
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12284
rm -f conftest.$ac_objext conftest$ac_exeext
12285
if { (eval echo "$as_me:12285: \"$ac_link\"") >&5
12286
(eval $ac_link) 2>&5
12288
echo "$as_me:12288: \$? = $ac_status" >&5
12289
(exit $ac_status); } &&
12290
{ ac_try='test -s conftest$ac_exeext'
12291
{ (eval echo "$as_me:12291: \"$ac_try\"") >&5
12292
(eval $ac_try) 2>&5
12294
echo "$as_me:12294: \$? = $ac_status" >&5
12295
(exit $ac_status); }; }; then
12296
eval "$as_ac_var=yes"
12298
echo "$as_me: failed program was:" >&5
12299
cat conftest.$ac_ext >&5
12300
eval "$as_ac_var=no"
12302
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12304
echo "$as_me:12304: result: `eval echo '${'$as_ac_var'}'`" >&5
12305
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12306
if test `eval echo '${'$as_ac_var'}'` = yes; then
12307
cat >>confdefs.h <<EOF
12308
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12314
if test "$ac_cv_func_select" != "yes"; then
12315
{ { echo "$as_me:12315: error: Can't work without an existing select() function" >&5
12316
echo "$as_me: error: Can't work without an existing select() function" >&2;}
12317
{ (exit 1); exit 1; }; }
12319
if test "$ac_cv_func_socket" != "yes"; then
12320
{ { echo "$as_me:12320: error: Can't work without an existing socket() function" >&5
12321
echo "$as_me: error: Can't work without an existing socket() function" >&2;}
12322
{ (exit 1); exit 1; }; }
12325
# Extract the first word of "perl", so it can be a program name with args.
12326
set dummy perl; ac_word=$2
12327
echo "$as_me:12327: checking for $ac_word" >&5
12328
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12329
if test "${ac_cv_path_PERL+set}" = set; then
12330
echo $ECHO_N "(cached) $ECHO_C" >&6
12334
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12337
ac_save_IFS=$IFS; IFS=$ac_path_separator
12338
ac_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
12339
for ac_dir in $ac_dummy; do
12341
test -z "$ac_dir" && ac_dir=.
12342
if $as_executable_p "$ac_dir/$ac_word"; then
12343
ac_cv_path_PERL="$ac_dir/$ac_word"
12344
echo "$as_me:12344: found $ac_dir/$ac_word" >&5
12352
PERL=$ac_cv_path_PERL
12354
if test -n "$PERL"; then
12355
echo "$as_me:12355: result: $PERL" >&5
12356
echo "${ECHO_T}$PERL" >&6
12358
echo "$as_me:12358: result: no" >&5
12359
echo "${ECHO_T}no" >&6
12362
for ac_prog in gnroff nroff
12364
# Extract the first word of "$ac_prog", so it can be a program name with args.
12365
set dummy $ac_prog; ac_word=$2
12366
echo "$as_me:12366: checking for $ac_word" >&5
12367
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12368
if test "${ac_cv_path_NROFF+set}" = set; then
12369
echo $ECHO_N "(cached) $ECHO_C" >&6
12373
ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
12376
ac_save_IFS=$IFS; IFS=$ac_path_separator
12377
ac_dummy="$PATH:/usr/bin/:/usr/local/bin "
12378
for ac_dir in $ac_dummy; do
12380
test -z "$ac_dir" && ac_dir=.
12381
if $as_executable_p "$ac_dir/$ac_word"; then
12382
ac_cv_path_NROFF="$ac_dir/$ac_word"
12383
echo "$as_me:12383: found $ac_dir/$ac_word" >&5
12391
NROFF=$ac_cv_path_NROFF
12393
if test -n "$NROFF"; then
12394
echo "$as_me:12394: result: $NROFF" >&5
12395
echo "${ECHO_T}$NROFF" >&6
12397
echo "$as_me:12397: result: no" >&5
12398
echo "${ECHO_T}no" >&6
12401
test -n "$NROFF" && break
12404
for ac_prog in 'bison -y' byacc
12406
# Extract the first word of "$ac_prog", so it can be a program name with args.
12407
set dummy $ac_prog; ac_word=$2
12408
echo "$as_me:12408: checking for $ac_word" >&5
12409
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12410
if test "${ac_cv_prog_YACC+set}" = set; then
12411
echo $ECHO_N "(cached) $ECHO_C" >&6
12413
if test -n "$YACC"; then
12414
ac_cv_prog_YACC="$YACC" # Let the user override the test.
12416
ac_save_IFS=$IFS; IFS=$ac_path_separator
12418
for ac_dir in $ac_dummy; do
12420
test -z "$ac_dir" && ac_dir=.
12421
$as_executable_p "$ac_dir/$ac_word" || continue
12422
ac_cv_prog_YACC="$ac_prog"
12423
echo "$as_me:12423: found $ac_dir/$ac_word" >&5
12429
YACC=$ac_cv_prog_YACC
12430
if test -n "$YACC"; then
12431
echo "$as_me:12431: result: $YACC" >&5
12432
echo "${ECHO_T}$YACC" >&6
12434
echo "$as_me:12434: result: no" >&5
12435
echo "${ECHO_T}no" >&6
12438
test -n "$YACC" && break
12440
test -n "$YACC" || YACC="yacc"
12442
ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile tests/Makefile tests/data/Makefile tests/server/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile curl-config"
12444
cat >confcache <<\_ACEOF
12445
# This file is a shell script that caches the results of configure
12446
# tests run on this system so they can be shared between configure
12447
# scripts and configure runs, see configure's option --config-cache.
12448
# It is not useful on other systems. If it contains results you don't
12449
# want to keep, you may remove or edit it.
12451
# config.status only pays attention to the cache file if you give it
12452
# the --recheck option to rerun configure.
12454
# `ac_cv_env_foo' variables (set or unset) will be overriden when
12455
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12456
# following values.
12460
# The following way of writing the cache mishandles newlines in values,
12461
# but we know of no workaround that is simple, portable, and efficient.
12462
# So, don't put newlines in cache variables' values.
12463
# Ultrix sh set writes to stderr and can't be redirected directly,
12464
# and sets the high bit in the cache file unless we assign to the vars.
12467
case `(ac_space=' '; set | grep ac_space) 2>&1` in
12469
# `set' does not quote correctly, so add quotes (double-quote
12470
# substitution turns \\\\ into \\, and sed turns \\ into \).
12473
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12476
# `set' quotes correctly as required by POSIX, so do not add quotes.
12478
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12485
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12487
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12489
if cmp -s $cache_file confcache; then :; else
12490
if test -w $cache_file; then
12491
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12492
cat confcache >$cache_file
12494
echo "not updating unwritable cache $cache_file"
12499
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12500
# Let make expand exec_prefix.
12501
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12503
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12504
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12505
# trailing colons and then remove the whole line if VPATH becomes empty
12506
# (actually we leave an empty line to preserve line numbers).
12507
if test "x$srcdir" = x.; then
12508
ac_vpsub='/^[ ]*VPATH[ ]*=/{
12509
s/:*\$(srcdir):*/:/;
12510
s/:*\${srcdir}:*/:/;
12512
s/^\([^=]*=[ ]*\):*/\1/;
12518
DEFS=-DHAVE_CONFIG_H
12520
: ${CONFIG_STATUS=./config.status}
12521
ac_clean_files_save=$ac_clean_files
12522
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12523
{ echo "$as_me:12523: creating $CONFIG_STATUS" >&5
12524
echo "$as_me: creating $CONFIG_STATUS" >&6;}
12525
cat >$CONFIG_STATUS <<_ACEOF
12527
# Generated automatically by configure.
12528
# Run this file to recreate the current configuration.
12529
# Compiler output produced by configure, useful for debugging
12530
# configure, is in config.log if it exists.
12533
SHELL=\${CONFIG_SHELL-$SHELL}
12534
ac_cs_invocation="\$0 \$@"
12538
cat >>$CONFIG_STATUS <<\_ACEOF
12539
# Be Bourne compatible
12540
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12543
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12547
# Name of the executable.
12548
as_me=`echo "$0" |sed 's,.*[\\/],,'`
12550
if expr a : '\(a\)' >/dev/null 2>&1; then
12556
rm -f conf$$ conf$$.exe conf$$.file
12558
if ln -s conf$$.file conf$$ 2>/dev/null; then
12559
# We could just check for DJGPP; but this test a) works b) is more generic
12560
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12561
if test -f conf$$.exe; then
12562
# Don't use ln at all; we don't have any links
12567
elif ln conf$$.file conf$$ 2>/dev/null; then
12572
rm -f conf$$ conf$$.exe conf$$.file
12574
as_executable_p="test -f"
12576
# Support unset when possible.
12577
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12584
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12585
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12586
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12587
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12588
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12589
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12590
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12591
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12594
# We need space, tab and new line, in precisely that order.
12600
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12606
# Files that config.status was made for.
12607
if test -n "$ac_config_files"; then
12608
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12611
if test -n "$ac_config_headers"; then
12612
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12615
if test -n "$ac_config_links"; then
12616
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12619
if test -n "$ac_config_commands"; then
12620
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12623
cat >>$CONFIG_STATUS <<\EOF
12626
\`$as_me' instantiates files from templates according to the
12627
current configuration.
12629
Usage: $0 [OPTIONS] [FILE]...
12631
-h, --help print this help, then exit
12632
-V, --version print version number, then exit
12633
-d, --debug don't remove temporary files
12634
--recheck update $as_me by reconfiguring in the same conditions
12635
--file=FILE[:TEMPLATE]
12636
instantiate the configuration file FILE
12637
--header=FILE[:TEMPLATE]
12638
instantiate the configuration header FILE
12640
Configuration files:
12643
Configuration headers:
12646
Configuration commands:
12649
Report bugs to <bug-autoconf@gnu.org>."
12652
cat >>$CONFIG_STATUS <<EOF
12655
configured by $0, generated by GNU Autoconf 2.52,
12656
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12658
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12659
Free Software Foundation, Inc.
12660
This config.status script is free software; the Free Software Foundation
12661
gives unlimited permission to copy, distribute and modify it."
12666
cat >>$CONFIG_STATUS <<\EOF
12667
# If no file are specified by the user, then we need to provide default
12668
# value. By we need to know if files were specified by the user.
12674
ac_option=`expr "x$1" : 'x\([^=]*\)='`
12675
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12677
set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12681
*) # This is not an option, so the user has probably given explicit
12683
ac_need_defaults=false;;
12687
# Handling of the options.
12689
cat >>$CONFIG_STATUS <<EOF
12690
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12691
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12692
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12694
cat >>$CONFIG_STATUS <<\EOF
12695
--version | --vers* | -V )
12696
echo "$ac_cs_version"; exit 0 ;;
12698
# Conflict between --help and --header
12699
{ { echo "$as_me:12699: error: ambiguous option: $1
12700
Try \`$0 --help' for more information." >&5
12701
echo "$as_me: error: ambiguous option: $1
12702
Try \`$0 --help' for more information." >&2;}
12703
{ (exit 1); exit 1; }; };;
12704
--help | --hel | -h )
12705
echo "$ac_cs_usage"; exit 0 ;;
12706
--debug | --d* | -d )
12708
--file | --fil | --fi | --f )
12710
CONFIG_FILES="$CONFIG_FILES $1"
12711
ac_need_defaults=false;;
12712
--header | --heade | --head | --hea )
12714
CONFIG_HEADERS="$CONFIG_HEADERS $1"
12715
ac_need_defaults=false;;
12717
# This is an error.
12718
-*) { { echo "$as_me:12718: error: unrecognized option: $1
12719
Try \`$0 --help' for more information." >&5
12720
echo "$as_me: error: unrecognized option: $1
12721
Try \`$0 --help' for more information." >&2;}
12722
{ (exit 1); exit 1; }; } ;;
12724
*) ac_config_targets="$ac_config_targets $1" ;;
12733
## ----------------------- ##
12734
## Running config.status. ##
12735
## ----------------------- ##
12737
This file was extended by $as_me 2.52, executed with
12738
CONFIG_FILES = $CONFIG_FILES
12739
CONFIG_HEADERS = $CONFIG_HEADERS
12740
CONFIG_LINKS = $CONFIG_LINKS
12741
CONFIG_COMMANDS = $CONFIG_COMMANDS
12742
> $ac_cs_invocation
12743
on `(hostname || uname -n) 2>/dev/null | sed 1q`
12748
cat >>$CONFIG_STATUS <<EOF
12750
# INIT-COMMANDS section.
12753
AMDEP_TRUE="$AMDEP_TRUE"
12754
ac_aux_dir="$ac_aux_dir"
12758
cat >>$CONFIG_STATUS <<\EOF
12759
for ac_config_target in $ac_config_targets
12761
case "$ac_config_target" in
12762
# Handling of arguments.
12763
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12764
"docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
12765
"docs/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
12766
"docs/libcurl/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
12767
"include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12768
"include/curl/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
12769
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12770
"lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12771
"tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12772
"tests/data/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
12773
"tests/server/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
12774
"packages/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
12775
"packages/Win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
12776
"packages/Win32/cygwin/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
12777
"packages/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
12778
"packages/Linux/RPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
12779
"packages/Linux/RPM/curl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
12780
"packages/Linux/RPM/curl-ssl.spec" ) CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
12781
"packages/Solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
12782
"packages/EPM/curl.list" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
12783
"packages/EPM/Makefile" ) CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
12784
"curl-config" ) CONFIG_FILES="$CONFIG_FILES curl-config" ;;
12785
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12786
"lib/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
12787
"src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
12788
"tests/server/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS tests/server/config.h" ;;
12789
*) { { echo "$as_me:12789: error: invalid argument: $ac_config_target" >&5
12790
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12791
{ (exit 1); exit 1; }; };;
12795
# If the user did not use the arguments to specify the items to instantiate,
12796
# then the envvar interface is used. Set only those that are not.
12797
# We use the long form for the default assignment because of an extremely
12798
# bizarre bug on SunOS 4.1.3.
12799
if $ac_need_defaults; then
12800
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12801
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12802
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12805
# Create a temporary directory, and hook for its removal unless debugging.
12808
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12809
trap '{ (exit 1); exit 1; }' 1 2 13 15
12812
# Create a (secure) tmp directory for tmp files.
12815
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12816
test -n "$tmp" && test -d "$tmp"
12819
tmp=$TMPDIR/cs$$-$RANDOM
12820
(umask 077 && mkdir $tmp)
12823
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12824
{ (exit 1); exit 1; }
12829
cat >>$CONFIG_STATUS <<EOF
12832
# CONFIG_FILES section.
12835
# No need to generate the scripts if there are no CONFIG_FILES.
12836
# This happens for instance when ./config.status config.h
12837
if test -n "\$CONFIG_FILES"; then
12838
# Protect against being on the right side of a sed subst in config.status.
12839
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12840
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12841
s,@SHELL@,$SHELL,;t t
12842
s,@exec_prefix@,$exec_prefix,;t t
12843
s,@prefix@,$prefix,;t t
12844
s,@program_transform_name@,$program_transform_name,;t t
12845
s,@bindir@,$bindir,;t t
12846
s,@sbindir@,$sbindir,;t t
12847
s,@libexecdir@,$libexecdir,;t t
12848
s,@datadir@,$datadir,;t t
12849
s,@sysconfdir@,$sysconfdir,;t t
12850
s,@sharedstatedir@,$sharedstatedir,;t t
12851
s,@localstatedir@,$localstatedir,;t t
12852
s,@libdir@,$libdir,;t t
12853
s,@includedir@,$includedir,;t t
12854
s,@oldincludedir@,$oldincludedir,;t t
12855
s,@infodir@,$infodir,;t t
12856
s,@mandir@,$mandir,;t t
12857
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12858
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12859
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12860
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12861
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12862
s,@build_alias@,$build_alias,;t t
12863
s,@host_alias@,$host_alias,;t t
12864
s,@target_alias@,$target_alias,;t t
12865
s,@ECHO_C@,$ECHO_C,;t t
12866
s,@ECHO_N@,$ECHO_N,;t t
12867
s,@ECHO_T@,$ECHO_T,;t t
12868
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12869
s,@DEFS@,$DEFS,;t t
12870
s,@LIBS@,$LIBS,;t t
12871
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12872
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12873
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12874
s,@PACKAGE@,$PACKAGE,;t t
12875
s,@VERSION@,$VERSION,;t t
12876
s,@EXEEXT@,$EXEEXT,;t t
12877
s,@OBJEXT@,$OBJEXT,;t t
12878
s,@ACLOCAL@,$ACLOCAL,;t t
12879
s,@AUTOCONF@,$AUTOCONF,;t t
12880
s,@AUTOMAKE@,$AUTOMAKE,;t t
12881
s,@AUTOHEADER@,$AUTOHEADER,;t t
12882
s,@MAKEINFO@,$MAKEINFO,;t t
12883
s,@AMTAR@,$AMTAR,;t t
12884
s,@install_sh@,$install_sh,;t t
12885
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
12887
s,@SET_MAKE@,$SET_MAKE,;t t
12888
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
12889
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
12890
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
12891
s,@DEPDIR@,$DEPDIR,;t t
12892
s,@VERSIONNUM@,$VERSIONNUM,;t t
12893
s,@PKGADD_PKG@,$PKGADD_PKG,;t t
12894
s,@PKGADD_NAME@,$PKGADD_NAME,;t t
12895
s,@PKGADD_VENDOR@,$PKGADD_VENDOR,;t t
12896
s,@build@,$build,;t t
12897
s,@build_cpu@,$build_cpu,;t t
12898
s,@build_vendor@,$build_vendor,;t t
12899
s,@build_os@,$build_os,;t t
12900
s,@host@,$host,;t t
12901
s,@host_cpu@,$host_cpu,;t t
12902
s,@host_vendor@,$host_vendor,;t t
12903
s,@host_os@,$host_os,;t t
12905
s,@CFLAGS@,$CFLAGS,;t t
12906
s,@LDFLAGS@,$LDFLAGS,;t t
12907
s,@CPPFLAGS@,$CPPFLAGS,;t t
12908
s,@ac_ct_CC@,$ac_ct_CC,;t t
12909
s,@am__include@,$am__include,;t t
12910
s,@am__quote@,$am__quote,;t t
12911
s,@CCDEPMODE@,$CCDEPMODE,;t t
12913
s,@LN_S@,$LN_S,;t t
12914
s,@ECHO@,$ECHO,;t t
12915
s,@RANLIB@,$RANLIB,;t t
12916
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12917
s,@STRIP@,$STRIP,;t t
12918
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
12919
s,@DLLTOOL@,$DLLTOOL,;t t
12920
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
12922
s,@ac_ct_AS@,$ac_ct_AS,;t t
12923
s,@OBJDUMP@,$OBJDUMP,;t t
12924
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
12925
s,@LIBTOOL@,$LIBTOOL,;t t
12926
s,@IPV6_ENABLED@,$IPV6_ENABLED,;t t
12927
s,@RANDOM_FILE@,$RANDOM_FILE,;t t
12928
s,@KRB4_ENABLED@,$KRB4_ENABLED,;t t
12929
s,@OPENSSL_ENABLED@,$OPENSSL_ENABLED,;t t
12930
s,@PERL@,$PERL,;t t
12931
s,@NROFF@,$NROFF,;t t
12932
s,@YACC@,$YACC,;t t
12937
cat >>$CONFIG_STATUS <<\EOF
12938
# Split the substitutions into bite-sized pieces for seds with
12939
# small command number limits, like on Digital OSF/1 and HP-UX.
12940
ac_max_sed_lines=48
12941
ac_sed_frag=1 # Number of current file.
12942
ac_beg=1 # First line for current file.
12943
ac_end=$ac_max_sed_lines # Line after last line for current file.
12946
while $ac_more_lines; do
12947
if test $ac_beg -gt 1; then
12948
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12950
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12952
if test ! -s $tmp/subs.frag; then
12953
ac_more_lines=false
12955
# The purpose of the label and of the branching condition is to
12956
# speed up the sed processing (if there are no `@' at all, there
12957
# is no need to browse any of the substitutions).
12958
# These are the two extra sed commands mentioned above.
12960
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12961
if test -z "$ac_sed_cmds"; then
12962
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12964
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12966
ac_sed_frag=`expr $ac_sed_frag + 1`
12968
ac_end=`expr $ac_end + $ac_max_sed_lines`
12971
if test -z "$ac_sed_cmds"; then
12974
fi # test -n "$CONFIG_FILES"
12977
cat >>$CONFIG_STATUS <<\EOF
12978
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12979
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12981
- | *:- | *:-:* ) # input from stdin
12983
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12984
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12985
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12986
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12987
* ) ac_file_in=$ac_file.in ;;
12990
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12991
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12992
X"$ac_file" : 'X\(//\)[^/]' \| \
12993
X"$ac_file" : 'X\(//\)$' \| \
12994
X"$ac_file" : 'X\(/\)' \| \
12995
. : '\(.\)' 2>/dev/null ||
12997
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12998
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
12999
/^X\(\/\/\)$/{ s//\1/; q; }
13000
/^X\(\/\).*/{ s//\1/; q; }
13002
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13003
{ case "$ac_dir" in
13004
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
13008
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13009
case $as_mkdir_dir in
13010
# Skip DOS drivespec
13011
?:) as_incr_dir=$as_mkdir_dir ;;
13013
as_incr_dir=$as_incr_dir/$as_mkdir_dir
13014
test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13019
ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
13020
# A "../" for each directory in $ac_dir_suffix.
13021
ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13023
ac_dir_suffix= ac_dots=
13028
if test -z "$ac_dots"; then
13031
ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
13033
[\\/]* | ?:[\\/]* )
13034
ac_srcdir=$srcdir$ac_dir_suffix;
13035
ac_top_srcdir=$srcdir ;;
13036
*) # Relative path.
13037
ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
13038
ac_top_srcdir=$ac_dots$srcdir ;;
13042
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13043
*) ac_INSTALL=$ac_dots$INSTALL ;;
13046
if test x"$ac_file" != x-; then
13047
{ echo "$as_me:13047: creating $ac_file" >&5
13048
echo "$as_me: creating $ac_file" >&6;}
13051
# Let's still pretend it is `configure' which instantiates (i.e., don't
13052
# use $as_me), people would be surprised to read:
13053
# /* config.h. Generated automatically by config.status. */
13054
configure_input="Generated automatically from `echo $ac_file_in |
13055
sed 's,.*/,,'` by configure."
13057
# First look for the input files in the build tree, otherwise in the
13059
ac_file_inputs=`IFS=:
13060
for f in $ac_file_in; do
13062
-) echo $tmp/stdin ;;
13064
# Absolute (can't be DOS-style, as IFS=:)
13065
test -f "$f" || { { echo "$as_me:13065: error: cannot find input file: $f" >&5
13066
echo "$as_me: error: cannot find input file: $f" >&2;}
13067
{ (exit 1); exit 1; }; }
13070
if test -f "$f"; then
13073
elif test -f "$srcdir/$f"; then
13078
{ { echo "$as_me:13078: error: cannot find input file: $f" >&5
13079
echo "$as_me: error: cannot find input file: $f" >&2;}
13080
{ (exit 1); exit 1; }; }
13083
done` || { (exit 1); exit 1; }
13085
cat >>$CONFIG_STATUS <<EOF
13089
cat >>$CONFIG_STATUS <<\EOF
13091
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13092
s,@configure_input@,$configure_input,;t t
13093
s,@srcdir@,$ac_srcdir,;t t
13094
s,@top_srcdir@,$ac_top_srcdir,;t t
13095
s,@INSTALL@,$ac_INSTALL,;t t
13096
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13098
if test x"$ac_file" != x-; then
13099
mv $tmp/out $ac_file
13107
cat >>$CONFIG_STATUS <<\EOF
13110
# CONFIG_HEADER section.
13113
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13114
# NAME is the cpp macro being defined and VALUE is the value it is being given.
13116
# ac_d sets the value in "#define NAME VALUE" lines.
13117
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13118
ac_dB='[ ].*$,\1#\2'
13121
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13122
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13123
ac_uB='$,\1#\2define\3'
13127
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13128
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13130
- | *:- | *:-:* ) # input from stdin
13132
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13133
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13134
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13135
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13136
* ) ac_file_in=$ac_file.in ;;
13139
test x"$ac_file" != x- && { echo "$as_me:13139: creating $ac_file" >&5
13140
echo "$as_me: creating $ac_file" >&6;}
13142
# First look for the input files in the build tree, otherwise in the
13144
ac_file_inputs=`IFS=:
13145
for f in $ac_file_in; do
13147
-) echo $tmp/stdin ;;
13149
# Absolute (can't be DOS-style, as IFS=:)
13150
test -f "$f" || { { echo "$as_me:13150: error: cannot find input file: $f" >&5
13151
echo "$as_me: error: cannot find input file: $f" >&2;}
13152
{ (exit 1); exit 1; }; }
13155
if test -f "$f"; then
13158
elif test -f "$srcdir/$f"; then
13163
{ { echo "$as_me:13163: error: cannot find input file: $f" >&5
13164
echo "$as_me: error: cannot find input file: $f" >&2;}
13165
{ (exit 1); exit 1; }; }
13168
done` || { (exit 1); exit 1; }
13169
# Remove the trailing spaces.
13170
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13174
# Transform confdefs.h into two sed scripts, `conftest.defines' and
13175
# `conftest.undefs', that substitutes the proper values into
13176
# config.h.in to produce config.h. The first handles `#define'
13177
# templates, and the second `#undef' templates.
13178
# And first: Protect against being on the right side of a sed subst in
13179
# config.status. Protect against being in an unquoted here document
13180
# in config.status.
13181
rm -f conftest.defines conftest.undefs
13182
# Using a here document instead of a string reduces the quoting nightmare.
13183
# Putting comments in sed scripts is not portable.
13185
# `end' is used to avoid that the second main sed command (meant for
13186
# 0-ary CPP macros) applies to n-ary macro definitions.
13187
# See the Autoconf documentation for `clear'.
13188
cat >confdef2sed.sed <<\EOF
13193
s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13195
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13198
# If some macros were called several times there might be several times
13199
# the same #defines, which is useless. Nevertheless, we may not want to
13200
# sort them, since we want the *last* AC-DEFINE to be honored.
13201
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13202
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13203
rm -f confdef2sed.sed
13205
# This sed command replaces #undef with comments. This is necessary, for
13206
# example, in the case of _POSIX_SOURCE, which is predefined and required
13207
# on some systems where configure will not decide to define it.
13208
cat >>conftest.undefs <<\EOF
13209
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13212
# Break up conftest.defines because some shells have a limit on the size
13213
# of here documents, and old seds have small limits too (100 cmds).
13214
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13215
echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13216
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13217
echo ' :' >>$CONFIG_STATUS
13218
rm -f conftest.tail
13219
while grep . conftest.defines >/dev/null
13221
# Write a limited-size here document to $tmp/defines.sed.
13222
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13223
# Speed up: don't consider the non `#define' lines.
13224
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13225
# Work around the forget-to-reset-the-flag bug.
13226
echo 't clr' >>$CONFIG_STATUS
13227
echo ': clr' >>$CONFIG_STATUS
13228
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13230
sed -f $tmp/defines.sed $tmp/in >$tmp/out
13232
mv $tmp/out $tmp/in
13234
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13235
rm -f conftest.defines
13236
mv conftest.tail conftest.defines
13238
rm -f conftest.defines
13239
echo ' fi # egrep' >>$CONFIG_STATUS
13240
echo >>$CONFIG_STATUS
13242
# Break up conftest.undefs because some shells have a limit on the size
13243
# of here documents, and old seds have small limits too (100 cmds).
13244
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13245
rm -f conftest.tail
13246
while grep . conftest.undefs >/dev/null
13248
# Write a limited-size here document to $tmp/undefs.sed.
13249
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13250
# Speed up: don't consider the non `#undef'
13251
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13252
# Work around the forget-to-reset-the-flag bug.
13253
echo 't clr' >>$CONFIG_STATUS
13254
echo ': clr' >>$CONFIG_STATUS
13255
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13257
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13259
mv $tmp/out $tmp/in
13261
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13262
rm -f conftest.undefs
13263
mv conftest.tail conftest.undefs
13265
rm -f conftest.undefs
13267
cat >>$CONFIG_STATUS <<\EOF
13268
# Let's still pretend it is `configure' which instantiates (i.e., don't
13269
# use $as_me), people would be surprised to read:
13270
# /* config.h. Generated automatically by config.status. */
13271
if test x"$ac_file" = x-; then
13272
echo "/* Generated automatically by configure. */" >$tmp/config.h
13274
echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
13276
cat $tmp/in >>$tmp/config.h
13278
if test x"$ac_file" != x-; then
13279
if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13280
{ echo "$as_me:13280: $ac_file is unchanged" >&5
13281
echo "$as_me: $ac_file is unchanged" >&6;}
13283
ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13284
X"$ac_file" : 'X\(//\)[^/]' \| \
13285
X"$ac_file" : 'X\(//\)$' \| \
13286
X"$ac_file" : 'X\(/\)' \| \
13287
. : '\(.\)' 2>/dev/null ||
13289
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13290
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
13291
/^X\(\/\/\)$/{ s//\1/; q; }
13292
/^X\(\/\).*/{ s//\1/; q; }
13294
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13295
{ case "$ac_dir" in
13296
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
13300
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13301
case $as_mkdir_dir in
13302
# Skip DOS drivespec
13303
?:) as_incr_dir=$as_mkdir_dir ;;
13305
as_incr_dir=$as_incr_dir/$as_mkdir_dir
13306
test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13313
mv $tmp/config.h $ac_file
13317
rm -f $tmp/config.h
13319
# Run the commands associated with the file.
13321
lib/config.h ) # update the timestamp
13322
echo timestamp >"lib/stamp-h1"
13324
src/config.h ) # update the timestamp
13325
echo timestamp >"src/stamp-h2"
13327
tests/server/config.h ) # update the timestamp
13328
echo timestamp >"tests/server/stamp-h3"
13333
cat >>$CONFIG_STATUS <<\EOF
13336
# CONFIG_COMMANDS section.
13338
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13339
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13340
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13344
test x"$AMDEP_TRUE" != x"" ||
13345
for mf in $CONFIG_FILES; do
13347
Makefile) dirpart=.;;
13348
*/Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
13351
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
13352
# Extract the definition of DEP_FILES from the Makefile without
13354
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
13355
test -z "$DEPDIR" && continue
13356
# When using ansi2knr, U may be empty or an underscore; expand it
13357
U=`sed -n -e '/^U = / s///p' < "$mf"`
13358
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
13359
# We invoke sed twice because it is the simplest approach to
13360
# changing $(DEPDIR) to its actual value in the expansion.
13361
for file in `sed -n -e '
13362
/^DEP_FILES = .*\\\\$/ {
13371
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
13372
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13373
# Make sure the directory exists.
13374
test -f "$dirpart/$file" && continue
13375
fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
13376
$ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
13377
# echo "creating $dirpart/$file"
13378
echo '# dummy' > "$dirpart/$file"
13386
cat >>$CONFIG_STATUS <<\EOF
13388
{ (exit 0); exit 0; }
13390
chmod +x $CONFIG_STATUS
13391
ac_clean_files=$ac_clean_files_save
13393
# configure is writing to config.log, and then calls config.status.
13394
# config.status does its own redirection, appending to config.log.
13395
# Unfortunately, on DOS this fails, as config.log is still kept open
13396
# by configure, so config.status won't be able to write to it; its
13397
# output is simply discarded. So we exec the FD to /dev/null,
13398
# effectively closing config.log, so it can be properly (re)opened and
13399
# appended to by config.status. When coming back to configure, we
13400
# need to make the FD available again.
13401
if test "$no_create" != yes; then
13404
$SHELL $CONFIG_STATUS || ac_cs_success=false
13406
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
13407
# would make configure fail if this is the last instruction.
13408
$ac_cs_success || { (exit 1); exit 1; }