2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
22 DUALCASE
=1; export DUALCASE
# for MKS sh
24 # Support unset when possible.
25 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C
; export $as_var
51 # Required to use basename.
52 if expr a
: '\(a\)' >/dev
/null
2>&1; then
58 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me
=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits
='0123456789'
84 as_cr_alnum
=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
102 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself
=$0 ;;
109 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir
=.
114 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x
; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
131 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir
=.
135 for as_base
in sh bash ksh sh5
; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
144 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
145 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
146 CONFIG_SHELL
=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x
$as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c
*,-n*) ECHO_N
= ECHO_C
='
190 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
191 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
194 if expr a
: '\(a\)' >/dev
/null
2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.
file
202 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe
; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.
file conf$$
2>/dev
/null
; then
216 rm -f conf$$ conf$$.exe conf$$.
file
218 if mkdir
-p .
2>/dev
/null
; then
221 test -d .
/-p && rmdir .
/-p
225 as_executable_p
="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix
=/usr
/local
255 ac_config_libobj_dir
=.
260 SHELL
=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file
="src/lisp.h"
275 ac_config_libobj_dir
=src
276 # Factoring default headers for most tests.
277 ac_includes_default
="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
313 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP LN_S INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB INSTALL_INFO GZIP_PROG LIBSOUND PKG_CONFIG ALSA_CFLAGS ALSA_LIBS CFLAGS_SOUND SET_MAKE GTK_CFLAGS GTK_LIBS XFT_CFLAGS XFT_LIBS FREETYPE_CFLAGS FREETYPE_LIBS FONTCONFIG_CFLAGS FONTCONFIG_LIBS HAVE_LIBOTF LIBOTF_CFLAGS LIBOTF_LIBS ALLOCA liblockfile LIBOBJS NEED_SETGID KMEM_GROUP GETLOADAVG_LIBS GETOPT_H GETOPTOBJS version configuration canonical srcdir lispdir locallisppath lisppath x_default_search_path etcdir archlibdir docdir bitmapdir gamedir gameuser c_switch_system c_switch_machine LD_SWITCH_X_SITE LD_SWITCH_X_SITE_AUX C_SWITCH_X_SITE X_TOOLKIT_TYPE machfile opsysfile carbon_appdir LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version
=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name
=s
,x
,x
,
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir
='${exec_prefix}/bin'
342 sbindir
='${exec_prefix}/sbin'
343 libexecdir
='${exec_prefix}/libexec'
344 datadir
='${prefix}/share'
345 sysconfdir
='${prefix}/etc'
346 sharedstatedir
='${prefix}/com'
347 localstatedir
='${prefix}/var'
348 libdir
='${exec_prefix}/lib'
349 includedir
='${prefix}/include'
350 oldincludedir
='/usr/include'
351 infodir
='${prefix}/info'
352 mandir
='${prefix}/man'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
372 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
375 -build |
--build |
--buil |
--bui |
--bu)
376 ac_prev
=build_alias
;;
377 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
378 build_alias
=$ac_optarg ;;
380 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
381 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
382 ac_prev
=cache_file
;;
383 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
384 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
385 cache_file
=$ac_optarg ;;
388 cache_file
=config.cache
;;
390 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
392 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
394 datadir
=$ac_optarg ;;
396 -disable-* |
--disable-*)
397 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
405 -enable-* |
--enable-*)
406 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
413 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
418 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
419 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
420 |
--exec |
--exe |
--ex)
421 ac_prev
=exec_prefix
;;
422 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
423 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
424 |
--exec=* |
--exe=* |
--ex=*)
425 exec_prefix
=$ac_optarg ;;
427 -gas |
--gas |
--ga |
--g)
428 # Obsolete; use --with-gas.
431 -help |
--help |
--hel |
--he |
-h)
433 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
434 ac_init_help
=recursive
;;
435 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
436 ac_init_help
=short
;;
438 -host |
--host |
--hos |
--ho)
439 ac_prev
=host_alias
;;
440 -host=* |
--host=* |
--hos=* |
--ho=*)
441 host_alias
=$ac_optarg ;;
443 -includedir |
--includedir |
--includedi |
--included |
--include \
444 |
--includ |
--inclu |
--incl |
--inc)
445 ac_prev
=includedir
;;
446 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
447 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
448 includedir
=$ac_optarg ;;
450 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
452 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
453 infodir
=$ac_optarg ;;
455 -libdir |
--libdir |
--libdi |
--libd)
457 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
460 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
461 |
--libexe |
--libex |
--libe)
462 ac_prev
=libexecdir
;;
463 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
464 |
--libexe=* |
--libex=* |
--libe=*)
465 libexecdir
=$ac_optarg ;;
467 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
468 |
--localstate |
--localstat |
--localsta |
--localst \
469 |
--locals |
--local |
--loca |
--loc |
--lo)
470 ac_prev
=localstatedir
;;
471 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
472 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
473 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
474 localstatedir
=$ac_optarg ;;
476 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
478 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
482 # Obsolete; use --without-fp.
485 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
486 |
--no-cr |
--no-c |
-n)
489 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
490 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
493 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
494 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
495 |
--oldin |
--oldi |
--old |
--ol |
--o)
496 ac_prev
=oldincludedir
;;
497 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
498 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
499 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
500 oldincludedir
=$ac_optarg ;;
502 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
504 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
507 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
508 |
--program-pre |
--program-pr |
--program-p)
509 ac_prev
=program_prefix
;;
510 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
511 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
512 program_prefix
=$ac_optarg ;;
514 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
515 |
--program-suf |
--program-su |
--program-s)
516 ac_prev
=program_suffix
;;
517 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
518 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
519 program_suffix
=$ac_optarg ;;
521 -program-transform-name |
--program-transform-name \
522 |
--program-transform-nam |
--program-transform-na \
523 |
--program-transform-n |
--program-transform- \
524 |
--program-transform |
--program-transfor \
525 |
--program-transfo |
--program-transf \
526 |
--program-trans |
--program-tran \
527 |
--progr-tra |
--program-tr |
--program-t)
528 ac_prev
=program_transform_name
;;
529 -program-transform-name=* |
--program-transform-name=* \
530 |
--program-transform-nam=* |
--program-transform-na=* \
531 |
--program-transform-n=* |
--program-transform-=* \
532 |
--program-transform=* |
--program-transfor=* \
533 |
--program-transfo=* |
--program-transf=* \
534 |
--program-trans=* |
--program-tran=* \
535 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
536 program_transform_name
=$ac_optarg ;;
538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
539 |
-silent |
--silent |
--silen |
--sile |
--sil)
542 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
544 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
546 sbindir
=$ac_optarg ;;
548 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
549 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
550 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
552 ac_prev
=sharedstatedir
;;
553 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
554 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
555 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
557 sharedstatedir
=$ac_optarg ;;
559 -site |
--site |
--sit)
561 -site=* |
--site=* |
--sit=*)
564 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
566 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
569 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
570 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
571 ac_prev
=sysconfdir
;;
572 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
573 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
574 sysconfdir
=$ac_optarg ;;
576 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
577 ac_prev
=target_alias
;;
578 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
579 target_alias
=$ac_optarg ;;
581 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
584 -version |
--version |
--versio |
--versi |
--vers |
-V)
588 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package
=`echo $ac_package| sed 's/-/_/g'`
595 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
600 -without-* |
--without-*)
601 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package
=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
610 # Obsolete; use --with-x.
613 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
614 |
--x-incl |
--x-inc |
--x-in |
--x-i)
615 ac_prev
=x_includes
;;
616 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
617 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
618 x_includes
=$ac_optarg ;;
620 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
621 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
622 ac_prev
=x_libraries
;;
623 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
624 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
625 x_libraries
=$ac_optarg ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
633 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
653 if test -n "$ac_prev"; then
654 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
659 # Be sure to have absolute paths.
660 for ac_var
in exec_prefix prefix
662 eval ac_val
=$
`echo $ac_var`
664 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
670 # Be sure to have absolute paths.
671 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
674 eval ac_val
=$
`echo $ac_var`
676 [\\/$
]* | ?
:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x
; then
691 if test "x$build_alias" = x
; then
692 cross_compiling
=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
701 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
703 test "$silent" = yes && exec 6>/dev
/null
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted
=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir
=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted
=no
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
738 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set
=${build_alias+set}
743 ac_env_build_alias_value
=$build_alias
744 ac_cv_env_build_alias_set
=${build_alias+set}
745 ac_cv_env_build_alias_value
=$build_alias
746 ac_env_host_alias_set
=${host_alias+set}
747 ac_env_host_alias_value
=$host_alias
748 ac_cv_env_host_alias_set
=${host_alias+set}
749 ac_cv_env_host_alias_value
=$host_alias
750 ac_env_target_alias_set
=${target_alias+set}
751 ac_env_target_alias_value
=$target_alias
752 ac_cv_env_target_alias_set
=${target_alias+set}
753 ac_cv_env_target_alias_value
=$target_alias
754 ac_env_CC_set
=${CC+set}
756 ac_cv_env_CC_set
=${CC+set}
757 ac_cv_env_CC_value
=$CC
758 ac_env_CFLAGS_set
=${CFLAGS+set}
759 ac_env_CFLAGS_value
=$CFLAGS
760 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value
=$CFLAGS
762 ac_env_LDFLAGS_set
=${LDFLAGS+set}
763 ac_env_LDFLAGS_value
=$LDFLAGS
764 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value
=$LDFLAGS
766 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value
=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
770 ac_env_CPP_set
=${CPP+set}
771 ac_env_CPP_value
=$CPP
772 ac_cv_env_CPP_set
=${CPP+set}
773 ac_cv_env_CPP_value
=$CPP
776 # Report the --help message.
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
782 \`configure' configures this package to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
789 Defaults for the options are specified in brackets.
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
816 For better control, use the options below.
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
836 --program-prefix=PREFIX prepend PREFIX to installed program names
837 --program-suffix=SUFFIX append SUFFIX to installed program names
838 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
841 --x-includes=DIR X include files are
in DIR
842 --x-libraries=DIR X library files are
in DIR
845 --build=BUILD configure
for building on BUILD
[guessed
]
846 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
850 if test -n "$ac_init_help"; then
855 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
856 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
857 --enable-carbon-app[=DIR
] [DIR
=/Application
]
858 specify
install directory
for Emacs.app on Mac OS X
859 --enable-font-backend compile code of font-backend support
860 --enable-asserts compile code with asserts enabled
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing
) to the casual installer
863 --enable-locallisppath=PATH
864 directories Emacs should search
for lisp files
865 specific to this site
866 --disable-largefile omit support
for large files
869 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
870 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
871 --without-gcc don
't use GCC to compile Emacs if GCC is found
872 --without-pop don't support POP
mail retrieval with movemail
873 --with-kerberos support Kerberos-authenticated POP
874 --with-kerberos5 support Kerberos version
5 authenticated POP
875 --with-hesiod support Hesiod to get the POP server
host
876 --without-sound don
't compile with sound support
877 --with-x-toolkit=KIT use an X toolkit
878 (KIT = yes/lucid/athena/motif/gtk/no)
879 --with-xpm use -lXpm for displaying XPM images
880 --with-jpeg use -ljpeg for displaying JPEG images
881 --with-tiff use -ltiff for displaying TIFF images
882 --with-gif use -lungif for displaying GIF images
883 --with-png use -lpng for displaying PNG images
884 --with-freetype use -lfreetype for local fonts support
885 --with-xft use -lXft for anti aliased fonts
886 --with-gtk use GTK (same as --with-x-toolkit=gtk)
887 --with-pkg-config-prog Path to pkg-config to use for finding GTK
888 --without-toolkit-scroll-bars
889 don't use Motif or Xaw3d scroll bars
890 --without-xim don
't use X11 XIM
891 --without-carbon don't use Carbon GUI on Mac OS X
892 --with-x use the X Window System
894 Some influential environment variables
:
895 CC C compiler
command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
898 nonstandard directory
<lib dir
>
899 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
900 headers
in a nonstandard directory
<include dir
>
903 Use these variables to override the choices made by
`configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
921 ac_dir_suffix= ac_top_builddir=
925 .) # No --srcdir option. We are building in place.
927 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 # Do not use `cd foo
&& pwd` to compute absolute paths, because
941 # the directories may not exist.
943 .) ac_abs_builddir="$ac_dir";;
946 .) ac_abs_builddir=`pwd`;;
947 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
948 *) ac_abs_builddir=`pwd`/"$ac_dir";;
951 case $ac_abs_builddir in
952 .) ac_abs_top_builddir=${ac_top_builddir}.;;
954 case ${ac_top_builddir}. in
955 .) ac_abs_top_builddir=$ac_abs_builddir;;
956 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
957 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960 case $ac_abs_builddir in
961 .) ac_abs_srcdir=$ac_srcdir;;
964 .) ac_abs_srcdir=$ac_abs_builddir;;
965 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
966 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969 case $ac_abs_builddir in
970 .) ac_abs_top_srcdir=$ac_top_srcdir;;
972 case $ac_top_srcdir in
973 .) ac_abs_top_srcdir=$ac_abs_builddir;;
974 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
975 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 # Check for guested configure; otherwise get Cygnus style configure.
981 if test -f $ac_srcdir/configure.gnu; then
983 $SHELL $ac_srcdir/configure.gnu --help=recursive
984 elif test -f $ac_srcdir/configure; then
986 $SHELL $ac_srcdir/configure --help=recursive
987 elif test -f $ac_srcdir/configure.ac ||
988 test -f $ac_srcdir/configure.in; then
992 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
998 test -n "$ac_init_help" && exit 0
999 if $ac_init_version; then
1002 Copyright (C) 2003 Free Software Foundation, Inc.
1003 This configure script is free software; the Free Software Foundation
1004 gives unlimited permission to copy, distribute and modify it.
1010 This file contains any messages produced by compilers while
1011 running configure, to aid debugging if configure makes a mistake.
1013 It was created by $as_me, which was
1014 generated by GNU Autoconf 2.59. Invocation command line was
1025 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1026 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1027 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1028 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1029 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1031 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1032 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1034 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1035 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1036 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1037 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1038 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1039 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1040 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1048 test -z "$as_dir" && as_dir=.
1049 echo "PATH: $as_dir"
1064 # Keep a trace of the command line.
1065 # Strip out --no-create and --no-recursion so they do not pile up.
1066 # Strip out --silent because we don't want to record it for future runs.
1067 # Also quote any args containing shell meta-characters.
1068 # Make two passes to allow for proper duplicate-argument suppression.
1073 ac_must_keep_next=false
1079 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1081 | -silent | --silent | --silen | --sile | --sil)
1083 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1084 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1087 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1089 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1090 if test $ac_must_keep_next = true; then
1091 ac_must_keep_next=false # Got value, back to normal.
1094 *=* | --config-cache | -C | -disable-* | --disable-* \
1095 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1096 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1097 | -with-* | --with-* | -without-* | --without-* | --x)
1098 case "$ac_configure_args0 " in
1099 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 -* ) ac_must_keep_next=true ;;
1105 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1106 # Get rid of the leading space.
1112 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1113 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1115 # When interrupted or exit'd, cleanup temporary files, and complete
1116 # config.log. We remove comments because anyway the quotes in there
1117 # would cause problems or look ugly.
1118 # WARNING: Be sure not to use single quotes in there, as some shells,
1119 # such as our DU 5.0 friend, will then `close
' the trap.
1120 trap 'exit_status
=$?
1121 # Save into config.log some information that might help in debugging.
1126 ## ---------------- ##
1127 ## Cache variables. ##
1128 ## ---------------- ##
1131 # The following way of writing the cache mishandles newlines in values,
1134 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1142 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1149 ## ----------------- ##
1150 ## Output variables. ##
1151 ## ----------------- ##
1154 for ac_var
in $ac_subst_vars
1156 eval ac_val
=$
`echo $ac_var`
1157 echo "$ac_var='"'"'$ac_val'"'"'"
1161 if test -n "$ac_subst_files"; then
1168 for ac_var
in $ac_subst_files
1170 eval ac_val
=$
`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1176 if test -s confdefs.h
; then
1183 sed "/^$/d" confdefs.h |
sort
1186 test "$ac_signal" != 0 &&
1187 echo "$as_me: caught signal $ac_signal"
1188 echo "$as_me: exit $exit_status"
1190 rm -f core
*.core
&&
1191 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1194 for ac_signal in 1 2 13 15; do
1195 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1200 rm -rf conftest* confdefs.h
1201 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204 # Predefined preprocessor variables.
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_NAME "$PACKAGE_NAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_STRING "$PACKAGE_STRING"
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1231 # Let the site file select an alternate cache file if it wants to.
1232 # Prefer explicitly selected file to automatically selected ones.
1233 if test -z "$CONFIG_SITE"; then
1234 if test "x$prefix" != xNONE; then
1235 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1237 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 for ac_site_file in $CONFIG_SITE; do
1241 if test -r "$ac_site_file"; then
1242 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1243 echo "$as_me: loading site script $ac_site_file" >&6;}
1244 sed 's
/^
/|
/' "$ac_site_file" >&5
1249 if test -r "$cache_file"; then
1250 # Some versions of bash will fail to source /dev/null (special
1251 # files actually), so we avoid doing that.
1252 if test -f "$cache_file"; then
1253 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1254 echo "$as_me: loading cache $cache_file" >&6;}
1256 [\\/]* | ?:[\\/]* ) . $cache_file;;
1257 *) . ./$cache_file;;
1261 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1262 echo "$as_me: creating cache $cache_file" >&6;}
1266 # Check that the precious variables saved in the cache have kept the same
1268 ac_cache_corrupted=false
1269 for ac_var in `(set) 2>&1 |
1270 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1271 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1272 eval ac_new_set=\$ac_env_${ac_var}_set
1273 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1274 eval ac_new_val="\$ac_env_${ac_var}_value"
1275 case $ac_old_set,$ac_new_set in
1277 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1278 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1279 ac_cache_corrupted=: ;;
1281 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1282 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1286 if test "x$ac_old_val" != "x$ac_new_val"; then
1287 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1288 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1289 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1290 echo "$as_me: former value: $ac_old_val" >&2;}
1291 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1292 echo "$as_me: current value: $ac_new_val" >&2;}
1293 ac_cache_corrupted=:
1296 # Pass precious variables to config.status.
1297 if test "$ac_new_set" = set; then
1299 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1300 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1301 *) ac_arg=$ac_var=$ac_new_val ;;
1303 case " $ac_configure_args " in
1304 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1305 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1309 if $ac_cache_corrupted; then
1310 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1311 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1312 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1313 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1314 { (exit 1); exit 1; }; }
1318 ac_cpp='$CPP $CPPFLAGS'
1319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1320 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1341 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1344 test "$program_prefix" != NONE &&
1345 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1346 # Use a double $ so make ignores it.
1347 test "$program_suffix" != NONE &&
1348 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1349 # Double any \ or $. echo might interpret backslashes.
1350 # By default was `s,x,x', remove it
if useless.
1351 cat <<\_ACEOF
>conftest.
sed
1352 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1354 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1358 lispdir
='${datadir}/emacs/${version}/lisp'
1359 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1360 '${datadir}/emacs/site-lisp'
1361 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1362 etcdir
='${datadir}/emacs/${version}/etc'
1363 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1364 docdir
='${datadir}/emacs/${version}/etc'
1365 gamedir
='${localstatedir}/games/emacs'
1370 # Check whether --with-gcc or --without-gcc was given.
1371 if test "${with_gcc+set}" = set; then
1376 # Check whether --with-pop or --without-pop was given.
1377 if test "${with_pop+set}" = set; then
1379 if test "$withval" = yes; then
1380 cat >>confdefs.h
<<\_ACEOF
1381 #define MAIL_USE_POP 1
1387 cat >>confdefs.h
<<\_ACEOF
1388 #define MAIL_USE_POP 1
1394 # Check whether --with-kerberos or --without-kerberos was given.
1395 if test "${with_kerberos+set}" = set; then
1396 withval
="$with_kerberos"
1397 cat >>confdefs.h
<<\_ACEOF
1404 # Check whether --with-kerberos5 or --without-kerberos5 was given.
1405 if test "${with_kerberos5+set}" = set; then
1406 withval
="$with_kerberos5"
1407 if test "${with_kerberos5+set}" = set; then
1408 if test "${with_kerberos+set}" != set; then
1410 cat >>confdefs.h
<<\_ACEOF
1417 cat >>confdefs.h
<<\_ACEOF
1423 # Check whether --with-hesiod or --without-hesiod was given.
1424 if test "${with_hesiod+set}" = set; then
1425 withval
="$with_hesiod"
1427 cat >>confdefs.h
<<\_ACEOF
1434 # Check whether --with-sound or --without-sound was given.
1435 if test "${with_sound+set}" = set; then
1436 withval
="$with_sound"
1441 # Check whether --with-x-toolkit or --without-x-toolkit was given.
1442 if test "${with_x_toolkit+set}" = set; then
1443 withval
="$with_x_toolkit"
1444 case "${withval}" in
1445 y | ye |
yes ) val
=athena
;;
1447 l | lu | luc | luci | lucid
) val
=lucid
;;
1448 a |
at | ath | athe | athen | athena
) val
=athena
;;
1449 m | mo | mot | moti | motif
) val
=motif
;;
1450 g | gt | gtk
) val
=gtk
;;
1452 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1454 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1455 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1456 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1457 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1458 { (exit 1); exit 1; }; }
1465 # Check whether --with-xpm or --without-xpm was given.
1466 if test "${with_xpm+set}" = set; then
1471 # Check whether --with-jpeg or --without-jpeg was given.
1472 if test "${with_jpeg+set}" = set; then
1473 withval
="$with_jpeg"
1477 # Check whether --with-tiff or --without-tiff was given.
1478 if test "${with_tiff+set}" = set; then
1479 withval
="$with_tiff"
1483 # Check whether --with-gif or --without-gif was given.
1484 if test "${with_gif+set}" = set; then
1489 # Check whether --with-png or --without-png was given.
1490 if test "${with_png+set}" = set; then
1495 # Check whether --with-freetype or --without-freetype was given.
1496 if test "${with_freetype+set}" = set; then
1497 withval
="$with_freetype"
1501 # Check whether --with-xft or --without-xft was given.
1502 if test "${with_xft+set}" = set; then
1507 # Check whether --with-gtk or --without-gtk was given.
1508 if test "${with_gtk+set}" = set; then
1513 # Check whether --with-pkg-config-prog or --without-pkg-config-prog was given.
1514 if test "${with_pkg_config_prog+set}" = set; then
1515 withval
="$with_pkg_config_prog"
1519 # Check whether --with-toolkit-scroll-bars or --without-toolkit-scroll-bars was given.
1520 if test "${with_toolkit_scroll_bars+set}" = set; then
1521 withval
="$with_toolkit_scroll_bars"
1525 # Check whether --with-xim or --without-xim was given.
1526 if test "${with_xim+set}" = set; then
1531 # Check whether --with-carbon or --without-carbon was given.
1532 if test "${with_carbon+set}" = set; then
1533 withval
="$with_carbon"
1536 # Check whether --enable-carbon-app or --disable-carbon-app was given.
1537 if test "${enable_carbon_app+set}" = set; then
1538 enableval
="$enable_carbon_app"
1539 carbon_appdir_x
=${enableval}
1542 # Check whether --enable-font-backend or --disable-font-backend was given.
1543 if test "${enable_font_backend+set}" = set; then
1544 enableval
="$enable_font_backend"
1545 USE_FONT_BACKEND
=$enableval
1550 # Check whether --enable-asserts or --disable-asserts was given.
1551 if test "${enable_asserts+set}" = set; then
1552 enableval
="$enable_asserts"
1553 USE_XASSERTS
=$enableval
1558 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1559 if test "${enable_maintainer_mode+set}" = set; then
1560 enableval
="$enable_maintainer_mode"
1561 USE_MAINTAINER_MODE
=$enableval
1563 USE_MAINTAINER_MODE
=no
1565 if test $USE_MAINTAINER_MODE = yes; then
1572 # Check whether --enable-locallisppath or --disable-locallisppath was given.
1573 if test "${enable_locallisppath+set}" = set; then
1574 enableval
="$enable_locallisppath"
1575 if test "${enableval}" = "no"; then
1577 elif test "${enableval}" != "yes"; then
1578 locallisppath
=${enableval}
1582 #### Make srcdir absolute, if it isn't already. It's important to
1583 #### avoid running the path through pwd unnecessarily, since pwd can
1584 #### give you automounter prefixes, which can go away. We do all this
1585 #### so Emacs can find its files when run uninstalled.
1586 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1591 ## We may be able to use the $PWD environment variable to make this
1592 ## absolute. But sometimes PWD is inaccurate.
1593 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1594 ## but that tested only for a well-formed and valid PWD,
1595 ## it did not object when PWD was well-formed and valid but just wrong.
1596 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1600 srcdir
="`(cd ${srcdir}; pwd)`"
1603 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
1606 #### Check if the source directory already has a configured system in it.
1607 if test `pwd` != `(cd ${srcdir} && pwd)` \
1608 && test -f "${srcdir}/src/config.h" ; then
1609 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
1610 as a build directory right now; it has been configured in its own
1611 right. To configure in another directory as well, you MUST
1612 use GNU make. If you do not have GNU make, then you must
1613 now do \`make distclean' in ${srcdir},
1614 and then run $0 again." >&5
1615 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
1616 as a build directory right now; it has been configured in its own
1617 right. To configure in another directory as well, you MUST
1618 use GNU make. If you do not have GNU make, then you must
1619 now do \`make distclean' in ${srcdir},
1620 and then run $0 again." >&2;}
1623 #### Given the configuration name, set machfile and opsysfile to the
1624 #### names of the m/*.h and s/*.h files we should use.
1626 ### Canonicalize the configuration name.
1629 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1630 if test -f $ac_dir/install-sh
; then
1632 ac_install_sh
="$ac_aux_dir/install-sh -c"
1634 elif test -f $ac_dir/install.sh
; then
1636 ac_install_sh
="$ac_aux_dir/install.sh -c"
1638 elif test -f $ac_dir/shtool
; then
1640 ac_install_sh
="$ac_aux_dir/shtool install -c"
1644 if test -z "$ac_aux_dir"; then
1645 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1646 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1647 { (exit 1); exit 1; }; }
1649 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
1650 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
1651 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1653 # Make sure we can run config.sub.
1654 $ac_config_sub sun4
>/dev
/null
2>&1 ||
1655 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1656 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1657 { (exit 1); exit 1; }; }
1659 echo "$as_me:$LINENO: checking build system type" >&5
1660 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1661 if test "${ac_cv_build+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1664 ac_cv_build_alias
=$build_alias
1665 test -z "$ac_cv_build_alias" &&
1666 ac_cv_build_alias
=`$ac_config_guess`
1667 test -z "$ac_cv_build_alias" &&
1668 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1669 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1670 { (exit 1); exit 1; }; }
1671 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias` ||
1672 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1673 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1674 { (exit 1); exit 1; }; }
1677 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1678 echo "${ECHO_T}$ac_cv_build" >&6
1680 build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1681 build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1682 build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685 echo "$as_me:$LINENO: checking host system type" >&5
1686 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1687 if test "${ac_cv_host+set}" = set; then
1688 echo $ECHO_N "(cached) $ECHO_C" >&6
1690 ac_cv_host_alias
=$host_alias
1691 test -z "$ac_cv_host_alias" &&
1692 ac_cv_host_alias
=$ac_cv_build_alias
1693 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias` ||
1694 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1695 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1696 { (exit 1); exit 1; }; }
1699 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1700 echo "${ECHO_T}$ac_cv_host" >&6
1702 host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1703 host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1704 host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1708 configuration
=${host_alias-$host}
1712 ### If you add support for a new configuration, add code to this
1713 ### switch statement to recognize your configuration name and select
1714 ### the appropriate operating system and machine description files.
1716 ### You would hope that you could choose an m/*.h file pretty much
1717 ### based on the machine portion of the configuration name, and an s-
1718 ### file based on the operating system portion. However, it turns out
1719 ### that each m/*.h file is pretty manufacturer-specific - for
1720 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
1721 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
1722 ### machines. So we basically have to have a special case for each
1723 ### configuration name.
1725 ### As far as handling version numbers on operating systems is
1726 ### concerned, make sure things will fail in a fixable way. If
1727 ### /etc/MACHINES doesn't say anything about version numbers, be
1728 ### prepared to handle anything reasonably. If version numbers
1729 ### matter, be sure /etc/MACHINES says something about it.
1731 ### Eric Raymond says we should accept strings like "sysvr4" to mean
1732 ### "System V Release 4"; he writes, "The old convention encouraged
1733 ### confusion between `system' and `release' levels'."
1735 machine
='' opsys
='' unported
=no
1736 case "${canonical}" in
1741 case "${canonical}" in
1742 alpha
*-*-freebsd*) machine
=alpha
;;
1743 ia64-
*-freebsd*) machine
=ia64
;;
1744 sparc64-
*-freebsd*) machine
=sparc
;;
1745 powerpc-
*-freebsd*) machine
=macppc
;;
1746 i
[3456]86-*-freebsd*) machine
=intel386
;;
1747 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1754 if test -f /usr
/lib
/crti.o
; then
1756 cat >>confdefs.h
<<\_ACEOF
1762 case "${canonical}" in
1763 alpha
*-*-netbsd*) machine
=alpha
;;
1764 i
[3456]86-*-netbsd*) machine
=intel386
;;
1766 # This is somewhat bogus.
1767 machine
=hp9000s300
;;
1768 powerpc-apple-netbsd
*) machine
=macppc
;;
1769 mips-
*-netbsd*) machine
=pmax
;;
1770 mipsel-
*-netbsd*) machine
=pmax
;;
1771 mipseb-
*-netbsd*) machine
=pmax
;;
1772 ns32k-
*-netbsd*) machine
=ns32000
;;
1773 powerpc-
*-netbsd*) machine
=macppc
;;
1774 sparc
*-*-netbsd*) machine
=sparc
;;
1775 vax-
*-netbsd*) machine
=vax
;;
1776 arm-
*-netbsd*) machine
=arm
;;
1783 case "${canonical}" in
1784 alpha
*-*-openbsd*) machine
=alpha
;;
1785 i386-
*-openbsd*) machine
=intel386
;;
1786 x86_64-
*-openbsd*) machine
=amdx86-64
;;
1787 m68k-
*-openbsd*) machine
=hp9000s300
;;
1788 mipsel-
*-openbsd*) machine
=pmax
;;
1789 ns32k-
*-openbsd*) machine
=ns32000
;;
1790 sparc-
*-openbsd*) machine
=sparc
;;
1791 vax-
*-openbsd*) machine
=vax
;;
1798 case "${canonical}" in
1799 i
[3456]86-*-lynxos*) machine
=intel386
;;
1800 powerpc-
*-lynxos*) machine
=powerpc
;;
1805 arm-acorn-riscix1.1
* )
1806 machine
=acorn opsys
=riscix1-1
1808 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1809 ## This name is riscix12 instead of riscix1.2
1810 ## to avoid a file name conflict on MSDOS.
1811 machine
=acorn opsys
=riscix12
1817 case "${canonical}" in
1818 i
[345]86-*-bsdi*) machine
=intel386
;;
1819 sparc-
*-bsdi*) machine
=sparc
;;
1820 powerpc-
*-bsdi*) machine
=macppc
;;
1822 case "${canonical}" in
1823 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1824 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1825 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1826 *-*-bsdi3* ) opsys
=bsdos3
;;
1827 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1832 ## Strictly speaking, we need the version of the alliant operating
1833 ## system to choose the right machine file, but currently the
1834 ## configuration name doesn't tell us enough to choose the right
1835 ## one; we need to give alliants their own operating system name to
1836 ## do this right. When someone cares, they can help us.
1838 machine
=alliant4 opsys
=bsd4-2
1841 machine
=alliant-2800 opsys
=bsd4-3
1844 ## Alpha (DEC) machines.
1846 machine
=alpha opsys
=osf1
1847 # This is needed to find X11R6.1 libraries for certain tests.
1848 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1849 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1850 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1851 # due to non-traditional preprocessing with the current compiler
1852 # defaults. OSF 4 can also have that compiler version, and there
1853 # seems always to have been a usable /usr/bin/cpp.
1854 NON_GNU_CPP
=/usr
/bin
/cpp
1855 case "${canonical}" in
1856 alpha
*-dec-osf[5-9]*)
1861 alpha
*-*-linux-gnu* )
1862 machine
=alpha opsys
=gnu-linux
1866 machine
=arm opsys
=gnu-linux
1871 machine
=altos opsys
=usg5-2
1876 machine
=amdahl opsys
=usg5-2-2
1879 ## Apollo, Domain/OS
1881 machine
=apollo opsys
=bsd4-3
1884 ## AT&T 3b2, 3b5, 3b15, 3b20
1886 machine
=att3b opsys
=usg5-2-2
1889 ## AT&T 3b1 - The Mighty Unix PC!
1891 machine
=7300 opsys
=usg5-2-2
1896 machine
=ibmrs6000 opsys
=aix3-2
1901 machine
=dpx2 opsys
=usg5-3
1906 machine
=sps7 opsys
=usg5-2
1909 ## CCI 5/32, 6/32 -- see "Tahoe".
1912 ## I don't know what configuration name to use for this; config.sub
1913 ## doesn't seem to know anything about it. Hey, Celerity users, get
1914 ## in touch with us!
1915 celerity-celerity-bsd
* )
1916 machine
=celerity opsys
=bsd4-2
1920 ## What operating systems does this chip run that Emacs has been
1924 ## We'll use the catch-all code at the bottom to guess the
1925 ## operating system.
1929 mips-compaq-nonstopux
* )
1930 machine
=nonstopux opsys
=nonstopux
1934 *-convex-bsd* |
*-convex-convexos* )
1935 machine
=convex opsys
=bsd4-3
1936 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1937 NON_GNU_CPP
="cc -E -P"
1941 i
[3456]86-cubix-sysv* )
1942 machine
=intel386 opsys
=usg5-3
1946 cydra
*-cydrome-sysv* )
1947 machine
=cydra5 opsys
=usg5-3
1950 ## Data General AViiON Machines
1951 ## DG changed naming conventions with the release of 5.4.4.10, they
1952 ## dropped the initial 5.4 but left the intervening R. Because of the
1953 ## R this shouldn't conflict with older versions of the OS (which I
1954 ## think were named like dgux4.*). In addition, DG new AViiONs series
1955 ## uses either Motorola M88k or Intel Pentium CPUs.
1956 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1957 machine
=aviion opsys
=dgux4
1959 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1960 ## This name is dgux5-4-3 instead of dgux5-4r3
1961 ## to avoid a file name conflict on MSDOS.
1962 machine
=aviion opsys
=dgux5-4-3
1964 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1965 machine
=aviion opsys
=dgux5-4r2
1968 machine
=aviion opsys
=dgux
1971 ## Data General AViiON Intel (x86) Machines
1972 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1973 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1974 i
[345]86-dg-dguxR4* )
1975 machine
=aviion-intel opsys
=dgux4
1979 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1980 machine
=pmax opsys
=bsd4-2
1982 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1983 machine
=pmax opsys
=bsd4-3
1986 machine
=pmax opsys
=ultrix4-3
1989 machine
=pmax opsys
=osf1
1991 mips-dec-mach_bsd4.3
* )
1992 machine
=pmax opsys
=mach-bsd4-3
1995 ## Motorola Delta machines
1996 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1997 machine
=delta opsys
=usg5-3
1998 if test -z "`type gnucc | grep 'not found'`"
2000 if test -s /etc
/167config
2001 then CC
="gnucc -m68040"
2002 else CC
="gnucc -m68881"
2005 if test -z "`type gcc | grep 'not found'`"
2011 m88k-motorola-sysv4
* )
2012 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2013 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2014 # I hope there are not other 4.0 versions for this machine
2015 # which really need usg5-4 instead.
2016 machine
=delta88k opsys
=usg5-4-2
2018 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2019 machine
=delta88k opsys
=usg5-3
2024 machine
=dual opsys
=usg5-2
2026 m68
*-dual-uniplus* )
2027 machine
=dual opsys
=unipl5-2
2032 machine
=elxsi opsys
=usg5-2
2037 machine
=ns16000 opsys
=umax
2040 ## The GEC 63 - apparently, this port isn't really finished yet.
2041 # I'm sure we finished off the last of the machines, though. -- fx
2043 ## Gould Power Node and NP1
2045 machine
=gould opsys
=bsd4-2
2048 machine
=gould opsys
=bsd4-3
2051 machine
=gould-np1 opsys
=bsd4-3
2054 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2055 ## as far as Emacs is concerned).
2057 # Build needs to be different on 7.0 and later releases
2058 case "`uname -r`" in
2059 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2060 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2062 NON_GNU_CPP
="/lib/cpp"
2064 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2066 machine
=nh3000 opsys
=cxux
2068 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2069 powerpc-harris-powerunix
)
2070 machine
=nh6000 opsys
=powerunix
2071 NON_GNU_CPP
="cc -Xo -E -P"
2073 ## SR2001/SR2201 running HI-UX/MPP
2074 hppa1.1
-hitachi-hiuxmpp* )
2075 machine
=sr2k opsys
=hiuxmpp
2077 hppa1.1
-hitachi-hiuxwe2* )
2078 machine
=sr2k opsys
=hiuxwe2
2081 xps
*-honeywell-sysv* )
2082 machine
=xps100 opsys
=usg5-2
2085 ## HP 9000 series 200 or 300
2087 machine
=hp9000s300 opsys
=bsd4-3
2089 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2091 case "`uname -r`" in
2092 ## Someone's system reports A.B8.05 for this.
2093 ## I wonder what other possibilities there are.
2094 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2095 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2096 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2097 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2098 *) machine
=hp9000s300 opsys
=hpux
;;
2102 ## HP 9000 series 700 and 800, running HP/UX
2104 machine
=hp800 opsys
=hpux
2107 machine
=hp800 opsys
=hpux8
2109 hppa
*-hp-hpux9shr* )
2110 machine
=hp800 opsys
=hpux9shr
2113 machine
=hp800 opsys
=hpux9
2115 hppa
*-hp-hpux10.2
* )
2116 machine
=hp800 opsys
=hpux10-20
2119 machine
=hp800 opsys
=hpux10
2121 hppa
*-hp-hpux1[1-9]* )
2122 machine
=hp800 opsys
=hpux11
2123 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2126 hppa
*-*-linux-gnu* )
2127 machine
=hp800 opsys
=gnu-linux
2130 ## HP 9000 series 700 and 800, running HP/UX
2132 ## Cross-compilation? Nah!
2133 case "`uname -r`" in
2134 ## Someone's system reports A.B8.05 for this.
2135 ## I wonder what other possibilities there are.
2136 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2137 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2138 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2139 *) machine
=hp800 opsys
=hpux10
;;
2143 machine
=hp800 opsys
=nextstep
2148 machine
=orion opsys
=bsd4-2
2150 clipper-orion-bsd
* )
2151 machine
=orion105 opsys
=bsd4-2
2155 i
[3456]86-ibm-aix1.1
* )
2156 machine
=ibmps2-aix opsys
=usg5-2-2
2158 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2159 machine
=ibmps2-aix opsys
=usg5-3
2162 machine
=ibm370aix opsys
=usg5-3
2165 machine
=ibms390 opsys
=gnu-linux
2167 s390x-
*-linux-gnu* )
2168 machine
=ibms390x opsys
=gnu-linux
2170 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2171 machine
=ibmrs6000 opsys
=aix3-1
2173 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2174 machine
=ibmrs6000 opsys
=aix3-2-5
2176 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2177 machine
=ibmrs6000 opsys
=aix4-1
2179 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2180 machine
=ibmrs6000 opsys
=aix4-2
2182 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2183 machine
=ibmrs6000 opsys
=aix4-2
2185 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2186 machine
=ibmrs6000 opsys
=aix4
2188 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2189 machine
=ibmrs6000 opsys
=aix4-1
2191 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2192 machine
=ibmrs6000 opsys
=aix3-2
2195 machine
=ibmrt opsys
=bsd4-3
2198 machine
=ibmrt opsys
=bsd4-2
2201 machine
=ibmrt opsys
=bsd4-3
2204 machine
=ibmrt opsys
=bsd4-2
2207 machine
=ibmrt opsys
=bsd4-3
2210 machine
=ibmrt opsys
=bsd4-3
2213 machine
=ibmrt-aix opsys
=usg5-2-2
2216 ## Integrated Solutions `Optimum V'
2218 machine
=isi-ov opsys
=bsd4-2
2221 machine
=isi-ov opsys
=bsd4-3
2224 ## Intel 386 machines where we do care about the manufacturer
2225 i
[3456]86-intsys-sysv* )
2226 machine
=is386 opsys
=usg5-2-2
2230 i
[3456]86-prime-sysv* )
2231 machine
=i386 opsys
=usg5-3
2234 ## Sequent Symmetry running Dynix
2235 i
[3456]86-sequent-bsd* )
2236 machine
=symmetry opsys
=bsd4-3
2239 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2240 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2241 machine
=sequent-ptx opsys
=ptx4
2242 NON_GNU_CPP
=/lib
/cpp
2245 ## Sequent Symmetry running DYNIX/ptx
2246 ## Use the old cpp rather than the newer ANSI one.
2247 i
[3456]86-sequent-ptx* )
2248 machine
=sequent-ptx opsys
=ptx
2249 NON_GNU_CPP
="/lib/cpp"
2252 ## ncr machine running svr4.3.
2253 i
[3456]86-ncr-sysv4.3
)
2254 machine
=ncr386 opsys
=usg5-4-3
2257 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2258 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2259 i
[3456]86-ncr-sysv* )
2260 machine
=ncr386 opsys
=usg5-4-2
2263 ## Intel Paragon OSF/1
2265 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2270 machine
=i860 opsys
=usg5-4
2271 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2272 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2275 ## Macintosh PowerPC
2276 powerpc
*-*-linux-gnu* )
2277 machine
=macppc opsys
=gnu-linux
2280 ## Masscomp machines
2281 m68
*-masscomp-rtu* )
2282 machine
=masscomp opsys
=rtu
2285 ## Megatest machines
2286 m68
*-megatest-bsd* )
2287 machine
=mega68 opsys
=bsd4-2
2290 ## Workstations sold by MIPS
2291 ## This is not necessarily all workstations using the MIPS processor -
2292 ## Irises are produced by SGI, and DECstations by DEC.
2294 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2295 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2296 ## it gives for choosing between the alternatives seems to be "Use
2297 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2298 ## the BSD world." I'll assume that these are instructions for
2299 ## handling two odd situations, and that every other situation
2300 ## should use mips.h and usg5-2-2, they being listed first.
2303 ## Fall through to the general code at the bottom to decide on the OS.
2305 mips-mips-riscos4
* )
2306 machine
=mips4 opsys
=bsd4-3
2307 NON_GNU_CC
="cc -systype bsd43"
2308 NON_GNU_CPP
="cc -systype bsd43 -E"
2310 mips-mips-riscos5
* )
2311 machine
=mips4 opsys
=riscos5
2312 NON_GNU_CC
="cc -systype bsd43"
2313 NON_GNU_CPP
="cc -systype bsd43 -E"
2316 machine
=mips opsys
=bsd4-3
2319 machine
=mips opsys
=usg5-2-2
2323 m68
*-next-* | m68k-
*-nextstep* )
2324 machine
=m68k opsys
=nextstep
2327 ## The complete machine from National Semiconductor
2329 machine
=ns32000 opsys
=usg5-2
2333 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2334 machine
=tower32 opsys
=usg5-2-2
2336 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2337 machine
=tower32v3 opsys
=usg5-3
2342 machine
=ews4800 opsys
=ux4800
2345 ## Nixdorf Targon 31
2346 m68
*-nixdorf-sysv* )
2347 machine
=targon31 opsys
=usg5-2-2
2352 machine
=nu opsys
=usg5-2
2357 machine
=plexus opsys
=usg5-2
2361 ## I don't really have any idea what sort of processor the Pyramid has,
2362 ## so I'm assuming it is its own architecture.
2363 pyramid-pyramid-bsd
* )
2364 machine
=pyramid opsys
=bsd4-2
2368 ns32k-sequent-bsd4.2
* )
2369 machine
=sequent opsys
=bsd4-2
2371 ns32k-sequent-bsd4.3
* )
2372 machine
=sequent opsys
=bsd4-3
2376 mips-siemens-sysv
* | mips-sni-sysv
*)
2377 machine
=mips-siemens opsys
=usg5-4
2378 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2379 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2382 ## Silicon Graphics machines
2383 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2385 machine
=irist opsys
=iris3-5
2387 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2388 machine
=irist opsys
=iris3-6
2392 machine
=iris4d opsys
=irix3-3
2395 machine
=iris4d opsys
=irix4-0
2398 machine
=iris4d opsys
=irix6-5
2399 # Without defining _LANGUAGE_C, things get masked out in the headers
2400 # so that, for instance, grepping for `free' in stdlib.h fails and
2401 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2402 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2403 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2406 machine
=iris4d opsys
=irix6-0
2407 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2408 # but presumably it does no harm.
2409 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2410 # -32 probably isn't necessary in later v.6s -- anyone know which?
2411 NON_GCC_TEST_OPTIONS
=-32
2413 mips-sgi-irix5.
[01]* )
2414 machine
=iris4d opsys
=irix5-0
2416 mips-sgi-irix5
* | mips-sgi-irix
* )
2417 machine
=iris4d opsys
=irix5-2
2422 machine
=news opsys
=bsd4-2
2425 machine
=news opsys
=bsd4-3
2427 m68
*-sony-newsos3* | m68
*-sony-news3*)
2428 machine
=news opsys
=bsd4-3
2430 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2431 machine
=news-risc opsys
=bsd4-3
2433 mips-sony-newsos6
* )
2434 machine
=news-r6 opsys
=newsos6
2437 machine
=news-risc opsys
=newsos5
2442 machine
=stride opsys
=usg5-2
2446 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2447 machine
=sparc opsys
=gnu-linux
2450 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2451 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2452 | rs6000-
*-solaris2*)
2453 case "${canonical}" in
2454 m68
*-sunos1* ) machine
=sun1
;;
2455 m68
*-sunos2* ) machine
=sun2
;;
2456 m68
* ) machine
=sun3
;;
2457 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2458 i
[3456]86-*-* ) machine
=intel386
;;
2459 powerpcle
* ) machine
=powerpcle
;;
2460 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2461 sparc
* ) machine
=sparc
;;
2464 case "${canonical}" in
2465 ## The Sun386 didn't get past 4.0.
2466 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2467 *-sunos4.0
* ) opsys
=sunos4-0
;;
2468 *-sunos4.1.
[3-9]*noshare
)
2469 ## This name is sunos413 instead of sunos4-1-3
2470 ## to avoid a file name conflict on MSDOS.
2472 NON_GNU_CPP
=/usr
/lib
/cpp
2473 NON_GCC_TEST_OPTIONS
=-Bstatic
2474 GCC_TEST_OPTIONS
=-static
2476 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2478 NON_GNU_CPP
=/usr
/lib
/cpp
2480 *-sunos4* |
*-sunos )
2482 NON_GCC_TEST_OPTIONS
=-Bstatic
2483 GCC_TEST_OPTIONS
=-static
2485 *-sunos5.3
* |
*-solaris2.3
* )
2487 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2489 *-sunos5.4
* |
*-solaris2.4
* )
2491 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2494 *-sunos5.5
* |
*-solaris2.5
* )
2496 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2499 *-sunos5.6
* |
*-solaris2.6
* )
2501 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2504 *-sunos5* |
*-solaris* )
2506 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2510 ## Watch out for a compiler that we know will not work.
2511 case "${canonical}" in
2512 *-solaris* |
*-sunos5* )
2513 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2514 ## /usr/ucb/cc doesn't work;
2515 ## we should find some other compiler that does work.
2523 machine
=sparc opsys
=nextstep
2527 m68
*-tadpole-sysv* )
2528 machine
=tad68k opsys
=usg5-3
2532 tahoe-tahoe-bsd4.2
* )
2533 machine
=tahoe opsys
=bsd4-2
2535 tahoe-tahoe-bsd4.3
* )
2536 machine
=tahoe opsys
=bsd4-3
2539 ## Tandem Integrity S2
2541 machine
=tandem-s2 opsys
=usg5-3
2545 m88k-tektronix-sysv3
* )
2546 machine
=tekxd88 opsys
=usg5-3
2549 ## Tektronix 16000 box (6130?)
2550 ns16k-tektronix-bsd
* )
2551 machine
=ns16000 opsys
=bsd4-2
2554 ## src/m/tek4300.h hints that this is a m68k machine.
2555 m68
*-tektronix-bsd* )
2556 machine
=tek4300 opsys
=bsd4-3
2560 ## We seem to have lost the machine-description file titan.h!
2562 machine
=titan opsys
=usg5-3
2565 ## Ustation E30 (SS5E)
2566 m68
*-unisys-uniplus* )
2567 machine
=ustation opsystem
=unipl5-2
2573 case "${canonical}" in
2574 *-bsd4.1
* ) opsys
=bsd4-1
;;
2575 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2576 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2577 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2578 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2579 *-vms* ) opsys
=vms
;;
2585 ns16k-whitechapel-
* )
2587 ## We don't know what sort of OS runs on these; we'll let the
2588 ## operating system guessing code below try.
2593 machine
=wicat opsys
=usg5-2
2598 machine
=ia64 opsys
=gnu-linux
2601 ## Intel 386 machines where we don't care about the manufacturer
2604 case "${canonical}" in
2605 *-cygwin ) opsys
=cygwin
;;
2606 *-darwin* ) opsys
=darwin
2607 CPP
="${CC-cc} -E -no-cpp-precomp"
2609 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2610 *-isc2.2
* ) opsys
=isc2-2
;;
2611 *-isc4.0
* ) opsys
=isc4-0
;;
2612 *-isc4.
* ) opsys
=isc4-1
2613 GCC_TEST_OPTIONS
=-posix
2614 NON_GCC_TEST_OPTIONS
=-Xp
2616 *-isc* ) opsys
=isc3-0
;;
2617 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2618 *-esix* ) opsys
=esix
;;
2619 *-xenix* ) opsys
=xenix
;;
2620 *-linux-gnu* ) opsys
=gnu-linux
;;
2621 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2622 *-sco3.2v5
* ) opsys
=sco5
2623 NON_GNU_CPP
=/lib
/cpp
2624 # Prevent -belf from being passed to $CPP.
2625 # /lib/cpp does not accept it.
2626 OVERRIDE_CPPFLAGS
=" "
2628 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2629 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2630 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2631 *-386bsd* ) opsys
=386bsd
;;
2632 *-nextstep* ) opsys
=nextstep
;;
2633 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2637 ## m68k Linux-based GNU system
2639 machine
=m68k opsys
=gnu-linux
2642 ## Mips Linux-based GNU system
2643 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2644 machine
=mips opsys
=gnu-linux
2648 sparc-fujitsu-sysv4
* )
2649 machine
=sparc opsys
=uxpds
2650 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2655 f301-fujitsu-uxpv4.1
)
2656 machine
=f301 opsys
=uxpv
2659 ## Darwin / Mac OS X
2660 powerpc-apple-darwin
* )
2661 machine
=powermac opsys
=darwin
2662 # Define CPP as follows to make autoconf work correctly.
2663 CPP
="${CC-cc} -E -no-cpp-precomp"
2664 # Use fink packages if available.
2665 if test -d /sw
/include
&& test -d /sw
/lib
; then
2666 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2667 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2668 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2672 ## AMD x86-64 Linux-based GNU system
2673 x86_64-
*-linux-gnu* )
2674 machine
=amdx86-64 opsys
=gnu-linux
2682 ### If the code above didn't choose an operating system, just choose
2683 ### an operating system based on the configuration name. You really
2684 ### only want to use this when you have no idea what the right
2685 ### operating system is; if you know what operating systems a machine
2686 ### runs, it's cleaner to make it explicit in the case statement
2688 if test x
"${opsys}" = x
; then
2689 case "${canonical}" in
2690 *-gnu* ) opsys
=gnu
;;
2691 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2692 *-bsd4.2
) opsys
=bsd4-2
;;
2693 *-bsd4.3
) opsys
=bsd4-3
;;
2694 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2695 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2696 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2697 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2698 *-sysv4.2uw
* ) opsys
=unixware
;;
2699 *-sysv5uw* ) opsys
=unixware
;;
2700 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2701 *-sysv4.1
* |
*-sysvr4.1
* )
2702 NON_GNU_CPP
=/usr
/lib
/cpp
2704 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2705 if [ x
$NON_GNU_CPP = x
]; then
2706 if [ -f /usr
/ccs
/lib
/cpp
]; then
2707 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2709 NON_GNU_CPP
=/lib
/cpp
2713 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2722 if test $unported = yes; then
2723 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2724 Check \`etc/MACHINES' for recognized configuration names." >&5
2725 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2726 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2727 { (exit 1); exit 1; }; }
2730 machfile
="m/${machine}.h"
2731 opsysfile
="s/${opsys}.h"
2734 #### Choose a compiler.
2735 test -n "$CC" && cc_specified
=yes
2737 # Save the value of CFLAGS that the user specified.
2738 SPECIFIED_CFLAGS
="$CFLAGS"
2741 "yes" ) CC
="gcc" GCC
=yes ;;
2742 "no" ) : ${CC=cc} ;;
2746 ac_cpp
='$CPP $CPPFLAGS'
2747 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2750 if test -n "$ac_tool_prefix"; then
2751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2752 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2753 echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2755 if test "${ac_cv_prog_CC+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 if test -n "$CC"; then
2759 ac_cv_prog_CC
="$CC" # Let the user override the test.
2761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir
=.
2766 for ac_exec_ext
in '' $ac_executable_extensions; do
2767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 if test -n "$CC"; then
2779 echo "$as_me:$LINENO: result: $CC" >&5
2780 echo "${ECHO_T}$CC" >&6
2782 echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2787 if test -z "$ac_cv_prog_CC"; then
2789 # Extract the first word of "gcc", so it can be a program name with args.
2790 set dummy gcc
; ac_word
=$2
2791 echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2794 echo $ECHO_N "(cached) $ECHO_C" >&6
2796 if test -n "$ac_ct_CC"; then
2797 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2803 test -z "$as_dir" && as_dir
=.
2804 for ac_exec_ext
in '' $ac_executable_extensions; do
2805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2806 ac_cv_prog_ac_ct_CC
="gcc"
2807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2816 if test -n "$ac_ct_CC"; then
2817 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2818 echo "${ECHO_T}$ac_ct_CC" >&6
2820 echo "$as_me:$LINENO: result: no" >&5
2821 echo "${ECHO_T}no" >&6
2829 if test -z "$CC"; then
2830 if test -n "$ac_tool_prefix"; then
2831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2832 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2833 echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2835 if test "${ac_cv_prog_CC+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC
="$CC" # Let the user override the test.
2841 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2845 test -z "$as_dir" && as_dir
=.
2846 for ac_exec_ext
in '' $ac_executable_extensions; do
2847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2858 if test -n "$CC"; then
2859 echo "$as_me:$LINENO: result: $CC" >&5
2860 echo "${ECHO_T}$CC" >&6
2862 echo "$as_me:$LINENO: result: no" >&5
2863 echo "${ECHO_T}no" >&6
2867 if test -z "$ac_cv_prog_CC"; then
2869 # Extract the first word of "cc", so it can be a program name with args.
2870 set dummy cc
; ac_word
=$2
2871 echo "$as_me:$LINENO: checking for $ac_word" >&5
2872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2874 echo $ECHO_N "(cached) $ECHO_C" >&6
2876 if test -n "$ac_ct_CC"; then
2877 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2879 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2883 test -z "$as_dir" && as_dir
=.
2884 for ac_exec_ext
in '' $ac_executable_extensions; do
2885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_ac_ct_CC
="cc"
2887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2896 if test -n "$ac_ct_CC"; then
2897 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2898 echo "${ECHO_T}$ac_ct_CC" >&6
2900 echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2910 if test -z "$CC"; then
2911 # Extract the first word of "cc", so it can be a program name with args.
2912 set dummy cc
; ac_word
=$2
2913 echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2915 if test "${ac_cv_prog_CC+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC
="$CC" # Let the user override the test.
2922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir
=.
2927 for ac_exec_ext
in '' $ac_executable_extensions; do
2928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2930 ac_prog_rejected
=yes
2934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 if test $ac_prog_rejected = yes; then
2941 # We found a bogon in the path, so make sure we never use it.
2942 set dummy
$ac_cv_prog_CC
2944 if test $# != 0; then
2945 # We chose a different compiler from the bogus one.
2946 # However, it has the same basename, so the bogon will be chosen
2947 # first if we set CC to just the basename; use the full file name.
2949 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2955 if test -n "$CC"; then
2956 echo "$as_me:$LINENO: result: $CC" >&5
2957 echo "${ECHO_T}$CC" >&6
2959 echo "$as_me:$LINENO: result: no" >&5
2960 echo "${ECHO_T}no" >&6
2964 if test -z "$CC"; then
2965 if test -n "$ac_tool_prefix"; then
2968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2969 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2970 echo "$as_me:$LINENO: checking for $ac_word" >&5
2971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2972 if test "${ac_cv_prog_CC+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC
="$CC" # Let the user override the test.
2978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2982 test -z "$as_dir" && as_dir
=.
2983 for ac_exec_ext
in '' $ac_executable_extensions; do
2984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2985 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2995 if test -n "$CC"; then
2996 echo "$as_me:$LINENO: result: $CC" >&5
2997 echo "${ECHO_T}$CC" >&6
2999 echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6
3003 test -n "$CC" && break
3006 if test -z "$CC"; then
3010 # Extract the first word of "$ac_prog", so it can be a program name with args.
3011 set dummy
$ac_prog; ac_word
=$2
3012 echo "$as_me:$LINENO: checking for $ac_word" >&5
3013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 if test -n "$ac_ct_CC"; then
3018 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3024 test -z "$as_dir" && as_dir
=.
3025 for ac_exec_ext
in '' $ac_executable_extensions; do
3026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_ac_ct_CC
="$ac_prog"
3028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3037 if test -n "$ac_ct_CC"; then
3038 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3039 echo "${ECHO_T}$ac_ct_CC" >&6
3041 echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6
3045 test -n "$ac_ct_CC" && break
3054 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3055 See \`config.log' for more details." >&5
3056 echo "$as_me: error: no acceptable C compiler found in \$PATH
3057 See \`config.log' for more details." >&2;}
3058 { (exit 1); exit 1; }; }
3060 # Provide some information about the compiler.
3061 echo "$as_me:$LINENO:" \
3062 "checking for C compiler version" >&5
3063 ac_compiler
=`set X $ac_compile; echo $2`
3064 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3065 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); }
3069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3070 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); }
3074 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3075 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }
3080 cat >conftest.
$ac_ext <<_ACEOF
3083 cat confdefs.h
>>conftest.
$ac_ext
3084 cat >>conftest.
$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3095 ac_clean_files_save
=$ac_clean_files
3096 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3097 # Try to create an executable without -o first, disregard a.out.
3098 # It will help us diagnose broken compilers, and finding out an intuition
3100 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3101 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3102 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3104 (eval $ac_link_default) 2>&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; then
3108 # Find the output, starting from the most likely. This scheme is
3109 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3112 # Be careful to initialize this variable, since it used to be cached.
3113 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3115 # b.out is created by i960 compilers.
3116 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3118 test -f "$ac_file" ||
continue
3120 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3123 # This is the source file.
3126 # We found the default executable, but exeext='' is most
3130 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3131 # FIXME: I believe we export ac_cv_exeext for Libtool,
3132 # but it would be cool to find out if it's true. Does anybody
3133 # maintain Libtool? --akim.
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.
$ac_ext >&5
3144 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3145 See \`config.log' for more details." >&5
3146 echo "$as_me: error: C compiler cannot create executables
3147 See \`config.log' for more details." >&2;}
3148 { (exit 77); exit 77; }; }
3151 ac_exeext
=$ac_cv_exeext
3152 echo "$as_me:$LINENO: result: $ac_file" >&5
3153 echo "${ECHO_T}$ac_file" >&6
3155 # Check the compiler produces executables we can run. If not, either
3156 # the compiler is broken, or we cross compile.
3157 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3158 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3159 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3160 # If not cross compiling, check that we can run a simple program.
3161 if test "$cross_compiling" != yes; then
3162 if { ac_try
='./$ac_file'
3163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }; }; then
3170 if test "$cross_compiling" = maybe
; then
3173 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3174 If you meant to cross compile, use \`--host'.
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: cannot run C compiled programs.
3177 If you meant to cross compile, use \`--host'.
3178 See \`config.log' for more details." >&2;}
3179 { (exit 1); exit 1; }; }
3183 echo "$as_me:$LINENO: result: yes" >&5
3184 echo "${ECHO_T}yes" >&6
3186 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3187 ac_clean_files
=$ac_clean_files_save
3188 # Check the compiler produces executables we can run. If not, either
3189 # the compiler is broken, or we cross compile.
3190 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3191 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3192 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3193 echo "${ECHO_T}$cross_compiling" >&6
3195 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3196 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3198 (eval $ac_link) 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; then
3202 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3203 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3204 # work properly (i.e., refer to `conftest.exe'), while it won't with
3206 for ac_file
in conftest.exe conftest conftest.
*; do
3207 test -f "$ac_file" ||
continue
3209 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3210 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3218 See \`config.log' for more details." >&5
3219 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3220 See \`config.log' for more details." >&2;}
3221 { (exit 1); exit 1; }; }
3224 rm -f conftest
$ac_cv_exeext
3225 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3226 echo "${ECHO_T}$ac_cv_exeext" >&6
3228 rm -f conftest.
$ac_ext
3229 EXEEXT
=$ac_cv_exeext
3231 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3232 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3233 if test "${ac_cv_objext+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3236 cat >conftest.
$ac_ext <<_ACEOF
3239 cat confdefs.h
>>conftest.
$ac_ext
3240 cat >>conftest.
$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3251 rm -f conftest.o conftest.obj
3252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3253 (eval $ac_compile) 2>&5
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); }; then
3257 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3259 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3260 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.
$ac_ext >&5
3268 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3269 See \`config.log' for more details." >&5
3270 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3271 See \`config.log' for more details." >&2;}
3272 { (exit 1); exit 1; }; }
3275 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3277 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3278 echo "${ECHO_T}$ac_cv_objext" >&6
3279 OBJEXT
=$ac_cv_objext
3281 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3282 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3283 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3286 cat >conftest.
$ac_ext <<_ACEOF
3289 cat confdefs.h
>>conftest.
$ac_ext
3290 cat >>conftest.
$ac_ext <<_ACEOF
3291 /* end confdefs.h. */
3304 rm -f conftest.
$ac_objext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3306 (eval $ac_compile) 2>conftest.er1
3308 grep -v '^ *+' conftest.er1
>conftest.err
3310 cat conftest.err
>&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try
='test -z "$ac_c_werror_flag"
3314 || test ! -s conftest.err'
3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); }; } &&
3320 { ac_try
='test -s conftest.$ac_objext'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3328 echo "$as_me: failed program was:" >&5
3329 sed 's/^/| /' conftest.
$ac_ext >&5
3333 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3334 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3337 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3338 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3339 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3340 ac_test_CFLAGS
=${CFLAGS+set}
3341 ac_save_CFLAGS
=$CFLAGS
3343 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3344 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3345 if test "${ac_cv_prog_cc_g+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 cat >conftest.
$ac_ext <<_ACEOF
3351 cat confdefs.h
>>conftest.
$ac_ext
3352 cat >>conftest.
$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3363 rm -f conftest.
$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>conftest.er1
3367 grep -v '^ *+' conftest.er1
>conftest.err
3369 cat conftest.err
>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try
='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try
='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3387 echo "$as_me: failed program was:" >&5
3388 sed 's/^/| /' conftest.
$ac_ext >&5
3392 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3394 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3395 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3396 if test "$ac_test_CFLAGS" = set; then
3397 CFLAGS
=$ac_save_CFLAGS
3398 elif test $ac_cv_prog_cc_g = yes; then
3399 if test "$GCC" = yes; then
3405 if test "$GCC" = yes; then
3411 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3412 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3413 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 ac_cv_prog_cc_stdc
=no
3418 cat >conftest.
$ac_ext <<_ACEOF
3421 cat confdefs.h
>>conftest.
$ac_ext
3422 cat >>conftest.
$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3426 #include <sys/types.h>
3427 #include <sys/stat.h>
3428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3429 struct buf { int x; };
3430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431 static char *e (p, i)
3437 static char *f (char * (*g) (char **, int), char **p, ...)
3442 s = g (p, va_arg (v,int));
3447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3448 function prototypes and stuff, but not '\xHH' hex character constants.
3449 These don't provoke an error unfortunately, instead are silently treated
3450 as 'x'. The following induces an error, until -std1 is added to get
3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3452 array size at least. It's necessary to write '\x00'==0 to get something
3453 that's true only with -std1. */
3454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3456 int test (int i, double x);
3457 struct s1 {int (*f) (int a);};
3458 struct s2 {int (*f) (double a);};
3459 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3465 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3470 # Don't try gcc -ansi; that turns off useful extensions and
3471 # breaks some systems' header files.
3472 # AIX -qlanglvl=ansi
3473 # Ultrix and OSF/1 -std1
3474 # HP-UX 10.20 and later -Ae
3475 # HP-UX older versions -Aa -D_HPUX_SOURCE
3476 # SVR4 -Xc -D__EXTENSIONS__
3477 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3479 CC
="$ac_save_CC $ac_arg"
3480 rm -f conftest.
$ac_objext
3481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3482 (eval $ac_compile) 2>conftest.er1
3484 grep -v '^ *+' conftest.er1
>conftest.err
3486 cat conftest.err
>&5
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); } &&
3489 { ac_try
='test -z "$ac_c_werror_flag"
3490 || test ! -s conftest.err'
3491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; } &&
3496 { ac_try
='test -s conftest.$ac_objext'
3497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); }; }; then
3502 ac_cv_prog_cc_stdc
=$ac_arg
3505 echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.
$ac_ext >&5
3509 rm -f conftest.err conftest.
$ac_objext
3511 rm -f conftest.
$ac_ext conftest.
$ac_objext
3516 case "x$ac_cv_prog_cc_stdc" in
3518 echo "$as_me:$LINENO: result: none needed" >&5
3519 echo "${ECHO_T}none needed" >&6 ;;
3521 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3522 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3523 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3526 # Some people use a C++ compiler to compile C. Since we use `exit',
3527 # in C++ we need to declare it. In case someone uses the same compiler
3528 # for both compiling C and C++ we need to have the C++ compiler decide
3529 # the declaration of exit, since it's the most demanding environment.
3530 cat >conftest.
$ac_ext <<_ACEOF
3535 rm -f conftest.
$ac_objext
3536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3537 (eval $ac_compile) 2>conftest.er1
3539 grep -v '^ *+' conftest.er1
>conftest.err
3541 cat conftest.err
>&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } &&
3544 { ac_try
='test -z "$ac_c_werror_flag"
3545 || test ! -s conftest.err'
3546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); }; } &&
3551 { ac_try
='test -s conftest.$ac_objext'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 for ac_declaration
in \
3559 'extern "C" void std::exit (int) throw (); using std::exit;' \
3560 'extern "C" void std::exit (int); using std::exit;' \
3561 'extern "C" void exit (int) throw ();' \
3562 'extern "C" void exit (int);' \
3565 cat >conftest.
$ac_ext <<_ACEOF
3568 cat confdefs.h
>>conftest.
$ac_ext
3569 cat >>conftest.
$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3581 rm -f conftest.
$ac_objext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3583 (eval $ac_compile) 2>conftest.er1
3585 grep -v '^ *+' conftest.er1
>conftest.err
3587 cat conftest.err
>&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try
='test -z "$ac_c_werror_flag"
3591 || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try
='test -s conftest.$ac_objext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3605 echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.
$ac_ext >&5
3610 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3611 cat >conftest.
$ac_ext <<_ACEOF
3614 cat confdefs.h
>>conftest.
$ac_ext
3615 cat >>conftest.
$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3626 rm -f conftest.
$ac_objext
3627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3628 (eval $ac_compile) 2>conftest.er1
3630 grep -v '^ *+' conftest.er1
>conftest.err
3632 cat conftest.err
>&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } &&
3635 { ac_try
='test -z "$ac_c_werror_flag"
3636 || test ! -s conftest.err'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; } &&
3642 { ac_try
='test -s conftest.$ac_objext'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; }; then
3650 echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.
$ac_ext >&5
3654 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3657 if test -n "$ac_declaration"; then
3658 echo '#ifdef __cplusplus' >>confdefs.h
3659 echo $ac_declaration >>confdefs.h
3660 echo '#endif' >>confdefs.h
3664 echo "$as_me: failed program was:" >&5
3665 sed 's/^/| /' conftest.
$ac_ext >&5
3668 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3670 ac_cpp
='$CPP $CPPFLAGS'
3671 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3676 # On Suns, sometimes $CPP names a directory.
3677 if test -n "$CPP" && test -d "$CPP"; then
3681 #### Some systems specify a CPP to use unless we are using GCC.
3682 #### Now that we know whether we are using GCC, we can decide whether
3683 #### to use that one.
3684 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3689 #### Some systems specify a CC to use unless we are using GCC.
3690 #### Now that we know whether we are using GCC, we can decide whether
3691 #### to use that one.
3692 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3693 test x
$cc_specified != xyes
3698 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3700 CC
="$CC $GCC_TEST_OPTIONS"
3703 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3705 CC
="$CC $NON_GCC_TEST_OPTIONS"
3710 ac_cpp
='$CPP $CPPFLAGS'
3711 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3712 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3713 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3714 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3715 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3716 # On Suns, sometimes $CPP names a directory.
3717 if test -n "$CPP" && test -d "$CPP"; then
3720 if test -z "$CPP"; then
3721 if test "${ac_cv_prog_CPP+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 # Double quotes because CPP needs to be expanded
3725 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3728 for ac_c_preproc_warn_flag
in '' yes
3730 # Use a header file that comes with gcc, so configuring glibc
3731 # with a fresh cross-compiler works.
3732 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3733 # <limits.h> exists even on freestanding compilers.
3734 # On the NeXT, cc -E runs the code through the compiler's parser,
3735 # not just through cpp. "Syntax error" is here to catch this case.
3736 cat >conftest.
$ac_ext <<_ACEOF
3739 cat confdefs.h
>>conftest.
$ac_ext
3740 cat >>conftest.
$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3743 # include <limits.h>
3745 # include <assert.h>
3749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3750 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3752 grep -v '^ *+' conftest.er1
>conftest.err
3754 cat conftest.err
>&5
3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756 (exit $ac_status); } >/dev
/null
; then
3757 if test -s conftest.err
; then
3758 ac_cpp_err
=$ac_c_preproc_warn_flag
3759 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3766 if test -z "$ac_cpp_err"; then
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.
$ac_ext >&5
3772 # Broken: fails on valid input.
3775 rm -f conftest.err conftest.
$ac_ext
3777 # OK, works on sane cases. Now check whether non-existent headers
3778 # can be detected and how.
3779 cat >conftest.
$ac_ext <<_ACEOF
3782 cat confdefs.h
>>conftest.
$ac_ext
3783 cat >>conftest.
$ac_ext <<_ACEOF
3784 /* end confdefs.h. */
3785 #include <ac_nonexistent.h>
3787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3788 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3790 grep -v '^ *+' conftest.er1
>conftest.err
3792 cat conftest.err
>&5
3793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); } >/dev
/null
; then
3795 if test -s conftest.err
; then
3796 ac_cpp_err
=$ac_c_preproc_warn_flag
3797 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3804 if test -z "$ac_cpp_err"; then
3805 # Broken: success on invalid input.
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.
$ac_ext >&5
3811 # Passes both tests.
3815 rm -f conftest.err conftest.
$ac_ext
3818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3819 rm -f conftest.err conftest.
$ac_ext
3820 if $ac_preproc_ok; then
3832 echo "$as_me:$LINENO: result: $CPP" >&5
3833 echo "${ECHO_T}$CPP" >&6
3835 for ac_c_preproc_warn_flag
in '' yes
3837 # Use a header file that comes with gcc, so configuring glibc
3838 # with a fresh cross-compiler works.
3839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3840 # <limits.h> exists even on freestanding compilers.
3841 # On the NeXT, cc -E runs the code through the compiler's parser,
3842 # not just through cpp. "Syntax error" is here to catch this case.
3843 cat >conftest.
$ac_ext <<_ACEOF
3846 cat confdefs.h
>>conftest.
$ac_ext
3847 cat >>conftest.
$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3850 # include <limits.h>
3852 # include <assert.h>
3856 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3859 grep -v '^ *+' conftest.er1
>conftest.err
3861 cat conftest.err
>&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev
/null
; then
3864 if test -s conftest.err
; then
3865 ac_cpp_err
=$ac_c_preproc_warn_flag
3866 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3873 if test -z "$ac_cpp_err"; then
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.
$ac_ext >&5
3879 # Broken: fails on valid input.
3882 rm -f conftest.err conftest.
$ac_ext
3884 # OK, works on sane cases. Now check whether non-existent headers
3885 # can be detected and how.
3886 cat >conftest.
$ac_ext <<_ACEOF
3889 cat confdefs.h
>>conftest.
$ac_ext
3890 cat >>conftest.
$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3894 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3895 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3897 grep -v '^ *+' conftest.er1
>conftest.err
3899 cat conftest.err
>&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } >/dev
/null
; then
3902 if test -s conftest.err
; then
3903 ac_cpp_err
=$ac_c_preproc_warn_flag
3904 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3911 if test -z "$ac_cpp_err"; then
3912 # Broken: success on invalid input.
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.
$ac_ext >&5
3918 # Passes both tests.
3922 rm -f conftest.err conftest.
$ac_ext
3925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3926 rm -f conftest.err conftest.
$ac_ext
3927 if $ac_preproc_ok; then
3930 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3931 See \`config.log' for more details." >&5
3932 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3933 See \`config.log' for more details." >&2;}
3934 { (exit 1); exit 1; }; }
3938 ac_cpp
='$CPP $CPPFLAGS'
3939 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3940 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3941 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3944 echo "$as_me:$LINENO: checking for egrep" >&5
3945 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3946 if test "${ac_cv_prog_egrep+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3949 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3950 then ac_cv_prog_egrep
='grep -E'
3951 else ac_cv_prog_egrep
='egrep'
3954 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3955 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3956 EGREP
=$ac_cv_prog_egrep
3960 echo "$as_me:$LINENO: checking for AIX" >&5
3961 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3962 cat >conftest.
$ac_ext <<_ACEOF
3965 cat confdefs.h
>>conftest.
$ac_ext
3966 cat >>conftest.
$ac_ext <<_ACEOF
3967 /* end confdefs.h. */
3973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3974 $EGREP "yes" >/dev
/null
2>&1; then
3975 echo "$as_me:$LINENO: result: yes" >&5
3976 echo "${ECHO_T}yes" >&6
3977 cat >>confdefs.h
<<\_ACEOF
3978 #define _ALL_SOURCE 1
3982 echo "$as_me:$LINENO: result: no" >&5
3983 echo "${ECHO_T}no" >&6
3989 cat >>confdefs.h
<<\_ACEOF
3990 #define _GNU_SOURCE 1
3995 ### Use -Wno-pointer-sign if the compiler supports it
3996 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3997 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3998 SAVE_CFLAGS
="$CFLAGS"
3999 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4000 cat >conftest.
$ac_ext <<_ACEOF
4003 cat confdefs.h
>>conftest.
$ac_ext
4004 cat >>conftest.
$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4015 rm -f conftest.
$ac_objext
4016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>conftest.er1
4019 grep -v '^ *+' conftest.er1
>conftest.err
4021 cat conftest.err
>&5
4022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } &&
4024 { ac_try
='test -z "$ac_c_werror_flag"
4025 || test ! -s conftest.err'
4026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); }; } &&
4031 { ac_try
='test -s conftest.$ac_objext'
4032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); }; }; then
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.
$ac_ext >&5
4044 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4045 if test $has_option = yes; then
4046 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4048 echo "$as_me:$LINENO: result: $has_option" >&5
4049 echo "${ECHO_T}$has_option" >&6
4050 CFLAGS
="$SAVE_CFLAGS"
4054 #### Some other nice autoconf tests.
4056 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4057 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4059 if test "$LN_S" = "ln -s"; then
4060 echo "$as_me:$LINENO: result: yes" >&5
4061 echo "${ECHO_T}yes" >&6
4063 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4064 echo "${ECHO_T}no, using $LN_S" >&6
4068 ac_cpp
='$CPP $CPPFLAGS'
4069 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4072 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4073 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4074 # On Suns, sometimes $CPP names a directory.
4075 if test -n "$CPP" && test -d "$CPP"; then
4078 if test -z "$CPP"; then
4079 if test "${ac_cv_prog_CPP+set}" = set; then
4080 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 # Double quotes because CPP needs to be expanded
4083 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4086 for ac_c_preproc_warn_flag
in '' yes
4088 # Use a header file that comes with gcc, so configuring glibc
4089 # with a fresh cross-compiler works.
4090 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4091 # <limits.h> exists even on freestanding compilers.
4092 # On the NeXT, cc -E runs the code through the compiler's parser,
4093 # not just through cpp. "Syntax error" is here to catch this case.
4094 cat >conftest.
$ac_ext <<_ACEOF
4097 cat confdefs.h
>>conftest.
$ac_ext
4098 cat >>conftest.
$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4101 # include <limits.h>
4103 # include <assert.h>
4107 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4108 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4110 grep -v '^ *+' conftest.er1
>conftest.err
4112 cat conftest.err
>&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev
/null
; then
4115 if test -s conftest.err
; then
4116 ac_cpp_err
=$ac_c_preproc_warn_flag
4117 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4124 if test -z "$ac_cpp_err"; then
4127 echo "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.
$ac_ext >&5
4130 # Broken: fails on valid input.
4133 rm -f conftest.err conftest.
$ac_ext
4135 # OK, works on sane cases. Now check whether non-existent headers
4136 # can be detected and how.
4137 cat >conftest.
$ac_ext <<_ACEOF
4140 cat confdefs.h
>>conftest.
$ac_ext
4141 cat >>conftest.
$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4143 #include <ac_nonexistent.h>
4145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4146 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4148 grep -v '^ *+' conftest.er1
>conftest.err
4150 cat conftest.err
>&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } >/dev
/null
; then
4153 if test -s conftest.err
; then
4154 ac_cpp_err
=$ac_c_preproc_warn_flag
4155 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4162 if test -z "$ac_cpp_err"; then
4163 # Broken: success on invalid input.
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.
$ac_ext >&5
4169 # Passes both tests.
4173 rm -f conftest.err conftest.
$ac_ext
4176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4177 rm -f conftest.err conftest.
$ac_ext
4178 if $ac_preproc_ok; then
4190 echo "$as_me:$LINENO: result: $CPP" >&5
4191 echo "${ECHO_T}$CPP" >&6
4193 for ac_c_preproc_warn_flag
in '' yes
4195 # Use a header file that comes with gcc, so configuring glibc
4196 # with a fresh cross-compiler works.
4197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4198 # <limits.h> exists even on freestanding compilers.
4199 # On the NeXT, cc -E runs the code through the compiler's parser,
4200 # not just through cpp. "Syntax error" is here to catch this case.
4201 cat >conftest.
$ac_ext <<_ACEOF
4204 cat confdefs.h
>>conftest.
$ac_ext
4205 cat >>conftest.
$ac_ext <<_ACEOF
4206 /* end confdefs.h. */
4208 # include <limits.h>
4210 # include <assert.h>
4214 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4215 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4217 grep -v '^ *+' conftest.er1
>conftest.err
4219 cat conftest.err
>&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } >/dev
/null
; then
4222 if test -s conftest.err
; then
4223 ac_cpp_err
=$ac_c_preproc_warn_flag
4224 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4231 if test -z "$ac_cpp_err"; then
4234 echo "$as_me: failed program was:" >&5
4235 sed 's/^/| /' conftest.
$ac_ext >&5
4237 # Broken: fails on valid input.
4240 rm -f conftest.err conftest.
$ac_ext
4242 # OK, works on sane cases. Now check whether non-existent headers
4243 # can be detected and how.
4244 cat >conftest.
$ac_ext <<_ACEOF
4247 cat confdefs.h
>>conftest.
$ac_ext
4248 cat >>conftest.
$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 #include <ac_nonexistent.h>
4252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4253 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4255 grep -v '^ *+' conftest.er1
>conftest.err
4257 cat conftest.err
>&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } >/dev
/null
; then
4260 if test -s conftest.err
; then
4261 ac_cpp_err
=$ac_c_preproc_warn_flag
4262 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4269 if test -z "$ac_cpp_err"; then
4270 # Broken: success on invalid input.
4273 echo "$as_me: failed program was:" >&5
4274 sed 's/^/| /' conftest.
$ac_ext >&5
4276 # Passes both tests.
4280 rm -f conftest.err conftest.
$ac_ext
4283 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4284 rm -f conftest.err conftest.
$ac_ext
4285 if $ac_preproc_ok; then
4288 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4289 See \`config.log' for more details." >&5
4290 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4291 See \`config.log' for more details." >&2;}
4292 { (exit 1); exit 1; }; }
4296 ac_cpp
='$CPP $CPPFLAGS'
4297 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4301 # Find a good install program. We prefer a C program (faster),
4302 # so one script is as good as another. But avoid the broken or
4303 # incompatible versions:
4304 # SysV /etc/install, /usr/sbin/install
4305 # SunOS /usr/etc/install
4306 # IRIX /sbin/install
4308 # AmigaOS /C/install, which installs bootblocks on floppy discs
4309 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4310 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4311 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4312 # OS/2's system install, which has a completely different semantic
4313 # ./install, which can be erroneously created by make from ./install.sh.
4314 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4315 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4316 if test -z "$INSTALL"; then
4317 if test "${ac_cv_path_install+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4324 test -z "$as_dir" && as_dir
=.
4325 # Account for people who put trailing slashes in PATH elements.
4327 .
/ | .
// |
/cC
/* | \
4328 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4329 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4332 # OSF1 and SCO ODT 3.0 have their own names for install.
4333 # Don't use installbsd from OSF since it installs stuff as root
4335 for ac_prog
in ginstall scoinst
install; do
4336 for ac_exec_ext
in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4338 if test $ac_prog = install &&
4339 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4340 # AIX install. It has an incompatible calling convention.
4342 elif test $ac_prog = install &&
4343 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4344 # program-specific install script used by HP pwplus--don't use.
4347 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4359 if test "${ac_cv_path_install+set}" = set; then
4360 INSTALL
=$ac_cv_path_install
4362 # As a last resort, use the slow shell script. We don't cache a
4363 # path for INSTALL within a source directory, because that will
4364 # break other packages using the cache if that directory is
4365 # removed, or if the path is relative.
4366 INSTALL
=$ac_install_sh
4369 echo "$as_me:$LINENO: result: $INSTALL" >&5
4370 echo "${ECHO_T}$INSTALL" >&6
4372 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4373 # It thinks the first close brace ends the variable substitution.
4374 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4376 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4378 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4380 if test "x$RANLIB" = x
; then
4381 if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4383 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4384 echo "$as_me:$LINENO: checking for $ac_word" >&5
4385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4386 if test "${ac_cv_prog_RANLIB+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 if test -n "$RANLIB"; then
4390 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4396 test -z "$as_dir" && as_dir
=.
4397 for ac_exec_ext
in '' $ac_executable_extensions; do
4398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4399 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 RANLIB
=$ac_cv_prog_RANLIB
4409 if test -n "$RANLIB"; then
4410 echo "$as_me:$LINENO: result: $RANLIB" >&5
4411 echo "${ECHO_T}$RANLIB" >&6
4413 echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6
4418 if test -z "$ac_cv_prog_RANLIB"; then
4419 ac_ct_RANLIB
=$RANLIB
4420 # Extract the first word of "ranlib", so it can be a program name with args.
4421 set dummy ranlib
; ac_word
=$2
4422 echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4424 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 if test -n "$ac_ct_RANLIB"; then
4428 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4434 test -z "$as_dir" && as_dir
=.
4435 for ac_exec_ext
in '' $ac_executable_extensions; do
4436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4437 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4447 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4448 if test -n "$ac_ct_RANLIB"; then
4449 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4450 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4452 echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4456 RANLIB
=$ac_ct_RANLIB
4458 RANLIB
="$ac_cv_prog_RANLIB"
4462 # Extract the first word of "install-info", so it can be a program name with args.
4463 set dummy install-info
; ac_word
=$2
4464 echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 case $INSTALL_INFO in
4471 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir
=.
4479 for ac_exec_ext
in '' $ac_executable_extensions; do
4480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4493 if test -n "$INSTALL_INFO"; then
4494 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4495 echo "${ECHO_T}$INSTALL_INFO" >&6
4497 echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4501 # Extract the first word of "install-info", so it can be a program name with args.
4502 set dummy install-info
; ac_word
=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 case $INSTALL_INFO in
4510 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4514 for as_dir
in /usr
/sbin
4517 test -z "$as_dir" && as_dir
=.
4518 for ac_exec_ext
in '' $ac_executable_extensions; do
4519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4532 if test -n "$INSTALL_INFO"; then
4533 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4534 echo "${ECHO_T}$INSTALL_INFO" >&6
4536 echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6
4540 # Extract the first word of "install-info", so it can be a program name with args.
4541 set dummy install-info
; ac_word
=$2
4542 echo "$as_me:$LINENO: checking for $ac_word" >&5
4543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4544 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 case $INSTALL_INFO in
4549 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4556 test -z "$as_dir" && as_dir
=.
4557 for ac_exec_ext
in '' $ac_executable_extensions; do
4558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4570 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4572 if test -n "$INSTALL_INFO"; then
4573 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4574 echo "${ECHO_T}$INSTALL_INFO" >&6
4576 echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6
4580 # Extract the first word of "gzip", so it can be a program name with args.
4581 set dummy
gzip; ac_word
=$2
4582 echo "$as_me:$LINENO: checking for $ac_word" >&5
4583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4584 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4585 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4596 test -z "$as_dir" && as_dir
=.
4597 for ac_exec_ext
in '' $ac_executable_extensions; do
4598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4611 if test -n "$GZIP_PROG"; then
4612 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4613 echo "${ECHO_T}$GZIP_PROG" >&6
4615 echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6
4621 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4623 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4626 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4628 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4632 late_LDFLAGS
=$LDFLAGS
4633 if test "$GCC" = yes; then
4634 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4636 LDFLAGS
="$LDFLAGS -znocombreloc"
4639 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4640 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4641 cat >conftest.
$ac_ext <<_ACEOF
4644 rm -f conftest.
$ac_objext conftest
$ac_exeext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4646 (eval $ac_link) 2>conftest.er1
4648 grep -v '^ *+' conftest.er1
>conftest.err
4650 cat conftest.err
>&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try
='test -z "$ac_c_werror_flag"
4654 || test ! -s conftest.err'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; } &&
4660 { ac_try
='test -s conftest$ac_exeext'
4661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; }; then
4666 echo "$as_me:$LINENO: result: yes" >&5
4667 echo "${ECHO_T}yes" >&6
4669 echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.
$ac_ext >&5
4672 LDFLAGS
=$late_LDFLAGS
4673 echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6
4676 rm -f conftest.err conftest.
$ac_objext \
4677 conftest
$ac_exeext conftest.
$ac_ext
4679 #### Extract some information from the operating system and machine files.
4681 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4682 - which libraries the lib-src programs will want, and
4683 - whether the GNU malloc routines are usable..." >&5
4684 echo "$as_me: checking the machine- and system-dependent files to find out
4685 - which libraries the lib-src programs will want, and
4686 - whether the GNU malloc routines are usable..." >&6;}
4688 ### First figure out CFLAGS (which we use for running the compiler here)
4689 ### and REAL_CFLAGS (which we use for real compilation).
4690 ### The two are the same except on a few systems, where they are made
4691 ### different to work around various lossages. For example,
4692 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4693 ### as implying static linking.
4695 ### If the CFLAGS env var is specified, we use that value
4696 ### instead of the default.
4698 ### It's not important that this name contain the PID; you can't run
4699 ### two configures in the same directory and have anything work
4701 tempcname
="conftest.c"
4704 #include "'${srcdir}'/src/'${opsysfile}'"
4705 #include "'${srcdir}'/src/'${machfile}'"
4706 #ifndef LIBS_MACHINE
4707 #define LIBS_MACHINE
4712 #ifndef C_SWITCH_SYSTEM
4713 #define C_SWITCH_SYSTEM
4715 #ifndef C_SWITCH_MACHINE
4716 #define C_SWITCH_MACHINE
4718 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4719 configure___ c_switch_system=C_SWITCH_SYSTEM
4720 configure___ c_switch_machine=C_SWITCH_MACHINE
4723 #define LIB_X11_LIB -lX11
4726 #ifndef LIBX11_MACHINE
4727 #define LIBX11_MACHINE
4730 #ifndef LIBX11_SYSTEM
4731 #define LIBX11_SYSTEM
4733 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4736 configure___ unexec=UNEXEC
4738 configure___ unexec=unexec.o
4741 #ifdef SYSTEM_MALLOC
4742 configure___ system_malloc=yes
4744 configure___ system_malloc=no
4747 #ifdef USE_MMAP_FOR_BUFFERS
4748 configure___ use_mmap_for_buffers=yes
4750 configure___ use_mmap_for_buffers=no
4753 #ifndef C_DEBUG_SWITCH
4754 #define C_DEBUG_SWITCH -g
4757 #ifndef C_OPTIMIZE_SWITCH
4759 #define C_OPTIMIZE_SWITCH -O2
4761 #define C_OPTIMIZE_SWITCH -O
4765 #ifndef C_WARNINGS_SWITCH
4766 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4769 #ifndef LD_SWITCH_MACHINE
4770 #define LD_SWITCH_MACHINE
4773 #ifndef LD_SWITCH_SYSTEM
4774 #define LD_SWITCH_SYSTEM
4777 #ifndef LD_SWITCH_X_SITE_AUX
4778 #define LD_SWITCH_X_SITE_AUX
4781 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4782 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4784 #ifdef THIS_IS_CONFIGURE
4786 /* Get the CFLAGS for tests in configure. */
4788 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4790 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4793 #else /* not THIS_IS_CONFIGURE */
4795 /* Get the CFLAGS for real compilation. */
4797 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4799 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4802 #endif /* not THIS_IS_CONFIGURE */
4805 # The value of CPP is a quoted variable reference, so we need to do this
4806 # to get its actual value...
4807 CPP
=`eval "echo $CPP"`
4808 eval `${CPP} -Isrc ${tempcname} \
4809 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4810 if test "x$SPECIFIED_CFLAGS" = x
; then
4811 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4812 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4814 REAL_CFLAGS
="$CFLAGS"
4818 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4820 ### Make sure subsequent tests use flags consistent with the build flags.
4822 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4823 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4825 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4830 # Check whether --enable-largefile or --disable-largefile was given.
4831 if test "${enable_largefile+set}" = set; then
4832 enableval
="$enable_largefile"
4835 if test "$enable_largefile" != no
; then
4837 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4838 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4839 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4842 ac_cv_sys_largefile_CC
=no
4843 if test "$GCC" != yes; then
4846 # IRIX 6.2 and later do not support large files by default,
4847 # so use the C compiler's -n32 option if that helps.
4848 cat >conftest.
$ac_ext <<_ACEOF
4851 cat confdefs.h
>>conftest.
$ac_ext
4852 cat >>conftest.
$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <sys/types.h>
4855 /* Check that off_t can represent 2**63 - 1 correctly.
4856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4857 since some C++ compilers masquerading as C compilers
4858 incorrectly reject 9223372036854775807. */
4859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4861 && LARGE_OFF_T % 2147483647 == 1)
4871 rm -f conftest.
$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873 (eval $ac_compile) 2>conftest.er1
4875 grep -v '^ *+' conftest.er1
>conftest.err
4877 cat conftest.err
>&5
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } &&
4880 { ac_try
='test -z "$ac_c_werror_flag"
4881 || test ! -s conftest.err'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; } &&
4887 { ac_try
='test -s conftest.$ac_objext'
4888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }; }; then
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.
$ac_ext >&5
4899 rm -f conftest.err conftest.
$ac_objext
4901 rm -f conftest.
$ac_objext
4902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>conftest.er1
4905 grep -v '^ *+' conftest.er1
>conftest.err
4907 cat conftest.err
>&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } &&
4910 { ac_try
='test -z "$ac_c_werror_flag"
4911 || test ! -s conftest.err'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; } &&
4917 { ac_try
='test -s conftest.$ac_objext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_cv_sys_largefile_CC
=' -n32'; break
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.
$ac_ext >&5
4929 rm -f conftest.err conftest.
$ac_objext
4933 rm -f conftest.
$ac_ext
4936 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4937 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4938 if test "$ac_cv_sys_largefile_CC" != no
; then
4939 CC
=$CC$ac_cv_sys_largefile_CC
4942 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4943 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4944 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 ac_cv_sys_file_offset_bits
=no
4949 cat >conftest.
$ac_ext <<_ACEOF
4952 cat confdefs.h
>>conftest.
$ac_ext
4953 cat >>conftest.
$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4955 #include <sys/types.h>
4956 /* Check that off_t can represent 2**63 - 1 correctly.
4957 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4958 since some C++ compilers masquerading as C compilers
4959 incorrectly reject 9223372036854775807. */
4960 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4961 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4962 && LARGE_OFF_T % 2147483647 == 1)
4972 rm -f conftest.
$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974 (eval $ac_compile) 2>conftest.er1
4976 grep -v '^ *+' conftest.er1
>conftest.err
4978 cat conftest.err
>&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try
='test -z "$ac_c_werror_flag"
4982 || test ! -s conftest.err'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; } &&
4988 { ac_try
='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.
$ac_ext >&5
5000 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5001 cat >conftest.
$ac_ext <<_ACEOF
5004 cat confdefs.h
>>conftest.
$ac_ext
5005 cat >>conftest.
$ac_ext <<_ACEOF
5006 /* end confdefs.h. */
5007 #define _FILE_OFFSET_BITS 64
5008 #include <sys/types.h>
5009 /* Check that off_t can represent 2**63 - 1 correctly.
5010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5011 since some C++ compilers masquerading as C compilers
5012 incorrectly reject 9223372036854775807. */
5013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5015 && LARGE_OFF_T % 2147483647 == 1)
5025 rm -f conftest.
$ac_objext
5026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5027 (eval $ac_compile) 2>conftest.er1
5029 grep -v '^ *+' conftest.er1
>conftest.err
5031 cat conftest.err
>&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } &&
5034 { ac_try
='test -z "$ac_c_werror_flag"
5035 || test ! -s conftest.err'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; } &&
5041 { ac_try
='test -s conftest.$ac_objext'
5042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); }; }; then
5047 ac_cv_sys_file_offset_bits
=64; break
5049 echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.
$ac_ext >&5
5053 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5057 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5058 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5059 if test "$ac_cv_sys_file_offset_bits" != no
; then
5061 cat >>confdefs.h
<<_ACEOF
5062 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5067 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5068 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5069 if test "${ac_cv_sys_large_files+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 ac_cv_sys_large_files
=no
5074 cat >conftest.
$ac_ext <<_ACEOF
5077 cat confdefs.h
>>conftest.
$ac_ext
5078 cat >>conftest.
$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 #include <sys/types.h>
5081 /* Check that off_t can represent 2**63 - 1 correctly.
5082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5083 since some C++ compilers masquerading as C compilers
5084 incorrectly reject 9223372036854775807. */
5085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5087 && LARGE_OFF_T % 2147483647 == 1)
5097 rm -f conftest.
$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099 (eval $ac_compile) 2>conftest.er1
5101 grep -v '^ *+' conftest.er1
>conftest.err
5103 cat conftest.err
>&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
5106 { ac_try
='test -z "$ac_c_werror_flag"
5107 || test ! -s conftest.err'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try
='test -s conftest.$ac_objext'
5114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5121 echo "$as_me: failed program was:" >&5
5122 sed 's/^/| /' conftest.
$ac_ext >&5
5125 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5126 cat >conftest.
$ac_ext <<_ACEOF
5129 cat confdefs.h
>>conftest.
$ac_ext
5130 cat >>conftest.
$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 #define _LARGE_FILES 1
5133 #include <sys/types.h>
5134 /* Check that off_t can represent 2**63 - 1 correctly.
5135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5136 since some C++ compilers masquerading as C compilers
5137 incorrectly reject 9223372036854775807. */
5138 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5140 && LARGE_OFF_T % 2147483647 == 1)
5150 rm -f conftest.
$ac_objext
5151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5152 (eval $ac_compile) 2>conftest.er1
5154 grep -v '^ *+' conftest.er1
>conftest.err
5156 cat conftest.err
>&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); } &&
5159 { ac_try
='test -z "$ac_c_werror_flag"
5160 || test ! -s conftest.err'
5161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; } &&
5166 { ac_try
='test -s conftest.$ac_objext'
5167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171 (exit $ac_status); }; }; then
5172 ac_cv_sys_large_files
=1; break
5174 echo "$as_me: failed program was:" >&5
5175 sed 's/^/| /' conftest.
$ac_ext >&5
5178 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5182 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5183 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5184 if test "$ac_cv_sys_large_files" != no
; then
5186 cat >>confdefs.h
<<_ACEOF
5187 #define _LARGE_FILES $ac_cv_sys_large_files
5196 ### The standard library on x86-64 GNU/Linux distributions can
5197 ### be located in either /usr/lib64 or /usr/lib.
5198 case "${canonical}" in
5199 x86_64-
*-linux-gnu* )
5200 if test -d /usr
/lib64
; then
5202 cat >>confdefs.h
<<\_ACEOF
5203 #define HAVE_X86_64_LIB64_DIR 1
5212 if test "${with_sound}" != "no"; then
5213 # Sound support for GNU/Linux and the free BSDs.
5214 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5215 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5216 if test "${ac_cv_header_stdc+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 cat >conftest.
$ac_ext <<_ACEOF
5222 cat confdefs.h
>>conftest.
$ac_ext
5223 cat >>conftest.
$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5238 rm -f conftest.
$ac_objext
5239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5240 (eval $ac_compile) 2>conftest.er1
5242 grep -v '^ *+' conftest.er1
>conftest.err
5244 cat conftest.err
>&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } &&
5247 { ac_try
='test -z "$ac_c_werror_flag"
5248 || test ! -s conftest.err'
5249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }; } &&
5254 { ac_try
='test -s conftest.$ac_objext'
5255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); }; }; then
5260 ac_cv_header_stdc
=yes
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.
$ac_ext >&5
5265 ac_cv_header_stdc
=no
5267 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5269 if test $ac_cv_header_stdc = yes; then
5270 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5271 cat >conftest.
$ac_ext <<_ACEOF
5274 cat confdefs.h
>>conftest.
$ac_ext
5275 cat >>conftest.
$ac_ext <<_ACEOF
5276 /* end confdefs.h. */
5280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5281 $EGREP "memchr" >/dev
/null
2>&1; then
5284 ac_cv_header_stdc
=no
5290 if test $ac_cv_header_stdc = yes; then
5291 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5292 cat >conftest.
$ac_ext <<_ACEOF
5295 cat confdefs.h
>>conftest.
$ac_ext
5296 cat >>conftest.
$ac_ext <<_ACEOF
5297 /* end confdefs.h. */
5301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5302 $EGREP "free" >/dev
/null
2>&1; then
5305 ac_cv_header_stdc
=no
5311 if test $ac_cv_header_stdc = yes; then
5312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5313 if test "$cross_compiling" = yes; then
5316 cat >conftest.
$ac_ext <<_ACEOF
5319 cat confdefs.h
>>conftest.
$ac_ext
5320 cat >>conftest.
$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5323 #if ((' ' & 0x0FF) == 0x020)
5324 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5325 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5327 # define ISLOWER(c) \
5328 (('a' <= (c) && (c) <= 'i') \
5329 || ('j' <= (c) && (c) <= 'r') \
5330 || ('s' <= (c) && (c) <= 'z'))
5331 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5334 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5339 for (i = 0; i < 256; i++)
5340 if (XOR (islower (i), ISLOWER (i))
5341 || toupper (i) != TOUPPER (i))
5346 rm -f conftest
$ac_exeext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5348 (eval $ac_link) 2>&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5359 echo "$as_me: program exited with status $ac_status" >&5
5360 echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.
$ac_ext >&5
5364 ac_cv_header_stdc
=no
5366 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5370 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5371 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5372 if test $ac_cv_header_stdc = yes; then
5374 cat >>confdefs.h
<<\_ACEOF
5375 #define STDC_HEADERS 1
5380 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5390 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5391 inttypes.h stdint.h unistd.h
5393 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5394 echo "$as_me:$LINENO: checking for $ac_header" >&5
5395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5397 echo $ECHO_N "(cached) $ECHO_C" >&6
5399 cat >conftest.
$ac_ext <<_ACEOF
5402 cat confdefs.h
>>conftest.
$ac_ext
5403 cat >>conftest.
$ac_ext <<_ACEOF
5404 /* end confdefs.h. */
5405 $ac_includes_default
5407 #include <$ac_header>
5409 rm -f conftest.
$ac_objext
5410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411 (eval $ac_compile) 2>conftest.er1
5413 grep -v '^ *+' conftest.er1
>conftest.err
5415 cat conftest.err
>&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } &&
5418 { ac_try
='test -z "$ac_c_werror_flag"
5419 || test ! -s conftest.err'
5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5424 (exit $ac_status); }; } &&
5425 { ac_try
='test -s conftest.$ac_objext'
5426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }; }; then
5431 eval "$as_ac_Header=yes"
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.
$ac_ext >&5
5436 eval "$as_ac_Header=no"
5438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5443 cat >>confdefs.h
<<_ACEOF
5444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5455 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5457 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5459 echo "$as_me:$LINENO: checking for $ac_header" >&5
5460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5467 # Is the header compilable?
5468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5470 cat >conftest.
$ac_ext <<_ACEOF
5473 cat confdefs.h
>>conftest.
$ac_ext
5474 cat >>conftest.
$ac_ext <<_ACEOF
5475 /* end confdefs.h. */
5476 $ac_includes_default
5477 #include <$ac_header>
5479 rm -f conftest.
$ac_objext
5480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5481 (eval $ac_compile) 2>conftest.er1
5483 grep -v '^ *+' conftest.er1
>conftest.err
5485 cat conftest.err
>&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); } &&
5488 { ac_try
='test -z "$ac_c_werror_flag"
5489 || test ! -s conftest.err'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; } &&
5495 { ac_try
='test -s conftest.$ac_objext'
5496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5500 (exit $ac_status); }; }; then
5501 ac_header_compiler
=yes
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.
$ac_ext >&5
5506 ac_header_compiler
=no
5508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5510 echo "${ECHO_T}$ac_header_compiler" >&6
5512 # Is the header present?
5513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5515 cat >conftest.
$ac_ext <<_ACEOF
5518 cat confdefs.h
>>conftest.
$ac_ext
5519 cat >>conftest.
$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 #include <$ac_header>
5523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5524 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5526 grep -v '^ *+' conftest.er1
>conftest.err
5528 cat conftest.err
>&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); } >/dev
/null
; then
5531 if test -s conftest.err
; then
5532 ac_cpp_err
=$ac_c_preproc_warn_flag
5533 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5540 if test -z "$ac_cpp_err"; then
5541 ac_header_preproc
=yes
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.
$ac_ext >&5
5546 ac_header_preproc
=no
5548 rm -f conftest.err conftest.
$ac_ext
5549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5550 echo "${ECHO_T}$ac_header_preproc" >&6
5552 # So? What about this header?
5553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5559 ac_header_preproc
=yes
5562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5576 ## ------------------------------------------ ##
5577 ## Report this to the AC_PACKAGE_NAME lists. ##
5578 ## ------------------------------------------ ##
5581 sed "s/^/$as_me: WARNING: /" >&2
5584 echo "$as_me:$LINENO: checking for $ac_header" >&5
5585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 eval "$as_ac_Header=\$ac_header_preproc"
5591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5596 cat >>confdefs.h
<<_ACEOF
5597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5604 # Emulation library used on NetBSD.
5605 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5606 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5607 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 ac_check_lib_save_LIBS
=$LIBS
5611 LIBS
="-lossaudio $LIBS"
5612 cat >conftest.
$ac_ext <<_ACEOF
5615 cat confdefs.h
>>conftest.
$ac_ext
5616 cat >>conftest.
$ac_ext <<_ACEOF
5617 /* end confdefs.h. */
5619 /* Override any gcc2 internal prototype to avoid an error. */
5623 /* We use char because int might match the return type of a gcc2
5624 builtin and then its argument prototype would still apply. */
5634 rm -f conftest.
$ac_objext conftest
$ac_exeext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5636 (eval $ac_link) 2>conftest.er1
5638 grep -v '^ *+' conftest.er1
>conftest.err
5640 cat conftest.err
>&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } &&
5643 { ac_try
='test -z "$ac_c_werror_flag"
5644 || test ! -s conftest.err'
5645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); }; } &&
5650 { ac_try
='test -s conftest$ac_exeext'
5651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); }; }; then
5656 ac_cv_lib_ossaudio__oss_ioctl
=yes
5658 echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.
$ac_ext >&5
5661 ac_cv_lib_ossaudio__oss_ioctl
=no
5663 rm -f conftest.err conftest.
$ac_objext \
5664 conftest
$ac_exeext conftest.
$ac_ext
5665 LIBS
=$ac_check_lib_save_LIBS
5667 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5668 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5669 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5678 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5679 if test "X${with_pkg_config_prog}" != X
; then
5680 PKG_CONFIG
="${with_pkg_config_prog}"
5685 if test -z "$PKG_CONFIG"; then
5686 # Extract the first word of "pkg-config", so it can be a program name with args.
5687 set dummy pkg-config
; ac_word
=$2
5688 echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5690 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5695 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5702 test -z "$as_dir" && as_dir
=.
5703 for ac_exec_ext
in '' $ac_executable_extensions; do
5704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5712 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5716 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5718 if test -n "$PKG_CONFIG"; then
5719 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5720 echo "${ECHO_T}$PKG_CONFIG" >&6
5722 echo "$as_me:$LINENO: result: no" >&5
5723 echo "${ECHO_T}no" >&6
5728 if test "$PKG_CONFIG" = "no" ; then
5731 PKG_CONFIG_MIN_VERSION
=0.9.0
5732 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5733 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5734 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5736 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5737 echo "$as_me:$LINENO: result: yes" >&5
5738 echo "${ECHO_T}yes" >&6
5741 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5742 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5743 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5744 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5745 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5747 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5748 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5749 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5750 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5751 echo "${ECHO_T}$ALSA_LIBS" >&6
5753 echo "$as_me:$LINENO: result: no" >&5
5754 echo "${ECHO_T}no" >&6
5757 ## If we have a custom action on failure, don't print errors, but
5758 ## do set a variable so people can do so.
5759 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5766 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5767 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5771 if test $succeeded = yes; then
5777 if test $HAVE_ALSA = yes; then
5778 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5779 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5781 cat >>confdefs.h
<<\_ACEOF
5814 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5815 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5816 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5817 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5820 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5822 echo "$as_me:$LINENO: checking for $ac_header" >&5
5823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5825 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5830 # Is the header compilable?
5831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5833 cat >conftest.
$ac_ext <<_ACEOF
5836 cat confdefs.h
>>conftest.
$ac_ext
5837 cat >>conftest.
$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 $ac_includes_default
5840 #include <$ac_header>
5842 rm -f conftest.
$ac_objext
5843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5844 (eval $ac_compile) 2>conftest.er1
5846 grep -v '^ *+' conftest.er1
>conftest.err
5848 cat conftest.err
>&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } &&
5851 { ac_try
='test -z "$ac_c_werror_flag"
5852 || test ! -s conftest.err'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; } &&
5858 { ac_try
='test -s conftest.$ac_objext'
5859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; }; then
5864 ac_header_compiler
=yes
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.
$ac_ext >&5
5869 ac_header_compiler
=no
5871 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5873 echo "${ECHO_T}$ac_header_compiler" >&6
5875 # Is the header present?
5876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5878 cat >conftest.
$ac_ext <<_ACEOF
5881 cat confdefs.h
>>conftest.
$ac_ext
5882 cat >>conftest.
$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <$ac_header>
5886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5887 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5889 grep -v '^ *+' conftest.er1
>conftest.err
5891 cat conftest.err
>&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } >/dev
/null
; then
5894 if test -s conftest.err
; then
5895 ac_cpp_err
=$ac_c_preproc_warn_flag
5896 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5903 if test -z "$ac_cpp_err"; then
5904 ac_header_preproc
=yes
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.
$ac_ext >&5
5909 ac_header_preproc
=no
5911 rm -f conftest.err conftest.
$ac_ext
5912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5913 echo "${ECHO_T}$ac_header_preproc" >&6
5915 # So? What about this header?
5916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5922 ac_header_preproc
=yes
5925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5939 ## ------------------------------------------ ##
5940 ## Report this to the AC_PACKAGE_NAME lists. ##
5941 ## ------------------------------------------ ##
5944 sed "s/^/$as_me: WARNING: /" >&2
5947 echo "$as_me:$LINENO: checking for $ac_header" >&5
5948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5952 eval "$as_ac_Header=\$ac_header_preproc"
5954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5959 cat >>confdefs.h
<<_ACEOF
5960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5968 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5969 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5970 cat >conftest.
$ac_ext <<_ACEOF
5973 cat confdefs.h
>>conftest.
$ac_ext
5974 cat >>conftest.
$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976 #include <sys/personality.h>
5980 personality (PER_LINUX32)
5985 rm -f conftest.
$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987 (eval $ac_compile) 2>conftest.er1
5989 grep -v '^ *+' conftest.er1
>conftest.err
5991 cat conftest.err
>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } &&
5994 { ac_try
='test -z "$ac_c_werror_flag"
5995 || test ! -s conftest.err'
5996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); }; } &&
6001 { ac_try
='test -s conftest.$ac_objext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 emacs_cv_personality_linux32
=yes
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.
$ac_ext >&5
6012 emacs_cv_personality_linux32
=no
6014 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6015 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6016 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
6018 if test $emacs_cv_personality_linux32 = yes; then
6020 cat >>confdefs.h
<<\_ACEOF
6021 #define HAVE_PERSONALITY_LINUX32 1
6027 for ac_header
in term.h
6029 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6030 echo "$as_me:$LINENO: checking for $ac_header" >&5
6031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 cat >conftest.
$ac_ext <<_ACEOF
6038 cat confdefs.h
>>conftest.
$ac_ext
6039 cat >>conftest.
$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 #include <$ac_header>
6043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6044 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6046 grep -v '^ *+' conftest.er1
>conftest.err
6048 cat conftest.err
>&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } >/dev
/null
; then
6051 if test -s conftest.err
; then
6052 ac_cpp_err
=$ac_c_preproc_warn_flag
6053 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6060 if test -z "$ac_cpp_err"; then
6061 eval "$as_ac_Header=yes"
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.
$ac_ext >&5
6066 eval "$as_ac_Header=no"
6068 rm -f conftest.err conftest.
$ac_ext
6070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6073 cat >>confdefs.h
<<_ACEOF
6074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6081 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6082 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6083 if test "${ac_cv_header_stdc+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 cat >conftest.
$ac_ext <<_ACEOF
6089 cat confdefs.h
>>conftest.
$ac_ext
6090 cat >>conftest.
$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6105 rm -f conftest.
$ac_objext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>conftest.er1
6109 grep -v '^ *+' conftest.er1
>conftest.err
6111 cat conftest.err
>&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); } &&
6114 { ac_try
='test -z "$ac_c_werror_flag"
6115 || test ! -s conftest.err'
6116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }; } &&
6121 { ac_try
='test -s conftest.$ac_objext'
6122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; }; then
6127 ac_cv_header_stdc
=yes
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.
$ac_ext >&5
6132 ac_cv_header_stdc
=no
6134 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6136 if test $ac_cv_header_stdc = yes; then
6137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6138 cat >conftest.
$ac_ext <<_ACEOF
6141 cat confdefs.h
>>conftest.
$ac_ext
6142 cat >>conftest.
$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6148 $EGREP "memchr" >/dev
/null
2>&1; then
6151 ac_cv_header_stdc
=no
6157 if test $ac_cv_header_stdc = yes; then
6158 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6159 cat >conftest.
$ac_ext <<_ACEOF
6162 cat confdefs.h
>>conftest.
$ac_ext
6163 cat >>conftest.
$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6169 $EGREP "free" >/dev
/null
2>&1; then
6172 ac_cv_header_stdc
=no
6178 if test $ac_cv_header_stdc = yes; then
6179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6180 if test "$cross_compiling" = yes; then
6183 cat >conftest.
$ac_ext <<_ACEOF
6186 cat confdefs.h
>>conftest.
$ac_ext
6187 cat >>conftest.
$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6190 #if ((' ' & 0x0FF) == 0x020)
6191 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6192 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6194 # define ISLOWER(c) \
6195 (('a' <= (c) && (c) <= 'i') \
6196 || ('j' <= (c) && (c) <= 'r') \
6197 || ('s' <= (c) && (c) <= 'z'))
6198 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6201 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6206 for (i = 0; i < 256; i++)
6207 if (XOR (islower (i), ISLOWER (i))
6208 || toupper (i) != TOUPPER (i))
6213 rm -f conftest
$ac_exeext
6214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6215 (eval $ac_link) 2>&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6223 (exit $ac_status); }; }; then
6226 echo "$as_me: program exited with status $ac_status" >&5
6227 echo "$as_me: failed program was:" >&5
6228 sed 's/^/| /' conftest.
$ac_ext >&5
6231 ac_cv_header_stdc
=no
6233 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6237 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6238 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6239 if test $ac_cv_header_stdc = yes; then
6241 cat >>confdefs.h
<<\_ACEOF
6242 #define STDC_HEADERS 1
6247 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6248 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6249 if test "${ac_cv_header_time+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 cat >conftest.
$ac_ext <<_ACEOF
6255 cat confdefs.h
>>conftest.
$ac_ext
6256 cat >>conftest.
$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 #include <sys/types.h>
6259 #include <sys/time.h>
6265 if ((struct tm *) 0)
6271 rm -f conftest.
$ac_objext
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>conftest.er1
6275 grep -v '^ *+' conftest.er1
>conftest.err
6277 cat conftest.err
>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); } &&
6280 { ac_try
='test -z "$ac_c_werror_flag"
6281 || test ! -s conftest.err'
6282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); }; } &&
6287 { ac_try
='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6293 ac_cv_header_time
=yes
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.
$ac_ext >&5
6298 ac_cv_header_time
=no
6300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6302 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6303 echo "${ECHO_T}$ac_cv_header_time" >&6
6304 if test $ac_cv_header_time = yes; then
6306 cat >>confdefs.h
<<\_ACEOF
6307 #define TIME_WITH_SYS_TIME 1
6312 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6313 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6314 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6315 echo $ECHO_N "(cached) $ECHO_C" >&6
6317 cat >conftest.
$ac_ext <<_ACEOF
6320 cat confdefs.h
>>conftest.
$ac_ext
6321 cat >>conftest.
$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 $ac_includes_default
6328 char *p = (char *) sys_siglist;
6335 rm -f conftest.
$ac_objext
6336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6337 (eval $ac_compile) 2>conftest.er1
6339 grep -v '^ *+' conftest.er1
>conftest.err
6341 cat conftest.err
>&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } &&
6344 { ac_try
='test -z "$ac_c_werror_flag"
6345 || test ! -s conftest.err'
6346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6350 (exit $ac_status); }; } &&
6351 { ac_try
='test -s conftest.$ac_objext'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
6357 ac_cv_have_decl_sys_siglist
=yes
6359 echo "$as_me: failed program was:" >&5
6360 sed 's/^/| /' conftest.
$ac_ext >&5
6362 ac_cv_have_decl_sys_siglist
=no
6364 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6366 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6367 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6368 if test $ac_cv_have_decl_sys_siglist = yes; then
6370 cat >>confdefs.h
<<_ACEOF
6371 #define HAVE_DECL_SYS_SIGLIST 1
6376 cat >>confdefs.h
<<_ACEOF
6377 #define HAVE_DECL_SYS_SIGLIST 0
6384 if test $ac_cv_have_decl_sys_siglist != yes; then
6385 # For Tru64, at least:
6386 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6387 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6388 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6389 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 cat >conftest.
$ac_ext <<_ACEOF
6394 cat confdefs.h
>>conftest.
$ac_ext
6395 cat >>conftest.
$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 $ac_includes_default
6401 #ifndef __sys_siglist
6402 char *p = (char *) __sys_siglist;
6409 rm -f conftest.
$ac_objext
6410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6411 (eval $ac_compile) 2>conftest.er1
6413 grep -v '^ *+' conftest.er1
>conftest.err
6415 cat conftest.err
>&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try
='test -z "$ac_c_werror_flag"
6419 || test ! -s conftest.err'
6420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); }; } &&
6425 { ac_try
='test -s conftest.$ac_objext'
6426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); }; }; then
6431 ac_cv_have_decl___sys_siglist
=yes
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.
$ac_ext >&5
6436 ac_cv_have_decl___sys_siglist
=no
6438 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6440 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6441 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6442 if test $ac_cv_have_decl___sys_siglist = yes; then
6444 cat >>confdefs.h
<<_ACEOF
6445 #define HAVE_DECL___SYS_SIGLIST 1
6450 cat >>confdefs.h
<<_ACEOF
6451 #define HAVE_DECL___SYS_SIGLIST 0
6458 if test $ac_cv_have_decl___sys_siglist = yes; then
6460 cat >>confdefs.h
<<\_ACEOF
6461 #define sys_siglist __sys_siglist
6466 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6467 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6468 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 cat >conftest.
$ac_ext <<_ACEOF
6474 cat confdefs.h
>>conftest.
$ac_ext
6475 cat >>conftest.
$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 #include <sys/types.h>
6478 #include <sys/wait.h>
6480 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6483 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6491 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6496 rm -f conftest.
$ac_objext
6497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6498 (eval $ac_compile) 2>conftest.er1
6500 grep -v '^ *+' conftest.er1
>conftest.err
6502 cat conftest.err
>&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } &&
6505 { ac_try
='test -z "$ac_c_werror_flag"
6506 || test ! -s conftest.err'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; } &&
6512 { ac_try
='test -s conftest.$ac_objext'
6513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); }; }; then
6518 ac_cv_header_sys_wait_h
=yes
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.
$ac_ext >&5
6523 ac_cv_header_sys_wait_h
=no
6525 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6527 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6528 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6529 if test $ac_cv_header_sys_wait_h = yes; then
6531 cat >>confdefs.h
<<\_ACEOF
6532 #define HAVE_SYS_WAIT_H 1
6538 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6539 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6540 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6541 echo $ECHO_N "(cached) $ECHO_C" >&6
6543 cat >conftest.
$ac_ext <<_ACEOF
6546 cat confdefs.h
>>conftest.
$ac_ext
6547 cat >>conftest.
$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 #ifdef TIME_WITH_SYS_TIME
6550 #include <sys/time.h>
6553 #ifdef HAVE_SYS_TIME_H
6554 #include <sys/time.h>
6565 static struct utimbuf x; x.actime = x.modtime;
6570 rm -f conftest.
$ac_objext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6572 (eval $ac_compile) 2>conftest.er1
6574 grep -v '^ *+' conftest.er1
>conftest.err
6576 cat conftest.err
>&5
6577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } &&
6579 { ac_try
='test -z "$ac_c_werror_flag"
6580 || test ! -s conftest.err'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; } &&
6586 { ac_try
='test -s conftest.$ac_objext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 emacs_cv_struct_utimbuf
=yes
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.
$ac_ext >&5
6597 emacs_cv_struct_utimbuf
=no
6599 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6601 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6602 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6603 if test $emacs_cv_struct_utimbuf = yes; then
6605 cat >>confdefs.h
<<\_ACEOF
6606 #define HAVE_STRUCT_UTIMBUF 1
6611 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6612 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6613 if test "${ac_cv_type_signal+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 cat >conftest.
$ac_ext <<_ACEOF
6619 cat confdefs.h
>>conftest.
$ac_ext
6620 cat >>conftest.
$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <sys/types.h>
6628 extern "C" void (*signal (int, void (*)(int)))(int);
6630 void (*signal ()) ();
6641 rm -f conftest.
$ac_objext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6643 (eval $ac_compile) 2>conftest.er1
6645 grep -v '^ *+' conftest.er1
>conftest.err
6647 cat conftest.err
>&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } &&
6650 { ac_try
='test -z "$ac_c_werror_flag"
6651 || test ! -s conftest.err'
6652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; } &&
6657 { ac_try
='test -s conftest.$ac_objext'
6658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 ac_cv_type_signal
=void
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.
$ac_ext >&5
6668 ac_cv_type_signal
=int
6670 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6672 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6673 echo "${ECHO_T}$ac_cv_type_signal" >&6
6675 cat >>confdefs.h
<<_ACEOF
6676 #define RETSIGTYPE $ac_cv_type_signal
6681 echo "$as_me:$LINENO: checking for speed_t" >&5
6682 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6683 if test "${emacs_cv_speed_t+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 cat >conftest.
$ac_ext <<_ACEOF
6689 cat confdefs.h
>>conftest.
$ac_ext
6690 cat >>conftest.
$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <termios.h>
6701 rm -f conftest.
$ac_objext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6703 (eval $ac_compile) 2>conftest.er1
6705 grep -v '^ *+' conftest.er1
>conftest.err
6707 cat conftest.err
>&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try
='test -z "$ac_c_werror_flag"
6711 || test ! -s conftest.err'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; } &&
6717 { ac_try
='test -s conftest.$ac_objext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 emacs_cv_speed_t
=yes
6725 echo "$as_me: failed program was:" >&5
6726 sed 's/^/| /' conftest.
$ac_ext >&5
6730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6732 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6733 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6734 if test $emacs_cv_speed_t = yes; then
6736 cat >>confdefs.h
<<\_ACEOF
6737 #define HAVE_SPEED_T 1
6742 echo "$as_me:$LINENO: checking for struct timeval" >&5
6743 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6744 if test "${emacs_cv_struct_timeval+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 cat >conftest.
$ac_ext <<_ACEOF
6750 cat confdefs.h
>>conftest.
$ac_ext
6751 cat >>conftest.
$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #ifdef TIME_WITH_SYS_TIME
6754 #include <sys/time.h>
6757 #ifdef HAVE_SYS_TIME_H
6758 #include <sys/time.h>
6766 static struct timeval x; x.tv_sec = x.tv_usec;
6771 rm -f conftest.
$ac_objext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6773 (eval $ac_compile) 2>conftest.er1
6775 grep -v '^ *+' conftest.er1
>conftest.err
6777 cat conftest.err
>&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } &&
6780 { ac_try
='test -z "$ac_c_werror_flag"
6781 || test ! -s conftest.err'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; } &&
6787 { ac_try
='test -s conftest.$ac_objext'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; }; then
6793 emacs_cv_struct_timeval
=yes
6795 echo "$as_me: failed program was:" >&5
6796 sed 's/^/| /' conftest.
$ac_ext >&5
6798 emacs_cv_struct_timeval
=no
6800 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6802 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6803 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6804 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6805 if test $emacs_cv_struct_timeval = yes; then
6807 cat >>confdefs.h
<<\_ACEOF
6808 #define HAVE_TIMEVAL 1
6813 echo "$as_me:$LINENO: checking for struct exception" >&5
6814 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6815 if test "${emacs_cv_struct_exception+set}" = set; then
6816 echo $ECHO_N "(cached) $ECHO_C" >&6
6818 cat >conftest.
$ac_ext <<_ACEOF
6821 cat confdefs.h
>>conftest.
$ac_ext
6822 cat >>conftest.
$ac_ext <<_ACEOF
6823 /* end confdefs.h. */
6828 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6833 rm -f conftest.
$ac_objext
6834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6835 (eval $ac_compile) 2>conftest.er1
6837 grep -v '^ *+' conftest.er1
>conftest.err
6839 cat conftest.err
>&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } &&
6842 { ac_try
='test -z "$ac_c_werror_flag"
6843 || test ! -s conftest.err'
6844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); }; } &&
6849 { ac_try
='test -s conftest.$ac_objext'
6850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); }; }; then
6855 emacs_cv_struct_exception
=yes
6857 echo "$as_me: failed program was:" >&5
6858 sed 's/^/| /' conftest.
$ac_ext >&5
6860 emacs_cv_struct_exception
=no
6862 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6864 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6865 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6866 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6867 if test $emacs_cv_struct_exception != yes; then
6869 cat >>confdefs.h
<<\_ACEOF
6870 #define NO_MATHERR 1
6876 for ac_header
in sys
/socket.h
6878 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6879 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6880 echo "$as_me:$LINENO: checking for $ac_header" >&5
6881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6888 # Is the header compilable?
6889 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6891 cat >conftest.
$ac_ext <<_ACEOF
6894 cat confdefs.h
>>conftest.
$ac_ext
6895 cat >>conftest.
$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 $ac_includes_default
6898 #include <$ac_header>
6900 rm -f conftest.
$ac_objext
6901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6902 (eval $ac_compile) 2>conftest.er1
6904 grep -v '^ *+' conftest.er1
>conftest.err
6906 cat conftest.err
>&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); } &&
6909 { ac_try
='test -z "$ac_c_werror_flag"
6910 || test ! -s conftest.err'
6911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); }; } &&
6916 { ac_try
='test -s conftest.$ac_objext'
6917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); }; }; then
6922 ac_header_compiler
=yes
6924 echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.
$ac_ext >&5
6927 ac_header_compiler
=no
6929 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6930 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6931 echo "${ECHO_T}$ac_header_compiler" >&6
6933 # Is the header present?
6934 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6936 cat >conftest.
$ac_ext <<_ACEOF
6939 cat confdefs.h
>>conftest.
$ac_ext
6940 cat >>conftest.
$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 #include <$ac_header>
6944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6945 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6947 grep -v '^ *+' conftest.er1
>conftest.err
6949 cat conftest.err
>&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } >/dev
/null
; then
6952 if test -s conftest.err
; then
6953 ac_cpp_err
=$ac_c_preproc_warn_flag
6954 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6961 if test -z "$ac_cpp_err"; then
6962 ac_header_preproc
=yes
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.
$ac_ext >&5
6967 ac_header_preproc
=no
6969 rm -f conftest.err conftest.
$ac_ext
6970 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6971 echo "${ECHO_T}$ac_header_preproc" >&6
6973 # So? What about this header?
6974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6977 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6979 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6980 ac_header_preproc
=yes
6983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6984 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6986 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6988 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6990 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6992 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6994 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6997 ## ------------------------------------------ ##
6998 ## Report this to the AC_PACKAGE_NAME lists. ##
6999 ## ------------------------------------------ ##
7002 sed "s/^/$as_me: WARNING: /" >&2
7005 echo "$as_me:$LINENO: checking for $ac_header" >&5
7006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 eval "$as_ac_Header=\$ac_header_preproc"
7012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7017 cat >>confdefs.h
<<_ACEOF
7018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7026 for ac_header
in net
/if.h
7028 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7029 echo "$as_me:$LINENO: checking for $ac_header" >&5
7030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 cat >conftest.
$ac_ext <<_ACEOF
7037 cat confdefs.h
>>conftest.
$ac_ext
7038 cat >>conftest.
$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 $ac_includes_default
7041 #if HAVE_SYS_SOCKET_H
7042 #include <sys/socket.h>
7045 #include <$ac_header>
7047 rm -f conftest.
$ac_objext
7048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7049 (eval $ac_compile) 2>conftest.er1
7051 grep -v '^ *+' conftest.er1
>conftest.err
7053 cat conftest.err
>&5
7054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055 (exit $ac_status); } &&
7056 { ac_try
='test -z "$ac_c_werror_flag"
7057 || test ! -s conftest.err'
7058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; } &&
7063 { ac_try
='test -s conftest.$ac_objext'
7064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; }; then
7069 eval "$as_ac_Header=yes"
7071 echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.
$ac_ext >&5
7074 eval "$as_ac_Header=no"
7076 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7078 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7079 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7081 cat >>confdefs.h
<<_ACEOF
7082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7090 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7091 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7092 if test "${ac_cv_struct_tm+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 cat >conftest.
$ac_ext <<_ACEOF
7098 cat confdefs.h
>>conftest.
$ac_ext
7099 cat >>conftest.
$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 #include <sys/types.h>
7107 struct tm *tp; tp->tm_sec;
7112 rm -f conftest.
$ac_objext
7113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7114 (eval $ac_compile) 2>conftest.er1
7116 grep -v '^ *+' conftest.er1
>conftest.err
7118 cat conftest.err
>&5
7119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } &&
7121 { ac_try
='test -z "$ac_c_werror_flag"
7122 || test ! -s conftest.err'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; } &&
7128 { ac_try
='test -s conftest.$ac_objext'
7129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); }; }; then
7134 ac_cv_struct_tm
=time.h
7136 echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.
$ac_ext >&5
7139 ac_cv_struct_tm
=sys
/time.h
7141 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7143 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7144 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7145 if test $ac_cv_struct_tm = sys
/time.h
; then
7147 cat >>confdefs.h
<<\_ACEOF
7148 #define TM_IN_SYS_TIME 1
7153 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7154 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7155 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7156 echo $ECHO_N "(cached) $ECHO_C" >&6
7158 cat >conftest.
$ac_ext <<_ACEOF
7161 cat confdefs.h
>>conftest.
$ac_ext
7162 cat >>conftest.
$ac_ext <<_ACEOF
7163 /* end confdefs.h. */
7164 #include <sys/types.h>
7165 #include <$ac_cv_struct_tm>
7171 static struct tm ac_aggr;
7172 if (ac_aggr.tm_zone)
7178 rm -f conftest.
$ac_objext
7179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7180 (eval $ac_compile) 2>conftest.er1
7182 grep -v '^ *+' conftest.er1
>conftest.err
7184 cat conftest.err
>&5
7185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7186 (exit $ac_status); } &&
7187 { ac_try
='test -z "$ac_c_werror_flag"
7188 || test ! -s conftest.err'
7189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); }; } &&
7194 { ac_try
='test -s conftest.$ac_objext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 ac_cv_member_struct_tm_tm_zone
=yes
7202 echo "$as_me: failed program was:" >&5
7203 sed 's/^/| /' conftest.
$ac_ext >&5
7205 cat >conftest.
$ac_ext <<_ACEOF
7208 cat confdefs.h
>>conftest.
$ac_ext
7209 cat >>conftest.
$ac_ext <<_ACEOF
7210 /* end confdefs.h. */
7211 #include <sys/types.h>
7212 #include <$ac_cv_struct_tm>
7218 static struct tm ac_aggr;
7219 if (sizeof ac_aggr.tm_zone)
7225 rm -f conftest.
$ac_objext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>conftest.er1
7229 grep -v '^ *+' conftest.er1
>conftest.err
7231 cat conftest.err
>&5
7232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } &&
7234 { ac_try
='test -z "$ac_c_werror_flag"
7235 || test ! -s conftest.err'
7236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); }; } &&
7241 { ac_try
='test -s conftest.$ac_objext'
7242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); }; }; then
7247 ac_cv_member_struct_tm_tm_zone
=yes
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.
$ac_ext >&5
7252 ac_cv_member_struct_tm_tm_zone
=no
7254 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7256 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7258 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7259 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7260 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7262 cat >>confdefs.h
<<_ACEOF
7263 #define HAVE_STRUCT_TM_TM_ZONE 1
7269 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7271 cat >>confdefs.h
<<\_ACEOF
7272 #define HAVE_TM_ZONE 1
7276 echo "$as_me:$LINENO: checking for tzname" >&5
7277 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7278 if test "${ac_cv_var_tzname+set}" = set; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 cat >conftest.
$ac_ext <<_ACEOF
7284 cat confdefs.h
>>conftest.
$ac_ext
7285 cat >>conftest.
$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7288 #ifndef tzname /* For SGI. */
7289 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7300 rm -f conftest.
$ac_objext conftest
$ac_exeext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7302 (eval $ac_link) 2>conftest.er1
7304 grep -v '^ *+' conftest.er1
>conftest.err
7306 cat conftest.err
>&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try
='test -z "$ac_c_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try
='test -s conftest$ac_exeext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_cv_var_tzname
=yes
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.
$ac_ext >&5
7329 rm -f conftest.err conftest.
$ac_objext \
7330 conftest
$ac_exeext conftest.
$ac_ext
7332 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7333 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7334 if test $ac_cv_var_tzname = yes; then
7336 cat >>confdefs.h
<<\_ACEOF
7337 #define HAVE_TZNAME 1
7343 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7344 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7345 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7346 echo $ECHO_N "(cached) $ECHO_C" >&6
7348 cat >conftest.
$ac_ext <<_ACEOF
7351 cat confdefs.h
>>conftest.
$ac_ext
7352 cat >>conftest.
$ac_ext <<_ACEOF
7353 /* end confdefs.h. */
7359 static struct tm ac_aggr;
7360 if (ac_aggr.tm_gmtoff)
7366 rm -f conftest.
$ac_objext
7367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7368 (eval $ac_compile) 2>conftest.er1
7370 grep -v '^ *+' conftest.er1
>conftest.err
7372 cat conftest.err
>&5
7373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374 (exit $ac_status); } &&
7375 { ac_try
='test -z "$ac_c_werror_flag"
7376 || test ! -s conftest.err'
7377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); }; } &&
7382 { ac_try
='test -s conftest.$ac_objext'
7383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); }; }; then
7388 ac_cv_member_struct_tm_tm_gmtoff
=yes
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.
$ac_ext >&5
7393 cat >conftest.
$ac_ext <<_ACEOF
7396 cat confdefs.h
>>conftest.
$ac_ext
7397 cat >>conftest.
$ac_ext <<_ACEOF
7398 /* end confdefs.h. */
7404 static struct tm ac_aggr;
7405 if (sizeof ac_aggr.tm_gmtoff)
7411 rm -f conftest.
$ac_objext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7413 (eval $ac_compile) 2>conftest.er1
7415 grep -v '^ *+' conftest.er1
>conftest.err
7417 cat conftest.err
>&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } &&
7420 { ac_try
='test -z "$ac_c_werror_flag"
7421 || test ! -s conftest.err'
7422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); }; } &&
7427 { ac_try
='test -s conftest.$ac_objext'
7428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433 ac_cv_member_struct_tm_tm_gmtoff
=yes
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.
$ac_ext >&5
7438 ac_cv_member_struct_tm_tm_gmtoff
=no
7440 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7442 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7444 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7445 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7446 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7448 cat >>confdefs.h
<<\_ACEOF
7449 #define HAVE_TM_GMTOFF 1
7454 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7455 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7456 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 cat >conftest.
$ac_ext <<_ACEOF
7462 cat confdefs.h
>>conftest.
$ac_ext
7463 cat >>conftest.
$ac_ext <<_ACEOF
7464 /* end confdefs.h. */
7465 $ac_includes_default
7466 #if HAVE_SYS_SOCKET_H
7467 #include <sys/socket.h>
7476 static struct ifreq ac_aggr;
7477 if (ac_aggr.ifr_flags)
7483 rm -f conftest.
$ac_objext
7484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7485 (eval $ac_compile) 2>conftest.er1
7487 grep -v '^ *+' conftest.er1
>conftest.err
7489 cat conftest.err
>&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } &&
7492 { ac_try
='test -z "$ac_c_werror_flag"
7493 || test ! -s conftest.err'
7494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498 (exit $ac_status); }; } &&
7499 { ac_try
='test -s conftest.$ac_objext'
7500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504 (exit $ac_status); }; }; then
7505 ac_cv_member_struct_ifreq_ifr_flags
=yes
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.
$ac_ext >&5
7510 cat >conftest.
$ac_ext <<_ACEOF
7513 cat confdefs.h
>>conftest.
$ac_ext
7514 cat >>conftest.
$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 $ac_includes_default
7517 #if HAVE_SYS_SOCKET_H
7518 #include <sys/socket.h>
7527 static struct ifreq ac_aggr;
7528 if (sizeof ac_aggr.ifr_flags)
7534 rm -f conftest.
$ac_objext
7535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7536 (eval $ac_compile) 2>conftest.er1
7538 grep -v '^ *+' conftest.er1
>conftest.err
7540 cat conftest.err
>&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } &&
7543 { ac_try
='test -z "$ac_c_werror_flag"
7544 || test ! -s conftest.err'
7545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; } &&
7550 { ac_try
='test -s conftest.$ac_objext'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7556 ac_cv_member_struct_ifreq_ifr_flags
=yes
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.
$ac_ext >&5
7561 ac_cv_member_struct_ifreq_ifr_flags
=no
7563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7565 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7567 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7568 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7569 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7571 cat >>confdefs.h
<<_ACEOF
7572 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7577 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7578 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7579 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7582 cat >conftest.
$ac_ext <<_ACEOF
7585 cat confdefs.h
>>conftest.
$ac_ext
7586 cat >>conftest.
$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7588 $ac_includes_default
7589 #if HAVE_SYS_SOCKET_H
7590 #include <sys/socket.h>
7599 static struct ifreq ac_aggr;
7600 if (ac_aggr.ifr_hwaddr)
7606 rm -f conftest.
$ac_objext
7607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7608 (eval $ac_compile) 2>conftest.er1
7610 grep -v '^ *+' conftest.er1
>conftest.err
7612 cat conftest.err
>&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } &&
7615 { ac_try
='test -z "$ac_c_werror_flag"
7616 || test ! -s conftest.err'
7617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); }; } &&
7622 { ac_try
='test -s conftest.$ac_objext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.
$ac_ext >&5
7633 cat >conftest.
$ac_ext <<_ACEOF
7636 cat confdefs.h
>>conftest.
$ac_ext
7637 cat >>conftest.
$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 $ac_includes_default
7640 #if HAVE_SYS_SOCKET_H
7641 #include <sys/socket.h>
7650 static struct ifreq ac_aggr;
7651 if (sizeof ac_aggr.ifr_hwaddr)
7657 rm -f conftest.
$ac_objext
7658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7659 (eval $ac_compile) 2>conftest.er1
7661 grep -v '^ *+' conftest.er1
>conftest.err
7663 cat conftest.err
>&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } &&
7666 { ac_try
='test -z "$ac_c_werror_flag"
7667 || test ! -s conftest.err'
7668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); }; } &&
7673 { ac_try
='test -s conftest.$ac_objext'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; }; then
7679 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.
$ac_ext >&5
7684 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7686 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7688 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7690 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7691 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7692 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7694 cat >>confdefs.h
<<_ACEOF
7695 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7700 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7701 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7702 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 cat >conftest.
$ac_ext <<_ACEOF
7708 cat confdefs.h
>>conftest.
$ac_ext
7709 cat >>conftest.
$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7711 $ac_includes_default
7712 #if HAVE_SYS_SOCKET_H
7713 #include <sys/socket.h>
7722 static struct ifreq ac_aggr;
7723 if (ac_aggr.ifr_netmask)
7729 rm -f conftest.
$ac_objext
7730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7731 (eval $ac_compile) 2>conftest.er1
7733 grep -v '^ *+' conftest.er1
>conftest.err
7735 cat conftest.err
>&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); } &&
7738 { ac_try
='test -z "$ac_c_werror_flag"
7739 || test ! -s conftest.err'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; } &&
7745 { ac_try
='test -s conftest.$ac_objext'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; }; then
7751 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.
$ac_ext >&5
7756 cat >conftest.
$ac_ext <<_ACEOF
7759 cat confdefs.h
>>conftest.
$ac_ext
7760 cat >>conftest.
$ac_ext <<_ACEOF
7761 /* end confdefs.h. */
7762 $ac_includes_default
7763 #if HAVE_SYS_SOCKET_H
7764 #include <sys/socket.h>
7773 static struct ifreq ac_aggr;
7774 if (sizeof ac_aggr.ifr_netmask)
7780 rm -f conftest.
$ac_objext
7781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7782 (eval $ac_compile) 2>conftest.er1
7784 grep -v '^ *+' conftest.er1
>conftest.err
7786 cat conftest.err
>&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); } &&
7789 { ac_try
='test -z "$ac_c_werror_flag"
7790 || test ! -s conftest.err'
7791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7795 (exit $ac_status); }; } &&
7796 { ac_try
='test -s conftest.$ac_objext'
7797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); }; }; then
7802 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7804 echo "$as_me: failed program was:" >&5
7805 sed 's/^/| /' conftest.
$ac_ext >&5
7807 ac_cv_member_struct_ifreq_ifr_netmask
=no
7809 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7811 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7813 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7814 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7815 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7817 cat >>confdefs.h
<<_ACEOF
7818 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7823 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7824 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7825 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 cat >conftest.
$ac_ext <<_ACEOF
7831 cat confdefs.h
>>conftest.
$ac_ext
7832 cat >>conftest.
$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 $ac_includes_default
7835 #if HAVE_SYS_SOCKET_H
7836 #include <sys/socket.h>
7845 static struct ifreq ac_aggr;
7846 if (ac_aggr.ifr_broadaddr)
7852 rm -f conftest.
$ac_objext
7853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7854 (eval $ac_compile) 2>conftest.er1
7856 grep -v '^ *+' conftest.er1
>conftest.err
7858 cat conftest.err
>&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } &&
7861 { ac_try
='test -z "$ac_c_werror_flag"
7862 || test ! -s conftest.err'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; } &&
7868 { ac_try
='test -s conftest.$ac_objext'
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_member_struct_ifreq_ifr_broadaddr
=yes
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.
$ac_ext >&5
7879 cat >conftest.
$ac_ext <<_ACEOF
7882 cat confdefs.h
>>conftest.
$ac_ext
7883 cat >>conftest.
$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 $ac_includes_default
7886 #if HAVE_SYS_SOCKET_H
7887 #include <sys/socket.h>
7896 static struct ifreq ac_aggr;
7897 if (sizeof ac_aggr.ifr_broadaddr)
7903 rm -f conftest.
$ac_objext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7905 (eval $ac_compile) 2>conftest.er1
7907 grep -v '^ *+' conftest.er1
>conftest.err
7909 cat conftest.err
>&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
7912 { ac_try
='test -z "$ac_c_werror_flag"
7913 || test ! -s conftest.err'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; } &&
7919 { ac_try
='test -s conftest.$ac_objext'
7920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924 (exit $ac_status); }; }; then
7925 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.
$ac_ext >&5
7930 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7932 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7934 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7936 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7937 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7938 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7940 cat >>confdefs.h
<<_ACEOF
7941 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7946 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7947 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7948 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 cat >conftest.
$ac_ext <<_ACEOF
7954 cat confdefs.h
>>conftest.
$ac_ext
7955 cat >>conftest.
$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7958 #if HAVE_SYS_SOCKET_H
7959 #include <sys/socket.h>
7968 static struct ifreq ac_aggr;
7969 if (ac_aggr.ifr_addr)
7975 rm -f conftest.
$ac_objext
7976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7977 (eval $ac_compile) 2>conftest.er1
7979 grep -v '^ *+' conftest.er1
>conftest.err
7981 cat conftest.err
>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } &&
7984 { ac_try
='test -z "$ac_c_werror_flag"
7985 || test ! -s conftest.err'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; } &&
7991 { ac_try
='test -s conftest.$ac_objext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_cv_member_struct_ifreq_ifr_addr
=yes
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.
$ac_ext >&5
8002 cat >conftest.
$ac_ext <<_ACEOF
8005 cat confdefs.h
>>conftest.
$ac_ext
8006 cat >>conftest.
$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8008 $ac_includes_default
8009 #if HAVE_SYS_SOCKET_H
8010 #include <sys/socket.h>
8019 static struct ifreq ac_aggr;
8020 if (sizeof ac_aggr.ifr_addr)
8026 rm -f conftest.
$ac_objext
8027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8028 (eval $ac_compile) 2>conftest.er1
8030 grep -v '^ *+' conftest.er1
>conftest.err
8032 cat conftest.err
>&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } &&
8035 { ac_try
='test -z "$ac_c_werror_flag"
8036 || test ! -s conftest.err'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; } &&
8042 { ac_try
='test -s conftest.$ac_objext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_cv_member_struct_ifreq_ifr_addr
=yes
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.
$ac_ext >&5
8053 ac_cv_member_struct_ifreq_ifr_addr
=no
8055 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8057 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8059 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8060 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8061 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8063 cat >>confdefs.h
<<_ACEOF
8064 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8072 echo "$as_me:$LINENO: checking for function prototypes" >&5
8073 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8074 if test "$ac_cv_prog_cc_stdc" != no
; then
8075 echo "$as_me:$LINENO: result: yes" >&5
8076 echo "${ECHO_T}yes" >&6
8078 cat >>confdefs.h
<<\_ACEOF
8079 #define PROTOTYPES 1
8083 cat >>confdefs.h
<<\_ACEOF
8084 #define __PROTOTYPES 1
8088 echo "$as_me:$LINENO: result: no" >&5
8089 echo "${ECHO_T}no" >&6
8092 echo "$as_me:$LINENO: checking for working volatile" >&5
8093 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8094 if test "${ac_cv_c_volatile+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8097 cat >conftest.
$ac_ext <<_ACEOF
8100 cat confdefs.h
>>conftest.
$ac_ext
8101 cat >>conftest.
$ac_ext <<_ACEOF
8102 /* end confdefs.h. */
8114 rm -f conftest.
$ac_objext
8115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8116 (eval $ac_compile) 2>conftest.er1
8118 grep -v '^ *+' conftest.er1
>conftest.err
8120 cat conftest.err
>&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } &&
8123 { ac_try
='test -z "$ac_c_werror_flag"
8124 || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try
='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_cv_c_volatile
=yes
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.
$ac_ext >&5
8143 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8145 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8146 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8147 if test $ac_cv_c_volatile = no
; then
8149 cat >>confdefs.h
<<\_ACEOF
8155 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8156 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8157 if test "${ac_cv_c_const+set}" = set; then
8158 echo $ECHO_N "(cached) $ECHO_C" >&6
8160 cat >conftest.
$ac_ext <<_ACEOF
8163 cat confdefs.h
>>conftest.
$ac_ext
8164 cat >>conftest.
$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8170 /* FIXME: Include the comments suggested by Paul. */
8172 /* Ultrix mips cc rejects this. */
8173 typedef int charset[2];
8175 /* SunOS 4.1.1 cc rejects this. */
8176 char const *const *ccp;
8178 /* NEC SVR4.0.2 mips cc rejects this. */
8179 struct point {int x, y;};
8180 static struct point const zero = {0,0};
8181 /* AIX XL C 1.02.0.0 rejects this.
8182 It does not let you subtract one const X* pointer from another in
8183 an arm of an if-expression whose if-part is not a constant
8185 const char *g = "string";
8186 ccp = &g + (g ? g-g : 0);
8187 /* HPUX 7.0 cc rejects these. */
8190 ccp = (char const *const *) p;
8191 { /* SCO 3.2v4 cc rejects this. */
8193 char const *s = 0 ? (char *) 0 : (char const *) 0;
8197 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8199 const int *foo = &x[0];
8202 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8203 typedef const int *iptr;
8207 { /* AIX XL C 1.02.0.0 rejects this saying
8208 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8209 struct s { int j; const int *ap[3]; };
8210 struct s *b; b->j = 5;
8212 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8221 rm -f conftest.
$ac_objext
8222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8223 (eval $ac_compile) 2>conftest.er1
8225 grep -v '^ *+' conftest.er1
>conftest.err
8227 cat conftest.err
>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try
='test -z "$ac_c_werror_flag"
8231 || test ! -s conftest.err'
8232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); }; } &&
8237 { ac_try
='test -s conftest.$ac_objext'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; }; then
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.
$ac_ext >&5
8250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8252 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8253 echo "${ECHO_T}$ac_cv_c_const" >&6
8254 if test $ac_cv_c_const = no
; then
8256 cat >>confdefs.h
<<\_ACEOF
8262 echo "$as_me:$LINENO: checking for void * support" >&5
8263 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8264 if test "${emacs_cv_void_star+set}" = set; then
8265 echo $ECHO_N "(cached) $ECHO_C" >&6
8267 cat >conftest.
$ac_ext <<_ACEOF
8270 cat confdefs.h
>>conftest.
$ac_ext
8271 cat >>conftest.
$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8282 rm -f conftest.
$ac_objext
8283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8284 (eval $ac_compile) 2>conftest.er1
8286 grep -v '^ *+' conftest.er1
>conftest.err
8288 cat conftest.err
>&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } &&
8291 { ac_try
='test -z "$ac_c_werror_flag"
8292 || test ! -s conftest.err'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; } &&
8298 { ac_try
='test -s conftest.$ac_objext'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; }; then
8304 emacs_cv_void_star
=yes
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.
$ac_ext >&5
8309 emacs_cv_void_star
=no
8311 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8313 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8314 echo "${ECHO_T}$emacs_cv_void_star" >&6
8315 if test $emacs_cv_void_star = yes; then
8316 cat >>confdefs.h
<<\_ACEOF
8317 #define POINTER_TYPE void
8321 cat >>confdefs.h
<<\_ACEOF
8322 #define POINTER_TYPE char
8331 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8332 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8333 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8334 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8335 echo $ECHO_N "(cached) $ECHO_C" >&6
8337 cat >conftest.
make <<\_ACEOF
8339 @
echo 'ac_maketemp="$(MAKE)"'
8341 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8342 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8343 if test -n "$ac_maketemp"; then
8344 eval ac_cv_prog_make_
${ac_make}_set
=yes
8346 eval ac_cv_prog_make_
${ac_make}_set
=no
8350 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8351 echo "$as_me:$LINENO: result: yes" >&5
8352 echo "${ECHO_T}yes" >&6
8355 echo "$as_me:$LINENO: result: no" >&5
8356 echo "${ECHO_T}no" >&6
8357 SET_MAKE
="MAKE=${MAKE-make}"
8361 echo "$as_me:$LINENO: checking for long file names" >&5
8362 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8363 if test "${ac_cv_sys_long_file_names+set}" = set; then
8364 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 ac_cv_sys_long_file_names
=yes
8367 # Test for long file names in all the places we know might matter:
8368 # . the current directory, where building will happen
8369 # $prefix/lib where we will be installing things
8370 # $exec_prefix/lib likewise
8371 # eval it to expand exec_prefix.
8372 # $TMPDIR if set, where it might want to write temporary files
8373 # if $TMPDIR is not set:
8374 # /tmp where it might want to write temporary files
8377 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8380 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8382 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8383 test -d $ac_dir ||
continue
8384 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8385 ac_xdir
=$ac_dir/cf$$
8386 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8387 ac_tf1
=$ac_xdir/conftest9012345
8388 ac_tf2
=$ac_xdir/conftest9012346
8389 (echo 1 >$ac_tf1) 2>/dev
/null
8390 (echo 2 >$ac_tf2) 2>/dev
/null
8391 ac_val
=`cat $ac_tf1 2>/dev/null`
8392 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8393 ac_cv_sys_long_file_names
=no
8394 rm -rf $ac_xdir 2>/dev
/null
8397 rm -rf $ac_xdir 2>/dev
/null
8400 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8401 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8402 if test $ac_cv_sys_long_file_names = yes; then
8404 cat >>confdefs.h
<<\_ACEOF
8405 #define HAVE_LONG_FILE_NAMES 1
8411 #### Choose a window system.
8413 echo "$as_me:$LINENO: checking for X" >&5
8414 echo $ECHO_N "checking for X... $ECHO_C" >&6
8417 # Check whether --with-x or --without-x was given.
8418 if test "${with_x+set}" = set; then
8422 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8423 if test "x$with_x" = xno
; then
8424 # The user explicitly disabled X.
8427 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8428 # Both variables are already set.
8431 if test "${ac_cv_have_x+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 # One or both of the vars are not set, and there is no cached value.
8435 ac_x_includes
=no ac_x_libraries
=no
8437 if mkdir conftest.dir
; then
8439 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8440 cat >Imakefile
<<'_ACEOF'
8442 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8444 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8445 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8446 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8447 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8448 for ac_extension
in a so sl
; do
8449 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8450 test -f $ac_im_libdir/libX11.
$ac_extension; then
8451 ac_im_usrlibdir
=$ac_im_libdir; break
8454 # Screen out bogus values from the imake configuration. They are
8455 # bogus both because they are the default anyway, and because
8456 # using them would break gcc on systems where it needs fixed includes.
8457 case $ac_im_incroot in
8459 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8461 case $ac_im_usrlibdir in
8463 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8470 # Standard set of common directories for X headers.
8471 # Check X11 before X11Rn because it is often a symlink to the current release.
8483 /usr/local/X11/include
8484 /usr/local/X11R6/include
8485 /usr/local/X11R5/include
8486 /usr/local/X11R4/include
8488 /usr/local/include/X11
8489 /usr/local/include/X11R6
8490 /usr/local/include/X11R5
8491 /usr/local/include/X11R4
8495 /usr/XFree86/include/X11
8499 /usr/unsupported/include
8501 /usr/local/x11r5/include
8502 /usr/lpp/Xamples/include
8504 /usr/openwin/include
8505 /usr/openwin/share/include'
8507 if test "$ac_x_includes" = no
; then
8508 # Guess where to find include files, by looking for Intrinsic.h.
8509 # First, try using that file with no special directory specified.
8510 cat >conftest.
$ac_ext <<_ACEOF
8513 cat confdefs.h
>>conftest.
$ac_ext
8514 cat >>conftest.
$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 #include <X11/Intrinsic.h>
8518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8519 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8521 grep -v '^ *+' conftest.er1
>conftest.err
8523 cat conftest.err
>&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } >/dev
/null
; then
8526 if test -s conftest.err
; then
8527 ac_cpp_err
=$ac_c_preproc_warn_flag
8528 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8535 if test -z "$ac_cpp_err"; then
8536 # We can compile using X headers with no special include directory.
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.
$ac_ext >&5
8542 for ac_dir
in $ac_x_header_dirs; do
8543 if test -r "$ac_dir/X11/Intrinsic.h"; then
8544 ac_x_includes
=$ac_dir
8549 rm -f conftest.err conftest.
$ac_ext
8550 fi # $ac_x_includes = no
8552 if test "$ac_x_libraries" = no
; then
8553 # Check for the libraries.
8554 # See if we find them without any special options.
8555 # Don't add to $LIBS permanently.
8558 cat >conftest.
$ac_ext <<_ACEOF
8561 cat confdefs.h
>>conftest.
$ac_ext
8562 cat >>conftest.
$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8564 #include <X11/Intrinsic.h>
8573 rm -f conftest.
$ac_objext conftest
$ac_exeext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8575 (eval $ac_link) 2>conftest.er1
8577 grep -v '^ *+' conftest.er1
>conftest.err
8579 cat conftest.err
>&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try
='test -z "$ac_c_werror_flag"
8583 || test ! -s conftest.err'
8584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); }; } &&
8589 { ac_try
='test -s conftest$ac_exeext'
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; }; then
8596 # We can link X programs with no special library path.
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.
$ac_ext >&5
8603 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8605 # Don't even attempt the hair of trying to link an X program!
8606 for ac_extension
in a so sl
; do
8607 if test -r $ac_dir/libXt.
$ac_extension; then
8608 ac_x_libraries
=$ac_dir
8614 rm -f conftest.err conftest.
$ac_objext \
8615 conftest
$ac_exeext conftest.
$ac_ext
8616 fi # $ac_x_libraries = no
8618 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8619 # Didn't find X anywhere. Cache the known absence of X.
8620 ac_cv_have_x
="have_x=no"
8622 # Record where we found X for the cache.
8623 ac_cv_have_x
="have_x=yes \
8624 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8629 eval "$ac_cv_have_x"
8632 if test "$have_x" != yes; then
8633 echo "$as_me:$LINENO: result: $have_x" >&5
8634 echo "${ECHO_T}$have_x" >&6
8637 # If each of the values was on the command line, it overrides each guess.
8638 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8639 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8640 # Update the cache value to reflect the command line values.
8641 ac_cv_have_x
="have_x=yes \
8642 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8643 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8644 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8647 if test "$no_x" = yes; then
8653 if test "${x_libraries}" != NONE
; then
8654 if test -n "${x_libraries}"; then
8655 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8656 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8658 x_default_search_path
=""
8659 x_search_path
=${x_libraries}
8660 if test -z "${x_search_path}"; then
8661 x_search_path
=/usr
/lib
8663 for x_library
in `echo ${x_search_path}: | \
8664 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8666 ${x_library}/X11/%L/%T/%N%C%S:\
8667 ${x_library}/X11/%l/%T/%N%C%S:\
8668 ${x_library}/X11/%T/%N%C%S:\
8669 ${x_library}/X11/%L/%T/%N%S:\
8670 ${x_library}/X11/%l/%T/%N%S:\
8671 ${x_library}/X11/%T/%N%S"
8672 if test x
"${x_default_search_path}" = x
; then
8673 x_default_search_path
=${x_search_path}
8675 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8679 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8680 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8683 if test x
"${x_includes}" = x
; then
8684 bitmapdir
=/usr
/include
/X11
/bitmaps
8686 # accumulate include directories that have X11 bitmap subdirectories
8688 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8689 if test -d "${bmd}/X11/bitmaps"; then
8690 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8692 if test -d "${bmd}/bitmaps"; then
8693 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8696 if test ${bmd_acc} != "dummyval"; then
8697 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8702 if test "${with_carbon}" != no
; then
8703 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8704 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8705 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8706 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8710 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8712 # Is the header compilable?
8713 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8714 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8715 cat >conftest.
$ac_ext <<_ACEOF
8718 cat confdefs.h
>>conftest.
$ac_ext
8719 cat >>conftest.
$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 $ac_includes_default
8722 #include <Carbon/Carbon.h>
8724 rm -f conftest.
$ac_objext
8725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8726 (eval $ac_compile) 2>conftest.er1
8728 grep -v '^ *+' conftest.er1
>conftest.err
8730 cat conftest.err
>&5
8731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732 (exit $ac_status); } &&
8733 { ac_try
='test -z "$ac_c_werror_flag"
8734 || test ! -s conftest.err'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; } &&
8740 { ac_try
='test -s conftest.$ac_objext'
8741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8745 (exit $ac_status); }; }; then
8746 ac_header_compiler
=yes
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.
$ac_ext >&5
8751 ac_header_compiler
=no
8753 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8754 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8755 echo "${ECHO_T}$ac_header_compiler" >&6
8757 # Is the header present?
8758 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8759 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8760 cat >conftest.
$ac_ext <<_ACEOF
8763 cat confdefs.h
>>conftest.
$ac_ext
8764 cat >>conftest.
$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8766 #include <Carbon/Carbon.h>
8768 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8769 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8771 grep -v '^ *+' conftest.er1
>conftest.err
8773 cat conftest.err
>&5
8774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775 (exit $ac_status); } >/dev
/null
; then
8776 if test -s conftest.err
; then
8777 ac_cpp_err
=$ac_c_preproc_warn_flag
8778 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8785 if test -z "$ac_cpp_err"; then
8786 ac_header_preproc
=yes
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.
$ac_ext >&5
8791 ac_header_preproc
=no
8793 rm -f conftest.err conftest.
$ac_ext
8794 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8795 echo "${ECHO_T}$ac_header_preproc" >&6
8797 # So? What about this header?
8798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8800 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8801 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8802 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8803 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8804 ac_header_preproc
=yes
8807 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8808 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8809 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8810 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8811 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8812 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8813 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8814 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8815 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8816 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8817 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8818 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8821 ## ------------------------------------------ ##
8822 ## Report this to the AC_PACKAGE_NAME lists. ##
8823 ## ------------------------------------------ ##
8826 sed "s/^/$as_me: WARNING: /" >&2
8829 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8830 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8831 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8836 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8837 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8840 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8846 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8847 if test "${with_carbon+set}" != set \
8848 && test "${carbon_appdir_x+set}" != set; then
8849 for var
in with_x with_x_toolkit with_gtk with_xim \
8850 with_xpm with_jpeg with_tiff with_gif with_png
; do
8851 if eval test \"\
${$var+set}\" = set; then
8858 if test "${HAVE_CARBON}" = yes; then
8862 case "${window_system}" in
8866 case "${with_x_toolkit}" in
8867 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8868 motif
) USE_X_TOOLKIT
=MOTIF
;;
8870 USE_X_TOOLKIT
=none
;;
8871 no
) USE_X_TOOLKIT
=none
;;
8872 * ) USE_X_TOOLKIT
=maybe
;;
8882 ### If we're using X11, we should use the X menu package.
8885 yes ) HAVE_MENUS
=yes ;;
8888 if test "${opsys}" = "hpux9"; then
8889 case "${x_libraries}" in
8891 opsysfile
="s/hpux9-x11r4.h"
8896 if test "${opsys}" = "hpux9shr"; then
8897 case "${x_libraries}" in
8899 opsysfile
="s/hpux9shxr4.h"
8904 ### Compute the unexec source name from the object name.
8905 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8907 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8908 # Assume not, until told otherwise.
8911 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8912 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8913 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8914 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 cat >conftest.
$ac_ext <<_ACEOF
8919 cat confdefs.h
>>conftest.
$ac_ext
8920 cat >>conftest.
$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8924 #define malloc_get_state innocuous_malloc_get_state
8926 /* System header to define __stub macros and hopefully few prototypes,
8927 which can conflict with char malloc_get_state (); below.
8928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8929 <limits.h> exists even on freestanding compilers. */
8932 # include <limits.h>
8934 # include <assert.h>
8937 #undef malloc_get_state
8939 /* Override any gcc2 internal prototype to avoid an error. */
8944 /* We use char because int might match the return type of a gcc2
8945 builtin and then its argument prototype would still apply. */
8946 char malloc_get_state ();
8947 /* The GNU C library defines this for functions which it implements
8948 to always fail with ENOSYS. Some functions are actually named
8949 something starting with __ and the normal name is an alias. */
8950 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8953 char (*f) () = malloc_get_state;
8962 return f != malloc_get_state;
8967 rm -f conftest.
$ac_objext conftest
$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969 (eval $ac_link) 2>conftest.er1
8971 grep -v '^ *+' conftest.er1
>conftest.err
8973 cat conftest.err
>&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try
='test -z "$ac_c_werror_flag"
8977 || test ! -s conftest.err'
8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; } &&
8983 { ac_try
='test -s conftest$ac_exeext'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; }; then
8989 ac_cv_func_malloc_get_state
=yes
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.
$ac_ext >&5
8994 ac_cv_func_malloc_get_state
=no
8996 rm -f conftest.err conftest.
$ac_objext \
8997 conftest
$ac_exeext conftest.
$ac_ext
8999 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9000 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
9001 if test $ac_cv_func_malloc_get_state = yes; then
9007 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9008 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
9009 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 cat >conftest.
$ac_ext <<_ACEOF
9015 cat confdefs.h
>>conftest.
$ac_ext
9016 cat >>conftest.
$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9018 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9020 #define malloc_set_state innocuous_malloc_set_state
9022 /* System header to define __stub macros and hopefully few prototypes,
9023 which can conflict with char malloc_set_state (); below.
9024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9025 <limits.h> exists even on freestanding compilers. */
9028 # include <limits.h>
9030 # include <assert.h>
9033 #undef malloc_set_state
9035 /* Override any gcc2 internal prototype to avoid an error. */
9040 /* We use char because int might match the return type of a gcc2
9041 builtin and then its argument prototype would still apply. */
9042 char malloc_set_state ();
9043 /* The GNU C library defines this for functions which it implements
9044 to always fail with ENOSYS. Some functions are actually named
9045 something starting with __ and the normal name is an alias. */
9046 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9049 char (*f) () = malloc_set_state;
9058 return f != malloc_set_state;
9063 rm -f conftest.
$ac_objext conftest
$ac_exeext
9064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9065 (eval $ac_link) 2>conftest.er1
9067 grep -v '^ *+' conftest.er1
>conftest.err
9069 cat conftest.err
>&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try
='test -z "$ac_c_werror_flag"
9073 || test ! -s conftest.err'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; } &&
9079 { ac_try
='test -s conftest$ac_exeext'
9080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084 (exit $ac_status); }; }; then
9085 ac_cv_func_malloc_set_state
=yes
9087 echo "$as_me: failed program was:" >&5
9088 sed 's/^/| /' conftest.
$ac_ext >&5
9090 ac_cv_func_malloc_set_state
=no
9092 rm -f conftest.err conftest.
$ac_objext \
9093 conftest
$ac_exeext conftest.
$ac_ext
9095 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9096 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9097 if test $ac_cv_func_malloc_set_state = yes; then
9103 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9104 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9105 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 cat >conftest.
$ac_ext <<_ACEOF
9111 cat confdefs.h
>>conftest.
$ac_ext
9112 cat >>conftest.
$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9114 extern void (* __after_morecore_hook)();
9118 __after_morecore_hook = 0
9123 rm -f conftest.
$ac_objext conftest
$ac_exeext
9124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9125 (eval $ac_link) 2>conftest.er1
9127 grep -v '^ *+' conftest.er1
>conftest.err
9129 cat conftest.err
>&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } &&
9132 { ac_try
='test -z "$ac_c_werror_flag"
9133 || test ! -s conftest.err'
9134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); }; } &&
9139 { ac_try
='test -s conftest$ac_exeext'
9140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); }; }; then
9145 emacs_cv_var___after_morecore_hook
=yes
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.
$ac_ext >&5
9150 emacs_cv_var___after_morecore_hook
=no
9152 rm -f conftest.err conftest.
$ac_objext \
9153 conftest
$ac_exeext conftest.
$ac_ext
9155 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9156 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9157 if test $emacs_cv_var___after_morecore_hook = no
; then
9160 if test "${system_malloc}" = "yes"; then
9163 (The GNU allocators don't work with this system configuration.)"
9165 if test "$doug_lea_malloc" = "yes" ; then
9166 if test "$GNU_MALLOC" = yes ; then
9168 (Using Doug Lea's new malloc from the GNU C Library.)"
9171 cat >>confdefs.h
<<\_ACEOF
9172 #define DOUG_LEA_MALLOC 1
9177 if test x
"${REL_ALLOC}" = x
; then
9178 REL_ALLOC
=${GNU_MALLOC}
9184 for ac_header
in stdlib.h unistd.h
9186 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9188 echo "$as_me:$LINENO: checking for $ac_header" >&5
9189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9190 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9194 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9196 # Is the header compilable?
9197 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9199 cat >conftest.
$ac_ext <<_ACEOF
9202 cat confdefs.h
>>conftest.
$ac_ext
9203 cat >>conftest.
$ac_ext <<_ACEOF
9204 /* end confdefs.h. */
9205 $ac_includes_default
9206 #include <$ac_header>
9208 rm -f conftest.
$ac_objext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9210 (eval $ac_compile) 2>conftest.er1
9212 grep -v '^ *+' conftest.er1
>conftest.err
9214 cat conftest.err
>&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try
='test -z "$ac_c_werror_flag"
9218 || test ! -s conftest.err'
9219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223 (exit $ac_status); }; } &&
9224 { ac_try
='test -s conftest.$ac_objext'
9225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); }; }; then
9230 ac_header_compiler
=yes
9232 echo "$as_me: failed program was:" >&5
9233 sed 's/^/| /' conftest.
$ac_ext >&5
9235 ac_header_compiler
=no
9237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9238 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9239 echo "${ECHO_T}$ac_header_compiler" >&6
9241 # Is the header present?
9242 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9244 cat >conftest.
$ac_ext <<_ACEOF
9247 cat confdefs.h
>>conftest.
$ac_ext
9248 cat >>conftest.
$ac_ext <<_ACEOF
9249 /* end confdefs.h. */
9250 #include <$ac_header>
9252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9253 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9255 grep -v '^ *+' conftest.er1
>conftest.err
9257 cat conftest.err
>&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } >/dev
/null
; then
9260 if test -s conftest.err
; then
9261 ac_cpp_err
=$ac_c_preproc_warn_flag
9262 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9269 if test -z "$ac_cpp_err"; then
9270 ac_header_preproc
=yes
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.
$ac_ext >&5
9275 ac_header_preproc
=no
9277 rm -f conftest.err conftest.
$ac_ext
9278 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9279 echo "${ECHO_T}$ac_header_preproc" >&6
9281 # So? What about this header?
9282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9288 ac_header_preproc
=yes
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9294 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9295 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9297 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9298 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9305 ## ------------------------------------------ ##
9306 ## Report this to the AC_PACKAGE_NAME lists. ##
9307 ## ------------------------------------------ ##
9310 sed "s/^/$as_me: WARNING: /" >&2
9313 echo "$as_me:$LINENO: checking for $ac_header" >&5
9314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 eval "$as_ac_Header=\$ac_header_preproc"
9320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9321 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9325 cat >>confdefs.h
<<_ACEOF
9326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9334 for ac_func
in getpagesize
9336 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9337 echo "$as_me:$LINENO: checking for $ac_func" >&5
9338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9339 if eval "test \"\${$as_ac_var+set}\" = set"; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 cat >conftest.
$ac_ext <<_ACEOF
9345 cat confdefs.h
>>conftest.
$ac_ext
9346 cat >>conftest.
$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9350 #define $ac_func innocuous_$ac_func
9352 /* System header to define __stub macros and hopefully few prototypes,
9353 which can conflict with char $ac_func (); below.
9354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9355 <limits.h> exists even on freestanding compilers. */
9358 # include <limits.h>
9360 # include <assert.h>
9365 /* Override any gcc2 internal prototype to avoid an error. */
9370 /* We use char because int might match the return type of a gcc2
9371 builtin and then its argument prototype would still apply. */
9373 /* The GNU C library defines this for functions which it implements
9374 to always fail with ENOSYS. Some functions are actually named
9375 something starting with __ and the normal name is an alias. */
9376 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9379 char (*f) () = $ac_func;
9388 return f != $ac_func;
9393 rm -f conftest.
$ac_objext conftest
$ac_exeext
9394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395 (eval $ac_link) 2>conftest.er1
9397 grep -v '^ *+' conftest.er1
>conftest.err
9399 cat conftest.err
>&5
9400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401 (exit $ac_status); } &&
9402 { ac_try
='test -z "$ac_c_werror_flag"
9403 || test ! -s conftest.err'
9404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); }; } &&
9409 { ac_try
='test -s conftest$ac_exeext'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 eval "$as_ac_var=yes"
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.
$ac_ext >&5
9420 eval "$as_ac_var=no"
9422 rm -f conftest.err conftest.
$ac_objext \
9423 conftest
$ac_exeext conftest.
$ac_ext
9425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9427 if test `eval echo '${'$as_ac_var'}'` = yes; then
9428 cat >>confdefs.h
<<_ACEOF
9429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9435 echo "$as_me:$LINENO: checking for working mmap" >&5
9436 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9437 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
9440 if test "$cross_compiling" = yes; then
9441 ac_cv_func_mmap_fixed_mapped
=no
9443 cat >conftest.
$ac_ext <<_ACEOF
9446 cat confdefs.h
>>conftest.
$ac_ext
9447 cat >>conftest.
$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 $ac_includes_default
9450 /* malloc might have been renamed as rpl_malloc. */
9453 /* Thanks to Mike Haertel and Jim Avera for this test.
9454 Here is a matrix of mmap possibilities:
9455 mmap private not fixed
9456 mmap private fixed at somewhere currently unmapped
9457 mmap private fixed at somewhere already mapped
9458 mmap shared not fixed
9459 mmap shared fixed at somewhere currently unmapped
9460 mmap shared fixed at somewhere already mapped
9461 For private mappings, we should verify that changes cannot be read()
9462 back from the file, nor mmap's back from the file at a different
9463 address. (There have been systems where private was not correctly
9464 implemented like the infamous i386 svr4.0, and systems where the
9465 VM page cache was not coherent with the file system buffer cache
9466 like early versions of FreeBSD and possibly contemporary NetBSD.)
9467 For shared mappings, we should conversely verify that changes get
9468 propagated back to all the places they're supposed to be.
9470 Grep wants private fixed already mapped.
9471 The main things grep needs to know about mmap are:
9472 * does it exist and is it safe to write into the mmap'd area
9473 * how to use it (BSD variants) */
9476 #include <sys/mman.h>
9478 #if !STDC_HEADERS && !HAVE_STDLIB_H
9482 /* This mess was copied from the GNU getpagesize.h. */
9483 #if !HAVE_GETPAGESIZE
9484 /* Assume that all systems that can run configure have sys/param.h. */
9485 # if !HAVE_SYS_PARAM_H
9486 # define HAVE_SYS_PARAM_H 1
9489 # ifdef _SC_PAGESIZE
9490 # define getpagesize() sysconf(_SC_PAGESIZE)
9491 # else /* no _SC_PAGESIZE */
9492 # if HAVE_SYS_PARAM_H
9493 # include <sys/param.h>
9494 # ifdef EXEC_PAGESIZE
9495 # define getpagesize() EXEC_PAGESIZE
9496 # else /* no EXEC_PAGESIZE */
9498 # define getpagesize() NBPG * CLSIZE
9501 # endif /* no CLSIZE */
9502 # else /* no NBPG */
9504 # define getpagesize() NBPC
9505 # else /* no NBPC */
9507 # define getpagesize() PAGESIZE
9508 # endif /* PAGESIZE */
9509 # endif /* no NBPC */
9510 # endif /* no NBPG */
9511 # endif /* no EXEC_PAGESIZE */
9512 # else /* no HAVE_SYS_PARAM_H */
9513 # define getpagesize() 8192 /* punt totally */
9514 # endif /* no HAVE_SYS_PARAM_H */
9515 # endif /* no _SC_PAGESIZE */
9517 #endif /* no HAVE_GETPAGESIZE */
9522 char *data, *data2, *data3;
9526 pagesize = getpagesize ();
9528 /* First, make a file with some known garbage in it. */
9529 data = (char *) malloc (pagesize);
9532 for (i = 0; i < pagesize; ++i)
9533 *(data + i) = rand ();
9535 fd = creat ("conftest.mmap", 0600);
9538 if (write (fd, data, pagesize) != pagesize)
9542 /* Next, try to mmap the file at a fixed address which already has
9543 something else allocated at it. If we can, also make sure that
9544 we see the same garbage. */
9545 fd = open ("conftest.mmap", O_RDWR);
9548 data2 = (char *) malloc (2 * pagesize);
9551 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9552 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9553 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9555 for (i = 0; i < pagesize; ++i)
9556 if (*(data + i) != *(data2 + i))
9559 /* Finally, make sure that changes to the mapped area do not
9560 percolate back to the file as seen by read(). (This is a bug on
9561 some variants of i386 svr4.0.) */
9562 for (i = 0; i < pagesize; ++i)
9563 *(data2 + i) = *(data2 + i) + 1;
9564 data3 = (char *) malloc (pagesize);
9567 if (read (fd, data3, pagesize) != pagesize)
9569 for (i = 0; i < pagesize; ++i)
9570 if (*(data + i) != *(data3 + i))
9576 rm -f conftest
$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; }; then
9587 ac_cv_func_mmap_fixed_mapped
=yes
9589 echo "$as_me: program exited with status $ac_status" >&5
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.
$ac_ext >&5
9594 ac_cv_func_mmap_fixed_mapped
=no
9596 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9599 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9600 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9601 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9603 cat >>confdefs.h
<<\_ACEOF
9610 if test $use_mmap_for_buffers = yes; then
9614 LIBS
="$libsrc_libs $LIBS"
9617 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9618 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9619 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 ac_check_lib_save_LIBS
=$LIBS
9624 cat >conftest.
$ac_ext <<_ACEOF
9627 cat confdefs.h
>>conftest.
$ac_ext
9628 cat >>conftest.
$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9631 /* Override any gcc2 internal prototype to avoid an error. */
9635 /* We use char because int might match the return type of a gcc2
9636 builtin and then its argument prototype would still apply. */
9646 rm -f conftest.
$ac_objext conftest
$ac_exeext
9647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9648 (eval $ac_link) 2>conftest.er1
9650 grep -v '^ *+' conftest.er1
>conftest.err
9652 cat conftest.err
>&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } &&
9655 { ac_try
='test -z "$ac_c_werror_flag"
9656 || test ! -s conftest.err'
9657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); }; } &&
9662 { ac_try
='test -s conftest$ac_exeext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_cv_lib_dnet_dnet_ntoa
=yes
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.
$ac_ext >&5
9673 ac_cv_lib_dnet_dnet_ntoa
=no
9675 rm -f conftest.err conftest.
$ac_objext \
9676 conftest
$ac_exeext conftest.
$ac_ext
9677 LIBS
=$ac_check_lib_save_LIBS
9679 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9680 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9681 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9682 cat >>confdefs.h
<<_ACEOF
9683 #define HAVE_LIBDNET 1
9691 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9692 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9693 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 ac_check_lib_save_LIBS
=$LIBS
9698 cat >conftest.
$ac_ext <<_ACEOF
9701 cat confdefs.h
>>conftest.
$ac_ext
9702 cat >>conftest.
$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9714 rm -f conftest.
$ac_objext conftest
$ac_exeext
9715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9716 (eval $ac_link) 2>conftest.er1
9718 grep -v '^ *+' conftest.er1
>conftest.err
9720 cat conftest.err
>&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } &&
9723 { ac_try
='test -z "$ac_c_werror_flag"
9724 || test ! -s conftest.err'
9725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); }; } &&
9730 { ac_try
='test -s conftest$ac_exeext'
9731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); }; }; then
9736 ac_cv_lib_Xbsd_main
=yes
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.
$ac_ext >&5
9741 ac_cv_lib_Xbsd_main
=no
9743 rm -f conftest.err conftest.
$ac_objext \
9744 conftest
$ac_exeext conftest.
$ac_ext
9745 LIBS
=$ac_check_lib_save_LIBS
9747 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9748 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9749 if test $ac_cv_lib_Xbsd_main = yes; then
9750 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9755 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9756 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9757 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 ac_check_lib_save_LIBS
=$LIBS
9761 LIBS
="-lpthreads $LIBS"
9762 cat >conftest.
$ac_ext <<_ACEOF
9765 cat confdefs.h
>>conftest.
$ac_ext
9766 cat >>conftest.
$ac_ext <<_ACEOF
9767 /* end confdefs.h. */
9769 /* Override any gcc2 internal prototype to avoid an error. */
9773 /* We use char because int might match the return type of a gcc2
9774 builtin and then its argument prototype would still apply. */
9784 rm -f conftest.
$ac_objext conftest
$ac_exeext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786 (eval $ac_link) 2>conftest.er1
9788 grep -v '^ *+' conftest.er1
>conftest.err
9790 cat conftest.err
>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try
='test -z "$ac_c_werror_flag"
9794 || test ! -s conftest.err'
9795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); }; } &&
9800 { ac_try
='test -s conftest$ac_exeext'
9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); }; }; then
9806 ac_cv_lib_pthreads_cma_open
=yes
9808 echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.
$ac_ext >&5
9811 ac_cv_lib_pthreads_cma_open
=no
9813 rm -f conftest.err conftest.
$ac_objext \
9814 conftest
$ac_exeext conftest.
$ac_ext
9815 LIBS
=$ac_check_lib_save_LIBS
9817 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9818 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9819 if test $ac_cv_lib_pthreads_cma_open = yes; then
9820 cat >>confdefs.h
<<_ACEOF
9821 #define HAVE_LIBPTHREADS 1
9824 LIBS
="-lpthreads $LIBS"
9829 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9830 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9831 if test -d /usr
/X386
/include
; then
9833 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9837 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9838 echo "${ECHO_T}$HAVE_XFREE386" >&6
9843 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9844 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9845 if test "${gdb_cv_bigtoc+set}" = set; then
9846 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9851 *) gdb_cv_bigtoc
=-bbigtoc ;;
9854 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9855 cat >conftest.
$ac_ext <<_ACEOF
9858 cat confdefs.h
>>conftest.
$ac_ext
9859 cat >>conftest.
$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9870 rm -f conftest.
$ac_objext conftest
$ac_exeext
9871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9872 (eval $ac_link) 2>conftest.er1
9874 grep -v '^ *+' conftest.er1
>conftest.err
9876 cat conftest.err
>&5
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); } &&
9879 { ac_try
='test -z "$ac_c_werror_flag"
9880 || test ! -s conftest.err'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; } &&
9886 { ac_try
='test -s conftest$ac_exeext'
9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; }; then
9894 echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.
$ac_ext >&5
9899 rm -f conftest.err conftest.
$ac_objext \
9900 conftest
$ac_exeext conftest.
$ac_ext
9903 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9904 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9908 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9909 # used for the tests that follow. We set them back to REAL_CFLAGS and
9910 # REAL_CPPFLAGS later on.
9912 REAL_CPPFLAGS
="$CPPFLAGS"
9914 if test "${HAVE_X11}" = "yes"; then
9915 DEFS
="$C_SWITCH_X_SITE $DEFS"
9916 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9918 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9919 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9921 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9922 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9923 # but it's more convenient here to set LD_RUN_PATH
9924 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9925 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9926 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9930 if test "${opsys}" = "gnu-linux"; then
9931 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9932 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9933 cat >conftest.
$ac_ext <<_ACEOF
9936 cat confdefs.h
>>conftest.
$ac_ext
9937 cat >>conftest.
$ac_ext <<_ACEOF
9938 /* end confdefs.h. */
9943 XOpenDisplay ("foo");
9948 rm -f conftest.
$ac_objext conftest
$ac_exeext
9949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9950 (eval $ac_link) 2>conftest.er1
9952 grep -v '^ *+' conftest.er1
>conftest.err
9954 cat conftest.err
>&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } &&
9957 { ac_try
='test -z "$ac_c_werror_flag"
9958 || test ! -s conftest.err'
9959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); }; } &&
9964 { ac_try
='test -s conftest$ac_exeext'
9965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); }; }; then
9970 xlinux_first_failure
=no
9972 echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.
$ac_ext >&5
9975 xlinux_first_failure
=yes
9977 rm -f conftest.err conftest.
$ac_objext \
9978 conftest
$ac_exeext conftest.
$ac_ext
9979 if test "${xlinux_first_failure}" = "yes"; then
9980 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9981 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9982 OLD_CPPFLAGS
="$CPPFLAGS"
9984 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9985 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9986 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9987 LIBS
="$LIBS -b i486-linuxaout"
9988 cat >conftest.
$ac_ext <<_ACEOF
9991 cat confdefs.h
>>conftest.
$ac_ext
9992 cat >>conftest.
$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9998 XOpenDisplay ("foo");
10003 rm -f conftest.
$ac_objext conftest
$ac_exeext
10004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10005 (eval $ac_link) 2>conftest.er1
10007 grep -v '^ *+' conftest.er1
>conftest.err
10009 cat conftest.err
>&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } &&
10012 { ac_try
='test -z "$ac_c_werror_flag"
10013 || test ! -s conftest.err'
10014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10015 (eval $ac_try) 2>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try
='test -s conftest$ac_exeext'
10020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021 (eval $ac_try) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); }; }; then
10025 xlinux_second_failure
=no
10027 echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.
$ac_ext >&5
10030 xlinux_second_failure
=yes
10032 rm -f conftest.err conftest.
$ac_objext \
10033 conftest
$ac_exeext conftest.
$ac_ext
10034 if test "${xlinux_second_failure}" = "yes"; then
10035 # If we get the same failure with -b, there is no use adding -b.
10036 # So take it out. This plays safe.
10037 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10038 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10039 CPPFLAGS
="$OLD_CPPFLAGS"
10041 echo "$as_me:$LINENO: result: no" >&5
10042 echo "${ECHO_T}no" >&6
10044 echo "$as_me:$LINENO: result: yes" >&5
10045 echo "${ECHO_T}yes" >&6
10048 echo "$as_me:$LINENO: result: no" >&5
10049 echo "${ECHO_T}no" >&6
10053 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10054 # header files included from there.
10055 echo "$as_me:$LINENO: checking for Xkb" >&5
10056 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10057 cat >conftest.
$ac_ext <<_ACEOF
10060 cat confdefs.h
>>conftest.
$ac_ext
10061 cat >>conftest.
$ac_ext <<_ACEOF
10062 /* end confdefs.h. */
10063 #include <X11/Xlib.h>
10064 #include <X11/XKBlib.h>
10068 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10073 rm -f conftest.
$ac_objext conftest
$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>conftest.er1
10077 grep -v '^ *+' conftest.er1
>conftest.err
10079 cat conftest.err
>&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try
='test -z "$ac_c_werror_flag"
10083 || test ! -s conftest.err'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; } &&
10089 { ac_try
='test -s conftest$ac_exeext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.
$ac_ext >&5
10102 rm -f conftest.err conftest.
$ac_objext \
10103 conftest
$ac_exeext conftest.
$ac_ext
10104 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10105 echo "${ECHO_T}$emacs_xkb" >&6
10106 if test $emacs_xkb = yes; then
10108 cat >>confdefs.h
<<\_ACEOF
10109 #define HAVE_XKBGETKEYBOARD 1
10118 for ac_func
in XrmSetDatabase XScreenResourceString \
10119 XScreenNumberOfScreen XSetWMProtocols
10121 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10122 echo "$as_me:$LINENO: checking for $ac_func" >&5
10123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10124 if eval "test \"\${$as_ac_var+set}\" = set"; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
10127 cat >conftest.
$ac_ext <<_ACEOF
10130 cat confdefs.h
>>conftest.
$ac_ext
10131 cat >>conftest.
$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10135 #define $ac_func innocuous_$ac_func
10137 /* System header to define __stub macros and hopefully few prototypes,
10138 which can conflict with char $ac_func (); below.
10139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10140 <limits.h> exists even on freestanding compilers. */
10143 # include <limits.h>
10145 # include <assert.h>
10150 /* Override any gcc2 internal prototype to avoid an error. */
10155 /* We use char because int might match the return type of a gcc2
10156 builtin and then its argument prototype would still apply. */
10158 /* The GNU C library defines this for functions which it implements
10159 to always fail with ENOSYS. Some functions are actually named
10160 something starting with __ and the normal name is an alias. */
10161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10164 char (*f) () = $ac_func;
10173 return f != $ac_func;
10178 rm -f conftest.
$ac_objext conftest
$ac_exeext
10179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10180 (eval $ac_link) 2>conftest.er1
10182 grep -v '^ *+' conftest.er1
>conftest.err
10184 cat conftest.err
>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); } &&
10187 { ac_try
='test -z "$ac_c_werror_flag"
10188 || test ! -s conftest.err'
10189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10190 (eval $ac_try) 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; } &&
10194 { ac_try
='test -s conftest$ac_exeext'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; }; then
10200 eval "$as_ac_var=yes"
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.
$ac_ext >&5
10205 eval "$as_ac_var=no"
10207 rm -f conftest.err conftest.
$ac_objext \
10208 conftest
$ac_exeext conftest.
$ac_ext
10210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10211 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10212 if test `eval echo '${'$as_ac_var'}'` = yes; then
10213 cat >>confdefs.h
<<_ACEOF
10214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10222 if test "${window_system}" = "x11"; then
10223 echo "$as_me:$LINENO: checking X11 version 6" >&5
10224 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10225 if test "${emacs_cv_x11_version_6+set}" = set; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 cat >conftest.
$ac_ext <<_ACEOF
10231 cat confdefs.h
>>conftest.
$ac_ext
10232 cat >>conftest.
$ac_ext <<_ACEOF
10233 /* end confdefs.h. */
10234 #include <X11/Xlib.h>
10238 #if XlibSpecificationRelease < 6
10246 rm -f conftest.
$ac_objext conftest
$ac_exeext
10247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10248 (eval $ac_link) 2>conftest.er1
10250 grep -v '^ *+' conftest.er1
>conftest.err
10252 cat conftest.err
>&5
10253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254 (exit $ac_status); } &&
10255 { ac_try
='test -z "$ac_c_werror_flag"
10256 || test ! -s conftest.err'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; } &&
10262 { ac_try
='test -s conftest$ac_exeext'
10263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10264 (eval $ac_try) 2>&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); }; }; then
10268 emacs_cv_x11_version_6
=yes
10270 echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.
$ac_ext >&5
10273 emacs_cv_x11_version_6
=no
10275 rm -f conftest.err conftest.
$ac_objext \
10276 conftest
$ac_exeext conftest.
$ac_ext
10279 if test $emacs_cv_x11_version_6 = yes; then
10280 echo "$as_me:$LINENO: result: 6 or newer" >&5
10281 echo "${ECHO_T}6 or newer" >&6
10283 cat >>confdefs.h
<<\_ACEOF
10284 #define HAVE_X11R6 1
10288 echo "$as_me:$LINENO: result: before 6" >&5
10289 echo "${ECHO_T}before 6" >&6
10293 if test "${window_system}" = "x11"; then
10294 echo "$as_me:$LINENO: checking X11 version 5" >&5
10295 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10296 if test "${emacs_cv_x11_version_5+set}" = set; then
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 cat >conftest.
$ac_ext <<_ACEOF
10302 cat confdefs.h
>>conftest.
$ac_ext
10303 cat >>conftest.
$ac_ext <<_ACEOF
10304 /* end confdefs.h. */
10305 #include <X11/Xlib.h>
10309 #if XlibSpecificationRelease < 5
10317 rm -f conftest.
$ac_objext conftest
$ac_exeext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10319 (eval $ac_link) 2>conftest.er1
10321 grep -v '^ *+' conftest.er1
>conftest.err
10323 cat conftest.err
>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } &&
10326 { ac_try
='test -z "$ac_c_werror_flag"
10327 || test ! -s conftest.err'
10328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329 (eval $ac_try) 2>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); }; } &&
10333 { ac_try
='test -s conftest$ac_exeext'
10334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335 (eval $ac_try) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); }; }; then
10339 emacs_cv_x11_version_5
=yes
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.
$ac_ext >&5
10344 emacs_cv_x11_version_5
=no
10346 rm -f conftest.err conftest.
$ac_objext \
10347 conftest
$ac_exeext conftest.
$ac_ext
10350 if test $emacs_cv_x11_version_5 = yes; then
10351 echo "$as_me:$LINENO: result: 5 or newer" >&5
10352 echo "${ECHO_T}5 or newer" >&6
10355 cat >>confdefs.h
<<\_ACEOF
10356 #define HAVE_X11R5 1
10361 echo "$as_me:$LINENO: result: before 5" >&5
10362 echo "${ECHO_T}before 5" >&6
10367 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10368 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10369 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10370 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10371 { (exit 1); exit 1; }; };
10375 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10377 if test "X${with_pkg_config_prog}" != X
; then
10378 PKG_CONFIG
="${with_pkg_config_prog}"
10383 if test -z "$PKG_CONFIG"; then
10384 # Extract the first word of "pkg-config", so it can be a program name with args.
10385 set dummy pkg-config
; ac_word
=$2
10386 echo "$as_me:$LINENO: checking for $ac_word" >&5
10387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10388 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 case $PKG_CONFIG in
10393 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10396 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10397 for as_dir
in $PATH
10400 test -z "$as_dir" && as_dir
=.
10401 for ac_exec_ext
in '' $ac_executable_extensions; do
10402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10403 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10410 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10414 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10416 if test -n "$PKG_CONFIG"; then
10417 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10418 echo "${ECHO_T}$PKG_CONFIG" >&6
10420 echo "$as_me:$LINENO: result: no" >&5
10421 echo "${ECHO_T}no" >&6
10426 if test "$PKG_CONFIG" = "no" ; then
10427 { { echo "$as_me:$LINENO: error:
10428 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10429 echo "$as_me: error:
10430 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10431 { (exit 1); exit 1; }; }
10433 PKG_CONFIG_MIN_VERSION
=0.9.0
10434 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10435 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10436 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10438 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10439 echo "$as_me:$LINENO: result: yes" >&5
10440 echo "${ECHO_T}yes" >&6
10443 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10444 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10445 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10446 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10447 echo "${ECHO_T}$GTK_CFLAGS" >&6
10449 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10450 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10451 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10452 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10453 echo "${ECHO_T}$GTK_LIBS" >&6
10455 echo "$as_me:$LINENO: result: no" >&5
10456 echo "${ECHO_T}no" >&6
10459 ## If we have a custom action on failure, don't print errors, but
10460 ## do set a variable so people can do so.
10461 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10462 echo $GTK_PKG_ERRORS
10468 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10469 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10473 if test $succeeded = yes; then
10476 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
10477 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
10478 { (exit 1); exit 1; }; }
10483 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10484 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10485 LIBS
="$GTK_LIBS $LIBS"
10488 cat >>confdefs.h
<<\_ACEOF
10494 if test "$with_toolkit_scroll_bars" != no
; then
10495 with_toolkit_scroll_bars
=yes
10498 HAVE_GTK_MULTIDISPLAY
=no
10500 for ac_func
in gdk_display_open
10502 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10503 echo "$as_me:$LINENO: checking for $ac_func" >&5
10504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10505 if eval "test \"\${$as_ac_var+set}\" = set"; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 cat >conftest.
$ac_ext <<_ACEOF
10511 cat confdefs.h
>>conftest.
$ac_ext
10512 cat >>conftest.
$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10516 #define $ac_func innocuous_$ac_func
10518 /* System header to define __stub macros and hopefully few prototypes,
10519 which can conflict with char $ac_func (); below.
10520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10521 <limits.h> exists even on freestanding compilers. */
10524 # include <limits.h>
10526 # include <assert.h>
10531 /* Override any gcc2 internal prototype to avoid an error. */
10536 /* We use char because int might match the return type of a gcc2
10537 builtin and then its argument prototype would still apply. */
10539 /* The GNU C library defines this for functions which it implements
10540 to always fail with ENOSYS. Some functions are actually named
10541 something starting with __ and the normal name is an alias. */
10542 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10545 char (*f) () = $ac_func;
10554 return f != $ac_func;
10559 rm -f conftest.
$ac_objext conftest
$ac_exeext
10560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10561 (eval $ac_link) 2>conftest.er1
10563 grep -v '^ *+' conftest.er1
>conftest.err
10565 cat conftest.err
>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try
='test -z "$ac_c_werror_flag"
10569 || test ! -s conftest.err'
10570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10571 (eval $ac_try) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); }; } &&
10575 { ac_try
='test -s conftest$ac_exeext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 eval "$as_ac_var=yes"
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.
$ac_ext >&5
10586 eval "$as_ac_var=no"
10588 rm -f conftest.err conftest.
$ac_objext \
10589 conftest
$ac_exeext conftest.
$ac_ext
10591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10592 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10593 if test `eval echo '${'$as_ac_var'}'` = yes; then
10594 cat >>confdefs.h
<<_ACEOF
10595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10597 HAVE_GTK_MULTIDISPLAY
=yes
10601 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10603 cat >>confdefs.h
<<\_ACEOF
10604 #define HAVE_GTK_MULTIDISPLAY 1
10608 HAVE_GTK_FILE_SELECTION
=no
10610 for ac_func
in gtk_file_selection_new
10612 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10613 echo "$as_me:$LINENO: checking for $ac_func" >&5
10614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10615 if eval "test \"\${$as_ac_var+set}\" = set"; then
10616 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 cat >conftest.
$ac_ext <<_ACEOF
10621 cat confdefs.h
>>conftest.
$ac_ext
10622 cat >>conftest.
$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10626 #define $ac_func innocuous_$ac_func
10628 /* System header to define __stub macros and hopefully few prototypes,
10629 which can conflict with char $ac_func (); below.
10630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10631 <limits.h> exists even on freestanding compilers. */
10634 # include <limits.h>
10636 # include <assert.h>
10641 /* Override any gcc2 internal prototype to avoid an error. */
10646 /* We use char because int might match the return type of a gcc2
10647 builtin and then its argument prototype would still apply. */
10649 /* The GNU C library defines this for functions which it implements
10650 to always fail with ENOSYS. Some functions are actually named
10651 something starting with __ and the normal name is an alias. */
10652 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10655 char (*f) () = $ac_func;
10664 return f != $ac_func;
10669 rm -f conftest.
$ac_objext conftest
$ac_exeext
10670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10671 (eval $ac_link) 2>conftest.er1
10673 grep -v '^ *+' conftest.er1
>conftest.err
10675 cat conftest.err
>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } &&
10678 { ac_try
='test -z "$ac_c_werror_flag"
10679 || test ! -s conftest.err'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; } &&
10685 { ac_try
='test -s conftest$ac_exeext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 eval "$as_ac_var=yes"
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.
$ac_ext >&5
10696 eval "$as_ac_var=no"
10698 rm -f conftest.err conftest.
$ac_objext \
10699 conftest
$ac_exeext conftest.
$ac_ext
10701 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10702 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10703 if test `eval echo '${'$as_ac_var'}'` = yes; then
10704 cat >>confdefs.h
<<_ACEOF
10705 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10707 HAVE_GTK_FILE_SELECTION
=yes
10712 HAVE_GTK_FILE_CHOOSER
=no
10714 for ac_func
in gtk_file_chooser_dialog_new
10716 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10717 echo "$as_me:$LINENO: checking for $ac_func" >&5
10718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10719 if eval "test \"\${$as_ac_var+set}\" = set"; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 cat >conftest.
$ac_ext <<_ACEOF
10725 cat confdefs.h
>>conftest.
$ac_ext
10726 cat >>conftest.
$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10730 #define $ac_func innocuous_$ac_func
10732 /* System header to define __stub macros and hopefully few prototypes,
10733 which can conflict with char $ac_func (); below.
10734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10735 <limits.h> exists even on freestanding compilers. */
10738 # include <limits.h>
10740 # include <assert.h>
10745 /* Override any gcc2 internal prototype to avoid an error. */
10750 /* We use char because int might match the return type of a gcc2
10751 builtin and then its argument prototype would still apply. */
10753 /* The GNU C library defines this for functions which it implements
10754 to always fail with ENOSYS. Some functions are actually named
10755 something starting with __ and the normal name is an alias. */
10756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10759 char (*f) () = $ac_func;
10768 return f != $ac_func;
10773 rm -f conftest.
$ac_objext conftest
$ac_exeext
10774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10775 (eval $ac_link) 2>conftest.er1
10777 grep -v '^ *+' conftest.er1
>conftest.err
10779 cat conftest.err
>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); } &&
10782 { ac_try
='test -z "$ac_c_werror_flag"
10783 || test ! -s conftest.err'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; } &&
10789 { ac_try
='test -s conftest$ac_exeext'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; }; then
10795 eval "$as_ac_var=yes"
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.
$ac_ext >&5
10800 eval "$as_ac_var=no"
10802 rm -f conftest.err conftest.
$ac_objext \
10803 conftest
$ac_exeext conftest.
$ac_ext
10805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10807 if test `eval echo '${'$as_ac_var'}'` = yes; then
10808 cat >>confdefs.h
<<_ACEOF
10809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10811 HAVE_GTK_FILE_CHOOSER
=yes
10816 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10817 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10819 cat >>confdefs.h
<<\_ACEOF
10820 #define HAVE_GTK_FILE_BOTH 1
10825 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10826 HAVE_GTK_AND_PTHREAD
=no
10828 for ac_header
in pthread.h
10830 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10831 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10832 echo "$as_me:$LINENO: checking for $ac_header" >&5
10833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10840 # Is the header compilable?
10841 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10842 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10843 cat >conftest.
$ac_ext <<_ACEOF
10846 cat confdefs.h
>>conftest.
$ac_ext
10847 cat >>conftest.
$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10849 $ac_includes_default
10850 #include <$ac_header>
10852 rm -f conftest.
$ac_objext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10854 (eval $ac_compile) 2>conftest.er1
10856 grep -v '^ *+' conftest.er1
>conftest.err
10858 cat conftest.err
>&5
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); } &&
10861 { ac_try
='test -z "$ac_c_werror_flag"
10862 || test ! -s conftest.err'
10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864 (eval $ac_try) 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; } &&
10868 { ac_try
='test -s conftest.$ac_objext'
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_header_compiler
=yes
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.
$ac_ext >&5
10879 ac_header_compiler
=no
10881 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10883 echo "${ECHO_T}$ac_header_compiler" >&6
10885 # Is the header present?
10886 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10888 cat >conftest.
$ac_ext <<_ACEOF
10891 cat confdefs.h
>>conftest.
$ac_ext
10892 cat >>conftest.
$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 #include <$ac_header>
10896 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10897 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10899 grep -v '^ *+' conftest.er1
>conftest.err
10901 cat conftest.err
>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } >/dev
/null
; then
10904 if test -s conftest.err
; then
10905 ac_cpp_err
=$ac_c_preproc_warn_flag
10906 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10913 if test -z "$ac_cpp_err"; then
10914 ac_header_preproc
=yes
10916 echo "$as_me: failed program was:" >&5
10917 sed 's/^/| /' conftest.
$ac_ext >&5
10919 ac_header_preproc
=no
10921 rm -f conftest.err conftest.
$ac_ext
10922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10923 echo "${ECHO_T}$ac_header_preproc" >&6
10925 # So? What about this header?
10926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10932 ac_header_preproc
=yes
10935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10949 ## ------------------------------------------ ##
10950 ## Report this to the AC_PACKAGE_NAME lists. ##
10951 ## ------------------------------------------ ##
10954 sed "s/^/$as_me: WARNING: /" >&2
10957 echo "$as_me:$LINENO: checking for $ac_header" >&5
10958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10960 echo $ECHO_N "(cached) $ECHO_C" >&6
10962 eval "$as_ac_Header=\$ac_header_preproc"
10964 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10965 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10969 cat >>confdefs.h
<<_ACEOF
10970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10977 if test "$ac_cv_header_pthread_h"; then
10978 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10979 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10980 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10983 ac_check_lib_save_LIBS
=$LIBS
10984 LIBS
="-lpthread $LIBS"
10985 cat >conftest.
$ac_ext <<_ACEOF
10988 cat confdefs.h
>>conftest.
$ac_ext
10989 cat >>conftest.
$ac_ext <<_ACEOF
10990 /* end confdefs.h. */
10992 /* Override any gcc2 internal prototype to avoid an error. */
10996 /* We use char because int might match the return type of a gcc2
10997 builtin and then its argument prototype would still apply. */
10998 char pthread_self ();
11007 rm -f conftest.
$ac_objext conftest
$ac_exeext
11008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11009 (eval $ac_link) 2>conftest.er1
11011 grep -v '^ *+' conftest.er1
>conftest.err
11013 cat conftest.err
>&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } &&
11016 { ac_try
='test -z "$ac_c_werror_flag"
11017 || test ! -s conftest.err'
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; } &&
11023 { ac_try
='test -s conftest$ac_exeext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_lib_pthread_pthread_self
=yes
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.
$ac_ext >&5
11034 ac_cv_lib_pthread_pthread_self
=no
11036 rm -f conftest.err conftest.
$ac_objext \
11037 conftest
$ac_exeext conftest.
$ac_ext
11038 LIBS
=$ac_check_lib_save_LIBS
11040 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11041 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11042 if test $ac_cv_lib_pthread_pthread_self = yes; then
11043 HAVE_GTK_AND_PTHREAD
=yes
11047 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11048 GTK_LIBS
="$GTK_LIBS -lpthread"
11050 cat >>confdefs.h
<<\_ACEOF
11051 #define HAVE_GTK_AND_PTHREAD 1
11058 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11059 if test x
"${HAVE_X11R5}" = xyes
; then
11060 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11061 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11062 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 cat >conftest.
$ac_ext <<_ACEOF
11068 cat confdefs.h
>>conftest.
$ac_ext
11069 cat >>conftest.
$ac_ext <<_ACEOF
11070 /* end confdefs.h. */
11072 #include <X11/Intrinsic.h>
11073 #include <X11/Xaw/Simple.h>
11082 rm -f conftest.
$ac_objext conftest
$ac_exeext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11084 (eval $ac_link) 2>conftest.er1
11086 grep -v '^ *+' conftest.er1
>conftest.err
11088 cat conftest.err
>&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } &&
11091 { ac_try
='test -z "$ac_c_werror_flag"
11092 || test ! -s conftest.err'
11093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11094 (eval $ac_try) 2>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); }; } &&
11098 { ac_try
='test -s conftest$ac_exeext'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 emacs_cv_x11_version_5_with_xaw
=yes
11106 echo "$as_me: failed program was:" >&5
11107 sed 's/^/| /' conftest.
$ac_ext >&5
11109 emacs_cv_x11_version_5_with_xaw
=no
11111 rm -f conftest.err conftest.
$ac_objext \
11112 conftest
$ac_exeext conftest.
$ac_ext
11115 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11116 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11117 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11118 USE_X_TOOLKIT
=LUCID
11120 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11121 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11129 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11131 if test "${USE_X_TOOLKIT}" != "none"; then
11132 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11133 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11134 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 cat >conftest.
$ac_ext <<_ACEOF
11140 cat confdefs.h
>>conftest.
$ac_ext
11141 cat >>conftest.
$ac_ext <<_ACEOF
11142 /* end confdefs.h. */
11143 #include <X11/Intrinsic.h>
11147 #if XtSpecificationRelease < 6
11155 rm -f conftest.
$ac_objext conftest
$ac_exeext
11156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11157 (eval $ac_link) 2>conftest.er1
11159 grep -v '^ *+' conftest.er1
>conftest.err
11161 cat conftest.err
>&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } &&
11164 { ac_try
='test -z "$ac_c_werror_flag"
11165 || test ! -s conftest.err'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; } &&
11171 { ac_try
='test -s conftest$ac_exeext'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
11177 emacs_cv_x11_toolkit_version_6
=yes
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.
$ac_ext >&5
11182 emacs_cv_x11_toolkit_version_6
=no
11184 rm -f conftest.err conftest.
$ac_objext \
11185 conftest
$ac_exeext conftest.
$ac_ext
11188 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11189 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11190 echo "$as_me:$LINENO: result: 6 or newer" >&5
11191 echo "${ECHO_T}6 or newer" >&6
11193 cat >>confdefs.h
<<\_ACEOF
11194 #define HAVE_X11XTR6 1
11198 echo "$as_me:$LINENO: result: before 6" >&5
11199 echo "${ECHO_T}before 6" >&6
11203 if test x
$HAVE_X11XTR6 = xyes
; then
11204 LIBS
="-lXt -lSM -lICE $LIBS"
11209 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11210 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11211 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11212 echo $ECHO_N "(cached) $ECHO_C" >&6
11214 ac_check_lib_save_LIBS
=$LIBS
11216 cat >conftest.
$ac_ext <<_ACEOF
11219 cat confdefs.h
>>conftest.
$ac_ext
11220 cat >>conftest.
$ac_ext <<_ACEOF
11221 /* end confdefs.h. */
11223 /* Override any gcc2 internal prototype to avoid an error. */
11227 /* We use char because int might match the return type of a gcc2
11228 builtin and then its argument prototype would still apply. */
11229 char XmuConvertStandardSelection ();
11233 XmuConvertStandardSelection ();
11238 rm -f conftest.
$ac_objext conftest
$ac_exeext
11239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11240 (eval $ac_link) 2>conftest.er1
11242 grep -v '^ *+' conftest.er1
>conftest.err
11244 cat conftest.err
>&5
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); } &&
11247 { ac_try
='test -z "$ac_c_werror_flag"
11248 || test ! -s conftest.err'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; } &&
11254 { ac_try
='test -s conftest$ac_exeext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.
$ac_ext >&5
11265 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11267 rm -f conftest.err conftest.
$ac_objext \
11268 conftest
$ac_exeext conftest.
$ac_ext
11269 LIBS
=$ac_check_lib_save_LIBS
11271 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11272 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11273 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11274 cat >>confdefs.h
<<_ACEOF
11275 #define HAVE_LIBXMU 1
11282 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11285 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11286 if test "${HAVE_X11}" = "yes"; then
11287 if test "${USE_X_TOOLKIT}" != "none"; then
11289 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11290 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11291 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11294 ac_check_lib_save_LIBS
=$LIBS
11295 LIBS
="-lXext $LIBS"
11296 cat >conftest.
$ac_ext <<_ACEOF
11299 cat confdefs.h
>>conftest.
$ac_ext
11300 cat >>conftest.
$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11303 /* Override any gcc2 internal prototype to avoid an error. */
11307 /* We use char because int might match the return type of a gcc2
11308 builtin and then its argument prototype would still apply. */
11309 char XShapeQueryExtension ();
11313 XShapeQueryExtension ();
11318 rm -f conftest.
$ac_objext conftest
$ac_exeext
11319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11320 (eval $ac_link) 2>conftest.er1
11322 grep -v '^ *+' conftest.er1
>conftest.err
11324 cat conftest.err
>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
11327 { ac_try
='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try
='test -s conftest$ac_exeext'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.
$ac_ext >&5
11345 ac_cv_lib_Xext_XShapeQueryExtension
=no
11347 rm -f conftest.err conftest.
$ac_objext \
11348 conftest
$ac_exeext conftest.
$ac_ext
11349 LIBS
=$ac_check_lib_save_LIBS
11351 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11352 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11353 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11354 cat >>confdefs.h
<<_ACEOF
11355 #define HAVE_LIBXEXT 1
11358 LIBS
="-lXext $LIBS"
11365 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11366 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11367 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11368 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 cat >conftest.
$ac_ext <<_ACEOF
11374 cat confdefs.h
>>conftest.
$ac_ext
11375 cat >>conftest.
$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11381 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11384 Motif version prior to 2.1.
11390 rm -f conftest.
$ac_objext
11391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11392 (eval $ac_compile) 2>conftest.er1
11394 grep -v '^ *+' conftest.er1
>conftest.err
11396 cat conftest.err
>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try
='test -z "$ac_c_werror_flag"
11400 || test ! -s conftest.err'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try
='test -s conftest.$ac_objext'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 emacs_cv_motif_version_2_1
=yes
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.
$ac_ext >&5
11417 emacs_cv_motif_version_2_1
=no
11419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11421 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11422 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11423 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11424 if test $emacs_cv_motif_version_2_1 = yes; then
11427 cat >>confdefs.h
<<\_ACEOF
11428 #define HAVE_MOTIF_2_1 1
11431 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11432 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11433 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 ac_check_lib_save_LIBS
=$LIBS
11438 cat >conftest.
$ac_ext <<_ACEOF
11441 cat confdefs.h
>>conftest.
$ac_ext
11442 cat >>conftest.
$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11445 /* Override any gcc2 internal prototype to avoid an error. */
11449 /* We use char because int might match the return type of a gcc2
11450 builtin and then its argument prototype would still apply. */
11451 char XpCreateContext ();
11455 XpCreateContext ();
11460 rm -f conftest.
$ac_objext conftest
$ac_exeext
11461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11462 (eval $ac_link) 2>conftest.er1
11464 grep -v '^ *+' conftest.er1
>conftest.err
11466 cat conftest.err
>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } &&
11469 { ac_try
='test -z "$ac_c_werror_flag"
11470 || test ! -s conftest.err'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; } &&
11476 { ac_try
='test -s conftest$ac_exeext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_cv_lib_Xp_XpCreateContext
=yes
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.
$ac_ext >&5
11487 ac_cv_lib_Xp_XpCreateContext
=no
11489 rm -f conftest.err conftest.
$ac_objext \
11490 conftest
$ac_exeext conftest.
$ac_ext
11491 LIBS
=$ac_check_lib_save_LIBS
11493 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11494 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11495 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11499 if test ${HAVE_LIBXP} = yes; then
11501 cat >>confdefs.h
<<\_ACEOF
11502 #define HAVE_LIBXP 1
11507 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11508 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11509 if test "${emacs_cv_lesstif+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 # We put this in CFLAGS temporarily to precede other -I options
11513 # that might be in CFLAGS temporarily.
11514 # We put this in CPPFLAGS where it precedes the other -I options.
11515 OLD_CPPFLAGS
=$CPPFLAGS
11517 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11518 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11519 cat >conftest.
$ac_ext <<_ACEOF
11522 cat confdefs.h
>>conftest.
$ac_ext
11523 cat >>conftest.
$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11525 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11534 rm -f conftest.
$ac_objext
11535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11536 (eval $ac_compile) 2>conftest.er1
11538 grep -v '^ *+' conftest.er1
>conftest.err
11540 cat conftest.err
>&5
11541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542 (exit $ac_status); } &&
11543 { ac_try
='test -z "$ac_c_werror_flag"
11544 || test ! -s conftest.err'
11545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11546 (eval $ac_try) 2>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try
='test -s conftest.$ac_objext'
11551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11552 (eval $ac_try) 2>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); }; }; then
11556 emacs_cv_lesstif
=yes
11558 echo "$as_me: failed program was:" >&5
11559 sed 's/^/| /' conftest.
$ac_ext >&5
11561 emacs_cv_lesstif
=no
11563 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11565 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11566 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11567 if test $emacs_cv_lesstif = yes; then
11568 # Make sure this -I option remains in CPPFLAGS after it is set
11569 # back to REAL_CPPFLAGS.
11570 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11571 # have those other -I options anyway. Ultimately, having this
11572 # directory ultimately in CPPFLAGS will be enough.
11573 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11574 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11577 CPPFLAGS
=$OLD_CPPFLAGS
11582 ### Is -lXaw3d available?
11584 if test "${HAVE_X11}" = "yes"; then
11585 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11586 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11587 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11588 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 cat >conftest.
$ac_ext <<_ACEOF
11594 cat confdefs.h
>>conftest.
$ac_ext
11595 cat >>conftest.
$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 #include <X11/Xaw3d/Scrollbar.h>
11599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11600 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11602 grep -v '^ *+' conftest.er1
>conftest.err
11604 cat conftest.err
>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } >/dev
/null
; then
11607 if test -s conftest.err
; then
11608 ac_cpp_err
=$ac_c_preproc_warn_flag
11609 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11616 if test -z "$ac_cpp_err"; then
11617 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.
$ac_ext >&5
11622 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11624 rm -f conftest.err conftest.
$ac_ext
11626 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11627 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11628 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11629 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11630 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11631 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 ac_check_lib_save_LIBS
=$LIBS
11635 LIBS
="-lXaw3d $LIBS"
11636 cat >conftest.
$ac_ext <<_ACEOF
11639 cat confdefs.h
>>conftest.
$ac_ext
11640 cat >>conftest.
$ac_ext <<_ACEOF
11641 /* end confdefs.h. */
11643 /* Override any gcc2 internal prototype to avoid an error. */
11647 /* We use char because int might match the return type of a gcc2
11648 builtin and then its argument prototype would still apply. */
11649 char XawScrollbarSetThumb ();
11653 XawScrollbarSetThumb ();
11658 rm -f conftest.
$ac_objext conftest
$ac_exeext
11659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11660 (eval $ac_link) 2>conftest.er1
11662 grep -v '^ *+' conftest.er1
>conftest.err
11664 cat conftest.err
>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } &&
11667 { ac_try
='test -z "$ac_c_werror_flag"
11668 || test ! -s conftest.err'
11669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11670 (eval $ac_try) 2>&5
11672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11673 (exit $ac_status); }; } &&
11674 { ac_try
='test -s conftest$ac_exeext'
11675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11676 (eval $ac_try) 2>&5
11678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11679 (exit $ac_status); }; }; then
11680 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.
$ac_ext >&5
11685 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11687 rm -f conftest.err conftest.
$ac_objext \
11688 conftest
$ac_exeext conftest.
$ac_ext
11689 LIBS
=$ac_check_lib_save_LIBS
11691 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11692 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11693 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11700 if test "${HAVE_XAW3D}" = "yes"; then
11702 cat >>confdefs.h
<<\_ACEOF
11703 #define HAVE_XAW3D 1
11712 USE_TOOLKIT_SCROLL_BARS
=no
11713 if test "${with_toolkit_scroll_bars}" != "no"; then
11714 if test "${USE_X_TOOLKIT}" != "none"; then
11715 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11716 cat >>confdefs.h
<<\_ACEOF
11717 #define USE_TOOLKIT_SCROLL_BARS 1
11721 USE_TOOLKIT_SCROLL_BARS
=yes
11722 elif test "${HAVE_XAW3D}" = "yes"; then
11723 cat >>confdefs.h
<<\_ACEOF
11724 #define USE_TOOLKIT_SCROLL_BARS 1
11727 USE_TOOLKIT_SCROLL_BARS
=yes
11729 elif test "${HAVE_GTK}" = "yes"; then
11730 cat >>confdefs.h
<<\_ACEOF
11731 #define USE_TOOLKIT_SCROLL_BARS 1
11734 USE_TOOLKIT_SCROLL_BARS
=yes
11735 elif test "${HAVE_CARBON}" = "yes"; then
11736 cat >>confdefs.h
<<\_ACEOF
11737 #define USE_TOOLKIT_SCROLL_BARS 1
11740 USE_TOOLKIT_SCROLL_BARS
=yes
11744 cat >conftest.
$ac_ext <<_ACEOF
11747 cat confdefs.h
>>conftest.
$ac_ext
11748 cat >>conftest.
$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11751 #include <X11/Xlib.h>
11752 #include <X11/Xresource.h>
11761 rm -f conftest.
$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>conftest.er1
11765 grep -v '^ *+' conftest.er1
>conftest.err
11767 cat conftest.err
>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try
='test -z "$ac_c_werror_flag"
11771 || test ! -s conftest.err'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try
='test -s conftest.$ac_objext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11785 cat >>confdefs.h
<<\_ACEOF
11790 echo "$as_me: failed program was:" >&5
11791 sed 's/^/| /' conftest.
$ac_ext >&5
11795 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11798 if test "${with_xim}" != "no"; then
11800 cat >>confdefs.h
<<\_ACEOF
11807 if test "${HAVE_XIM}" != "no"; then
11808 late_CFLAGS
=$CFLAGS
11809 if test "$GCC" = yes; then
11810 CFLAGS
="$CFLAGS --pedantic-errors"
11812 cat >conftest.
$ac_ext <<_ACEOF
11815 cat confdefs.h
>>conftest.
$ac_ext
11816 cat >>conftest.
$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11819 #include <X11/Xlib.h>
11820 #include <X11/Xresource.h>
11829 XPointer *client_data;
11831 /* If we're not using GCC, it's probably not XFree86, and this is
11832 probably right, but we can't use something like --pedantic-errors. */
11833 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11834 char*, XIMProc, XPointer*);
11836 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11842 rm -f conftest.
$ac_objext
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>conftest.er1
11846 grep -v '^ *+' conftest.er1
>conftest.err
11848 cat conftest.err
>&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); } &&
11851 { ac_try
='test -z "$ac_c_werror_flag"
11852 || test ! -s conftest.err'
11853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11854 (eval $ac_try) 2>&5
11856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857 (exit $ac_status); }; } &&
11858 { ac_try
='test -s conftest.$ac_objext'
11859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860 (eval $ac_try) 2>&5
11862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863 (exit $ac_status); }; }; then
11864 emacs_cv_arg6_star
=yes
11866 echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.
$ac_ext >&5
11870 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11872 if test "$emacs_cv_arg6_star" = yes; then
11873 cat >>confdefs.h
<<\_ACEOF
11874 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11878 cat >>confdefs.h
<<\_ACEOF
11879 #define XRegisterIMInstantiateCallback_arg6 XPointer
11883 CFLAGS
=$late_CFLAGS
11886 ### For font-backend
11887 if test "${USE_FONT_BACKEND}" = "yes"; then
11890 cat >>confdefs.h
<<\_ACEOF
11891 #define USE_FONT_BACKEND 1
11895 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
11897 if test "${HAVE_X11}" = "yes"; then
11898 if test "x${with_freetype}" = "xno"; then
11901 if test "x${with_xft}" != "xno"; then
11903 if test "X${with_pkg_config_prog}" != X
; then
11904 PKG_CONFIG
="${with_pkg_config_prog}"
11910 if test -z "$PKG_CONFIG"; then
11911 # Extract the first word of "pkg-config", so it can be a program name with args.
11912 set dummy pkg-config
; ac_word
=$2
11913 echo "$as_me:$LINENO: checking for $ac_word" >&5
11914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11915 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 case $PKG_CONFIG in
11920 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11923 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11924 for as_dir
in $PATH
11927 test -z "$as_dir" && as_dir
=.
11928 for ac_exec_ext
in '' $ac_executable_extensions; do
11929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11930 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11937 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11941 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11943 if test -n "$PKG_CONFIG"; then
11944 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11945 echo "${ECHO_T}$PKG_CONFIG" >&6
11947 echo "$as_me:$LINENO: result: no" >&5
11948 echo "${ECHO_T}no" >&6
11953 if test "$PKG_CONFIG" = "no" ; then
11954 echo "*** The pkg-config script could not be found. Make sure it is"
11955 echo "*** in your path, or give the full path to pkg-config with"
11956 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
11957 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11959 PKG_CONFIG_MIN_VERSION
=0.9.0
11960 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11961 echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11962 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6
11964 if $PKG_CONFIG --exists "xft >= 0.13.0" ; then
11965 echo "$as_me:$LINENO: result: yes" >&5
11966 echo "${ECHO_T}yes" >&6
11969 echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11970 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6
11971 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
11972 echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11973 echo "${ECHO_T}$XFT_CFLAGS" >&6
11975 echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11976 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6
11977 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"`
11978 echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11979 echo "${ECHO_T}$XFT_LIBS" >&6
11983 ## If we have a custom action on failure, don't print errors, but
11984 ## do set a variable so people can do so.
11985 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11992 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11993 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11997 if test $succeeded = yes; then
12003 if test "$HAVE_XFT" != no
; then
12004 OLD_CPPFLAGS
="$CPPFLAGS"
12005 OLD_CFLAGS
="$CFLAGS"
12007 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12008 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12009 LIBS
="$XFT_LIBS $LIBS"
12010 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12011 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12012 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
12013 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12016 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12017 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
12019 # Is the header compilable?
12020 echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12021 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6
12022 cat >conftest.
$ac_ext <<_ACEOF
12025 cat confdefs.h
>>conftest.
$ac_ext
12026 cat >>conftest.
$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12028 $ac_includes_default
12029 #include <X11/Xft/Xft.h>
12031 rm -f conftest.
$ac_objext
12032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12033 (eval $ac_compile) 2>conftest.er1
12035 grep -v '^ *+' conftest.er1
>conftest.err
12037 cat conftest.err
>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } &&
12040 { ac_try
='test -z "$ac_c_werror_flag"
12041 || test ! -s conftest.err'
12042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12043 (eval $ac_try) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try
='test -s conftest.$ac_objext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 ac_header_compiler
=yes
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.
$ac_ext >&5
12058 ac_header_compiler
=no
12060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12062 echo "${ECHO_T}$ac_header_compiler" >&6
12064 # Is the header present?
12065 echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12066 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6
12067 cat >conftest.
$ac_ext <<_ACEOF
12070 cat confdefs.h
>>conftest.
$ac_ext
12071 cat >>conftest.
$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 #include <X11/Xft/Xft.h>
12075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12076 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12078 grep -v '^ *+' conftest.er1
>conftest.err
12080 cat conftest.err
>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); } >/dev
/null
; then
12083 if test -s conftest.err
; then
12084 ac_cpp_err
=$ac_c_preproc_warn_flag
12085 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12092 if test -z "$ac_cpp_err"; then
12093 ac_header_preproc
=yes
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.
$ac_ext >&5
12098 ac_header_preproc
=no
12100 rm -f conftest.err conftest.
$ac_ext
12101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12102 echo "${ECHO_T}$ac_header_preproc" >&6
12104 # So? What about this header?
12105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12107 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12108 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12110 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12111 ac_header_preproc
=yes
12114 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12115 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12117 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12119 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12121 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12122 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12123 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12124 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12125 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12128 ## ------------------------------------------ ##
12129 ## Report this to the AC_PACKAGE_NAME lists. ##
12130 ## ------------------------------------------ ##
12133 sed "s/^/$as_me: WARNING: /" >&2
12136 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12137 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
12138 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12141 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12143 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12144 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
12147 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12148 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12149 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
12150 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 ac_check_lib_save_LIBS
=$LIBS
12154 LIBS
="-lXft $XFT_LIBS $LIBS"
12155 cat >conftest.
$ac_ext <<_ACEOF
12158 cat confdefs.h
>>conftest.
$ac_ext
12159 cat >>conftest.
$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12162 /* Override any gcc2 internal prototype to avoid an error. */
12166 /* We use char because int might match the return type of a gcc2
12167 builtin and then its argument prototype would still apply. */
12168 char XftFontOpen ();
12177 rm -f conftest.
$ac_objext conftest
$ac_exeext
12178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179 (eval $ac_link) 2>conftest.er1
12181 grep -v '^ *+' conftest.er1
>conftest.err
12183 cat conftest.err
>&5
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); } &&
12186 { ac_try
='test -z "$ac_c_werror_flag"
12187 || test ! -s conftest.err'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; } &&
12193 { ac_try
='test -s conftest$ac_exeext'
12194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12195 (eval $ac_try) 2>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); }; }; then
12199 ac_cv_lib_Xft_XftFontOpen
=yes
12201 echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.
$ac_ext >&5
12204 ac_cv_lib_Xft_XftFontOpen
=no
12206 rm -f conftest.err conftest.
$ac_objext \
12207 conftest
$ac_exeext conftest.
$ac_ext
12208 LIBS
=$ac_check_lib_save_LIBS
12210 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12211 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
12212 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12220 if test "${HAVE_XFT}" = "yes"; then
12222 cat >>confdefs.h
<<\_ACEOF
12227 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12229 CFLAGS
="$OLD_CPPFLAGS"
12230 CFLAGS
="$OLD_CFLAGS"
12238 ### Use -lfreetype if available, unless `--with-freetype=no'.
12239 if test "${HAVE_XFT}" = "yes"; then
12241 elif test "x${with_freetype}" != "xno"; then
12242 if test "X${with_pkg_config_prog}" != X
; then
12243 PKG_CONFIG
="${with_pkg_config_prog}"
12249 if test -z "$PKG_CONFIG"; then
12250 # Extract the first word of "pkg-config", so it can be a program name with args.
12251 set dummy pkg-config
; ac_word
=$2
12252 echo "$as_me:$LINENO: checking for $ac_word" >&5
12253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12254 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12257 case $PKG_CONFIG in
12259 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12263 for as_dir
in $PATH
12266 test -z "$as_dir" && as_dir
=.
12267 for ac_exec_ext
in '' $ac_executable_extensions; do
12268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12269 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12280 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12282 if test -n "$PKG_CONFIG"; then
12283 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12284 echo "${ECHO_T}$PKG_CONFIG" >&6
12286 echo "$as_me:$LINENO: result: no" >&5
12287 echo "${ECHO_T}no" >&6
12292 if test "$PKG_CONFIG" = "no" ; then
12293 echo "*** The pkg-config script could not be found. Make sure it is"
12294 echo "*** in your path, or give the full path to pkg-config with"
12295 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12296 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12298 PKG_CONFIG_MIN_VERSION
=0.9.0
12299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12300 echo "$as_me:$LINENO: checking for freetype2" >&5
12301 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
12303 if $PKG_CONFIG --exists "freetype2" ; then
12304 echo "$as_me:$LINENO: result: yes" >&5
12305 echo "${ECHO_T}yes" >&6
12308 echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12309 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6
12310 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"`
12311 echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12312 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6
12314 echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12315 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6
12316 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"`
12317 echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12318 echo "${ECHO_T}$FREETYPE_LIBS" >&6
12322 ## If we have a custom action on failure, don't print errors, but
12323 ## do set a variable so people can do so.
12324 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12331 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12332 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12336 if test $succeeded = yes; then
12342 if test "${HAVE_FREETYPE}" = "yes"; then
12346 if test -z "$PKG_CONFIG"; then
12347 # Extract the first word of "pkg-config", so it can be a program name with args.
12348 set dummy pkg-config
; ac_word
=$2
12349 echo "$as_me:$LINENO: checking for $ac_word" >&5
12350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12351 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12352 echo $ECHO_N "(cached) $ECHO_C" >&6
12354 case $PKG_CONFIG in
12356 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12360 for as_dir
in $PATH
12363 test -z "$as_dir" && as_dir
=.
12364 for ac_exec_ext
in '' $ac_executable_extensions; do
12365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12366 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12373 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12377 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12379 if test -n "$PKG_CONFIG"; then
12380 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12381 echo "${ECHO_T}$PKG_CONFIG" >&6
12383 echo "$as_me:$LINENO: result: no" >&5
12384 echo "${ECHO_T}no" >&6
12389 if test "$PKG_CONFIG" = "no" ; then
12390 echo "*** The pkg-config script could not be found. Make sure it is"
12391 echo "*** in your path, or give the full path to pkg-config with"
12392 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12393 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12395 PKG_CONFIG_MIN_VERSION
=0.9.0
12396 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12397 echo "$as_me:$LINENO: checking for fontconfig" >&5
12398 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6
12400 if $PKG_CONFIG --exists "fontconfig" ; then
12401 echo "$as_me:$LINENO: result: yes" >&5
12402 echo "${ECHO_T}yes" >&6
12405 echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12406 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6
12407 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"`
12408 echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12409 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6
12411 echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12412 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6
12413 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"`
12414 echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12415 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6
12417 FONTCONFIG_CFLAGS
=""
12419 ## If we have a custom action on failure, don't print errors, but
12420 ## do set a variable so people can do so.
12421 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12428 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12429 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12433 if test $succeeded = yes; then
12439 if test "${HAVE_FC}" = "no"; then
12444 if test "${HAVE_FREETYPE}" = "yes"; then
12446 cat >>confdefs.h
<<\_ACEOF
12447 #define HAVE_FREETYPE 1
12450 # Extract the first word of "libotf-config", so it can be a program name with args.
12451 set dummy libotf-config
; ac_word
=$2
12452 echo "$as_me:$LINENO: checking for $ac_word" >&5
12453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12454 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 if test -n "$HAVE_LIBOTF"; then
12458 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
12460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12461 for as_dir
in $PATH
12464 test -z "$as_dir" && as_dir
=.
12465 for ac_exec_ext
in '' $ac_executable_extensions; do
12466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12467 ac_cv_prog_HAVE_LIBOTF
="yes"
12468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
12477 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
12478 if test -n "$HAVE_LIBOTF"; then
12479 echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
12480 echo "${ECHO_T}$HAVE_LIBOTF" >&6
12482 echo "$as_me:$LINENO: result: no" >&5
12483 echo "${ECHO_T}no" >&6
12486 if test "${HAVE_LIBOTF}" = "yes"; then
12488 cat >>confdefs.h
<<\_ACEOF
12489 #define HAVE_LIBOTF 1
12492 LIBOTF_CFLAGS
=`libotf-config --cflags`
12493 LIBOTF_LIBS
=`libotf-config --libs`
12505 ### Use -lXpm if available, unless `--with-xpm=no'.
12507 if test "${HAVE_X11}" = "yes"; then
12508 if test "${with_xpm}" != "no"; then
12509 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12510 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12511 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12512 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12516 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12518 # Is the header compilable?
12519 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12520 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
12521 cat >conftest.
$ac_ext <<_ACEOF
12524 cat confdefs.h
>>conftest.
$ac_ext
12525 cat >>conftest.
$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 $ac_includes_default
12528 #include <X11/xpm.h>
12530 rm -f conftest.
$ac_objext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12532 (eval $ac_compile) 2>conftest.er1
12534 grep -v '^ *+' conftest.er1
>conftest.err
12536 cat conftest.err
>&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try
='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try
='test -s conftest.$ac_objext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 ac_header_compiler
=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.
$ac_ext >&5
12557 ac_header_compiler
=no
12559 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12561 echo "${ECHO_T}$ac_header_compiler" >&6
12563 # Is the header present?
12564 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12565 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
12566 cat >conftest.
$ac_ext <<_ACEOF
12569 cat confdefs.h
>>conftest.
$ac_ext
12570 cat >>conftest.
$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 #include <X11/xpm.h>
12574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12575 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12577 grep -v '^ *+' conftest.er1
>conftest.err
12579 cat conftest.err
>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } >/dev
/null
; then
12582 if test -s conftest.err
; then
12583 ac_cpp_err
=$ac_c_preproc_warn_flag
12584 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12591 if test -z "$ac_cpp_err"; then
12592 ac_header_preproc
=yes
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.
$ac_ext >&5
12597 ac_header_preproc
=no
12599 rm -f conftest.err conftest.
$ac_ext
12600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12601 echo "${ECHO_T}$ac_header_preproc" >&6
12603 # So? What about this header?
12604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12606 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12607 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12609 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12610 ac_header_preproc
=yes
12613 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12614 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12615 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12616 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12617 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12618 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12620 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12621 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12622 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12623 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12624 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12627 ## ------------------------------------------ ##
12628 ## Report this to the AC_PACKAGE_NAME lists. ##
12629 ## ------------------------------------------ ##
12632 sed "s/^/$as_me: WARNING: /" >&2
12635 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12636 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12637 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12638 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12642 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12643 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12646 if test $ac_cv_header_X11_xpm_h = yes; then
12647 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12648 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12649 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12650 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 ac_check_lib_save_LIBS
=$LIBS
12653 LIBS
="-lXpm -lX11 $LIBS"
12654 cat >conftest.
$ac_ext <<_ACEOF
12657 cat confdefs.h
>>conftest.
$ac_ext
12658 cat >>conftest.
$ac_ext <<_ACEOF
12659 /* end confdefs.h. */
12661 /* Override any gcc2 internal prototype to avoid an error. */
12665 /* We use char because int might match the return type of a gcc2
12666 builtin and then its argument prototype would still apply. */
12667 char XpmReadFileToPixmap ();
12671 XpmReadFileToPixmap ();
12676 rm -f conftest.
$ac_objext conftest
$ac_exeext
12677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12678 (eval $ac_link) 2>conftest.er1
12680 grep -v '^ *+' conftest.er1
>conftest.err
12682 cat conftest.err
>&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } &&
12685 { ac_try
='test -z "$ac_c_werror_flag"
12686 || test ! -s conftest.err'
12687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12688 (eval $ac_try) 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); }; } &&
12692 { ac_try
='test -s conftest$ac_exeext'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.
$ac_ext >&5
12703 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12705 rm -f conftest.err conftest.
$ac_objext \
12706 conftest
$ac_exeext conftest.
$ac_ext
12707 LIBS
=$ac_check_lib_save_LIBS
12709 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12710 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12711 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12718 if test "${HAVE_XPM}" = "yes"; then
12719 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12720 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12721 cat >conftest.
$ac_ext <<_ACEOF
12724 cat confdefs.h
>>conftest.
$ac_ext
12725 cat >>conftest.
$ac_ext <<_ACEOF
12726 /* end confdefs.h. */
12727 #include "X11/xpm.h"
12728 #ifndef XpmReturnAllocPixels
12729 no_return_alloc_pixels
12733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12734 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
12742 if test "${HAVE_XPM}" = "yes"; then
12743 echo "$as_me:$LINENO: result: yes" >&5
12744 echo "${ECHO_T}yes" >&6
12746 echo "$as_me:$LINENO: result: no" >&5
12747 echo "${ECHO_T}no" >&6
12752 if test "${HAVE_XPM}" = "yes"; then
12754 cat >>confdefs.h
<<\_ACEOF
12761 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12763 if test "${HAVE_X11}" = "yes"; then
12764 if test "${with_jpeg}" != "no"; then
12765 if test "${ac_cv_header_jerror_h+set}" = set; then
12766 echo "$as_me:$LINENO: checking for jerror.h" >&5
12767 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12768 if test "${ac_cv_header_jerror_h+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12772 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12774 # Is the header compilable?
12775 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12776 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12777 cat >conftest.
$ac_ext <<_ACEOF
12780 cat confdefs.h
>>conftest.
$ac_ext
12781 cat >>conftest.
$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 $ac_includes_default
12784 #include <jerror.h>
12786 rm -f conftest.
$ac_objext
12787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12788 (eval $ac_compile) 2>conftest.er1
12790 grep -v '^ *+' conftest.er1
>conftest.err
12792 cat conftest.err
>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); } &&
12795 { ac_try
='test -z "$ac_c_werror_flag"
12796 || test ! -s conftest.err'
12797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12798 (eval $ac_try) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; } &&
12802 { ac_try
='test -s conftest.$ac_objext'
12803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804 (eval $ac_try) 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 ac_header_compiler
=yes
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.
$ac_ext >&5
12813 ac_header_compiler
=no
12815 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12817 echo "${ECHO_T}$ac_header_compiler" >&6
12819 # Is the header present?
12820 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12821 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12822 cat >conftest.
$ac_ext <<_ACEOF
12825 cat confdefs.h
>>conftest.
$ac_ext
12826 cat >>conftest.
$ac_ext <<_ACEOF
12827 /* end confdefs.h. */
12828 #include <jerror.h>
12830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12831 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12833 grep -v '^ *+' conftest.er1
>conftest.err
12835 cat conftest.err
>&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } >/dev
/null
; then
12838 if test -s conftest.err
; then
12839 ac_cpp_err
=$ac_c_preproc_warn_flag
12840 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12847 if test -z "$ac_cpp_err"; then
12848 ac_header_preproc
=yes
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.
$ac_ext >&5
12853 ac_header_preproc
=no
12855 rm -f conftest.err conftest.
$ac_ext
12856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12857 echo "${ECHO_T}$ac_header_preproc" >&6
12859 # So? What about this header?
12860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12862 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12863 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12864 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12865 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12866 ac_header_preproc
=yes
12869 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12870 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12871 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12872 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12873 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12874 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12875 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12876 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12877 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12878 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12879 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12880 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12883 ## ------------------------------------------ ##
12884 ## Report this to the AC_PACKAGE_NAME lists. ##
12885 ## ------------------------------------------ ##
12888 sed "s/^/$as_me: WARNING: /" >&2
12891 echo "$as_me:$LINENO: checking for jerror.h" >&5
12892 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12893 if test "${ac_cv_header_jerror_h+set}" = set; then
12894 echo $ECHO_N "(cached) $ECHO_C" >&6
12896 ac_cv_header_jerror_h
=$ac_header_preproc
12898 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12899 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12902 if test $ac_cv_header_jerror_h = yes; then
12903 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12904 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12905 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12906 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 ac_check_lib_save_LIBS
=$LIBS
12909 LIBS
="-ljpeg $LIBS"
12910 cat >conftest.
$ac_ext <<_ACEOF
12913 cat confdefs.h
>>conftest.
$ac_ext
12914 cat >>conftest.
$ac_ext <<_ACEOF
12915 /* end confdefs.h. */
12917 /* Override any gcc2 internal prototype to avoid an error. */
12921 /* We use char because int might match the return type of a gcc2
12922 builtin and then its argument prototype would still apply. */
12923 char jpeg_destroy_compress ();
12927 jpeg_destroy_compress ();
12932 rm -f conftest.
$ac_objext conftest
$ac_exeext
12933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12934 (eval $ac_link) 2>conftest.er1
12936 grep -v '^ *+' conftest.er1
>conftest.err
12938 cat conftest.err
>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try
='test -z "$ac_c_werror_flag"
12942 || test ! -s conftest.err'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; } &&
12948 { ac_try
='test -s conftest$ac_exeext'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12954 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.
$ac_ext >&5
12959 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12961 rm -f conftest.err conftest.
$ac_objext \
12962 conftest
$ac_exeext conftest.
$ac_ext
12963 LIBS
=$ac_check_lib_save_LIBS
12965 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12966 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12967 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12977 if test "${HAVE_JPEG}" = "yes"; then
12978 cat >>confdefs.h
<<\_ACEOF
12979 #define HAVE_JPEG 1
12982 cat >conftest.
$ac_ext <<_ACEOF
12985 cat confdefs.h
>>conftest.
$ac_ext
12986 cat >>conftest.
$ac_ext <<_ACEOF
12987 /* end confdefs.h. */
12988 #include <jpeglib.h>
12989 version=JPEG_LIB_VERSION
12992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12993 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12994 cat >>confdefs.h
<<\_ACEOF
12995 #define HAVE_JPEG 1
12999 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13000 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13008 ### Use -lpng if available, unless `--with-png=no'.
13010 if test "${HAVE_X11}" = "yes"; then
13011 if test "${with_png}" != "no"; then
13012 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13013 # in /usr/include/libpng.
13016 for ac_header
in png.h libpng
/png.h
13018 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13020 echo "$as_me:$LINENO: checking for $ac_header" >&5
13021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13023 echo $ECHO_N "(cached) $ECHO_C" >&6
13025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13028 # Is the header compilable?
13029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13031 cat >conftest.
$ac_ext <<_ACEOF
13034 cat confdefs.h
>>conftest.
$ac_ext
13035 cat >>conftest.
$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 $ac_includes_default
13038 #include <$ac_header>
13040 rm -f conftest.
$ac_objext
13041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13042 (eval $ac_compile) 2>conftest.er1
13044 grep -v '^ *+' conftest.er1
>conftest.err
13046 cat conftest.err
>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try
='test -z "$ac_c_werror_flag"
13050 || test ! -s conftest.err'
13051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13052 (eval $ac_try) 2>&5
13054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13055 (exit $ac_status); }; } &&
13056 { ac_try
='test -s conftest.$ac_objext'
13057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13058 (eval $ac_try) 2>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); }; }; then
13062 ac_header_compiler
=yes
13064 echo "$as_me: failed program was:" >&5
13065 sed 's/^/| /' conftest.
$ac_ext >&5
13067 ac_header_compiler
=no
13069 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13071 echo "${ECHO_T}$ac_header_compiler" >&6
13073 # Is the header present?
13074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13076 cat >conftest.
$ac_ext <<_ACEOF
13079 cat confdefs.h
>>conftest.
$ac_ext
13080 cat >>conftest.
$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 #include <$ac_header>
13084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13085 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13087 grep -v '^ *+' conftest.er1
>conftest.err
13089 cat conftest.err
>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } >/dev
/null
; then
13092 if test -s conftest.err
; then
13093 ac_cpp_err
=$ac_c_preproc_warn_flag
13094 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13101 if test -z "$ac_cpp_err"; then
13102 ac_header_preproc
=yes
13104 echo "$as_me: failed program was:" >&5
13105 sed 's/^/| /' conftest.
$ac_ext >&5
13107 ac_header_preproc
=no
13109 rm -f conftest.err conftest.
$ac_ext
13110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13111 echo "${ECHO_T}$ac_header_preproc" >&6
13113 # So? What about this header?
13114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13120 ac_header_preproc
=yes
13123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13137 ## ------------------------------------------ ##
13138 ## Report this to the AC_PACKAGE_NAME lists. ##
13139 ## ------------------------------------------ ##
13142 sed "s/^/$as_me: WARNING: /" >&2
13145 echo "$as_me:$LINENO: checking for $ac_header" >&5
13146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13148 echo $ECHO_N "(cached) $ECHO_C" >&6
13150 eval "$as_ac_Header=\$ac_header_preproc"
13152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13157 cat >>confdefs.h
<<_ACEOF
13158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13165 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13166 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13167 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
13168 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13169 echo $ECHO_N "(cached) $ECHO_C" >&6
13171 ac_check_lib_save_LIBS
=$LIBS
13172 LIBS
="-lpng -lz -lm $LIBS"
13173 cat >conftest.
$ac_ext <<_ACEOF
13176 cat confdefs.h
>>conftest.
$ac_ext
13177 cat >>conftest.
$ac_ext <<_ACEOF
13178 /* end confdefs.h. */
13180 /* Override any gcc2 internal prototype to avoid an error. */
13184 /* We use char because int might match the return type of a gcc2
13185 builtin and then its argument prototype would still apply. */
13186 char png_get_channels ();
13190 png_get_channels ();
13195 rm -f conftest.
$ac_objext conftest
$ac_exeext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13197 (eval $ac_link) 2>conftest.er1
13199 grep -v '^ *+' conftest.er1
>conftest.err
13201 cat conftest.err
>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try
='test -z "$ac_c_werror_flag"
13205 || test ! -s conftest.err'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; } &&
13211 { ac_try
='test -s conftest$ac_exeext'
13212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13213 (eval $ac_try) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); }; }; then
13217 ac_cv_lib_png_png_get_channels
=yes
13219 echo "$as_me: failed program was:" >&5
13220 sed 's/^/| /' conftest.
$ac_ext >&5
13222 ac_cv_lib_png_png_get_channels
=no
13224 rm -f conftest.err conftest.
$ac_objext \
13225 conftest
$ac_exeext conftest.
$ac_ext
13226 LIBS
=$ac_check_lib_save_LIBS
13228 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13229 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
13230 if test $ac_cv_lib_png_png_get_channels = yes; then
13237 if test "${HAVE_PNG}" = "yes"; then
13239 cat >>confdefs.h
<<\_ACEOF
13246 ### Use -ltiff if available, unless `--with-tiff=no'.
13248 if test "${HAVE_X11}" = "yes"; then
13249 if test "${with_tiff}" != "no"; then
13250 if test "${ac_cv_header_tiffio_h+set}" = set; then
13251 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13252 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13253 if test "${ac_cv_header_tiffio_h+set}" = set; then
13254 echo $ECHO_N "(cached) $ECHO_C" >&6
13256 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13257 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13259 # Is the header compilable?
13260 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13261 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
13262 cat >conftest.
$ac_ext <<_ACEOF
13265 cat confdefs.h
>>conftest.
$ac_ext
13266 cat >>conftest.
$ac_ext <<_ACEOF
13267 /* end confdefs.h. */
13268 $ac_includes_default
13269 #include <tiffio.h>
13271 rm -f conftest.
$ac_objext
13272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13273 (eval $ac_compile) 2>conftest.er1
13275 grep -v '^ *+' conftest.er1
>conftest.err
13277 cat conftest.err
>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
13280 { ac_try
='test -z "$ac_c_werror_flag"
13281 || test ! -s conftest.err'
13282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283 (eval $ac_try) 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); }; } &&
13287 { ac_try
='test -s conftest.$ac_objext'
13288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13289 (eval $ac_try) 2>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; }; then
13293 ac_header_compiler
=yes
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.
$ac_ext >&5
13298 ac_header_compiler
=no
13300 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13302 echo "${ECHO_T}$ac_header_compiler" >&6
13304 # Is the header present?
13305 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13306 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
13307 cat >conftest.
$ac_ext <<_ACEOF
13310 cat confdefs.h
>>conftest.
$ac_ext
13311 cat >>conftest.
$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13313 #include <tiffio.h>
13315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13316 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13318 grep -v '^ *+' conftest.er1
>conftest.err
13320 cat conftest.err
>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } >/dev
/null
; then
13323 if test -s conftest.err
; then
13324 ac_cpp_err
=$ac_c_preproc_warn_flag
13325 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13332 if test -z "$ac_cpp_err"; then
13333 ac_header_preproc
=yes
13335 echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.
$ac_ext >&5
13338 ac_header_preproc
=no
13340 rm -f conftest.err conftest.
$ac_ext
13341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13342 echo "${ECHO_T}$ac_header_preproc" >&6
13344 # So? What about this header?
13345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13347 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13348 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13349 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13350 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13351 ac_header_preproc
=yes
13354 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13355 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13356 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13357 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13358 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13359 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13360 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13361 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13362 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13363 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13364 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13365 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13368 ## ------------------------------------------ ##
13369 ## Report this to the AC_PACKAGE_NAME lists. ##
13370 ## ------------------------------------------ ##
13373 sed "s/^/$as_me: WARNING: /" >&2
13376 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13377 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13378 if test "${ac_cv_header_tiffio_h+set}" = set; then
13379 echo $ECHO_N "(cached) $ECHO_C" >&6
13381 ac_cv_header_tiffio_h
=$ac_header_preproc
13383 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13384 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13387 if test $ac_cv_header_tiffio_h = yes; then
13389 # At least one tiff package requires the jpeg library.
13390 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13391 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13392 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
13393 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13396 ac_check_lib_save_LIBS
=$LIBS
13397 LIBS
="-ltiff $tifflibs $LIBS"
13398 cat >conftest.
$ac_ext <<_ACEOF
13401 cat confdefs.h
>>conftest.
$ac_ext
13402 cat >>conftest.
$ac_ext <<_ACEOF
13403 /* end confdefs.h. */
13405 /* Override any gcc2 internal prototype to avoid an error. */
13409 /* We use char because int might match the return type of a gcc2
13410 builtin and then its argument prototype would still apply. */
13411 char TIFFGetVersion ();
13420 rm -f conftest.
$ac_objext conftest
$ac_exeext
13421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13422 (eval $ac_link) 2>conftest.er1
13424 grep -v '^ *+' conftest.er1
>conftest.err
13426 cat conftest.err
>&5
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); } &&
13429 { ac_try
='test -z "$ac_c_werror_flag"
13430 || test ! -s conftest.err'
13431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13432 (eval $ac_try) 2>&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); }; } &&
13436 { ac_try
='test -s conftest$ac_exeext'
13437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13438 (eval $ac_try) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_cv_lib_tiff_TIFFGetVersion
=yes
13444 echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.
$ac_ext >&5
13447 ac_cv_lib_tiff_TIFFGetVersion
=no
13449 rm -f conftest.err conftest.
$ac_objext \
13450 conftest
$ac_exeext conftest.
$ac_ext
13451 LIBS
=$ac_check_lib_save_LIBS
13453 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13454 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
13455 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13464 if test "${HAVE_TIFF}" = "yes"; then
13466 cat >>confdefs.h
<<\_ACEOF
13467 #define HAVE_TIFF 1
13473 ### Use -lgif if available, unless `--with-gif=no'.
13475 if test "${HAVE_X11}" = "yes"; then
13476 if test "${with_gif}" != "no"; then
13477 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13478 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13479 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13480 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13484 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13486 # Is the header compilable?
13487 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13488 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
13489 cat >conftest.
$ac_ext <<_ACEOF
13492 cat confdefs.h
>>conftest.
$ac_ext
13493 cat >>conftest.
$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 $ac_includes_default
13496 #include <gif_lib.h>
13498 rm -f conftest.
$ac_objext
13499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13500 (eval $ac_compile) 2>conftest.er1
13502 grep -v '^ *+' conftest.er1
>conftest.err
13504 cat conftest.err
>&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } &&
13507 { ac_try
='test -z "$ac_c_werror_flag"
13508 || test ! -s conftest.err'
13509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13510 (eval $ac_try) 2>&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); }; } &&
13514 { ac_try
='test -s conftest.$ac_objext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 ac_header_compiler
=yes
13522 echo "$as_me: failed program was:" >&5
13523 sed 's/^/| /' conftest.
$ac_ext >&5
13525 ac_header_compiler
=no
13527 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13528 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13529 echo "${ECHO_T}$ac_header_compiler" >&6
13531 # Is the header present?
13532 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13533 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
13534 cat >conftest.
$ac_ext <<_ACEOF
13537 cat confdefs.h
>>conftest.
$ac_ext
13538 cat >>conftest.
$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13540 #include <gif_lib.h>
13542 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13543 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13545 grep -v '^ *+' conftest.er1
>conftest.err
13547 cat conftest.err
>&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } >/dev
/null
; then
13550 if test -s conftest.err
; then
13551 ac_cpp_err
=$ac_c_preproc_warn_flag
13552 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13559 if test -z "$ac_cpp_err"; then
13560 ac_header_preproc
=yes
13562 echo "$as_me: failed program was:" >&5
13563 sed 's/^/| /' conftest.
$ac_ext >&5
13565 ac_header_preproc
=no
13567 rm -f conftest.err conftest.
$ac_ext
13568 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13569 echo "${ECHO_T}$ac_header_preproc" >&6
13571 # So? What about this header?
13572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13574 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13575 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13576 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13577 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13578 ac_header_preproc
=yes
13581 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13582 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13583 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13584 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13585 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13586 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13587 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13588 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13589 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13590 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13591 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13592 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13595 ## ------------------------------------------ ##
13596 ## Report this to the AC_PACKAGE_NAME lists. ##
13597 ## ------------------------------------------ ##
13600 sed "s/^/$as_me: WARNING: /" >&2
13603 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13604 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13605 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13608 ac_cv_header_gif_lib_h
=$ac_header_preproc
13610 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13611 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13614 if test $ac_cv_header_gif_lib_h = yes; then
13615 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13616 # Earlier versions can crash Emacs.
13617 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13618 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
13619 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13620 echo $ECHO_N "(cached) $ECHO_C" >&6
13622 ac_check_lib_save_LIBS
=$LIBS
13623 LIBS
="-lungif $LIBS"
13624 cat >conftest.
$ac_ext <<_ACEOF
13627 cat confdefs.h
>>conftest.
$ac_ext
13628 cat >>conftest.
$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13631 /* Override any gcc2 internal prototype to avoid an error. */
13635 /* We use char because int might match the return type of a gcc2
13636 builtin and then its argument prototype would still apply. */
13637 char EGifPutExtensionLast ();
13641 EGifPutExtensionLast ();
13646 rm -f conftest.
$ac_objext conftest
$ac_exeext
13647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13648 (eval $ac_link) 2>conftest.er1
13650 grep -v '^ *+' conftest.er1
>conftest.err
13652 cat conftest.err
>&5
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); } &&
13655 { ac_try
='test -z "$ac_c_werror_flag"
13656 || test ! -s conftest.err'
13657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13658 (eval $ac_try) 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); }; } &&
13662 { ac_try
='test -s conftest$ac_exeext'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }; then
13668 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.
$ac_ext >&5
13673 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13675 rm -f conftest.err conftest.
$ac_objext \
13676 conftest
$ac_exeext conftest.
$ac_ext
13677 LIBS
=$ac_check_lib_save_LIBS
13679 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13680 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13681 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13690 if test "${HAVE_GIF}" = "yes"; then
13692 cat >>confdefs.h
<<\_ACEOF
13699 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13700 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13701 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13702 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13703 echo $ECHO_N "(cached) $ECHO_C" >&6
13705 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13706 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13708 # Is the header compilable?
13709 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13710 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13711 cat >conftest.
$ac_ext <<_ACEOF
13714 cat confdefs.h
>>conftest.
$ac_ext
13715 cat >>conftest.
$ac_ext <<_ACEOF
13716 /* end confdefs.h. */
13717 $ac_includes_default
13718 #include <malloc/malloc.h>
13720 rm -f conftest.
$ac_objext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13722 (eval $ac_compile) 2>conftest.er1
13724 grep -v '^ *+' conftest.er1
>conftest.err
13726 cat conftest.err
>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } &&
13729 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; } &&
13735 { ac_try
='test -s conftest.$ac_objext'
13736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737 (eval $ac_try) 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13741 ac_header_compiler
=yes
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.
$ac_ext >&5
13746 ac_header_compiler
=no
13748 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13750 echo "${ECHO_T}$ac_header_compiler" >&6
13752 # Is the header present?
13753 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13754 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13755 cat >conftest.
$ac_ext <<_ACEOF
13758 cat confdefs.h
>>conftest.
$ac_ext
13759 cat >>conftest.
$ac_ext <<_ACEOF
13760 /* end confdefs.h. */
13761 #include <malloc/malloc.h>
13763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13764 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13766 grep -v '^ *+' conftest.er1
>conftest.err
13768 cat conftest.err
>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } >/dev
/null
; then
13771 if test -s conftest.err
; then
13772 ac_cpp_err
=$ac_c_preproc_warn_flag
13773 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13780 if test -z "$ac_cpp_err"; then
13781 ac_header_preproc
=yes
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.
$ac_ext >&5
13786 ac_header_preproc
=no
13788 rm -f conftest.err conftest.
$ac_ext
13789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13790 echo "${ECHO_T}$ac_header_preproc" >&6
13792 # So? What about this header?
13793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13795 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13796 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13798 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13799 ac_header_preproc
=yes
13802 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13803 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13805 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13807 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13808 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13809 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13810 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13811 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13812 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13813 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13816 ## ------------------------------------------ ##
13817 ## Report this to the AC_PACKAGE_NAME lists. ##
13818 ## ------------------------------------------ ##
13821 sed "s/^/$as_me: WARNING: /" >&2
13824 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13825 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13826 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13829 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13831 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13832 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13835 if test $ac_cv_header_malloc_malloc_h = yes; then
13837 cat >>confdefs.h
<<\_ACEOF
13838 #define HAVE_MALLOC_MALLOC_H 1
13845 ### Use Mac OS X Carbon API to implement GUI.
13846 if test "${HAVE_CARBON}" = "yes"; then
13848 cat >>confdefs.h
<<\_ACEOF
13849 #define HAVE_CARBON 1
13852 ## Specify the install directory
13854 if test "${carbon_appdir_x}" != ""; then
13855 case ${carbon_appdir_x} in
13856 y | ye |
yes) carbon_appdir
=/Applications
;;
13857 * ) carbon_appdir
=${carbon_appdir_x} ;;
13860 # We also have mouse menus.
13864 ### Use session management (-lSM -lICE) if available
13866 if test "${HAVE_X11}" = "yes"; then
13867 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13868 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13869 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13870 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13874 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13876 # Is the header compilable?
13877 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13878 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13879 cat >conftest.
$ac_ext <<_ACEOF
13882 cat confdefs.h
>>conftest.
$ac_ext
13883 cat >>conftest.
$ac_ext <<_ACEOF
13884 /* end confdefs.h. */
13885 $ac_includes_default
13886 #include <X11/SM/SMlib.h>
13888 rm -f conftest.
$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890 (eval $ac_compile) 2>conftest.er1
13892 grep -v '^ *+' conftest.er1
>conftest.err
13894 cat conftest.err
>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } &&
13897 { ac_try
='test -z "$ac_c_werror_flag"
13898 || test ! -s conftest.err'
13899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13900 (eval $ac_try) 2>&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); }; } &&
13904 { ac_try
='test -s conftest.$ac_objext'
13905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13906 (eval $ac_try) 2>&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); }; }; then
13910 ac_header_compiler
=yes
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.
$ac_ext >&5
13915 ac_header_compiler
=no
13917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13919 echo "${ECHO_T}$ac_header_compiler" >&6
13921 # Is the header present?
13922 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13923 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
13924 cat >conftest.
$ac_ext <<_ACEOF
13927 cat confdefs.h
>>conftest.
$ac_ext
13928 cat >>conftest.
$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 #include <X11/SM/SMlib.h>
13932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13933 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13935 grep -v '^ *+' conftest.er1
>conftest.err
13937 cat conftest.err
>&5
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } >/dev
/null
; then
13940 if test -s conftest.err
; then
13941 ac_cpp_err
=$ac_c_preproc_warn_flag
13942 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13949 if test -z "$ac_cpp_err"; then
13950 ac_header_preproc
=yes
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.
$ac_ext >&5
13955 ac_header_preproc
=no
13957 rm -f conftest.err conftest.
$ac_ext
13958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13959 echo "${ECHO_T}$ac_header_preproc" >&6
13961 # So? What about this header?
13962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13964 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13965 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13966 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13967 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13968 ac_header_preproc
=yes
13971 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13972 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13974 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13976 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13978 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13980 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13981 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13982 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13985 ## ------------------------------------------ ##
13986 ## Report this to the AC_PACKAGE_NAME lists. ##
13987 ## ------------------------------------------ ##
13990 sed "s/^/$as_me: WARNING: /" >&2
13993 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13994 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13995 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
14000 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14001 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
14004 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14005 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14006 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
14007 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 ac_check_lib_save_LIBS
=$LIBS
14011 LIBS
="-lSM -lICE $LIBS"
14012 cat >conftest.
$ac_ext <<_ACEOF
14015 cat confdefs.h
>>conftest.
$ac_ext
14016 cat >>conftest.
$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14019 /* Override any gcc2 internal prototype to avoid an error. */
14023 /* We use char because int might match the return type of a gcc2
14024 builtin and then its argument prototype would still apply. */
14025 char SmcOpenConnection ();
14029 SmcOpenConnection ();
14034 rm -f conftest.
$ac_objext conftest
$ac_exeext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14036 (eval $ac_link) 2>conftest.er1
14038 grep -v '^ *+' conftest.er1
>conftest.err
14040 cat conftest.err
>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } &&
14043 { ac_try
='test -z "$ac_c_werror_flag"
14044 || test ! -s conftest.err'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; } &&
14050 { ac_try
='test -s conftest$ac_exeext'
14051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052 (eval $ac_try) 2>&5
14054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055 (exit $ac_status); }; }; then
14056 ac_cv_lib_SM_SmcOpenConnection
=yes
14058 echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.
$ac_ext >&5
14061 ac_cv_lib_SM_SmcOpenConnection
=no
14063 rm -f conftest.err conftest.
$ac_objext \
14064 conftest
$ac_exeext conftest.
$ac_ext
14065 LIBS
=$ac_check_lib_save_LIBS
14067 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14068 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
14069 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14077 if test "${HAVE_X_SM}" = "yes"; then
14079 cat >>confdefs.h
<<\_ACEOF
14080 #define HAVE_X_SM 1
14085 *) LIBS
="-lSM -lICE $LIBS" ;;
14090 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14091 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14092 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
14093 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14096 cat >conftest.
$ac_ext <<_ACEOF
14099 cat confdefs.h
>>conftest.
$ac_ext
14100 cat >>conftest.
$ac_ext <<_ACEOF
14101 /* end confdefs.h. */
14111 rm -f conftest.
$ac_objext conftest
$ac_exeext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14113 (eval $ac_link) 2>conftest.er1
14115 grep -v '^ *+' conftest.er1
>conftest.err
14117 cat conftest.err
>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try
='test -z "$ac_c_werror_flag"
14121 || test ! -s conftest.err'
14122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14123 (eval $ac_try) 2>&5
14125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); }; } &&
14127 { ac_try
='test -s conftest$ac_exeext'
14128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14129 (eval $ac_try) 2>&5
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); }; }; then
14133 emacs_cv_netdb_declares_h_errno
=yes
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.
$ac_ext >&5
14138 emacs_cv_netdb_declares_h_errno
=no
14140 rm -f conftest.err conftest.
$ac_objext \
14141 conftest
$ac_exeext conftest.
$ac_ext
14143 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14144 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
14145 if test $emacs_cv_netdb_declares_h_errno = yes; then
14147 cat >>confdefs.h
<<\_ACEOF
14148 #define HAVE_H_ERRNO 1
14153 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14154 # for constant arguments. Useless!
14155 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14156 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14157 if test "${ac_cv_working_alloca_h+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 cat >conftest.
$ac_ext <<_ACEOF
14163 cat confdefs.h
>>conftest.
$ac_ext
14164 cat >>conftest.
$ac_ext <<_ACEOF
14165 /* end confdefs.h. */
14166 #include <alloca.h>
14170 char *p = (char *) alloca (2 * sizeof (int));
14175 rm -f conftest.
$ac_objext conftest
$ac_exeext
14176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14177 (eval $ac_link) 2>conftest.er1
14179 grep -v '^ *+' conftest.er1
>conftest.err
14181 cat conftest.err
>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
14184 { ac_try
='test -z "$ac_c_werror_flag"
14185 || test ! -s conftest.err'
14186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14187 (eval $ac_try) 2>&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); }; } &&
14191 { ac_try
='test -s conftest$ac_exeext'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }; then
14197 ac_cv_working_alloca_h
=yes
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.
$ac_ext >&5
14202 ac_cv_working_alloca_h
=no
14204 rm -f conftest.err conftest.
$ac_objext \
14205 conftest
$ac_exeext conftest.
$ac_ext
14207 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14208 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14209 if test $ac_cv_working_alloca_h = yes; then
14211 cat >>confdefs.h
<<\_ACEOF
14212 #define HAVE_ALLOCA_H 1
14217 echo "$as_me:$LINENO: checking for alloca" >&5
14218 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14219 if test "${ac_cv_func_alloca_works+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 cat >conftest.
$ac_ext <<_ACEOF
14225 cat confdefs.h
>>conftest.
$ac_ext
14226 cat >>conftest.
$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14229 # define alloca __builtin_alloca
14232 # include <malloc.h>
14233 # define alloca _alloca
14236 # include <alloca.h>
14241 # ifndef alloca /* predefined by HP cc +Olibcalls */
14252 char *p = (char *) alloca (1);
14257 rm -f conftest.
$ac_objext conftest
$ac_exeext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14259 (eval $ac_link) 2>conftest.er1
14261 grep -v '^ *+' conftest.er1
>conftest.err
14263 cat conftest.err
>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } &&
14266 { ac_try
='test -z "$ac_c_werror_flag"
14267 || test ! -s conftest.err'
14268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269 (eval $ac_try) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }; } &&
14273 { ac_try
='test -s conftest$ac_exeext'
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; }; then
14279 ac_cv_func_alloca_works
=yes
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.
$ac_ext >&5
14284 ac_cv_func_alloca_works
=no
14286 rm -f conftest.err conftest.
$ac_objext \
14287 conftest
$ac_exeext conftest.
$ac_ext
14289 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14290 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14292 if test $ac_cv_func_alloca_works = yes; then
14294 cat >>confdefs.h
<<\_ACEOF
14295 #define HAVE_ALLOCA 1
14299 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14300 # that cause trouble. Some versions do not even contain alloca or
14301 # contain a buggy version. If you still want to use their alloca,
14302 # use ar to extract alloca.o from them instead of compiling alloca.c.
14304 ALLOCA
=alloca.
$ac_objext
14306 cat >>confdefs.h
<<\_ACEOF
14311 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14312 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14313 if test "${ac_cv_os_cray+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 cat >conftest.
$ac_ext <<_ACEOF
14319 cat confdefs.h
>>conftest.
$ac_ext
14320 cat >>conftest.
$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 #if defined(CRAY) && ! defined(CRAY2)
14329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14330 $EGREP "webecray" >/dev
/null
2>&1; then
14338 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14339 echo "${ECHO_T}$ac_cv_os_cray" >&6
14340 if test $ac_cv_os_cray = yes; then
14341 for ac_func
in _getb67 GETB67 getb67
; do
14342 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14343 echo "$as_me:$LINENO: checking for $ac_func" >&5
14344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14345 if eval "test \"\${$as_ac_var+set}\" = set"; then
14346 echo $ECHO_N "(cached) $ECHO_C" >&6
14348 cat >conftest.
$ac_ext <<_ACEOF
14351 cat confdefs.h
>>conftest.
$ac_ext
14352 cat >>conftest.
$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14356 #define $ac_func innocuous_$ac_func
14358 /* System header to define __stub macros and hopefully few prototypes,
14359 which can conflict with char $ac_func (); below.
14360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14361 <limits.h> exists even on freestanding compilers. */
14364 # include <limits.h>
14366 # include <assert.h>
14371 /* Override any gcc2 internal prototype to avoid an error. */
14376 /* We use char because int might match the return type of a gcc2
14377 builtin and then its argument prototype would still apply. */
14379 /* The GNU C library defines this for functions which it implements
14380 to always fail with ENOSYS. Some functions are actually named
14381 something starting with __ and the normal name is an alias. */
14382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14385 char (*f) () = $ac_func;
14394 return f != $ac_func;
14399 rm -f conftest.
$ac_objext conftest
$ac_exeext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14401 (eval $ac_link) 2>conftest.er1
14403 grep -v '^ *+' conftest.er1
>conftest.err
14405 cat conftest.err
>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
14408 { ac_try
='test -z "$ac_c_werror_flag"
14409 || test ! -s conftest.err'
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; } &&
14415 { ac_try
='test -s conftest$ac_exeext'
14416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14417 (eval $ac_try) 2>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); }; }; then
14421 eval "$as_ac_var=yes"
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.
$ac_ext >&5
14426 eval "$as_ac_var=no"
14428 rm -f conftest.err conftest.
$ac_objext \
14429 conftest
$ac_exeext conftest.
$ac_ext
14431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14432 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14433 if test `eval echo '${'$as_ac_var'}'` = yes; then
14435 cat >>confdefs.h
<<_ACEOF
14436 #define CRAY_STACKSEG_END $ac_func
14445 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14446 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14447 if test "${ac_cv_c_stack_direction+set}" = set; then
14448 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 if test "$cross_compiling" = yes; then
14451 ac_cv_c_stack_direction
=0
14453 cat >conftest.
$ac_ext <<_ACEOF
14456 cat confdefs.h
>>conftest.
$ac_ext
14457 cat >>conftest.
$ac_ext <<_ACEOF
14458 /* end confdefs.h. */
14460 find_stack_direction ()
14462 static char *addr = 0;
14467 return find_stack_direction ();
14470 return (&dummy > addr) ? 1 : -1;
14476 exit (find_stack_direction () < 0);
14479 rm -f conftest
$ac_exeext
14480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14481 (eval $ac_link) 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14486 (eval $ac_try) 2>&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); }; }; then
14490 ac_cv_c_stack_direction
=1
14492 echo "$as_me: program exited with status $ac_status" >&5
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.
$ac_ext >&5
14496 ( exit $ac_status )
14497 ac_cv_c_stack_direction
=-1
14499 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14502 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14503 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14505 cat >>confdefs.h
<<_ACEOF
14506 #define STACK_DIRECTION $ac_cv_c_stack_direction
14513 # fmod, logb, and frexp are found in -lm on most systems.
14514 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14516 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14517 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
14518 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14519 echo $ECHO_N "(cached) $ECHO_C" >&6
14521 ac_check_lib_save_LIBS
=$LIBS
14523 cat >conftest.
$ac_ext <<_ACEOF
14526 cat confdefs.h
>>conftest.
$ac_ext
14527 cat >>conftest.
$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14530 /* Override any gcc2 internal prototype to avoid an error. */
14534 /* We use char because int might match the return type of a gcc2
14535 builtin and then its argument prototype would still apply. */
14545 rm -f conftest.
$ac_objext conftest
$ac_exeext
14546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14547 (eval $ac_link) 2>conftest.er1
14549 grep -v '^ *+' conftest.er1
>conftest.err
14551 cat conftest.err
>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } &&
14554 { ac_try
='test -z "$ac_c_werror_flag"
14555 || test ! -s conftest.err'
14556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14557 (eval $ac_try) 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; } &&
14561 { ac_try
='test -s conftest$ac_exeext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 ac_cv_lib_m_sqrt
=yes
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.
$ac_ext >&5
14572 ac_cv_lib_m_sqrt
=no
14574 rm -f conftest.err conftest.
$ac_objext \
14575 conftest
$ac_exeext conftest.
$ac_ext
14576 LIBS
=$ac_check_lib_save_LIBS
14578 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14579 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14580 if test $ac_cv_lib_m_sqrt = yes; then
14581 cat >>confdefs.h
<<_ACEOF
14582 #define HAVE_LIBM 1
14590 # Check for mail-locking functions in a "mail" library. Probably this should
14591 # have the same check as for liblockfile below.
14593 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14594 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14595 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14598 ac_check_lib_save_LIBS
=$LIBS
14599 LIBS
="-lmail $LIBS"
14600 cat >conftest.
$ac_ext <<_ACEOF
14603 cat confdefs.h
>>conftest.
$ac_ext
14604 cat >>conftest.
$ac_ext <<_ACEOF
14605 /* end confdefs.h. */
14607 /* Override any gcc2 internal prototype to avoid an error. */
14611 /* We use char because int might match the return type of a gcc2
14612 builtin and then its argument prototype would still apply. */
14622 rm -f conftest.
$ac_objext conftest
$ac_exeext
14623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14624 (eval $ac_link) 2>conftest.er1
14626 grep -v '^ *+' conftest.er1
>conftest.err
14628 cat conftest.err
>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); } &&
14631 { ac_try
='test -z "$ac_c_werror_flag"
14632 || test ! -s conftest.err'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; } &&
14638 { ac_try
='test -s conftest$ac_exeext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_cv_lib_mail_maillock
=yes
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.
$ac_ext >&5
14649 ac_cv_lib_mail_maillock
=no
14651 rm -f conftest.err conftest.
$ac_objext \
14652 conftest
$ac_exeext conftest.
$ac_ext
14653 LIBS
=$ac_check_lib_save_LIBS
14655 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14656 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14657 if test $ac_cv_lib_mail_maillock = yes; then
14658 cat >>confdefs.h
<<_ACEOF
14659 #define HAVE_LIBMAIL 1
14662 LIBS
="-lmail $LIBS"
14667 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14668 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14669 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14670 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 ac_check_lib_save_LIBS
=$LIBS
14673 LIBS
="-llockfile $LIBS"
14674 cat >conftest.
$ac_ext <<_ACEOF
14677 cat confdefs.h
>>conftest.
$ac_ext
14678 cat >>conftest.
$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14681 /* Override any gcc2 internal prototype to avoid an error. */
14685 /* We use char because int might match the return type of a gcc2
14686 builtin and then its argument prototype would still apply. */
14696 rm -f conftest.
$ac_objext conftest
$ac_exeext
14697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14698 (eval $ac_link) 2>conftest.er1
14700 grep -v '^ *+' conftest.er1
>conftest.err
14702 cat conftest.err
>&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } &&
14705 { ac_try
='test -z "$ac_c_werror_flag"
14706 || test ! -s conftest.err'
14707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14708 (eval $ac_try) 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try
='test -s conftest$ac_exeext'
14713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14714 (eval $ac_try) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); }; }; then
14718 ac_cv_lib_lockfile_maillock
=yes
14720 echo "$as_me: failed program was:" >&5
14721 sed 's/^/| /' conftest.
$ac_ext >&5
14723 ac_cv_lib_lockfile_maillock
=no
14725 rm -f conftest.err conftest.
$ac_objext \
14726 conftest
$ac_exeext conftest.
$ac_ext
14727 LIBS
=$ac_check_lib_save_LIBS
14729 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14730 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14731 if test $ac_cv_lib_lockfile_maillock = yes; then
14732 cat >>confdefs.h
<<_ACEOF
14733 #define HAVE_LIBLOCKFILE 1
14736 LIBS
="-llockfile $LIBS"
14740 # If we have the shared liblockfile, assume we must use it for mail
14741 # locking (e.g. Debian). If we couldn't link against liblockfile
14742 # (no liblockfile.a installed), ensure that we don't need to.
14743 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14744 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14745 set dummy liblockfile.so
; ac_word
=$2
14746 echo "$as_me:$LINENO: checking for $ac_word" >&5
14747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14748 if test "${ac_cv_prog_liblockfile+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 if test -n "$liblockfile"; then
14752 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14755 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14756 for as_dir
in $as_dummy
14759 test -z "$as_dir" && as_dir
=.
14760 for ac_exec_ext
in '' $ac_executable_extensions; do
14761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14762 ac_cv_prog_liblockfile
="yes"
14763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14769 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14772 liblockfile
=$ac_cv_prog_liblockfile
14773 if test -n "$liblockfile"; then
14774 echo "$as_me:$LINENO: result: $liblockfile" >&5
14775 echo "${ECHO_T}$liblockfile" >&6
14777 echo "$as_me:$LINENO: result: no" >&5
14778 echo "${ECHO_T}no" >&6
14781 if test $ac_cv_prog_liblockfile = yes; then
14782 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14783 This probably means that movemail could lose mail.
14784 There may be a \`development' package to install containing liblockfile." >&5
14785 echo "$as_me: error: Shared liblockfile found but can't link against it.
14786 This probably means that movemail could lose mail.
14787 There may be a \`development' package to install containing liblockfile." >&2;}
14788 { (exit 1); exit 1; }; }
14793 for ac_func
in touchlock
14795 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14796 echo "$as_me:$LINENO: checking for $ac_func" >&5
14797 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14798 if eval "test \"\${$as_ac_var+set}\" = set"; then
14799 echo $ECHO_N "(cached) $ECHO_C" >&6
14801 cat >conftest.
$ac_ext <<_ACEOF
14804 cat confdefs.h
>>conftest.
$ac_ext
14805 cat >>conftest.
$ac_ext <<_ACEOF
14806 /* end confdefs.h. */
14807 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14809 #define $ac_func innocuous_$ac_func
14811 /* System header to define __stub macros and hopefully few prototypes,
14812 which can conflict with char $ac_func (); below.
14813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14814 <limits.h> exists even on freestanding compilers. */
14817 # include <limits.h>
14819 # include <assert.h>
14824 /* Override any gcc2 internal prototype to avoid an error. */
14829 /* We use char because int might match the return type of a gcc2
14830 builtin and then its argument prototype would still apply. */
14832 /* The GNU C library defines this for functions which it implements
14833 to always fail with ENOSYS. Some functions are actually named
14834 something starting with __ and the normal name is an alias. */
14835 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14838 char (*f) () = $ac_func;
14847 return f != $ac_func;
14852 rm -f conftest.
$ac_objext conftest
$ac_exeext
14853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14854 (eval $ac_link) 2>conftest.er1
14856 grep -v '^ *+' conftest.er1
>conftest.err
14858 cat conftest.err
>&5
14859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860 (exit $ac_status); } &&
14861 { ac_try
='test -z "$ac_c_werror_flag"
14862 || test ! -s conftest.err'
14863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14864 (eval $ac_try) 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); }; } &&
14868 { ac_try
='test -s conftest$ac_exeext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 eval "$as_ac_var=yes"
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.
$ac_ext >&5
14879 eval "$as_ac_var=no"
14881 rm -f conftest.err conftest.
$ac_objext \
14882 conftest
$ac_exeext conftest.
$ac_ext
14884 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14885 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14886 if test `eval echo '${'$as_ac_var'}'` = yes; then
14887 cat >>confdefs.h
<<_ACEOF
14888 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14895 for ac_header
in maillock.h
14897 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14899 echo "$as_me:$LINENO: checking for $ac_header" >&5
14900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14902 echo $ECHO_N "(cached) $ECHO_C" >&6
14904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14907 # Is the header compilable?
14908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14910 cat >conftest.
$ac_ext <<_ACEOF
14913 cat confdefs.h
>>conftest.
$ac_ext
14914 cat >>conftest.
$ac_ext <<_ACEOF
14915 /* end confdefs.h. */
14916 $ac_includes_default
14917 #include <$ac_header>
14919 rm -f conftest.
$ac_objext
14920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921 (eval $ac_compile) 2>conftest.er1
14923 grep -v '^ *+' conftest.er1
>conftest.err
14925 cat conftest.err
>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
14928 { ac_try
='test -z "$ac_c_werror_flag"
14929 || test ! -s conftest.err'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try
='test -s conftest.$ac_objext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_header_compiler
=yes
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.
$ac_ext >&5
14946 ac_header_compiler
=no
14948 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
14949 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14950 echo "${ECHO_T}$ac_header_compiler" >&6
14952 # Is the header present?
14953 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14955 cat >conftest.
$ac_ext <<_ACEOF
14958 cat confdefs.h
>>conftest.
$ac_ext
14959 cat >>conftest.
$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14961 #include <$ac_header>
14963 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14964 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14966 grep -v '^ *+' conftest.er1
>conftest.err
14968 cat conftest.err
>&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } >/dev
/null
; then
14971 if test -s conftest.err
; then
14972 ac_cpp_err
=$ac_c_preproc_warn_flag
14973 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14980 if test -z "$ac_cpp_err"; then
14981 ac_header_preproc
=yes
14983 echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.
$ac_ext >&5
14986 ac_header_preproc
=no
14988 rm -f conftest.err conftest.
$ac_ext
14989 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14990 echo "${ECHO_T}$ac_header_preproc" >&6
14992 # So? What about this header?
14993 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14996 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14998 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14999 ac_header_preproc
=yes
15002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15003 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15005 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15006 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15007 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15008 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15009 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15012 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15013 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15016 ## ------------------------------------------ ##
15017 ## Report this to the AC_PACKAGE_NAME lists. ##
15018 ## ------------------------------------------ ##
15021 sed "s/^/$as_me: WARNING: /" >&2
15024 echo "$as_me:$LINENO: checking for $ac_header" >&5
15025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 eval "$as_ac_Header=\$ac_header_preproc"
15031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15036 cat >>confdefs.h
<<_ACEOF
15037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15114 for ac_func
in gethostname getdomainname dup2 \
15115 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
15116 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15117 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
15118 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15119 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15120 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15121 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15122 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15124 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15125 echo "$as_me:$LINENO: checking for $ac_func" >&5
15126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15127 if eval "test \"\${$as_ac_var+set}\" = set"; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 cat >conftest.
$ac_ext <<_ACEOF
15133 cat confdefs.h
>>conftest.
$ac_ext
15134 cat >>conftest.
$ac_ext <<_ACEOF
15135 /* end confdefs.h. */
15136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15138 #define $ac_func innocuous_$ac_func
15140 /* System header to define __stub macros and hopefully few prototypes,
15141 which can conflict with char $ac_func (); below.
15142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15143 <limits.h> exists even on freestanding compilers. */
15146 # include <limits.h>
15148 # include <assert.h>
15153 /* Override any gcc2 internal prototype to avoid an error. */
15158 /* We use char because int might match the return type of a gcc2
15159 builtin and then its argument prototype would still apply. */
15161 /* The GNU C library defines this for functions which it implements
15162 to always fail with ENOSYS. Some functions are actually named
15163 something starting with __ and the normal name is an alias. */
15164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15167 char (*f) () = $ac_func;
15176 return f != $ac_func;
15181 rm -f conftest.
$ac_objext conftest
$ac_exeext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15183 (eval $ac_link) 2>conftest.er1
15185 grep -v '^ *+' conftest.er1
>conftest.err
15187 cat conftest.err
>&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try
='test -z "$ac_c_werror_flag"
15191 || test ! -s conftest.err'
15192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193 (eval $ac_try) 2>&5
15195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196 (exit $ac_status); }; } &&
15197 { ac_try
='test -s conftest$ac_exeext'
15198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199 (eval $ac_try) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); }; }; then
15203 eval "$as_ac_var=yes"
15205 echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.
$ac_ext >&5
15208 eval "$as_ac_var=no"
15210 rm -f conftest.err conftest.
$ac_objext \
15211 conftest
$ac_exeext conftest.
$ac_ext
15213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15215 if test `eval echo '${'$as_ac_var'}'` = yes; then
15216 cat >>confdefs.h
<<_ACEOF
15217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15225 for ac_header
in sys
/un.h
15227 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15229 echo "$as_me:$LINENO: checking for $ac_header" >&5
15230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15235 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15237 # Is the header compilable?
15238 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15239 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15240 cat >conftest.
$ac_ext <<_ACEOF
15243 cat confdefs.h
>>conftest.
$ac_ext
15244 cat >>conftest.
$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 $ac_includes_default
15247 #include <$ac_header>
15249 rm -f conftest.
$ac_objext
15250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15251 (eval $ac_compile) 2>conftest.er1
15253 grep -v '^ *+' conftest.er1
>conftest.err
15255 cat conftest.err
>&5
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); } &&
15258 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15260 (eval $ac_try) 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; } &&
15264 { ac_try
='test -s conftest.$ac_objext'
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; }; then
15270 ac_header_compiler
=yes
15272 echo "$as_me: failed program was:" >&5
15273 sed 's/^/| /' conftest.
$ac_ext >&5
15275 ac_header_compiler
=no
15277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15279 echo "${ECHO_T}$ac_header_compiler" >&6
15281 # Is the header present?
15282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15284 cat >conftest.
$ac_ext <<_ACEOF
15287 cat confdefs.h
>>conftest.
$ac_ext
15288 cat >>conftest.
$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <$ac_header>
15292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15293 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15295 grep -v '^ *+' conftest.er1
>conftest.err
15297 cat conftest.err
>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); } >/dev
/null
; then
15300 if test -s conftest.err
; then
15301 ac_cpp_err
=$ac_c_preproc_warn_flag
15302 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15309 if test -z "$ac_cpp_err"; then
15310 ac_header_preproc
=yes
15312 echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.
$ac_ext >&5
15315 ac_header_preproc
=no
15317 rm -f conftest.err conftest.
$ac_ext
15318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319 echo "${ECHO_T}$ac_header_preproc" >&6
15321 # So? What about this header?
15322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15328 ac_header_preproc
=yes
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15345 ## ------------------------------------------ ##
15346 ## Report this to the AC_PACKAGE_NAME lists. ##
15347 ## ------------------------------------------ ##
15350 sed "s/^/$as_me: WARNING: /" >&2
15353 echo "$as_me:$LINENO: checking for $ac_header" >&5
15354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 eval "$as_ac_Header=\$ac_header_preproc"
15360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15365 cat >>confdefs.h
<<_ACEOF
15366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15377 for ac_header
in stdlib.h sys
/time.h unistd.h
15379 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15380 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15381 echo "$as_me:$LINENO: checking for $ac_header" >&5
15382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15387 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15389 # Is the header compilable?
15390 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15392 cat >conftest.
$ac_ext <<_ACEOF
15395 cat confdefs.h
>>conftest.
$ac_ext
15396 cat >>conftest.
$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 $ac_includes_default
15399 #include <$ac_header>
15401 rm -f conftest.
$ac_objext
15402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15403 (eval $ac_compile) 2>conftest.er1
15405 grep -v '^ *+' conftest.er1
>conftest.err
15407 cat conftest.err
>&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); } &&
15410 { ac_try
='test -z "$ac_c_werror_flag"
15411 || test ! -s conftest.err'
15412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15413 (eval $ac_try) 2>&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); }; } &&
15417 { ac_try
='test -s conftest.$ac_objext'
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; }; then
15423 ac_header_compiler
=yes
15425 echo "$as_me: failed program was:" >&5
15426 sed 's/^/| /' conftest.
$ac_ext >&5
15428 ac_header_compiler
=no
15430 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15431 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15432 echo "${ECHO_T}$ac_header_compiler" >&6
15434 # Is the header present?
15435 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15437 cat >conftest.
$ac_ext <<_ACEOF
15440 cat confdefs.h
>>conftest.
$ac_ext
15441 cat >>conftest.
$ac_ext <<_ACEOF
15442 /* end confdefs.h. */
15443 #include <$ac_header>
15445 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15446 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15448 grep -v '^ *+' conftest.er1
>conftest.err
15450 cat conftest.err
>&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } >/dev
/null
; then
15453 if test -s conftest.err
; then
15454 ac_cpp_err
=$ac_c_preproc_warn_flag
15455 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15462 if test -z "$ac_cpp_err"; then
15463 ac_header_preproc
=yes
15465 echo "$as_me: failed program was:" >&5
15466 sed 's/^/| /' conftest.
$ac_ext >&5
15468 ac_header_preproc
=no
15470 rm -f conftest.err conftest.
$ac_ext
15471 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15472 echo "${ECHO_T}$ac_header_preproc" >&6
15474 # So? What about this header?
15475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15481 ac_header_preproc
=yes
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15498 ## ------------------------------------------ ##
15499 ## Report this to the AC_PACKAGE_NAME lists. ##
15500 ## ------------------------------------------ ##
15503 sed "s/^/$as_me: WARNING: /" >&2
15506 echo "$as_me:$LINENO: checking for $ac_header" >&5
15507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15508 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15509 echo $ECHO_N "(cached) $ECHO_C" >&6
15511 eval "$as_ac_Header=\$ac_header_preproc"
15513 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15514 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15517 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15518 cat >>confdefs.h
<<_ACEOF
15519 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15527 for ac_func
in alarm
15529 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15530 echo "$as_me:$LINENO: checking for $ac_func" >&5
15531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15532 if eval "test \"\${$as_ac_var+set}\" = set"; then
15533 echo $ECHO_N "(cached) $ECHO_C" >&6
15535 cat >conftest.
$ac_ext <<_ACEOF
15538 cat confdefs.h
>>conftest.
$ac_ext
15539 cat >>conftest.
$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15543 #define $ac_func innocuous_$ac_func
15545 /* System header to define __stub macros and hopefully few prototypes,
15546 which can conflict with char $ac_func (); below.
15547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15548 <limits.h> exists even on freestanding compilers. */
15551 # include <limits.h>
15553 # include <assert.h>
15558 /* Override any gcc2 internal prototype to avoid an error. */
15563 /* We use char because int might match the return type of a gcc2
15564 builtin and then its argument prototype would still apply. */
15566 /* The GNU C library defines this for functions which it implements
15567 to always fail with ENOSYS. Some functions are actually named
15568 something starting with __ and the normal name is an alias. */
15569 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15572 char (*f) () = $ac_func;
15581 return f != $ac_func;
15586 rm -f conftest.
$ac_objext conftest
$ac_exeext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15588 (eval $ac_link) 2>conftest.er1
15590 grep -v '^ *+' conftest.er1
>conftest.err
15592 cat conftest.err
>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try
='test -z "$ac_c_werror_flag"
15596 || test ! -s conftest.err'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try
='test -s conftest$ac_exeext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 eval "$as_ac_var=yes"
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.
$ac_ext >&5
15613 eval "$as_ac_var=no"
15615 rm -f conftest.err conftest.
$ac_objext \
15616 conftest
$ac_exeext conftest.
$ac_ext
15618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15620 if test `eval echo '${'$as_ac_var'}'` = yes; then
15621 cat >>confdefs.h
<<_ACEOF
15622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15628 echo "$as_me:$LINENO: checking for working mktime" >&5
15629 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15630 if test "${ac_cv_func_working_mktime+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15633 if test "$cross_compiling" = yes; then
15634 ac_cv_func_working_mktime
=no
15636 cat >conftest.
$ac_ext <<_ACEOF
15639 cat confdefs.h
>>conftest.
$ac_ext
15640 cat >>conftest.
$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 /* Test program from Paul Eggert and Tony Leneis. */
15643 #if TIME_WITH_SYS_TIME
15644 # include <sys/time.h>
15647 # if HAVE_SYS_TIME_H
15648 # include <sys/time.h>
15655 # include <stdlib.h>
15659 # include <unistd.h>
15663 # define alarm(X) /* empty */
15666 /* Work around redefinition to rpl_putenv by other config tests. */
15669 static time_t time_t_max;
15670 static time_t time_t_min;
15672 /* Values we'll use to set the TZ environment variable. */
15673 static char *tz_strings[] = {
15674 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15675 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15677 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15679 /* Fail if mktime fails to convert a date in the spring-forward gap.
15680 Based on a problem report from Andreas Jaeger. */
15682 spring_forward_gap ()
15684 /* glibc (up to about 1998-10-07) failed this test. */
15687 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15688 instead of "TZ=America/Vancouver" in order to detect the bug even
15689 on systems that don't support the Olson extension, or don't have the
15690 full zoneinfo tables installed. */
15691 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15700 if (mktime (&tm) == (time_t)-1)
15709 if ((lt = localtime (&now)) && mktime (lt) != now)
15717 mktime_test1 (now);
15718 mktime_test1 ((time_t) (time_t_max - now));
15719 mktime_test1 ((time_t) (time_t_min + now));
15725 /* Based on code from Ariel Faigon. */
15735 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15745 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15746 now = mktime (&tm);
15747 if (now != (time_t) -1)
15749 struct tm *lt = localtime (&now);
15751 && lt->tm_year == tm.tm_year
15752 && lt->tm_mon == tm.tm_mon
15753 && lt->tm_mday == tm.tm_mday
15754 && lt->tm_hour == tm.tm_hour
15755 && lt->tm_min == tm.tm_min
15756 && lt->tm_sec == tm.tm_sec
15757 && lt->tm_yday == tm.tm_yday
15758 && lt->tm_wday == tm.tm_wday
15759 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15760 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15771 /* This test makes some buggy mktime implementations loop.
15772 Give up after 60 seconds; a mktime slower than that
15773 isn't worth using anyway. */
15776 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15779 if ((time_t) -1 < 0)
15780 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15782 delta = time_t_max / 997; /* a suitable prime number */
15783 for (i = 0; i < N_STRINGS; i++)
15786 putenv (tz_strings[i]);
15788 for (t = 0; t <= time_t_max - delta; t += delta)
15790 mktime_test ((time_t) 1);
15791 mktime_test ((time_t) (60 * 60));
15792 mktime_test ((time_t) (60 * 60 * 24));
15794 for (j = 1; 0 < j; j *= 2)
15796 bigtime_test (j - 1);
15799 spring_forward_gap ();
15803 rm -f conftest
$ac_exeext
15804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15805 (eval $ac_link) 2>&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 ac_cv_func_working_mktime
=yes
15816 echo "$as_me: program exited with status $ac_status" >&5
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.
$ac_ext >&5
15820 ( exit $ac_status )
15821 ac_cv_func_working_mktime
=no
15823 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15826 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15827 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15828 if test $ac_cv_func_working_mktime = no
; then
15830 "mktime.$ac_objext" | \
15831 *" mktime.$ac_objext" | \
15832 "mktime.$ac_objext "* | \
15833 *" mktime.$ac_objext "* ) ;;
15834 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15839 if test "$ac_cv_func_working_mktime" = no
; then
15841 cat >>confdefs.h
<<\_ACEOF
15842 #define BROKEN_MKTIME 1
15847 ac_have_func
=no
# yes means we've found a way to get the load average.
15849 # Make sure getloadavg.c is where it belongs, at configure-time.
15850 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15851 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15852 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15853 { (exit 1); exit 1; }; }
15857 # Check for getloadavg, but be sure not to touch the cache variable.
15858 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15859 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15860 if test "${ac_cv_func_getloadavg+set}" = set; then
15861 echo $ECHO_N "(cached) $ECHO_C" >&6
15863 cat >conftest.
$ac_ext <<_ACEOF
15866 cat confdefs.h
>>conftest.
$ac_ext
15867 cat >>conftest.
$ac_ext <<_ACEOF
15868 /* end confdefs.h. */
15869 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15871 #define getloadavg innocuous_getloadavg
15873 /* System header to define __stub macros and hopefully few prototypes,
15874 which can conflict with char getloadavg (); below.
15875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15876 <limits.h> exists even on freestanding compilers. */
15879 # include <limits.h>
15881 # include <assert.h>
15886 /* Override any gcc2 internal prototype to avoid an error. */
15891 /* We use char because int might match the return type of a gcc2
15892 builtin and then its argument prototype would still apply. */
15893 char getloadavg ();
15894 /* The GNU C library defines this for functions which it implements
15895 to always fail with ENOSYS. Some functions are actually named
15896 something starting with __ and the normal name is an alias. */
15897 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15900 char (*f) () = getloadavg;
15909 return f != getloadavg;
15914 rm -f conftest.
$ac_objext conftest
$ac_exeext
15915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15916 (eval $ac_link) 2>conftest.er1
15918 grep -v '^ *+' conftest.er1
>conftest.err
15920 cat conftest.err
>&5
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); } &&
15923 { ac_try
='test -z "$ac_c_werror_flag"
15924 || test ! -s conftest.err'
15925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15926 (eval $ac_try) 2>&5
15928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929 (exit $ac_status); }; } &&
15930 { ac_try
='test -s conftest$ac_exeext'
15931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15932 (eval $ac_try) 2>&5
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); }; }; then
15936 ac_cv_func_getloadavg
=yes
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.
$ac_ext >&5
15941 ac_cv_func_getloadavg
=no
15943 rm -f conftest.err conftest.
$ac_objext \
15944 conftest
$ac_exeext conftest.
$ac_ext
15946 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15947 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
15948 if test $ac_cv_func_getloadavg = yes; then
15953 ) && ac_have_func
=yes
15955 # On HPUX9, an unprivileged user can get load averages through this function.
15957 for ac_func
in pstat_getdynamic
15959 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15960 echo "$as_me:$LINENO: checking for $ac_func" >&5
15961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15962 if eval "test \"\${$as_ac_var+set}\" = set"; then
15963 echo $ECHO_N "(cached) $ECHO_C" >&6
15965 cat >conftest.
$ac_ext <<_ACEOF
15968 cat confdefs.h
>>conftest.
$ac_ext
15969 cat >>conftest.
$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15973 #define $ac_func innocuous_$ac_func
15975 /* System header to define __stub macros and hopefully few prototypes,
15976 which can conflict with char $ac_func (); below.
15977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15978 <limits.h> exists even on freestanding compilers. */
15981 # include <limits.h>
15983 # include <assert.h>
15988 /* Override any gcc2 internal prototype to avoid an error. */
15993 /* We use char because int might match the return type of a gcc2
15994 builtin and then its argument prototype would still apply. */
15996 /* The GNU C library defines this for functions which it implements
15997 to always fail with ENOSYS. Some functions are actually named
15998 something starting with __ and the normal name is an alias. */
15999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16002 char (*f) () = $ac_func;
16011 return f != $ac_func;
16016 rm -f conftest.
$ac_objext conftest
$ac_exeext
16017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16018 (eval $ac_link) 2>conftest.er1
16020 grep -v '^ *+' conftest.er1
>conftest.err
16022 cat conftest.err
>&5
16023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16024 (exit $ac_status); } &&
16025 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16027 (eval $ac_try) 2>&5
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); }; } &&
16031 { ac_try
='test -s conftest$ac_exeext'
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; }; then
16037 eval "$as_ac_var=yes"
16039 echo "$as_me: failed program was:" >&5
16040 sed 's/^/| /' conftest.
$ac_ext >&5
16042 eval "$as_ac_var=no"
16044 rm -f conftest.err conftest.
$ac_objext \
16045 conftest
$ac_exeext conftest.
$ac_ext
16047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16048 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16049 if test `eval echo '${'$as_ac_var'}'` = yes; then
16050 cat >>confdefs.h
<<_ACEOF
16051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16058 # Solaris has libkstat which does not require root.
16060 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16061 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
16062 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16063 echo $ECHO_N "(cached) $ECHO_C" >&6
16065 ac_check_lib_save_LIBS
=$LIBS
16066 LIBS
="-lkstat $LIBS"
16067 cat >conftest.
$ac_ext <<_ACEOF
16070 cat confdefs.h
>>conftest.
$ac_ext
16071 cat >>conftest.
$ac_ext <<_ACEOF
16072 /* end confdefs.h. */
16074 /* Override any gcc2 internal prototype to avoid an error. */
16078 /* We use char because int might match the return type of a gcc2
16079 builtin and then its argument prototype would still apply. */
16080 char kstat_open ();
16089 rm -f conftest.
$ac_objext conftest
$ac_exeext
16090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16091 (eval $ac_link) 2>conftest.er1
16093 grep -v '^ *+' conftest.er1
>conftest.err
16095 cat conftest.err
>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); } &&
16098 { ac_try
='test -z "$ac_c_werror_flag"
16099 || test ! -s conftest.err'
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; } &&
16105 { ac_try
='test -s conftest$ac_exeext'
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ac_cv_lib_kstat_kstat_open
=yes
16113 echo "$as_me: failed program was:" >&5
16114 sed 's/^/| /' conftest.
$ac_ext >&5
16116 ac_cv_lib_kstat_kstat_open
=no
16118 rm -f conftest.err conftest.
$ac_objext \
16119 conftest
$ac_exeext conftest.
$ac_ext
16120 LIBS
=$ac_check_lib_save_LIBS
16122 echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16123 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
16124 if test $ac_cv_lib_kstat_kstat_open = yes; then
16125 cat >>confdefs.h
<<_ACEOF
16126 #define HAVE_LIBKSTAT 1
16129 LIBS
="-lkstat $LIBS"
16133 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
16135 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16136 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16137 # to get the right answer into the cache.
16138 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16139 if test $ac_have_func = no
; then
16140 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16141 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
16142 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 ac_check_lib_save_LIBS
=$LIBS
16147 cat >conftest.
$ac_ext <<_ACEOF
16150 cat confdefs.h
>>conftest.
$ac_ext
16151 cat >>conftest.
$ac_ext <<_ACEOF
16152 /* end confdefs.h. */
16154 /* Override any gcc2 internal prototype to avoid an error. */
16158 /* We use char because int might match the return type of a gcc2
16159 builtin and then its argument prototype would still apply. */
16169 rm -f conftest.
$ac_objext conftest
$ac_exeext
16170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16171 (eval $ac_link) 2>conftest.er1
16173 grep -v '^ *+' conftest.er1
>conftest.err
16175 cat conftest.err
>&5
16176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16177 (exit $ac_status); } &&
16178 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180 (eval $ac_try) 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); }; } &&
16184 { ac_try
='test -s conftest$ac_exeext'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16190 ac_cv_lib_elf_elf_begin
=yes
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.
$ac_ext >&5
16195 ac_cv_lib_elf_elf_begin
=no
16197 rm -f conftest.err conftest.
$ac_objext \
16198 conftest
$ac_exeext conftest.
$ac_ext
16199 LIBS
=$ac_check_lib_save_LIBS
16201 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16202 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
16203 if test $ac_cv_lib_elf_elf_begin = yes; then
16208 if test $ac_have_func = no
; then
16209 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16210 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
16211 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 ac_check_lib_save_LIBS
=$LIBS
16216 cat >conftest.
$ac_ext <<_ACEOF
16219 cat confdefs.h
>>conftest.
$ac_ext
16220 cat >>conftest.
$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16223 /* Override any gcc2 internal prototype to avoid an error. */
16227 /* We use char because int might match the return type of a gcc2
16228 builtin and then its argument prototype would still apply. */
16238 rm -f conftest.
$ac_objext conftest
$ac_exeext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16240 (eval $ac_link) 2>conftest.er1
16242 grep -v '^ *+' conftest.er1
>conftest.err
16244 cat conftest.err
>&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try
='test -s conftest$ac_exeext'
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_cv_lib_kvm_kvm_open
=yes
16261 echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.
$ac_ext >&5
16264 ac_cv_lib_kvm_kvm_open
=no
16266 rm -f conftest.err conftest.
$ac_objext \
16267 conftest
$ac_exeext conftest.
$ac_ext
16268 LIBS
=$ac_check_lib_save_LIBS
16270 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16271 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
16272 if test $ac_cv_lib_kvm_kvm_open = yes; then
16276 # Check for the 4.4BSD definition of getloadavg.
16277 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16278 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
16279 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 ac_check_lib_save_LIBS
=$LIBS
16283 LIBS
="-lutil $LIBS"
16284 cat >conftest.
$ac_ext <<_ACEOF
16287 cat confdefs.h
>>conftest.
$ac_ext
16288 cat >>conftest.
$ac_ext <<_ACEOF
16289 /* end confdefs.h. */
16291 /* Override any gcc2 internal prototype to avoid an error. */
16295 /* We use char because int might match the return type of a gcc2
16296 builtin and then its argument prototype would still apply. */
16297 char getloadavg ();
16306 rm -f conftest.
$ac_objext conftest
$ac_exeext
16307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16308 (eval $ac_link) 2>conftest.er1
16310 grep -v '^ *+' conftest.er1
>conftest.err
16312 cat conftest.err
>&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } &&
16315 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16317 (eval $ac_try) 2>&5
16319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16320 (exit $ac_status); }; } &&
16321 { ac_try
='test -s conftest$ac_exeext'
16322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16323 (eval $ac_try) 2>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 ac_cv_lib_util_getloadavg
=yes
16329 echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.
$ac_ext >&5
16332 ac_cv_lib_util_getloadavg
=no
16334 rm -f conftest.err conftest.
$ac_objext \
16335 conftest
$ac_exeext conftest.
$ac_ext
16336 LIBS
=$ac_check_lib_save_LIBS
16338 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16339 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
16340 if test $ac_cv_lib_util_getloadavg = yes; then
16341 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
16346 if test $ac_have_func = no
; then
16347 # There is a commonly available library for RS/6000 AIX.
16348 # Since it is not a standard part of AIX, it might be installed locally.
16349 ac_getloadavg_LIBS
=$LIBS
16350 LIBS
="-L/usr/local/lib $LIBS"
16351 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16352 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
16353 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16354 echo $ECHO_N "(cached) $ECHO_C" >&6
16356 ac_check_lib_save_LIBS
=$LIBS
16357 LIBS
="-lgetloadavg $LIBS"
16358 cat >conftest.
$ac_ext <<_ACEOF
16361 cat confdefs.h
>>conftest.
$ac_ext
16362 cat >>conftest.
$ac_ext <<_ACEOF
16363 /* end confdefs.h. */
16365 /* Override any gcc2 internal prototype to avoid an error. */
16369 /* We use char because int might match the return type of a gcc2
16370 builtin and then its argument prototype would still apply. */
16371 char getloadavg ();
16380 rm -f conftest.
$ac_objext conftest
$ac_exeext
16381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16382 (eval $ac_link) 2>conftest.er1
16384 grep -v '^ *+' conftest.er1
>conftest.err
16386 cat conftest.err
>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); } &&
16389 { ac_try
='test -z "$ac_c_werror_flag"
16390 || test ! -s conftest.err'
16391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16392 (eval $ac_try) 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); }; } &&
16396 { ac_try
='test -s conftest$ac_exeext'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_cv_lib_getloadavg_getloadavg
=yes
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.
$ac_ext >&5
16407 ac_cv_lib_getloadavg_getloadavg
=no
16409 rm -f conftest.err conftest.
$ac_objext \
16410 conftest
$ac_exeext conftest.
$ac_ext
16411 LIBS
=$ac_check_lib_save_LIBS
16413 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16414 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
16415 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16416 LIBS
="-lgetloadavg $LIBS"
16418 LIBS
=$ac_getloadavg_LIBS
16423 # Make sure it is really in the library, if we think we found it,
16424 # otherwise set up the replacement function.
16426 for ac_func
in getloadavg
16428 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16429 echo "$as_me:$LINENO: checking for $ac_func" >&5
16430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16431 if eval "test \"\${$as_ac_var+set}\" = set"; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 cat >conftest.
$ac_ext <<_ACEOF
16437 cat confdefs.h
>>conftest.
$ac_ext
16438 cat >>conftest.
$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16440 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16442 #define $ac_func innocuous_$ac_func
16444 /* System header to define __stub macros and hopefully few prototypes,
16445 which can conflict with char $ac_func (); below.
16446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16447 <limits.h> exists even on freestanding compilers. */
16450 # include <limits.h>
16452 # include <assert.h>
16457 /* Override any gcc2 internal prototype to avoid an error. */
16462 /* We use char because int might match the return type of a gcc2
16463 builtin and then its argument prototype would still apply. */
16465 /* The GNU C library defines this for functions which it implements
16466 to always fail with ENOSYS. Some functions are actually named
16467 something starting with __ and the normal name is an alias. */
16468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16471 char (*f) () = $ac_func;
16480 return f != $ac_func;
16485 rm -f conftest.
$ac_objext conftest
$ac_exeext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16487 (eval $ac_link) 2>conftest.er1
16489 grep -v '^ *+' conftest.er1
>conftest.err
16491 cat conftest.err
>&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } &&
16494 { ac_try
='test -z "$ac_c_werror_flag"
16495 || test ! -s conftest.err'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } &&
16501 { ac_try
='test -s conftest$ac_exeext'
16502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16503 (eval $ac_try) 2>&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; }; then
16507 eval "$as_ac_var=yes"
16509 echo "$as_me: failed program was:" >&5
16510 sed 's/^/| /' conftest.
$ac_ext >&5
16512 eval "$as_ac_var=no"
16514 rm -f conftest.err conftest.
$ac_objext \
16515 conftest
$ac_exeext conftest.
$ac_ext
16517 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16518 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16519 if test `eval echo '${'$as_ac_var'}'` = yes; then
16520 cat >>confdefs.h
<<_ACEOF
16521 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16526 "getloadavg.$ac_objext" | \
16527 *" getloadavg.$ac_objext" | \
16528 "getloadavg.$ac_objext "* | \
16529 *" getloadavg.$ac_objext "* ) ;;
16530 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
16534 cat >>confdefs.h
<<\_ACEOF
16535 #define C_GETLOADAVG 1
16538 # Figure out what our getloadavg.c needs.
16540 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16541 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16542 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16543 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16546 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16547 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16549 # Is the header compilable?
16550 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16551 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16552 cat >conftest.
$ac_ext <<_ACEOF
16555 cat confdefs.h
>>conftest.
$ac_ext
16556 cat >>conftest.
$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 $ac_includes_default
16559 #include <sys/dg_sys_info.h>
16561 rm -f conftest.
$ac_objext
16562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16563 (eval $ac_compile) 2>conftest.er1
16565 grep -v '^ *+' conftest.er1
>conftest.err
16567 cat conftest.err
>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } &&
16570 { ac_try
='test -z "$ac_c_werror_flag"
16571 || test ! -s conftest.err'
16572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16573 (eval $ac_try) 2>&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); }; } &&
16577 { ac_try
='test -s conftest.$ac_objext'
16578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16579 (eval $ac_try) 2>&5
16581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582 (exit $ac_status); }; }; then
16583 ac_header_compiler
=yes
16585 echo "$as_me: failed program was:" >&5
16586 sed 's/^/| /' conftest.
$ac_ext >&5
16588 ac_header_compiler
=no
16590 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16592 echo "${ECHO_T}$ac_header_compiler" >&6
16594 # Is the header present?
16595 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16596 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16597 cat >conftest.
$ac_ext <<_ACEOF
16600 cat confdefs.h
>>conftest.
$ac_ext
16601 cat >>conftest.
$ac_ext <<_ACEOF
16602 /* end confdefs.h. */
16603 #include <sys/dg_sys_info.h>
16605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16606 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16608 grep -v '^ *+' conftest.er1
>conftest.err
16610 cat conftest.err
>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } >/dev
/null
; then
16613 if test -s conftest.err
; then
16614 ac_cpp_err
=$ac_c_preproc_warn_flag
16615 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16622 if test -z "$ac_cpp_err"; then
16623 ac_header_preproc
=yes
16625 echo "$as_me: failed program was:" >&5
16626 sed 's/^/| /' conftest.
$ac_ext >&5
16628 ac_header_preproc
=no
16630 rm -f conftest.err conftest.
$ac_ext
16631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16632 echo "${ECHO_T}$ac_header_preproc" >&6
16634 # So? What about this header?
16635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16637 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16638 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16639 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16640 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16641 ac_header_preproc
=yes
16644 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16645 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16646 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16647 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16649 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16651 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16652 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16653 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16654 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16655 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16658 ## ------------------------------------------ ##
16659 ## Report this to the AC_PACKAGE_NAME lists. ##
16660 ## ------------------------------------------ ##
16663 sed "s/^/$as_me: WARNING: /" >&2
16666 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16667 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16668 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16669 echo $ECHO_N "(cached) $ECHO_C" >&6
16671 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
16673 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16674 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16677 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16680 cat >>confdefs.h
<<\_ACEOF
16685 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16686 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16687 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16690 ac_check_lib_save_LIBS
=$LIBS
16692 cat >conftest.
$ac_ext <<_ACEOF
16695 cat confdefs.h
>>conftest.
$ac_ext
16696 cat >>conftest.
$ac_ext <<_ACEOF
16697 /* end confdefs.h. */
16699 /* Override any gcc2 internal prototype to avoid an error. */
16703 /* We use char because int might match the return type of a gcc2
16704 builtin and then its argument prototype would still apply. */
16705 char dg_sys_info ();
16714 rm -f conftest.
$ac_objext conftest
$ac_exeext
16715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16716 (eval $ac_link) 2>conftest.er1
16718 grep -v '^ *+' conftest.er1
>conftest.err
16720 cat conftest.err
>&5
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
16723 { ac_try
='test -z "$ac_c_werror_flag"
16724 || test ! -s conftest.err'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try
='test -s conftest$ac_exeext'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_cv_lib_dgc_dg_sys_info
=yes
16738 echo "$as_me: failed program was:" >&5
16739 sed 's/^/| /' conftest.
$ac_ext >&5
16741 ac_cv_lib_dgc_dg_sys_info
=no
16743 rm -f conftest.err conftest.
$ac_objext \
16744 conftest
$ac_exeext conftest.
$ac_ext
16745 LIBS
=$ac_check_lib_save_LIBS
16747 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16748 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16749 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16750 cat >>confdefs.h
<<_ACEOF
16751 #define HAVE_LIBDGC 1
16762 if test "${ac_cv_header_locale_h+set}" = set; then
16763 echo "$as_me:$LINENO: checking for locale.h" >&5
16764 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16765 if test "${ac_cv_header_locale_h+set}" = set; then
16766 echo $ECHO_N "(cached) $ECHO_C" >&6
16768 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16769 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16771 # Is the header compilable?
16772 echo "$as_me:$LINENO: checking locale.h usability" >&5
16773 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16774 cat >conftest.
$ac_ext <<_ACEOF
16777 cat confdefs.h
>>conftest.
$ac_ext
16778 cat >>conftest.
$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16780 $ac_includes_default
16781 #include <locale.h>
16783 rm -f conftest.
$ac_objext
16784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16785 (eval $ac_compile) 2>conftest.er1
16787 grep -v '^ *+' conftest.er1
>conftest.err
16789 cat conftest.err
>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try
='test -z "$ac_c_werror_flag"
16793 || test ! -s conftest.err'
16794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16795 (eval $ac_try) 2>&5
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); }; } &&
16799 { ac_try
='test -s conftest.$ac_objext'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; }; then
16805 ac_header_compiler
=yes
16807 echo "$as_me: failed program was:" >&5
16808 sed 's/^/| /' conftest.
$ac_ext >&5
16810 ac_header_compiler
=no
16812 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16813 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16814 echo "${ECHO_T}$ac_header_compiler" >&6
16816 # Is the header present?
16817 echo "$as_me:$LINENO: checking locale.h presence" >&5
16818 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16819 cat >conftest.
$ac_ext <<_ACEOF
16822 cat confdefs.h
>>conftest.
$ac_ext
16823 cat >>conftest.
$ac_ext <<_ACEOF
16824 /* end confdefs.h. */
16825 #include <locale.h>
16827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16828 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16830 grep -v '^ *+' conftest.er1
>conftest.err
16832 cat conftest.err
>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } >/dev
/null
; then
16835 if test -s conftest.err
; then
16836 ac_cpp_err
=$ac_c_preproc_warn_flag
16837 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16844 if test -z "$ac_cpp_err"; then
16845 ac_header_preproc
=yes
16847 echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.
$ac_ext >&5
16850 ac_header_preproc
=no
16852 rm -f conftest.err conftest.
$ac_ext
16853 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16854 echo "${ECHO_T}$ac_header_preproc" >&6
16856 # So? What about this header?
16857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16859 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16860 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16861 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16862 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16863 ac_header_preproc
=yes
16866 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16867 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16868 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16869 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16870 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16871 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16872 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16873 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16874 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16875 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16876 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16877 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16880 ## ------------------------------------------ ##
16881 ## Report this to the AC_PACKAGE_NAME lists. ##
16882 ## ------------------------------------------ ##
16885 sed "s/^/$as_me: WARNING: /" >&2
16888 echo "$as_me:$LINENO: checking for locale.h" >&5
16889 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16890 if test "${ac_cv_header_locale_h+set}" = set; then
16891 echo $ECHO_N "(cached) $ECHO_C" >&6
16893 ac_cv_header_locale_h
=$ac_header_preproc
16895 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16896 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16902 for ac_func
in setlocale
16904 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16905 echo "$as_me:$LINENO: checking for $ac_func" >&5
16906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16907 if eval "test \"\${$as_ac_var+set}\" = set"; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 cat >conftest.
$ac_ext <<_ACEOF
16913 cat confdefs.h
>>conftest.
$ac_ext
16914 cat >>conftest.
$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16918 #define $ac_func innocuous_$ac_func
16920 /* System header to define __stub macros and hopefully few prototypes,
16921 which can conflict with char $ac_func (); below.
16922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16923 <limits.h> exists even on freestanding compilers. */
16926 # include <limits.h>
16928 # include <assert.h>
16933 /* Override any gcc2 internal prototype to avoid an error. */
16938 /* We use char because int might match the return type of a gcc2
16939 builtin and then its argument prototype would still apply. */
16941 /* The GNU C library defines this for functions which it implements
16942 to always fail with ENOSYS. Some functions are actually named
16943 something starting with __ and the normal name is an alias. */
16944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16947 char (*f) () = $ac_func;
16956 return f != $ac_func;
16961 rm -f conftest.
$ac_objext conftest
$ac_exeext
16962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16963 (eval $ac_link) 2>conftest.er1
16965 grep -v '^ *+' conftest.er1
>conftest.err
16967 cat conftest.err
>&5
16968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969 (exit $ac_status); } &&
16970 { ac_try
='test -z "$ac_c_werror_flag"
16971 || test ! -s conftest.err'
16972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16973 (eval $ac_try) 2>&5
16975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16976 (exit $ac_status); }; } &&
16977 { ac_try
='test -s conftest$ac_exeext'
16978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16979 (eval $ac_try) 2>&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); }; }; then
16983 eval "$as_ac_var=yes"
16985 echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.
$ac_ext >&5
16988 eval "$as_ac_var=no"
16990 rm -f conftest.err conftest.
$ac_objext \
16991 conftest
$ac_exeext conftest.
$ac_ext
16993 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16994 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16995 if test `eval echo '${'$as_ac_var'}'` = yes; then
16996 cat >>confdefs.h
<<_ACEOF
16997 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17004 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17005 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17006 # Irix 4.0.5F has the header but not the library.
17007 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
17010 cat >>confdefs.h
<<\_ACEOF
17016 if test $ac_have_func = no
; then
17017 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17018 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17019 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17020 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17021 echo $ECHO_N "(cached) $ECHO_C" >&6
17023 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17024 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17026 # Is the header compilable?
17027 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17028 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
17029 cat >conftest.
$ac_ext <<_ACEOF
17032 cat confdefs.h
>>conftest.
$ac_ext
17033 cat >>conftest.
$ac_ext <<_ACEOF
17034 /* end confdefs.h. */
17035 $ac_includes_default
17036 #include <inq_stats/cpustats.h>
17038 rm -f conftest.
$ac_objext
17039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17040 (eval $ac_compile) 2>conftest.er1
17042 grep -v '^ *+' conftest.er1
>conftest.err
17044 cat conftest.err
>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
17047 { ac_try
='test -z "$ac_c_werror_flag"
17048 || test ! -s conftest.err'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try
='test -s conftest.$ac_objext'
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 ac_header_compiler
=yes
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.
$ac_ext >&5
17065 ac_header_compiler
=no
17067 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17068 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17069 echo "${ECHO_T}$ac_header_compiler" >&6
17071 # Is the header present?
17072 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17073 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
17074 cat >conftest.
$ac_ext <<_ACEOF
17077 cat confdefs.h
>>conftest.
$ac_ext
17078 cat >>conftest.
$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17080 #include <inq_stats/cpustats.h>
17082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17083 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17085 grep -v '^ *+' conftest.er1
>conftest.err
17087 cat conftest.err
>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } >/dev
/null
; then
17090 if test -s conftest.err
; then
17091 ac_cpp_err
=$ac_c_preproc_warn_flag
17092 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17099 if test -z "$ac_cpp_err"; then
17100 ac_header_preproc
=yes
17102 echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.
$ac_ext >&5
17105 ac_header_preproc
=no
17107 rm -f conftest.err conftest.
$ac_ext
17108 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17109 echo "${ECHO_T}$ac_header_preproc" >&6
17111 # So? What about this header?
17112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17114 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17115 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17117 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17118 ac_header_preproc
=yes
17121 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17122 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17123 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17124 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17125 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17126 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17127 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17128 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17129 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17130 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17131 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17132 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17135 ## ------------------------------------------ ##
17136 ## Report this to the AC_PACKAGE_NAME lists. ##
17137 ## ------------------------------------------ ##
17140 sed "s/^/$as_me: WARNING: /" >&2
17143 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17144 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17145 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
17150 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17151 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17154 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17157 cat >>confdefs.h
<<\_ACEOF
17162 cat >>confdefs.h
<<\_ACEOF
17171 if test $ac_have_func = no
; then
17172 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17173 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17174 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17175 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17176 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17179 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17181 # Is the header compilable?
17182 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17183 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
17184 cat >conftest.
$ac_ext <<_ACEOF
17187 cat confdefs.h
>>conftest.
$ac_ext
17188 cat >>conftest.
$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 $ac_includes_default
17191 #include <sys/cpustats.h>
17193 rm -f conftest.
$ac_objext
17194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17195 (eval $ac_compile) 2>conftest.er1
17197 grep -v '^ *+' conftest.er1
>conftest.err
17199 cat conftest.err
>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } &&
17202 { ac_try
='test -z "$ac_c_werror_flag"
17203 || test ! -s conftest.err'
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; } &&
17209 { ac_try
='test -s conftest.$ac_objext'
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 ac_header_compiler
=yes
17217 echo "$as_me: failed program was:" >&5
17218 sed 's/^/| /' conftest.
$ac_ext >&5
17220 ac_header_compiler
=no
17222 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17223 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17224 echo "${ECHO_T}$ac_header_compiler" >&6
17226 # Is the header present?
17227 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17228 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
17229 cat >conftest.
$ac_ext <<_ACEOF
17232 cat confdefs.h
>>conftest.
$ac_ext
17233 cat >>conftest.
$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 #include <sys/cpustats.h>
17237 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17238 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17240 grep -v '^ *+' conftest.er1
>conftest.err
17242 cat conftest.err
>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } >/dev
/null
; then
17245 if test -s conftest.err
; then
17246 ac_cpp_err
=$ac_c_preproc_warn_flag
17247 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17254 if test -z "$ac_cpp_err"; then
17255 ac_header_preproc
=yes
17257 echo "$as_me: failed program was:" >&5
17258 sed 's/^/| /' conftest.
$ac_ext >&5
17260 ac_header_preproc
=no
17262 rm -f conftest.err conftest.
$ac_ext
17263 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17264 echo "${ECHO_T}$ac_header_preproc" >&6
17266 # So? What about this header?
17267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17269 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17270 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17271 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17272 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17273 ac_header_preproc
=yes
17276 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17277 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17278 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17279 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17280 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17281 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17282 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17283 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17284 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17285 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17286 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17287 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17290 ## ------------------------------------------ ##
17291 ## Report this to the AC_PACKAGE_NAME lists. ##
17292 ## ------------------------------------------ ##
17295 sed "s/^/$as_me: WARNING: /" >&2
17298 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17299 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17300 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17301 echo $ECHO_N "(cached) $ECHO_C" >&6
17303 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
17305 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17306 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17309 if test $ac_cv_header_sys_cpustats_h = yes; then
17310 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
17319 if test $ac_have_func = no
; then
17321 for ac_header
in mach
/mach.h
17323 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17324 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17325 echo "$as_me:$LINENO: checking for $ac_header" >&5
17326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17328 echo $ECHO_N "(cached) $ECHO_C" >&6
17330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17333 # Is the header compilable?
17334 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17336 cat >conftest.
$ac_ext <<_ACEOF
17339 cat confdefs.h
>>conftest.
$ac_ext
17340 cat >>conftest.
$ac_ext <<_ACEOF
17341 /* end confdefs.h. */
17342 $ac_includes_default
17343 #include <$ac_header>
17345 rm -f conftest.
$ac_objext
17346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17347 (eval $ac_compile) 2>conftest.er1
17349 grep -v '^ *+' conftest.er1
>conftest.err
17351 cat conftest.err
>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); } &&
17354 { ac_try
='test -z "$ac_c_werror_flag"
17355 || test ! -s conftest.err'
17356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17357 (eval $ac_try) 2>&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); }; } &&
17361 { ac_try
='test -s conftest.$ac_objext'
17362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17363 (eval $ac_try) 2>&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); }; }; then
17367 ac_header_compiler
=yes
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.
$ac_ext >&5
17372 ac_header_compiler
=no
17374 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17375 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17376 echo "${ECHO_T}$ac_header_compiler" >&6
17378 # Is the header present?
17379 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17381 cat >conftest.
$ac_ext <<_ACEOF
17384 cat confdefs.h
>>conftest.
$ac_ext
17385 cat >>conftest.
$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 #include <$ac_header>
17389 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17390 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17392 grep -v '^ *+' conftest.er1
>conftest.err
17394 cat conftest.err
>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); } >/dev
/null
; then
17397 if test -s conftest.err
; then
17398 ac_cpp_err
=$ac_c_preproc_warn_flag
17399 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17406 if test -z "$ac_cpp_err"; then
17407 ac_header_preproc
=yes
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.
$ac_ext >&5
17412 ac_header_preproc
=no
17414 rm -f conftest.err conftest.
$ac_ext
17415 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17416 echo "${ECHO_T}$ac_header_preproc" >&6
17418 # So? What about this header?
17419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17425 ac_header_preproc
=yes
17428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17442 ## ------------------------------------------ ##
17443 ## Report this to the AC_PACKAGE_NAME lists. ##
17444 ## ------------------------------------------ ##
17447 sed "s/^/$as_me: WARNING: /" >&2
17450 echo "$as_me:$LINENO: checking for $ac_header" >&5
17451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17453 echo $ECHO_N "(cached) $ECHO_C" >&6
17455 eval "$as_ac_Header=\$ac_header_preproc"
17457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17461 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17462 cat >>confdefs.h
<<_ACEOF
17463 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17473 for ac_header
in nlist.h
17475 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17477 echo "$as_me:$LINENO: checking for $ac_header" >&5
17478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17485 # Is the header compilable?
17486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17488 cat >conftest.
$ac_ext <<_ACEOF
17491 cat confdefs.h
>>conftest.
$ac_ext
17492 cat >>conftest.
$ac_ext <<_ACEOF
17493 /* end confdefs.h. */
17494 $ac_includes_default
17495 #include <$ac_header>
17497 rm -f conftest.
$ac_objext
17498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17499 (eval $ac_compile) 2>conftest.er1
17501 grep -v '^ *+' conftest.er1
>conftest.err
17503 cat conftest.err
>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); } &&
17506 { ac_try
='test -z "$ac_c_werror_flag"
17507 || test ! -s conftest.err'
17508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509 (eval $ac_try) 2>&5
17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512 (exit $ac_status); }; } &&
17513 { ac_try
='test -s conftest.$ac_objext'
17514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17515 (eval $ac_try) 2>&5
17517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17518 (exit $ac_status); }; }; then
17519 ac_header_compiler
=yes
17521 echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.
$ac_ext >&5
17524 ac_header_compiler
=no
17526 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17528 echo "${ECHO_T}$ac_header_compiler" >&6
17530 # Is the header present?
17531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17533 cat >conftest.
$ac_ext <<_ACEOF
17536 cat confdefs.h
>>conftest.
$ac_ext
17537 cat >>conftest.
$ac_ext <<_ACEOF
17538 /* end confdefs.h. */
17539 #include <$ac_header>
17541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17542 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17544 grep -v '^ *+' conftest.er1
>conftest.err
17546 cat conftest.err
>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } >/dev
/null
; then
17549 if test -s conftest.err
; then
17550 ac_cpp_err
=$ac_c_preproc_warn_flag
17551 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17558 if test -z "$ac_cpp_err"; then
17559 ac_header_preproc
=yes
17561 echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.
$ac_ext >&5
17564 ac_header_preproc
=no
17566 rm -f conftest.err conftest.
$ac_ext
17567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17568 echo "${ECHO_T}$ac_header_preproc" >&6
17570 # So? What about this header?
17571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17577 ac_header_preproc
=yes
17580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17587 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17594 ## ------------------------------------------ ##
17595 ## Report this to the AC_PACKAGE_NAME lists. ##
17596 ## ------------------------------------------ ##
17599 sed "s/^/$as_me: WARNING: /" >&2
17602 echo "$as_me:$LINENO: checking for $ac_header" >&5
17603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17605 echo $ECHO_N "(cached) $ECHO_C" >&6
17607 eval "$as_ac_Header=\$ac_header_preproc"
17609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17614 cat >>confdefs.h
<<_ACEOF
17615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17617 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17618 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17619 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17620 echo $ECHO_N "(cached) $ECHO_C" >&6
17622 cat >conftest.
$ac_ext <<_ACEOF
17625 cat confdefs.h
>>conftest.
$ac_ext
17626 cat >>conftest.
$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17633 static struct nlist ac_aggr;
17634 if (ac_aggr.n_un.n_name)
17640 rm -f conftest.
$ac_objext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17642 (eval $ac_compile) 2>conftest.er1
17644 grep -v '^ *+' conftest.er1
>conftest.err
17646 cat conftest.err
>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
17649 { ac_try
='test -z "$ac_c_werror_flag"
17650 || test ! -s conftest.err'
17651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652 (eval $ac_try) 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try
='test -s conftest.$ac_objext'
17657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658 (eval $ac_try) 2>&5
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); }; }; then
17662 ac_cv_member_struct_nlist_n_un_n_name
=yes
17664 echo "$as_me: failed program was:" >&5
17665 sed 's/^/| /' conftest.
$ac_ext >&5
17667 cat >conftest.
$ac_ext <<_ACEOF
17670 cat confdefs.h
>>conftest.
$ac_ext
17671 cat >>conftest.
$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17678 static struct nlist ac_aggr;
17679 if (sizeof ac_aggr.n_un.n_name)
17685 rm -f conftest.
$ac_objext
17686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17687 (eval $ac_compile) 2>conftest.er1
17689 grep -v '^ *+' conftest.er1
>conftest.err
17691 cat conftest.err
>&5
17692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693 (exit $ac_status); } &&
17694 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try
='test -s conftest.$ac_objext'
17701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_cv_member_struct_nlist_n_un_n_name
=yes
17708 echo "$as_me: failed program was:" >&5
17709 sed 's/^/| /' conftest.
$ac_ext >&5
17711 ac_cv_member_struct_nlist_n_un_n_name
=no
17713 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17715 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17717 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17718 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17719 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17721 cat >>confdefs.h
<<_ACEOF
17722 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17726 cat >>confdefs.h
<<\_ACEOF
17727 #define NLIST_NAME_UNION 1
17741 # Some definitions of getloadavg require that the program be installed setgid.
17742 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17743 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17744 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17747 cat >conftest.
$ac_ext <<_ACEOF
17750 cat confdefs.h
>>conftest.
$ac_ext
17751 cat >>conftest.
$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17754 #ifdef LDAV_PRIVILEGED
17755 Yowza Am I SETGID yet
17758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17759 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17760 ac_cv_func_getloadavg_setgid
=yes
17762 ac_cv_func_getloadavg_setgid
=no
17767 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17768 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17769 if test $ac_cv_func_getloadavg_setgid = yes; then
17772 cat >>confdefs.h
<<\_ACEOF
17773 #define GETLOADAVG_PRIVILEGED 1
17780 if test $ac_cv_func_getloadavg_setgid = yes; then
17781 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17782 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17783 if test "${ac_cv_group_kmem+set}" = set; then
17784 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17787 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17788 # If we got an error (system does not support symlinks), try without -L.
17789 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17790 ac_cv_group_kmem
=`echo $ac_ls_output \
17791 | sed -ne 's/[ ][ ]*/ /g;
17792 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17796 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17797 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17798 KMEM_GROUP
=$ac_cv_group_kmem
17800 if test "x$ac_save_LIBS" = x
; then
17801 GETLOADAVG_LIBS
=$LIBS
17803 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17809 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17810 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17811 if test "${ac_cv_sys_largefile_source+set}" = set; then
17812 echo $ECHO_N "(cached) $ECHO_C" >&6
17815 ac_cv_sys_largefile_source
=no
17816 cat >conftest.
$ac_ext <<_ACEOF
17819 cat confdefs.h
>>conftest.
$ac_ext
17820 cat >>conftest.
$ac_ext <<_ACEOF
17821 /* end confdefs.h. */
17831 rm -f conftest.
$ac_objext
17832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17833 (eval $ac_compile) 2>conftest.er1
17835 grep -v '^ *+' conftest.er1
>conftest.err
17837 cat conftest.err
>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); } &&
17840 { ac_try
='test -z "$ac_c_werror_flag"
17841 || test ! -s conftest.err'
17842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17843 (eval $ac_try) 2>&5
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); }; } &&
17847 { ac_try
='test -s conftest.$ac_objext'
17848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17849 (eval $ac_try) 2>&5
17851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852 (exit $ac_status); }; }; then
17855 echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.
$ac_ext >&5
17859 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17860 cat >conftest.
$ac_ext <<_ACEOF
17863 cat confdefs.h
>>conftest.
$ac_ext
17864 cat >>conftest.
$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17866 #define _LARGEFILE_SOURCE 1
17876 rm -f conftest.
$ac_objext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17878 (eval $ac_compile) 2>conftest.er1
17880 grep -v '^ *+' conftest.er1
>conftest.err
17882 cat conftest.err
>&5
17883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884 (exit $ac_status); } &&
17885 { ac_try
='test -z "$ac_c_werror_flag"
17886 || test ! -s conftest.err'
17887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888 (eval $ac_try) 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try
='test -s conftest.$ac_objext'
17893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894 (eval $ac_try) 2>&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); }; }; then
17898 ac_cv_sys_largefile_source
=1; break
17900 echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.
$ac_ext >&5
17904 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17908 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17909 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17910 if test "$ac_cv_sys_largefile_source" != no
; then
17912 cat >>confdefs.h
<<_ACEOF
17913 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17919 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17920 # in glibc 2.1.3, but that breaks too many other things.
17921 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17922 echo "$as_me:$LINENO: checking for fseeko" >&5
17923 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
17924 if test "${ac_cv_func_fseeko+set}" = set; then
17925 echo $ECHO_N "(cached) $ECHO_C" >&6
17927 cat >conftest.
$ac_ext <<_ACEOF
17930 cat confdefs.h
>>conftest.
$ac_ext
17931 cat >>conftest.
$ac_ext <<_ACEOF
17932 /* end confdefs.h. */
17937 return fseeko && fseeko (stdin, 0, 0);
17942 rm -f conftest.
$ac_objext conftest
$ac_exeext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17944 (eval $ac_link) 2>conftest.er1
17946 grep -v '^ *+' conftest.er1
>conftest.err
17948 cat conftest.err
>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } &&
17951 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try
='test -s conftest$ac_exeext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_cv_func_fseeko
=yes
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.
$ac_ext >&5
17968 ac_cv_func_fseeko
=no
17970 rm -f conftest.err conftest.
$ac_objext \
17971 conftest
$ac_exeext conftest.
$ac_ext
17973 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
17974 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
17975 if test $ac_cv_func_fseeko = yes; then
17977 cat >>confdefs.h
<<\_ACEOF
17978 #define HAVE_FSEEKO 1
17984 # Configure getopt.
17985 # getopt.m4 serial 10
17987 # The getopt module assume you want GNU getopt, with getopt_long etc,
17988 # rather than vanilla POSIX getopt. This means your your code should
17989 # always include <getopt.h> for the getopt prototypes.
18001 # Prerequisites of lib/getopt*.
18008 for ac_header
in getopt.h
18010 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18012 echo "$as_me:$LINENO: checking for $ac_header" >&5
18013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18015 echo $ECHO_N "(cached) $ECHO_C" >&6
18017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18020 # Is the header compilable?
18021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18023 cat >conftest.
$ac_ext <<_ACEOF
18026 cat confdefs.h
>>conftest.
$ac_ext
18027 cat >>conftest.
$ac_ext <<_ACEOF
18028 /* end confdefs.h. */
18029 $ac_includes_default
18030 #include <$ac_header>
18032 rm -f conftest.
$ac_objext
18033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18034 (eval $ac_compile) 2>conftest.er1
18036 grep -v '^ *+' conftest.er1
>conftest.err
18038 cat conftest.err
>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); } &&
18041 { ac_try
='test -z "$ac_c_werror_flag"
18042 || test ! -s conftest.err'
18043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18044 (eval $ac_try) 2>&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); }; } &&
18048 { ac_try
='test -s conftest.$ac_objext'
18049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18050 (eval $ac_try) 2>&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); }; }; then
18054 ac_header_compiler
=yes
18056 echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.
$ac_ext >&5
18059 ac_header_compiler
=no
18061 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18063 echo "${ECHO_T}$ac_header_compiler" >&6
18065 # Is the header present?
18066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18068 cat >conftest.
$ac_ext <<_ACEOF
18071 cat confdefs.h
>>conftest.
$ac_ext
18072 cat >>conftest.
$ac_ext <<_ACEOF
18073 /* end confdefs.h. */
18074 #include <$ac_header>
18076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18077 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18079 grep -v '^ *+' conftest.er1
>conftest.err
18081 cat conftest.err
>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } >/dev
/null
; then
18084 if test -s conftest.err
; then
18085 ac_cpp_err
=$ac_c_preproc_warn_flag
18086 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18093 if test -z "$ac_cpp_err"; then
18094 ac_header_preproc
=yes
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.
$ac_ext >&5
18099 ac_header_preproc
=no
18101 rm -f conftest.err conftest.
$ac_ext
18102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18103 echo "${ECHO_T}$ac_header_preproc" >&6
18105 # So? What about this header?
18106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18112 ac_header_preproc
=yes
18115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18129 ## ------------------------------------------ ##
18130 ## Report this to the AC_PACKAGE_NAME lists. ##
18131 ## ------------------------------------------ ##
18134 sed "s/^/$as_me: WARNING: /" >&2
18137 echo "$as_me:$LINENO: checking for $ac_header" >&5
18138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18140 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 eval "$as_ac_Header=\$ac_header_preproc"
18144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18149 cat >>confdefs.h
<<_ACEOF
18150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18159 if test -z "$GETOPT_H"; then
18161 for ac_func
in getopt_long_only
18163 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18164 echo "$as_me:$LINENO: checking for $ac_func" >&5
18165 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18166 if eval "test \"\${$as_ac_var+set}\" = set"; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18169 cat >conftest.
$ac_ext <<_ACEOF
18172 cat confdefs.h
>>conftest.
$ac_ext
18173 cat >>conftest.
$ac_ext <<_ACEOF
18174 /* end confdefs.h. */
18175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18177 #define $ac_func innocuous_$ac_func
18179 /* System header to define __stub macros and hopefully few prototypes,
18180 which can conflict with char $ac_func (); below.
18181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18182 <limits.h> exists even on freestanding compilers. */
18185 # include <limits.h>
18187 # include <assert.h>
18192 /* Override any gcc2 internal prototype to avoid an error. */
18197 /* We use char because int might match the return type of a gcc2
18198 builtin and then its argument prototype would still apply. */
18200 /* The GNU C library defines this for functions which it implements
18201 to always fail with ENOSYS. Some functions are actually named
18202 something starting with __ and the normal name is an alias. */
18203 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18206 char (*f) () = $ac_func;
18215 return f != $ac_func;
18220 rm -f conftest.
$ac_objext conftest
$ac_exeext
18221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18222 (eval $ac_link) 2>conftest.er1
18224 grep -v '^ *+' conftest.er1
>conftest.err
18226 cat conftest.err
>&5
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); } &&
18229 { ac_try
='test -z "$ac_c_werror_flag"
18230 || test ! -s conftest.err'
18231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18232 (eval $ac_try) 2>&5
18234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235 (exit $ac_status); }; } &&
18236 { ac_try
='test -s conftest$ac_exeext'
18237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18238 (eval $ac_try) 2>&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; }; then
18242 eval "$as_ac_var=yes"
18244 echo "$as_me: failed program was:" >&5
18245 sed 's/^/| /' conftest.
$ac_ext >&5
18247 eval "$as_ac_var=no"
18249 rm -f conftest.err conftest.
$ac_objext \
18250 conftest
$ac_exeext conftest.
$ac_ext
18252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18254 if test `eval echo '${'$as_ac_var'}'` = yes; then
18255 cat >>confdefs.h
<<_ACEOF
18256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18266 if test -z "$GETOPT_H"; then
18267 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18268 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
18269 if test "${ac_cv_have_decl_optreset+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 cat >conftest.
$ac_ext <<_ACEOF
18275 cat confdefs.h
>>conftest.
$ac_ext
18276 cat >>conftest.
$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18278 #include <getopt.h>
18284 char *p = (char *) optreset;
18291 rm -f conftest.
$ac_objext
18292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18293 (eval $ac_compile) 2>conftest.er1
18295 grep -v '^ *+' conftest.er1
>conftest.err
18297 cat conftest.err
>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
18300 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; } &&
18306 { ac_try
='test -s conftest.$ac_objext'
18307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18308 (eval $ac_try) 2>&5
18310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18311 (exit $ac_status); }; }; then
18312 ac_cv_have_decl_optreset
=yes
18314 echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.
$ac_ext >&5
18317 ac_cv_have_decl_optreset
=no
18319 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18321 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18322 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
18323 if test $ac_cv_have_decl_optreset = yes; then
18329 if test -z "$GETOPT_H"; then
18330 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18331 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
18332 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18333 echo $ECHO_N "(cached) $ECHO_C" >&6
18335 if test "$cross_compiling" = yes; then
18336 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18337 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
18338 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18339 echo $ECHO_N "(cached) $ECHO_C" >&6
18341 cat >conftest.
$ac_ext <<_ACEOF
18344 cat confdefs.h
>>conftest.
$ac_ext
18345 cat >>conftest.
$ac_ext <<_ACEOF
18346 /* end confdefs.h. */
18347 #include <getopt.h>
18352 #ifndef getopt_clip
18353 char *p = (char *) getopt_clip;
18360 rm -f conftest.
$ac_objext
18361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18362 (eval $ac_compile) 2>conftest.er1
18364 grep -v '^ *+' conftest.er1
>conftest.err
18366 cat conftest.err
>&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } &&
18369 { ac_try
='test -z "$ac_c_werror_flag"
18370 || test ! -s conftest.err'
18371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18372 (eval $ac_try) 2>&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); }; } &&
18376 { ac_try
='test -s conftest.$ac_objext'
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; }; then
18382 ac_cv_have_decl_getopt_clip
=yes
18384 echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.
$ac_ext >&5
18387 ac_cv_have_decl_getopt_clip
=no
18389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18391 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18392 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
18393 if test $ac_cv_have_decl_getopt_clip = yes; then
18394 gl_cv_func_gnu_getopt
=no
18396 gl_cv_func_gnu_getopt
=yes
18400 cat >conftest.
$ac_ext <<_ACEOF
18403 cat confdefs.h
>>conftest.
$ac_ext
18404 cat >>conftest.
$ac_ext <<_ACEOF
18405 /* end confdefs.h. */
18406 #include <getopt.h>
18412 myargv[0] = "conftest";
18415 return getopt (2, myargv, "+a") != '?';
18421 rm -f conftest
$ac_exeext
18422 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18423 (eval $ac_link) 2>&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; }; then
18432 gl_cv_func_gnu_getopt
=yes
18434 echo "$as_me: program exited with status $ac_status" >&5
18435 echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.
$ac_ext >&5
18438 ( exit $ac_status )
18439 gl_cv_func_gnu_getopt
=no
18441 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18444 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18445 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
18446 if test "$gl_cv_func_gnu_getopt" = "no"; then
18453 if test -n "$GETOPT_H"; then
18458 cat >>confdefs.h
<<\_ACEOF
18459 #define __GETOPT_PREFIX rpl_
18465 GETOPTOBJS
='getopt.o getopt1.o'
18472 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18473 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
18474 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18475 echo $ECHO_N "(cached) $ECHO_C" >&6
18477 # Use it with a single arg.
18478 cat >conftest.
$ac_ext <<_ACEOF
18481 cat confdefs.h
>>conftest.
$ac_ext
18482 cat >>conftest.
$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18484 $ac_includes_default
18493 rm -f conftest.
$ac_objext
18494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18495 (eval $ac_compile) 2>conftest.er1
18497 grep -v '^ *+' conftest.er1
>conftest.err
18499 cat conftest.err
>&5
18500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18501 (exit $ac_status); } &&
18502 { ac_try
='test -z "$ac_c_werror_flag"
18503 || test ! -s conftest.err'
18504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18505 (eval $ac_try) 2>&5
18507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18508 (exit $ac_status); }; } &&
18509 { ac_try
='test -s conftest.$ac_objext'
18510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18511 (eval $ac_try) 2>&5
18513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18514 (exit $ac_status); }; }; then
18515 ac_cv_func_getpgrp_void
=no
18517 echo "$as_me: failed program was:" >&5
18518 sed 's/^/| /' conftest.
$ac_ext >&5
18520 ac_cv_func_getpgrp_void
=yes
18522 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18525 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18526 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
18527 if test $ac_cv_func_getpgrp_void = yes; then
18529 cat >>confdefs.h
<<\_ACEOF
18530 #define GETPGRP_VOID 1
18537 for ac_func
in strftime
18539 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18540 echo "$as_me:$LINENO: checking for $ac_func" >&5
18541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18542 if eval "test \"\${$as_ac_var+set}\" = set"; then
18543 echo $ECHO_N "(cached) $ECHO_C" >&6
18545 cat >conftest.
$ac_ext <<_ACEOF
18548 cat confdefs.h
>>conftest.
$ac_ext
18549 cat >>conftest.
$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18553 #define $ac_func innocuous_$ac_func
18555 /* System header to define __stub macros and hopefully few prototypes,
18556 which can conflict with char $ac_func (); below.
18557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18558 <limits.h> exists even on freestanding compilers. */
18561 # include <limits.h>
18563 # include <assert.h>
18568 /* Override any gcc2 internal prototype to avoid an error. */
18573 /* We use char because int might match the return type of a gcc2
18574 builtin and then its argument prototype would still apply. */
18576 /* The GNU C library defines this for functions which it implements
18577 to always fail with ENOSYS. Some functions are actually named
18578 something starting with __ and the normal name is an alias. */
18579 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18582 char (*f) () = $ac_func;
18591 return f != $ac_func;
18596 rm -f conftest.
$ac_objext conftest
$ac_exeext
18597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18598 (eval $ac_link) 2>conftest.er1
18600 grep -v '^ *+' conftest.er1
>conftest.err
18602 cat conftest.err
>&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try
='test -z "$ac_c_werror_flag"
18606 || test ! -s conftest.err'
18607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18608 (eval $ac_try) 2>&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); }; } &&
18612 { ac_try
='test -s conftest$ac_exeext'
18613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18614 (eval $ac_try) 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 eval "$as_ac_var=yes"
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.
$ac_ext >&5
18623 eval "$as_ac_var=no"
18625 rm -f conftest.err conftest.
$ac_objext \
18626 conftest
$ac_exeext conftest.
$ac_ext
18628 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18629 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18630 if test `eval echo '${'$as_ac_var'}'` = yes; then
18631 cat >>confdefs.h
<<_ACEOF
18632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18636 # strftime is in -lintl on SCO UNIX.
18637 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18638 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18639 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 ac_check_lib_save_LIBS
=$LIBS
18643 LIBS
="-lintl $LIBS"
18644 cat >conftest.
$ac_ext <<_ACEOF
18647 cat confdefs.h
>>conftest.
$ac_ext
18648 cat >>conftest.
$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18651 /* Override any gcc2 internal prototype to avoid an error. */
18655 /* We use char because int might match the return type of a gcc2
18656 builtin and then its argument prototype would still apply. */
18666 rm -f conftest.
$ac_objext conftest
$ac_exeext
18667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18668 (eval $ac_link) 2>conftest.er1
18670 grep -v '^ *+' conftest.er1
>conftest.err
18672 cat conftest.err
>&5
18673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18674 (exit $ac_status); } &&
18675 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18677 (eval $ac_try) 2>&5
18679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18680 (exit $ac_status); }; } &&
18681 { ac_try
='test -s conftest$ac_exeext'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; }; then
18687 ac_cv_lib_intl_strftime
=yes
18689 echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.
$ac_ext >&5
18692 ac_cv_lib_intl_strftime
=no
18694 rm -f conftest.err conftest.
$ac_objext \
18695 conftest
$ac_exeext conftest.
$ac_ext
18696 LIBS
=$ac_check_lib_save_LIBS
18698 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18699 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18700 if test $ac_cv_lib_intl_strftime = yes; then
18701 cat >>confdefs.h
<<\_ACEOF
18702 #define HAVE_STRFTIME 1
18705 LIBS
="-lintl $LIBS"
18714 for ac_func
in grantpt
18716 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18717 echo "$as_me:$LINENO: checking for $ac_func" >&5
18718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18719 if eval "test \"\${$as_ac_var+set}\" = set"; then
18720 echo $ECHO_N "(cached) $ECHO_C" >&6
18722 cat >conftest.
$ac_ext <<_ACEOF
18725 cat confdefs.h
>>conftest.
$ac_ext
18726 cat >>conftest.
$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18730 #define $ac_func innocuous_$ac_func
18732 /* System header to define __stub macros and hopefully few prototypes,
18733 which can conflict with char $ac_func (); below.
18734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18735 <limits.h> exists even on freestanding compilers. */
18738 # include <limits.h>
18740 # include <assert.h>
18745 /* Override any gcc2 internal prototype to avoid an error. */
18750 /* We use char because int might match the return type of a gcc2
18751 builtin and then its argument prototype would still apply. */
18753 /* The GNU C library defines this for functions which it implements
18754 to always fail with ENOSYS. Some functions are actually named
18755 something starting with __ and the normal name is an alias. */
18756 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18759 char (*f) () = $ac_func;
18768 return f != $ac_func;
18773 rm -f conftest.
$ac_objext conftest
$ac_exeext
18774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18775 (eval $ac_link) 2>conftest.er1
18777 grep -v '^ *+' conftest.er1
>conftest.err
18779 cat conftest.err
>&5
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); } &&
18782 { ac_try
='test -z "$ac_c_werror_flag"
18783 || test ! -s conftest.err'
18784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18785 (eval $ac_try) 2>&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; } &&
18789 { ac_try
='test -s conftest$ac_exeext'
18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18791 (eval $ac_try) 2>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; }; then
18795 eval "$as_ac_var=yes"
18797 echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.
$ac_ext >&5
18800 eval "$as_ac_var=no"
18802 rm -f conftest.err conftest.
$ac_objext \
18803 conftest
$ac_exeext conftest.
$ac_ext
18805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18806 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18807 if test `eval echo '${'$as_ac_var'}'` = yes; then
18808 cat >>confdefs.h
<<_ACEOF
18809 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18816 # PTY-related GNU extensions.
18818 for ac_func
in getpt
18820 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18821 echo "$as_me:$LINENO: checking for $ac_func" >&5
18822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18823 if eval "test \"\${$as_ac_var+set}\" = set"; then
18824 echo $ECHO_N "(cached) $ECHO_C" >&6
18826 cat >conftest.
$ac_ext <<_ACEOF
18829 cat confdefs.h
>>conftest.
$ac_ext
18830 cat >>conftest.
$ac_ext <<_ACEOF
18831 /* end confdefs.h. */
18832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18834 #define $ac_func innocuous_$ac_func
18836 /* System header to define __stub macros and hopefully few prototypes,
18837 which can conflict with char $ac_func (); below.
18838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18839 <limits.h> exists even on freestanding compilers. */
18842 # include <limits.h>
18844 # include <assert.h>
18849 /* Override any gcc2 internal prototype to avoid an error. */
18854 /* We use char because int might match the return type of a gcc2
18855 builtin and then its argument prototype would still apply. */
18857 /* The GNU C library defines this for functions which it implements
18858 to always fail with ENOSYS. Some functions are actually named
18859 something starting with __ and the normal name is an alias. */
18860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18863 char (*f) () = $ac_func;
18872 return f != $ac_func;
18877 rm -f conftest.
$ac_objext conftest
$ac_exeext
18878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18879 (eval $ac_link) 2>conftest.er1
18881 grep -v '^ *+' conftest.er1
>conftest.err
18883 cat conftest.err
>&5
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); } &&
18886 { ac_try
='test -z "$ac_c_werror_flag"
18887 || test ! -s conftest.err'
18888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889 (eval $ac_try) 2>&5
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); }; } &&
18893 { ac_try
='test -s conftest$ac_exeext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 eval "$as_ac_var=yes"
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.
$ac_ext >&5
18904 eval "$as_ac_var=no"
18906 rm -f conftest.err conftest.
$ac_objext \
18907 conftest
$ac_exeext conftest.
$ac_ext
18909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18911 if test `eval echo '${'$as_ac_var'}'` = yes; then
18912 cat >>confdefs.h
<<_ACEOF
18913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18920 # Check this now, so that we will NOT find the above functions in ncurses.
18921 # That is because we have not set up to link ncurses in lib-src.
18922 # It's better to believe a function is not available
18923 # than to expect to find it in ncurses.
18925 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18926 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
18927 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 ac_check_lib_save_LIBS
=$LIBS
18931 LIBS
="-lncurses $LIBS"
18932 cat >conftest.
$ac_ext <<_ACEOF
18935 cat confdefs.h
>>conftest.
$ac_ext
18936 cat >>conftest.
$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18939 /* Override any gcc2 internal prototype to avoid an error. */
18943 /* We use char because int might match the return type of a gcc2
18944 builtin and then its argument prototype would still apply. */
18954 rm -f conftest.
$ac_objext conftest
$ac_exeext
18955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18956 (eval $ac_link) 2>conftest.er1
18958 grep -v '^ *+' conftest.er1
>conftest.err
18960 cat conftest.err
>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } &&
18963 { ac_try
='test -z "$ac_c_werror_flag"
18964 || test ! -s conftest.err'
18965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18966 (eval $ac_try) 2>&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); }; } &&
18970 { ac_try
='test -s conftest$ac_exeext'
18971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18972 (eval $ac_try) 2>&5
18974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975 (exit $ac_status); }; }; then
18976 ac_cv_lib_ncurses_tparm
=yes
18978 echo "$as_me: failed program was:" >&5
18979 sed 's/^/| /' conftest.
$ac_ext >&5
18981 ac_cv_lib_ncurses_tparm
=no
18983 rm -f conftest.err conftest.
$ac_objext \
18984 conftest
$ac_exeext conftest.
$ac_ext
18985 LIBS
=$ac_check_lib_save_LIBS
18987 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18988 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
18989 if test $ac_cv_lib_ncurses_tparm = yes; then
18990 cat >>confdefs.h
<<_ACEOF
18991 #define HAVE_LIBNCURSES 1
18994 LIBS
="-lncurses $LIBS"
18999 # Do we need the Hesiod library to provide the support routines?
19000 if test "$with_hesiod" = yes ; then
19001 # Don't set $LIBS here -- see comments above.
19003 echo "$as_me:$LINENO: checking for res_send" >&5
19004 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
19005 if test "${ac_cv_func_res_send+set}" = set; then
19006 echo $ECHO_N "(cached) $ECHO_C" >&6
19008 cat >conftest.
$ac_ext <<_ACEOF
19011 cat confdefs.h
>>conftest.
$ac_ext
19012 cat >>conftest.
$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19014 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19016 #define res_send innocuous_res_send
19018 /* System header to define __stub macros and hopefully few prototypes,
19019 which can conflict with char res_send (); below.
19020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19021 <limits.h> exists even on freestanding compilers. */
19024 # include <limits.h>
19026 # include <assert.h>
19031 /* Override any gcc2 internal prototype to avoid an error. */
19036 /* We use char because int might match the return type of a gcc2
19037 builtin and then its argument prototype would still apply. */
19039 /* The GNU C library defines this for functions which it implements
19040 to always fail with ENOSYS. Some functions are actually named
19041 something starting with __ and the normal name is an alias. */
19042 #if defined (__stub_res_send) || defined (__stub___res_send)
19045 char (*f) () = res_send;
19054 return f != res_send;
19059 rm -f conftest.
$ac_objext conftest
$ac_exeext
19060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19061 (eval $ac_link) 2>conftest.er1
19063 grep -v '^ *+' conftest.er1
>conftest.err
19065 cat conftest.err
>&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } &&
19068 { ac_try
='test -z "$ac_c_werror_flag"
19069 || test ! -s conftest.err'
19070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19071 (eval $ac_try) 2>&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); }; } &&
19075 { ac_try
='test -s conftest$ac_exeext'
19076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19077 (eval $ac_try) 2>&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 ac_cv_func_res_send
=yes
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.
$ac_ext >&5
19086 ac_cv_func_res_send
=no
19088 rm -f conftest.err conftest.
$ac_objext \
19089 conftest
$ac_exeext conftest.
$ac_ext
19091 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19092 echo "${ECHO_T}$ac_cv_func_res_send" >&6
19093 if test $ac_cv_func_res_send = yes; then
19096 echo "$as_me:$LINENO: checking for __res_send" >&5
19097 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
19098 if test "${ac_cv_func___res_send+set}" = set; then
19099 echo $ECHO_N "(cached) $ECHO_C" >&6
19101 cat >conftest.
$ac_ext <<_ACEOF
19104 cat confdefs.h
>>conftest.
$ac_ext
19105 cat >>conftest.
$ac_ext <<_ACEOF
19106 /* end confdefs.h. */
19107 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19109 #define __res_send innocuous___res_send
19111 /* System header to define __stub macros and hopefully few prototypes,
19112 which can conflict with char __res_send (); below.
19113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19114 <limits.h> exists even on freestanding compilers. */
19117 # include <limits.h>
19119 # include <assert.h>
19124 /* Override any gcc2 internal prototype to avoid an error. */
19129 /* We use char because int might match the return type of a gcc2
19130 builtin and then its argument prototype would still apply. */
19131 char __res_send ();
19132 /* The GNU C library defines this for functions which it implements
19133 to always fail with ENOSYS. Some functions are actually named
19134 something starting with __ and the normal name is an alias. */
19135 #if defined (__stub___res_send) || defined (__stub_____res_send)
19138 char (*f) () = __res_send;
19147 return f != __res_send;
19152 rm -f conftest.
$ac_objext conftest
$ac_exeext
19153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19154 (eval $ac_link) 2>conftest.er1
19156 grep -v '^ *+' conftest.er1
>conftest.err
19158 cat conftest.err
>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } &&
19161 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19163 (eval $ac_try) 2>&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); }; } &&
19167 { ac_try
='test -s conftest$ac_exeext'
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; }; then
19173 ac_cv_func___res_send
=yes
19175 echo "$as_me: failed program was:" >&5
19176 sed 's/^/| /' conftest.
$ac_ext >&5
19178 ac_cv_func___res_send
=no
19180 rm -f conftest.err conftest.
$ac_objext \
19181 conftest
$ac_exeext conftest.
$ac_ext
19183 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19184 echo "${ECHO_T}$ac_cv_func___res_send" >&6
19185 if test $ac_cv_func___res_send = yes; then
19188 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19189 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
19190 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 ac_check_lib_save_LIBS
=$LIBS
19194 LIBS
="-lresolv $LIBS"
19195 cat >conftest.
$ac_ext <<_ACEOF
19198 cat confdefs.h
>>conftest.
$ac_ext
19199 cat >>conftest.
$ac_ext <<_ACEOF
19200 /* end confdefs.h. */
19202 /* Override any gcc2 internal prototype to avoid an error. */
19206 /* We use char because int might match the return type of a gcc2
19207 builtin and then its argument prototype would still apply. */
19217 rm -f conftest.
$ac_objext conftest
$ac_exeext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19219 (eval $ac_link) 2>conftest.er1
19221 grep -v '^ *+' conftest.er1
>conftest.err
19223 cat conftest.err
>&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try
='test -z "$ac_c_werror_flag"
19227 || test ! -s conftest.err'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try
='test -s conftest$ac_exeext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_cv_lib_resolv_res_send
=yes
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.
$ac_ext >&5
19244 ac_cv_lib_resolv_res_send
=no
19246 rm -f conftest.err conftest.
$ac_objext \
19247 conftest
$ac_exeext conftest.
$ac_ext
19248 LIBS
=$ac_check_lib_save_LIBS
19250 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19251 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
19252 if test $ac_cv_lib_resolv_res_send = yes; then
19255 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19256 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
19257 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19258 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 ac_check_lib_save_LIBS
=$LIBS
19261 LIBS
="-lresolv $LIBS"
19262 cat >conftest.
$ac_ext <<_ACEOF
19265 cat confdefs.h
>>conftest.
$ac_ext
19266 cat >>conftest.
$ac_ext <<_ACEOF
19267 /* end confdefs.h. */
19269 /* Override any gcc2 internal prototype to avoid an error. */
19273 /* We use char because int might match the return type of a gcc2
19274 builtin and then its argument prototype would still apply. */
19275 char __res_send ();
19284 rm -f conftest.
$ac_objext conftest
$ac_exeext
19285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19286 (eval $ac_link) 2>conftest.er1
19288 grep -v '^ *+' conftest.er1
>conftest.err
19290 cat conftest.err
>&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
19293 { ac_try
='test -z "$ac_c_werror_flag"
19294 || test ! -s conftest.err'
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try
='test -s conftest$ac_exeext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_cv_lib_resolv___res_send
=yes
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.
$ac_ext >&5
19311 ac_cv_lib_resolv___res_send
=no
19313 rm -f conftest.err conftest.
$ac_objext \
19314 conftest
$ac_exeext conftest.
$ac_ext
19315 LIBS
=$ac_check_lib_save_LIBS
19317 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19318 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
19319 if test $ac_cv_lib_resolv___res_send = yes; then
19329 if test "$resolv" = yes ; then
19332 cat >>confdefs.h
<<\_ACEOF
19333 #define HAVE_LIBRESOLV 1
19339 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19340 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
19341 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19344 cat >conftest.
$ac_ext <<_ACEOF
19347 cat confdefs.h
>>conftest.
$ac_ext
19348 cat >>conftest.
$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19350 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19352 #define hes_getmailhost innocuous_hes_getmailhost
19354 /* System header to define __stub macros and hopefully few prototypes,
19355 which can conflict with char hes_getmailhost (); below.
19356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19357 <limits.h> exists even on freestanding compilers. */
19360 # include <limits.h>
19362 # include <assert.h>
19365 #undef hes_getmailhost
19367 /* Override any gcc2 internal prototype to avoid an error. */
19372 /* We use char because int might match the return type of a gcc2
19373 builtin and then its argument prototype would still apply. */
19374 char hes_getmailhost ();
19375 /* The GNU C library defines this for functions which it implements
19376 to always fail with ENOSYS. Some functions are actually named
19377 something starting with __ and the normal name is an alias. */
19378 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
19381 char (*f) () = hes_getmailhost;
19390 return f != hes_getmailhost;
19395 rm -f conftest.
$ac_objext conftest
$ac_exeext
19396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19397 (eval $ac_link) 2>conftest.er1
19399 grep -v '^ *+' conftest.er1
>conftest.err
19401 cat conftest.err
>&5
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); } &&
19404 { ac_try
='test -z "$ac_c_werror_flag"
19405 || test ! -s conftest.err'
19406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19407 (eval $ac_try) 2>&5
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); }; } &&
19411 { ac_try
='test -s conftest$ac_exeext'
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; }; then
19417 ac_cv_func_hes_getmailhost
=yes
19419 echo "$as_me: failed program was:" >&5
19420 sed 's/^/| /' conftest.
$ac_ext >&5
19422 ac_cv_func_hes_getmailhost
=no
19424 rm -f conftest.err conftest.
$ac_objext \
19425 conftest
$ac_exeext conftest.
$ac_ext
19427 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19428 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
19429 if test $ac_cv_func_hes_getmailhost = yes; then
19432 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19433 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
19434 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19435 echo $ECHO_N "(cached) $ECHO_C" >&6
19437 ac_check_lib_save_LIBS
=$LIBS
19438 LIBS
="-lhesiod $RESOLVLIB $LIBS"
19439 cat >conftest.
$ac_ext <<_ACEOF
19442 cat confdefs.h
>>conftest.
$ac_ext
19443 cat >>conftest.
$ac_ext <<_ACEOF
19444 /* end confdefs.h. */
19446 /* Override any gcc2 internal prototype to avoid an error. */
19450 /* We use char because int might match the return type of a gcc2
19451 builtin and then its argument prototype would still apply. */
19452 char hes_getmailhost ();
19456 hes_getmailhost ();
19461 rm -f conftest.
$ac_objext conftest
$ac_exeext
19462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19463 (eval $ac_link) 2>conftest.er1
19465 grep -v '^ *+' conftest.er1
>conftest.err
19467 cat conftest.err
>&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
19470 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try
='test -s conftest$ac_exeext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_cv_lib_hesiod_hes_getmailhost
=yes
19484 echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.
$ac_ext >&5
19487 ac_cv_lib_hesiod_hes_getmailhost
=no
19489 rm -f conftest.err conftest.
$ac_objext \
19490 conftest
$ac_exeext conftest.
$ac_ext
19491 LIBS
=$ac_check_lib_save_LIBS
19493 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19494 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
19495 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19497 cat >>confdefs.h
<<\_ACEOF
19498 #define HAVE_LIBHESIOD 1
19509 # These tell us which Kerberos-related libraries to use.
19510 if test "${with_kerberos+set}" = set; then
19512 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19513 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
19514 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19517 ac_check_lib_save_LIBS
=$LIBS
19518 LIBS
="-lcom_err $LIBS"
19519 cat >conftest.
$ac_ext <<_ACEOF
19522 cat confdefs.h
>>conftest.
$ac_ext
19523 cat >>conftest.
$ac_ext <<_ACEOF
19524 /* end confdefs.h. */
19526 /* Override any gcc2 internal prototype to avoid an error. */
19530 /* We use char because int might match the return type of a gcc2
19531 builtin and then its argument prototype would still apply. */
19541 rm -f conftest.
$ac_objext conftest
$ac_exeext
19542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19543 (eval $ac_link) 2>conftest.er1
19545 grep -v '^ *+' conftest.er1
>conftest.err
19547 cat conftest.err
>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
19550 { ac_try
='test -z "$ac_c_werror_flag"
19551 || test ! -s conftest.err'
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try
='test -s conftest$ac_exeext'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 ac_cv_lib_com_err_com_err
=yes
19565 echo "$as_me: failed program was:" >&5
19566 sed 's/^/| /' conftest.
$ac_ext >&5
19568 ac_cv_lib_com_err_com_err
=no
19570 rm -f conftest.err conftest.
$ac_objext \
19571 conftest
$ac_exeext conftest.
$ac_ext
19572 LIBS
=$ac_check_lib_save_LIBS
19574 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19575 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19576 if test $ac_cv_lib_com_err_com_err = yes; then
19577 cat >>confdefs.h
<<_ACEOF
19578 #define HAVE_LIBCOM_ERR 1
19581 LIBS
="-lcom_err $LIBS"
19586 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19587 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19588 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19589 echo $ECHO_N "(cached) $ECHO_C" >&6
19591 ac_check_lib_save_LIBS
=$LIBS
19592 LIBS
="-lk5crypto $LIBS"
19593 cat >conftest.
$ac_ext <<_ACEOF
19596 cat confdefs.h
>>conftest.
$ac_ext
19597 cat >>conftest.
$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19600 /* Override any gcc2 internal prototype to avoid an error. */
19604 /* We use char because int might match the return type of a gcc2
19605 builtin and then its argument prototype would still apply. */
19606 char mit_des_cbc_encrypt ();
19610 mit_des_cbc_encrypt ();
19615 rm -f conftest.
$ac_objext conftest
$ac_exeext
19616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19617 (eval $ac_link) 2>conftest.er1
19619 grep -v '^ *+' conftest.er1
>conftest.err
19621 cat conftest.err
>&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
19624 { ac_try
='test -z "$ac_c_werror_flag"
19625 || test ! -s conftest.err'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; } &&
19631 { ac_try
='test -s conftest$ac_exeext'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.
$ac_ext >&5
19642 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
19644 rm -f conftest.err conftest.
$ac_objext \
19645 conftest
$ac_exeext conftest.
$ac_ext
19646 LIBS
=$ac_check_lib_save_LIBS
19648 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19649 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19650 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19651 cat >>confdefs.h
<<_ACEOF
19652 #define HAVE_LIBK5CRYPTO 1
19655 LIBS
="-lk5crypto $LIBS"
19660 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19661 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19662 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19663 echo $ECHO_N "(cached) $ECHO_C" >&6
19665 ac_check_lib_save_LIBS
=$LIBS
19666 LIBS
="-lcrypto $LIBS"
19667 cat >conftest.
$ac_ext <<_ACEOF
19670 cat confdefs.h
>>conftest.
$ac_ext
19671 cat >>conftest.
$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19674 /* Override any gcc2 internal prototype to avoid an error. */
19678 /* We use char because int might match the return type of a gcc2
19679 builtin and then its argument prototype would still apply. */
19680 char mit_des_cbc_encrypt ();
19684 mit_des_cbc_encrypt ();
19689 rm -f conftest.
$ac_objext conftest
$ac_exeext
19690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19691 (eval $ac_link) 2>conftest.er1
19693 grep -v '^ *+' conftest.er1
>conftest.err
19695 cat conftest.err
>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } &&
19698 { ac_try
='test -z "$ac_c_werror_flag"
19699 || test ! -s conftest.err'
19700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19701 (eval $ac_try) 2>&5
19703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19704 (exit $ac_status); }; } &&
19705 { ac_try
='test -s conftest$ac_exeext'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; }; then
19711 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19713 echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.
$ac_ext >&5
19716 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19718 rm -f conftest.err conftest.
$ac_objext \
19719 conftest
$ac_exeext conftest.
$ac_ext
19720 LIBS
=$ac_check_lib_save_LIBS
19722 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19723 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19724 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19725 cat >>confdefs.h
<<_ACEOF
19726 #define HAVE_LIBCRYPTO 1
19729 LIBS
="-lcrypto $LIBS"
19734 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19735 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19736 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19737 echo $ECHO_N "(cached) $ECHO_C" >&6
19739 ac_check_lib_save_LIBS
=$LIBS
19740 LIBS
="-lkrb5 $LIBS"
19741 cat >conftest.
$ac_ext <<_ACEOF
19744 cat confdefs.h
>>conftest.
$ac_ext
19745 cat >>conftest.
$ac_ext <<_ACEOF
19746 /* end confdefs.h. */
19748 /* Override any gcc2 internal prototype to avoid an error. */
19752 /* We use char because int might match the return type of a gcc2
19753 builtin and then its argument prototype would still apply. */
19754 char krb5_init_context ();
19758 krb5_init_context ();
19763 rm -f conftest.
$ac_objext conftest
$ac_exeext
19764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19765 (eval $ac_link) 2>conftest.er1
19767 grep -v '^ *+' conftest.er1
>conftest.err
19769 cat conftest.err
>&5
19770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } &&
19772 { ac_try
='test -z "$ac_c_werror_flag"
19773 || test ! -s conftest.err'
19774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19775 (eval $ac_try) 2>&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); }; } &&
19779 { ac_try
='test -s conftest$ac_exeext'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
19785 ac_cv_lib_krb5_krb5_init_context
=yes
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.
$ac_ext >&5
19790 ac_cv_lib_krb5_krb5_init_context
=no
19792 rm -f conftest.err conftest.
$ac_objext \
19793 conftest
$ac_exeext conftest.
$ac_ext
19794 LIBS
=$ac_check_lib_save_LIBS
19796 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19797 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19798 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19799 cat >>confdefs.h
<<_ACEOF
19800 #define HAVE_LIBKRB5 1
19803 LIBS
="-lkrb5 $LIBS"
19807 if test "${with_kerberos5+set}" != set; then
19809 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19810 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19811 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19812 echo $ECHO_N "(cached) $ECHO_C" >&6
19814 ac_check_lib_save_LIBS
=$LIBS
19815 LIBS
="-ldes425 $LIBS"
19816 cat >conftest.
$ac_ext <<_ACEOF
19819 cat confdefs.h
>>conftest.
$ac_ext
19820 cat >>conftest.
$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19823 /* Override any gcc2 internal prototype to avoid an error. */
19827 /* We use char because int might match the return type of a gcc2
19828 builtin and then its argument prototype would still apply. */
19829 char des_cbc_encrypt ();
19833 des_cbc_encrypt ();
19838 rm -f conftest.
$ac_objext conftest
$ac_exeext
19839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19840 (eval $ac_link) 2>conftest.er1
19842 grep -v '^ *+' conftest.er1
>conftest.err
19844 cat conftest.err
>&5
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } &&
19847 { ac_try
='test -z "$ac_c_werror_flag"
19848 || test ! -s conftest.err'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; } &&
19854 { ac_try
='test -s conftest$ac_exeext'
19855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856 (eval $ac_try) 2>&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); }; }; then
19860 ac_cv_lib_des425_des_cbc_encrypt
=yes
19862 echo "$as_me: failed program was:" >&5
19863 sed 's/^/| /' conftest.
$ac_ext >&5
19865 ac_cv_lib_des425_des_cbc_encrypt
=no
19867 rm -f conftest.err conftest.
$ac_objext \
19868 conftest
$ac_exeext conftest.
$ac_ext
19869 LIBS
=$ac_check_lib_save_LIBS
19871 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19872 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19873 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19874 cat >>confdefs.h
<<_ACEOF
19875 #define HAVE_LIBDES425 1
19878 LIBS
="-ldes425 $LIBS"
19882 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19883 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19884 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19887 ac_check_lib_save_LIBS
=$LIBS
19889 cat >conftest.
$ac_ext <<_ACEOF
19892 cat confdefs.h
>>conftest.
$ac_ext
19893 cat >>conftest.
$ac_ext <<_ACEOF
19894 /* end confdefs.h. */
19896 /* Override any gcc2 internal prototype to avoid an error. */
19900 /* We use char because int might match the return type of a gcc2
19901 builtin and then its argument prototype would still apply. */
19902 char des_cbc_encrypt ();
19906 des_cbc_encrypt ();
19911 rm -f conftest.
$ac_objext conftest
$ac_exeext
19912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19913 (eval $ac_link) 2>conftest.er1
19915 grep -v '^ *+' conftest.er1
>conftest.err
19917 cat conftest.err
>&5
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); } &&
19920 { ac_try
='test -z "$ac_c_werror_flag"
19921 || test ! -s conftest.err'
19922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19923 (eval $ac_try) 2>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; } &&
19927 { ac_try
='test -s conftest$ac_exeext'
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
19933 ac_cv_lib_des_des_cbc_encrypt
=yes
19935 echo "$as_me: failed program was:" >&5
19936 sed 's/^/| /' conftest.
$ac_ext >&5
19938 ac_cv_lib_des_des_cbc_encrypt
=no
19940 rm -f conftest.err conftest.
$ac_objext \
19941 conftest
$ac_exeext conftest.
$ac_ext
19942 LIBS
=$ac_check_lib_save_LIBS
19944 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19945 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
19946 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19947 cat >>confdefs.h
<<_ACEOF
19948 #define HAVE_LIBDES 1
19958 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19959 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
19960 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19961 echo $ECHO_N "(cached) $ECHO_C" >&6
19963 ac_check_lib_save_LIBS
=$LIBS
19964 LIBS
="-lkrb4 $LIBS"
19965 cat >conftest.
$ac_ext <<_ACEOF
19968 cat confdefs.h
>>conftest.
$ac_ext
19969 cat >>conftest.
$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19972 /* Override any gcc2 internal prototype to avoid an error. */
19976 /* We use char because int might match the return type of a gcc2
19977 builtin and then its argument prototype would still apply. */
19978 char krb_get_cred ();
19987 rm -f conftest.
$ac_objext conftest
$ac_exeext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19989 (eval $ac_link) 2>conftest.er1
19991 grep -v '^ *+' conftest.er1
>conftest.err
19993 cat conftest.err
>&5
19994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995 (exit $ac_status); } &&
19996 { ac_try
='test -z "$ac_c_werror_flag"
19997 || test ! -s conftest.err'
19998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19999 (eval $ac_try) 2>&5
20001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); }; } &&
20003 { ac_try
='test -s conftest$ac_exeext'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; }; then
20009 ac_cv_lib_krb4_krb_get_cred
=yes
20011 echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.
$ac_ext >&5
20014 ac_cv_lib_krb4_krb_get_cred
=no
20016 rm -f conftest.err conftest.
$ac_objext \
20017 conftest
$ac_exeext conftest.
$ac_ext
20018 LIBS
=$ac_check_lib_save_LIBS
20020 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20021 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
20022 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20023 cat >>confdefs.h
<<_ACEOF
20024 #define HAVE_LIBKRB4 1
20027 LIBS
="-lkrb4 $LIBS"
20031 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20032 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
20033 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20036 ac_check_lib_save_LIBS
=$LIBS
20038 cat >conftest.
$ac_ext <<_ACEOF
20041 cat confdefs.h
>>conftest.
$ac_ext
20042 cat >>conftest.
$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20045 /* Override any gcc2 internal prototype to avoid an error. */
20049 /* We use char because int might match the return type of a gcc2
20050 builtin and then its argument prototype would still apply. */
20051 char krb_get_cred ();
20060 rm -f conftest.
$ac_objext conftest
$ac_exeext
20061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20062 (eval $ac_link) 2>conftest.er1
20064 grep -v '^ *+' conftest.er1
>conftest.err
20066 cat conftest.err
>&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } &&
20069 { ac_try
='test -z "$ac_c_werror_flag"
20070 || test ! -s conftest.err'
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try
='test -s conftest$ac_exeext'
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 ac_cv_lib_krb_krb_get_cred
=yes
20084 echo "$as_me: failed program was:" >&5
20085 sed 's/^/| /' conftest.
$ac_ext >&5
20087 ac_cv_lib_krb_krb_get_cred
=no
20089 rm -f conftest.err conftest.
$ac_objext \
20090 conftest
$ac_exeext conftest.
$ac_ext
20091 LIBS
=$ac_check_lib_save_LIBS
20093 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20094 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
20095 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20096 cat >>confdefs.h
<<_ACEOF
20097 #define HAVE_LIBKRB 1
20108 if test "${with_kerberos5+set}" = set; then
20110 for ac_header
in krb5.h
20112 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20114 echo "$as_me:$LINENO: checking for $ac_header" >&5
20115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20122 # Is the header compilable?
20123 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20125 cat >conftest.
$ac_ext <<_ACEOF
20128 cat confdefs.h
>>conftest.
$ac_ext
20129 cat >>conftest.
$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 $ac_includes_default
20132 #include <$ac_header>
20134 rm -f conftest.
$ac_objext
20135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20136 (eval $ac_compile) 2>conftest.er1
20138 grep -v '^ *+' conftest.er1
>conftest.err
20140 cat conftest.err
>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } &&
20143 { ac_try
='test -z "$ac_c_werror_flag"
20144 || test ! -s conftest.err'
20145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146 (eval $ac_try) 2>&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; } &&
20150 { ac_try
='test -s conftest.$ac_objext'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20156 ac_header_compiler
=yes
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.
$ac_ext >&5
20161 ac_header_compiler
=no
20163 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20164 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20165 echo "${ECHO_T}$ac_header_compiler" >&6
20167 # Is the header present?
20168 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20170 cat >conftest.
$ac_ext <<_ACEOF
20173 cat confdefs.h
>>conftest.
$ac_ext
20174 cat >>conftest.
$ac_ext <<_ACEOF
20175 /* end confdefs.h. */
20176 #include <$ac_header>
20178 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20179 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20181 grep -v '^ *+' conftest.er1
>conftest.err
20183 cat conftest.err
>&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } >/dev
/null
; then
20186 if test -s conftest.err
; then
20187 ac_cpp_err
=$ac_c_preproc_warn_flag
20188 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20195 if test -z "$ac_cpp_err"; then
20196 ac_header_preproc
=yes
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.
$ac_ext >&5
20201 ac_header_preproc
=no
20203 rm -f conftest.err conftest.
$ac_ext
20204 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20205 echo "${ECHO_T}$ac_header_preproc" >&6
20207 # So? What about this header?
20208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20214 ac_header_preproc
=yes
20217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20231 ## ------------------------------------------ ##
20232 ## Report this to the AC_PACKAGE_NAME lists. ##
20233 ## ------------------------------------------ ##
20236 sed "s/^/$as_me: WARNING: /" >&2
20239 echo "$as_me:$LINENO: checking for $ac_header" >&5
20240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
20244 eval "$as_ac_Header=\$ac_header_preproc"
20246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20247 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20251 cat >>confdefs.h
<<_ACEOF
20252 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20261 for ac_header
in des.h
20263 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20265 echo "$as_me:$LINENO: checking for $ac_header" >&5
20266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
20270 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20271 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20273 # Is the header compilable?
20274 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20276 cat >conftest.
$ac_ext <<_ACEOF
20279 cat confdefs.h
>>conftest.
$ac_ext
20280 cat >>conftest.
$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 $ac_includes_default
20283 #include <$ac_header>
20285 rm -f conftest.
$ac_objext
20286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20287 (eval $ac_compile) 2>conftest.er1
20289 grep -v '^ *+' conftest.er1
>conftest.err
20291 cat conftest.err
>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); } &&
20294 { ac_try
='test -z "$ac_c_werror_flag"
20295 || test ! -s conftest.err'
20296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20297 (eval $ac_try) 2>&5
20299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20300 (exit $ac_status); }; } &&
20301 { ac_try
='test -s conftest.$ac_objext'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; }; then
20307 ac_header_compiler
=yes
20309 echo "$as_me: failed program was:" >&5
20310 sed 's/^/| /' conftest.
$ac_ext >&5
20312 ac_header_compiler
=no
20314 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20316 echo "${ECHO_T}$ac_header_compiler" >&6
20318 # Is the header present?
20319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20321 cat >conftest.
$ac_ext <<_ACEOF
20324 cat confdefs.h
>>conftest.
$ac_ext
20325 cat >>conftest.
$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327 #include <$ac_header>
20329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20330 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20332 grep -v '^ *+' conftest.er1
>conftest.err
20334 cat conftest.err
>&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } >/dev
/null
; then
20337 if test -s conftest.err
; then
20338 ac_cpp_err
=$ac_c_preproc_warn_flag
20339 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20346 if test -z "$ac_cpp_err"; then
20347 ac_header_preproc
=yes
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.
$ac_ext >&5
20352 ac_header_preproc
=no
20354 rm -f conftest.err conftest.
$ac_ext
20355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20356 echo "${ECHO_T}$ac_header_preproc" >&6
20358 # So? What about this header?
20359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20365 ac_header_preproc
=yes
20368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20382 ## ------------------------------------------ ##
20383 ## Report this to the AC_PACKAGE_NAME lists. ##
20384 ## ------------------------------------------ ##
20387 sed "s/^/$as_me: WARNING: /" >&2
20390 echo "$as_me:$LINENO: checking for $ac_header" >&5
20391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20393 echo $ECHO_N "(cached) $ECHO_C" >&6
20395 eval "$as_ac_Header=\$ac_header_preproc"
20397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20402 cat >>confdefs.h
<<_ACEOF
20403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20408 for ac_header
in kerberosIV
/des.h
20410 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20412 echo "$as_me:$LINENO: checking for $ac_header" >&5
20413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20415 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20420 # Is the header compilable?
20421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20423 cat >conftest.
$ac_ext <<_ACEOF
20426 cat confdefs.h
>>conftest.
$ac_ext
20427 cat >>conftest.
$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429 $ac_includes_default
20430 #include <$ac_header>
20432 rm -f conftest.
$ac_objext
20433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20434 (eval $ac_compile) 2>conftest.er1
20436 grep -v '^ *+' conftest.er1
>conftest.err
20438 cat conftest.err
>&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } &&
20441 { ac_try
='test -z "$ac_c_werror_flag"
20442 || test ! -s conftest.err'
20443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20444 (eval $ac_try) 2>&5
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); }; } &&
20448 { ac_try
='test -s conftest.$ac_objext'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 ac_header_compiler
=yes
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.
$ac_ext >&5
20459 ac_header_compiler
=no
20461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20463 echo "${ECHO_T}$ac_header_compiler" >&6
20465 # Is the header present?
20466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20468 cat >conftest.
$ac_ext <<_ACEOF
20471 cat confdefs.h
>>conftest.
$ac_ext
20472 cat >>conftest.
$ac_ext <<_ACEOF
20473 /* end confdefs.h. */
20474 #include <$ac_header>
20476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20477 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20479 grep -v '^ *+' conftest.er1
>conftest.err
20481 cat conftest.err
>&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } >/dev
/null
; then
20484 if test -s conftest.err
; then
20485 ac_cpp_err
=$ac_c_preproc_warn_flag
20486 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20493 if test -z "$ac_cpp_err"; then
20494 ac_header_preproc
=yes
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.
$ac_ext >&5
20499 ac_header_preproc
=no
20501 rm -f conftest.err conftest.
$ac_ext
20502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20503 echo "${ECHO_T}$ac_header_preproc" >&6
20505 # So? What about this header?
20506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20512 ac_header_preproc
=yes
20515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20529 ## ------------------------------------------ ##
20530 ## Report this to the AC_PACKAGE_NAME lists. ##
20531 ## ------------------------------------------ ##
20534 sed "s/^/$as_me: WARNING: /" >&2
20537 echo "$as_me:$LINENO: checking for $ac_header" >&5
20538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20542 eval "$as_ac_Header=\$ac_header_preproc"
20544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20549 cat >>confdefs.h
<<_ACEOF
20550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20555 for ac_header
in kerberos
/des.h
20557 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20559 echo "$as_me:$LINENO: checking for $ac_header" >&5
20560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20567 # Is the header compilable?
20568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20570 cat >conftest.
$ac_ext <<_ACEOF
20573 cat confdefs.h
>>conftest.
$ac_ext
20574 cat >>conftest.
$ac_ext <<_ACEOF
20575 /* end confdefs.h. */
20576 $ac_includes_default
20577 #include <$ac_header>
20579 rm -f conftest.
$ac_objext
20580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20581 (eval $ac_compile) 2>conftest.er1
20583 grep -v '^ *+' conftest.er1
>conftest.err
20585 cat conftest.err
>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); } &&
20588 { ac_try
='test -z "$ac_c_werror_flag"
20589 || test ! -s conftest.err'
20590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20591 (eval $ac_try) 2>&5
20593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594 (exit $ac_status); }; } &&
20595 { ac_try
='test -s conftest.$ac_objext'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; }; then
20601 ac_header_compiler
=yes
20603 echo "$as_me: failed program was:" >&5
20604 sed 's/^/| /' conftest.
$ac_ext >&5
20606 ac_header_compiler
=no
20608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20610 echo "${ECHO_T}$ac_header_compiler" >&6
20612 # Is the header present?
20613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20615 cat >conftest.
$ac_ext <<_ACEOF
20618 cat confdefs.h
>>conftest.
$ac_ext
20619 cat >>conftest.
$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20621 #include <$ac_header>
20623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20624 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20626 grep -v '^ *+' conftest.er1
>conftest.err
20628 cat conftest.err
>&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); } >/dev
/null
; then
20631 if test -s conftest.err
; then
20632 ac_cpp_err
=$ac_c_preproc_warn_flag
20633 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20640 if test -z "$ac_cpp_err"; then
20641 ac_header_preproc
=yes
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.
$ac_ext >&5
20646 ac_header_preproc
=no
20648 rm -f conftest.err conftest.
$ac_ext
20649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20650 echo "${ECHO_T}$ac_header_preproc" >&6
20652 # So? What about this header?
20653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20659 ac_header_preproc
=yes
20662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20676 ## ------------------------------------------ ##
20677 ## Report this to the AC_PACKAGE_NAME lists. ##
20678 ## ------------------------------------------ ##
20681 sed "s/^/$as_me: WARNING: /" >&2
20684 echo "$as_me:$LINENO: checking for $ac_header" >&5
20685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20687 echo $ECHO_N "(cached) $ECHO_C" >&6
20689 eval "$as_ac_Header=\$ac_header_preproc"
20691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20696 cat >>confdefs.h
<<_ACEOF
20697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20713 for ac_header
in krb.h
20715 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20717 echo "$as_me:$LINENO: checking for $ac_header" >&5
20718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20725 # Is the header compilable?
20726 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20728 cat >conftest.
$ac_ext <<_ACEOF
20731 cat confdefs.h
>>conftest.
$ac_ext
20732 cat >>conftest.
$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 $ac_includes_default
20735 #include <$ac_header>
20737 rm -f conftest.
$ac_objext
20738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20739 (eval $ac_compile) 2>conftest.er1
20741 grep -v '^ *+' conftest.er1
>conftest.err
20743 cat conftest.err
>&5
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } &&
20746 { ac_try
='test -z "$ac_c_werror_flag"
20747 || test ! -s conftest.err'
20748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749 (eval $ac_try) 2>&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); }; } &&
20753 { ac_try
='test -s conftest.$ac_objext'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; }; then
20759 ac_header_compiler
=yes
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.
$ac_ext >&5
20764 ac_header_compiler
=no
20766 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20767 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20768 echo "${ECHO_T}$ac_header_compiler" >&6
20770 # Is the header present?
20771 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20773 cat >conftest.
$ac_ext <<_ACEOF
20776 cat confdefs.h
>>conftest.
$ac_ext
20777 cat >>conftest.
$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20779 #include <$ac_header>
20781 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20782 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20784 grep -v '^ *+' conftest.er1
>conftest.err
20786 cat conftest.err
>&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); } >/dev
/null
; then
20789 if test -s conftest.err
; then
20790 ac_cpp_err
=$ac_c_preproc_warn_flag
20791 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20798 if test -z "$ac_cpp_err"; then
20799 ac_header_preproc
=yes
20801 echo "$as_me: failed program was:" >&5
20802 sed 's/^/| /' conftest.
$ac_ext >&5
20804 ac_header_preproc
=no
20806 rm -f conftest.err conftest.
$ac_ext
20807 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20808 echo "${ECHO_T}$ac_header_preproc" >&6
20810 # So? What about this header?
20811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20817 ac_header_preproc
=yes
20820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20834 ## ------------------------------------------ ##
20835 ## Report this to the AC_PACKAGE_NAME lists. ##
20836 ## ------------------------------------------ ##
20839 sed "s/^/$as_me: WARNING: /" >&2
20842 echo "$as_me:$LINENO: checking for $ac_header" >&5
20843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20847 eval "$as_ac_Header=\$ac_header_preproc"
20849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20854 cat >>confdefs.h
<<_ACEOF
20855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20860 for ac_header
in kerberosIV
/krb.h
20862 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20863 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20864 echo "$as_me:$LINENO: checking for $ac_header" >&5
20865 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20866 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20870 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20872 # Is the header compilable?
20873 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20874 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20875 cat >conftest.
$ac_ext <<_ACEOF
20878 cat confdefs.h
>>conftest.
$ac_ext
20879 cat >>conftest.
$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20881 $ac_includes_default
20882 #include <$ac_header>
20884 rm -f conftest.
$ac_objext
20885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20886 (eval $ac_compile) 2>conftest.er1
20888 grep -v '^ *+' conftest.er1
>conftest.err
20890 cat conftest.err
>&5
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); } &&
20893 { ac_try
='test -z "$ac_c_werror_flag"
20894 || test ! -s conftest.err'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try
='test -s conftest.$ac_objext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 ac_header_compiler
=yes
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.
$ac_ext >&5
20911 ac_header_compiler
=no
20913 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20914 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20915 echo "${ECHO_T}$ac_header_compiler" >&6
20917 # Is the header present?
20918 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20919 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20920 cat >conftest.
$ac_ext <<_ACEOF
20923 cat confdefs.h
>>conftest.
$ac_ext
20924 cat >>conftest.
$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20926 #include <$ac_header>
20928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20929 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20931 grep -v '^ *+' conftest.er1
>conftest.err
20933 cat conftest.err
>&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } >/dev
/null
; then
20936 if test -s conftest.err
; then
20937 ac_cpp_err
=$ac_c_preproc_warn_flag
20938 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20945 if test -z "$ac_cpp_err"; then
20946 ac_header_preproc
=yes
20948 echo "$as_me: failed program was:" >&5
20949 sed 's/^/| /' conftest.
$ac_ext >&5
20951 ac_header_preproc
=no
20953 rm -f conftest.err conftest.
$ac_ext
20954 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20955 echo "${ECHO_T}$ac_header_preproc" >&6
20957 # So? What about this header?
20958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20964 ac_header_preproc
=yes
20967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20981 ## ------------------------------------------ ##
20982 ## Report this to the AC_PACKAGE_NAME lists. ##
20983 ## ------------------------------------------ ##
20986 sed "s/^/$as_me: WARNING: /" >&2
20989 echo "$as_me:$LINENO: checking for $ac_header" >&5
20990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20994 eval "$as_ac_Header=\$ac_header_preproc"
20996 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20997 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21001 cat >>confdefs.h
<<_ACEOF
21002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21007 for ac_header
in kerberos
/krb.h
21009 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21011 echo "$as_me:$LINENO: checking for $ac_header" >&5
21012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21014 echo $ECHO_N "(cached) $ECHO_C" >&6
21016 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21017 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21019 # Is the header compilable?
21020 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21021 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21022 cat >conftest.
$ac_ext <<_ACEOF
21025 cat confdefs.h
>>conftest.
$ac_ext
21026 cat >>conftest.
$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21028 $ac_includes_default
21029 #include <$ac_header>
21031 rm -f conftest.
$ac_objext
21032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21033 (eval $ac_compile) 2>conftest.er1
21035 grep -v '^ *+' conftest.er1
>conftest.err
21037 cat conftest.err
>&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } &&
21040 { ac_try
='test -z "$ac_c_werror_flag"
21041 || test ! -s conftest.err'
21042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; } &&
21047 { ac_try
='test -s conftest.$ac_objext'
21048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049 (eval $ac_try) 2>&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); }; }; then
21053 ac_header_compiler
=yes
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.
$ac_ext >&5
21058 ac_header_compiler
=no
21060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21061 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21062 echo "${ECHO_T}$ac_header_compiler" >&6
21064 # Is the header present?
21065 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21066 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21067 cat >conftest.
$ac_ext <<_ACEOF
21070 cat confdefs.h
>>conftest.
$ac_ext
21071 cat >>conftest.
$ac_ext <<_ACEOF
21072 /* end confdefs.h. */
21073 #include <$ac_header>
21075 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21076 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21078 grep -v '^ *+' conftest.er1
>conftest.err
21080 cat conftest.err
>&5
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } >/dev
/null
; then
21083 if test -s conftest.err
; then
21084 ac_cpp_err
=$ac_c_preproc_warn_flag
21085 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21092 if test -z "$ac_cpp_err"; then
21093 ac_header_preproc
=yes
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.
$ac_ext >&5
21098 ac_header_preproc
=no
21100 rm -f conftest.err conftest.
$ac_ext
21101 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21102 echo "${ECHO_T}$ac_header_preproc" >&6
21104 # So? What about this header?
21105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21107 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21108 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21110 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21111 ac_header_preproc
=yes
21114 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21115 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21116 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21117 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21118 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21119 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21120 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21121 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21123 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21125 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21128 ## ------------------------------------------ ##
21129 ## Report this to the AC_PACKAGE_NAME lists. ##
21130 ## ------------------------------------------ ##
21133 sed "s/^/$as_me: WARNING: /" >&2
21136 echo "$as_me:$LINENO: checking for $ac_header" >&5
21137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21138 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21141 eval "$as_ac_Header=\$ac_header_preproc"
21143 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21144 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21148 cat >>confdefs.h
<<_ACEOF
21149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21166 for ac_header
in com_err.h
21168 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21170 echo "$as_me:$LINENO: checking for $ac_header" >&5
21171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21172 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21173 echo $ECHO_N "(cached) $ECHO_C" >&6
21175 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21176 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21178 # Is the header compilable?
21179 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21180 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21181 cat >conftest.
$ac_ext <<_ACEOF
21184 cat confdefs.h
>>conftest.
$ac_ext
21185 cat >>conftest.
$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 $ac_includes_default
21188 #include <$ac_header>
21190 rm -f conftest.
$ac_objext
21191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21192 (eval $ac_compile) 2>conftest.er1
21194 grep -v '^ *+' conftest.er1
>conftest.err
21196 cat conftest.err
>&5
21197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21198 (exit $ac_status); } &&
21199 { ac_try
='test -z "$ac_c_werror_flag"
21200 || test ! -s conftest.err'
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; } &&
21206 { ac_try
='test -s conftest.$ac_objext'
21207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21208 (eval $ac_try) 2>&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); }; }; then
21212 ac_header_compiler
=yes
21214 echo "$as_me: failed program was:" >&5
21215 sed 's/^/| /' conftest.
$ac_ext >&5
21217 ac_header_compiler
=no
21219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21220 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21221 echo "${ECHO_T}$ac_header_compiler" >&6
21223 # Is the header present?
21224 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21225 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21226 cat >conftest.
$ac_ext <<_ACEOF
21229 cat confdefs.h
>>conftest.
$ac_ext
21230 cat >>conftest.
$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 #include <$ac_header>
21234 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21235 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21237 grep -v '^ *+' conftest.er1
>conftest.err
21239 cat conftest.err
>&5
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } >/dev
/null
; then
21242 if test -s conftest.err
; then
21243 ac_cpp_err
=$ac_c_preproc_warn_flag
21244 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21251 if test -z "$ac_cpp_err"; then
21252 ac_header_preproc
=yes
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.
$ac_ext >&5
21257 ac_header_preproc
=no
21259 rm -f conftest.err conftest.
$ac_ext
21260 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21261 echo "${ECHO_T}$ac_header_preproc" >&6
21263 # So? What about this header?
21264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21270 ac_header_preproc
=yes
21273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21287 ## ------------------------------------------ ##
21288 ## Report this to the AC_PACKAGE_NAME lists. ##
21289 ## ------------------------------------------ ##
21292 sed "s/^/$as_me: WARNING: /" >&2
21295 echo "$as_me:$LINENO: checking for $ac_header" >&5
21296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21298 echo $ECHO_N "(cached) $ECHO_C" >&6
21300 eval "$as_ac_Header=\$ac_header_preproc"
21302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21307 cat >>confdefs.h
<<_ACEOF
21308 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21317 # Solaris requires -lintl if you want strerror (which calls dgettext)
21318 # to return localized messages.
21320 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21321 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
21322 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21323 echo $ECHO_N "(cached) $ECHO_C" >&6
21325 ac_check_lib_save_LIBS
=$LIBS
21326 LIBS
="-lintl $LIBS"
21327 cat >conftest.
$ac_ext <<_ACEOF
21330 cat confdefs.h
>>conftest.
$ac_ext
21331 cat >>conftest.
$ac_ext <<_ACEOF
21332 /* end confdefs.h. */
21334 /* Override any gcc2 internal prototype to avoid an error. */
21338 /* We use char because int might match the return type of a gcc2
21339 builtin and then its argument prototype would still apply. */
21349 rm -f conftest.
$ac_objext conftest
$ac_exeext
21350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21351 (eval $ac_link) 2>conftest.er1
21353 grep -v '^ *+' conftest.er1
>conftest.err
21355 cat conftest.err
>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } &&
21358 { ac_try
='test -z "$ac_c_werror_flag"
21359 || test ! -s conftest.err'
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; } &&
21365 { ac_try
='test -s conftest$ac_exeext'
21366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367 (eval $ac_try) 2>&5
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; }; then
21371 ac_cv_lib_intl_dgettext
=yes
21373 echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.
$ac_ext >&5
21376 ac_cv_lib_intl_dgettext
=no
21378 rm -f conftest.err conftest.
$ac_objext \
21379 conftest
$ac_exeext conftest.
$ac_ext
21380 LIBS
=$ac_check_lib_save_LIBS
21382 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21383 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
21384 if test $ac_cv_lib_intl_dgettext = yes; then
21385 cat >>confdefs.h
<<_ACEOF
21386 #define HAVE_LIBINTL 1
21389 LIBS
="-lintl $LIBS"
21394 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21395 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
21396 if test "${emacs_cv_localtime_cache+set}" = set; then
21397 echo $ECHO_N "(cached) $ECHO_C" >&6
21399 if test x
$ac_cv_func_tzset = xyes
; then
21400 if test "$cross_compiling" = yes; then
21401 # If we have tzset, assume the worst when cross-compiling.
21402 emacs_cv_localtime_cache
=yes
21404 cat >conftest.
$ac_ext <<_ACEOF
21407 cat confdefs.h
>>conftest.
$ac_ext
21408 cat >>conftest.
$ac_ext <<_ACEOF
21409 /* end confdefs.h. */
21411 extern char **environ;
21415 for (to = from = environ; (*to = *from); from++)
21416 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21419 char TZ_GMT0[] = "TZ=GMT0";
21420 char TZ_PST8[] = "TZ=PST8";
21423 time_t now = time ((time_t *) 0);
21424 int hour_GMT0, hour_unset;
21425 if (putenv (TZ_GMT0) != 0)
21427 hour_GMT0 = localtime (&now)->tm_hour;
21429 hour_unset = localtime (&now)->tm_hour;
21430 if (putenv (TZ_PST8) != 0)
21432 if (localtime (&now)->tm_hour == hour_GMT0)
21435 if (localtime (&now)->tm_hour != hour_unset)
21440 rm -f conftest
$ac_exeext
21441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21442 (eval $ac_link) 2>&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21447 (eval $ac_try) 2>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
21451 emacs_cv_localtime_cache
=no
21453 echo "$as_me: program exited with status $ac_status" >&5
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.
$ac_ext >&5
21457 ( exit $ac_status )
21458 emacs_cv_localtime_cache
=yes
21460 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21463 # If we lack tzset, report that localtime does not cache TZ,
21464 # since we can't invalidate the cache if we don't have tzset.
21465 emacs_cv_localtime_cache
=no
21468 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21469 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
21470 if test $emacs_cv_localtime_cache = yes; then
21472 cat >>confdefs.h
<<\_ACEOF
21473 #define LOCALTIME_CACHE 1
21478 if test "x$HAVE_TIMEVAL" = xyes
; then
21480 for ac_func
in gettimeofday
21482 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21483 echo "$as_me:$LINENO: checking for $ac_func" >&5
21484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21485 if eval "test \"\${$as_ac_var+set}\" = set"; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21488 cat >conftest.
$ac_ext <<_ACEOF
21491 cat confdefs.h
>>conftest.
$ac_ext
21492 cat >>conftest.
$ac_ext <<_ACEOF
21493 /* end confdefs.h. */
21494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21496 #define $ac_func innocuous_$ac_func
21498 /* System header to define __stub macros and hopefully few prototypes,
21499 which can conflict with char $ac_func (); below.
21500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21501 <limits.h> exists even on freestanding compilers. */
21504 # include <limits.h>
21506 # include <assert.h>
21511 /* Override any gcc2 internal prototype to avoid an error. */
21516 /* We use char because int might match the return type of a gcc2
21517 builtin and then its argument prototype would still apply. */
21519 /* The GNU C library defines this for functions which it implements
21520 to always fail with ENOSYS. Some functions are actually named
21521 something starting with __ and the normal name is an alias. */
21522 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21525 char (*f) () = $ac_func;
21534 return f != $ac_func;
21539 rm -f conftest.
$ac_objext conftest
$ac_exeext
21540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21541 (eval $ac_link) 2>conftest.er1
21543 grep -v '^ *+' conftest.er1
>conftest.err
21545 cat conftest.err
>&5
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); } &&
21548 { ac_try
='test -z "$ac_c_werror_flag"
21549 || test ! -s conftest.err'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; } &&
21555 { ac_try
='test -s conftest$ac_exeext'
21556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 eval "$as_ac_var=yes"
21563 echo "$as_me: failed program was:" >&5
21564 sed 's/^/| /' conftest.
$ac_ext >&5
21566 eval "$as_ac_var=no"
21568 rm -f conftest.err conftest.
$ac_objext \
21569 conftest
$ac_exeext conftest.
$ac_ext
21571 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21572 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21573 if test `eval echo '${'$as_ac_var'}'` = yes; then
21574 cat >>confdefs.h
<<_ACEOF
21575 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21581 if test $ac_cv_func_gettimeofday = yes; then
21582 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21583 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21584 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21585 echo $ECHO_N "(cached) $ECHO_C" >&6
21587 cat >conftest.
$ac_ext <<_ACEOF
21590 cat confdefs.h
>>conftest.
$ac_ext
21591 cat >>conftest.
$ac_ext <<_ACEOF
21592 /* end confdefs.h. */
21594 #ifdef TIME_WITH_SYS_TIME
21595 #include <sys/time.h>
21598 #ifdef HAVE_SYS_TIME_H
21599 #include <sys/time.h>
21607 struct timeval time;
21608 gettimeofday (&time, 0);
21613 rm -f conftest.
$ac_objext
21614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21615 (eval $ac_compile) 2>conftest.er1
21617 grep -v '^ *+' conftest.er1
>conftest.err
21619 cat conftest.err
>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); } &&
21622 { ac_try
='test -z "$ac_c_werror_flag"
21623 || test ! -s conftest.err'
21624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625 (eval $ac_try) 2>&5
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); }; } &&
21629 { ac_try
='test -s conftest.$ac_objext'
21630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21631 (eval $ac_try) 2>&5
21633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634 (exit $ac_status); }; }; then
21635 emacs_cv_gettimeofday_two_arguments
=yes
21637 echo "$as_me: failed program was:" >&5
21638 sed 's/^/| /' conftest.
$ac_ext >&5
21640 emacs_cv_gettimeofday_two_arguments
=no
21642 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21644 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21645 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21646 if test $emacs_cv_gettimeofday_two_arguments = no
; then
21648 cat >>confdefs.h
<<\_ACEOF
21649 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21656 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21657 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21658 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21659 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21662 cat >conftest.
$ac_ext <<_ACEOF
21665 cat confdefs.h
>>conftest.
$ac_ext
21666 cat >>conftest.
$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21668 #include <sys/types.h>
21669 #include <$ac_cv_struct_tm>
21675 static struct tm ac_aggr;
21676 if (ac_aggr.tm_zone)
21682 rm -f conftest.
$ac_objext
21683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21684 (eval $ac_compile) 2>conftest.er1
21686 grep -v '^ *+' conftest.er1
>conftest.err
21688 cat conftest.err
>&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } &&
21691 { ac_try
='test -z "$ac_c_werror_flag"
21692 || test ! -s conftest.err'
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; } &&
21698 { ac_try
='test -s conftest.$ac_objext'
21699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21700 (eval $ac_try) 2>&5
21702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21703 (exit $ac_status); }; }; then
21704 ac_cv_member_struct_tm_tm_zone
=yes
21706 echo "$as_me: failed program was:" >&5
21707 sed 's/^/| /' conftest.
$ac_ext >&5
21709 cat >conftest.
$ac_ext <<_ACEOF
21712 cat confdefs.h
>>conftest.
$ac_ext
21713 cat >>conftest.
$ac_ext <<_ACEOF
21714 /* end confdefs.h. */
21715 #include <sys/types.h>
21716 #include <$ac_cv_struct_tm>
21722 static struct tm ac_aggr;
21723 if (sizeof ac_aggr.tm_zone)
21729 rm -f conftest.
$ac_objext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731 (eval $ac_compile) 2>conftest.er1
21733 grep -v '^ *+' conftest.er1
>conftest.err
21735 cat conftest.err
>&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
21738 { ac_try
='test -z "$ac_c_werror_flag"
21739 || test ! -s conftest.err'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try
='test -s conftest.$ac_objext'
21746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_cv_member_struct_tm_tm_zone
=yes
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.
$ac_ext >&5
21756 ac_cv_member_struct_tm_tm_zone
=no
21758 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21762 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21763 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21764 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21766 cat >>confdefs.h
<<_ACEOF
21767 #define HAVE_STRUCT_TM_TM_ZONE 1
21773 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21775 cat >>confdefs.h
<<\_ACEOF
21776 #define HAVE_TM_ZONE 1
21780 echo "$as_me:$LINENO: checking for tzname" >&5
21781 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21782 if test "${ac_cv_var_tzname+set}" = set; then
21783 echo $ECHO_N "(cached) $ECHO_C" >&6
21785 cat >conftest.
$ac_ext <<_ACEOF
21788 cat confdefs.h
>>conftest.
$ac_ext
21789 cat >>conftest.
$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21792 #ifndef tzname /* For SGI. */
21793 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21804 rm -f conftest.
$ac_objext conftest
$ac_exeext
21805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21806 (eval $ac_link) 2>conftest.er1
21808 grep -v '^ *+' conftest.er1
>conftest.err
21810 cat conftest.err
>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } &&
21813 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21815 (eval $ac_try) 2>&5
21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21818 (exit $ac_status); }; } &&
21819 { ac_try
='test -s conftest$ac_exeext'
21820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21821 (eval $ac_try) 2>&5
21823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); }; }; then
21825 ac_cv_var_tzname
=yes
21827 echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.
$ac_ext >&5
21830 ac_cv_var_tzname
=no
21832 rm -f conftest.err conftest.
$ac_objext \
21833 conftest
$ac_exeext conftest.
$ac_ext
21835 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21836 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21837 if test $ac_cv_var_tzname = yes; then
21839 cat >>confdefs.h
<<\_ACEOF
21840 #define HAVE_TZNAME 1
21847 if test "$ac_cv_func_gettimeofday" = yes; then
21848 echo "$as_me:$LINENO: checking for struct timezone" >&5
21849 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21850 if test "${emacs_cv_struct_timezone+set}" = set; then
21851 echo $ECHO_N "(cached) $ECHO_C" >&6
21853 cat >conftest.
$ac_ext <<_ACEOF
21856 cat confdefs.h
>>conftest.
$ac_ext
21857 cat >>conftest.
$ac_ext <<_ACEOF
21858 /* end confdefs.h. */
21859 #include <sys/time.h>
21863 struct timezone tz;
21868 rm -f conftest.
$ac_objext
21869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21870 (eval $ac_compile) 2>conftest.er1
21872 grep -v '^ *+' conftest.er1
>conftest.err
21874 cat conftest.err
>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } &&
21877 { ac_try
='test -z "$ac_c_werror_flag"
21878 || test ! -s conftest.err'
21879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21880 (eval $ac_try) 2>&5
21882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21883 (exit $ac_status); }; } &&
21884 { ac_try
='test -s conftest.$ac_objext'
21885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21886 (eval $ac_try) 2>&5
21888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); }; }; then
21890 if test "$cross_compiling" = yes; then
21891 emacs_cv_struct_timezone
=yes
21893 cat >conftest.
$ac_ext <<_ACEOF
21896 cat confdefs.h
>>conftest.
$ac_ext
21897 cat >>conftest.
$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21900 #ifdef TIME_WITH_SYS_TIME
21901 #include <sys/time.h>
21904 #ifdef HAVE_SYS_TIME_H
21905 #include <sys/time.h>
21911 struct timeval time;
21912 struct timezone dummy;
21913 exit (gettimeofday (&time, &dummy));
21916 rm -f conftest
$ac_exeext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21918 (eval $ac_link) 2>&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923 (eval $ac_try) 2>&5
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); }; }; then
21927 emacs_cv_struct_timezone
=yes
21929 echo "$as_me: program exited with status $ac_status" >&5
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.
$ac_ext >&5
21933 ( exit $ac_status )
21934 emacs_cv_struct_timezone
=no
21936 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.
$ac_ext >&5
21942 emacs_cv_struct_timezone
=no
21944 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21946 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21947 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
21951 echo "$as_me:$LINENO: checking for socket" >&5
21952 echo $ECHO_N "checking for socket... $ECHO_C" >&6
21953 if test "${ac_cv_func_socket+set}" = set; then
21954 echo $ECHO_N "(cached) $ECHO_C" >&6
21956 cat >conftest.
$ac_ext <<_ACEOF
21959 cat confdefs.h
>>conftest.
$ac_ext
21960 cat >>conftest.
$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21962 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21964 #define socket innocuous_socket
21966 /* System header to define __stub macros and hopefully few prototypes,
21967 which can conflict with char socket (); below.
21968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21969 <limits.h> exists even on freestanding compilers. */
21972 # include <limits.h>
21974 # include <assert.h>
21979 /* Override any gcc2 internal prototype to avoid an error. */
21984 /* We use char because int might match the return type of a gcc2
21985 builtin and then its argument prototype would still apply. */
21987 /* The GNU C library defines this for functions which it implements
21988 to always fail with ENOSYS. Some functions are actually named
21989 something starting with __ and the normal name is an alias. */
21990 #if defined (__stub_socket) || defined (__stub___socket)
21993 char (*f) () = socket;
22002 return f != socket;
22007 rm -f conftest.
$ac_objext conftest
$ac_exeext
22008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22009 (eval $ac_link) 2>conftest.er1
22011 grep -v '^ *+' conftest.er1
>conftest.err
22013 cat conftest.err
>&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } &&
22016 { ac_try
='test -z "$ac_c_werror_flag"
22017 || test ! -s conftest.err'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; } &&
22023 { ac_try
='test -s conftest$ac_exeext'
22024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; }; then
22029 ac_cv_func_socket
=yes
22031 echo "$as_me: failed program was:" >&5
22032 sed 's/^/| /' conftest.
$ac_ext >&5
22034 ac_cv_func_socket
=no
22036 rm -f conftest.err conftest.
$ac_objext \
22037 conftest
$ac_exeext conftest.
$ac_ext
22039 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22040 echo "${ECHO_T}$ac_cv_func_socket" >&6
22041 if test $ac_cv_func_socket = yes; then
22047 if test $ok_so_far = yes; then
22048 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22049 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22050 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22051 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22052 echo $ECHO_N "(cached) $ECHO_C" >&6
22054 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22055 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22057 # Is the header compilable?
22058 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22059 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
22060 cat >conftest.
$ac_ext <<_ACEOF
22063 cat confdefs.h
>>conftest.
$ac_ext
22064 cat >>conftest.
$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22066 $ac_includes_default
22067 #include <netinet/in.h>
22069 rm -f conftest.
$ac_objext
22070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22071 (eval $ac_compile) 2>conftest.er1
22073 grep -v '^ *+' conftest.er1
>conftest.err
22075 cat conftest.err
>&5
22076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } &&
22078 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22080 (eval $ac_try) 2>&5
22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22083 (exit $ac_status); }; } &&
22084 { ac_try
='test -s conftest.$ac_objext'
22085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086 (eval $ac_try) 2>&5
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; }; then
22090 ac_header_compiler
=yes
22092 echo "$as_me: failed program was:" >&5
22093 sed 's/^/| /' conftest.
$ac_ext >&5
22095 ac_header_compiler
=no
22097 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22099 echo "${ECHO_T}$ac_header_compiler" >&6
22101 # Is the header present?
22102 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22103 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
22104 cat >conftest.
$ac_ext <<_ACEOF
22107 cat confdefs.h
>>conftest.
$ac_ext
22108 cat >>conftest.
$ac_ext <<_ACEOF
22109 /* end confdefs.h. */
22110 #include <netinet/in.h>
22112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22113 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22115 grep -v '^ *+' conftest.er1
>conftest.err
22117 cat conftest.err
>&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); } >/dev
/null
; then
22120 if test -s conftest.err
; then
22121 ac_cpp_err
=$ac_c_preproc_warn_flag
22122 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22129 if test -z "$ac_cpp_err"; then
22130 ac_header_preproc
=yes
22132 echo "$as_me: failed program was:" >&5
22133 sed 's/^/| /' conftest.
$ac_ext >&5
22135 ac_header_preproc
=no
22137 rm -f conftest.err conftest.
$ac_ext
22138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22139 echo "${ECHO_T}$ac_header_preproc" >&6
22141 # So? What about this header?
22142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22144 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22145 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22146 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22147 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22148 ac_header_preproc
=yes
22151 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22152 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22153 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22154 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22155 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22156 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22158 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22160 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22162 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22165 ## ------------------------------------------ ##
22166 ## Report this to the AC_PACKAGE_NAME lists. ##
22167 ## ------------------------------------------ ##
22170 sed "s/^/$as_me: WARNING: /" >&2
22173 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22174 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22175 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22176 echo $ECHO_N "(cached) $ECHO_C" >&6
22178 ac_cv_header_netinet_in_h
=$ac_header_preproc
22180 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22181 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22184 if test $ac_cv_header_netinet_in_h = yes; then
22192 if test $ok_so_far = yes; then
22193 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22194 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22195 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22196 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22199 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22200 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22202 # Is the header compilable?
22203 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22204 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
22205 cat >conftest.
$ac_ext <<_ACEOF
22208 cat confdefs.h
>>conftest.
$ac_ext
22209 cat >>conftest.
$ac_ext <<_ACEOF
22210 /* end confdefs.h. */
22211 $ac_includes_default
22212 #include <arpa/inet.h>
22214 rm -f conftest.
$ac_objext
22215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22216 (eval $ac_compile) 2>conftest.er1
22218 grep -v '^ *+' conftest.er1
>conftest.err
22220 cat conftest.err
>&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); } &&
22223 { ac_try
='test -z "$ac_c_werror_flag"
22224 || test ! -s conftest.err'
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; } &&
22230 { ac_try
='test -s conftest.$ac_objext'
22231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22232 (eval $ac_try) 2>&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; }; then
22236 ac_header_compiler
=yes
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.
$ac_ext >&5
22241 ac_header_compiler
=no
22243 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22245 echo "${ECHO_T}$ac_header_compiler" >&6
22247 # Is the header present?
22248 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22249 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
22250 cat >conftest.
$ac_ext <<_ACEOF
22253 cat confdefs.h
>>conftest.
$ac_ext
22254 cat >>conftest.
$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22256 #include <arpa/inet.h>
22258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22259 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22261 grep -v '^ *+' conftest.er1
>conftest.err
22263 cat conftest.err
>&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); } >/dev
/null
; then
22266 if test -s conftest.err
; then
22267 ac_cpp_err
=$ac_c_preproc_warn_flag
22268 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22275 if test -z "$ac_cpp_err"; then
22276 ac_header_preproc
=yes
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.
$ac_ext >&5
22281 ac_header_preproc
=no
22283 rm -f conftest.err conftest.
$ac_ext
22284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22285 echo "${ECHO_T}$ac_header_preproc" >&6
22287 # So? What about this header?
22288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22290 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22291 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22292 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22293 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22294 ac_header_preproc
=yes
22297 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22298 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22299 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22300 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22301 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22302 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22303 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22304 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22306 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22307 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22308 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22311 ## ------------------------------------------ ##
22312 ## Report this to the AC_PACKAGE_NAME lists. ##
22313 ## ------------------------------------------ ##
22316 sed "s/^/$as_me: WARNING: /" >&2
22319 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22320 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22321 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22324 ac_cv_header_arpa_inet_h
=$ac_header_preproc
22326 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22327 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22330 if test $ac_cv_header_arpa_inet_h = yes; then
22338 if test $ok_so_far = yes; then
22340 cat >>confdefs.h
<<\_ACEOF
22341 #define HAVE_INET_SOCKETS 1
22347 for ac_header
in sys
/ioctl.h
22349 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22351 echo "$as_me:$LINENO: checking for $ac_header" >&5
22352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22359 # Is the header compilable?
22360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22362 cat >conftest.
$ac_ext <<_ACEOF
22365 cat confdefs.h
>>conftest.
$ac_ext
22366 cat >>conftest.
$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22368 $ac_includes_default
22369 #include <$ac_header>
22371 rm -f conftest.
$ac_objext
22372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22373 (eval $ac_compile) 2>conftest.er1
22375 grep -v '^ *+' conftest.er1
>conftest.err
22377 cat conftest.err
>&5
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); } &&
22380 { ac_try
='test -z "$ac_c_werror_flag"
22381 || test ! -s conftest.err'
22382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22383 (eval $ac_try) 2>&5
22385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); }; } &&
22387 { ac_try
='test -s conftest.$ac_objext'
22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389 (eval $ac_try) 2>&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; }; then
22393 ac_header_compiler
=yes
22395 echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.
$ac_ext >&5
22398 ac_header_compiler
=no
22400 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22401 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22402 echo "${ECHO_T}$ac_header_compiler" >&6
22404 # Is the header present?
22405 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22407 cat >conftest.
$ac_ext <<_ACEOF
22410 cat confdefs.h
>>conftest.
$ac_ext
22411 cat >>conftest.
$ac_ext <<_ACEOF
22412 /* end confdefs.h. */
22413 #include <$ac_header>
22415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22416 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22418 grep -v '^ *+' conftest.er1
>conftest.err
22420 cat conftest.err
>&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } >/dev
/null
; then
22423 if test -s conftest.err
; then
22424 ac_cpp_err
=$ac_c_preproc_warn_flag
22425 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22432 if test -z "$ac_cpp_err"; then
22433 ac_header_preproc
=yes
22435 echo "$as_me: failed program was:" >&5
22436 sed 's/^/| /' conftest.
$ac_ext >&5
22438 ac_header_preproc
=no
22440 rm -f conftest.err conftest.
$ac_ext
22441 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22442 echo "${ECHO_T}$ac_header_preproc" >&6
22444 # So? What about this header?
22445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22451 ac_header_preproc
=yes
22454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22468 ## ------------------------------------------ ##
22469 ## Report this to the AC_PACKAGE_NAME lists. ##
22470 ## ------------------------------------------ ##
22473 sed "s/^/$as_me: WARNING: /" >&2
22476 echo "$as_me:$LINENO: checking for $ac_header" >&5
22477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22479 echo $ECHO_N "(cached) $ECHO_C" >&6
22481 eval "$as_ac_Header=\$ac_header_preproc"
22483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22484 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22488 cat >>confdefs.h
<<_ACEOF
22489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22497 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
22499 cat >>confdefs.h
<<\_ACEOF
22500 #define HAVE_AIX_SMT_EXP 1
22505 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22506 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
22507 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
22508 echo "$as_me:$LINENO: result: yes" >&5
22509 echo "${ECHO_T}yes" >&6
22511 cat >>confdefs.h
<<\_ACEOF
22512 #define HAVE_DEV_PTMX 1
22516 echo "$as_me:$LINENO: result: no" >&5
22517 echo "${ECHO_T}no" >&6
22520 echo "$as_me:$LINENO: checking for pid_t" >&5
22521 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22522 if test "${ac_cv_type_pid_t+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
22525 cat >conftest.
$ac_ext <<_ACEOF
22528 cat confdefs.h
>>conftest.
$ac_ext
22529 cat >>conftest.
$ac_ext <<_ACEOF
22530 /* end confdefs.h. */
22531 $ac_includes_default
22537 if (sizeof (pid_t))
22543 rm -f conftest.
$ac_objext
22544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22545 (eval $ac_compile) 2>conftest.er1
22547 grep -v '^ *+' conftest.er1
>conftest.err
22549 cat conftest.err
>&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } &&
22552 { ac_try
='test -z "$ac_c_werror_flag"
22553 || test ! -s conftest.err'
22554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22555 (eval $ac_try) 2>&5
22557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22558 (exit $ac_status); }; } &&
22559 { ac_try
='test -s conftest.$ac_objext'
22560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22561 (eval $ac_try) 2>&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); }; }; then
22565 ac_cv_type_pid_t
=yes
22567 echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.
$ac_ext >&5
22570 ac_cv_type_pid_t
=no
22572 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22574 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22575 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22576 if test $ac_cv_type_pid_t = yes; then
22580 cat >>confdefs.h
<<_ACEOF
22588 for ac_header
in unistd.h vfork.h
22590 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22592 echo "$as_me:$LINENO: checking for $ac_header" >&5
22593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
22597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22600 # Is the header compilable?
22601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22603 cat >conftest.
$ac_ext <<_ACEOF
22606 cat confdefs.h
>>conftest.
$ac_ext
22607 cat >>conftest.
$ac_ext <<_ACEOF
22608 /* end confdefs.h. */
22609 $ac_includes_default
22610 #include <$ac_header>
22612 rm -f conftest.
$ac_objext
22613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22614 (eval $ac_compile) 2>conftest.er1
22616 grep -v '^ *+' conftest.er1
>conftest.err
22618 cat conftest.err
>&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } &&
22621 { ac_try
='test -z "$ac_c_werror_flag"
22622 || test ! -s conftest.err'
22623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22624 (eval $ac_try) 2>&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); }; } &&
22628 { ac_try
='test -s conftest.$ac_objext'
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; }; then
22634 ac_header_compiler
=yes
22636 echo "$as_me: failed program was:" >&5
22637 sed 's/^/| /' conftest.
$ac_ext >&5
22639 ac_header_compiler
=no
22641 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22643 echo "${ECHO_T}$ac_header_compiler" >&6
22645 # Is the header present?
22646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22648 cat >conftest.
$ac_ext <<_ACEOF
22651 cat confdefs.h
>>conftest.
$ac_ext
22652 cat >>conftest.
$ac_ext <<_ACEOF
22653 /* end confdefs.h. */
22654 #include <$ac_header>
22656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22657 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22659 grep -v '^ *+' conftest.er1
>conftest.err
22661 cat conftest.err
>&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } >/dev
/null
; then
22664 if test -s conftest.err
; then
22665 ac_cpp_err
=$ac_c_preproc_warn_flag
22666 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22673 if test -z "$ac_cpp_err"; then
22674 ac_header_preproc
=yes
22676 echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.
$ac_ext >&5
22679 ac_header_preproc
=no
22681 rm -f conftest.err conftest.
$ac_ext
22682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22683 echo "${ECHO_T}$ac_header_preproc" >&6
22685 # So? What about this header?
22686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22692 ac_header_preproc
=yes
22695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22709 ## ------------------------------------------ ##
22710 ## Report this to the AC_PACKAGE_NAME lists. ##
22711 ## ------------------------------------------ ##
22714 sed "s/^/$as_me: WARNING: /" >&2
22717 echo "$as_me:$LINENO: checking for $ac_header" >&5
22718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22722 eval "$as_ac_Header=\$ac_header_preproc"
22724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22729 cat >>confdefs.h
<<_ACEOF
22730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22739 for ac_func
in fork vfork
22741 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22742 echo "$as_me:$LINENO: checking for $ac_func" >&5
22743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22744 if eval "test \"\${$as_ac_var+set}\" = set"; then
22745 echo $ECHO_N "(cached) $ECHO_C" >&6
22747 cat >conftest.
$ac_ext <<_ACEOF
22750 cat confdefs.h
>>conftest.
$ac_ext
22751 cat >>conftest.
$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22755 #define $ac_func innocuous_$ac_func
22757 /* System header to define __stub macros and hopefully few prototypes,
22758 which can conflict with char $ac_func (); below.
22759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22760 <limits.h> exists even on freestanding compilers. */
22763 # include <limits.h>
22765 # include <assert.h>
22770 /* Override any gcc2 internal prototype to avoid an error. */
22775 /* We use char because int might match the return type of a gcc2
22776 builtin and then its argument prototype would still apply. */
22778 /* The GNU C library defines this for functions which it implements
22779 to always fail with ENOSYS. Some functions are actually named
22780 something starting with __ and the normal name is an alias. */
22781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22784 char (*f) () = $ac_func;
22793 return f != $ac_func;
22798 rm -f conftest.
$ac_objext conftest
$ac_exeext
22799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22800 (eval $ac_link) 2>conftest.er1
22802 grep -v '^ *+' conftest.er1
>conftest.err
22804 cat conftest.err
>&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } &&
22807 { ac_try
='test -z "$ac_c_werror_flag"
22808 || test ! -s conftest.err'
22809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810 (eval $ac_try) 2>&5
22812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813 (exit $ac_status); }; } &&
22814 { ac_try
='test -s conftest$ac_exeext'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; }; then
22820 eval "$as_ac_var=yes"
22822 echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.
$ac_ext >&5
22825 eval "$as_ac_var=no"
22827 rm -f conftest.err conftest.
$ac_objext \
22828 conftest
$ac_exeext conftest.
$ac_ext
22830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22832 if test `eval echo '${'$as_ac_var'}'` = yes; then
22833 cat >>confdefs.h
<<_ACEOF
22834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22840 if test "x$ac_cv_func_fork" = xyes
; then
22841 echo "$as_me:$LINENO: checking for working fork" >&5
22842 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22843 if test "${ac_cv_func_fork_works+set}" = set; then
22844 echo $ECHO_N "(cached) $ECHO_C" >&6
22846 if test "$cross_compiling" = yes; then
22847 ac_cv_func_fork_works
=cross
22849 cat >conftest.
$ac_ext <<_ACEOF
22850 /* By Ruediger Kuhlmann. */
22851 #include <sys/types.h>
22853 # include <unistd.h>
22855 /* Some systems only have a dummy stub for fork() */
22863 rm -f conftest
$ac_exeext
22864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22865 (eval $ac_link) 2>&5
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22870 (eval $ac_try) 2>&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); }; }; then
22874 ac_cv_func_fork_works
=yes
22876 echo "$as_me: program exited with status $ac_status" >&5
22877 echo "$as_me: failed program was:" >&5
22878 sed 's/^/| /' conftest.
$ac_ext >&5
22880 ( exit $ac_status )
22881 ac_cv_func_fork_works
=no
22883 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22886 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22887 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22890 ac_cv_func_fork_works
=$ac_cv_func_fork
22892 if test "x$ac_cv_func_fork_works" = xcross
; then
22894 *-*-amigaos* |
*-*-msdosdjgpp*)
22895 # Override, as these systems have only a dummy fork() stub
22896 ac_cv_func_fork_works
=no
22899 ac_cv_func_fork_works
=yes
22902 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22903 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22905 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22906 if test "x$ac_cv_func_vfork" = xyes
; then
22907 echo "$as_me:$LINENO: checking for working vfork" >&5
22908 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22909 if test "${ac_cv_func_vfork_works+set}" = set; then
22910 echo $ECHO_N "(cached) $ECHO_C" >&6
22912 if test "$cross_compiling" = yes; then
22913 ac_cv_func_vfork_works
=cross
22915 cat >conftest.
$ac_ext <<_ACEOF
22918 cat confdefs.h
>>conftest.
$ac_ext
22919 cat >>conftest.
$ac_ext <<_ACEOF
22920 /* end confdefs.h. */
22921 /* Thanks to Paul Eggert for this test. */
22923 #include <stdlib.h>
22924 #include <sys/types.h>
22925 #include <sys/stat.h>
22926 #include <sys/wait.h>
22928 # include <unistd.h>
22931 # include <vfork.h>
22933 /* On some sparc systems, changes by the child to local and incoming
22934 argument registers are propagated back to the parent. The compiler
22935 is told about this with #include <vfork.h>, but some compilers
22936 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22937 static variable whose address is put into a register that is
22938 clobbered by the vfork. */
22941 sparc_address_test (int arg)
22943 sparc_address_test (arg) int arg;
22946 static pid_t child;
22964 pid_t parent = getpid ();
22967 sparc_address_test (0);
22972 /* Here is another test for sparc vfork register problems. This
22973 test uses lots of local variables, at least as many local
22974 variables as main has allocated so far including compiler
22975 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22976 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22977 reuse the register of parent for one of the local variables,
22978 since it will think that parent can't possibly be used any more
22979 in this routine. Assigning to the local variable will thus
22980 munge parent in the parent process. */
22982 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22983 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22984 /* Convince the compiler that p..p7 are live; otherwise, it might
22985 use the same hardware register for all 8 local variables. */
22986 if (p != p1 || p != p2 || p != p3 || p != p4
22987 || p != p5 || p != p6 || p != p7)
22990 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22991 from child file descriptors. If the child closes a descriptor
22992 before it execs or exits, this munges the parent's descriptor
22993 as well. Test for this by closing stdout in the child. */
22994 _exit(close(fileno(stdout)) != 0);
22999 while (wait(&status) != child)
23002 /* Was there some problem with vforking? */
23005 /* Did the child fail? (This shouldn't happen.) */
23008 /* Did the vfork/compiler bug occur? */
23009 || parent != getpid()
23011 /* Did the file descriptor bug occur? */
23012 || fstat(fileno(stdout), &st) != 0
23017 rm -f conftest
$ac_exeext
23018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23019 (eval $ac_link) 2>&5
23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; }; then
23028 ac_cv_func_vfork_works
=yes
23030 echo "$as_me: program exited with status $ac_status" >&5
23031 echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.
$ac_ext >&5
23034 ( exit $ac_status )
23035 ac_cv_func_vfork_works
=no
23037 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23040 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23041 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23044 if test "x$ac_cv_func_fork_works" = xcross
; then
23045 ac_cv_func_vfork_works
=$ac_cv_func_vfork
23046 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23047 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23050 if test "x$ac_cv_func_vfork_works" = xyes
; then
23052 cat >>confdefs.h
<<\_ACEOF
23053 #define HAVE_WORKING_VFORK 1
23058 cat >>confdefs.h
<<\_ACEOF
23063 if test "x$ac_cv_func_fork_works" = xyes
; then
23065 cat >>confdefs.h
<<\_ACEOF
23066 #define HAVE_WORKING_FORK 1
23072 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23073 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
23074 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23075 echo $ECHO_N "(cached) $ECHO_C" >&6
23077 cat >conftest.
$ac_ext <<_ACEOF
23080 cat confdefs.h
>>conftest.
$ac_ext
23081 cat >>conftest.
$ac_ext <<_ACEOF
23082 /* end confdefs.h. */
23083 #include <langinfo.h>
23087 char* cs = nl_langinfo(CODESET);
23092 rm -f conftest.
$ac_objext conftest
$ac_exeext
23093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23094 (eval $ac_link) 2>conftest.er1
23096 grep -v '^ *+' conftest.er1
>conftest.err
23098 cat conftest.err
>&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); } &&
23101 { ac_try
='test -z "$ac_c_werror_flag"
23102 || test ! -s conftest.err'
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; } &&
23108 { ac_try
='test -s conftest$ac_exeext'
23109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110 (eval $ac_try) 2>&5
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); }; }; then
23114 emacs_cv_langinfo_codeset
=yes
23116 echo "$as_me: failed program was:" >&5
23117 sed 's/^/| /' conftest.
$ac_ext >&5
23119 emacs_cv_langinfo_codeset
=no
23121 rm -f conftest.err conftest.
$ac_objext \
23122 conftest
$ac_exeext conftest.
$ac_ext
23125 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23126 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
23127 if test $emacs_cv_langinfo_codeset = yes; then
23129 cat >>confdefs.h
<<\_ACEOF
23130 #define HAVE_LANGINFO_CODESET 1
23135 echo "$as_me:$LINENO: checking for size_t" >&5
23136 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23137 if test "${ac_cv_type_size_t+set}" = set; then
23138 echo $ECHO_N "(cached) $ECHO_C" >&6
23140 cat >conftest.
$ac_ext <<_ACEOF
23143 cat confdefs.h
>>conftest.
$ac_ext
23144 cat >>conftest.
$ac_ext <<_ACEOF
23145 /* end confdefs.h. */
23146 $ac_includes_default
23152 if (sizeof (size_t))
23158 rm -f conftest.
$ac_objext
23159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23160 (eval $ac_compile) 2>conftest.er1
23162 grep -v '^ *+' conftest.er1
>conftest.err
23164 cat conftest.err
>&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } &&
23167 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169 (eval $ac_try) 2>&5
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; } &&
23173 { ac_try
='test -s conftest.$ac_objext'
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; }; then
23179 ac_cv_type_size_t
=yes
23181 echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.
$ac_ext >&5
23184 ac_cv_type_size_t
=no
23186 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23188 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23189 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23190 if test $ac_cv_type_size_t = yes; then
23192 cat >>confdefs.h
<<_ACEOF
23193 #define HAVE_SIZE_T 1
23200 echo "$as_me:$LINENO: checking for mbstate_t" >&5
23201 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
23202 if test "${ac_cv_type_mbstate_t+set}" = set; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23205 cat >conftest.
$ac_ext <<_ACEOF
23208 cat confdefs.h
>>conftest.
$ac_ext
23209 cat >>conftest.
$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 $ac_includes_default
23212 # include <wchar.h>
23216 mbstate_t x; return sizeof x;
23221 rm -f conftest.
$ac_objext
23222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23223 (eval $ac_compile) 2>conftest.er1
23225 grep -v '^ *+' conftest.er1
>conftest.err
23227 cat conftest.err
>&5
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); } &&
23230 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232 (eval $ac_try) 2>&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; } &&
23236 { ac_try
='test -s conftest.$ac_objext'
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; }; then
23242 ac_cv_type_mbstate_t
=yes
23244 echo "$as_me: failed program was:" >&5
23245 sed 's/^/| /' conftest.
$ac_ext >&5
23247 ac_cv_type_mbstate_t
=no
23249 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23251 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23252 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
23253 if test $ac_cv_type_mbstate_t = yes; then
23255 cat >>confdefs.h
<<\_ACEOF
23256 #define HAVE_MBSTATE_T 1
23261 cat >>confdefs.h
<<\_ACEOF
23262 #define mbstate_t int
23267 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23268 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
23269 if test "${emacs_cv_c_restrict+set}" = set; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23272 cat >conftest.
$ac_ext <<_ACEOF
23275 cat confdefs.h
>>conftest.
$ac_ext
23276 cat >>conftest.
$ac_ext <<_ACEOF
23277 /* end confdefs.h. */
23278 void fred (int *restrict x);
23287 rm -f conftest.
$ac_objext
23288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23289 (eval $ac_compile) 2>conftest.er1
23291 grep -v '^ *+' conftest.er1
>conftest.err
23293 cat conftest.err
>&5
23294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23295 (exit $ac_status); } &&
23296 { ac_try
='test -z "$ac_c_werror_flag"
23297 || test ! -s conftest.err'
23298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23299 (eval $ac_try) 2>&5
23301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23302 (exit $ac_status); }; } &&
23303 { ac_try
='test -s conftest.$ac_objext'
23304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23305 (eval $ac_try) 2>&5
23307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308 (exit $ac_status); }; }; then
23309 emacs_cv_c_restrict
=yes
23311 echo "$as_me: failed program was:" >&5
23312 sed 's/^/| /' conftest.
$ac_ext >&5
23314 cat >conftest.
$ac_ext <<_ACEOF
23317 cat confdefs.h
>>conftest.
$ac_ext
23318 cat >>conftest.
$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 void fred (int *__restrict x);
23329 rm -f conftest.
$ac_objext
23330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23331 (eval $ac_compile) 2>conftest.er1
23333 grep -v '^ *+' conftest.er1
>conftest.err
23335 cat conftest.err
>&5
23336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337 (exit $ac_status); } &&
23338 { ac_try
='test -z "$ac_c_werror_flag"
23339 || test ! -s conftest.err'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; } &&
23345 { ac_try
='test -s conftest.$ac_objext'
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; }; then
23351 emacs_cv_c_restrict
=__restrict
23353 echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.
$ac_ext >&5
23356 emacs_cv_c_restrict
=no
23358 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23360 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23362 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23363 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
23364 case "$emacs_cv_c_restrict" in
23365 yes) emacs_restrict
=restrict
;;
23366 no
) emacs_restrict
="";;
23367 *) emacs_restrict
="$emacs_cv_c_restrict";;
23369 if test "$emacs_restrict" != __restrict
; then
23371 cat >>confdefs.h
<<_ACEOF
23372 #define __restrict $emacs_restrict
23377 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23378 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
23379 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23380 echo $ECHO_N "(cached) $ECHO_C" >&6
23382 cat >conftest.
$ac_ext <<_ACEOF
23385 cat confdefs.h
>>conftest.
$ac_ext
23386 cat >>conftest.
$ac_ext <<_ACEOF
23387 /* end confdefs.h. */
23388 void fred (int x[__restrict]);
23397 rm -f conftest.
$ac_objext
23398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23399 (eval $ac_compile) 2>conftest.er1
23401 grep -v '^ *+' conftest.er1
>conftest.err
23403 cat conftest.err
>&5
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } &&
23406 { ac_try
='test -z "$ac_c_werror_flag"
23407 || test ! -s conftest.err'
23408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409 (eval $ac_try) 2>&5
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); }; } &&
23413 { ac_try
='test -s conftest.$ac_objext'
23414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; }; then
23419 emacs_cv_c_restrict_arr
=yes
23421 echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.
$ac_ext >&5
23424 emacs_cv_c_restrict_arr
=no
23426 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23428 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23429 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
23430 if test "$emacs_cv_c_restrict_arr" = yes; then
23432 cat >>confdefs.h
<<\_ACEOF
23433 #define __restrict_arr __restrict
23440 # Set up the CFLAGS for real compilation, so we can substitute it.
23441 CFLAGS
="$REAL_CFLAGS"
23442 CPPFLAGS
="$REAL_CPPFLAGS"
23444 #### Find out which version of Emacs this is.
23445 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23446 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23447 if test x
"${version}" = x
; then
23448 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23449 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23450 { (exit 1); exit 1; }; }
23453 ### Specify what sort of things we'll be editing into Makefile and config.h.
23454 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23490 cat >>confdefs.h
<<_ACEOF
23491 #define EMACS_CONFIGURATION "${canonical}"
23495 cat >>confdefs.h
<<_ACEOF
23496 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23500 cat >>confdefs.h
<<_ACEOF
23501 #define config_machfile "${machfile}"
23505 cat >>confdefs.h
<<_ACEOF
23506 #define config_opsysfile "${opsysfile}"
23510 cat >>confdefs.h
<<_ACEOF
23511 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23515 cat >>confdefs.h
<<_ACEOF
23516 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23520 cat >>confdefs.h
<<_ACEOF
23521 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23525 cat >>confdefs.h
<<_ACEOF
23526 #define UNEXEC_SRC ${UNEXEC_SRC}
23530 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23532 cat >>confdefs.h
<<\_ACEOF
23533 #define HAVE_X_WINDOWS 1
23537 if test "${USE_X_TOOLKIT}" != "none" ; then
23539 cat >>confdefs.h
<<\_ACEOF
23540 #define USE_X_TOOLKIT 1
23544 if test "${HAVE_X11}" = "yes" ; then
23546 cat >>confdefs.h
<<\_ACEOF
23551 if test "${HAVE_XFREE386}" = "yes" ; then
23553 cat >>confdefs.h
<<\_ACEOF
23554 #define HAVE_XFREE386 1
23558 if test "${HAVE_MENUS}" = "yes" ; then
23560 cat >>confdefs.h
<<\_ACEOF
23561 #define HAVE_MENUS 1
23565 if test "${GNU_MALLOC}" = "yes" ; then
23567 cat >>confdefs.h
<<\_ACEOF
23568 #define GNU_MALLOC 1
23572 if test "${REL_ALLOC}" = "yes" ; then
23574 cat >>confdefs.h
<<\_ACEOF
23575 #define REL_ALLOC 1
23584 #### Report on what we decided to do.
23585 #### Report GTK as a toolkit, even if it doesn't use Xt.
23586 #### It makes printing result more understandable as using GTK sets
23587 #### toolkit_scroll_bars to yes by default.
23588 if test "${HAVE_GTK}" = "yes"; then
23593 Configured for \`${canonical}'.
23595 Where should the build process find the source code? ${srcdir}
23596 What operating system and machine description files should Emacs use?
23597 \`${opsysfile}' and \`${machfile}'
23598 What compiler should emacs be built with? ${CC} ${CFLAGS}
23599 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23600 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23601 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23602 What window system should Emacs use? ${window_system}
23603 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23605 if test -n "${x_includes}"; then
23606 echo " Where do we find X Windows header files? ${x_includes}"
23608 echo " Where do we find X Windows header files? Standard dirs"
23610 if test -n "${x_libraries}"; then
23611 echo " Where do we find X Windows libraries? ${x_libraries}"
23613 echo " Where do we find X Windows libraries? Standard dirs"
23616 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23617 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23618 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23619 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23620 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23621 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23622 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23625 if test $USE_XASSERTS = yes; then
23626 echo " Compiling with asserts turned on."
23627 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23633 # Remove any trailing slashes in these variables.
23634 test "${prefix}" != NONE
&&
23635 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23636 test "${exec_prefix}" != NONE
&&
23637 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23639 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23640 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23641 ## from Makefile.c can correctly provide the arg `-traditional' to the
23644 cat >conftest.
$ac_ext <<_ACEOF
23647 cat confdefs.h
>>conftest.
$ac_ext
23648 cat >>conftest.
$ac_ext <<_ACEOF
23649 /* end confdefs.h. */
23652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23653 $EGREP "yes..yes" >/dev
/null
2>&1; then
23654 CPP_NEED_TRADITIONAL
=no
23656 CPP_NEED_TRADITIONAL
=yes
23661 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"
23662 ac_config_commands
="$ac_config_commands default"
23663 cat >confcache
<<\_ACEOF
23664 # This file is a shell script that caches the results of configure
23665 # tests run on this system so they can be shared between configure
23666 # scripts and configure runs, see configure's option --config-cache.
23667 # It is not useful on other systems. If it contains results you don't
23668 # want to keep, you may remove or edit it.
23670 # config.status only pays attention to the cache file if you give it
23671 # the --recheck option to rerun configure.
23673 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23674 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23675 # following values.
23679 # The following way of writing the cache mishandles newlines in values,
23680 # but we know of no workaround that is simple, portable, and efficient.
23681 # So, don't put newlines in cache variables' values.
23682 # Ultrix sh set writes to stderr and can't be redirected directly,
23683 # and sets the high bit in the cache file unless we assign to the vars.
23686 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23688 # `set' does not quote correctly, so add quotes (double-quote
23689 # substitution turns \\\\ into \\, and sed turns \\ into \).
23692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23695 # `set' quotes correctly as required by POSIX, so do not add quotes.
23697 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23704 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23706 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23708 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23709 if test -w $cache_file; then
23710 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23711 cat confcache
>$cache_file
23713 echo "not updating unwritable cache $cache_file"
23718 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23719 # Let make expand exec_prefix.
23720 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23722 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23723 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23724 # trailing colons and then remove the whole line if VPATH becomes empty
23725 # (actually we leave an empty line to preserve line numbers).
23726 if test "x$srcdir" = x.
; then
23727 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23728 s/:*\$(srcdir):*/:/;
23729 s/:*\${srcdir}:*/:/;
23731 s/^\([^=]*=[ ]*\):*/\1/;
23737 DEFS
=-DHAVE_CONFIG_H
23741 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23742 # 1. Remove the extension, and $U if already installed.
23743 ac_i
=`echo "$ac_i" |
23744 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23746 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23747 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23749 LIBOBJS
=$ac_libobjs
23751 LTLIBOBJS
=$ac_ltlibobjs
23755 : ${CONFIG_STATUS=./config.status}
23756 ac_clean_files_save
=$ac_clean_files
23757 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23760 cat >$CONFIG_STATUS <<_ACEOF
23762 # Generated by $as_me.
23763 # Run this file to recreate the current configuration.
23764 # Compiler output produced by configure, useful for debugging
23765 # configure, is in config.log if it exists.
23768 ac_cs_recheck=false
23770 SHELL=\${CONFIG_SHELL-$SHELL}
23773 cat >>$CONFIG_STATUS <<\_ACEOF
23774 ## --------------------- ##
23775 ## M4sh Initialization. ##
23776 ## --------------------- ##
23778 # Be Bourne compatible
23779 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23782 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23783 # is contrary to our usage. Disable this feature.
23784 alias -g '${1+"$@"}'='"$@"'
23785 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23788 DUALCASE
=1; export DUALCASE
# for MKS sh
23790 # Support unset when possible.
23791 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23798 # Work around bugs in pre-3.0 UWIN ksh.
23799 $as_unset ENV MAIL MAILPATH
23806 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23807 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23808 LC_TELEPHONE LC_TIME
23810 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23811 eval $as_var=C
; export $as_var
23817 # Required to use basename.
23818 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23824 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23825 as_basename
=basename
23831 # Name of the executable.
23832 as_me
=`$as_basename "$0" ||
23833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23834 X"$0" : 'X\(//\)$' \| \
23835 X"$0" : 'X\(/\)$' \| \
23836 . : '\(.\)' 2>/dev/null ||
23838 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23839 /^X\/\(\/\/\)$/{ s//\1/; q; }
23840 /^X\/\(\/\).*/{ s//\1/; q; }
23844 # PATH needs CR, and LINENO needs CR and PATH.
23845 # Avoid depending upon Character Ranges.
23846 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23847 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23848 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23849 as_cr_digits
='0123456789'
23850 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23852 # The user is always right.
23853 if test "${PATH_SEPARATOR+set}" != set; then
23854 echo "#! /bin/sh" >conf$$.sh
23855 echo "exit 0" >>conf$$.sh
23857 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23866 as_lineno_1
=$LINENO
23867 as_lineno_2
=$LINENO
23868 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23869 test "x$as_lineno_1" != "x$as_lineno_2" &&
23870 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23871 # Find who we are. Look in the path if we contain no path at all
23874 *[\\/]* ) as_myself
=$0 ;;
23875 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23876 for as_dir
in $PATH
23879 test -z "$as_dir" && as_dir
=.
23880 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23885 # We did not find ourselves, most probably we were run as `sh COMMAND'
23886 # in which case we are not to be found in the path.
23887 if test "x$as_myself" = x
; then
23890 if test ! -f "$as_myself"; then
23891 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23892 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23893 { (exit 1); exit 1; }; }
23895 case $CONFIG_SHELL in
23897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23898 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23901 test -z "$as_dir" && as_dir
=.
23902 for as_base
in sh bash ksh sh5
; do
23905 if ("$as_dir/$as_base" -c '
23906 as_lineno_1=$LINENO
23907 as_lineno_2=$LINENO
23908 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23909 test "x$as_lineno_1" != "x$as_lineno_2" &&
23910 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
23911 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
23912 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
23913 CONFIG_SHELL
=$as_dir/$as_base
23914 export CONFIG_SHELL
23915 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23923 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23924 # uniformly replaced by the line number. The first 'sed' inserts a
23925 # line-number line before each line; the second 'sed' does the real
23926 # work. The second script uses 'N' to pair each line-number line
23927 # with the numbered line, and appends trailing '-' during
23928 # substitution so that $LINENO is not a special case at line end.
23929 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23930 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23931 sed '=' <$as_myself |
23936 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23939 s,^['$as_cr_digits']*\n,,
23940 ' >$as_me.lineno
&&
23941 chmod +x
$as_me.lineno ||
23942 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23943 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23944 { (exit 1); exit 1; }; }
23946 # Don't try to exec as it changes $[0], causing all sort of problems
23947 # (the dirname of $[0] is not the place where we might find the
23948 # original and so on. Autoconf is especially sensible to this).
23950 # Exit status is that of the last command.
23955 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23956 *c
*,-n*) ECHO_N
= ECHO_C
='
23958 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
23959 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
23962 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23968 rm -f conf$$ conf$$.exe conf$$.
file
23970 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23971 # We could just check for DJGPP; but this test a) works b) is more generic
23972 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23973 if test -f conf$$.exe
; then
23974 # Don't use ln at all; we don't have any links
23979 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23984 rm -f conf$$ conf$$.exe conf$$.
file
23986 if mkdir
-p .
2>/dev
/null
; then
23989 test -d .
/-p && rmdir .
/-p
23993 as_executable_p
="test -f"
23995 # Sed expression to map a string onto a valid CPP name.
23996 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23998 # Sed expression to map a string onto a valid variable name.
23999 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24003 # We need space, tab and new line, in precisely that order.
24013 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24014 # report actual input values of CONFIG_FILES etc. instead of their
24015 # values after options handling. Logging --version etc. is OK.
24019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24020 ## Running $as_me. ##
24025 This file was extended by $as_me, which was
24026 generated by GNU Autoconf 2.59. Invocation command line was
24028 CONFIG_FILES = $CONFIG_FILES
24029 CONFIG_HEADERS = $CONFIG_HEADERS
24030 CONFIG_LINKS = $CONFIG_LINKS
24031 CONFIG_COMMANDS = $CONFIG_COMMANDS
24035 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24039 # Files that config.status was made for.
24040 if test -n "$ac_config_files"; then
24041 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24044 if test -n "$ac_config_headers"; then
24045 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24048 if test -n "$ac_config_links"; then
24049 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24052 if test -n "$ac_config_commands"; then
24053 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24056 cat >>$CONFIG_STATUS <<\_ACEOF
24059 \`$as_me' instantiates files from templates according to the
24060 current configuration.
24062 Usage: $0 [OPTIONS] [FILE]...
24064 -h, --help print this help, then exit
24065 -V, --version print version number, then exit
24066 -q, --quiet do not print progress messages
24067 -d, --debug don't remove temporary files
24068 --recheck update $as_me by reconfiguring in the same conditions
24069 --file=FILE[:TEMPLATE]
24070 instantiate the configuration file FILE
24071 --header=FILE[:TEMPLATE]
24072 instantiate the configuration header FILE
24074 Configuration files:
24077 Configuration headers:
24080 Configuration commands:
24083 Report bugs to <bug-autoconf@gnu.org>."
24086 cat >>$CONFIG_STATUS <<_ACEOF
24089 configured by $0, generated by GNU Autoconf 2.59,
24090 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24092 Copyright (C) 2003 Free Software Foundation, Inc.
24093 This config.status script is free software; the Free Software Foundation
24094 gives unlimited permission to copy, distribute and modify it."
24099 cat >>$CONFIG_STATUS <<\_ACEOF
24100 # If no file are specified by the user, then we need to provide default
24101 # value. By we need to know if files were specified by the user.
24107 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
24108 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
24116 *) # This is not an option, so the user has probably given explicit
24119 ac_need_defaults
=false
;;
24123 # Handling of the options.
24125 cat >>$CONFIG_STATUS <<\_ACEOF
24126 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24128 --version |
--vers* |
-V )
24129 echo "$ac_cs_version"; exit 0 ;;
24131 # Conflict between --help and --header
24132 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24133 Try \`$0 --help' for more information." >&5
24134 echo "$as_me: error: ambiguous option: $1
24135 Try \`$0 --help' for more information." >&2;}
24136 { (exit 1); exit 1; }; };;
24137 --help |
--hel |
-h )
24138 echo "$ac_cs_usage"; exit 0 ;;
24139 --debug |
--d* |
-d )
24141 --file |
--fil |
--fi |
--f )
24143 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24144 ac_need_defaults
=false
;;
24145 --header |
--heade |
--head |
--hea )
24147 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24148 ac_need_defaults
=false
;;
24149 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24150 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24153 # This is an error.
24154 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24155 Try \`$0 --help' for more information." >&5
24156 echo "$as_me: error: unrecognized option: $1
24157 Try \`$0 --help' for more information." >&2;}
24158 { (exit 1); exit 1; }; } ;;
24160 *) ac_config_targets
="$ac_config_targets $1" ;;
24166 ac_configure_extra_args
=
24168 if $ac_cs_silent; then
24170 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24174 cat >>$CONFIG_STATUS <<_ACEOF
24175 if \$ac_cs_recheck; then
24176 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24177 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24182 cat >>$CONFIG_STATUS <<_ACEOF
24184 # INIT-COMMANDS section.
24187 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24193 cat >>$CONFIG_STATUS <<\_ACEOF
24194 for ac_config_target
in $ac_config_targets
24196 case "$ac_config_target" in
24197 # Handling of arguments.
24198 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24199 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24200 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24201 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24202 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24203 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24204 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24205 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24206 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24207 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24208 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24209 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24210 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24211 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24212 { (exit 1); exit 1; }; };;
24216 # If the user did not use the arguments to specify the items to instantiate,
24217 # then the envvar interface is used. Set only those that are not.
24218 # We use the long form for the default assignment because of an extremely
24219 # bizarre bug on SunOS 4.1.3.
24220 if $ac_need_defaults; then
24221 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24222 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24223 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24226 # Have a temporary directory for convenience. Make it in the build tree
24227 # simply because there is no reason to put it here, and in addition,
24228 # creating and moving files from /tmp can sometimes cause problems.
24229 # Create a temporary directory, and hook for its removal unless debugging.
24232 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24233 trap '{ (exit 1); exit 1; }' 1 2 13 15
24236 # Create a (secure) tmp directory for tmp files.
24239 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24240 test -n "$tmp" && test -d "$tmp"
24243 tmp
=.
/confstat$$
-$RANDOM
24244 (umask 077 && mkdir
$tmp)
24247 echo "$me: cannot create a temporary directory in ." >&2
24248 { (exit 1); exit 1; }
24253 cat >>$CONFIG_STATUS <<_ACEOF
24256 # CONFIG_FILES section.
24259 # No need to generate the scripts if there are no CONFIG_FILES.
24260 # This happens for instance when ./config.status config.h
24261 if test -n "\$CONFIG_FILES"; then
24262 # Protect against being on the right side of a sed subst in config.status.
24263 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24264 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24265 s,@SHELL@,$SHELL,;t t
24266 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24267 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24268 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24269 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24270 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24271 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24272 s,@exec_prefix@,$exec_prefix,;t t
24273 s,@prefix@,$prefix,;t t
24274 s,@program_transform_name@,$program_transform_name,;t t
24275 s,@bindir@,$bindir,;t t
24276 s,@sbindir@,$sbindir,;t t
24277 s,@libexecdir@,$libexecdir,;t t
24278 s,@datadir@,$datadir,;t t
24279 s,@sysconfdir@,$sysconfdir,;t t
24280 s,@sharedstatedir@,$sharedstatedir,;t t
24281 s,@localstatedir@,$localstatedir,;t t
24282 s,@libdir@,$libdir,;t t
24283 s,@includedir@,$includedir,;t t
24284 s,@oldincludedir@,$oldincludedir,;t t
24285 s,@infodir@,$infodir,;t t
24286 s,@mandir@,$mandir,;t t
24287 s,@build_alias@,$build_alias,;t t
24288 s,@host_alias@,$host_alias,;t t
24289 s,@target_alias@,$target_alias,;t t
24290 s,@DEFS@,$DEFS,;t t
24291 s,@ECHO_C@,$ECHO_C,;t t
24292 s,@ECHO_N@,$ECHO_N,;t t
24293 s,@ECHO_T@,$ECHO_T,;t t
24294 s,@LIBS@,$LIBS,;t t
24295 s,@MAINT@,$MAINT,;t t
24296 s,@build@,$build,;t t
24297 s,@build_cpu@,$build_cpu,;t t
24298 s,@build_vendor@,$build_vendor,;t t
24299 s,@build_os@,$build_os,;t t
24300 s,@host@,$host,;t t
24301 s,@host_cpu@,$host_cpu,;t t
24302 s,@host_vendor@,$host_vendor,;t t
24303 s,@host_os@,$host_os,;t t
24305 s,@CFLAGS@,$CFLAGS,;t t
24306 s,@LDFLAGS@,$LDFLAGS,;t t
24307 s,@CPPFLAGS@,$CPPFLAGS,;t t
24308 s,@ac_ct_CC@,$ac_ct_CC,;t t
24309 s,@EXEEXT@,$EXEEXT,;t t
24310 s,@OBJEXT@,$OBJEXT,;t t
24312 s,@EGREP@,$EGREP,;t t
24313 s,@LN_S@,$LN_S,;t t
24314 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24315 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24316 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24317 s,@RANLIB@,$RANLIB,;t t
24318 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24319 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
24320 s,@GZIP_PROG@,$GZIP_PROG,;t t
24321 s,@LIBSOUND@,$LIBSOUND,;t t
24322 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24323 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
24324 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
24325 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
24326 s,@SET_MAKE@,$SET_MAKE,;t t
24327 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
24328 s,@GTK_LIBS@,$GTK_LIBS,;t t
24329 s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t
24330 s,@XFT_LIBS@,$XFT_LIBS,;t t
24331 s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
24332 s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
24333 s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
24334 s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
24335 s,@HAVE_LIBOTF@,$HAVE_LIBOTF,;t t
24336 s,@LIBOTF_CFLAGS@,$LIBOTF_CFLAGS,;t t
24337 s,@LIBOTF_LIBS@,$LIBOTF_LIBS,;t t
24338 s,@ALLOCA@,$ALLOCA,;t t
24339 s,@liblockfile@,$liblockfile,;t t
24340 s,@LIBOBJS@,$LIBOBJS,;t t
24341 s,@NEED_SETGID@,$NEED_SETGID,;t t
24342 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
24343 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
24344 s,@GETOPT_H@,$GETOPT_H,;t t
24345 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
24346 s,@version@,$version,;t t
24347 s,@configuration@,$configuration,;t t
24348 s,@canonical@,$canonical,;t t
24349 s,@srcdir@,$srcdir,;t t
24350 s,@lispdir@,$lispdir,;t t
24351 s,@locallisppath@,$locallisppath,;t t
24352 s,@lisppath@,$lisppath,;t t
24353 s,@x_default_search_path@,$x_default_search_path,;t t
24354 s,@etcdir@,$etcdir,;t t
24355 s,@archlibdir@,$archlibdir,;t t
24356 s,@docdir@,$docdir,;t t
24357 s,@bitmapdir@,$bitmapdir,;t t
24358 s,@gamedir@,$gamedir,;t t
24359 s,@gameuser@,$gameuser,;t t
24360 s,@c_switch_system@,$c_switch_system,;t t
24361 s,@c_switch_machine@,$c_switch_machine,;t t
24362 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
24363 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
24364 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
24365 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
24366 s,@machfile@,$machfile,;t t
24367 s,@opsysfile@,$opsysfile,;t t
24368 s,@carbon_appdir@,$carbon_appdir,;t t
24369 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24374 cat >>$CONFIG_STATUS <<\_ACEOF
24375 # Split the substitutions into bite-sized pieces for seds with
24376 # small command number limits, like on Digital OSF/1 and HP-UX.
24377 ac_max_sed_lines
=48
24378 ac_sed_frag
=1 # Number of current file.
24379 ac_beg
=1 # First line for current file.
24380 ac_end
=$ac_max_sed_lines # Line after last line for current file.
24383 while $ac_more_lines; do
24384 if test $ac_beg -gt 1; then
24385 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24387 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24389 if test ! -s $tmp/subs.frag
; then
24390 ac_more_lines
=false
24392 # The purpose of the label and of the branching condition is to
24393 # speed up the sed processing (if there are no `@' at all, there
24394 # is no need to browse any of the substitutions).
24395 # These are the two extra sed commands mentioned above.
24397 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
24398 if test -z "$ac_sed_cmds"; then
24399 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
24401 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24403 ac_sed_frag
=`expr $ac_sed_frag + 1`
24405 ac_end
=`expr $ac_end + $ac_max_sed_lines`
24408 if test -z "$ac_sed_cmds"; then
24411 fi # test -n "$CONFIG_FILES"
24414 cat >>$CONFIG_STATUS <<\_ACEOF
24415 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
24416 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24418 - |
*:- |
*:-:* ) # input from stdin
24420 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24421 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24422 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24423 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24424 * ) ac_file_in
=$ac_file.
in ;;
24427 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24428 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24430 X"$ac_file" : 'X\(//\)[^/]' \| \
24431 X"$ac_file" : 'X\(//\)$' \| \
24432 X"$ac_file" : 'X\(/\)' \| \
24433 . : '\(.\)' 2>/dev/null ||
24435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24436 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24437 /^X\(\/\/\)$/{ s//\1/; q; }
24438 /^X\(\/\).*/{ s//\1/; q; }
24440 { if $as_mkdir_p; then
24445 while test ! -d "$as_dir"; do
24446 as_dirs
="$as_dir $as_dirs"
24447 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24449 X"$as_dir" : 'X\(//\)[^/]' \| \
24450 X"$as_dir" : 'X\(//\)$' \| \
24451 X"$as_dir" : 'X\(/\)' \| \
24452 . : '\(.\)' 2>/dev/null ||
24454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24455 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24456 /^X\(\/\/\)$/{ s//\1/; q; }
24457 /^X\(\/\).*/{ s//\1/; q; }
24460 test ! -n "$as_dirs" || mkdir
$as_dirs
24461 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24462 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24463 { (exit 1); exit 1; }; }; }
24467 if test "$ac_dir" != .
; then
24468 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24469 # A "../" for each directory in $ac_dir_suffix.
24470 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24472 ac_dir_suffix
= ac_top_builddir
=
24476 .
) # No --srcdir option. We are building in place.
24478 if test -z "$ac_top_builddir"; then
24481 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24483 [\\/]* | ?
:[\\/]* ) # Absolute path.
24484 ac_srcdir
=$srcdir$ac_dir_suffix;
24485 ac_top_srcdir
=$srcdir ;;
24486 *) # Relative path.
24487 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24488 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24491 # Do not use `cd foo && pwd` to compute absolute paths, because
24492 # the directories may not exist.
24494 .
) ac_abs_builddir
="$ac_dir";;
24497 .
) ac_abs_builddir
=`pwd`;;
24498 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24499 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24502 case $ac_abs_builddir in
24503 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24505 case ${ac_top_builddir}.
in
24506 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24507 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24508 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24511 case $ac_abs_builddir in
24512 .
) ac_abs_srcdir
=$ac_srcdir;;
24515 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24516 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24517 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24520 case $ac_abs_builddir in
24521 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24523 case $ac_top_srcdir in
24524 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24525 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24526 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24532 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24533 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
24536 if test x
"$ac_file" != x-
; then
24537 { echo "$as_me:$LINENO: creating $ac_file" >&5
24538 echo "$as_me: creating $ac_file" >&6;}
24541 # Let's still pretend it is `configure' which instantiates (i.e., don't
24542 # use $as_me), people would be surprised to read:
24543 # /* config.h. Generated by config.status. */
24544 if test x
"$ac_file" = x-
; then
24547 configure_input
="$ac_file. "
24549 configure_input
=$configure_input"Generated from `echo $ac_file_in |
24550 sed 's,.*/,,'` by configure."
24552 # First look for the input files in the build tree, otherwise in the
24554 ac_file_inputs
=`IFS=:
24555 for f in $ac_file_in; do
24557 -) echo $tmp/stdin ;;
24559 # Absolute (can't be DOS-style, as IFS=:)
24560 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24561 echo "$as_me: error: cannot find input file: $f" >&2;}
24562 { (exit 1); exit 1; }; }
24565 if test -f "$f"; then
24568 elif test -f "$srcdir/$f"; then
24573 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24574 echo "$as_me: error: cannot find input file: $f" >&2;}
24575 { (exit 1); exit 1; }; }
24578 done` ||
{ (exit 1); exit 1; }
24580 cat >>$CONFIG_STATUS <<_ACEOF
24584 cat >>$CONFIG_STATUS <<\_ACEOF
24586 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24587 s
,@configure_input@
,$configure_input,;t t
24588 s
,@srcdir@
,$ac_srcdir,;t t
24589 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
24590 s
,@top_srcdir@
,$ac_top_srcdir,;t t
24591 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
24592 s
,@builddir@
,$ac_builddir,;t t
24593 s
,@abs_builddir@
,$ac_abs_builddir,;t t
24594 s
,@top_builddir@
,$ac_top_builddir,;t t
24595 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
24596 s
,@INSTALL@
,$ac_INSTALL,;t t
24597 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24599 if test x"$ac_file" != x-; then
24600 mv $tmp/out $ac_file
24608 cat >>$CONFIG_STATUS <<\_ACEOF
24611 # CONFIG_HEADER section.
24614 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
24615 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24617 # ac_d sets the value in "#define NAME VALUE" lines.
24618 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24619 ac_dB
='[ ].*$,\1#\2'
24622 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24623 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24624 ac_uB
='$,\1#\2define\3'
24628 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24629 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24631 - |
*:- |
*:-:* ) # input from stdin
24633 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24634 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24635 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24636 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24637 * ) ac_file_in
=$ac_file.
in ;;
24640 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24641 echo "$as_me: creating $ac_file" >&6;}
24643 # First look for the input files in the build tree, otherwise in the
24645 ac_file_inputs
=`IFS=:
24646 for f in $ac_file_in; do
24648 -) echo $tmp/stdin ;;
24650 # Absolute (can't be DOS-style, as IFS=:)
24651 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24652 echo "$as_me: error: cannot find input file: $f" >&2;}
24653 { (exit 1); exit 1; }; }
24654 # Do quote $f, to prevent DOS paths from being IFS'd.
24657 if test -f "$f"; then
24660 elif test -f "$srcdir/$f"; then
24665 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24666 echo "$as_me: error: cannot find input file: $f" >&2;}
24667 { (exit 1); exit 1; }; }
24670 done` ||
{ (exit 1); exit 1; }
24671 # Remove the trailing spaces.
24672 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24676 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24677 # `conftest.undefs', that substitutes the proper values into
24678 # config.h.in to produce config.h. The first handles `#define'
24679 # templates, and the second `#undef' templates.
24680 # And first: Protect against being on the right side of a sed subst in
24681 # config.status. Protect against being in an unquoted here document
24682 # in config.status.
24683 rm -f conftest.defines conftest.undefs
24684 # Using a here document instead of a string reduces the quoting nightmare.
24685 # Putting comments in sed scripts is not portable.
24687 # `end' is used to avoid that the second main sed command (meant for
24688 # 0-ary CPP macros) applies to n-ary macro definitions.
24689 # See the Autoconf documentation for `clear'.
24690 cat >confdef2sed.
sed <<\_ACEOF
24695 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24697 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24700 # If some macros were called several times there might be several times
24701 # the same #defines, which is useless. Nevertheless, we may not want to
24702 # sort them, since we want the *last* AC-DEFINE to be honored.
24703 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24704 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24705 rm -f confdef2sed.sed
24707 # This sed command replaces #undef with comments. This is necessary, for
24708 # example, in the case of _POSIX_SOURCE, which is predefined and required
24709 # on some systems where configure will not decide to define it.
24710 cat >>conftest.undefs <<\_ACEOF
24711 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24714 # Break up conftest.defines because some shells have a limit on the size
24715 # of here documents, and old seds have small limits too (100 cmds).
24716 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24717 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24718 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24719 echo ' :' >>$CONFIG_STATUS
24720 rm -f conftest.tail
24721 while grep . conftest.defines >/dev/null
24723 # Write a limited-size here document to $tmp/defines.sed.
24724 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24725 # Speed up: don't consider the non `#define' lines.
24726 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24727 # Work around the forget-to-reset-the-flag bug.
24728 echo 't clr' >>$CONFIG_STATUS
24729 echo ': clr' >>$CONFIG_STATUS
24730 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24732 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24734 mv $tmp/out $tmp/in
24736 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24737 rm -f conftest.defines
24738 mv conftest.
tail conftest.defines
24740 rm -f conftest.defines
24741 echo ' fi # grep' >>$CONFIG_STATUS
24742 echo >>$CONFIG_STATUS
24744 # Break up conftest.undefs because some shells have a limit on the size
24745 # of here documents, and old seds have small limits too (100 cmds).
24746 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24747 rm -f conftest.
tail
24748 while grep . conftest.undefs
>/dev
/null
24750 # Write a limited-size here document to $tmp/undefs.sed.
24751 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24752 # Speed up: don't consider the non
`#undef'
24753 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24754 # Work around the forget-to-reset-the-flag bug.
24755 echo 't clr' >>$CONFIG_STATUS
24756 echo ': clr' >>$CONFIG_STATUS
24757 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24759 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24761 mv $tmp/out $tmp/in
24763 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24764 rm -f conftest.undefs
24765 mv conftest.tail conftest.undefs
24767 rm -f conftest.undefs
24769 cat >>$CONFIG_STATUS <<\_ACEOF
24770 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24771 # use $as_me), people would be surprised to read:
24772 # /* config.h. Generated by config.status. */
24773 if test x
"$ac_file" = x-
; then
24774 echo "/* Generated by configure. */" >$tmp/config.h
24776 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24778 cat $tmp/in >>$tmp/config.h
24780 if test x
"$ac_file" != x-
; then
24781 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24782 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24783 echo "$as_me: $ac_file is unchanged" >&6;}
24785 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24786 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24787 X"$ac_file" : 'X\(//\)[^/]' \| \
24788 X"$ac_file" : 'X\(//\)$' \| \
24789 X"$ac_file" : 'X\(/\)' \| \
24790 . : '\(.\)' 2>/dev/null ||
24792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24794 /^X\(\/\/\)$/{ s//\1/; q; }
24795 /^X\(\/\).*/{ s//\1/; q; }
24797 { if $as_mkdir_p; then
24802 while test ! -d "$as_dir"; do
24803 as_dirs
="$as_dir $as_dirs"
24804 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24805 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24806 X"$as_dir" : 'X\(//\)[^/]' \| \
24807 X"$as_dir" : 'X\(//\)$' \| \
24808 X"$as_dir" : 'X\(/\)' \| \
24809 . : '\(.\)' 2>/dev/null ||
24811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24812 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24813 /^X\(\/\/\)$/{ s//\1/; q; }
24814 /^X\(\/\).*/{ s//\1/; q; }
24817 test ! -n "$as_dirs" || mkdir
$as_dirs
24818 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24819 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24820 { (exit 1); exit 1; }; }; }
24823 mv $tmp/config.h
$ac_file
24827 rm -f $tmp/config.h
24831 cat >>$CONFIG_STATUS <<\_ACEOF
24834 # CONFIG_COMMANDS section.
24836 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24837 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24838 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24839 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24840 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24841 X"$ac_dest" : 'X\(//\)[^/]' \| \
24842 X"$ac_dest" : 'X\(//\)$' \| \
24843 X"$ac_dest" : 'X\(/\)' \| \
24844 . : '\(.\)' 2>/dev/null ||
24846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24847 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24848 /^X\(\/\/\)$/{ s//\1/; q; }
24849 /^X\(\/\).*/{ s//\1/; q; }
24851 { if $as_mkdir_p; then
24856 while test ! -d "$as_dir"; do
24857 as_dirs
="$as_dir $as_dirs"
24858 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24859 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24860 X"$as_dir" : 'X\(//\)[^/]' \| \
24861 X"$as_dir" : 'X\(//\)$' \| \
24862 X"$as_dir" : 'X\(/\)' \| \
24863 . : '\(.\)' 2>/dev/null ||
24865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24867 /^X\(\/\/\)$/{ s//\1/; q; }
24868 /^X\(\/\).*/{ s//\1/; q; }
24871 test ! -n "$as_dirs" || mkdir
$as_dirs
24872 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24873 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24874 { (exit 1); exit 1; }; }; }
24878 if test "$ac_dir" != .
; then
24879 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24880 # A "../" for each directory in $ac_dir_suffix.
24881 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24883 ac_dir_suffix
= ac_top_builddir
=
24887 .
) # No --srcdir option. We are building in place.
24889 if test -z "$ac_top_builddir"; then
24892 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24894 [\\/]* | ?
:[\\/]* ) # Absolute path.
24895 ac_srcdir
=$srcdir$ac_dir_suffix;
24896 ac_top_srcdir
=$srcdir ;;
24897 *) # Relative path.
24898 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24899 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24902 # Do not use `cd foo && pwd` to compute absolute paths, because
24903 # the directories may not exist.
24905 .
) ac_abs_builddir
="$ac_dir";;
24908 .
) ac_abs_builddir
=`pwd`;;
24909 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24910 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24913 case $ac_abs_builddir in
24914 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24916 case ${ac_top_builddir}.
in
24917 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24918 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24919 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24922 case $ac_abs_builddir in
24923 .
) ac_abs_srcdir
=$ac_srcdir;;
24926 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24927 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24928 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24931 case $ac_abs_builddir in
24932 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24934 case $ac_top_srcdir in
24935 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24936 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24937 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24942 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24943 echo "$as_me: executing $ac_dest commands" >&6;}
24947 ### Make the necessary directories, if they don't exist.
24948 for dir
in etc lisp
; do
24949 test -d ${dir} || mkdir
${dir}
24952 # Build src/Makefile from ${srcdir}/src/Makefile.c
24953 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24954 # This must be done after src/config.h is built, since we rely on that file.
24956 # Now get this: Some word that is part of the ${srcdir} directory name
24957 # or the ${configuration} value might, just might, happen to be an
24958 # identifier like `sun4' or `i386' or something, and be predefined by
24959 # the C preprocessor to some helpful value like 1, or maybe the empty
24960 # string. Needless to say consequent macro substitutions are less
24961 # than conducive to the makefile finding the correct directory.
24962 undefs
="`echo $top_srcdir $configuration $canonical |
24963 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24964 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24967 echo creating src
/epaths.h
24968 ${MAKE-make} epaths-force
24970 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24971 # `..' to `. .' unless invoked with -traditional
24973 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24974 CPPFLAGS
="$CPPFLAGS -traditional"
24977 echo creating lib-src
/Makefile
24979 rm -f junk.c junk1.c junk2.c
24980 sed -e '/start of cpp stuff/q' \
24981 < Makefile.c
> junk1.c
24982 sed -e '1,/start of cpp stuff/d'\
24983 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24984 < Makefile.c
> junk.c
24985 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24986 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24987 cat junk1.c junk2.c
> Makefile.new
24988 rm -f junk.c junk1.c junk2.c
24989 chmod 444 Makefile.new
24990 mv -f Makefile.new Makefile
24993 echo creating src
/Makefile
24995 rm -f junk.c junk1.c junk2.c
24996 sed -e '/start of cpp stuff/q' \
24997 < Makefile.c
> junk1.c
24998 sed -e '1,/start of cpp stuff/d'\
24999 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25000 < Makefile.c
> junk.c
25001 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25002 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25004 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25005 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25006 cat junk1.c junk2.c
> Makefile.new
25007 rm -f junk.c junk1.c junk2.c
25008 chmod 444 Makefile.new
25009 mv -f Makefile.new Makefile
25012 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25013 echo creating src
/.gdbinit
25014 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25017 # This is how we know whether to re-run configure in certain cases.
25018 touch src
/config.stamp
25025 cat >>$CONFIG_STATUS <<\_ACEOF
25027 { (exit 0); exit 0; }
25029 chmod +x
$CONFIG_STATUS
25030 ac_clean_files
=$ac_clean_files_save
25033 # configure is writing to config.log, and then calls config.status.
25034 # config.status does its own redirection, appending to config.log.
25035 # Unfortunately, on DOS this fails, as config.log is still kept open
25036 # by configure, so config.status won't be able to write to it; its
25037 # output is simply discarded. So we exec the FD to /dev/null,
25038 # effectively closing config.log, so it can be properly (re)opened and
25039 # appended to by config.status. When coming back to configure, we
25040 # need to make the FD available again.
25041 if test "$no_create" != yes; then
25043 ac_config_status_args
=
25044 test "$silent" = yes &&
25045 ac_config_status_args
="$ac_config_status_args --quiet"
25047 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25049 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25050 # would make configure fail if this is the last instruction.
25051 $ac_cs_success ||
{ (exit 1); exit 1; }