2
# From configure.in Revision: 1.18 .
3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated by GNU Autoconf 2.57.
6
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7
# Free Software Foundation, Inc.
8
# This configure script is free software; the Free Software Foundation
9
# gives unlimited permission to copy, distribute and modify it.
10
## --------------------- ##
11
## M4sh Initialization. ##
12
## --------------------- ##
14
# Be Bourne compatible
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25
# Support unset when possible.
26
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33
# Work around bugs in pre-3.0 UWIN ksh.
34
$as_unset ENV MAIL MAILPATH
41
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46
eval $as_var=C; export $as_var
52
# Required to use basename.
53
if expr a : '\(a\)' >/dev/null 2>&1; then
59
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66
# Name of the executable.
67
as_me=`$as_basename "$0" ||
68
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69
X"$0" : 'X\(//\)$' \| \
70
X"$0" : 'X\(/\)$' \| \
71
. : '\(.\)' 2>/dev/null ||
73
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74
/^X\/\(\/\/\)$/{ s//\1/; q; }
75
/^X\/\(\/\).*/{ s//\1/; q; }
79
# PATH needs CR, and LINENO needs CR and PATH.
80
# Avoid depending upon Character Ranges.
81
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84
as_cr_digits='0123456789'
85
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
# The user is always right.
88
if test "${PATH_SEPARATOR+set}" != set; then
89
echo "#! /bin/sh" >conf$$.sh
90
echo "exit 0" >>conf$$.sh
92
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104
test "x$as_lineno_1" != "x$as_lineno_2" &&
105
test "x$as_lineno_3" = "x$as_lineno_2" || {
106
# Find who we are. Look in the path if we contain no path at all
109
*[\\/]* ) as_myself=$0 ;;
110
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114
test -z "$as_dir" && as_dir=.
115
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120
# We did not find ourselves, most probably we were run as `sh COMMAND'
121
# in which case we are not to be found in the path.
122
if test "x$as_myself" = x; then
125
if test ! -f "$as_myself"; then
126
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127
{ (exit 1); exit 1; }; }
129
case $CONFIG_SHELL in
131
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135
test -z "$as_dir" && as_dir=.
136
for as_base in sh bash ksh sh5; do
139
if ("$as_dir/$as_base" -c '
142
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143
test "x$as_lineno_1" != "x$as_lineno_2" &&
144
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147
CONFIG_SHELL=$as_dir/$as_base
149
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158
# uniformly replaced by the line number. The first 'sed' inserts a
159
# line-number line before each line; the second 'sed' does the real
160
# work. The second script uses 'N' to pair each line-number line
161
# with the numbered line, and appends trailing '-' during
162
# substitution so that $LINENO is not a special case at line end.
163
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165
sed '=' <$as_myself |
170
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173
s,^['$as_cr_digits']*\n,,
175
chmod +x $as_me.lineno ||
176
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177
{ (exit 1); exit 1; }; }
179
# Don't try to exec as it changes $[0], causing all sort of problems
180
# (the dirname of $[0] is not the place where we might find the
181
# original and so on. Autoconf is especially sensible to this).
183
# Exit status is that of the last command.
188
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189
*c*,-n*) ECHO_N= ECHO_C='
191
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195
if expr a : '\(a\)' >/dev/null 2>&1; then
201
rm -f conf$$ conf$$.exe conf$$.file
203
if ln -s conf$$.file conf$$ 2>/dev/null; then
204
# We could just check for DJGPP; but this test a) works b) is more generic
205
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206
if test -f conf$$.exe; then
207
# Don't use ln at all; we don't have any links
212
elif ln conf$$.file conf$$ 2>/dev/null; then
217
rm -f conf$$ conf$$.exe conf$$.file
219
if mkdir -p . 2>/dev/null; then
225
as_executable_p="test -f"
227
# Sed expression to map a string onto a valid CPP name.
228
as_tr_cpp="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="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="screen.c"
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 VERSION ac_prefix_program CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA WRITEPATH XTERMPATH 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]
836
if test -n "$ac_init_help"; then
841
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
842
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
843
--disable-socket-dir disable system wide socket-dir and use ~/.screen instead
844
--enable-pam enable PAM support
845
--enable-locale use localized month/day names
846
--enable-telnet enable builtin telnet
847
--enable-colors256 enable support for 256 colors
848
--enable-rxvt_osc enable support for rxvt OSC codes
851
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
852
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
853
--with-socket-dir=path where to put the per-user sockets
854
--with-pty-mode=mode default mode for ptys
855
--with-pty-group=group default group for ptys
856
--with-sys-screenrc=path where to put the global screenrc file
858
Some influential environment variables:
859
CC C compiler command
860
CFLAGS C compiler flags
861
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
862
nonstandard directory <lib dir>
863
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
864
headers in a nonstandard directory <include dir>
867
Use these variables to override the choices made by `configure' or to help
868
it to find libraries and programs with nonstandard names/locations.
873
if test "$ac_init_help" = "recursive"; then
874
# If there are subdirs, report their specific --help.
876
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
877
test -d $ac_dir || continue
880
if test "$ac_dir" != .; then
881
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
882
# A "../" for each directory in $ac_dir_suffix.
883
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
885
ac_dir_suffix= ac_top_builddir=
889
.) # No --srcdir option. We are building in place.
891
if test -z "$ac_top_builddir"; then
894
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
896
[\\/]* | ?:[\\/]* ) # Absolute path.
897
ac_srcdir=$srcdir$ac_dir_suffix;
898
ac_top_srcdir=$srcdir ;;
900
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
901
ac_top_srcdir=$ac_top_builddir$srcdir ;;
903
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
905
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
906
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
907
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
908
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
911
# Check for guested configure; otherwise get Cygnus style configure.
912
if test -f $ac_srcdir/configure.gnu; then
914
$SHELL $ac_srcdir/configure.gnu --help=recursive
915
elif test -f $ac_srcdir/configure; then
917
$SHELL $ac_srcdir/configure --help=recursive
918
elif test -f $ac_srcdir/configure.ac ||
919
test -f $ac_srcdir/configure.in; then
923
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
929
test -n "$ac_init_help" && exit 0
930
if $ac_init_version; then
933
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
934
Free Software Foundation, Inc.
935
This configure script is free software; the Free Software Foundation
936
gives unlimited permission to copy, distribute and modify it.
942
This file contains any messages produced by compilers while
943
running configure, to aid debugging if configure makes a mistake.
945
It was created by $as_me, which was
946
generated by GNU Autoconf 2.57. Invocation command line was
957
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
958
uname -m = `(uname -m) 2>/dev/null || echo unknown`
959
uname -r = `(uname -r) 2>/dev/null || echo unknown`
960
uname -s = `(uname -s) 2>/dev/null || echo unknown`
961
uname -v = `(uname -v) 2>/dev/null || echo unknown`
963
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
964
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
966
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
967
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
968
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
969
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
970
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
971
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
972
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
976
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
980
test -z "$as_dir" && as_dir=.
996
# Keep a trace of the command line.
997
# Strip out --no-create and --no-recursion so they do not pile up.
998
# Strip out --silent because we don't want to record it for future runs.
999
# Also quote any args containing shell meta-characters.
1000
# Make two passes to allow for proper duplicate-argument suppression.
1005
ac_must_keep_next=false
1011
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1012
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013
| -silent | --silent | --silen | --sile | --sil)
1015
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1019
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1021
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1022
if test $ac_must_keep_next = true; then
1023
ac_must_keep_next=false # Got value, back to normal.
1026
*=* | --config-cache | -C | -disable-* | --disable-* \
1027
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1028
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1029
| -with-* | --with-* | -without-* | --without-* | --x)
1030
case "$ac_configure_args0 " in
1031
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1034
-* ) ac_must_keep_next=true ;;
1037
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1038
# Get rid of the leading space.
1044
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1045
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1047
# When interrupted or exit'd, cleanup temporary files, and complete
1048
# config.log. We remove comments because anyway the quotes in there
1049
# would cause problems or look ugly.
1050
# WARNING: Be sure not to use single quotes in there, as some shells,
1051
# such as our DU 5.0 friend, will then `close' the trap.
1052
trap 'exit_status=$?
1053
# Save into config.log some information that might help in debugging.
1058
## ---------------- ##
1059
## Cache variables. ##
1060
## ---------------- ##
1063
# The following way of writing the cache mishandles newlines in values,
1066
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1069
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1070
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1074
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1081
## ----------------- ##
1082
## Output variables. ##
1083
## ----------------- ##
1086
for ac_var in $ac_subst_vars
1088
eval ac_val=$`echo $ac_var`
1089
echo "$ac_var='"'"'$ac_val'"'"'"
1093
if test -n "$ac_subst_files"; then
1100
for ac_var in $ac_subst_files
1102
eval ac_val=$`echo $ac_var`
1103
echo "$ac_var='"'"'$ac_val'"'"'"
1108
if test -s confdefs.h; then
1115
sed "/^$/d" confdefs.h | sort
1118
test "$ac_signal" != 0 &&
1119
echo "$as_me: caught signal $ac_signal"
1120
echo "$as_me: exit $exit_status"
1122
rm -f core core.* *.core &&
1123
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1126
for ac_signal in 1 2 13 15; do
1127
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1131
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1132
rm -rf conftest* confdefs.h
1133
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1136
# Predefined preprocessor variables.
1138
cat >>confdefs.h <<_ACEOF
1139
#define PACKAGE_NAME "$PACKAGE_NAME"
1143
cat >>confdefs.h <<_ACEOF
1144
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1148
cat >>confdefs.h <<_ACEOF
1149
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1153
cat >>confdefs.h <<_ACEOF
1154
#define PACKAGE_STRING "$PACKAGE_STRING"
1158
cat >>confdefs.h <<_ACEOF
1159
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1163
# Let the site file select an alternate cache file if it wants to.
1164
# Prefer explicitly selected file to automatically selected ones.
1165
if test -z "$CONFIG_SITE"; then
1166
if test "x$prefix" != xNONE; then
1167
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1169
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1172
for ac_site_file in $CONFIG_SITE; do
1173
if test -r "$ac_site_file"; then
1174
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1175
echo "$as_me: loading site script $ac_site_file" >&6;}
1176
sed 's/^/| /' "$ac_site_file" >&5
1181
if test -r "$cache_file"; then
1182
# Some versions of bash will fail to source /dev/null (special
1183
# files actually), so we avoid doing that.
1184
if test -f "$cache_file"; then
1185
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1186
echo "$as_me: loading cache $cache_file" >&6;}
1188
[\\/]* | ?:[\\/]* ) . $cache_file;;
1189
*) . ./$cache_file;;
1193
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1194
echo "$as_me: creating cache $cache_file" >&6;}
1198
# Check that the precious variables saved in the cache have kept the same
1200
ac_cache_corrupted=false
1201
for ac_var in `(set) 2>&1 |
1202
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1203
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1204
eval ac_new_set=\$ac_env_${ac_var}_set
1205
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1206
eval ac_new_val="\$ac_env_${ac_var}_value"
1207
case $ac_old_set,$ac_new_set in
1209
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1210
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1211
ac_cache_corrupted=: ;;
1213
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1214
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1215
ac_cache_corrupted=: ;;
1218
if test "x$ac_old_val" != "x$ac_new_val"; then
1219
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1220
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1221
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1222
echo "$as_me: former value: $ac_old_val" >&2;}
1223
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1224
echo "$as_me: current value: $ac_new_val" >&2;}
1225
ac_cache_corrupted=:
1228
# Pass precious variables to config.status.
1229
if test "$ac_new_set" = set; then
1231
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1233
*) ac_arg=$ac_var=$ac_new_val ;;
1235
case " $ac_configure_args " in
1236
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1237
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1241
if $ac_cache_corrupted; then
1242
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1243
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1244
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1245
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1246
{ (exit 1); exit 1; }; }
1250
ac_cpp='$CPP $CPPFLAGS'
1251
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1273
ac_config_headers="$ac_config_headers config.h"
1277
rev=`sed < ${srcdir}/patchlevel.h -n -e '/#define REV/s/#define REV *//p'`
1278
vers=`sed < ${srcdir}/patchlevel.h -n -e '/#define VERS/s/#define VERS *//p'`
1279
pat=`sed < ${srcdir}/patchlevel.h -n -e '/#define PATCHLEVEL/s/#define PATCHLEVEL *//p'`
1280
VERSION="$rev.$vers.$pat"
1281
echo "this is screen version $VERSION" 1>&6
1284
if test "x$prefix" = xNONE; then
1285
echo $ECHO_N "checking for prefix by $ECHO_C" >&6
1286
# Extract the first word of "screen", so it can be a program name with args.
1287
set dummy screen; ac_word=$2
1288
echo "$as_me:$LINENO: checking for $ac_word" >&5
1289
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1290
if test "${ac_cv_path_ac_prefix_program+set}" = set; then
1291
echo $ECHO_N "(cached) $ECHO_C" >&6
1293
case $ac_prefix_program in
1295
ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
1298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1302
test -z "$as_dir" && as_dir=.
1303
for ac_exec_ext in '' $ac_executable_extensions; do
1304
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1305
ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
1306
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1315
ac_prefix_program=$ac_cv_path_ac_prefix_program
1317
if test -n "$ac_prefix_program"; then
1318
echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
1319
echo "${ECHO_T}$ac_prefix_program" >&6
1321
echo "$as_me:$LINENO: result: no" >&5
1322
echo "${ECHO_T}no" >&6
1325
if test -n $ac_prefix_program; then
1326
prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
1327
$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328
X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
1329
X"$ac_prefix_program" : 'X\(//\)$' \| \
1330
X"$ac_prefix_program" : 'X\(/\)' \| \
1331
. : '\(.\)' 2>/dev/null ||
1332
echo X"$ac_prefix_program" |
1333
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1334
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
1335
/^X\(\/\/\)$/{ s//\1/; q; }
1336
/^X\(\/\).*/{ s//\1/; q; }
1338
prefix=`(dirname "$prefix") 2>/dev/null ||
1339
$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340
X"$prefix" : 'X\(//\)[^/]' \| \
1341
X"$prefix" : 'X\(//\)$' \| \
1342
X"$prefix" : 'X\(/\)' \| \
1343
. : '\(.\)' 2>/dev/null ||
1345
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1346
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
1347
/^X\(\/\/\)$/{ s//\1/; q; }
1348
/^X\(\/\).*/{ s//\1/; q; }
1353
if test "x$prefix" = xNONE; then
1354
echo $ECHO_N "checking for prefix by $ECHO_C" >&6
1355
# Extract the first word of "gzip", so it can be a program name with args.
1356
set dummy gzip; ac_word=$2
1357
echo "$as_me:$LINENO: checking for $ac_word" >&5
1358
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1359
if test "${ac_cv_path_ac_prefix_program+set}" = set; then
1360
echo $ECHO_N "(cached) $ECHO_C" >&6
1362
case $ac_prefix_program in
1364
ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
1367
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371
test -z "$as_dir" && as_dir=.
1372
for ac_exec_ext in '' $ac_executable_extensions; do
1373
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1374
ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
1375
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1384
ac_prefix_program=$ac_cv_path_ac_prefix_program
1386
if test -n "$ac_prefix_program"; then
1387
echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
1388
echo "${ECHO_T}$ac_prefix_program" >&6
1390
echo "$as_me:$LINENO: result: no" >&5
1391
echo "${ECHO_T}no" >&6
1394
if test -n $ac_prefix_program; then
1395
prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
1396
$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397
X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
1398
X"$ac_prefix_program" : 'X\(//\)$' \| \
1399
X"$ac_prefix_program" : 'X\(/\)' \| \
1400
. : '\(.\)' 2>/dev/null ||
1401
echo X"$ac_prefix_program" |
1402
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1403
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
1404
/^X\(\/\/\)$/{ s//\1/; q; }
1405
/^X\(\/\).*/{ s//\1/; q; }
1407
prefix=`(dirname "$prefix") 2>/dev/null ||
1408
$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409
X"$prefix" : 'X\(//\)[^/]' \| \
1410
X"$prefix" : 'X\(//\)$' \| \
1411
X"$prefix" : 'X\(/\)' \| \
1412
. : '\(.\)' 2>/dev/null ||
1414
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
1415
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
1416
/^X\(\/\/\)$/{ s//\1/; q; }
1417
/^X\(\/\).*/{ s//\1/; q; }
1423
old_CFLAGS="$CFLAGS"
1425
ac_cpp='$CPP $CPPFLAGS'
1426
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1427
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1428
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1429
if test -n "$ac_tool_prefix"; then
1430
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1431
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1432
echo "$as_me:$LINENO: checking for $ac_word" >&5
1433
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1434
if test "${ac_cv_prog_CC+set}" = set; then
1435
echo $ECHO_N "(cached) $ECHO_C" >&6
1437
if test -n "$CC"; then
1438
ac_cv_prog_CC="$CC" # Let the user override the test.
1440
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1444
test -z "$as_dir" && as_dir=.
1445
for ac_exec_ext in '' $ac_executable_extensions; do
1446
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1447
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1448
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457
if test -n "$CC"; then
1458
echo "$as_me:$LINENO: result: $CC" >&5
1459
echo "${ECHO_T}$CC" >&6
1461
echo "$as_me:$LINENO: result: no" >&5
1462
echo "${ECHO_T}no" >&6
1466
if test -z "$ac_cv_prog_CC"; then
1468
# Extract the first word of "gcc", so it can be a program name with args.
1469
set dummy gcc; ac_word=$2
1470
echo "$as_me:$LINENO: checking for $ac_word" >&5
1471
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1472
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1473
echo $ECHO_N "(cached) $ECHO_C" >&6
1475
if test -n "$ac_ct_CC"; then
1476
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482
test -z "$as_dir" && as_dir=.
1483
for ac_exec_ext in '' $ac_executable_extensions; do
1484
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485
ac_cv_prog_ac_ct_CC="gcc"
1486
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1494
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1495
if test -n "$ac_ct_CC"; then
1496
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1497
echo "${ECHO_T}$ac_ct_CC" >&6
1499
echo "$as_me:$LINENO: result: no" >&5
1500
echo "${ECHO_T}no" >&6
1508
if test -z "$CC"; then
1509
if test -n "$ac_tool_prefix"; then
1510
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1511
set dummy ${ac_tool_prefix}cc; ac_word=$2
1512
echo "$as_me:$LINENO: checking for $ac_word" >&5
1513
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1514
if test "${ac_cv_prog_CC+set}" = set; then
1515
echo $ECHO_N "(cached) $ECHO_C" >&6
1517
if test -n "$CC"; then
1518
ac_cv_prog_CC="$CC" # Let the user override the test.
1520
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524
test -z "$as_dir" && as_dir=.
1525
for ac_exec_ext in '' $ac_executable_extensions; do
1526
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1527
ac_cv_prog_CC="${ac_tool_prefix}cc"
1528
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1537
if test -n "$CC"; then
1538
echo "$as_me:$LINENO: result: $CC" >&5
1539
echo "${ECHO_T}$CC" >&6
1541
echo "$as_me:$LINENO: result: no" >&5
1542
echo "${ECHO_T}no" >&6
1546
if test -z "$ac_cv_prog_CC"; then
1548
# Extract the first word of "cc", so it can be a program name with args.
1549
set dummy cc; ac_word=$2
1550
echo "$as_me:$LINENO: checking for $ac_word" >&5
1551
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1552
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1553
echo $ECHO_N "(cached) $ECHO_C" >&6
1555
if test -n "$ac_ct_CC"; then
1556
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1558
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1562
test -z "$as_dir" && as_dir=.
1563
for ac_exec_ext in '' $ac_executable_extensions; do
1564
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1565
ac_cv_prog_ac_ct_CC="cc"
1566
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1575
if test -n "$ac_ct_CC"; then
1576
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1577
echo "${ECHO_T}$ac_ct_CC" >&6
1579
echo "$as_me:$LINENO: result: no" >&5
1580
echo "${ECHO_T}no" >&6
1589
if test -z "$CC"; then
1590
# Extract the first word of "cc", so it can be a program name with args.
1591
set dummy cc; ac_word=$2
1592
echo "$as_me:$LINENO: checking for $ac_word" >&5
1593
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1594
if test "${ac_cv_prog_CC+set}" = set; then
1595
echo $ECHO_N "(cached) $ECHO_C" >&6
1597
if test -n "$CC"; then
1598
ac_cv_prog_CC="$CC" # Let the user override the test.
1601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1605
test -z "$as_dir" && as_dir=.
1606
for ac_exec_ext in '' $ac_executable_extensions; do
1607
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1609
ac_prog_rejected=yes
1613
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1619
if test $ac_prog_rejected = yes; then
1620
# We found a bogon in the path, so make sure we never use it.
1621
set dummy $ac_cv_prog_CC
1623
if test $# != 0; then
1624
# We chose a different compiler from the bogus one.
1625
# However, it has the same basename, so the bogon will be chosen
1626
# first if we set CC to just the basename; use the full file name.
1628
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1634
if test -n "$CC"; then
1635
echo "$as_me:$LINENO: result: $CC" >&5
1636
echo "${ECHO_T}$CC" >&6
1638
echo "$as_me:$LINENO: result: no" >&5
1639
echo "${ECHO_T}no" >&6
1643
if test -z "$CC"; then
1644
if test -n "$ac_tool_prefix"; then
1647
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1648
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1649
echo "$as_me:$LINENO: checking for $ac_word" >&5
1650
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651
if test "${ac_cv_prog_CC+set}" = set; then
1652
echo $ECHO_N "(cached) $ECHO_C" >&6
1654
if test -n "$CC"; then
1655
ac_cv_prog_CC="$CC" # Let the user override the test.
1657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661
test -z "$as_dir" && as_dir=.
1662
for ac_exec_ext in '' $ac_executable_extensions; do
1663
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1665
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1674
if test -n "$CC"; then
1675
echo "$as_me:$LINENO: result: $CC" >&5
1676
echo "${ECHO_T}$CC" >&6
1678
echo "$as_me:$LINENO: result: no" >&5
1679
echo "${ECHO_T}no" >&6
1682
test -n "$CC" && break
1685
if test -z "$CC"; then
1689
# Extract the first word of "$ac_prog", so it can be a program name with args.
1690
set dummy $ac_prog; ac_word=$2
1691
echo "$as_me:$LINENO: checking for $ac_word" >&5
1692
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1694
echo $ECHO_N "(cached) $ECHO_C" >&6
1696
if test -n "$ac_ct_CC"; then
1697
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1699
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1703
test -z "$as_dir" && as_dir=.
1704
for ac_exec_ext in '' $ac_executable_extensions; do
1705
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1706
ac_cv_prog_ac_ct_CC="$ac_prog"
1707
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1716
if test -n "$ac_ct_CC"; then
1717
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1718
echo "${ECHO_T}$ac_ct_CC" >&6
1720
echo "$as_me:$LINENO: result: no" >&5
1721
echo "${ECHO_T}no" >&6
1724
test -n "$ac_ct_CC" && break
1733
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1734
See \`config.log' for more details." >&5
1735
echo "$as_me: error: no acceptable C compiler found in \$PATH
1736
See \`config.log' for more details." >&2;}
1737
{ (exit 1); exit 1; }; }
1739
# Provide some information about the compiler.
1740
echo "$as_me:$LINENO:" \
1741
"checking for C compiler version" >&5
1742
ac_compiler=`set X $ac_compile; echo $2`
1743
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1744
(eval $ac_compiler --version </dev/null >&5) 2>&5
1746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1747
(exit $ac_status); }
1748
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1749
(eval $ac_compiler -v </dev/null >&5) 2>&5
1751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752
(exit $ac_status); }
1753
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1754
(eval $ac_compiler -V </dev/null >&5) 2>&5
1756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1757
(exit $ac_status); }
1759
cat >conftest.$ac_ext <<_ACEOF
1760
#line $LINENO "configure"
1763
cat confdefs.h >>conftest.$ac_ext
1764
cat >>conftest.$ac_ext <<_ACEOF
1765
/* end confdefs.h. */
1775
ac_clean_files_save=$ac_clean_files
1776
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1777
# Try to create an executable without -o first, disregard a.out.
1778
# It will help us diagnose broken compilers, and finding out an intuition
1780
echo "$as_me:$LINENO: checking for C compiler default output" >&5
1781
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1782
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1783
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1784
(eval $ac_link_default) 2>&5
1786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1787
(exit $ac_status); }; then
1788
# Find the output, starting from the most likely. This scheme is
1789
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1792
# Be careful to initialize this variable, since it used to be cached.
1793
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1795
# b.out is created by i960 compilers.
1796
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1798
test -f "$ac_file" || continue
1800
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1803
# This is the source file.
1806
# We found the default executable, but exeext='' is most
1810
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1811
# FIXME: I believe we export ac_cv_exeext for Libtool,
1812
# but it would be cool to find out if it's true. Does anybody
1813
# maintain Libtool? --akim.
1821
echo "$as_me: failed program was:" >&5
1822
sed 's/^/| /' conftest.$ac_ext >&5
1824
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1825
See \`config.log' for more details." >&5
1826
echo "$as_me: error: C compiler cannot create executables
1827
See \`config.log' for more details." >&2;}
1828
{ (exit 77); exit 77; }; }
1831
ac_exeext=$ac_cv_exeext
1832
echo "$as_me:$LINENO: result: $ac_file" >&5
1833
echo "${ECHO_T}$ac_file" >&6
1835
# Check the compiler produces executables we can run. If not, either
1836
# the compiler is broken, or we cross compile.
1837
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1838
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1839
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1840
# If not cross compiling, check that we can run a simple program.
1841
if test "$cross_compiling" != yes; then
1842
if { ac_try='./$ac_file'
1843
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847
(exit $ac_status); }; }; then
1850
if test "$cross_compiling" = maybe; then
1853
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1854
If you meant to cross compile, use \`--host'.
1855
See \`config.log' for more details." >&5
1856
echo "$as_me: error: cannot run C compiled programs.
1857
If you meant to cross compile, use \`--host'.
1858
See \`config.log' for more details." >&2;}
1859
{ (exit 1); exit 1; }; }
1863
echo "$as_me:$LINENO: result: yes" >&5
1864
echo "${ECHO_T}yes" >&6
1866
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1867
ac_clean_files=$ac_clean_files_save
1868
# Check the compiler produces executables we can run. If not, either
1869
# the compiler is broken, or we cross compile.
1870
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1871
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1872
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1873
echo "${ECHO_T}$cross_compiling" >&6
1875
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1876
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1877
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1878
(eval $ac_link) 2>&5
1880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881
(exit $ac_status); }; then
1882
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1883
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1884
# work properly (i.e., refer to `conftest.exe'), while it won't with
1886
for ac_file in conftest.exe conftest conftest.*; do
1887
test -f "$ac_file" || continue
1889
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1890
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1897
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1898
See \`config.log' for more details." >&5
1899
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1900
See \`config.log' for more details." >&2;}
1901
{ (exit 1); exit 1; }; }
1904
rm -f conftest$ac_cv_exeext
1905
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1906
echo "${ECHO_T}$ac_cv_exeext" >&6
1908
rm -f conftest.$ac_ext
1909
EXEEXT=$ac_cv_exeext
1911
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1912
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1913
if test "${ac_cv_objext+set}" = set; then
1914
echo $ECHO_N "(cached) $ECHO_C" >&6
1916
cat >conftest.$ac_ext <<_ACEOF
1917
#line $LINENO "configure"
1920
cat confdefs.h >>conftest.$ac_ext
1921
cat >>conftest.$ac_ext <<_ACEOF
1922
/* end confdefs.h. */
1932
rm -f conftest.o conftest.obj
1933
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1934
(eval $ac_compile) 2>&5
1936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937
(exit $ac_status); }; then
1938
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1940
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1941
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1946
echo "$as_me: failed program was:" >&5
1947
sed 's/^/| /' conftest.$ac_ext >&5
1949
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1950
See \`config.log' for more details." >&5
1951
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1952
See \`config.log' for more details." >&2;}
1953
{ (exit 1); exit 1; }; }
1956
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1958
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1959
echo "${ECHO_T}$ac_cv_objext" >&6
1960
OBJEXT=$ac_cv_objext
1962
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1963
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1964
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1965
echo $ECHO_N "(cached) $ECHO_C" >&6
1967
cat >conftest.$ac_ext <<_ACEOF
1968
#line $LINENO "configure"
1971
cat confdefs.h >>conftest.$ac_ext
1972
cat >>conftest.$ac_ext <<_ACEOF
1973
/* end confdefs.h. */
1986
rm -f conftest.$ac_objext
1987
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1988
(eval $ac_compile) 2>&5
1990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991
(exit $ac_status); } &&
1992
{ ac_try='test -s conftest.$ac_objext'
1993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997
(exit $ac_status); }; }; then
2000
echo "$as_me: failed program was:" >&5
2001
sed 's/^/| /' conftest.$ac_ext >&5
2005
rm -f conftest.$ac_objext conftest.$ac_ext
2006
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2009
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2010
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2011
GCC=`test $ac_compiler_gnu = yes && echo yes`
2012
ac_test_CFLAGS=${CFLAGS+set}
2013
ac_save_CFLAGS=$CFLAGS
2015
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2016
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2017
if test "${ac_cv_prog_cc_g+set}" = set; then
2018
echo $ECHO_N "(cached) $ECHO_C" >&6
2020
cat >conftest.$ac_ext <<_ACEOF
2021
#line $LINENO "configure"
2024
cat confdefs.h >>conftest.$ac_ext
2025
cat >>conftest.$ac_ext <<_ACEOF
2026
/* end confdefs.h. */
2036
rm -f conftest.$ac_objext
2037
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038
(eval $ac_compile) 2>&5
2040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041
(exit $ac_status); } &&
2042
{ ac_try='test -s conftest.$ac_objext'
2043
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047
(exit $ac_status); }; }; then
2050
echo "$as_me: failed program was:" >&5
2051
sed 's/^/| /' conftest.$ac_ext >&5
2055
rm -f conftest.$ac_objext conftest.$ac_ext
2057
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2058
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2059
if test "$ac_test_CFLAGS" = set; then
2060
CFLAGS=$ac_save_CFLAGS
2061
elif test $ac_cv_prog_cc_g = yes; then
2062
if test "$GCC" = yes; then
2068
if test "$GCC" = yes; then
2074
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2075
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2076
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2077
echo $ECHO_N "(cached) $ECHO_C" >&6
2079
ac_cv_prog_cc_stdc=no
2081
cat >conftest.$ac_ext <<_ACEOF
2082
#line $LINENO "configure"
2085
cat confdefs.h >>conftest.$ac_ext
2086
cat >>conftest.$ac_ext <<_ACEOF
2087
/* end confdefs.h. */
2090
#include <sys/types.h>
2091
#include <sys/stat.h>
2092
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2093
struct buf { int x; };
2094
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2095
static char *e (p, i)
2101
static char *f (char * (*g) (char **, int), char **p, ...)
2106
s = g (p, va_arg (v,int));
2110
int test (int i, double x);
2111
struct s1 {int (*f) (int a);};
2112
struct s2 {int (*f) (double a);};
2113
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2119
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2124
# Don't try gcc -ansi; that turns off useful extensions and
2125
# breaks some systems' header files.
2126
# AIX -qlanglvl=ansi
2127
# Ultrix and OSF/1 -std1
2128
# HP-UX 10.20 and later -Ae
2129
# HP-UX older versions -Aa -D_HPUX_SOURCE
2130
# SVR4 -Xc -D__EXTENSIONS__
2131
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2133
CC="$ac_save_CC $ac_arg"
2134
rm -f conftest.$ac_objext
2135
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2136
(eval $ac_compile) 2>&5
2138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139
(exit $ac_status); } &&
2140
{ ac_try='test -s conftest.$ac_objext'
2141
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145
(exit $ac_status); }; }; then
2146
ac_cv_prog_cc_stdc=$ac_arg
2149
echo "$as_me: failed program was:" >&5
2150
sed 's/^/| /' conftest.$ac_ext >&5
2153
rm -f conftest.$ac_objext
2155
rm -f conftest.$ac_ext conftest.$ac_objext
2160
case "x$ac_cv_prog_cc_stdc" in
2162
echo "$as_me:$LINENO: result: none needed" >&5
2163
echo "${ECHO_T}none needed" >&6 ;;
2165
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2166
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2167
CC="$CC $ac_cv_prog_cc_stdc" ;;
2170
# Some people use a C++ compiler to compile C. Since we use `exit',
2171
# in C++ we need to declare it. In case someone uses the same compiler
2172
# for both compiling C and C++ we need to have the C++ compiler decide
2173
# the declaration of exit, since it's the most demanding environment.
2174
cat >conftest.$ac_ext <<_ACEOF
2179
rm -f conftest.$ac_objext
2180
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2181
(eval $ac_compile) 2>&5
2183
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184
(exit $ac_status); } &&
2185
{ ac_try='test -s conftest.$ac_objext'
2186
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2189
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2190
(exit $ac_status); }; }; then
2191
for ac_declaration in \
2193
'#include <stdlib.h>' \
2194
'extern "C" void std::exit (int) throw (); using std::exit;' \
2195
'extern "C" void std::exit (int); using std::exit;' \
2196
'extern "C" void exit (int) throw ();' \
2197
'extern "C" void exit (int);' \
2200
cat >conftest.$ac_ext <<_ACEOF
2201
#line $LINENO "configure"
2204
cat confdefs.h >>conftest.$ac_ext
2205
cat >>conftest.$ac_ext <<_ACEOF
2206
/* end confdefs.h. */
2217
rm -f conftest.$ac_objext
2218
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2219
(eval $ac_compile) 2>&5
2221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222
(exit $ac_status); } &&
2223
{ ac_try='test -s conftest.$ac_objext'
2224
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2227
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228
(exit $ac_status); }; }; then
2231
echo "$as_me: failed program was:" >&5
2232
sed 's/^/| /' conftest.$ac_ext >&5
2236
rm -f conftest.$ac_objext conftest.$ac_ext
2237
cat >conftest.$ac_ext <<_ACEOF
2238
#line $LINENO "configure"
2241
cat confdefs.h >>conftest.$ac_ext
2242
cat >>conftest.$ac_ext <<_ACEOF
2243
/* end confdefs.h. */
2253
rm -f conftest.$ac_objext
2254
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255
(eval $ac_compile) 2>&5
2257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2258
(exit $ac_status); } &&
2259
{ ac_try='test -s conftest.$ac_objext'
2260
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2264
(exit $ac_status); }; }; then
2267
echo "$as_me: failed program was:" >&5
2268
sed 's/^/| /' conftest.$ac_ext >&5
2271
rm -f conftest.$ac_objext conftest.$ac_ext
2274
if test -n "$ac_declaration"; then
2275
echo '#ifdef __cplusplus' >>confdefs.h
2276
echo $ac_declaration >>confdefs.h
2277
echo '#endif' >>confdefs.h
2281
echo "$as_me: failed program was:" >&5
2282
sed 's/^/| /' conftest.$ac_ext >&5
2285
rm -f conftest.$ac_objext conftest.$ac_ext
2287
ac_cpp='$CPP $CPPFLAGS'
2288
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2290
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2293
ac_cpp='$CPP $CPPFLAGS'
2294
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2295
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2296
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2297
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2298
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2299
# On Suns, sometimes $CPP names a directory.
2300
if test -n "$CPP" && test -d "$CPP"; then
2303
if test -z "$CPP"; then
2304
if test "${ac_cv_prog_CPP+set}" = set; then
2305
echo $ECHO_N "(cached) $ECHO_C" >&6
2307
# Double quotes because CPP needs to be expanded
2308
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2311
for ac_c_preproc_warn_flag in '' yes
2313
# Use a header file that comes with gcc, so configuring glibc
2314
# with a fresh cross-compiler works.
2315
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2316
# <limits.h> exists even on freestanding compilers.
2317
# On the NeXT, cc -E runs the code through the compiler's parser,
2318
# not just through cpp. "Syntax error" is here to catch this case.
2319
cat >conftest.$ac_ext <<_ACEOF
2320
#line $LINENO "configure"
2323
cat confdefs.h >>conftest.$ac_ext
2324
cat >>conftest.$ac_ext <<_ACEOF
2325
/* end confdefs.h. */
2327
# include <limits.h>
2329
# include <assert.h>
2333
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2334
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2336
grep -v '^ *+' conftest.er1 >conftest.err
2338
cat conftest.err >&5
2339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340
(exit $ac_status); } >/dev/null; then
2341
if test -s conftest.err; then
2342
ac_cpp_err=$ac_c_preproc_warn_flag
2349
if test -z "$ac_cpp_err"; then
2352
echo "$as_me: failed program was:" >&5
2353
sed 's/^/| /' conftest.$ac_ext >&5
2355
# Broken: fails on valid input.
2358
rm -f conftest.err conftest.$ac_ext
2360
# OK, works on sane cases. Now check whether non-existent headers
2361
# can be detected and how.
2362
cat >conftest.$ac_ext <<_ACEOF
2363
#line $LINENO "configure"
2366
cat confdefs.h >>conftest.$ac_ext
2367
cat >>conftest.$ac_ext <<_ACEOF
2368
/* end confdefs.h. */
2369
#include <ac_nonexistent.h>
2371
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2372
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2374
grep -v '^ *+' conftest.er1 >conftest.err
2376
cat conftest.err >&5
2377
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378
(exit $ac_status); } >/dev/null; then
2379
if test -s conftest.err; then
2380
ac_cpp_err=$ac_c_preproc_warn_flag
2387
if test -z "$ac_cpp_err"; then
2388
# Broken: success on invalid input.
2391
echo "$as_me: failed program was:" >&5
2392
sed 's/^/| /' conftest.$ac_ext >&5
2394
# Passes both tests.
2398
rm -f conftest.err conftest.$ac_ext
2401
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2402
rm -f conftest.err conftest.$ac_ext
2403
if $ac_preproc_ok; then
2415
echo "$as_me:$LINENO: result: $CPP" >&5
2416
echo "${ECHO_T}$CPP" >&6
2418
for ac_c_preproc_warn_flag in '' yes
2420
# Use a header file that comes with gcc, so configuring glibc
2421
# with a fresh cross-compiler works.
2422
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2423
# <limits.h> exists even on freestanding compilers.
2424
# On the NeXT, cc -E runs the code through the compiler's parser,
2425
# not just through cpp. "Syntax error" is here to catch this case.
2426
cat >conftest.$ac_ext <<_ACEOF
2427
#line $LINENO "configure"
2430
cat confdefs.h >>conftest.$ac_ext
2431
cat >>conftest.$ac_ext <<_ACEOF
2432
/* end confdefs.h. */
2434
# include <limits.h>
2436
# include <assert.h>
2440
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2441
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2443
grep -v '^ *+' conftest.er1 >conftest.err
2445
cat conftest.err >&5
2446
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447
(exit $ac_status); } >/dev/null; then
2448
if test -s conftest.err; then
2449
ac_cpp_err=$ac_c_preproc_warn_flag
2456
if test -z "$ac_cpp_err"; then
2459
echo "$as_me: failed program was:" >&5
2460
sed 's/^/| /' conftest.$ac_ext >&5
2462
# Broken: fails on valid input.
2465
rm -f conftest.err conftest.$ac_ext
2467
# OK, works on sane cases. Now check whether non-existent headers
2468
# can be detected and how.
2469
cat >conftest.$ac_ext <<_ACEOF
2470
#line $LINENO "configure"
2473
cat confdefs.h >>conftest.$ac_ext
2474
cat >>conftest.$ac_ext <<_ACEOF
2475
/* end confdefs.h. */
2476
#include <ac_nonexistent.h>
2478
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2479
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2481
grep -v '^ *+' conftest.er1 >conftest.err
2483
cat conftest.err >&5
2484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485
(exit $ac_status); } >/dev/null; then
2486
if test -s conftest.err; then
2487
ac_cpp_err=$ac_c_preproc_warn_flag
2494
if test -z "$ac_cpp_err"; then
2495
# Broken: success on invalid input.
2498
echo "$as_me: failed program was:" >&5
2499
sed 's/^/| /' conftest.$ac_ext >&5
2501
# Passes both tests.
2505
rm -f conftest.err conftest.$ac_ext
2508
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2509
rm -f conftest.err conftest.$ac_ext
2510
if $ac_preproc_ok; then
2513
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2514
See \`config.log' for more details." >&5
2515
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2516
See \`config.log' for more details." >&2;}
2517
{ (exit 1); exit 1; }; }
2521
ac_cpp='$CPP $CPPFLAGS'
2522
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2523
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2524
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2528
echo "$as_me:$LINENO: checking for egrep" >&5
2529
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2530
if test "${ac_cv_prog_egrep+set}" = set; then
2531
echo $ECHO_N "(cached) $ECHO_C" >&6
2533
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2534
then ac_cv_prog_egrep='grep -E'
2535
else ac_cv_prog_egrep='egrep'
2538
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2539
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2540
EGREP=$ac_cv_prog_egrep
2543
if test $ac_cv_c_compiler_gnu = yes; then
2544
echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2545
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2546
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2547
echo $ECHO_N "(cached) $ECHO_C" >&6
2549
ac_pattern="Autoconf.*'x'"
2550
cat >conftest.$ac_ext <<_ACEOF
2551
#line $LINENO "configure"
2554
cat confdefs.h >>conftest.$ac_ext
2555
cat >>conftest.$ac_ext <<_ACEOF
2556
/* end confdefs.h. */
2560
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2561
$EGREP "$ac_pattern" >/dev/null 2>&1; then
2562
ac_cv_prog_gcc_traditional=yes
2564
ac_cv_prog_gcc_traditional=no
2569
if test $ac_cv_prog_gcc_traditional = no; then
2570
cat >conftest.$ac_ext <<_ACEOF
2571
#line $LINENO "configure"
2574
cat confdefs.h >>conftest.$ac_ext
2575
cat >>conftest.$ac_ext <<_ACEOF
2576
/* end confdefs.h. */
2580
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2581
$EGREP "$ac_pattern" >/dev/null 2>&1; then
2582
ac_cv_prog_gcc_traditional=yes
2588
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2589
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2590
if test $ac_cv_prog_gcc_traditional = yes; then
2591
CC="$CC -traditional"
2595
echo "$as_me:$LINENO: checking for library containing strerror" >&5
2596
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
2597
if test "${ac_cv_search_strerror+set}" = set; then
2598
echo $ECHO_N "(cached) $ECHO_C" >&6
2600
ac_func_search_save_LIBS=$LIBS
2601
ac_cv_search_strerror=no
2602
cat >conftest.$ac_ext <<_ACEOF
2603
#line $LINENO "configure"
2606
cat confdefs.h >>conftest.$ac_ext
2607
cat >>conftest.$ac_ext <<_ACEOF
2608
/* end confdefs.h. */
2610
/* Override any gcc2 internal prototype to avoid an error. */
2614
/* We use char because int might match the return type of a gcc2
2615
builtin and then its argument prototype would still apply. */
2625
rm -f conftest.$ac_objext conftest$ac_exeext
2626
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2627
(eval $ac_link) 2>&5
2629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630
(exit $ac_status); } &&
2631
{ ac_try='test -s conftest$ac_exeext'
2632
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636
(exit $ac_status); }; }; then
2637
ac_cv_search_strerror="none required"
2639
echo "$as_me: failed program was:" >&5
2640
sed 's/^/| /' conftest.$ac_ext >&5
2643
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2644
if test "$ac_cv_search_strerror" = no; then
2645
for ac_lib in cposix; do
2646
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2647
cat >conftest.$ac_ext <<_ACEOF
2648
#line $LINENO "configure"
2651
cat confdefs.h >>conftest.$ac_ext
2652
cat >>conftest.$ac_ext <<_ACEOF
2653
/* end confdefs.h. */
2655
/* Override any gcc2 internal prototype to avoid an error. */
2659
/* We use char because int might match the return type of a gcc2
2660
builtin and then its argument prototype would still apply. */
2670
rm -f conftest.$ac_objext conftest$ac_exeext
2671
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672
(eval $ac_link) 2>&5
2674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675
(exit $ac_status); } &&
2676
{ ac_try='test -s conftest$ac_exeext'
2677
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681
(exit $ac_status); }; }; then
2682
ac_cv_search_strerror="-l$ac_lib"
2685
echo "$as_me: failed program was:" >&5
2686
sed 's/^/| /' conftest.$ac_ext >&5
2689
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2692
LIBS=$ac_func_search_save_LIBS
2694
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2695
echo "${ECHO_T}$ac_cv_search_strerror" >&6
2696
if test "$ac_cv_search_strerror" != no; then
2697
test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
2702
if test "$cross_compiling" = yes; then
2703
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2704
See \`config.log' for more details." >&5
2705
echo "$as_me: error: cannot run test program while cross compiling
2706
See \`config.log' for more details." >&2;}
2707
{ (exit 1); exit 1; }; }
2709
cat >conftest.$ac_ext <<_ACEOF
2710
#line $LINENO "configure"
2713
cat confdefs.h >>conftest.$ac_ext
2714
cat >>conftest.$ac_ext <<_ACEOF
2715
/* end confdefs.h. */
2718
rm -f conftest$ac_exeext
2719
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2720
(eval $ac_link) 2>&5
2722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2724
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728
(exit $ac_status); }; }; then
2731
echo "$as_me: program exited with status $ac_status" >&5
2732
echo "$as_me: failed program was:" >&5
2733
sed 's/^/| /' conftest.$ac_ext >&5
2737
if test $CC != cc ; then
2738
echo "Your $CC failed - restarting with CC=cc" 1>&6
2744
exec $0 $configure_args
2748
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2751
if test "$cross_compiling" = yes; then
2752
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2753
See \`config.log' for more details." >&5
2754
echo "$as_me: error: cannot run test program while cross compiling
2755
See \`config.log' for more details." >&2;}
2756
{ (exit 1); exit 1; }; }
2758
cat >conftest.$ac_ext <<_ACEOF
2759
#line $LINENO "configure"
2762
cat confdefs.h >>conftest.$ac_ext
2763
cat >>conftest.$ac_ext <<_ACEOF
2764
/* end confdefs.h. */
2767
rm -f conftest$ac_exeext
2768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2769
(eval $ac_link) 2>&5
2771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2773
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777
(exit $ac_status); }; }; then
2780
echo "$as_me: program exited with status $ac_status" >&5
2781
echo "$as_me: failed program was:" >&5
2782
sed 's/^/| /' conftest.$ac_ext >&5
2787
echo "CC=$CC; CFLAGS=$CFLAGS; LIBS=$LIBS;" 1>&6
2789
echo "$ac_compile" 1>&6
2791
{ { echo "$as_me:$LINENO: error: Can't run the compiler - sorry" >&5
2792
echo "$as_me: error: Can't run the compiler - sorry" >&2;}
2793
{ (exit 1); exit 1; }; }
2795
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2798
if test "$cross_compiling" = yes; then
2799
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
2800
See \`config.log' for more details." >&5
2801
echo "$as_me: error: cannot run test program while cross compiling
2802
See \`config.log' for more details." >&2;}
2803
{ (exit 1); exit 1; }; }
2805
cat >conftest.$ac_ext <<_ACEOF
2806
#line $LINENO "configure"
2809
cat confdefs.h >>conftest.$ac_ext
2810
cat >>conftest.$ac_ext <<_ACEOF
2811
/* end confdefs.h. */
2815
int __something_strange_();
2816
__something_strange_(0);
2820
rm -f conftest$ac_exeext
2821
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2822
(eval $ac_link) 2>&5
2824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2826
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830
(exit $ac_status); }; }; then
2831
{ { echo "$as_me:$LINENO: error: Your compiler does not set the exit status - sorry" >&5
2832
echo "$as_me: error: Your compiler does not set the exit status - sorry" >&2;}
2833
{ (exit 1); exit 1; }; }
2835
echo "$as_me: program exited with status $ac_status" >&5
2836
echo "$as_me: failed program was:" >&5
2837
sed 's/^/| /' conftest.$ac_ext >&5
2840
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2843
for ac_prog in gawk mawk nawk awk
2845
# Extract the first word of "$ac_prog", so it can be a program name with args.
2846
set dummy $ac_prog; ac_word=$2
2847
echo "$as_me:$LINENO: checking for $ac_word" >&5
2848
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2849
if test "${ac_cv_prog_AWK+set}" = set; then
2850
echo $ECHO_N "(cached) $ECHO_C" >&6
2852
if test -n "$AWK"; then
2853
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859
test -z "$as_dir" && as_dir=.
2860
for ac_exec_ext in '' $ac_executable_extensions; do
2861
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862
ac_cv_prog_AWK="$ac_prog"
2863
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2872
if test -n "$AWK"; then
2873
echo "$as_me:$LINENO: result: $AWK" >&5
2874
echo "${ECHO_T}$AWK" >&6
2876
echo "$as_me:$LINENO: result: no" >&5
2877
echo "${ECHO_T}no" >&6
2880
test -n "$AWK" && break
2885
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2886
if test -f $ac_dir/install-sh; then
2888
ac_install_sh="$ac_aux_dir/install-sh -c"
2890
elif test -f $ac_dir/install.sh; then
2892
ac_install_sh="$ac_aux_dir/install.sh -c"
2894
elif test -f $ac_dir/shtool; then
2896
ac_install_sh="$ac_aux_dir/shtool install -c"
2900
if test -z "$ac_aux_dir"; then
2901
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2902
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2903
{ (exit 1); exit 1; }; }
2905
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2906
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2907
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2909
# Find a good install program. We prefer a C program (faster),
2910
# so one script is as good as another. But avoid the broken or
2911
# incompatible versions:
2912
# SysV /etc/install, /usr/sbin/install
2913
# SunOS /usr/etc/install
2914
# IRIX /sbin/install
2916
# AmigaOS /C/install, which installs bootblocks on floppy discs
2917
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2918
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2919
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2920
# ./install, which can be erroneously created by make from ./install.sh.
2921
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2922
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2923
if test -z "$INSTALL"; then
2924
if test "${ac_cv_path_install+set}" = set; then
2925
echo $ECHO_N "(cached) $ECHO_C" >&6
2927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931
test -z "$as_dir" && as_dir=.
2932
# Account for people who put trailing slashes in PATH elements.
2934
./ | .// | /cC/* | \
2935
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2938
# OSF1 and SCO ODT 3.0 have their own names for install.
2939
# Don't use installbsd from OSF since it installs stuff as root
2941
for ac_prog in ginstall scoinst install; do
2942
for ac_exec_ext in '' $ac_executable_extensions; do
2943
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2944
if test $ac_prog = install &&
2945
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2946
# AIX install. It has an incompatible calling convention.
2948
elif test $ac_prog = install &&
2949
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2950
# program-specific install script used by HP pwplus--don't use.
2953
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2965
if test "${ac_cv_path_install+set}" = set; then
2966
INSTALL=$ac_cv_path_install
2968
# As a last resort, use the slow shell script. We don't cache a
2969
# path for INSTALL within a source directory, because that will
2970
# break other packages using the cache if that directory is
2971
# removed, or if the path is relative.
2972
INSTALL=$ac_install_sh
2975
echo "$as_me:$LINENO: result: $INSTALL" >&5
2976
echo "${ECHO_T}$INSTALL" >&6
2978
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2979
# It thinks the first close brace ends the variable substitution.
2980
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2982
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2984
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2987
if test -f etc/toolcheck; then
2988
{ echo "$as_me:$LINENO: checking for buggy tools..." >&5
2989
echo "$as_me: checking for buggy tools..." >&6;}
2990
sh etc/toolcheck 1>&6
2995
echo "$as_me:$LINENO: checking if a system-wide socket dir should be used" >&5
2996
echo $ECHO_N "checking if a system-wide socket dir should be used... $ECHO_C" >&6
2997
# Check whether --enable-socket-dir or --disable-socket-dir was given.
2998
if test "${enable_socket_dir+set}" = set; then
2999
enableval="$enable_socket_dir"
3001
echo "$as_me:$LINENO: result: no. ~/.screen will be used instead." >&5
3002
echo "${ECHO_T}no. ~/.screen will be used instead." >&6
3006
echo "$as_me:$LINENO: result: yes" >&5
3007
echo "${ECHO_T}yes" >&6
3008
echo "$as_me:$LINENO: checking for the socket dir" >&5
3009
echo $ECHO_N "checking for the socket dir... $ECHO_C" >&6
3010
SOCKDIR="(eff_uid ? \"/tmp/uscreens\" : \"/tmp/screens\")"
3012
# Check whether --with-socket-dir or --without-socket-dir was given.
3013
if test "${with_socket_dir+set}" = set; then
3014
withval="$with_socket_dir"
3015
SOCKDIR="\"${withval}\""
3017
echo "$as_me:$LINENO: result: ${SOCKDIR}" >&5
3018
echo "${ECHO_T}${SOCKDIR}" >&6
3019
cat >>confdefs.h <<_ACEOF
3020
#define SOCKDIR $SOCKDIR
3028
if test -n "$ISC"; then
3029
cat >>confdefs.h <<\_ACEOF
3036
if test -f /sysV68 ; then
3037
cat >>confdefs.h <<\_ACEOF
3043
{ echo "$as_me:$LINENO: checking for MIPS..." >&5
3044
echo "$as_me: checking for MIPS..." >&6;}
3045
if test -f /lib/libmld.a || test -f /usr/lib/libmld.a || test -f /usr/lib/cmplrs/cc/libmld.a; then
3047
test -f /bin/mx || LIBS="$LIBS -lmld" # for nlist. But not on alpha.
3048
{ echo "$as_me:$LINENO: checking mld library..." >&5
3049
echo "$as_me: checking mld library..." >&6;}
3050
cat >conftest.$ac_ext <<_ACEOF
3051
#line $LINENO "configure"
3054
cat confdefs.h >>conftest.$ac_ext
3055
cat >>conftest.$ac_ext <<_ACEOF
3056
/* end confdefs.h. */
3066
rm -f conftest.$ac_objext conftest$ac_exeext
3067
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3068
(eval $ac_link) 2>&5
3070
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071
(exit $ac_status); } &&
3072
{ ac_try='test -s conftest$ac_exeext'
3073
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3076
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077
(exit $ac_status); }; }; then
3080
echo "$as_me: failed program was:" >&5
3081
sed 's/^/| /' conftest.$ac_ext >&5
3085
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3086
if test -r /dev/ptc; then
3087
cat >>confdefs.h <<\_ACEOF
3091
{ echo "$as_me:$LINENO: checking wait3..." >&5
3092
echo "$as_me: checking wait3..." >&6;}
3093
cat >conftest.$ac_ext <<_ACEOF
3094
#line $LINENO "configure"
3097
cat confdefs.h >>conftest.$ac_ext
3098
cat >>conftest.$ac_ext <<_ACEOF
3099
/* end confdefs.h. */
3109
rm -f conftest.$ac_objext conftest$ac_exeext
3110
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3111
(eval $ac_link) 2>&5
3113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114
(exit $ac_status); } &&
3115
{ ac_try='test -s conftest$ac_exeext'
3116
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120
(exit $ac_status); }; }; then
3123
echo "$as_me: failed program was:" >&5
3124
sed 's/^/| /' conftest.$ac_ext >&5
3126
{ echo "$as_me:$LINENO: checking wait2..." >&5
3127
echo "$as_me: checking wait2..." >&6;}
3128
cat >conftest.$ac_ext <<_ACEOF
3129
#line $LINENO "configure"
3132
cat confdefs.h >>conftest.$ac_ext
3133
cat >>conftest.$ac_ext <<_ACEOF
3134
/* end confdefs.h. */
3144
rm -f conftest.$ac_objext conftest$ac_exeext
3145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3146
(eval $ac_link) 2>&5
3148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149
(exit $ac_status); } &&
3150
{ ac_try='test -s conftest$ac_exeext'
3151
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3154
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155
(exit $ac_status); }; }; then
3156
cat >>confdefs.h <<\_ACEOF
3159
LIBS="$LIBS -lbsd" ; CC="$CC -I/usr/include/bsd"
3162
echo "$as_me: failed program was:" >&5
3163
sed 's/^/| /' conftest.$ac_ext >&5
3166
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3168
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3173
{ echo "$as_me:$LINENO: checking for Ultrix..." >&5
3174
echo "$as_me: checking for Ultrix..." >&6;}
3175
cat >conftest.$ac_ext <<_ACEOF
3176
#line $LINENO "configure"
3179
cat confdefs.h >>conftest.$ac_ext
3180
cat >>conftest.$ac_ext <<_ACEOF
3181
/* end confdefs.h. */
3182
#if defined(ultrix) || defined(__ultrix)
3187
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3188
$EGREP "yes" >/dev/null 2>&1; then
3194
if test -f /usr/lib/libpyr.a ; then
3197
{ echo "$as_me:$LINENO: checking Pyramid OSX..." >&5
3198
echo "$as_me: checking Pyramid OSX..." >&6;}
3199
cat >conftest.$ac_ext <<_ACEOF
3200
#line $LINENO "configure"
3203
cat confdefs.h >>conftest.$ac_ext
3204
cat >>conftest.$ac_ext <<_ACEOF
3205
/* end confdefs.h. */
3210
open_controlling_pty("")
3215
rm -f conftest.$ac_objext conftest$ac_exeext
3216
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3217
(eval $ac_link) 2>&5
3219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220
(exit $ac_status); } &&
3221
{ ac_try='test -s conftest$ac_exeext'
3222
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226
(exit $ac_status); }; }; then
3227
cat >>confdefs.h <<\_ACEOF
3232
echo "$as_me: failed program was:" >&5
3233
sed 's/^/| /' conftest.$ac_ext >&5
3237
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3240
{ echo "$as_me:$LINENO: checking for butterfly..." >&5
3241
echo "$as_me: checking for butterfly..." >&6;}
3242
cat >conftest.$ac_ext <<_ACEOF
3243
#line $LINENO "configure"
3246
cat confdefs.h >>conftest.$ac_ext
3247
cat >>conftest.$ac_ext <<_ACEOF
3248
/* end confdefs.h. */
3249
#if defined(butterfly)
3254
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3255
$EGREP "yes" >/dev/null 2>&1; then
3261
if test -z "$butterfly"; then
3262
if test -n "$ULTRIX"; then
3263
test -z "$GCC" && CC="$CC -YBSD"
3265
{ echo "$as_me:$LINENO: checking for POSIX.1..." >&5
3266
echo "$as_me: checking for POSIX.1..." >&6;}
3267
cat >conftest.$ac_ext <<_ACEOF
3268
#line $LINENO "configure"
3271
cat confdefs.h >>conftest.$ac_ext
3272
cat >>conftest.$ac_ext <<_ACEOF
3273
/* end confdefs.h. */
3274
#include <sys/types.h>
3277
#ifdef _POSIX_VERSION
3282
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3283
$EGREP "yes" >/dev/null 2>&1; then
3284
echo "- you have a POSIX system" 1>&6
3285
cat >>confdefs.h <<\_ACEOF
3294
{ echo "$as_me:$LINENO: checking for System V..." >&5
3295
echo "$as_me: checking for System V..." >&6;}
3296
cat >conftest.$ac_ext <<_ACEOF
3297
#line $LINENO "configure"
3300
cat confdefs.h >>conftest.$ac_ext
3301
cat >>conftest.$ac_ext <<_ACEOF
3302
/* end confdefs.h. */
3303
#include <sys/types.h>
3309
int x = SIGCHLD | FNDELAY;
3314
rm -f conftest.$ac_objext
3315
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3316
(eval $ac_compile) 2>&5
3318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319
(exit $ac_status); } &&
3320
{ ac_try='test -s conftest.$ac_objext'
3321
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325
(exit $ac_status); }; }; then
3328
echo "$as_me: failed program was:" >&5
3329
sed 's/^/| /' conftest.$ac_ext >&5
3331
cat >>confdefs.h <<\_ACEOF
3336
rm -f conftest.$ac_objext conftest.$ac_ext
3338
{ echo "$as_me:$LINENO: checking for sequent/ptx..." >&5
3339
echo "$as_me: checking for sequent/ptx..." >&6;}
3340
cat >conftest.$ac_ext <<_ACEOF
3341
#line $LINENO "configure"
3344
cat confdefs.h >>conftest.$ac_ext
3345
cat >>conftest.$ac_ext <<_ACEOF
3346
/* end confdefs.h. */
3352
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3353
$EGREP "yes" >/dev/null 2>&1; then
3354
LIBS="$LIBS -lsocket -linet";seqptx=1
3361
{ echo "$as_me:$LINENO: checking SVR4..." >&5
3362
echo "$as_me: checking SVR4..." >&6;}
3363
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3364
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3365
if test "${ac_cv_header_stdc+set}" = set; then
3366
echo $ECHO_N "(cached) $ECHO_C" >&6
3368
cat >conftest.$ac_ext <<_ACEOF
3369
#line $LINENO "configure"
3372
cat confdefs.h >>conftest.$ac_ext
3373
cat >>conftest.$ac_ext <<_ACEOF
3374
/* end confdefs.h. */
3388
rm -f conftest.$ac_objext
3389
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3390
(eval $ac_compile) 2>&5
3392
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393
(exit $ac_status); } &&
3394
{ ac_try='test -s conftest.$ac_objext'
3395
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399
(exit $ac_status); }; }; then
3400
ac_cv_header_stdc=yes
3402
echo "$as_me: failed program was:" >&5
3403
sed 's/^/| /' conftest.$ac_ext >&5
3405
ac_cv_header_stdc=no
3407
rm -f conftest.$ac_objext conftest.$ac_ext
3409
if test $ac_cv_header_stdc = yes; then
3410
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3411
cat >conftest.$ac_ext <<_ACEOF
3412
#line $LINENO "configure"
3415
cat confdefs.h >>conftest.$ac_ext
3416
cat >>conftest.$ac_ext <<_ACEOF
3417
/* end confdefs.h. */
3421
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3422
$EGREP "memchr" >/dev/null 2>&1; then
3425
ac_cv_header_stdc=no
3431
if test $ac_cv_header_stdc = yes; then
3432
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3433
cat >conftest.$ac_ext <<_ACEOF
3434
#line $LINENO "configure"
3437
cat confdefs.h >>conftest.$ac_ext
3438
cat >>conftest.$ac_ext <<_ACEOF
3439
/* end confdefs.h. */
3443
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3444
$EGREP "free" >/dev/null 2>&1; then
3447
ac_cv_header_stdc=no
3453
if test $ac_cv_header_stdc = yes; then
3454
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3455
if test "$cross_compiling" = yes; then
3458
cat >conftest.$ac_ext <<_ACEOF
3459
#line $LINENO "configure"
3462
cat confdefs.h >>conftest.$ac_ext
3463
cat >>conftest.$ac_ext <<_ACEOF
3464
/* end confdefs.h. */
3466
#if ((' ' & 0x0FF) == 0x020)
3467
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3468
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3470
# define ISLOWER(c) \
3471
(('a' <= (c) && (c) <= 'i') \
3472
|| ('j' <= (c) && (c) <= 'r') \
3473
|| ('s' <= (c) && (c) <= 'z'))
3474
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3477
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3482
for (i = 0; i < 256; i++)
3483
if (XOR (islower (i), ISLOWER (i))
3484
|| toupper (i) != TOUPPER (i))
3489
rm -f conftest$ac_exeext
3490
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3491
(eval $ac_link) 2>&5
3493
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3495
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3498
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499
(exit $ac_status); }; }; then
3502
echo "$as_me: program exited with status $ac_status" >&5
3503
echo "$as_me: failed program was:" >&5
3504
sed 's/^/| /' conftest.$ac_ext >&5
3507
ac_cv_header_stdc=no
3509
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3513
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3514
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3515
if test $ac_cv_header_stdc = yes; then
3517
cat >>confdefs.h <<\_ACEOF
3518
#define STDC_HEADERS 1
3523
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3533
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3534
inttypes.h stdint.h unistd.h
3536
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3537
echo "$as_me:$LINENO: checking for $ac_header" >&5
3538
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3539
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3540
echo $ECHO_N "(cached) $ECHO_C" >&6
3542
cat >conftest.$ac_ext <<_ACEOF
3543
#line $LINENO "configure"
3546
cat confdefs.h >>conftest.$ac_ext
3547
cat >>conftest.$ac_ext <<_ACEOF
3548
/* end confdefs.h. */
3549
$ac_includes_default
3551
#include <$ac_header>
3553
rm -f conftest.$ac_objext
3554
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555
(eval $ac_compile) 2>&5
3557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558
(exit $ac_status); } &&
3559
{ ac_try='test -s conftest.$ac_objext'
3560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564
(exit $ac_status); }; }; then
3565
eval "$as_ac_Header=yes"
3567
echo "$as_me: failed program was:" >&5
3568
sed 's/^/| /' conftest.$ac_ext >&5
3570
eval "$as_ac_Header=no"
3572
rm -f conftest.$ac_objext conftest.$ac_ext
3574
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3575
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3576
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3577
cat >>confdefs.h <<_ACEOF
3578
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3586
cat >conftest.$ac_ext <<_ACEOF
3587
#line $LINENO "configure"
3590
cat confdefs.h >>conftest.$ac_ext
3591
cat >>conftest.$ac_ext <<_ACEOF
3592
/* end confdefs.h. */
3603
rm -f conftest.$ac_objext conftest$ac_exeext
3604
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3605
(eval $ac_link) 2>&5
3607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608
(exit $ac_status); } &&
3609
{ ac_try='test -s conftest$ac_exeext'
3610
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614
(exit $ac_status); }; }; then
3615
if test "${ac_cv_header_dwarf_h+set}" = set; then
3616
echo "$as_me:$LINENO: checking for dwarf.h" >&5
3617
echo $ECHO_N "checking for dwarf.h... $ECHO_C" >&6
3618
if test "${ac_cv_header_dwarf_h+set}" = set; then
3619
echo $ECHO_N "(cached) $ECHO_C" >&6
3621
echo "$as_me:$LINENO: result: $ac_cv_header_dwarf_h" >&5
3622
echo "${ECHO_T}$ac_cv_header_dwarf_h" >&6
3624
# Is the header compilable?
3625
echo "$as_me:$LINENO: checking dwarf.h usability" >&5
3626
echo $ECHO_N "checking dwarf.h usability... $ECHO_C" >&6
3627
cat >conftest.$ac_ext <<_ACEOF
3628
#line $LINENO "configure"
3631
cat confdefs.h >>conftest.$ac_ext
3632
cat >>conftest.$ac_ext <<_ACEOF
3633
/* end confdefs.h. */
3634
$ac_includes_default
3637
rm -f conftest.$ac_objext
3638
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639
(eval $ac_compile) 2>&5
3641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642
(exit $ac_status); } &&
3643
{ ac_try='test -s conftest.$ac_objext'
3644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648
(exit $ac_status); }; }; then
3649
ac_header_compiler=yes
3651
echo "$as_me: failed program was:" >&5
3652
sed 's/^/| /' conftest.$ac_ext >&5
3654
ac_header_compiler=no
3656
rm -f conftest.$ac_objext conftest.$ac_ext
3657
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3658
echo "${ECHO_T}$ac_header_compiler" >&6
3660
# Is the header present?
3661
echo "$as_me:$LINENO: checking dwarf.h presence" >&5
3662
echo $ECHO_N "checking dwarf.h presence... $ECHO_C" >&6
3663
cat >conftest.$ac_ext <<_ACEOF
3664
#line $LINENO "configure"
3667
cat confdefs.h >>conftest.$ac_ext
3668
cat >>conftest.$ac_ext <<_ACEOF
3669
/* end confdefs.h. */
3672
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3673
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3675
grep -v '^ *+' conftest.er1 >conftest.err
3677
cat conftest.err >&5
3678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679
(exit $ac_status); } >/dev/null; then
3680
if test -s conftest.err; then
3681
ac_cpp_err=$ac_c_preproc_warn_flag
3688
if test -z "$ac_cpp_err"; then
3689
ac_header_preproc=yes
3691
echo "$as_me: failed program was:" >&5
3692
sed 's/^/| /' conftest.$ac_ext >&5
3694
ac_header_preproc=no
3696
rm -f conftest.err conftest.$ac_ext
3697
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3698
echo "${ECHO_T}$ac_header_preproc" >&6
3700
# So? What about this header?
3701
case $ac_header_compiler:$ac_header_preproc in
3703
{ echo "$as_me:$LINENO: WARNING: dwarf.h: accepted by the compiler, rejected by the preprocessor!" >&5
3704
echo "$as_me: WARNING: dwarf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3705
{ echo "$as_me:$LINENO: WARNING: dwarf.h: proceeding with the preprocessor's result" >&5
3706
echo "$as_me: WARNING: dwarf.h: proceeding with the preprocessor's result" >&2;}
3709
## ------------------------------------ ##
3710
## Report this to bug-autoconf@gnu.org. ##
3711
## ------------------------------------ ##
3714
sed "s/^/$as_me: WARNING: /" >&2
3717
{ echo "$as_me:$LINENO: WARNING: dwarf.h: present but cannot be compiled" >&5
3718
echo "$as_me: WARNING: dwarf.h: present but cannot be compiled" >&2;}
3719
{ echo "$as_me:$LINENO: WARNING: dwarf.h: check for missing prerequisite headers?" >&5
3720
echo "$as_me: WARNING: dwarf.h: check for missing prerequisite headers?" >&2;}
3721
{ echo "$as_me:$LINENO: WARNING: dwarf.h: proceeding with the preprocessor's result" >&5
3722
echo "$as_me: WARNING: dwarf.h: proceeding with the preprocessor's result" >&2;}
3725
## ------------------------------------ ##
3726
## Report this to bug-autoconf@gnu.org. ##
3727
## ------------------------------------ ##
3730
sed "s/^/$as_me: WARNING: /" >&2
3733
echo "$as_me:$LINENO: checking for dwarf.h" >&5
3734
echo $ECHO_N "checking for dwarf.h... $ECHO_C" >&6
3735
if test "${ac_cv_header_dwarf_h+set}" = set; then
3736
echo $ECHO_N "(cached) $ECHO_C" >&6
3738
ac_cv_header_dwarf_h=$ac_header_preproc
3740
echo "$as_me:$LINENO: result: $ac_cv_header_dwarf_h" >&5
3741
echo "${ECHO_T}$ac_cv_header_dwarf_h" >&6
3744
if test $ac_cv_header_dwarf_h = yes; then
3745
cat >>confdefs.h <<\_ACEOF
3748
cat >>confdefs.h <<\_ACEOF
3749
#define BUGGYGETLOGIN 1
3753
if test "${ac_cv_header_elf_h+set}" = set; then
3754
echo "$as_me:$LINENO: checking for elf.h" >&5
3755
echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
3756
if test "${ac_cv_header_elf_h+set}" = set; then
3757
echo $ECHO_N "(cached) $ECHO_C" >&6
3759
echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
3760
echo "${ECHO_T}$ac_cv_header_elf_h" >&6
3762
# Is the header compilable?
3763
echo "$as_me:$LINENO: checking elf.h usability" >&5
3764
echo $ECHO_N "checking elf.h usability... $ECHO_C" >&6
3765
cat >conftest.$ac_ext <<_ACEOF
3766
#line $LINENO "configure"
3769
cat confdefs.h >>conftest.$ac_ext
3770
cat >>conftest.$ac_ext <<_ACEOF
3771
/* end confdefs.h. */
3772
$ac_includes_default
3775
rm -f conftest.$ac_objext
3776
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3777
(eval $ac_compile) 2>&5
3779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780
(exit $ac_status); } &&
3781
{ ac_try='test -s conftest.$ac_objext'
3782
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786
(exit $ac_status); }; }; then
3787
ac_header_compiler=yes
3789
echo "$as_me: failed program was:" >&5
3790
sed 's/^/| /' conftest.$ac_ext >&5
3792
ac_header_compiler=no
3794
rm -f conftest.$ac_objext conftest.$ac_ext
3795
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3796
echo "${ECHO_T}$ac_header_compiler" >&6
3798
# Is the header present?
3799
echo "$as_me:$LINENO: checking elf.h presence" >&5
3800
echo $ECHO_N "checking elf.h presence... $ECHO_C" >&6
3801
cat >conftest.$ac_ext <<_ACEOF
3802
#line $LINENO "configure"
3805
cat confdefs.h >>conftest.$ac_ext
3806
cat >>conftest.$ac_ext <<_ACEOF
3807
/* end confdefs.h. */
3810
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3811
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3813
grep -v '^ *+' conftest.er1 >conftest.err
3815
cat conftest.err >&5
3816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817
(exit $ac_status); } >/dev/null; then
3818
if test -s conftest.err; then
3819
ac_cpp_err=$ac_c_preproc_warn_flag
3826
if test -z "$ac_cpp_err"; then
3827
ac_header_preproc=yes
3829
echo "$as_me: failed program was:" >&5
3830
sed 's/^/| /' conftest.$ac_ext >&5
3832
ac_header_preproc=no
3834
rm -f conftest.err conftest.$ac_ext
3835
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3836
echo "${ECHO_T}$ac_header_preproc" >&6
3838
# So? What about this header?
3839
case $ac_header_compiler:$ac_header_preproc in
3841
{ echo "$as_me:$LINENO: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&5
3842
echo "$as_me: WARNING: elf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3843
{ echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
3844
echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
3847
## ------------------------------------ ##
3848
## Report this to bug-autoconf@gnu.org. ##
3849
## ------------------------------------ ##
3852
sed "s/^/$as_me: WARNING: /" >&2
3855
{ echo "$as_me:$LINENO: WARNING: elf.h: present but cannot be compiled" >&5
3856
echo "$as_me: WARNING: elf.h: present but cannot be compiled" >&2;}
3857
{ echo "$as_me:$LINENO: WARNING: elf.h: check for missing prerequisite headers?" >&5
3858
echo "$as_me: WARNING: elf.h: check for missing prerequisite headers?" >&2;}
3859
{ echo "$as_me:$LINENO: WARNING: elf.h: proceeding with the preprocessor's result" >&5
3860
echo "$as_me: WARNING: elf.h: proceeding with the preprocessor's result" >&2;}
3863
## ------------------------------------ ##
3864
## Report this to bug-autoconf@gnu.org. ##
3865
## ------------------------------------ ##
3868
sed "s/^/$as_me: WARNING: /" >&2
3871
echo "$as_me:$LINENO: checking for elf.h" >&5
3872
echo $ECHO_N "checking for elf.h... $ECHO_C" >&6
3873
if test "${ac_cv_header_elf_h+set}" = set; then
3874
echo $ECHO_N "(cached) $ECHO_C" >&6
3876
ac_cv_header_elf_h=$ac_header_preproc
3878
echo "$as_me:$LINENO: result: $ac_cv_header_elf_h" >&5
3879
echo "${ECHO_T}$ac_cv_header_elf_h" >&6
3882
if test $ac_cv_header_elf_h = yes; then
3883
cat >>confdefs.h <<\_ACEOF
3886
cat >>confdefs.h <<\_ACEOF
3887
#define BUGGYGETLOGIN 1
3898
echo "$as_me: failed program was:" >&5
3899
sed 's/^/| /' conftest.$ac_ext >&5
3903
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3905
{ echo "$as_me:$LINENO: checking for Solaris 2.x..." >&5
3906
echo "$as_me: checking for Solaris 2.x..." >&6;}
3907
cat >conftest.$ac_ext <<_ACEOF
3908
#line $LINENO "configure"
3911
cat confdefs.h >>conftest.$ac_ext
3912
cat >>conftest.$ac_ext <<_ACEOF
3913
/* end confdefs.h. */
3914
#if defined(SVR4) && defined(sun)
3919
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3920
$EGREP "yes" >/dev/null 2>&1; then
3921
LIBS="$LIBS -lsocket -lnsl -lkstat"
3928
{ echo "$as_me:$LINENO: checking BSD job jontrol..." >&5
3929
echo "$as_me: checking BSD job jontrol..." >&6;}
3930
cat >conftest.$ac_ext <<_ACEOF
3931
#line $LINENO "configure"
3934
cat confdefs.h >>conftest.$ac_ext
3935
cat >>conftest.$ac_ext <<_ACEOF
3936
/* end confdefs.h. */
3937
#include <sys/types.h>
3938
#include <sys/ioctl.h>
3959
rm -f conftest.$ac_objext conftest$ac_exeext
3960
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3961
(eval $ac_link) 2>&5
3963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964
(exit $ac_status); } &&
3965
{ ac_try='test -s conftest$ac_exeext'
3966
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970
(exit $ac_status); }; }; then
3971
echo "- you have jobcontrol" 1>&6
3972
cat >>confdefs.h <<\_ACEOF
3977
echo "$as_me: failed program was:" >&5
3978
sed 's/^/| /' conftest.$ac_ext >&5
3980
echo "- you don't have jobcontrol" 1>&6
3983
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3985
{ echo "$as_me:$LINENO: checking setreuid..." >&5
3986
echo "$as_me: checking setreuid..." >&6;}
3987
cat >conftest.$ac_ext <<_ACEOF
3988
#line $LINENO "configure"
3991
cat confdefs.h >>conftest.$ac_ext
3992
cat >>conftest.$ac_ext <<_ACEOF
3993
/* end confdefs.h. */
4009
rm -f conftest.$ac_objext conftest$ac_exeext
4010
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4011
(eval $ac_link) 2>&5
4013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014
(exit $ac_status); } &&
4015
{ ac_try='test -s conftest$ac_exeext'
4016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020
(exit $ac_status); }; }; then
4021
cat >>confdefs.h <<\_ACEOF
4022
#define HAVE_SETREUID 1
4026
echo "$as_me: failed program was:" >&5
4027
sed 's/^/| /' conftest.$ac_ext >&5
4030
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4031
{ echo "$as_me:$LINENO: checking seteuid..." >&5
4032
echo "$as_me: checking seteuid..." >&6;}
4033
cat >conftest.$ac_ext <<_ACEOF
4034
#line $LINENO "configure"
4037
cat confdefs.h >>conftest.$ac_ext
4038
cat >>conftest.$ac_ext <<_ACEOF
4039
/* end confdefs.h. */
4045
#if defined(linux) || defined(NeXT) || defined(_AUX_SOURCE) || defined(AUX) || defined(ultrix) || (defined(sun) && defined(SVR4)) || defined(ISC) || defined(sony_news)
4046
seteuid_is_broken(0);
4055
rm -f conftest.$ac_objext conftest$ac_exeext
4056
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4057
(eval $ac_link) 2>&5
4059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060
(exit $ac_status); } &&
4061
{ ac_try='test -s conftest$ac_exeext'
4062
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066
(exit $ac_status); }; }; then
4067
cat >>confdefs.h <<\_ACEOF
4068
#define HAVE_SETEUID 1
4072
echo "$as_me: failed program was:" >&5
4073
sed 's/^/| /' conftest.$ac_ext >&5
4076
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4079
{ echo "$as_me:$LINENO: checking select..." >&5
4080
echo "$as_me: checking select..." >&6;}
4081
cat >conftest.$ac_ext <<_ACEOF
4082
#line $LINENO "configure"
4085
cat confdefs.h >>conftest.$ac_ext
4086
cat >>conftest.$ac_ext <<_ACEOF
4087
/* end confdefs.h. */
4092
select(0, 0, 0, 0, 0);
4097
rm -f conftest.$ac_objext conftest$ac_exeext
4098
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4099
(eval $ac_link) 2>&5
4101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102
(exit $ac_status); } &&
4103
{ ac_try='test -s conftest$ac_exeext'
4104
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108
(exit $ac_status); }; }; then
4111
echo "$as_me: failed program was:" >&5
4112
sed 's/^/| /' conftest.$ac_ext >&5
4114
LIBS="$LIBS -lnet -lnsl"
4115
{ echo "$as_me:$LINENO: checking select with $LIBS..." >&5
4116
echo "$as_me: checking select with $LIBS..." >&6;}
4117
cat >conftest.$ac_ext <<_ACEOF
4118
#line $LINENO "configure"
4121
cat confdefs.h >>conftest.$ac_ext
4122
cat >>conftest.$ac_ext <<_ACEOF
4123
/* end confdefs.h. */
4128
select(0, 0, 0, 0, 0);
4133
rm -f conftest.$ac_objext conftest$ac_exeext
4134
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4135
(eval $ac_link) 2>&5
4137
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4138
(exit $ac_status); } &&
4139
{ ac_try='test -s conftest$ac_exeext'
4140
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144
(exit $ac_status); }; }; then
4147
echo "$as_me: failed program was:" >&5
4148
sed 's/^/| /' conftest.$ac_ext >&5
4150
{ { echo "$as_me:$LINENO: error: !!! no select - no screen" >&5
4151
echo "$as_me: error: !!! no select - no screen" >&2;}
4152
{ (exit 1); exit 1; }; }
4154
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4157
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4159
{ echo "$as_me:$LINENO: checking fifos..." >&5
4160
echo "$as_me: checking fifos..." >&6;}
4161
if test "$cross_compiling" = yes; then
4162
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4163
See \`config.log' for more details." >&5
4164
echo "$as_me: error: cannot run test program while cross compiling
4165
See \`config.log' for more details." >&2;}
4166
{ (exit 1); exit 1; }; }
4168
cat >conftest.$ac_ext <<_ACEOF
4169
#line $LINENO "configure"
4172
cat confdefs.h >>conftest.$ac_ext
4173
cat >>conftest.$ac_ext <<_ACEOF
4174
/* end confdefs.h. */
4176
#include <sys/types.h>
4177
#include <sys/stat.h>
4181
#define O_NONBLOCK O_NDELAY
4184
#define S_IFIFO 0010000
4187
char *fin = "/tmp/conftest$$";
4200
if (mkfifo(fin, 0777))
4202
if (mknod(fin, S_IFIFO|0777, 0))
4205
if (stat(fin, &stb) || (stb.st_mode & S_IFIFO) != S_IFIFO)
4210
* The next test fails under 386BSD, but screen works using fifos.
4211
* Fifos in O_RDWR mode are only used for the BROKEN_PIPE case and for
4212
* the select() configuration test.
4216
if (open(fin, O_RDONLY | O_NONBLOCK))
4221
if (open(fin, O_WRONLY | O_NONBLOCK))
4224
if (open(fin, O_WRONLY | O_NONBLOCK))
4226
if (write(0, "TEST", 4) == -1)
4235
if (select(1, &f, 0, 0, 0) == -1)
4241
rm -f conftest$ac_exeext
4242
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4243
(eval $ac_link) 2>&5
4245
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4247
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251
(exit $ac_status); }; }; then
4252
echo "- your fifos are usable" 1>&6
4255
echo "$as_me: program exited with status $ac_status" >&5
4256
echo "$as_me: failed program was:" >&5
4257
sed 's/^/| /' conftest.$ac_ext >&5
4260
echo "- your fifos are not usable" 1>&6
4263
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4265
rm -f /tmp/conftest*
4267
if test -n "$fifo"; then
4268
{ echo "$as_me:$LINENO: checking for broken fifo implementation..." >&5
4269
echo "$as_me: checking for broken fifo implementation..." >&6;}
4270
if test "$cross_compiling" = yes; then
4271
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4272
See \`config.log' for more details." >&5
4273
echo "$as_me: error: cannot run test program while cross compiling
4274
See \`config.log' for more details." >&2;}
4275
{ (exit 1); exit 1; }; }
4277
cat >conftest.$ac_ext <<_ACEOF
4278
#line $LINENO "configure"
4281
cat confdefs.h >>conftest.$ac_ext
4282
cat >>conftest.$ac_ext <<_ACEOF
4283
/* end confdefs.h. */
4285
#include <sys/types.h>
4287
#include <sys/time.h>
4288
#include <sys/stat.h>
4291
#define O_NONBLOCK O_NDELAY
4294
#define S_IFIFO 0010000
4297
char *fin = "/tmp/conftest$$";
4309
if (mkfifo(fin, 0600))
4311
if (mknod(fin, S_IFIFO|0600, 0))
4315
if (open(fin, O_RDONLY|O_NONBLOCK))
4324
if (select(1, &f, 0, 0, &tv))
4330
rm -f conftest$ac_exeext
4331
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4332
(eval $ac_link) 2>&5
4334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4336
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340
(exit $ac_status); }; }; then
4341
echo "- your implementation is ok" 1>&6
4344
echo "$as_me: program exited with status $ac_status" >&5
4345
echo "$as_me: failed program was:" >&5
4346
sed 's/^/| /' conftest.$ac_ext >&5
4349
echo "- you have a broken implementation" 1>&6
4350
cat >>confdefs.h <<\_ACEOF
4351
#define BROKEN_PIPE 1
4355
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4357
rm -f /tmp/conftest*
4361
{ echo "$as_me:$LINENO: checking sockets..." >&5
4362
echo "$as_me: checking sockets..." >&6;}
4363
if test "$cross_compiling" = yes; then
4364
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4365
See \`config.log' for more details." >&5
4366
echo "$as_me: error: cannot run test program while cross compiling
4367
See \`config.log' for more details." >&2;}
4368
{ (exit 1); exit 1; }; }
4370
cat >conftest.$ac_ext <<_ACEOF
4371
#line $LINENO "configure"
4374
cat confdefs.h >>conftest.$ac_ext
4375
cat >>conftest.$ac_ext <<_ACEOF
4376
/* end confdefs.h. */
4378
#include <sys/types.h>
4379
#include <sys/socket.h>
4383
char *son = "/tmp/conftest$$";
4388
struct sockaddr_un a;
4396
if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4398
a.sun_family = AF_UNIX;
4399
strcpy(a.sun_path, son);
4401
if (bind(s1, (struct sockaddr *) &a, strlen(son)+2) == -1)
4407
if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4409
(void)connect(s2, (struct sockaddr *)&a, strlen(son) + 2);
4410
if (write(s2, "HELLO", 5) == -1)
4416
if (accept(s1, &a, &l))
4423
if (select(1, &f, 0, 0, 0) == -1)
4429
rm -f conftest$ac_exeext
4430
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4431
(eval $ac_link) 2>&5
4433
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4435
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439
(exit $ac_status); }; }; then
4440
echo "- your sockets are usable" 1>&6
4443
echo "$as_me: program exited with status $ac_status" >&5
4444
echo "$as_me: failed program was:" >&5
4445
sed 's/^/| /' conftest.$ac_ext >&5
4448
echo "- your sockets are not usable" 1>&6
4451
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4453
rm -f /tmp/conftest*
4455
if test -n "$sock"; then
4456
{ echo "$as_me:$LINENO: checking socket implementation..." >&5
4457
echo "$as_me: checking socket implementation..." >&6;}
4458
if test "$cross_compiling" = yes; then
4459
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4460
See \`config.log' for more details." >&5
4461
echo "$as_me: error: cannot run test program while cross compiling
4462
See \`config.log' for more details." >&2;}
4463
{ (exit 1); exit 1; }; }
4465
cat >conftest.$ac_ext <<_ACEOF
4466
#line $LINENO "configure"
4469
cat confdefs.h >>conftest.$ac_ext
4470
cat >>conftest.$ac_ext <<_ACEOF
4471
/* end confdefs.h. */
4473
#include <sys/types.h>
4474
#include <sys/stat.h>
4475
#include <sys/socket.h>
4478
char *son = "/tmp/conftest$$";
4484
struct sockaddr_un a;
4485
if ((s = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4487
a.sun_family = AF_UNIX;
4488
strcpy(a.sun_path, son);
4490
if (bind(s, (struct sockaddr *) &a, strlen(son)+2) == -1)
4492
if (stat(son, &stb))
4499
rm -f conftest$ac_exeext
4500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4501
(eval $ac_link) 2>&5
4503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4505
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509
(exit $ac_status); }; }; then
4510
echo "- you are normal" 1>&6
4513
echo "$as_me: program exited with status $ac_status" >&5
4514
echo "$as_me: failed program was:" >&5
4515
sed 's/^/| /' conftest.$ac_ext >&5
4518
echo "- unix domain sockets are not kept in the filesystem" 1>&6
4520
cat >>confdefs.h <<\_ACEOF
4521
#define SOCK_NOT_IN_FS 1
4525
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4527
rm -f /tmp/conftest*
4531
if test -n "$fifo"; then
4532
if test -n "$sock"; then
4533
if test -n "$nore"; then
4534
echo "- hmmm... better take the fifos" 1>&6
4536
cat >>confdefs.h <<\_ACEOF
4540
elif test -n "$fifobr"; then
4541
echo "- as your fifos are broken lets use the sockets." 1>&6
4544
echo "- both sockets and fifos usable. let's take fifos." 1>&6
4546
cat >>confdefs.h <<\_ACEOF
4552
echo "- using named pipes" 1>&6
4554
cat >>confdefs.h <<\_ACEOF
4559
elif test -n "$sock"; then
4560
echo "- using unix-domain sockets" 1>&6
4563
{ { echo "$as_me:$LINENO: error: you have neither usable sockets nor usable pipes -> no screen" >&5
4564
echo "$as_me: error: you have neither usable sockets nor usable pipes -> no screen" >&2;}
4565
{ (exit 1); exit 1; }; }
4569
{ echo "$as_me:$LINENO: checking select return value..." >&5
4570
echo "$as_me: checking select return value..." >&6;}
4571
if test "$cross_compiling" = yes; then
4572
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4573
See \`config.log' for more details." >&5
4574
echo "$as_me: error: cannot run test program while cross compiling
4575
See \`config.log' for more details." >&2;}
4576
{ (exit 1); exit 1; }; }
4578
cat >conftest.$ac_ext <<_ACEOF
4579
#line $LINENO "configure"
4582
cat confdefs.h >>conftest.$ac_ext
4583
cat >>conftest.$ac_ext <<_ACEOF
4584
/* end confdefs.h. */
4586
#include <sys/types.h>
4587
#include <sys/stat.h>
4590
char *nam = "/tmp/conftest$$";
4595
#define O_NONBLOCK O_NDELAY
4598
#define S_IFIFO 0010000
4611
/* From Andrew A. Chernov (ache@astral.msk.su):
4612
* opening RDWR fifo fails in BSD 4.4, but select return values are
4619
if (mkfifo(nam, 0777))
4621
if (mknod(nam, S_IFIFO|0777, 0))
4625
if (open(nam, O_RDWR | O_NONBLOCK))
4627
if (write(0, "TEST", 4) == -1)
4632
#include <sys/types.h>
4633
#include <sys/socket.h>
4639
struct sockaddr_un a;
4647
if ((s1 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4649
a.sun_family = AF_UNIX;
4650
strcpy(a.sun_path, nam);
4652
if (bind(s1, (struct sockaddr *) &a, strlen(nam)+2) == -1)
4658
if ((s2 = socket(AF_UNIX, SOCK_STREAM, 0)) == -1)
4660
(void)connect(s2, (struct sockaddr *)&a, strlen(nam) + 2);
4661
if (write(s2, "HELLO", 5) == -1)
4667
if (accept(s1, (struct sockaddr *)&a, &l))
4677
if (select(1, &f, 0, 0, 0) == -1)
4679
if (select(1, &f, &f, 0, 0) != 2)
4685
rm -f conftest$ac_exeext
4686
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4687
(eval $ac_link) 2>&5
4689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4691
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695
(exit $ac_status); }; }; then
4696
echo "- select is ok" 1>&6
4699
echo "$as_me: program exited with status $ac_status" >&5
4700
echo "$as_me: failed program was:" >&5
4701
sed 's/^/| /' conftest.$ac_ext >&5
4704
echo "- select can't count" 1>&6
4705
cat >>confdefs.h <<\_ACEOF
4706
#define SELECT_BROKEN 1
4710
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4713
{ echo "$as_me:$LINENO: checking for tgetent..." >&5
4714
echo "$as_me: checking for tgetent..." >&6;}
4715
cat >conftest.$ac_ext <<_ACEOF
4716
#line $LINENO "configure"
4719
cat confdefs.h >>conftest.$ac_ext
4720
cat >>conftest.$ac_ext <<_ACEOF
4721
/* end confdefs.h. */
4726
tgetent((char *)0, (char *)0);
4731
rm -f conftest.$ac_objext conftest$ac_exeext
4732
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733
(eval $ac_link) 2>&5
4735
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736
(exit $ac_status); } &&
4737
{ ac_try='test -s conftest$ac_exeext'
4738
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742
(exit $ac_status); }; }; then
4745
echo "$as_me: failed program was:" >&5
4746
sed 's/^/| /' conftest.$ac_ext >&5
4749
LIBS="-lcurses $olibs"
4750
{ echo "$as_me:$LINENO: checking libcurses..." >&5
4751
echo "$as_me: checking libcurses..." >&6;}
4752
cat >conftest.$ac_ext <<_ACEOF
4753
#line $LINENO "configure"
4756
cat confdefs.h >>conftest.$ac_ext
4757
cat >>conftest.$ac_ext <<_ACEOF
4758
/* end confdefs.h. */
4765
__sorry_hpux_libcurses_is_totally_broken_in_10_10();
4767
tgetent((char *)0, (char *)0);
4774
rm -f conftest.$ac_objext conftest$ac_exeext
4775
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4776
(eval $ac_link) 2>&5
4778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779
(exit $ac_status); } &&
4780
{ ac_try='test -s conftest$ac_exeext'
4781
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785
(exit $ac_status); }; }; then
4788
echo "$as_me: failed program was:" >&5
4789
sed 's/^/| /' conftest.$ac_ext >&5
4791
LIBS="-ltermcap $olibs"
4792
{ echo "$as_me:$LINENO: checking libtermcap..." >&5
4793
echo "$as_me: checking libtermcap..." >&6;}
4794
cat >conftest.$ac_ext <<_ACEOF
4795
#line $LINENO "configure"
4798
cat confdefs.h >>conftest.$ac_ext
4799
cat >>conftest.$ac_ext <<_ACEOF
4800
/* end confdefs.h. */
4805
tgetent((char *)0, (char *)0);
4810
rm -f conftest.$ac_objext conftest$ac_exeext
4811
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4812
(eval $ac_link) 2>&5
4814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815
(exit $ac_status); } &&
4816
{ ac_try='test -s conftest$ac_exeext'
4817
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821
(exit $ac_status); }; }; then
4824
echo "$as_me: failed program was:" >&5
4825
sed 's/^/| /' conftest.$ac_ext >&5
4827
LIBS="-ltermlib $olibs"
4828
{ echo "$as_me:$LINENO: checking libtermlib..." >&5
4829
echo "$as_me: checking libtermlib..." >&6;}
4830
cat >conftest.$ac_ext <<_ACEOF
4831
#line $LINENO "configure"
4834
cat confdefs.h >>conftest.$ac_ext
4835
cat >>conftest.$ac_ext <<_ACEOF
4836
/* end confdefs.h. */
4841
tgetent((char *)0, (char *)0);
4846
rm -f conftest.$ac_objext conftest$ac_exeext
4847
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4848
(eval $ac_link) 2>&5
4850
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851
(exit $ac_status); } &&
4852
{ ac_try='test -s conftest$ac_exeext'
4853
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4856
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857
(exit $ac_status); }; }; then
4860
echo "$as_me: failed program was:" >&5
4861
sed 's/^/| /' conftest.$ac_ext >&5
4863
LIBS="-lncurses $olibs"
4864
{ echo "$as_me:$LINENO: checking libncurses..." >&5
4865
echo "$as_me: checking libncurses..." >&6;}
4866
cat >conftest.$ac_ext <<_ACEOF
4867
#line $LINENO "configure"
4870
cat confdefs.h >>conftest.$ac_ext
4871
cat >>conftest.$ac_ext <<_ACEOF
4872
/* end confdefs.h. */
4877
tgetent((char *)0, (char *)0);
4882
rm -f conftest.$ac_objext conftest$ac_exeext
4883
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4884
(eval $ac_link) 2>&5
4886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887
(exit $ac_status); } &&
4888
{ ac_try='test -s conftest$ac_exeext'
4889
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4892
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893
(exit $ac_status); }; }; then
4896
echo "$as_me: failed program was:" >&5
4897
sed 's/^/| /' conftest.$ac_ext >&5
4899
{ { echo "$as_me:$LINENO: error: !!! no tgetent - no screen" >&5
4900
echo "$as_me: error: !!! no tgetent - no screen" >&2;}
4901
{ (exit 1); exit 1; }; }
4903
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4905
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4907
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4909
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4911
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4913
if test "$cross_compiling" = yes; then
4914
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
4915
See \`config.log' for more details." >&5
4916
echo "$as_me: error: cannot run test program while cross compiling
4917
See \`config.log' for more details." >&2;}
4918
{ (exit 1); exit 1; }; }
4920
cat >conftest.$ac_ext <<_ACEOF
4921
#line $LINENO "configure"
4924
cat confdefs.h >>conftest.$ac_ext
4925
cat >>conftest.$ac_ext <<_ACEOF
4926
/* end confdefs.h. */
4930
exit(strcmp(tgoto("%p1%d", 0, 1), "1") ? 0 : 1);
4933
rm -f conftest$ac_exeext
4934
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4935
(eval $ac_link) 2>&5
4937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4939
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943
(exit $ac_status); }; }; then
4944
echo "- you use the termcap database" 1>&6
4947
echo "$as_me: program exited with status $ac_status" >&5
4948
echo "$as_me: failed program was:" >&5
4949
sed 's/^/| /' conftest.$ac_ext >&5
4952
echo "- you use the terminfo database" 1>&6
4953
cat >>confdefs.h <<\_ACEOF
4958
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4960
{ echo "$as_me:$LINENO: checking ospeed..." >&5
4961
echo "$as_me: checking ospeed..." >&6;}
4962
cat >conftest.$ac_ext <<_ACEOF
4963
#line $LINENO "configure"
4966
cat confdefs.h >>conftest.$ac_ext
4967
cat >>conftest.$ac_ext <<_ACEOF
4968
/* end confdefs.h. */
4969
extern short ospeed;
4978
rm -f conftest.$ac_objext conftest$ac_exeext
4979
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4980
(eval $ac_link) 2>&5
4982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983
(exit $ac_status); } &&
4984
{ ac_try='test -s conftest$ac_exeext'
4985
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989
(exit $ac_status); }; }; then
4992
echo "$as_me: failed program was:" >&5
4993
sed 's/^/| /' conftest.$ac_ext >&5
4995
cat >>confdefs.h <<\_ACEOF
4996
#define NEED_OSPEED 1
5000
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5002
{ echo "$as_me:$LINENO: checking for /dev/ptc..." >&5
5003
echo "$as_me: checking for /dev/ptc..." >&6;}
5004
if test -r /dev/ptc; then
5005
cat >>confdefs.h <<\_ACEOF
5006
#define HAVE_DEV_PTC 1
5011
{ echo "$as_me:$LINENO: checking for SVR4 ptys..." >&5
5012
echo "$as_me: checking for SVR4 ptys..." >&6;}
5014
if test -c /dev/ptmx ; then
5015
cat >conftest.$ac_ext <<_ACEOF
5016
#line $LINENO "configure"
5019
cat confdefs.h >>conftest.$ac_ext
5020
cat >>conftest.$ac_ext <<_ACEOF
5021
/* end confdefs.h. */
5026
ptsname(0);grantpt(0);unlockpt(0);
5031
rm -f conftest.$ac_objext conftest$ac_exeext
5032
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5033
(eval $ac_link) 2>&5
5035
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036
(exit $ac_status); } &&
5037
{ ac_try='test -s conftest$ac_exeext'
5038
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042
(exit $ac_status); }; }; then
5043
cat >>confdefs.h <<\_ACEOF
5044
#define HAVE_SVR4_PTYS 1
5049
echo "$as_me: failed program was:" >&5
5050
sed 's/^/| /' conftest.$ac_ext >&5
5053
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5057
for ac_func in getpt
5059
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5060
echo "$as_me:$LINENO: checking for $ac_func" >&5
5061
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5062
if eval "test \"\${$as_ac_var+set}\" = set"; then
5063
echo $ECHO_N "(cached) $ECHO_C" >&6
5065
cat >conftest.$ac_ext <<_ACEOF
5066
#line $LINENO "configure"
5069
cat confdefs.h >>conftest.$ac_ext
5070
cat >>conftest.$ac_ext <<_ACEOF
5071
/* end confdefs.h. */
5072
/* System header to define __stub macros and hopefully few prototypes,
5073
which can conflict with char $ac_func (); below.
5074
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5075
<limits.h> exists even on freestanding compilers. */
5077
# include <limits.h>
5079
# include <assert.h>
5081
/* Override any gcc2 internal prototype to avoid an error. */
5086
/* We use char because int might match the return type of a gcc2
5087
builtin and then its argument prototype would still apply. */
5089
/* The GNU C library defines this for functions which it implements
5090
to always fail with ENOSYS. Some functions are actually named
5091
something starting with __ and the normal name is an alias. */
5092
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5095
char (*f) () = $ac_func;
5104
return f != $ac_func;
5109
rm -f conftest.$ac_objext conftest$ac_exeext
5110
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5111
(eval $ac_link) 2>&5
5113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114
(exit $ac_status); } &&
5115
{ ac_try='test -s conftest$ac_exeext'
5116
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120
(exit $ac_status); }; }; then
5121
eval "$as_ac_var=yes"
5123
echo "$as_me: failed program was:" >&5
5124
sed 's/^/| /' conftest.$ac_ext >&5
5126
eval "$as_ac_var=no"
5128
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5130
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5131
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5132
if test `eval echo '${'$as_ac_var'}'` = yes; then
5133
cat >>confdefs.h <<_ACEOF
5134
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5141
if test -z "$sysvr4ptys"; then
5143
for ac_func in openpty
5145
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5146
echo "$as_me:$LINENO: checking for $ac_func" >&5
5147
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5148
if eval "test \"\${$as_ac_var+set}\" = set"; then
5149
echo $ECHO_N "(cached) $ECHO_C" >&6
5151
cat >conftest.$ac_ext <<_ACEOF
5152
#line $LINENO "configure"
5155
cat confdefs.h >>conftest.$ac_ext
5156
cat >>conftest.$ac_ext <<_ACEOF
5157
/* end confdefs.h. */
5158
/* System header to define __stub macros and hopefully few prototypes,
5159
which can conflict with char $ac_func (); below.
5160
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5161
<limits.h> exists even on freestanding compilers. */
5163
# include <limits.h>
5165
# include <assert.h>
5167
/* Override any gcc2 internal prototype to avoid an error. */
5172
/* We use char because int might match the return type of a gcc2
5173
builtin and then its argument prototype would still apply. */
5175
/* The GNU C library defines this for functions which it implements
5176
to always fail with ENOSYS. Some functions are actually named
5177
something starting with __ and the normal name is an alias. */
5178
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5181
char (*f) () = $ac_func;
5190
return f != $ac_func;
5195
rm -f conftest.$ac_objext conftest$ac_exeext
5196
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5197
(eval $ac_link) 2>&5
5199
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200
(exit $ac_status); } &&
5201
{ ac_try='test -s conftest$ac_exeext'
5202
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206
(exit $ac_status); }; }; then
5207
eval "$as_ac_var=yes"
5209
echo "$as_me: failed program was:" >&5
5210
sed 's/^/| /' conftest.$ac_ext >&5
5212
eval "$as_ac_var=no"
5214
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5216
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5217
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5218
if test `eval echo '${'$as_ac_var'}'` = yes; then
5219
cat >>confdefs.h <<_ACEOF
5220
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5224
echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
5225
echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
5226
if test "${ac_cv_lib_util_openpty+set}" = set; then
5227
echo $ECHO_N "(cached) $ECHO_C" >&6
5229
ac_check_lib_save_LIBS=$LIBS
5231
cat >conftest.$ac_ext <<_ACEOF
5232
#line $LINENO "configure"
5235
cat confdefs.h >>conftest.$ac_ext
5236
cat >>conftest.$ac_ext <<_ACEOF
5237
/* end confdefs.h. */
5239
/* Override any gcc2 internal prototype to avoid an error. */
5243
/* We use char because int might match the return type of a gcc2
5244
builtin and then its argument prototype would still apply. */
5254
rm -f conftest.$ac_objext conftest$ac_exeext
5255
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5256
(eval $ac_link) 2>&5
5258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259
(exit $ac_status); } &&
5260
{ ac_try='test -s conftest$ac_exeext'
5261
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5264
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265
(exit $ac_status); }; }; then
5266
ac_cv_lib_util_openpty=yes
5268
echo "$as_me: failed program was:" >&5
5269
sed 's/^/| /' conftest.$ac_ext >&5
5271
ac_cv_lib_util_openpty=no
5273
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5274
LIBS=$ac_check_lib_save_LIBS
5276
echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
5277
echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
5278
if test $ac_cv_lib_util_openpty = yes; then
5279
cat >>confdefs.h <<\_ACEOF
5280
#define HAVE_OPENPTY 1
5290
{ echo "$as_me:$LINENO: checking for ptyranges..." >&5
5291
echo "$as_me: checking for ptyranges..." >&6;}
5292
if test -d /dev/ptym ; then
5297
cat >conftest.$ac_ext <<_ACEOF
5298
#line $LINENO "configure"
5301
cat confdefs.h >>conftest.$ac_ext
5302
cat >>conftest.$ac_ext <<_ACEOF
5303
/* end confdefs.h. */
5309
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5310
$EGREP "yes" >/dev/null 2>&1; then
5311
ptys=`echo /dev/ptyp??`
5313
ptys=`echo $pdir/pty??`
5317
if test "$ptys" != "$pdir/pty??" ; then
5318
p0=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
5319
p1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
5320
cat >>confdefs.h <<_ACEOF
5321
#define PTYRANGE0 "$p0"
5324
cat >>confdefs.h <<_ACEOF
5325
#define PTYRANGE1 "$p1"
5331
# Check whether --with-pty-mode or --without-pty-mode was given.
5332
if test "${with_pty_mode+set}" = set; then
5333
withval="$with_pty_mode"
5334
ptymode="${withval}"
5337
# Check whether --with-pty-group or --without-pty-group was given.
5338
if test "${with_pty_group+set}" = set; then
5339
withval="$with_pty_group"
5342
test -n "$ptymode" || ptymode=0620
5343
if test -n "$ptygrp" ; then
5344
cat >>confdefs.h <<_ACEOF
5345
#define PTYMODE $ptymode
5348
cat >>confdefs.h <<_ACEOF
5349
#define PTYGROUP $ptygrp
5354
{ echo "$as_me:$LINENO: checking default tty permissions/group..." >&5
5355
echo "$as_me: checking default tty permissions/group..." >&6;}
5357
if test "$cross_compiling" = yes; then
5358
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5359
See \`config.log' for more details." >&5
5360
echo "$as_me: error: cannot run test program while cross compiling
5361
See \`config.log' for more details." >&2;}
5362
{ (exit 1); exit 1; }; }
5364
cat >conftest.$ac_ext <<_ACEOF
5365
#line $LINENO "configure"
5368
cat confdefs.h >>conftest.$ac_ext
5369
cat >>conftest.$ac_ext <<_ACEOF
5370
/* end confdefs.h. */
5372
#include <sys/types.h>
5373
#include <sys/stat.h>
5382
if (!(x = ttyname(0))) exit(1);
5383
if (stat(x, &sb)) exit(1);
5385
if (om & 002) exit(0);
5386
m = system("mesg y");
5387
if (m == -1 || m == 127) exit(1);
5388
if (stat(x, &sb)) exit(1);
5390
if (chmod(x, om)) exit(1);
5391
if (m & 002) exit(0);
5392
if (sb.st_gid == getgid()) exit(1);
5393
if (!(fp=fopen("conftest_grp", "w")))
5395
fprintf(fp, "%d\n", sb.st_gid);
5401
rm -f conftest$ac_exeext
5402
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403
(eval $ac_link) 2>&5
5405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5407
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411
(exit $ac_status); }; }; then
5413
if test -f conftest_grp; then
5414
ptygrp=`cat conftest_grp`
5415
echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
5417
cat >>confdefs.h <<_ACEOF
5418
#define PTYMODE $ptymode
5421
cat >>confdefs.h <<_ACEOF
5422
#define PTYGROUP $ptygrp
5426
echo "- ptys are world accessable" 1>&6
5431
echo "$as_me: program exited with status $ac_status" >&5
5432
echo "$as_me: failed program was:" >&5
5433
sed 's/^/| /' conftest.$ac_ext >&5
5439
# Extract the first word of "write", so it can be a program name with args.
5440
set dummy write; ac_word=$2
5441
echo "$as_me:$LINENO: checking for $ac_word" >&5
5442
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5443
if test "${ac_cv_path_WRITEPATH+set}" = set; then
5444
echo $ECHO_N "(cached) $ECHO_C" >&6
5448
ac_cv_path_WRITEPATH="$WRITEPATH" # Let the user override the test with a path.
5451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455
test -z "$as_dir" && as_dir=.
5456
for ac_exec_ext in '' $ac_executable_extensions; do
5457
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458
ac_cv_path_WRITEPATH="$as_dir/$ac_word$ac_exec_ext"
5459
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5468
WRITEPATH=$ac_cv_path_WRITEPATH
5470
if test -n "$WRITEPATH"; then
5471
echo "$as_me:$LINENO: result: $WRITEPATH" >&5
5472
echo "${ECHO_T}$WRITEPATH" >&6
5474
echo "$as_me:$LINENO: result: no" >&5
5475
echo "${ECHO_T}no" >&6
5478
# Extract the first word of "xterm", so it can be a program name with args.
5479
set dummy xterm; ac_word=$2
5480
echo "$as_me:$LINENO: checking for $ac_word" >&5
5481
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5482
if test "${ac_cv_path_XTERMPATH+set}" = set; then
5483
echo $ECHO_N "(cached) $ECHO_C" >&6
5487
ac_cv_path_XTERMPATH="$XTERMPATH" # Let the user override the test with a path.
5490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494
test -z "$as_dir" && as_dir=.
5495
for ac_exec_ext in '' $ac_executable_extensions; do
5496
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497
ac_cv_path_XTERMPATH="$as_dir/$ac_word$ac_exec_ext"
5498
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5507
XTERMPATH=$ac_cv_path_XTERMPATH
5509
if test -n "$XTERMPATH"; then
5510
echo "$as_me:$LINENO: result: $XTERMPATH" >&5
5511
echo "${ECHO_T}$XTERMPATH" >&6
5513
echo "$as_me:$LINENO: result: no" >&5
5514
echo "${ECHO_T}no" >&6
5518
if test -n "$WRITEPATH$XTERMPATH"; then
5521
found=`find $WRITEPATH $XTERMPATH -follow -print 2>/dev/null`
5522
if test -n "$found"; then
5526
if test -n "$XTERMPATH"; then
5527
ptygrpn=`ls -l$lsfollow $XTERMPATH | sed -n -e 1p | $AWK '{print $4}'`
5528
if test tty != "$ptygrpn"; then
5533
if test -n "$WRITEPATH$XTERMPATH"; then
5534
found=`find $WRITEPATH $XTERMPATH $findfollow -perm -2000 -print`
5535
if test -n "$found"; then
5536
ptygrp=`ls -ln$lsfollow $found | sed -n -e 1p | $AWK '{print $4}'`
5537
echo "- pty mode: $ptymode, group: $ptygrp" 1>&6
5539
cat >>confdefs.h <<_ACEOF
5540
#define PTYMODE $ptymode
5543
cat >>confdefs.h <<_ACEOF
5544
#define PTYGROUP $ptygrp
5548
echo "- ptys are world accessable" 1>&6
5552
echo "- can't determine - assume ptys are world accessable" 1>&6
5558
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5563
{ echo "$as_me:$LINENO: checking getutent..." >&5
5564
echo "$as_me: checking getutent..." >&6;}
5565
cat >conftest.$ac_ext <<_ACEOF
5566
#line $LINENO "configure"
5569
cat confdefs.h >>conftest.$ac_ext
5570
cat >>conftest.$ac_ext <<_ACEOF
5571
/* end confdefs.h. */
5573
#include <time.h> /* to get time_t on SCO */
5574
#include <sys/types.h>
5575
#if defined(SVR4) && !defined(DGUX)
5582
#define pututline _pututline
5588
int x = DEAD_PROCESS; pututline((struct utmp *)0); getutent();
5593
rm -f conftest.$ac_objext conftest$ac_exeext
5594
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5595
(eval $ac_link) 2>&5
5597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598
(exit $ac_status); } &&
5599
{ ac_try='test -s conftest$ac_exeext'
5600
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604
(exit $ac_status); }; }; then
5605
cat >>confdefs.h <<\_ACEOF
5610
echo "$as_me: failed program was:" >&5
5611
sed 's/^/| /' conftest.$ac_ext >&5
5615
{ echo "$as_me:$LINENO: checking getutent with -lgen..." >&5
5616
echo "$as_me: checking getutent with -lgen..." >&6;}
5617
cat >conftest.$ac_ext <<_ACEOF
5618
#line $LINENO "configure"
5621
cat confdefs.h >>conftest.$ac_ext
5622
cat >>conftest.$ac_ext <<_ACEOF
5623
/* end confdefs.h. */
5626
#include <sys/types.h>
5627
#if defined(SVR4) && !defined(DGUX)
5634
#define pututline _pututline
5640
int x = DEAD_PROCESS; pututline((struct utmp *)0); getutent();
5645
rm -f conftest.$ac_objext conftest$ac_exeext
5646
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5647
(eval $ac_link) 2>&5
5649
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650
(exit $ac_status); } &&
5651
{ ac_try='test -s conftest$ac_exeext'
5652
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5655
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656
(exit $ac_status); }; }; then
5657
cat >>confdefs.h <<\_ACEOF
5662
echo "$as_me: failed program was:" >&5
5663
sed 's/^/| /' conftest.$ac_ext >&5
5667
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5670
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5671
{ echo "$as_me:$LINENO: checking ut_host..." >&5
5672
echo "$as_me: checking ut_host..." >&6;}
5673
cat >conftest.$ac_ext <<_ACEOF
5674
#line $LINENO "configure"
5677
cat confdefs.h >>conftest.$ac_ext
5678
cat >>conftest.$ac_ext <<_ACEOF
5679
/* end confdefs.h. */
5682
#include <sys/types.h>
5683
#if defined(SVR4) && !defined(DGUX)
5693
struct utmp u; u.ut_host[0] = 0;
5698
rm -f conftest.$ac_objext
5699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700
(eval $ac_compile) 2>&5
5702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703
(exit $ac_status); } &&
5704
{ ac_try='test -s conftest.$ac_objext'
5705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709
(exit $ac_status); }; }; then
5710
cat >>confdefs.h <<\_ACEOF
5715
echo "$as_me: failed program was:" >&5
5716
sed 's/^/| /' conftest.$ac_ext >&5
5719
rm -f conftest.$ac_objext conftest.$ac_ext
5720
if test "${ac_cv_header_utempter_h+set}" = set; then
5721
echo "$as_me:$LINENO: checking for utempter.h" >&5
5722
echo $ECHO_N "checking for utempter.h... $ECHO_C" >&6
5723
if test "${ac_cv_header_utempter_h+set}" = set; then
5724
echo $ECHO_N "(cached) $ECHO_C" >&6
5726
echo "$as_me:$LINENO: result: $ac_cv_header_utempter_h" >&5
5727
echo "${ECHO_T}$ac_cv_header_utempter_h" >&6
5729
# Is the header compilable?
5730
echo "$as_me:$LINENO: checking utempter.h usability" >&5
5731
echo $ECHO_N "checking utempter.h usability... $ECHO_C" >&6
5732
cat >conftest.$ac_ext <<_ACEOF
5733
#line $LINENO "configure"
5736
cat confdefs.h >>conftest.$ac_ext
5737
cat >>conftest.$ac_ext <<_ACEOF
5738
/* end confdefs.h. */
5739
$ac_includes_default
5740
#include <utempter.h>
5742
rm -f conftest.$ac_objext
5743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5744
(eval $ac_compile) 2>&5
5746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747
(exit $ac_status); } &&
5748
{ ac_try='test -s conftest.$ac_objext'
5749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753
(exit $ac_status); }; }; then
5754
ac_header_compiler=yes
5756
echo "$as_me: failed program was:" >&5
5757
sed 's/^/| /' conftest.$ac_ext >&5
5759
ac_header_compiler=no
5761
rm -f conftest.$ac_objext conftest.$ac_ext
5762
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5763
echo "${ECHO_T}$ac_header_compiler" >&6
5765
# Is the header present?
5766
echo "$as_me:$LINENO: checking utempter.h presence" >&5
5767
echo $ECHO_N "checking utempter.h presence... $ECHO_C" >&6
5768
cat >conftest.$ac_ext <<_ACEOF
5769
#line $LINENO "configure"
5772
cat confdefs.h >>conftest.$ac_ext
5773
cat >>conftest.$ac_ext <<_ACEOF
5774
/* end confdefs.h. */
5775
#include <utempter.h>
5777
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5778
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5780
grep -v '^ *+' conftest.er1 >conftest.err
5782
cat conftest.err >&5
5783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784
(exit $ac_status); } >/dev/null; then
5785
if test -s conftest.err; then
5786
ac_cpp_err=$ac_c_preproc_warn_flag
5793
if test -z "$ac_cpp_err"; then
5794
ac_header_preproc=yes
5796
echo "$as_me: failed program was:" >&5
5797
sed 's/^/| /' conftest.$ac_ext >&5
5799
ac_header_preproc=no
5801
rm -f conftest.err conftest.$ac_ext
5802
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5803
echo "${ECHO_T}$ac_header_preproc" >&6
5805
# So? What about this header?
5806
case $ac_header_compiler:$ac_header_preproc in
5808
{ echo "$as_me:$LINENO: WARNING: utempter.h: accepted by the compiler, rejected by the preprocessor!" >&5
5809
echo "$as_me: WARNING: utempter.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5810
{ echo "$as_me:$LINENO: WARNING: utempter.h: proceeding with the preprocessor's result" >&5
5811
echo "$as_me: WARNING: utempter.h: proceeding with the preprocessor's result" >&2;}
5814
## ------------------------------------ ##
5815
## Report this to bug-autoconf@gnu.org. ##
5816
## ------------------------------------ ##
5819
sed "s/^/$as_me: WARNING: /" >&2
5822
{ echo "$as_me:$LINENO: WARNING: utempter.h: present but cannot be compiled" >&5
5823
echo "$as_me: WARNING: utempter.h: present but cannot be compiled" >&2;}
5824
{ echo "$as_me:$LINENO: WARNING: utempter.h: check for missing prerequisite headers?" >&5
5825
echo "$as_me: WARNING: utempter.h: check for missing prerequisite headers?" >&2;}
5826
{ echo "$as_me:$LINENO: WARNING: utempter.h: proceeding with the preprocessor's result" >&5
5827
echo "$as_me: WARNING: utempter.h: proceeding with the preprocessor's result" >&2;}
5830
## ------------------------------------ ##
5831
## Report this to bug-autoconf@gnu.org. ##
5832
## ------------------------------------ ##
5835
sed "s/^/$as_me: WARNING: /" >&2
5838
echo "$as_me:$LINENO: checking for utempter.h" >&5
5839
echo $ECHO_N "checking for utempter.h... $ECHO_C" >&6
5840
if test "${ac_cv_header_utempter_h+set}" = set; then
5841
echo $ECHO_N "(cached) $ECHO_C" >&6
5843
ac_cv_header_utempter_h=$ac_header_preproc
5845
echo "$as_me:$LINENO: result: $ac_cv_header_utempter_h" >&5
5846
echo "${ECHO_T}$ac_cv_header_utempter_h" >&6
5849
if test $ac_cv_header_utempter_h = yes; then
5856
if test "$have_utempter" = yes; then
5857
cat >>confdefs.h <<\_ACEOF
5858
#define HAVE_UTEMPTER 1
5861
LIBS="$LIBS -lutempter"
5864
{ echo "$as_me:$LINENO: checking for libutil(s)..." >&5
5865
echo "$as_me: checking for libutil(s)..." >&6;}
5866
test -f /usr/lib/libutils.a && LIBS="$LIBS -lutils"
5867
test -f /usr/lib/libutil.a && LIBS="$LIBS -lutil"
5869
{ echo "$as_me:$LINENO: checking getloadavg..." >&5
5870
echo "$as_me: checking getloadavg..." >&6;}
5871
cat >conftest.$ac_ext <<_ACEOF
5872
#line $LINENO "configure"
5875
cat confdefs.h >>conftest.$ac_ext
5876
cat >>conftest.$ac_ext <<_ACEOF
5877
/* end confdefs.h. */
5882
getloadavg((double *)0, 0);
5887
rm -f conftest.$ac_objext conftest$ac_exeext
5888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5889
(eval $ac_link) 2>&5
5891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892
(exit $ac_status); } &&
5893
{ ac_try='test -s conftest$ac_exeext'
5894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898
(exit $ac_status); }; }; then
5899
cat >>confdefs.h <<\_ACEOF
5900
#define LOADAV_GETLOADAVG 1
5904
echo "$as_me: failed program was:" >&5
5905
sed 's/^/| /' conftest.$ac_ext >&5
5907
if test -f /usr/lib/libkvm.a ; then
5910
{ echo "$as_me:$LINENO: checking getloadavg with -lkvm..." >&5
5911
echo "$as_me: checking getloadavg with -lkvm..." >&6;}
5912
cat >conftest.$ac_ext <<_ACEOF
5913
#line $LINENO "configure"
5916
cat confdefs.h >>conftest.$ac_ext
5917
cat >>conftest.$ac_ext <<_ACEOF
5918
/* end confdefs.h. */
5923
getloadavg((double *)0, 0);
5928
rm -f conftest.$ac_objext conftest$ac_exeext
5929
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5930
(eval $ac_link) 2>&5
5932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933
(exit $ac_status); } &&
5934
{ ac_try='test -s conftest$ac_exeext'
5935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939
(exit $ac_status); }; }; then
5940
cat >>confdefs.h <<\_ACEOF
5941
#define LOADAV_GETLOADAVG 1
5945
echo "$as_me: failed program was:" >&5
5946
sed 's/^/| /' conftest.$ac_ext >&5
5950
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5954
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5956
if test -z "$load" ; then
5957
cat >conftest.$ac_ext <<_ACEOF
5958
#line $LINENO "configure"
5961
cat confdefs.h >>conftest.$ac_ext
5962
cat >>conftest.$ac_ext <<_ACEOF
5963
/* end confdefs.h. */
5964
#if defined(NeXT) || defined(apollo) || defined(linux)
5969
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5970
$EGREP "yes" >/dev/null 2>&1; then
5976
if test -z "$load" ; then
5977
{ echo "$as_me:$LINENO: checking for kernelfile..." >&5
5978
echo "$as_me: checking for kernelfile..." >&6;}
5979
for core in /unix /vmunix /dynix /hp-ux /xelos /dev/ksyms /kernel/unix /kernel/genunix /unicos /mach /netbsd /386bsd /dgux /bsd /stand/vmunix; do
5980
if test -f $core || test -c $core; then
5984
if test ! -f $core && test ! -c $core ; then
5985
echo "- no kernelfile found" 1>&6
5988
echo "- using kernelfile '$core'" 1>&6
5990
if test -r $core ; then
5991
cat >>confdefs.h <<_ACEOF
5992
#define LOADAV_UNIX "$core"
5995
if test "${ac_cv_header_nlist_h+set}" = set; then
5996
echo "$as_me:$LINENO: checking for nlist.h" >&5
5997
echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
5998
if test "${ac_cv_header_nlist_h+set}" = set; then
5999
echo $ECHO_N "(cached) $ECHO_C" >&6
6001
echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
6002
echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
6004
# Is the header compilable?
6005
echo "$as_me:$LINENO: checking nlist.h usability" >&5
6006
echo $ECHO_N "checking nlist.h usability... $ECHO_C" >&6
6007
cat >conftest.$ac_ext <<_ACEOF
6008
#line $LINENO "configure"
6011
cat confdefs.h >>conftest.$ac_ext
6012
cat >>conftest.$ac_ext <<_ACEOF
6013
/* end confdefs.h. */
6014
$ac_includes_default
6017
rm -f conftest.$ac_objext
6018
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6019
(eval $ac_compile) 2>&5
6021
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022
(exit $ac_status); } &&
6023
{ ac_try='test -s conftest.$ac_objext'
6024
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028
(exit $ac_status); }; }; then
6029
ac_header_compiler=yes
6031
echo "$as_me: failed program was:" >&5
6032
sed 's/^/| /' conftest.$ac_ext >&5
6034
ac_header_compiler=no
6036
rm -f conftest.$ac_objext conftest.$ac_ext
6037
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6038
echo "${ECHO_T}$ac_header_compiler" >&6
6040
# Is the header present?
6041
echo "$as_me:$LINENO: checking nlist.h presence" >&5
6042
echo $ECHO_N "checking nlist.h presence... $ECHO_C" >&6
6043
cat >conftest.$ac_ext <<_ACEOF
6044
#line $LINENO "configure"
6047
cat confdefs.h >>conftest.$ac_ext
6048
cat >>conftest.$ac_ext <<_ACEOF
6049
/* end confdefs.h. */
6052
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6053
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6055
grep -v '^ *+' conftest.er1 >conftest.err
6057
cat conftest.err >&5
6058
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059
(exit $ac_status); } >/dev/null; then
6060
if test -s conftest.err; then
6061
ac_cpp_err=$ac_c_preproc_warn_flag
6068
if test -z "$ac_cpp_err"; then
6069
ac_header_preproc=yes
6071
echo "$as_me: failed program was:" >&5
6072
sed 's/^/| /' conftest.$ac_ext >&5
6074
ac_header_preproc=no
6076
rm -f conftest.err conftest.$ac_ext
6077
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6078
echo "${ECHO_T}$ac_header_preproc" >&6
6080
# So? What about this header?
6081
case $ac_header_compiler:$ac_header_preproc in
6083
{ echo "$as_me:$LINENO: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&5
6084
echo "$as_me: WARNING: nlist.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6085
{ echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
6086
echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
6089
## ------------------------------------ ##
6090
## Report this to bug-autoconf@gnu.org. ##
6091
## ------------------------------------ ##
6094
sed "s/^/$as_me: WARNING: /" >&2
6097
{ echo "$as_me:$LINENO: WARNING: nlist.h: present but cannot be compiled" >&5
6098
echo "$as_me: WARNING: nlist.h: present but cannot be compiled" >&2;}
6099
{ echo "$as_me:$LINENO: WARNING: nlist.h: check for missing prerequisite headers?" >&5
6100
echo "$as_me: WARNING: nlist.h: check for missing prerequisite headers?" >&2;}
6101
{ echo "$as_me:$LINENO: WARNING: nlist.h: proceeding with the preprocessor's result" >&5
6102
echo "$as_me: WARNING: nlist.h: proceeding with the preprocessor's result" >&2;}
6105
## ------------------------------------ ##
6106
## Report this to bug-autoconf@gnu.org. ##
6107
## ------------------------------------ ##
6110
sed "s/^/$as_me: WARNING: /" >&2
6113
echo "$as_me:$LINENO: checking for nlist.h" >&5
6114
echo $ECHO_N "checking for nlist.h... $ECHO_C" >&6
6115
if test "${ac_cv_header_nlist_h+set}" = set; then
6116
echo $ECHO_N "(cached) $ECHO_C" >&6
6118
ac_cv_header_nlist_h=$ac_header_preproc
6120
echo "$as_me:$LINENO: result: $ac_cv_header_nlist_h" >&5
6121
echo "${ECHO_T}$ac_cv_header_nlist_h" >&6
6124
if test $ac_cv_header_nlist_h = yes; then
6125
cat >>confdefs.h <<\_ACEOF
6126
#define NLIST_STRUCT 1
6129
{ echo "$as_me:$LINENO: checking n_un in struct nlist..." >&5
6130
echo "$as_me: checking n_un in struct nlist..." >&6;}
6131
cat >conftest.$ac_ext <<_ACEOF
6132
#line $LINENO "configure"
6135
cat confdefs.h >>conftest.$ac_ext
6136
cat >>conftest.$ac_ext <<_ACEOF
6137
/* end confdefs.h. */
6142
struct nlist n; n.n_un.n_name = 0;
6147
rm -f conftest.$ac_objext
6148
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6149
(eval $ac_compile) 2>&5
6151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152
(exit $ac_status); } &&
6153
{ ac_try='test -s conftest.$ac_objext'
6154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158
(exit $ac_status); }; }; then
6159
cat >>confdefs.h <<\_ACEOF
6160
#define NLIST_NAME_UNION 1
6164
echo "$as_me: failed program was:" >&5
6165
sed 's/^/| /' conftest.$ac_ext >&5
6168
rm -f conftest.$ac_objext conftest.$ac_ext
6173
{ echo "$as_me:$LINENO: checking for nlist declaration..." >&5
6174
echo "$as_me: checking for nlist declaration..." >&6;}
6175
cat >conftest.$ac_ext <<_ACEOF
6176
#line $LINENO "configure"
6179
cat confdefs.h >>conftest.$ac_ext
6180
cat >>conftest.$ac_ext <<_ACEOF
6181
/* end confdefs.h. */
6190
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6191
$EGREP "nlist(( | )( | )*.*\(|\()" >/dev/null 2>&1; then
6192
cat >>confdefs.h <<\_ACEOF
6193
#define NLIST_DECLARED 1
6200
{ echo "$as_me:$LINENO: checking for avenrun symbol..." >&5
6201
echo "$as_me: checking for avenrun symbol..." >&6;}
6203
for av in avenrun _avenrun _Loadavg avenrun _avenrun _Loadavg; do
6204
if test "$cross_compiling" = yes; then
6205
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6206
See \`config.log' for more details." >&5
6207
echo "$as_me: error: cannot run test program while cross compiling
6208
See \`config.log' for more details." >&2;}
6209
{ (exit 1); exit 1; }; }
6211
cat >conftest.$ac_ext <<_ACEOF
6212
#line $LINENO "configure"
6215
cat confdefs.h >>conftest.$ac_ext
6216
cat >>conftest.$ac_ext <<_ACEOF
6217
/* end confdefs.h. */
6219
#include <sys/types.h>
6232
#if !defined(_AUX_SOURCE) && !defined(AUX)
6233
# ifdef NLIST_NAME_UNION
6234
nl[0].n_un.n_name = "$av";
6236
nl[0].n_name = "$av";
6239
strncpy(nl[0].n_name, "$av", sizeof(nl[0].n_name));
6241
nlist(LOADAV_UNIX, nl);
6242
if (nl[0].n_value == 0)
6248
rm -f conftest$ac_exeext
6249
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6250
(eval $ac_link) 2>&5
6252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6254
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258
(exit $ac_status); }; }; then
6261
echo "$as_me: program exited with status $ac_status" >&5
6262
echo "$as_me: failed program was:" >&5
6263
sed 's/^/| /' conftest.$ac_ext >&5
6266
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6268
if test "$av" = _Loadavg; then
6269
nlist64='#define nlist nlist64'
6272
if test -z "$avensym" ; then
6273
echo "- no avenrun symbol found" 1>&6
6276
echo "- using avenrun symbol '$avensym'" 1>&6
6278
cat >>confdefs.h <<_ACEOF
6279
#define LOADAV_AVENRUN "$avensym"
6282
if test -n "$nlist64"; then
6283
echo "- used nlist64 to find it" 1>&6
6285
cat >>confdefs.h <<\_ACEOF
6286
#define LOADAV_USE_NLIST64 1
6293
echo "Can't configure the load average display feature" 1>&6
6295
echo "because $core is not readable by you." 1>&6
6297
echo "To configure the load average display feature" 1>&6
6299
echo "re-run configure as root if possible." 1>&6
6301
echo "If you are not the system administrator then disregard" 1>&6
6303
echo "this warning. You can still use screen without" 1>&6
6305
echo "the load average display feature." 1>&6
6311
cat > conftest.c <<EOF
6312
#include "confdefs.h"
6314
#include <sys/types.h>
6315
#include <sys/param.h>
6319
#if !defined(LOADAV_GETLOADAVG) && ((defined(hp300) && !defined(__hpux)) || defined(sun) || (defined(ultrix) && defined(mips)) || defined(_SEQUENT_) || defined(sgi) || (defined(SVR4) && !defined(__hpux)) || defined(sony_news) || (!defined(__osf__) && defined(__alpha)) || defined(_IBMR2) || defined(_AUX_SOURCE) || defined(AUX) || defined(m88k))
6321
# if defined(apollo) || defined(_IBMR2) || defined(_AUX_SOURCE) || defined(AUX)
6324
# if defined(FSCALE) && !defined(__osf__)
6332
# if defined(MIPS) || defined(SVR4) || defined(m88k)
6334
# else /* not MIPS */
6335
loadscale=1000 /* our default value */
6338
# endif /* not FSCALE */
6339
# endif /* not apollo */
6351
eval "$ac_cpp conftest.c 2>&5 | sed -e '1,/_CUT_HERE_/d' -e 's/ //g' > conftest.out"
6356
if test -n "$load" ; then cat >>confdefs.h <<\_ACEOF
6360
if test -n "$loadtype" ; then cat >>confdefs.h <<_ACEOF
6361
#define LOADAV_TYPE $loadtype
6364
if test -n "$loadnum" ; then cat >>confdefs.h <<_ACEOF
6365
#define LOADAV_NUM $loadnum
6368
if test -n "$loadscale" ; then cat >>confdefs.h <<_ACEOF
6369
#define LOADAV_SCALE $loadscale
6373
if test -n "$posix" ; then
6375
echo "assuming posix signal definition" 1>&6
6377
cat >>confdefs.h <<\_ACEOF
6384
{ echo "$as_me:$LINENO: checking return type of signal handlers..." >&5
6385
echo "$as_me: checking return type of signal handlers..." >&6;}
6386
cat >conftest.$ac_ext <<_ACEOF
6387
#line $LINENO "configure"
6390
cat confdefs.h >>conftest.$ac_ext
6391
cat >>conftest.$ac_ext <<_ACEOF
6392
/* end confdefs.h. */
6393
#include <sys/types.h>
6398
extern void (*signal ()) ();
6407
rm -f conftest.$ac_objext
6408
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6409
(eval $ac_compile) 2>&5
6411
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412
(exit $ac_status); } &&
6413
{ ac_try='test -s conftest.$ac_objext'
6414
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418
(exit $ac_status); }; }; then
6419
cat >>confdefs.h <<\_ACEOF
6424
echo "$as_me: failed program was:" >&5
6425
sed 's/^/| /' conftest.$ac_ext >&5
6428
rm -f conftest.$ac_objext conftest.$ac_ext
6429
{ echo "$as_me:$LINENO: checking sigset..." >&5
6430
echo "$as_me: checking sigset..." >&6;}
6431
cat >conftest.$ac_ext <<_ACEOF
6432
#line $LINENO "configure"
6435
cat confdefs.h >>conftest.$ac_ext
6436
cat >>conftest.$ac_ext <<_ACEOF
6437
/* end confdefs.h. */
6439
#include <sys/types.h>
6447
sigset(0, (void (*)())0);
6449
sigset(0, (int (*)())0);
6456
rm -f conftest.$ac_objext conftest$ac_exeext
6457
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6458
(eval $ac_link) 2>&5
6460
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461
(exit $ac_status); } &&
6462
{ ac_try='test -s conftest$ac_exeext'
6463
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467
(exit $ac_status); }; }; then
6468
cat >>confdefs.h <<\_ACEOF
6473
echo "$as_me: failed program was:" >&5
6474
sed 's/^/| /' conftest.$ac_ext >&5
6477
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6478
{ echo "$as_me:$LINENO: checking signal implementation..." >&5
6479
echo "$as_me: checking signal implementation..." >&6;}
6480
if test "$cross_compiling" = yes; then
6481
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6482
See \`config.log' for more details." >&5
6483
echo "$as_me: error: cannot run test program while cross compiling
6484
See \`config.log' for more details." >&2;}
6485
{ (exit 1); exit 1; }; }
6487
cat >conftest.$ac_ext <<_ACEOF
6488
#line $LINENO "configure"
6491
cat confdefs.h >>conftest.$ac_ext
6492
cat >>conftest.$ac_ext <<_ACEOF
6493
/* end confdefs.h. */
6495
#include <sys/types.h>
6499
#define SIGCLD SIGCHLD
6502
#define signal sigset
6517
/* on hpux we use sigvec to get bsd signals */
6519
(void)signal(SIGCLD, hand);
6520
kill(getpid(), SIGCLD);
6521
kill(getpid(), SIGCLD);
6529
rm -f conftest$ac_exeext
6530
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6531
(eval $ac_link) 2>&5
6533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6535
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539
(exit $ac_status); }; }; then
6542
echo "$as_me: program exited with status $ac_status" >&5
6543
echo "$as_me: failed program was:" >&5
6544
sed 's/^/| /' conftest.$ac_ext >&5
6547
cat >>confdefs.h <<\_ACEOF
6552
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6558
{ echo "$as_me:$LINENO: checking for crypt and sec libraries..." >&5
6559
echo "$as_me: checking for crypt and sec libraries..." >&6;}
6560
test -f /lib/libcrypt_d.a || test -f /usr/lib/libcrypt_d.a && LIBS="$LIBS -lcrypt_d"
6562
LIBS="$LIBS -lcrypt"
6563
{ echo "$as_me:$LINENO: checking crypt..." >&5
6564
echo "$as_me: checking crypt..." >&6;}
6565
cat >conftest.$ac_ext <<_ACEOF
6566
#line $LINENO "configure"
6569
cat confdefs.h >>conftest.$ac_ext
6570
cat >>conftest.$ac_ext <<_ACEOF
6571
/* end confdefs.h. */
6581
rm -f conftest.$ac_objext conftest$ac_exeext
6582
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6583
(eval $ac_link) 2>&5
6585
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586
(exit $ac_status); } &&
6587
{ ac_try='test -s conftest$ac_exeext'
6588
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592
(exit $ac_status); }; }; then
6595
echo "$as_me: failed program was:" >&5
6596
sed 's/^/| /' conftest.$ac_ext >&5
6600
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6601
test -f /lib/libsec.a || test -f /usr/lib/libsec.a && LIBS="$LIBS -lsec"
6602
test -f /lib/libshadow.a || test -f /usr/lib/libshadow.a && LIBS="$LIBS -lshadow"
6605
{ echo "$as_me:$LINENO: checking IRIX sun library..." >&5
6606
echo "$as_me: checking IRIX sun library..." >&6;}
6607
cat >conftest.$ac_ext <<_ACEOF
6608
#line $LINENO "configure"
6611
cat confdefs.h >>conftest.$ac_ext
6612
cat >>conftest.$ac_ext <<_ACEOF
6613
/* end confdefs.h. */
6623
rm -f conftest.$ac_objext conftest$ac_exeext
6624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6625
(eval $ac_link) 2>&5
6627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628
(exit $ac_status); } &&
6629
{ ac_try='test -s conftest$ac_exeext'
6630
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634
(exit $ac_status); }; }; then
6637
echo "$as_me: failed program was:" >&5
6638
sed 's/^/| /' conftest.$ac_ext >&5
6642
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6644
{ echo "$as_me:$LINENO: checking syslog..." >&5
6645
echo "$as_me: checking syslog..." >&6;}
6646
cat >conftest.$ac_ext <<_ACEOF
6647
#line $LINENO "configure"
6650
cat confdefs.h >>conftest.$ac_ext
6651
cat >>conftest.$ac_ext <<_ACEOF
6652
/* end confdefs.h. */
6662
rm -f conftest.$ac_objext conftest$ac_exeext
6663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6664
(eval $ac_link) 2>&5
6666
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667
(exit $ac_status); } &&
6668
{ ac_try='test -s conftest$ac_exeext'
6669
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673
(exit $ac_status); }; }; then
6676
echo "$as_me: failed program was:" >&5
6677
sed 's/^/| /' conftest.$ac_ext >&5
6681
{ echo "$as_me:$LINENO: checking syslog in libbsd.a..." >&5
6682
echo "$as_me: checking syslog in libbsd.a..." >&6;}
6683
cat >conftest.$ac_ext <<_ACEOF
6684
#line $LINENO "configure"
6687
cat confdefs.h >>conftest.$ac_ext
6688
cat >>conftest.$ac_ext <<_ACEOF
6689
/* end confdefs.h. */
6699
rm -f conftest.$ac_objext conftest$ac_exeext
6700
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6701
(eval $ac_link) 2>&5
6703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704
(exit $ac_status); } &&
6705
{ ac_try='test -s conftest$ac_exeext'
6706
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710
(exit $ac_status); }; }; then
6711
echo "- found." 1>&6
6714
echo "$as_me: failed program was:" >&5
6715
sed 's/^/| /' conftest.$ac_ext >&5
6718
echo "- bad news: syslog missing." 1>&6
6719
cat >>confdefs.h <<\_ACEOF
6724
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6726
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6728
cat >conftest.$ac_ext <<_ACEOF
6729
#line $LINENO "configure"
6732
cat confdefs.h >>conftest.$ac_ext
6733
cat >>conftest.$ac_ext <<_ACEOF
6734
/* end confdefs.h. */
6740
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6741
$EGREP "yes" >/dev/null 2>&1; then
6742
LIBS="$LIBS -lsocket -lcrypt_i"
6747
{ echo "$as_me:$LINENO: checking wait union..." >&5
6748
echo "$as_me: checking wait union..." >&6;}
6749
cat >conftest.$ac_ext <<_ACEOF
6750
#line $LINENO "configure"
6753
cat confdefs.h >>conftest.$ac_ext
6754
cat >>conftest.$ac_ext <<_ACEOF
6755
/* end confdefs.h. */
6756
#include <sys/types.h>
6757
#include <sys/wait.h>
6773
rm -f conftest.$ac_objext
6774
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775
(eval $ac_compile) 2>&5
6777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778
(exit $ac_status); } &&
6779
{ ac_try='test -s conftest.$ac_objext'
6780
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784
(exit $ac_status); }; }; then
6785
cat >>confdefs.h <<\_ACEOF
6790
echo "$as_me: failed program was:" >&5
6791
sed 's/^/| /' conftest.$ac_ext >&5
6794
rm -f conftest.$ac_objext conftest.$ac_ext
6796
if test -z "$butterfly"; then
6797
{ echo "$as_me:$LINENO: checking for termio or termios..." >&5
6798
echo "$as_me: checking for termio or termios..." >&6;}
6799
cat >conftest.$ac_ext <<_ACEOF
6800
#line $LINENO "configure"
6803
cat confdefs.h >>conftest.$ac_ext
6804
cat >>conftest.$ac_ext <<_ACEOF
6805
/* end confdefs.h. */
6808
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6809
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6811
grep -v '^ *+' conftest.er1 >conftest.err
6813
cat conftest.err >&5
6814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815
(exit $ac_status); } >/dev/null; then
6816
if test -s conftest.err; then
6817
ac_cpp_err=$ac_c_preproc_warn_flag
6824
if test -z "$ac_cpp_err"; then
6825
cat >>confdefs.h <<\_ACEOF
6830
echo "$as_me: failed program was:" >&5
6831
sed 's/^/| /' conftest.$ac_ext >&5
6833
if test -n "$posix"; then
6834
cat >conftest.$ac_ext <<_ACEOF
6835
#line $LINENO "configure"
6838
cat confdefs.h >>conftest.$ac_ext
6839
cat >>conftest.$ac_ext <<_ACEOF
6840
/* end confdefs.h. */
6841
#include <termios.h>
6843
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6844
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6846
grep -v '^ *+' conftest.er1 >conftest.err
6848
cat conftest.err >&5
6849
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6850
(exit $ac_status); } >/dev/null; then
6851
if test -s conftest.err; then
6852
ac_cpp_err=$ac_c_preproc_warn_flag
6859
if test -z "$ac_cpp_err"; then
6860
cat >>confdefs.h <<\_ACEOF
6865
echo "$as_me: failed program was:" >&5
6866
sed 's/^/| /' conftest.$ac_ext >&5
6870
rm -f conftest.err conftest.$ac_ext
6874
rm -f conftest.err conftest.$ac_ext
6877
{ echo "$as_me:$LINENO: checking getspnam..." >&5
6878
echo "$as_me: checking getspnam..." >&6;}
6879
cat >conftest.$ac_ext <<_ACEOF
6880
#line $LINENO "configure"
6883
cat confdefs.h >>conftest.$ac_ext
6884
cat >>conftest.$ac_ext <<_ACEOF
6885
/* end confdefs.h. */
6895
rm -f conftest.$ac_objext conftest$ac_exeext
6896
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6897
(eval $ac_link) 2>&5
6899
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900
(exit $ac_status); } &&
6901
{ ac_try='test -s conftest$ac_exeext'
6902
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906
(exit $ac_status); }; }; then
6907
cat >>confdefs.h <<\_ACEOF
6912
echo "$as_me: failed program was:" >&5
6913
sed 's/^/| /' conftest.$ac_ext >&5
6916
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6918
{ echo "$as_me:$LINENO: checking getttyent..." >&5
6919
echo "$as_me: checking getttyent..." >&6;}
6920
cat >conftest.$ac_ext <<_ACEOF
6921
#line $LINENO "configure"
6924
cat confdefs.h >>conftest.$ac_ext
6925
cat >>conftest.$ac_ext <<_ACEOF
6926
/* end confdefs.h. */
6936
rm -f conftest.$ac_objext conftest$ac_exeext
6937
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938
(eval $ac_link) 2>&5
6940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941
(exit $ac_status); } &&
6942
{ ac_try='test -s conftest$ac_exeext'
6943
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6946
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947
(exit $ac_status); }; }; then
6948
cat >>confdefs.h <<\_ACEOF
6953
echo "$as_me: failed program was:" >&5
6954
sed 's/^/| /' conftest.$ac_ext >&5
6957
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6959
{ echo "$as_me:$LINENO: checking fdwalk..." >&5
6960
echo "$as_me: checking fdwalk..." >&6;}
6961
cat >conftest.$ac_ext <<_ACEOF
6962
#line $LINENO "configure"
6965
cat confdefs.h >>conftest.$ac_ext
6966
cat >>conftest.$ac_ext <<_ACEOF
6967
/* end confdefs.h. */
6977
rm -f conftest.$ac_objext conftest$ac_exeext
6978
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6979
(eval $ac_link) 2>&5
6981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982
(exit $ac_status); } &&
6983
{ ac_try='test -s conftest$ac_exeext'
6984
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988
(exit $ac_status); }; }; then
6989
cat >>confdefs.h <<\_ACEOF
6990
#define HAVE_FDWALK 1
6994
echo "$as_me: failed program was:" >&5
6995
sed 's/^/| /' conftest.$ac_ext >&5
6998
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7000
{ echo "$as_me:$LINENO: checking whether memcpy/memmove/bcopy handles overlapping arguments..." >&5
7001
echo "$as_me: checking whether memcpy/memmove/bcopy handles overlapping arguments..." >&6;}
7002
if test "$cross_compiling" = yes; then
7003
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7004
See \`config.log' for more details." >&5
7005
echo "$as_me: error: cannot run test program while cross compiling
7006
See \`config.log' for more details." >&2;}
7007
{ (exit 1); exit 1; }; }
7009
cat >conftest.$ac_ext <<_ACEOF
7010
#line $LINENO "configure"
7013
cat confdefs.h >>conftest.$ac_ext
7014
cat >>conftest.$ac_ext <<_ACEOF
7015
/* end confdefs.h. */
7019
strcpy(buf, "abcdefghi");
7020
bcopy(buf, buf + 2, 3);
7021
if (strncmp(buf, "ababcf", 6))
7023
strcpy(buf, "abcdefghi");
7024
bcopy(buf + 2, buf, 3);
7025
if (strncmp(buf, "cdedef", 6))
7027
exit(0); /* libc version works properly. */
7030
rm -f conftest$ac_exeext
7031
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7032
(eval $ac_link) 2>&5
7034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7036
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7039
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040
(exit $ac_status); }; }; then
7041
cat >>confdefs.h <<\_ACEOF
7046
echo "$as_me: program exited with status $ac_status" >&5
7047
echo "$as_me: failed program was:" >&5
7048
sed 's/^/| /' conftest.$ac_ext >&5
7051
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7054
if test "$cross_compiling" = yes; then
7055
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7056
See \`config.log' for more details." >&5
7057
echo "$as_me: error: cannot run test program while cross compiling
7058
See \`config.log' for more details." >&2;}
7059
{ (exit 1); exit 1; }; }
7061
cat >conftest.$ac_ext <<_ACEOF
7062
#line $LINENO "configure"
7065
cat confdefs.h >>conftest.$ac_ext
7066
cat >>conftest.$ac_ext <<_ACEOF
7067
/* end confdefs.h. */
7069
#define bcopy(s,d,l) memmove(d,s,l)
7072
strcpy(buf, "abcdefghi");
7073
bcopy(buf, buf + 2, 3);
7074
if (strncmp(buf, "ababcf", 6))
7076
strcpy(buf, "abcdefghi");
7077
bcopy(buf + 2, buf, 3);
7078
if (strncmp(buf, "cdedef", 6))
7080
exit(0); /* libc version works properly. */
7083
rm -f conftest$ac_exeext
7084
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7085
(eval $ac_link) 2>&5
7087
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7089
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093
(exit $ac_status); }; }; then
7094
cat >>confdefs.h <<\_ACEOF
7095
#define USEMEMMOVE 1
7099
echo "$as_me: program exited with status $ac_status" >&5
7100
echo "$as_me: failed program was:" >&5
7101
sed 's/^/| /' conftest.$ac_ext >&5
7104
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7108
if test "$cross_compiling" = yes; then
7109
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7110
See \`config.log' for more details." >&5
7111
echo "$as_me: error: cannot run test program while cross compiling
7112
See \`config.log' for more details." >&2;}
7113
{ (exit 1); exit 1; }; }
7115
cat >conftest.$ac_ext <<_ACEOF
7116
#line $LINENO "configure"
7119
cat confdefs.h >>conftest.$ac_ext
7120
cat >>conftest.$ac_ext <<_ACEOF
7121
/* end confdefs.h. */
7123
#define bcopy(s,d,l) memcpy(d,s,l)
7126
strcpy(buf, "abcdefghi");
7127
bcopy(buf, buf + 2, 3);
7128
if (strncmp(buf, "ababcf", 6))
7130
strcpy(buf, "abcdefghi");
7131
bcopy(buf + 2, buf, 3);
7132
if (strncmp(buf, "cdedef", 6))
7134
exit(0); /* libc version works properly. */
7137
rm -f conftest$ac_exeext
7138
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7139
(eval $ac_link) 2>&5
7141
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147
(exit $ac_status); }; }; then
7148
cat >>confdefs.h <<\_ACEOF
7153
echo "$as_me: program exited with status $ac_status" >&5
7154
echo "$as_me: failed program was:" >&5
7155
sed 's/^/| /' conftest.$ac_ext >&5
7158
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7161
echo "$as_me:$LINENO: checking long file names" >&5
7162
echo $ECHO_N "checking long file names... $ECHO_C" >&6
7163
(echo 1 > /tmp/conftest9012345) 2>/dev/null
7164
(echo 2 > /tmp/conftest9012346) 2>/dev/null
7165
val=`cat /tmp/conftest9012345 2>/dev/null`
7166
if test -f /tmp/conftest9012345 && test "$val" = 1; then
7167
echo "$as_me:$LINENO: result: yes" >&5
7168
echo "${ECHO_T}yes" >&6
7170
echo "$as_me:$LINENO: result: no" >&5
7171
echo "${ECHO_T}no" >&6
7172
cat >>confdefs.h <<\_ACEOF
7177
rm -f /tmp/conftest*
7179
echo "$as_me:$LINENO: checking for vsprintf" >&5
7180
echo $ECHO_N "checking for vsprintf... $ECHO_C" >&6
7181
cat >conftest.$ac_ext <<_ACEOF
7182
#line $LINENO "configure"
7185
cat confdefs.h >>conftest.$ac_ext
7186
cat >>conftest.$ac_ext <<_ACEOF
7187
/* end confdefs.h. */
7197
rm -f conftest.$ac_objext conftest$ac_exeext
7198
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199
(eval $ac_link) 2>&5
7201
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202
(exit $ac_status); } &&
7203
{ ac_try='test -s conftest$ac_exeext'
7204
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208
(exit $ac_status); }; }; then
7209
echo "$as_me:$LINENO: result: yes" >&5
7210
echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\_ACEOF
7211
#define USEVARARGS 1
7215
echo "$as_me: failed program was:" >&5
7216
sed 's/^/| /' conftest.$ac_ext >&5
7218
echo "$as_me:$LINENO: result: no" >&5
7219
echo "${ECHO_T}no" >&6
7221
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7229
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7230
as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7231
echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7232
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
7233
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7234
echo $ECHO_N "(cached) $ECHO_C" >&6
7236
cat >conftest.$ac_ext <<_ACEOF
7237
#line $LINENO "configure"
7240
cat confdefs.h >>conftest.$ac_ext
7241
cat >>conftest.$ac_ext <<_ACEOF
7242
/* end confdefs.h. */
7243
#include <sys/types.h>
7255
rm -f conftest.$ac_objext
7256
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7257
(eval $ac_compile) 2>&5
7259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260
(exit $ac_status); } &&
7261
{ ac_try='test -s conftest.$ac_objext'
7262
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266
(exit $ac_status); }; }; then
7267
eval "$as_ac_Header=yes"
7269
echo "$as_me: failed program was:" >&5
7270
sed 's/^/| /' conftest.$ac_ext >&5
7272
eval "$as_ac_Header=no"
7274
rm -f conftest.$ac_objext conftest.$ac_ext
7276
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7277
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7278
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7279
cat >>confdefs.h <<_ACEOF
7280
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7283
ac_header_dirent=$ac_hdr; break
7287
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7288
if test $ac_header_dirent = dirent.h; then
7289
echo "$as_me:$LINENO: checking for library containing opendir" >&5
7290
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7291
if test "${ac_cv_search_opendir+set}" = set; then
7292
echo $ECHO_N "(cached) $ECHO_C" >&6
7294
ac_func_search_save_LIBS=$LIBS
7295
ac_cv_search_opendir=no
7296
cat >conftest.$ac_ext <<_ACEOF
7297
#line $LINENO "configure"
7300
cat confdefs.h >>conftest.$ac_ext
7301
cat >>conftest.$ac_ext <<_ACEOF
7302
/* end confdefs.h. */
7304
/* Override any gcc2 internal prototype to avoid an error. */
7308
/* We use char because int might match the return type of a gcc2
7309
builtin and then its argument prototype would still apply. */
7319
rm -f conftest.$ac_objext conftest$ac_exeext
7320
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7321
(eval $ac_link) 2>&5
7323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324
(exit $ac_status); } &&
7325
{ ac_try='test -s conftest$ac_exeext'
7326
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330
(exit $ac_status); }; }; then
7331
ac_cv_search_opendir="none required"
7333
echo "$as_me: failed program was:" >&5
7334
sed 's/^/| /' conftest.$ac_ext >&5
7337
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7338
if test "$ac_cv_search_opendir" = no; then
7339
for ac_lib in dir; do
7340
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7341
cat >conftest.$ac_ext <<_ACEOF
7342
#line $LINENO "configure"
7345
cat confdefs.h >>conftest.$ac_ext
7346
cat >>conftest.$ac_ext <<_ACEOF
7347
/* end confdefs.h. */
7349
/* Override any gcc2 internal prototype to avoid an error. */
7353
/* We use char because int might match the return type of a gcc2
7354
builtin and then its argument prototype would still apply. */
7364
rm -f conftest.$ac_objext conftest$ac_exeext
7365
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7366
(eval $ac_link) 2>&5
7368
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7369
(exit $ac_status); } &&
7370
{ ac_try='test -s conftest$ac_exeext'
7371
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7375
(exit $ac_status); }; }; then
7376
ac_cv_search_opendir="-l$ac_lib"
7379
echo "$as_me: failed program was:" >&5
7380
sed 's/^/| /' conftest.$ac_ext >&5
7383
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7386
LIBS=$ac_func_search_save_LIBS
7388
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7389
echo "${ECHO_T}$ac_cv_search_opendir" >&6
7390
if test "$ac_cv_search_opendir" != no; then
7391
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7396
echo "$as_me:$LINENO: checking for library containing opendir" >&5
7397
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
7398
if test "${ac_cv_search_opendir+set}" = set; then
7399
echo $ECHO_N "(cached) $ECHO_C" >&6
7401
ac_func_search_save_LIBS=$LIBS
7402
ac_cv_search_opendir=no
7403
cat >conftest.$ac_ext <<_ACEOF
7404
#line $LINENO "configure"
7407
cat confdefs.h >>conftest.$ac_ext
7408
cat >>conftest.$ac_ext <<_ACEOF
7409
/* end confdefs.h. */
7411
/* Override any gcc2 internal prototype to avoid an error. */
7415
/* We use char because int might match the return type of a gcc2
7416
builtin and then its argument prototype would still apply. */
7426
rm -f conftest.$ac_objext conftest$ac_exeext
7427
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7428
(eval $ac_link) 2>&5
7430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431
(exit $ac_status); } &&
7432
{ ac_try='test -s conftest$ac_exeext'
7433
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7436
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437
(exit $ac_status); }; }; then
7438
ac_cv_search_opendir="none required"
7440
echo "$as_me: failed program was:" >&5
7441
sed 's/^/| /' conftest.$ac_ext >&5
7444
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7445
if test "$ac_cv_search_opendir" = no; then
7447
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7448
cat >conftest.$ac_ext <<_ACEOF
7449
#line $LINENO "configure"
7452
cat confdefs.h >>conftest.$ac_ext
7453
cat >>conftest.$ac_ext <<_ACEOF
7454
/* end confdefs.h. */
7456
/* Override any gcc2 internal prototype to avoid an error. */
7460
/* We use char because int might match the return type of a gcc2
7461
builtin and then its argument prototype would still apply. */
7471
rm -f conftest.$ac_objext conftest$ac_exeext
7472
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7473
(eval $ac_link) 2>&5
7475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476
(exit $ac_status); } &&
7477
{ ac_try='test -s conftest$ac_exeext'
7478
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482
(exit $ac_status); }; }; then
7483
ac_cv_search_opendir="-l$ac_lib"
7486
echo "$as_me: failed program was:" >&5
7487
sed 's/^/| /' conftest.$ac_ext >&5
7490
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7493
LIBS=$ac_func_search_save_LIBS
7495
echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7496
echo "${ECHO_T}$ac_cv_search_opendir" >&6
7497
if test "$ac_cv_search_opendir" != no; then
7498
test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7505
echo "$as_me:$LINENO: checking for setenv" >&5
7506
echo $ECHO_N "checking for setenv... $ECHO_C" >&6
7507
cat >conftest.$ac_ext <<_ACEOF
7508
#line $LINENO "configure"
7511
cat confdefs.h >>conftest.$ac_ext
7512
cat >>conftest.$ac_ext <<_ACEOF
7513
/* end confdefs.h. */
7518
setenv((char *)0,(char *)0);unsetenv((char *)0);
7523
rm -f conftest.$ac_objext conftest$ac_exeext
7524
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7525
(eval $ac_link) 2>&5
7527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528
(exit $ac_status); } &&
7529
{ ac_try='test -s conftest$ac_exeext'
7530
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7533
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534
(exit $ac_status); }; }; then
7535
echo "$as_me:$LINENO: result: yes" >&5
7536
echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\_ACEOF
7541
echo "$as_me: failed program was:" >&5
7542
sed 's/^/| /' conftest.$ac_ext >&5
7544
echo "$as_me:$LINENO: result: no" >&5
7545
echo "${ECHO_T}no" >&6
7546
echo "$as_me:$LINENO: checking for putenv" >&5
7547
echo $ECHO_N "checking for putenv... $ECHO_C" >&6
7548
cat >conftest.$ac_ext <<_ACEOF
7549
#line $LINENO "configure"
7552
cat confdefs.h >>conftest.$ac_ext
7553
cat >>conftest.$ac_ext <<_ACEOF
7554
/* end confdefs.h. */
7559
putenv((char *)0);unsetenv((char *)0);
7564
rm -f conftest.$ac_objext conftest$ac_exeext
7565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7566
(eval $ac_link) 2>&5
7568
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569
(exit $ac_status); } &&
7570
{ ac_try='test -s conftest$ac_exeext'
7571
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7574
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575
(exit $ac_status); }; }; then
7576
echo "$as_me:$LINENO: result: yes" >&5
7577
echo "${ECHO_T}yes" >&6
7579
echo "$as_me: failed program was:" >&5
7580
sed 's/^/| /' conftest.$ac_ext >&5
7582
echo "$as_me:$LINENO: result: no" >&5
7583
echo "${ECHO_T}no" >&6;cat >>confdefs.h <<\_ACEOF
7584
#define NEEDPUTENV 1
7589
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7591
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7592
echo "$as_me:$LINENO: checking for nl_langinfo(CODESET)" >&5
7593
echo $ECHO_N "checking for nl_langinfo(CODESET)... $ECHO_C" >&6
7594
cat >conftest.$ac_ext <<_ACEOF
7595
#line $LINENO "configure"
7598
cat confdefs.h >>conftest.$ac_ext
7599
cat >>conftest.$ac_ext <<_ACEOF
7600
/* end confdefs.h. */
7602
#include <langinfo.h>
7607
nl_langinfo(CODESET);
7612
rm -f conftest.$ac_objext conftest$ac_exeext
7613
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7614
(eval $ac_link) 2>&5
7616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617
(exit $ac_status); } &&
7618
{ ac_try='test -s conftest$ac_exeext'
7619
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623
(exit $ac_status); }; }; then
7624
echo "$as_me:$LINENO: result: yes" >&5
7625
echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\_ACEOF
7626
#define HAVE_NL_LANGINFO 1
7630
echo "$as_me: failed program was:" >&5
7631
sed 's/^/| /' conftest.$ac_ext >&5
7633
echo "$as_me:$LINENO: result: no" >&5
7634
echo "${ECHO_T}no" >&6
7636
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7638
echo "$as_me:$LINENO: checking for library containing gethostname" >&5
7639
echo $ECHO_N "checking for library containing gethostname... $ECHO_C" >&6
7640
if test "${ac_cv_search_gethostname+set}" = set; then
7641
echo $ECHO_N "(cached) $ECHO_C" >&6
7643
ac_func_search_save_LIBS=$LIBS
7644
ac_cv_search_gethostname=no
7645
cat >conftest.$ac_ext <<_ACEOF
7646
#line $LINENO "configure"
7649
cat confdefs.h >>conftest.$ac_ext
7650
cat >>conftest.$ac_ext <<_ACEOF
7651
/* end confdefs.h. */
7653
/* Override any gcc2 internal prototype to avoid an error. */
7657
/* We use char because int might match the return type of a gcc2
7658
builtin and then its argument prototype would still apply. */
7659
char gethostname ();
7668
rm -f conftest.$ac_objext conftest$ac_exeext
7669
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7670
(eval $ac_link) 2>&5
7672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673
(exit $ac_status); } &&
7674
{ ac_try='test -s conftest$ac_exeext'
7675
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7678
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679
(exit $ac_status); }; }; then
7680
ac_cv_search_gethostname="none required"
7682
echo "$as_me: failed program was:" >&5
7683
sed 's/^/| /' conftest.$ac_ext >&5
7686
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7687
if test "$ac_cv_search_gethostname" = no; then
7688
for ac_lib in nsl; do
7689
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7690
cat >conftest.$ac_ext <<_ACEOF
7691
#line $LINENO "configure"
7694
cat confdefs.h >>conftest.$ac_ext
7695
cat >>conftest.$ac_ext <<_ACEOF
7696
/* end confdefs.h. */
7698
/* Override any gcc2 internal prototype to avoid an error. */
7702
/* We use char because int might match the return type of a gcc2
7703
builtin and then its argument prototype would still apply. */
7704
char gethostname ();
7713
rm -f conftest.$ac_objext conftest$ac_exeext
7714
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7715
(eval $ac_link) 2>&5
7717
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718
(exit $ac_status); } &&
7719
{ ac_try='test -s conftest$ac_exeext'
7720
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724
(exit $ac_status); }; }; then
7725
ac_cv_search_gethostname="-l$ac_lib"
7728
echo "$as_me: failed program was:" >&5
7729
sed 's/^/| /' conftest.$ac_ext >&5
7732
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7735
LIBS=$ac_func_search_save_LIBS
7737
echo "$as_me:$LINENO: result: $ac_cv_search_gethostname" >&5
7738
echo "${ECHO_T}$ac_cv_search_gethostname" >&6
7739
if test "$ac_cv_search_gethostname" != no; then
7740
test "$ac_cv_search_gethostname" = "none required" || LIBS="$ac_cv_search_gethostname $LIBS"
7756
for ac_func in rename fchmod fchown strerror lstat _exit utimes vsnprintf getcwd setlocale strftime
7758
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7759
echo "$as_me:$LINENO: checking for $ac_func" >&5
7760
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7761
if eval "test \"\${$as_ac_var+set}\" = set"; then
7762
echo $ECHO_N "(cached) $ECHO_C" >&6
7764
cat >conftest.$ac_ext <<_ACEOF
7765
#line $LINENO "configure"
7768
cat confdefs.h >>conftest.$ac_ext
7769
cat >>conftest.$ac_ext <<_ACEOF
7770
/* end confdefs.h. */
7771
/* System header to define __stub macros and hopefully few prototypes,
7772
which can conflict with char $ac_func (); below.
7773
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7774
<limits.h> exists even on freestanding compilers. */
7776
# include <limits.h>
7778
# include <assert.h>
7780
/* Override any gcc2 internal prototype to avoid an error. */
7785
/* We use char because int might match the return type of a gcc2
7786
builtin and then its argument prototype would still apply. */
7788
/* The GNU C library defines this for functions which it implements
7789
to always fail with ENOSYS. Some functions are actually named
7790
something starting with __ and the normal name is an alias. */
7791
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7794
char (*f) () = $ac_func;
7803
return f != $ac_func;
7808
rm -f conftest.$ac_objext conftest$ac_exeext
7809
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7810
(eval $ac_link) 2>&5
7812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813
(exit $ac_status); } &&
7814
{ ac_try='test -s conftest$ac_exeext'
7815
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819
(exit $ac_status); }; }; then
7820
eval "$as_ac_var=yes"
7822
echo "$as_me: failed program was:" >&5
7823
sed 's/^/| /' conftest.$ac_ext >&5
7825
eval "$as_ac_var=no"
7827
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7829
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7830
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7831
if test `eval echo '${'$as_ac_var'}'` = yes; then
7832
cat >>confdefs.h <<_ACEOF
7833
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7840
# Check whether --enable-pam or --disable-pam was given.
7841
if test "${enable_pam+set}" = set; then
7842
enableval="$enable_pam"
7845
if test "$enable_pam" = "yes"; then
7846
echo "$as_me:$LINENO: checking for PAM support" >&5
7847
echo $ECHO_N "checking for PAM support... $ECHO_C" >&6
7850
cat >conftest.$ac_ext <<_ACEOF
7851
#line $LINENO "configure"
7854
cat confdefs.h >>conftest.$ac_ext
7855
cat >>conftest.$ac_ext <<_ACEOF
7856
/* end confdefs.h. */
7857
#include <security/pam_appl.h>
7862
pam_start(0, 0, 0, 0);
7863
pam_authenticate(0, 0);
7870
rm -f conftest.$ac_objext conftest$ac_exeext
7871
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7872
(eval $ac_link) 2>&5
7874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875
(exit $ac_status); } &&
7876
{ ac_try='test -s conftest$ac_exeext'
7877
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881
(exit $ac_status); }; }; then
7882
echo "$as_me:$LINENO: result: yes" >&5
7883
echo "${ECHO_T}yes" >&6;cat >>confdefs.h <<\_ACEOF
7888
echo "$as_me: failed program was:" >&5
7889
sed 's/^/| /' conftest.$ac_ext >&5
7891
echo "$as_me:$LINENO: result: no" >&5
7892
echo "${ECHO_T}no" >&6;LIBS="$oldlibs"
7894
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7897
# Check whether --enable-use_locale or --disable-use_locale was given.
7898
if test "${enable_use_locale+set}" = set; then
7899
enableval="$enable_use_locale"
7902
if test "$enable_use_locale" = "yes"; then
7903
cat >>confdefs.h <<\_ACEOF
7904
#define USE_LOCALE 1
7908
# Check whether --enable-telnet or --disable-telnet was given.
7909
if test "${enable_telnet+set}" = set; then
7910
enableval="$enable_telnet"
7913
if test "$enable_telnet" = "yes"; then
7914
cat >>confdefs.h <<\_ACEOF
7915
#define BUILTIN_TELNET 1
7919
# Check whether --enable-colors256 or --disable-colors256 was given.
7920
if test "${enable_colors256+set}" = set; then
7921
enableval="$enable_colors256"
7924
if test "$enable_colors256" = "yes"; then
7925
cat >>confdefs.h <<\_ACEOF
7930
# Check whether --enable-rxvt_osc or --disable-rxvt_osc was given.
7931
if test "${enable_rxvt_osc+set}" = set; then
7932
enableval="$enable_rxvt_osc"
7935
if test "$enable_rxvt_osc" = "yes"; then
7936
cat >>confdefs.h <<\_ACEOF
7942
if test -z "$old_CFLAGS"; then
7943
if test "x$CFLAGS" = "x-g"; then
7947
test -n "$seqptx" && LIBS="-ltermcap -lc -lsocket -linet -lnsl -lsec -lseq"
7949
if test "$cross_compiling" = yes; then
7950
{ { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7951
See \`config.log' for more details." >&5
7952
echo "$as_me: error: cannot run test program while cross compiling
7953
See \`config.log' for more details." >&2;}
7954
{ (exit 1); exit 1; }; }
7956
cat >conftest.$ac_ext <<_ACEOF
7957
#line $LINENO "configure"
7960
cat confdefs.h >>conftest.$ac_ext
7961
cat >>conftest.$ac_ext <<_ACEOF
7962
/* end confdefs.h. */
7965
rm -f conftest$ac_exeext
7966
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7967
(eval $ac_link) 2>&5
7969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7971
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975
(exit $ac_status); }; }; then
7978
echo "$as_me: program exited with status $ac_status" >&5
7979
echo "$as_me: failed program was:" >&5
7980
sed 's/^/| /' conftest.$ac_ext >&5
7983
{ { echo "$as_me:$LINENO: error: Can't run the compiler - internal error. Sorry." >&5
7984
echo "$as_me: error: Can't run the compiler - internal error. Sorry." >&2;}
7985
{ (exit 1); exit 1; }; }
7987
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7990
ETCSCREENRC="\"/usr/local/etc/screenrc\""
7991
if test -n "$prefix"; then
7992
ETCSCREENRC="\"$prefix/etc/screenrc\""
7994
echo "$as_me:$LINENO: checking for the global screenrc file" >&5
7995
echo $ECHO_N "checking for the global screenrc file... $ECHO_C" >&6
7997
# Check whether --with-sys-screenrc or --without-sys-screenrc was given.
7998
if test "${with_sys_screenrc+set}" = set; then
7999
withval="$with_sys_screenrc"
8000
ETCSCREENRC="\"${withval}\""
8002
cat >>confdefs.h <<_ACEOF
8003
#define ETCSCREENRC $ETCSCREENRC
8006
echo "$as_me:$LINENO: result: $ETCSCREENRC" >&5
8007
echo "${ECHO_T}$ETCSCREENRC" >&6
8009
SCREENENCODINGS="\"/usr/local/lib/screen/utf8encodings\""
8010
if test -n "$datadir"; then
8011
eval SCREENENCODINGS="$datadir/screen/utf8encodings"
8012
SCREENENCODINGS="\"$SCREENENCODINGS\""
8014
echo "$as_me:$LINENO: checking for the utf8-encodings location" >&5
8015
echo $ECHO_N "checking for the utf8-encodings location... $ECHO_C" >&6
8016
cat >>confdefs.h <<_ACEOF
8017
#define SCREENENCODINGS $SCREENENCODINGS
8020
echo "$as_me:$LINENO: result: $SCREENENCODINGS" >&5
8021
echo "${ECHO_T}$SCREENENCODINGS" >&6
8023
ac_config_files="$ac_config_files Makefile doc/Makefile"
8024
ac_config_commands="$ac_config_commands default"
8025
cat >confcache <<\_ACEOF
8026
# This file is a shell script that caches the results of configure
8027
# tests run on this system so they can be shared between configure
8028
# scripts and configure runs, see configure's option --config-cache.
8029
# It is not useful on other systems. If it contains results you don't
8030
# want to keep, you may remove or edit it.
8032
# config.status only pays attention to the cache file if you give it
8033
# the --recheck option to rerun configure.
8035
# `ac_cv_env_foo' variables (set or unset) will be overridden when
8036
# loading this file, other *unset* `ac_cv_foo' will be assigned the
8041
# The following way of writing the cache mishandles newlines in values,
8042
# but we know of no workaround that is simple, portable, and efficient.
8043
# So, don't put newlines in cache variables' values.
8044
# Ultrix sh set writes to stderr and can't be redirected directly,
8045
# and sets the high bit in the cache file unless we assign to the vars.
8048
case `(ac_space=' '; set | grep ac_space) 2>&1` in
8050
# `set' does not quote correctly, so add quotes (double-quote
8051
# substitution turns \\\\ into \\, and sed turns \\ into \).
8054
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8057
# `set' quotes correctly as required by POSIX, so do not add quotes.
8059
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8066
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8068
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8070
if diff $cache_file confcache >/dev/null 2>&1; then :; else
8071
if test -w $cache_file; then
8072
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8073
cat confcache >$cache_file
8075
echo "not updating unwritable cache $cache_file"
8080
test "x$prefix" = xNONE && prefix=$ac_default_prefix
8081
# Let make expand exec_prefix.
8082
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8084
# VPATH may cause trouble with some makes, so we remove $(srcdir),
8085
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8086
# trailing colons and then remove the whole line if VPATH becomes empty
8087
# (actually we leave an empty line to preserve line numbers).
8088
if test "x$srcdir" = x.; then
8089
ac_vpsub='/^[ ]*VPATH[ ]*=/{
8090
s/:*\$(srcdir):*/:/;
8091
s/:*\${srcdir}:*/:/;
8093
s/^\([^=]*=[ ]*\):*/\1/;
8099
DEFS=-DHAVE_CONFIG_H
8103
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8104
# 1. Remove the extension, and $U if already installed.
8105
ac_i=`echo "$ac_i" |
8106
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
8108
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
8109
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
8113
LTLIBOBJS=$ac_ltlibobjs
8117
: ${CONFIG_STATUS=./config.status}
8118
ac_clean_files_save=$ac_clean_files
8119
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8120
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8121
echo "$as_me: creating $CONFIG_STATUS" >&6;}
8122
cat >$CONFIG_STATUS <<_ACEOF
8124
# Generated by $as_me.
8125
# Run this file to recreate the current configuration.
8126
# Compiler output produced by configure, useful for debugging
8127
# configure, is in config.log if it exists.
8132
SHELL=\${CONFIG_SHELL-$SHELL}
8135
cat >>$CONFIG_STATUS <<\_ACEOF
8136
## --------------------- ##
8137
## M4sh Initialization. ##
8138
## --------------------- ##
8140
# Be Bourne compatible
8141
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8144
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8145
# is contrary to our usage. Disable this feature.
8146
alias -g '${1+"$@"}'='"$@"'
8147
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8151
# Support unset when possible.
8152
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8159
# Work around bugs in pre-3.0 UWIN ksh.
8160
$as_unset ENV MAIL MAILPATH
8167
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8168
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8169
LC_TELEPHONE LC_TIME
8171
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
8172
eval $as_var=C; export $as_var
8178
# Required to use basename.
8179
if expr a : '\(a\)' >/dev/null 2>&1; then
8185
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8186
as_basename=basename
8192
# Name of the executable.
8193
as_me=`$as_basename "$0" ||
8194
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8195
X"$0" : 'X\(//\)$' \| \
8196
X"$0" : 'X\(/\)$' \| \
8197
. : '\(.\)' 2>/dev/null ||
8199
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8200
/^X\/\(\/\/\)$/{ s//\1/; q; }
8201
/^X\/\(\/\).*/{ s//\1/; q; }
8205
# PATH needs CR, and LINENO needs CR and PATH.
8206
# Avoid depending upon Character Ranges.
8207
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8208
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8209
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8210
as_cr_digits='0123456789'
8211
as_cr_alnum=$as_cr_Letters$as_cr_digits
8213
# The user is always right.
8214
if test "${PATH_SEPARATOR+set}" != set; then
8215
echo "#! /bin/sh" >conf$$.sh
8216
echo "exit 0" >>conf$$.sh
8218
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8229
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8230
test "x$as_lineno_1" != "x$as_lineno_2" &&
8231
test "x$as_lineno_3" = "x$as_lineno_2" || {
8232
# Find who we are. Look in the path if we contain no path at all
8235
*[\\/]* ) as_myself=$0 ;;
8236
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240
test -z "$as_dir" && as_dir=.
8241
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8246
# We did not find ourselves, most probably we were run as `sh COMMAND'
8247
# in which case we are not to be found in the path.
8248
if test "x$as_myself" = x; then
8251
if test ! -f "$as_myself"; then
8252
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8253
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8254
{ (exit 1); exit 1; }; }
8256
case $CONFIG_SHELL in
8258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8262
test -z "$as_dir" && as_dir=.
8263
for as_base in sh bash ksh sh5; do
8266
if ("$as_dir/$as_base" -c '
8269
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8270
test "x$as_lineno_1" != "x$as_lineno_2" &&
8271
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
8272
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8273
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8274
CONFIG_SHELL=$as_dir/$as_base
8276
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8284
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8285
# uniformly replaced by the line number. The first 'sed' inserts a
8286
# line-number line before each line; the second 'sed' does the real
8287
# work. The second script uses 'N' to pair each line-number line
8288
# with the numbered line, and appends trailing '-' during
8289
# substitution so that $LINENO is not a special case at line end.
8290
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8291
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
8292
sed '=' <$as_myself |
8297
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8300
s,^['$as_cr_digits']*\n,,
8302
chmod +x $as_me.lineno ||
8303
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8304
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8305
{ (exit 1); exit 1; }; }
8307
# Don't try to exec as it changes $[0], causing all sort of problems
8308
# (the dirname of $[0] is not the place where we might find the
8309
# original and so on. Autoconf is especially sensible to this).
8311
# Exit status is that of the last command.
8316
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8317
*c*,-n*) ECHO_N= ECHO_C='
8319
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8320
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
8323
if expr a : '\(a\)' >/dev/null 2>&1; then
8329
rm -f conf$$ conf$$.exe conf$$.file
8331
if ln -s conf$$.file conf$$ 2>/dev/null; then
8332
# We could just check for DJGPP; but this test a) works b) is more generic
8333
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8334
if test -f conf$$.exe; then
8335
# Don't use ln at all; we don't have any links
8340
elif ln conf$$.file conf$$ 2>/dev/null; then
8345
rm -f conf$$ conf$$.exe conf$$.file
8347
if mkdir -p . 2>/dev/null; then
8353
as_executable_p="test -f"
8355
# Sed expression to map a string onto a valid CPP name.
8356
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8358
# Sed expression to map a string onto a valid variable name.
8359
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8363
# We need space, tab and new line, in precisely that order.
8373
# Open the log real soon, to keep \$[0] and so on meaningful, and to
8374
# report actual input values of CONFIG_FILES etc. instead of their
8375
# values after options handling. Logging --version etc. is OK.
8379
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8380
## Running $as_me. ##
8385
This file was extended by $as_me, which was
8386
generated by GNU Autoconf 2.57. Invocation command line was
8388
CONFIG_FILES = $CONFIG_FILES
8389
CONFIG_HEADERS = $CONFIG_HEADERS
8390
CONFIG_LINKS = $CONFIG_LINKS
8391
CONFIG_COMMANDS = $CONFIG_COMMANDS
8395
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8399
# Files that config.status was made for.
8400
if test -n "$ac_config_files"; then
8401
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8404
if test -n "$ac_config_headers"; then
8405
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8408
if test -n "$ac_config_links"; then
8409
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8412
if test -n "$ac_config_commands"; then
8413
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8416
cat >>$CONFIG_STATUS <<\_ACEOF
8419
\`$as_me' instantiates files from templates according to the
8420
current configuration.
8422
Usage: $0 [OPTIONS] [FILE]...
8424
-h, --help print this help, then exit
8425
-V, --version print version number, then exit
8426
-q, --quiet do not print progress messages
8427
-d, --debug don't remove temporary files
8428
--recheck update $as_me by reconfiguring in the same conditions
8429
--file=FILE[:TEMPLATE]
8430
instantiate the configuration file FILE
8431
--header=FILE[:TEMPLATE]
8432
instantiate the configuration header FILE
8434
Configuration files:
8437
Configuration headers:
8440
Configuration commands:
8443
Report bugs to <bug-autoconf@gnu.org>."
8446
cat >>$CONFIG_STATUS <<_ACEOF
8449
configured by $0, generated by GNU Autoconf 2.57,
8450
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8452
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8453
Free Software Foundation, Inc.
8454
This config.status script is free software; the Free Software Foundation
8455
gives unlimited permission to copy, distribute and modify it."
8460
cat >>$CONFIG_STATUS <<\_ACEOF
8461
# If no file are specified by the user, then we need to provide default
8462
# value. By we need to know if files were specified by the user.
8468
ac_option=`expr "x$1" : 'x\([^=]*\)='`
8469
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8477
*) # This is not an option, so the user has probably given explicit
8480
ac_need_defaults=false;;
8484
# Handling of the options.
8486
cat >>$CONFIG_STATUS <<\_ACEOF
8487
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8489
--version | --vers* | -V )
8490
echo "$ac_cs_version"; exit 0 ;;
8492
# Conflict between --help and --header
8493
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
8494
Try \`$0 --help' for more information." >&5
8495
echo "$as_me: error: ambiguous option: $1
8496
Try \`$0 --help' for more information." >&2;}
8497
{ (exit 1); exit 1; }; };;
8498
--help | --hel | -h )
8499
echo "$ac_cs_usage"; exit 0 ;;
8500
--debug | --d* | -d )
8502
--file | --fil | --fi | --f )
8504
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8505
ac_need_defaults=false;;
8506
--header | --heade | --head | --hea )
8508
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8509
ac_need_defaults=false;;
8510
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
8511
| -silent | --silent | --silen | --sile | --sil | --si | --s)
8515
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8516
Try \`$0 --help' for more information." >&5
8517
echo "$as_me: error: unrecognized option: $1
8518
Try \`$0 --help' for more information." >&2;}
8519
{ (exit 1); exit 1; }; } ;;
8521
*) ac_config_targets="$ac_config_targets $1" ;;
8527
ac_configure_extra_args=
8529
if $ac_cs_silent; then
8531
ac_configure_extra_args="$ac_configure_extra_args --silent"
8535
cat >>$CONFIG_STATUS <<_ACEOF
8536
if \$ac_cs_recheck; then
8537
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8538
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8547
cat >>$CONFIG_STATUS <<\_ACEOF
8548
for ac_config_target in $ac_config_targets
8550
case "$ac_config_target" in
8551
# Handling of arguments.
8552
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8553
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8554
"default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8555
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8556
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8557
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8558
{ (exit 1); exit 1; }; };;
8562
# If the user did not use the arguments to specify the items to instantiate,
8563
# then the envvar interface is used. Set only those that are not.
8564
# We use the long form for the default assignment because of an extremely
8565
# bizarre bug on SunOS 4.1.3.
8566
if $ac_need_defaults; then
8567
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8568
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8569
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8572
# Have a temporary directory for convenience. Make it in the build tree
8573
# simply because there is no reason to put it here, and in addition,
8574
# creating and moving files from /tmp can sometimes cause problems.
8575
# Create a temporary directory, and hook for its removal unless debugging.
8578
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8579
trap '{ (exit 1); exit 1; }' 1 2 13 15
8582
# Create a (secure) tmp directory for tmp files.
8585
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8586
test -n "$tmp" && test -d "$tmp"
8589
tmp=./confstat$$-$RANDOM
8590
(umask 077 && mkdir $tmp)
8593
echo "$me: cannot create a temporary directory in ." >&2
8594
{ (exit 1); exit 1; }
8599
cat >>$CONFIG_STATUS <<_ACEOF
8602
# CONFIG_FILES section.
8605
# No need to generate the scripts if there are no CONFIG_FILES.
8606
# This happens for instance when ./config.status config.h
8607
if test -n "\$CONFIG_FILES"; then
8608
# Protect against being on the right side of a sed subst in config.status.
8609
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8610
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8611
s,@SHELL@,$SHELL,;t t
8612
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8613
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8614
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8615
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8616
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8617
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8618
s,@exec_prefix@,$exec_prefix,;t t
8619
s,@prefix@,$prefix,;t t
8620
s,@program_transform_name@,$program_transform_name,;t t
8621
s,@bindir@,$bindir,;t t
8622
s,@sbindir@,$sbindir,;t t
8623
s,@libexecdir@,$libexecdir,;t t
8624
s,@datadir@,$datadir,;t t
8625
s,@sysconfdir@,$sysconfdir,;t t
8626
s,@sharedstatedir@,$sharedstatedir,;t t
8627
s,@localstatedir@,$localstatedir,;t t
8628
s,@libdir@,$libdir,;t t
8629
s,@includedir@,$includedir,;t t
8630
s,@oldincludedir@,$oldincludedir,;t t
8631
s,@infodir@,$infodir,;t t
8632
s,@mandir@,$mandir,;t t
8633
s,@build_alias@,$build_alias,;t t
8634
s,@host_alias@,$host_alias,;t t
8635
s,@target_alias@,$target_alias,;t t
8637
s,@ECHO_C@,$ECHO_C,;t t
8638
s,@ECHO_N@,$ECHO_N,;t t
8639
s,@ECHO_T@,$ECHO_T,;t t
8641
s,@VERSION@,$VERSION,;t t
8642
s,@ac_prefix_program@,$ac_prefix_program,;t t
8644
s,@CFLAGS@,$CFLAGS,;t t
8645
s,@LDFLAGS@,$LDFLAGS,;t t
8646
s,@CPPFLAGS@,$CPPFLAGS,;t t
8647
s,@ac_ct_CC@,$ac_ct_CC,;t t
8648
s,@EXEEXT@,$EXEEXT,;t t
8649
s,@OBJEXT@,$OBJEXT,;t t
8651
s,@EGREP@,$EGREP,;t t
8653
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8654
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8655
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8656
s,@WRITEPATH@,$WRITEPATH,;t t
8657
s,@XTERMPATH@,$XTERMPATH,;t t
8658
s,@LIBOBJS@,$LIBOBJS,;t t
8659
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8664
cat >>$CONFIG_STATUS <<\_ACEOF
8665
# Split the substitutions into bite-sized pieces for seds with
8666
# small command number limits, like on Digital OSF/1 and HP-UX.
8668
ac_sed_frag=1 # Number of current file.
8669
ac_beg=1 # First line for current file.
8670
ac_end=$ac_max_sed_lines # Line after last line for current file.
8673
while $ac_more_lines; do
8674
if test $ac_beg -gt 1; then
8675
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8677
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8679
if test ! -s $tmp/subs.frag; then
8682
# The purpose of the label and of the branching condition is to
8683
# speed up the sed processing (if there are no `@' at all, there
8684
# is no need to browse any of the substitutions).
8685
# These are the two extra sed commands mentioned above.
8687
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8688
if test -z "$ac_sed_cmds"; then
8689
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8691
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8693
ac_sed_frag=`expr $ac_sed_frag + 1`
8695
ac_end=`expr $ac_end + $ac_max_sed_lines`
8698
if test -z "$ac_sed_cmds"; then
8701
fi # test -n "$CONFIG_FILES"
8704
cat >>$CONFIG_STATUS <<\_ACEOF
8705
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8706
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8708
- | *:- | *:-:* ) # input from stdin
8710
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8711
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8712
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8713
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8714
* ) ac_file_in=$ac_file.in ;;
8717
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8718
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8719
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8720
X"$ac_file" : 'X\(//\)[^/]' \| \
8721
X"$ac_file" : 'X\(//\)$' \| \
8722
X"$ac_file" : 'X\(/\)' \| \
8723
. : '\(.\)' 2>/dev/null ||
8725
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8726
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8727
/^X\(\/\/\)$/{ s//\1/; q; }
8728
/^X\(\/\).*/{ s//\1/; q; }
8730
{ if $as_mkdir_p; then
8735
while test ! -d "$as_dir"; do
8736
as_dirs="$as_dir $as_dirs"
8737
as_dir=`(dirname "$as_dir") 2>/dev/null ||
8738
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8739
X"$as_dir" : 'X\(//\)[^/]' \| \
8740
X"$as_dir" : 'X\(//\)$' \| \
8741
X"$as_dir" : 'X\(/\)' \| \
8742
. : '\(.\)' 2>/dev/null ||
8744
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8745
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
8746
/^X\(\/\/\)$/{ s//\1/; q; }
8747
/^X\(\/\).*/{ s//\1/; q; }
8750
test ! -n "$as_dirs" || mkdir $as_dirs
8751
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8752
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8753
{ (exit 1); exit 1; }; }; }
8757
if test "$ac_dir" != .; then
8758
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8759
# A "../" for each directory in $ac_dir_suffix.
8760
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8762
ac_dir_suffix= ac_top_builddir=
8766
.) # No --srcdir option. We are building in place.
8768
if test -z "$ac_top_builddir"; then
8771
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8773
[\\/]* | ?:[\\/]* ) # Absolute path.
8774
ac_srcdir=$srcdir$ac_dir_suffix;
8775
ac_top_srcdir=$srcdir ;;
8777
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8778
ac_top_srcdir=$ac_top_builddir$srcdir ;;
8780
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
8782
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
8783
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
8784
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
8785
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
8789
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8790
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8793
if test x"$ac_file" != x-; then
8794
{ echo "$as_me:$LINENO: creating $ac_file" >&5
8795
echo "$as_me: creating $ac_file" >&6;}
8798
# Let's still pretend it is `configure' which instantiates (i.e., don't
8799
# use $as_me), people would be surprised to read:
8800
# /* config.h. Generated by config.status. */
8801
if test x"$ac_file" = x-; then
8804
configure_input="$ac_file. "
8806
configure_input=$configure_input"Generated from `echo $ac_file_in |
8807
sed 's,.*/,,'` by configure."
8809
# First look for the input files in the build tree, otherwise in the
8811
ac_file_inputs=`IFS=:
8812
for f in $ac_file_in; do
8814
-) echo $tmp/stdin ;;
8816
# Absolute (can't be DOS-style, as IFS=:)
8817
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8818
echo "$as_me: error: cannot find input file: $f" >&2;}
8819
{ (exit 1); exit 1; }; }
8822
if test -f "$f"; then
8825
elif test -f "$srcdir/$f"; then
8830
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8831
echo "$as_me: error: cannot find input file: $f" >&2;}
8832
{ (exit 1); exit 1; }; }
8835
done` || { (exit 1); exit 1; }
8837
cat >>$CONFIG_STATUS <<_ACEOF
8841
cat >>$CONFIG_STATUS <<\_ACEOF
8843
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8844
s,@configure_input@,$configure_input,;t t
8845
s,@srcdir@,$ac_srcdir,;t t
8846
s,@abs_srcdir@,$ac_abs_srcdir,;t t
8847
s,@top_srcdir@,$ac_top_srcdir,;t t
8848
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8849
s,@builddir@,$ac_builddir,;t t
8850
s,@abs_builddir@,$ac_abs_builddir,;t t
8851
s,@top_builddir@,$ac_top_builddir,;t t
8852
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8853
s,@INSTALL@,$ac_INSTALL,;t t
8854
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8856
if test x"$ac_file" != x-; then
8857
mv $tmp/out $ac_file
8865
cat >>$CONFIG_STATUS <<\_ACEOF
8868
# CONFIG_HEADER section.
8871
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8872
# NAME is the cpp macro being defined and VALUE is the value it is being given.
8874
# ac_d sets the value in "#define NAME VALUE" lines.
8875
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8876
ac_dB='[ ].*$,\1#\2'
8879
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8880
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8881
ac_uB='$,\1#\2define\3'
8885
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8886
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8888
- | *:- | *:-:* ) # input from stdin
8890
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8891
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8892
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8893
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8894
* ) ac_file_in=$ac_file.in ;;
8897
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8898
echo "$as_me: creating $ac_file" >&6;}
8900
# First look for the input files in the build tree, otherwise in the
8902
ac_file_inputs=`IFS=:
8903
for f in $ac_file_in; do
8905
-) echo $tmp/stdin ;;
8907
# Absolute (can't be DOS-style, as IFS=:)
8908
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8909
echo "$as_me: error: cannot find input file: $f" >&2;}
8910
{ (exit 1); exit 1; }; }
8913
if test -f "$f"; then
8916
elif test -f "$srcdir/$f"; then
8921
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8922
echo "$as_me: error: cannot find input file: $f" >&2;}
8923
{ (exit 1); exit 1; }; }
8926
done` || { (exit 1); exit 1; }
8927
# Remove the trailing spaces.
8928
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
8932
# Transform confdefs.h into two sed scripts, `conftest.defines' and
8933
# `conftest.undefs', that substitutes the proper values into
8934
# config.h.in to produce config.h. The first handles `#define'
8935
# templates, and the second `#undef' templates.
8936
# And first: Protect against being on the right side of a sed subst in
8937
# config.status. Protect against being in an unquoted here document
8939
rm -f conftest.defines conftest.undefs
8940
# Using a here document instead of a string reduces the quoting nightmare.
8941
# Putting comments in sed scripts is not portable.
8943
# `end' is used to avoid that the second main sed command (meant for
8944
# 0-ary CPP macros) applies to n-ary macro definitions.
8945
# See the Autoconf documentation for `clear'.
8946
cat >confdef2sed.sed <<\_ACEOF
8951
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
8953
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
8956
# If some macros were called several times there might be several times
8957
# the same #defines, which is useless. Nevertheless, we may not want to
8958
# sort them, since we want the *last* AC-DEFINE to be honored.
8959
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
8960
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
8961
rm -f confdef2sed.sed
8963
# This sed command replaces #undef with comments. This is necessary, for
8964
# example, in the case of _POSIX_SOURCE, which is predefined and required
8965
# on some systems where configure will not decide to define it.
8966
cat >>conftest.undefs <<\_ACEOF
8967
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
8970
# Break up conftest.defines because some shells have a limit on the size
8971
# of here documents, and old seds have small limits too (100 cmds).
8972
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
8973
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
8974
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
8975
echo ' :' >>$CONFIG_STATUS
8977
while grep . conftest.defines >/dev/null
8979
# Write a limited-size here document to $tmp/defines.sed.
8980
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
8981
# Speed up: don't consider the non `#define' lines.
8982
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
8983
# Work around the forget-to-reset-the-flag bug.
8984
echo 't clr' >>$CONFIG_STATUS
8985
echo ': clr' >>$CONFIG_STATUS
8986
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
8988
sed -f $tmp/defines.sed $tmp/in >$tmp/out
8992
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
8993
rm -f conftest.defines
8994
mv conftest.tail conftest.defines
8996
rm -f conftest.defines
8997
echo ' fi # grep' >>$CONFIG_STATUS
8998
echo >>$CONFIG_STATUS
9000
# Break up conftest.undefs because some shells have a limit on the size
9001
# of here documents, and old seds have small limits too (100 cmds).
9002
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
9004
while grep . conftest.undefs >/dev/null
9006
# Write a limited-size here document to $tmp/undefs.sed.
9007
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9008
# Speed up: don't consider the non `#undef'
9009
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
9010
# Work around the forget-to-reset-the-flag bug.
9011
echo 't clr' >>$CONFIG_STATUS
9012
echo ': clr' >>$CONFIG_STATUS
9013
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9015
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9019
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9020
rm -f conftest.undefs
9021
mv conftest.tail conftest.undefs
9023
rm -f conftest.undefs
9025
cat >>$CONFIG_STATUS <<\_ACEOF
9026
# Let's still pretend it is `configure' which instantiates (i.e., don't
9027
# use $as_me), people would be surprised to read:
9028
# /* config.h. Generated by config.status. */
9029
if test x"$ac_file" = x-; then
9030
echo "/* Generated by configure. */" >$tmp/config.h
9032
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
9034
cat $tmp/in >>$tmp/config.h
9036
if test x"$ac_file" != x-; then
9037
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9038
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9039
echo "$as_me: $ac_file is unchanged" >&6;}
9041
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9042
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9043
X"$ac_file" : 'X\(//\)[^/]' \| \
9044
X"$ac_file" : 'X\(//\)$' \| \
9045
X"$ac_file" : 'X\(/\)' \| \
9046
. : '\(.\)' 2>/dev/null ||
9048
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9049
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9050
/^X\(\/\/\)$/{ s//\1/; q; }
9051
/^X\(\/\).*/{ s//\1/; q; }
9053
{ if $as_mkdir_p; then
9058
while test ! -d "$as_dir"; do
9059
as_dirs="$as_dir $as_dirs"
9060
as_dir=`(dirname "$as_dir") 2>/dev/null ||
9061
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9062
X"$as_dir" : 'X\(//\)[^/]' \| \
9063
X"$as_dir" : 'X\(//\)$' \| \
9064
X"$as_dir" : 'X\(/\)' \| \
9065
. : '\(.\)' 2>/dev/null ||
9067
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9068
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9069
/^X\(\/\/\)$/{ s//\1/; q; }
9070
/^X\(\/\).*/{ s//\1/; q; }
9073
test ! -n "$as_dirs" || mkdir $as_dirs
9074
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9075
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9076
{ (exit 1); exit 1; }; }; }
9079
mv $tmp/config.h $ac_file
9087
cat >>$CONFIG_STATUS <<\_ACEOF
9090
# CONFIG_COMMANDS section.
9092
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9093
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9094
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9095
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9096
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9097
X"$ac_dest" : 'X\(//\)[^/]' \| \
9098
X"$ac_dest" : 'X\(//\)$' \| \
9099
X"$ac_dest" : 'X\(/\)' \| \
9100
. : '\(.\)' 2>/dev/null ||
9102
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9103
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
9104
/^X\(\/\/\)$/{ s//\1/; q; }
9105
/^X\(\/\).*/{ s//\1/; q; }
9109
if test "$ac_dir" != .; then
9110
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9111
# A "../" for each directory in $ac_dir_suffix.
9112
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9114
ac_dir_suffix= ac_top_builddir=
9118
.) # No --srcdir option. We are building in place.
9120
if test -z "$ac_top_builddir"; then
9123
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9125
[\\/]* | ?:[\\/]* ) # Absolute path.
9126
ac_srcdir=$srcdir$ac_dir_suffix;
9127
ac_top_srcdir=$srcdir ;;
9129
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9130
ac_top_srcdir=$ac_top_builddir$srcdir ;;
9132
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
9134
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
9135
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
9136
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
9137
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
9140
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9141
echo "$as_me: executing $ac_dest commands" >&6;}
9144
# a hook for preserving undef directive in config.h
9145
mv config.h conftest
9146
sed -e 's@^\(.*\)defin.\( .*\) .*/\*\(.*KEEP_UNDEF_HERE\)@\1undef\2 /\*\3@' < conftest > config.h
9153
cat >>$CONFIG_STATUS <<\_ACEOF
9155
{ (exit 0); exit 0; }
9157
chmod +x $CONFIG_STATUS
9158
ac_clean_files=$ac_clean_files_save
9161
# configure is writing to config.log, and then calls config.status.
9162
# config.status does its own redirection, appending to config.log.
9163
# Unfortunately, on DOS this fails, as config.log is still kept open
9164
# by configure, so config.status won't be able to write to it; its
9165
# output is simply discarded. So we exec the FD to /dev/null,
9166
# effectively closing config.log, so it can be properly (re)opened and
9167
# appended to by config.status. When coming back to configure, we
9168
# need to make the FD available again.
9169
if test "$no_create" != yes; then
9171
ac_config_status_args=
9172
test "$silent" = yes &&
9173
ac_config_status_args="$ac_config_status_args --quiet"
9175
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9177
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
9178
# would make configure fail if this is the last instruction.
9179
$ac_cs_success || { (exit 1); exit 1; }
9184
if test -z "$AWK"; then
9185
echo "!!! Since you have no awk you must copy the files 'comm.h.dist'"
9186
echo "!!! and 'term.h.dist' to 'comm.h' and 'term.h'."
9187
echo "!!! Do _not_ change the user configuration section in config.h!"
9188
echo "Please check the pathnames in the Makefile."
9190
echo "Now please check the pathnames in the Makefile and in the user"
9191
echo "configuration section in config.h."
9193
echo "Then type 'make' to make screen. Good luck."