2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 if expr a
: '\(a\)' >/dev
/null
2>&1; then
17 ## --------------------- ##
18 ## M4sh Initialization. ##
19 ## --------------------- ##
21 # Be Bourne compatible
22 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
30 # Support unset when possible.
31 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
37 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
38 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
39 { LANG
=C
; export LANG
; }
40 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
42 { LC_ALL
=C
; export LC_ALL
; }
43 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
45 { LC_TIME
=C
; export LC_TIME
; }
46 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
48 { LC_CTYPE
=C
; export LC_CTYPE
; }
49 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
51 { LANGUAGE
=C
; export LANGUAGE
; }
52 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
54 { LC_COLLATE
=C
; export LC_COLLATE
; }
55 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
57 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
58 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
60 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
63 # Name of the executable.
64 as_me
=`(basename "$0") 2>/dev/null ||
65 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66 X"$0" : 'X\(//\)$' \| \
67 X"$0" : 'X\(/\)$' \| \
68 . : '\(.\)' 2>/dev/null ||
70 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71 /^X\/\(\/\/\)$/{ s//\1/; q; }
72 /^X\/\(\/\).*/{ s//\1/; q; }
75 # PATH needs CR, and LINENO needs CR and PATH.
76 # Avoid depending upon Character Ranges.
77 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
78 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
80 as_cr_digits
='0123456789'
81 as_cr_alnum
=$as_cr_Letters$as_cr_digits
83 # The user is always right.
84 if test "${PATH_SEPARATOR+set}" != set; then
85 echo "#! /bin/sh" >conftest.sh
86 echo "exit 0" >>conftest.sh
88 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
99 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
100 test "x$as_lineno_1" != "x$as_lineno_2" &&
101 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
102 # Find who we are. Look in the path if we contain no path at all
105 *[\\/]* ) as_myself
=$0 ;;
106 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
110 test -z "$as_dir" && as_dir
=.
111 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
116 # We did not find ourselves, most probably we were run as `sh COMMAND'
117 # in which case we are not to be found in the path.
118 if test "x$as_myself" = x
; then
121 if test ! -f "$as_myself"; then
122 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123 { (exit 1); exit 1; }; }
125 case $CONFIG_SHELL in
127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
128 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
131 test -z "$as_dir" && as_dir
=.
132 for as_base
in sh bash ksh sh5
; do
135 if ("$as_dir/$as_base" -c '
138 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139 test "x$as_lineno_1" != "x$as_lineno_2" &&
140 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
141 CONFIG_SHELL
=$as_dir/$as_base
143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152 # uniformly replaced by the line number. The first 'sed' inserts a
153 # line-number line before each line; the second 'sed' does the real
154 # work. The second script uses 'N' to pair each line-number line
155 # with the numbered line, and appends trailing '-' during
156 # substitution so that $LINENO is not a special case at line end.
157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159 sed '=' <$as_myself |
164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167 s,^['$as_cr_digits']*\n,,
169 chmod +x
$as_me.lineno ||
170 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171 { (exit 1); exit 1; }; }
173 # Don't try to exec as it changes $[0], causing all sort of problems
174 # (the dirname of $[0] is not the place where we might find the
175 # original and so on. Autoconf is especially sensible to this).
177 # Exit status is that of the last command.
182 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183 *c
*,-n*) ECHO_N
= ECHO_C
='
185 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
186 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
189 if expr a
: '\(a\)' >/dev
/null
2>&1; then
195 rm -f conf$$ conf$$.exe conf$$.
file
197 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
198 # We could just check for DJGPP; but this test a) works b) is more generic
199 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200 if test -f conf$$.exe
; then
201 # Don't use ln at all; we don't have any links
206 elif ln conf$$.
file conf$$
2>/dev
/null
; then
211 rm -f conf$$ conf$$.exe conf$$.
file
213 as_executable_p
="test -f"
215 # Sed expression to map a string onto a valid CPP name.
216 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218 # Sed expression to map a string onto a valid variable name.
219 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223 # We need space, tab and new line, in precisely that order.
229 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
233 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234 # so uname gets run too.
235 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
242 ac_default_prefix
=/usr
/local
247 SHELL
=${CONFIG_SHELL-/bin/sh}
249 # Maximum number of lines to put in a shell here document.
250 # This variable seems obsolete. It should probably be removed, and
251 # only ac_max_sed_lines should be used.
252 : ${ac_max_here_lines=38}
254 # Identity of this package.
261 ac_unique_file
="src/lisp.h"
262 # Factoring default headers for most tests.
263 ac_includes_default
="\
266 # include <sys/types.h>
269 # include <sys/stat.h>
280 # if !STDC_HEADERS && HAVE_MEMORY_H
286 # include <strings.h>
289 # include <inttypes.h>
300 # Initialize some variables set by options.
302 ac_init_version
=false
303 # The variables have the same names as the options, with
304 # dashes changed to underlines.
312 program_transform_name
=s
,x
,x
,
320 # Installation directory options.
321 # These are left unexpanded so users can "make install exec_prefix=/foo"
322 # and all the variables that are supposed to be based on exec_prefix
323 # by default will actually change.
324 # Use braces instead of parens because sh, perl, etc. also accept them.
325 bindir
='${exec_prefix}/bin'
326 sbindir
='${exec_prefix}/sbin'
327 libexecdir
='${exec_prefix}/libexec'
328 datadir
='${prefix}/share'
329 sysconfdir
='${prefix}/etc'
330 sharedstatedir
='${prefix}/com'
331 localstatedir
='${prefix}/var'
332 libdir
='${exec_prefix}/lib'
333 includedir
='${prefix}/include'
334 oldincludedir
='/usr/include'
335 infodir
='${prefix}/info'
336 mandir
='${prefix}/man'
341 # If the previous option needs an argument, assign it.
342 if test -n "$ac_prev"; then
343 eval "$ac_prev=\$ac_option"
348 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350 # Accept the important Cygnus configure options, so we can diagnose typos.
354 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
356 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
359 -build |
--build |
--buil |
--bui |
--bu)
360 ac_prev
=build_alias
;;
361 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
362 build_alias
=$ac_optarg ;;
364 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
365 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
366 ac_prev
=cache_file
;;
367 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
368 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
369 cache_file
=$ac_optarg ;;
372 cache_file
=config.cache
;;
374 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
376 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
378 datadir
=$ac_optarg ;;
380 -disable-* |
--disable-*)
381 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382 # Reject names that are not valid shell variable names.
383 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
384 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
385 { (exit 1); exit 1; }; }
386 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
387 eval "enable_$ac_feature=no" ;;
389 -enable-* |
--enable-*)
390 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391 # Reject names that are not valid shell variable names.
392 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
393 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
394 { (exit 1); exit 1; }; }
395 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
397 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400 eval "enable_$ac_feature='$ac_optarg'" ;;
402 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
403 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
404 |
--exec |
--exe |
--ex)
405 ac_prev
=exec_prefix
;;
406 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
407 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
408 |
--exec=* |
--exe=* |
--ex=*)
409 exec_prefix
=$ac_optarg ;;
411 -gas |
--gas |
--ga |
--g)
412 # Obsolete; use --with-gas.
415 -help |
--help |
--hel |
--he |
-h)
417 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
418 ac_init_help
=recursive
;;
419 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
420 ac_init_help
=short
;;
422 -host |
--host |
--hos |
--ho)
423 ac_prev
=host_alias
;;
424 -host=* |
--host=* |
--hos=* |
--ho=*)
425 host_alias
=$ac_optarg ;;
427 -includedir |
--includedir |
--includedi |
--included |
--include \
428 |
--includ |
--inclu |
--incl |
--inc)
429 ac_prev
=includedir
;;
430 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
431 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
432 includedir
=$ac_optarg ;;
434 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
436 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
437 infodir
=$ac_optarg ;;
439 -libdir |
--libdir |
--libdi |
--libd)
441 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
444 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
445 |
--libexe |
--libex |
--libe)
446 ac_prev
=libexecdir
;;
447 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
448 |
--libexe=* |
--libex=* |
--libe=*)
449 libexecdir
=$ac_optarg ;;
451 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
452 |
--localstate |
--localstat |
--localsta |
--localst \
453 |
--locals |
--local |
--loca |
--loc |
--lo)
454 ac_prev
=localstatedir
;;
455 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
456 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
457 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
458 localstatedir
=$ac_optarg ;;
460 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
462 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
466 # Obsolete; use --without-fp.
469 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
470 |
--no-cr |
--no-c |
-n)
473 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
474 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
477 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
478 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
479 |
--oldin |
--oldi |
--old |
--ol |
--o)
480 ac_prev
=oldincludedir
;;
481 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
482 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
483 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
484 oldincludedir
=$ac_optarg ;;
486 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
488 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
491 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
492 |
--program-pre |
--program-pr |
--program-p)
493 ac_prev
=program_prefix
;;
494 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
495 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
496 program_prefix
=$ac_optarg ;;
498 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
499 |
--program-suf |
--program-su |
--program-s)
500 ac_prev
=program_suffix
;;
501 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
502 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
503 program_suffix
=$ac_optarg ;;
505 -program-transform-name |
--program-transform-name \
506 |
--program-transform-nam |
--program-transform-na \
507 |
--program-transform-n |
--program-transform- \
508 |
--program-transform |
--program-transfor \
509 |
--program-transfo |
--program-transf \
510 |
--program-trans |
--program-tran \
511 |
--progr-tra |
--program-tr |
--program-t)
512 ac_prev
=program_transform_name
;;
513 -program-transform-name=* |
--program-transform-name=* \
514 |
--program-transform-nam=* |
--program-transform-na=* \
515 |
--program-transform-n=* |
--program-transform-=* \
516 |
--program-transform=* |
--program-transfor=* \
517 |
--program-transfo=* |
--program-transf=* \
518 |
--program-trans=* |
--program-tran=* \
519 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
520 program_transform_name
=$ac_optarg ;;
522 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
523 |
-silent |
--silent |
--silen |
--sile |
--sil)
526 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
528 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
530 sbindir
=$ac_optarg ;;
532 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
533 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
534 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
536 ac_prev
=sharedstatedir
;;
537 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
538 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
539 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
541 sharedstatedir
=$ac_optarg ;;
543 -site |
--site |
--sit)
545 -site=* |
--site=* |
--sit=*)
548 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
550 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
553 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
554 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
555 ac_prev
=sysconfdir
;;
556 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
557 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
558 sysconfdir
=$ac_optarg ;;
560 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
561 ac_prev
=target_alias
;;
562 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
563 target_alias
=$ac_optarg ;;
565 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
568 -version |
--version |
--versio |
--versi |
--vers |
-V)
572 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
575 { echo "$as_me: error: invalid package name: $ac_package" >&2
576 { (exit 1); exit 1; }; }
577 ac_package
=`echo $ac_package| sed 's/-/_/g'`
579 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582 eval "with_$ac_package='$ac_optarg'" ;;
584 -without-* |
--without-*)
585 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
588 { echo "$as_me: error: invalid package name: $ac_package" >&2
589 { (exit 1); exit 1; }; }
590 ac_package
=`echo $ac_package | sed 's/-/_/g'`
591 eval "with_$ac_package=no" ;;
594 # Obsolete; use --with-x.
597 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
598 |
--x-incl |
--x-inc |
--x-in |
--x-i)
599 ac_prev
=x_includes
;;
600 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
601 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
602 x_includes
=$ac_optarg ;;
604 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
605 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
606 ac_prev
=x_libraries
;;
607 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
608 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
609 x_libraries
=$ac_optarg ;;
611 -*) { echo "$as_me: error: unrecognized option: $ac_option
612 Try \`$0 --help' for more information." >&2
613 { (exit 1); exit 1; }; }
617 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
618 # Reject names that are not valid shell variable names.
619 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
620 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621 { (exit 1); exit 1; }; }
622 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623 eval "$ac_envvar='$ac_optarg'"
627 # FIXME: should be removed in autoconf 3.0.
628 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
630 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637 if test -n "$ac_prev"; then
638 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
639 { echo "$as_me: error: missing argument to $ac_option" >&2
640 { (exit 1); exit 1; }; }
643 # Be sure to have absolute paths.
644 for ac_var
in exec_prefix prefix
646 eval ac_val
=$
`echo $ac_var`
648 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
649 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
654 # Be sure to have absolute paths.
655 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656 localstatedir libdir includedir oldincludedir infodir mandir
658 eval ac_val
=$
`echo $ac_var`
660 [\\/$
]* | ?
:[\\/]* ) ;;
661 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662 { (exit 1); exit 1; }; };;
666 # There might be people who depend on the old broken behavior: `$host'
667 # used to hold the argument of --host etc.
668 # FIXME: To remove some day.
673 # FIXME: To remove some day.
674 if test "x$host_alias" != x
; then
675 if test "x$build_alias" = x
; then
676 cross_compiling
=maybe
677 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678 If a cross compiler is detected then cross compile mode will be used." >&2
679 elif test "x$build_alias" != "x$host_alias"; then
685 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
687 test "$silent" = yes && exec 6>/dev
/null
690 # Find the source files, if location was not specified.
691 if test -z "$srcdir"; then
692 ac_srcdir_defaulted
=yes
693 # Try the directory containing this script, then its parent.
694 ac_confdir
=`(dirname "$0") 2>/dev/null ||
695 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696 X"$0" : 'X\(//\)[^/]' \| \
697 X"$0" : 'X\(//\)$' \| \
698 X"$0" : 'X\(/\)' \| \
699 . : '\(.\)' 2>/dev/null ||
701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
703 /^X\(\/\/\)$/{ s//\1/; q; }
704 /^X\(\/\).*/{ s//\1/; q; }
707 if test ! -r $srcdir/$ac_unique_file; then
711 ac_srcdir_defaulted
=no
713 if test ! -r $srcdir/$ac_unique_file; then
714 if test "$ac_srcdir_defaulted" = yes; then
715 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716 { (exit 1); exit 1; }; }
718 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719 { (exit 1); exit 1; }; }
722 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723 ac_env_build_alias_set
=${build_alias+set}
724 ac_env_build_alias_value
=$build_alias
725 ac_cv_env_build_alias_set
=${build_alias+set}
726 ac_cv_env_build_alias_value
=$build_alias
727 ac_env_host_alias_set
=${host_alias+set}
728 ac_env_host_alias_value
=$host_alias
729 ac_cv_env_host_alias_set
=${host_alias+set}
730 ac_cv_env_host_alias_value
=$host_alias
731 ac_env_target_alias_set
=${target_alias+set}
732 ac_env_target_alias_value
=$target_alias
733 ac_cv_env_target_alias_set
=${target_alias+set}
734 ac_cv_env_target_alias_value
=$target_alias
735 ac_env_CC_set
=${CC+set}
737 ac_cv_env_CC_set
=${CC+set}
738 ac_cv_env_CC_value
=$CC
739 ac_env_CFLAGS_set
=${CFLAGS+set}
740 ac_env_CFLAGS_value
=$CFLAGS
741 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
742 ac_cv_env_CFLAGS_value
=$CFLAGS
743 ac_env_LDFLAGS_set
=${LDFLAGS+set}
744 ac_env_LDFLAGS_value
=$LDFLAGS
745 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
746 ac_cv_env_LDFLAGS_value
=$LDFLAGS
747 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
748 ac_env_CPPFLAGS_value
=$CPPFLAGS
749 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
750 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
751 ac_env_CPP_set
=${CPP+set}
752 ac_env_CPP_value
=$CPP
753 ac_cv_env_CPP_set
=${CPP+set}
754 ac_cv_env_CPP_value
=$CPP
757 # Report the --help message.
759 if test "$ac_init_help" = "long"; then
760 # Omit some internal or obsolete options to make the list less imposing.
761 # This message is too long to be a string in the A/UX 3.1 sh.
763 \`configure' configures this package to adapt to many kinds of systems.
765 Usage: $0 [OPTION]... [VAR=VALUE]...
767 To assign environment variables (e.g., CC, CFLAGS...), specify them as
768 VAR=VALUE. See below for descriptions of some of the useful variables.
770 Defaults for the options are specified in brackets.
773 -h, --help display this help and exit
774 --help=short display options specific to this package
775 --help=recursive display the short help of all the included packages
776 -V, --version display version information and exit
777 -q, --quiet, --silent do not print \`checking...' messages
778 --cache-file=FILE cache test results in FILE [disabled]
779 -C, --config-cache alias for \`--cache-file=config.cache'
780 -n, --no-create do not create output files
781 --srcdir=DIR find the sources in DIR [configure dir or \`..']
786 Installation directories:
787 --prefix=PREFIX install architecture-independent files in PREFIX
789 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
792 By default, \`make install' will install all the files in
793 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
794 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
795 for instance \`--prefix=\$HOME'.
797 For better control, use the options below.
799 Fine tuning of the installation directories:
800 --bindir=DIR user executables [EPREFIX/bin]
801 --sbindir=DIR system admin executables [EPREFIX/sbin]
802 --libexecdir=DIR program executables [EPREFIX/libexec]
803 --datadir=DIR read-only architecture-independent data [PREFIX/share]
804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
807 --libdir=DIR object code libraries [EPREFIX/lib]
808 --includedir=DIR C header files [PREFIX/include]
809 --oldincludedir=DIR C header files for non-gcc [/usr/include]
810 --infodir=DIR info documentation [PREFIX/info]
811 --mandir=DIR man documentation [PREFIX/man]
817 --program-prefix=PREFIX prepend PREFIX to installed program names
818 --program-suffix=SUFFIX append SUFFIX to installed program names
819 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
822 --x-includes=DIR X include files are
in DIR
823 --x-libraries=DIR X library files are
in DIR
826 --build=BUILD configure
for building on BUILD
[guessed
]
827 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
831 if test -n "$ac_init_help"; then
836 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
837 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
838 --disable-largefile omit support
for large files
841 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
842 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
843 --with-game-dir use a shared game directory
if possible
844 --with-game-user use specified user
for game directory
845 --without-gcc don
't use GCC to compile Emacs if GCC is found
846 --without-pop don't support POP
mail retrieval with movemail
847 --with-kerberos support Kerberos-authenticated POP
848 --with-kerberos5 support Kerberos version
5 authenticated POP
849 --with-hesiod support Hesiod to get the POP server
host
850 --without-sound don
't compile with sound support
851 --with-x-toolkit=KIT use an X toolkit (KIT = yes/lucid/athena/motif/no)
852 --with-xpm use -lXpm for displaying XPM images
853 --with-jpeg use -ljpeg for displaying JPEG images
854 --with-tiff use -ltiff for displaying TIFF images
855 --with-gif use -lungif for displaying GIF images
856 --with-png use -lpng for displaying PNG images
857 --without-toolkit-scroll-bars
858 don't use Motif or Xaw3d scroll bars
859 --without-xim don
't use X11 XIM
860 --without-carbon don't use Carbon GUI on Mac OS X
861 --with-x use the X Window System
863 Some influential environment variables
:
864 CC C compiler
command
865 CFLAGS C compiler flags
866 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
867 nonstandard directory
<lib dir
>
868 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
869 headers
in a nonstandard directory
<include dir
>
872 Use these variables to override the choices made by
`configure' or to help
873 it to find libraries and programs with nonstandard names/locations.
878 if test "$ac_init_help" = "recursive"; then
879 # If there are subdirs, report their specific --help.
881 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
882 test -d $ac_dir || continue
885 if test "$ac_dir" != .; then
886 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
887 # A "../" for each directory in $ac_dir_suffix.
888 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
890 ac_dir_suffix= ac_top_builddir=
894 .) # No --srcdir option. We are building in place.
896 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
901 [\\/]* | ?:[\\/]* ) # Absolute path.
902 ac_srcdir=$srcdir$ac_dir_suffix;
903 ac_top_srcdir=$srcdir ;;
905 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
906 ac_top_srcdir=$ac_top_builddir$srcdir ;;
908 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
910 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
911 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
912 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
913 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
916 # Check for guested configure; otherwise get Cygnus style configure.
917 if test -f $ac_srcdir/configure.gnu; then
919 $SHELL $ac_srcdir/configure.gnu --help=recursive
920 elif test -f $ac_srcdir/configure; then
922 $SHELL $ac_srcdir/configure --help=recursive
923 elif test -f $ac_srcdir/configure.ac ||
924 test -f $ac_srcdir/configure.in; then
928 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
934 test -n "$ac_init_help" && exit 0
935 if $ac_init_version; then
938 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
939 Free Software Foundation, Inc.
940 This configure script is free software; the Free Software Foundation
941 gives unlimited permission to copy, distribute and modify it.
947 This file contains any messages produced by compilers while
948 running configure, to aid debugging if configure makes a mistake.
950 It was created by $as_me, which was
951 generated by GNU Autoconf 2.53. Invocation command line was
962 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
963 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
964 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
965 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
966 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
968 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
969 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
971 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
972 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
973 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
974 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
975 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
976 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
977 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
985 test -z "$as_dir" && as_dir=.
1001 # Keep a trace of the command line.
1002 # Strip out --no-create and --no-recursion so they do not pile up.
1003 # Also quote any args containing shell meta-characters.
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n ) continue ;;
1011 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1012 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1015 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1017 case " $ac_configure_args " in
1018 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1019 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1022 # Get rid of the leading space.
1025 # When interrupted or exit'd, cleanup temporary files, and complete
1026 # config.log. We remove comments because anyway the quotes in there
1027 # would cause problems or look ugly.
1028 # WARNING: Be sure not to use single quotes in there, as some shells,
1029 # such as our DU 5.0 friend, will then `close
' the trap.
1030 trap 'exit_status
=$?
1031 # Save into config.log some information that might help in debugging.
1035 ## ---------------- ##
1036 ## Cache variables. ##
1037 ## ---------------- ##
1040 # The following way of writing the cache mishandles newlines in values,
1043 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1046 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1047 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1051 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1056 if test -s confdefs.h
; then
1063 sed "/^$/d" confdefs.h
1066 test "$ac_signal" != 0 &&
1067 echo "$as_me: caught signal $ac_signal"
1068 echo "$as_me: exit $exit_status"
1070 rm -f core core.
* *.core
&&
1071 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1074 for ac_signal in 1 2 13 15; do
1075 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1080 rm -rf conftest* confdefs.h
1081 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1084 # Predefined preprocessor variables.
1086 cat >>confdefs.h <<_ACEOF
1087 #define PACKAGE_NAME "$PACKAGE_NAME"
1091 cat >>confdefs.h <<_ACEOF
1092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1096 cat >>confdefs.h <<_ACEOF
1097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1101 cat >>confdefs.h <<_ACEOF
1102 #define PACKAGE_STRING "$PACKAGE_STRING"
1106 cat >>confdefs.h <<_ACEOF
1107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1111 # Let the site file select an alternate cache file if it wants to.
1112 # Prefer explicitly selected file to automatically selected ones.
1113 if test -z "$CONFIG_SITE"; then
1114 if test "x$prefix" != xNONE; then
1115 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1117 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1120 for ac_site_file in $CONFIG_SITE; do
1121 if test -r "$ac_site_file"; then
1122 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1123 echo "$as_me: loading site script $ac_site_file" >&6;}
1124 sed 's
/^
/|
/' "$ac_site_file" >&5
1129 if test -r "$cache_file"; then
1130 # Some versions of bash will fail to source /dev/null (special
1131 # files actually), so we avoid doing that.
1132 if test -f "$cache_file"; then
1133 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1134 echo "$as_me: loading cache $cache_file" >&6;}
1136 [\\/]* | ?:[\\/]* ) . $cache_file;;
1137 *) . ./$cache_file;;
1141 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1142 echo "$as_me: creating cache $cache_file" >&6;}
1146 # Check that the precious variables saved in the cache have kept the same
1148 ac_cache_corrupted=false
1149 for ac_var in `(set) 2>&1 |
1150 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1151 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1152 eval ac_new_set=\$ac_env_${ac_var}_set
1153 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1154 eval ac_new_val="\$ac_env_${ac_var}_value"
1155 case $ac_old_set,$ac_new_set in
1157 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1158 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1159 ac_cache_corrupted=: ;;
1161 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1162 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1163 ac_cache_corrupted=: ;;
1166 if test "x$ac_old_val" != "x$ac_new_val"; then
1167 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1168 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1169 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1170 echo "$as_me: former value: $ac_old_val" >&2;}
1171 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1172 echo "$as_me: current value: $ac_new_val" >&2;}
1173 ac_cache_corrupted=:
1176 # Pass precious variables to config.status.
1177 if test "$ac_new_set" = set; then
1179 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1180 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1181 *) ac_arg=$ac_var=$ac_new_val ;;
1183 case " $ac_configure_args " in
1184 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1185 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1189 if $ac_cache_corrupted; then
1190 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1191 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1192 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1193 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1194 { (exit 1); exit 1; }; }
1198 ac_cpp='$CPP $CPPFLAGS'
1199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1200 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1220 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1223 test "$program_prefix" != NONE &&
1224 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1225 # Use a double $ so make ignores it.
1226 test "$program_suffix" != NONE &&
1227 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1228 # Double any \ or $. echo might interpret backslashes.
1229 # By default was `s,x,x', remove it
if useless.
1230 cat <<\_ACEOF
>conftest.
sed
1231 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1233 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1237 lispdir
='${datadir}/emacs/${version}/lisp'
1238 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1239 '${datadir}/emacs/site-lisp:${datadir}/emacs/${version}/leim'
1240 lisppath
='${locallisppath}:${lispdir}'
1241 etcdir
='${datadir}/emacs/${version}/etc'
1242 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1243 docdir
='${datadir}/emacs/${version}/etc'
1247 # Check whether --with-game-dir or --without-game-dir was given.
1248 if test "${with_game_dir+set}" = set; then
1249 withval
="$with_game_dir"
1254 if test "$gamedir" = yes; then
1255 gamedir
="${localstatedir}/games/emacs"
1257 eval tgamedir
=\"$gamedir\"
1258 if test "$gamedir" != no
; then
1260 cat >>confdefs.h
<<_ACEOF
1261 #define HAVE_SHARED_GAME_DIR "$tgamedir"
1268 # Check whether --with-game-user or --without-game-user was given.
1269 if test "${with_game_user+set}" = set; then
1270 withval
="$with_game_user"
1275 # Check whether --with-gcc or --without-gcc was given.
1276 if test "${with_gcc+set}" = set; then
1281 # Check whether --with-pop or --without-pop was given.
1282 if test "${with_pop+set}" = set; then
1284 if test "$withval" = yes; then
1285 cat >>confdefs.h
<<\_ACEOF
1286 #define MAIL_USE_POP 1
1292 cat >>confdefs.h
<<\_ACEOF
1293 #define MAIL_USE_POP 1
1299 # Check whether --with-kerberos or --without-kerberos was given.
1300 if test "${with_kerberos+set}" = set; then
1301 withval
="$with_kerberos"
1302 cat >>confdefs.h
<<\_ACEOF
1309 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1310 if test "${with_kerberos5+set}" = set; then
1311 withval
="$with_kerberos5"
1312 if test "${with_kerberos5+set}" = set; then
1313 if test "${with_kerberos+set}" != set; then
1315 cat >>confdefs.h
<<\_ACEOF
1322 cat >>confdefs.h
<<\_ACEOF
1328 # Check whether --with-hesiod or --without-hesiod was given.
1329 if test "${with_hesiod+set}" = set; then
1330 withval
="$with_hesiod"
1332 cat >>confdefs.h
<<\_ACEOF
1339 # Check whether --with-sound or --without-sound was given.
1340 if test "${with_sound+set}" = set; then
1341 withval
="$with_sound"
1346 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1347 if test "${with_x_toolkit+set}" = set; then
1348 withval
="$with_x_toolkit"
1349 case "${withval}" in
1350 y | ye |
yes ) val
=athena
;;
1352 l | lu | luc | luci | lucid
) val
=lucid
;;
1353 a |
at | ath | athe | athen | athena
) val
=athena
;;
1354 m | mo | mot | moti | motif
) val
=motif
;;
1356 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1357 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1358 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1359 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1360 this option's value should be \`yes', \`no', \`lucid', \`athena', or \`motif'.
1361 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1362 { (exit 1); exit 1; }; }
1369 # Check whether --with-xpm or --without-xpm was given.
1370 if test "${with_xpm+set}" = set; then
1375 # Check whether --with-jpeg or --without-jpeg was given.
1376 if test "${with_jpeg+set}" = set; then
1377 withval
="$with_jpeg"
1381 # Check whether --with-tiff or --without-tiff was given.
1382 if test "${with_tiff+set}" = set; then
1383 withval
="$with_tiff"
1387 # Check whether --with-gif or --without-gif was given.
1388 if test "${with_gif+set}" = set; then
1393 # Check whether --with-png or --without-png was given.
1394 if test "${with_png+set}" = set; then
1399 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1400 if test "${with_toolkit_scroll_bars+set}" = set; then
1401 withval
="$with_toolkit_scroll_bars"
1405 # Check whether --with-xim or --without-xim was given.
1406 if test "${with_xim+set}" = set; then
1411 # Check whether --with-carbon or --without-carbon was given.
1412 if test "${with_carbon+set}" = set; then
1413 withval
="$with_carbon"
1417 #### Make srcdir absolute, if it isn't already. It's important to
1418 #### avoid running the path through pwd unnecessarily, since pwd can
1419 #### give you automounter prefixes, which can go away. We do all this
1420 #### so Emacs can find its files when run uninstalled.
1421 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1426 ## We may be able to use the $PWD environment variable to make this
1427 ## absolute. But sometimes PWD is inaccurate.
1428 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1429 ## but that tested only for a well-formed and valid PWD,
1430 ## it did not object when PWD was well-formed and valid but just wrong.
1431 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1435 srcdir
="`(cd ${srcdir}; pwd)`"
1438 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1441 #### Check if the source directory already has a configured system in it.
1442 if test `pwd` != `(cd ${srcdir} && pwd)` \
1443 && test -f "${srcdir}/src/config.h" ; then
1444 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1445 as a build directory right now; it has been configured in its own
1446 right. To configure in another directory as well, you MUST
1447 use GNU make. If you do not have GNU make, then you must
1448 now do \`make distclean' in ${srcdir},
1449 and then run $0 again." >&5
1450 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1451 as a build directory right now; it has been configured in its own
1452 right. To configure in another directory as well, you MUST
1453 use GNU make. If you do not have GNU make, then you must
1454 now do \`make distclean' in ${srcdir},
1455 and then run $0 again." >&2;}
1457 extrasub
='/^VPATH[ ]*=/c\
1458 vpath %.c $(srcdir)\
1459 vpath %.h $(srcdir)\
1460 vpath %.y $(srcdir)\
1461 vpath %.l $(srcdir)\
1462 vpath %.s $(srcdir)\
1463 vpath %.in $(srcdir)\
1464 vpath %.texi $(srcdir)'
1467 #### Given the configuration name, set machfile and opsysfile to the
1468 #### names of the m/*.h and s/*.h files we should use.
1470 ### Canonicalize the configuration name.
1473 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1474 if test -f $ac_dir/install-sh
; then
1476 ac_install_sh
="$ac_aux_dir/install-sh -c"
1478 elif test -f $ac_dir/install.sh
; then
1480 ac_install_sh
="$ac_aux_dir/install.sh -c"
1482 elif test -f $ac_dir/shtool
; then
1484 ac_install_sh
="$ac_aux_dir/shtool install -c"
1488 if test -z "$ac_aux_dir"; then
1489 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1490 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1491 { (exit 1); exit 1; }; }
1493 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1494 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1495 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1497 # Make sure we can run config.sub.
1498 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1499 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1500 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1501 { (exit 1); exit 1; }; }
1503 echo "$as_me:$LINENO: checking build system type" >&5
1504 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1505 if test "${ac_cv_build+set}" = set; then
1506 echo $ECHO_N "(cached) $ECHO_C" >&6
1508 ac_cv_build_alias
=$build_alias
1509 test -z "$ac_cv_build_alias" &&
1510 ac_cv_build_alias
=`$ac_config_guess`
1511 test -z "$ac_cv_build_alias" &&
1512 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1513 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1514 { (exit 1); exit 1; }; }
1515 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1516 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1517 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1518 { (exit 1); exit 1; }; }
1521 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1522 echo "${ECHO_T}$ac_cv_build" >&6
1524 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1525 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1526 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1529 echo "$as_me:$LINENO: checking host system type" >&5
1530 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1531 if test "${ac_cv_host+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 ac_cv_host_alias
=$host_alias
1535 test -z "$ac_cv_host_alias" &&
1536 ac_cv_host_alias
=$ac_cv_build_alias
1537 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1538 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1539 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1540 { (exit 1); exit 1; }; }
1543 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1544 echo "${ECHO_T}$ac_cv_host" >&6
1546 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1547 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1548 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1552 configuration
=${host_alias-$host}
1555 ### If you add support for a new configuration, add code to this
1556 ### switch statement to recognize your configuration name and select
1557 ### the appropriate operating system and machine description files.
1559 ### You would hope that you could choose an m/*.h file pretty much
1560 ### based on the machine portion of the configuration name, and an s-
1561 ### file based on the operating system portion. However, it turns out
1562 ### that each m/*.h file is pretty manufacturer-specific - for
1563 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1564 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1565 ### machines. So we basically have to have a special case for each
1566 ### configuration name.
1568 ### As far as handling version numbers on operating systems is
1569 ### concerned, make sure things will fail in a fixable way. If
1570 ### /etc/MACHINES doesn't say anything about version numbers, be
1571 ### prepared to handle anything reasonably. If version numbers
1572 ### matter, be sure /etc/MACHINES says something about it.
1574 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1575 ### "System V Release 4"; he writes, "The old convention encouraged
1576 ### confusion between `system' and `release' levels'."
1578 machine
='' opsys
='' unported
=no
1579 case "${canonical}" in
1584 case "${canonical}" in
1585 alpha
*-*-freebsd*) machine
=alpha
;;
1586 i
[3456]86-*-freebsd*) machine
=intel386
;;
1593 case "${canonical}" in
1594 alpha
*-*-netbsd*) machine
=alpha
;;
1595 i
[3456]86-*-netbsd*) machine
=intel386
;;
1597 # This is somewhat bogus.
1598 machine
=hp9000s300
;;
1599 powerpc-apple-netbsd
*) machine
=macppc
;;
1600 mips-
*-netbsd*) machine
=pmax
;;
1601 mipsel-
*-netbsd*) machine
=pmax
;;
1602 ns32k-
*-netbsd*) machine
=ns32000
;;
1603 powerpc-
*-netbsd*) machine
=macppc
;;
1604 sparc
*-*-netbsd*) machine
=sparc
;;
1605 vax-
*-netbsd*) machine
=vax
;;
1606 arm-
*-netbsd*) machine
=arm
;;
1613 case "${canonical}" in
1614 alpha
*-*-openbsd*) machine
=alpha
;;
1615 i386-
*-openbsd*) machine
=intel386
;;
1616 m68k-
*-openbsd*) machine
=hp9000s300
;;
1617 mipsel-
*-openbsd*) machine
=pmax
;;
1618 ns32k-
*-openbsd*) machine
=ns32000
;;
1619 sparc-
*-openbsd*) machine
=sparc
;;
1620 vax-
*-openbsd*) machine
=vax
;;
1625 arm-acorn-riscix1.1
* )
1626 machine
=acorn opsys
=riscix1-1
1628 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1629 ## This name is riscix12 instead of riscix1.2
1630 ## to avoid a file name conflict on MSDOS.
1631 machine
=acorn opsys
=riscix12
1637 case "${canonical}" in
1638 i
[345]86-*-bsdi*) machine
=intel386
;;
1639 sparc-
*-bsdi*) machine
=sparc
;;
1640 powerpc-
*-bsdi*) machine
=macppc
;;
1642 case "${canonical}" in
1643 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1644 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1645 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1646 *-*-bsdi3* ) opsys
=bsdos3
;;
1647 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1652 ## Strictly speaking, we need the version of the alliant operating
1653 ## system to choose the right machine file, but currently the
1654 ## configuration name doesn't tell us enough to choose the right
1655 ## one; we need to give alliants their own operating system name to
1656 ## do this right. When someone cares, they can help us.
1658 machine
=alliant4 opsys
=bsd4-2
1661 machine
=alliant-2800 opsys
=bsd4-3
1664 ## Alpha (DEC) machines.
1666 machine
=alpha opsys
=osf1
1667 # This is needed to find X11R6.1 libraries for certain tests.
1668 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1669 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1670 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1671 # due to non-traditional preprocessing with the current compiler
1672 # defaults. OSF 4 can also have that compiler version, and there
1673 # seems always to have been a usable /usr/bin/cpp.
1674 NON_GNU_CPP
=/usr
/bin
/cpp
1675 case "${canonical}" in
1676 alpha
*-dec-osf[5-9]*)
1681 alpha
*-*-linux-gnu* )
1682 machine
=alpha opsys
=gnu-linux
1686 machine
=arm opsys
=gnu-linux
1691 machine
=macppc opsys
=gnu-linux
1696 machine
=altos opsys
=usg5-2
1701 machine
=amdahl opsys
=usg5-2-2
1704 ## Apollo, Domain/OS
1706 machine
=apollo opsys
=bsd4-3
1709 ## AT&T 3b2, 3b5, 3b15, 3b20
1711 machine
=att3b opsys
=usg5-2-2
1714 ## AT&T 3b1 - The Mighty Unix PC!
1716 machine
=7300 opsys
=usg5-2-2
1721 machine
=ibmrs6000 opsys
=aix3-2
1726 machine
=dpx2 opsys
=usg5-3
1731 machine
=sps7 opsys
=usg5-2
1734 ## CCI 5/32, 6/32 -- see "Tahoe".
1737 ## I don't know what configuration name to use for this; config.sub
1738 ## doesn't seem to know anything about it. Hey, Celerity users, get
1739 ## in touch with us!
1740 celerity-celerity-bsd
* )
1741 machine
=celerity opsys
=bsd4-2
1745 ## What operating systems does this chip run that Emacs has been
1749 ## We'll use the catch-all code at the bottom to guess the
1750 ## operating system.
1754 mips-compaq-nonstopux
* )
1755 machine
=nonstopux opsys
=nonstopux
1759 *-convex-bsd* |
*-convex-convexos* )
1760 machine
=convex opsys
=bsd4-3
1761 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1762 NON_GNU_CPP
="cc -E -P"
1766 i
[3456]86-cubix-sysv* )
1767 machine
=intel386 opsys
=usg5-3
1771 cydra
*-cydrome-sysv* )
1772 machine
=cydra5 opsys
=usg5-3
1775 ## Data General AViiON Machines
1776 ## DG changed naming conventions with the release of 5.4.4.10, they
1777 ## dropped the initial 5.4 but left the intervening R. Because of the
1778 ## R this shouldn't conflict with older versions of the OS (which I
1779 ## think were named like dgux4.*). In addition, DG new AViiONs series
1780 ## uses either Motorola M88k or Intel Pentium CPUs.
1781 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1782 machine
=aviion opsys
=dgux4
1784 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1785 ## This name is dgux5-4-3 instead of dgux5-4r3
1786 ## to avoid a file name conflict on MSDOS.
1787 machine
=aviion opsys
=dgux5-4-3
1789 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1790 machine
=aviion opsys
=dgux5-4r2
1793 machine
=aviion opsys
=dgux
1796 ## Data General AViiON Intel (x86) Machines
1797 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1798 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1799 i
[345]86-dg-dguxR4* )
1800 machine
=aviion-intel opsys
=dgux4
1804 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1805 machine
=pmax opsys
=bsd4-2
1807 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1808 machine
=pmax opsys
=bsd4-3
1811 machine
=pmax opsys
=ultrix4-3
1814 machine
=pmax opsys
=osf1
1816 mips-dec-mach_bsd4.3
* )
1817 machine
=pmax opsys
=mach-bsd4-3
1820 ## Motorola Delta machines
1821 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1822 machine
=delta opsys
=usg5-3
1823 if test -z "`type gnucc | grep 'not found'`"
1825 if test -s /etc
/167config
1826 then CC
="gnucc -m68040"
1827 else CC
="gnucc -m68881"
1830 if test -z "`type gcc | grep 'not found'`"
1836 m88k-motorola-sysv4
* )
1837 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
1838 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
1839 # I hope there are not other 4.0 versions for this machine
1840 # which really need usg5-4 instead.
1841 machine
=delta88k opsys
=usg5-4-2
1843 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
1844 machine
=delta88k opsys
=usg5-3
1849 machine
=dual opsys
=usg5-2
1851 m68
*-dual-uniplus* )
1852 machine
=dual opsys
=unipl5-2
1857 machine
=elxsi opsys
=usg5-2
1862 machine
=ns16000 opsys
=umax
1865 ## The GEC 63 - apparently, this port isn't really finished yet.
1866 # I'm sure we finished off the last of the machines, though. -- fx
1868 ## Gould Power Node and NP1
1870 machine
=gould opsys
=bsd4-2
1873 machine
=gould opsys
=bsd4-3
1876 machine
=gould-np1 opsys
=bsd4-3
1879 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
1880 ## as far as Emacs is concerned).
1882 # Build needs to be different on 7.0 and later releases
1883 case "`uname -r`" in
1884 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
1885 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
1887 NON_GNU_CPP
="/lib/cpp"
1889 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
1891 machine
=nh3000 opsys
=cxux
1893 ## Harris power pc NightHawk running Power UNIX (Series 6000)
1894 powerpc-harris-powerunix
)
1895 machine
=nh6000 opsys
=powerunix
1896 NON_GNU_CPP
="cc -Xo -E -P"
1898 ## SR2001/SR2201 running HI-UX/MPP
1899 hppa1.1
-hitachi-hiuxmpp* )
1900 machine
=sr2k opsys
=hiuxmpp
1902 hppa1.1
-hitachi-hiuxwe2* )
1903 machine
=sr2k opsys
=hiuxwe2
1906 xps
*-honeywell-sysv* )
1907 machine
=xps100 opsys
=usg5-2
1910 ## HP 9000 series 200 or 300
1912 machine
=hp9000s300 opsys
=bsd4-3
1914 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
1916 case "`uname -r`" in
1917 ## Someone's system reports A.B8.05 for this.
1918 ## I wonder what other possibilities there are.
1919 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1920 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
1921 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
1922 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
1923 *) machine
=hp9000s300 opsys
=hpux
;;
1927 ## HP 9000 series 700 and 800, running HP/UX
1929 machine
=hp800 opsys
=hpux
1932 machine
=hp800 opsys
=hpux8
1934 hppa
*-hp-hpux9shr* )
1935 machine
=hp800 opsys
=hpux9shr
1938 machine
=hp800 opsys
=hpux9
1941 machine
=hp800 opsys
=hpux10
1943 hppa
*-hp-hpux1[1-9]* )
1944 machine
=hp800 opsys
=hpux11
1947 hppa
*-*-linux-gnu* )
1948 machine
=hp800 opsys
=gnu-linux
1951 ## HP 9000 series 700 and 800, running HP/UX
1953 ## Cross-compilation? Nah!
1954 case "`uname -r`" in
1955 ## Someone's system reports A.B8.05 for this.
1956 ## I wonder what other possibilities there are.
1957 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
1958 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
1959 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
1960 *) machine
=hp800 opsys
=hpux10
;;
1964 machine
=hp800 opsys
=nextstep
1969 machine
=orion opsys
=bsd4-2
1971 clipper-orion-bsd
* )
1972 machine
=orion105 opsys
=bsd4-2
1976 i
[3456]86-ibm-aix1.1
* )
1977 machine
=ibmps2-aix opsys
=usg5-2-2
1979 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
1980 machine
=ibmps2-aix opsys
=usg5-3
1983 machine
=ibm370aix opsys
=usg5-3
1986 machine
=ibms390 opsys
=gnu-linux
1988 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
1989 machine
=ibmrs6000 opsys
=aix3-1
1991 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
1992 machine
=ibmrs6000 opsys
=aix3-2-5
1994 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
1995 machine
=ibmrs6000 opsys
=aix4-1
1997 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
1998 machine
=ibmrs6000 opsys
=aix4-2
2000 rs6000-ibm-aix5.1
* | powerpc-ibm-aix5.1
* )
2001 machine
=ibmrs6000 opsys
=aix4-2
2003 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2004 machine
=ibmrs6000 opsys
=aix4
2006 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2007 machine
=ibmrs6000 opsys
=aix4-1
2009 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2010 machine
=ibmrs6000 opsys
=aix3-2
2013 machine
=ibmrt opsys
=bsd4-3
2016 machine
=ibmrt opsys
=bsd4-2
2019 machine
=ibmrt opsys
=bsd4-3
2022 machine
=ibmrt opsys
=bsd4-2
2025 machine
=ibmrt opsys
=bsd4-3
2028 machine
=ibmrt opsys
=bsd4-3
2031 machine
=ibmrt-aix opsys
=usg5-2-2
2034 ## Integrated Solutions `Optimum V'
2036 machine
=isi-ov opsys
=bsd4-2
2039 machine
=isi-ov opsys
=bsd4-3
2042 ## Intel 386 machines where we do care about the manufacturer
2043 i
[3456]86-intsys-sysv* )
2044 machine
=is386 opsys
=usg5-2-2
2048 i
[3456]86-prime-sysv* )
2049 machine
=i386 opsys
=usg5-3
2052 ## Sequent Symmetry running Dynix
2053 i
[3456]86-sequent-bsd* )
2054 machine
=symmetry opsys
=bsd4-3
2057 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2058 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2059 machine
=sequent-ptx opsys
=ptx4
2060 NON_GNU_CPP
=/lib
/cpp
2063 ## Sequent Symmetry running DYNIX/ptx
2064 ## Use the old cpp rather than the newer ANSI one.
2065 i
[3456]86-sequent-ptx* )
2066 machine
=sequent-ptx opsys
=ptx
2067 NON_GNU_CPP
="/lib/cpp"
2070 ## ncr machine running svr4.3.
2071 i
[3456]86-ncr-sysv4.3
)
2072 machine
=ncr386 opsys
=usg5-4-3
2075 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2076 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2077 i
[3456]86-ncr-sysv* )
2078 machine
=ncr386 opsys
=usg5-4-2
2081 ## Intel Paragon OSF/1
2083 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2088 machine
=i860 opsys
=usg5-4
2089 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2090 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2093 ## Macintosh PowerPC
2094 powerpc
*-*-linux-gnu* )
2095 machine
=macppc opsys
=gnu-linux
2098 ## Masscomp machines
2099 m68
*-masscomp-rtu* )
2100 machine
=masscomp opsys
=rtu
2103 ## Megatest machines
2104 m68
*-megatest-bsd* )
2105 machine
=mega68 opsys
=bsd4-2
2108 ## Workstations sold by MIPS
2109 ## This is not necessarily all workstations using the MIPS processor -
2110 ## Irises are produced by SGI, and DECstations by DEC.
2112 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2113 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2114 ## it gives for choosing between the alternatives seems to be "Use
2115 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2116 ## the BSD world." I'll assume that these are instructions for
2117 ## handling two odd situations, and that every other situation
2118 ## should use mips.h and usg5-2-2, they being listed first.
2121 ## Fall through to the general code at the bottom to decide on the OS.
2123 mips-mips-riscos4
* )
2124 machine
=mips4 opsys
=bsd4-3
2125 NON_GNU_CC
="cc -systype bsd43"
2126 NON_GNU_CPP
="cc -systype bsd43 -E"
2128 mips-mips-riscos5
* )
2129 machine
=mips4 opsys
=riscos5
2130 NON_GNU_CC
="cc -systype bsd43"
2131 NON_GNU_CPP
="cc -systype bsd43 -E"
2134 machine
=mips opsys
=bsd4-3
2137 machine
=mips opsys
=usg5-2-2
2141 m68
*-next-* | m68k-
*-nextstep* )
2142 machine
=m68k opsys
=nextstep
2145 ## The complete machine from National Semiconductor
2147 machine
=ns32000 opsys
=usg5-2
2151 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2152 machine
=tower32 opsys
=usg5-2-2
2154 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2155 machine
=tower32v3 opsys
=usg5-3
2160 machine
=ews4800 opsys
=ux4800
2163 ## Nixdorf Targon 31
2164 m68
*-nixdorf-sysv* )
2165 machine
=targon31 opsys
=usg5-2-2
2170 machine
=nu opsys
=usg5-2
2175 machine
=plexus opsys
=usg5-2
2178 ## PowerPC reference platform
2179 powerpcle-
*-solaris2* )
2185 ## I don't really have any idea what sort of processor the Pyramid has,
2186 ## so I'm assuming it is its own architecture.
2187 pyramid-pyramid-bsd
* )
2188 machine
=pyramid opsys
=bsd4-2
2192 ns32k-sequent-bsd4.2
* )
2193 machine
=sequent opsys
=bsd4-2
2195 ns32k-sequent-bsd4.3
* )
2196 machine
=sequent opsys
=bsd4-3
2200 mips-siemens-sysv
* | mips-sni-sysv
*)
2201 machine
=mips-siemens opsys
=usg5-4
2202 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2203 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2206 ## Silicon Graphics machines
2207 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2209 machine
=irist opsys
=iris3-5
2211 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2212 machine
=irist opsys
=iris3-6
2216 machine
=iris4d opsys
=irix3-3
2219 machine
=iris4d opsys
=irix4-0
2222 machine
=iris4d opsys
=irix6-5
2223 # Without defining _LANGUAGE_C, things get masked out in the headers
2224 # so that, for instance, grepping for `free' in stdlib.h fails and
2225 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2226 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2227 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2230 machine
=iris4d opsys
=irix6-0
2231 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2232 # but presumably it does no harm.
2233 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2234 # -32 probably isn't necessary in later v.6s -- anyone know which?
2235 NON_GCC_TEST_OPTIONS
=-32
2237 mips-sgi-irix5.
[01]* )
2238 machine
=iris4d opsys
=irix5-0
2240 mips-sgi-irix5
* | mips-sgi-irix
* )
2241 machine
=iris4d opsys
=irix5-2
2246 machine
=news opsys
=bsd4-2
2249 machine
=news opsys
=bsd4-3
2251 m68
*-sony-newsos3* | m68
*-sony-news3*)
2252 machine
=news opsys
=bsd4-3
2254 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2255 machine
=news-risc opsys
=bsd4-3
2257 mips-sony-newsos6
* )
2258 machine
=news-r6 opsys
=newsos6
2261 machine
=news-risc opsys
=newsos5
2266 machine
=stride opsys
=usg5-2
2270 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2271 machine
=sparc opsys
=gnu-linux
2274 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2275 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2276 | rs6000-
*-solaris2*)
2277 case "${canonical}" in
2278 m68
*-sunos1* ) machine
=sun1
;;
2279 m68
*-sunos2* ) machine
=sun2
;;
2280 m68
* ) machine
=sun3
;;
2281 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2282 i
[3456]86-*-* ) machine
=intel386
;;
2283 powerpcle
* ) machine
=powerpcle
;;
2284 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2285 sparc
* ) machine
=sparc
;;
2288 case "${canonical}" in
2289 ## The Sun386 didn't get past 4.0.
2290 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2291 *-sunos4.0
* ) opsys
=sunos4-0
;;
2292 *-sunos4.1.
[3-9]*noshare
)
2293 ## This name is sunos413 instead of sunos4-1-3
2294 ## to avoid a file name conflict on MSDOS.
2296 NON_GNU_CPP
=/usr
/lib
/cpp
2297 NON_GCC_TEST_OPTIONS
=-Bstatic
2298 GCC_TEST_OPTIONS
=-static
2300 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2302 NON_GNU_CPP
=/usr
/lib
/cpp
2304 *-sunos4* |
*-sunos )
2306 NON_GCC_TEST_OPTIONS
=-Bstatic
2307 GCC_TEST_OPTIONS
=-static
2309 *-sunos5.3
* |
*-solaris2.3
* )
2311 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2313 *-sunos5.4
* |
*-solaris2.4
* )
2315 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2318 *-sunos5.5
* |
*-solaris2.5
* )
2320 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2323 *-sunos5* |
*-solaris* )
2325 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2329 ## Watch out for a compiler that we know will not work.
2330 case "${canonical}" in
2331 *-solaris* |
*-sunos5* )
2332 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2333 ## /usr/ucb/cc doesn't work;
2334 ## we should find some other compiler that does work.
2342 machine
=sparc opsys
=nextstep
2346 m68
*-tadpole-sysv* )
2347 machine
=tad68k opsys
=usg5-3
2351 tahoe-tahoe-bsd4.2
* )
2352 machine
=tahoe opsys
=bsd4-2
2354 tahoe-tahoe-bsd4.3
* )
2355 machine
=tahoe opsys
=bsd4-3
2358 ## Tandem Integrity S2
2360 machine
=tandem-s2 opsys
=usg5-3
2364 m88k-tektronix-sysv3
* )
2365 machine
=tekxd88 opsys
=usg5-3
2368 ## Tektronix 16000 box (6130?)
2369 ns16k-tektronix-bsd
* )
2370 machine
=ns16000 opsys
=bsd4-2
2373 ## src/m/tek4300.h hints that this is a m68k machine.
2374 m68
*-tektronix-bsd* )
2375 machine
=tek4300 opsys
=bsd4-3
2379 ## We seem to have lost the machine-description file titan.h!
2381 machine
=titan opsys
=usg5-3
2384 ## Ustation E30 (SS5E)
2385 m68
*-unisys-uniplus* )
2386 machine
=ustation opsystem
=unipl5-2
2392 case "${canonical}" in
2393 *-bsd4.1
* ) opsys
=bsd4-1
;;
2394 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2395 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2396 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2397 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2398 *-vms* ) opsys
=vms
;;
2404 ns16k-whitechapel-
* )
2406 ## We don't know what sort of OS runs on these; we'll let the
2407 ## operating system guessing code below try.
2412 machine
=wicat opsys
=usg5-2
2417 machine
=ia64 opsys
=gnu-linux
2420 ## Intel 386 machines where we don't care about the manufacturer
2423 case "${canonical}" in
2424 *-lynxos* ) opsys
=lynxos
;;
2425 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2426 *-isc2.2
* ) opsys
=isc2-2
;;
2427 *-isc4.0
* ) opsys
=isc4-0
;;
2428 *-isc4.
* ) opsys
=isc4-1
2429 GCC_TEST_OPTIONS
=-posix
2430 NON_GCC_TEST_OPTIONS
=-Xp
2432 *-isc* ) opsys
=isc3-0
;;
2433 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2434 *-esix* ) opsys
=esix
;;
2435 *-xenix* ) opsys
=xenix
;;
2436 *-linux-gnu* ) opsys
=gnu-linux
;;
2437 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2438 *-sco3.2v5
* ) opsys
=sco5
2439 NON_GNU_CPP
=/lib
/cpp
2440 # Prevent -belf from being passed to $CPP.
2441 # /lib/cpp does not accept it.
2442 OVERRIDE_CPPFLAGS
=" "
2444 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2445 *-386bsd* ) opsys
=386bsd
;;
2446 *-nextstep* ) opsys
=nextstep
;;
2447 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2451 ## m68k Linux-based GNU system
2453 machine
=m68k opsys
=gnu-linux
2456 ## Mips Linux-based GNU system
2458 machine
=mips opsys
=gnu-linux
2462 sparc-fujitsu-sysv4
* )
2463 machine
=sparc opsys
=uxpds
2464 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2469 f301-fujitsu-uxpv4.1
)
2470 machine
=f301 opsys
=uxpv
2473 ## Darwin / Mac OS X
2474 powerpc-apple-darwin
* )
2475 machine
=powermac opsys
=darwin
2476 # Define CPP as follows to make autoconf work correctly.
2477 CPP
="cc -E -traditional-cpp"
2485 ### If the code above didn't choose an operating system, just choose
2486 ### an operating system based on the configuration name. You really
2487 ### only want to use this when you have no idea what the right
2488 ### operating system is; if you know what operating systems a machine
2489 ### runs, it's cleaner to make it explicit in the case statement
2491 if test x
"${opsys}" = x
; then
2492 case "${canonical}" in
2493 *-gnu* ) opsys
=gnu
;;
2494 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2495 *-bsd4.2
) opsys
=bsd4-2
;;
2496 *-bsd4.3
) opsys
=bsd4-3
;;
2497 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2498 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2499 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2500 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2501 *-sysv4.2uw
* ) opsys
=unixware
;;
2502 *-sysv4.1
* |
*-sysvr4.1
* )
2503 NON_GNU_CPP
=/usr
/lib
/cpp
2505 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2506 if [ x
$NON_GNU_CPP = x
]; then
2507 if [ -f /usr
/ccs
/lib
/cpp
]; then
2508 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2510 NON_GNU_CPP
=/lib
/cpp
2514 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2522 if test $unported = yes; then
2523 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2524 Check \`etc/MACHINES' for recognized configuration names." >&5
2525 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2526 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2527 { (exit 1); exit 1; }; }
2530 machfile
="m/${machine}.h"
2531 opsysfile
="s/${opsys}.h"
2534 #### Choose a compiler.
2535 test -n "$CC" && cc_specified
=yes
2537 # Save the value of CFLAGS that the user specified.
2538 SPECIFIED_CFLAGS
="$CFLAGS"
2541 "yes" ) CC
="gcc" GCC
=yes ;;
2542 "no" ) : ${CC=cc} ;;
2546 ac_cpp
='$CPP $CPPFLAGS'
2547 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2548 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2549 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2550 if test -n "$ac_tool_prefix"; then
2551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2552 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2553 echo "$as_me:$LINENO: checking for $ac_word" >&5
2554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2555 if test "${ac_cv_prog_CC+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 if test -n "$CC"; then
2559 ac_cv_prog_CC
="$CC" # Let the user override the test.
2561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2565 test -z "$as_dir" && as_dir
=.
2566 for ac_exec_ext
in '' $ac_executable_extensions; do
2567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2568 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 if test -n "$CC"; then
2579 echo "$as_me:$LINENO: result: $CC" >&5
2580 echo "${ECHO_T}$CC" >&6
2582 echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6
2587 if test -z "$ac_cv_prog_CC"; then
2589 # Extract the first word of "gcc", so it can be a program name with args.
2590 set dummy gcc
; ac_word
=$2
2591 echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2593 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$ac_ct_CC"; then
2597 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir
=.
2604 for ac_exec_ext
in '' $ac_executable_extensions; do
2605 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_ac_ct_CC
="gcc"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2616 if test -n "$ac_ct_CC"; then
2617 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2618 echo "${ECHO_T}$ac_ct_CC" >&6
2620 echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6
2629 if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2632 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2633 echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2635 if test "${ac_cv_prog_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC
="$CC" # Let the user override the test.
2641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir
=.
2646 for ac_exec_ext
in '' $ac_executable_extensions; do
2647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 if test -n "$CC"; then
2659 echo "$as_me:$LINENO: result: $CC" >&5
2660 echo "${ECHO_T}$CC" >&6
2662 echo "$as_me:$LINENO: result: no" >&5
2663 echo "${ECHO_T}no" >&6
2667 if test -z "$ac_cv_prog_CC"; then
2669 # Extract the first word of "cc", so it can be a program name with args.
2670 set dummy cc
; ac_word
=$2
2671 echo "$as_me:$LINENO: checking for $ac_word" >&5
2672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2673 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2676 if test -n "$ac_ct_CC"; then
2677 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir
=.
2684 for ac_exec_ext
in '' $ac_executable_extensions; do
2685 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2686 ac_cv_prog_ac_ct_CC
="cc"
2687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2696 if test -n "$ac_ct_CC"; then
2697 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2698 echo "${ECHO_T}$ac_ct_CC" >&6
2700 echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6
2710 if test -z "$CC"; then
2711 # Extract the first word of "cc", so it can be a program name with args.
2712 set dummy cc
; ac_word
=$2
2713 echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC
="$CC" # Let the user override the test.
2722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir
=.
2727 for ac_exec_ext
in '' $ac_executable_extensions; do
2728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2730 ac_prog_rejected
=yes
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test $ac_prog_rejected = yes; then
2741 # We found a bogon in the path, so make sure we never use it.
2742 set dummy
$ac_cv_prog_CC
2744 if test $# != 0; then
2745 # We chose a different compiler from the bogus one.
2746 # However, it has the same basename, so the bogon will be chosen
2747 # first if we set CC to just the basename; use the full file name.
2749 set dummy
"$as_dir/$ac_word" ${1+"$@"}
2757 if test -n "$CC"; then
2758 echo "$as_me:$LINENO: result: $CC" >&5
2759 echo "${ECHO_T}$CC" >&6
2761 echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2766 if test -z "$CC"; then
2767 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2771 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2772 echo "$as_me:$LINENO: checking for $ac_word" >&5
2773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2774 if test "${ac_cv_prog_CC+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC
="$CC" # Let the user override the test.
2780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2784 test -z "$as_dir" && as_dir
=.
2785 for ac_exec_ext
in '' $ac_executable_extensions; do
2786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2787 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$CC"; then
2798 echo "$as_me:$LINENO: result: $CC" >&5
2799 echo "${ECHO_T}$CC" >&6
2801 echo "$as_me:$LINENO: result: no" >&5
2802 echo "${ECHO_T}no" >&6
2805 test -n "$CC" && break
2808 if test -z "$CC"; then
2812 # Extract the first word of "$ac_prog", so it can be a program name with args.
2813 set dummy
$ac_prog; ac_word
=$2
2814 echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2816 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2819 if test -n "$ac_ct_CC"; then
2820 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir
=.
2827 for ac_exec_ext
in '' $ac_executable_extensions; do
2828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_ac_ct_CC
="$ac_prog"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2841 echo "${ECHO_T}$ac_ct_CC" >&6
2843 echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6
2847 test -n "$ac_ct_CC" && break
2856 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2857 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2858 { (exit 1); exit 1; }; }
2860 # Provide some information about the compiler.
2861 echo "$as_me:$LINENO:" \
2862 "checking for C compiler version" >&5
2863 ac_compiler
=`set X $ac_compile; echo $2`
2864 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2865 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }
2869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2870 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }
2874 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2875 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); }
2880 cat >conftest.
$ac_ext <<_ACEOF
2881 #line $LINENO "configure"
2882 #include "confdefs.h"
2884 #ifdef F77_DUMMY_MAIN
2888 int F77_DUMMY_MAIN() { return 1; }
2898 ac_clean_files_save
=$ac_clean_files
2899 ac_clean_files
="$ac_clean_files a.out a.exe"
2900 # Try to create an executable without -o first, disregard a.out.
2901 # It will help us diagnose broken compilers, and finding out an intuition
2903 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2904 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2905 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2906 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2907 (eval $ac_link_default) 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 # Find the output, starting from the most likely. This scheme is
2912 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2915 # Be careful to initialize this variable, since it used to be cached.
2916 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2918 for ac_file
in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2919 ls a.out conftest 2>/dev/null;
2920 ls a.* conftest.* 2>/dev/null`; do
2922 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM
) ;;
2923 a.out
) # We found the default executable, but exeext='' is most
2926 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2927 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2934 echo "$as_me: failed program was:" >&5
2935 cat conftest.
$ac_ext >&5
2936 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2937 echo "$as_me: error: C compiler cannot create executables" >&2;}
2938 { (exit 77); exit 77; }; }
2941 ac_exeext
=$ac_cv_exeext
2942 echo "$as_me:$LINENO: result: $ac_file" >&5
2943 echo "${ECHO_T}$ac_file" >&6
2945 # Check the compiler produces executables we can run. If not, either
2946 # the compiler is broken, or we cross compile.
2947 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2948 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2949 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2950 # If not cross compiling, check that we can run a simple program.
2951 if test "$cross_compiling" != yes; then
2952 if { ac_try
='./$ac_file'
2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }; }; then
2960 if test "$cross_compiling" = maybe
; then
2963 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2964 If you meant to cross compile, use \`--host'." >&5
2965 echo "$as_me: error: cannot run C compiled programs.
2966 If you meant to cross compile, use \`--host'." >&2;}
2967 { (exit 1); exit 1; }; }
2971 echo "$as_me:$LINENO: result: yes" >&5
2972 echo "${ECHO_T}yes" >&6
2974 rm -f a.out a.exe conftest
$ac_cv_exeext
2975 ac_clean_files
=$ac_clean_files_save
2976 # Check the compiler produces executables we can run. If not, either
2977 # the compiler is broken, or we cross compile.
2978 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2979 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2980 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2981 echo "${ECHO_T}$cross_compiling" >&6
2983 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2984 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2986 (eval $ac_link) 2>&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2991 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2992 # work properly (i.e., refer to `conftest.exe'), while it won't with
2994 for ac_file
in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2996 *.
$ac_ext |
*.o |
*.obj |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
2997 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3004 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
3005 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
3006 { (exit 1); exit 1; }; }
3009 rm -f conftest
$ac_cv_exeext
3010 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3011 echo "${ECHO_T}$ac_cv_exeext" >&6
3013 rm -f conftest.
$ac_ext
3014 EXEEXT
=$ac_cv_exeext
3016 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3018 if test "${ac_cv_objext+set}" = set; then
3019 echo $ECHO_N "(cached) $ECHO_C" >&6
3021 cat >conftest.
$ac_ext <<_ACEOF
3022 #line $LINENO "configure"
3023 #include "confdefs.h"
3025 #ifdef F77_DUMMY_MAIN
3029 int F77_DUMMY_MAIN() { return 1; }
3039 rm -f conftest.o conftest.obj
3040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3041 (eval $ac_compile) 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }; then
3045 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3047 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb
) ;;
3048 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3053 echo "$as_me: failed program was:" >&5
3054 cat conftest.
$ac_ext >&5
3055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
3056 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
3057 { (exit 1); exit 1; }; }
3060 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3062 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3063 echo "${ECHO_T}$ac_cv_objext" >&6
3064 OBJEXT
=$ac_cv_objext
3066 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3069 echo $ECHO_N "(cached) $ECHO_C" >&6
3071 cat >conftest.
$ac_ext <<_ACEOF
3072 #line $LINENO "configure"
3073 #include "confdefs.h"
3075 #ifdef F77_DUMMY_MAIN
3079 int F77_DUMMY_MAIN() { return 1; }
3092 rm -f conftest.
$ac_objext
3093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3094 (eval $ac_compile) 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } &&
3098 { ac_try
='test -s conftest.$ac_objext'
3099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3106 echo "$as_me: failed program was:" >&5
3107 cat conftest.
$ac_ext >&5
3110 rm -f conftest.
$ac_objext conftest.
$ac_ext
3111 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3114 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3115 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3116 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3117 ac_test_CFLAGS
=${CFLAGS+set}
3118 ac_save_CFLAGS
=$CFLAGS
3120 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3121 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3122 if test "${ac_cv_prog_cc_g+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 cat >conftest.
$ac_ext <<_ACEOF
3126 #line $LINENO "configure"
3127 #include "confdefs.h"
3129 #ifdef F77_DUMMY_MAIN
3133 int F77_DUMMY_MAIN() { return 1; }
3143 rm -f conftest.
$ac_objext
3144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3145 (eval $ac_compile) 2>&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } &&
3149 { ac_try
='test -s conftest.$ac_objext'
3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }; }; then
3157 echo "$as_me: failed program was:" >&5
3158 cat conftest.
$ac_ext >&5
3161 rm -f conftest.
$ac_objext conftest.
$ac_ext
3163 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3164 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3165 if test "$ac_test_CFLAGS" = set; then
3166 CFLAGS
=$ac_save_CFLAGS
3167 elif test $ac_cv_prog_cc_g = yes; then
3168 if test "$GCC" = yes; then
3174 if test "$GCC" = yes; then
3180 # Some people use a C++ compiler to compile C. Since we use `exit',
3181 # in C++ we need to declare it. In case someone uses the same compiler
3182 # for both compiling C and C++ we need to have the C++ compiler decide
3183 # the declaration of exit, since it's the most demanding environment.
3184 cat >conftest.
$ac_ext <<_ACEOF
3189 rm -f conftest.
$ac_objext
3190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3191 (eval $ac_compile) 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try
='test -s conftest.$ac_objext'
3196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; }; then
3201 for ac_declaration
in \
3203 '#include <stdlib.h>' \
3204 'extern "C" void std::exit (int) throw (); using std::exit;' \
3205 'extern "C" void std::exit (int); using std::exit;' \
3206 'extern "C" void exit (int) throw ();' \
3207 'extern "C" void exit (int);' \
3210 cat >conftest.
$ac_ext <<_ACEOF
3211 #line $LINENO "configure"
3212 #include "confdefs.h"
3215 #ifdef F77_DUMMY_MAIN
3219 int F77_DUMMY_MAIN() { return 1; }
3229 rm -f conftest.
$ac_objext
3230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3231 (eval $ac_compile) 2>&5
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); } &&
3235 { ac_try
='test -s conftest.$ac_objext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3243 echo "$as_me: failed program was:" >&5
3244 cat conftest.
$ac_ext >&5
3247 rm -f conftest.
$ac_objext conftest.
$ac_ext
3248 cat >conftest.
$ac_ext <<_ACEOF
3249 #line $LINENO "configure"
3250 #include "confdefs.h"
3252 #ifdef F77_DUMMY_MAIN
3256 int F77_DUMMY_MAIN() { return 1; }
3266 rm -f conftest.
$ac_objext
3267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3268 (eval $ac_compile) 2>&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } &&
3272 { ac_try
='test -s conftest.$ac_objext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3280 echo "$as_me: failed program was:" >&5
3281 cat conftest.
$ac_ext >&5
3283 rm -f conftest.
$ac_objext conftest.
$ac_ext
3286 if test -n "$ac_declaration"; then
3287 echo '#ifdef __cplusplus' >>confdefs.h
3288 echo $ac_declaration >>confdefs.h
3289 echo '#endif' >>confdefs.h
3293 echo "$as_me: failed program was:" >&5
3294 cat conftest.
$ac_ext >&5
3296 rm -f conftest.
$ac_objext conftest.
$ac_ext
3298 ac_cpp
='$CPP $CPPFLAGS'
3299 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3304 # On Suns, sometimes $CPP names a directory.
3305 if test -n "$CPP" && test -d "$CPP"; then
3309 #### Some systems specify a CPP to use unless we are using GCC.
3310 #### Now that we know whether we are using GCC, we can decide whether
3311 #### to use that one.
3312 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3317 #### Some systems specify a CC to use unless we are using GCC.
3318 #### Now that we know whether we are using GCC, we can decide whether
3319 #### to use that one.
3320 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3321 test x
$cc_specified != xyes
3326 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3328 CC
="$CC $GCC_TEST_OPTIONS"
3331 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3333 CC
="$CC $NON_GCC_TEST_OPTIONS"
3336 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
3338 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
3341 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
3343 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
3346 #### Some other nice autoconf tests. If you add a test here which
3347 #### should make an entry in src/config.h, don't forget to add an
3348 #### #undef clause to src/config.h.in for autoconf to modify.
3350 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3351 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3353 if test "$LN_S" = "ln -s"; then
3354 echo "$as_me:$LINENO: result: yes" >&5
3355 echo "${ECHO_T}yes" >&6
3357 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3358 echo "${ECHO_T}no, using $LN_S" >&6
3362 ac_cpp
='$CPP $CPPFLAGS'
3363 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3366 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3367 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3368 # On Suns, sometimes $CPP names a directory.
3369 if test -n "$CPP" && test -d "$CPP"; then
3372 if test -z "$CPP"; then
3373 if test "${ac_cv_prog_CPP+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 # Double quotes because CPP needs to be expanded
3377 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3380 for ac_c_preproc_warn_flag
in '' yes
3382 # Use a header file that comes with gcc, so configuring glibc
3383 # with a fresh cross-compiler works.
3384 # On the NeXT, cc -E runs the code through the compiler's parser,
3385 # not just through cpp. "Syntax error" is here to catch this case.
3386 cat >conftest.
$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3388 #include "confdefs.h"
3392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3393 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3395 egrep -v '^ *\+' conftest.er1
>conftest.err
3397 cat conftest.err
>&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } >/dev
/null
; then
3400 if test -s conftest.err
; then
3401 ac_cpp_err
=$ac_c_preproc_warn_flag
3408 if test -z "$ac_cpp_err"; then
3411 echo "$as_me: failed program was:" >&5
3412 cat conftest.
$ac_ext >&5
3413 # Broken: fails on valid input.
3416 rm -f conftest.err conftest.
$ac_ext
3418 # OK, works on sane cases. Now check whether non-existent headers
3419 # can be detected and how.
3420 cat >conftest.
$ac_ext <<_ACEOF
3421 #line $LINENO "configure"
3422 #include "confdefs.h"
3423 #include <ac_nonexistent.h>
3425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3426 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3428 egrep -v '^ *\+' conftest.er1
>conftest.err
3430 cat conftest.err
>&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } >/dev
/null
; then
3433 if test -s conftest.err
; then
3434 ac_cpp_err
=$ac_c_preproc_warn_flag
3441 if test -z "$ac_cpp_err"; then
3442 # Broken: success on invalid input.
3445 echo "$as_me: failed program was:" >&5
3446 cat conftest.
$ac_ext >&5
3447 # Passes both tests.
3451 rm -f conftest.err conftest.
$ac_ext
3454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3455 rm -f conftest.err conftest.
$ac_ext
3456 if $ac_preproc_ok; then
3468 echo "$as_me:$LINENO: result: $CPP" >&5
3469 echo "${ECHO_T}$CPP" >&6
3471 for ac_c_preproc_warn_flag
in '' yes
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # On the NeXT, cc -E runs the code through the compiler's parser,
3476 # not just through cpp. "Syntax error" is here to catch this case.
3477 cat >conftest.
$ac_ext <<_ACEOF
3478 #line $LINENO "configure"
3479 #include "confdefs.h"
3483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3484 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3486 egrep -v '^ *\+' conftest.er1
>conftest.err
3488 cat conftest.err
>&5
3489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490 (exit $ac_status); } >/dev
/null
; then
3491 if test -s conftest.err
; then
3492 ac_cpp_err
=$ac_c_preproc_warn_flag
3499 if test -z "$ac_cpp_err"; then
3502 echo "$as_me: failed program was:" >&5
3503 cat conftest.
$ac_ext >&5
3504 # Broken: fails on valid input.
3507 rm -f conftest.err conftest.
$ac_ext
3509 # OK, works on sane cases. Now check whether non-existent headers
3510 # can be detected and how.
3511 cat >conftest.
$ac_ext <<_ACEOF
3512 #line $LINENO "configure"
3513 #include "confdefs.h"
3514 #include <ac_nonexistent.h>
3516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3517 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3519 egrep -v '^ *\+' conftest.er1
>conftest.err
3521 cat conftest.err
>&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } >/dev
/null
; then
3524 if test -s conftest.err
; then
3525 ac_cpp_err
=$ac_c_preproc_warn_flag
3532 if test -z "$ac_cpp_err"; then
3533 # Broken: success on invalid input.
3536 echo "$as_me: failed program was:" >&5
3537 cat conftest.
$ac_ext >&5
3538 # Passes both tests.
3542 rm -f conftest.err conftest.
$ac_ext
3545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3546 rm -f conftest.err conftest.
$ac_ext
3547 if $ac_preproc_ok; then
3550 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3551 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3552 { (exit 1); exit 1; }; }
3556 ac_cpp
='$CPP $CPPFLAGS'
3557 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3561 # Find a good install program. We prefer a C program (faster),
3562 # so one script is as good as another. But avoid the broken or
3563 # incompatible versions:
3564 # SysV /etc/install, /usr/sbin/install
3565 # SunOS /usr/etc/install
3566 # IRIX /sbin/install
3568 # AmigaOS /C/install, which installs bootblocks on floppy discs
3569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3572 # ./install, which can be erroneously created by make from ./install.sh.
3573 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3574 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3575 if test -z "$INSTALL"; then
3576 if test "${ac_cv_path_install+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3583 test -z "$as_dir" && as_dir
=.
3584 # Account for people who put trailing slashes in PATH elements.
3586 .
/ | .
// |
/cC
/* | \
3587 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3590 # OSF1 and SCO ODT 3.0 have their own names for install.
3591 # Don't use installbsd from OSF since it installs stuff as root
3593 for ac_prog
in ginstall scoinst
install; do
3594 for ac_exec_ext
in '' $ac_executable_extensions; do
3595 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3596 if test $ac_prog = install &&
3597 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3598 # AIX install. It has an incompatible calling convention.
3600 elif test $ac_prog = install &&
3601 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3602 # program-specific install script used by HP pwplus--don't use.
3605 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3617 if test "${ac_cv_path_install+set}" = set; then
3618 INSTALL
=$ac_cv_path_install
3620 # As a last resort, use the slow shell script. We don't cache a
3621 # path for INSTALL within a source directory, because that will
3622 # break other packages using the cache if that directory is
3623 # removed, or if the path is relative.
3624 INSTALL
=$ac_install_sh
3627 echo "$as_me:$LINENO: result: $INSTALL" >&5
3628 echo "${ECHO_T}$INSTALL" >&6
3630 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3631 # It thinks the first close brace ends the variable substitution.
3632 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3636 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3638 for ac_prog
in 'bison -y' byacc
3640 # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy
$ac_prog; ac_word
=$2
3642 echo "$as_me:$LINENO: checking for $ac_word" >&5
3643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3644 if test "${ac_cv_prog_YACC+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
3647 if test -n "$YACC"; then
3648 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
3650 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3654 test -z "$as_dir" && as_dir
=.
3655 for ac_exec_ext
in '' $ac_executable_extensions; do
3656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_YACC
="$ac_prog"
3658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 YACC
=$ac_cv_prog_YACC
3667 if test -n "$YACC"; then
3668 echo "$as_me:$LINENO: result: $YACC" >&5
3669 echo "${ECHO_T}$YACC" >&6
3671 echo "$as_me:$LINENO: result: no" >&5
3672 echo "${ECHO_T}no" >&6
3675 test -n "$YACC" && break
3677 test -n "$YACC" || YACC
="yacc"
3679 if test "x$RANLIB" = x
; then
3680 if test -n "$ac_tool_prefix"; then
3681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3682 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_prog_RANLIB+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 if test -n "$RANLIB"; then
3689 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir
=.
3696 for ac_exec_ext
in '' $ac_executable_extensions; do
3697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3698 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 RANLIB
=$ac_cv_prog_RANLIB
3708 if test -n "$RANLIB"; then
3709 echo "$as_me:$LINENO: result: $RANLIB" >&5
3710 echo "${ECHO_T}$RANLIB" >&6
3712 echo "$as_me:$LINENO: result: no" >&5
3713 echo "${ECHO_T}no" >&6
3717 if test -z "$ac_cv_prog_RANLIB"; then
3718 ac_ct_RANLIB
=$RANLIB
3719 # Extract the first word of "ranlib", so it can be a program name with args.
3720 set dummy ranlib
; ac_word
=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 if test -n "$ac_ct_RANLIB"; then
3727 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir
=.
3734 for ac_exec_ext
in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3743 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
3746 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3747 if test -n "$ac_ct_RANLIB"; then
3748 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3749 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3751 echo "$as_me:$LINENO: result: no" >&5
3752 echo "${ECHO_T}no" >&6
3755 RANLIB
=$ac_ct_RANLIB
3757 RANLIB
="$ac_cv_prog_RANLIB"
3765 echo "$as_me:$LINENO: checking for AIX" >&5
3766 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3767 cat >conftest.
$ac_ext <<_ACEOF
3768 #line $LINENO "configure"
3769 #include "confdefs.h"
3775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3776 egrep "yes" >/dev
/null
2>&1; then
3777 echo "$as_me:$LINENO: result: yes" >&5
3778 echo "${ECHO_T}yes" >&6
3779 cat >>confdefs.h
<<\_ACEOF
3780 #define _ALL_SOURCE 1
3784 echo "$as_me:$LINENO: result: no" >&5
3785 echo "${ECHO_T}no" >&6
3791 #### Extract some information from the operating system and machine files.
3793 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
3794 - which libraries the lib-src programs will want, and
3795 - whether the GNU malloc routines are usable..." >&5
3796 echo "$as_me: checking the machine- and system-dependent files to find out
3797 - which libraries the lib-src programs will want, and
3798 - whether the GNU malloc routines are usable..." >&6;}
3800 ### First figure out CFLAGS (which we use for running the compiler here)
3801 ### and REAL_CFLAGS (which we use for real compilation).
3802 ### The two are the same except on a few systems, where they are made
3803 ### different to work around various lossages. For example,
3804 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
3805 ### as implying static linking.
3807 ### If the CFLAGS env var is specified, we use that value
3808 ### instead of the default.
3810 ### It's not important that this name contain the PID; you can't run
3811 ### two configures in the same directory and have anything work
3813 tempcname
="conftest.c"
3816 #include "'${srcdir}'/src/'${opsysfile}'"
3817 #include "'${srcdir}'/src/'${machfile}'"
3818 #ifndef LIBS_MACHINE
3819 #define LIBS_MACHINE
3824 #ifndef C_SWITCH_SYSTEM
3825 #define C_SWITCH_SYSTEM
3827 #ifndef C_SWITCH_MACHINE
3828 #define C_SWITCH_MACHINE
3830 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
3831 configure___ c_switch_system=C_SWITCH_SYSTEM
3832 configure___ c_switch_machine=C_SWITCH_MACHINE
3835 #define LIB_X11_LIB -lX11
3838 #ifndef LIBX11_MACHINE
3839 #define LIBX11_MACHINE
3842 #ifndef LIBX11_SYSTEM
3843 #define LIBX11_SYSTEM
3845 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
3848 configure___ unexec=UNEXEC
3850 configure___ unexec=unexec.o
3853 #ifdef SYSTEM_MALLOC
3854 configure___ system_malloc=yes
3856 configure___ system_malloc=no
3859 #ifdef USE_MMAP_FOR_BUFFERS
3860 configure___ use_mmap_for_buffers=yes
3862 configure___ use_mmap_for_buffers=no
3865 #ifndef C_DEBUG_SWITCH
3866 #define C_DEBUG_SWITCH -g
3869 #ifndef C_OPTIMIZE_SWITCH
3871 #define C_OPTIMIZE_SWITCH -O2
3873 #define C_OPTIMIZE_SWITCH -O
3877 #ifndef LD_SWITCH_MACHINE
3878 #define LD_SWITCH_MACHINE
3881 #ifndef LD_SWITCH_SYSTEM
3882 #define LD_SWITCH_SYSTEM
3885 #ifndef LD_SWITCH_X_SITE_AUX
3886 #define LD_SWITCH_X_SITE_AUX
3889 configure___ ld_switch_system=LD_SWITCH_SYSTEM
3890 configure___ ld_switch_machine=LD_SWITCH_MACHINE
3892 #ifdef THIS_IS_CONFIGURE
3894 /* Get the CFLAGS for tests in configure. */
3896 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3898 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3901 #else /* not THIS_IS_CONFIGURE */
3903 /* Get the CFLAGS for real compilation. */
3905 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
3907 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
3910 #endif /* not THIS_IS_CONFIGURE */
3913 # The value of CPP is a quoted variable reference, so we need to do this
3914 # to get its actual value...
3915 CPP
=`eval "echo $CPP"`
3916 eval `${CPP} -Isrc ${tempcname} \
3917 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3918 if test "x$SPECIFIED_CFLAGS" = x
; then
3919 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
3920 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
3922 REAL_CFLAGS
="$CFLAGS"
3926 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
3928 ### Make sure subsequent tests use flags consistent with the build flags.
3930 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
3931 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
3933 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
3936 # Check whether --enable-largefile or --disable-largefile was given.
3937 if test "${enable_largefile+set}" = set; then
3938 enableval
="$enable_largefile"
3941 if test "$enable_largefile" != no
; then
3943 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
3944 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
3945 if test "${ac_cv_sys_largefile_CC+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 ac_cv_sys_largefile_CC
=no
3949 if test "$GCC" != yes; then
3952 # IRIX 6.2 and later do not support large files by default,
3953 # so use the C compiler's -n32 option if that helps.
3954 cat >conftest.
$ac_ext <<_ACEOF
3955 #line $LINENO "configure"
3956 #include "confdefs.h"
3957 #include <sys/types.h>
3958 /* Check that off_t can represent 2**63 - 1 correctly.
3959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3960 since some C++ compilers masquerading as C compilers
3961 incorrectly reject 9223372036854775807. */
3962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3964 && LARGE_OFF_T % 2147483647 == 1)
3966 #ifdef F77_DUMMY_MAIN
3970 int F77_DUMMY_MAIN() { return 1; }
3980 rm -f conftest.
$ac_objext
3981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982 (eval $ac_compile) 2>&5
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); } &&
3986 { ac_try
='test -s conftest.$ac_objext'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; }; then
3994 echo "$as_me: failed program was:" >&5
3995 cat conftest.
$ac_ext >&5
3997 rm -f conftest.
$ac_objext
3999 rm -f conftest.
$ac_objext
4000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4001 (eval $ac_compile) 2>&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } &&
4005 { ac_try
='test -s conftest.$ac_objext'
4006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); }; }; then
4011 ac_cv_sys_largefile_CC
=' -n32'; break
4013 echo "$as_me: failed program was:" >&5
4014 cat conftest.
$ac_ext >&5
4016 rm -f conftest.
$ac_objext
4020 rm -f conftest.
$ac_ext
4023 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4024 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4025 if test "$ac_cv_sys_largefile_CC" != no
; then
4026 CC
=$CC$ac_cv_sys_largefile_CC
4029 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4030 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4031 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 ac_cv_sys_file_offset_bits
=no
4036 cat >conftest.
$ac_ext <<_ACEOF
4037 #line $LINENO "configure"
4038 #include "confdefs.h"
4039 #include <sys/types.h>
4040 /* Check that off_t can represent 2**63 - 1 correctly.
4041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4042 since some C++ compilers masquerading as C compilers
4043 incorrectly reject 9223372036854775807. */
4044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4046 && LARGE_OFF_T % 2147483647 == 1)
4048 #ifdef F77_DUMMY_MAIN
4052 int F77_DUMMY_MAIN() { return 1; }
4062 rm -f conftest.
$ac_objext
4063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4064 (eval $ac_compile) 2>&5
4066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067 (exit $ac_status); } &&
4068 { ac_try
='test -s conftest.$ac_objext'
4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; }; then
4076 echo "$as_me: failed program was:" >&5
4077 cat conftest.
$ac_ext >&5
4079 rm -f conftest.
$ac_objext conftest.
$ac_ext
4080 cat >conftest.
$ac_ext <<_ACEOF
4081 #line $LINENO "configure"
4082 #include "confdefs.h"
4083 #define _FILE_OFFSET_BITS 64
4084 #include <sys/types.h>
4085 /* Check that off_t can represent 2**63 - 1 correctly.
4086 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4087 since some C++ compilers masquerading as C compilers
4088 incorrectly reject 9223372036854775807. */
4089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4091 && LARGE_OFF_T % 2147483647 == 1)
4093 #ifdef F77_DUMMY_MAIN
4097 int F77_DUMMY_MAIN() { return 1; }
4107 rm -f conftest.
$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try
='test -s conftest.$ac_objext'
4114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4118 (exit $ac_status); }; }; then
4119 ac_cv_sys_file_offset_bits
=64; break
4121 echo "$as_me: failed program was:" >&5
4122 cat conftest.
$ac_ext >&5
4124 rm -f conftest.
$ac_objext conftest.
$ac_ext
4128 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4129 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4130 if test "$ac_cv_sys_file_offset_bits" != no
; then
4132 cat >>confdefs.h
<<_ACEOF
4133 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4138 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4139 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4140 if test "${ac_cv_sys_large_files+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 ac_cv_sys_large_files
=no
4145 cat >conftest.
$ac_ext <<_ACEOF
4146 #line $LINENO "configure"
4147 #include "confdefs.h"
4148 #include <sys/types.h>
4149 /* Check that off_t can represent 2**63 - 1 correctly.
4150 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4151 since some C++ compilers masquerading as C compilers
4152 incorrectly reject 9223372036854775807. */
4153 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4154 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4155 && LARGE_OFF_T % 2147483647 == 1)
4157 #ifdef F77_DUMMY_MAIN
4161 int F77_DUMMY_MAIN() { return 1; }
4171 rm -f conftest.
$ac_objext
4172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } &&
4177 { ac_try
='test -s conftest.$ac_objext'
4178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; }; then
4185 echo "$as_me: failed program was:" >&5
4186 cat conftest.
$ac_ext >&5
4188 rm -f conftest.
$ac_objext conftest.
$ac_ext
4189 cat >conftest.
$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4191 #include "confdefs.h"
4192 #define _LARGE_FILES 1
4193 #include <sys/types.h>
4194 /* Check that off_t can represent 2**63 - 1 correctly.
4195 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4196 since some C++ compilers masquerading as C compilers
4197 incorrectly reject 9223372036854775807. */
4198 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4199 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4200 && LARGE_OFF_T % 2147483647 == 1)
4202 #ifdef F77_DUMMY_MAIN
4206 int F77_DUMMY_MAIN() { return 1; }
4216 rm -f conftest.
$ac_objext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } &&
4222 { ac_try
='test -s conftest.$ac_objext'
4223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); }; }; then
4228 ac_cv_sys_large_files
=1; break
4230 echo "$as_me: failed program was:" >&5
4231 cat conftest.
$ac_ext >&5
4233 rm -f conftest.
$ac_objext conftest.
$ac_ext
4237 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4238 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4239 if test "$ac_cv_sys_large_files" != no
; then
4241 cat >>confdefs.h
<<_ACEOF
4242 #define _LARGE_FILES $ac_cv_sys_large_files
4250 if test "${with_sound}" != "no"; then
4251 # Sound support for GNU/Linux and the free BSDs.
4252 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4253 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4254 if test "${ac_cv_header_stdc+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 cat >conftest.
$ac_ext <<_ACEOF
4258 #line $LINENO "configure"
4259 #include "confdefs.h"
4266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4267 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4269 egrep -v '^ *\+' conftest.er1
>conftest.err
4271 cat conftest.err
>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } >/dev
/null
; then
4274 if test -s conftest.err
; then
4275 ac_cpp_err
=$ac_c_preproc_warn_flag
4282 if test -z "$ac_cpp_err"; then
4283 ac_cv_header_stdc
=yes
4285 echo "$as_me: failed program was:" >&5
4286 cat conftest.
$ac_ext >&5
4287 ac_cv_header_stdc
=no
4289 rm -f conftest.err conftest.
$ac_ext
4291 if test $ac_cv_header_stdc = yes; then
4292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4293 cat >conftest.
$ac_ext <<_ACEOF
4294 #line $LINENO "configure"
4295 #include "confdefs.h"
4299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4300 egrep "memchr" >/dev
/null
2>&1; then
4303 ac_cv_header_stdc
=no
4309 if test $ac_cv_header_stdc = yes; then
4310 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4311 cat >conftest.
$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
4313 #include "confdefs.h"
4317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4318 egrep "free" >/dev
/null
2>&1; then
4321 ac_cv_header_stdc
=no
4327 if test $ac_cv_header_stdc = yes; then
4328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4329 if test "$cross_compiling" = yes; then
4332 cat >conftest.
$ac_ext <<_ACEOF
4333 #line $LINENO "configure"
4334 #include "confdefs.h"
4336 #if ((' ' & 0x0FF) == 0x020)
4337 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4338 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4340 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4341 || ('j' <= (c) && (c) <= 'r') \
4342 || ('s' <= (c) && (c) <= 'z'))
4343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4351 for (i = 0; i < 256; i++)
4352 if (XOR (islower (i), ISLOWER (i))
4353 || toupper (i) != TOUPPER (i))
4358 rm -f conftest
$ac_exeext
4359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4360 (eval $ac_link) 2>&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4371 echo "$as_me: program exited with status $ac_status" >&5
4372 echo "$as_me: failed program was:" >&5
4373 cat conftest.
$ac_ext >&5
4375 ac_cv_header_stdc
=no
4377 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4381 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4382 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4383 if test $ac_cv_header_stdc = yes; then
4385 cat >>confdefs.h
<<\_ACEOF
4386 #define STDC_HEADERS 1
4391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4401 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4402 inttypes.h stdint.h unistd.h
4404 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4405 echo "$as_me:$LINENO: checking for $ac_header" >&5
4406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 cat >conftest.
$ac_ext <<_ACEOF
4411 #line $LINENO "configure"
4412 #include "confdefs.h"
4413 $ac_includes_default
4415 #include <$ac_header>
4417 rm -f conftest.
$ac_objext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4419 (eval $ac_compile) 2>&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } &&
4423 { ac_try
='test -s conftest.$ac_objext'
4424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); }; }; then
4429 eval "$as_ac_Header=yes"
4431 echo "$as_me: failed program was:" >&5
4432 cat conftest.
$ac_ext >&5
4433 eval "$as_ac_Header=no"
4435 rm -f conftest.
$ac_objext conftest.
$ac_ext
4437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4440 cat >>confdefs.h
<<_ACEOF
4441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4452 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
4454 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4456 echo "$as_me:$LINENO: checking for $ac_header" >&5
4457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4464 # Is the header compilable?
4465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4467 cat >conftest.
$ac_ext <<_ACEOF
4468 #line $LINENO "configure"
4469 #include "confdefs.h"
4470 $ac_includes_default
4471 #include <$ac_header>
4473 rm -f conftest.
$ac_objext
4474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4475 (eval $ac_compile) 2>&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } &&
4479 { ac_try
='test -s conftest.$ac_objext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 ac_header_compiler
=yes
4487 echo "$as_me: failed program was:" >&5
4488 cat conftest.
$ac_ext >&5
4489 ac_header_compiler
=no
4491 rm -f conftest.
$ac_objext conftest.
$ac_ext
4492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4493 echo "${ECHO_T}$ac_header_compiler" >&6
4495 # Is the header present?
4496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4498 cat >conftest.
$ac_ext <<_ACEOF
4499 #line $LINENO "configure"
4500 #include "confdefs.h"
4501 #include <$ac_header>
4503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4504 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4506 egrep -v '^ *\+' conftest.er1
>conftest.err
4508 cat conftest.err
>&5
4509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4510 (exit $ac_status); } >/dev
/null
; then
4511 if test -s conftest.err
; then
4512 ac_cpp_err
=$ac_c_preproc_warn_flag
4519 if test -z "$ac_cpp_err"; then
4520 ac_header_preproc
=yes
4522 echo "$as_me: failed program was:" >&5
4523 cat conftest.
$ac_ext >&5
4524 ac_header_preproc
=no
4526 rm -f conftest.err conftest.
$ac_ext
4527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4528 echo "${ECHO_T}$ac_header_preproc" >&6
4530 # So? What about this header?
4531 case $ac_header_compiler:$ac_header_preproc in
4533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4545 echo "$as_me:$LINENO: checking for $ac_header" >&5
4546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 eval "$as_ac_Header=$ac_header_preproc"
4552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4557 cat >>confdefs.h
<<_ACEOF
4558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4565 # Emulation library used on NetBSD.
4566 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
4567 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
4568 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 ac_check_lib_save_LIBS
=$LIBS
4572 LIBS
="-lossaudio $LIBS"
4573 cat >conftest.
$ac_ext <<_ACEOF
4574 #line $LINENO "configure"
4575 #include "confdefs.h"
4577 /* Override any gcc2 internal prototype to avoid an error. */
4581 /* We use char because int might match the return type of a gcc2
4582 builtin and then its argument prototype would still apply. */
4584 #ifdef F77_DUMMY_MAIN
4588 int F77_DUMMY_MAIN() { return 1; }
4598 rm -f conftest.
$ac_objext conftest
$ac_exeext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600 (eval $ac_link) 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } &&
4604 { ac_try
='test -s conftest$ac_exeext'
4605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); }; }; then
4610 ac_cv_lib_ossaudio__oss_ioctl
=yes
4612 echo "$as_me: failed program was:" >&5
4613 cat conftest.
$ac_ext >&5
4614 ac_cv_lib_ossaudio__oss_ioctl
=no
4616 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
4617 LIBS
=$ac_check_lib_save_LIBS
4619 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
4620 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
4621 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
4647 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
4648 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
4649 termcap.h stdio_ext.h fcntl.h term.h
strings.h coff.h
4651 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4653 echo "$as_me:$LINENO: checking for $ac_header" >&5
4654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4661 # Is the header compilable?
4662 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4663 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4664 cat >conftest.
$ac_ext <<_ACEOF
4665 #line $LINENO "configure"
4666 #include "confdefs.h"
4667 $ac_includes_default
4668 #include <$ac_header>
4670 rm -f conftest.
$ac_objext
4671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4672 (eval $ac_compile) 2>&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try
='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 ac_header_compiler
=yes
4684 echo "$as_me: failed program was:" >&5
4685 cat conftest.
$ac_ext >&5
4686 ac_header_compiler
=no
4688 rm -f conftest.
$ac_objext conftest.
$ac_ext
4689 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4690 echo "${ECHO_T}$ac_header_compiler" >&6
4692 # Is the header present?
4693 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4695 cat >conftest.
$ac_ext <<_ACEOF
4696 #line $LINENO "configure"
4697 #include "confdefs.h"
4698 #include <$ac_header>
4700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4701 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4703 egrep -v '^ *\+' conftest.er1
>conftest.err
4705 cat conftest.err
>&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } >/dev
/null
; then
4708 if test -s conftest.err
; then
4709 ac_cpp_err
=$ac_c_preproc_warn_flag
4716 if test -z "$ac_cpp_err"; then
4717 ac_header_preproc
=yes
4719 echo "$as_me: failed program was:" >&5
4720 cat conftest.
$ac_ext >&5
4721 ac_header_preproc
=no
4723 rm -f conftest.err conftest.
$ac_ext
4724 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4725 echo "${ECHO_T}$ac_header_preproc" >&6
4727 # So? What about this header?
4728 case $ac_header_compiler:$ac_header_preproc in
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4742 echo "$as_me:$LINENO: checking for $ac_header" >&5
4743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 eval "$as_ac_Header=$ac_header_preproc"
4749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4754 cat >>confdefs.h
<<_ACEOF
4755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4762 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4763 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4764 if test "${ac_cv_header_stdc+set}" = set; then
4765 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 cat >conftest.
$ac_ext <<_ACEOF
4768 #line $LINENO "configure"
4769 #include "confdefs.h"
4776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4777 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4779 egrep -v '^ *\+' conftest.er1
>conftest.err
4781 cat conftest.err
>&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } >/dev
/null
; then
4784 if test -s conftest.err
; then
4785 ac_cpp_err
=$ac_c_preproc_warn_flag
4792 if test -z "$ac_cpp_err"; then
4793 ac_cv_header_stdc
=yes
4795 echo "$as_me: failed program was:" >&5
4796 cat conftest.
$ac_ext >&5
4797 ac_cv_header_stdc
=no
4799 rm -f conftest.err conftest.
$ac_ext
4801 if test $ac_cv_header_stdc = yes; then
4802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4803 cat >conftest.
$ac_ext <<_ACEOF
4804 #line $LINENO "configure"
4805 #include "confdefs.h"
4809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4810 egrep "memchr" >/dev
/null
2>&1; then
4813 ac_cv_header_stdc
=no
4819 if test $ac_cv_header_stdc = yes; then
4820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4821 cat >conftest.
$ac_ext <<_ACEOF
4822 #line $LINENO "configure"
4823 #include "confdefs.h"
4827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4828 egrep "free" >/dev
/null
2>&1; then
4831 ac_cv_header_stdc
=no
4837 if test $ac_cv_header_stdc = yes; then
4838 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4839 if test "$cross_compiling" = yes; then
4842 cat >conftest.
$ac_ext <<_ACEOF
4843 #line $LINENO "configure"
4844 #include "confdefs.h"
4846 #if ((' ' & 0x0FF) == 0x020)
4847 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4848 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4850 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4851 || ('j' <= (c) && (c) <= 'r') \
4852 || ('s' <= (c) && (c) <= 'z'))
4853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4861 for (i = 0; i < 256; i++)
4862 if (XOR (islower (i), ISLOWER (i))
4863 || toupper (i) != TOUPPER (i))
4868 rm -f conftest
$ac_exeext
4869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4870 (eval $ac_link) 2>&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); }; }; then
4881 echo "$as_me: program exited with status $ac_status" >&5
4882 echo "$as_me: failed program was:" >&5
4883 cat conftest.
$ac_ext >&5
4885 ac_cv_header_stdc
=no
4887 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4891 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4892 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4893 if test $ac_cv_header_stdc = yes; then
4895 cat >>confdefs.h
<<\_ACEOF
4896 #define STDC_HEADERS 1
4901 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4902 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
4903 if test "${ac_cv_header_time+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 cat >conftest.
$ac_ext <<_ACEOF
4907 #line $LINENO "configure"
4908 #include "confdefs.h"
4909 #include <sys/types.h>
4910 #include <sys/time.h>
4913 #ifdef F77_DUMMY_MAIN
4917 int F77_DUMMY_MAIN() { return 1; }
4922 if ((struct tm *) 0)
4928 rm -f conftest.
$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } &&
4934 { ac_try
='test -s conftest.$ac_objext'
4935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); }; }; then
4940 ac_cv_header_time
=yes
4942 echo "$as_me: failed program was:" >&5
4943 cat conftest.
$ac_ext >&5
4944 ac_cv_header_time
=no
4946 rm -f conftest.
$ac_objext conftest.
$ac_ext
4948 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4949 echo "${ECHO_T}$ac_cv_header_time" >&6
4950 if test $ac_cv_header_time = yes; then
4952 cat >>confdefs.h
<<\_ACEOF
4953 #define TIME_WITH_SYS_TIME 1
4958 echo "$as_me:$LINENO: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4959 echo $ECHO_N "checking for sys_siglist declaration in signal.h or unistd.h... $ECHO_C" >&6
4960 if test "${ac_cv_decl_sys_siglist+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 cat >conftest.
$ac_ext <<_ACEOF
4964 #line $LINENO "configure"
4965 #include "confdefs.h"
4966 #include <sys/types.h>
4968 /* NetBSD declares sys_siglist in unistd.h. */
4970 # include <unistd.h>
4973 #ifdef F77_DUMMY_MAIN
4977 int F77_DUMMY_MAIN() { return 1; }
4982 char *msg = *(sys_siglist + 1);
4987 rm -f conftest.
$ac_objext
4988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4989 (eval $ac_compile) 2>&5
4991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992 (exit $ac_status); } &&
4993 { ac_try
='test -s conftest.$ac_objext'
4994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4998 (exit $ac_status); }; }; then
4999 ac_cv_decl_sys_siglist
=yes
5001 echo "$as_me: failed program was:" >&5
5002 cat conftest.
$ac_ext >&5
5003 ac_cv_decl_sys_siglist
=no
5005 rm -f conftest.
$ac_objext conftest.
$ac_ext
5007 echo "$as_me:$LINENO: result: $ac_cv_decl_sys_siglist" >&5
5008 echo "${ECHO_T}$ac_cv_decl_sys_siglist" >&6
5009 if test $ac_cv_decl_sys_siglist = yes; then
5011 cat >>confdefs.h
<<\_ACEOF
5012 #define SYS_SIGLIST_DECLARED 1
5017 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
5018 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
5019 if test "${ac_cv_header_sys_wait_h+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 cat >conftest.
$ac_ext <<_ACEOF
5023 #line $LINENO "configure"
5024 #include "confdefs.h"
5025 #include <sys/types.h>
5026 #include <sys/wait.h>
5028 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
5031 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
5034 #ifdef F77_DUMMY_MAIN
5038 int F77_DUMMY_MAIN() { return 1; }
5045 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
5050 rm -f conftest.
$ac_objext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5052 (eval $ac_compile) 2>&5
5054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5055 (exit $ac_status); } &&
5056 { ac_try
='test -s conftest.$ac_objext'
5057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061 (exit $ac_status); }; }; then
5062 ac_cv_header_sys_wait_h
=yes
5064 echo "$as_me: failed program was:" >&5
5065 cat conftest.
$ac_ext >&5
5066 ac_cv_header_sys_wait_h
=no
5068 rm -f conftest.
$ac_objext conftest.
$ac_ext
5070 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
5071 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
5072 if test $ac_cv_header_sys_wait_h = yes; then
5074 cat >>confdefs.h
<<\_ACEOF
5075 #define HAVE_SYS_WAIT_H 1
5081 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
5082 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
5083 if test "${emacs_cv_struct_utimbuf+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 cat >conftest.
$ac_ext <<_ACEOF
5087 #line $LINENO "configure"
5088 #include "confdefs.h"
5089 #ifdef TIME_WITH_SYS_TIME
5090 #include <sys/time.h>
5093 #ifdef HAVE_SYS_TIME_H
5094 #include <sys/time.h>
5102 #ifdef F77_DUMMY_MAIN
5106 int F77_DUMMY_MAIN() { return 1; }
5111 static struct utimbuf x; x.actime = x.modtime;
5116 rm -f conftest.
$ac_objext
5117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5118 (eval $ac_compile) 2>&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); } &&
5122 { ac_try
='test -s conftest.$ac_objext'
5123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; }; then
5128 emacs_cv_struct_utimbuf
=yes
5130 echo "$as_me: failed program was:" >&5
5131 cat conftest.
$ac_ext >&5
5132 emacs_cv_struct_utimbuf
=no
5134 rm -f conftest.
$ac_objext conftest.
$ac_ext
5136 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
5137 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
5138 if test $emacs_cv_struct_utimbuf = yes; then
5140 cat >>confdefs.h
<<\_ACEOF
5141 #define HAVE_STRUCT_UTIMBUF 1
5146 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5147 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5148 if test "${ac_cv_type_signal+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 cat >conftest.
$ac_ext <<_ACEOF
5152 #line $LINENO "configure"
5153 #include "confdefs.h"
5154 #include <sys/types.h>
5160 extern "C" void (*signal (int, void (*)(int)))(int);
5162 void (*signal ()) ();
5165 #ifdef F77_DUMMY_MAIN
5169 int F77_DUMMY_MAIN() { return 1; }
5179 rm -f conftest.
$ac_objext
5180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5181 (eval $ac_compile) 2>&5
5183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } &&
5185 { ac_try
='test -s conftest.$ac_objext'
5186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); }; }; then
5191 ac_cv_type_signal
=void
5193 echo "$as_me: failed program was:" >&5
5194 cat conftest.
$ac_ext >&5
5195 ac_cv_type_signal
=int
5197 rm -f conftest.
$ac_objext conftest.
$ac_ext
5199 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5200 echo "${ECHO_T}$ac_cv_type_signal" >&6
5202 cat >>confdefs.h
<<_ACEOF
5203 #define RETSIGTYPE $ac_cv_type_signal
5208 echo "$as_me:$LINENO: checking for speed_t" >&5
5209 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
5210 if test "${emacs_cv_speed_t+set}" = set; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 cat >conftest.
$ac_ext <<_ACEOF
5214 #line $LINENO "configure"
5215 #include "confdefs.h"
5216 #include <termios.h>
5217 #ifdef F77_DUMMY_MAIN
5221 int F77_DUMMY_MAIN() { return 1; }
5231 rm -f conftest.
$ac_objext
5232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5233 (eval $ac_compile) 2>&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } &&
5237 { ac_try
='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5243 emacs_cv_speed_t
=yes
5245 echo "$as_me: failed program was:" >&5
5246 cat conftest.
$ac_ext >&5
5249 rm -f conftest.
$ac_objext conftest.
$ac_ext
5251 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
5252 echo "${ECHO_T}$emacs_cv_speed_t" >&6
5253 if test $emacs_cv_speed_t = yes; then
5255 cat >>confdefs.h
<<\_ACEOF
5256 #define HAVE_SPEED_T 1
5261 echo "$as_me:$LINENO: checking for struct timeval" >&5
5262 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
5263 if test "${emacs_cv_struct_timeval+set}" = set; then
5264 echo $ECHO_N "(cached) $ECHO_C" >&6
5266 cat >conftest.
$ac_ext <<_ACEOF
5267 #line $LINENO "configure"
5268 #include "confdefs.h"
5269 #ifdef TIME_WITH_SYS_TIME
5270 #include <sys/time.h>
5273 #ifdef HAVE_SYS_TIME_H
5274 #include <sys/time.h>
5279 #ifdef F77_DUMMY_MAIN
5283 int F77_DUMMY_MAIN() { return 1; }
5288 static struct timeval x; x.tv_sec = x.tv_usec;
5293 rm -f conftest.
$ac_objext
5294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5295 (eval $ac_compile) 2>&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } &&
5299 { ac_try
='test -s conftest.$ac_objext'
5300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); }; }; then
5305 emacs_cv_struct_timeval
=yes
5307 echo "$as_me: failed program was:" >&5
5308 cat conftest.
$ac_ext >&5
5309 emacs_cv_struct_timeval
=no
5311 rm -f conftest.
$ac_objext conftest.
$ac_ext
5313 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
5314 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
5315 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
5316 if test $emacs_cv_struct_timeval = yes; then
5318 cat >>confdefs.h
<<\_ACEOF
5319 #define HAVE_TIMEVAL 1
5324 echo "$as_me:$LINENO: checking for struct exception" >&5
5325 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
5326 if test "${emacs_cv_struct_exception+set}" = set; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 cat >conftest.
$ac_ext <<_ACEOF
5330 #line $LINENO "configure"
5331 #include "confdefs.h"
5333 #ifdef F77_DUMMY_MAIN
5337 int F77_DUMMY_MAIN() { return 1; }
5342 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
5347 rm -f conftest.
$ac_objext
5348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5349 (eval $ac_compile) 2>&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); } &&
5353 { ac_try
='test -s conftest.$ac_objext'
5354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); }; }; then
5359 emacs_cv_struct_exception
=yes
5361 echo "$as_me: failed program was:" >&5
5362 cat conftest.
$ac_ext >&5
5363 emacs_cv_struct_exception
=no
5365 rm -f conftest.
$ac_objext conftest.
$ac_ext
5367 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
5368 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
5369 HAVE_EXCEPTION
=$emacs_cv_struct_exception
5370 if test $emacs_cv_struct_exception != yes; then
5372 cat >>confdefs.h
<<\_ACEOF
5373 #define NO_MATHERR 1
5378 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5379 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
5380 if test "${ac_cv_struct_tm+set}" = set; then
5381 echo $ECHO_N "(cached) $ECHO_C" >&6
5383 cat >conftest.
$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5385 #include "confdefs.h"
5386 #include <sys/types.h>
5389 #ifdef F77_DUMMY_MAIN
5393 int F77_DUMMY_MAIN() { return 1; }
5398 struct tm *tp; tp->tm_sec;
5403 rm -f conftest.
$ac_objext
5404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5405 (eval $ac_compile) 2>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } &&
5409 { ac_try
='test -s conftest.$ac_objext'
5410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414 (exit $ac_status); }; }; then
5415 ac_cv_struct_tm
=time.h
5417 echo "$as_me: failed program was:" >&5
5418 cat conftest.
$ac_ext >&5
5419 ac_cv_struct_tm
=sys
/time.h
5421 rm -f conftest.
$ac_objext conftest.
$ac_ext
5423 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5424 echo "${ECHO_T}$ac_cv_struct_tm" >&6
5425 if test $ac_cv_struct_tm = sys
/time.h
; then
5427 cat >>confdefs.h
<<\_ACEOF
5428 #define TM_IN_SYS_TIME 1
5433 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
5434 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
5435 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 cat >conftest.
$ac_ext <<_ACEOF
5439 #line $LINENO "configure"
5440 #include "confdefs.h"
5441 #include <sys/types.h>
5442 #include <$ac_cv_struct_tm>
5445 #ifdef F77_DUMMY_MAIN
5449 int F77_DUMMY_MAIN() { return 1; }
5454 static struct tm ac_aggr;
5455 if (ac_aggr.tm_zone)
5461 rm -f conftest.
$ac_objext
5462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5463 (eval $ac_compile) 2>&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); } &&
5467 { ac_try
='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5473 ac_cv_member_struct_tm_tm_zone
=yes
5475 echo "$as_me: failed program was:" >&5
5476 cat conftest.
$ac_ext >&5
5477 ac_cv_member_struct_tm_tm_zone
=no
5479 rm -f conftest.
$ac_objext conftest.
$ac_ext
5481 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
5482 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
5483 if test $ac_cv_member_struct_tm_tm_zone = yes; then
5485 cat >>confdefs.h
<<_ACEOF
5486 #define HAVE_STRUCT_TM_TM_ZONE 1
5492 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
5494 cat >>confdefs.h
<<\_ACEOF
5495 #define HAVE_TM_ZONE 1
5499 echo "$as_me:$LINENO: checking for tzname" >&5
5500 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
5501 if test "${ac_cv_var_tzname+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 cat >conftest.
$ac_ext <<_ACEOF
5505 #line $LINENO "configure"
5506 #include "confdefs.h"
5508 #ifndef tzname /* For SGI. */
5509 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
5512 #ifdef F77_DUMMY_MAIN
5516 int F77_DUMMY_MAIN() { return 1; }
5526 rm -f conftest.
$ac_objext conftest
$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528 (eval $ac_link) 2>&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } &&
5532 { ac_try
='test -s conftest$ac_exeext'
5533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); }; }; then
5538 ac_cv_var_tzname
=yes
5540 echo "$as_me: failed program was:" >&5
5541 cat conftest.
$ac_ext >&5
5544 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
5546 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
5547 echo "${ECHO_T}$ac_cv_var_tzname" >&6
5548 if test $ac_cv_var_tzname = yes; then
5550 cat >>confdefs.h
<<\_ACEOF
5551 #define HAVE_TZNAME 1
5557 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
5558 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
5559 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 cat >conftest.
$ac_ext <<_ACEOF
5563 #line $LINENO "configure"
5564 #include "confdefs.h"
5567 #ifdef F77_DUMMY_MAIN
5571 int F77_DUMMY_MAIN() { return 1; }
5576 static struct tm ac_aggr;
5577 if (ac_aggr.tm_gmtoff)
5583 rm -f conftest.
$ac_objext
5584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585 (eval $ac_compile) 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 { ac_try
='test -s conftest.$ac_objext'
5590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); }; }; then
5595 ac_cv_member_struct_tm_tm_gmtoff
=yes
5597 echo "$as_me: failed program was:" >&5
5598 cat conftest.
$ac_ext >&5
5599 ac_cv_member_struct_tm_tm_gmtoff
=no
5601 rm -f conftest.
$ac_objext conftest.
$ac_ext
5603 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
5604 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
5605 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
5607 cat >>confdefs.h
<<\_ACEOF
5608 #define HAVE_TM_GMTOFF 1
5615 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5616 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5617 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 ac_cv_prog_cc_stdc
=no
5622 cat >conftest.
$ac_ext <<_ACEOF
5623 #line $LINENO "configure"
5624 #include "confdefs.h"
5627 #include <sys/types.h>
5628 #include <sys/stat.h>
5629 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5630 struct buf { int x; };
5631 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5632 static char *e (p, i)
5638 static char *f (char * (*g) (char **, int), char **p, ...)
5643 s = g (p, va_arg (v,int));
5647 int test (int i, double x);
5648 struct s1 {int (*f) (int a);};
5649 struct s2 {int (*f) (double a);};
5650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5653 #ifdef F77_DUMMY_MAIN
5657 int F77_DUMMY_MAIN() { return 1; }
5662 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5667 # Don't try gcc -ansi; that turns off useful extensions and
5668 # breaks some systems' header files.
5669 # AIX -qlanglvl=ansi
5670 # Ultrix and OSF/1 -std1
5671 # HP-UX 10.20 and later -Ae
5672 # HP-UX older versions -Aa -D_HPUX_SOURCE
5673 # SVR4 -Xc -D__EXTENSIONS__
5674 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5676 CC
="$ac_save_CC $ac_arg"
5677 rm -f conftest.
$ac_objext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5679 (eval $ac_compile) 2>&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } &&
5683 { ac_try
='test -s conftest.$ac_objext'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; }; then
5689 ac_cv_prog_cc_stdc
=$ac_arg
5692 echo "$as_me: failed program was:" >&5
5693 cat conftest.
$ac_ext >&5
5695 rm -f conftest.
$ac_objext
5697 rm -f conftest.
$ac_ext conftest.
$ac_objext
5702 case "x$ac_cv_prog_cc_stdc" in
5704 echo "$as_me:$LINENO: result: none needed" >&5
5705 echo "${ECHO_T}none needed" >&6 ;;
5707 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5708 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5709 CC
="$CC $ac_cv_prog_cc_stdc" ;;
5712 echo "$as_me:$LINENO: checking for function prototypes" >&5
5713 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5714 if test "$ac_cv_prog_cc_stdc" != no
; then
5715 echo "$as_me:$LINENO: result: yes" >&5
5716 echo "${ECHO_T}yes" >&6
5718 cat >>confdefs.h
<<\_ACEOF
5719 #define PROTOTYPES 1
5723 cat >>confdefs.h
<<\_ACEOF
5724 #define __PROTOTYPES 1
5728 echo "$as_me:$LINENO: result: no" >&5
5729 echo "${ECHO_T}no" >&6
5732 echo "$as_me:$LINENO: checking for working volatile" >&5
5733 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
5734 if test "${ac_cv_c_volatile+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 cat >conftest.
$ac_ext <<_ACEOF
5738 #line $LINENO "configure"
5739 #include "confdefs.h"
5741 #ifdef F77_DUMMY_MAIN
5745 int F77_DUMMY_MAIN() { return 1; }
5757 rm -f conftest.
$ac_objext
5758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759 (eval $ac_compile) 2>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try
='test -s conftest.$ac_objext'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 ac_cv_c_volatile
=yes
5771 echo "$as_me: failed program was:" >&5
5772 cat conftest.
$ac_ext >&5
5775 rm -f conftest.
$ac_objext conftest.
$ac_ext
5777 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
5778 echo "${ECHO_T}$ac_cv_c_volatile" >&6
5779 if test $ac_cv_c_volatile = no
; then
5781 cat >>confdefs.h
<<\_ACEOF
5787 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5788 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5789 if test "${ac_cv_c_const+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 cat >conftest.
$ac_ext <<_ACEOF
5793 #line $LINENO "configure"
5794 #include "confdefs.h"
5796 #ifdef F77_DUMMY_MAIN
5800 int F77_DUMMY_MAIN() { return 1; }
5805 /* FIXME: Include the comments suggested by Paul. */
5807 /* Ultrix mips cc rejects this. */
5808 typedef int charset[2];
5810 /* SunOS 4.1.1 cc rejects this. */
5811 char const *const *ccp;
5813 /* NEC SVR4.0.2 mips cc rejects this. */
5814 struct point {int x, y;};
5815 static struct point const zero = {0,0};
5816 /* AIX XL C 1.02.0.0 rejects this.
5817 It does not let you subtract one const X* pointer from another in
5818 an arm of an if-expression whose if-part is not a constant
5820 const char *g = "string";
5821 ccp = &g + (g ? g-g : 0);
5822 /* HPUX 7.0 cc rejects these. */
5825 ccp = (char const *const *) p;
5826 { /* SCO 3.2v4 cc rejects this. */
5828 char const *s = 0 ? (char *) 0 : (char const *) 0;
5832 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5834 const int *foo = &x[0];
5837 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5838 typedef const int *iptr;
5842 { /* AIX XL C 1.02.0.0 rejects this saying
5843 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5844 struct s { int j; const int *ap[3]; };
5845 struct s *b; b->j = 5;
5847 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5856 rm -f conftest.
$ac_objext
5857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5858 (eval $ac_compile) 2>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } &&
5862 { ac_try
='test -s conftest.$ac_objext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5870 echo "$as_me: failed program was:" >&5
5871 cat conftest.
$ac_ext >&5
5874 rm -f conftest.
$ac_objext conftest.
$ac_ext
5876 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5877 echo "${ECHO_T}$ac_cv_c_const" >&6
5878 if test $ac_cv_c_const = no
; then
5880 cat >>confdefs.h
<<\_ACEOF
5886 echo "$as_me:$LINENO: checking for void * support" >&5
5887 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
5888 if test "${emacs_cv_void_star+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 cat >conftest.
$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5893 #include "confdefs.h"
5895 #ifdef F77_DUMMY_MAIN
5899 int F77_DUMMY_MAIN() { return 1; }
5909 rm -f conftest.
$ac_objext
5910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5911 (eval $ac_compile) 2>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } &&
5915 { ac_try
='test -s conftest.$ac_objext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 emacs_cv_void_star
=yes
5923 echo "$as_me: failed program was:" >&5
5924 cat conftest.
$ac_ext >&5
5925 emacs_cv_void_star
=no
5927 rm -f conftest.
$ac_objext conftest.
$ac_ext
5929 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
5930 echo "${ECHO_T}$emacs_cv_void_star" >&6
5931 if test $emacs_cv_void_star = yes; then
5932 cat >>confdefs.h
<<\_ACEOF
5933 #define POINTER_TYPE void
5937 cat >>confdefs.h
<<\_ACEOF
5938 #define POINTER_TYPE char
5944 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
5945 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
5946 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,./+-,__p_,'`
5947 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 cat >conftest.
make <<\_ACEOF
5952 @
echo 'ac_maketemp="${MAKE}"'
5954 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5955 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
5956 if test -n "$ac_maketemp"; then
5957 eval ac_cv_prog_make_
${ac_make}_set
=yes
5959 eval ac_cv_prog_make_
${ac_make}_set
=no
5963 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5964 echo "$as_me:$LINENO: result: yes" >&5
5965 echo "${ECHO_T}yes" >&6
5968 echo "$as_me:$LINENO: result: no" >&5
5969 echo "${ECHO_T}no" >&6
5970 SET_MAKE
="MAKE=${MAKE-make}"
5974 echo "$as_me:$LINENO: checking for long file names" >&5
5975 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
5976 if test "${ac_cv_sys_long_file_names+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 ac_cv_sys_long_file_names
=yes
5980 # Test for long file names in all the places we know might matter:
5981 # . the current directory, where building will happen
5982 # $prefix/lib where we will be installing things
5983 # $exec_prefix/lib likewise
5984 # eval it to expand exec_prefix.
5985 # $TMPDIR if set, where it might want to write temporary files
5986 # if $TMPDIR is not set:
5987 # /tmp where it might want to write temporary files
5990 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
5993 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
5995 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
5996 test -d $ac_dir ||
continue
5997 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
5998 ac_xdir
=$ac_dir/cf$$
5999 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
6000 ac_tf1
=$ac_xdir/conftest9012345
6001 ac_tf2
=$ac_xdir/conftest9012346
6002 (echo 1 >$ac_tf1) 2>/dev
/null
6003 (echo 2 >$ac_tf2) 2>/dev
/null
6004 ac_val
=`cat $ac_tf1 2>/dev/null`
6005 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
6006 ac_cv_sys_long_file_names
=no
6007 rm -rf $ac_xdir 2>/dev
/null
6010 rm -rf $ac_xdir 2>/dev
/null
6013 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6014 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
6015 if test $ac_cv_sys_long_file_names = yes; then
6017 cat >>confdefs.h
<<\_ACEOF
6018 #define HAVE_LONG_FILE_NAMES 1
6024 #### Choose a window system.
6026 echo "$as_me:$LINENO: checking for X" >&5
6027 echo $ECHO_N "checking for X... $ECHO_C" >&6
6030 # Check whether --with-x or --without-x was given.
6031 if test "${with_x+set}" = set; then
6035 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
6036 if test "x$with_x" = xno
; then
6037 # The user explicitly disabled X.
6040 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
6041 # Both variables are already set.
6044 if test "${ac_cv_have_x+set}" = set; then
6045 echo $ECHO_N "(cached) $ECHO_C" >&6
6047 # One or both of the vars are not set, and there is no cached value.
6048 ac_x_includes
=no ac_x_libraries
=no
6050 if mkdir conftest.dir
; then
6052 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
6053 cat >Imakefile
<<'_ACEOF'
6055 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
6057 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
6058 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6059 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
6060 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6061 for ac_extension
in a so sl
; do
6062 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
6063 test -f $ac_im_libdir/libX11.
$ac_extension; then
6064 ac_im_usrlibdir
=$ac_im_libdir; break
6067 # Screen out bogus values from the imake configuration. They are
6068 # bogus both because they are the default anyway, and because
6069 # using them would break gcc on systems where it needs fixed includes.
6070 case $ac_im_incroot in
6072 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
6074 case $ac_im_usrlibdir in
6076 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
6083 # Standard set of common directories for X headers.
6084 # Check X11 before X11Rn because it is often a symlink to the current release.
6096 /usr/local/X11/include
6097 /usr/local/X11R6/include
6098 /usr/local/X11R5/include
6099 /usr/local/X11R4/include
6101 /usr/local/include/X11
6102 /usr/local/include/X11R6
6103 /usr/local/include/X11R5
6104 /usr/local/include/X11R4
6108 /usr/XFree86/include/X11
6112 /usr/unsupported/include
6114 /usr/local/x11r5/include
6115 /usr/lpp/Xamples/include
6117 /usr/openwin/include
6118 /usr/openwin/share/include'
6120 if test "$ac_x_includes" = no
; then
6121 # Guess where to find include files, by looking for Intrinsic.h.
6122 # First, try using that file with no special directory specified.
6123 cat >conftest.
$ac_ext <<_ACEOF
6124 #line $LINENO "configure"
6125 #include "confdefs.h"
6126 #include <X11/Intrinsic.h>
6128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6129 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6131 egrep -v '^ *\+' conftest.er1
>conftest.err
6133 cat conftest.err
>&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } >/dev
/null
; then
6136 if test -s conftest.err
; then
6137 ac_cpp_err
=$ac_c_preproc_warn_flag
6144 if test -z "$ac_cpp_err"; then
6145 # We can compile using X headers with no special include directory.
6148 echo "$as_me: failed program was:" >&5
6149 cat conftest.
$ac_ext >&5
6150 for ac_dir
in $ac_x_header_dirs; do
6151 if test -r "$ac_dir/X11/Intrinsic.h"; then
6152 ac_x_includes
=$ac_dir
6157 rm -f conftest.err conftest.
$ac_ext
6158 fi # $ac_x_includes = no
6160 if test "$ac_x_libraries" = no
; then
6161 # Check for the libraries.
6162 # See if we find them without any special options.
6163 # Don't add to $LIBS permanently.
6166 cat >conftest.
$ac_ext <<_ACEOF
6167 #line $LINENO "configure"
6168 #include "confdefs.h"
6169 #include <X11/Intrinsic.h>
6170 #ifdef F77_DUMMY_MAIN
6174 int F77_DUMMY_MAIN() { return 1; }
6184 rm -f conftest.
$ac_objext conftest
$ac_exeext
6185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6186 (eval $ac_link) 2>&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } &&
6190 { ac_try
='test -s conftest$ac_exeext'
6191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6197 # We can link X programs with no special library path.
6200 echo "$as_me: failed program was:" >&5
6201 cat conftest.
$ac_ext >&5
6203 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6205 # Don't even attempt the hair of trying to link an X program!
6206 for ac_extension
in a so sl
; do
6207 if test -r $ac_dir/libXt.
$ac_extension; then
6208 ac_x_libraries
=$ac_dir
6214 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6215 fi # $ac_x_libraries = no
6217 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
6218 # Didn't find X anywhere. Cache the known absence of X.
6219 ac_cv_have_x
="have_x=no"
6221 # Record where we found X for the cache.
6222 ac_cv_have_x
="have_x=yes \
6223 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6228 eval "$ac_cv_have_x"
6231 if test "$have_x" != yes; then
6232 echo "$as_me:$LINENO: result: $have_x" >&5
6233 echo "${ECHO_T}$have_x" >&6
6236 # If each of the values was on the command line, it overrides each guess.
6237 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
6238 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
6239 # Update the cache value to reflect the command line values.
6240 ac_cv_have_x
="have_x=yes \
6241 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6242 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6243 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6246 if test "$no_x" = yes; then
6252 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
6253 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
6254 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
6255 x_default_search_path
=""
6256 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
6258 ${x_library}/X11/%L/%T/%N%C%S:\
6259 ${x_library}/X11/%l/%T/%N%C%S:\
6260 ${x_library}/X11/%T/%N%C%S:\
6261 ${x_library}/X11/%L/%T/%N%S:\
6262 ${x_library}/X11/%l/%T/%N%S:\
6263 ${x_library}/X11/%T/%N%S"
6264 if test x
"${x_default_search_path}" = x
; then
6265 x_default_search_path
=${x_search_path}
6267 x_default_search_path
="${x_search_path}:${x_default_search_path}"
6271 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
6272 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
6275 if test x
"${x_includes}" = x
; then
6276 bitmapdir
=/usr
/include
/X11
/bitmaps
6278 # accumulate include directories that have X11 bitmap subdirectories
6280 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
6281 if test -d "${bmd}/X11/bitmaps"; then
6282 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
6284 if test -d "${bmd}/bitmaps"; then
6285 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
6288 if test ${bmd_acc} != "dummyval"; then
6289 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
6293 case "${window_system}" in
6297 case "${with_x_toolkit}" in
6298 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
6299 motif
) USE_X_TOOLKIT
=MOTIF
;;
6300 no
) USE_X_TOOLKIT
=none
;;
6301 * ) USE_X_TOOLKIT
=maybe
;;
6311 ### If we're using X11, we should use the X menu package.
6314 yes ) HAVE_MENUS
=yes ;;
6317 if test "${opsys}" = "hpux9"; then
6318 case "${x_libraries}" in
6320 opsysfile
="s/hpux9-x11r4.h"
6325 if test "${opsys}" = "hpux9shr"; then
6326 case "${x_libraries}" in
6328 opsysfile
="s/hpux9shxr4.h"
6333 ### Compute the unexec source name from the object name.
6334 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
6336 # Do the opsystem or machine files prohibit the use of the GNU malloc?
6337 # Assume not, until told otherwise.
6340 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
6341 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
6342 if test "${ac_cv_func_malloc_get_state+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 cat >conftest.
$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6347 #include "confdefs.h"
6348 /* System header to define __stub macros and hopefully few prototypes,
6349 which can conflict with char malloc_get_state (); below. */
6351 /* Override any gcc2 internal prototype to avoid an error. */
6355 /* We use char because int might match the return type of a gcc2
6356 builtin and then its argument prototype would still apply. */
6357 char malloc_get_state ();
6360 #ifdef F77_DUMMY_MAIN
6364 int F77_DUMMY_MAIN() { return 1; }
6369 /* The GNU C library defines this for functions which it implements
6370 to always fail with ENOSYS. Some functions are actually named
6371 something starting with __ and the normal name is an alias. */
6372 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
6375 f = malloc_get_state;
6382 rm -f conftest.
$ac_objext conftest
$ac_exeext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6384 (eval $ac_link) 2>&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try
='test -s conftest$ac_exeext'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
6394 ac_cv_func_malloc_get_state
=yes
6396 echo "$as_me: failed program was:" >&5
6397 cat conftest.
$ac_ext >&5
6398 ac_cv_func_malloc_get_state
=no
6400 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6402 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
6403 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
6404 if test $ac_cv_func_malloc_get_state = yes; then
6410 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
6411 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
6412 if test "${ac_cv_func_malloc_set_state+set}" = set; then
6413 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 cat >conftest.
$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 #include "confdefs.h"
6418 /* System header to define __stub macros and hopefully few prototypes,
6419 which can conflict with char malloc_set_state (); below. */
6421 /* Override any gcc2 internal prototype to avoid an error. */
6425 /* We use char because int might match the return type of a gcc2
6426 builtin and then its argument prototype would still apply. */
6427 char malloc_set_state ();
6430 #ifdef F77_DUMMY_MAIN
6434 int F77_DUMMY_MAIN() { return 1; }
6439 /* The GNU C library defines this for functions which it implements
6440 to always fail with ENOSYS. Some functions are actually named
6441 something starting with __ and the normal name is an alias. */
6442 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
6445 f = malloc_set_state;
6452 rm -f conftest.
$ac_objext conftest
$ac_exeext
6453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6454 (eval $ac_link) 2>&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } &&
6458 { ac_try
='test -s conftest$ac_exeext'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; }; then
6464 ac_cv_func_malloc_set_state
=yes
6466 echo "$as_me: failed program was:" >&5
6467 cat conftest.
$ac_ext >&5
6468 ac_cv_func_malloc_set_state
=no
6470 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6472 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
6473 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
6474 if test $ac_cv_func_malloc_set_state = yes; then
6480 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
6481 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
6482 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 cat >conftest.
$ac_ext <<_ACEOF
6486 #line $LINENO "configure"
6487 #include "confdefs.h"
6488 extern void (* __after_morecore_hook)();
6489 #ifdef F77_DUMMY_MAIN
6493 int F77_DUMMY_MAIN() { return 1; }
6498 __after_morecore_hook = 0
6503 rm -f conftest.
$ac_objext conftest
$ac_exeext
6504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6505 (eval $ac_link) 2>&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); } &&
6509 { ac_try
='test -s conftest$ac_exeext'
6510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); }; }; then
6515 emacs_cv_var___after_morecore_hook
=yes
6517 echo "$as_me: failed program was:" >&5
6518 cat conftest.
$ac_ext >&5
6519 emacs_cv_var___after_morecore_hook
=no
6521 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6523 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
6524 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
6525 if test $emacs_cv_var___after_morecore_hook = no
; then
6528 if test "${system_malloc}" = "yes"; then
6531 (The GNU allocators don't work with this system configuration.)"
6533 if test "$doug_lea_malloc" = "yes" ; then
6534 if test "$GNU_MALLOC" = yes ; then
6536 (Using Doug Lea's new malloc from the GNU C Library.)"
6539 cat >>confdefs.h
<<\_ACEOF
6540 #define DOUG_LEA_MALLOC 1
6545 if test x
"${REL_ALLOC}" = x
; then
6546 REL_ALLOC
=${GNU_MALLOC}
6552 for ac_header
in stdlib.h unistd.h
6554 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556 echo "$as_me:$LINENO: checking for $ac_header" >&5
6557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6564 # Is the header compilable?
6565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6567 cat >conftest.
$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6569 #include "confdefs.h"
6570 $ac_includes_default
6571 #include <$ac_header>
6573 rm -f conftest.
$ac_objext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575 (eval $ac_compile) 2>&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try
='test -s conftest.$ac_objext'
6580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584 (exit $ac_status); }; }; then
6585 ac_header_compiler
=yes
6587 echo "$as_me: failed program was:" >&5
6588 cat conftest.
$ac_ext >&5
6589 ac_header_compiler
=no
6591 rm -f conftest.
$ac_objext conftest.
$ac_ext
6592 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6593 echo "${ECHO_T}$ac_header_compiler" >&6
6595 # Is the header present?
6596 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6598 cat >conftest.
$ac_ext <<_ACEOF
6599 #line $LINENO "configure"
6600 #include "confdefs.h"
6601 #include <$ac_header>
6603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6604 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6606 egrep -v '^ *\+' conftest.er1
>conftest.err
6608 cat conftest.err
>&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } >/dev
/null
; then
6611 if test -s conftest.err
; then
6612 ac_cpp_err
=$ac_c_preproc_warn_flag
6619 if test -z "$ac_cpp_err"; then
6620 ac_header_preproc
=yes
6622 echo "$as_me: failed program was:" >&5
6623 cat conftest.
$ac_ext >&5
6624 ac_header_preproc
=no
6626 rm -f conftest.err conftest.
$ac_ext
6627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6628 echo "${ECHO_T}$ac_header_preproc" >&6
6630 # So? What about this header?
6631 case $ac_header_compiler:$ac_header_preproc in
6633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
6645 echo "$as_me:$LINENO: checking for $ac_header" >&5
6646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6647 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 eval "$as_ac_Header=$ac_header_preproc"
6652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6657 cat >>confdefs.h
<<_ACEOF
6658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6666 for ac_func
in getpagesize
6668 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6669 echo "$as_me:$LINENO: checking for $ac_func" >&5
6670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6671 if eval "test \"\${$as_ac_var+set}\" = set"; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6674 cat >conftest.
$ac_ext <<_ACEOF
6675 #line $LINENO "configure"
6676 #include "confdefs.h"
6677 /* System header to define __stub macros and hopefully few prototypes,
6678 which can conflict with char $ac_func (); below. */
6680 /* Override any gcc2 internal prototype to avoid an error. */
6684 /* We use char because int might match the return type of a gcc2
6685 builtin and then its argument prototype would still apply. */
6689 #ifdef F77_DUMMY_MAIN
6693 int F77_DUMMY_MAIN() { return 1; }
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6711 rm -f conftest.
$ac_objext conftest
$ac_exeext
6712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6713 (eval $ac_link) 2>&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } &&
6717 { ac_try
='test -s conftest$ac_exeext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 eval "$as_ac_var=yes"
6725 echo "$as_me: failed program was:" >&5
6726 cat conftest.
$ac_ext >&5
6727 eval "$as_ac_var=no"
6729 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6732 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6733 if test `eval echo '${'$as_ac_var'}'` = yes; then
6734 cat >>confdefs.h
<<_ACEOF
6735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6741 echo "$as_me:$LINENO: checking for working mmap" >&5
6742 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6743 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6744 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 if test "$cross_compiling" = yes; then
6747 ac_cv_func_mmap_fixed_mapped
=no
6749 cat >conftest.
$ac_ext <<_ACEOF
6750 #line $LINENO "configure"
6751 #include "confdefs.h"
6752 $ac_includes_default
6753 /* malloc might have been renamed as rpl_malloc. */
6756 /* Thanks to Mike Haertel and Jim Avera for this test.
6757 Here is a matrix of mmap possibilities:
6758 mmap private not fixed
6759 mmap private fixed at somewhere currently unmapped
6760 mmap private fixed at somewhere already mapped
6761 mmap shared not fixed
6762 mmap shared fixed at somewhere currently unmapped
6763 mmap shared fixed at somewhere already mapped
6764 For private mappings, we should verify that changes cannot be read()
6765 back from the file, nor mmap's back from the file at a different
6766 address. (There have been systems where private was not correctly
6767 implemented like the infamous i386 svr4.0, and systems where the
6768 VM page cache was not coherent with the file system buffer cache
6769 like early versions of FreeBSD and possibly contemporary NetBSD.)
6770 For shared mappings, we should conversely verify that changes get
6771 propagated back to all the places they're supposed to be.
6773 Grep wants private fixed already mapped.
6774 The main things grep needs to know about mmap are:
6775 * does it exist and is it safe to write into the mmap'd area
6776 * how to use it (BSD variants) */
6779 #include <sys/mman.h>
6781 #if !STDC_HEADERS && !HAVE_STDLIB_H
6785 /* This mess was copied from the GNU getpagesize.h. */
6786 #if !HAVE_GETPAGESIZE
6787 /* Assume that all systems that can run configure have sys/param.h. */
6788 # if !HAVE_SYS_PARAM_H
6789 # define HAVE_SYS_PARAM_H 1
6792 # ifdef _SC_PAGESIZE
6793 # define getpagesize() sysconf(_SC_PAGESIZE)
6794 # else /* no _SC_PAGESIZE */
6795 # if HAVE_SYS_PARAM_H
6796 # include <sys/param.h>
6797 # ifdef EXEC_PAGESIZE
6798 # define getpagesize() EXEC_PAGESIZE
6799 # else /* no EXEC_PAGESIZE */
6801 # define getpagesize() NBPG * CLSIZE
6804 # endif /* no CLSIZE */
6805 # else /* no NBPG */
6807 # define getpagesize() NBPC
6808 # else /* no NBPC */
6810 # define getpagesize() PAGESIZE
6811 # endif /* PAGESIZE */
6812 # endif /* no NBPC */
6813 # endif /* no NBPG */
6814 # endif /* no EXEC_PAGESIZE */
6815 # else /* no HAVE_SYS_PARAM_H */
6816 # define getpagesize() 8192 /* punt totally */
6817 # endif /* no HAVE_SYS_PARAM_H */
6818 # endif /* no _SC_PAGESIZE */
6820 #endif /* no HAVE_GETPAGESIZE */
6825 char *data, *data2, *data3;
6829 pagesize = getpagesize ();
6831 /* First, make a file with some known garbage in it. */
6832 data = (char *) malloc (pagesize);
6835 for (i = 0; i < pagesize; ++i)
6836 *(data + i) = rand ();
6838 fd = creat ("conftest.mmap", 0600);
6841 if (write (fd, data, pagesize) != pagesize)
6845 /* Next, try to mmap the file at a fixed address which already has
6846 something else allocated at it. If we can, also make sure that
6847 we see the same garbage. */
6848 fd = open ("conftest.mmap", O_RDWR);
6851 data2 = (char *) malloc (2 * pagesize);
6854 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6855 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6856 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6858 for (i = 0; i < pagesize; ++i)
6859 if (*(data + i) != *(data2 + i))
6862 /* Finally, make sure that changes to the mapped area do not
6863 percolate back to the file as seen by read(). (This is a bug on
6864 some variants of i386 svr4.0.) */
6865 for (i = 0; i < pagesize; ++i)
6866 *(data2 + i) = *(data2 + i) + 1;
6867 data3 = (char *) malloc (pagesize);
6870 if (read (fd, data3, pagesize) != pagesize)
6872 for (i = 0; i < pagesize; ++i)
6873 if (*(data + i) != *(data3 + i))
6879 rm -f conftest
$ac_exeext
6880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6881 (eval $ac_link) 2>&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); }; }; then
6890 ac_cv_func_mmap_fixed_mapped
=yes
6892 echo "$as_me: program exited with status $ac_status" >&5
6893 echo "$as_me: failed program was:" >&5
6894 cat conftest.
$ac_ext >&5
6896 ac_cv_func_mmap_fixed_mapped
=no
6898 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6901 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6902 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6903 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6905 cat >>confdefs.h
<<\_ACEOF
6912 if test $use_mmap_for_buffers = yes; then
6916 LIBS
="$libsrc_libs $LIBS"
6919 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6920 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6921 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6924 ac_check_lib_save_LIBS
=$LIBS
6926 cat >conftest.
$ac_ext <<_ACEOF
6927 #line $LINENO "configure"
6928 #include "confdefs.h"
6930 /* Override any gcc2 internal prototype to avoid an error. */
6934 /* We use char because int might match the return type of a gcc2
6935 builtin and then its argument prototype would still apply. */
6937 #ifdef F77_DUMMY_MAIN
6941 int F77_DUMMY_MAIN() { return 1; }
6951 rm -f conftest.
$ac_objext conftest
$ac_exeext
6952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6953 (eval $ac_link) 2>&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); } &&
6957 { ac_try
='test -s conftest$ac_exeext'
6958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; }; then
6963 ac_cv_lib_dnet_dnet_ntoa
=yes
6965 echo "$as_me: failed program was:" >&5
6966 cat conftest.
$ac_ext >&5
6967 ac_cv_lib_dnet_dnet_ntoa
=no
6969 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
6970 LIBS
=$ac_check_lib_save_LIBS
6972 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6973 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6974 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6975 cat >>confdefs.h
<<_ACEOF
6976 #define HAVE_LIBDNET 1
6984 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
6985 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
6986 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6989 ac_check_lib_save_LIBS
=$LIBS
6991 cat >conftest.
$ac_ext <<_ACEOF
6992 #line $LINENO "configure"
6993 #include "confdefs.h"
6996 #ifdef F77_DUMMY_MAIN
7000 int F77_DUMMY_MAIN() { return 1; }
7010 rm -f conftest.
$ac_objext conftest
$ac_exeext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7012 (eval $ac_link) 2>&5
7014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015 (exit $ac_status); } &&
7016 { ac_try
='test -s conftest$ac_exeext'
7017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7022 ac_cv_lib_Xbsd_main
=yes
7024 echo "$as_me: failed program was:" >&5
7025 cat conftest.
$ac_ext >&5
7026 ac_cv_lib_Xbsd_main
=no
7028 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7029 LIBS
=$ac_check_lib_save_LIBS
7031 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7032 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
7033 if test $ac_cv_lib_Xbsd_main = yes; then
7034 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
7039 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7040 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
7041 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7042 echo $ECHO_N "(cached) $ECHO_C" >&6
7044 ac_check_lib_save_LIBS
=$LIBS
7045 LIBS
="-lpthreads $LIBS"
7046 cat >conftest.
$ac_ext <<_ACEOF
7047 #line $LINENO "configure"
7048 #include "confdefs.h"
7050 /* Override any gcc2 internal prototype to avoid an error. */
7054 /* We use char because int might match the return type of a gcc2
7055 builtin and then its argument prototype would still apply. */
7057 #ifdef F77_DUMMY_MAIN
7061 int F77_DUMMY_MAIN() { return 1; }
7071 rm -f conftest.
$ac_objext conftest
$ac_exeext
7072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7073 (eval $ac_link) 2>&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } &&
7077 { ac_try
='test -s conftest$ac_exeext'
7078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082 (exit $ac_status); }; }; then
7083 ac_cv_lib_pthreads_cma_open
=yes
7085 echo "$as_me: failed program was:" >&5
7086 cat conftest.
$ac_ext >&5
7087 ac_cv_lib_pthreads_cma_open
=no
7089 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7090 LIBS
=$ac_check_lib_save_LIBS
7092 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7093 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
7094 if test $ac_cv_lib_pthreads_cma_open = yes; then
7095 cat >>confdefs.h
<<_ACEOF
7096 #define HAVE_LIBPTHREADS 1
7099 LIBS
="-lpthreads $LIBS"
7104 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
7105 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
7106 if test -d /usr
/X386
/include
; then
7108 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
7112 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
7113 echo "${ECHO_T}$HAVE_XFREE386" >&6
7115 # Change CFLAGS temporarily so that C_SWITCH_X_SITE gets used
7116 # for the tests that follow. We set it back to REAL_CFLAGS later on.
7118 REAL_CPPFLAGS
="$CPPFLAGS"
7120 if test "${HAVE_X11}" = "yes"; then
7121 DEFS
="$C_SWITCH_X_SITE $DEFS"
7122 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
7124 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
7125 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
7127 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
7128 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
7129 # but it's more convenient here to set LD_RUN_PATH
7130 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
7131 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
7132 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7136 if test "${opsys}" = "gnu-linux"; then
7137 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7138 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
7139 cat >conftest.
$ac_ext <<_ACEOF
7140 #line $LINENO "configure"
7141 #include "confdefs.h"
7143 #ifdef F77_DUMMY_MAIN
7147 int F77_DUMMY_MAIN() { return 1; }
7152 XOpenDisplay ("foo");
7157 rm -f conftest.
$ac_objext conftest
$ac_exeext
7158 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7159 (eval $ac_link) 2>&5
7161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7162 (exit $ac_status); } &&
7163 { ac_try
='test -s conftest$ac_exeext'
7164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); }; }; then
7169 xlinux_first_failure
=no
7171 echo "$as_me: failed program was:" >&5
7172 cat conftest.
$ac_ext >&5
7173 xlinux_first_failure
=yes
7175 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7176 if test "${xlinux_first_failure}" = "yes"; then
7177 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
7178 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
7179 OLD_CPPFLAGS
="$CPPFLAGS"
7181 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
7182 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
7183 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
7184 LIBS
="$LIBS -b i486-linuxaout"
7185 cat >conftest.
$ac_ext <<_ACEOF
7186 #line $LINENO "configure"
7187 #include "confdefs.h"
7189 #ifdef F77_DUMMY_MAIN
7193 int F77_DUMMY_MAIN() { return 1; }
7198 XOpenDisplay ("foo");
7203 rm -f conftest.
$ac_objext conftest
$ac_exeext
7204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7205 (eval $ac_link) 2>&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } &&
7209 { ac_try
='test -s conftest$ac_exeext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 xlinux_second_failure
=no
7217 echo "$as_me: failed program was:" >&5
7218 cat conftest.
$ac_ext >&5
7219 xlinux_second_failure
=yes
7221 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7222 if test "${xlinux_second_failure}" = "yes"; then
7223 # If we get the same failure with -b, there is no use adding -b.
7224 # So take it out. This plays safe.
7225 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
7226 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
7227 CPPFLAGS
="$OLD_CPPFLAGS"
7229 echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6
7232 echo "$as_me:$LINENO: result: yes" >&5
7233 echo "${ECHO_T}yes" >&6
7236 echo "$as_me:$LINENO: result: no" >&5
7237 echo "${ECHO_T}no" >&6
7241 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7242 # header files included from there.
7243 echo "$as_me:$LINENO: checking for Xkb" >&5
7244 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
7245 cat >conftest.
$ac_ext <<_ACEOF
7246 #line $LINENO "configure"
7247 #include "confdefs.h"
7248 #include <X11/Xlib.h>
7249 #include <X11/XKBlib.h>
7250 #ifdef F77_DUMMY_MAIN
7254 int F77_DUMMY_MAIN() { return 1; }
7259 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7264 rm -f conftest.
$ac_objext conftest
$ac_exeext
7265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7266 (eval $ac_link) 2>&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } &&
7270 { ac_try
='test -s conftest$ac_exeext'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7278 echo "$as_me: failed program was:" >&5
7279 cat conftest.
$ac_ext >&5
7282 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7283 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7284 echo "${ECHO_T}$emacs_xkb" >&6
7285 if test $emacs_xkb = yes; then
7287 cat >>confdefs.h
<<\_ACEOF
7288 #define HAVE_XKBGETKEYBOARD 1
7297 for ac_func
in XrmSetDatabase XScreenResourceString \
7298 XScreenNumberOfScreen XSetWMProtocols
7300 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7301 echo "$as_me:$LINENO: checking for $ac_func" >&5
7302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7303 if eval "test \"\${$as_ac_var+set}\" = set"; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 cat >conftest.
$ac_ext <<_ACEOF
7307 #line $LINENO "configure"
7308 #include "confdefs.h"
7309 /* System header to define __stub macros and hopefully few prototypes,
7310 which can conflict with char $ac_func (); below. */
7312 /* Override any gcc2 internal prototype to avoid an error. */
7316 /* We use char because int might match the return type of a gcc2
7317 builtin and then its argument prototype would still apply. */
7321 #ifdef F77_DUMMY_MAIN
7325 int F77_DUMMY_MAIN() { return 1; }
7330 /* The GNU C library defines this for functions which it implements
7331 to always fail with ENOSYS. Some functions are actually named
7332 something starting with __ and the normal name is an alias. */
7333 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7343 rm -f conftest.
$ac_objext conftest
$ac_exeext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7345 (eval $ac_link) 2>&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } &&
7349 { ac_try
='test -s conftest$ac_exeext'
7350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 eval "$as_ac_var=yes"
7357 echo "$as_me: failed program was:" >&5
7358 cat conftest.
$ac_ext >&5
7359 eval "$as_ac_var=no"
7361 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7364 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7365 if test `eval echo '${'$as_ac_var'}'` = yes; then
7366 cat >>confdefs.h
<<_ACEOF
7367 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7375 if test "${window_system}" = "x11"; then
7376 echo "$as_me:$LINENO: checking X11 version 6" >&5
7377 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
7378 if test "${emacs_cv_x11_version_6+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 cat >conftest.
$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7383 #include "confdefs.h"
7384 #include <X11/Xlib.h>
7385 #ifdef F77_DUMMY_MAIN
7389 int F77_DUMMY_MAIN() { return 1; }
7394 #if XlibSpecificationRelease < 6
7402 rm -f conftest.
$ac_objext conftest
$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404 (eval $ac_link) 2>&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try
='test -s conftest$ac_exeext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 emacs_cv_x11_version_6
=yes
7416 echo "$as_me: failed program was:" >&5
7417 cat conftest.
$ac_ext >&5
7418 emacs_cv_x11_version_6
=no
7420 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7423 if test $emacs_cv_x11_version_6 = yes; then
7424 echo "$as_me:$LINENO: result: 6 or newer" >&5
7425 echo "${ECHO_T}6 or newer" >&6
7427 cat >>confdefs.h
<<\_ACEOF
7428 #define HAVE_X11R6 1
7432 echo "$as_me:$LINENO: result: before 6" >&5
7433 echo "${ECHO_T}before 6" >&6
7437 if test "${window_system}" = "x11"; then
7438 echo "$as_me:$LINENO: checking X11 version 5" >&5
7439 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
7440 if test "${emacs_cv_x11_version_5+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 cat >conftest.
$ac_ext <<_ACEOF
7444 #line $LINENO "configure"
7445 #include "confdefs.h"
7446 #include <X11/Xlib.h>
7447 #ifdef F77_DUMMY_MAIN
7451 int F77_DUMMY_MAIN() { return 1; }
7456 #if XlibSpecificationRelease < 5
7464 rm -f conftest.
$ac_objext conftest
$ac_exeext
7465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7466 (eval $ac_link) 2>&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } &&
7470 { ac_try
='test -s conftest$ac_exeext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 emacs_cv_x11_version_5
=yes
7478 echo "$as_me: failed program was:" >&5
7479 cat conftest.
$ac_ext >&5
7480 emacs_cv_x11_version_5
=no
7482 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7485 if test $emacs_cv_x11_version_5 = yes; then
7486 echo "$as_me:$LINENO: result: 5 or newer" >&5
7487 echo "${ECHO_T}5 or newer" >&6
7490 cat >>confdefs.h
<<\_ACEOF
7491 #define HAVE_X11R5 1
7496 echo "$as_me:$LINENO: result: before 5" >&5
7497 echo "${ECHO_T}before 5" >&6
7501 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
7502 if test x
"${HAVE_X11R5}" = xyes
; then
7503 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
7504 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
7505 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 cat >conftest.
$ac_ext <<_ACEOF
7509 #line $LINENO "configure"
7510 #include "confdefs.h"
7512 #include <X11/Intrinsic.h>
7513 #include <X11/Xaw/Simple.h>
7514 #ifdef F77_DUMMY_MAIN
7518 int F77_DUMMY_MAIN() { return 1; }
7528 rm -f conftest.
$ac_objext conftest
$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530 (eval $ac_link) 2>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } &&
7534 { ac_try
='test -s conftest$ac_exeext'
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; }; then
7540 emacs_cv_x11_version_5_with_xaw
=yes
7542 echo "$as_me: failed program was:" >&5
7543 cat conftest.
$ac_ext >&5
7544 emacs_cv_x11_version_5_with_xaw
=no
7546 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7549 if test $emacs_cv_x11_version_5_with_xaw = yes; then
7550 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
7551 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
7554 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
7555 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
7563 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
7565 if test "${USE_X_TOOLKIT}" != "none"; then
7566 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
7567 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
7568 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 cat >conftest.
$ac_ext <<_ACEOF
7572 #line $LINENO "configure"
7573 #include "confdefs.h"
7574 #include <X11/Intrinsic.h>
7575 #ifdef F77_DUMMY_MAIN
7579 int F77_DUMMY_MAIN() { return 1; }
7584 #if XtSpecificationRelease < 6
7592 rm -f conftest.
$ac_objext conftest
$ac_exeext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7594 (eval $ac_link) 2>&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try
='test -s conftest$ac_exeext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7604 emacs_cv_x11_toolkit_version_6
=yes
7606 echo "$as_me: failed program was:" >&5
7607 cat conftest.
$ac_ext >&5
7608 emacs_cv_x11_toolkit_version_6
=no
7610 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7613 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
7614 if test $emacs_cv_x11_toolkit_version_6 = yes; then
7615 echo "$as_me:$LINENO: result: 6 or newer" >&5
7616 echo "${ECHO_T}6 or newer" >&6
7618 cat >>confdefs.h
<<\_ACEOF
7619 #define HAVE_X11XTR6 1
7623 echo "$as_me:$LINENO: result: before 6" >&5
7624 echo "${ECHO_T}before 6" >&6
7628 if test x
$HAVE_X11XTR6 = xyes
; then
7629 LIBS
="-lXt -lSM -lICE $LIBS"
7634 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
7635 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
7636 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 ac_check_lib_save_LIBS
=$LIBS
7641 cat >conftest.
$ac_ext <<_ACEOF
7642 #line $LINENO "configure"
7643 #include "confdefs.h"
7645 /* Override any gcc2 internal prototype to avoid an error. */
7649 /* We use char because int might match the return type of a gcc2
7650 builtin and then its argument prototype would still apply. */
7651 char XmuConvertStandardSelection ();
7652 #ifdef F77_DUMMY_MAIN
7656 int F77_DUMMY_MAIN() { return 1; }
7661 XmuConvertStandardSelection ();
7666 rm -f conftest.
$ac_objext conftest
$ac_exeext
7667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7668 (eval $ac_link) 2>&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } &&
7672 { ac_try
='test -s conftest$ac_exeext'
7673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
7680 echo "$as_me: failed program was:" >&5
7681 cat conftest.
$ac_ext >&5
7682 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
7684 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7685 LIBS
=$ac_check_lib_save_LIBS
7687 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
7688 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
7689 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
7690 cat >>confdefs.h
<<_ACEOF
7691 #define HAVE_LIBXMU 1
7698 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
7701 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
7702 if test "${HAVE_X11}" = "yes"; then
7703 if test "${USE_X_TOOLKIT}" != "none"; then
7705 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
7706 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7707 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 ac_check_lib_save_LIBS
=$LIBS
7712 cat >conftest.
$ac_ext <<_ACEOF
7713 #line $LINENO "configure"
7714 #include "confdefs.h"
7716 /* Override any gcc2 internal prototype to avoid an error. */
7720 /* We use char because int might match the return type of a gcc2
7721 builtin and then its argument prototype would still apply. */
7722 char XShapeQueryExtension ();
7723 #ifdef F77_DUMMY_MAIN
7727 int F77_DUMMY_MAIN() { return 1; }
7732 XShapeQueryExtension ();
7737 rm -f conftest.
$ac_objext conftest
$ac_exeext
7738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7739 (eval $ac_link) 2>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try
='test -s conftest$ac_exeext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 ac_cv_lib_Xext_XShapeQueryExtension
=yes
7751 echo "$as_me: failed program was:" >&5
7752 cat conftest.
$ac_ext >&5
7753 ac_cv_lib_Xext_XShapeQueryExtension
=no
7755 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7756 LIBS
=$ac_check_lib_save_LIBS
7758 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
7759 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7760 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
7761 cat >>confdefs.h
<<_ACEOF
7762 #define HAVE_LIBXEXT 1
7772 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
7773 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
7774 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
7775 if test "${emacs_cv_motif_version_2_1+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 cat >conftest.
$ac_ext <<_ACEOF
7779 #line $LINENO "configure"
7780 #include "confdefs.h"
7782 #ifdef F77_DUMMY_MAIN
7786 int F77_DUMMY_MAIN() { return 1; }
7791 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
7794 Motif version prior to 2.1.
7800 rm -f conftest.
$ac_objext
7801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7802 (eval $ac_compile) 2>&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } &&
7806 { ac_try
='test -s conftest.$ac_objext'
7807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); }; }; then
7812 emacs_cv_motif_version_2_1
=yes
7814 echo "$as_me: failed program was:" >&5
7815 cat conftest.
$ac_ext >&5
7816 emacs_cv_motif_version_2_1
=no
7818 rm -f conftest.
$ac_objext conftest.
$ac_ext
7820 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
7821 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
7822 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
7823 if test $emacs_cv_motif_version_2_1 = yes; then
7826 cat >>confdefs.h
<<\_ACEOF
7827 #define HAVE_MOTIF_2_1 1
7830 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
7831 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
7832 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
7833 echo $ECHO_N "(cached) $ECHO_C" >&6
7835 ac_check_lib_save_LIBS
=$LIBS
7837 cat >conftest.
$ac_ext <<_ACEOF
7838 #line $LINENO "configure"
7839 #include "confdefs.h"
7841 /* Override any gcc2 internal prototype to avoid an error. */
7845 /* We use char because int might match the return type of a gcc2
7846 builtin and then its argument prototype would still apply. */
7847 char XpCreateContext ();
7848 #ifdef F77_DUMMY_MAIN
7852 int F77_DUMMY_MAIN() { return 1; }
7862 rm -f conftest.
$ac_objext conftest
$ac_exeext
7863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864 (eval $ac_link) 2>&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } &&
7868 { ac_try
='test -s conftest$ac_exeext'
7869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); }; }; then
7874 ac_cv_lib_Xp_XpCreateContext
=yes
7876 echo "$as_me: failed program was:" >&5
7877 cat conftest.
$ac_ext >&5
7878 ac_cv_lib_Xp_XpCreateContext
=no
7880 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
7881 LIBS
=$ac_check_lib_save_LIBS
7883 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
7884 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
7885 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
7889 if test ${HAVE_LIBXP} = yes; then
7891 cat >>confdefs.h
<<\_ACEOF
7892 #define HAVE_LIBXP 1
7899 ### Is -lXaw3d available?
7901 if test "${HAVE_X11}" = "yes"; then
7902 if test "${USE_X_TOOLKIT}" != "none"; then
7903 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7904 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7905 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7906 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7909 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
7910 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
7912 # Is the header compilable?
7913 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h usability" >&5
7914 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h usability... $ECHO_C" >&6
7915 cat >conftest.
$ac_ext <<_ACEOF
7916 #line $LINENO "configure"
7917 #include "confdefs.h"
7918 $ac_includes_default
7919 #include <X11/Xaw3d/Scrollbar.h>
7921 rm -f conftest.
$ac_objext
7922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7923 (eval $ac_compile) 2>&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try
='test -s conftest.$ac_objext'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 ac_header_compiler
=yes
7935 echo "$as_me: failed program was:" >&5
7936 cat conftest.
$ac_ext >&5
7937 ac_header_compiler
=no
7939 rm -f conftest.
$ac_objext conftest.
$ac_ext
7940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7941 echo "${ECHO_T}$ac_header_compiler" >&6
7943 # Is the header present?
7944 echo "$as_me:$LINENO: checking X11/Xaw3d/Scrollbar.h presence" >&5
7945 echo $ECHO_N "checking X11/Xaw3d/Scrollbar.h presence... $ECHO_C" >&6
7946 cat >conftest.
$ac_ext <<_ACEOF
7947 #line $LINENO "configure"
7948 #include "confdefs.h"
7949 #include <X11/Xaw3d/Scrollbar.h>
7951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7952 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7954 egrep -v '^ *\+' conftest.er1
>conftest.err
7956 cat conftest.err
>&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } >/dev
/null
; then
7959 if test -s conftest.err
; then
7960 ac_cpp_err
=$ac_c_preproc_warn_flag
7967 if test -z "$ac_cpp_err"; then
7968 ac_header_preproc
=yes
7970 echo "$as_me: failed program was:" >&5
7971 cat conftest.
$ac_ext >&5
7972 ac_header_preproc
=no
7974 rm -f conftest.err conftest.
$ac_ext
7975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7976 echo "${ECHO_T}$ac_header_preproc" >&6
7978 # So? What about this header?
7979 case $ac_header_compiler:$ac_header_preproc in
7981 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&5
7982 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7984 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7986 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&5
7987 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: present but cannot be compiled" >&2;}
7988 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&5
7989 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: check for missing prerequisite headers?" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&5
7991 echo "$as_me: WARNING: X11/Xaw3d/Scrollbar.h: proceeding with the preprocessor's result" >&2;};;
7993 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
7994 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
7995 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 ac_cv_header_X11_Xaw3d_Scrollbar_h
=$ac_header_preproc
8000 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
8001 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
8004 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
8005 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
8006 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
8007 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 ac_check_lib_save_LIBS
=$LIBS
8011 LIBS
="-lXaw3d $LIBS"
8012 cat >conftest.
$ac_ext <<_ACEOF
8013 #line $LINENO "configure"
8014 #include "confdefs.h"
8016 /* Override any gcc2 internal prototype to avoid an error. */
8020 /* We use char because int might match the return type of a gcc2
8021 builtin and then its argument prototype would still apply. */
8022 char XawScrollbarSetThumb ();
8023 #ifdef F77_DUMMY_MAIN
8027 int F77_DUMMY_MAIN() { return 1; }
8032 XawScrollbarSetThumb ();
8037 rm -f conftest.
$ac_objext conftest
$ac_exeext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8039 (eval $ac_link) 2>&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try
='test -s conftest$ac_exeext'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8049 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
8051 echo "$as_me: failed program was:" >&5
8052 cat conftest.
$ac_ext >&5
8053 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
8055 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8056 LIBS
=$ac_check_lib_save_LIBS
8058 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
8059 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
8060 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
8067 if test "${HAVE_XAW3D}" = "yes"; then
8069 cat >>confdefs.h
<<\_ACEOF
8070 #define HAVE_XAW3D 1
8079 USE_TOOLKIT_SCROLL_BARS
=no
8080 if test "${with_toolkit_scroll_bars}" != "no"; then
8081 if test "${USE_X_TOOLKIT}" != "none"; then
8082 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8083 cat >>confdefs.h
<<\_ACEOF
8084 #define USE_TOOLKIT_SCROLL_BARS 1
8088 USE_TOOLKIT_SCROLL_BARS
=yes
8089 elif test "${HAVE_XAW3D}" = "yes"; then
8090 cat >>confdefs.h
<<\_ACEOF
8091 #define USE_TOOLKIT_SCROLL_BARS 1
8094 USE_TOOLKIT_SCROLL_BARS
=yes
8100 if test "${with_xim}" != "no"; then
8102 cat >>confdefs.h
<<\_ACEOF
8108 ### Use -lXpm if available, unless `--with-xpm=no'.
8110 if test "${HAVE_X11}" = "yes"; then
8111 if test "${with_xpm}" != "no"; then
8112 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8113 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8114 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8115 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8118 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8119 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8121 # Is the header compilable?
8122 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
8123 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
8124 cat >conftest.
$ac_ext <<_ACEOF
8125 #line $LINENO "configure"
8126 #include "confdefs.h"
8127 $ac_includes_default
8128 #include <X11/xpm.h>
8130 rm -f conftest.
$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132 (eval $ac_compile) 2>&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
8136 { ac_try
='test -s conftest.$ac_objext'
8137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); }; }; then
8142 ac_header_compiler
=yes
8144 echo "$as_me: failed program was:" >&5
8145 cat conftest.
$ac_ext >&5
8146 ac_header_compiler
=no
8148 rm -f conftest.
$ac_objext conftest.
$ac_ext
8149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8150 echo "${ECHO_T}$ac_header_compiler" >&6
8152 # Is the header present?
8153 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
8154 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
8155 cat >conftest.
$ac_ext <<_ACEOF
8156 #line $LINENO "configure"
8157 #include "confdefs.h"
8158 #include <X11/xpm.h>
8160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8161 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8163 egrep -v '^ *\+' conftest.er1
>conftest.err
8165 cat conftest.err
>&5
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); } >/dev
/null
; then
8168 if test -s conftest.err
; then
8169 ac_cpp_err
=$ac_c_preproc_warn_flag
8176 if test -z "$ac_cpp_err"; then
8177 ac_header_preproc
=yes
8179 echo "$as_me: failed program was:" >&5
8180 cat conftest.
$ac_ext >&5
8181 ac_header_preproc
=no
8183 rm -f conftest.err conftest.
$ac_ext
8184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8185 echo "${ECHO_T}$ac_header_preproc" >&6
8187 # So? What about this header?
8188 case $ac_header_compiler:$ac_header_preproc in
8190 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
8191 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8193 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8195 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
8196 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
8197 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
8198 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
8200 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;};;
8202 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
8203 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
8204 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
8205 echo $ECHO_N "(cached) $ECHO_C" >&6
8207 ac_cv_header_X11_xpm_h
=$ac_header_preproc
8209 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
8210 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
8213 if test $ac_cv_header_X11_xpm_h = yes; then
8214 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
8215 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
8216 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 ac_check_lib_save_LIBS
=$LIBS
8220 LIBS
="-lXpm -lX11 $LIBS"
8221 cat >conftest.
$ac_ext <<_ACEOF
8222 #line $LINENO "configure"
8223 #include "confdefs.h"
8225 /* Override any gcc2 internal prototype to avoid an error. */
8229 /* We use char because int might match the return type of a gcc2
8230 builtin and then its argument prototype would still apply. */
8231 char XpmReadFileToPixmap ();
8232 #ifdef F77_DUMMY_MAIN
8236 int F77_DUMMY_MAIN() { return 1; }
8241 XpmReadFileToPixmap ();
8246 rm -f conftest.
$ac_objext conftest
$ac_exeext
8247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8248 (eval $ac_link) 2>&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try
='test -s conftest$ac_exeext'
8253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); }; }; then
8258 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
8260 echo "$as_me: failed program was:" >&5
8261 cat conftest.
$ac_ext >&5
8262 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
8264 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8265 LIBS
=$ac_check_lib_save_LIBS
8267 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
8268 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
8269 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
8276 if test "${HAVE_XPM}" = "yes"; then
8277 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
8278 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
8279 cat >conftest.
$ac_ext <<_ACEOF
8280 #line $LINENO "configure"
8281 #include "confdefs.h"
8282 #include "X11/xpm.h"
8283 #ifndef XpmReturnAllocPixels
8284 no_return_alloc_pixels
8288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8289 egrep "no_return_alloc_pixels" >/dev
/null
2>&1; then
8297 if test "${HAVE_XPM}" = "yes"; then
8298 echo "$as_me:$LINENO: result: yes" >&5
8299 echo "${ECHO_T}yes" >&6
8301 echo "$as_me:$LINENO: result: no" >&5
8302 echo "${ECHO_T}no" >&6
8307 if test "${HAVE_XPM}" = "yes"; then
8309 cat >>confdefs.h
<<\_ACEOF
8316 ### Use -ljpeg if available, unless `--with-jpeg=no'.
8318 if test "${HAVE_X11}" = "yes"; then
8319 if test "${with_jpeg}" != "no"; then
8320 if test "${ac_cv_header_jerror_h+set}" = set; then
8321 echo "$as_me:$LINENO: checking for jerror.h" >&5
8322 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8323 if test "${ac_cv_header_jerror_h+set}" = set; then
8324 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8327 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8329 # Is the header compilable?
8330 echo "$as_me:$LINENO: checking jerror.h usability" >&5
8331 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
8332 cat >conftest.
$ac_ext <<_ACEOF
8333 #line $LINENO "configure"
8334 #include "confdefs.h"
8335 $ac_includes_default
8338 rm -f conftest.
$ac_objext
8339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8340 (eval $ac_compile) 2>&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try
='test -s conftest.$ac_objext'
8345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_header_compiler
=yes
8352 echo "$as_me: failed program was:" >&5
8353 cat conftest.
$ac_ext >&5
8354 ac_header_compiler
=no
8356 rm -f conftest.
$ac_objext conftest.
$ac_ext
8357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8358 echo "${ECHO_T}$ac_header_compiler" >&6
8360 # Is the header present?
8361 echo "$as_me:$LINENO: checking jerror.h presence" >&5
8362 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
8363 cat >conftest.
$ac_ext <<_ACEOF
8364 #line $LINENO "configure"
8365 #include "confdefs.h"
8368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8369 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8371 egrep -v '^ *\+' conftest.er1
>conftest.err
8373 cat conftest.err
>&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); } >/dev
/null
; then
8376 if test -s conftest.err
; then
8377 ac_cpp_err
=$ac_c_preproc_warn_flag
8384 if test -z "$ac_cpp_err"; then
8385 ac_header_preproc
=yes
8387 echo "$as_me: failed program was:" >&5
8388 cat conftest.
$ac_ext >&5
8389 ac_header_preproc
=no
8391 rm -f conftest.err conftest.
$ac_ext
8392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8393 echo "${ECHO_T}$ac_header_preproc" >&6
8395 # So? What about this header?
8396 case $ac_header_compiler:$ac_header_preproc in
8398 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
8399 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8400 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8401 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8403 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
8404 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
8405 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
8406 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
8408 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;};;
8410 echo "$as_me:$LINENO: checking for jerror.h" >&5
8411 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
8412 if test "${ac_cv_header_jerror_h+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 ac_cv_header_jerror_h
=$ac_header_preproc
8417 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
8418 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
8421 if test $ac_cv_header_jerror_h = yes; then
8422 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
8423 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
8424 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 ac_check_lib_save_LIBS
=$LIBS
8429 cat >conftest.
$ac_ext <<_ACEOF
8430 #line $LINENO "configure"
8431 #include "confdefs.h"
8433 /* Override any gcc2 internal prototype to avoid an error. */
8437 /* We use char because int might match the return type of a gcc2
8438 builtin and then its argument prototype would still apply. */
8439 char jpeg_destroy_compress ();
8440 #ifdef F77_DUMMY_MAIN
8444 int F77_DUMMY_MAIN() { return 1; }
8449 jpeg_destroy_compress ();
8454 rm -f conftest.
$ac_objext conftest
$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try
='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
8468 echo "$as_me: failed program was:" >&5
8469 cat conftest.
$ac_ext >&5
8470 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
8472 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8473 LIBS
=$ac_check_lib_save_LIBS
8475 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
8476 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
8477 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
8487 if test "${HAVE_JPEG}" = "yes"; then
8488 cat >>confdefs.h
<<\_ACEOF
8492 cat >conftest.
$ac_ext <<_ACEOF
8493 #line $LINENO "configure"
8494 #include "confdefs.h"
8495 #include <jpeglib.h>
8496 version=JPEG_LIB_VERSION
8499 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8500 egrep "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
8501 cat >>confdefs.h
<<\_ACEOF
8506 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
8507 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
8515 ### Use -lpng if available, unless `--with-png=no'.
8517 if test "${HAVE_X11}" = "yes"; then
8518 if test "${with_png}" != "no"; then
8519 if test "${ac_cv_header_png_h+set}" = set; then
8520 echo "$as_me:$LINENO: checking for png.h" >&5
8521 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8522 if test "${ac_cv_header_png_h+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8526 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8528 # Is the header compilable?
8529 echo "$as_me:$LINENO: checking png.h usability" >&5
8530 echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
8531 cat >conftest.
$ac_ext <<_ACEOF
8532 #line $LINENO "configure"
8533 #include "confdefs.h"
8534 $ac_includes_default
8537 rm -f conftest.
$ac_objext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8539 (eval $ac_compile) 2>&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } &&
8543 { ac_try
='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_header_compiler
=yes
8551 echo "$as_me: failed program was:" >&5
8552 cat conftest.
$ac_ext >&5
8553 ac_header_compiler
=no
8555 rm -f conftest.
$ac_objext conftest.
$ac_ext
8556 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8557 echo "${ECHO_T}$ac_header_compiler" >&6
8559 # Is the header present?
8560 echo "$as_me:$LINENO: checking png.h presence" >&5
8561 echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
8562 cat >conftest.
$ac_ext <<_ACEOF
8563 #line $LINENO "configure"
8564 #include "confdefs.h"
8567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8568 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8570 egrep -v '^ *\+' conftest.er1
>conftest.err
8572 cat conftest.err
>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } >/dev
/null
; then
8575 if test -s conftest.err
; then
8576 ac_cpp_err
=$ac_c_preproc_warn_flag
8583 if test -z "$ac_cpp_err"; then
8584 ac_header_preproc
=yes
8586 echo "$as_me: failed program was:" >&5
8587 cat conftest.
$ac_ext >&5
8588 ac_header_preproc
=no
8590 rm -f conftest.err conftest.
$ac_ext
8591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8592 echo "${ECHO_T}$ac_header_preproc" >&6
8594 # So? What about this header?
8595 case $ac_header_compiler:$ac_header_preproc in
8597 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
8598 echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8600 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8602 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
8603 echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
8605 echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
8606 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
8607 echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;};;
8609 echo "$as_me:$LINENO: checking for png.h" >&5
8610 echo $ECHO_N "checking for png.h... $ECHO_C" >&6
8611 if test "${ac_cv_header_png_h+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 ac_cv_header_png_h
=$ac_header_preproc
8616 echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
8617 echo "${ECHO_T}$ac_cv_header_png_h" >&6
8620 if test $ac_cv_header_png_h = yes; then
8621 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
8622 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
8623 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
8624 echo $ECHO_N "(cached) $ECHO_C" >&6
8626 ac_check_lib_save_LIBS
=$LIBS
8627 LIBS
="-lpng -lz -lm $LIBS"
8628 cat >conftest.
$ac_ext <<_ACEOF
8629 #line $LINENO "configure"
8630 #include "confdefs.h"
8632 /* Override any gcc2 internal prototype to avoid an error. */
8636 /* We use char because int might match the return type of a gcc2
8637 builtin and then its argument prototype would still apply. */
8638 char png_get_channels ();
8639 #ifdef F77_DUMMY_MAIN
8643 int F77_DUMMY_MAIN() { return 1; }
8648 png_get_channels ();
8653 rm -f conftest.
$ac_objext conftest
$ac_exeext
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } &&
8659 { ac_try
='test -s conftest$ac_exeext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_lib_png_png_get_channels
=yes
8667 echo "$as_me: failed program was:" >&5
8668 cat conftest.
$ac_ext >&5
8669 ac_cv_lib_png_png_get_channels
=no
8671 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8672 LIBS
=$ac_check_lib_save_LIBS
8674 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
8675 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
8676 if test $ac_cv_lib_png_png_get_channels = yes; then
8685 if test "${HAVE_PNG}" = "yes"; then
8687 cat >>confdefs.h
<<\_ACEOF
8694 ### Use -ltiff if available, unless `--with-tiff=no'.
8696 if test "${HAVE_X11}" = "yes"; then
8697 if test "${with_tiff}" != "no"; then
8698 if test "${ac_cv_header_tiffio_h+set}" = set; then
8699 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8700 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8701 if test "${ac_cv_header_tiffio_h+set}" = set; then
8702 echo $ECHO_N "(cached) $ECHO_C" >&6
8704 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8705 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8707 # Is the header compilable?
8708 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
8709 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
8710 cat >conftest.
$ac_ext <<_ACEOF
8711 #line $LINENO "configure"
8712 #include "confdefs.h"
8713 $ac_includes_default
8716 rm -f conftest.
$ac_objext
8717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8718 (eval $ac_compile) 2>&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try
='test -s conftest.$ac_objext'
8723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); }; }; then
8728 ac_header_compiler
=yes
8730 echo "$as_me: failed program was:" >&5
8731 cat conftest.
$ac_ext >&5
8732 ac_header_compiler
=no
8734 rm -f conftest.
$ac_objext conftest.
$ac_ext
8735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8736 echo "${ECHO_T}$ac_header_compiler" >&6
8738 # Is the header present?
8739 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
8740 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
8741 cat >conftest.
$ac_ext <<_ACEOF
8742 #line $LINENO "configure"
8743 #include "confdefs.h"
8746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8747 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8749 egrep -v '^ *\+' conftest.er1
>conftest.err
8751 cat conftest.err
>&5
8752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753 (exit $ac_status); } >/dev
/null
; then
8754 if test -s conftest.err
; then
8755 ac_cpp_err
=$ac_c_preproc_warn_flag
8762 if test -z "$ac_cpp_err"; then
8763 ac_header_preproc
=yes
8765 echo "$as_me: failed program was:" >&5
8766 cat conftest.
$ac_ext >&5
8767 ac_header_preproc
=no
8769 rm -f conftest.err conftest.
$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8771 echo "${ECHO_T}$ac_header_preproc" >&6
8773 # So? What about this header?
8774 case $ac_header_compiler:$ac_header_preproc in
8776 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
8777 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8779 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8781 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
8782 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
8783 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
8784 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
8786 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;};;
8788 echo "$as_me:$LINENO: checking for tiffio.h" >&5
8789 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
8790 if test "${ac_cv_header_tiffio_h+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 ac_cv_header_tiffio_h
=$ac_header_preproc
8795 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
8796 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
8799 if test $ac_cv_header_tiffio_h = yes; then
8801 # At least one tiff package requires the jpeg library.
8802 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
8803 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
8804 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
8805 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 ac_check_lib_save_LIBS
=$LIBS
8809 LIBS
="-ltiff $tifflibs $LIBS"
8810 cat >conftest.
$ac_ext <<_ACEOF
8811 #line $LINENO "configure"
8812 #include "confdefs.h"
8814 /* Override any gcc2 internal prototype to avoid an error. */
8818 /* We use char because int might match the return type of a gcc2
8819 builtin and then its argument prototype would still apply. */
8820 char TIFFGetVersion ();
8821 #ifdef F77_DUMMY_MAIN
8825 int F77_DUMMY_MAIN() { return 1; }
8835 rm -f conftest.
$ac_objext conftest
$ac_exeext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837 (eval $ac_link) 2>&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } &&
8841 { ac_try
='test -s conftest$ac_exeext'
8842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); }; }; then
8847 ac_cv_lib_tiff_TIFFGetVersion
=yes
8849 echo "$as_me: failed program was:" >&5
8850 cat conftest.
$ac_ext >&5
8851 ac_cv_lib_tiff_TIFFGetVersion
=no
8853 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
8854 LIBS
=$ac_check_lib_save_LIBS
8856 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
8857 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
8858 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
8867 if test "${HAVE_TIFF}" = "yes"; then
8869 cat >>confdefs.h
<<\_ACEOF
8876 ### Use -lgif if available, unless `--with-gif=no'.
8878 if test "${HAVE_X11}" = "yes"; then
8879 if test "${with_gif}" != "no"; then
8880 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8881 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8882 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8883 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8887 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8889 # Is the header compilable?
8890 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
8891 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
8892 cat >conftest.
$ac_ext <<_ACEOF
8893 #line $LINENO "configure"
8894 #include "confdefs.h"
8895 $ac_includes_default
8896 #include <gif_lib.h>
8898 rm -f conftest.
$ac_objext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
8904 { ac_try
='test -s conftest.$ac_objext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910 ac_header_compiler
=yes
8912 echo "$as_me: failed program was:" >&5
8913 cat conftest.
$ac_ext >&5
8914 ac_header_compiler
=no
8916 rm -f conftest.
$ac_objext conftest.
$ac_ext
8917 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8918 echo "${ECHO_T}$ac_header_compiler" >&6
8920 # Is the header present?
8921 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
8922 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
8923 cat >conftest.
$ac_ext <<_ACEOF
8924 #line $LINENO "configure"
8925 #include "confdefs.h"
8926 #include <gif_lib.h>
8928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8929 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8931 egrep -v '^ *\+' conftest.er1
>conftest.err
8933 cat conftest.err
>&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } >/dev
/null
; then
8936 if test -s conftest.err
; then
8937 ac_cpp_err
=$ac_c_preproc_warn_flag
8944 if test -z "$ac_cpp_err"; then
8945 ac_header_preproc
=yes
8947 echo "$as_me: failed program was:" >&5
8948 cat conftest.
$ac_ext >&5
8949 ac_header_preproc
=no
8951 rm -f conftest.err conftest.
$ac_ext
8952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8953 echo "${ECHO_T}$ac_header_preproc" >&6
8955 # So? What about this header?
8956 case $ac_header_compiler:$ac_header_preproc in
8958 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
8959 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8960 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8961 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8963 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
8964 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
8965 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
8966 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
8967 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
8968 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;};;
8970 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
8971 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
8972 if test "${ac_cv_header_gif_lib_h+set}" = set; then
8973 echo $ECHO_N "(cached) $ECHO_C" >&6
8975 ac_cv_header_gif_lib_h
=$ac_header_preproc
8977 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
8978 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
8981 if test $ac_cv_header_gif_lib_h = yes; then
8982 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
8983 # Earlier versions can crash Emacs.
8984 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
8985 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
8986 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 ac_check_lib_save_LIBS
=$LIBS
8990 LIBS
="-lungif $LIBS"
8991 cat >conftest.
$ac_ext <<_ACEOF
8992 #line $LINENO "configure"
8993 #include "confdefs.h"
8995 /* Override any gcc2 internal prototype to avoid an error. */
8999 /* We use char because int might match the return type of a gcc2
9000 builtin and then its argument prototype would still apply. */
9001 char EGifPutExtensionLast ();
9002 #ifdef F77_DUMMY_MAIN
9006 int F77_DUMMY_MAIN() { return 1; }
9011 EGifPutExtensionLast ();
9016 rm -f conftest.
$ac_objext conftest
$ac_exeext
9017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9018 (eval $ac_link) 2>&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } &&
9022 { ac_try
='test -s conftest$ac_exeext'
9023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }; }; then
9028 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
9030 echo "$as_me: failed program was:" >&5
9031 cat conftest.
$ac_ext >&5
9032 ac_cv_lib_ungif_EGifPutExtensionLast
=no
9034 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9035 LIBS
=$ac_check_lib_save_LIBS
9037 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9038 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
9039 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9048 if test "${HAVE_GIF}" = "yes"; then
9050 cat >>confdefs.h
<<\_ACEOF
9057 ### Use Mac OS X Carbon API to implement GUI.
9059 if test "${with_carbon}" != "no"; then
9060 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9061 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9062 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9063 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9067 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9069 # Is the header compilable?
9070 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9071 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
9072 cat >conftest.
$ac_ext <<_ACEOF
9073 #line $LINENO "configure"
9074 #include "confdefs.h"
9075 $ac_includes_default
9076 #include <Carbon/Carbon.h>
9078 rm -f conftest.
$ac_objext
9079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9080 (eval $ac_compile) 2>&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); } &&
9084 { ac_try
='test -s conftest.$ac_objext'
9085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 (exit $ac_status); }; }; then
9090 ac_header_compiler
=yes
9092 echo "$as_me: failed program was:" >&5
9093 cat conftest.
$ac_ext >&5
9094 ac_header_compiler
=no
9096 rm -f conftest.
$ac_objext conftest.
$ac_ext
9097 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9098 echo "${ECHO_T}$ac_header_compiler" >&6
9100 # Is the header present?
9101 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9102 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
9103 cat >conftest.
$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9105 #include "confdefs.h"
9106 #include <Carbon/Carbon.h>
9108 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9109 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9111 egrep -v '^ *\+' conftest.er1
>conftest.err
9113 cat conftest.err
>&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } >/dev
/null
; then
9116 if test -s conftest.err
; then
9117 ac_cpp_err
=$ac_c_preproc_warn_flag
9124 if test -z "$ac_cpp_err"; then
9125 ac_header_preproc
=yes
9127 echo "$as_me: failed program was:" >&5
9128 cat conftest.
$ac_ext >&5
9129 ac_header_preproc
=no
9131 rm -f conftest.err conftest.
$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6
9135 # So? What about this header?
9136 case $ac_header_compiler:$ac_header_preproc in
9138 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9141 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9143 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9144 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9145 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9146 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9148 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;};;
9150 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9151 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
9152 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9153 echo $ECHO_N "(cached) $ECHO_C" >&6
9155 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
9157 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9158 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
9161 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9168 if test "${HAVE_CARBON}" = "yes"; then
9170 cat >>confdefs.h
<<\_ACEOF
9171 #define HAVE_CARBON 1
9176 ### Use session management (-lSM -lICE) if available
9178 if test "${HAVE_X11}" = "yes"; then
9179 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9180 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9181 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9182 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9186 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9188 # Is the header compilable?
9189 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
9190 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
9191 cat >conftest.
$ac_ext <<_ACEOF
9192 #line $LINENO "configure"
9193 #include "confdefs.h"
9194 $ac_includes_default
9195 #include <X11/SM/SMlib.h>
9197 rm -f conftest.
$ac_objext
9198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9199 (eval $ac_compile) 2>&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
9203 { ac_try
='test -s conftest.$ac_objext'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
9209 ac_header_compiler
=yes
9211 echo "$as_me: failed program was:" >&5
9212 cat conftest.
$ac_ext >&5
9213 ac_header_compiler
=no
9215 rm -f conftest.
$ac_objext conftest.
$ac_ext
9216 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9217 echo "${ECHO_T}$ac_header_compiler" >&6
9219 # Is the header present?
9220 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
9221 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
9222 cat >conftest.
$ac_ext <<_ACEOF
9223 #line $LINENO "configure"
9224 #include "confdefs.h"
9225 #include <X11/SM/SMlib.h>
9227 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9228 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9230 egrep -v '^ *\+' conftest.er1
>conftest.err
9232 cat conftest.err
>&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } >/dev
/null
; then
9235 if test -s conftest.err
; then
9236 ac_cpp_err
=$ac_c_preproc_warn_flag
9243 if test -z "$ac_cpp_err"; then
9244 ac_header_preproc
=yes
9246 echo "$as_me: failed program was:" >&5
9247 cat conftest.
$ac_ext >&5
9248 ac_header_preproc
=no
9250 rm -f conftest.err conftest.
$ac_ext
9251 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9252 echo "${ECHO_T}$ac_header_preproc" >&6
9254 # So? What about this header?
9255 case $ac_header_compiler:$ac_header_preproc in
9257 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
9258 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9259 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9260 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9262 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
9263 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
9265 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
9266 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
9267 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;};;
9269 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
9270 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
9271 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
9276 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
9277 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
9280 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
9281 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
9282 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
9283 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 ac_check_lib_save_LIBS
=$LIBS
9288 cat >conftest.
$ac_ext <<_ACEOF
9289 #line $LINENO "configure"
9290 #include "confdefs.h"
9292 /* Override any gcc2 internal prototype to avoid an error. */
9296 /* We use char because int might match the return type of a gcc2
9297 builtin and then its argument prototype would still apply. */
9298 char SmcOpenConnection ();
9299 #ifdef F77_DUMMY_MAIN
9303 int F77_DUMMY_MAIN() { return 1; }
9308 SmcOpenConnection ();
9313 rm -f conftest.
$ac_objext conftest
$ac_exeext
9314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9315 (eval $ac_link) 2>&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } &&
9319 { ac_try
='test -s conftest$ac_exeext'
9320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); }; }; then
9325 ac_cv_lib_SM_SmcOpenConnection
=yes
9327 echo "$as_me: failed program was:" >&5
9328 cat conftest.
$ac_ext >&5
9329 ac_cv_lib_SM_SmcOpenConnection
=no
9331 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9332 LIBS
=$ac_check_lib_save_LIBS
9334 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
9335 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
9336 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
9346 if test "${HAVE_X_SM}" = "yes"; then
9348 cat >>confdefs.h
<<\_ACEOF
9354 *) LIBS
="-lSM -lICE $LIBS" ;;
9359 # If netdb.h doesn't declare h_errno, we must declare it by hand.
9360 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
9361 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
9362 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 cat >conftest.
$ac_ext <<_ACEOF
9366 #line $LINENO "configure"
9367 #include "confdefs.h"
9369 #ifdef F77_DUMMY_MAIN
9373 int F77_DUMMY_MAIN() { return 1; }
9383 rm -f conftest.
$ac_objext conftest
$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try
='test -s conftest$ac_exeext'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
9395 emacs_cv_netdb_declares_h_errno
=yes
9397 echo "$as_me: failed program was:" >&5
9398 cat conftest.
$ac_ext >&5
9399 emacs_cv_netdb_declares_h_errno
=no
9401 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9403 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
9404 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
9405 if test $emacs_cv_netdb_declares_h_errno = yes; then
9407 cat >>confdefs.h
<<\_ACEOF
9408 #define HAVE_H_ERRNO 1
9413 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9414 # for constant arguments. Useless!
9415 echo "$as_me:$LINENO: checking for working alloca.h" >&5
9416 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
9417 if test "${ac_cv_working_alloca_h+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 cat >conftest.
$ac_ext <<_ACEOF
9421 #line $LINENO "configure"
9422 #include "confdefs.h"
9424 #ifdef F77_DUMMY_MAIN
9428 int F77_DUMMY_MAIN() { return 1; }
9433 char *p = (char *) alloca (2 * sizeof (int));
9438 rm -f conftest.
$ac_objext conftest
$ac_exeext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9440 (eval $ac_link) 2>&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } &&
9444 { ac_try
='test -s conftest$ac_exeext'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; }; then
9450 ac_cv_working_alloca_h
=yes
9452 echo "$as_me: failed program was:" >&5
9453 cat conftest.
$ac_ext >&5
9454 ac_cv_working_alloca_h
=no
9456 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9458 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9459 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
9460 if test $ac_cv_working_alloca_h = yes; then
9462 cat >>confdefs.h
<<\_ACEOF
9463 #define HAVE_ALLOCA_H 1
9468 echo "$as_me:$LINENO: checking for alloca" >&5
9469 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
9470 if test "${ac_cv_func_alloca_works+set}" = set; then
9471 echo $ECHO_N "(cached) $ECHO_C" >&6
9473 cat >conftest.
$ac_ext <<_ACEOF
9474 #line $LINENO "configure"
9475 #include "confdefs.h"
9477 # define alloca __builtin_alloca
9480 # include <malloc.h>
9481 # define alloca _alloca
9484 # include <alloca.h>
9489 # ifndef alloca /* predefined by HP cc +Olibcalls */
9497 #ifdef F77_DUMMY_MAIN
9501 int F77_DUMMY_MAIN() { return 1; }
9506 char *p = (char *) alloca (1);
9511 rm -f conftest.
$ac_objext conftest
$ac_exeext
9512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9513 (eval $ac_link) 2>&5
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); } &&
9517 { ac_try
='test -s conftest$ac_exeext'
9518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); }; }; then
9523 ac_cv_func_alloca_works
=yes
9525 echo "$as_me: failed program was:" >&5
9526 cat conftest.
$ac_ext >&5
9527 ac_cv_func_alloca_works
=no
9529 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9531 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9532 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
9534 if test $ac_cv_func_alloca_works = yes; then
9536 cat >>confdefs.h
<<\_ACEOF
9537 #define HAVE_ALLOCA 1
9541 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9542 # that cause trouble. Some versions do not even contain alloca or
9543 # contain a buggy version. If you still want to use their alloca,
9544 # use ar to extract alloca.o from them instead of compiling alloca.c.
9546 ALLOCA
=alloca.
$ac_objext
9548 cat >>confdefs.h
<<\_ACEOF
9553 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9554 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
9555 if test "${ac_cv_os_cray+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9558 cat >conftest.
$ac_ext <<_ACEOF
9559 #line $LINENO "configure"
9560 #include "confdefs.h"
9561 #if defined(CRAY) && ! defined(CRAY2)
9568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9569 egrep "webecray" >/dev
/null
2>&1; then
9577 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9578 echo "${ECHO_T}$ac_cv_os_cray" >&6
9579 if test $ac_cv_os_cray = yes; then
9580 for ac_func
in _getb67 GETB67 getb67
; do
9581 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9582 echo "$as_me:$LINENO: checking for $ac_func" >&5
9583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9584 if eval "test \"\${$as_ac_var+set}\" = set"; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9587 cat >conftest.
$ac_ext <<_ACEOF
9588 #line $LINENO "configure"
9589 #include "confdefs.h"
9590 /* System header to define __stub macros and hopefully few prototypes,
9591 which can conflict with char $ac_func (); below. */
9593 /* Override any gcc2 internal prototype to avoid an error. */
9597 /* We use char because int might match the return type of a gcc2
9598 builtin and then its argument prototype would still apply. */
9602 #ifdef F77_DUMMY_MAIN
9606 int F77_DUMMY_MAIN() { return 1; }
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9624 rm -f conftest.
$ac_objext conftest
$ac_exeext
9625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9626 (eval $ac_link) 2>&5
9628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } &&
9630 { ac_try
='test -s conftest$ac_exeext'
9631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); }; }; then
9636 eval "$as_ac_var=yes"
9638 echo "$as_me: failed program was:" >&5
9639 cat conftest.
$ac_ext >&5
9640 eval "$as_ac_var=no"
9642 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9645 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9646 if test `eval echo '${'$as_ac_var'}'` = yes; then
9648 cat >>confdefs.h
<<_ACEOF
9649 #define CRAY_STACKSEG_END $ac_func
9658 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9659 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
9660 if test "${ac_cv_c_stack_direction+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 if test "$cross_compiling" = yes; then
9664 ac_cv_c_stack_direction
=0
9666 cat >conftest.
$ac_ext <<_ACEOF
9667 #line $LINENO "configure"
9668 #include "confdefs.h"
9670 find_stack_direction ()
9672 static char *addr = 0;
9677 return find_stack_direction ();
9680 return (&dummy > addr) ? 1 : -1;
9686 exit (find_stack_direction () < 0);
9689 rm -f conftest
$ac_exeext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9691 (eval $ac_link) 2>&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; }; then
9700 ac_cv_c_stack_direction
=1
9702 echo "$as_me: program exited with status $ac_status" >&5
9703 echo "$as_me: failed program was:" >&5
9704 cat conftest.
$ac_ext >&5
9706 ac_cv_c_stack_direction
=-1
9708 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9711 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9712 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
9714 cat >>confdefs.h
<<_ACEOF
9715 #define STACK_DIRECTION $ac_cv_c_stack_direction
9722 # fmod, logb, and frexp are found in -lm on most systems.
9723 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
9725 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
9726 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
9727 if test "${ac_cv_lib_m_sqrt+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 ac_check_lib_save_LIBS
=$LIBS
9732 cat >conftest.
$ac_ext <<_ACEOF
9733 #line $LINENO "configure"
9734 #include "confdefs.h"
9736 /* Override any gcc2 internal prototype to avoid an error. */
9740 /* We use char because int might match the return type of a gcc2
9741 builtin and then its argument prototype would still apply. */
9743 #ifdef F77_DUMMY_MAIN
9747 int F77_DUMMY_MAIN() { return 1; }
9757 rm -f conftest.
$ac_objext conftest
$ac_exeext
9758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759 (eval $ac_link) 2>&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try
='test -s conftest$ac_exeext'
9764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); }; }; then
9769 ac_cv_lib_m_sqrt
=yes
9771 echo "$as_me: failed program was:" >&5
9772 cat conftest.
$ac_ext >&5
9775 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9776 LIBS
=$ac_check_lib_save_LIBS
9778 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
9779 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
9780 if test $ac_cv_lib_m_sqrt = yes; then
9781 cat >>confdefs.h
<<_ACEOF
9790 # Check for mail-locking functions in a "mail" library
9792 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
9793 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
9794 if test "${ac_cv_lib_mail_maillock+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 ac_check_lib_save_LIBS
=$LIBS
9799 cat >conftest.
$ac_ext <<_ACEOF
9800 #line $LINENO "configure"
9801 #include "confdefs.h"
9803 /* Override any gcc2 internal prototype to avoid an error. */
9807 /* We use char because int might match the return type of a gcc2
9808 builtin and then its argument prototype would still apply. */
9810 #ifdef F77_DUMMY_MAIN
9814 int F77_DUMMY_MAIN() { return 1; }
9824 rm -f conftest.
$ac_objext conftest
$ac_exeext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9826 (eval $ac_link) 2>&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } &&
9830 { ac_try
='test -s conftest$ac_exeext'
9831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 ac_cv_lib_mail_maillock
=yes
9838 echo "$as_me: failed program was:" >&5
9839 cat conftest.
$ac_ext >&5
9840 ac_cv_lib_mail_maillock
=no
9842 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9843 LIBS
=$ac_check_lib_save_LIBS
9845 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
9846 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
9847 if test $ac_cv_lib_mail_maillock = yes; then
9848 cat >>confdefs.h
<<_ACEOF
9849 #define HAVE_LIBMAIL 1
9857 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
9858 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
9859 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 ac_check_lib_save_LIBS
=$LIBS
9863 LIBS
="-llockfile $LIBS"
9864 cat >conftest.
$ac_ext <<_ACEOF
9865 #line $LINENO "configure"
9866 #include "confdefs.h"
9868 /* Override any gcc2 internal prototype to avoid an error. */
9872 /* We use char because int might match the return type of a gcc2
9873 builtin and then its argument prototype would still apply. */
9875 #ifdef F77_DUMMY_MAIN
9879 int F77_DUMMY_MAIN() { return 1; }
9889 rm -f conftest.
$ac_objext conftest
$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891 (eval $ac_link) 2>&5
9893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } &&
9895 { ac_try
='test -s conftest$ac_exeext'
9896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); }; }; then
9901 ac_cv_lib_lockfile_maillock
=yes
9903 echo "$as_me: failed program was:" >&5
9904 cat conftest.
$ac_ext >&5
9905 ac_cv_lib_lockfile_maillock
=no
9907 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
9908 LIBS
=$ac_check_lib_save_LIBS
9910 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
9911 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
9912 if test $ac_cv_lib_lockfile_maillock = yes; then
9913 cat >>confdefs.h
<<_ACEOF
9914 #define HAVE_LIBLOCKFILE 1
9917 LIBS
="-llockfile $LIBS"
9921 # If we have the shared liblockfile, assume we must use it for mail
9922 # locking (e.g. Debian). If we couldn't link against liblockfile
9923 # (no liblockfile.a installed), ensure that we don't need to.
9924 if test "$ac_cv_lib_lockfile_maillock" = no
; then
9925 # Extract the first word of "liblockfile.so", so it can be a program name with args.
9926 set dummy liblockfile.so
; ac_word
=$2
9927 echo "$as_me:$LINENO: checking for $ac_word" >&5
9928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9929 if test "${ac_cv_prog_liblockfile+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 if test -n "$liblockfile"; then
9933 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
9935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9936 for as_dir
in /usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH
9939 test -z "$as_dir" && as_dir
=.
9940 for ac_exec_ext
in '' $ac_executable_extensions; do
9941 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9942 ac_cv_prog_liblockfile
="yes"
9943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9949 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
9952 liblockfile
=$ac_cv_prog_liblockfile
9953 if test -n "$liblockfile"; then
9954 echo "$as_me:$LINENO: result: $liblockfile" >&5
9955 echo "${ECHO_T}$liblockfile" >&6
9957 echo "$as_me:$LINENO: result: no" >&5
9958 echo "${ECHO_T}no" >&6
9961 if test $ac_cv_prog_liblockfile = yes; then
9962 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
9963 This probably means that movemail could lose mail.
9964 There may be a \`development' package to install containing liblockfile." >&5
9965 echo "$as_me: error: Shared liblockfile found but can't link against it.
9966 This probably means that movemail could lose mail.
9967 There may be a \`development' package to install containing liblockfile." >&2;}
9968 { (exit 1); exit 1; }; }
9970 cat >>confdefs.h
<<\_ACEOF
9971 #define LIBMAIL -llockfile
9978 for ac_func
in touchlock
9980 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9981 echo "$as_me:$LINENO: checking for $ac_func" >&5
9982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9983 if eval "test \"\${$as_ac_var+set}\" = set"; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 cat >conftest.
$ac_ext <<_ACEOF
9987 #line $LINENO "configure"
9988 #include "confdefs.h"
9989 /* System header to define __stub macros and hopefully few prototypes,
9990 which can conflict with char $ac_func (); below. */
9992 /* Override any gcc2 internal prototype to avoid an error. */
9996 /* We use char because int might match the return type of a gcc2
9997 builtin and then its argument prototype would still apply. */
10001 #ifdef F77_DUMMY_MAIN
10002 # ifdef __cplusplus
10005 int F77_DUMMY_MAIN() { return 1; }
10010 /* The GNU C library defines this for functions which it implements
10011 to always fail with ENOSYS. Some functions are actually named
10012 something starting with __ and the normal name is an alias. */
10013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10023 rm -f conftest.
$ac_objext conftest
$ac_exeext
10024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10025 (eval $ac_link) 2>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); } &&
10029 { ac_try
='test -s conftest$ac_exeext'
10030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10031 (eval $ac_try) 2>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); }; }; then
10035 eval "$as_ac_var=yes"
10037 echo "$as_me: failed program was:" >&5
10038 cat conftest.
$ac_ext >&5
10039 eval "$as_ac_var=no"
10041 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10045 if test `eval echo '${'$as_ac_var'}'` = yes; then
10046 cat >>confdefs.h
<<_ACEOF
10047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10054 for ac_header
in maillock.h
10056 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10057 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10058 echo "$as_me:$LINENO: checking for $ac_header" >&5
10059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10064 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10066 # Is the header compilable?
10067 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10069 cat >conftest.
$ac_ext <<_ACEOF
10070 #line $LINENO "configure"
10071 #include "confdefs.h"
10072 $ac_includes_default
10073 #include <$ac_header>
10075 rm -f conftest.
$ac_objext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10077 (eval $ac_compile) 2>&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } &&
10081 { ac_try
='test -s conftest.$ac_objext'
10082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10083 (eval $ac_try) 2>&5
10085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086 (exit $ac_status); }; }; then
10087 ac_header_compiler
=yes
10089 echo "$as_me: failed program was:" >&5
10090 cat conftest.
$ac_ext >&5
10091 ac_header_compiler
=no
10093 rm -f conftest.
$ac_objext conftest.
$ac_ext
10094 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10095 echo "${ECHO_T}$ac_header_compiler" >&6
10097 # Is the header present?
10098 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10100 cat >conftest.
$ac_ext <<_ACEOF
10101 #line $LINENO "configure"
10102 #include "confdefs.h"
10103 #include <$ac_header>
10105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10106 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10108 egrep -v '^ *\+' conftest.er1
>conftest.err
10110 cat conftest.err
>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); } >/dev
/null
; then
10113 if test -s conftest.err
; then
10114 ac_cpp_err
=$ac_c_preproc_warn_flag
10121 if test -z "$ac_cpp_err"; then
10122 ac_header_preproc
=yes
10124 echo "$as_me: failed program was:" >&5
10125 cat conftest.
$ac_ext >&5
10126 ac_header_preproc
=no
10128 rm -f conftest.err conftest.
$ac_ext
10129 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10130 echo "${ECHO_T}$ac_header_preproc" >&6
10132 # So? What about this header?
10133 case $ac_header_compiler:$ac_header_preproc in
10135 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10136 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10147 echo "$as_me:$LINENO: checking for $ac_header" >&5
10148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 eval "$as_ac_Header=$ac_header_preproc"
10154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10159 cat >>confdefs.h
<<_ACEOF
10160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10223 for ac_func
in gethostname getdomainname dup2 \
10224 rename closedir mkdir
rmdir sysinfo \
10225 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
10226 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
10227 utimes setrlimit setpgid getcwd getwd shutdown strftime getaddrinfo \
10228 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10229 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10230 gai_strerror mkstemp getline getdelim
10232 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10233 echo "$as_me:$LINENO: checking for $ac_func" >&5
10234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10235 if eval "test \"\${$as_ac_var+set}\" = set"; then
10236 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 cat >conftest.
$ac_ext <<_ACEOF
10239 #line $LINENO "configure"
10240 #include "confdefs.h"
10241 /* System header to define __stub macros and hopefully few prototypes,
10242 which can conflict with char $ac_func (); below. */
10243 #include <assert.h>
10244 /* Override any gcc2 internal prototype to avoid an error. */
10248 /* We use char because int might match the return type of a gcc2
10249 builtin and then its argument prototype would still apply. */
10253 #ifdef F77_DUMMY_MAIN
10254 # ifdef __cplusplus
10257 int F77_DUMMY_MAIN() { return 1; }
10262 /* The GNU C library defines this for functions which it implements
10263 to always fail with ENOSYS. Some functions are actually named
10264 something starting with __ and the normal name is an alias. */
10265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10275 rm -f conftest.
$ac_objext conftest
$ac_exeext
10276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10277 (eval $ac_link) 2>&5
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); } &&
10281 { ac_try
='test -s conftest$ac_exeext'
10282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283 (eval $ac_try) 2>&5
10285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286 (exit $ac_status); }; }; then
10287 eval "$as_ac_var=yes"
10289 echo "$as_me: failed program was:" >&5
10290 cat conftest.
$ac_ext >&5
10291 eval "$as_ac_var=no"
10293 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10297 if test `eval echo '${'$as_ac_var'}'` = yes; then
10298 cat >>confdefs.h
<<_ACEOF
10299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10307 for ac_header
in sys
/un.h
10309 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10311 echo "$as_me:$LINENO: checking for $ac_header" >&5
10312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10314 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10319 # Is the header compilable?
10320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10322 cat >conftest.
$ac_ext <<_ACEOF
10323 #line $LINENO "configure"
10324 #include "confdefs.h"
10325 $ac_includes_default
10326 #include <$ac_header>
10328 rm -f conftest.
$ac_objext
10329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10330 (eval $ac_compile) 2>&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } &&
10334 { ac_try
='test -s conftest.$ac_objext'
10335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10336 (eval $ac_try) 2>&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }; }; then
10340 ac_header_compiler
=yes
10342 echo "$as_me: failed program was:" >&5
10343 cat conftest.
$ac_ext >&5
10344 ac_header_compiler
=no
10346 rm -f conftest.
$ac_objext conftest.
$ac_ext
10347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10348 echo "${ECHO_T}$ac_header_compiler" >&6
10350 # Is the header present?
10351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10353 cat >conftest.
$ac_ext <<_ACEOF
10354 #line $LINENO "configure"
10355 #include "confdefs.h"
10356 #include <$ac_header>
10358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10359 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10361 egrep -v '^ *\+' conftest.er1
>conftest.err
10363 cat conftest.err
>&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } >/dev
/null
; then
10366 if test -s conftest.err
; then
10367 ac_cpp_err
=$ac_c_preproc_warn_flag
10374 if test -z "$ac_cpp_err"; then
10375 ac_header_preproc
=yes
10377 echo "$as_me: failed program was:" >&5
10378 cat conftest.
$ac_ext >&5
10379 ac_header_preproc
=no
10381 rm -f conftest.err conftest.
$ac_ext
10382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10383 echo "${ECHO_T}$ac_header_preproc" >&6
10385 # So? What about this header?
10386 case $ac_header_compiler:$ac_header_preproc in
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10394 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10396 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10400 echo "$as_me:$LINENO: checking for $ac_header" >&5
10401 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 eval "$as_ac_Header=$ac_header_preproc"
10407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10411 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10412 cat >>confdefs.h
<<_ACEOF
10413 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10423 for ac_header
in sys
/time.h unistd.h
10425 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10427 echo "$as_me:$LINENO: checking for $ac_header" >&5
10428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10430 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10435 # Is the header compilable?
10436 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10437 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10438 cat >conftest.
$ac_ext <<_ACEOF
10439 #line $LINENO "configure"
10440 #include "confdefs.h"
10441 $ac_includes_default
10442 #include <$ac_header>
10444 rm -f conftest.
$ac_objext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446 (eval $ac_compile) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try
='test -s conftest.$ac_objext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_header_compiler
=yes
10458 echo "$as_me: failed program was:" >&5
10459 cat conftest.
$ac_ext >&5
10460 ac_header_compiler
=no
10462 rm -f conftest.
$ac_objext conftest.
$ac_ext
10463 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10464 echo "${ECHO_T}$ac_header_compiler" >&6
10466 # Is the header present?
10467 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10469 cat >conftest.
$ac_ext <<_ACEOF
10470 #line $LINENO "configure"
10471 #include "confdefs.h"
10472 #include <$ac_header>
10474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10475 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10477 egrep -v '^ *\+' conftest.er1
>conftest.err
10479 cat conftest.err
>&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } >/dev
/null
; then
10482 if test -s conftest.err
; then
10483 ac_cpp_err
=$ac_c_preproc_warn_flag
10490 if test -z "$ac_cpp_err"; then
10491 ac_header_preproc
=yes
10493 echo "$as_me: failed program was:" >&5
10494 cat conftest.
$ac_ext >&5
10495 ac_header_preproc
=no
10497 rm -f conftest.err conftest.
$ac_ext
10498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10499 echo "${ECHO_T}$ac_header_preproc" >&6
10501 # So? What about this header?
10502 case $ac_header_compiler:$ac_header_preproc in
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10516 echo "$as_me:$LINENO: checking for $ac_header" >&5
10517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10521 eval "$as_ac_Header=$ac_header_preproc"
10523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10528 cat >>confdefs.h
<<_ACEOF
10529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10537 for ac_func
in alarm
10539 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10540 echo "$as_me:$LINENO: checking for $ac_func" >&5
10541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10542 if eval "test \"\${$as_ac_var+set}\" = set"; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10545 cat >conftest.
$ac_ext <<_ACEOF
10546 #line $LINENO "configure"
10547 #include "confdefs.h"
10548 /* System header to define __stub macros and hopefully few prototypes,
10549 which can conflict with char $ac_func (); below. */
10550 #include <assert.h>
10551 /* Override any gcc2 internal prototype to avoid an error. */
10555 /* We use char because int might match the return type of a gcc2
10556 builtin and then its argument prototype would still apply. */
10560 #ifdef F77_DUMMY_MAIN
10561 # ifdef __cplusplus
10564 int F77_DUMMY_MAIN() { return 1; }
10569 /* The GNU C library defines this for functions which it implements
10570 to always fail with ENOSYS. Some functions are actually named
10571 something starting with __ and the normal name is an alias. */
10572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10582 rm -f conftest.
$ac_objext conftest
$ac_exeext
10583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10584 (eval $ac_link) 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } &&
10588 { ac_try
='test -s conftest$ac_exeext'
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; }; then
10594 eval "$as_ac_var=yes"
10596 echo "$as_me: failed program was:" >&5
10597 cat conftest.
$ac_ext >&5
10598 eval "$as_ac_var=no"
10600 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10603 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10604 if test `eval echo '${'$as_ac_var'}'` = yes; then
10605 cat >>confdefs.h
<<_ACEOF
10606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10612 echo "$as_me:$LINENO: checking for working mktime" >&5
10613 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10614 if test "${ac_cv_func_working_mktime+set}" = set; then
10615 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 if test "$cross_compiling" = yes; then
10618 ac_cv_func_working_mktime
=no
10620 cat >conftest.
$ac_ext <<_ACEOF
10621 #line $LINENO "configure"
10622 #include "confdefs.h"
10623 /* Test program from Paul Eggert and Tony Leneis. */
10624 #if TIME_WITH_SYS_TIME
10625 # include <sys/time.h>
10628 # if HAVE_SYS_TIME_H
10629 # include <sys/time.h>
10636 # include <unistd.h>
10640 # define alarm(X) /* empty */
10643 /* Work around redefinition to rpl_putenv by other config tests. */
10646 static time_t time_t_max;
10648 /* Values we'll use to set the TZ environment variable. */
10649 static const char *const tz_strings[] = {
10650 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
10651 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10653 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10655 /* Fail if mktime fails to convert a date in the spring-forward gap.
10656 Based on a problem report from Andreas Jaeger. */
10658 spring_forward_gap ()
10660 /* glibc (up to about 1998-10-07) failed this test. */
10663 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10664 instead of "TZ=America/Vancouver" in order to detect the bug even
10665 on systems that don't support the Olson extension, or don't have the
10666 full zoneinfo tables installed. */
10667 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10676 if (mktime (&tm) == (time_t)-1)
10685 if ((lt = localtime (&now)) && mktime (lt) != now)
10687 now = time_t_max - now;
10688 if ((lt = localtime (&now)) && mktime (lt) != now)
10695 /* Based on code from Ariel Faigon. */
10705 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10715 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10716 now = mktime (&tm);
10717 if (now != (time_t) -1)
10719 struct tm *lt = localtime (&now);
10721 && lt->tm_year == tm.tm_year
10722 && lt->tm_mon == tm.tm_mon
10723 && lt->tm_mday == tm.tm_mday
10724 && lt->tm_hour == tm.tm_hour
10725 && lt->tm_min == tm.tm_min
10726 && lt->tm_sec == tm.tm_sec
10727 && lt->tm_yday == tm.tm_yday
10728 && lt->tm_wday == tm.tm_wday
10729 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10730 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10741 /* This test makes some buggy mktime implementations loop.
10742 Give up after 60 seconds; a mktime slower than that
10743 isn't worth using anyway. */
10746 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10749 delta = time_t_max / 997; /* a suitable prime number */
10750 for (i = 0; i < N_STRINGS; i++)
10753 putenv (tz_strings[i]);
10755 for (t = 0; t <= time_t_max - delta; t += delta)
10757 mktime_test ((time_t) 60 * 60);
10758 mktime_test ((time_t) 60 * 60 * 24);
10760 for (j = 1; 0 < j; j *= 2)
10762 bigtime_test (j - 1);
10765 spring_forward_gap ();
10769 rm -f conftest
$ac_exeext
10770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10771 (eval $ac_link) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; }; then
10780 ac_cv_func_working_mktime
=yes
10782 echo "$as_me: program exited with status $ac_status" >&5
10783 echo "$as_me: failed program was:" >&5
10784 cat conftest.
$ac_ext >&5
10785 ( exit $ac_status )
10786 ac_cv_func_working_mktime
=no
10788 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10791 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10792 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
10793 if test $ac_cv_func_working_mktime = no
; then
10794 LIBOBJS
="$LIBOBJS mktime.$ac_objext"
10797 if test "$ac_cv_func_working_mktime" = no
; then
10799 cat >>confdefs.h
<<\_ACEOF
10800 #define BROKEN_MKTIME 1
10805 ac_have_func
=no
# yes means we've found a way to get the load average.
10809 # Check for getloadavg, but be sure not to touch the cache variable.
10810 (echo "$as_me:$LINENO: checking for getloadavg" >&5
10811 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
10812 if test "${ac_cv_func_getloadavg+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 cat >conftest.
$ac_ext <<_ACEOF
10816 #line $LINENO "configure"
10817 #include "confdefs.h"
10818 /* System header to define __stub macros and hopefully few prototypes,
10819 which can conflict with char getloadavg (); below. */
10820 #include <assert.h>
10821 /* Override any gcc2 internal prototype to avoid an error. */
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10827 char getloadavg ();
10830 #ifdef F77_DUMMY_MAIN
10831 # ifdef __cplusplus
10834 int F77_DUMMY_MAIN() { return 1; }
10839 /* The GNU C library defines this for functions which it implements
10840 to always fail with ENOSYS. Some functions are actually named
10841 something starting with __ and the normal name is an alias. */
10842 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
10852 rm -f conftest.
$ac_objext conftest
$ac_exeext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10854 (eval $ac_link) 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try
='test -s conftest$ac_exeext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ac_cv_func_getloadavg
=yes
10866 echo "$as_me: failed program was:" >&5
10867 cat conftest.
$ac_ext >&5
10868 ac_cv_func_getloadavg
=no
10870 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10872 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
10873 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
10874 if test $ac_cv_func_getloadavg = yes; then
10879 ) && ac_have_func
=yes
10881 # On HPUX9, an unprivileged user can get load averages through this function.
10883 for ac_func
in pstat_getdynamic
10885 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10886 echo "$as_me:$LINENO: checking for $ac_func" >&5
10887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10888 if eval "test \"\${$as_ac_var+set}\" = set"; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 cat >conftest.
$ac_ext <<_ACEOF
10892 #line $LINENO "configure"
10893 #include "confdefs.h"
10894 /* System header to define __stub macros and hopefully few prototypes,
10895 which can conflict with char $ac_func (); below. */
10896 #include <assert.h>
10897 /* Override any gcc2 internal prototype to avoid an error. */
10901 /* We use char because int might match the return type of a gcc2
10902 builtin and then its argument prototype would still apply. */
10906 #ifdef F77_DUMMY_MAIN
10907 # ifdef __cplusplus
10910 int F77_DUMMY_MAIN() { return 1; }
10915 /* The GNU C library defines this for functions which it implements
10916 to always fail with ENOSYS. Some functions are actually named
10917 something starting with __ and the normal name is an alias. */
10918 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10928 rm -f conftest.
$ac_objext conftest
$ac_exeext
10929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10930 (eval $ac_link) 2>&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } &&
10934 { ac_try
='test -s conftest$ac_exeext'
10935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10936 (eval $ac_try) 2>&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); }; }; then
10940 eval "$as_ac_var=yes"
10942 echo "$as_me: failed program was:" >&5
10943 cat conftest.
$ac_ext >&5
10944 eval "$as_ac_var=no"
10946 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
10948 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10949 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10950 if test `eval echo '${'$as_ac_var'}'` = yes; then
10951 cat >>confdefs.h
<<_ACEOF
10952 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10959 # Solaris has libkstat which does not require root.
10961 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10962 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
10963 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 ac_check_lib_save_LIBS
=$LIBS
10967 LIBS
="-lkstat $LIBS"
10968 cat >conftest.
$ac_ext <<_ACEOF
10969 #line $LINENO "configure"
10970 #include "confdefs.h"
10972 /* Override any gcc2 internal prototype to avoid an error. */
10976 /* We use char because int might match the return type of a gcc2
10977 builtin and then its argument prototype would still apply. */
10978 char kstat_open ();
10979 #ifdef F77_DUMMY_MAIN
10980 # ifdef __cplusplus
10983 int F77_DUMMY_MAIN() { return 1; }
10993 rm -f conftest.
$ac_objext conftest
$ac_exeext
10994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10995 (eval $ac_link) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } &&
10999 { ac_try
='test -s conftest$ac_exeext'
11000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11001 (eval $ac_try) 2>&5
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); }; }; then
11005 ac_cv_lib_kstat_kstat_open
=yes
11007 echo "$as_me: failed program was:" >&5
11008 cat conftest.
$ac_ext >&5
11009 ac_cv_lib_kstat_kstat_open
=no
11011 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11012 LIBS
=$ac_check_lib_save_LIBS
11014 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11015 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
11016 if test $ac_cv_lib_kstat_kstat_open = yes; then
11017 cat >>confdefs.h
<<_ACEOF
11018 #define HAVE_LIBKSTAT 1
11021 LIBS
="-lkstat $LIBS"
11025 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
11027 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11028 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11029 # to get the right answer into the cache.
11030 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11031 if test $ac_have_func = no
; then
11032 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11033 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
11034 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 ac_check_lib_save_LIBS
=$LIBS
11039 cat >conftest.
$ac_ext <<_ACEOF
11040 #line $LINENO "configure"
11041 #include "confdefs.h"
11043 /* Override any gcc2 internal prototype to avoid an error. */
11047 /* We use char because int might match the return type of a gcc2
11048 builtin and then its argument prototype would still apply. */
11050 #ifdef F77_DUMMY_MAIN
11051 # ifdef __cplusplus
11054 int F77_DUMMY_MAIN() { return 1; }
11064 rm -f conftest.
$ac_objext conftest
$ac_exeext
11065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11066 (eval $ac_link) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } &&
11070 { ac_try
='test -s conftest$ac_exeext'
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }; then
11076 ac_cv_lib_elf_elf_begin
=yes
11078 echo "$as_me: failed program was:" >&5
11079 cat conftest.
$ac_ext >&5
11080 ac_cv_lib_elf_elf_begin
=no
11082 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11083 LIBS
=$ac_check_lib_save_LIBS
11085 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11086 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
11087 if test $ac_cv_lib_elf_elf_begin = yes; then
11092 if test $ac_have_func = no
; then
11093 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11094 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
11095 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 ac_check_lib_save_LIBS
=$LIBS
11100 cat >conftest.
$ac_ext <<_ACEOF
11101 #line $LINENO "configure"
11102 #include "confdefs.h"
11104 /* Override any gcc2 internal prototype to avoid an error. */
11108 /* We use char because int might match the return type of a gcc2
11109 builtin and then its argument prototype would still apply. */
11111 #ifdef F77_DUMMY_MAIN
11112 # ifdef __cplusplus
11115 int F77_DUMMY_MAIN() { return 1; }
11125 rm -f conftest.
$ac_objext conftest
$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127 (eval $ac_link) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } &&
11131 { ac_try
='test -s conftest$ac_exeext'
11132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11133 (eval $ac_try) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); }; }; then
11137 ac_cv_lib_kvm_kvm_open
=yes
11139 echo "$as_me: failed program was:" >&5
11140 cat conftest.
$ac_ext >&5
11141 ac_cv_lib_kvm_kvm_open
=no
11143 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11144 LIBS
=$ac_check_lib_save_LIBS
11146 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11147 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
11148 if test $ac_cv_lib_kvm_kvm_open = yes; then
11152 # Check for the 4.4BSD definition of getloadavg.
11153 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11154 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
11155 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 ac_check_lib_save_LIBS
=$LIBS
11159 LIBS
="-lutil $LIBS"
11160 cat >conftest.
$ac_ext <<_ACEOF
11161 #line $LINENO "configure"
11162 #include "confdefs.h"
11164 /* Override any gcc2 internal prototype to avoid an error. */
11168 /* We use char because int might match the return type of a gcc2
11169 builtin and then its argument prototype would still apply. */
11170 char getloadavg ();
11171 #ifdef F77_DUMMY_MAIN
11172 # ifdef __cplusplus
11175 int F77_DUMMY_MAIN() { return 1; }
11185 rm -f conftest.
$ac_objext conftest
$ac_exeext
11186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187 (eval $ac_link) 2>&5
11189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11190 (exit $ac_status); } &&
11191 { ac_try
='test -s conftest$ac_exeext'
11192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11193 (eval $ac_try) 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); }; }; then
11197 ac_cv_lib_util_getloadavg
=yes
11199 echo "$as_me: failed program was:" >&5
11200 cat conftest.
$ac_ext >&5
11201 ac_cv_lib_util_getloadavg
=no
11203 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11204 LIBS
=$ac_check_lib_save_LIBS
11206 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11207 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
11208 if test $ac_cv_lib_util_getloadavg = yes; then
11209 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
11214 if test $ac_have_func = no
; then
11215 # There is a commonly available library for RS/6000 AIX.
11216 # Since it is not a standard part of AIX, it might be installed locally.
11217 ac_getloadavg_LIBS
=$LIBS
11218 LIBS
="-L/usr/local/lib $LIBS"
11219 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11220 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
11221 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 ac_check_lib_save_LIBS
=$LIBS
11225 LIBS
="-lgetloadavg $LIBS"
11226 cat >conftest.
$ac_ext <<_ACEOF
11227 #line $LINENO "configure"
11228 #include "confdefs.h"
11230 /* Override any gcc2 internal prototype to avoid an error. */
11234 /* We use char because int might match the return type of a gcc2
11235 builtin and then its argument prototype would still apply. */
11236 char getloadavg ();
11237 #ifdef F77_DUMMY_MAIN
11238 # ifdef __cplusplus
11241 int F77_DUMMY_MAIN() { return 1; }
11251 rm -f conftest.
$ac_objext conftest
$ac_exeext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } &&
11257 { ac_try
='test -s conftest$ac_exeext'
11258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259 (eval $ac_try) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); }; }; then
11263 ac_cv_lib_getloadavg_getloadavg
=yes
11265 echo "$as_me: failed program was:" >&5
11266 cat conftest.
$ac_ext >&5
11267 ac_cv_lib_getloadavg_getloadavg
=no
11269 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11270 LIBS
=$ac_check_lib_save_LIBS
11272 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11273 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
11274 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11275 LIBS
="-lgetloadavg $LIBS"
11277 LIBS
=$ac_getloadavg_LIBS
11282 # Make sure it is really in the library, if we think we found it,
11283 # otherwise set up the replacement function.
11285 for ac_func
in getloadavg
11287 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11288 echo "$as_me:$LINENO: checking for $ac_func" >&5
11289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11290 if eval "test \"\${$as_ac_var+set}\" = set"; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 cat >conftest.
$ac_ext <<_ACEOF
11294 #line $LINENO "configure"
11295 #include "confdefs.h"
11296 /* System header to define __stub macros and hopefully few prototypes,
11297 which can conflict with char $ac_func (); below. */
11298 #include <assert.h>
11299 /* Override any gcc2 internal prototype to avoid an error. */
11303 /* We use char because int might match the return type of a gcc2
11304 builtin and then its argument prototype would still apply. */
11308 #ifdef F77_DUMMY_MAIN
11309 # ifdef __cplusplus
11312 int F77_DUMMY_MAIN() { return 1; }
11317 /* The GNU C library defines this for functions which it implements
11318 to always fail with ENOSYS. Some functions are actually named
11319 something starting with __ and the normal name is an alias. */
11320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11330 rm -f conftest.
$ac_objext conftest
$ac_exeext
11331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11332 (eval $ac_link) 2>&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } &&
11336 { ac_try
='test -s conftest$ac_exeext'
11337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11338 (eval $ac_try) 2>&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); }; }; then
11342 eval "$as_ac_var=yes"
11344 echo "$as_me: failed program was:" >&5
11345 cat conftest.
$ac_ext >&5
11346 eval "$as_ac_var=no"
11348 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11351 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11352 if test `eval echo '${'$as_ac_var'}'` = yes; then
11353 cat >>confdefs.h
<<_ACEOF
11354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11358 LIBOBJS
="$LIBOBJS getloadavg.$ac_objext"
11360 cat >>confdefs.h
<<\_ACEOF
11361 #define C_GETLOADAVG 1
11364 # Figure out what our getloadavg.c needs.
11366 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11367 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11368 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11369 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11373 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11375 # Is the header compilable?
11376 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
11377 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
11378 cat >conftest.
$ac_ext <<_ACEOF
11379 #line $LINENO "configure"
11380 #include "confdefs.h"
11381 $ac_includes_default
11382 #include <sys/dg_sys_info.h>
11384 rm -f conftest.
$ac_objext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11386 (eval $ac_compile) 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } &&
11390 { ac_try
='test -s conftest.$ac_objext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 ac_header_compiler
=yes
11398 echo "$as_me: failed program was:" >&5
11399 cat conftest.
$ac_ext >&5
11400 ac_header_compiler
=no
11402 rm -f conftest.
$ac_objext conftest.
$ac_ext
11403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11404 echo "${ECHO_T}$ac_header_compiler" >&6
11406 # Is the header present?
11407 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
11408 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
11409 cat >conftest.
$ac_ext <<_ACEOF
11410 #line $LINENO "configure"
11411 #include "confdefs.h"
11412 #include <sys/dg_sys_info.h>
11414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11415 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11417 egrep -v '^ *\+' conftest.er1
>conftest.err
11419 cat conftest.err
>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); } >/dev
/null
; then
11422 if test -s conftest.err
; then
11423 ac_cpp_err
=$ac_c_preproc_warn_flag
11430 if test -z "$ac_cpp_err"; then
11431 ac_header_preproc
=yes
11433 echo "$as_me: failed program was:" >&5
11434 cat conftest.
$ac_ext >&5
11435 ac_header_preproc
=no
11437 rm -f conftest.err conftest.
$ac_ext
11438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11439 echo "${ECHO_T}$ac_header_preproc" >&6
11441 # So? What about this header?
11442 case $ac_header_compiler:$ac_header_preproc in
11444 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
11445 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11446 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11447 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11449 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
11454 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;};;
11456 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
11457 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
11458 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
11463 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
11464 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
11467 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11470 cat >>confdefs.h
<<\_ACEOF
11475 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11476 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
11477 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 ac_check_lib_save_LIBS
=$LIBS
11482 cat >conftest.
$ac_ext <<_ACEOF
11483 #line $LINENO "configure"
11484 #include "confdefs.h"
11486 /* Override any gcc2 internal prototype to avoid an error. */
11490 /* We use char because int might match the return type of a gcc2
11491 builtin and then its argument prototype would still apply. */
11492 char dg_sys_info ();
11493 #ifdef F77_DUMMY_MAIN
11494 # ifdef __cplusplus
11497 int F77_DUMMY_MAIN() { return 1; }
11507 rm -f conftest.
$ac_objext conftest
$ac_exeext
11508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11509 (eval $ac_link) 2>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try
='test -s conftest$ac_exeext'
11514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11515 (eval $ac_try) 2>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; }; then
11519 ac_cv_lib_dgc_dg_sys_info
=yes
11521 echo "$as_me: failed program was:" >&5
11522 cat conftest.
$ac_ext >&5
11523 ac_cv_lib_dgc_dg_sys_info
=no
11525 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11526 LIBS
=$ac_check_lib_save_LIBS
11528 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11529 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
11530 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11531 cat >>confdefs.h
<<_ACEOF
11532 #define HAVE_LIBDGC 1
11543 if test "${ac_cv_header_locale_h+set}" = set; then
11544 echo "$as_me:$LINENO: checking for locale.h" >&5
11545 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11546 if test "${ac_cv_header_locale_h+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11550 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11552 # Is the header compilable?
11553 echo "$as_me:$LINENO: checking locale.h usability" >&5
11554 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
11555 cat >conftest.
$ac_ext <<_ACEOF
11556 #line $LINENO "configure"
11557 #include "confdefs.h"
11558 $ac_includes_default
11559 #include <locale.h>
11561 rm -f conftest.
$ac_objext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11563 (eval $ac_compile) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try
='test -s conftest.$ac_objext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ac_header_compiler
=yes
11575 echo "$as_me: failed program was:" >&5
11576 cat conftest.
$ac_ext >&5
11577 ac_header_compiler
=no
11579 rm -f conftest.
$ac_objext conftest.
$ac_ext
11580 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11581 echo "${ECHO_T}$ac_header_compiler" >&6
11583 # Is the header present?
11584 echo "$as_me:$LINENO: checking locale.h presence" >&5
11585 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
11586 cat >conftest.
$ac_ext <<_ACEOF
11587 #line $LINENO "configure"
11588 #include "confdefs.h"
11589 #include <locale.h>
11591 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11592 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11594 egrep -v '^ *\+' conftest.er1
>conftest.err
11596 cat conftest.err
>&5
11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598 (exit $ac_status); } >/dev
/null
; then
11599 if test -s conftest.err
; then
11600 ac_cpp_err
=$ac_c_preproc_warn_flag
11607 if test -z "$ac_cpp_err"; then
11608 ac_header_preproc
=yes
11610 echo "$as_me: failed program was:" >&5
11611 cat conftest.
$ac_ext >&5
11612 ac_header_preproc
=no
11614 rm -f conftest.err conftest.
$ac_ext
11615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11616 echo "${ECHO_T}$ac_header_preproc" >&6
11618 # So? What about this header?
11619 case $ac_header_compiler:$ac_header_preproc in
11621 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
11622 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11623 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11624 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11626 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
11627 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
11628 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
11629 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
11630 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
11631 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;};;
11633 echo "$as_me:$LINENO: checking for locale.h" >&5
11634 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
11635 if test "${ac_cv_header_locale_h+set}" = set; then
11636 echo $ECHO_N "(cached) $ECHO_C" >&6
11638 ac_cv_header_locale_h
=$ac_header_preproc
11640 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
11641 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
11647 for ac_func
in setlocale
11649 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11650 echo "$as_me:$LINENO: checking for $ac_func" >&5
11651 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11652 if eval "test \"\${$as_ac_var+set}\" = set"; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 cat >conftest.
$ac_ext <<_ACEOF
11656 #line $LINENO "configure"
11657 #include "confdefs.h"
11658 /* System header to define __stub macros and hopefully few prototypes,
11659 which can conflict with char $ac_func (); below. */
11660 #include <assert.h>
11661 /* Override any gcc2 internal prototype to avoid an error. */
11665 /* We use char because int might match the return type of a gcc2
11666 builtin and then its argument prototype would still apply. */
11670 #ifdef F77_DUMMY_MAIN
11671 # ifdef __cplusplus
11674 int F77_DUMMY_MAIN() { return 1; }
11679 /* The GNU C library defines this for functions which it implements
11680 to always fail with ENOSYS. Some functions are actually named
11681 something starting with __ and the normal name is an alias. */
11682 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11692 rm -f conftest.
$ac_objext conftest
$ac_exeext
11693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11694 (eval $ac_link) 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
11698 { ac_try
='test -s conftest$ac_exeext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 eval "$as_ac_var=yes"
11706 echo "$as_me: failed program was:" >&5
11707 cat conftest.
$ac_ext >&5
11708 eval "$as_ac_var=no"
11710 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
11712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11714 if test `eval echo '${'$as_ac_var'}'` = yes; then
11715 cat >>confdefs.h
<<_ACEOF
11716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11723 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
11724 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11725 # Irix 4.0.5F has the header but not the library.
11726 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
11729 cat >>confdefs.h
<<\_ACEOF
11735 if test $ac_have_func = no
; then
11736 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11737 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11738 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11739 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11743 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11745 # Is the header compilable?
11746 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
11747 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
11748 cat >conftest.
$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11750 #include "confdefs.h"
11751 $ac_includes_default
11752 #include <inq_stats/cpustats.h>
11754 rm -f conftest.
$ac_objext
11755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756 (eval $ac_compile) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
11760 { ac_try
='test -s conftest.$ac_objext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_header_compiler
=yes
11768 echo "$as_me: failed program was:" >&5
11769 cat conftest.
$ac_ext >&5
11770 ac_header_compiler
=no
11772 rm -f conftest.
$ac_objext conftest.
$ac_ext
11773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11774 echo "${ECHO_T}$ac_header_compiler" >&6
11776 # Is the header present?
11777 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
11778 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
11779 cat >conftest.
$ac_ext <<_ACEOF
11780 #line $LINENO "configure"
11781 #include "confdefs.h"
11782 #include <inq_stats/cpustats.h>
11784 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11785 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11787 egrep -v '^ *\+' conftest.er1
>conftest.err
11789 cat conftest.err
>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } >/dev
/null
; then
11792 if test -s conftest.err
; then
11793 ac_cpp_err
=$ac_c_preproc_warn_flag
11800 if test -z "$ac_cpp_err"; then
11801 ac_header_preproc
=yes
11803 echo "$as_me: failed program was:" >&5
11804 cat conftest.
$ac_ext >&5
11805 ac_header_preproc
=no
11807 rm -f conftest.err conftest.
$ac_ext
11808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11809 echo "${ECHO_T}$ac_header_preproc" >&6
11811 # So? What about this header?
11812 case $ac_header_compiler:$ac_header_preproc in
11814 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11815 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11816 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11817 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11819 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
11820 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
11822 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
11823 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
11824 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11826 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
11827 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
11828 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
11833 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
11834 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
11837 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11840 cat >>confdefs.h
<<\_ACEOF
11845 cat >>confdefs.h
<<\_ACEOF
11854 if test $ac_have_func = no
; then
11855 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11856 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11857 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11858 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11862 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11864 # Is the header compilable?
11865 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
11866 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
11867 cat >conftest.
$ac_ext <<_ACEOF
11868 #line $LINENO "configure"
11869 #include "confdefs.h"
11870 $ac_includes_default
11871 #include <sys/cpustats.h>
11873 rm -f conftest.
$ac_objext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875 (eval $ac_compile) 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } &&
11879 { ac_try
='test -s conftest.$ac_objext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 ac_header_compiler
=yes
11887 echo "$as_me: failed program was:" >&5
11888 cat conftest.
$ac_ext >&5
11889 ac_header_compiler
=no
11891 rm -f conftest.
$ac_objext conftest.
$ac_ext
11892 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11893 echo "${ECHO_T}$ac_header_compiler" >&6
11895 # Is the header present?
11896 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
11897 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
11898 cat >conftest.
$ac_ext <<_ACEOF
11899 #line $LINENO "configure"
11900 #include "confdefs.h"
11901 #include <sys/cpustats.h>
11903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11904 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11906 egrep -v '^ *\+' conftest.er1
>conftest.err
11908 cat conftest.err
>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } >/dev
/null
; then
11911 if test -s conftest.err
; then
11912 ac_cpp_err
=$ac_c_preproc_warn_flag
11919 if test -z "$ac_cpp_err"; then
11920 ac_header_preproc
=yes
11922 echo "$as_me: failed program was:" >&5
11923 cat conftest.
$ac_ext >&5
11924 ac_header_preproc
=no
11926 rm -f conftest.err conftest.
$ac_ext
11927 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11928 echo "${ECHO_T}$ac_header_preproc" >&6
11930 # So? What about this header?
11931 case $ac_header_compiler:$ac_header_preproc in
11933 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
11934 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11935 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11936 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11938 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
11939 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
11940 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
11941 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
11942 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
11943 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;};;
11945 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11946 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
11947 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
11952 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
11953 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
11956 if test $ac_cv_header_sys_cpustats_h = yes; then
11957 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
11966 if test $ac_have_func = no
; then
11968 for ac_header
in mach
/mach.h
11970 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11972 echo "$as_me:$LINENO: checking for $ac_header" >&5
11973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11974 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11978 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11980 # Is the header compilable?
11981 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11982 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11983 cat >conftest.
$ac_ext <<_ACEOF
11984 #line $LINENO "configure"
11985 #include "confdefs.h"
11986 $ac_includes_default
11987 #include <$ac_header>
11989 rm -f conftest.
$ac_objext
11990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991 (eval $ac_compile) 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
11995 { ac_try
='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_header_compiler
=yes
12003 echo "$as_me: failed program was:" >&5
12004 cat conftest.
$ac_ext >&5
12005 ac_header_compiler
=no
12007 rm -f conftest.
$ac_objext conftest.
$ac_ext
12008 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12009 echo "${ECHO_T}$ac_header_compiler" >&6
12011 # Is the header present?
12012 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12013 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12014 cat >conftest.
$ac_ext <<_ACEOF
12015 #line $LINENO "configure"
12016 #include "confdefs.h"
12017 #include <$ac_header>
12019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12020 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12022 egrep -v '^ *\+' conftest.er1
>conftest.err
12024 cat conftest.err
>&5
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); } >/dev
/null
; then
12027 if test -s conftest.err
; then
12028 ac_cpp_err
=$ac_c_preproc_warn_flag
12035 if test -z "$ac_cpp_err"; then
12036 ac_header_preproc
=yes
12038 echo "$as_me: failed program was:" >&5
12039 cat conftest.
$ac_ext >&5
12040 ac_header_preproc
=no
12042 rm -f conftest.err conftest.
$ac_ext
12043 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12044 echo "${ECHO_T}$ac_header_preproc" >&6
12046 # So? What about this header?
12047 case $ac_header_compiler:$ac_header_preproc in
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12061 echo "$as_me:$LINENO: checking for $ac_header" >&5
12062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 eval "$as_ac_Header=$ac_header_preproc"
12068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12073 cat >>confdefs.h
<<_ACEOF
12074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12084 for ac_header
in nlist.h
12086 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12088 echo "$as_me:$LINENO: checking for $ac_header" >&5
12089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12094 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12096 # Is the header compilable?
12097 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12099 cat >conftest.
$ac_ext <<_ACEOF
12100 #line $LINENO "configure"
12101 #include "confdefs.h"
12102 $ac_includes_default
12103 #include <$ac_header>
12105 rm -f conftest.
$ac_objext
12106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12107 (eval $ac_compile) 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try
='test -s conftest.$ac_objext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 ac_header_compiler
=yes
12119 echo "$as_me: failed program was:" >&5
12120 cat conftest.
$ac_ext >&5
12121 ac_header_compiler
=no
12123 rm -f conftest.
$ac_objext conftest.
$ac_ext
12124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12125 echo "${ECHO_T}$ac_header_compiler" >&6
12127 # Is the header present?
12128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12130 cat >conftest.
$ac_ext <<_ACEOF
12131 #line $LINENO "configure"
12132 #include "confdefs.h"
12133 #include <$ac_header>
12135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12136 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12138 egrep -v '^ *\+' conftest.er1
>conftest.err
12140 cat conftest.err
>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } >/dev
/null
; then
12143 if test -s conftest.err
; then
12144 ac_cpp_err
=$ac_c_preproc_warn_flag
12151 if test -z "$ac_cpp_err"; then
12152 ac_header_preproc
=yes
12154 echo "$as_me: failed program was:" >&5
12155 cat conftest.
$ac_ext >&5
12156 ac_header_preproc
=no
12158 rm -f conftest.err conftest.
$ac_ext
12159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12160 echo "${ECHO_T}$ac_header_preproc" >&6
12162 # So? What about this header?
12163 case $ac_header_compiler:$ac_header_preproc in
12165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12168 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12171 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12173 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
12177 echo "$as_me:$LINENO: checking for $ac_header" >&5
12178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 eval "$as_ac_Header=$ac_header_preproc"
12184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12189 cat >>confdefs.h
<<_ACEOF
12190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12192 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
12193 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
12194 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
12195 echo $ECHO_N "(cached) $ECHO_C" >&6
12197 cat >conftest.
$ac_ext <<_ACEOF
12198 #line $LINENO "configure"
12199 #include "confdefs.h"
12202 #ifdef F77_DUMMY_MAIN
12203 # ifdef __cplusplus
12206 int F77_DUMMY_MAIN() { return 1; }
12211 static struct nlist ac_aggr;
12212 if (ac_aggr.n_un.n_name)
12218 rm -f conftest.
$ac_objext
12219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12220 (eval $ac_compile) 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } &&
12224 { ac_try
='test -s conftest.$ac_objext'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 ac_cv_member_struct_nlist_n_un_n_name
=yes
12232 echo "$as_me: failed program was:" >&5
12233 cat conftest.
$ac_ext >&5
12234 ac_cv_member_struct_nlist_n_un_n_name
=no
12236 rm -f conftest.
$ac_objext conftest.
$ac_ext
12238 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
12239 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
12240 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
12242 cat >>confdefs.h
<<_ACEOF
12243 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
12247 cat >>confdefs.h
<<\_ACEOF
12248 #define NLIST_NAME_UNION 1
12262 # Some definitions of getloadavg require that the program be installed setgid.
12263 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
12264 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
12265 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
12266 echo $ECHO_N "(cached) $ECHO_C" >&6
12268 cat >conftest.
$ac_ext <<_ACEOF
12269 #line $LINENO "configure"
12270 #include "confdefs.h"
12271 #include "$srcdir/getloadavg.c"
12272 #ifdef LDAV_PRIVILEGED
12273 Yowza Am I SETGID yet
12276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12277 egrep "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
12278 ac_cv_func_getloadavg_setgid
=yes
12280 ac_cv_func_getloadavg_setgid
=no
12285 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
12286 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
12287 if test $ac_cv_func_getloadavg_setgid = yes; then
12290 cat >>confdefs.h
<<\_ACEOF
12291 #define GETLOADAVG_PRIVILEGED 1
12298 if test $ac_cv_func_getloadavg_setgid = yes; then
12299 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
12300 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
12301 if test "${ac_cv_group_kmem+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
12305 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
12306 # If we got an error (system does not support symlinks), try without -L.
12307 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
12308 ac_cv_group_kmem
=`echo $ac_ls_output \
12309 | sed -ne 's/[ ][ ]*/ /g;
12310 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
12314 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
12315 echo "${ECHO_T}$ac_cv_group_kmem" >&6
12316 KMEM_GROUP
=$ac_cv_group_kmem
12318 if test "x$ac_save_LIBS" = x
; then
12319 GETLOADAVG_LIBS
=$LIBS
12321 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
12327 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12328 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
12329 if test "${ac_cv_sys_largefile_source+set}" = set; then
12330 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 ac_cv_sys_largefile_source
=no
12334 cat >conftest.
$ac_ext <<_ACEOF
12335 #line $LINENO "configure"
12336 #include "confdefs.h"
12338 #ifdef F77_DUMMY_MAIN
12339 # ifdef __cplusplus
12342 int F77_DUMMY_MAIN() { return 1; }
12352 rm -f conftest.
$ac_objext
12353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12354 (eval $ac_compile) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
12358 { ac_try
='test -s conftest.$ac_objext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12366 echo "$as_me: failed program was:" >&5
12367 cat conftest.
$ac_ext >&5
12369 rm -f conftest.
$ac_objext conftest.
$ac_ext
12370 cat >conftest.
$ac_ext <<_ACEOF
12371 #line $LINENO "configure"
12372 #include "confdefs.h"
12373 #define _LARGEFILE_SOURCE 1
12375 #ifdef F77_DUMMY_MAIN
12376 # ifdef __cplusplus
12379 int F77_DUMMY_MAIN() { return 1; }
12389 rm -f conftest.
$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try
='test -s conftest.$ac_objext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_cv_sys_largefile_source
=1; break
12403 echo "$as_me: failed program was:" >&5
12404 cat conftest.
$ac_ext >&5
12406 rm -f conftest.
$ac_objext conftest.
$ac_ext
12410 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
12411 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
12412 if test "$ac_cv_sys_largefile_source" != no
; then
12414 cat >>confdefs.h
<<_ACEOF
12415 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12421 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12422 # in glibc 2.1.3, but that breaks too many other things.
12423 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12424 echo "$as_me:$LINENO: checking for fseeko" >&5
12425 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
12426 if test "${ac_cv_func_fseeko+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12429 cat >conftest.
$ac_ext <<_ACEOF
12430 #line $LINENO "configure"
12431 #include "confdefs.h"
12433 #ifdef F77_DUMMY_MAIN
12434 # ifdef __cplusplus
12437 int F77_DUMMY_MAIN() { return 1; }
12442 return fseeko && fseeko (stdin, 0, 0);
12447 rm -f conftest.
$ac_objext conftest
$ac_exeext
12448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12449 (eval $ac_link) 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try
='test -s conftest$ac_exeext'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_func_fseeko
=yes
12461 echo "$as_me: failed program was:" >&5
12462 cat conftest.
$ac_ext >&5
12463 ac_cv_func_fseeko
=no
12465 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12467 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
12468 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
12469 if test $ac_cv_func_fseeko = yes; then
12471 cat >>confdefs.h
<<\_ACEOF
12472 #define HAVE_FSEEKO 1
12480 for ac_func
in grantpt
12482 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12483 echo "$as_me:$LINENO: checking for $ac_func" >&5
12484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12485 if eval "test \"\${$as_ac_var+set}\" = set"; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 cat >conftest.
$ac_ext <<_ACEOF
12489 #line $LINENO "configure"
12490 #include "confdefs.h"
12491 /* System header to define __stub macros and hopefully few prototypes,
12492 which can conflict with char $ac_func (); below. */
12493 #include <assert.h>
12494 /* Override any gcc2 internal prototype to avoid an error. */
12498 /* We use char because int might match the return type of a gcc2
12499 builtin and then its argument prototype would still apply. */
12503 #ifdef F77_DUMMY_MAIN
12504 # ifdef __cplusplus
12507 int F77_DUMMY_MAIN() { return 1; }
12512 /* The GNU C library defines this for functions which it implements
12513 to always fail with ENOSYS. Some functions are actually named
12514 something starting with __ and the normal name is an alias. */
12515 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12525 rm -f conftest.
$ac_objext conftest
$ac_exeext
12526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12527 (eval $ac_link) 2>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
12531 { ac_try
='test -s conftest$ac_exeext'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; }; then
12537 eval "$as_ac_var=yes"
12539 echo "$as_me: failed program was:" >&5
12540 cat conftest.
$ac_ext >&5
12541 eval "$as_ac_var=no"
12543 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12545 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12546 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12547 if test `eval echo '${'$as_ac_var'}'` = yes; then
12548 cat >>confdefs.h
<<_ACEOF
12549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12556 # PTY-related GNU extensions.
12558 for ac_func
in getpt
12560 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12561 echo "$as_me:$LINENO: checking for $ac_func" >&5
12562 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12563 if eval "test \"\${$as_ac_var+set}\" = set"; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 cat >conftest.
$ac_ext <<_ACEOF
12567 #line $LINENO "configure"
12568 #include "confdefs.h"
12569 /* System header to define __stub macros and hopefully few prototypes,
12570 which can conflict with char $ac_func (); below. */
12571 #include <assert.h>
12572 /* Override any gcc2 internal prototype to avoid an error. */
12576 /* We use char because int might match the return type of a gcc2
12577 builtin and then its argument prototype would still apply. */
12581 #ifdef F77_DUMMY_MAIN
12582 # ifdef __cplusplus
12585 int F77_DUMMY_MAIN() { return 1; }
12590 /* The GNU C library defines this for functions which it implements
12591 to always fail with ENOSYS. Some functions are actually named
12592 something starting with __ and the normal name is an alias. */
12593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12603 rm -f conftest.
$ac_objext conftest
$ac_exeext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12605 (eval $ac_link) 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
12609 { ac_try
='test -s conftest$ac_exeext'
12610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611 (eval $ac_try) 2>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); }; }; then
12615 eval "$as_ac_var=yes"
12617 echo "$as_me: failed program was:" >&5
12618 cat conftest.
$ac_ext >&5
12619 eval "$as_ac_var=no"
12621 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12625 if test `eval echo '${'$as_ac_var'}'` = yes; then
12626 cat >>confdefs.h
<<_ACEOF
12627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12634 # Check this now, so that we will NOT find the above functions in ncurses.
12635 # That is because we have not set up to link ncurses in lib-src.
12636 # It's better to believe a function is not available
12637 # than to expect to find it in ncurses.
12639 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
12640 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
12641 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 ac_check_lib_save_LIBS
=$LIBS
12645 LIBS
="-lncurses $LIBS"
12646 cat >conftest.
$ac_ext <<_ACEOF
12647 #line $LINENO "configure"
12648 #include "confdefs.h"
12650 /* Override any gcc2 internal prototype to avoid an error. */
12654 /* We use char because int might match the return type of a gcc2
12655 builtin and then its argument prototype would still apply. */
12657 #ifdef F77_DUMMY_MAIN
12658 # ifdef __cplusplus
12661 int F77_DUMMY_MAIN() { return 1; }
12671 rm -f conftest.
$ac_objext conftest
$ac_exeext
12672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12673 (eval $ac_link) 2>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } &&
12677 { ac_try
='test -s conftest$ac_exeext'
12678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12679 (eval $ac_try) 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 ac_cv_lib_ncurses_tparm
=yes
12685 echo "$as_me: failed program was:" >&5
12686 cat conftest.
$ac_ext >&5
12687 ac_cv_lib_ncurses_tparm
=no
12689 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12690 LIBS
=$ac_check_lib_save_LIBS
12692 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
12693 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
12694 if test $ac_cv_lib_ncurses_tparm = yes; then
12695 cat >>confdefs.h
<<_ACEOF
12696 #define HAVE_LIBNCURSES 1
12699 LIBS
="-lncurses $LIBS"
12704 # Do we need the Hesiod library to provide the support routines?
12705 if test "$with_hesiod" = yes ; then
12706 # Don't set $LIBS here -- see comments above.
12708 echo "$as_me:$LINENO: checking for res_send" >&5
12709 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
12710 if test "${ac_cv_func_res_send+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 cat >conftest.
$ac_ext <<_ACEOF
12714 #line $LINENO "configure"
12715 #include "confdefs.h"
12716 /* System header to define __stub macros and hopefully few prototypes,
12717 which can conflict with char res_send (); below. */
12718 #include <assert.h>
12719 /* Override any gcc2 internal prototype to avoid an error. */
12723 /* We use char because int might match the return type of a gcc2
12724 builtin and then its argument prototype would still apply. */
12728 #ifdef F77_DUMMY_MAIN
12729 # ifdef __cplusplus
12732 int F77_DUMMY_MAIN() { return 1; }
12737 /* The GNU C library defines this for functions which it implements
12738 to always fail with ENOSYS. Some functions are actually named
12739 something starting with __ and the normal name is an alias. */
12740 #if defined (__stub_res_send) || defined (__stub___res_send)
12750 rm -f conftest.
$ac_objext conftest
$ac_exeext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752 (eval $ac_link) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try
='test -s conftest$ac_exeext'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 ac_cv_func_res_send
=yes
12764 echo "$as_me: failed program was:" >&5
12765 cat conftest.
$ac_ext >&5
12766 ac_cv_func_res_send
=no
12768 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12770 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
12771 echo "${ECHO_T}$ac_cv_func_res_send" >&6
12772 if test $ac_cv_func_res_send = yes; then
12775 echo "$as_me:$LINENO: checking for __res_send" >&5
12776 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
12777 if test "${ac_cv_func___res_send+set}" = set; then
12778 echo $ECHO_N "(cached) $ECHO_C" >&6
12780 cat >conftest.
$ac_ext <<_ACEOF
12781 #line $LINENO "configure"
12782 #include "confdefs.h"
12783 /* System header to define __stub macros and hopefully few prototypes,
12784 which can conflict with char __res_send (); below. */
12785 #include <assert.h>
12786 /* Override any gcc2 internal prototype to avoid an error. */
12790 /* We use char because int might match the return type of a gcc2
12791 builtin and then its argument prototype would still apply. */
12792 char __res_send ();
12795 #ifdef F77_DUMMY_MAIN
12796 # ifdef __cplusplus
12799 int F77_DUMMY_MAIN() { return 1; }
12804 /* The GNU C library defines this for functions which it implements
12805 to always fail with ENOSYS. Some functions are actually named
12806 something starting with __ and the normal name is an alias. */
12807 #if defined (__stub___res_send) || defined (__stub_____res_send)
12817 rm -f conftest.
$ac_objext conftest
$ac_exeext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12819 (eval $ac_link) 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } &&
12823 { ac_try
='test -s conftest$ac_exeext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 ac_cv_func___res_send
=yes
12831 echo "$as_me: failed program was:" >&5
12832 cat conftest.
$ac_ext >&5
12833 ac_cv_func___res_send
=no
12835 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12837 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
12838 echo "${ECHO_T}$ac_cv_func___res_send" >&6
12839 if test $ac_cv_func___res_send = yes; then
12842 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12843 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
12844 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12845 echo $ECHO_N "(cached) $ECHO_C" >&6
12847 ac_check_lib_save_LIBS
=$LIBS
12848 LIBS
="-lresolv $LIBS"
12849 cat >conftest.
$ac_ext <<_ACEOF
12850 #line $LINENO "configure"
12851 #include "confdefs.h"
12853 /* Override any gcc2 internal prototype to avoid an error. */
12857 /* We use char because int might match the return type of a gcc2
12858 builtin and then its argument prototype would still apply. */
12860 #ifdef F77_DUMMY_MAIN
12861 # ifdef __cplusplus
12864 int F77_DUMMY_MAIN() { return 1; }
12874 rm -f conftest.
$ac_objext conftest
$ac_exeext
12875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } &&
12880 { ac_try
='test -s conftest$ac_exeext'
12881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12882 (eval $ac_try) 2>&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); }; }; then
12886 ac_cv_lib_resolv_res_send
=yes
12888 echo "$as_me: failed program was:" >&5
12889 cat conftest.
$ac_ext >&5
12890 ac_cv_lib_resolv_res_send
=no
12892 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12893 LIBS
=$ac_check_lib_save_LIBS
12895 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12896 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
12897 if test $ac_cv_lib_resolv_res_send = yes; then
12900 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12901 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
12902 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 ac_check_lib_save_LIBS
=$LIBS
12906 LIBS
="-lresolv $LIBS"
12907 cat >conftest.
$ac_ext <<_ACEOF
12908 #line $LINENO "configure"
12909 #include "confdefs.h"
12911 /* Override any gcc2 internal prototype to avoid an error. */
12915 /* We use char because int might match the return type of a gcc2
12916 builtin and then its argument prototype would still apply. */
12917 char __res_send ();
12918 #ifdef F77_DUMMY_MAIN
12919 # ifdef __cplusplus
12922 int F77_DUMMY_MAIN() { return 1; }
12932 rm -f conftest.
$ac_objext conftest
$ac_exeext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12934 (eval $ac_link) 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); } &&
12938 { ac_try
='test -s conftest$ac_exeext'
12939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12940 (eval $ac_try) 2>&5
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); }; }; then
12944 ac_cv_lib_resolv___res_send
=yes
12946 echo "$as_me: failed program was:" >&5
12947 cat conftest.
$ac_ext >&5
12948 ac_cv_lib_resolv___res_send
=no
12950 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
12951 LIBS
=$ac_check_lib_save_LIBS
12953 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12954 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
12955 if test $ac_cv_lib_resolv___res_send = yes; then
12965 if test "$resolv" = yes ; then
12968 cat >>confdefs.h
<<\_ACEOF
12969 #define HAVE_LIBRESOLV 1
12975 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12976 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
12977 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 cat >conftest.
$ac_ext <<_ACEOF
12981 #line $LINENO "configure"
12982 #include "confdefs.h"
12983 /* System header to define __stub macros and hopefully few prototypes,
12984 which can conflict with char hes_getmailhost (); below. */
12985 #include <assert.h>
12986 /* Override any gcc2 internal prototype to avoid an error. */
12990 /* We use char because int might match the return type of a gcc2
12991 builtin and then its argument prototype would still apply. */
12992 char hes_getmailhost ();
12995 #ifdef F77_DUMMY_MAIN
12996 # ifdef __cplusplus
12999 int F77_DUMMY_MAIN() { return 1; }
13004 /* The GNU C library defines this for functions which it implements
13005 to always fail with ENOSYS. Some functions are actually named
13006 something starting with __ and the normal name is an alias. */
13007 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
13010 f = hes_getmailhost;
13017 rm -f conftest.
$ac_objext conftest
$ac_exeext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13019 (eval $ac_link) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } &&
13023 { ac_try
='test -s conftest$ac_exeext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_cv_func_hes_getmailhost
=yes
13031 echo "$as_me: failed program was:" >&5
13032 cat conftest.
$ac_ext >&5
13033 ac_cv_func_hes_getmailhost
=no
13035 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13037 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
13038 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
13039 if test $ac_cv_func_hes_getmailhost = yes; then
13042 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
13043 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
13044 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 ac_check_lib_save_LIBS
=$LIBS
13048 LIBS
="-lhesiod $RESOLVLIB $LIBS"
13049 cat >conftest.
$ac_ext <<_ACEOF
13050 #line $LINENO "configure"
13051 #include "confdefs.h"
13053 /* Override any gcc2 internal prototype to avoid an error. */
13057 /* We use char because int might match the return type of a gcc2
13058 builtin and then its argument prototype would still apply. */
13059 char hes_getmailhost ();
13060 #ifdef F77_DUMMY_MAIN
13061 # ifdef __cplusplus
13064 int F77_DUMMY_MAIN() { return 1; }
13069 hes_getmailhost ();
13074 rm -f conftest.
$ac_objext conftest
$ac_exeext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13076 (eval $ac_link) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
13080 { ac_try
='test -s conftest$ac_exeext'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
13086 ac_cv_lib_hesiod_hes_getmailhost
=yes
13088 echo "$as_me: failed program was:" >&5
13089 cat conftest.
$ac_ext >&5
13090 ac_cv_lib_hesiod_hes_getmailhost
=no
13092 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13093 LIBS
=$ac_check_lib_save_LIBS
13095 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
13096 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
13097 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
13099 cat >>confdefs.h
<<\_ACEOF
13100 #define HAVE_LIBHESIOD 1
13111 # These tell us which Kerberos-related libraries to use.
13112 if test "${with_kerberos+set}" = set; then
13114 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
13115 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
13116 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
13117 echo $ECHO_N "(cached) $ECHO_C" >&6
13119 ac_check_lib_save_LIBS
=$LIBS
13120 LIBS
="-lcom_err $LIBS"
13121 cat >conftest.
$ac_ext <<_ACEOF
13122 #line $LINENO "configure"
13123 #include "confdefs.h"
13125 /* Override any gcc2 internal prototype to avoid an error. */
13129 /* We use char because int might match the return type of a gcc2
13130 builtin and then its argument prototype would still apply. */
13132 #ifdef F77_DUMMY_MAIN
13133 # ifdef __cplusplus
13136 int F77_DUMMY_MAIN() { return 1; }
13146 rm -f conftest.
$ac_objext conftest
$ac_exeext
13147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13148 (eval $ac_link) 2>&5
13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13151 (exit $ac_status); } &&
13152 { ac_try
='test -s conftest$ac_exeext'
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; }; then
13158 ac_cv_lib_com_err_com_err
=yes
13160 echo "$as_me: failed program was:" >&5
13161 cat conftest.
$ac_ext >&5
13162 ac_cv_lib_com_err_com_err
=no
13164 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13165 LIBS
=$ac_check_lib_save_LIBS
13167 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
13168 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
13169 if test $ac_cv_lib_com_err_com_err = yes; then
13170 cat >>confdefs.h
<<_ACEOF
13171 #define HAVE_LIBCOM_ERR 1
13174 LIBS
="-lcom_err $LIBS"
13179 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
13180 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
13181 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13184 ac_check_lib_save_LIBS
=$LIBS
13185 LIBS
="-lk5crypto $LIBS"
13186 cat >conftest.
$ac_ext <<_ACEOF
13187 #line $LINENO "configure"
13188 #include "confdefs.h"
13190 /* Override any gcc2 internal prototype to avoid an error. */
13194 /* We use char because int might match the return type of a gcc2
13195 builtin and then its argument prototype would still apply. */
13196 char mit_des_cbc_encrypt ();
13197 #ifdef F77_DUMMY_MAIN
13198 # ifdef __cplusplus
13201 int F77_DUMMY_MAIN() { return 1; }
13206 mit_des_cbc_encrypt ();
13211 rm -f conftest.
$ac_objext conftest
$ac_exeext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13213 (eval $ac_link) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try
='test -s conftest$ac_exeext'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13223 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
13225 echo "$as_me: failed program was:" >&5
13226 cat conftest.
$ac_ext >&5
13227 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
13229 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13230 LIBS
=$ac_check_lib_save_LIBS
13232 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
13233 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
13234 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
13235 cat >>confdefs.h
<<_ACEOF
13236 #define HAVE_LIBK5CRYPTO 1
13239 LIBS
="-lk5crypto $LIBS"
13244 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
13245 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
13246 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 ac_check_lib_save_LIBS
=$LIBS
13250 LIBS
="-lcrypto $LIBS"
13251 cat >conftest.
$ac_ext <<_ACEOF
13252 #line $LINENO "configure"
13253 #include "confdefs.h"
13255 /* Override any gcc2 internal prototype to avoid an error. */
13259 /* We use char because int might match the return type of a gcc2
13260 builtin and then its argument prototype would still apply. */
13261 char mit_des_cbc_encrypt ();
13262 #ifdef F77_DUMMY_MAIN
13263 # ifdef __cplusplus
13266 int F77_DUMMY_MAIN() { return 1; }
13271 mit_des_cbc_encrypt ();
13276 rm -f conftest.
$ac_objext conftest
$ac_exeext
13277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13278 (eval $ac_link) 2>&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } &&
13282 { ac_try
='test -s conftest$ac_exeext'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
13290 echo "$as_me: failed program was:" >&5
13291 cat conftest.
$ac_ext >&5
13292 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
13294 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13295 LIBS
=$ac_check_lib_save_LIBS
13297 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
13298 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
13299 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
13300 cat >>confdefs.h
<<_ACEOF
13301 #define HAVE_LIBCRYPTO 1
13304 LIBS
="-lcrypto $LIBS"
13309 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
13310 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
13311 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 ac_check_lib_save_LIBS
=$LIBS
13315 LIBS
="-lkrb5 $LIBS"
13316 cat >conftest.
$ac_ext <<_ACEOF
13317 #line $LINENO "configure"
13318 #include "confdefs.h"
13320 /* Override any gcc2 internal prototype to avoid an error. */
13324 /* We use char because int might match the return type of a gcc2
13325 builtin and then its argument prototype would still apply. */
13326 char krb5_init_context ();
13327 #ifdef F77_DUMMY_MAIN
13328 # ifdef __cplusplus
13331 int F77_DUMMY_MAIN() { return 1; }
13336 krb5_init_context ();
13341 rm -f conftest.
$ac_objext conftest
$ac_exeext
13342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13343 (eval $ac_link) 2>&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } &&
13347 { ac_try
='test -s conftest$ac_exeext'
13348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13349 (eval $ac_try) 2>&5
13351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352 (exit $ac_status); }; }; then
13353 ac_cv_lib_krb5_krb5_init_context
=yes
13355 echo "$as_me: failed program was:" >&5
13356 cat conftest.
$ac_ext >&5
13357 ac_cv_lib_krb5_krb5_init_context
=no
13359 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13360 LIBS
=$ac_check_lib_save_LIBS
13362 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
13363 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
13364 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
13365 cat >>confdefs.h
<<_ACEOF
13366 #define HAVE_LIBKRB5 1
13369 LIBS
="-lkrb5 $LIBS"
13373 if test "${with_kerberos5+set}" != set; then
13375 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
13376 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
13377 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
13378 echo $ECHO_N "(cached) $ECHO_C" >&6
13380 ac_check_lib_save_LIBS
=$LIBS
13381 LIBS
="-ldes425 $LIBS"
13382 cat >conftest.
$ac_ext <<_ACEOF
13383 #line $LINENO "configure"
13384 #include "confdefs.h"
13386 /* Override any gcc2 internal prototype to avoid an error. */
13390 /* We use char because int might match the return type of a gcc2
13391 builtin and then its argument prototype would still apply. */
13392 char des_cbc_encrypt ();
13393 #ifdef F77_DUMMY_MAIN
13394 # ifdef __cplusplus
13397 int F77_DUMMY_MAIN() { return 1; }
13402 des_cbc_encrypt ();
13407 rm -f conftest.
$ac_objext conftest
$ac_exeext
13408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13409 (eval $ac_link) 2>&5
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); } &&
13413 { ac_try
='test -s conftest$ac_exeext'
13414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13415 (eval $ac_try) 2>&5
13417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13418 (exit $ac_status); }; }; then
13419 ac_cv_lib_des425_des_cbc_encrypt
=yes
13421 echo "$as_me: failed program was:" >&5
13422 cat conftest.
$ac_ext >&5
13423 ac_cv_lib_des425_des_cbc_encrypt
=no
13425 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13426 LIBS
=$ac_check_lib_save_LIBS
13428 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
13429 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
13430 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
13431 cat >>confdefs.h
<<_ACEOF
13432 #define HAVE_LIBDES425 1
13435 LIBS
="-ldes425 $LIBS"
13439 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
13440 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
13441 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
13442 echo $ECHO_N "(cached) $ECHO_C" >&6
13444 ac_check_lib_save_LIBS
=$LIBS
13446 cat >conftest.
$ac_ext <<_ACEOF
13447 #line $LINENO "configure"
13448 #include "confdefs.h"
13450 /* Override any gcc2 internal prototype to avoid an error. */
13454 /* We use char because int might match the return type of a gcc2
13455 builtin and then its argument prototype would still apply. */
13456 char des_cbc_encrypt ();
13457 #ifdef F77_DUMMY_MAIN
13458 # ifdef __cplusplus
13461 int F77_DUMMY_MAIN() { return 1; }
13466 des_cbc_encrypt ();
13471 rm -f conftest.
$ac_objext conftest
$ac_exeext
13472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13473 (eval $ac_link) 2>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try
='test -s conftest$ac_exeext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 ac_cv_lib_des_des_cbc_encrypt
=yes
13485 echo "$as_me: failed program was:" >&5
13486 cat conftest.
$ac_ext >&5
13487 ac_cv_lib_des_des_cbc_encrypt
=no
13489 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13490 LIBS
=$ac_check_lib_save_LIBS
13492 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
13493 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
13494 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
13495 cat >>confdefs.h
<<_ACEOF
13496 #define HAVE_LIBDES 1
13506 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
13507 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
13508 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
13509 echo $ECHO_N "(cached) $ECHO_C" >&6
13511 ac_check_lib_save_LIBS
=$LIBS
13512 LIBS
="-lkrb4 $LIBS"
13513 cat >conftest.
$ac_ext <<_ACEOF
13514 #line $LINENO "configure"
13515 #include "confdefs.h"
13517 /* Override any gcc2 internal prototype to avoid an error. */
13521 /* We use char because int might match the return type of a gcc2
13522 builtin and then its argument prototype would still apply. */
13523 char krb_get_cred ();
13524 #ifdef F77_DUMMY_MAIN
13525 # ifdef __cplusplus
13528 int F77_DUMMY_MAIN() { return 1; }
13538 rm -f conftest.
$ac_objext conftest
$ac_exeext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13540 (eval $ac_link) 2>&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
13544 { ac_try
='test -s conftest$ac_exeext'
13545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13550 ac_cv_lib_krb4_krb_get_cred
=yes
13552 echo "$as_me: failed program was:" >&5
13553 cat conftest.
$ac_ext >&5
13554 ac_cv_lib_krb4_krb_get_cred
=no
13556 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13557 LIBS
=$ac_check_lib_save_LIBS
13559 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
13560 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
13561 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
13562 cat >>confdefs.h
<<_ACEOF
13563 #define HAVE_LIBKRB4 1
13566 LIBS
="-lkrb4 $LIBS"
13570 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
13571 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
13572 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 ac_check_lib_save_LIBS
=$LIBS
13577 cat >conftest.
$ac_ext <<_ACEOF
13578 #line $LINENO "configure"
13579 #include "confdefs.h"
13581 /* Override any gcc2 internal prototype to avoid an error. */
13585 /* We use char because int might match the return type of a gcc2
13586 builtin and then its argument prototype would still apply. */
13587 char krb_get_cred ();
13588 #ifdef F77_DUMMY_MAIN
13589 # ifdef __cplusplus
13592 int F77_DUMMY_MAIN() { return 1; }
13602 rm -f conftest.
$ac_objext conftest
$ac_exeext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13604 (eval $ac_link) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try
='test -s conftest$ac_exeext'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 ac_cv_lib_krb_krb_get_cred
=yes
13616 echo "$as_me: failed program was:" >&5
13617 cat conftest.
$ac_ext >&5
13618 ac_cv_lib_krb_krb_get_cred
=no
13620 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
13621 LIBS
=$ac_check_lib_save_LIBS
13623 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
13624 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
13625 if test $ac_cv_lib_krb_krb_get_cred = yes; then
13626 cat >>confdefs.h
<<_ACEOF
13627 #define HAVE_LIBKRB 1
13638 if test "${with_kerberos5+set}" = set; then
13640 for ac_header
in krb5.h
13642 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13644 echo "$as_me:$LINENO: checking for $ac_header" >&5
13645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13652 # Is the header compilable?
13653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13655 cat >conftest.
$ac_ext <<_ACEOF
13656 #line $LINENO "configure"
13657 #include "confdefs.h"
13658 $ac_includes_default
13659 #include <$ac_header>
13661 rm -f conftest.
$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try
='test -s conftest.$ac_objext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 ac_header_compiler
=yes
13675 echo "$as_me: failed program was:" >&5
13676 cat conftest.
$ac_ext >&5
13677 ac_header_compiler
=no
13679 rm -f conftest.
$ac_objext conftest.
$ac_ext
13680 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13681 echo "${ECHO_T}$ac_header_compiler" >&6
13683 # Is the header present?
13684 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13685 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13686 cat >conftest.
$ac_ext <<_ACEOF
13687 #line $LINENO "configure"
13688 #include "confdefs.h"
13689 #include <$ac_header>
13691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13692 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13694 egrep -v '^ *\+' conftest.er1
>conftest.err
13696 cat conftest.err
>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } >/dev
/null
; then
13699 if test -s conftest.err
; then
13700 ac_cpp_err
=$ac_c_preproc_warn_flag
13707 if test -z "$ac_cpp_err"; then
13708 ac_header_preproc
=yes
13710 echo "$as_me: failed program was:" >&5
13711 cat conftest.
$ac_ext >&5
13712 ac_header_preproc
=no
13714 rm -f conftest.err conftest.
$ac_ext
13715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13716 echo "${ECHO_T}$ac_header_preproc" >&6
13718 # So? What about this header?
13719 case $ac_header_compiler:$ac_header_preproc in
13721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13726 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13727 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13729 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13733 echo "$as_me:$LINENO: checking for $ac_header" >&5
13734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 eval "$as_ac_Header=$ac_header_preproc"
13740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13744 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13745 cat >>confdefs.h
<<_ACEOF
13746 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13755 for ac_header
in des.h
13757 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13758 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13759 echo "$as_me:$LINENO: checking for $ac_header" >&5
13760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13762 echo $ECHO_N "(cached) $ECHO_C" >&6
13764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13765 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13767 # Is the header compilable?
13768 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13770 cat >conftest.
$ac_ext <<_ACEOF
13771 #line $LINENO "configure"
13772 #include "confdefs.h"
13773 $ac_includes_default
13774 #include <$ac_header>
13776 rm -f conftest.
$ac_objext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13778 (eval $ac_compile) 2>&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
13782 { ac_try
='test -s conftest.$ac_objext'
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_header_compiler
=yes
13790 echo "$as_me: failed program was:" >&5
13791 cat conftest.
$ac_ext >&5
13792 ac_header_compiler
=no
13794 rm -f conftest.
$ac_objext conftest.
$ac_ext
13795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13796 echo "${ECHO_T}$ac_header_compiler" >&6
13798 # Is the header present?
13799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13801 cat >conftest.
$ac_ext <<_ACEOF
13802 #line $LINENO "configure"
13803 #include "confdefs.h"
13804 #include <$ac_header>
13806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13807 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13809 egrep -v '^ *\+' conftest.er1
>conftest.err
13811 cat conftest.err
>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } >/dev
/null
; then
13814 if test -s conftest.err
; then
13815 ac_cpp_err
=$ac_c_preproc_warn_flag
13822 if test -z "$ac_cpp_err"; then
13823 ac_header_preproc
=yes
13825 echo "$as_me: failed program was:" >&5
13826 cat conftest.
$ac_ext >&5
13827 ac_header_preproc
=no
13829 rm -f conftest.err conftest.
$ac_ext
13830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13831 echo "${ECHO_T}$ac_header_preproc" >&6
13833 # So? What about this header?
13834 case $ac_header_compiler:$ac_header_preproc in
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13848 echo "$as_me:$LINENO: checking for $ac_header" >&5
13849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 eval "$as_ac_Header=$ac_header_preproc"
13855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13860 cat >>confdefs.h
<<_ACEOF
13861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13866 for ac_header
in kerberosIV
/des.h
13868 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13869 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13870 echo "$as_me:$LINENO: checking for $ac_header" >&5
13871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13878 # Is the header compilable?
13879 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13881 cat >conftest.
$ac_ext <<_ACEOF
13882 #line $LINENO "configure"
13883 #include "confdefs.h"
13884 $ac_includes_default
13885 #include <$ac_header>
13887 rm -f conftest.
$ac_objext
13888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13889 (eval $ac_compile) 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } &&
13893 { ac_try
='test -s conftest.$ac_objext'
13894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13895 (eval $ac_try) 2>&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; }; then
13899 ac_header_compiler
=yes
13901 echo "$as_me: failed program was:" >&5
13902 cat conftest.
$ac_ext >&5
13903 ac_header_compiler
=no
13905 rm -f conftest.
$ac_objext conftest.
$ac_ext
13906 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13907 echo "${ECHO_T}$ac_header_compiler" >&6
13909 # Is the header present?
13910 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13912 cat >conftest.
$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13914 #include "confdefs.h"
13915 #include <$ac_header>
13917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13918 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13920 egrep -v '^ *\+' conftest.er1
>conftest.err
13922 cat conftest.err
>&5
13923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13924 (exit $ac_status); } >/dev
/null
; then
13925 if test -s conftest.err
; then
13926 ac_cpp_err
=$ac_c_preproc_warn_flag
13933 if test -z "$ac_cpp_err"; then
13934 ac_header_preproc
=yes
13936 echo "$as_me: failed program was:" >&5
13937 cat conftest.
$ac_ext >&5
13938 ac_header_preproc
=no
13940 rm -f conftest.err conftest.
$ac_ext
13941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13942 echo "${ECHO_T}$ac_header_preproc" >&6
13944 # So? What about this header?
13945 case $ac_header_compiler:$ac_header_preproc in
13947 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13952 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13953 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13954 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13955 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
13959 echo "$as_me:$LINENO: checking for $ac_header" >&5
13960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13961 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13962 echo $ECHO_N "(cached) $ECHO_C" >&6
13964 eval "$as_ac_Header=$ac_header_preproc"
13966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13970 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13971 cat >>confdefs.h
<<_ACEOF
13972 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13977 for ac_header
in kerberos
/des.h
13979 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13980 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13981 echo "$as_me:$LINENO: checking for $ac_header" >&5
13982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13984 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13989 # Is the header compilable?
13990 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13992 cat >conftest.
$ac_ext <<_ACEOF
13993 #line $LINENO "configure"
13994 #include "confdefs.h"
13995 $ac_includes_default
13996 #include <$ac_header>
13998 rm -f conftest.
$ac_objext
13999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14000 (eval $ac_compile) 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
14004 { ac_try
='test -s conftest.$ac_objext'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; }; then
14010 ac_header_compiler
=yes
14012 echo "$as_me: failed program was:" >&5
14013 cat conftest.
$ac_ext >&5
14014 ac_header_compiler
=no
14016 rm -f conftest.
$ac_objext conftest.
$ac_ext
14017 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14018 echo "${ECHO_T}$ac_header_compiler" >&6
14020 # Is the header present?
14021 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14022 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14023 cat >conftest.
$ac_ext <<_ACEOF
14024 #line $LINENO "configure"
14025 #include "confdefs.h"
14026 #include <$ac_header>
14028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14029 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14031 egrep -v '^ *\+' conftest.er1
>conftest.err
14033 cat conftest.err
>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } >/dev
/null
; then
14036 if test -s conftest.err
; then
14037 ac_cpp_err
=$ac_c_preproc_warn_flag
14044 if test -z "$ac_cpp_err"; then
14045 ac_header_preproc
=yes
14047 echo "$as_me: failed program was:" >&5
14048 cat conftest.
$ac_ext >&5
14049 ac_header_preproc
=no
14051 rm -f conftest.err conftest.
$ac_ext
14052 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14053 echo "${ECHO_T}$ac_header_preproc" >&6
14055 # So? What about this header?
14056 case $ac_header_compiler:$ac_header_preproc in
14058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14061 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14070 echo "$as_me:$LINENO: checking for $ac_header" >&5
14071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 eval "$as_ac_Header=$ac_header_preproc"
14077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14082 cat >>confdefs.h
<<_ACEOF
14083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14099 for ac_header
in krb.h
14101 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14103 echo "$as_me:$LINENO: checking for $ac_header" >&5
14104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14106 echo $ECHO_N "(cached) $ECHO_C" >&6
14108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14111 # Is the header compilable?
14112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14114 cat >conftest.
$ac_ext <<_ACEOF
14115 #line $LINENO "configure"
14116 #include "confdefs.h"
14117 $ac_includes_default
14118 #include <$ac_header>
14120 rm -f conftest.
$ac_objext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122 (eval $ac_compile) 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
14126 { ac_try
='test -s conftest.$ac_objext'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_header_compiler
=yes
14134 echo "$as_me: failed program was:" >&5
14135 cat conftest.
$ac_ext >&5
14136 ac_header_compiler
=no
14138 rm -f conftest.
$ac_objext conftest.
$ac_ext
14139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14140 echo "${ECHO_T}$ac_header_compiler" >&6
14142 # Is the header present?
14143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14145 cat >conftest.
$ac_ext <<_ACEOF
14146 #line $LINENO "configure"
14147 #include "confdefs.h"
14148 #include <$ac_header>
14150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14151 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14153 egrep -v '^ *\+' conftest.er1
>conftest.err
14155 cat conftest.err
>&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } >/dev
/null
; then
14158 if test -s conftest.err
; then
14159 ac_cpp_err
=$ac_c_preproc_warn_flag
14166 if test -z "$ac_cpp_err"; then
14167 ac_header_preproc
=yes
14169 echo "$as_me: failed program was:" >&5
14170 cat conftest.
$ac_ext >&5
14171 ac_header_preproc
=no
14173 rm -f conftest.err conftest.
$ac_ext
14174 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14175 echo "${ECHO_T}$ac_header_preproc" >&6
14177 # So? What about this header?
14178 case $ac_header_compiler:$ac_header_preproc in
14180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14192 echo "$as_me:$LINENO: checking for $ac_header" >&5
14193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 eval "$as_ac_Header=$ac_header_preproc"
14199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14200 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14204 cat >>confdefs.h
<<_ACEOF
14205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14210 for ac_header
in kerberosIV
/krb.h
14212 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14214 echo "$as_me:$LINENO: checking for $ac_header" >&5
14215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14217 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14220 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14222 # Is the header compilable?
14223 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14224 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14225 cat >conftest.
$ac_ext <<_ACEOF
14226 #line $LINENO "configure"
14227 #include "confdefs.h"
14228 $ac_includes_default
14229 #include <$ac_header>
14231 rm -f conftest.
$ac_objext
14232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14233 (eval $ac_compile) 2>&5
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
14237 { ac_try
='test -s conftest.$ac_objext'
14238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14239 (eval $ac_try) 2>&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); }; }; then
14243 ac_header_compiler
=yes
14245 echo "$as_me: failed program was:" >&5
14246 cat conftest.
$ac_ext >&5
14247 ac_header_compiler
=no
14249 rm -f conftest.
$ac_objext conftest.
$ac_ext
14250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14251 echo "${ECHO_T}$ac_header_compiler" >&6
14253 # Is the header present?
14254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14256 cat >conftest.
$ac_ext <<_ACEOF
14257 #line $LINENO "configure"
14258 #include "confdefs.h"
14259 #include <$ac_header>
14261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14262 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14264 egrep -v '^ *\+' conftest.er1
>conftest.err
14266 cat conftest.err
>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); } >/dev
/null
; then
14269 if test -s conftest.err
; then
14270 ac_cpp_err
=$ac_c_preproc_warn_flag
14277 if test -z "$ac_cpp_err"; then
14278 ac_header_preproc
=yes
14280 echo "$as_me: failed program was:" >&5
14281 cat conftest.
$ac_ext >&5
14282 ac_header_preproc
=no
14284 rm -f conftest.err conftest.
$ac_ext
14285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14286 echo "${ECHO_T}$ac_header_preproc" >&6
14288 # So? What about this header?
14289 case $ac_header_compiler:$ac_header_preproc in
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14303 echo "$as_me:$LINENO: checking for $ac_header" >&5
14304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14306 echo $ECHO_N "(cached) $ECHO_C" >&6
14308 eval "$as_ac_Header=$ac_header_preproc"
14310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14315 cat >>confdefs.h
<<_ACEOF
14316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14321 for ac_header
in kerberos
/krb.h
14323 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14325 echo "$as_me:$LINENO: checking for $ac_header" >&5
14326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14333 # Is the header compilable?
14334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14336 cat >conftest.
$ac_ext <<_ACEOF
14337 #line $LINENO "configure"
14338 #include "confdefs.h"
14339 $ac_includes_default
14340 #include <$ac_header>
14342 rm -f conftest.
$ac_objext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344 (eval $ac_compile) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try
='test -s conftest.$ac_objext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 ac_header_compiler
=yes
14356 echo "$as_me: failed program was:" >&5
14357 cat conftest.
$ac_ext >&5
14358 ac_header_compiler
=no
14360 rm -f conftest.
$ac_objext conftest.
$ac_ext
14361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14362 echo "${ECHO_T}$ac_header_compiler" >&6
14364 # Is the header present?
14365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14367 cat >conftest.
$ac_ext <<_ACEOF
14368 #line $LINENO "configure"
14369 #include "confdefs.h"
14370 #include <$ac_header>
14372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14373 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14375 egrep -v '^ *\+' conftest.er1
>conftest.err
14377 cat conftest.err
>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } >/dev
/null
; then
14380 if test -s conftest.err
; then
14381 ac_cpp_err
=$ac_c_preproc_warn_flag
14388 if test -z "$ac_cpp_err"; then
14389 ac_header_preproc
=yes
14391 echo "$as_me: failed program was:" >&5
14392 cat conftest.
$ac_ext >&5
14393 ac_header_preproc
=no
14395 rm -f conftest.err conftest.
$ac_ext
14396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14397 echo "${ECHO_T}$ac_header_preproc" >&6
14399 # So? What about this header?
14400 case $ac_header_compiler:$ac_header_preproc in
14402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14405 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14414 echo "$as_me:$LINENO: checking for $ac_header" >&5
14415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14417 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 eval "$as_ac_Header=$ac_header_preproc"
14421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14426 cat >>confdefs.h
<<_ACEOF
14427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14444 for ac_header
in com_err.h
14446 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14448 echo "$as_me:$LINENO: checking for $ac_header" >&5
14449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14451 echo $ECHO_N "(cached) $ECHO_C" >&6
14453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14456 # Is the header compilable?
14457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14459 cat >conftest.
$ac_ext <<_ACEOF
14460 #line $LINENO "configure"
14461 #include "confdefs.h"
14462 $ac_includes_default
14463 #include <$ac_header>
14465 rm -f conftest.
$ac_objext
14466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14467 (eval $ac_compile) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); } &&
14471 { ac_try
='test -s conftest.$ac_objext'
14472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14473 (eval $ac_try) 2>&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; }; then
14477 ac_header_compiler
=yes
14479 echo "$as_me: failed program was:" >&5
14480 cat conftest.
$ac_ext >&5
14481 ac_header_compiler
=no
14483 rm -f conftest.
$ac_objext conftest.
$ac_ext
14484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14485 echo "${ECHO_T}$ac_header_compiler" >&6
14487 # Is the header present?
14488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14490 cat >conftest.
$ac_ext <<_ACEOF
14491 #line $LINENO "configure"
14492 #include "confdefs.h"
14493 #include <$ac_header>
14495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14496 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14498 egrep -v '^ *\+' conftest.er1
>conftest.err
14500 cat conftest.err
>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); } >/dev
/null
; then
14503 if test -s conftest.err
; then
14504 ac_cpp_err
=$ac_c_preproc_warn_flag
14511 if test -z "$ac_cpp_err"; then
14512 ac_header_preproc
=yes
14514 echo "$as_me: failed program was:" >&5
14515 cat conftest.
$ac_ext >&5
14516 ac_header_preproc
=no
14518 rm -f conftest.err conftest.
$ac_ext
14519 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14520 echo "${ECHO_T}$ac_header_preproc" >&6
14522 # So? What about this header?
14523 case $ac_header_compiler:$ac_header_preproc in
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14535 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14537 echo "$as_me:$LINENO: checking for $ac_header" >&5
14538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14542 eval "$as_ac_Header=$ac_header_preproc"
14544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14549 cat >>confdefs.h
<<_ACEOF
14550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14559 # Solaris requires -lintl if you want strerror (which calls dgettext)
14560 # to return localized messages.
14562 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
14563 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
14564 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 ac_check_lib_save_LIBS
=$LIBS
14568 LIBS
="-lintl $LIBS"
14569 cat >conftest.
$ac_ext <<_ACEOF
14570 #line $LINENO "configure"
14571 #include "confdefs.h"
14573 /* Override any gcc2 internal prototype to avoid an error. */
14577 /* We use char because int might match the return type of a gcc2
14578 builtin and then its argument prototype would still apply. */
14580 #ifdef F77_DUMMY_MAIN
14581 # ifdef __cplusplus
14584 int F77_DUMMY_MAIN() { return 1; }
14594 rm -f conftest.
$ac_objext conftest
$ac_exeext
14595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14596 (eval $ac_link) 2>&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try
='test -s conftest$ac_exeext'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; }; then
14606 ac_cv_lib_intl_dgettext
=yes
14608 echo "$as_me: failed program was:" >&5
14609 cat conftest.
$ac_ext >&5
14610 ac_cv_lib_intl_dgettext
=no
14612 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14613 LIBS
=$ac_check_lib_save_LIBS
14615 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
14616 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
14617 if test $ac_cv_lib_intl_dgettext = yes; then
14618 cat >>confdefs.h
<<_ACEOF
14619 #define HAVE_LIBINTL 1
14622 LIBS
="-lintl $LIBS"
14627 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
14628 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
14629 if test "${emacs_cv_localtime_cache+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14632 if test x
$ac_cv_func_tzset = xyes
; then
14633 if test "$cross_compiling" = yes; then
14634 # If we have tzset, assume the worst when cross-compiling.
14635 emacs_cv_localtime_cache
=yes
14637 cat >conftest.
$ac_ext <<_ACEOF
14638 #line $LINENO "configure"
14639 #include "confdefs.h"
14641 extern char **environ;
14645 for (to = from = environ; (*to = *from); from++)
14646 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
14649 char TZ_GMT0[] = "TZ=GMT0";
14650 char TZ_PST8[] = "TZ=PST8";
14653 time_t now = time ((time_t *) 0);
14654 int hour_GMT0, hour_unset;
14655 if (putenv (TZ_GMT0) != 0)
14657 hour_GMT0 = localtime (&now)->tm_hour;
14659 hour_unset = localtime (&now)->tm_hour;
14660 if (putenv (TZ_PST8) != 0)
14662 if (localtime (&now)->tm_hour == hour_GMT0)
14665 if (localtime (&now)->tm_hour != hour_unset)
14670 rm -f conftest
$ac_exeext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14672 (eval $ac_link) 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 emacs_cv_localtime_cache
=no
14683 echo "$as_me: program exited with status $ac_status" >&5
14684 echo "$as_me: failed program was:" >&5
14685 cat conftest.
$ac_ext >&5
14686 ( exit $ac_status )
14687 emacs_cv_localtime_cache
=yes
14689 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14692 # If we lack tzset, report that localtime does not cache TZ,
14693 # since we can't invalidate the cache if we don't have tzset.
14694 emacs_cv_localtime_cache
=no
14697 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
14698 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
14699 if test $emacs_cv_localtime_cache = yes; then
14701 cat >>confdefs.h
<<\_ACEOF
14702 #define LOCALTIME_CACHE 1
14707 if test "x$HAVE_TIMEVAL" = xyes
; then
14709 for ac_func
in gettimeofday
14711 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14712 echo "$as_me:$LINENO: checking for $ac_func" >&5
14713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14714 if eval "test \"\${$as_ac_var+set}\" = set"; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 cat >conftest.
$ac_ext <<_ACEOF
14718 #line $LINENO "configure"
14719 #include "confdefs.h"
14720 /* System header to define __stub macros and hopefully few prototypes,
14721 which can conflict with char $ac_func (); below. */
14722 #include <assert.h>
14723 /* Override any gcc2 internal prototype to avoid an error. */
14727 /* We use char because int might match the return type of a gcc2
14728 builtin and then its argument prototype would still apply. */
14732 #ifdef F77_DUMMY_MAIN
14733 # ifdef __cplusplus
14736 int F77_DUMMY_MAIN() { return 1; }
14741 /* The GNU C library defines this for functions which it implements
14742 to always fail with ENOSYS. Some functions are actually named
14743 something starting with __ and the normal name is an alias. */
14744 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14754 rm -f conftest.
$ac_objext conftest
$ac_exeext
14755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14756 (eval $ac_link) 2>&5
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } &&
14760 { ac_try
='test -s conftest$ac_exeext'
14761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762 (eval $ac_try) 2>&5
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); }; }; then
14766 eval "$as_ac_var=yes"
14768 echo "$as_me: failed program was:" >&5
14769 cat conftest.
$ac_ext >&5
14770 eval "$as_ac_var=no"
14772 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
14774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14776 if test `eval echo '${'$as_ac_var'}'` = yes; then
14777 cat >>confdefs.h
<<_ACEOF
14778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14784 if test $ac_cv_func_gettimeofday = yes; then
14785 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
14786 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
14787 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 cat >conftest.
$ac_ext <<_ACEOF
14791 #line $LINENO "configure"
14792 #include "confdefs.h"
14794 #ifdef TIME_WITH_SYS_TIME
14795 #include <sys/time.h>
14798 #ifdef HAVE_SYS_TIME_H
14799 #include <sys/time.h>
14804 #ifdef F77_DUMMY_MAIN
14805 # ifdef __cplusplus
14808 int F77_DUMMY_MAIN() { return 1; }
14813 struct timeval time;
14814 gettimeofday (&time, 0);
14819 rm -f conftest.
$ac_objext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14821 (eval $ac_compile) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try
='test -s conftest.$ac_objext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 emacs_cv_gettimeofday_two_arguments
=yes
14833 echo "$as_me: failed program was:" >&5
14834 cat conftest.
$ac_ext >&5
14835 emacs_cv_gettimeofday_two_arguments
=no
14837 rm -f conftest.
$ac_objext conftest.
$ac_ext
14839 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
14840 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
14841 if test $emacs_cv_gettimeofday_two_arguments = no
; then
14843 cat >>confdefs.h
<<\_ACEOF
14844 #define GETTIMEOFDAY_ONE_ARGUMENT 1
14851 if test "$ac_cv_func_gettimeofday" = yes; then
14852 echo "$as_me:$LINENO: checking for struct timezone" >&5
14853 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
14854 if test "${emacs_cv_struct_timezone+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 cat >conftest.
$ac_ext <<_ACEOF
14858 #line $LINENO "configure"
14859 #include "confdefs.h"
14860 #include <sys/time.h>
14861 #ifdef F77_DUMMY_MAIN
14862 # ifdef __cplusplus
14865 int F77_DUMMY_MAIN() { return 1; }
14870 struct timezone tz;
14875 rm -f conftest.
$ac_objext
14876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14877 (eval $ac_compile) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try
='test -s conftest.$ac_objext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 if test "$cross_compiling" = yes; then
14888 emacs_cv_struct_timezone
=yes
14890 cat >conftest.
$ac_ext <<_ACEOF
14891 #line $LINENO "configure"
14892 #include "confdefs.h"
14894 #ifdef TIME_WITH_SYS_TIME
14895 #include <sys/time.h>
14898 #ifdef HAVE_SYS_TIME_H
14899 #include <sys/time.h>
14905 struct timeval time;
14906 struct timezone dummy;
14907 exit (gettimeofday (&time, &dummy));
14910 rm -f conftest
$ac_exeext
14911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14912 (eval $ac_link) 2>&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 emacs_cv_struct_timezone
=yes
14923 echo "$as_me: program exited with status $ac_status" >&5
14924 echo "$as_me: failed program was:" >&5
14925 cat conftest.
$ac_ext >&5
14926 ( exit $ac_status )
14927 emacs_cv_struct_timezone
=no
14929 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14932 echo "$as_me: failed program was:" >&5
14933 cat conftest.
$ac_ext >&5
14934 emacs_cv_struct_timezone
=no
14936 rm -f conftest.
$ac_objext conftest.
$ac_ext
14938 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
14939 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
14943 echo "$as_me:$LINENO: checking for socket" >&5
14944 echo $ECHO_N "checking for socket... $ECHO_C" >&6
14945 if test "${ac_cv_func_socket+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 cat >conftest.
$ac_ext <<_ACEOF
14949 #line $LINENO "configure"
14950 #include "confdefs.h"
14951 /* System header to define __stub macros and hopefully few prototypes,
14952 which can conflict with char socket (); below. */
14953 #include <assert.h>
14954 /* Override any gcc2 internal prototype to avoid an error. */
14958 /* We use char because int might match the return type of a gcc2
14959 builtin and then its argument prototype would still apply. */
14963 #ifdef F77_DUMMY_MAIN
14964 # ifdef __cplusplus
14967 int F77_DUMMY_MAIN() { return 1; }
14972 /* The GNU C library defines this for functions which it implements
14973 to always fail with ENOSYS. Some functions are actually named
14974 something starting with __ and the normal name is an alias. */
14975 #if defined (__stub_socket) || defined (__stub___socket)
14985 rm -f conftest.
$ac_objext conftest
$ac_exeext
14986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14987 (eval $ac_link) 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } &&
14991 { ac_try
='test -s conftest$ac_exeext'
14992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14993 (eval $ac_try) 2>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); }; }; then
14997 ac_cv_func_socket
=yes
14999 echo "$as_me: failed program was:" >&5
15000 cat conftest.
$ac_ext >&5
15001 ac_cv_func_socket
=no
15003 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15005 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15006 echo "${ECHO_T}$ac_cv_func_socket" >&6
15007 if test $ac_cv_func_socket = yes; then
15013 if test $ok_so_far = yes; then
15014 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15015 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15016 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15017 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15021 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15023 # Is the header compilable?
15024 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
15025 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
15026 cat >conftest.
$ac_ext <<_ACEOF
15027 #line $LINENO "configure"
15028 #include "confdefs.h"
15029 $ac_includes_default
15030 #include <netinet/in.h>
15032 rm -f conftest.
$ac_objext
15033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15034 (eval $ac_compile) 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
15038 { ac_try
='test -s conftest.$ac_objext'
15039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15040 (eval $ac_try) 2>&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 (exit $ac_status); }; }; then
15044 ac_header_compiler
=yes
15046 echo "$as_me: failed program was:" >&5
15047 cat conftest.
$ac_ext >&5
15048 ac_header_compiler
=no
15050 rm -f conftest.
$ac_objext conftest.
$ac_ext
15051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15052 echo "${ECHO_T}$ac_header_compiler" >&6
15054 # Is the header present?
15055 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
15056 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
15057 cat >conftest.
$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15059 #include "confdefs.h"
15060 #include <netinet/in.h>
15062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15063 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15065 egrep -v '^ *\+' conftest.er1
>conftest.err
15067 cat conftest.err
>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } >/dev
/null
; then
15070 if test -s conftest.err
; then
15071 ac_cpp_err
=$ac_c_preproc_warn_flag
15078 if test -z "$ac_cpp_err"; then
15079 ac_header_preproc
=yes
15081 echo "$as_me: failed program was:" >&5
15082 cat conftest.
$ac_ext >&5
15083 ac_header_preproc
=no
15085 rm -f conftest.err conftest.
$ac_ext
15086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15087 echo "${ECHO_T}$ac_header_preproc" >&6
15089 # So? What about this header?
15090 case $ac_header_compiler:$ac_header_preproc in
15092 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
15093 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15094 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15095 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15097 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
15098 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
15100 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
15101 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
15102 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;};;
15104 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
15105 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
15106 if test "${ac_cv_header_netinet_in_h+set}" = set; then
15107 echo $ECHO_N "(cached) $ECHO_C" >&6
15109 ac_cv_header_netinet_in_h
=$ac_header_preproc
15111 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
15112 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
15115 if test $ac_cv_header_netinet_in_h = yes; then
15123 if test $ok_so_far = yes; then
15124 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15125 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15126 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15127 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15131 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15133 # Is the header compilable?
15134 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
15135 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
15136 cat >conftest.
$ac_ext <<_ACEOF
15137 #line $LINENO "configure"
15138 #include "confdefs.h"
15139 $ac_includes_default
15140 #include <arpa/inet.h>
15142 rm -f conftest.
$ac_objext
15143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15144 (eval $ac_compile) 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } &&
15148 { ac_try
='test -s conftest.$ac_objext'
15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15150 (eval $ac_try) 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; }; then
15154 ac_header_compiler
=yes
15156 echo "$as_me: failed program was:" >&5
15157 cat conftest.
$ac_ext >&5
15158 ac_header_compiler
=no
15160 rm -f conftest.
$ac_objext conftest.
$ac_ext
15161 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15162 echo "${ECHO_T}$ac_header_compiler" >&6
15164 # Is the header present?
15165 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
15166 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
15167 cat >conftest.
$ac_ext <<_ACEOF
15168 #line $LINENO "configure"
15169 #include "confdefs.h"
15170 #include <arpa/inet.h>
15172 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15173 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15175 egrep -v '^ *\+' conftest.er1
>conftest.err
15177 cat conftest.err
>&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } >/dev
/null
; then
15180 if test -s conftest.err
; then
15181 ac_cpp_err
=$ac_c_preproc_warn_flag
15188 if test -z "$ac_cpp_err"; then
15189 ac_header_preproc
=yes
15191 echo "$as_me: failed program was:" >&5
15192 cat conftest.
$ac_ext >&5
15193 ac_header_preproc
=no
15195 rm -f conftest.err conftest.
$ac_ext
15196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15197 echo "${ECHO_T}$ac_header_preproc" >&6
15199 # So? What about this header?
15200 case $ac_header_compiler:$ac_header_preproc in
15202 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
15203 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15204 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15205 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15207 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
15208 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
15210 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
15212 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;};;
15214 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
15215 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
15216 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 ac_cv_header_arpa_inet_h
=$ac_header_preproc
15221 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
15222 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
15225 if test $ac_cv_header_arpa_inet_h = yes; then
15233 if test $ok_so_far = yes; then
15235 cat >>confdefs.h
<<\_ACEOF
15236 #define HAVE_INET_SOCKETS 1
15241 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
15243 cat >>confdefs.h
<<\_ACEOF
15244 #define HAVE_AIX_SMT_EXP 1
15249 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
15250 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
15251 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
15252 echo "$as_me:$LINENO: result: yes" >&5
15253 echo "${ECHO_T}yes" >&6
15255 cat >>confdefs.h
<<\_ACEOF
15256 #define HAVE_DEV_PTMX 1
15260 echo "$as_me:$LINENO: result: no" >&5
15261 echo "${ECHO_T}no" >&6
15264 echo "$as_me:$LINENO: checking for pid_t" >&5
15265 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15266 if test "${ac_cv_type_pid_t+set}" = set; then
15267 echo $ECHO_N "(cached) $ECHO_C" >&6
15269 cat >conftest.
$ac_ext <<_ACEOF
15270 #line $LINENO "configure"
15271 #include "confdefs.h"
15272 $ac_includes_default
15273 #ifdef F77_DUMMY_MAIN
15274 # ifdef __cplusplus
15277 int F77_DUMMY_MAIN() { return 1; }
15284 if (sizeof (pid_t))
15290 rm -f conftest.
$ac_objext
15291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15292 (eval $ac_compile) 2>&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); } &&
15296 { ac_try
='test -s conftest.$ac_objext'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15302 ac_cv_type_pid_t
=yes
15304 echo "$as_me: failed program was:" >&5
15305 cat conftest.
$ac_ext >&5
15306 ac_cv_type_pid_t
=no
15308 rm -f conftest.
$ac_objext conftest.
$ac_ext
15310 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15311 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15312 if test $ac_cv_type_pid_t = yes; then
15316 cat >>confdefs.h
<<_ACEOF
15324 for ac_header
in unistd.h vfork.h
15326 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15328 echo "$as_me:$LINENO: checking for $ac_header" >&5
15329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15331 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15334 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15336 # Is the header compilable?
15337 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15339 cat >conftest.
$ac_ext <<_ACEOF
15340 #line $LINENO "configure"
15341 #include "confdefs.h"
15342 $ac_includes_default
15343 #include <$ac_header>
15345 rm -f conftest.
$ac_objext
15346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15347 (eval $ac_compile) 2>&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } &&
15351 { ac_try
='test -s conftest.$ac_objext'
15352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15353 (eval $ac_try) 2>&5
15355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_header_compiler
=yes
15359 echo "$as_me: failed program was:" >&5
15360 cat conftest.
$ac_ext >&5
15361 ac_header_compiler
=no
15363 rm -f conftest.
$ac_objext conftest.
$ac_ext
15364 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15365 echo "${ECHO_T}$ac_header_compiler" >&6
15367 # Is the header present?
15368 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15370 cat >conftest.
$ac_ext <<_ACEOF
15371 #line $LINENO "configure"
15372 #include "confdefs.h"
15373 #include <$ac_header>
15375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15376 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15378 egrep -v '^ *\+' conftest.er1
>conftest.err
15380 cat conftest.err
>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } >/dev
/null
; then
15383 if test -s conftest.err
; then
15384 ac_cpp_err
=$ac_c_preproc_warn_flag
15391 if test -z "$ac_cpp_err"; then
15392 ac_header_preproc
=yes
15394 echo "$as_me: failed program was:" >&5
15395 cat conftest.
$ac_ext >&5
15396 ac_header_preproc
=no
15398 rm -f conftest.err conftest.
$ac_ext
15399 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15400 echo "${ECHO_T}$ac_header_preproc" >&6
15402 # So? What about this header?
15403 case $ac_header_compiler:$ac_header_preproc in
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
15417 echo "$as_me:$LINENO: checking for $ac_header" >&5
15418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15420 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 eval "$as_ac_Header=$ac_header_preproc"
15424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15429 cat >>confdefs.h
<<_ACEOF
15430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15439 for ac_func
in fork vfork
15441 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15442 echo "$as_me:$LINENO: checking for $ac_func" >&5
15443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15444 if eval "test \"\${$as_ac_var+set}\" = set"; then
15445 echo $ECHO_N "(cached) $ECHO_C" >&6
15447 cat >conftest.
$ac_ext <<_ACEOF
15448 #line $LINENO "configure"
15449 #include "confdefs.h"
15450 /* System header to define __stub macros and hopefully few prototypes,
15451 which can conflict with char $ac_func (); below. */
15452 #include <assert.h>
15453 /* Override any gcc2 internal prototype to avoid an error. */
15457 /* We use char because int might match the return type of a gcc2
15458 builtin and then its argument prototype would still apply. */
15462 #ifdef F77_DUMMY_MAIN
15463 # ifdef __cplusplus
15466 int F77_DUMMY_MAIN() { return 1; }
15471 /* The GNU C library defines this for functions which it implements
15472 to always fail with ENOSYS. Some functions are actually named
15473 something starting with __ and the normal name is an alias. */
15474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15484 rm -f conftest.
$ac_objext conftest
$ac_exeext
15485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15486 (eval $ac_link) 2>&5
15488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15489 (exit $ac_status); } &&
15490 { ac_try
='test -s conftest$ac_exeext'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; }; then
15496 eval "$as_ac_var=yes"
15498 echo "$as_me: failed program was:" >&5
15499 cat conftest.
$ac_ext >&5
15500 eval "$as_ac_var=no"
15502 rm -f conftest.
$ac_objext conftest
$ac_exeext conftest.
$ac_ext
15504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15505 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15506 if test `eval echo '${'$as_ac_var'}'` = yes; then
15507 cat >>confdefs.h
<<_ACEOF
15508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15514 ac_cv_func_fork_works
=$ac_cv_func_fork
15515 if test "x$ac_cv_func_fork" = xyes
; then
15516 echo "$as_me:$LINENO: checking for working fork" >&5
15517 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
15518 if test "${ac_cv_func_fork_works+set}" = set; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15521 if test "$cross_compiling" = yes; then
15522 ac_cv_func_fork_works
=cross
15524 cat >conftest.
$ac_ext <<_ACEOF
15525 /* By Ruediger Kuhlmann. */
15526 #include <sys/types.h>
15528 # include <unistd.h>
15530 /* Some systems only have a dummy stub for fork() */
15538 rm -f conftest
$ac_exeext
15539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15540 (eval $ac_link) 2>&5
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15545 (eval $ac_try) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); }; }; then
15549 ac_cv_func_fork_works
=yes
15551 echo "$as_me: program exited with status $ac_status" >&5
15552 echo "$as_me: failed program was:" >&5
15553 cat conftest.
$ac_ext >&5
15554 ( exit $ac_status )
15555 ac_cv_func_fork_works
=no
15557 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15560 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
15561 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
15564 if test "x$ac_cv_func_fork_works" = xcross
; then
15566 *-*-amigaos* |
*-*-msdosdjgpp*)
15567 # Override, as these systems have only a dummy fork() stub
15568 ac_cv_func_fork_works
=no
15571 ac_cv_func_fork_works
=yes
15574 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
15575 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
15577 ac_cv_func_vfork_works
=$ac_cv_func_vfork
15578 if test "x$ac_cv_func_vfork" = xyes
; then
15579 echo "$as_me:$LINENO: checking for working vfork" >&5
15580 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
15581 if test "${ac_cv_func_vfork_works+set}" = set; then
15582 echo $ECHO_N "(cached) $ECHO_C" >&6
15584 if test "$cross_compiling" = yes; then
15585 ac_cv_func_vfork_works
=cross
15587 cat >conftest.
$ac_ext <<_ACEOF
15588 #line $LINENO "configure"
15589 #include "confdefs.h"
15590 /* Thanks to Paul Eggert for this test. */
15592 #include <sys/types.h>
15593 #include <sys/stat.h>
15595 # include <unistd.h>
15598 # include <vfork.h>
15600 /* On some sparc systems, changes by the child to local and incoming
15601 argument registers are propagated back to the parent. The compiler
15602 is told about this with #include <vfork.h>, but some compilers
15603 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
15604 static variable whose address is put into a register that is
15605 clobbered by the vfork. */
15608 sparc_address_test (int arg)
15610 sparc_address_test (arg) int arg;
15613 static pid_t child;
15631 pid_t parent = getpid ();
15634 sparc_address_test ();
15639 /* Here is another test for sparc vfork register problems. This
15640 test uses lots of local variables, at least as many local
15641 variables as main has allocated so far including compiler
15642 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
15643 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
15644 reuse the register of parent for one of the local variables,
15645 since it will think that parent can't possibly be used any more
15646 in this routine. Assigning to the local variable will thus
15647 munge parent in the parent process. */
15649 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
15650 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
15651 /* Convince the compiler that p..p7 are live; otherwise, it might
15652 use the same hardware register for all 8 local variables. */
15653 if (p != p1 || p != p2 || p != p3 || p != p4
15654 || p != p5 || p != p6 || p != p7)
15657 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
15658 from child file descriptors. If the child closes a descriptor
15659 before it execs or exits, this munges the parent's descriptor
15660 as well. Test for this by closing stdout in the child. */
15661 _exit(close(fileno(stdout)) != 0);
15666 while (wait(&status) != child)
15669 /* Was there some problem with vforking? */
15672 /* Did the child fail? (This shouldn't happen.) */
15675 /* Did the vfork/compiler bug occur? */
15676 || parent != getpid()
15678 /* Did the file descriptor bug occur? */
15679 || fstat(fileno(stdout), &st) != 0
15684 rm -f conftest
$ac_exeext
15685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15686 (eval $ac_link) 2>&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15691 (eval $ac_try) 2>&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); }; }; then
15695 ac_cv_func_vfork_works
=yes
15697 echo "$as_me: program exited with status $ac_status" >&5
15698 echo "$as_me: failed program was:" >&5
15699 cat conftest.
$ac_ext >&5
15700 ( exit $ac_status )
15701 ac_cv_func_vfork_works
=no
15703 rm -f core core.
* *.core conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15706 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
15707 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
15710 if test "x$ac_cv_func_fork_works" = xcross
; then
15711 ac_cv_func_vfork_works
=ac_cv_func_vfork
15712 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
15713 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
15716 if test "x$ac_cv_func_vfork_works" = xyes
; then
15718 cat >>confdefs.h
<<\_ACEOF
15719 #define HAVE_WORKING_VFORK 1
15724 cat >>confdefs.h
<<\_ACEOF
15729 if test "x$ac_cv_func_fork_works" = xyes
; then
15731 cat >>confdefs.h
<<\_ACEOF
15732 #define HAVE_WORKING_FORK 1
15738 # Fixme: This should be replaced when we have autoconf 2.14.
15739 echo "$as_me:$LINENO: checking for size_t" >&5
15740 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15741 if test "${ac_cv_type_size_t+set}" = set; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15744 cat >conftest.
$ac_ext <<_ACEOF
15745 #line $LINENO "configure"
15746 #include "confdefs.h"
15747 $ac_includes_default
15748 #ifdef F77_DUMMY_MAIN
15749 # ifdef __cplusplus
15752 int F77_DUMMY_MAIN() { return 1; }
15759 if (sizeof (size_t))
15765 rm -f conftest.
$ac_objext
15766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15767 (eval $ac_compile) 2>&5
15769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15770 (exit $ac_status); } &&
15771 { ac_try
='test -s conftest.$ac_objext'
15772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15773 (eval $ac_try) 2>&5
15775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); }; }; then
15777 ac_cv_type_size_t
=yes
15779 echo "$as_me: failed program was:" >&5
15780 cat conftest.
$ac_ext >&5
15781 ac_cv_type_size_t
=no
15783 rm -f conftest.
$ac_objext conftest.
$ac_ext
15785 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15786 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15787 if test $ac_cv_type_size_t = yes; then
15791 cat >>confdefs.h
<<_ACEOF
15792 #define size_t unsigned
15798 # Set up the CFLAGS for real compilation, so we can substitute it.
15799 CFLAGS
="$REAL_CFLAGS"
15800 CPPFLAGS
="$REAL_CPPFLAGS"
15802 #### Find out which version of Emacs this is.
15803 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
15804 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
15805 if test x
"${version}" = x
; then
15806 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
15807 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
15808 { (exit 1); exit 1; }; }
15811 ### Specify what sort of things we'll be editing into Makefile and config.h.
15812 ### Use configuration here uncanonicalized to avoid exceeding size limits.
15847 cat >>confdefs.h
<<_ACEOF
15848 #define EMACS_CONFIGURATION "${canonical}"
15852 cat >>confdefs.h
<<_ACEOF
15853 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
15857 cat >>confdefs.h
<<_ACEOF
15858 #define config_machfile "${machfile}"
15862 cat >>confdefs.h
<<_ACEOF
15863 #define config_opsysfile "${opsysfile}"
15867 cat >>confdefs.h
<<_ACEOF
15868 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
15872 cat >>confdefs.h
<<_ACEOF
15873 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
15877 cat >>confdefs.h
<<_ACEOF
15878 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
15882 cat >>confdefs.h
<<_ACEOF
15883 #define UNEXEC_SRC ${UNEXEC_SRC}
15887 if test "${HAVE_X_WINDOWS}" = "yes" ; then
15889 cat >>confdefs.h
<<\_ACEOF
15890 #define HAVE_X_WINDOWS 1
15894 if test "${USE_X_TOOLKIT}" != "none" ; then
15896 cat >>confdefs.h
<<\_ACEOF
15897 #define USE_X_TOOLKIT 1
15901 if test "${HAVE_X11}" = "yes" ; then
15903 cat >>confdefs.h
<<\_ACEOF
15908 if test "${HAVE_XFREE386}" = "yes" ; then
15910 cat >>confdefs.h
<<\_ACEOF
15911 #define HAVE_XFREE386 1
15915 if test "${HAVE_MENUS}" = "yes" ; then
15917 cat >>confdefs.h
<<\_ACEOF
15918 #define HAVE_MENUS 1
15922 if test "${GNU_MALLOC}" = "yes" ; then
15924 cat >>confdefs.h
<<\_ACEOF
15925 #define GNU_MALLOC 1
15929 if test "${REL_ALLOC}" = "yes" ; then
15931 cat >>confdefs.h
<<\_ACEOF
15932 #define REL_ALLOC 1
15938 for ac_header
in nlist.h
15940 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15942 echo "$as_me:$LINENO: checking for $ac_header" >&5
15943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15945 echo $ECHO_N "(cached) $ECHO_C" >&6
15947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15950 # Is the header compilable?
15951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15953 cat >conftest.
$ac_ext <<_ACEOF
15954 #line $LINENO "configure"
15955 #include "confdefs.h"
15956 $ac_includes_default
15957 #include <$ac_header>
15959 rm -f conftest.
$ac_objext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961 (eval $ac_compile) 2>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); } &&
15965 { ac_try
='test -s conftest.$ac_objext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_header_compiler
=yes
15973 echo "$as_me: failed program was:" >&5
15974 cat conftest.
$ac_ext >&5
15975 ac_header_compiler
=no
15977 rm -f conftest.
$ac_objext conftest.
$ac_ext
15978 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15979 echo "${ECHO_T}$ac_header_compiler" >&6
15981 # Is the header present?
15982 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15984 cat >conftest.
$ac_ext <<_ACEOF
15985 #line $LINENO "configure"
15986 #include "confdefs.h"
15987 #include <$ac_header>
15989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15990 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15992 egrep -v '^ *\+' conftest.er1
>conftest.err
15994 cat conftest.err
>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } >/dev
/null
; then
15997 if test -s conftest.err
; then
15998 ac_cpp_err
=$ac_c_preproc_warn_flag
16005 if test -z "$ac_cpp_err"; then
16006 ac_header_preproc
=yes
16008 echo "$as_me: failed program was:" >&5
16009 cat conftest.
$ac_ext >&5
16010 ac_header_preproc
=no
16012 rm -f conftest.err conftest.
$ac_ext
16013 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16014 echo "${ECHO_T}$ac_header_preproc" >&6
16016 # So? What about this header?
16017 case $ac_header_compiler:$ac_header_preproc in
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16020 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
16031 echo "$as_me:$LINENO: checking for $ac_header" >&5
16032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 eval "$as_ac_Header=$ac_header_preproc"
16038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16043 cat >>confdefs.h
<<_ACEOF
16044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16047 cat >>confdefs.h
<<\_ACEOF
16048 #define NLIST_STRUCT 1
16060 #### Report on what we decided to do.
16062 Configured for \`${canonical}'.
16064 Where should the build process find the source code? ${srcdir}
16065 What operating system and machine description files should Emacs use?
16066 \`${opsysfile}' and \`${machfile}'
16067 What compiler should emacs be built with? ${CC} ${CFLAGS}
16068 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
16069 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
16070 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
16071 What window system should Emacs use? ${window_system}
16072 What toolkit should Emacs use? ${USE_X_TOOLKIT}
16073 Should Emacs use a shared game state directory? ${gamedir}"
16075 if test -n "${x_includes}"; then
16076 echo " Where do we find X Windows header files? ${x_includes}"
16078 echo " Where do we find X Windows header files? Standard dirs"
16080 if test -n "${x_libraries}"; then
16081 echo " Where do we find X Windows libraries? ${x_libraries}"
16083 echo " Where do we find X Windows libraries? Standard dirs"
16086 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
16087 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
16088 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
16089 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
16090 echo " Does Emacs use -lungif? ${HAVE_GIF}"
16091 echo " Does Emacs use -lpng? ${HAVE_PNG}"
16092 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
16095 # Remove any trailing slashes in these variables.
16096 test "${prefix}" != NONE
&&
16097 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
16098 test "${exec_prefix}" != NONE
&&
16099 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
16101 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
16102 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
16103 ## from Makefile.c can correctly provide the arg `-traditional' to the
16106 cat >conftest.
$ac_ext <<_ACEOF
16107 #line $LINENO "configure"
16108 #include "confdefs.h"
16111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16112 egrep "yes..yes" >/dev
/null
2>&1; then
16113 CPP_NEED_TRADITIONAL
=no
16115 CPP_NEED_TRADITIONAL
=yes
16120 ac_config_files
="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
16121 ac_config_commands
="$ac_config_commands default"
16122 cat >confcache
<<\_ACEOF
16123 # This file is a shell script that caches the results of configure
16124 # tests run on this system so they can be shared between configure
16125 # scripts and configure runs, see configure's option --config-cache.
16126 # It is not useful on other systems. If it contains results you don't
16127 # want to keep, you may remove or edit it.
16129 # config.status only pays attention to the cache file if you give it
16130 # the --recheck option to rerun configure.
16132 # `ac_cv_env_foo' variables (set or unset) will be overriden when
16133 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16134 # following values.
16138 # The following way of writing the cache mishandles newlines in values,
16139 # but we know of no workaround that is simple, portable, and efficient.
16140 # So, don't put newlines in cache variables' values.
16141 # Ultrix sh set writes to stderr and can't be redirected directly,
16142 # and sets the high bit in the cache file unless we assign to the vars.
16145 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16147 # `set' does not quote correctly, so add quotes (double-quote
16148 # substitution turns \\\\ into \\, and sed turns \\ into \).
16151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16154 # `set' quotes correctly as required by POSIX, so do not add quotes.
16156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16165 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16167 if cmp -s $cache_file confcache
; then :; else
16168 if test -w $cache_file; then
16169 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16170 cat confcache
>$cache_file
16172 echo "not updating unwritable cache $cache_file"
16177 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
16178 # Let make expand exec_prefix.
16179 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
16181 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16182 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16183 # trailing colons and then remove the whole line if VPATH becomes empty
16184 # (actually we leave an empty line to preserve line numbers).
16185 if test "x$srcdir" = x.
; then
16186 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16187 s/:*\$(srcdir):*/:/;
16188 s/:*\${srcdir}:*/:/;
16190 s/^\([^=]*=[ ]*\):*/\1/;
16196 DEFS
=-DHAVE_CONFIG_H
16199 : ${CONFIG_STATUS=./config.status}
16200 ac_clean_files_save
=$ac_clean_files
16201 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
16202 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16203 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16204 cat >$CONFIG_STATUS <<_ACEOF
16206 # Generated by $as_me.
16207 # Run this file to recreate the current configuration.
16208 # Compiler output produced by configure, useful for debugging
16209 # configure, is in config.log if it exists.
16212 SHELL=\${CONFIG_SHELL-$SHELL}
16215 cat >>$CONFIG_STATUS <<\_ACEOF
16217 ## --------------------- ##
16218 ## M4sh Initialization. ##
16219 ## --------------------- ##
16221 # Be Bourne compatible
16222 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16225 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
16230 # Support unset when possible.
16231 if (FOO
=FOO
; unset FOO
) >/dev
/null
2>&1; then
16237 (set +x
; test -n "`(LANG=C; export LANG) 2>&1`") &&
16238 { $as_unset LANG ||
test "${LANG+set}" != set; } ||
16239 { LANG
=C
; export LANG
; }
16240 (set +x
; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16241 { $as_unset LC_ALL ||
test "${LC_ALL+set}" != set; } ||
16242 { LC_ALL
=C
; export LC_ALL
; }
16243 (set +x
; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16244 { $as_unset LC_TIME ||
test "${LC_TIME+set}" != set; } ||
16245 { LC_TIME
=C
; export LC_TIME
; }
16246 (set +x
; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16247 { $as_unset LC_CTYPE ||
test "${LC_CTYPE+set}" != set; } ||
16248 { LC_CTYPE
=C
; export LC_CTYPE
; }
16249 (set +x
; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16250 { $as_unset LANGUAGE ||
test "${LANGUAGE+set}" != set; } ||
16251 { LANGUAGE
=C
; export LANGUAGE
; }
16252 (set +x
; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16253 { $as_unset LC_COLLATE ||
test "${LC_COLLATE+set}" != set; } ||
16254 { LC_COLLATE
=C
; export LC_COLLATE
; }
16255 (set +x
; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16256 { $as_unset LC_NUMERIC ||
test "${LC_NUMERIC+set}" != set; } ||
16257 { LC_NUMERIC
=C
; export LC_NUMERIC
; }
16258 (set +x
; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16259 { $as_unset LC_MESSAGES ||
test "${LC_MESSAGES+set}" != set; } ||
16260 { LC_MESSAGES
=C
; export LC_MESSAGES
; }
16263 # Name of the executable.
16264 as_me
=`(basename "$0") 2>/dev/null ||
16265 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16266 X"$0" : 'X\(//\)$' \| \
16267 X"$0" : 'X\(/\)$' \| \
16268 . : '\(.\)' 2>/dev/null ||
16270 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16271 /^X\/\(\/\/\)$/{ s//\1/; q; }
16272 /^X\/\(\/\).*/{ s//\1/; q; }
16275 # PATH needs CR, and LINENO needs CR and PATH.
16276 # Avoid depending upon Character Ranges.
16277 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
16278 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16279 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
16280 as_cr_digits
='0123456789'
16281 as_cr_alnum
=$as_cr_Letters$as_cr_digits
16283 # The user is always right.
16284 if test "${PATH_SEPARATOR+set}" != set; then
16285 echo "#! /bin/sh" >conftest.sh
16286 echo "exit 0" >>conftest.sh
16287 chmod +x conftest.sh
16288 if (PATH
=".;."; conftest.sh
) >/dev
/null
2>&1; then
16297 as_lineno_1
=$LINENO
16298 as_lineno_2
=$LINENO
16299 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
16300 test "x$as_lineno_1" != "x$as_lineno_2" &&
16301 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
16302 # Find who we are. Look in the path if we contain no path at all
16305 *[\\/]* ) as_myself
=$0 ;;
16306 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16307 for as_dir
in $PATH
16310 test -z "$as_dir" && as_dir
=.
16311 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
16316 # We did not find ourselves, most probably we were run as `sh COMMAND'
16317 # in which case we are not to be found in the path.
16318 if test "x$as_myself" = x
; then
16321 if test ! -f "$as_myself"; then
16322 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16323 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16324 { (exit 1); exit 1; }; }
16326 case $CONFIG_SHELL in
16328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
16329 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
16332 test -z "$as_dir" && as_dir
=.
16333 for as_base
in sh bash ksh sh5
; do
16336 if ("$as_dir/$as_base" -c '
16337 as_lineno_1=$LINENO
16338 as_lineno_2=$LINENO
16339 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16340 test "x$as_lineno_1" != "x$as_lineno_2" &&
16341 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
16342 CONFIG_SHELL
=$as_dir/$as_base
16343 export CONFIG_SHELL
16344 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16352 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16353 # uniformly replaced by the line number. The first 'sed' inserts a
16354 # line-number line before each line; the second 'sed' does the real
16355 # work. The second script uses 'N' to pair each line-number line
16356 # with the numbered line, and appends trailing '-' during
16357 # substitution so that $LINENO is not a special case at line end.
16358 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16359 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16360 sed '=' <$as_myself |
16365 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16368 s,^['$as_cr_digits']*\n,,
16369 ' >$as_me.lineno
&&
16370 chmod +x
$as_me.lineno ||
16371 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16372 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16373 { (exit 1); exit 1; }; }
16375 # Don't try to exec as it changes $[0], causing all sort of problems
16376 # (the dirname of $[0] is not the place where we might find the
16377 # original and so on. Autoconf is especially sensible to this).
16379 # Exit status is that of the last command.
16384 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16385 *c
*,-n*) ECHO_N
= ECHO_C
='
16387 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
16388 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
16391 if expr a
: '\(a\)' >/dev
/null
2>&1; then
16397 rm -f conf$$ conf$$.exe conf$$.
file
16399 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
16400 # We could just check for DJGPP; but this test a) works b) is more generic
16401 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16402 if test -f conf$$.exe
; then
16403 # Don't use ln at all; we don't have any links
16408 elif ln conf$$.
file conf$$
2>/dev
/null
; then
16413 rm -f conf$$ conf$$.exe conf$$.
file
16415 as_executable_p
="test -f"
16417 # Sed expression to map a string onto a valid CPP name.
16418 as_tr_cpp
="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16420 # Sed expression to map a string onto a valid variable name.
16421 as_tr_sh
="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16425 # We need space, tab and new line, in precisely that order.
16431 $as_unset CDPATH ||
test "${CDPATH+set}" != set ||
{ CDPATH
=$PATH_SEPARATOR; export CDPATH
; }
16435 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16436 # report actual input values of CONFIG_FILES etc. instead of their
16437 # values after options handling. Logging --version etc. is OK.
16441 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16442 ## Running $as_me. ##
16447 This file was extended by $as_me, which was
16448 generated by GNU Autoconf 2.53. Invocation command line was
16450 CONFIG_FILES = $CONFIG_FILES
16451 CONFIG_HEADERS = $CONFIG_HEADERS
16452 CONFIG_LINKS = $CONFIG_LINKS
16453 CONFIG_COMMANDS = $CONFIG_COMMANDS
16457 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16461 # Files that config.status was made for.
16462 if test -n "$ac_config_files"; then
16463 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16466 if test -n "$ac_config_headers"; then
16467 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16470 if test -n "$ac_config_links"; then
16471 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16474 if test -n "$ac_config_commands"; then
16475 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16478 cat >>$CONFIG_STATUS <<\_ACEOF
16481 \`$as_me' instantiates files from templates according to the
16482 current configuration.
16484 Usage: $0 [OPTIONS] [FILE]...
16486 -h, --help print this help, then exit
16487 -V, --version print version number, then exit
16488 -d, --debug don't remove temporary files
16489 --recheck update $as_me by reconfiguring in the same conditions
16490 --file=FILE[:TEMPLATE]
16491 instantiate the configuration file FILE
16492 --header=FILE[:TEMPLATE]
16493 instantiate the configuration header FILE
16495 Configuration files:
16498 Configuration headers:
16501 Configuration commands:
16504 Report bugs to <bug-autoconf@gnu.org>."
16507 cat >>$CONFIG_STATUS <<_ACEOF
16510 configured by $0, generated by GNU Autoconf 2.53,
16511 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16513 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16514 Free Software Foundation, Inc.
16515 This config.status script is free software; the Free Software Foundation
16516 gives unlimited permission to copy, distribute and modify it."
16521 cat >>$CONFIG_STATUS <<\_ACEOF
16522 # If no file are specified by the user, then we need to provide default
16523 # value. By we need to know if files were specified by the user.
16529 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
16530 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
16532 set dummy
"$ac_option" "$ac_optarg" ${1+"$@"}
16536 *) # This is not an option, so the user has probably given explicit
16538 ac_need_defaults
=false
;;
16542 # Handling of the options.
16544 cat >>$CONFIG_STATUS <<_ACEOF
16545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16546 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16547 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16549 cat >>$CONFIG_STATUS <<\_ACEOF
16550 --version |
--vers* |
-V )
16551 echo "$ac_cs_version"; exit 0 ;;
16553 # Conflict between --help and --header
16554 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16555 Try \`$0 --help' for more information." >&5
16556 echo "$as_me: error: ambiguous option: $1
16557 Try \`$0 --help' for more information." >&2;}
16558 { (exit 1); exit 1; }; };;
16559 --help |
--hel |
-h )
16560 echo "$ac_cs_usage"; exit 0 ;;
16561 --debug |
--d* |
-d )
16563 --file |
--fil |
--fi |
--f )
16565 CONFIG_FILES
="$CONFIG_FILES $1"
16566 ac_need_defaults
=false
;;
16567 --header |
--heade |
--head |
--hea )
16569 CONFIG_HEADERS
="$CONFIG_HEADERS $1"
16570 ac_need_defaults
=false
;;
16572 # This is an error.
16573 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16574 Try \`$0 --help' for more information." >&5
16575 echo "$as_me: error: unrecognized option: $1
16576 Try \`$0 --help' for more information." >&2;}
16577 { (exit 1); exit 1; }; } ;;
16579 *) ac_config_targets
="$ac_config_targets $1" ;;
16587 cat >>$CONFIG_STATUS <<_ACEOF
16589 # INIT-COMMANDS section.
16592 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
16598 cat >>$CONFIG_STATUS <<\_ACEOF
16599 for ac_config_target
in $ac_config_targets
16601 case "$ac_config_target" in
16602 # Handling of arguments.
16603 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
16604 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
16605 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
16606 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
16607 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
16608 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
16609 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
16610 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
16611 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
16612 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
16613 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
16614 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
16615 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16616 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16617 { (exit 1); exit 1; }; };;
16621 # If the user did not use the arguments to specify the items to instantiate,
16622 # then the envvar interface is used. Set only those that are not.
16623 # We use the long form for the default assignment because of an extremely
16624 # bizarre bug on SunOS 4.1.3.
16625 if $ac_need_defaults; then
16626 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
16627 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
16628 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
16631 # Create a temporary directory, and hook for its removal unless debugging.
16634 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16635 trap '{ (exit 1); exit 1; }' 1 2 13 15
16638 # Create a (secure) tmp directory for tmp files.
16641 tmp
=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16642 test -n "$tmp" && test -d "$tmp"
16645 tmp
=$TMPDIR/cs$$
-$RANDOM
16646 (umask 077 && mkdir
$tmp)
16649 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16650 { (exit 1); exit 1; }
16655 cat >>$CONFIG_STATUS <<_ACEOF
16658 # CONFIG_FILES section.
16661 # No need to generate the scripts if there are no CONFIG_FILES.
16662 # This happens for instance when ./config.status config.h
16663 if test -n "\$CONFIG_FILES"; then
16664 # Protect against being on the right side of a sed subst in config.status.
16665 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16666 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16667 s,@SHELL@,$SHELL,;t t
16668 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16669 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16670 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16671 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16672 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16673 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16674 s,@exec_prefix@,$exec_prefix,;t t
16675 s,@prefix@,$prefix,;t t
16676 s,@program_transform_name@,$program_transform_name,;t t
16677 s,@bindir@,$bindir,;t t
16678 s,@sbindir@,$sbindir,;t t
16679 s,@libexecdir@,$libexecdir,;t t
16680 s,@datadir@,$datadir,;t t
16681 s,@sysconfdir@,$sysconfdir,;t t
16682 s,@sharedstatedir@,$sharedstatedir,;t t
16683 s,@localstatedir@,$localstatedir,;t t
16684 s,@libdir@,$libdir,;t t
16685 s,@includedir@,$includedir,;t t
16686 s,@oldincludedir@,$oldincludedir,;t t
16687 s,@infodir@,$infodir,;t t
16688 s,@mandir@,$mandir,;t t
16689 s,@build_alias@,$build_alias,;t t
16690 s,@host_alias@,$host_alias,;t t
16691 s,@target_alias@,$target_alias,;t t
16692 s,@DEFS@,$DEFS,;t t
16693 s,@ECHO_C@,$ECHO_C,;t t
16694 s,@ECHO_N@,$ECHO_N,;t t
16695 s,@ECHO_T@,$ECHO_T,;t t
16696 s,@LIBS@,$LIBS,;t t
16697 s,@build@,$build,;t t
16698 s,@build_cpu@,$build_cpu,;t t
16699 s,@build_vendor@,$build_vendor,;t t
16700 s,@build_os@,$build_os,;t t
16701 s,@host@,$host,;t t
16702 s,@host_cpu@,$host_cpu,;t t
16703 s,@host_vendor@,$host_vendor,;t t
16704 s,@host_os@,$host_os,;t t
16706 s,@CFLAGS@,$CFLAGS,;t t
16707 s,@LDFLAGS@,$LDFLAGS,;t t
16708 s,@CPPFLAGS@,$CPPFLAGS,;t t
16709 s,@ac_ct_CC@,$ac_ct_CC,;t t
16710 s,@EXEEXT@,$EXEEXT,;t t
16711 s,@OBJEXT@,$OBJEXT,;t t
16712 s,@LN_S@,$LN_S,;t t
16714 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16715 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16716 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16717 s,@YACC@,$YACC,;t t
16718 s,@RANLIB@,$RANLIB,;t t
16719 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16720 s,@LIBSOUND@,$LIBSOUND,;t t
16721 s,@SET_MAKE@,$SET_MAKE,;t t
16722 s,@ALLOCA@,$ALLOCA,;t t
16723 s,@liblockfile@,$liblockfile,;t t
16724 s,@LIBOBJS@,$LIBOBJS,;t t
16725 s,@NEED_SETGID@,$NEED_SETGID,;t t
16726 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
16727 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
16728 s,@version@,$version,;t t
16729 s,@configuration@,$configuration,;t t
16730 s,@canonical@,$canonical,;t t
16731 s,@srcdir@,$srcdir,;t t
16732 s,@lispdir@,$lispdir,;t t
16733 s,@locallisppath@,$locallisppath,;t t
16734 s,@lisppath@,$lisppath,;t t
16735 s,@x_default_search_path@,$x_default_search_path,;t t
16736 s,@etcdir@,$etcdir,;t t
16737 s,@archlibdir@,$archlibdir,;t t
16738 s,@docdir@,$docdir,;t t
16739 s,@bitmapdir@,$bitmapdir,;t t
16740 s,@gamedir@,$gamedir,;t t
16741 s,@gameuser@,$gameuser,;t t
16742 s,@c_switch_system@,$c_switch_system,;t t
16743 s,@c_switch_machine@,$c_switch_machine,;t t
16744 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
16745 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
16746 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
16747 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
16748 s,@machfile@,$machfile,;t t
16749 s,@opsysfile@,$opsysfile,;t t
16754 cat >>$CONFIG_STATUS <<\_ACEOF
16755 # Split the substitutions into bite-sized pieces for seds with
16756 # small command number limits, like on Digital OSF/1 and HP-UX.
16757 ac_max_sed_lines
=48
16758 ac_sed_frag
=1 # Number of current file.
16759 ac_beg
=1 # First line for current file.
16760 ac_end
=$ac_max_sed_lines # Line after last line for current file.
16763 while $ac_more_lines; do
16764 if test $ac_beg -gt 1; then
16765 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16767 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
16769 if test ! -s $tmp/subs.frag
; then
16770 ac_more_lines
=false
16772 # The purpose of the label and of the branching condition is to
16773 # speed up the sed processing (if there are no `@' at all, there
16774 # is no need to browse any of the substitutions).
16775 # These are the two extra sed commands mentioned above.
16777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
16778 if test -z "$ac_sed_cmds"; then
16779 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
16781 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16783 ac_sed_frag
=`expr $ac_sed_frag + 1`
16785 ac_end
=`expr $ac_end + $ac_max_sed_lines`
16788 if test -z "$ac_sed_cmds"; then
16791 fi # test -n "$CONFIG_FILES"
16794 cat >>$CONFIG_STATUS <<\_ACEOF
16795 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
16796 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16798 - |
*:- |
*:-:* ) # input from stdin
16800 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16801 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16802 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16803 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16804 * ) ac_file_in
=$ac_file.
in ;;
16807 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16808 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
16809 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16810 X"$ac_file" : 'X\(//\)[^/]' \| \
16811 X"$ac_file" : 'X\(//\)$' \| \
16812 X"$ac_file" : 'X\(/\)' \| \
16813 . : '\(.\)' 2>/dev/null ||
16815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16816 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16817 /^X\(\/\/\)$/{ s//\1/; q; }
16818 /^X\(\/\).*/{ s//\1/; q; }
16820 { case "$ac_dir" in
16821 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
16825 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16826 case $as_mkdir_dir in
16827 # Skip DOS drivespec
16828 ?
:) as_incr_dir
=$as_mkdir_dir ;;
16830 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
16831 test -d "$as_incr_dir" ||
16832 mkdir
"$as_incr_dir" ||
16833 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16834 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16835 { (exit 1); exit 1; }; }
16842 if test "$ac_dir" != .
; then
16843 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16844 # A "../" for each directory in $ac_dir_suffix.
16845 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16847 ac_dir_suffix
= ac_top_builddir
=
16851 .
) # No --srcdir option. We are building in place.
16853 if test -z "$ac_top_builddir"; then
16856 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
16858 [\\/]* | ?
:[\\/]* ) # Absolute path.
16859 ac_srcdir
=$srcdir$ac_dir_suffix;
16860 ac_top_srcdir
=$srcdir ;;
16861 *) # Relative path.
16862 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
16863 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
16865 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16867 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
16868 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
16869 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16870 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16874 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16875 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
16878 if test x
"$ac_file" != x-
; then
16879 { echo "$as_me:$LINENO: creating $ac_file" >&5
16880 echo "$as_me: creating $ac_file" >&6;}
16883 # Let's still pretend it is `configure' which instantiates (i.e., don't
16884 # use $as_me), people would be surprised to read:
16885 # /* config.h. Generated by config.status. */
16886 if test x
"$ac_file" = x-
; then
16889 configure_input
="$ac_file. "
16891 configure_input
=$configure_input"Generated from `echo $ac_file_in |
16892 sed 's,.*/,,'` by configure."
16894 # First look for the input files in the build tree, otherwise in the
16896 ac_file_inputs
=`IFS=:
16897 for f in $ac_file_in; do
16899 -) echo $tmp/stdin ;;
16901 # Absolute (can't be DOS-style, as IFS=:)
16902 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16903 echo "$as_me: error: cannot find input file: $f" >&2;}
16904 { (exit 1); exit 1; }; }
16907 if test -f "$f"; then
16910 elif test -f "$srcdir/$f"; then
16915 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16916 echo "$as_me: error: cannot find input file: $f" >&2;}
16917 { (exit 1); exit 1; }; }
16920 done` ||
{ (exit 1); exit 1; }
16922 cat >>$CONFIG_STATUS <<_ACEOF
16926 cat >>$CONFIG_STATUS <<\_ACEOF
16928 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16929 s
,@configure_input@
,$configure_input,;t t
16930 s
,@srcdir@
,$ac_srcdir,;t t
16931 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
16932 s
,@top_srcdir@
,$ac_top_srcdir,;t t
16933 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
16934 s
,@builddir@
,$ac_builddir,;t t
16935 s
,@abs_builddir@
,$ac_abs_builddir,;t t
16936 s
,@top_builddir@
,$ac_top_builddir,;t t
16937 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
16938 s
,@INSTALL@
,$ac_INSTALL,;t t
16939 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16941 if test x"$ac_file" != x-; then
16942 mv $tmp/out $ac_file
16950 cat >>$CONFIG_STATUS <<\_ACEOF
16953 # CONFIG_HEADER section.
16956 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
16957 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16959 # ac_d sets the value in "#define NAME VALUE" lines.
16960 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16961 ac_dB
='[ ].*$,\1#\2'
16964 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16965 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16966 ac_uB
='$,\1#\2define\3'
16970 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
16971 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16973 - |
*:- |
*:-:* ) # input from stdin
16975 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16976 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16977 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
16978 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
16979 * ) ac_file_in
=$ac_file.
in ;;
16982 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
16983 echo "$as_me: creating $ac_file" >&6;}
16985 # First look for the input files in the build tree, otherwise in the
16987 ac_file_inputs
=`IFS=:
16988 for f in $ac_file_in; do
16990 -) echo $tmp/stdin ;;
16992 # Absolute (can't be DOS-style, as IFS=:)
16993 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16994 echo "$as_me: error: cannot find input file: $f" >&2;}
16995 { (exit 1); exit 1; }; }
16998 if test -f "$f"; then
17001 elif test -f "$srcdir/$f"; then
17006 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17007 echo "$as_me: error: cannot find input file: $f" >&2;}
17008 { (exit 1); exit 1; }; }
17011 done` ||
{ (exit 1); exit 1; }
17012 # Remove the trailing spaces.
17013 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17017 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17018 # `conftest.undefs', that substitutes the proper values into
17019 # config.h.in to produce config.h. The first handles `#define'
17020 # templates, and the second `#undef' templates.
17021 # And first: Protect against being on the right side of a sed subst in
17022 # config.status. Protect against being in an unquoted here document
17023 # in config.status.
17024 rm -f conftest.defines conftest.undefs
17025 # Using a here document instead of a string reduces the quoting nightmare.
17026 # Putting comments in sed scripts is not portable.
17028 # `end' is used to avoid that the second main sed command (meant for
17029 # 0-ary CPP macros) applies to n-ary macro definitions.
17030 # See the Autoconf documentation for `clear'.
17031 cat >confdef2sed.
sed <<\_ACEOF
17036 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17038 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17041 # If some macros were called several times there might be several times
17042 # the same #defines, which is useless. Nevertheless, we may not want to
17043 # sort them, since we want the *last* AC-DEFINE to be honored.
17044 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17045 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17046 rm -f confdef2sed.sed
17048 # This sed command replaces #undef with comments. This is necessary, for
17049 # example, in the case of _POSIX_SOURCE, which is predefined and required
17050 # on some systems where configure will not decide to define it.
17051 cat >>conftest.undefs <<\_ACEOF
17052 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17055 # Break up conftest.defines because some shells have a limit on the size
17056 # of here documents, and old seds have small limits too (100 cmds).
17057 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17058 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17059 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17060 echo ' :' >>$CONFIG_STATUS
17061 rm -f conftest.tail
17062 while grep . conftest.defines >/dev/null
17064 # Write a limited-size here document to $tmp/defines.sed.
17065 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17066 # Speed up: don't consider the non `#define' lines.
17067 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17068 # Work around the forget-to-reset-the-flag bug.
17069 echo 't clr' >>$CONFIG_STATUS
17070 echo ': clr' >>$CONFIG_STATUS
17071 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
17073 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17075 mv $tmp/out $tmp/in
17077 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
17078 rm -f conftest.defines
17079 mv conftest.
tail conftest.defines
17081 rm -f conftest.defines
17082 echo ' fi # egrep' >>$CONFIG_STATUS
17083 echo >>$CONFIG_STATUS
17085 # Break up conftest.undefs because some shells have a limit on the size
17086 # of here documents, and old seds have small limits too (100 cmds).
17087 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17088 rm -f conftest.
tail
17089 while grep . conftest.undefs
>/dev
/null
17091 # Write a limited-size here document to $tmp/undefs.sed.
17092 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17093 # Speed up: don't consider the non
`#undef'
17094 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17095 # Work around the forget-to-reset-the-flag bug.
17096 echo 't clr' >>$CONFIG_STATUS
17097 echo ': clr' >>$CONFIG_STATUS
17098 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17100 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17102 mv $tmp/out $tmp/in
17104 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17105 rm -f conftest.undefs
17106 mv conftest.tail conftest.undefs
17108 rm -f conftest.undefs
17110 cat >>$CONFIG_STATUS <<\_ACEOF
17111 # Let's still pretend it is `configure
' which instantiates (i.e., don't
17112 # use $as_me), people would be surprised to read:
17113 # /* config.h. Generated by config.status. */
17114 if test x
"$ac_file" = x-
; then
17115 echo "/* Generated by configure. */" >$tmp/config.h
17117 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17119 cat $tmp/in >>$tmp/config.h
17121 if test x
"$ac_file" != x-
; then
17122 if cmp -s $ac_file $tmp/config.h
2>/dev
/null
; then
17123 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17124 echo "$as_me: $ac_file is unchanged" >&6;}
17126 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
17127 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17128 X"$ac_file" : 'X\(//\)[^/]' \| \
17129 X"$ac_file" : 'X\(//\)$' \| \
17130 X"$ac_file" : 'X\(/\)' \| \
17131 . : '\(.\)' 2>/dev/null ||
17133 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17134 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17135 /^X\(\/\/\)$/{ s//\1/; q; }
17136 /^X\(\/\).*/{ s//\1/; q; }
17138 { case "$ac_dir" in
17139 [\\/]* | ?
:[\\/]* ) as_incr_dir
=;;
17143 for as_mkdir_dir
in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17144 case $as_mkdir_dir in
17145 # Skip DOS drivespec
17146 ?
:) as_incr_dir
=$as_mkdir_dir ;;
17148 as_incr_dir
=$as_incr_dir/$as_mkdir_dir
17149 test -d "$as_incr_dir" ||
17150 mkdir
"$as_incr_dir" ||
17151 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17152 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17153 { (exit 1); exit 1; }; }
17159 mv $tmp/config.h
$ac_file
17163 rm -f $tmp/config.h
17167 cat >>$CONFIG_STATUS <<\_ACEOF
17170 # CONFIG_COMMANDS section.
17172 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
17173 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
17174 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
17175 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
17176 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17177 X"$ac_dest" : 'X\(//\)[^/]' \| \
17178 X"$ac_dest" : 'X\(//\)$' \| \
17179 X"$ac_dest" : 'X\(/\)' \| \
17180 . : '\(.\)' 2>/dev/null ||
17182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17184 /^X\(\/\/\)$/{ s//\1/; q; }
17185 /^X\(\/\).*/{ s//\1/; q; }
17189 if test "$ac_dir" != .
; then
17190 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17191 # A "../" for each directory in $ac_dir_suffix.
17192 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17194 ac_dir_suffix
= ac_top_builddir
=
17198 .
) # No --srcdir option. We are building in place.
17200 if test -z "$ac_top_builddir"; then
17203 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
17205 [\\/]* | ?
:[\\/]* ) # Absolute path.
17206 ac_srcdir
=$srcdir$ac_dir_suffix;
17207 ac_top_srcdir
=$srcdir ;;
17208 *) # Relative path.
17209 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
17210 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
17212 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17214 ac_abs_builddir
=`cd "$ac_dir" && cd $ac_builddir && pwd`
17215 ac_abs_top_builddir
=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17216 ac_abs_srcdir
=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17217 ac_abs_top_srcdir
=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17220 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17221 echo "$as_me: executing $ac_dest commands" >&6;}
17225 ### Make the necessary directories, if they don't exist.
17226 for dir
in etc lisp
; do
17227 test -d ${dir} || mkdir
${dir}
17230 # Build src/Makefile from ${srcdir}/src/Makefile.c
17231 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
17232 # This must be done after src/config.h is built, since we rely on that file.
17234 # Now get this: Some word that is part of the ${srcdir} directory name
17235 # or the ${configuration} value might, just might, happen to be an
17236 # identifier like `sun4' or `i386' or something, and be predefined by
17237 # the C preprocessor to some helpful value like 1, or maybe the empty
17238 # string. Needless to say consequent macro substitutions are less
17239 # than conducive to the makefile finding the correct directory.
17240 undefs
="`echo $top_srcdir $configuration $canonical |
17241 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
17242 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
17245 echo creating src
/epaths.h
17246 ${MAKE-make} epaths-force
17248 # As of 2000-11-19, newest development versions of GNU cpp preprocess
17249 # `..' to `. .' unless invoked with -traditional
17251 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
17252 CPPFLAGS
="$CPPFLAGS -traditional"
17255 echo creating lib-src
/Makefile
17257 rm -f junk.c junk1.c junk2.c
17258 sed -e '/start of cpp stuff/q' \
17259 < Makefile.c
> junk1.c
17260 sed -e '1,/start of cpp stuff/d'\
17261 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17262 < Makefile.c
> junk.c
17263 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
17264 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17265 cat junk1.c junk2.c
> Makefile.new
17266 rm -f junk.c junk1.c junk2.c
17267 chmod 444 Makefile.new
17268 mv -f Makefile.new Makefile
17271 echo creating src
/Makefile
17273 rm -f junk.c junk1.c junk2.c
17274 sed -e '/start of cpp stuff/q' \
17275 < Makefile.c
> junk1.c
17276 sed -e '1,/start of cpp stuff/d'\
17277 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
17278 < Makefile.c
> junk.c
17279 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
17280 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
17281 cat junk1.c junk2.c
> Makefile.new
17282 rm -f junk.c junk1.c junk2.c
17283 chmod 444 Makefile.new
17284 mv -f Makefile.new Makefile
17287 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
17288 echo creating src
/.gdbinit
17289 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
17292 # This is how we know whether to re-run configure in certain cases.
17293 touch src
/config.stamp
17300 cat >>$CONFIG_STATUS <<\_ACEOF
17302 { (exit 0); exit 0; }
17304 chmod +x
$CONFIG_STATUS
17305 ac_clean_files
=$ac_clean_files_save
17308 # configure is writing to config.log, and then calls config.status.
17309 # config.status does its own redirection, appending to config.log.
17310 # Unfortunately, on DOS this fails, as config.log is still kept open
17311 # by configure, so config.status won't be able to write to it; its
17312 # output is simply discarded. So we exec the FD to /dev/null,
17313 # effectively closing config.log, so it can be properly (re)opened and
17314 # appended to by config.status. When coming back to configure, we
17315 # need to make the FD available again.
17316 if test "$no_create" != yes; then
17319 $SHELL $CONFIG_STATUS || ac_cs_success
=false
17321 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17322 # would make configure fail if this is the last instruction.
17323 $ac_cs_success ||
{ (exit 1); exit 1; }