2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.59.
5
# Copyright (C) 2003 Free Software Foundation, Inc.
6
# This configure script is free software; the Free Software Foundation
7
# gives unlimited permission to copy, distribute and modify it.
8
## --------------------- ##
9
## M4sh Initialization. ##
10
## --------------------- ##
12
# Be Bourne compatible
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
# is contrary to our usage. Disable this feature.
18
alias -g '${1+"$@"}'='"$@"'
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
DUALCASE=1; export DUALCASE # for MKS sh
24
# Support unset when possible.
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
221
test -d ./-p && rmdir ./-p
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
# Sed expression to map a string onto a valid variable name.
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
# We need space, tab and new line, in precisely that order.
245
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
# so uname gets run too.
247
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254
ac_default_prefix=/usr/local
255
ac_config_libobj_dir=.
260
SHELL=${CONFIG_SHELL-/bin/sh}
262
# Maximum number of lines to put in a shell here document.
263
# This variable seems obsolete. It should probably be removed, and
264
# only ac_max_sed_lines should be used.
265
: ${ac_max_here_lines=38}
267
# Identity of this package.
274
ac_unique_file="conf_vars.in"
275
# Factoring default headers for most tests.
276
ac_includes_default="\
279
# include <sys/types.h>
282
# include <sys/stat.h>
293
# if !STDC_HEADERS && HAVE_MEMORY_H
299
# include <strings.h>
302
# include <inttypes.h>
312
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEBUG_FLAGS CPP EGREP SHLIB_LD SHLIB_LDFLAGS SHLIB_LDLIBS SHLIB_CFLAGS SHLIB_SUFFIX SHLIB_EXTRACT_ALL EI_CFLAGS ERTS_CFLAGS ERTS_LIBS HCC LD obj exe CROSSLDFLAGS SSLEAY_ROOT JAVAC make_command test_c_compiler LIBOBJS LTLIBOBJS'
315
# Initialize some variables set by options.
317
ac_init_version=false
318
# The variables have the same names as the options, with
319
# dashes changed to underlines.
327
program_transform_name=s,x,x,
335
# Installation directory options.
336
# These are left unexpanded so users can "make install exec_prefix=/foo"
337
# and all the variables that are supposed to be based on exec_prefix
338
# by default will actually change.
339
# Use braces instead of parens because sh, perl, etc. also accept them.
340
bindir='${exec_prefix}/bin'
341
sbindir='${exec_prefix}/sbin'
342
libexecdir='${exec_prefix}/libexec'
343
datadir='${prefix}/share'
344
sysconfdir='${prefix}/etc'
345
sharedstatedir='${prefix}/com'
346
localstatedir='${prefix}/var'
347
libdir='${exec_prefix}/lib'
348
includedir='${prefix}/include'
349
oldincludedir='/usr/include'
350
infodir='${prefix}/info'
351
mandir='${prefix}/man'
356
# If the previous option needs an argument, assign it.
357
if test -n "$ac_prev"; then
358
eval "$ac_prev=\$ac_option"
363
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
# Accept the important Cygnus configure options, so we can diagnose typos.
369
-bindir | --bindir | --bindi | --bind | --bin | --bi)
371
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374
-build | --build | --buil | --bui | --bu)
375
ac_prev=build_alias ;;
376
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
377
build_alias=$ac_optarg ;;
379
-cache-file | --cache-file | --cache-fil | --cache-fi \
380
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381
ac_prev=cache_file ;;
382
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384
cache_file=$ac_optarg ;;
387
cache_file=config.cache ;;
389
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393
datadir=$ac_optarg ;;
395
-disable-* | --disable-*)
396
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397
# Reject names that are not valid shell variable names.
398
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
400
{ (exit 1); exit 1; }; }
401
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402
eval "enable_$ac_feature=no" ;;
404
-enable-* | --enable-*)
405
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406
# Reject names that are not valid shell variable names.
407
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
409
{ (exit 1); exit 1; }; }
410
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415
eval "enable_$ac_feature='$ac_optarg'" ;;
417
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419
| --exec | --exe | --ex)
420
ac_prev=exec_prefix ;;
421
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423
| --exec=* | --exe=* | --ex=*)
424
exec_prefix=$ac_optarg ;;
426
-gas | --gas | --ga | --g)
427
# Obsolete; use --with-gas.
430
-help | --help | --hel | --he | -h)
432
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433
ac_init_help=recursive ;;
434
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435
ac_init_help=short ;;
437
-host | --host | --hos | --ho)
438
ac_prev=host_alias ;;
439
-host=* | --host=* | --hos=* | --ho=*)
440
host_alias=$ac_optarg ;;
442
-includedir | --includedir | --includedi | --included | --include \
443
| --includ | --inclu | --incl | --inc)
444
ac_prev=includedir ;;
445
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446
| --includ=* | --inclu=* | --incl=* | --inc=*)
447
includedir=$ac_optarg ;;
449
-infodir | --infodir | --infodi | --infod | --info | --inf)
451
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452
infodir=$ac_optarg ;;
454
-libdir | --libdir | --libdi | --libd)
456
-libdir=* | --libdir=* | --libdi=* | --libd=*)
459
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460
| --libexe | --libex | --libe)
461
ac_prev=libexecdir ;;
462
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463
| --libexe=* | --libex=* | --libe=*)
464
libexecdir=$ac_optarg ;;
466
-localstatedir | --localstatedir | --localstatedi | --localstated \
467
| --localstate | --localstat | --localsta | --localst \
468
| --locals | --local | --loca | --loc | --lo)
469
ac_prev=localstatedir ;;
470
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
472
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473
localstatedir=$ac_optarg ;;
475
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481
# Obsolete; use --without-fp.
484
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
485
| --no-cr | --no-c | -n)
488
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
489
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494
| --oldin | --oldi | --old | --ol | --o)
495
ac_prev=oldincludedir ;;
496
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499
oldincludedir=$ac_optarg ;;
501
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506
-program-prefix | --program-prefix | --program-prefi | --program-pref \
507
| --program-pre | --program-pr | --program-p)
508
ac_prev=program_prefix ;;
509
-program-prefix=* | --program-prefix=* | --program-prefi=* \
510
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511
program_prefix=$ac_optarg ;;
513
-program-suffix | --program-suffix | --program-suffi | --program-suff \
514
| --program-suf | --program-su | --program-s)
515
ac_prev=program_suffix ;;
516
-program-suffix=* | --program-suffix=* | --program-suffi=* \
517
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518
program_suffix=$ac_optarg ;;
520
-program-transform-name | --program-transform-name \
521
| --program-transform-nam | --program-transform-na \
522
| --program-transform-n | --program-transform- \
523
| --program-transform | --program-transfor \
524
| --program-transfo | --program-transf \
525
| --program-trans | --program-tran \
526
| --progr-tra | --program-tr | --program-t)
527
ac_prev=program_transform_name ;;
528
-program-transform-name=* | --program-transform-name=* \
529
| --program-transform-nam=* | --program-transform-na=* \
530
| --program-transform-n=* | --program-transform-=* \
531
| --program-transform=* | --program-transfor=* \
532
| --program-transfo=* | --program-transf=* \
533
| --program-trans=* | --program-tran=* \
534
| --progr-tra=* | --program-tr=* | --program-t=*)
535
program_transform_name=$ac_optarg ;;
537
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
538
| -silent | --silent | --silen | --sile | --sil)
541
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545
sbindir=$ac_optarg ;;
547
-sharedstatedir | --sharedstatedir | --sharedstatedi \
548
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549
| --sharedst | --shareds | --shared | --share | --shar \
551
ac_prev=sharedstatedir ;;
552
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556
sharedstatedir=$ac_optarg ;;
558
-site | --site | --sit)
560
-site=* | --site=* | --sit=*)
563
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569
| --syscon | --sysco | --sysc | --sys | --sy)
570
ac_prev=sysconfdir ;;
571
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573
sysconfdir=$ac_optarg ;;
575
-target | --target | --targe | --targ | --tar | --ta | --t)
576
ac_prev=target_alias ;;
577
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578
target_alias=$ac_optarg ;;
580
-v | -verbose | --verbose | --verbos | --verbo | --verb)
583
-version | --version | --versio | --versi | --vers | -V)
587
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588
# Reject names that are not valid shell variable names.
589
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590
{ echo "$as_me: error: invalid package name: $ac_package" >&2
591
{ (exit 1); exit 1; }; }
592
ac_package=`echo $ac_package| sed 's/-/_/g'`
594
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597
eval "with_$ac_package='$ac_optarg'" ;;
599
-without-* | --without-*)
600
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601
# Reject names that are not valid shell variable names.
602
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603
{ echo "$as_me: error: invalid package name: $ac_package" >&2
604
{ (exit 1); exit 1; }; }
605
ac_package=`echo $ac_package | sed 's/-/_/g'`
606
eval "with_$ac_package=no" ;;
609
# Obsolete; use --with-x.
612
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613
| --x-incl | --x-inc | --x-in | --x-i)
614
ac_prev=x_includes ;;
615
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617
x_includes=$ac_optarg ;;
619
-x-libraries | --x-libraries | --x-librarie | --x-librari \
620
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621
ac_prev=x_libraries ;;
622
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624
x_libraries=$ac_optarg ;;
626
-*) { echo "$as_me: error: unrecognized option: $ac_option
627
Try \`$0 --help' for more information." >&2
628
{ (exit 1); exit 1; }; }
632
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633
# Reject names that are not valid shell variable names.
634
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636
{ (exit 1); exit 1; }; }
637
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638
eval "$ac_envvar='$ac_optarg'"
642
# FIXME: should be removed in autoconf 3.0.
643
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652
if test -n "$ac_prev"; then
653
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654
{ echo "$as_me: error: missing argument to $ac_option" >&2
655
{ (exit 1); exit 1; }; }
658
# Be sure to have absolute paths.
659
for ac_var in exec_prefix prefix
661
eval ac_val=$`echo $ac_var`
663
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665
{ (exit 1); exit 1; }; };;
669
# Be sure to have absolute paths.
670
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671
localstatedir libdir includedir oldincludedir infodir mandir
673
eval ac_val=$`echo $ac_var`
675
[\\/$]* | ?:[\\/]* ) ;;
676
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677
{ (exit 1); exit 1; }; };;
681
# There might be people who depend on the old broken behavior: `$host'
682
# used to hold the argument of --host etc.
683
# FIXME: To remove some day.
688
# FIXME: To remove some day.
689
if test "x$host_alias" != x; then
690
if test "x$build_alias" = x; then
691
cross_compiling=maybe
692
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693
If a cross compiler is detected then cross compile mode will be used." >&2
694
elif test "x$build_alias" != "x$host_alias"; then
700
test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
test "$silent" = yes && exec 6>/dev/null
705
# Find the source files, if location was not specified.
706
if test -z "$srcdir"; then
707
ac_srcdir_defaulted=yes
708
# Try the directory containing this script, then its parent.
709
ac_confdir=`(dirname "$0") 2>/dev/null ||
710
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711
X"$0" : 'X\(//\)[^/]' \| \
712
X"$0" : 'X\(//\)$' \| \
713
X"$0" : 'X\(/\)' \| \
714
. : '\(.\)' 2>/dev/null ||
716
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
718
/^X\(\/\/\)$/{ s//\1/; q; }
719
/^X\(\/\).*/{ s//\1/; q; }
722
if test ! -r $srcdir/$ac_unique_file; then
726
ac_srcdir_defaulted=no
728
if test ! -r $srcdir/$ac_unique_file; then
729
if test "$ac_srcdir_defaulted" = yes; then
730
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731
{ (exit 1); exit 1; }; }
733
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734
{ (exit 1); exit 1; }; }
737
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739
{ (exit 1); exit 1; }; }
740
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741
ac_env_build_alias_set=${build_alias+set}
742
ac_env_build_alias_value=$build_alias
743
ac_cv_env_build_alias_set=${build_alias+set}
744
ac_cv_env_build_alias_value=$build_alias
745
ac_env_host_alias_set=${host_alias+set}
746
ac_env_host_alias_value=$host_alias
747
ac_cv_env_host_alias_set=${host_alias+set}
748
ac_cv_env_host_alias_value=$host_alias
749
ac_env_target_alias_set=${target_alias+set}
750
ac_env_target_alias_value=$target_alias
751
ac_cv_env_target_alias_set=${target_alias+set}
752
ac_cv_env_target_alias_value=$target_alias
753
ac_env_CC_set=${CC+set}
755
ac_cv_env_CC_set=${CC+set}
756
ac_cv_env_CC_value=$CC
757
ac_env_CFLAGS_set=${CFLAGS+set}
758
ac_env_CFLAGS_value=$CFLAGS
759
ac_cv_env_CFLAGS_set=${CFLAGS+set}
760
ac_cv_env_CFLAGS_value=$CFLAGS
761
ac_env_LDFLAGS_set=${LDFLAGS+set}
762
ac_env_LDFLAGS_value=$LDFLAGS
763
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764
ac_cv_env_LDFLAGS_value=$LDFLAGS
765
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766
ac_env_CPPFLAGS_value=$CPPFLAGS
767
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769
ac_env_CPP_set=${CPP+set}
770
ac_env_CPP_value=$CPP
771
ac_cv_env_CPP_set=${CPP+set}
772
ac_cv_env_CPP_value=$CPP
775
# Report the --help message.
777
if test "$ac_init_help" = "long"; then
778
# Omit some internal or obsolete options to make the list less imposing.
779
# This message is too long to be a string in the A/UX 3.1 sh.
781
\`configure' configures this package to adapt to many kinds of systems.
783
Usage: $0 [OPTION]... [VAR=VALUE]...
785
To assign environment variables (e.g., CC, CFLAGS...), specify them as
786
VAR=VALUE. See below for descriptions of some of the useful variables.
788
Defaults for the options are specified in brackets.
791
-h, --help display this help and exit
792
--help=short display options specific to this package
793
--help=recursive display the short help of all the included packages
794
-V, --version display version information and exit
795
-q, --quiet, --silent do not print \`checking...' messages
796
--cache-file=FILE cache test results in FILE [disabled]
797
-C, --config-cache alias for \`--cache-file=config.cache'
798
-n, --no-create do not create output files
799
--srcdir=DIR find the sources in DIR [configure dir or \`..']
804
Installation directories:
805
--prefix=PREFIX install architecture-independent files in PREFIX
807
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810
By default, \`make install' will install all the files in
811
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813
for instance \`--prefix=\$HOME'.
815
For better control, use the options below.
817
Fine tuning of the installation directories:
818
--bindir=DIR user executables [EPREFIX/bin]
819
--sbindir=DIR system admin executables [EPREFIX/sbin]
820
--libexecdir=DIR program executables [EPREFIX/libexec]
821
--datadir=DIR read-only architecture-independent data [PREFIX/share]
822
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
825
--libdir=DIR object code libraries [EPREFIX/lib]
826
--includedir=DIR C header files [PREFIX/include]
827
--oldincludedir=DIR C header files for non-gcc [/usr/include]
828
--infodir=DIR info documentation [PREFIX/info]
829
--mandir=DIR man documentation [PREFIX/man]
835
--build=BUILD configure for building on BUILD [guessed]
836
--host=HOST cross-compile to build programs to run on HOST [BUILD]
840
if test -n "$ac_init_help"; then
845
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847
--enable-debug-mode enable debug mode
848
--enable-shlib-thread-safety enable thread safety for build shared libraries
850
Some influential environment variables:
851
CC C compiler command
852
CFLAGS C compiler flags
853
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
854
nonstandard directory <lib dir>
855
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
856
headers in a nonstandard directory <include dir>
859
Use these variables to override the choices made by `configure' or to help
860
it to find libraries and programs with nonstandard names/locations.
865
if test "$ac_init_help" = "recursive"; then
866
# If there are subdirs, report their specific --help.
868
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869
test -d $ac_dir || continue
872
if test "$ac_dir" != .; then
873
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
874
# A "../" for each directory in $ac_dir_suffix.
875
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
877
ac_dir_suffix= ac_top_builddir=
881
.) # No --srcdir option. We are building in place.
883
if test -z "$ac_top_builddir"; then
886
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
888
[\\/]* | ?:[\\/]* ) # Absolute path.
889
ac_srcdir=$srcdir$ac_dir_suffix;
890
ac_top_srcdir=$srcdir ;;
892
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893
ac_top_srcdir=$ac_top_builddir$srcdir ;;
896
# Do not use `cd foo && pwd` to compute absolute paths, because
897
# the directories may not exist.
899
.) ac_abs_builddir="$ac_dir";;
902
.) ac_abs_builddir=`pwd`;;
903
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
904
*) ac_abs_builddir=`pwd`/"$ac_dir";;
907
case $ac_abs_builddir in
908
.) ac_abs_top_builddir=${ac_top_builddir}.;;
910
case ${ac_top_builddir}. in
911
.) ac_abs_top_builddir=$ac_abs_builddir;;
912
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
913
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
916
case $ac_abs_builddir in
917
.) ac_abs_srcdir=$ac_srcdir;;
920
.) ac_abs_srcdir=$ac_abs_builddir;;
921
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
922
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
925
case $ac_abs_builddir in
926
.) ac_abs_top_srcdir=$ac_top_srcdir;;
928
case $ac_top_srcdir in
929
.) ac_abs_top_srcdir=$ac_abs_builddir;;
930
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
931
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
936
# Check for guested configure; otherwise get Cygnus style configure.
937
if test -f $ac_srcdir/configure.gnu; then
939
$SHELL $ac_srcdir/configure.gnu --help=recursive
940
elif test -f $ac_srcdir/configure; then
942
$SHELL $ac_srcdir/configure --help=recursive
943
elif test -f $ac_srcdir/configure.ac ||
944
test -f $ac_srcdir/configure.in; then
948
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954
test -n "$ac_init_help" && exit 0
955
if $ac_init_version; then
958
Copyright (C) 2003 Free Software Foundation, Inc.
959
This configure script is free software; the Free Software Foundation
960
gives unlimited permission to copy, distribute and modify it.
966
This file contains any messages produced by compilers while
967
running configure, to aid debugging if configure makes a mistake.
969
It was created by $as_me, which was
970
generated by GNU Autoconf 2.59. Invocation command line was
981
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
982
uname -m = `(uname -m) 2>/dev/null || echo unknown`
983
uname -r = `(uname -r) 2>/dev/null || echo unknown`
984
uname -s = `(uname -s) 2>/dev/null || echo unknown`
985
uname -v = `(uname -v) 2>/dev/null || echo unknown`
987
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
988
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
990
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
991
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
992
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
993
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
994
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
995
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
996
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1000
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004
test -z "$as_dir" && as_dir=.
1005
echo "PATH: $as_dir"
1020
# Keep a trace of the command line.
1021
# Strip out --no-create and --no-recursion so they do not pile up.
1022
# Strip out --silent because we don't want to record it for future runs.
1023
# Also quote any args containing shell meta-characters.
1024
# Make two passes to allow for proper duplicate-argument suppression.
1029
ac_must_keep_next=false
1035
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1036
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1037
| -silent | --silent | --silen | --sile | --sil)
1039
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1040
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1045
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1046
if test $ac_must_keep_next = true; then
1047
ac_must_keep_next=false # Got value, back to normal.
1050
*=* | --config-cache | -C | -disable-* | --disable-* \
1051
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1052
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1053
| -with-* | --with-* | -without-* | --without-* | --x)
1054
case "$ac_configure_args0 " in
1055
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058
-* ) ac_must_keep_next=true ;;
1061
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1062
# Get rid of the leading space.
1068
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1069
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1071
# When interrupted or exit'd, cleanup temporary files, and complete
1072
# config.log. We remove comments because anyway the quotes in there
1073
# would cause problems or look ugly.
1074
# WARNING: Be sure not to use single quotes in there, as some shells,
1075
# such as our DU 5.0 friend, will then `close' the trap.
1076
trap 'exit_status=$?
1077
# Save into config.log some information that might help in debugging.
1082
## ---------------- ##
1083
## Cache variables. ##
1084
## ---------------- ##
1087
# The following way of writing the cache mishandles newlines in values,
1090
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1094
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1105
## ----------------- ##
1106
## Output variables. ##
1107
## ----------------- ##
1110
for ac_var in $ac_subst_vars
1112
eval ac_val=$`echo $ac_var`
1113
echo "$ac_var='"'"'$ac_val'"'"'"
1117
if test -n "$ac_subst_files"; then
1124
for ac_var in $ac_subst_files
1126
eval ac_val=$`echo $ac_var`
1127
echo "$ac_var='"'"'$ac_val'"'"'"
1132
if test -s confdefs.h; then
1139
sed "/^$/d" confdefs.h | sort
1142
test "$ac_signal" != 0 &&
1143
echo "$as_me: caught signal $ac_signal"
1144
echo "$as_me: exit $exit_status"
1146
rm -f core *.core &&
1147
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150
for ac_signal in 1 2 13 15; do
1151
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1156
rm -rf conftest* confdefs.h
1157
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160
# Predefined preprocessor variables.
1162
cat >>confdefs.h <<_ACEOF
1163
#define PACKAGE_NAME "$PACKAGE_NAME"
1167
cat >>confdefs.h <<_ACEOF
1168
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172
cat >>confdefs.h <<_ACEOF
1173
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1177
cat >>confdefs.h <<_ACEOF
1178
#define PACKAGE_STRING "$PACKAGE_STRING"
1182
cat >>confdefs.h <<_ACEOF
1183
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187
# Let the site file select an alternate cache file if it wants to.
1188
# Prefer explicitly selected file to automatically selected ones.
1189
if test -z "$CONFIG_SITE"; then
1190
if test "x$prefix" != xNONE; then
1191
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1193
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196
for ac_site_file in $CONFIG_SITE; do
1197
if test -r "$ac_site_file"; then
1198
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1199
echo "$as_me: loading site script $ac_site_file" >&6;}
1200
sed 's/^/| /' "$ac_site_file" >&5
1205
if test -r "$cache_file"; then
1206
# Some versions of bash will fail to source /dev/null (special
1207
# files actually), so we avoid doing that.
1208
if test -f "$cache_file"; then
1209
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1210
echo "$as_me: loading cache $cache_file" >&6;}
1212
[\\/]* | ?:[\\/]* ) . $cache_file;;
1213
*) . ./$cache_file;;
1217
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1218
echo "$as_me: creating cache $cache_file" >&6;}
1222
# Check that the precious variables saved in the cache have kept the same
1224
ac_cache_corrupted=false
1225
for ac_var in `(set) 2>&1 |
1226
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1227
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1228
eval ac_new_set=\$ac_env_${ac_var}_set
1229
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1230
eval ac_new_val="\$ac_env_${ac_var}_value"
1231
case $ac_old_set,$ac_new_set in
1233
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1234
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1235
ac_cache_corrupted=: ;;
1237
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1238
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1239
ac_cache_corrupted=: ;;
1242
if test "x$ac_old_val" != "x$ac_new_val"; then
1243
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1244
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1245
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1246
echo "$as_me: former value: $ac_old_val" >&2;}
1247
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1248
echo "$as_me: current value: $ac_new_val" >&2;}
1249
ac_cache_corrupted=:
1252
# Pass precious variables to config.status.
1253
if test "$ac_new_set" = set; then
1255
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1256
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1257
*) ac_arg=$ac_var=$ac_new_val ;;
1259
case " $ac_configure_args " in
1260
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1261
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265
if $ac_cache_corrupted; then
1266
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1267
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1268
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1269
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1270
{ (exit 1); exit 1; }; }
1274
ac_cpp='$CPP $CPPFLAGS'
1275
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1276
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1277
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1299
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1300
if test -f $ac_dir/install-sh; then
1302
ac_install_sh="$ac_aux_dir/install-sh -c"
1304
elif test -f $ac_dir/install.sh; then
1306
ac_install_sh="$ac_aux_dir/install.sh -c"
1308
elif test -f $ac_dir/shtool; then
1310
ac_install_sh="$ac_aux_dir/shtool install -c"
1314
if test -z "$ac_aux_dir"; then
1315
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1316
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1317
{ (exit 1); exit 1; }; }
1319
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1320
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1321
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1323
# Make sure we can run config.sub.
1324
$ac_config_sub sun4 >/dev/null 2>&1 ||
1325
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1326
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1327
{ (exit 1); exit 1; }; }
1329
echo "$as_me:$LINENO: checking build system type" >&5
1330
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1331
if test "${ac_cv_build+set}" = set; then
1332
echo $ECHO_N "(cached) $ECHO_C" >&6
1334
ac_cv_build_alias=$build_alias
1335
test -z "$ac_cv_build_alias" &&
1336
ac_cv_build_alias=`$ac_config_guess`
1337
test -z "$ac_cv_build_alias" &&
1338
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1339
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1340
{ (exit 1); exit 1; }; }
1341
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1342
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1343
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1344
{ (exit 1); exit 1; }; }
1347
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1348
echo "${ECHO_T}$ac_cv_build" >&6
1350
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1351
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1352
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1355
echo "$as_me:$LINENO: checking host system type" >&5
1356
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1357
if test "${ac_cv_host+set}" = set; then
1358
echo $ECHO_N "(cached) $ECHO_C" >&6
1360
ac_cv_host_alias=$host_alias
1361
test -z "$ac_cv_host_alias" &&
1362
ac_cv_host_alias=$ac_cv_build_alias
1363
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1364
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1365
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1366
{ (exit 1); exit 1; }; }
1369
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1370
echo "${ECHO_T}$ac_cv_host" >&6
1372
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1373
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1374
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1379
ac_cpp='$CPP $CPPFLAGS'
1380
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1381
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1382
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1383
if test -n "$ac_tool_prefix"; then
1384
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1385
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1386
echo "$as_me:$LINENO: checking for $ac_word" >&5
1387
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388
if test "${ac_cv_prog_CC+set}" = set; then
1389
echo $ECHO_N "(cached) $ECHO_C" >&6
1391
if test -n "$CC"; then
1392
ac_cv_prog_CC="$CC" # Let the user override the test.
1394
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1398
test -z "$as_dir" && as_dir=.
1399
for ac_exec_ext in '' $ac_executable_extensions; do
1400
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1401
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1402
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1411
if test -n "$CC"; then
1412
echo "$as_me:$LINENO: result: $CC" >&5
1413
echo "${ECHO_T}$CC" >&6
1415
echo "$as_me:$LINENO: result: no" >&5
1416
echo "${ECHO_T}no" >&6
1420
if test -z "$ac_cv_prog_CC"; then
1422
# Extract the first word of "gcc", so it can be a program name with args.
1423
set dummy gcc; ac_word=$2
1424
echo "$as_me:$LINENO: checking for $ac_word" >&5
1425
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1426
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1427
echo $ECHO_N "(cached) $ECHO_C" >&6
1429
if test -n "$ac_ct_CC"; then
1430
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1436
test -z "$as_dir" && as_dir=.
1437
for ac_exec_ext in '' $ac_executable_extensions; do
1438
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1439
ac_cv_prog_ac_ct_CC="gcc"
1440
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1449
if test -n "$ac_ct_CC"; then
1450
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1451
echo "${ECHO_T}$ac_ct_CC" >&6
1453
echo "$as_me:$LINENO: result: no" >&5
1454
echo "${ECHO_T}no" >&6
1462
if test -z "$CC"; then
1463
if test -n "$ac_tool_prefix"; then
1464
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1465
set dummy ${ac_tool_prefix}cc; ac_word=$2
1466
echo "$as_me:$LINENO: checking for $ac_word" >&5
1467
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1468
if test "${ac_cv_prog_CC+set}" = set; then
1469
echo $ECHO_N "(cached) $ECHO_C" >&6
1471
if test -n "$CC"; then
1472
ac_cv_prog_CC="$CC" # Let the user override the test.
1474
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1478
test -z "$as_dir" && as_dir=.
1479
for ac_exec_ext in '' $ac_executable_extensions; do
1480
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481
ac_cv_prog_CC="${ac_tool_prefix}cc"
1482
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1491
if test -n "$CC"; then
1492
echo "$as_me:$LINENO: result: $CC" >&5
1493
echo "${ECHO_T}$CC" >&6
1495
echo "$as_me:$LINENO: result: no" >&5
1496
echo "${ECHO_T}no" >&6
1500
if test -z "$ac_cv_prog_CC"; then
1502
# Extract the first word of "cc", so it can be a program name with args.
1503
set dummy cc; ac_word=$2
1504
echo "$as_me:$LINENO: checking for $ac_word" >&5
1505
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1506
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1507
echo $ECHO_N "(cached) $ECHO_C" >&6
1509
if test -n "$ac_ct_CC"; then
1510
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1516
test -z "$as_dir" && as_dir=.
1517
for ac_exec_ext in '' $ac_executable_extensions; do
1518
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1519
ac_cv_prog_ac_ct_CC="cc"
1520
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1528
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1529
if test -n "$ac_ct_CC"; then
1530
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1531
echo "${ECHO_T}$ac_ct_CC" >&6
1533
echo "$as_me:$LINENO: result: no" >&5
1534
echo "${ECHO_T}no" >&6
1543
if test -z "$CC"; then
1544
# Extract the first word of "cc", so it can be a program name with args.
1545
set dummy cc; ac_word=$2
1546
echo "$as_me:$LINENO: checking for $ac_word" >&5
1547
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1548
if test "${ac_cv_prog_CC+set}" = set; then
1549
echo $ECHO_N "(cached) $ECHO_C" >&6
1551
if test -n "$CC"; then
1552
ac_cv_prog_CC="$CC" # Let the user override the test.
1555
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1559
test -z "$as_dir" && as_dir=.
1560
for ac_exec_ext in '' $ac_executable_extensions; do
1561
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1562
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1563
ac_prog_rejected=yes
1567
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1573
if test $ac_prog_rejected = yes; then
1574
# We found a bogon in the path, so make sure we never use it.
1575
set dummy $ac_cv_prog_CC
1577
if test $# != 0; then
1578
# We chose a different compiler from the bogus one.
1579
# However, it has the same basename, so the bogon will be chosen
1580
# first if we set CC to just the basename; use the full file name.
1582
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1588
if test -n "$CC"; then
1589
echo "$as_me:$LINENO: result: $CC" >&5
1590
echo "${ECHO_T}$CC" >&6
1592
echo "$as_me:$LINENO: result: no" >&5
1593
echo "${ECHO_T}no" >&6
1597
if test -z "$CC"; then
1598
if test -n "$ac_tool_prefix"; then
1601
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1602
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1603
echo "$as_me:$LINENO: checking for $ac_word" >&5
1604
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1605
if test "${ac_cv_prog_CC+set}" = set; then
1606
echo $ECHO_N "(cached) $ECHO_C" >&6
1608
if test -n "$CC"; then
1609
ac_cv_prog_CC="$CC" # Let the user override the test.
1611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1615
test -z "$as_dir" && as_dir=.
1616
for ac_exec_ext in '' $ac_executable_extensions; do
1617
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1618
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1619
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1628
if test -n "$CC"; then
1629
echo "$as_me:$LINENO: result: $CC" >&5
1630
echo "${ECHO_T}$CC" >&6
1632
echo "$as_me:$LINENO: result: no" >&5
1633
echo "${ECHO_T}no" >&6
1636
test -n "$CC" && break
1639
if test -z "$CC"; then
1643
# Extract the first word of "$ac_prog", so it can be a program name with args.
1644
set dummy $ac_prog; ac_word=$2
1645
echo "$as_me:$LINENO: checking for $ac_word" >&5
1646
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648
echo $ECHO_N "(cached) $ECHO_C" >&6
1650
if test -n "$ac_ct_CC"; then
1651
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657
test -z "$as_dir" && as_dir=.
1658
for ac_exec_ext in '' $ac_executable_extensions; do
1659
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660
ac_cv_prog_ac_ct_CC="$ac_prog"
1661
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670
if test -n "$ac_ct_CC"; then
1671
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672
echo "${ECHO_T}$ac_ct_CC" >&6
1674
echo "$as_me:$LINENO: result: no" >&5
1675
echo "${ECHO_T}no" >&6
1678
test -n "$ac_ct_CC" && break
1687
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1688
See \`config.log' for more details." >&5
1689
echo "$as_me: error: no acceptable C compiler found in \$PATH
1690
See \`config.log' for more details." >&2;}
1691
{ (exit 1); exit 1; }; }
1693
# Provide some information about the compiler.
1694
echo "$as_me:$LINENO:" \
1695
"checking for C compiler version" >&5
1696
ac_compiler=`set X $ac_compile; echo $2`
1697
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1698
(eval $ac_compiler --version </dev/null >&5) 2>&5
1700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701
(exit $ac_status); }
1702
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1703
(eval $ac_compiler -v </dev/null >&5) 2>&5
1705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1706
(exit $ac_status); }
1707
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1708
(eval $ac_compiler -V </dev/null >&5) 2>&5
1710
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1711
(exit $ac_status); }
1713
cat >conftest.$ac_ext <<_ACEOF
1716
cat confdefs.h >>conftest.$ac_ext
1717
cat >>conftest.$ac_ext <<_ACEOF
1718
/* end confdefs.h. */
1728
ac_clean_files_save=$ac_clean_files
1729
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1730
# Try to create an executable without -o first, disregard a.out.
1731
# It will help us diagnose broken compilers, and finding out an intuition
1733
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1734
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1735
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1736
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1737
(eval $ac_link_default) 2>&5
1739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1740
(exit $ac_status); }; then
1741
# Find the output, starting from the most likely. This scheme is
1742
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1745
# Be careful to initialize this variable, since it used to be cached.
1746
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1748
# b.out is created by i960 compilers.
1749
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1751
test -f "$ac_file" || continue
1753
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1756
# This is the source file.
1759
# We found the default executable, but exeext='' is most
1763
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1764
# FIXME: I believe we export ac_cv_exeext for Libtool,
1765
# but it would be cool to find out if it's true. Does anybody
1766
# maintain Libtool? --akim.
1774
echo "$as_me: failed program was:" >&5
1775
sed 's/^/| /' conftest.$ac_ext >&5
1777
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1778
See \`config.log' for more details." >&5
1779
echo "$as_me: error: C compiler cannot create executables
1780
See \`config.log' for more details." >&2;}
1781
{ (exit 77); exit 77; }; }
1784
ac_exeext=$ac_cv_exeext
1785
echo "$as_me:$LINENO: result: $ac_file" >&5
1786
echo "${ECHO_T}$ac_file" >&6
1788
# Check the compiler produces executables we can run. If not, either
1789
# the compiler is broken, or we cross compile.
1790
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1791
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1792
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1793
# If not cross compiling, check that we can run a simple program.
1794
if test "$cross_compiling" != yes; then
1795
if { ac_try='./$ac_file'
1796
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1799
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800
(exit $ac_status); }; }; then
1803
if test "$cross_compiling" = maybe; then
1806
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1807
If you meant to cross compile, use \`--host'.
1808
See \`config.log' for more details." >&5
1809
echo "$as_me: error: cannot run C compiled programs.
1810
If you meant to cross compile, use \`--host'.
1811
See \`config.log' for more details." >&2;}
1812
{ (exit 1); exit 1; }; }
1816
echo "$as_me:$LINENO: result: yes" >&5
1817
echo "${ECHO_T}yes" >&6
1819
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1820
ac_clean_files=$ac_clean_files_save
1821
# Check the compiler produces executables we can run. If not, either
1822
# the compiler is broken, or we cross compile.
1823
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1824
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1825
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1826
echo "${ECHO_T}$cross_compiling" >&6
1828
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1829
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1830
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1831
(eval $ac_link) 2>&5
1833
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834
(exit $ac_status); }; then
1835
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1836
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1837
# work properly (i.e., refer to `conftest.exe'), while it won't with
1839
for ac_file in conftest.exe conftest conftest.*; do
1840
test -f "$ac_file" || continue
1842
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1843
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1850
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1851
See \`config.log' for more details." >&5
1852
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1853
See \`config.log' for more details." >&2;}
1854
{ (exit 1); exit 1; }; }
1857
rm -f conftest$ac_cv_exeext
1858
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1859
echo "${ECHO_T}$ac_cv_exeext" >&6
1861
rm -f conftest.$ac_ext
1862
EXEEXT=$ac_cv_exeext
1864
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1865
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1866
if test "${ac_cv_objext+set}" = set; then
1867
echo $ECHO_N "(cached) $ECHO_C" >&6
1869
cat >conftest.$ac_ext <<_ACEOF
1872
cat confdefs.h >>conftest.$ac_ext
1873
cat >>conftest.$ac_ext <<_ACEOF
1874
/* end confdefs.h. */
1884
rm -f conftest.o conftest.obj
1885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1886
(eval $ac_compile) 2>&5
1888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889
(exit $ac_status); }; then
1890
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1892
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1893
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1898
echo "$as_me: failed program was:" >&5
1899
sed 's/^/| /' conftest.$ac_ext >&5
1901
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1902
See \`config.log' for more details." >&5
1903
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1904
See \`config.log' for more details." >&2;}
1905
{ (exit 1); exit 1; }; }
1908
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1910
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1911
echo "${ECHO_T}$ac_cv_objext" >&6
1912
OBJEXT=$ac_cv_objext
1914
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1915
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1916
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1917
echo $ECHO_N "(cached) $ECHO_C" >&6
1919
cat >conftest.$ac_ext <<_ACEOF
1922
cat confdefs.h >>conftest.$ac_ext
1923
cat >>conftest.$ac_ext <<_ACEOF
1924
/* end confdefs.h. */
1937
rm -f conftest.$ac_objext
1938
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1939
(eval $ac_compile) 2>conftest.er1
1941
grep -v '^ *+' conftest.er1 >conftest.err
1943
cat conftest.err >&5
1944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945
(exit $ac_status); } &&
1946
{ ac_try='test -z "$ac_c_werror_flag"
1947
|| test ! -s conftest.err'
1948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952
(exit $ac_status); }; } &&
1953
{ ac_try='test -s conftest.$ac_objext'
1954
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958
(exit $ac_status); }; }; then
1961
echo "$as_me: failed program was:" >&5
1962
sed 's/^/| /' conftest.$ac_ext >&5
1966
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1967
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1970
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1971
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1972
GCC=`test $ac_compiler_gnu = yes && echo yes`
1973
ac_test_CFLAGS=${CFLAGS+set}
1974
ac_save_CFLAGS=$CFLAGS
1976
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1977
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1978
if test "${ac_cv_prog_cc_g+set}" = set; then
1979
echo $ECHO_N "(cached) $ECHO_C" >&6
1981
cat >conftest.$ac_ext <<_ACEOF
1984
cat confdefs.h >>conftest.$ac_ext
1985
cat >>conftest.$ac_ext <<_ACEOF
1986
/* end confdefs.h. */
1996
rm -f conftest.$ac_objext
1997
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1998
(eval $ac_compile) 2>conftest.er1
2000
grep -v '^ *+' conftest.er1 >conftest.err
2002
cat conftest.err >&5
2003
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004
(exit $ac_status); } &&
2005
{ ac_try='test -z "$ac_c_werror_flag"
2006
|| test ! -s conftest.err'
2007
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011
(exit $ac_status); }; } &&
2012
{ ac_try='test -s conftest.$ac_objext'
2013
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017
(exit $ac_status); }; }; then
2020
echo "$as_me: failed program was:" >&5
2021
sed 's/^/| /' conftest.$ac_ext >&5
2025
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2027
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2028
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2029
if test "$ac_test_CFLAGS" = set; then
2030
CFLAGS=$ac_save_CFLAGS
2031
elif test $ac_cv_prog_cc_g = yes; then
2032
if test "$GCC" = yes; then
2038
if test "$GCC" = yes; then
2044
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2045
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2046
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2047
echo $ECHO_N "(cached) $ECHO_C" >&6
2049
ac_cv_prog_cc_stdc=no
2051
cat >conftest.$ac_ext <<_ACEOF
2054
cat confdefs.h >>conftest.$ac_ext
2055
cat >>conftest.$ac_ext <<_ACEOF
2056
/* end confdefs.h. */
2059
#include <sys/types.h>
2060
#include <sys/stat.h>
2061
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2062
struct buf { int x; };
2063
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2064
static char *e (p, i)
2070
static char *f (char * (*g) (char **, int), char **p, ...)
2075
s = g (p, va_arg (v,int));
2080
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2081
function prototypes and stuff, but not '\xHH' hex character constants.
2082
These don't provoke an error unfortunately, instead are silently treated
2083
as 'x'. The following induces an error, until -std1 is added to get
2084
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2085
array size at least. It's necessary to write '\x00'==0 to get something
2086
that's true only with -std1. */
2087
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2089
int test (int i, double x);
2090
struct s1 {int (*f) (int a);};
2091
struct s2 {int (*f) (double a);};
2092
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2098
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2103
# Don't try gcc -ansi; that turns off useful extensions and
2104
# breaks some systems' header files.
2105
# AIX -qlanglvl=ansi
2106
# Ultrix and OSF/1 -std1
2107
# HP-UX 10.20 and later -Ae
2108
# HP-UX older versions -Aa -D_HPUX_SOURCE
2109
# SVR4 -Xc -D__EXTENSIONS__
2110
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2112
CC="$ac_save_CC $ac_arg"
2113
rm -f conftest.$ac_objext
2114
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2115
(eval $ac_compile) 2>conftest.er1
2117
grep -v '^ *+' conftest.er1 >conftest.err
2119
cat conftest.err >&5
2120
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121
(exit $ac_status); } &&
2122
{ ac_try='test -z "$ac_c_werror_flag"
2123
|| test ! -s conftest.err'
2124
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128
(exit $ac_status); }; } &&
2129
{ ac_try='test -s conftest.$ac_objext'
2130
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134
(exit $ac_status); }; }; then
2135
ac_cv_prog_cc_stdc=$ac_arg
2138
echo "$as_me: failed program was:" >&5
2139
sed 's/^/| /' conftest.$ac_ext >&5
2142
rm -f conftest.err conftest.$ac_objext
2144
rm -f conftest.$ac_ext conftest.$ac_objext
2149
case "x$ac_cv_prog_cc_stdc" in
2151
echo "$as_me:$LINENO: result: none needed" >&5
2152
echo "${ECHO_T}none needed" >&6 ;;
2154
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2155
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2156
CC="$CC $ac_cv_prog_cc_stdc" ;;
2159
# Some people use a C++ compiler to compile C. Since we use `exit',
2160
# in C++ we need to declare it. In case someone uses the same compiler
2161
# for both compiling C and C++ we need to have the C++ compiler decide
2162
# the declaration of exit, since it's the most demanding environment.
2163
cat >conftest.$ac_ext <<_ACEOF
2168
rm -f conftest.$ac_objext
2169
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2170
(eval $ac_compile) 2>conftest.er1
2172
grep -v '^ *+' conftest.er1 >conftest.err
2174
cat conftest.err >&5
2175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176
(exit $ac_status); } &&
2177
{ ac_try='test -z "$ac_c_werror_flag"
2178
|| test ! -s conftest.err'
2179
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183
(exit $ac_status); }; } &&
2184
{ ac_try='test -s conftest.$ac_objext'
2185
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189
(exit $ac_status); }; }; then
2190
for ac_declaration in \
2192
'extern "C" void std::exit (int) throw (); using std::exit;' \
2193
'extern "C" void std::exit (int); using std::exit;' \
2194
'extern "C" void exit (int) throw ();' \
2195
'extern "C" void exit (int);' \
2198
cat >conftest.$ac_ext <<_ACEOF
2201
cat confdefs.h >>conftest.$ac_ext
2202
cat >>conftest.$ac_ext <<_ACEOF
2203
/* end confdefs.h. */
2214
rm -f conftest.$ac_objext
2215
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2216
(eval $ac_compile) 2>conftest.er1
2218
grep -v '^ *+' conftest.er1 >conftest.err
2220
cat conftest.err >&5
2221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222
(exit $ac_status); } &&
2223
{ ac_try='test -z "$ac_c_werror_flag"
2224
|| test ! -s conftest.err'
2225
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229
(exit $ac_status); }; } &&
2230
{ ac_try='test -s conftest.$ac_objext'
2231
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2234
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235
(exit $ac_status); }; }; then
2238
echo "$as_me: failed program was:" >&5
2239
sed 's/^/| /' conftest.$ac_ext >&5
2243
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2244
cat >conftest.$ac_ext <<_ACEOF
2247
cat confdefs.h >>conftest.$ac_ext
2248
cat >>conftest.$ac_ext <<_ACEOF
2249
/* end confdefs.h. */
2259
rm -f conftest.$ac_objext
2260
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261
(eval $ac_compile) 2>conftest.er1
2263
grep -v '^ *+' conftest.er1 >conftest.err
2265
cat conftest.err >&5
2266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267
(exit $ac_status); } &&
2268
{ ac_try='test -z "$ac_c_werror_flag"
2269
|| test ! -s conftest.err'
2270
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274
(exit $ac_status); }; } &&
2275
{ ac_try='test -s conftest.$ac_objext'
2276
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280
(exit $ac_status); }; }; then
2283
echo "$as_me: failed program was:" >&5
2284
sed 's/^/| /' conftest.$ac_ext >&5
2287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2290
if test -n "$ac_declaration"; then
2291
echo '#ifdef __cplusplus' >>confdefs.h
2292
echo $ac_declaration >>confdefs.h
2293
echo '#endif' >>confdefs.h
2297
echo "$as_me: failed program was:" >&5
2298
sed 's/^/| /' conftest.$ac_ext >&5
2301
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2303
ac_cpp='$CPP $CPPFLAGS'
2304
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2305
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2306
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2309
DEBUG_FLAGS="-g -DDEBUG"
2310
if test "$GCC" = yes; then
2311
DEBUG_FLAGS="$DEBUG_FLAGS -Wall $CFLAGS"
2315
# Check whether --enable-debug-mode or --disable-debug-mode was given.
2316
if test "${enable_debug_mode+set}" = set; then
2317
enableval="$enable_debug_mode"
2318
case "$enableval" in
2320
*) CFLAGS=$DEBUG_FLAGS ;;
2326
echo "$as_me:$LINENO: checking for sin in -lm" >&5
2327
echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
2328
if test "${ac_cv_lib_m_sin+set}" = set; then
2329
echo $ECHO_N "(cached) $ECHO_C" >&6
2331
ac_check_lib_save_LIBS=$LIBS
2333
cat >conftest.$ac_ext <<_ACEOF
2336
cat confdefs.h >>conftest.$ac_ext
2337
cat >>conftest.$ac_ext <<_ACEOF
2338
/* end confdefs.h. */
2340
/* Override any gcc2 internal prototype to avoid an error. */
2344
/* We use char because int might match the return type of a gcc2
2345
builtin and then its argument prototype would still apply. */
2355
rm -f conftest.$ac_objext conftest$ac_exeext
2356
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2357
(eval $ac_link) 2>conftest.er1
2359
grep -v '^ *+' conftest.er1 >conftest.err
2361
cat conftest.err >&5
2362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363
(exit $ac_status); } &&
2364
{ ac_try='test -z "$ac_c_werror_flag"
2365
|| test ! -s conftest.err'
2366
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370
(exit $ac_status); }; } &&
2371
{ ac_try='test -s conftest$ac_exeext'
2372
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376
(exit $ac_status); }; }; then
2379
echo "$as_me: failed program was:" >&5
2380
sed 's/^/| /' conftest.$ac_ext >&5
2384
rm -f conftest.err conftest.$ac_objext \
2385
conftest$ac_exeext conftest.$ac_ext
2386
LIBS=$ac_check_lib_save_LIBS
2388
echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
2389
echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
2390
if test $ac_cv_lib_m_sin = yes; then
2391
cat >>confdefs.h <<_ACEOF
2400
#--------------------------------------------------------------------
2401
# Interactive UNIX requires -linet instead of -lsocket, plus it
2402
# needs net/errno.h to define the socket-related error codes.
2403
#--------------------------------------------------------------------
2405
echo "$as_me:$LINENO: checking for main in -linet" >&5
2406
echo $ECHO_N "checking for main in -linet... $ECHO_C" >&6
2407
if test "${ac_cv_lib_inet_main+set}" = set; then
2408
echo $ECHO_N "(cached) $ECHO_C" >&6
2410
ac_check_lib_save_LIBS=$LIBS
2412
cat >conftest.$ac_ext <<_ACEOF
2415
cat confdefs.h >>conftest.$ac_ext
2416
cat >>conftest.$ac_ext <<_ACEOF
2417
/* end confdefs.h. */
2428
rm -f conftest.$ac_objext conftest$ac_exeext
2429
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2430
(eval $ac_link) 2>conftest.er1
2432
grep -v '^ *+' conftest.er1 >conftest.err
2434
cat conftest.err >&5
2435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436
(exit $ac_status); } &&
2437
{ ac_try='test -z "$ac_c_werror_flag"
2438
|| test ! -s conftest.err'
2439
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443
(exit $ac_status); }; } &&
2444
{ ac_try='test -s conftest$ac_exeext'
2445
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449
(exit $ac_status); }; }; then
2450
ac_cv_lib_inet_main=yes
2452
echo "$as_me: failed program was:" >&5
2453
sed 's/^/| /' conftest.$ac_ext >&5
2455
ac_cv_lib_inet_main=no
2457
rm -f conftest.err conftest.$ac_objext \
2458
conftest$ac_exeext conftest.$ac_ext
2459
LIBS=$ac_check_lib_save_LIBS
2461
echo "$as_me:$LINENO: result: $ac_cv_lib_inet_main" >&5
2462
echo "${ECHO_T}$ac_cv_lib_inet_main" >&6
2463
if test $ac_cv_lib_inet_main = yes; then
2468
ac_cpp='$CPP $CPPFLAGS'
2469
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2470
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2471
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2472
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2473
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2474
# On Suns, sometimes $CPP names a directory.
2475
if test -n "$CPP" && test -d "$CPP"; then
2478
if test -z "$CPP"; then
2479
if test "${ac_cv_prog_CPP+set}" = set; then
2480
echo $ECHO_N "(cached) $ECHO_C" >&6
2482
# Double quotes because CPP needs to be expanded
2483
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2486
for ac_c_preproc_warn_flag in '' yes
2488
# Use a header file that comes with gcc, so configuring glibc
2489
# with a fresh cross-compiler works.
2490
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2491
# <limits.h> exists even on freestanding compilers.
2492
# On the NeXT, cc -E runs the code through the compiler's parser,
2493
# not just through cpp. "Syntax error" is here to catch this case.
2494
cat >conftest.$ac_ext <<_ACEOF
2497
cat confdefs.h >>conftest.$ac_ext
2498
cat >>conftest.$ac_ext <<_ACEOF
2499
/* end confdefs.h. */
2501
# include <limits.h>
2503
# include <assert.h>
2507
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2508
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2510
grep -v '^ *+' conftest.er1 >conftest.err
2512
cat conftest.err >&5
2513
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514
(exit $ac_status); } >/dev/null; then
2515
if test -s conftest.err; then
2516
ac_cpp_err=$ac_c_preproc_warn_flag
2517
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2524
if test -z "$ac_cpp_err"; then
2527
echo "$as_me: failed program was:" >&5
2528
sed 's/^/| /' conftest.$ac_ext >&5
2530
# Broken: fails on valid input.
2533
rm -f conftest.err conftest.$ac_ext
2535
# OK, works on sane cases. Now check whether non-existent headers
2536
# can be detected and how.
2537
cat >conftest.$ac_ext <<_ACEOF
2540
cat confdefs.h >>conftest.$ac_ext
2541
cat >>conftest.$ac_ext <<_ACEOF
2542
/* end confdefs.h. */
2543
#include <ac_nonexistent.h>
2545
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2546
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2548
grep -v '^ *+' conftest.er1 >conftest.err
2550
cat conftest.err >&5
2551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552
(exit $ac_status); } >/dev/null; then
2553
if test -s conftest.err; then
2554
ac_cpp_err=$ac_c_preproc_warn_flag
2555
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2562
if test -z "$ac_cpp_err"; then
2563
# Broken: success on invalid input.
2566
echo "$as_me: failed program was:" >&5
2567
sed 's/^/| /' conftest.$ac_ext >&5
2569
# Passes both tests.
2573
rm -f conftest.err conftest.$ac_ext
2576
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2577
rm -f conftest.err conftest.$ac_ext
2578
if $ac_preproc_ok; then
2590
echo "$as_me:$LINENO: result: $CPP" >&5
2591
echo "${ECHO_T}$CPP" >&6
2593
for ac_c_preproc_warn_flag in '' yes
2595
# Use a header file that comes with gcc, so configuring glibc
2596
# with a fresh cross-compiler works.
2597
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2598
# <limits.h> exists even on freestanding compilers.
2599
# On the NeXT, cc -E runs the code through the compiler's parser,
2600
# not just through cpp. "Syntax error" is here to catch this case.
2601
cat >conftest.$ac_ext <<_ACEOF
2604
cat confdefs.h >>conftest.$ac_ext
2605
cat >>conftest.$ac_ext <<_ACEOF
2606
/* end confdefs.h. */
2608
# include <limits.h>
2610
# include <assert.h>
2614
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2615
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2617
grep -v '^ *+' conftest.er1 >conftest.err
2619
cat conftest.err >&5
2620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621
(exit $ac_status); } >/dev/null; then
2622
if test -s conftest.err; then
2623
ac_cpp_err=$ac_c_preproc_warn_flag
2624
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2631
if test -z "$ac_cpp_err"; then
2634
echo "$as_me: failed program was:" >&5
2635
sed 's/^/| /' conftest.$ac_ext >&5
2637
# Broken: fails on valid input.
2640
rm -f conftest.err conftest.$ac_ext
2642
# OK, works on sane cases. Now check whether non-existent headers
2643
# can be detected and how.
2644
cat >conftest.$ac_ext <<_ACEOF
2647
cat confdefs.h >>conftest.$ac_ext
2648
cat >>conftest.$ac_ext <<_ACEOF
2649
/* end confdefs.h. */
2650
#include <ac_nonexistent.h>
2652
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2653
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2655
grep -v '^ *+' conftest.er1 >conftest.err
2657
cat conftest.err >&5
2658
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659
(exit $ac_status); } >/dev/null; then
2660
if test -s conftest.err; then
2661
ac_cpp_err=$ac_c_preproc_warn_flag
2662
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2669
if test -z "$ac_cpp_err"; then
2670
# Broken: success on invalid input.
2673
echo "$as_me: failed program was:" >&5
2674
sed 's/^/| /' conftest.$ac_ext >&5
2676
# Passes both tests.
2680
rm -f conftest.err conftest.$ac_ext
2683
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2684
rm -f conftest.err conftest.$ac_ext
2685
if $ac_preproc_ok; then
2688
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2689
See \`config.log' for more details." >&5
2690
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2691
See \`config.log' for more details." >&2;}
2692
{ (exit 1); exit 1; }; }
2696
ac_cpp='$CPP $CPPFLAGS'
2697
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2698
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2699
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2702
echo "$as_me:$LINENO: checking for egrep" >&5
2703
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2704
if test "${ac_cv_prog_egrep+set}" = set; then
2705
echo $ECHO_N "(cached) $ECHO_C" >&6
2707
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2708
then ac_cv_prog_egrep='grep -E'
2709
else ac_cv_prog_egrep='egrep'
2712
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2713
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2714
EGREP=$ac_cv_prog_egrep
2717
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2718
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2719
if test "${ac_cv_header_stdc+set}" = set; then
2720
echo $ECHO_N "(cached) $ECHO_C" >&6
2722
cat >conftest.$ac_ext <<_ACEOF
2725
cat confdefs.h >>conftest.$ac_ext
2726
cat >>conftest.$ac_ext <<_ACEOF
2727
/* end confdefs.h. */
2741
rm -f conftest.$ac_objext
2742
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2743
(eval $ac_compile) 2>conftest.er1
2745
grep -v '^ *+' conftest.er1 >conftest.err
2747
cat conftest.err >&5
2748
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749
(exit $ac_status); } &&
2750
{ ac_try='test -z "$ac_c_werror_flag"
2751
|| test ! -s conftest.err'
2752
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756
(exit $ac_status); }; } &&
2757
{ ac_try='test -s conftest.$ac_objext'
2758
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762
(exit $ac_status); }; }; then
2763
ac_cv_header_stdc=yes
2765
echo "$as_me: failed program was:" >&5
2766
sed 's/^/| /' conftest.$ac_ext >&5
2768
ac_cv_header_stdc=no
2770
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2772
if test $ac_cv_header_stdc = yes; then
2773
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2774
cat >conftest.$ac_ext <<_ACEOF
2777
cat confdefs.h >>conftest.$ac_ext
2778
cat >>conftest.$ac_ext <<_ACEOF
2779
/* end confdefs.h. */
2783
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2784
$EGREP "memchr" >/dev/null 2>&1; then
2787
ac_cv_header_stdc=no
2793
if test $ac_cv_header_stdc = yes; then
2794
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2795
cat >conftest.$ac_ext <<_ACEOF
2798
cat confdefs.h >>conftest.$ac_ext
2799
cat >>conftest.$ac_ext <<_ACEOF
2800
/* end confdefs.h. */
2804
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2805
$EGREP "free" >/dev/null 2>&1; then
2808
ac_cv_header_stdc=no
2814
if test $ac_cv_header_stdc = yes; then
2815
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2816
if test "$cross_compiling" = yes; then
2819
cat >conftest.$ac_ext <<_ACEOF
2822
cat confdefs.h >>conftest.$ac_ext
2823
cat >>conftest.$ac_ext <<_ACEOF
2824
/* end confdefs.h. */
2826
#if ((' ' & 0x0FF) == 0x020)
2827
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2828
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2830
# define ISLOWER(c) \
2831
(('a' <= (c) && (c) <= 'i') \
2832
|| ('j' <= (c) && (c) <= 'r') \
2833
|| ('s' <= (c) && (c) <= 'z'))
2834
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2837
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2842
for (i = 0; i < 256; i++)
2843
if (XOR (islower (i), ISLOWER (i))
2844
|| toupper (i) != TOUPPER (i))
2849
rm -f conftest$ac_exeext
2850
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2851
(eval $ac_link) 2>&5
2853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2855
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859
(exit $ac_status); }; }; then
2862
echo "$as_me: program exited with status $ac_status" >&5
2863
echo "$as_me: failed program was:" >&5
2864
sed 's/^/| /' conftest.$ac_ext >&5
2867
ac_cv_header_stdc=no
2869
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2873
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2874
echo "${ECHO_T}$ac_cv_header_stdc" >&6
2875
if test $ac_cv_header_stdc = yes; then
2877
cat >>confdefs.h <<\_ACEOF
2878
#define STDC_HEADERS 1
2883
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2893
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2894
inttypes.h stdint.h unistd.h
2896
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2897
echo "$as_me:$LINENO: checking for $ac_header" >&5
2898
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2899
if eval "test \"\${$as_ac_Header+set}\" = set"; then
2900
echo $ECHO_N "(cached) $ECHO_C" >&6
2902
cat >conftest.$ac_ext <<_ACEOF
2905
cat confdefs.h >>conftest.$ac_ext
2906
cat >>conftest.$ac_ext <<_ACEOF
2907
/* end confdefs.h. */
2908
$ac_includes_default
2910
#include <$ac_header>
2912
rm -f conftest.$ac_objext
2913
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2914
(eval $ac_compile) 2>conftest.er1
2916
grep -v '^ *+' conftest.er1 >conftest.err
2918
cat conftest.err >&5
2919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920
(exit $ac_status); } &&
2921
{ ac_try='test -z "$ac_c_werror_flag"
2922
|| test ! -s conftest.err'
2923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927
(exit $ac_status); }; } &&
2928
{ ac_try='test -s conftest.$ac_objext'
2929
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933
(exit $ac_status); }; }; then
2934
eval "$as_ac_Header=yes"
2936
echo "$as_me: failed program was:" >&5
2937
sed 's/^/| /' conftest.$ac_ext >&5
2939
eval "$as_ac_Header=no"
2941
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2943
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2944
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2945
if test `eval echo '${'$as_ac_Header'}'` = yes; then
2946
cat >>confdefs.h <<_ACEOF
2947
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2955
if test "${ac_cv_header_net_errno_h+set}" = set; then
2956
echo "$as_me:$LINENO: checking for net/errno.h" >&5
2957
echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6
2958
if test "${ac_cv_header_net_errno_h+set}" = set; then
2959
echo $ECHO_N "(cached) $ECHO_C" >&6
2961
echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
2962
echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6
2964
# Is the header compilable?
2965
echo "$as_me:$LINENO: checking net/errno.h usability" >&5
2966
echo $ECHO_N "checking net/errno.h usability... $ECHO_C" >&6
2967
cat >conftest.$ac_ext <<_ACEOF
2970
cat confdefs.h >>conftest.$ac_ext
2971
cat >>conftest.$ac_ext <<_ACEOF
2972
/* end confdefs.h. */
2973
$ac_includes_default
2974
#include <net/errno.h>
2976
rm -f conftest.$ac_objext
2977
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2978
(eval $ac_compile) 2>conftest.er1
2980
grep -v '^ *+' conftest.er1 >conftest.err
2982
cat conftest.err >&5
2983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984
(exit $ac_status); } &&
2985
{ ac_try='test -z "$ac_c_werror_flag"
2986
|| test ! -s conftest.err'
2987
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991
(exit $ac_status); }; } &&
2992
{ ac_try='test -s conftest.$ac_objext'
2993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997
(exit $ac_status); }; }; then
2998
ac_header_compiler=yes
3000
echo "$as_me: failed program was:" >&5
3001
sed 's/^/| /' conftest.$ac_ext >&5
3003
ac_header_compiler=no
3005
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3007
echo "${ECHO_T}$ac_header_compiler" >&6
3009
# Is the header present?
3010
echo "$as_me:$LINENO: checking net/errno.h presence" >&5
3011
echo $ECHO_N "checking net/errno.h presence... $ECHO_C" >&6
3012
cat >conftest.$ac_ext <<_ACEOF
3015
cat confdefs.h >>conftest.$ac_ext
3016
cat >>conftest.$ac_ext <<_ACEOF
3017
/* end confdefs.h. */
3018
#include <net/errno.h>
3020
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3021
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3023
grep -v '^ *+' conftest.er1 >conftest.err
3025
cat conftest.err >&5
3026
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027
(exit $ac_status); } >/dev/null; then
3028
if test -s conftest.err; then
3029
ac_cpp_err=$ac_c_preproc_warn_flag
3030
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3037
if test -z "$ac_cpp_err"; then
3038
ac_header_preproc=yes
3040
echo "$as_me: failed program was:" >&5
3041
sed 's/^/| /' conftest.$ac_ext >&5
3043
ac_header_preproc=no
3045
rm -f conftest.err conftest.$ac_ext
3046
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3047
echo "${ECHO_T}$ac_header_preproc" >&6
3049
# So? What about this header?
3050
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3052
{ echo "$as_me:$LINENO: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
3053
echo "$as_me: WARNING: net/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3054
{ echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the compiler's result" >&5
3055
echo "$as_me: WARNING: net/errno.h: proceeding with the compiler's result" >&2;}
3056
ac_header_preproc=yes
3059
{ echo "$as_me:$LINENO: WARNING: net/errno.h: present but cannot be compiled" >&5
3060
echo "$as_me: WARNING: net/errno.h: present but cannot be compiled" >&2;}
3061
{ echo "$as_me:$LINENO: WARNING: net/errno.h: check for missing prerequisite headers?" >&5
3062
echo "$as_me: WARNING: net/errno.h: check for missing prerequisite headers?" >&2;}
3063
{ echo "$as_me:$LINENO: WARNING: net/errno.h: see the Autoconf documentation" >&5
3064
echo "$as_me: WARNING: net/errno.h: see the Autoconf documentation" >&2;}
3065
{ echo "$as_me:$LINENO: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&5
3066
echo "$as_me: WARNING: net/errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
3067
{ echo "$as_me:$LINENO: WARNING: net/errno.h: proceeding with the preprocessor's result" >&5
3068
echo "$as_me: WARNING: net/errno.h: proceeding with the preprocessor's result" >&2;}
3069
{ echo "$as_me:$LINENO: WARNING: net/errno.h: in the future, the compiler will take precedence" >&5
3070
echo "$as_me: WARNING: net/errno.h: in the future, the compiler will take precedence" >&2;}
3073
## ------------------------------------------ ##
3074
## Report this to the AC_PACKAGE_NAME lists. ##
3075
## ------------------------------------------ ##
3078
sed "s/^/$as_me: WARNING: /" >&2
3081
echo "$as_me:$LINENO: checking for net/errno.h" >&5
3082
echo $ECHO_N "checking for net/errno.h... $ECHO_C" >&6
3083
if test "${ac_cv_header_net_errno_h+set}" = set; then
3084
echo $ECHO_N "(cached) $ECHO_C" >&6
3086
ac_cv_header_net_errno_h=$ac_header_preproc
3088
echo "$as_me:$LINENO: result: $ac_cv_header_net_errno_h" >&5
3089
echo "${ECHO_T}$ac_cv_header_net_errno_h" >&6
3092
if test $ac_cv_header_net_errno_h = yes; then
3093
cat >>confdefs.h <<\_ACEOF
3094
#define HAVE_NET_ERRNO_H 1
3101
#--------------------------------------------------------------------
3102
# Linux/tcp.h may be needed for sockopt test in kernel
3103
#--------------------------------------------------------------------
3105
if test "${ac_cv_header_linux_tcp_h+set}" = set; then
3106
echo "$as_me:$LINENO: checking for linux/tcp.h" >&5
3107
echo $ECHO_N "checking for linux/tcp.h... $ECHO_C" >&6
3108
if test "${ac_cv_header_linux_tcp_h+set}" = set; then
3109
echo $ECHO_N "(cached) $ECHO_C" >&6
3111
echo "$as_me:$LINENO: result: $ac_cv_header_linux_tcp_h" >&5
3112
echo "${ECHO_T}$ac_cv_header_linux_tcp_h" >&6
3114
# Is the header compilable?
3115
echo "$as_me:$LINENO: checking linux/tcp.h usability" >&5
3116
echo $ECHO_N "checking linux/tcp.h usability... $ECHO_C" >&6
3117
cat >conftest.$ac_ext <<_ACEOF
3120
cat confdefs.h >>conftest.$ac_ext
3121
cat >>conftest.$ac_ext <<_ACEOF
3122
/* end confdefs.h. */
3123
$ac_includes_default
3124
#include <linux/tcp.h>
3126
rm -f conftest.$ac_objext
3127
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3128
(eval $ac_compile) 2>conftest.er1
3130
grep -v '^ *+' conftest.er1 >conftest.err
3132
cat conftest.err >&5
3133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134
(exit $ac_status); } &&
3135
{ ac_try='test -z "$ac_c_werror_flag"
3136
|| test ! -s conftest.err'
3137
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141
(exit $ac_status); }; } &&
3142
{ ac_try='test -s conftest.$ac_objext'
3143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147
(exit $ac_status); }; }; then
3148
ac_header_compiler=yes
3150
echo "$as_me: failed program was:" >&5
3151
sed 's/^/| /' conftest.$ac_ext >&5
3153
ac_header_compiler=no
3155
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3156
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3157
echo "${ECHO_T}$ac_header_compiler" >&6
3159
# Is the header present?
3160
echo "$as_me:$LINENO: checking linux/tcp.h presence" >&5
3161
echo $ECHO_N "checking linux/tcp.h presence... $ECHO_C" >&6
3162
cat >conftest.$ac_ext <<_ACEOF
3165
cat confdefs.h >>conftest.$ac_ext
3166
cat >>conftest.$ac_ext <<_ACEOF
3167
/* end confdefs.h. */
3168
#include <linux/tcp.h>
3170
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3171
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3173
grep -v '^ *+' conftest.er1 >conftest.err
3175
cat conftest.err >&5
3176
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177
(exit $ac_status); } >/dev/null; then
3178
if test -s conftest.err; then
3179
ac_cpp_err=$ac_c_preproc_warn_flag
3180
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3187
if test -z "$ac_cpp_err"; then
3188
ac_header_preproc=yes
3190
echo "$as_me: failed program was:" >&5
3191
sed 's/^/| /' conftest.$ac_ext >&5
3193
ac_header_preproc=no
3195
rm -f conftest.err conftest.$ac_ext
3196
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3197
echo "${ECHO_T}$ac_header_preproc" >&6
3199
# So? What about this header?
3200
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3202
{ echo "$as_me:$LINENO: WARNING: linux/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&5
3203
echo "$as_me: WARNING: linux/tcp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3204
{ echo "$as_me:$LINENO: WARNING: linux/tcp.h: proceeding with the compiler's result" >&5
3205
echo "$as_me: WARNING: linux/tcp.h: proceeding with the compiler's result" >&2;}
3206
ac_header_preproc=yes
3209
{ echo "$as_me:$LINENO: WARNING: linux/tcp.h: present but cannot be compiled" >&5
3210
echo "$as_me: WARNING: linux/tcp.h: present but cannot be compiled" >&2;}
3211
{ echo "$as_me:$LINENO: WARNING: linux/tcp.h: check for missing prerequisite headers?" >&5
3212
echo "$as_me: WARNING: linux/tcp.h: check for missing prerequisite headers?" >&2;}
3213
{ echo "$as_me:$LINENO: WARNING: linux/tcp.h: see the Autoconf documentation" >&5
3214
echo "$as_me: WARNING: linux/tcp.h: see the Autoconf documentation" >&2;}
3215
{ echo "$as_me:$LINENO: WARNING: linux/tcp.h: section \"Present But Cannot Be Compiled\"" >&5
3216
echo "$as_me: WARNING: linux/tcp.h: section \"Present But Cannot Be Compiled\"" >&2;}
3217
{ echo "$as_me:$LINENO: WARNING: linux/tcp.h: proceeding with the preprocessor's result" >&5
3218
echo "$as_me: WARNING: linux/tcp.h: proceeding with the preprocessor's result" >&2;}
3219
{ echo "$as_me:$LINENO: WARNING: linux/tcp.h: in the future, the compiler will take precedence" >&5
3220
echo "$as_me: WARNING: linux/tcp.h: in the future, the compiler will take precedence" >&2;}
3223
## ------------------------------------------ ##
3224
## Report this to the AC_PACKAGE_NAME lists. ##
3225
## ------------------------------------------ ##
3228
sed "s/^/$as_me: WARNING: /" >&2
3231
echo "$as_me:$LINENO: checking for linux/tcp.h" >&5
3232
echo $ECHO_N "checking for linux/tcp.h... $ECHO_C" >&6
3233
if test "${ac_cv_header_linux_tcp_h+set}" = set; then
3234
echo $ECHO_N "(cached) $ECHO_C" >&6
3236
ac_cv_header_linux_tcp_h=$ac_header_preproc
3238
echo "$as_me:$LINENO: result: $ac_cv_header_linux_tcp_h" >&5
3239
echo "${ECHO_T}$ac_cv_header_linux_tcp_h" >&6
3242
if test $ac_cv_header_linux_tcp_h = yes; then
3243
cat >>confdefs.h <<\_ACEOF
3244
#define HAVE_LINUX_TCP_H 1
3250
echo "$as_me:$LINENO: checking for sane linux/tcp.h" >&5
3251
echo $ECHO_N "checking for sane linux/tcp.h... $ECHO_C" >&6
3252
cat >conftest.$ac_ext <<_ACEOF
3255
cat confdefs.h >>conftest.$ac_ext
3256
cat >>conftest.$ac_ext <<_ACEOF
3257
/* end confdefs.h. */
3263
#include <sys/types.h>
3264
#include <sys/socket.h>
3265
#include <sys/wait.h>
3266
#include <linux/tcp.h>
3267
#include <netinet/in.h>
3277
rm -f conftest.$ac_objext
3278
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3279
(eval $ac_compile) 2>conftest.er1
3281
grep -v '^ *+' conftest.er1 >conftest.err
3283
cat conftest.err >&5
3284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285
(exit $ac_status); } &&
3286
{ ac_try='test -z "$ac_c_werror_flag"
3287
|| test ! -s conftest.err'
3288
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292
(exit $ac_status); }; } &&
3293
{ ac_try='test -s conftest.$ac_objext'
3294
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298
(exit $ac_status); }; }; then
3299
have_sane_linux_tcp_h=yes
3301
echo "$as_me: failed program was:" >&5
3302
sed 's/^/| /' conftest.$ac_ext >&5
3304
have_sane_linux_tcp_h=no
3306
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3308
if test $have_sane_linux_tcp_h = yes; then
3310
cat >>confdefs.h <<\_ACEOF
3311
#define HAVE_SANE_LINUX_TCP_H 1
3314
echo "$as_me:$LINENO: result: yes" >&5
3315
echo "${ECHO_T}yes" >&6
3317
echo "$as_me:$LINENO: result: no" >&5
3318
echo "${ECHO_T}no" >&6
3323
#--------------------------------------------------------------------
3324
# Linux requires sys/socketio.h instead of sys/sockio.h
3325
#--------------------------------------------------------------------
3326
if test "${ac_cv_header_sys_socketio_h+set}" = set; then
3327
echo "$as_me:$LINENO: checking for sys/socketio.h" >&5
3328
echo $ECHO_N "checking for sys/socketio.h... $ECHO_C" >&6
3329
if test "${ac_cv_header_sys_socketio_h+set}" = set; then
3330
echo $ECHO_N "(cached) $ECHO_C" >&6
3332
echo "$as_me:$LINENO: result: $ac_cv_header_sys_socketio_h" >&5
3333
echo "${ECHO_T}$ac_cv_header_sys_socketio_h" >&6
3335
# Is the header compilable?
3336
echo "$as_me:$LINENO: checking sys/socketio.h usability" >&5
3337
echo $ECHO_N "checking sys/socketio.h usability... $ECHO_C" >&6
3338
cat >conftest.$ac_ext <<_ACEOF
3341
cat confdefs.h >>conftest.$ac_ext
3342
cat >>conftest.$ac_ext <<_ACEOF
3343
/* end confdefs.h. */
3344
$ac_includes_default
3345
#include <sys/socketio.h>
3347
rm -f conftest.$ac_objext
3348
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3349
(eval $ac_compile) 2>conftest.er1
3351
grep -v '^ *+' conftest.er1 >conftest.err
3353
cat conftest.err >&5
3354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355
(exit $ac_status); } &&
3356
{ ac_try='test -z "$ac_c_werror_flag"
3357
|| test ! -s conftest.err'
3358
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362
(exit $ac_status); }; } &&
3363
{ ac_try='test -s conftest.$ac_objext'
3364
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368
(exit $ac_status); }; }; then
3369
ac_header_compiler=yes
3371
echo "$as_me: failed program was:" >&5
3372
sed 's/^/| /' conftest.$ac_ext >&5
3374
ac_header_compiler=no
3376
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3377
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3378
echo "${ECHO_T}$ac_header_compiler" >&6
3380
# Is the header present?
3381
echo "$as_me:$LINENO: checking sys/socketio.h presence" >&5
3382
echo $ECHO_N "checking sys/socketio.h presence... $ECHO_C" >&6
3383
cat >conftest.$ac_ext <<_ACEOF
3386
cat confdefs.h >>conftest.$ac_ext
3387
cat >>conftest.$ac_ext <<_ACEOF
3388
/* end confdefs.h. */
3389
#include <sys/socketio.h>
3391
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3392
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3394
grep -v '^ *+' conftest.er1 >conftest.err
3396
cat conftest.err >&5
3397
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398
(exit $ac_status); } >/dev/null; then
3399
if test -s conftest.err; then
3400
ac_cpp_err=$ac_c_preproc_warn_flag
3401
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3408
if test -z "$ac_cpp_err"; then
3409
ac_header_preproc=yes
3411
echo "$as_me: failed program was:" >&5
3412
sed 's/^/| /' conftest.$ac_ext >&5
3414
ac_header_preproc=no
3416
rm -f conftest.err conftest.$ac_ext
3417
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3418
echo "${ECHO_T}$ac_header_preproc" >&6
3420
# So? What about this header?
3421
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3423
{ echo "$as_me:$LINENO: WARNING: sys/socketio.h: accepted by the compiler, rejected by the preprocessor!" >&5
3424
echo "$as_me: WARNING: sys/socketio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3425
{ echo "$as_me:$LINENO: WARNING: sys/socketio.h: proceeding with the compiler's result" >&5
3426
echo "$as_me: WARNING: sys/socketio.h: proceeding with the compiler's result" >&2;}
3427
ac_header_preproc=yes
3430
{ echo "$as_me:$LINENO: WARNING: sys/socketio.h: present but cannot be compiled" >&5
3431
echo "$as_me: WARNING: sys/socketio.h: present but cannot be compiled" >&2;}
3432
{ echo "$as_me:$LINENO: WARNING: sys/socketio.h: check for missing prerequisite headers?" >&5
3433
echo "$as_me: WARNING: sys/socketio.h: check for missing prerequisite headers?" >&2;}
3434
{ echo "$as_me:$LINENO: WARNING: sys/socketio.h: see the Autoconf documentation" >&5
3435
echo "$as_me: WARNING: sys/socketio.h: see the Autoconf documentation" >&2;}
3436
{ echo "$as_me:$LINENO: WARNING: sys/socketio.h: section \"Present But Cannot Be Compiled\"" >&5
3437
echo "$as_me: WARNING: sys/socketio.h: section \"Present But Cannot Be Compiled\"" >&2;}
3438
{ echo "$as_me:$LINENO: WARNING: sys/socketio.h: proceeding with the preprocessor's result" >&5
3439
echo "$as_me: WARNING: sys/socketio.h: proceeding with the preprocessor's result" >&2;}
3440
{ echo "$as_me:$LINENO: WARNING: sys/socketio.h: in the future, the compiler will take precedence" >&5
3441
echo "$as_me: WARNING: sys/socketio.h: in the future, the compiler will take precedence" >&2;}
3444
## ------------------------------------------ ##
3445
## Report this to the AC_PACKAGE_NAME lists. ##
3446
## ------------------------------------------ ##
3449
sed "s/^/$as_me: WARNING: /" >&2
3452
echo "$as_me:$LINENO: checking for sys/socketio.h" >&5
3453
echo $ECHO_N "checking for sys/socketio.h... $ECHO_C" >&6
3454
if test "${ac_cv_header_sys_socketio_h+set}" = set; then
3455
echo $ECHO_N "(cached) $ECHO_C" >&6
3457
ac_cv_header_sys_socketio_h=$ac_header_preproc
3459
echo "$as_me:$LINENO: result: $ac_cv_header_sys_socketio_h" >&5
3460
echo "${ECHO_T}$ac_cv_header_sys_socketio_h" >&6
3463
if test $ac_cv_header_sys_socketio_h = yes; then
3464
cat >>confdefs.h <<\_ACEOF
3465
#define HAVE_SOCKETIO_H 1
3473
#--------------------------------------------------------------------
3475
#--------------------------------------------------------------------
3476
if test "${ac_cv_header_poll_h+set}" = set; then
3477
echo "$as_me:$LINENO: checking for poll.h" >&5
3478
echo $ECHO_N "checking for poll.h... $ECHO_C" >&6
3479
if test "${ac_cv_header_poll_h+set}" = set; then
3480
echo $ECHO_N "(cached) $ECHO_C" >&6
3482
echo "$as_me:$LINENO: result: $ac_cv_header_poll_h" >&5
3483
echo "${ECHO_T}$ac_cv_header_poll_h" >&6
3485
# Is the header compilable?
3486
echo "$as_me:$LINENO: checking poll.h usability" >&5
3487
echo $ECHO_N "checking poll.h usability... $ECHO_C" >&6
3488
cat >conftest.$ac_ext <<_ACEOF
3491
cat confdefs.h >>conftest.$ac_ext
3492
cat >>conftest.$ac_ext <<_ACEOF
3493
/* end confdefs.h. */
3494
$ac_includes_default
3497
rm -f conftest.$ac_objext
3498
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499
(eval $ac_compile) 2>conftest.er1
3501
grep -v '^ *+' conftest.er1 >conftest.err
3503
cat conftest.err >&5
3504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505
(exit $ac_status); } &&
3506
{ ac_try='test -z "$ac_c_werror_flag"
3507
|| test ! -s conftest.err'
3508
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512
(exit $ac_status); }; } &&
3513
{ ac_try='test -s conftest.$ac_objext'
3514
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518
(exit $ac_status); }; }; then
3519
ac_header_compiler=yes
3521
echo "$as_me: failed program was:" >&5
3522
sed 's/^/| /' conftest.$ac_ext >&5
3524
ac_header_compiler=no
3526
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3528
echo "${ECHO_T}$ac_header_compiler" >&6
3530
# Is the header present?
3531
echo "$as_me:$LINENO: checking poll.h presence" >&5
3532
echo $ECHO_N "checking poll.h presence... $ECHO_C" >&6
3533
cat >conftest.$ac_ext <<_ACEOF
3536
cat confdefs.h >>conftest.$ac_ext
3537
cat >>conftest.$ac_ext <<_ACEOF
3538
/* end confdefs.h. */
3541
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3542
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3544
grep -v '^ *+' conftest.er1 >conftest.err
3546
cat conftest.err >&5
3547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548
(exit $ac_status); } >/dev/null; then
3549
if test -s conftest.err; then
3550
ac_cpp_err=$ac_c_preproc_warn_flag
3551
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3558
if test -z "$ac_cpp_err"; then
3559
ac_header_preproc=yes
3561
echo "$as_me: failed program was:" >&5
3562
sed 's/^/| /' conftest.$ac_ext >&5
3564
ac_header_preproc=no
3566
rm -f conftest.err conftest.$ac_ext
3567
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3568
echo "${ECHO_T}$ac_header_preproc" >&6
3570
# So? What about this header?
3571
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3573
{ echo "$as_me:$LINENO: WARNING: poll.h: accepted by the compiler, rejected by the preprocessor!" >&5
3574
echo "$as_me: WARNING: poll.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3575
{ echo "$as_me:$LINENO: WARNING: poll.h: proceeding with the compiler's result" >&5
3576
echo "$as_me: WARNING: poll.h: proceeding with the compiler's result" >&2;}
3577
ac_header_preproc=yes
3580
{ echo "$as_me:$LINENO: WARNING: poll.h: present but cannot be compiled" >&5
3581
echo "$as_me: WARNING: poll.h: present but cannot be compiled" >&2;}
3582
{ echo "$as_me:$LINENO: WARNING: poll.h: check for missing prerequisite headers?" >&5
3583
echo "$as_me: WARNING: poll.h: check for missing prerequisite headers?" >&2;}
3584
{ echo "$as_me:$LINENO: WARNING: poll.h: see the Autoconf documentation" >&5
3585
echo "$as_me: WARNING: poll.h: see the Autoconf documentation" >&2;}
3586
{ echo "$as_me:$LINENO: WARNING: poll.h: section \"Present But Cannot Be Compiled\"" >&5
3587
echo "$as_me: WARNING: poll.h: section \"Present But Cannot Be Compiled\"" >&2;}
3588
{ echo "$as_me:$LINENO: WARNING: poll.h: proceeding with the preprocessor's result" >&5
3589
echo "$as_me: WARNING: poll.h: proceeding with the preprocessor's result" >&2;}
3590
{ echo "$as_me:$LINENO: WARNING: poll.h: in the future, the compiler will take precedence" >&5
3591
echo "$as_me: WARNING: poll.h: in the future, the compiler will take precedence" >&2;}
3594
## ------------------------------------------ ##
3595
## Report this to the AC_PACKAGE_NAME lists. ##
3596
## ------------------------------------------ ##
3599
sed "s/^/$as_me: WARNING: /" >&2
3602
echo "$as_me:$LINENO: checking for poll.h" >&5
3603
echo $ECHO_N "checking for poll.h... $ECHO_C" >&6
3604
if test "${ac_cv_header_poll_h+set}" = set; then
3605
echo $ECHO_N "(cached) $ECHO_C" >&6
3607
ac_cv_header_poll_h=$ac_header_preproc
3609
echo "$as_me:$LINENO: result: $ac_cv_header_poll_h" >&5
3610
echo "${ECHO_T}$ac_cv_header_poll_h" >&6
3613
if test $ac_cv_header_poll_h = yes; then
3614
cat >>confdefs.h <<\_ACEOF
3615
#define HAVE_POLL_H 1
3622
#--------------------------------------------------------------------
3623
# The statements below define a collection of symbols related to
3624
# dynamic loading and shared libraries:
3626
# SHLIB_CFLAGS - Flags to pass to cc when compiling the components
3627
# of a shared library (may request position-independent
3628
# code, among other things).
3629
# SHLIB_LD - Base command to use for combining object files
3630
# into a shared library.
3631
# SHLIB_SUFFIX - Suffix to use for the names of dynamically loadable
3632
# extensions. An empty string means we don't know how
3633
# to use shared libraries on this platform.
3634
#--------------------------------------------------------------------
3636
# Step 1: set the variable "system" to hold the name and version number
3639
echo "$as_me:$LINENO: checking system version (for dynamic loading)" >&5
3640
echo $ECHO_N "checking system version (for dynamic loading)... $ECHO_C" >&6
3641
system=`uname -s`-`uname -r`
3642
echo "$as_me:$LINENO: result: $system" >&5
3643
echo "${ECHO_T}$system" >&6
3645
# Step 2: check for existence of -ldl library. This is needed because
3646
# Linux can use either -ldl or -ldld for dynamic loading.
3648
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3649
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3650
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3651
echo $ECHO_N "(cached) $ECHO_C" >&6
3653
ac_check_lib_save_LIBS=$LIBS
3655
cat >conftest.$ac_ext <<_ACEOF
3658
cat confdefs.h >>conftest.$ac_ext
3659
cat >>conftest.$ac_ext <<_ACEOF
3660
/* end confdefs.h. */
3662
/* Override any gcc2 internal prototype to avoid an error. */
3666
/* We use char because int might match the return type of a gcc2
3667
builtin and then its argument prototype would still apply. */
3677
rm -f conftest.$ac_objext conftest$ac_exeext
3678
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3679
(eval $ac_link) 2>conftest.er1
3681
grep -v '^ *+' conftest.er1 >conftest.err
3683
cat conftest.err >&5
3684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685
(exit $ac_status); } &&
3686
{ ac_try='test -z "$ac_c_werror_flag"
3687
|| test ! -s conftest.err'
3688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692
(exit $ac_status); }; } &&
3693
{ ac_try='test -s conftest$ac_exeext'
3694
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698
(exit $ac_status); }; }; then
3699
ac_cv_lib_dl_dlopen=yes
3701
echo "$as_me: failed program was:" >&5
3702
sed 's/^/| /' conftest.$ac_ext >&5
3704
ac_cv_lib_dl_dlopen=no
3706
rm -f conftest.err conftest.$ac_objext \
3707
conftest$ac_exeext conftest.$ac_ext
3708
LIBS=$ac_check_lib_save_LIBS
3710
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3711
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3712
if test $ac_cv_lib_dl_dlopen = yes; then
3719
# Step 3: set configuration options based on system name and version.
3723
fullSrcDir=`cd $srcdir; pwd`
3726
SHLIB_CFLAGS="-fPIC"
3728
if test "$have_dl" = yes; then
3730
SHLIB_LDFLAGS="$LDFLAGS -shared"
3731
LD_FLAGS="-rdynamic"
3733
if test "${ac_cv_header_dld_h+set}" = set; then
3734
echo "$as_me:$LINENO: checking for dld.h" >&5
3735
echo $ECHO_N "checking for dld.h... $ECHO_C" >&6
3736
if test "${ac_cv_header_dld_h+set}" = set; then
3737
echo $ECHO_N "(cached) $ECHO_C" >&6
3739
echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
3740
echo "${ECHO_T}$ac_cv_header_dld_h" >&6
3742
# Is the header compilable?
3743
echo "$as_me:$LINENO: checking dld.h usability" >&5
3744
echo $ECHO_N "checking dld.h usability... $ECHO_C" >&6
3745
cat >conftest.$ac_ext <<_ACEOF
3748
cat confdefs.h >>conftest.$ac_ext
3749
cat >>conftest.$ac_ext <<_ACEOF
3750
/* end confdefs.h. */
3751
$ac_includes_default
3754
rm -f conftest.$ac_objext
3755
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3756
(eval $ac_compile) 2>conftest.er1
3758
grep -v '^ *+' conftest.er1 >conftest.err
3760
cat conftest.err >&5
3761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762
(exit $ac_status); } &&
3763
{ ac_try='test -z "$ac_c_werror_flag"
3764
|| test ! -s conftest.err'
3765
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769
(exit $ac_status); }; } &&
3770
{ ac_try='test -s conftest.$ac_objext'
3771
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775
(exit $ac_status); }; }; then
3776
ac_header_compiler=yes
3778
echo "$as_me: failed program was:" >&5
3779
sed 's/^/| /' conftest.$ac_ext >&5
3781
ac_header_compiler=no
3783
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3784
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3785
echo "${ECHO_T}$ac_header_compiler" >&6
3787
# Is the header present?
3788
echo "$as_me:$LINENO: checking dld.h presence" >&5
3789
echo $ECHO_N "checking dld.h presence... $ECHO_C" >&6
3790
cat >conftest.$ac_ext <<_ACEOF
3793
cat confdefs.h >>conftest.$ac_ext
3794
cat >>conftest.$ac_ext <<_ACEOF
3795
/* end confdefs.h. */
3798
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3799
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3801
grep -v '^ *+' conftest.er1 >conftest.err
3803
cat conftest.err >&5
3804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805
(exit $ac_status); } >/dev/null; then
3806
if test -s conftest.err; then
3807
ac_cpp_err=$ac_c_preproc_warn_flag
3808
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3815
if test -z "$ac_cpp_err"; then
3816
ac_header_preproc=yes
3818
echo "$as_me: failed program was:" >&5
3819
sed 's/^/| /' conftest.$ac_ext >&5
3821
ac_header_preproc=no
3823
rm -f conftest.err conftest.$ac_ext
3824
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3825
echo "${ECHO_T}$ac_header_preproc" >&6
3827
# So? What about this header?
3828
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3830
{ echo "$as_me:$LINENO: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&5
3831
echo "$as_me: WARNING: dld.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3832
{ echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the compiler's result" >&5
3833
echo "$as_me: WARNING: dld.h: proceeding with the compiler's result" >&2;}
3834
ac_header_preproc=yes
3837
{ echo "$as_me:$LINENO: WARNING: dld.h: present but cannot be compiled" >&5
3838
echo "$as_me: WARNING: dld.h: present but cannot be compiled" >&2;}
3839
{ echo "$as_me:$LINENO: WARNING: dld.h: check for missing prerequisite headers?" >&5
3840
echo "$as_me: WARNING: dld.h: check for missing prerequisite headers?" >&2;}
3841
{ echo "$as_me:$LINENO: WARNING: dld.h: see the Autoconf documentation" >&5
3842
echo "$as_me: WARNING: dld.h: see the Autoconf documentation" >&2;}
3843
{ echo "$as_me:$LINENO: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&5
3844
echo "$as_me: WARNING: dld.h: section \"Present But Cannot Be Compiled\"" >&2;}
3845
{ echo "$as_me:$LINENO: WARNING: dld.h: proceeding with the preprocessor's result" >&5
3846
echo "$as_me: WARNING: dld.h: proceeding with the preprocessor's result" >&2;}
3847
{ echo "$as_me:$LINENO: WARNING: dld.h: in the future, the compiler will take precedence" >&5
3848
echo "$as_me: WARNING: dld.h: in the future, the compiler will take precedence" >&2;}
3851
## ------------------------------------------ ##
3852
## Report this to the AC_PACKAGE_NAME lists. ##
3853
## ------------------------------------------ ##
3856
sed "s/^/$as_me: WARNING: /" >&2
3859
echo "$as_me:$LINENO: checking for dld.h" >&5
3860
echo $ECHO_N "checking for dld.h... $ECHO_C" >&6
3861
if test "${ac_cv_header_dld_h+set}" = set; then
3862
echo $ECHO_N "(cached) $ECHO_C" >&6
3864
ac_cv_header_dld_h=$ac_header_preproc
3866
echo "$as_me:$LINENO: result: $ac_cv_header_dld_h" >&5
3867
echo "${ECHO_T}$ac_cv_header_dld_h" >&6
3870
if test $ac_cv_header_dld_h = yes; then
3873
SHLIB_LDFLAGS="-shared"
3878
SHLIB_EXTRACT_ALL=""
3880
NetBSD-*|FreeBSD-*|OpenBSD-*)
3881
# Not available on all versions: check for include file.
3882
if test "${ac_cv_header_dlfcn_h+set}" = set; then
3883
echo "$as_me:$LINENO: checking for dlfcn.h" >&5
3884
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
3885
if test "${ac_cv_header_dlfcn_h+set}" = set; then
3886
echo $ECHO_N "(cached) $ECHO_C" >&6
3888
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
3889
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
3891
# Is the header compilable?
3892
echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
3893
echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
3894
cat >conftest.$ac_ext <<_ACEOF
3897
cat confdefs.h >>conftest.$ac_ext
3898
cat >>conftest.$ac_ext <<_ACEOF
3899
/* end confdefs.h. */
3900
$ac_includes_default
3903
rm -f conftest.$ac_objext
3904
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905
(eval $ac_compile) 2>conftest.er1
3907
grep -v '^ *+' conftest.er1 >conftest.err
3909
cat conftest.err >&5
3910
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911
(exit $ac_status); } &&
3912
{ ac_try='test -z "$ac_c_werror_flag"
3913
|| test ! -s conftest.err'
3914
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918
(exit $ac_status); }; } &&
3919
{ ac_try='test -s conftest.$ac_objext'
3920
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924
(exit $ac_status); }; }; then
3925
ac_header_compiler=yes
3927
echo "$as_me: failed program was:" >&5
3928
sed 's/^/| /' conftest.$ac_ext >&5
3930
ac_header_compiler=no
3932
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3933
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3934
echo "${ECHO_T}$ac_header_compiler" >&6
3936
# Is the header present?
3937
echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
3938
echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
3939
cat >conftest.$ac_ext <<_ACEOF
3942
cat confdefs.h >>conftest.$ac_ext
3943
cat >>conftest.$ac_ext <<_ACEOF
3944
/* end confdefs.h. */
3947
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3948
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3950
grep -v '^ *+' conftest.er1 >conftest.err
3952
cat conftest.err >&5
3953
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3954
(exit $ac_status); } >/dev/null; then
3955
if test -s conftest.err; then
3956
ac_cpp_err=$ac_c_preproc_warn_flag
3957
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3964
if test -z "$ac_cpp_err"; then
3965
ac_header_preproc=yes
3967
echo "$as_me: failed program was:" >&5
3968
sed 's/^/| /' conftest.$ac_ext >&5
3970
ac_header_preproc=no
3972
rm -f conftest.err conftest.$ac_ext
3973
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3974
echo "${ECHO_T}$ac_header_preproc" >&6
3976
# So? What about this header?
3977
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3979
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
3980
echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3981
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
3982
echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
3983
ac_header_preproc=yes
3986
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
3987
echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
3988
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
3989
echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
3990
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
3991
echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
3992
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
3993
echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
3994
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
3995
echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
3996
{ echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
3997
echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
4000
## ------------------------------------------ ##
4001
## Report this to the AC_PACKAGE_NAME lists. ##
4002
## ------------------------------------------ ##
4005
sed "s/^/$as_me: WARNING: /" >&2
4008
echo "$as_me:$LINENO: checking for dlfcn.h" >&5
4009
echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
4010
if test "${ac_cv_header_dlfcn_h+set}" = set; then
4011
echo $ECHO_N "(cached) $ECHO_C" >&6
4013
ac_cv_header_dlfcn_h=$ac_header_preproc
4015
echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
4016
echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
4019
if test $ac_cv_header_dlfcn_h = yes; then
4021
SHLIB_CFLAGS="-fpic"
4023
SHLIB_LDFLAGS="$LDFLAGS -Bshareable -x"
4028
# No dynamic loading.
4031
SHLIB_LDFLAGS="$LDFLAGS"
4033
{ { echo "$as_me:$LINENO: error: don't know how to compile and link dynamic drivers" >&5
4034
echo "$as_me: error: don't know how to compile and link dynamic drivers" >&2;}
4035
{ (exit 1); exit 1; }; }
4040
SHLIB_EXTRACT_ALL=""
4045
SHLIB_LDFLAGS="$LDFLAGS"
4047
SHLIB_EXTRACT_ALL=""
4049
SunOS-5*|UNIX_SV-4.2*)
4050
SHLIB_CFLAGS="-KPIC"
4051
SHLIB_LD="/usr/ccs/bin/ld"
4052
SHLIB_LDFLAGS="$LDFLAGS -G -z text"
4054
SHLIB_EXTRACT_ALL="-z allextract"
4057
SHLIB_CFLAGS="-fno-common"
4059
SHLIB_LDFLAGS="$LDFLAGS -bundle -flat_namespace -undefined suppress"
4061
SHLIB_EXTRACT_ALL=""
4064
SHLIB_CFLAGS="-fPIC"
4066
SHLIB_LDFLAGS="$LDFLAGS -shared"
4068
SHLIB_EXTRACT_ALL=""
4071
SHLIB_CFLAGS="-fPIC"
4072
SHLIB_LD="${CC} -shared"
4073
SHLIB_LDFLAGS="$LDFLAGS"
4075
SHLIB_EXTRACT_ALL=""
4078
# No dynamic loading.
4084
SHLIB_EXTRACT_ALL=""
4085
{ { echo "$as_me:$LINENO: error: don't know how to compile and link dynamic drivers" >&5
4086
echo "$as_me: error: don't know how to compile and link dynamic drivers" >&2;}
4087
{ (exit 1); exit 1; }; }
4091
# If we're running gcc, then change the C flags for compiling shared
4092
# libraries to the right flags for gcc, instead of those for the
4093
# standard manufacturer compiler.
4095
if test "$CC" = "gcc" -o `$CC -v 2>&1 | grep -c gcc` != "0" ; then
4103
NetBSD-*|FreeBSD-*|OpenBSD-*)
4112
SHLIB_CFLAGS="-fPIC"
4117
# Make it possible for erl_interface to use it's own compiler options
4120
# Add thread-safety flags if requested
4121
# Check whether --enable-shlib-thread-safety or --disable-shlib-thread-safety was given.
4122
if test "${enable_shlib_thread_safety+set}" = set; then
4123
enableval="$enable_shlib_thread_safety"
4124
case "$enableval" in
4126
*) SHLIB_CFLAGS="$SHLIB_CFLAGS -D_THREAD_SAFE -D_REENTRANT"
4127
CFLAGS="$CFLAGS -D_THREAD_SAFE -D_REENTRANT"
4132
SHLIB_CFLAGS="$SHLIB_CFLAGS $CFLAGS"
4144
#--------------------------------------------------------------------
4145
# Check for the existence of the -lsocket and -lnsl libraries.
4146
# The order here is important, so that they end up in the right
4147
# order in the command line generated by make. Here are some
4148
# special considerations:
4149
# 1. Use "connect" and "accept" to check for -lsocket, and
4150
# "gethostbyname" to check for -lnsl.
4151
# 2. Use each function name only once: can't redo a check because
4152
# autoconf caches the results of the last check and won't redo it.
4153
# 3. Use -lnsl and -lsocket only if they supply procedures that
4154
# aren't already present in the normal libraries. This is because
4155
# IRIX 5.2 has libraries, but they aren't needed and they're
4156
# bogus: they goof up name resolution if used.
4157
# 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
4158
# To get around this problem, check for both libraries together
4159
# if -lsocket doesn't work by itself.
4160
#--------------------------------------------------------------------
4163
echo "$as_me:$LINENO: checking for connect" >&5
4164
echo $ECHO_N "checking for connect... $ECHO_C" >&6
4165
if test "${ac_cv_func_connect+set}" = set; then
4166
echo $ECHO_N "(cached) $ECHO_C" >&6
4168
cat >conftest.$ac_ext <<_ACEOF
4171
cat confdefs.h >>conftest.$ac_ext
4172
cat >>conftest.$ac_ext <<_ACEOF
4173
/* end confdefs.h. */
4174
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4175
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4176
#define connect innocuous_connect
4178
/* System header to define __stub macros and hopefully few prototypes,
4179
which can conflict with char connect (); below.
4180
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181
<limits.h> exists even on freestanding compilers. */
4184
# include <limits.h>
4186
# include <assert.h>
4191
/* Override any gcc2 internal prototype to avoid an error. */
4196
/* We use char because int might match the return type of a gcc2
4197
builtin and then its argument prototype would still apply. */
4199
/* The GNU C library defines this for functions which it implements
4200
to always fail with ENOSYS. Some functions are actually named
4201
something starting with __ and the normal name is an alias. */
4202
#if defined (__stub_connect) || defined (__stub___connect)
4205
char (*f) () = connect;
4214
return f != connect;
4219
rm -f conftest.$ac_objext conftest$ac_exeext
4220
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4221
(eval $ac_link) 2>conftest.er1
4223
grep -v '^ *+' conftest.er1 >conftest.err
4225
cat conftest.err >&5
4226
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227
(exit $ac_status); } &&
4228
{ ac_try='test -z "$ac_c_werror_flag"
4229
|| test ! -s conftest.err'
4230
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234
(exit $ac_status); }; } &&
4235
{ ac_try='test -s conftest$ac_exeext'
4236
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4240
(exit $ac_status); }; }; then
4241
ac_cv_func_connect=yes
4243
echo "$as_me: failed program was:" >&5
4244
sed 's/^/| /' conftest.$ac_ext >&5
4246
ac_cv_func_connect=no
4248
rm -f conftest.err conftest.$ac_objext \
4249
conftest$ac_exeext conftest.$ac_ext
4251
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4252
echo "${ECHO_T}$ac_cv_func_connect" >&6
4253
if test $ac_cv_func_connect = yes; then
4259
if test "$erl_checkSocket" = 1; then
4260
echo "$as_me:$LINENO: checking for main in -lsocket" >&5
4261
echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
4262
if test "${ac_cv_lib_socket_main+set}" = set; then
4263
echo $ECHO_N "(cached) $ECHO_C" >&6
4265
ac_check_lib_save_LIBS=$LIBS
4266
LIBS="-lsocket $LIBS"
4267
cat >conftest.$ac_ext <<_ACEOF
4270
cat confdefs.h >>conftest.$ac_ext
4271
cat >>conftest.$ac_ext <<_ACEOF
4272
/* end confdefs.h. */
4283
rm -f conftest.$ac_objext conftest$ac_exeext
4284
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4285
(eval $ac_link) 2>conftest.er1
4287
grep -v '^ *+' conftest.er1 >conftest.err
4289
cat conftest.err >&5
4290
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291
(exit $ac_status); } &&
4292
{ ac_try='test -z "$ac_c_werror_flag"
4293
|| test ! -s conftest.err'
4294
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298
(exit $ac_status); }; } &&
4299
{ ac_try='test -s conftest$ac_exeext'
4300
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304
(exit $ac_status); }; }; then
4305
ac_cv_lib_socket_main=yes
4307
echo "$as_me: failed program was:" >&5
4308
sed 's/^/| /' conftest.$ac_ext >&5
4310
ac_cv_lib_socket_main=no
4312
rm -f conftest.err conftest.$ac_objext \
4313
conftest$ac_exeext conftest.$ac_ext
4314
LIBS=$ac_check_lib_save_LIBS
4316
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
4317
echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
4318
if test $ac_cv_lib_socket_main = yes; then
4319
LIBS="$LIBS -lsocket"
4325
if test "$erl_checkBoth" = 1; then
4327
LIBS="$LIBS -lsocket -lnsl"
4328
echo "$as_me:$LINENO: checking for accept" >&5
4329
echo $ECHO_N "checking for accept... $ECHO_C" >&6
4330
if test "${ac_cv_func_accept+set}" = set; then
4331
echo $ECHO_N "(cached) $ECHO_C" >&6
4333
cat >conftest.$ac_ext <<_ACEOF
4336
cat confdefs.h >>conftest.$ac_ext
4337
cat >>conftest.$ac_ext <<_ACEOF
4338
/* end confdefs.h. */
4339
/* Define accept to an innocuous variant, in case <limits.h> declares accept.
4340
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4341
#define accept innocuous_accept
4343
/* System header to define __stub macros and hopefully few prototypes,
4344
which can conflict with char accept (); below.
4345
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4346
<limits.h> exists even on freestanding compilers. */
4349
# include <limits.h>
4351
# include <assert.h>
4356
/* Override any gcc2 internal prototype to avoid an error. */
4361
/* We use char because int might match the return type of a gcc2
4362
builtin and then its argument prototype would still apply. */
4364
/* The GNU C library defines this for functions which it implements
4365
to always fail with ENOSYS. Some functions are actually named
4366
something starting with __ and the normal name is an alias. */
4367
#if defined (__stub_accept) || defined (__stub___accept)
4370
char (*f) () = accept;
4384
rm -f conftest.$ac_objext conftest$ac_exeext
4385
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4386
(eval $ac_link) 2>conftest.er1
4388
grep -v '^ *+' conftest.er1 >conftest.err
4390
cat conftest.err >&5
4391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392
(exit $ac_status); } &&
4393
{ ac_try='test -z "$ac_c_werror_flag"
4394
|| test ! -s conftest.err'
4395
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399
(exit $ac_status); }; } &&
4400
{ ac_try='test -s conftest$ac_exeext'
4401
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405
(exit $ac_status); }; }; then
4406
ac_cv_func_accept=yes
4408
echo "$as_me: failed program was:" >&5
4409
sed 's/^/| /' conftest.$ac_ext >&5
4411
ac_cv_func_accept=no
4413
rm -f conftest.err conftest.$ac_objext \
4414
conftest$ac_exeext conftest.$ac_ext
4416
echo "$as_me:$LINENO: result: $ac_cv_func_accept" >&5
4417
echo "${ECHO_T}$ac_cv_func_accept" >&6
4418
if test $ac_cv_func_accept = yes; then
4425
echo "$as_me:$LINENO: checking for gethostbyname" >&5
4426
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
4427
if test "${ac_cv_func_gethostbyname+set}" = set; then
4428
echo $ECHO_N "(cached) $ECHO_C" >&6
4430
cat >conftest.$ac_ext <<_ACEOF
4433
cat confdefs.h >>conftest.$ac_ext
4434
cat >>conftest.$ac_ext <<_ACEOF
4435
/* end confdefs.h. */
4436
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4437
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4438
#define gethostbyname innocuous_gethostbyname
4440
/* System header to define __stub macros and hopefully few prototypes,
4441
which can conflict with char gethostbyname (); below.
4442
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4443
<limits.h> exists even on freestanding compilers. */
4446
# include <limits.h>
4448
# include <assert.h>
4451
#undef gethostbyname
4453
/* Override any gcc2 internal prototype to avoid an error. */
4458
/* We use char because int might match the return type of a gcc2
4459
builtin and then its argument prototype would still apply. */
4460
char gethostbyname ();
4461
/* The GNU C library defines this for functions which it implements
4462
to always fail with ENOSYS. Some functions are actually named
4463
something starting with __ and the normal name is an alias. */
4464
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
4467
char (*f) () = gethostbyname;
4476
return f != gethostbyname;
4481
rm -f conftest.$ac_objext conftest$ac_exeext
4482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4483
(eval $ac_link) 2>conftest.er1
4485
grep -v '^ *+' conftest.er1 >conftest.err
4487
cat conftest.err >&5
4488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489
(exit $ac_status); } &&
4490
{ ac_try='test -z "$ac_c_werror_flag"
4491
|| test ! -s conftest.err'
4492
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4495
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496
(exit $ac_status); }; } &&
4497
{ ac_try='test -s conftest$ac_exeext'
4498
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502
(exit $ac_status); }; }; then
4503
ac_cv_func_gethostbyname=yes
4505
echo "$as_me: failed program was:" >&5
4506
sed 's/^/| /' conftest.$ac_ext >&5
4508
ac_cv_func_gethostbyname=no
4510
rm -f conftest.err conftest.$ac_objext \
4511
conftest$ac_exeext conftest.$ac_ext
4513
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4514
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
4515
if test $ac_cv_func_gethostbyname = yes; then
4518
echo "$as_me:$LINENO: checking for main in -lnsl" >&5
4519
echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
4520
if test "${ac_cv_lib_nsl_main+set}" = set; then
4521
echo $ECHO_N "(cached) $ECHO_C" >&6
4523
ac_check_lib_save_LIBS=$LIBS
4525
cat >conftest.$ac_ext <<_ACEOF
4528
cat confdefs.h >>conftest.$ac_ext
4529
cat >>conftest.$ac_ext <<_ACEOF
4530
/* end confdefs.h. */
4541
rm -f conftest.$ac_objext conftest$ac_exeext
4542
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4543
(eval $ac_link) 2>conftest.er1
4545
grep -v '^ *+' conftest.er1 >conftest.err
4547
cat conftest.err >&5
4548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549
(exit $ac_status); } &&
4550
{ ac_try='test -z "$ac_c_werror_flag"
4551
|| test ! -s conftest.err'
4552
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556
(exit $ac_status); }; } &&
4557
{ ac_try='test -s conftest$ac_exeext'
4558
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562
(exit $ac_status); }; }; then
4563
ac_cv_lib_nsl_main=yes
4565
echo "$as_me: failed program was:" >&5
4566
sed 's/^/| /' conftest.$ac_ext >&5
4568
ac_cv_lib_nsl_main=no
4570
rm -f conftest.err conftest.$ac_objext \
4571
conftest$ac_exeext conftest.$ac_ext
4572
LIBS=$ac_check_lib_save_LIBS
4574
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
4575
echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
4576
if test $ac_cv_lib_nsl_main = yes; then
4584
for ac_func in strerror
4586
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4587
echo "$as_me:$LINENO: checking for $ac_func" >&5
4588
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4589
if eval "test \"\${$as_ac_var+set}\" = set"; then
4590
echo $ECHO_N "(cached) $ECHO_C" >&6
4592
cat >conftest.$ac_ext <<_ACEOF
4595
cat confdefs.h >>conftest.$ac_ext
4596
cat >>conftest.$ac_ext <<_ACEOF
4597
/* end confdefs.h. */
4598
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4599
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4600
#define $ac_func innocuous_$ac_func
4602
/* System header to define __stub macros and hopefully few prototypes,
4603
which can conflict with char $ac_func (); below.
4604
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4605
<limits.h> exists even on freestanding compilers. */
4608
# include <limits.h>
4610
# include <assert.h>
4615
/* Override any gcc2 internal prototype to avoid an error. */
4620
/* We use char because int might match the return type of a gcc2
4621
builtin and then its argument prototype would still apply. */
4623
/* The GNU C library defines this for functions which it implements
4624
to always fail with ENOSYS. Some functions are actually named
4625
something starting with __ and the normal name is an alias. */
4626
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4629
char (*f) () = $ac_func;
4638
return f != $ac_func;
4643
rm -f conftest.$ac_objext conftest$ac_exeext
4644
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4645
(eval $ac_link) 2>conftest.er1
4647
grep -v '^ *+' conftest.er1 >conftest.err
4649
cat conftest.err >&5
4650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651
(exit $ac_status); } &&
4652
{ ac_try='test -z "$ac_c_werror_flag"
4653
|| test ! -s conftest.err'
4654
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658
(exit $ac_status); }; } &&
4659
{ ac_try='test -s conftest$ac_exeext'
4660
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664
(exit $ac_status); }; }; then
4665
eval "$as_ac_var=yes"
4667
echo "$as_me: failed program was:" >&5
4668
sed 's/^/| /' conftest.$ac_ext >&5
4670
eval "$as_ac_var=no"
4672
rm -f conftest.err conftest.$ac_objext \
4673
conftest$ac_exeext conftest.$ac_ext
4675
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4676
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4677
if test `eval echo '${'$as_ac_var'}'` = yes; then
4678
cat >>confdefs.h <<_ACEOF
4679
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4686
for ac_func in vsnprintf
4688
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4689
echo "$as_me:$LINENO: checking for $ac_func" >&5
4690
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4691
if eval "test \"\${$as_ac_var+set}\" = set"; then
4692
echo $ECHO_N "(cached) $ECHO_C" >&6
4694
cat >conftest.$ac_ext <<_ACEOF
4697
cat confdefs.h >>conftest.$ac_ext
4698
cat >>conftest.$ac_ext <<_ACEOF
4699
/* end confdefs.h. */
4700
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4701
For example, HP-UX 11i <limits.h> declares gettimeofday. */
4702
#define $ac_func innocuous_$ac_func
4704
/* System header to define __stub macros and hopefully few prototypes,
4705
which can conflict with char $ac_func (); below.
4706
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4707
<limits.h> exists even on freestanding compilers. */
4710
# include <limits.h>
4712
# include <assert.h>
4717
/* Override any gcc2 internal prototype to avoid an error. */
4722
/* We use char because int might match the return type of a gcc2
4723
builtin and then its argument prototype would still apply. */
4725
/* The GNU C library defines this for functions which it implements
4726
to always fail with ENOSYS. Some functions are actually named
4727
something starting with __ and the normal name is an alias. */
4728
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4731
char (*f) () = $ac_func;
4740
return f != $ac_func;
4745
rm -f conftest.$ac_objext conftest$ac_exeext
4746
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4747
(eval $ac_link) 2>conftest.er1
4749
grep -v '^ *+' conftest.er1 >conftest.err
4751
cat conftest.err >&5
4752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753
(exit $ac_status); } &&
4754
{ ac_try='test -z "$ac_c_werror_flag"
4755
|| test ! -s conftest.err'
4756
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760
(exit $ac_status); }; } &&
4761
{ ac_try='test -s conftest$ac_exeext'
4762
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766
(exit $ac_status); }; }; then
4767
eval "$as_ac_var=yes"
4769
echo "$as_me: failed program was:" >&5
4770
sed 's/^/| /' conftest.$ac_ext >&5
4772
eval "$as_ac_var=no"
4774
rm -f conftest.err conftest.$ac_objext \
4775
conftest$ac_exeext conftest.$ac_ext
4777
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4778
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4779
if test `eval echo '${'$as_ac_var'}'` = yes; then
4780
cat >>confdefs.h <<_ACEOF
4781
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4788
# First check if the library is available, then if we can choose between
4789
# two versions of gethostbyname
4791
echo "$as_me:$LINENO: checking for main in -lresolv" >&5
4792
echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
4793
if test "${ac_cv_lib_resolv_main+set}" = set; then
4794
echo $ECHO_N "(cached) $ECHO_C" >&6
4796
ac_check_lib_save_LIBS=$LIBS
4797
LIBS="-lresolv $LIBS"
4798
cat >conftest.$ac_ext <<_ACEOF
4801
cat confdefs.h >>conftest.$ac_ext
4802
cat >>conftest.$ac_ext <<_ACEOF
4803
/* end confdefs.h. */
4814
rm -f conftest.$ac_objext conftest$ac_exeext
4815
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4816
(eval $ac_link) 2>conftest.er1
4818
grep -v '^ *+' conftest.er1 >conftest.err
4820
cat conftest.err >&5
4821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822
(exit $ac_status); } &&
4823
{ ac_try='test -z "$ac_c_werror_flag"
4824
|| test ! -s conftest.err'
4825
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829
(exit $ac_status); }; } &&
4830
{ ac_try='test -s conftest$ac_exeext'
4831
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835
(exit $ac_status); }; }; then
4836
ac_cv_lib_resolv_main=yes
4838
echo "$as_me: failed program was:" >&5
4839
sed 's/^/| /' conftest.$ac_ext >&5
4841
ac_cv_lib_resolv_main=no
4843
rm -f conftest.err conftest.$ac_objext \
4844
conftest$ac_exeext conftest.$ac_ext
4845
LIBS=$ac_check_lib_save_LIBS
4847
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
4848
echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
4849
if test $ac_cv_lib_resolv_main = yes; then
4850
cat >>confdefs.h <<_ACEOF
4851
#define HAVE_LIBRESOLV 1
4854
LIBS="-lresolv $LIBS"
4857
ac_cv_lib_resolv=ac_cv_lib_resolv_main
4859
echo "$as_me:$LINENO: checking for res_gethostbyname in -lresolv" >&5
4860
echo $ECHO_N "checking for res_gethostbyname in -lresolv... $ECHO_C" >&6
4861
if test "${ac_cv_lib_resolv_res_gethostbyname+set}" = set; then
4862
echo $ECHO_N "(cached) $ECHO_C" >&6
4864
ac_check_lib_save_LIBS=$LIBS
4865
LIBS="-lresolv $LIBS"
4866
cat >conftest.$ac_ext <<_ACEOF
4869
cat confdefs.h >>conftest.$ac_ext
4870
cat >>conftest.$ac_ext <<_ACEOF
4871
/* end confdefs.h. */
4873
/* Override any gcc2 internal prototype to avoid an error. */
4877
/* We use char because int might match the return type of a gcc2
4878
builtin and then its argument prototype would still apply. */
4879
char res_gethostbyname ();
4883
res_gethostbyname ();
4888
rm -f conftest.$ac_objext conftest$ac_exeext
4889
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4890
(eval $ac_link) 2>conftest.er1
4892
grep -v '^ *+' conftest.er1 >conftest.err
4894
cat conftest.err >&5
4895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896
(exit $ac_status); } &&
4897
{ ac_try='test -z "$ac_c_werror_flag"
4898
|| test ! -s conftest.err'
4899
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903
(exit $ac_status); }; } &&
4904
{ ac_try='test -s conftest$ac_exeext'
4905
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909
(exit $ac_status); }; }; then
4910
ac_cv_lib_resolv_res_gethostbyname=yes
4912
echo "$as_me: failed program was:" >&5
4913
sed 's/^/| /' conftest.$ac_ext >&5
4915
ac_cv_lib_resolv_res_gethostbyname=no
4917
rm -f conftest.err conftest.$ac_objext \
4918
conftest$ac_exeext conftest.$ac_ext
4919
LIBS=$ac_check_lib_save_LIBS
4921
echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_gethostbyname" >&5
4922
echo "${ECHO_T}$ac_cv_lib_resolv_res_gethostbyname" >&6
4923
if test $ac_cv_lib_resolv_res_gethostbyname = yes; then
4924
DEFS="$DEFS -DHAVE_RES_GETHOSTBYNAME=1"
4928
#--------------------------------------------------------------------
4929
# Emulator compatible flags (for drivers)
4930
#--------------------------------------------------------------------
4938
#--------------------------------------------------------------------
4939
# Special compiler macro to handle cross compiling
4940
# (HCC) is used to compile tools run in the HOST environment
4941
#--------------------------------------------------------------------
4945
#--------------------------------------------------------------------
4946
# ld is used for linking on vxworks
4947
#--------------------------------------------------------------------
4948
LD='$(CC) $(CFLAGS)'
4951
#--------------------------------------------------------------------
4952
# object file suffix
4953
#--------------------------------------------------------------------
4957
#--------------------------------------------------------------------
4958
# executable file suffix
4959
#--------------------------------------------------------------------
4963
#--------------------------------------------------------------------
4964
# flags when linking for cross platform targets (yet 'tis useful with
4966
#--------------------------------------------------------------------
4974
# We search for SSL. First in the OTP team ClearCase standard location,
4975
# then in the common OS standard locations
4980
#for dir in /usr /usr/pkg /usr/local /usr/local/ssl /usr/lib/ssl /usr/ssl; do
4981
# AC_CHECK_HEADER($dir/include/openssl/opensslv.h,
4982
# ac_cv_openssl=yes, ac_cv_openssl=no)
4983
# if test $ac_cv_openssl = yes ; then
4984
# SSLEAY_ROOT="$dir"
4990
# Find a usable java compiler
4992
# WARNING this code is copied from ERTS configure.in, and should be
4993
# updated if that code changes. I hate duplicating code, but what
4997
for ac_prog in javac guavac gcj jikes bock
4999
# Extract the first word of "$ac_prog", so it can be a program name with args.
5000
set dummy $ac_prog; ac_word=$2
5001
echo "$as_me:$LINENO: checking for $ac_word" >&5
5002
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5003
if test "${ac_cv_prog_JAVAC+set}" = set; then
5004
echo $ECHO_N "(cached) $ECHO_C" >&6
5006
if test -n "$JAVAC"; then
5007
ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
5009
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013
test -z "$as_dir" && as_dir=.
5014
for ac_exec_ext in '' $ac_executable_extensions; do
5015
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5016
ac_cv_prog_JAVAC="$ac_prog"
5017
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025
JAVAC=$ac_cv_prog_JAVAC
5026
if test -n "$JAVAC"; then
5027
echo "$as_me:$LINENO: result: $JAVAC" >&5
5028
echo "${ECHO_T}$JAVAC" >&6
5030
echo "$as_me:$LINENO: result: no" >&5
5031
echo "${ECHO_T}no" >&6
5034
test -n "$JAVAC" && break
5037
if test -n "$JAVAC"; then
5038
echo "$as_me:$LINENO: checking for JDK version 1.5" >&5
5039
echo $ECHO_N "checking for JDK version 1.5... $ECHO_C" >&6
5040
if test "${ac_cv_prog_javac_ver_1_5+set}" = set; then
5041
echo $ECHO_N "(cached) $ECHO_C" >&6
5043
java_link='$JAVAC conftest.java 1>&5'
5044
cat > conftest.java <<EOF
5046
class conftest { public static void main(String[] args) {
5047
for (String i : args);
5050
if { (eval echo "$as_me:$LINENO: \"$java_link\"") >&5
5051
(eval $java_link) 2>&5
5053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054
(exit $ac_status); } && test -s conftest.class; then
5056
ac_cv_prog_javac_ver_1_5=yes
5058
echo "configure: failed program was:" 1>&5
5059
cat conftest.java 1>&5
5060
echo "configure: PATH was $PATH" 1>&5
5062
ac_cv_prog_javac_ver_1_5=no
5066
echo "$as_me:$LINENO: result: $ac_cv_prog_javac_ver_1_5" >&5
5067
echo "${ECHO_T}$ac_cv_prog_javac_ver_1_5" >&6
5068
if test $ac_cv_prog_javac_ver_1_5 = no; then
5072
if test -n "$JAVAC"; then
5077
for ac_prog in make gmake
5079
# Extract the first word of "$ac_prog", so it can be a program name with args.
5080
set dummy $ac_prog; ac_word=$2
5081
echo "$as_me:$LINENO: checking for $ac_word" >&5
5082
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5083
if test "${ac_cv_prog_make_command+set}" = set; then
5084
echo $ECHO_N "(cached) $ECHO_C" >&6
5086
if test -n "$make_command"; then
5087
ac_cv_prog_make_command="$make_command" # Let the user override the test.
5089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093
test -z "$as_dir" && as_dir=.
5094
for ac_exec_ext in '' $ac_executable_extensions; do
5095
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096
ac_cv_prog_make_command="$ac_prog"
5097
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105
make_command=$ac_cv_prog_make_command
5106
if test -n "$make_command"; then
5107
echo "$as_me:$LINENO: result: $make_command" >&5
5108
echo "${ECHO_T}$make_command" >&6
5110
echo "$as_me:$LINENO: result: no" >&5
5111
echo "${ECHO_T}no" >&6
5114
test -n "$make_command" && break
5116
test -n "$make_command" || make_command="false"
5120
if test "$GCC" = yes; then
5121
test_c_compiler="{gnuc, undefined}"
5123
test_c_compiler="undefined"
5127
ac_config_files="$ac_config_files conf_vars"
5128
cat >confcache <<\_ACEOF
5129
# This file is a shell script that caches the results of configure
5130
# tests run on this system so they can be shared between configure
5131
# scripts and configure runs, see configure's option --config-cache.
5132
# It is not useful on other systems. If it contains results you don't
5133
# want to keep, you may remove or edit it.
5135
# config.status only pays attention to the cache file if you give it
5136
# the --recheck option to rerun configure.
5138
# `ac_cv_env_foo' variables (set or unset) will be overridden when
5139
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5144
# The following way of writing the cache mishandles newlines in values,
5145
# but we know of no workaround that is simple, portable, and efficient.
5146
# So, don't put newlines in cache variables' values.
5147
# Ultrix sh set writes to stderr and can't be redirected directly,
5148
# and sets the high bit in the cache file unless we assign to the vars.
5151
case `(ac_space=' '; set | grep ac_space) 2>&1` in
5153
# `set' does not quote correctly, so add quotes (double-quote
5154
# substitution turns \\\\ into \\, and sed turns \\ into \).
5157
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5160
# `set' quotes correctly as required by POSIX, so do not add quotes.
5162
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5169
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5171
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5173
if diff $cache_file confcache >/dev/null 2>&1; then :; else
5174
if test -w $cache_file; then
5175
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5176
cat confcache >$cache_file
5178
echo "not updating unwritable cache $cache_file"
5183
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5184
# Let make expand exec_prefix.
5185
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5187
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5188
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5189
# trailing colons and then remove the whole line if VPATH becomes empty
5190
# (actually we leave an empty line to preserve line numbers).
5191
if test "x$srcdir" = x.; then
5192
ac_vpsub='/^[ ]*VPATH[ ]*=/{
5193
s/:*\$(srcdir):*/:/;
5194
s/:*\${srcdir}:*/:/;
5196
s/^\([^=]*=[ ]*\):*/\1/;
5202
# Transform confdefs.h into DEFS.
5203
# Protect against shell expansion while executing Makefile rules.
5204
# Protect against Makefile macro expansion.
5206
# If the first sed substitution is executed (which looks for macros that
5207
# take arguments), then we branch to the quote section. Otherwise,
5208
# look for a macro that doesn't take arguments.
5209
cat >confdef2opt.sed <<\_ACEOF
5212
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5214
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5218
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5224
# We use echo to avoid assuming a particular line-breaking character.
5225
# The extra dot is to prevent the shell from consuming trailing
5226
# line-breaks from the sub-command output. A line-break within
5227
# single-quotes doesn't work because, if this script is created in a
5228
# platform that uses two characters for line-breaks (e.g., DOS), tr
5230
ac_LF_and_DOT=`echo; echo .`
5231
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5232
rm -f confdef2opt.sed
5237
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5238
# 1. Remove the extension, and $U if already installed.
5239
ac_i=`echo "$ac_i" |
5240
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5242
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5243
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5247
LTLIBOBJS=$ac_ltlibobjs
5251
: ${CONFIG_STATUS=./config.status}
5252
ac_clean_files_save=$ac_clean_files
5253
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5254
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5255
echo "$as_me: creating $CONFIG_STATUS" >&6;}
5256
cat >$CONFIG_STATUS <<_ACEOF
5258
# Generated by $as_me.
5259
# Run this file to recreate the current configuration.
5260
# Compiler output produced by configure, useful for debugging
5261
# configure, is in config.log if it exists.
5266
SHELL=\${CONFIG_SHELL-$SHELL}
5269
cat >>$CONFIG_STATUS <<\_ACEOF
5270
## --------------------- ##
5271
## M4sh Initialization. ##
5272
## --------------------- ##
5274
# Be Bourne compatible
5275
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5278
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5279
# is contrary to our usage. Disable this feature.
5280
alias -g '${1+"$@"}'='"$@"'
5281
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5284
DUALCASE=1; export DUALCASE # for MKS sh
5286
# Support unset when possible.
5287
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5294
# Work around bugs in pre-3.0 UWIN ksh.
5295
$as_unset ENV MAIL MAILPATH
5302
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5303
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5304
LC_TELEPHONE LC_TIME
5306
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5307
eval $as_var=C; export $as_var
5313
# Required to use basename.
5314
if expr a : '\(a\)' >/dev/null 2>&1; then
5320
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5321
as_basename=basename
5327
# Name of the executable.
5328
as_me=`$as_basename "$0" ||
5329
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5330
X"$0" : 'X\(//\)$' \| \
5331
X"$0" : 'X\(/\)$' \| \
5332
. : '\(.\)' 2>/dev/null ||
5334
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5335
/^X\/\(\/\/\)$/{ s//\1/; q; }
5336
/^X\/\(\/\).*/{ s//\1/; q; }
5340
# PATH needs CR, and LINENO needs CR and PATH.
5341
# Avoid depending upon Character Ranges.
5342
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5343
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5344
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5345
as_cr_digits='0123456789'
5346
as_cr_alnum=$as_cr_Letters$as_cr_digits
5348
# The user is always right.
5349
if test "${PATH_SEPARATOR+set}" != set; then
5350
echo "#! /bin/sh" >conf$$.sh
5351
echo "exit 0" >>conf$$.sh
5353
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5364
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5365
test "x$as_lineno_1" != "x$as_lineno_2" &&
5366
test "x$as_lineno_3" = "x$as_lineno_2" || {
5367
# Find who we are. Look in the path if we contain no path at all
5370
*[\\/]* ) as_myself=$0 ;;
5371
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375
test -z "$as_dir" && as_dir=.
5376
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5381
# We did not find ourselves, most probably we were run as `sh COMMAND'
5382
# in which case we are not to be found in the path.
5383
if test "x$as_myself" = x; then
5386
if test ! -f "$as_myself"; then
5387
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5388
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5389
{ (exit 1); exit 1; }; }
5391
case $CONFIG_SHELL in
5393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5397
test -z "$as_dir" && as_dir=.
5398
for as_base in sh bash ksh sh5; do
5401
if ("$as_dir/$as_base" -c '
5404
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5405
test "x$as_lineno_1" != "x$as_lineno_2" &&
5406
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5407
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5408
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5409
CONFIG_SHELL=$as_dir/$as_base
5411
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5419
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5420
# uniformly replaced by the line number. The first 'sed' inserts a
5421
# line-number line before each line; the second 'sed' does the real
5422
# work. The second script uses 'N' to pair each line-number line
5423
# with the numbered line, and appends trailing '-' during
5424
# substitution so that $LINENO is not a special case at line end.
5425
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5426
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5427
sed '=' <$as_myself |
5432
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5435
s,^['$as_cr_digits']*\n,,
5437
chmod +x $as_me.lineno ||
5438
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5439
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5440
{ (exit 1); exit 1; }; }
5442
# Don't try to exec as it changes $[0], causing all sort of problems
5443
# (the dirname of $[0] is not the place where we might find the
5444
# original and so on. Autoconf is especially sensible to this).
5446
# Exit status is that of the last command.
5451
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5452
*c*,-n*) ECHO_N= ECHO_C='
5454
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5455
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5458
if expr a : '\(a\)' >/dev/null 2>&1; then
5464
rm -f conf$$ conf$$.exe conf$$.file
5466
if ln -s conf$$.file conf$$ 2>/dev/null; then
5467
# We could just check for DJGPP; but this test a) works b) is more generic
5468
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5469
if test -f conf$$.exe; then
5470
# Don't use ln at all; we don't have any links
5475
elif ln conf$$.file conf$$ 2>/dev/null; then
5480
rm -f conf$$ conf$$.exe conf$$.file
5482
if mkdir -p . 2>/dev/null; then
5485
test -d ./-p && rmdir ./-p
5489
as_executable_p="test -f"
5491
# Sed expression to map a string onto a valid CPP name.
5492
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5494
# Sed expression to map a string onto a valid variable name.
5495
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5499
# We need space, tab and new line, in precisely that order.
5509
# Open the log real soon, to keep \$[0] and so on meaningful, and to
5510
# report actual input values of CONFIG_FILES etc. instead of their
5511
# values after options handling. Logging --version etc. is OK.
5515
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5516
## Running $as_me. ##
5521
This file was extended by $as_me, which was
5522
generated by GNU Autoconf 2.59. Invocation command line was
5524
CONFIG_FILES = $CONFIG_FILES
5525
CONFIG_HEADERS = $CONFIG_HEADERS
5526
CONFIG_LINKS = $CONFIG_LINKS
5527
CONFIG_COMMANDS = $CONFIG_COMMANDS
5531
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5535
# Files that config.status was made for.
5536
if test -n "$ac_config_files"; then
5537
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5540
if test -n "$ac_config_headers"; then
5541
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5544
if test -n "$ac_config_links"; then
5545
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5548
if test -n "$ac_config_commands"; then
5549
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5552
cat >>$CONFIG_STATUS <<\_ACEOF
5555
\`$as_me' instantiates files from templates according to the
5556
current configuration.
5558
Usage: $0 [OPTIONS] [FILE]...
5560
-h, --help print this help, then exit
5561
-V, --version print version number, then exit
5562
-q, --quiet do not print progress messages
5563
-d, --debug don't remove temporary files
5564
--recheck update $as_me by reconfiguring in the same conditions
5565
--file=FILE[:TEMPLATE]
5566
instantiate the configuration file FILE
5568
Configuration files:
5571
Report bugs to <bug-autoconf@gnu.org>."
5574
cat >>$CONFIG_STATUS <<_ACEOF
5577
configured by $0, generated by GNU Autoconf 2.59,
5578
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5580
Copyright (C) 2003 Free Software Foundation, Inc.
5581
This config.status script is free software; the Free Software Foundation
5582
gives unlimited permission to copy, distribute and modify it."
5586
cat >>$CONFIG_STATUS <<\_ACEOF
5587
# If no file are specified by the user, then we need to provide default
5588
# value. By we need to know if files were specified by the user.
5594
ac_option=`expr "x$1" : 'x\([^=]*\)='`
5595
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5603
*) # This is not an option, so the user has probably given explicit
5606
ac_need_defaults=false;;
5610
# Handling of the options.
5612
cat >>$CONFIG_STATUS <<\_ACEOF
5613
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5615
--version | --vers* | -V )
5616
echo "$ac_cs_version"; exit 0 ;;
5618
# Conflict between --help and --header
5619
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
5620
Try \`$0 --help' for more information." >&5
5621
echo "$as_me: error: ambiguous option: $1
5622
Try \`$0 --help' for more information." >&2;}
5623
{ (exit 1); exit 1; }; };;
5624
--help | --hel | -h )
5625
echo "$ac_cs_usage"; exit 0 ;;
5626
--debug | --d* | -d )
5628
--file | --fil | --fi | --f )
5630
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5631
ac_need_defaults=false;;
5632
--header | --heade | --head | --hea )
5634
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5635
ac_need_defaults=false;;
5636
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
5637
| -silent | --silent | --silen | --sile | --sil | --si | --s)
5641
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5642
Try \`$0 --help' for more information." >&5
5643
echo "$as_me: error: unrecognized option: $1
5644
Try \`$0 --help' for more information." >&2;}
5645
{ (exit 1); exit 1; }; } ;;
5647
*) ac_config_targets="$ac_config_targets $1" ;;
5653
ac_configure_extra_args=
5655
if $ac_cs_silent; then
5657
ac_configure_extra_args="$ac_configure_extra_args --silent"
5661
cat >>$CONFIG_STATUS <<_ACEOF
5662
if \$ac_cs_recheck; then
5663
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5664
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5673
cat >>$CONFIG_STATUS <<\_ACEOF
5674
for ac_config_target in $ac_config_targets
5676
case "$ac_config_target" in
5677
# Handling of arguments.
5678
"conf_vars" ) CONFIG_FILES="$CONFIG_FILES conf_vars" ;;
5679
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5680
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5681
{ (exit 1); exit 1; }; };;
5685
# If the user did not use the arguments to specify the items to instantiate,
5686
# then the envvar interface is used. Set only those that are not.
5687
# We use the long form for the default assignment because of an extremely
5688
# bizarre bug on SunOS 4.1.3.
5689
if $ac_need_defaults; then
5690
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5693
# Have a temporary directory for convenience. Make it in the build tree
5694
# simply because there is no reason to put it here, and in addition,
5695
# creating and moving files from /tmp can sometimes cause problems.
5696
# Create a temporary directory, and hook for its removal unless debugging.
5699
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5700
trap '{ (exit 1); exit 1; }' 1 2 13 15
5703
# Create a (secure) tmp directory for tmp files.
5706
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5707
test -n "$tmp" && test -d "$tmp"
5710
tmp=./confstat$$-$RANDOM
5711
(umask 077 && mkdir $tmp)
5714
echo "$me: cannot create a temporary directory in ." >&2
5715
{ (exit 1); exit 1; }
5720
cat >>$CONFIG_STATUS <<_ACEOF
5723
# CONFIG_FILES section.
5726
# No need to generate the scripts if there are no CONFIG_FILES.
5727
# This happens for instance when ./config.status config.h
5728
if test -n "\$CONFIG_FILES"; then
5729
# Protect against being on the right side of a sed subst in config.status.
5730
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5731
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5732
s,@SHELL@,$SHELL,;t t
5733
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5734
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5735
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5736
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5737
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5738
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5739
s,@exec_prefix@,$exec_prefix,;t t
5740
s,@prefix@,$prefix,;t t
5741
s,@program_transform_name@,$program_transform_name,;t t
5742
s,@bindir@,$bindir,;t t
5743
s,@sbindir@,$sbindir,;t t
5744
s,@libexecdir@,$libexecdir,;t t
5745
s,@datadir@,$datadir,;t t
5746
s,@sysconfdir@,$sysconfdir,;t t
5747
s,@sharedstatedir@,$sharedstatedir,;t t
5748
s,@localstatedir@,$localstatedir,;t t
5749
s,@libdir@,$libdir,;t t
5750
s,@includedir@,$includedir,;t t
5751
s,@oldincludedir@,$oldincludedir,;t t
5752
s,@infodir@,$infodir,;t t
5753
s,@mandir@,$mandir,;t t
5754
s,@build_alias@,$build_alias,;t t
5755
s,@host_alias@,$host_alias,;t t
5756
s,@target_alias@,$target_alias,;t t
5758
s,@ECHO_C@,$ECHO_C,;t t
5759
s,@ECHO_N@,$ECHO_N,;t t
5760
s,@ECHO_T@,$ECHO_T,;t t
5762
s,@build@,$build,;t t
5763
s,@build_cpu@,$build_cpu,;t t
5764
s,@build_vendor@,$build_vendor,;t t
5765
s,@build_os@,$build_os,;t t
5767
s,@host_cpu@,$host_cpu,;t t
5768
s,@host_vendor@,$host_vendor,;t t
5769
s,@host_os@,$host_os,;t t
5771
s,@CFLAGS@,$CFLAGS,;t t
5772
s,@LDFLAGS@,$LDFLAGS,;t t
5773
s,@CPPFLAGS@,$CPPFLAGS,;t t
5774
s,@ac_ct_CC@,$ac_ct_CC,;t t
5775
s,@EXEEXT@,$EXEEXT,;t t
5776
s,@OBJEXT@,$OBJEXT,;t t
5777
s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
5779
s,@EGREP@,$EGREP,;t t
5780
s,@SHLIB_LD@,$SHLIB_LD,;t t
5781
s,@SHLIB_LDFLAGS@,$SHLIB_LDFLAGS,;t t
5782
s,@SHLIB_LDLIBS@,$SHLIB_LDLIBS,;t t
5783
s,@SHLIB_CFLAGS@,$SHLIB_CFLAGS,;t t
5784
s,@SHLIB_SUFFIX@,$SHLIB_SUFFIX,;t t
5785
s,@SHLIB_EXTRACT_ALL@,$SHLIB_EXTRACT_ALL,;t t
5786
s,@EI_CFLAGS@,$EI_CFLAGS,;t t
5787
s,@ERTS_CFLAGS@,$ERTS_CFLAGS,;t t
5788
s,@ERTS_LIBS@,$ERTS_LIBS,;t t
5793
s,@CROSSLDFLAGS@,$CROSSLDFLAGS,;t t
5794
s,@SSLEAY_ROOT@,$SSLEAY_ROOT,;t t
5795
s,@JAVAC@,$JAVAC,;t t
5796
s,@make_command@,$make_command,;t t
5797
s,@test_c_compiler@,$test_c_compiler,;t t
5798
s,@LIBOBJS@,$LIBOBJS,;t t
5799
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5804
cat >>$CONFIG_STATUS <<\_ACEOF
5805
# Split the substitutions into bite-sized pieces for seds with
5806
# small command number limits, like on Digital OSF/1 and HP-UX.
5808
ac_sed_frag=1 # Number of current file.
5809
ac_beg=1 # First line for current file.
5810
ac_end=$ac_max_sed_lines # Line after last line for current file.
5813
while $ac_more_lines; do
5814
if test $ac_beg -gt 1; then
5815
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5817
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5819
if test ! -s $tmp/subs.frag; then
5822
# The purpose of the label and of the branching condition is to
5823
# speed up the sed processing (if there are no `@' at all, there
5824
# is no need to browse any of the substitutions).
5825
# These are the two extra sed commands mentioned above.
5827
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5828
if test -z "$ac_sed_cmds"; then
5829
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5831
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5833
ac_sed_frag=`expr $ac_sed_frag + 1`
5835
ac_end=`expr $ac_end + $ac_max_sed_lines`
5838
if test -z "$ac_sed_cmds"; then
5841
fi # test -n "$CONFIG_FILES"
5844
cat >>$CONFIG_STATUS <<\_ACEOF
5845
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5846
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5848
- | *:- | *:-:* ) # input from stdin
5850
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5851
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5852
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5853
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5854
* ) ac_file_in=$ac_file.in ;;
5857
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5858
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5859
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5860
X"$ac_file" : 'X\(//\)[^/]' \| \
5861
X"$ac_file" : 'X\(//\)$' \| \
5862
X"$ac_file" : 'X\(/\)' \| \
5863
. : '\(.\)' 2>/dev/null ||
5865
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5866
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5867
/^X\(\/\/\)$/{ s//\1/; q; }
5868
/^X\(\/\).*/{ s//\1/; q; }
5870
{ if $as_mkdir_p; then
5875
while test ! -d "$as_dir"; do
5876
as_dirs="$as_dir $as_dirs"
5877
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5878
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5879
X"$as_dir" : 'X\(//\)[^/]' \| \
5880
X"$as_dir" : 'X\(//\)$' \| \
5881
X"$as_dir" : 'X\(/\)' \| \
5882
. : '\(.\)' 2>/dev/null ||
5884
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5885
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5886
/^X\(\/\/\)$/{ s//\1/; q; }
5887
/^X\(\/\).*/{ s//\1/; q; }
5890
test ! -n "$as_dirs" || mkdir $as_dirs
5891
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5892
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5893
{ (exit 1); exit 1; }; }; }
5897
if test "$ac_dir" != .; then
5898
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5899
# A "../" for each directory in $ac_dir_suffix.
5900
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5902
ac_dir_suffix= ac_top_builddir=
5906
.) # No --srcdir option. We are building in place.
5908
if test -z "$ac_top_builddir"; then
5911
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5913
[\\/]* | ?:[\\/]* ) # Absolute path.
5914
ac_srcdir=$srcdir$ac_dir_suffix;
5915
ac_top_srcdir=$srcdir ;;
5917
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5918
ac_top_srcdir=$ac_top_builddir$srcdir ;;
5921
# Do not use `cd foo && pwd` to compute absolute paths, because
5922
# the directories may not exist.
5924
.) ac_abs_builddir="$ac_dir";;
5927
.) ac_abs_builddir=`pwd`;;
5928
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5929
*) ac_abs_builddir=`pwd`/"$ac_dir";;
5932
case $ac_abs_builddir in
5933
.) ac_abs_top_builddir=${ac_top_builddir}.;;
5935
case ${ac_top_builddir}. in
5936
.) ac_abs_top_builddir=$ac_abs_builddir;;
5937
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5938
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5941
case $ac_abs_builddir in
5942
.) ac_abs_srcdir=$ac_srcdir;;
5945
.) ac_abs_srcdir=$ac_abs_builddir;;
5946
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5947
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5950
case $ac_abs_builddir in
5951
.) ac_abs_top_srcdir=$ac_top_srcdir;;
5953
case $ac_top_srcdir in
5954
.) ac_abs_top_srcdir=$ac_abs_builddir;;
5955
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5956
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5962
if test x"$ac_file" != x-; then
5963
{ echo "$as_me:$LINENO: creating $ac_file" >&5
5964
echo "$as_me: creating $ac_file" >&6;}
5967
# Let's still pretend it is `configure' which instantiates (i.e., don't
5968
# use $as_me), people would be surprised to read:
5969
# /* config.h. Generated by config.status. */
5970
if test x"$ac_file" = x-; then
5973
configure_input="$ac_file. "
5975
configure_input=$configure_input"Generated from `echo $ac_file_in |
5976
sed 's,.*/,,'` by configure."
5978
# First look for the input files in the build tree, otherwise in the
5980
ac_file_inputs=`IFS=:
5981
for f in $ac_file_in; do
5983
-) echo $tmp/stdin ;;
5985
# Absolute (can't be DOS-style, as IFS=:)
5986
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5987
echo "$as_me: error: cannot find input file: $f" >&2;}
5988
{ (exit 1); exit 1; }; }
5991
if test -f "$f"; then
5994
elif test -f "$srcdir/$f"; then
5999
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6000
echo "$as_me: error: cannot find input file: $f" >&2;}
6001
{ (exit 1); exit 1; }; }
6004
done` || { (exit 1); exit 1; }
6006
cat >>$CONFIG_STATUS <<_ACEOF
6010
cat >>$CONFIG_STATUS <<\_ACEOF
6012
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6013
s,@configure_input@,$configure_input,;t t
6014
s,@srcdir@,$ac_srcdir,;t t
6015
s,@abs_srcdir@,$ac_abs_srcdir,;t t
6016
s,@top_srcdir@,$ac_top_srcdir,;t t
6017
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6018
s,@builddir@,$ac_builddir,;t t
6019
s,@abs_builddir@,$ac_abs_builddir,;t t
6020
s,@top_builddir@,$ac_top_builddir,;t t
6021
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6022
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6024
if test x"$ac_file" != x-; then
6025
mv $tmp/out $ac_file
6034
cat >>$CONFIG_STATUS <<\_ACEOF
6036
{ (exit 0); exit 0; }
6038
chmod +x $CONFIG_STATUS
6039
ac_clean_files=$ac_clean_files_save
6042
# configure is writing to config.log, and then calls config.status.
6043
# config.status does its own redirection, appending to config.log.
6044
# Unfortunately, on DOS this fails, as config.log is still kept open
6045
# by configure, so config.status won't be able to write to it; its
6046
# output is simply discarded. So we exec the FD to /dev/null,
6047
# effectively closing config.log, so it can be properly (re)opened and
6048
# appended to by config.status. When coming back to configure, we
6049
# need to make the FD available again.
6050
if test "$no_create" != yes; then
6052
ac_config_status_args=
6053
test "$silent" = yes &&
6054
ac_config_status_args="$ac_config_status_args --quiet"
6056
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6058
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
6059
# would make configure fail if this is the last instruction.
6060
$ac_cs_success || { (exit 1); exit 1; }