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:${datadir}/emacs/${version}/leim'
1361 lisppath
='${locallisppath}:${lispdir}'
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 i
[3456]86-*-freebsd*) machine
=intel386
;;
1744 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
1751 if test -f /usr
/lib
/crti.o
; then
1753 cat >>confdefs.h
<<\_ACEOF
1759 case "${canonical}" in
1760 alpha
*-*-netbsd*) machine
=alpha
;;
1761 i
[3456]86-*-netbsd*) machine
=intel386
;;
1763 # This is somewhat bogus.
1764 machine
=hp9000s300
;;
1765 powerpc-apple-netbsd
*) machine
=macppc
;;
1766 mips-
*-netbsd*) machine
=pmax
;;
1767 mipsel-
*-netbsd*) machine
=pmax
;;
1768 mipseb-
*-netbsd*) machine
=pmax
;;
1769 ns32k-
*-netbsd*) machine
=ns32000
;;
1770 powerpc-
*-netbsd*) machine
=macppc
;;
1771 sparc
*-*-netbsd*) machine
=sparc
;;
1772 vax-
*-netbsd*) machine
=vax
;;
1773 arm-
*-netbsd*) machine
=arm
;;
1780 case "${canonical}" in
1781 alpha
*-*-openbsd*) machine
=alpha
;;
1782 i386-
*-openbsd*) machine
=intel386
;;
1783 m68k-
*-openbsd*) machine
=hp9000s300
;;
1784 mipsel-
*-openbsd*) machine
=pmax
;;
1785 ns32k-
*-openbsd*) machine
=ns32000
;;
1786 sparc-
*-openbsd*) machine
=sparc
;;
1787 vax-
*-openbsd*) machine
=vax
;;
1794 case "${canonical}" in
1795 i
[3456]86-*-lynxos*) machine
=intel386
;;
1796 powerpc-
*-lynxos*) machine
=powerpc
;;
1801 arm-acorn-riscix1.1
* )
1802 machine
=acorn opsys
=riscix1-1
1804 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
1805 ## This name is riscix12 instead of riscix1.2
1806 ## to avoid a file name conflict on MSDOS.
1807 machine
=acorn opsys
=riscix12
1813 case "${canonical}" in
1814 i
[345]86-*-bsdi*) machine
=intel386
;;
1815 sparc-
*-bsdi*) machine
=sparc
;;
1816 powerpc-
*-bsdi*) machine
=macppc
;;
1818 case "${canonical}" in
1819 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
1820 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
1821 *-*-bsdi2* ) opsys
=bsdos2-1
;;
1822 *-*-bsdi3* ) opsys
=bsdos3
;;
1823 *-*-bsdi[45]* ) opsys
=bsdos4
;;
1828 ## Strictly speaking, we need the version of the alliant operating
1829 ## system to choose the right machine file, but currently the
1830 ## configuration name doesn't tell us enough to choose the right
1831 ## one; we need to give alliants their own operating system name to
1832 ## do this right. When someone cares, they can help us.
1834 machine
=alliant4 opsys
=bsd4-2
1837 machine
=alliant-2800 opsys
=bsd4-3
1840 ## Alpha (DEC) machines.
1842 machine
=alpha opsys
=osf1
1843 # This is needed to find X11R6.1 libraries for certain tests.
1844 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1845 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
1846 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
1847 # due to non-traditional preprocessing with the current compiler
1848 # defaults. OSF 4 can also have that compiler version, and there
1849 # seems always to have been a usable /usr/bin/cpp.
1850 NON_GNU_CPP
=/usr
/bin
/cpp
1851 case "${canonical}" in
1852 alpha
*-dec-osf[5-9]*)
1857 alpha
*-*-linux-gnu* )
1858 machine
=alpha opsys
=gnu-linux
1862 machine
=arm opsys
=gnu-linux
1867 machine
=altos opsys
=usg5-2
1872 machine
=amdahl opsys
=usg5-2-2
1875 ## Apollo, Domain/OS
1877 machine
=apollo opsys
=bsd4-3
1880 ## AT&T 3b2, 3b5, 3b15, 3b20
1882 machine
=att3b opsys
=usg5-2-2
1885 ## AT&T 3b1 - The Mighty Unix PC!
1887 machine
=7300 opsys
=usg5-2-2
1892 machine
=ibmrs6000 opsys
=aix3-2
1897 machine
=dpx2 opsys
=usg5-3
1902 machine
=sps7 opsys
=usg5-2
1905 ## CCI 5/32, 6/32 -- see "Tahoe".
1908 ## I don't know what configuration name to use for this; config.sub
1909 ## doesn't seem to know anything about it. Hey, Celerity users, get
1910 ## in touch with us!
1911 celerity-celerity-bsd
* )
1912 machine
=celerity opsys
=bsd4-2
1916 ## What operating systems does this chip run that Emacs has been
1920 ## We'll use the catch-all code at the bottom to guess the
1921 ## operating system.
1925 mips-compaq-nonstopux
* )
1926 machine
=nonstopux opsys
=nonstopux
1930 *-convex-bsd* |
*-convex-convexos* )
1931 machine
=convex opsys
=bsd4-3
1932 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
1933 NON_GNU_CPP
="cc -E -P"
1937 i
[3456]86-cubix-sysv* )
1938 machine
=intel386 opsys
=usg5-3
1942 cydra
*-cydrome-sysv* )
1943 machine
=cydra5 opsys
=usg5-3
1946 ## Data General AViiON Machines
1947 ## DG changed naming conventions with the release of 5.4.4.10, they
1948 ## dropped the initial 5.4 but left the intervening R. Because of the
1949 ## R this shouldn't conflict with older versions of the OS (which I
1950 ## think were named like dgux4.*). In addition, DG new AViiONs series
1951 ## uses either Motorola M88k or Intel Pentium CPUs.
1952 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
1953 machine
=aviion opsys
=dgux4
1955 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
1956 ## This name is dgux5-4-3 instead of dgux5-4r3
1957 ## to avoid a file name conflict on MSDOS.
1958 machine
=aviion opsys
=dgux5-4-3
1960 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
1961 machine
=aviion opsys
=dgux5-4r2
1964 machine
=aviion opsys
=dgux
1967 ## Data General AViiON Intel (x86) Machines
1968 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
1969 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
1970 i
[345]86-dg-dguxR4* )
1971 machine
=aviion-intel opsys
=dgux4
1975 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
1976 machine
=pmax opsys
=bsd4-2
1978 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
1979 machine
=pmax opsys
=bsd4-3
1982 machine
=pmax opsys
=ultrix4-3
1985 machine
=pmax opsys
=osf1
1987 mips-dec-mach_bsd4.3
* )
1988 machine
=pmax opsys
=mach-bsd4-3
1991 ## Motorola Delta machines
1992 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
1993 machine
=delta opsys
=usg5-3
1994 if test -z "`type gnucc | grep 'not found'`"
1996 if test -s /etc
/167config
1997 then CC
="gnucc -m68040"
1998 else CC
="gnucc -m68881"
2001 if test -z "`type gcc | grep 'not found'`"
2007 m88k-motorola-sysv4
* )
2008 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2009 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2010 # I hope there are not other 4.0 versions for this machine
2011 # which really need usg5-4 instead.
2012 machine
=delta88k opsys
=usg5-4-2
2014 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2015 machine
=delta88k opsys
=usg5-3
2020 machine
=dual opsys
=usg5-2
2022 m68
*-dual-uniplus* )
2023 machine
=dual opsys
=unipl5-2
2028 machine
=elxsi opsys
=usg5-2
2033 machine
=ns16000 opsys
=umax
2036 ## The GEC 63 - apparently, this port isn't really finished yet.
2037 # I'm sure we finished off the last of the machines, though. -- fx
2039 ## Gould Power Node and NP1
2041 machine
=gould opsys
=bsd4-2
2044 machine
=gould opsys
=bsd4-3
2047 machine
=gould-np1 opsys
=bsd4-3
2050 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2051 ## as far as Emacs is concerned).
2053 # Build needs to be different on 7.0 and later releases
2054 case "`uname -r`" in
2055 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2056 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2058 NON_GNU_CPP
="/lib/cpp"
2060 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2062 machine
=nh3000 opsys
=cxux
2064 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2065 powerpc-harris-powerunix
)
2066 machine
=nh6000 opsys
=powerunix
2067 NON_GNU_CPP
="cc -Xo -E -P"
2069 ## SR2001/SR2201 running HI-UX/MPP
2070 hppa1.1
-hitachi-hiuxmpp* )
2071 machine
=sr2k opsys
=hiuxmpp
2073 hppa1.1
-hitachi-hiuxwe2* )
2074 machine
=sr2k opsys
=hiuxwe2
2077 xps
*-honeywell-sysv* )
2078 machine
=xps100 opsys
=usg5-2
2081 ## HP 9000 series 200 or 300
2083 machine
=hp9000s300 opsys
=bsd4-3
2085 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2087 case "`uname -r`" in
2088 ## Someone's system reports A.B8.05 for this.
2089 ## I wonder what other possibilities there are.
2090 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2091 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2092 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2093 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2094 *) machine
=hp9000s300 opsys
=hpux
;;
2098 ## HP 9000 series 700 and 800, running HP/UX
2100 machine
=hp800 opsys
=hpux
2103 machine
=hp800 opsys
=hpux8
2105 hppa
*-hp-hpux9shr* )
2106 machine
=hp800 opsys
=hpux9shr
2109 machine
=hp800 opsys
=hpux9
2111 hppa
*-hp-hpux10.2
* )
2112 machine
=hp800 opsys
=hpux10-20
2115 machine
=hp800 opsys
=hpux10
2117 hppa
*-hp-hpux1[1-9]* )
2118 machine
=hp800 opsys
=hpux11
2119 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2122 hppa
*-*-linux-gnu* )
2123 machine
=hp800 opsys
=gnu-linux
2126 ## HP 9000 series 700 and 800, running HP/UX
2128 ## Cross-compilation? Nah!
2129 case "`uname -r`" in
2130 ## Someone's system reports A.B8.05 for this.
2131 ## I wonder what other possibilities there are.
2132 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2133 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2134 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2135 *) machine
=hp800 opsys
=hpux10
;;
2139 machine
=hp800 opsys
=nextstep
2144 machine
=orion opsys
=bsd4-2
2146 clipper-orion-bsd
* )
2147 machine
=orion105 opsys
=bsd4-2
2151 i
[3456]86-ibm-aix1.1
* )
2152 machine
=ibmps2-aix opsys
=usg5-2-2
2154 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2155 machine
=ibmps2-aix opsys
=usg5-3
2158 machine
=ibm370aix opsys
=usg5-3
2161 machine
=ibms390 opsys
=gnu-linux
2163 s390x-
*-linux-gnu* )
2164 machine
=ibms390x opsys
=gnu-linux
2166 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2167 machine
=ibmrs6000 opsys
=aix3-1
2169 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2170 machine
=ibmrs6000 opsys
=aix3-2-5
2172 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2173 machine
=ibmrs6000 opsys
=aix4-1
2175 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2176 machine
=ibmrs6000 opsys
=aix4-2
2178 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2179 machine
=ibmrs6000 opsys
=aix4-2
2181 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2182 machine
=ibmrs6000 opsys
=aix4
2184 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2185 machine
=ibmrs6000 opsys
=aix4-1
2187 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2188 machine
=ibmrs6000 opsys
=aix3-2
2191 machine
=ibmrt opsys
=bsd4-3
2194 machine
=ibmrt opsys
=bsd4-2
2197 machine
=ibmrt opsys
=bsd4-3
2200 machine
=ibmrt opsys
=bsd4-2
2203 machine
=ibmrt opsys
=bsd4-3
2206 machine
=ibmrt opsys
=bsd4-3
2209 machine
=ibmrt-aix opsys
=usg5-2-2
2212 ## Integrated Solutions `Optimum V'
2214 machine
=isi-ov opsys
=bsd4-2
2217 machine
=isi-ov opsys
=bsd4-3
2220 ## Intel 386 machines where we do care about the manufacturer
2221 i
[3456]86-intsys-sysv* )
2222 machine
=is386 opsys
=usg5-2-2
2226 i
[3456]86-prime-sysv* )
2227 machine
=i386 opsys
=usg5-3
2230 ## Sequent Symmetry running Dynix
2231 i
[3456]86-sequent-bsd* )
2232 machine
=symmetry opsys
=bsd4-3
2235 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2236 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2237 machine
=sequent-ptx opsys
=ptx4
2238 NON_GNU_CPP
=/lib
/cpp
2241 ## Sequent Symmetry running DYNIX/ptx
2242 ## Use the old cpp rather than the newer ANSI one.
2243 i
[3456]86-sequent-ptx* )
2244 machine
=sequent-ptx opsys
=ptx
2245 NON_GNU_CPP
="/lib/cpp"
2248 ## ncr machine running svr4.3.
2249 i
[3456]86-ncr-sysv4.3
)
2250 machine
=ncr386 opsys
=usg5-4-3
2253 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2254 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2255 i
[3456]86-ncr-sysv* )
2256 machine
=ncr386 opsys
=usg5-4-2
2259 ## Intel Paragon OSF/1
2261 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2266 machine
=i860 opsys
=usg5-4
2267 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2268 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2271 ## Macintosh PowerPC
2272 powerpc
*-*-linux-gnu* )
2273 machine
=macppc opsys
=gnu-linux
2276 ## Masscomp machines
2277 m68
*-masscomp-rtu* )
2278 machine
=masscomp opsys
=rtu
2281 ## Megatest machines
2282 m68
*-megatest-bsd* )
2283 machine
=mega68 opsys
=bsd4-2
2286 ## Workstations sold by MIPS
2287 ## This is not necessarily all workstations using the MIPS processor -
2288 ## Irises are produced by SGI, and DECstations by DEC.
2290 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2291 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2292 ## it gives for choosing between the alternatives seems to be "Use
2293 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2294 ## the BSD world." I'll assume that these are instructions for
2295 ## handling two odd situations, and that every other situation
2296 ## should use mips.h and usg5-2-2, they being listed first.
2299 ## Fall through to the general code at the bottom to decide on the OS.
2301 mips-mips-riscos4
* )
2302 machine
=mips4 opsys
=bsd4-3
2303 NON_GNU_CC
="cc -systype bsd43"
2304 NON_GNU_CPP
="cc -systype bsd43 -E"
2306 mips-mips-riscos5
* )
2307 machine
=mips4 opsys
=riscos5
2308 NON_GNU_CC
="cc -systype bsd43"
2309 NON_GNU_CPP
="cc -systype bsd43 -E"
2312 machine
=mips opsys
=bsd4-3
2315 machine
=mips opsys
=usg5-2-2
2319 m68
*-next-* | m68k-
*-nextstep* )
2320 machine
=m68k opsys
=nextstep
2323 ## The complete machine from National Semiconductor
2325 machine
=ns32000 opsys
=usg5-2
2329 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2330 machine
=tower32 opsys
=usg5-2-2
2332 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2333 machine
=tower32v3 opsys
=usg5-3
2338 machine
=ews4800 opsys
=ux4800
2341 ## Nixdorf Targon 31
2342 m68
*-nixdorf-sysv* )
2343 machine
=targon31 opsys
=usg5-2-2
2348 machine
=nu opsys
=usg5-2
2353 machine
=plexus opsys
=usg5-2
2357 ## I don't really have any idea what sort of processor the Pyramid has,
2358 ## so I'm assuming it is its own architecture.
2359 pyramid-pyramid-bsd
* )
2360 machine
=pyramid opsys
=bsd4-2
2364 ns32k-sequent-bsd4.2
* )
2365 machine
=sequent opsys
=bsd4-2
2367 ns32k-sequent-bsd4.3
* )
2368 machine
=sequent opsys
=bsd4-3
2372 mips-siemens-sysv
* | mips-sni-sysv
*)
2373 machine
=mips-siemens opsys
=usg5-4
2374 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2375 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2378 ## Silicon Graphics machines
2379 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2381 machine
=irist opsys
=iris3-5
2383 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2384 machine
=irist opsys
=iris3-6
2388 machine
=iris4d opsys
=irix3-3
2391 machine
=iris4d opsys
=irix4-0
2394 machine
=iris4d opsys
=irix6-5
2395 # Without defining _LANGUAGE_C, things get masked out in the headers
2396 # so that, for instance, grepping for `free' in stdlib.h fails and
2397 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2398 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2399 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2402 machine
=iris4d opsys
=irix6-0
2403 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2404 # but presumably it does no harm.
2405 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2406 # -32 probably isn't necessary in later v.6s -- anyone know which?
2407 NON_GCC_TEST_OPTIONS
=-32
2409 mips-sgi-irix5.
[01]* )
2410 machine
=iris4d opsys
=irix5-0
2412 mips-sgi-irix5
* | mips-sgi-irix
* )
2413 machine
=iris4d opsys
=irix5-2
2418 machine
=news opsys
=bsd4-2
2421 machine
=news opsys
=bsd4-3
2423 m68
*-sony-newsos3* | m68
*-sony-news3*)
2424 machine
=news opsys
=bsd4-3
2426 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2427 machine
=news-risc opsys
=bsd4-3
2429 mips-sony-newsos6
* )
2430 machine
=news-r6 opsys
=newsos6
2433 machine
=news-risc opsys
=newsos5
2438 machine
=stride opsys
=usg5-2
2442 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2443 machine
=sparc opsys
=gnu-linux
2446 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2447 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2448 | rs6000-
*-solaris2*)
2449 case "${canonical}" in
2450 m68
*-sunos1* ) machine
=sun1
;;
2451 m68
*-sunos2* ) machine
=sun2
;;
2452 m68
* ) machine
=sun3
;;
2453 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2454 i
[3456]86-*-* ) machine
=intel386
;;
2455 powerpcle
* ) machine
=powerpcle
;;
2456 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2457 sparc
* ) machine
=sparc
;;
2460 case "${canonical}" in
2461 ## The Sun386 didn't get past 4.0.
2462 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2463 *-sunos4.0
* ) opsys
=sunos4-0
;;
2464 *-sunos4.1.
[3-9]*noshare
)
2465 ## This name is sunos413 instead of sunos4-1-3
2466 ## to avoid a file name conflict on MSDOS.
2468 NON_GNU_CPP
=/usr
/lib
/cpp
2469 NON_GCC_TEST_OPTIONS
=-Bstatic
2470 GCC_TEST_OPTIONS
=-static
2472 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2474 NON_GNU_CPP
=/usr
/lib
/cpp
2476 *-sunos4* |
*-sunos )
2478 NON_GCC_TEST_OPTIONS
=-Bstatic
2479 GCC_TEST_OPTIONS
=-static
2481 *-sunos5.3
* |
*-solaris2.3
* )
2483 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2485 *-sunos5.4
* |
*-solaris2.4
* )
2487 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2490 *-sunos5.5
* |
*-solaris2.5
* )
2492 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2495 *-sunos5.6
* |
*-solaris2.6
* )
2497 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2500 *-sunos5* |
*-solaris* )
2502 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2506 ## Watch out for a compiler that we know will not work.
2507 case "${canonical}" in
2508 *-solaris* |
*-sunos5* )
2509 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2510 ## /usr/ucb/cc doesn't work;
2511 ## we should find some other compiler that does work.
2519 machine
=sparc opsys
=nextstep
2523 m68
*-tadpole-sysv* )
2524 machine
=tad68k opsys
=usg5-3
2528 tahoe-tahoe-bsd4.2
* )
2529 machine
=tahoe opsys
=bsd4-2
2531 tahoe-tahoe-bsd4.3
* )
2532 machine
=tahoe opsys
=bsd4-3
2535 ## Tandem Integrity S2
2537 machine
=tandem-s2 opsys
=usg5-3
2541 m88k-tektronix-sysv3
* )
2542 machine
=tekxd88 opsys
=usg5-3
2545 ## Tektronix 16000 box (6130?)
2546 ns16k-tektronix-bsd
* )
2547 machine
=ns16000 opsys
=bsd4-2
2550 ## src/m/tek4300.h hints that this is a m68k machine.
2551 m68
*-tektronix-bsd* )
2552 machine
=tek4300 opsys
=bsd4-3
2556 ## We seem to have lost the machine-description file titan.h!
2558 machine
=titan opsys
=usg5-3
2561 ## Ustation E30 (SS5E)
2562 m68
*-unisys-uniplus* )
2563 machine
=ustation opsystem
=unipl5-2
2569 case "${canonical}" in
2570 *-bsd4.1
* ) opsys
=bsd4-1
;;
2571 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2572 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2573 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2574 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2575 *-vms* ) opsys
=vms
;;
2581 ns16k-whitechapel-
* )
2583 ## We don't know what sort of OS runs on these; we'll let the
2584 ## operating system guessing code below try.
2589 machine
=wicat opsys
=usg5-2
2594 machine
=ia64 opsys
=gnu-linux
2597 ## Intel 386 machines where we don't care about the manufacturer
2600 case "${canonical}" in
2601 *-cygwin ) opsys
=cygwin
;;
2602 *-darwin* ) opsys
=darwin
2603 CPP
="${CC-cc} -E -no-cpp-precomp"
2605 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
2606 *-isc2.2
* ) opsys
=isc2-2
;;
2607 *-isc4.0
* ) opsys
=isc4-0
;;
2608 *-isc4.
* ) opsys
=isc4-1
2609 GCC_TEST_OPTIONS
=-posix
2610 NON_GCC_TEST_OPTIONS
=-Xp
2612 *-isc* ) opsys
=isc3-0
;;
2613 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
2614 *-esix* ) opsys
=esix
;;
2615 *-xenix* ) opsys
=xenix
;;
2616 *-linux-gnu* ) opsys
=gnu-linux
;;
2617 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
2618 *-sco3.2v5
* ) opsys
=sco5
2619 NON_GNU_CPP
=/lib
/cpp
2620 # Prevent -belf from being passed to $CPP.
2621 # /lib/cpp does not accept it.
2622 OVERRIDE_CPPFLAGS
=" "
2624 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2625 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2626 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2627 *-386bsd* ) opsys
=386bsd
;;
2628 *-nextstep* ) opsys
=nextstep
;;
2629 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2633 ## m68k Linux-based GNU system
2635 machine
=m68k opsys
=gnu-linux
2638 ## Mips Linux-based GNU system
2639 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2640 machine
=mips opsys
=gnu-linux
2644 sparc-fujitsu-sysv4
* )
2645 machine
=sparc opsys
=uxpds
2646 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2651 f301-fujitsu-uxpv4.1
)
2652 machine
=f301 opsys
=uxpv
2655 ## Darwin / Mac OS X
2656 powerpc-apple-darwin
* )
2657 machine
=powermac opsys
=darwin
2658 # Define CPP as follows to make autoconf work correctly.
2659 CPP
="${CC-cc} -E -no-cpp-precomp"
2660 # Use fink packages if available.
2661 if test -d /sw
/include
&& test -d /sw
/lib
; then
2662 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2663 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2664 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2668 ## AMD x86-64 Linux-based GNU system
2669 x86_64-
*-linux-gnu* )
2670 machine
=amdx86-64 opsys
=gnu-linux
2678 ### If the code above didn't choose an operating system, just choose
2679 ### an operating system based on the configuration name. You really
2680 ### only want to use this when you have no idea what the right
2681 ### operating system is; if you know what operating systems a machine
2682 ### runs, it's cleaner to make it explicit in the case statement
2684 if test x
"${opsys}" = x
; then
2685 case "${canonical}" in
2686 *-gnu* ) opsys
=gnu
;;
2687 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2688 *-bsd4.2
) opsys
=bsd4-2
;;
2689 *-bsd4.3
) opsys
=bsd4-3
;;
2690 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2691 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2692 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2693 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2694 *-sysv4.2uw
* ) opsys
=unixware
;;
2695 *-sysv5uw* ) opsys
=unixware
;;
2696 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2697 *-sysv4.1
* |
*-sysvr4.1
* )
2698 NON_GNU_CPP
=/usr
/lib
/cpp
2700 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2701 if [ x
$NON_GNU_CPP = x
]; then
2702 if [ -f /usr
/ccs
/lib
/cpp
]; then
2703 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2705 NON_GNU_CPP
=/lib
/cpp
2709 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2718 if test $unported = yes; then
2719 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2720 Check \`etc/MACHINES' for recognized configuration names." >&5
2721 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2722 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2723 { (exit 1); exit 1; }; }
2726 machfile
="m/${machine}.h"
2727 opsysfile
="s/${opsys}.h"
2730 #### Choose a compiler.
2731 test -n "$CC" && cc_specified
=yes
2733 # Save the value of CFLAGS that the user specified.
2734 SPECIFIED_CFLAGS
="$CFLAGS"
2737 "yes" ) CC
="gcc" GCC
=yes ;;
2738 "no" ) : ${CC=cc} ;;
2742 ac_cpp
='$CPP $CPPFLAGS'
2743 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2744 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2745 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2746 if test -n "$ac_tool_prefix"; then
2747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2748 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2749 echo "$as_me:$LINENO: checking for $ac_word" >&5
2750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2751 if test "${ac_cv_prog_CC+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 if test -n "$CC"; then
2755 ac_cv_prog_CC
="$CC" # Let the user override the test.
2757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir
=.
2762 for ac_exec_ext
in '' $ac_executable_extensions; do
2763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 if test -n "$CC"; then
2775 echo "$as_me:$LINENO: result: $CC" >&5
2776 echo "${ECHO_T}$CC" >&6
2778 echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6
2783 if test -z "$ac_cv_prog_CC"; then
2785 # Extract the first word of "gcc", so it can be a program name with args.
2786 set dummy gcc
; ac_word
=$2
2787 echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if test -n "$ac_ct_CC"; then
2793 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir
=.
2800 for ac_exec_ext
in '' $ac_executable_extensions; do
2801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2802 ac_cv_prog_ac_ct_CC
="gcc"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2812 if test -n "$ac_ct_CC"; then
2813 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2814 echo "${ECHO_T}$ac_ct_CC" >&6
2816 echo "$as_me:$LINENO: result: no" >&5
2817 echo "${ECHO_T}no" >&6
2825 if test -z "$CC"; then
2826 if test -n "$ac_tool_prefix"; then
2827 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2828 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2829 echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2831 if test "${ac_cv_prog_CC+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$CC"; then
2835 ac_cv_prog_CC
="$CC" # Let the user override the test.
2837 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir
=.
2842 for ac_exec_ext
in '' $ac_executable_extensions; do
2843 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2844 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 if test -n "$CC"; then
2855 echo "$as_me:$LINENO: result: $CC" >&5
2856 echo "${ECHO_T}$CC" >&6
2858 echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6
2863 if test -z "$ac_cv_prog_CC"; then
2865 # Extract the first word of "cc", so it can be a program name with args.
2866 set dummy cc
; ac_word
=$2
2867 echo "$as_me:$LINENO: checking for $ac_word" >&5
2868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2869 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2870 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 if test -n "$ac_ct_CC"; then
2873 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2879 test -z "$as_dir" && as_dir
=.
2880 for ac_exec_ext
in '' $ac_executable_extensions; do
2881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 ac_cv_prog_ac_ct_CC
="cc"
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2891 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2892 if test -n "$ac_ct_CC"; then
2893 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2894 echo "${ECHO_T}$ac_ct_CC" >&6
2896 echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2906 if test -z "$CC"; then
2907 # Extract the first word of "cc", so it can be a program name with args.
2908 set dummy cc
; ac_word
=$2
2909 echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2911 if test "${ac_cv_prog_CC+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC
="$CC" # Let the user override the test.
2918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2922 test -z "$as_dir" && as_dir
=.
2923 for ac_exec_ext
in '' $ac_executable_extensions; do
2924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2926 ac_prog_rejected
=yes
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2936 if test $ac_prog_rejected = yes; then
2937 # We found a bogon in the path, so make sure we never use it.
2938 set dummy
$ac_cv_prog_CC
2940 if test $# != 0; then
2941 # We chose a different compiler from the bogus one.
2942 # However, it has the same basename, so the bogon will be chosen
2943 # first if we set CC to just the basename; use the full file name.
2945 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2951 if test -n "$CC"; then
2952 echo "$as_me:$LINENO: result: $CC" >&5
2953 echo "${ECHO_T}$CC" >&6
2955 echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2965 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2966 echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968 if test "${ac_cv_prog_CC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC
="$CC" # Let the user override the test.
2974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir
=.
2979 for ac_exec_ext
in '' $ac_executable_extensions; do
2980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2981 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 if test -n "$CC"; then
2992 echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6
2995 echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6
2999 test -n "$CC" && break
3002 if test -z "$CC"; then
3006 # Extract the first word of "$ac_prog", so it can be a program name with args.
3007 set dummy
$ac_prog; ac_word
=$2
3008 echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir
=.
3021 for ac_exec_ext
in '' $ac_executable_extensions; do
3022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_ac_ct_CC
="$ac_prog"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3033 if test -n "$ac_ct_CC"; then
3034 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3035 echo "${ECHO_T}$ac_ct_CC" >&6
3037 echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3041 test -n "$ac_ct_CC" && break
3050 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3051 See \`config.log' for more details." >&5
3052 echo "$as_me: error: no acceptable C compiler found in \$PATH
3053 See \`config.log' for more details." >&2;}
3054 { (exit 1); exit 1; }; }
3056 # Provide some information about the compiler.
3057 echo "$as_me:$LINENO:" \
3058 "checking for C compiler version" >&5
3059 ac_compiler
=`set X $ac_compile; echo $2`
3060 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3061 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }
3065 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3066 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }
3070 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3071 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }
3076 cat >conftest.
$ac_ext <<_ACEOF
3079 cat confdefs.h
>>conftest.
$ac_ext
3080 cat >>conftest.
$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3091 ac_clean_files_save
=$ac_clean_files
3092 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
3093 # Try to create an executable without -o first, disregard a.out.
3094 # It will help us diagnose broken compilers, and finding out an intuition
3096 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3097 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
3098 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3099 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
3100 (eval $ac_link_default) 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; then
3104 # Find the output, starting from the most likely. This scheme is
3105 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
3108 # Be careful to initialize this variable, since it used to be cached.
3109 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
3111 # b.out is created by i960 compilers.
3112 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
3114 test -f "$ac_file" ||
continue
3116 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
3119 # This is the source file.
3122 # We found the default executable, but exeext='' is most
3126 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 # FIXME: I believe we export ac_cv_exeext for Libtool,
3128 # but it would be cool to find out if it's true. Does anybody
3129 # maintain Libtool? --akim.
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.
$ac_ext >&5
3140 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: C compiler cannot create executables
3143 See \`config.log' for more details." >&2;}
3144 { (exit 77); exit 77; }; }
3147 ac_exeext
=$ac_cv_exeext
3148 echo "$as_me:$LINENO: result: $ac_file" >&5
3149 echo "${ECHO_T}$ac_file" >&6
3151 # Check the compiler produces executables we can run. If not, either
3152 # the compiler is broken, or we cross compile.
3153 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3154 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
3155 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3156 # If not cross compiling, check that we can run a simple program.
3157 if test "$cross_compiling" != yes; then
3158 if { ac_try
='./$ac_file'
3159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); }; }; then
3166 if test "$cross_compiling" = maybe
; then
3169 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3170 If you meant to cross compile, use \`--host'.
3171 See \`config.log' for more details." >&5
3172 echo "$as_me: error: cannot run C compiled programs.
3173 If you meant to cross compile, use \`--host'.
3174 See \`config.log' for more details." >&2;}
3175 { (exit 1); exit 1; }; }
3179 echo "$as_me:$LINENO: result: yes" >&5
3180 echo "${ECHO_T}yes" >&6
3182 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
3183 ac_clean_files
=$ac_clean_files_save
3184 # Check the compiler produces executables we can run. If not, either
3185 # the compiler is broken, or we cross compile.
3186 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3187 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
3188 echo "$as_me:$LINENO: result: $cross_compiling" >&5
3189 echo "${ECHO_T}$cross_compiling" >&6
3191 echo "$as_me:$LINENO: checking for suffix of executables" >&5
3192 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
3193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3194 (eval $ac_link) 2>&5
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }; then
3198 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3199 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3200 # work properly (i.e., refer to `conftest.exe'), while it won't with
3202 for ac_file
in conftest.exe conftest conftest.
*; do
3203 test -f "$ac_file" ||
continue
3205 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
3206 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3213 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3214 See \`config.log' for more details." >&5
3215 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3216 See \`config.log' for more details." >&2;}
3217 { (exit 1); exit 1; }; }
3220 rm -f conftest
$ac_cv_exeext
3221 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3222 echo "${ECHO_T}$ac_cv_exeext" >&6
3224 rm -f conftest.
$ac_ext
3225 EXEEXT
=$ac_cv_exeext
3227 echo "$as_me:$LINENO: checking for suffix of object files" >&5
3228 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
3229 if test "${ac_cv_objext+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 cat >conftest.
$ac_ext <<_ACEOF
3235 cat confdefs.h
>>conftest.
$ac_ext
3236 cat >>conftest.
$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3247 rm -f conftest.o conftest.obj
3248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3249 (eval $ac_compile) 2>&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }; then
3253 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
3255 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
3256 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.
$ac_ext >&5
3264 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3265 See \`config.log' for more details." >&5
3266 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3267 See \`config.log' for more details." >&2;}
3268 { (exit 1); exit 1; }; }
3271 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
3273 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3274 echo "${ECHO_T}$ac_cv_objext" >&6
3275 OBJEXT
=$ac_cv_objext
3277 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3278 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3279 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3282 cat >conftest.
$ac_ext <<_ACEOF
3285 cat confdefs.h
>>conftest.
$ac_ext
3286 cat >>conftest.
$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3300 rm -f conftest.
$ac_objext
3301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3302 (eval $ac_compile) 2>conftest.er1
3304 grep -v '^ *+' conftest.er1
>conftest.err
3306 cat conftest.err
>&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } &&
3309 { ac_try
='test -z "$ac_c_werror_flag"
3310 || test ! -s conftest.err'
3311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); }; } &&
3316 { ac_try
='test -s conftest.$ac_objext'
3317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3321 (exit $ac_status); }; }; then
3324 echo "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.
$ac_ext >&5
3329 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3330 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
3333 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3334 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3335 GCC
=`test $ac_compiler_gnu = yes && echo yes`
3336 ac_test_CFLAGS
=${CFLAGS+set}
3337 ac_save_CFLAGS
=$CFLAGS
3339 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3340 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3341 if test "${ac_cv_prog_cc_g+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 cat >conftest.
$ac_ext <<_ACEOF
3347 cat confdefs.h
>>conftest.
$ac_ext
3348 cat >>conftest.
$ac_ext <<_ACEOF
3349 /* end confdefs.h. */
3359 rm -f conftest.
$ac_objext
3360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3361 (eval $ac_compile) 2>conftest.er1
3363 grep -v '^ *+' conftest.er1
>conftest.err
3365 cat conftest.err
>&5
3366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); } &&
3368 { ac_try
='test -z "$ac_c_werror_flag"
3369 || test ! -s conftest.err'
3370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); }; } &&
3375 { ac_try
='test -s conftest.$ac_objext'
3376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; }; then
3383 echo "$as_me: failed program was:" >&5
3384 sed 's/^/| /' conftest.
$ac_ext >&5
3388 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3390 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3391 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3392 if test "$ac_test_CFLAGS" = set; then
3393 CFLAGS
=$ac_save_CFLAGS
3394 elif test $ac_cv_prog_cc_g = yes; then
3395 if test "$GCC" = yes; then
3401 if test "$GCC" = yes; then
3407 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3408 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3409 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 ac_cv_prog_cc_stdc
=no
3414 cat >conftest.
$ac_ext <<_ACEOF
3417 cat confdefs.h
>>conftest.
$ac_ext
3418 cat >>conftest.
$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3422 #include <sys/types.h>
3423 #include <sys/stat.h>
3424 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3425 struct buf { int x; };
3426 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3427 static char *e (p, i)
3433 static char *f (char * (*g) (char **, int), char **p, ...)
3438 s = g (p, va_arg (v,int));
3443 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3444 function prototypes and stuff, but not '\xHH' hex character constants.
3445 These don't provoke an error unfortunately, instead are silently treated
3446 as 'x'. The following induces an error, until -std1 is added to get
3447 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3448 array size at least. It's necessary to write '\x00'==0 to get something
3449 that's true only with -std1. */
3450 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3452 int test (int i, double x);
3453 struct s1 {int (*f) (int a);};
3454 struct s2 {int (*f) (double a);};
3455 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3461 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3466 # Don't try gcc -ansi; that turns off useful extensions and
3467 # breaks some systems' header files.
3468 # AIX -qlanglvl=ansi
3469 # Ultrix and OSF/1 -std1
3470 # HP-UX 10.20 and later -Ae
3471 # HP-UX older versions -Aa -D_HPUX_SOURCE
3472 # SVR4 -Xc -D__EXTENSIONS__
3473 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3475 CC
="$ac_save_CC $ac_arg"
3476 rm -f conftest.
$ac_objext
3477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3478 (eval $ac_compile) 2>conftest.er1
3480 grep -v '^ *+' conftest.er1
>conftest.err
3482 cat conftest.err
>&5
3483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); } &&
3485 { ac_try
='test -z "$ac_c_werror_flag"
3486 || test ! -s conftest.err'
3487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; } &&
3492 { ac_try
='test -s conftest.$ac_objext'
3493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497 (exit $ac_status); }; }; then
3498 ac_cv_prog_cc_stdc
=$ac_arg
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.
$ac_ext >&5
3505 rm -f conftest.err conftest.
$ac_objext
3507 rm -f conftest.
$ac_ext conftest.
$ac_objext
3512 case "x$ac_cv_prog_cc_stdc" in
3514 echo "$as_me:$LINENO: result: none needed" >&5
3515 echo "${ECHO_T}none needed" >&6 ;;
3517 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3518 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3519 CC
="$CC $ac_cv_prog_cc_stdc" ;;
3522 # Some people use a C++ compiler to compile C. Since we use `exit',
3523 # in C++ we need to declare it. In case someone uses the same compiler
3524 # for both compiling C and C++ we need to have the C++ compiler decide
3525 # the declaration of exit, since it's the most demanding environment.
3526 cat >conftest.
$ac_ext <<_ACEOF
3531 rm -f conftest.
$ac_objext
3532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3533 (eval $ac_compile) 2>conftest.er1
3535 grep -v '^ *+' conftest.er1
>conftest.err
3537 cat conftest.err
>&5
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); } &&
3540 { ac_try
='test -z "$ac_c_werror_flag"
3541 || test ! -s conftest.err'
3542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try
='test -s conftest.$ac_objext'
3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3552 (exit $ac_status); }; }; then
3553 for ac_declaration
in \
3555 'extern "C" void std::exit (int) throw (); using std::exit;' \
3556 'extern "C" void std::exit (int); using std::exit;' \
3557 'extern "C" void exit (int) throw ();' \
3558 'extern "C" void exit (int);' \
3561 cat >conftest.
$ac_ext <<_ACEOF
3564 cat confdefs.h
>>conftest.
$ac_ext
3565 cat >>conftest.
$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3577 rm -f conftest.
$ac_objext
3578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3579 (eval $ac_compile) 2>conftest.er1
3581 grep -v '^ *+' conftest.er1
>conftest.err
3583 cat conftest.err
>&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } &&
3586 { ac_try
='test -z "$ac_c_werror_flag"
3587 || test ! -s conftest.err'
3588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }; } &&
3593 { ac_try
='test -s conftest.$ac_objext'
3594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; }; then
3601 echo "$as_me: failed program was:" >&5
3602 sed 's/^/| /' conftest.
$ac_ext >&5
3606 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3607 cat >conftest.
$ac_ext <<_ACEOF
3610 cat confdefs.h
>>conftest.
$ac_ext
3611 cat >>conftest.
$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3622 rm -f conftest.
$ac_objext
3623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3624 (eval $ac_compile) 2>conftest.er1
3626 grep -v '^ *+' conftest.er1
>conftest.err
3628 cat conftest.err
>&5
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } &&
3631 { ac_try
='test -z "$ac_c_werror_flag"
3632 || test ! -s conftest.err'
3633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); }; } &&
3638 { ac_try
='test -s conftest.$ac_objext'
3639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.
$ac_ext >&5
3650 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3653 if test -n "$ac_declaration"; then
3654 echo '#ifdef __cplusplus' >>confdefs.h
3655 echo $ac_declaration >>confdefs.h
3656 echo '#endif' >>confdefs.h
3660 echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.
$ac_ext >&5
3664 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3666 ac_cpp
='$CPP $CPPFLAGS'
3667 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3668 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3669 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3672 # On Suns, sometimes $CPP names a directory.
3673 if test -n "$CPP" && test -d "$CPP"; then
3677 #### Some systems specify a CPP to use unless we are using GCC.
3678 #### Now that we know whether we are using GCC, we can decide whether
3679 #### to use that one.
3680 if test "x$NON_GNU_CPP" != x
&& test x
$GCC != xyes
&& test "x$CPP" = x
3685 #### Some systems specify a CC to use unless we are using GCC.
3686 #### Now that we know whether we are using GCC, we can decide whether
3687 #### to use that one.
3688 if test "x$NON_GNU_CC" != x
&& test x
$GCC != xyes
&&
3689 test x
$cc_specified != xyes
3694 if test x
$GCC = xyes
&& test "x$GCC_TEST_OPTIONS" != x
3696 CC
="$CC $GCC_TEST_OPTIONS"
3699 if test x
$GCC = x
&& test "x$NON_GCC_TEST_OPTIONS" != x
3701 CC
="$CC $NON_GCC_TEST_OPTIONS"
3706 ac_cpp
='$CPP $CPPFLAGS'
3707 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3710 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3711 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3712 # On Suns, sometimes $CPP names a directory.
3713 if test -n "$CPP" && test -d "$CPP"; then
3716 if test -z "$CPP"; then
3717 if test "${ac_cv_prog_CPP+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3720 # Double quotes because CPP needs to be expanded
3721 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3724 for ac_c_preproc_warn_flag
in '' yes
3726 # Use a header file that comes with gcc, so configuring glibc
3727 # with a fresh cross-compiler works.
3728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3729 # <limits.h> exists even on freestanding compilers.
3730 # On the NeXT, cc -E runs the code through the compiler's parser,
3731 # not just through cpp. "Syntax error" is here to catch this case.
3732 cat >conftest.
$ac_ext <<_ACEOF
3735 cat confdefs.h
>>conftest.
$ac_ext
3736 cat >>conftest.
$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3739 # include <limits.h>
3741 # include <assert.h>
3745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3746 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3748 grep -v '^ *+' conftest.er1
>conftest.err
3750 cat conftest.err
>&5
3751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752 (exit $ac_status); } >/dev
/null
; then
3753 if test -s conftest.err
; then
3754 ac_cpp_err
=$ac_c_preproc_warn_flag
3755 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3762 if test -z "$ac_cpp_err"; then
3765 echo "$as_me: failed program was:" >&5
3766 sed 's/^/| /' conftest.
$ac_ext >&5
3768 # Broken: fails on valid input.
3771 rm -f conftest.err conftest.
$ac_ext
3773 # OK, works on sane cases. Now check whether non-existent headers
3774 # can be detected and how.
3775 cat >conftest.
$ac_ext <<_ACEOF
3778 cat confdefs.h
>>conftest.
$ac_ext
3779 cat >>conftest.
$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3781 #include <ac_nonexistent.h>
3783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3784 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3786 grep -v '^ *+' conftest.er1
>conftest.err
3788 cat conftest.err
>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); } >/dev
/null
; then
3791 if test -s conftest.err
; then
3792 ac_cpp_err
=$ac_c_preproc_warn_flag
3793 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3800 if test -z "$ac_cpp_err"; then
3801 # Broken: success on invalid input.
3804 echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.
$ac_ext >&5
3807 # Passes both tests.
3811 rm -f conftest.err conftest.
$ac_ext
3814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3815 rm -f conftest.err conftest.
$ac_ext
3816 if $ac_preproc_ok; then
3828 echo "$as_me:$LINENO: result: $CPP" >&5
3829 echo "${ECHO_T}$CPP" >&6
3831 for ac_c_preproc_warn_flag
in '' yes
3833 # Use a header file that comes with gcc, so configuring glibc
3834 # with a fresh cross-compiler works.
3835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3836 # <limits.h> exists even on freestanding compilers.
3837 # On the NeXT, cc -E runs the code through the compiler's parser,
3838 # not just through cpp. "Syntax error" is here to catch this case.
3839 cat >conftest.
$ac_ext <<_ACEOF
3842 cat confdefs.h
>>conftest.
$ac_ext
3843 cat >>conftest.
$ac_ext <<_ACEOF
3844 /* end confdefs.h. */
3846 # include <limits.h>
3848 # include <assert.h>
3852 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3853 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3855 grep -v '^ *+' conftest.er1
>conftest.err
3857 cat conftest.err
>&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } >/dev
/null
; then
3860 if test -s conftest.err
; then
3861 ac_cpp_err
=$ac_c_preproc_warn_flag
3862 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3869 if test -z "$ac_cpp_err"; then
3872 echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.
$ac_ext >&5
3875 # Broken: fails on valid input.
3878 rm -f conftest.err conftest.
$ac_ext
3880 # OK, works on sane cases. Now check whether non-existent headers
3881 # can be detected and how.
3882 cat >conftest.
$ac_ext <<_ACEOF
3885 cat confdefs.h
>>conftest.
$ac_ext
3886 cat >>conftest.
$ac_ext <<_ACEOF
3887 /* end confdefs.h. */
3888 #include <ac_nonexistent.h>
3890 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3891 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
3893 grep -v '^ *+' conftest.er1
>conftest.err
3895 cat conftest.err
>&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } >/dev
/null
; then
3898 if test -s conftest.err
; then
3899 ac_cpp_err
=$ac_c_preproc_warn_flag
3900 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
3907 if test -z "$ac_cpp_err"; then
3908 # Broken: success on invalid input.
3911 echo "$as_me: failed program was:" >&5
3912 sed 's/^/| /' conftest.
$ac_ext >&5
3914 # Passes both tests.
3918 rm -f conftest.err conftest.
$ac_ext
3921 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3922 rm -f conftest.err conftest.
$ac_ext
3923 if $ac_preproc_ok; then
3926 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3927 See \`config.log' for more details." >&5
3928 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3929 See \`config.log' for more details." >&2;}
3930 { (exit 1); exit 1; }; }
3934 ac_cpp
='$CPP $CPPFLAGS'
3935 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3936 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3937 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3940 echo "$as_me:$LINENO: checking for egrep" >&5
3941 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3942 if test "${ac_cv_prog_egrep+set}" = set; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3946 then ac_cv_prog_egrep
='grep -E'
3947 else ac_cv_prog_egrep
='egrep'
3950 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3951 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3952 EGREP
=$ac_cv_prog_egrep
3956 echo "$as_me:$LINENO: checking for AIX" >&5
3957 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3958 cat >conftest.
$ac_ext <<_ACEOF
3961 cat confdefs.h
>>conftest.
$ac_ext
3962 cat >>conftest.
$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3970 $EGREP "yes" >/dev
/null
2>&1; then
3971 echo "$as_me:$LINENO: result: yes" >&5
3972 echo "${ECHO_T}yes" >&6
3973 cat >>confdefs.h
<<\_ACEOF
3974 #define _ALL_SOURCE 1
3978 echo "$as_me:$LINENO: result: no" >&5
3979 echo "${ECHO_T}no" >&6
3985 cat >>confdefs.h
<<\_ACEOF
3986 #define _GNU_SOURCE 1
3991 ### Use -Wno-pointer-sign if the compiler supports it
3992 echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
3993 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6
3994 SAVE_CFLAGS
="$CFLAGS"
3995 CFLAGS
="$CFLAGS -Wno-pointer-sign"
3996 cat >conftest.
$ac_ext <<_ACEOF
3999 cat confdefs.h
>>conftest.
$ac_ext
4000 cat >>conftest.
$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4011 rm -f conftest.
$ac_objext
4012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013 (eval $ac_compile) 2>conftest.er1
4015 grep -v '^ *+' conftest.er1
>conftest.err
4017 cat conftest.err
>&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try
='test -z "$ac_c_werror_flag"
4021 || test ! -s conftest.err'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; } &&
4027 { ac_try
='test -s conftest.$ac_objext'
4028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4032 (exit $ac_status); }; }; then
4035 echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.
$ac_ext >&5
4040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4041 if test $has_option = yes; then
4042 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4044 echo "$as_me:$LINENO: result: $has_option" >&5
4045 echo "${ECHO_T}$has_option" >&6
4046 CFLAGS
="$SAVE_CFLAGS"
4050 #### Some other nice autoconf tests.
4052 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4053 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4055 if test "$LN_S" = "ln -s"; then
4056 echo "$as_me:$LINENO: result: yes" >&5
4057 echo "${ECHO_T}yes" >&6
4059 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4060 echo "${ECHO_T}no, using $LN_S" >&6
4064 ac_cpp
='$CPP $CPPFLAGS'
4065 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4068 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4069 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4070 # On Suns, sometimes $CPP names a directory.
4071 if test -n "$CPP" && test -d "$CPP"; then
4074 if test -z "$CPP"; then
4075 if test "${ac_cv_prog_CPP+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 # Double quotes because CPP needs to be expanded
4079 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4082 for ac_c_preproc_warn_flag
in '' yes
4084 # Use a header file that comes with gcc, so configuring glibc
4085 # with a fresh cross-compiler works.
4086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4087 # <limits.h> exists even on freestanding compilers.
4088 # On the NeXT, cc -E runs the code through the compiler's parser,
4089 # not just through cpp. "Syntax error" is here to catch this case.
4090 cat >conftest.
$ac_ext <<_ACEOF
4093 cat confdefs.h
>>conftest.
$ac_ext
4094 cat >>conftest.
$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4097 # include <limits.h>
4099 # include <assert.h>
4103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4104 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4106 grep -v '^ *+' conftest.er1
>conftest.err
4108 cat conftest.err
>&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } >/dev
/null
; then
4111 if test -s conftest.err
; then
4112 ac_cpp_err
=$ac_c_preproc_warn_flag
4113 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4120 if test -z "$ac_cpp_err"; then
4123 echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.
$ac_ext >&5
4126 # Broken: fails on valid input.
4129 rm -f conftest.err conftest.
$ac_ext
4131 # OK, works on sane cases. Now check whether non-existent headers
4132 # can be detected and how.
4133 cat >conftest.
$ac_ext <<_ACEOF
4136 cat confdefs.h
>>conftest.
$ac_ext
4137 cat >>conftest.
$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4139 #include <ac_nonexistent.h>
4141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4142 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4144 grep -v '^ *+' conftest.er1
>conftest.err
4146 cat conftest.err
>&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } >/dev
/null
; then
4149 if test -s conftest.err
; then
4150 ac_cpp_err
=$ac_c_preproc_warn_flag
4151 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4158 if test -z "$ac_cpp_err"; then
4159 # Broken: success on invalid input.
4162 echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.
$ac_ext >&5
4165 # Passes both tests.
4169 rm -f conftest.err conftest.
$ac_ext
4172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4173 rm -f conftest.err conftest.
$ac_ext
4174 if $ac_preproc_ok; then
4186 echo "$as_me:$LINENO: result: $CPP" >&5
4187 echo "${ECHO_T}$CPP" >&6
4189 for ac_c_preproc_warn_flag
in '' yes
4191 # Use a header file that comes with gcc, so configuring glibc
4192 # with a fresh cross-compiler works.
4193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4194 # <limits.h> exists even on freestanding compilers.
4195 # On the NeXT, cc -E runs the code through the compiler's parser,
4196 # not just through cpp. "Syntax error" is here to catch this case.
4197 cat >conftest.
$ac_ext <<_ACEOF
4200 cat confdefs.h
>>conftest.
$ac_ext
4201 cat >>conftest.
$ac_ext <<_ACEOF
4202 /* end confdefs.h. */
4204 # include <limits.h>
4206 # include <assert.h>
4210 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4211 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4213 grep -v '^ *+' conftest.er1
>conftest.err
4215 cat conftest.err
>&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } >/dev
/null
; then
4218 if test -s conftest.err
; then
4219 ac_cpp_err
=$ac_c_preproc_warn_flag
4220 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4227 if test -z "$ac_cpp_err"; then
4230 echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.
$ac_ext >&5
4233 # Broken: fails on valid input.
4236 rm -f conftest.err conftest.
$ac_ext
4238 # OK, works on sane cases. Now check whether non-existent headers
4239 # can be detected and how.
4240 cat >conftest.
$ac_ext <<_ACEOF
4243 cat confdefs.h
>>conftest.
$ac_ext
4244 cat >>conftest.
$ac_ext <<_ACEOF
4245 /* end confdefs.h. */
4246 #include <ac_nonexistent.h>
4248 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4249 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
4251 grep -v '^ *+' conftest.er1
>conftest.err
4253 cat conftest.err
>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } >/dev
/null
; then
4256 if test -s conftest.err
; then
4257 ac_cpp_err
=$ac_c_preproc_warn_flag
4258 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
4265 if test -z "$ac_cpp_err"; then
4266 # Broken: success on invalid input.
4269 echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.
$ac_ext >&5
4272 # Passes both tests.
4276 rm -f conftest.err conftest.
$ac_ext
4279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4280 rm -f conftest.err conftest.
$ac_ext
4281 if $ac_preproc_ok; then
4284 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4285 See \`config.log' for more details." >&5
4286 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4287 See \`config.log' for more details." >&2;}
4288 { (exit 1); exit 1; }; }
4292 ac_cpp
='$CPP $CPPFLAGS'
4293 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4297 # Find a good install program. We prefer a C program (faster),
4298 # so one script is as good as another. But avoid the broken or
4299 # incompatible versions:
4300 # SysV /etc/install, /usr/sbin/install
4301 # SunOS /usr/etc/install
4302 # IRIX /sbin/install
4304 # AmigaOS /C/install, which installs bootblocks on floppy discs
4305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4308 # OS/2's system install, which has a completely different semantic
4309 # ./install, which can be erroneously created by make from ./install.sh.
4310 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4311 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4312 if test -z "$INSTALL"; then
4313 if test "${ac_cv_path_install+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4320 test -z "$as_dir" && as_dir
=.
4321 # Account for people who put trailing slashes in PATH elements.
4323 .
/ | .
// |
/cC
/* | \
4324 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4325 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4328 # OSF1 and SCO ODT 3.0 have their own names for install.
4329 # Don't use installbsd from OSF since it installs stuff as root
4331 for ac_prog
in ginstall scoinst
install; do
4332 for ac_exec_ext
in '' $ac_executable_extensions; do
4333 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4334 if test $ac_prog = install &&
4335 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4336 # AIX install. It has an incompatible calling convention.
4338 elif test $ac_prog = install &&
4339 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4340 # program-specific install script used by HP pwplus--don't use.
4343 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4355 if test "${ac_cv_path_install+set}" = set; then
4356 INSTALL
=$ac_cv_path_install
4358 # As a last resort, use the slow shell script. We don't cache a
4359 # path for INSTALL within a source directory, because that will
4360 # break other packages using the cache if that directory is
4361 # removed, or if the path is relative.
4362 INSTALL
=$ac_install_sh
4365 echo "$as_me:$LINENO: result: $INSTALL" >&5
4366 echo "${ECHO_T}$INSTALL" >&6
4368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4369 # It thinks the first close brace ends the variable substitution.
4370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4374 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4376 if test "x$RANLIB" = x
; then
4377 if test -n "$ac_tool_prefix"; then
4378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4379 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4380 echo "$as_me:$LINENO: checking for $ac_word" >&5
4381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4382 if test "${ac_cv_prog_RANLIB+set}" = set; then
4383 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 if test -n "$RANLIB"; then
4386 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4392 test -z "$as_dir" && as_dir
=.
4393 for ac_exec_ext
in '' $ac_executable_extensions; do
4394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4395 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 RANLIB
=$ac_cv_prog_RANLIB
4405 if test -n "$RANLIB"; then
4406 echo "$as_me:$LINENO: result: $RANLIB" >&5
4407 echo "${ECHO_T}$RANLIB" >&6
4409 echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6
4414 if test -z "$ac_cv_prog_RANLIB"; then
4415 ac_ct_RANLIB
=$RANLIB
4416 # Extract the first word of "ranlib", so it can be a program name with args.
4417 set dummy ranlib
; ac_word
=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test -n "$ac_ct_RANLIB"; then
4424 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir
=.
4431 for ac_exec_ext
in '' $ac_executable_extensions; do
4432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4433 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
4443 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4444 if test -n "$ac_ct_RANLIB"; then
4445 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4446 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4448 echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4452 RANLIB
=$ac_ct_RANLIB
4454 RANLIB
="$ac_cv_prog_RANLIB"
4458 # Extract the first word of "install-info", so it can be a program name with args.
4459 set dummy install-info
; ac_word
=$2
4460 echo "$as_me:$LINENO: checking for $ac_word" >&5
4461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4462 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4463 echo $ECHO_N "(cached) $ECHO_C" >&6
4465 case $INSTALL_INFO in
4467 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir
=.
4475 for ac_exec_ext
in '' $ac_executable_extensions; do
4476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4477 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4489 if test -n "$INSTALL_INFO"; then
4490 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4491 echo "${ECHO_T}$INSTALL_INFO" >&6
4493 echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6
4497 # Extract the first word of "install-info", so it can be a program name with args.
4498 set dummy install-info
; ac_word
=$2
4499 echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 case $INSTALL_INFO in
4506 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4509 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4510 for as_dir
in /usr
/sbin
4513 test -z "$as_dir" && as_dir
=.
4514 for ac_exec_ext
in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4528 if test -n "$INSTALL_INFO"; then
4529 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4530 echo "${ECHO_T}$INSTALL_INFO" >&6
4532 echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4536 # Extract the first word of "install-info", so it can be a program name with args.
4537 set dummy install-info
; ac_word
=$2
4538 echo "$as_me:$LINENO: checking for $ac_word" >&5
4539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 case $INSTALL_INFO in
4545 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4552 test -z "$as_dir" && as_dir
=.
4553 for ac_exec_ext
in '' $ac_executable_extensions; do
4554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4555 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4566 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4568 if test -n "$INSTALL_INFO"; then
4569 echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4570 echo "${ECHO_T}$INSTALL_INFO" >&6
4572 echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6
4576 # Extract the first word of "gzip", so it can be a program name with args.
4577 set dummy
gzip; ac_word
=$2
4578 echo "$as_me:$LINENO: checking for $ac_word" >&5
4579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4580 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4581 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir
=.
4593 for ac_exec_ext
in '' $ac_executable_extensions; do
4594 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4595 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4607 if test -n "$GZIP_PROG"; then
4608 echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4609 echo "${ECHO_T}$GZIP_PROG" >&6
4611 echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6
4617 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
4619 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
4622 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
4624 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
4628 late_LDFLAGS
=$LDFLAGS
4629 if test "$GCC" = yes; then
4630 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
4632 LDFLAGS
="$LDFLAGS -znocombreloc"
4635 echo "$as_me:$LINENO: checking for -znocombreloc" >&5
4636 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6
4637 cat >conftest.
$ac_ext <<_ACEOF
4640 rm -f conftest.
$ac_objext conftest
$ac_exeext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4642 (eval $ac_link) 2>conftest.er1
4644 grep -v '^ *+' conftest.er1
>conftest.err
4646 cat conftest.err
>&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try
='test -z "$ac_c_werror_flag"
4650 || test ! -s conftest.err'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; } &&
4656 { ac_try
='test -s conftest$ac_exeext'
4657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661 (exit $ac_status); }; }; then
4662 echo "$as_me:$LINENO: result: yes" >&5
4663 echo "${ECHO_T}yes" >&6
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.
$ac_ext >&5
4668 LDFLAGS
=$late_LDFLAGS
4669 echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6
4672 rm -f conftest.err conftest.
$ac_objext \
4673 conftest
$ac_exeext conftest.
$ac_ext
4675 #### Extract some information from the operating system and machine files.
4677 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
4678 - which libraries the lib-src programs will want, and
4679 - whether the GNU malloc routines are usable..." >&5
4680 echo "$as_me: checking the machine- and system-dependent files to find out
4681 - which libraries the lib-src programs will want, and
4682 - whether the GNU malloc routines are usable..." >&6;}
4684 ### First figure out CFLAGS (which we use for running the compiler here)
4685 ### and REAL_CFLAGS (which we use for real compilation).
4686 ### The two are the same except on a few systems, where they are made
4687 ### different to work around various lossages. For example,
4688 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
4689 ### as implying static linking.
4691 ### If the CFLAGS env var is specified, we use that value
4692 ### instead of the default.
4694 ### It's not important that this name contain the PID; you can't run
4695 ### two configures in the same directory and have anything work
4697 tempcname
="conftest.c"
4700 #include "'${srcdir}'/src/'${opsysfile}'"
4701 #include "'${srcdir}'/src/'${machfile}'"
4702 #ifndef LIBS_MACHINE
4703 #define LIBS_MACHINE
4708 #ifndef C_SWITCH_SYSTEM
4709 #define C_SWITCH_SYSTEM
4711 #ifndef C_SWITCH_MACHINE
4712 #define C_SWITCH_MACHINE
4714 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
4715 configure___ c_switch_system=C_SWITCH_SYSTEM
4716 configure___ c_switch_machine=C_SWITCH_MACHINE
4719 #define LIB_X11_LIB -lX11
4722 #ifndef LIBX11_MACHINE
4723 #define LIBX11_MACHINE
4726 #ifndef LIBX11_SYSTEM
4727 #define LIBX11_SYSTEM
4729 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
4732 configure___ unexec=UNEXEC
4734 configure___ unexec=unexec.o
4737 #ifdef SYSTEM_MALLOC
4738 configure___ system_malloc=yes
4740 configure___ system_malloc=no
4743 #ifdef USE_MMAP_FOR_BUFFERS
4744 configure___ use_mmap_for_buffers=yes
4746 configure___ use_mmap_for_buffers=no
4749 #ifndef C_DEBUG_SWITCH
4750 #define C_DEBUG_SWITCH -g
4753 #ifndef C_OPTIMIZE_SWITCH
4755 #define C_OPTIMIZE_SWITCH -O2
4757 #define C_OPTIMIZE_SWITCH -O
4761 #ifndef C_WARNINGS_SWITCH
4762 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
4765 #ifndef LD_SWITCH_MACHINE
4766 #define LD_SWITCH_MACHINE
4769 #ifndef LD_SWITCH_SYSTEM
4770 #define LD_SWITCH_SYSTEM
4773 #ifndef LD_SWITCH_X_SITE_AUX
4774 #define LD_SWITCH_X_SITE_AUX
4777 configure___ ld_switch_system=LD_SWITCH_SYSTEM
4778 configure___ ld_switch_machine=LD_SWITCH_MACHINE
4780 #ifdef THIS_IS_CONFIGURE
4782 /* Get the CFLAGS for tests in configure. */
4784 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
4786 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4789 #else /* not THIS_IS_CONFIGURE */
4791 /* Get the CFLAGS for real compilation. */
4793 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
4795 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
4798 #endif /* not THIS_IS_CONFIGURE */
4801 # The value of CPP is a quoted variable reference, so we need to do this
4802 # to get its actual value...
4803 CPP
=`eval "echo $CPP"`
4804 eval `${CPP} -Isrc ${tempcname} \
4805 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4806 if test "x$SPECIFIED_CFLAGS" = x
; then
4807 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
4808 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
4810 REAL_CFLAGS
="$CFLAGS"
4814 ac_link
="$ac_link $ld_switch_machine $ld_switch_system"
4816 ### Make sure subsequent tests use flags consistent with the build flags.
4818 if test x
"${OVERRIDE_CPPFLAGS}" != x
; then
4819 CPPFLAGS
="${OVERRIDE_CPPFLAGS}"
4821 CPPFLAGS
="$c_switch_system $c_switch_machine $CPPFLAGS"
4826 # Check whether --enable-largefile or --disable-largefile was given.
4827 if test "${enable_largefile+set}" = set; then
4828 enableval
="$enable_largefile"
4831 if test "$enable_largefile" != no
; then
4833 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4834 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4835 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 ac_cv_sys_largefile_CC
=no
4839 if test "$GCC" != yes; then
4842 # IRIX 6.2 and later do not support large files by default,
4843 # so use the C compiler's -n32 option if that helps.
4844 cat >conftest.
$ac_ext <<_ACEOF
4847 cat confdefs.h
>>conftest.
$ac_ext
4848 cat >>conftest.
$ac_ext <<_ACEOF
4849 /* end confdefs.h. */
4850 #include <sys/types.h>
4851 /* Check that off_t can represent 2**63 - 1 correctly.
4852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4853 since some C++ compilers masquerading as C compilers
4854 incorrectly reject 9223372036854775807. */
4855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4857 && LARGE_OFF_T % 2147483647 == 1)
4867 rm -f conftest.
$ac_objext
4868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4869 (eval $ac_compile) 2>conftest.er1
4871 grep -v '^ *+' conftest.er1
>conftest.err
4873 cat conftest.err
>&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } &&
4876 { ac_try
='test -z "$ac_c_werror_flag"
4877 || test ! -s conftest.err'
4878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; } &&
4883 { ac_try
='test -s conftest.$ac_objext'
4884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); }; }; then
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.
$ac_ext >&5
4895 rm -f conftest.err conftest.
$ac_objext
4897 rm -f conftest.
$ac_objext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4899 (eval $ac_compile) 2>conftest.er1
4901 grep -v '^ *+' conftest.er1
>conftest.err
4903 cat conftest.err
>&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try
='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try
='test -s conftest.$ac_objext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_cv_sys_largefile_CC
=' -n32'; break
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.
$ac_ext >&5
4925 rm -f conftest.err conftest.
$ac_objext
4929 rm -f conftest.
$ac_ext
4932 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4933 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4934 if test "$ac_cv_sys_largefile_CC" != no
; then
4935 CC
=$CC$ac_cv_sys_largefile_CC
4938 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4939 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4940 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 ac_cv_sys_file_offset_bits
=no
4945 cat >conftest.
$ac_ext <<_ACEOF
4948 cat confdefs.h
>>conftest.
$ac_ext
4949 cat >>conftest.
$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4951 #include <sys/types.h>
4952 /* Check that off_t can represent 2**63 - 1 correctly.
4953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4954 since some C++ compilers masquerading as C compilers
4955 incorrectly reject 9223372036854775807. */
4956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4958 && LARGE_OFF_T % 2147483647 == 1)
4968 rm -f conftest.
$ac_objext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970 (eval $ac_compile) 2>conftest.er1
4972 grep -v '^ *+' conftest.er1
>conftest.err
4974 cat conftest.err
>&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try
='test -z "$ac_c_werror_flag"
4978 || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try
='test -s conftest.$ac_objext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.
$ac_ext >&5
4996 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
4997 cat >conftest.
$ac_ext <<_ACEOF
5000 cat confdefs.h
>>conftest.
$ac_ext
5001 cat >>conftest.
$ac_ext <<_ACEOF
5002 /* end confdefs.h. */
5003 #define _FILE_OFFSET_BITS 64
5004 #include <sys/types.h>
5005 /* Check that off_t can represent 2**63 - 1 correctly.
5006 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5007 since some C++ compilers masquerading as C compilers
5008 incorrectly reject 9223372036854775807. */
5009 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5010 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5011 && LARGE_OFF_T % 2147483647 == 1)
5021 rm -f conftest.
$ac_objext
5022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5023 (eval $ac_compile) 2>conftest.er1
5025 grep -v '^ *+' conftest.er1
>conftest.err
5027 cat conftest.err
>&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
5030 { ac_try
='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try
='test -s conftest.$ac_objext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_sys_file_offset_bits
=64; break
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.
$ac_ext >&5
5049 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5053 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5054 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
5055 if test "$ac_cv_sys_file_offset_bits" != no
; then
5057 cat >>confdefs.h
<<_ACEOF
5058 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5063 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5064 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
5065 if test "${ac_cv_sys_large_files+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 ac_cv_sys_large_files
=no
5070 cat >conftest.
$ac_ext <<_ACEOF
5073 cat confdefs.h
>>conftest.
$ac_ext
5074 cat >>conftest.
$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 #include <sys/types.h>
5077 /* Check that off_t can represent 2**63 - 1 correctly.
5078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5079 since some C++ compilers masquerading as C compilers
5080 incorrectly reject 9223372036854775807. */
5081 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5083 && LARGE_OFF_T % 2147483647 == 1)
5093 rm -f conftest.
$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>conftest.er1
5097 grep -v '^ *+' conftest.er1
>conftest.err
5099 cat conftest.err
>&5
5100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
5102 { ac_try
='test -z "$ac_c_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try
='test -s conftest.$ac_objext'
5110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5117 echo "$as_me: failed program was:" >&5
5118 sed 's/^/| /' conftest.
$ac_ext >&5
5121 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5122 cat >conftest.
$ac_ext <<_ACEOF
5125 cat confdefs.h
>>conftest.
$ac_ext
5126 cat >>conftest.
$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #define _LARGE_FILES 1
5129 #include <sys/types.h>
5130 /* Check that off_t can represent 2**63 - 1 correctly.
5131 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5132 since some C++ compilers masquerading as C compilers
5133 incorrectly reject 9223372036854775807. */
5134 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5135 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5136 && LARGE_OFF_T % 2147483647 == 1)
5146 rm -f conftest.
$ac_objext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>conftest.er1
5150 grep -v '^ *+' conftest.er1
>conftest.err
5152 cat conftest.err
>&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try
='test -z "$ac_c_werror_flag"
5156 || test ! -s conftest.err'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; } &&
5162 { ac_try
='test -s conftest.$ac_objext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 ac_cv_sys_large_files
=1; break
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.
$ac_ext >&5
5174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5178 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5179 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
5180 if test "$ac_cv_sys_large_files" != no
; then
5182 cat >>confdefs.h
<<_ACEOF
5183 #define _LARGE_FILES $ac_cv_sys_large_files
5195 if test "${with_sound}" != "no"; then
5196 # Sound support for GNU/Linux and the free BSDs.
5197 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5198 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5199 if test "${ac_cv_header_stdc+set}" = set; then
5200 echo $ECHO_N "(cached) $ECHO_C" >&6
5202 cat >conftest.
$ac_ext <<_ACEOF
5205 cat confdefs.h
>>conftest.
$ac_ext
5206 cat >>conftest.
$ac_ext <<_ACEOF
5207 /* end confdefs.h. */
5221 rm -f conftest.
$ac_objext
5222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5223 (eval $ac_compile) 2>conftest.er1
5225 grep -v '^ *+' conftest.er1
>conftest.err
5227 cat conftest.err
>&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } &&
5230 { ac_try
='test -z "$ac_c_werror_flag"
5231 || test ! -s conftest.err'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; } &&
5237 { ac_try
='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5243 ac_cv_header_stdc
=yes
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.
$ac_ext >&5
5248 ac_cv_header_stdc
=no
5250 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5252 if test $ac_cv_header_stdc = yes; then
5253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5254 cat >conftest.
$ac_ext <<_ACEOF
5257 cat confdefs.h
>>conftest.
$ac_ext
5258 cat >>conftest.
$ac_ext <<_ACEOF
5259 /* end confdefs.h. */
5263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5264 $EGREP "memchr" >/dev
/null
2>&1; then
5267 ac_cv_header_stdc
=no
5273 if test $ac_cv_header_stdc = yes; then
5274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5275 cat >conftest.
$ac_ext <<_ACEOF
5278 cat confdefs.h
>>conftest.
$ac_ext
5279 cat >>conftest.
$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5285 $EGREP "free" >/dev
/null
2>&1; then
5288 ac_cv_header_stdc
=no
5294 if test $ac_cv_header_stdc = yes; then
5295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5296 if test "$cross_compiling" = yes; then
5299 cat >conftest.
$ac_ext <<_ACEOF
5302 cat confdefs.h
>>conftest.
$ac_ext
5303 cat >>conftest.
$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5306 #if ((' ' & 0x0FF) == 0x020)
5307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5310 # define ISLOWER(c) \
5311 (('a' <= (c) && (c) <= 'i') \
5312 || ('j' <= (c) && (c) <= 'r') \
5313 || ('s' <= (c) && (c) <= 'z'))
5314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5322 for (i = 0; i < 256; i++)
5323 if (XOR (islower (i), ISLOWER (i))
5324 || toupper (i) != TOUPPER (i))
5329 rm -f conftest
$ac_exeext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5331 (eval $ac_link) 2>&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); }; }; then
5342 echo "$as_me: program exited with status $ac_status" >&5
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.
$ac_ext >&5
5347 ac_cv_header_stdc
=no
5349 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5353 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5354 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5355 if test $ac_cv_header_stdc = yes; then
5357 cat >>confdefs.h
<<\_ACEOF
5358 #define STDC_HEADERS 1
5363 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5373 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5374 inttypes.h stdint.h unistd.h
5376 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5377 echo "$as_me:$LINENO: checking for $ac_header" >&5
5378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 cat >conftest.
$ac_ext <<_ACEOF
5385 cat confdefs.h
>>conftest.
$ac_ext
5386 cat >>conftest.
$ac_ext <<_ACEOF
5387 /* end confdefs.h. */
5388 $ac_includes_default
5390 #include <$ac_header>
5392 rm -f conftest.
$ac_objext
5393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5394 (eval $ac_compile) 2>conftest.er1
5396 grep -v '^ *+' conftest.er1
>conftest.err
5398 cat conftest.err
>&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); } &&
5401 { ac_try
='test -z "$ac_c_werror_flag"
5402 || test ! -s conftest.err'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; } &&
5408 { ac_try
='test -s conftest.$ac_objext'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 eval "$as_ac_Header=yes"
5416 echo "$as_me: failed program was:" >&5
5417 sed 's/^/| /' conftest.
$ac_ext >&5
5419 eval "$as_ac_Header=no"
5421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5426 cat >>confdefs.h
<<_ACEOF
5427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5438 for ac_header
in machine
/soundcard.h sys
/soundcard.h soundcard.h
5440 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5442 echo "$as_me:$LINENO: checking for $ac_header" >&5
5443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5450 # Is the header compilable?
5451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5453 cat >conftest.
$ac_ext <<_ACEOF
5456 cat confdefs.h
>>conftest.
$ac_ext
5457 cat >>conftest.
$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 $ac_includes_default
5460 #include <$ac_header>
5462 rm -f conftest.
$ac_objext
5463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5464 (eval $ac_compile) 2>conftest.er1
5466 grep -v '^ *+' conftest.er1
>conftest.err
5468 cat conftest.err
>&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); } &&
5471 { ac_try
='test -z "$ac_c_werror_flag"
5472 || test ! -s conftest.err'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; } &&
5478 { ac_try
='test -s conftest.$ac_objext'
5479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); }; }; then
5484 ac_header_compiler
=yes
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.
$ac_ext >&5
5489 ac_header_compiler
=no
5491 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5493 echo "${ECHO_T}$ac_header_compiler" >&6
5495 # Is the header present?
5496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5498 cat >conftest.
$ac_ext <<_ACEOF
5501 cat confdefs.h
>>conftest.
$ac_ext
5502 cat >>conftest.
$ac_ext <<_ACEOF
5503 /* end confdefs.h. */
5504 #include <$ac_header>
5506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5507 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5509 grep -v '^ *+' conftest.er1
>conftest.err
5511 cat conftest.err
>&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } >/dev
/null
; then
5514 if test -s conftest.err
; then
5515 ac_cpp_err
=$ac_c_preproc_warn_flag
5516 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5523 if test -z "$ac_cpp_err"; then
5524 ac_header_preproc
=yes
5526 echo "$as_me: failed program was:" >&5
5527 sed 's/^/| /' conftest.
$ac_ext >&5
5529 ac_header_preproc
=no
5531 rm -f conftest.err conftest.
$ac_ext
5532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5533 echo "${ECHO_T}$ac_header_preproc" >&6
5535 # So? What about this header?
5536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5542 ac_header_preproc
=yes
5545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5559 ## ------------------------------------------ ##
5560 ## Report this to the AC_PACKAGE_NAME lists. ##
5561 ## ------------------------------------------ ##
5564 sed "s/^/$as_me: WARNING: /" >&2
5567 echo "$as_me:$LINENO: checking for $ac_header" >&5
5568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 eval "$as_ac_Header=\$ac_header_preproc"
5574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5579 cat >>confdefs.h
<<_ACEOF
5580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5587 # Emulation library used on NetBSD.
5588 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5589 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5590 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 ac_check_lib_save_LIBS
=$LIBS
5594 LIBS
="-lossaudio $LIBS"
5595 cat >conftest.
$ac_ext <<_ACEOF
5598 cat confdefs.h
>>conftest.
$ac_ext
5599 cat >>conftest.
$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5602 /* Override any gcc2 internal prototype to avoid an error. */
5606 /* We use char because int might match the return type of a gcc2
5607 builtin and then its argument prototype would still apply. */
5617 rm -f conftest.
$ac_objext conftest
$ac_exeext
5618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5619 (eval $ac_link) 2>conftest.er1
5621 grep -v '^ *+' conftest.er1
>conftest.err
5623 cat conftest.err
>&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 { ac_try
='test -z "$ac_c_werror_flag"
5627 || test ! -s conftest.err'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; } &&
5633 { ac_try
='test -s conftest$ac_exeext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_cv_lib_ossaudio__oss_ioctl
=yes
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.
$ac_ext >&5
5644 ac_cv_lib_ossaudio__oss_ioctl
=no
5646 rm -f conftest.err conftest.
$ac_objext \
5647 conftest
$ac_exeext conftest.
$ac_ext
5648 LIBS
=$ac_check_lib_save_LIBS
5650 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5651 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5652 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5661 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
5662 if test "X${with_pkg_config_prog}" != X
; then
5663 PKG_CONFIG
="${with_pkg_config_prog}"
5668 if test -z "$PKG_CONFIG"; then
5669 # Extract the first word of "pkg-config", so it can be a program name with args.
5670 set dummy pkg-config
; ac_word
=$2
5671 echo "$as_me:$LINENO: checking for $ac_word" >&5
5672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5673 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
5681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5685 test -z "$as_dir" && as_dir
=.
5686 for ac_exec_ext
in '' $ac_executable_extensions; do
5687 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
5689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
5699 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
5701 if test -n "$PKG_CONFIG"; then
5702 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5703 echo "${ECHO_T}$PKG_CONFIG" >&6
5705 echo "$as_me:$LINENO: result: no" >&5
5706 echo "${ECHO_T}no" >&6
5711 if test "$PKG_CONFIG" = "no" ; then
5714 PKG_CONFIG_MIN_VERSION
=0.9.0
5715 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5716 echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5717 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6
5719 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5720 echo "$as_me:$LINENO: result: yes" >&5
5721 echo "${ECHO_T}yes" >&6
5724 echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5725 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6
5726 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
5727 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5728 echo "${ECHO_T}$ALSA_CFLAGS" >&6
5730 echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5731 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6
5732 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
5733 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5734 echo "${ECHO_T}$ALSA_LIBS" >&6
5736 echo "$as_me:$LINENO: result: no" >&5
5737 echo "${ECHO_T}no" >&6
5740 ## If we have a custom action on failure, don't print errors, but
5741 ## do set a variable so people can do so.
5742 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
5749 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
5750 echo "*** See http://www.freedesktop.org/software/pkgconfig"
5754 if test $succeeded = yes; then
5760 if test $HAVE_ALSA = yes; then
5761 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
5762 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
5764 cat >>confdefs.h
<<\_ACEOF
5797 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
5798 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
5799 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
5800 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
5803 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5805 echo "$as_me:$LINENO: checking for $ac_header" >&5
5806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5808 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5813 # Is the header compilable?
5814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5816 cat >conftest.
$ac_ext <<_ACEOF
5819 cat confdefs.h
>>conftest.
$ac_ext
5820 cat >>conftest.
$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 $ac_includes_default
5823 #include <$ac_header>
5825 rm -f conftest.
$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827 (eval $ac_compile) 2>conftest.er1
5829 grep -v '^ *+' conftest.er1
>conftest.err
5831 cat conftest.err
>&5
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); } &&
5834 { ac_try
='test -z "$ac_c_werror_flag"
5835 || test ! -s conftest.err'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; } &&
5841 { ac_try
='test -s conftest.$ac_objext'
5842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); }; }; then
5847 ac_header_compiler
=yes
5849 echo "$as_me: failed program was:" >&5
5850 sed 's/^/| /' conftest.
$ac_ext >&5
5852 ac_header_compiler
=no
5854 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5856 echo "${ECHO_T}$ac_header_compiler" >&6
5858 # Is the header present?
5859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5861 cat >conftest.
$ac_ext <<_ACEOF
5864 cat confdefs.h
>>conftest.
$ac_ext
5865 cat >>conftest.
$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 #include <$ac_header>
5869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5870 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
5872 grep -v '^ *+' conftest.er1
>conftest.err
5874 cat conftest.err
>&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } >/dev
/null
; then
5877 if test -s conftest.err
; then
5878 ac_cpp_err
=$ac_c_preproc_warn_flag
5879 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5886 if test -z "$ac_cpp_err"; then
5887 ac_header_preproc
=yes
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.
$ac_ext >&5
5892 ac_header_preproc
=no
5894 rm -f conftest.err conftest.
$ac_ext
5895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5896 echo "${ECHO_T}$ac_header_preproc" >&6
5898 # So? What about this header?
5899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5905 ac_header_preproc
=yes
5908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5922 ## ------------------------------------------ ##
5923 ## Report this to the AC_PACKAGE_NAME lists. ##
5924 ## ------------------------------------------ ##
5927 sed "s/^/$as_me: WARNING: /" >&2
5930 echo "$as_me:$LINENO: checking for $ac_header" >&5
5931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 eval "$as_ac_Header=\$ac_header_preproc"
5937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5942 cat >>confdefs.h
<<_ACEOF
5943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5951 echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5952 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6
5953 cat >conftest.
$ac_ext <<_ACEOF
5956 cat confdefs.h
>>conftest.
$ac_ext
5957 cat >>conftest.
$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5959 #include <sys/personality.h>
5963 personality (PER_LINUX32)
5968 rm -f conftest.
$ac_objext
5969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5970 (eval $ac_compile) 2>conftest.er1
5972 grep -v '^ *+' conftest.er1
>conftest.err
5974 cat conftest.err
>&5
5975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976 (exit $ac_status); } &&
5977 { ac_try
='test -z "$ac_c_werror_flag"
5978 || test ! -s conftest.err'
5979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; } &&
5984 { ac_try
='test -s conftest.$ac_objext'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5990 emacs_cv_personality_linux32
=yes
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.
$ac_ext >&5
5995 emacs_cv_personality_linux32
=no
5997 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
5998 echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5999 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6
6001 if test $emacs_cv_personality_linux32 = yes; then
6003 cat >>confdefs.h
<<\_ACEOF
6004 #define HAVE_PERSONALITY_LINUX32 1
6010 for ac_header
in term.h
6012 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6013 echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 cat >conftest.
$ac_ext <<_ACEOF
6021 cat confdefs.h
>>conftest.
$ac_ext
6022 cat >>conftest.
$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6024 #include <$ac_header>
6026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6027 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6029 grep -v '^ *+' conftest.er1
>conftest.err
6031 cat conftest.err
>&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } >/dev
/null
; then
6034 if test -s conftest.err
; then
6035 ac_cpp_err
=$ac_c_preproc_warn_flag
6036 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6043 if test -z "$ac_cpp_err"; then
6044 eval "$as_ac_Header=yes"
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.
$ac_ext >&5
6049 eval "$as_ac_Header=no"
6051 rm -f conftest.err conftest.
$ac_ext
6053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6056 cat >>confdefs.h
<<_ACEOF
6057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6064 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6065 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6066 if test "${ac_cv_header_stdc+set}" = set; then
6067 echo $ECHO_N "(cached) $ECHO_C" >&6
6069 cat >conftest.
$ac_ext <<_ACEOF
6072 cat confdefs.h
>>conftest.
$ac_ext
6073 cat >>conftest.
$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6088 rm -f conftest.
$ac_objext
6089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6090 (eval $ac_compile) 2>conftest.er1
6092 grep -v '^ *+' conftest.er1
>conftest.err
6094 cat conftest.err
>&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } &&
6097 { ac_try
='test -z "$ac_c_werror_flag"
6098 || test ! -s conftest.err'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; } &&
6104 { ac_try
='test -s conftest.$ac_objext'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; }; then
6110 ac_cv_header_stdc
=yes
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.
$ac_ext >&5
6115 ac_cv_header_stdc
=no
6117 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6119 if test $ac_cv_header_stdc = yes; then
6120 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6121 cat >conftest.
$ac_ext <<_ACEOF
6124 cat confdefs.h
>>conftest.
$ac_ext
6125 cat >>conftest.
$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6130 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6131 $EGREP "memchr" >/dev
/null
2>&1; then
6134 ac_cv_header_stdc
=no
6140 if test $ac_cv_header_stdc = yes; then
6141 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6142 cat >conftest.
$ac_ext <<_ACEOF
6145 cat confdefs.h
>>conftest.
$ac_ext
6146 cat >>conftest.
$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6152 $EGREP "free" >/dev
/null
2>&1; then
6155 ac_cv_header_stdc
=no
6161 if test $ac_cv_header_stdc = yes; then
6162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6163 if test "$cross_compiling" = yes; then
6166 cat >conftest.
$ac_ext <<_ACEOF
6169 cat confdefs.h
>>conftest.
$ac_ext
6170 cat >>conftest.
$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6173 #if ((' ' & 0x0FF) == 0x020)
6174 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6175 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6177 # define ISLOWER(c) \
6178 (('a' <= (c) && (c) <= 'i') \
6179 || ('j' <= (c) && (c) <= 'r') \
6180 || ('s' <= (c) && (c) <= 'z'))
6181 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6184 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6189 for (i = 0; i < 256; i++)
6190 if (XOR (islower (i), ISLOWER (i))
6191 || toupper (i) != TOUPPER (i))
6196 rm -f conftest
$ac_exeext
6197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6198 (eval $ac_link) 2>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; }; then
6209 echo "$as_me: program exited with status $ac_status" >&5
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.
$ac_ext >&5
6214 ac_cv_header_stdc
=no
6216 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6220 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6221 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6222 if test $ac_cv_header_stdc = yes; then
6224 cat >>confdefs.h
<<\_ACEOF
6225 #define STDC_HEADERS 1
6230 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6231 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
6232 if test "${ac_cv_header_time+set}" = set; then
6233 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 cat >conftest.
$ac_ext <<_ACEOF
6238 cat confdefs.h
>>conftest.
$ac_ext
6239 cat >>conftest.
$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 #include <sys/types.h>
6242 #include <sys/time.h>
6248 if ((struct tm *) 0)
6254 rm -f conftest.
$ac_objext
6255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6256 (eval $ac_compile) 2>conftest.er1
6258 grep -v '^ *+' conftest.er1
>conftest.err
6260 cat conftest.err
>&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } &&
6263 { ac_try
='test -z "$ac_c_werror_flag"
6264 || test ! -s conftest.err'
6265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); }; } &&
6270 { ac_try
='test -s conftest.$ac_objext'
6271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }; }; then
6276 ac_cv_header_time
=yes
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.
$ac_ext >&5
6281 ac_cv_header_time
=no
6283 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6285 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6286 echo "${ECHO_T}$ac_cv_header_time" >&6
6287 if test $ac_cv_header_time = yes; then
6289 cat >>confdefs.h
<<\_ACEOF
6290 #define TIME_WITH_SYS_TIME 1
6295 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6296 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6297 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6300 cat >conftest.
$ac_ext <<_ACEOF
6303 cat confdefs.h
>>conftest.
$ac_ext
6304 cat >>conftest.
$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 $ac_includes_default
6311 char *p = (char *) sys_siglist;
6318 rm -f conftest.
$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>conftest.er1
6322 grep -v '^ *+' conftest.er1
>conftest.err
6324 cat conftest.err
>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try
='test -z "$ac_c_werror_flag"
6328 || test ! -s conftest.err'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try
='test -s conftest.$ac_objext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 ac_cv_have_decl_sys_siglist
=yes
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.
$ac_ext >&5
6345 ac_cv_have_decl_sys_siglist
=no
6347 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6349 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6350 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
6351 if test $ac_cv_have_decl_sys_siglist = yes; then
6353 cat >>confdefs.h
<<_ACEOF
6354 #define HAVE_DECL_SYS_SIGLIST 1
6359 cat >>confdefs.h
<<_ACEOF
6360 #define HAVE_DECL_SYS_SIGLIST 0
6367 if test $ac_cv_have_decl_sys_siglist != yes; then
6368 # For Tru64, at least:
6369 echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6370 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6
6371 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6374 cat >conftest.
$ac_ext <<_ACEOF
6377 cat confdefs.h
>>conftest.
$ac_ext
6378 cat >>conftest.
$ac_ext <<_ACEOF
6379 /* end confdefs.h. */
6380 $ac_includes_default
6384 #ifndef __sys_siglist
6385 char *p = (char *) __sys_siglist;
6392 rm -f conftest.
$ac_objext
6393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6394 (eval $ac_compile) 2>conftest.er1
6396 grep -v '^ *+' conftest.er1
>conftest.err
6398 cat conftest.err
>&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try
='test -z "$ac_c_werror_flag"
6402 || test ! -s conftest.err'
6403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); }; } &&
6408 { ac_try
='test -s conftest.$ac_objext'
6409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_cv_have_decl___sys_siglist
=yes
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.
$ac_ext >&5
6419 ac_cv_have_decl___sys_siglist
=no
6421 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6423 echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6424 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6
6425 if test $ac_cv_have_decl___sys_siglist = yes; then
6427 cat >>confdefs.h
<<_ACEOF
6428 #define HAVE_DECL___SYS_SIGLIST 1
6433 cat >>confdefs.h
<<_ACEOF
6434 #define HAVE_DECL___SYS_SIGLIST 0
6441 if test $ac_cv_have_decl___sys_siglist = yes; then
6443 cat >>confdefs.h
<<\_ACEOF
6444 #define sys_siglist __sys_siglist
6449 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6450 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6451 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6452 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 cat >conftest.
$ac_ext <<_ACEOF
6457 cat confdefs.h
>>conftest.
$ac_ext
6458 cat >>conftest.
$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6460 #include <sys/types.h>
6461 #include <sys/wait.h>
6463 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6466 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6474 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6479 rm -f conftest.
$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>conftest.er1
6483 grep -v '^ *+' conftest.er1
>conftest.err
6485 cat conftest.err
>&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try
='test -z "$ac_c_werror_flag"
6489 || test ! -s conftest.err'
6490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); }; } &&
6495 { ac_try
='test -s conftest.$ac_objext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_cv_header_sys_wait_h
=yes
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.
$ac_ext >&5
6506 ac_cv_header_sys_wait_h
=no
6508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6510 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6511 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
6512 if test $ac_cv_header_sys_wait_h = yes; then
6514 cat >>confdefs.h
<<\_ACEOF
6515 #define HAVE_SYS_WAIT_H 1
6521 echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6522 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6
6523 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 cat >conftest.
$ac_ext <<_ACEOF
6529 cat confdefs.h
>>conftest.
$ac_ext
6530 cat >>conftest.
$ac_ext <<_ACEOF
6531 /* end confdefs.h. */
6532 #ifdef TIME_WITH_SYS_TIME
6533 #include <sys/time.h>
6536 #ifdef HAVE_SYS_TIME_H
6537 #include <sys/time.h>
6548 static struct utimbuf x; x.actime = x.modtime;
6553 rm -f conftest.
$ac_objext
6554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6555 (eval $ac_compile) 2>conftest.er1
6557 grep -v '^ *+' conftest.er1
>conftest.err
6559 cat conftest.err
>&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } &&
6562 { ac_try
='test -z "$ac_c_werror_flag"
6563 || test ! -s conftest.err'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; } &&
6569 { ac_try
='test -s conftest.$ac_objext'
6570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); }; }; then
6575 emacs_cv_struct_utimbuf
=yes
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.
$ac_ext >&5
6580 emacs_cv_struct_utimbuf
=no
6582 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6584 echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6585 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6
6586 if test $emacs_cv_struct_utimbuf = yes; then
6588 cat >>confdefs.h
<<\_ACEOF
6589 #define HAVE_STRUCT_UTIMBUF 1
6594 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6595 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6596 if test "${ac_cv_type_signal+set}" = set; then
6597 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 cat >conftest.
$ac_ext <<_ACEOF
6602 cat confdefs.h
>>conftest.
$ac_ext
6603 cat >>conftest.
$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 #include <sys/types.h>
6611 extern "C" void (*signal (int, void (*)(int)))(int);
6613 void (*signal ()) ();
6624 rm -f conftest.
$ac_objext
6625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6626 (eval $ac_compile) 2>conftest.er1
6628 grep -v '^ *+' conftest.er1
>conftest.err
6630 cat conftest.err
>&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } &&
6633 { ac_try
='test -z "$ac_c_werror_flag"
6634 || test ! -s conftest.err'
6635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); }; } &&
6640 { ac_try
='test -s conftest.$ac_objext'
6641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); }; }; then
6646 ac_cv_type_signal
=void
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.
$ac_ext >&5
6651 ac_cv_type_signal
=int
6653 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6655 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6656 echo "${ECHO_T}$ac_cv_type_signal" >&6
6658 cat >>confdefs.h
<<_ACEOF
6659 #define RETSIGTYPE $ac_cv_type_signal
6664 echo "$as_me:$LINENO: checking for speed_t" >&5
6665 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6
6666 if test "${emacs_cv_speed_t+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 cat >conftest.
$ac_ext <<_ACEOF
6672 cat confdefs.h
>>conftest.
$ac_ext
6673 cat >>conftest.
$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 #include <termios.h>
6684 rm -f conftest.
$ac_objext
6685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6686 (eval $ac_compile) 2>conftest.er1
6688 grep -v '^ *+' conftest.er1
>conftest.err
6690 cat conftest.err
>&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } &&
6693 { ac_try
='test -z "$ac_c_werror_flag"
6694 || test ! -s conftest.err'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; } &&
6700 { ac_try
='test -s conftest.$ac_objext'
6701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); }; }; then
6706 emacs_cv_speed_t
=yes
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.
$ac_ext >&5
6713 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6715 echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6716 echo "${ECHO_T}$emacs_cv_speed_t" >&6
6717 if test $emacs_cv_speed_t = yes; then
6719 cat >>confdefs.h
<<\_ACEOF
6720 #define HAVE_SPEED_T 1
6725 echo "$as_me:$LINENO: checking for struct timeval" >&5
6726 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6
6727 if test "${emacs_cv_struct_timeval+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 cat >conftest.
$ac_ext <<_ACEOF
6733 cat confdefs.h
>>conftest.
$ac_ext
6734 cat >>conftest.
$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6736 #ifdef TIME_WITH_SYS_TIME
6737 #include <sys/time.h>
6740 #ifdef HAVE_SYS_TIME_H
6741 #include <sys/time.h>
6749 static struct timeval x; x.tv_sec = x.tv_usec;
6754 rm -f conftest.
$ac_objext
6755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6756 (eval $ac_compile) 2>conftest.er1
6758 grep -v '^ *+' conftest.er1
>conftest.err
6760 cat conftest.err
>&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); } &&
6763 { ac_try
='test -z "$ac_c_werror_flag"
6764 || test ! -s conftest.err'
6765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; } &&
6770 { ac_try
='test -s conftest.$ac_objext'
6771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6775 (exit $ac_status); }; }; then
6776 emacs_cv_struct_timeval
=yes
6778 echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.
$ac_ext >&5
6781 emacs_cv_struct_timeval
=no
6783 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6785 echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6786 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6
6787 HAVE_TIMEVAL
=$emacs_cv_struct_timeval
6788 if test $emacs_cv_struct_timeval = yes; then
6790 cat >>confdefs.h
<<\_ACEOF
6791 #define HAVE_TIMEVAL 1
6796 echo "$as_me:$LINENO: checking for struct exception" >&5
6797 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6
6798 if test "${emacs_cv_struct_exception+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 cat >conftest.
$ac_ext <<_ACEOF
6804 cat confdefs.h
>>conftest.
$ac_ext
6805 cat >>conftest.
$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6811 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6816 rm -f conftest.
$ac_objext
6817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6818 (eval $ac_compile) 2>conftest.er1
6820 grep -v '^ *+' conftest.er1
>conftest.err
6822 cat conftest.err
>&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } &&
6825 { ac_try
='test -z "$ac_c_werror_flag"
6826 || test ! -s conftest.err'
6827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); }; } &&
6832 { ac_try
='test -s conftest.$ac_objext'
6833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; }; then
6838 emacs_cv_struct_exception
=yes
6840 echo "$as_me: failed program was:" >&5
6841 sed 's/^/| /' conftest.
$ac_ext >&5
6843 emacs_cv_struct_exception
=no
6845 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6847 echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6848 echo "${ECHO_T}$emacs_cv_struct_exception" >&6
6849 HAVE_EXCEPTION
=$emacs_cv_struct_exception
6850 if test $emacs_cv_struct_exception != yes; then
6852 cat >>confdefs.h
<<\_ACEOF
6853 #define NO_MATHERR 1
6859 for ac_header
in sys
/socket.h
6861 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6863 echo "$as_me:$LINENO: checking for $ac_header" >&5
6864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6865 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6869 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6871 # Is the header compilable?
6872 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6874 cat >conftest.
$ac_ext <<_ACEOF
6877 cat confdefs.h
>>conftest.
$ac_ext
6878 cat >>conftest.
$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6880 $ac_includes_default
6881 #include <$ac_header>
6883 rm -f conftest.
$ac_objext
6884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6885 (eval $ac_compile) 2>conftest.er1
6887 grep -v '^ *+' conftest.er1
>conftest.err
6889 cat conftest.err
>&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } &&
6892 { ac_try
='test -z "$ac_c_werror_flag"
6893 || test ! -s conftest.err'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; } &&
6899 { ac_try
='test -s conftest.$ac_objext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 ac_header_compiler
=yes
6907 echo "$as_me: failed program was:" >&5
6908 sed 's/^/| /' conftest.
$ac_ext >&5
6910 ac_header_compiler
=no
6912 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
6913 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6914 echo "${ECHO_T}$ac_header_compiler" >&6
6916 # Is the header present?
6917 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6919 cat >conftest.
$ac_ext <<_ACEOF
6922 cat confdefs.h
>>conftest.
$ac_ext
6923 cat >>conftest.
$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6925 #include <$ac_header>
6927 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6928 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
6930 grep -v '^ *+' conftest.er1
>conftest.err
6932 cat conftest.err
>&5
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } >/dev
/null
; then
6935 if test -s conftest.err
; then
6936 ac_cpp_err
=$ac_c_preproc_warn_flag
6937 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
6944 if test -z "$ac_cpp_err"; then
6945 ac_header_preproc
=yes
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.
$ac_ext >&5
6950 ac_header_preproc
=no
6952 rm -f conftest.err conftest.
$ac_ext
6953 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6954 echo "${ECHO_T}$ac_header_preproc" >&6
6956 # So? What about this header?
6957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6960 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6963 ac_header_preproc
=yes
6966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6967 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6969 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6971 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6973 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6977 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6980 ## ------------------------------------------ ##
6981 ## Report this to the AC_PACKAGE_NAME lists. ##
6982 ## ------------------------------------------ ##
6985 sed "s/^/$as_me: WARNING: /" >&2
6988 echo "$as_me:$LINENO: checking for $ac_header" >&5
6989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6990 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6993 eval "$as_ac_Header=\$ac_header_preproc"
6995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7000 cat >>confdefs.h
<<_ACEOF
7001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7009 for ac_header
in net
/if.h
7011 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7012 echo "$as_me:$LINENO: checking for $ac_header" >&5
7013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7017 cat >conftest.
$ac_ext <<_ACEOF
7020 cat confdefs.h
>>conftest.
$ac_ext
7021 cat >>conftest.
$ac_ext <<_ACEOF
7022 /* end confdefs.h. */
7023 $ac_includes_default
7024 #if HAVE_SYS_SOCKET_H
7025 #include <sys/socket.h>
7028 #include <$ac_header>
7030 rm -f conftest.
$ac_objext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7032 (eval $ac_compile) 2>conftest.er1
7034 grep -v '^ *+' conftest.er1
>conftest.err
7036 cat conftest.err
>&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } &&
7039 { ac_try
='test -z "$ac_c_werror_flag"
7040 || test ! -s conftest.err'
7041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); }; } &&
7046 { ac_try
='test -s conftest.$ac_objext'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; }; then
7052 eval "$as_ac_Header=yes"
7054 echo "$as_me: failed program was:" >&5
7055 sed 's/^/| /' conftest.
$ac_ext >&5
7057 eval "$as_ac_Header=no"
7059 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7064 cat >>confdefs.h
<<_ACEOF
7065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7073 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7074 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
7075 if test "${ac_cv_struct_tm+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 cat >conftest.
$ac_ext <<_ACEOF
7081 cat confdefs.h
>>conftest.
$ac_ext
7082 cat >>conftest.
$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 #include <sys/types.h>
7090 struct tm *tp; tp->tm_sec;
7095 rm -f conftest.
$ac_objext
7096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7097 (eval $ac_compile) 2>conftest.er1
7099 grep -v '^ *+' conftest.er1
>conftest.err
7101 cat conftest.err
>&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } &&
7104 { ac_try
='test -z "$ac_c_werror_flag"
7105 || test ! -s conftest.err'
7106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110 (exit $ac_status); }; } &&
7111 { ac_try
='test -s conftest.$ac_objext'
7112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); }; }; then
7117 ac_cv_struct_tm
=time.h
7119 echo "$as_me: failed program was:" >&5
7120 sed 's/^/| /' conftest.
$ac_ext >&5
7122 ac_cv_struct_tm
=sys
/time.h
7124 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7126 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7127 echo "${ECHO_T}$ac_cv_struct_tm" >&6
7128 if test $ac_cv_struct_tm = sys
/time.h
; then
7130 cat >>confdefs.h
<<\_ACEOF
7131 #define TM_IN_SYS_TIME 1
7136 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7137 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
7138 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 cat >conftest.
$ac_ext <<_ACEOF
7144 cat confdefs.h
>>conftest.
$ac_ext
7145 cat >>conftest.
$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7147 #include <sys/types.h>
7148 #include <$ac_cv_struct_tm>
7154 static struct tm ac_aggr;
7155 if (ac_aggr.tm_zone)
7161 rm -f conftest.
$ac_objext
7162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7163 (eval $ac_compile) 2>conftest.er1
7165 grep -v '^ *+' conftest.er1
>conftest.err
7167 cat conftest.err
>&5
7168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7169 (exit $ac_status); } &&
7170 { ac_try
='test -z "$ac_c_werror_flag"
7171 || test ! -s conftest.err'
7172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); }; } &&
7177 { ac_try
='test -s conftest.$ac_objext'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7183 ac_cv_member_struct_tm_tm_zone
=yes
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.
$ac_ext >&5
7188 cat >conftest.
$ac_ext <<_ACEOF
7191 cat confdefs.h
>>conftest.
$ac_ext
7192 cat >>conftest.
$ac_ext <<_ACEOF
7193 /* end confdefs.h. */
7194 #include <sys/types.h>
7195 #include <$ac_cv_struct_tm>
7201 static struct tm ac_aggr;
7202 if (sizeof ac_aggr.tm_zone)
7208 rm -f conftest.
$ac_objext
7209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7210 (eval $ac_compile) 2>conftest.er1
7212 grep -v '^ *+' conftest.er1
>conftest.err
7214 cat conftest.err
>&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } &&
7217 { ac_try
='test -z "$ac_c_werror_flag"
7218 || test ! -s conftest.err'
7219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); }; } &&
7224 { ac_try
='test -s conftest.$ac_objext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 ac_cv_member_struct_tm_tm_zone
=yes
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.
$ac_ext >&5
7235 ac_cv_member_struct_tm_tm_zone
=no
7237 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7239 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7241 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7242 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
7243 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7245 cat >>confdefs.h
<<_ACEOF
7246 #define HAVE_STRUCT_TM_TM_ZONE 1
7252 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7254 cat >>confdefs.h
<<\_ACEOF
7255 #define HAVE_TM_ZONE 1
7259 echo "$as_me:$LINENO: checking for tzname" >&5
7260 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
7261 if test "${ac_cv_var_tzname+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 cat >conftest.
$ac_ext <<_ACEOF
7267 cat confdefs.h
>>conftest.
$ac_ext
7268 cat >>conftest.
$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7271 #ifndef tzname /* For SGI. */
7272 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7283 rm -f conftest.
$ac_objext conftest
$ac_exeext
7284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7285 (eval $ac_link) 2>conftest.er1
7287 grep -v '^ *+' conftest.er1
>conftest.err
7289 cat conftest.err
>&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
7292 { ac_try
='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try
='test -s conftest$ac_exeext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_cv_var_tzname
=yes
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.
$ac_ext >&5
7312 rm -f conftest.err conftest.
$ac_objext \
7313 conftest
$ac_exeext conftest.
$ac_ext
7315 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7316 echo "${ECHO_T}$ac_cv_var_tzname" >&6
7317 if test $ac_cv_var_tzname = yes; then
7319 cat >>confdefs.h
<<\_ACEOF
7320 #define HAVE_TZNAME 1
7326 echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7327 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6
7328 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 cat >conftest.
$ac_ext <<_ACEOF
7334 cat confdefs.h
>>conftest.
$ac_ext
7335 cat >>conftest.
$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7342 static struct tm ac_aggr;
7343 if (ac_aggr.tm_gmtoff)
7349 rm -f conftest.
$ac_objext
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>conftest.er1
7353 grep -v '^ *+' conftest.er1
>conftest.err
7355 cat conftest.err
>&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } &&
7358 { ac_try
='test -z "$ac_c_werror_flag"
7359 || test ! -s conftest.err'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; } &&
7365 { ac_try
='test -s conftest.$ac_objext'
7366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_cv_member_struct_tm_tm_gmtoff
=yes
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.
$ac_ext >&5
7376 cat >conftest.
$ac_ext <<_ACEOF
7379 cat confdefs.h
>>conftest.
$ac_ext
7380 cat >>conftest.
$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7387 static struct tm ac_aggr;
7388 if (sizeof ac_aggr.tm_gmtoff)
7394 rm -f conftest.
$ac_objext
7395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7396 (eval $ac_compile) 2>conftest.er1
7398 grep -v '^ *+' conftest.er1
>conftest.err
7400 cat conftest.err
>&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } &&
7403 { ac_try
='test -z "$ac_c_werror_flag"
7404 || test ! -s conftest.err'
7405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); }; } &&
7410 { ac_try
='test -s conftest.$ac_objext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7416 ac_cv_member_struct_tm_tm_gmtoff
=yes
7418 echo "$as_me: failed program was:" >&5
7419 sed 's/^/| /' conftest.
$ac_ext >&5
7421 ac_cv_member_struct_tm_tm_gmtoff
=no
7423 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7425 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7427 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7428 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6
7429 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7431 cat >>confdefs.h
<<\_ACEOF
7432 #define HAVE_TM_GMTOFF 1
7437 echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7438 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6
7439 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 cat >conftest.
$ac_ext <<_ACEOF
7445 cat confdefs.h
>>conftest.
$ac_ext
7446 cat >>conftest.
$ac_ext <<_ACEOF
7447 /* end confdefs.h. */
7448 $ac_includes_default
7449 #if HAVE_SYS_SOCKET_H
7450 #include <sys/socket.h>
7459 static struct ifreq ac_aggr;
7460 if (ac_aggr.ifr_flags)
7466 rm -f conftest.
$ac_objext
7467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7468 (eval $ac_compile) 2>conftest.er1
7470 grep -v '^ *+' conftest.er1
>conftest.err
7472 cat conftest.err
>&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } &&
7475 { ac_try
='test -z "$ac_c_werror_flag"
7476 || test ! -s conftest.err'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; } &&
7482 { ac_try
='test -s conftest.$ac_objext'
7483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); }; }; then
7488 ac_cv_member_struct_ifreq_ifr_flags
=yes
7490 echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.
$ac_ext >&5
7493 cat >conftest.
$ac_ext <<_ACEOF
7496 cat confdefs.h
>>conftest.
$ac_ext
7497 cat >>conftest.
$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7499 $ac_includes_default
7500 #if HAVE_SYS_SOCKET_H
7501 #include <sys/socket.h>
7510 static struct ifreq ac_aggr;
7511 if (sizeof ac_aggr.ifr_flags)
7517 rm -f conftest.
$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519 (eval $ac_compile) 2>conftest.er1
7521 grep -v '^ *+' conftest.er1
>conftest.err
7523 cat conftest.err
>&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try
='test -z "$ac_c_werror_flag"
7527 || test ! -s conftest.err'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; } &&
7533 { ac_try
='test -s conftest.$ac_objext'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7539 ac_cv_member_struct_ifreq_ifr_flags
=yes
7541 echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.
$ac_ext >&5
7544 ac_cv_member_struct_ifreq_ifr_flags
=no
7546 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7548 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7550 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7551 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6
7552 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7554 cat >>confdefs.h
<<_ACEOF
7555 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7560 echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
7561 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6
7562 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7565 cat >conftest.
$ac_ext <<_ACEOF
7568 cat confdefs.h
>>conftest.
$ac_ext
7569 cat >>conftest.
$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 $ac_includes_default
7572 #if HAVE_SYS_SOCKET_H
7573 #include <sys/socket.h>
7582 static struct ifreq ac_aggr;
7583 if (ac_aggr.ifr_hwaddr)
7589 rm -f conftest.
$ac_objext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591 (eval $ac_compile) 2>conftest.er1
7593 grep -v '^ *+' conftest.er1
>conftest.err
7595 cat conftest.err
>&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try
='test -z "$ac_c_werror_flag"
7599 || test ! -s conftest.err'
7600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604 (exit $ac_status); }; } &&
7605 { ac_try
='test -s conftest.$ac_objext'
7606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; }; then
7611 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7613 echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.
$ac_ext >&5
7616 cat >conftest.
$ac_ext <<_ACEOF
7619 cat confdefs.h
>>conftest.
$ac_ext
7620 cat >>conftest.
$ac_ext <<_ACEOF
7621 /* end confdefs.h. */
7622 $ac_includes_default
7623 #if HAVE_SYS_SOCKET_H
7624 #include <sys/socket.h>
7633 static struct ifreq ac_aggr;
7634 if (sizeof ac_aggr.ifr_hwaddr)
7640 rm -f conftest.
$ac_objext
7641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7642 (eval $ac_compile) 2>conftest.er1
7644 grep -v '^ *+' conftest.er1
>conftest.err
7646 cat conftest.err
>&5
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); } &&
7649 { ac_try
='test -z "$ac_c_werror_flag"
7650 || test ! -s conftest.err'
7651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); }; } &&
7656 { ac_try
='test -s conftest.$ac_objext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
7662 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.
$ac_ext >&5
7667 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
7669 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7671 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7673 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
7674 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6
7675 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
7677 cat >>confdefs.h
<<_ACEOF
7678 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7683 echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
7684 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6
7685 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 cat >conftest.
$ac_ext <<_ACEOF
7691 cat confdefs.h
>>conftest.
$ac_ext
7692 cat >>conftest.
$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694 $ac_includes_default
7695 #if HAVE_SYS_SOCKET_H
7696 #include <sys/socket.h>
7705 static struct ifreq ac_aggr;
7706 if (ac_aggr.ifr_netmask)
7712 rm -f conftest.
$ac_objext
7713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7714 (eval $ac_compile) 2>conftest.er1
7716 grep -v '^ *+' conftest.er1
>conftest.err
7718 cat conftest.err
>&5
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } &&
7721 { ac_try
='test -z "$ac_c_werror_flag"
7722 || test ! -s conftest.err'
7723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); }; } &&
7728 { ac_try
='test -s conftest.$ac_objext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7734 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.
$ac_ext >&5
7739 cat >conftest.
$ac_ext <<_ACEOF
7742 cat confdefs.h
>>conftest.
$ac_ext
7743 cat >>conftest.
$ac_ext <<_ACEOF
7744 /* end confdefs.h. */
7745 $ac_includes_default
7746 #if HAVE_SYS_SOCKET_H
7747 #include <sys/socket.h>
7756 static struct ifreq ac_aggr;
7757 if (sizeof ac_aggr.ifr_netmask)
7763 rm -f conftest.
$ac_objext
7764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7765 (eval $ac_compile) 2>conftest.er1
7767 grep -v '^ *+' conftest.er1
>conftest.err
7769 cat conftest.err
>&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try
='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try
='test -s conftest.$ac_objext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_cv_member_struct_ifreq_ifr_netmask
=yes
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.
$ac_ext >&5
7790 ac_cv_member_struct_ifreq_ifr_netmask
=no
7792 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7794 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7796 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
7797 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6
7798 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
7800 cat >>confdefs.h
<<_ACEOF
7801 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7806 echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
7807 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6
7808 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 cat >conftest.
$ac_ext <<_ACEOF
7814 cat confdefs.h
>>conftest.
$ac_ext
7815 cat >>conftest.
$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 $ac_includes_default
7818 #if HAVE_SYS_SOCKET_H
7819 #include <sys/socket.h>
7828 static struct ifreq ac_aggr;
7829 if (ac_aggr.ifr_broadaddr)
7835 rm -f conftest.
$ac_objext
7836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7837 (eval $ac_compile) 2>conftest.er1
7839 grep -v '^ *+' conftest.er1
>conftest.err
7841 cat conftest.err
>&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } &&
7844 { ac_try
='test -z "$ac_c_werror_flag"
7845 || test ! -s conftest.err'
7846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); }; } &&
7851 { ac_try
='test -s conftest.$ac_objext'
7852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); }; }; then
7857 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7859 echo "$as_me: failed program was:" >&5
7860 sed 's/^/| /' conftest.
$ac_ext >&5
7862 cat >conftest.
$ac_ext <<_ACEOF
7865 cat confdefs.h
>>conftest.
$ac_ext
7866 cat >>conftest.
$ac_ext <<_ACEOF
7867 /* end confdefs.h. */
7868 $ac_includes_default
7869 #if HAVE_SYS_SOCKET_H
7870 #include <sys/socket.h>
7879 static struct ifreq ac_aggr;
7880 if (sizeof ac_aggr.ifr_broadaddr)
7886 rm -f conftest.
$ac_objext
7887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888 (eval $ac_compile) 2>conftest.er1
7890 grep -v '^ *+' conftest.er1
>conftest.err
7892 cat conftest.err
>&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
7895 { ac_try
='test -z "$ac_c_werror_flag"
7896 || test ! -s conftest.err'
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try
='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.
$ac_ext >&5
7913 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
7915 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7917 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7919 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
7920 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6
7921 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
7923 cat >>confdefs.h
<<_ACEOF
7924 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7929 echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
7930 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6
7931 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 cat >conftest.
$ac_ext <<_ACEOF
7937 cat confdefs.h
>>conftest.
$ac_ext
7938 cat >>conftest.
$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7940 $ac_includes_default
7941 #if HAVE_SYS_SOCKET_H
7942 #include <sys/socket.h>
7951 static struct ifreq ac_aggr;
7952 if (ac_aggr.ifr_addr)
7958 rm -f conftest.
$ac_objext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7960 (eval $ac_compile) 2>conftest.er1
7962 grep -v '^ *+' conftest.er1
>conftest.err
7964 cat conftest.err
>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try
='test -z "$ac_c_werror_flag"
7968 || test ! -s conftest.err'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try
='test -s conftest.$ac_objext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_member_struct_ifreq_ifr_addr
=yes
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.
$ac_ext >&5
7985 cat >conftest.
$ac_ext <<_ACEOF
7988 cat confdefs.h
>>conftest.
$ac_ext
7989 cat >>conftest.
$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 $ac_includes_default
7992 #if HAVE_SYS_SOCKET_H
7993 #include <sys/socket.h>
8002 static struct ifreq ac_aggr;
8003 if (sizeof ac_aggr.ifr_addr)
8009 rm -f conftest.
$ac_objext
8010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8011 (eval $ac_compile) 2>conftest.er1
8013 grep -v '^ *+' conftest.er1
>conftest.err
8015 cat conftest.err
>&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } &&
8018 { ac_try
='test -z "$ac_c_werror_flag"
8019 || test ! -s conftest.err'
8020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); }; } &&
8025 { ac_try
='test -s conftest.$ac_objext'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8031 ac_cv_member_struct_ifreq_ifr_addr
=yes
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.
$ac_ext >&5
8036 ac_cv_member_struct_ifreq_ifr_addr
=no
8038 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8040 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8042 echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8043 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6
8044 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8046 cat >>confdefs.h
<<_ACEOF
8047 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8055 echo "$as_me:$LINENO: checking for function prototypes" >&5
8056 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
8057 if test "$ac_cv_prog_cc_stdc" != no
; then
8058 echo "$as_me:$LINENO: result: yes" >&5
8059 echo "${ECHO_T}yes" >&6
8061 cat >>confdefs.h
<<\_ACEOF
8062 #define PROTOTYPES 1
8066 cat >>confdefs.h
<<\_ACEOF
8067 #define __PROTOTYPES 1
8071 echo "$as_me:$LINENO: result: no" >&5
8072 echo "${ECHO_T}no" >&6
8075 echo "$as_me:$LINENO: checking for working volatile" >&5
8076 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
8077 if test "${ac_cv_c_volatile+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 cat >conftest.
$ac_ext <<_ACEOF
8083 cat confdefs.h
>>conftest.
$ac_ext
8084 cat >>conftest.
$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8097 rm -f conftest.
$ac_objext
8098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8099 (eval $ac_compile) 2>conftest.er1
8101 grep -v '^ *+' conftest.er1
>conftest.err
8103 cat conftest.err
>&5
8104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105 (exit $ac_status); } &&
8106 { ac_try
='test -z "$ac_c_werror_flag"
8107 || test ! -s conftest.err'
8108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); }; } &&
8113 { ac_try
='test -s conftest.$ac_objext'
8114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8118 (exit $ac_status); }; }; then
8119 ac_cv_c_volatile
=yes
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.
$ac_ext >&5
8126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8128 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8129 echo "${ECHO_T}$ac_cv_c_volatile" >&6
8130 if test $ac_cv_c_volatile = no
; then
8132 cat >>confdefs.h
<<\_ACEOF
8138 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8139 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8140 if test "${ac_cv_c_const+set}" = set; then
8141 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 cat >conftest.
$ac_ext <<_ACEOF
8146 cat confdefs.h
>>conftest.
$ac_ext
8147 cat >>conftest.
$ac_ext <<_ACEOF
8148 /* end confdefs.h. */
8153 /* FIXME: Include the comments suggested by Paul. */
8155 /* Ultrix mips cc rejects this. */
8156 typedef int charset[2];
8158 /* SunOS 4.1.1 cc rejects this. */
8159 char const *const *ccp;
8161 /* NEC SVR4.0.2 mips cc rejects this. */
8162 struct point {int x, y;};
8163 static struct point const zero = {0,0};
8164 /* AIX XL C 1.02.0.0 rejects this.
8165 It does not let you subtract one const X* pointer from another in
8166 an arm of an if-expression whose if-part is not a constant
8168 const char *g = "string";
8169 ccp = &g + (g ? g-g : 0);
8170 /* HPUX 7.0 cc rejects these. */
8173 ccp = (char const *const *) p;
8174 { /* SCO 3.2v4 cc rejects this. */
8176 char const *s = 0 ? (char *) 0 : (char const *) 0;
8180 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8182 const int *foo = &x[0];
8185 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8186 typedef const int *iptr;
8190 { /* AIX XL C 1.02.0.0 rejects this saying
8191 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8192 struct s { int j; const int *ap[3]; };
8193 struct s *b; b->j = 5;
8195 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8204 rm -f conftest.
$ac_objext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8206 (eval $ac_compile) 2>conftest.er1
8208 grep -v '^ *+' conftest.er1
>conftest.err
8210 cat conftest.err
>&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try
='test -z "$ac_c_werror_flag"
8214 || test ! -s conftest.err'
8215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8219 (exit $ac_status); }; } &&
8220 { ac_try
='test -s conftest.$ac_objext'
8221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.
$ac_ext >&5
8233 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8235 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8236 echo "${ECHO_T}$ac_cv_c_const" >&6
8237 if test $ac_cv_c_const = no
; then
8239 cat >>confdefs.h
<<\_ACEOF
8245 echo "$as_me:$LINENO: checking for void * support" >&5
8246 echo $ECHO_N "checking for void * support... $ECHO_C" >&6
8247 if test "${emacs_cv_void_star+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 cat >conftest.
$ac_ext <<_ACEOF
8253 cat confdefs.h
>>conftest.
$ac_ext
8254 cat >>conftest.
$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8265 rm -f conftest.
$ac_objext
8266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8267 (eval $ac_compile) 2>conftest.er1
8269 grep -v '^ *+' conftest.er1
>conftest.err
8271 cat conftest.err
>&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } &&
8274 { ac_try
='test -z "$ac_c_werror_flag"
8275 || test ! -s conftest.err'
8276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; } &&
8281 { ac_try
='test -s conftest.$ac_objext'
8282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); }; }; then
8287 emacs_cv_void_star
=yes
8289 echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.
$ac_ext >&5
8292 emacs_cv_void_star
=no
8294 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8296 echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8297 echo "${ECHO_T}$emacs_cv_void_star" >&6
8298 if test $emacs_cv_void_star = yes; then
8299 cat >>confdefs.h
<<\_ACEOF
8300 #define POINTER_TYPE void
8304 cat >>confdefs.h
<<\_ACEOF
8305 #define POINTER_TYPE char
8314 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8315 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
8316 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
8317 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
8318 echo $ECHO_N "(cached) $ECHO_C" >&6
8320 cat >conftest.
make <<\_ACEOF
8322 @
echo 'ac_maketemp="$(MAKE)"'
8324 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8325 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
8326 if test -n "$ac_maketemp"; then
8327 eval ac_cv_prog_make_
${ac_make}_set
=yes
8329 eval ac_cv_prog_make_
${ac_make}_set
=no
8333 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
8334 echo "$as_me:$LINENO: result: yes" >&5
8335 echo "${ECHO_T}yes" >&6
8338 echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6
8340 SET_MAKE
="MAKE=${MAKE-make}"
8344 echo "$as_me:$LINENO: checking for long file names" >&5
8345 echo $ECHO_N "checking for long file names... $ECHO_C" >&6
8346 if test "${ac_cv_sys_long_file_names+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 ac_cv_sys_long_file_names
=yes
8350 # Test for long file names in all the places we know might matter:
8351 # . the current directory, where building will happen
8352 # $prefix/lib where we will be installing things
8353 # $exec_prefix/lib likewise
8354 # eval it to expand exec_prefix.
8355 # $TMPDIR if set, where it might want to write temporary files
8356 # if $TMPDIR is not set:
8357 # /tmp where it might want to write temporary files
8360 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
8363 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
8365 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
8366 test -d $ac_dir ||
continue
8367 test -w $ac_dir ||
continue # It is less confusing to not echo anything here.
8368 ac_xdir
=$ac_dir/cf$$
8369 (umask 077 && mkdir
$ac_xdir 2>/dev
/null
) ||
continue
8370 ac_tf1
=$ac_xdir/conftest9012345
8371 ac_tf2
=$ac_xdir/conftest9012346
8372 (echo 1 >$ac_tf1) 2>/dev
/null
8373 (echo 2 >$ac_tf2) 2>/dev
/null
8374 ac_val
=`cat $ac_tf1 2>/dev/null`
8375 if test ! -f $ac_tf1 ||
test "$ac_val" != 1; then
8376 ac_cv_sys_long_file_names
=no
8377 rm -rf $ac_xdir 2>/dev
/null
8380 rm -rf $ac_xdir 2>/dev
/null
8383 echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8384 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6
8385 if test $ac_cv_sys_long_file_names = yes; then
8387 cat >>confdefs.h
<<\_ACEOF
8388 #define HAVE_LONG_FILE_NAMES 1
8394 #### Choose a window system.
8396 echo "$as_me:$LINENO: checking for X" >&5
8397 echo $ECHO_N "checking for X... $ECHO_C" >&6
8400 # Check whether --with-x or --without-x was given.
8401 if test "${with_x+set}" = set; then
8405 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8406 if test "x$with_x" = xno
; then
8407 # The user explicitly disabled X.
8410 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
8411 # Both variables are already set.
8414 if test "${ac_cv_have_x+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 # One or both of the vars are not set, and there is no cached value.
8418 ac_x_includes
=no ac_x_libraries
=no
8420 if mkdir conftest.dir
; then
8422 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8423 cat >Imakefile
<<'_ACEOF'
8425 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8427 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
8428 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8429 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8430 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8431 for ac_extension
in a so sl
; do
8432 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
8433 test -f $ac_im_libdir/libX11.
$ac_extension; then
8434 ac_im_usrlibdir
=$ac_im_libdir; break
8437 # Screen out bogus values from the imake configuration. They are
8438 # bogus both because they are the default anyway, and because
8439 # using them would break gcc on systems where it needs fixed includes.
8440 case $ac_im_incroot in
8442 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
8444 case $ac_im_usrlibdir in
8446 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
8453 # Standard set of common directories for X headers.
8454 # Check X11 before X11Rn because it is often a symlink to the current release.
8466 /usr/local/X11/include
8467 /usr/local/X11R6/include
8468 /usr/local/X11R5/include
8469 /usr/local/X11R4/include
8471 /usr/local/include/X11
8472 /usr/local/include/X11R6
8473 /usr/local/include/X11R5
8474 /usr/local/include/X11R4
8478 /usr/XFree86/include/X11
8482 /usr/unsupported/include
8484 /usr/local/x11r5/include
8485 /usr/lpp/Xamples/include
8487 /usr/openwin/include
8488 /usr/openwin/share/include'
8490 if test "$ac_x_includes" = no
; then
8491 # Guess where to find include files, by looking for Intrinsic.h.
8492 # First, try using that file with no special directory specified.
8493 cat >conftest.
$ac_ext <<_ACEOF
8496 cat confdefs.h
>>conftest.
$ac_ext
8497 cat >>conftest.
$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 #include <X11/Intrinsic.h>
8501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8502 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8504 grep -v '^ *+' conftest.er1
>conftest.err
8506 cat conftest.err
>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); } >/dev
/null
; then
8509 if test -s conftest.err
; then
8510 ac_cpp_err
=$ac_c_preproc_warn_flag
8511 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8518 if test -z "$ac_cpp_err"; then
8519 # We can compile using X headers with no special include directory.
8522 echo "$as_me: failed program was:" >&5
8523 sed 's/^/| /' conftest.
$ac_ext >&5
8525 for ac_dir
in $ac_x_header_dirs; do
8526 if test -r "$ac_dir/X11/Intrinsic.h"; then
8527 ac_x_includes
=$ac_dir
8532 rm -f conftest.err conftest.
$ac_ext
8533 fi # $ac_x_includes = no
8535 if test "$ac_x_libraries" = no
; then
8536 # Check for the libraries.
8537 # See if we find them without any special options.
8538 # Don't add to $LIBS permanently.
8541 cat >conftest.
$ac_ext <<_ACEOF
8544 cat confdefs.h
>>conftest.
$ac_ext
8545 cat >>conftest.
$ac_ext <<_ACEOF
8546 /* end confdefs.h. */
8547 #include <X11/Intrinsic.h>
8556 rm -f conftest.
$ac_objext conftest
$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558 (eval $ac_link) 2>conftest.er1
8560 grep -v '^ *+' conftest.er1
>conftest.err
8562 cat conftest.err
>&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 (exit $ac_status); } &&
8565 { ac_try
='test -z "$ac_c_werror_flag"
8566 || test ! -s conftest.err'
8567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571 (exit $ac_status); }; } &&
8572 { ac_try
='test -s conftest$ac_exeext'
8573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); }; }; then
8579 # We can link X programs with no special library path.
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.
$ac_ext >&5
8586 for ac_dir
in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8588 # Don't even attempt the hair of trying to link an X program!
8589 for ac_extension
in a so sl
; do
8590 if test -r $ac_dir/libXt.
$ac_extension; then
8591 ac_x_libraries
=$ac_dir
8597 rm -f conftest.err conftest.
$ac_objext \
8598 conftest
$ac_exeext conftest.
$ac_ext
8599 fi # $ac_x_libraries = no
8601 if test "$ac_x_includes" = no ||
test "$ac_x_libraries" = no
; then
8602 # Didn't find X anywhere. Cache the known absence of X.
8603 ac_cv_have_x
="have_x=no"
8605 # Record where we found X for the cache.
8606 ac_cv_have_x
="have_x=yes \
8607 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8612 eval "$ac_cv_have_x"
8615 if test "$have_x" != yes; then
8616 echo "$as_me:$LINENO: result: $have_x" >&5
8617 echo "${ECHO_T}$have_x" >&6
8620 # If each of the values was on the command line, it overrides each guess.
8621 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
8622 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
8623 # Update the cache value to reflect the command line values.
8624 ac_cv_have_x
="have_x=yes \
8625 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8626 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8627 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8630 if test "$no_x" = yes; then
8636 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
8637 LD_SWITCH_X_SITE
=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8638 LD_SWITCH_X_SITE_AUX
=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8639 x_default_search_path
=""
8640 for x_library
in `echo ${x_libraries} | sed -e "s/:/ /g"`; do
8642 ${x_library}/X11/%L/%T/%N%C%S:\
8643 ${x_library}/X11/%l/%T/%N%C%S:\
8644 ${x_library}/X11/%T/%N%C%S:\
8645 ${x_library}/X11/%L/%T/%N%S:\
8646 ${x_library}/X11/%l/%T/%N%S:\
8647 ${x_library}/X11/%T/%N%S"
8648 if test x
"${x_default_search_path}" = x
; then
8649 x_default_search_path
=${x_search_path}
8651 x_default_search_path
="${x_search_path}:${x_default_search_path}"
8655 if test "${x_includes}" != NONE
&& test -n "${x_includes}"; then
8656 C_SWITCH_X_SITE
=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8659 if test x
"${x_includes}" = x
; then
8660 bitmapdir
=/usr
/include
/X11
/bitmaps
8662 # accumulate include directories that have X11 bitmap subdirectories
8664 for bmd
in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8665 if test -d "${bmd}/X11/bitmaps"; then
8666 bmd_acc
="${bmd_acc}:${bmd}/X11/bitmaps"
8668 if test -d "${bmd}/bitmaps"; then
8669 bmd_acc
="${bmd_acc}:${bmd}/bitmaps"
8672 if test ${bmd_acc} != "dummyval"; then
8673 bitmapdir
=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8678 if test "${with_carbon}" != no
; then
8679 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8680 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8681 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8682 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8685 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8686 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8688 # Is the header compilable?
8689 echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
8690 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6
8691 cat >conftest.
$ac_ext <<_ACEOF
8694 cat confdefs.h
>>conftest.
$ac_ext
8695 cat >>conftest.
$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 $ac_includes_default
8698 #include <Carbon/Carbon.h>
8700 rm -f conftest.
$ac_objext
8701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702 (eval $ac_compile) 2>conftest.er1
8704 grep -v '^ *+' conftest.er1
>conftest.err
8706 cat conftest.err
>&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try
='test -z "$ac_c_werror_flag"
8710 || test ! -s conftest.err'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; } &&
8716 { ac_try
='test -s conftest.$ac_objext'
8717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); }; }; then
8722 ac_header_compiler
=yes
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.
$ac_ext >&5
8727 ac_header_compiler
=no
8729 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8731 echo "${ECHO_T}$ac_header_compiler" >&6
8733 # Is the header present?
8734 echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
8735 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6
8736 cat >conftest.
$ac_ext <<_ACEOF
8739 cat confdefs.h
>>conftest.
$ac_ext
8740 cat >>conftest.
$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 #include <Carbon/Carbon.h>
8744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8745 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8747 grep -v '^ *+' conftest.er1
>conftest.err
8749 cat conftest.err
>&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } >/dev
/null
; then
8752 if test -s conftest.err
; then
8753 ac_cpp_err
=$ac_c_preproc_warn_flag
8754 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
8761 if test -z "$ac_cpp_err"; then
8762 ac_header_preproc
=yes
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.
$ac_ext >&5
8767 ac_header_preproc
=no
8769 rm -f conftest.err conftest.
$ac_ext
8770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8771 echo "${ECHO_T}$ac_header_preproc" >&6
8773 # So? What about this header?
8774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8776 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
8777 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
8779 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
8780 ac_header_preproc
=yes
8783 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
8784 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
8785 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
8786 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
8787 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
8788 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
8789 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
8790 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
8791 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
8792 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
8793 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
8794 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
8797 ## ------------------------------------------ ##
8798 ## Report this to the AC_PACKAGE_NAME lists. ##
8799 ## ------------------------------------------ ##
8802 sed "s/^/$as_me: WARNING: /" >&2
8805 echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
8806 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6
8807 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 ac_cv_header_Carbon_Carbon_h
=$ac_header_preproc
8812 echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
8813 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6
8816 if test $ac_cv_header_Carbon_Carbon_h = yes; then
8822 if test "${window_system}" = x11
&& test "${HAVE_CARBON}" = yes; then
8823 if test "${with_carbon+set}" != set \
8824 && test "${carbon_appdir_x+set}" != set; then
8828 if test "${HAVE_CARBON}" = yes; then
8832 case "${window_system}" in
8836 case "${with_x_toolkit}" in
8837 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
8838 motif
) USE_X_TOOLKIT
=MOTIF
;;
8840 USE_X_TOOLKIT
=none
;;
8841 no
) USE_X_TOOLKIT
=none
;;
8842 * ) USE_X_TOOLKIT
=maybe
;;
8852 ### If we're using X11, we should use the X menu package.
8855 yes ) HAVE_MENUS
=yes ;;
8858 if test "${opsys}" = "hpux9"; then
8859 case "${x_libraries}" in
8861 opsysfile
="s/hpux9-x11r4.h"
8866 if test "${opsys}" = "hpux9shr"; then
8867 case "${x_libraries}" in
8869 opsysfile
="s/hpux9shxr4.h"
8874 ### Compute the unexec source name from the object name.
8875 UNEXEC_SRC
="`echo ${unexec} | sed 's/\.o/.c/'`"
8877 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8878 # Assume not, until told otherwise.
8881 echo "$as_me:$LINENO: checking for malloc_get_state" >&5
8882 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6
8883 if test "${ac_cv_func_malloc_get_state+set}" = set; then
8884 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 cat >conftest.
$ac_ext <<_ACEOF
8889 cat confdefs.h
>>conftest.
$ac_ext
8890 cat >>conftest.
$ac_ext <<_ACEOF
8891 /* end confdefs.h. */
8892 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
8893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8894 #define malloc_get_state innocuous_malloc_get_state
8896 /* System header to define __stub macros and hopefully few prototypes,
8897 which can conflict with char malloc_get_state (); below.
8898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8899 <limits.h> exists even on freestanding compilers. */
8902 # include <limits.h>
8904 # include <assert.h>
8907 #undef malloc_get_state
8909 /* Override any gcc2 internal prototype to avoid an error. */
8914 /* We use char because int might match the return type of a gcc2
8915 builtin and then its argument prototype would still apply. */
8916 char malloc_get_state ();
8917 /* The GNU C library defines this for functions which it implements
8918 to always fail with ENOSYS. Some functions are actually named
8919 something starting with __ and the normal name is an alias. */
8920 #if defined (__stub_malloc_get_state) || defined (__stub___malloc_get_state)
8923 char (*f) () = malloc_get_state;
8932 return f != malloc_get_state;
8937 rm -f conftest.
$ac_objext conftest
$ac_exeext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8939 (eval $ac_link) 2>conftest.er1
8941 grep -v '^ *+' conftest.er1
>conftest.err
8943 cat conftest.err
>&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } &&
8946 { ac_try
='test -z "$ac_c_werror_flag"
8947 || test ! -s conftest.err'
8948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); }; } &&
8953 { ac_try
='test -s conftest$ac_exeext'
8954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); }; }; then
8959 ac_cv_func_malloc_get_state
=yes
8961 echo "$as_me: failed program was:" >&5
8962 sed 's/^/| /' conftest.
$ac_ext >&5
8964 ac_cv_func_malloc_get_state
=no
8966 rm -f conftest.err conftest.
$ac_objext \
8967 conftest
$ac_exeext conftest.
$ac_ext
8969 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
8970 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6
8971 if test $ac_cv_func_malloc_get_state = yes; then
8977 echo "$as_me:$LINENO: checking for malloc_set_state" >&5
8978 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6
8979 if test "${ac_cv_func_malloc_set_state+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 cat >conftest.
$ac_ext <<_ACEOF
8985 cat confdefs.h
>>conftest.
$ac_ext
8986 cat >>conftest.
$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
8989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8990 #define malloc_set_state innocuous_malloc_set_state
8992 /* System header to define __stub macros and hopefully few prototypes,
8993 which can conflict with char malloc_set_state (); below.
8994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8995 <limits.h> exists even on freestanding compilers. */
8998 # include <limits.h>
9000 # include <assert.h>
9003 #undef malloc_set_state
9005 /* Override any gcc2 internal prototype to avoid an error. */
9010 /* We use char because int might match the return type of a gcc2
9011 builtin and then its argument prototype would still apply. */
9012 char malloc_set_state ();
9013 /* The GNU C library defines this for functions which it implements
9014 to always fail with ENOSYS. Some functions are actually named
9015 something starting with __ and the normal name is an alias. */
9016 #if defined (__stub_malloc_set_state) || defined (__stub___malloc_set_state)
9019 char (*f) () = malloc_set_state;
9028 return f != malloc_set_state;
9033 rm -f conftest.
$ac_objext conftest
$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035 (eval $ac_link) 2>conftest.er1
9037 grep -v '^ *+' conftest.er1
>conftest.err
9039 cat conftest.err
>&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); } &&
9042 { ac_try
='test -z "$ac_c_werror_flag"
9043 || test ! -s conftest.err'
9044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048 (exit $ac_status); }; } &&
9049 { ac_try
='test -s conftest$ac_exeext'
9050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); }; }; then
9055 ac_cv_func_malloc_set_state
=yes
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.
$ac_ext >&5
9060 ac_cv_func_malloc_set_state
=no
9062 rm -f conftest.err conftest.
$ac_objext \
9063 conftest
$ac_exeext conftest.
$ac_ext
9065 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9066 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6
9067 if test $ac_cv_func_malloc_set_state = yes; then
9073 echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9074 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6
9075 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 cat >conftest.
$ac_ext <<_ACEOF
9081 cat confdefs.h
>>conftest.
$ac_ext
9082 cat >>conftest.
$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9084 extern void (* __after_morecore_hook)();
9088 __after_morecore_hook = 0
9093 rm -f conftest.
$ac_objext conftest
$ac_exeext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9095 (eval $ac_link) 2>conftest.er1
9097 grep -v '^ *+' conftest.er1
>conftest.err
9099 cat conftest.err
>&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try
='test -z "$ac_c_werror_flag"
9103 || test ! -s conftest.err'
9104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); }; } &&
9109 { ac_try
='test -s conftest$ac_exeext'
9110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114 (exit $ac_status); }; }; then
9115 emacs_cv_var___after_morecore_hook
=yes
9117 echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.
$ac_ext >&5
9120 emacs_cv_var___after_morecore_hook
=no
9122 rm -f conftest.err conftest.
$ac_objext \
9123 conftest
$ac_exeext conftest.
$ac_ext
9125 echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9126 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6
9127 if test $emacs_cv_var___after_morecore_hook = no
; then
9130 if test "${system_malloc}" = "yes"; then
9133 (The GNU allocators don't work with this system configuration.)"
9135 if test "$doug_lea_malloc" = "yes" ; then
9136 if test "$GNU_MALLOC" = yes ; then
9138 (Using Doug Lea's new malloc from the GNU C Library.)"
9141 cat >>confdefs.h
<<\_ACEOF
9142 #define DOUG_LEA_MALLOC 1
9147 if test x
"${REL_ALLOC}" = x
; then
9148 REL_ALLOC
=${GNU_MALLOC}
9154 for ac_header
in stdlib.h unistd.h
9156 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9158 echo "$as_me:$LINENO: checking for $ac_header" >&5
9159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9164 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9166 # Is the header compilable?
9167 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9169 cat >conftest.
$ac_ext <<_ACEOF
9172 cat confdefs.h
>>conftest.
$ac_ext
9173 cat >>conftest.
$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 $ac_includes_default
9176 #include <$ac_header>
9178 rm -f conftest.
$ac_objext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9180 (eval $ac_compile) 2>conftest.er1
9182 grep -v '^ *+' conftest.er1
>conftest.err
9184 cat conftest.err
>&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try
='test -z "$ac_c_werror_flag"
9188 || test ! -s conftest.err'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; } &&
9194 { ac_try
='test -s conftest.$ac_objext'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
9200 ac_header_compiler
=yes
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.
$ac_ext >&5
9205 ac_header_compiler
=no
9207 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9208 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9209 echo "${ECHO_T}$ac_header_compiler" >&6
9211 # Is the header present?
9212 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9214 cat >conftest.
$ac_ext <<_ACEOF
9217 cat confdefs.h
>>conftest.
$ac_ext
9218 cat >>conftest.
$ac_ext <<_ACEOF
9219 /* end confdefs.h. */
9220 #include <$ac_header>
9222 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9223 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9225 grep -v '^ *+' conftest.er1
>conftest.err
9227 cat conftest.err
>&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } >/dev
/null
; then
9230 if test -s conftest.err
; then
9231 ac_cpp_err
=$ac_c_preproc_warn_flag
9232 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9239 if test -z "$ac_cpp_err"; then
9240 ac_header_preproc
=yes
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.
$ac_ext >&5
9245 ac_header_preproc
=no
9247 rm -f conftest.err conftest.
$ac_ext
9248 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9249 echo "${ECHO_T}$ac_header_preproc" >&6
9251 # So? What about this header?
9252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9254 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9255 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9257 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9258 ac_header_preproc
=yes
9261 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9262 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9263 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9264 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9266 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9267 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9268 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9270 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9271 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9272 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9275 ## ------------------------------------------ ##
9276 ## Report this to the AC_PACKAGE_NAME lists. ##
9277 ## ------------------------------------------ ##
9280 sed "s/^/$as_me: WARNING: /" >&2
9283 echo "$as_me:$LINENO: checking for $ac_header" >&5
9284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9285 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9286 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 eval "$as_ac_Header=\$ac_header_preproc"
9290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9291 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9295 cat >>confdefs.h
<<_ACEOF
9296 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9304 for ac_func
in getpagesize
9306 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9307 echo "$as_me:$LINENO: checking for $ac_func" >&5
9308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9309 if eval "test \"\${$as_ac_var+set}\" = set"; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 cat >conftest.
$ac_ext <<_ACEOF
9315 cat confdefs.h
>>conftest.
$ac_ext
9316 cat >>conftest.
$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9320 #define $ac_func innocuous_$ac_func
9322 /* System header to define __stub macros and hopefully few prototypes,
9323 which can conflict with char $ac_func (); below.
9324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9325 <limits.h> exists even on freestanding compilers. */
9328 # include <limits.h>
9330 # include <assert.h>
9335 /* Override any gcc2 internal prototype to avoid an error. */
9340 /* We use char because int might match the return type of a gcc2
9341 builtin and then its argument prototype would still apply. */
9343 /* The GNU C library defines this for functions which it implements
9344 to always fail with ENOSYS. Some functions are actually named
9345 something starting with __ and the normal name is an alias. */
9346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9349 char (*f) () = $ac_func;
9358 return f != $ac_func;
9363 rm -f conftest.
$ac_objext conftest
$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365 (eval $ac_link) 2>conftest.er1
9367 grep -v '^ *+' conftest.er1
>conftest.err
9369 cat conftest.err
>&5
9370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371 (exit $ac_status); } &&
9372 { ac_try
='test -z "$ac_c_werror_flag"
9373 || test ! -s conftest.err'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; } &&
9379 { ac_try
='test -s conftest$ac_exeext'
9380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 eval "$as_ac_var=yes"
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.
$ac_ext >&5
9390 eval "$as_ac_var=no"
9392 rm -f conftest.err conftest.
$ac_objext \
9393 conftest
$ac_exeext conftest.
$ac_ext
9395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9397 if test `eval echo '${'$as_ac_var'}'` = yes; then
9398 cat >>confdefs.h
<<_ACEOF
9399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9405 echo "$as_me:$LINENO: checking for working mmap" >&5
9406 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9407 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9408 echo $ECHO_N "(cached) $ECHO_C" >&6
9410 if test "$cross_compiling" = yes; then
9411 ac_cv_func_mmap_fixed_mapped
=no
9413 cat >conftest.
$ac_ext <<_ACEOF
9416 cat confdefs.h
>>conftest.
$ac_ext
9417 cat >>conftest.
$ac_ext <<_ACEOF
9418 /* end confdefs.h. */
9419 $ac_includes_default
9420 /* malloc might have been renamed as rpl_malloc. */
9423 /* Thanks to Mike Haertel and Jim Avera for this test.
9424 Here is a matrix of mmap possibilities:
9425 mmap private not fixed
9426 mmap private fixed at somewhere currently unmapped
9427 mmap private fixed at somewhere already mapped
9428 mmap shared not fixed
9429 mmap shared fixed at somewhere currently unmapped
9430 mmap shared fixed at somewhere already mapped
9431 For private mappings, we should verify that changes cannot be read()
9432 back from the file, nor mmap's back from the file at a different
9433 address. (There have been systems where private was not correctly
9434 implemented like the infamous i386 svr4.0, and systems where the
9435 VM page cache was not coherent with the file system buffer cache
9436 like early versions of FreeBSD and possibly contemporary NetBSD.)
9437 For shared mappings, we should conversely verify that changes get
9438 propagated back to all the places they're supposed to be.
9440 Grep wants private fixed already mapped.
9441 The main things grep needs to know about mmap are:
9442 * does it exist and is it safe to write into the mmap'd area
9443 * how to use it (BSD variants) */
9446 #include <sys/mman.h>
9448 #if !STDC_HEADERS && !HAVE_STDLIB_H
9452 /* This mess was copied from the GNU getpagesize.h. */
9453 #if !HAVE_GETPAGESIZE
9454 /* Assume that all systems that can run configure have sys/param.h. */
9455 # if !HAVE_SYS_PARAM_H
9456 # define HAVE_SYS_PARAM_H 1
9459 # ifdef _SC_PAGESIZE
9460 # define getpagesize() sysconf(_SC_PAGESIZE)
9461 # else /* no _SC_PAGESIZE */
9462 # if HAVE_SYS_PARAM_H
9463 # include <sys/param.h>
9464 # ifdef EXEC_PAGESIZE
9465 # define getpagesize() EXEC_PAGESIZE
9466 # else /* no EXEC_PAGESIZE */
9468 # define getpagesize() NBPG * CLSIZE
9471 # endif /* no CLSIZE */
9472 # else /* no NBPG */
9474 # define getpagesize() NBPC
9475 # else /* no NBPC */
9477 # define getpagesize() PAGESIZE
9478 # endif /* PAGESIZE */
9479 # endif /* no NBPC */
9480 # endif /* no NBPG */
9481 # endif /* no EXEC_PAGESIZE */
9482 # else /* no HAVE_SYS_PARAM_H */
9483 # define getpagesize() 8192 /* punt totally */
9484 # endif /* no HAVE_SYS_PARAM_H */
9485 # endif /* no _SC_PAGESIZE */
9487 #endif /* no HAVE_GETPAGESIZE */
9492 char *data, *data2, *data3;
9496 pagesize = getpagesize ();
9498 /* First, make a file with some known garbage in it. */
9499 data = (char *) malloc (pagesize);
9502 for (i = 0; i < pagesize; ++i)
9503 *(data + i) = rand ();
9505 fd = creat ("conftest.mmap", 0600);
9508 if (write (fd, data, pagesize) != pagesize)
9512 /* Next, try to mmap the file at a fixed address which already has
9513 something else allocated at it. If we can, also make sure that
9514 we see the same garbage. */
9515 fd = open ("conftest.mmap", O_RDWR);
9518 data2 = (char *) malloc (2 * pagesize);
9521 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
9522 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9523 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9525 for (i = 0; i < pagesize; ++i)
9526 if (*(data + i) != *(data2 + i))
9529 /* Finally, make sure that changes to the mapped area do not
9530 percolate back to the file as seen by read(). (This is a bug on
9531 some variants of i386 svr4.0.) */
9532 for (i = 0; i < pagesize; ++i)
9533 *(data2 + i) = *(data2 + i) + 1;
9534 data3 = (char *) malloc (pagesize);
9537 if (read (fd, data3, pagesize) != pagesize)
9539 for (i = 0; i < pagesize; ++i)
9540 if (*(data + i) != *(data3 + i))
9546 rm -f conftest
$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>&5
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; }; then
9557 ac_cv_func_mmap_fixed_mapped
=yes
9559 echo "$as_me: program exited with status $ac_status" >&5
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.
$ac_ext >&5
9564 ac_cv_func_mmap_fixed_mapped
=no
9566 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9569 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9570 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9571 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9573 cat >>confdefs.h
<<\_ACEOF
9580 if test $use_mmap_for_buffers = yes; then
9584 LIBS
="$libsrc_libs $LIBS"
9587 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9588 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9589 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 ac_check_lib_save_LIBS
=$LIBS
9594 cat >conftest.
$ac_ext <<_ACEOF
9597 cat confdefs.h
>>conftest.
$ac_ext
9598 cat >>conftest.
$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9601 /* Override any gcc2 internal prototype to avoid an error. */
9605 /* We use char because int might match the return type of a gcc2
9606 builtin and then its argument prototype would still apply. */
9616 rm -f conftest.
$ac_objext conftest
$ac_exeext
9617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9618 (eval $ac_link) 2>conftest.er1
9620 grep -v '^ *+' conftest.er1
>conftest.err
9622 cat conftest.err
>&5
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } &&
9625 { ac_try
='test -z "$ac_c_werror_flag"
9626 || test ! -s conftest.err'
9627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); }; } &&
9632 { ac_try
='test -s conftest$ac_exeext'
9633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); }; }; then
9638 ac_cv_lib_dnet_dnet_ntoa
=yes
9640 echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.
$ac_ext >&5
9643 ac_cv_lib_dnet_dnet_ntoa
=no
9645 rm -f conftest.err conftest.
$ac_objext \
9646 conftest
$ac_exeext conftest.
$ac_ext
9647 LIBS
=$ac_check_lib_save_LIBS
9649 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9650 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9651 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9652 cat >>confdefs.h
<<_ACEOF
9653 #define HAVE_LIBDNET 1
9661 echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
9662 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6
9663 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 ac_check_lib_save_LIBS
=$LIBS
9668 cat >conftest.
$ac_ext <<_ACEOF
9671 cat confdefs.h
>>conftest.
$ac_ext
9672 cat >>conftest.
$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9684 rm -f conftest.
$ac_objext conftest
$ac_exeext
9685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9686 (eval $ac_link) 2>conftest.er1
9688 grep -v '^ *+' conftest.er1
>conftest.err
9690 cat conftest.err
>&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } &&
9693 { ac_try
='test -z "$ac_c_werror_flag"
9694 || test ! -s conftest.err'
9695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); }; } &&
9700 { ac_try
='test -s conftest$ac_exeext'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; }; then
9706 ac_cv_lib_Xbsd_main
=yes
9708 echo "$as_me: failed program was:" >&5
9709 sed 's/^/| /' conftest.
$ac_ext >&5
9711 ac_cv_lib_Xbsd_main
=no
9713 rm -f conftest.err conftest.
$ac_objext \
9714 conftest
$ac_exeext conftest.
$ac_ext
9715 LIBS
=$ac_check_lib_save_LIBS
9717 echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
9718 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6
9719 if test $ac_cv_lib_Xbsd_main = yes; then
9720 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
9725 echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
9726 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6
9727 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9730 ac_check_lib_save_LIBS
=$LIBS
9731 LIBS
="-lpthreads $LIBS"
9732 cat >conftest.
$ac_ext <<_ACEOF
9735 cat confdefs.h
>>conftest.
$ac_ext
9736 cat >>conftest.
$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9739 /* Override any gcc2 internal prototype to avoid an error. */
9743 /* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9754 rm -f conftest.
$ac_objext conftest
$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>conftest.er1
9758 grep -v '^ *+' conftest.er1
>conftest.err
9760 cat conftest.err
>&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try
='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try
='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_lib_pthreads_cma_open
=yes
9778 echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.
$ac_ext >&5
9781 ac_cv_lib_pthreads_cma_open
=no
9783 rm -f conftest.err conftest.
$ac_objext \
9784 conftest
$ac_exeext conftest.
$ac_ext
9785 LIBS
=$ac_check_lib_save_LIBS
9787 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
9788 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6
9789 if test $ac_cv_lib_pthreads_cma_open = yes; then
9790 cat >>confdefs.h
<<_ACEOF
9791 #define HAVE_LIBPTHREADS 1
9794 LIBS
="-lpthreads $LIBS"
9799 echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
9800 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6
9801 if test -d /usr
/X386
/include
; then
9803 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
9807 echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
9808 echo "${ECHO_T}$HAVE_XFREE386" >&6
9813 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
9814 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
9815 if test "${gdb_cv_bigtoc+set}" = set; then
9816 echo $ECHO_N "(cached) $ECHO_C" >&6
9820 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
9821 *) gdb_cv_bigtoc
=-bbigtoc ;;
9824 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
9825 cat >conftest.
$ac_ext <<_ACEOF
9828 cat confdefs.h
>>conftest.
$ac_ext
9829 cat >>conftest.
$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9840 rm -f conftest.
$ac_objext conftest
$ac_exeext
9841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9842 (eval $ac_link) 2>conftest.er1
9844 grep -v '^ *+' conftest.er1
>conftest.err
9846 cat conftest.err
>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } &&
9849 { ac_try
='test -z "$ac_c_werror_flag"
9850 || test ! -s conftest.err'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; } &&
9856 { ac_try
='test -s conftest$ac_exeext'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.
$ac_ext >&5
9869 rm -f conftest.err conftest.
$ac_objext \
9870 conftest
$ac_exeext conftest.
$ac_ext
9873 echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
9874 echo "${ECHO_T}$gdb_cv_bigtoc" >&6
9878 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9879 # used for the tests that follow. We set them back to REAL_CFLAGS and
9880 # REAL_CPPFLAGS later on.
9882 REAL_CPPFLAGS
="$CPPFLAGS"
9884 if test "${HAVE_X11}" = "yes"; then
9885 DEFS
="$C_SWITCH_X_SITE $DEFS"
9886 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
9888 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
9889 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
9891 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9892 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9893 # but it's more convenient here to set LD_RUN_PATH
9894 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9895 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
9896 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9900 if test "${opsys}" = "gnu-linux"; then
9901 echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
9902 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6
9903 cat >conftest.
$ac_ext <<_ACEOF
9906 cat confdefs.h
>>conftest.
$ac_ext
9907 cat >>conftest.
$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9913 XOpenDisplay ("foo");
9918 rm -f conftest.
$ac_objext conftest
$ac_exeext
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>conftest.er1
9922 grep -v '^ *+' conftest.er1
>conftest.err
9924 cat conftest.err
>&5
9925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926 (exit $ac_status); } &&
9927 { ac_try
='test -z "$ac_c_werror_flag"
9928 || test ! -s conftest.err'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; } &&
9934 { ac_try
='test -s conftest$ac_exeext'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 xlinux_first_failure
=no
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.
$ac_ext >&5
9945 xlinux_first_failure
=yes
9947 rm -f conftest.err conftest.
$ac_objext \
9948 conftest
$ac_exeext conftest.
$ac_ext
9949 if test "${xlinux_first_failure}" = "yes"; then
9950 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
9951 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
9952 OLD_CPPFLAGS
="$CPPFLAGS"
9954 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
9955 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
9956 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
9957 LIBS
="$LIBS -b i486-linuxaout"
9958 cat >conftest.
$ac_ext <<_ACEOF
9961 cat confdefs.h
>>conftest.
$ac_ext
9962 cat >>conftest.
$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9968 XOpenDisplay ("foo");
9973 rm -f conftest.
$ac_objext conftest
$ac_exeext
9974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9975 (eval $ac_link) 2>conftest.er1
9977 grep -v '^ *+' conftest.er1
>conftest.err
9979 cat conftest.err
>&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } &&
9982 { ac_try
='test -z "$ac_c_werror_flag"
9983 || test ! -s conftest.err'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; } &&
9989 { ac_try
='test -s conftest$ac_exeext'
9990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); }; }; then
9995 xlinux_second_failure
=no
9997 echo "$as_me: failed program was:" >&5
9998 sed 's/^/| /' conftest.
$ac_ext >&5
10000 xlinux_second_failure
=yes
10002 rm -f conftest.err conftest.
$ac_objext \
10003 conftest
$ac_exeext conftest.
$ac_ext
10004 if test "${xlinux_second_failure}" = "yes"; then
10005 # If we get the same failure with -b, there is no use adding -b.
10006 # So take it out. This plays safe.
10007 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10008 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10009 CPPFLAGS
="$OLD_CPPFLAGS"
10011 echo "$as_me:$LINENO: result: no" >&5
10012 echo "${ECHO_T}no" >&6
10014 echo "$as_me:$LINENO: result: yes" >&5
10015 echo "${ECHO_T}yes" >&6
10018 echo "$as_me:$LINENO: result: no" >&5
10019 echo "${ECHO_T}no" >&6
10023 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10024 # header files included from there.
10025 echo "$as_me:$LINENO: checking for Xkb" >&5
10026 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6
10027 cat >conftest.
$ac_ext <<_ACEOF
10030 cat confdefs.h
>>conftest.
$ac_ext
10031 cat >>conftest.
$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10033 #include <X11/Xlib.h>
10034 #include <X11/XKBlib.h>
10038 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10043 rm -f conftest.
$ac_objext conftest
$ac_exeext
10044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10045 (eval $ac_link) 2>conftest.er1
10047 grep -v '^ *+' conftest.er1
>conftest.err
10049 cat conftest.err
>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); } &&
10052 { ac_try
='test -z "$ac_c_werror_flag"
10053 || test ! -s conftest.err'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; } &&
10059 { ac_try
='test -s conftest$ac_exeext'
10060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10061 (eval $ac_try) 2>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); }; }; then
10067 echo "$as_me: failed program was:" >&5
10068 sed 's/^/| /' conftest.
$ac_ext >&5
10072 rm -f conftest.err conftest.
$ac_objext \
10073 conftest
$ac_exeext conftest.
$ac_ext
10074 echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10075 echo "${ECHO_T}$emacs_xkb" >&6
10076 if test $emacs_xkb = yes; then
10078 cat >>confdefs.h
<<\_ACEOF
10079 #define HAVE_XKBGETKEYBOARD 1
10088 for ac_func
in XrmSetDatabase XScreenResourceString \
10089 XScreenNumberOfScreen XSetWMProtocols
10091 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10092 echo "$as_me:$LINENO: checking for $ac_func" >&5
10093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10094 if eval "test \"\${$as_ac_var+set}\" = set"; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 cat >conftest.
$ac_ext <<_ACEOF
10100 cat confdefs.h
>>conftest.
$ac_ext
10101 cat >>conftest.
$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10105 #define $ac_func innocuous_$ac_func
10107 /* System header to define __stub macros and hopefully few prototypes,
10108 which can conflict with char $ac_func (); below.
10109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110 <limits.h> exists even on freestanding compilers. */
10113 # include <limits.h>
10115 # include <assert.h>
10120 /* Override any gcc2 internal prototype to avoid an error. */
10125 /* We use char because int might match the return type of a gcc2
10126 builtin and then its argument prototype would still apply. */
10128 /* The GNU C library defines this for functions which it implements
10129 to always fail with ENOSYS. Some functions are actually named
10130 something starting with __ and the normal name is an alias. */
10131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10134 char (*f) () = $ac_func;
10143 return f != $ac_func;
10148 rm -f conftest.
$ac_objext conftest
$ac_exeext
10149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10150 (eval $ac_link) 2>conftest.er1
10152 grep -v '^ *+' conftest.er1
>conftest.err
10154 cat conftest.err
>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } &&
10157 { ac_try
='test -z "$ac_c_werror_flag"
10158 || test ! -s conftest.err'
10159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160 (eval $ac_try) 2>&5
10162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163 (exit $ac_status); }; } &&
10164 { ac_try
='test -s conftest$ac_exeext'
10165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10166 (eval $ac_try) 2>&5
10168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169 (exit $ac_status); }; }; then
10170 eval "$as_ac_var=yes"
10172 echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.
$ac_ext >&5
10175 eval "$as_ac_var=no"
10177 rm -f conftest.err conftest.
$ac_objext \
10178 conftest
$ac_exeext conftest.
$ac_ext
10180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10181 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10182 if test `eval echo '${'$as_ac_var'}'` = yes; then
10183 cat >>confdefs.h
<<_ACEOF
10184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10192 if test "${window_system}" = "x11"; then
10193 echo "$as_me:$LINENO: checking X11 version 6" >&5
10194 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6
10195 if test "${emacs_cv_x11_version_6+set}" = set; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 cat >conftest.
$ac_ext <<_ACEOF
10201 cat confdefs.h
>>conftest.
$ac_ext
10202 cat >>conftest.
$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10204 #include <X11/Xlib.h>
10208 #if XlibSpecificationRelease < 6
10216 rm -f conftest.
$ac_objext conftest
$ac_exeext
10217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10218 (eval $ac_link) 2>conftest.er1
10220 grep -v '^ *+' conftest.er1
>conftest.err
10222 cat conftest.err
>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); } &&
10225 { ac_try
='test -z "$ac_c_werror_flag"
10226 || test ! -s conftest.err'
10227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10228 (eval $ac_try) 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; } &&
10232 { ac_try
='test -s conftest$ac_exeext'
10233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10234 (eval $ac_try) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); }; }; then
10238 emacs_cv_x11_version_6
=yes
10240 echo "$as_me: failed program was:" >&5
10241 sed 's/^/| /' conftest.
$ac_ext >&5
10243 emacs_cv_x11_version_6
=no
10245 rm -f conftest.err conftest.
$ac_objext \
10246 conftest
$ac_exeext conftest.
$ac_ext
10249 if test $emacs_cv_x11_version_6 = yes; then
10250 echo "$as_me:$LINENO: result: 6 or newer" >&5
10251 echo "${ECHO_T}6 or newer" >&6
10253 cat >>confdefs.h
<<\_ACEOF
10254 #define HAVE_X11R6 1
10258 echo "$as_me:$LINENO: result: before 6" >&5
10259 echo "${ECHO_T}before 6" >&6
10263 if test "${window_system}" = "x11"; then
10264 echo "$as_me:$LINENO: checking X11 version 5" >&5
10265 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6
10266 if test "${emacs_cv_x11_version_5+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 cat >conftest.
$ac_ext <<_ACEOF
10272 cat confdefs.h
>>conftest.
$ac_ext
10273 cat >>conftest.
$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10275 #include <X11/Xlib.h>
10279 #if XlibSpecificationRelease < 5
10287 rm -f conftest.
$ac_objext conftest
$ac_exeext
10288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10289 (eval $ac_link) 2>conftest.er1
10291 grep -v '^ *+' conftest.er1
>conftest.err
10293 cat conftest.err
>&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } &&
10296 { ac_try
='test -z "$ac_c_werror_flag"
10297 || test ! -s conftest.err'
10298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299 (eval $ac_try) 2>&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); }; } &&
10303 { ac_try
='test -s conftest$ac_exeext'
10304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10305 (eval $ac_try) 2>&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); }; }; then
10309 emacs_cv_x11_version_5
=yes
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.
$ac_ext >&5
10314 emacs_cv_x11_version_5
=no
10316 rm -f conftest.err conftest.
$ac_objext \
10317 conftest
$ac_exeext conftest.
$ac_ext
10320 if test $emacs_cv_x11_version_5 = yes; then
10321 echo "$as_me:$LINENO: result: 5 or newer" >&5
10322 echo "${ECHO_T}5 or newer" >&6
10325 cat >>confdefs.h
<<\_ACEOF
10326 #define HAVE_X11R5 1
10331 echo "$as_me:$LINENO: result: before 5" >&5
10332 echo "${ECHO_T}before 5" >&6
10337 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk"; then
10338 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10339 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10340 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10341 { (exit 1); exit 1; }; };
10345 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10347 if test "X${with_pkg_config_prog}" != X
; then
10348 PKG_CONFIG
="${with_pkg_config_prog}"
10353 if test -z "$PKG_CONFIG"; then
10354 # Extract the first word of "pkg-config", so it can be a program name with args.
10355 set dummy pkg-config
; ac_word
=$2
10356 echo "$as_me:$LINENO: checking for $ac_word" >&5
10357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10358 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 case $PKG_CONFIG in
10363 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10367 for as_dir
in $PATH
10370 test -z "$as_dir" && as_dir
=.
10371 for ac_exec_ext
in '' $ac_executable_extensions; do
10372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10373 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10380 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10384 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10386 if test -n "$PKG_CONFIG"; then
10387 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10388 echo "${ECHO_T}$PKG_CONFIG" >&6
10390 echo "$as_me:$LINENO: result: no" >&5
10391 echo "${ECHO_T}no" >&6
10396 if test "$PKG_CONFIG" = "no" ; then
10397 { { echo "$as_me:$LINENO: error:
10398 *** 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
10399 echo "$as_me: error:
10400 *** 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;}
10401 { (exit 1); exit 1; }; }
10403 PKG_CONFIG_MIN_VERSION
=0.9.0
10404 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10405 echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10406 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6
10408 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10409 echo "$as_me:$LINENO: result: yes" >&5
10410 echo "${ECHO_T}yes" >&6
10413 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10414 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
10415 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10416 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10417 echo "${ECHO_T}$GTK_CFLAGS" >&6
10419 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10420 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
10421 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"`
10422 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10423 echo "${ECHO_T}$GTK_LIBS" >&6
10425 echo "$as_me:$LINENO: result: no" >&5
10426 echo "${ECHO_T}no" >&6
10429 ## If we have a custom action on failure, don't print errors, but
10430 ## do set a variable so people can do so.
10431 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10432 echo $GTK_PKG_ERRORS
10438 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10439 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10443 if test $succeeded = yes; then
10446 { { 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
10447 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;}
10448 { (exit 1); exit 1; }; }
10453 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10454 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10455 LIBS
="$GTK_LIBS $LIBS"
10458 cat >>confdefs.h
<<\_ACEOF
10464 if test "$with_toolkit_scroll_bars" != no
; then
10465 with_toolkit_scroll_bars
=yes
10468 HAVE_GTK_MULTIDISPLAY
=no
10470 for ac_func
in gdk_display_open
10472 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10473 echo "$as_me:$LINENO: checking for $ac_func" >&5
10474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10475 if eval "test \"\${$as_ac_var+set}\" = set"; then
10476 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 cat >conftest.
$ac_ext <<_ACEOF
10481 cat confdefs.h
>>conftest.
$ac_ext
10482 cat >>conftest.
$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10486 #define $ac_func innocuous_$ac_func
10488 /* System header to define __stub macros and hopefully few prototypes,
10489 which can conflict with char $ac_func (); below.
10490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10491 <limits.h> exists even on freestanding compilers. */
10494 # include <limits.h>
10496 # include <assert.h>
10501 /* Override any gcc2 internal prototype to avoid an error. */
10506 /* We use char because int might match the return type of a gcc2
10507 builtin and then its argument prototype would still apply. */
10509 /* The GNU C library defines this for functions which it implements
10510 to always fail with ENOSYS. Some functions are actually named
10511 something starting with __ and the normal name is an alias. */
10512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10515 char (*f) () = $ac_func;
10524 return f != $ac_func;
10529 rm -f conftest.
$ac_objext conftest
$ac_exeext
10530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10531 (eval $ac_link) 2>conftest.er1
10533 grep -v '^ *+' conftest.er1
>conftest.err
10535 cat conftest.err
>&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
10538 { ac_try
='test -z "$ac_c_werror_flag"
10539 || test ! -s conftest.err'
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try
='test -s conftest$ac_exeext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 eval "$as_ac_var=yes"
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.
$ac_ext >&5
10556 eval "$as_ac_var=no"
10558 rm -f conftest.err conftest.
$ac_objext \
10559 conftest
$ac_exeext conftest.
$ac_ext
10561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10562 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10563 if test `eval echo '${'$as_ac_var'}'` = yes; then
10564 cat >>confdefs.h
<<_ACEOF
10565 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10567 HAVE_GTK_MULTIDISPLAY
=yes
10571 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
10573 cat >>confdefs.h
<<\_ACEOF
10574 #define HAVE_GTK_MULTIDISPLAY 1
10578 HAVE_GTK_FILE_SELECTION
=no
10580 for ac_func
in gtk_file_selection_new
10582 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10583 echo "$as_me:$LINENO: checking for $ac_func" >&5
10584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10585 if eval "test \"\${$as_ac_var+set}\" = set"; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 cat >conftest.
$ac_ext <<_ACEOF
10591 cat confdefs.h
>>conftest.
$ac_ext
10592 cat >>conftest.
$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10596 #define $ac_func innocuous_$ac_func
10598 /* System header to define __stub macros and hopefully few prototypes,
10599 which can conflict with char $ac_func (); below.
10600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10601 <limits.h> exists even on freestanding compilers. */
10604 # include <limits.h>
10606 # include <assert.h>
10611 /* Override any gcc2 internal prototype to avoid an error. */
10616 /* We use char because int might match the return type of a gcc2
10617 builtin and then its argument prototype would still apply. */
10619 /* The GNU C library defines this for functions which it implements
10620 to always fail with ENOSYS. Some functions are actually named
10621 something starting with __ and the normal name is an alias. */
10622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10625 char (*f) () = $ac_func;
10634 return f != $ac_func;
10639 rm -f conftest.
$ac_objext conftest
$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>conftest.er1
10643 grep -v '^ *+' conftest.er1
>conftest.err
10645 cat conftest.err
>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try
='test -z "$ac_c_werror_flag"
10649 || test ! -s conftest.err'
10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651 (eval $ac_try) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; } &&
10655 { ac_try
='test -s conftest$ac_exeext'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; }; then
10661 eval "$as_ac_var=yes"
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.
$ac_ext >&5
10666 eval "$as_ac_var=no"
10668 rm -f conftest.err conftest.
$ac_objext \
10669 conftest
$ac_exeext conftest.
$ac_ext
10671 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10672 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10673 if test `eval echo '${'$as_ac_var'}'` = yes; then
10674 cat >>confdefs.h
<<_ACEOF
10675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10677 HAVE_GTK_FILE_SELECTION
=yes
10682 HAVE_GTK_FILE_CHOOSER
=no
10684 for ac_func
in gtk_file_chooser_dialog_new
10686 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10687 echo "$as_me:$LINENO: checking for $ac_func" >&5
10688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10689 if eval "test \"\${$as_ac_var+set}\" = set"; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 cat >conftest.
$ac_ext <<_ACEOF
10695 cat confdefs.h
>>conftest.
$ac_ext
10696 cat >>conftest.
$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10700 #define $ac_func innocuous_$ac_func
10702 /* System header to define __stub macros and hopefully few prototypes,
10703 which can conflict with char $ac_func (); below.
10704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10705 <limits.h> exists even on freestanding compilers. */
10708 # include <limits.h>
10710 # include <assert.h>
10715 /* Override any gcc2 internal prototype to avoid an error. */
10720 /* We use char because int might match the return type of a gcc2
10721 builtin and then its argument prototype would still apply. */
10723 /* The GNU C library defines this for functions which it implements
10724 to always fail with ENOSYS. Some functions are actually named
10725 something starting with __ and the normal name is an alias. */
10726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10729 char (*f) () = $ac_func;
10738 return f != $ac_func;
10743 rm -f conftest.
$ac_objext conftest
$ac_exeext
10744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10745 (eval $ac_link) 2>conftest.er1
10747 grep -v '^ *+' conftest.er1
>conftest.err
10749 cat conftest.err
>&5
10750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751 (exit $ac_status); } &&
10752 { ac_try
='test -z "$ac_c_werror_flag"
10753 || test ! -s conftest.err'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; } &&
10759 { ac_try
='test -s conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 eval "$as_ac_var=yes"
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.
$ac_ext >&5
10770 eval "$as_ac_var=no"
10772 rm -f conftest.err conftest.
$ac_objext \
10773 conftest
$ac_exeext conftest.
$ac_ext
10775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10777 if test `eval echo '${'$as_ac_var'}'` = yes; then
10778 cat >>confdefs.h
<<_ACEOF
10779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10781 HAVE_GTK_FILE_CHOOSER
=yes
10786 if test "$HAVE_GTK_FILE_SELECTION" = yes \
10787 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10789 cat >>confdefs.h
<<\_ACEOF
10790 #define HAVE_GTK_FILE_BOTH 1
10795 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10796 HAVE_GTK_AND_PTHREAD
=no
10798 for ac_header
in pthread.h
10800 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10801 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10802 echo "$as_me:$LINENO: checking for $ac_header" >&5
10803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10805 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10808 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10810 # Is the header compilable?
10811 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10813 cat >conftest.
$ac_ext <<_ACEOF
10816 cat confdefs.h
>>conftest.
$ac_ext
10817 cat >>conftest.
$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 $ac_includes_default
10820 #include <$ac_header>
10822 rm -f conftest.
$ac_objext
10823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10824 (eval $ac_compile) 2>conftest.er1
10826 grep -v '^ *+' conftest.er1
>conftest.err
10828 cat conftest.err
>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); } &&
10831 { ac_try
='test -z "$ac_c_werror_flag"
10832 || test ! -s conftest.err'
10833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834 (eval $ac_try) 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); }; } &&
10838 { ac_try
='test -s conftest.$ac_objext'
10839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10840 (eval $ac_try) 2>&5
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); }; }; then
10844 ac_header_compiler
=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.
$ac_ext >&5
10849 ac_header_compiler
=no
10851 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10853 echo "${ECHO_T}$ac_header_compiler" >&6
10855 # Is the header present?
10856 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10858 cat >conftest.
$ac_ext <<_ACEOF
10861 cat confdefs.h
>>conftest.
$ac_ext
10862 cat >>conftest.
$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 #include <$ac_header>
10866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10867 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10869 grep -v '^ *+' conftest.er1
>conftest.err
10871 cat conftest.err
>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } >/dev
/null
; then
10874 if test -s conftest.err
; then
10875 ac_cpp_err
=$ac_c_preproc_warn_flag
10876 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10883 if test -z "$ac_cpp_err"; then
10884 ac_header_preproc
=yes
10886 echo "$as_me: failed program was:" >&5
10887 sed 's/^/| /' conftest.
$ac_ext >&5
10889 ac_header_preproc
=no
10891 rm -f conftest.err conftest.
$ac_ext
10892 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10893 echo "${ECHO_T}$ac_header_preproc" >&6
10895 # So? What about this header?
10896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10902 ac_header_preproc
=yes
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10919 ## ------------------------------------------ ##
10920 ## Report this to the AC_PACKAGE_NAME lists. ##
10921 ## ------------------------------------------ ##
10924 sed "s/^/$as_me: WARNING: /" >&2
10927 echo "$as_me:$LINENO: checking for $ac_header" >&5
10928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 eval "$as_ac_Header=\$ac_header_preproc"
10934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10939 cat >>confdefs.h
<<_ACEOF
10940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10947 if test "$ac_cv_header_pthread_h"; then
10948 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10949 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10950 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 ac_check_lib_save_LIBS
=$LIBS
10954 LIBS
="-lpthread $LIBS"
10955 cat >conftest.
$ac_ext <<_ACEOF
10958 cat confdefs.h
>>conftest.
$ac_ext
10959 cat >>conftest.
$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10962 /* Override any gcc2 internal prototype to avoid an error. */
10966 /* We use char because int might match the return type of a gcc2
10967 builtin and then its argument prototype would still apply. */
10968 char pthread_self ();
10977 rm -f conftest.
$ac_objext conftest
$ac_exeext
10978 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10979 (eval $ac_link) 2>conftest.er1
10981 grep -v '^ *+' conftest.er1
>conftest.err
10983 cat conftest.err
>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); } &&
10986 { ac_try
='test -z "$ac_c_werror_flag"
10987 || test ! -s conftest.err'
10988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10989 (eval $ac_try) 2>&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }; } &&
10993 { ac_try
='test -s conftest$ac_exeext'
10994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10995 (eval $ac_try) 2>&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); }; }; then
10999 ac_cv_lib_pthread_pthread_self
=yes
11001 echo "$as_me: failed program was:" >&5
11002 sed 's/^/| /' conftest.
$ac_ext >&5
11004 ac_cv_lib_pthread_pthread_self
=no
11006 rm -f conftest.err conftest.
$ac_objext \
11007 conftest
$ac_exeext conftest.
$ac_ext
11008 LIBS
=$ac_check_lib_save_LIBS
11010 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11011 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
11012 if test $ac_cv_lib_pthread_pthread_self = yes; then
11013 HAVE_GTK_AND_PTHREAD
=yes
11017 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11018 GTK_LIBS
="$GTK_LIBS -lpthread"
11020 cat >>confdefs.h
<<\_ACEOF
11021 #define HAVE_GTK_AND_PTHREAD 1
11028 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11029 if test x
"${HAVE_X11R5}" = xyes
; then
11030 echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11031 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6
11032 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 cat >conftest.
$ac_ext <<_ACEOF
11038 cat confdefs.h
>>conftest.
$ac_ext
11039 cat >>conftest.
$ac_ext <<_ACEOF
11040 /* end confdefs.h. */
11042 #include <X11/Intrinsic.h>
11043 #include <X11/Xaw/Simple.h>
11052 rm -f conftest.
$ac_objext conftest
$ac_exeext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11054 (eval $ac_link) 2>conftest.er1
11056 grep -v '^ *+' conftest.er1
>conftest.err
11058 cat conftest.err
>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); } &&
11061 { ac_try
='test -z "$ac_c_werror_flag"
11062 || test ! -s conftest.err'
11063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11064 (eval $ac_try) 2>&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); }; } &&
11068 { ac_try
='test -s conftest$ac_exeext'
11069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11070 (eval $ac_try) 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); }; }; then
11074 emacs_cv_x11_version_5_with_xaw
=yes
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.
$ac_ext >&5
11079 emacs_cv_x11_version_5_with_xaw
=no
11081 rm -f conftest.err conftest.
$ac_objext \
11082 conftest
$ac_exeext conftest.
$ac_ext
11085 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11086 echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11087 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6
11088 USE_X_TOOLKIT
=LUCID
11090 echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11091 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6
11099 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
11101 if test "${USE_X_TOOLKIT}" != "none"; then
11102 echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11103 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6
11104 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 cat >conftest.
$ac_ext <<_ACEOF
11110 cat confdefs.h
>>conftest.
$ac_ext
11111 cat >>conftest.
$ac_ext <<_ACEOF
11112 /* end confdefs.h. */
11113 #include <X11/Intrinsic.h>
11117 #if XtSpecificationRelease < 6
11125 rm -f conftest.
$ac_objext conftest
$ac_exeext
11126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127 (eval $ac_link) 2>conftest.er1
11129 grep -v '^ *+' conftest.er1
>conftest.err
11131 cat conftest.err
>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try
='test -z "$ac_c_werror_flag"
11135 || test ! -s conftest.err'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try
='test -s conftest$ac_exeext'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 emacs_cv_x11_toolkit_version_6
=yes
11149 echo "$as_me: failed program was:" >&5
11150 sed 's/^/| /' conftest.
$ac_ext >&5
11152 emacs_cv_x11_toolkit_version_6
=no
11154 rm -f conftest.err conftest.
$ac_objext \
11155 conftest
$ac_exeext conftest.
$ac_ext
11158 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11159 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11160 echo "$as_me:$LINENO: result: 6 or newer" >&5
11161 echo "${ECHO_T}6 or newer" >&6
11163 cat >>confdefs.h
<<\_ACEOF
11164 #define HAVE_X11XTR6 1
11168 echo "$as_me:$LINENO: result: before 6" >&5
11169 echo "${ECHO_T}before 6" >&6
11173 if test x
$HAVE_X11XTR6 = xyes
; then
11174 LIBS
="-lXt -lSM -lICE $LIBS"
11179 echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11180 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6
11181 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11182 echo $ECHO_N "(cached) $ECHO_C" >&6
11184 ac_check_lib_save_LIBS
=$LIBS
11186 cat >conftest.
$ac_ext <<_ACEOF
11189 cat confdefs.h
>>conftest.
$ac_ext
11190 cat >>conftest.
$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11193 /* Override any gcc2 internal prototype to avoid an error. */
11197 /* We use char because int might match the return type of a gcc2
11198 builtin and then its argument prototype would still apply. */
11199 char XmuConvertStandardSelection ();
11203 XmuConvertStandardSelection ();
11208 rm -f conftest.
$ac_objext conftest
$ac_exeext
11209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11210 (eval $ac_link) 2>conftest.er1
11212 grep -v '^ *+' conftest.er1
>conftest.err
11214 cat conftest.err
>&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); } &&
11217 { ac_try
='test -z "$ac_c_werror_flag"
11218 || test ! -s conftest.err'
11219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11220 (eval $ac_try) 2>&5
11222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223 (exit $ac_status); }; } &&
11224 { ac_try
='test -s conftest$ac_exeext'
11225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11226 (eval $ac_try) 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.
$ac_ext >&5
11235 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
11237 rm -f conftest.err conftest.
$ac_objext \
11238 conftest
$ac_exeext conftest.
$ac_ext
11239 LIBS
=$ac_check_lib_save_LIBS
11241 echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11242 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6
11243 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11244 cat >>confdefs.h
<<_ACEOF
11245 #define HAVE_LIBXMU 1
11252 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
11255 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11256 if test "${HAVE_X11}" = "yes"; then
11257 if test "${USE_X_TOOLKIT}" != "none"; then
11259 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11260 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
11261 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11264 ac_check_lib_save_LIBS
=$LIBS
11265 LIBS
="-lXext $LIBS"
11266 cat >conftest.
$ac_ext <<_ACEOF
11269 cat confdefs.h
>>conftest.
$ac_ext
11270 cat >>conftest.
$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11273 /* Override any gcc2 internal prototype to avoid an error. */
11277 /* We use char because int might match the return type of a gcc2
11278 builtin and then its argument prototype would still apply. */
11279 char XShapeQueryExtension ();
11283 XShapeQueryExtension ();
11288 rm -f conftest.
$ac_objext conftest
$ac_exeext
11289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11290 (eval $ac_link) 2>conftest.er1
11292 grep -v '^ *+' conftest.er1
>conftest.err
11294 cat conftest.err
>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } &&
11297 { ac_try
='test -z "$ac_c_werror_flag"
11298 || test ! -s conftest.err'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; } &&
11304 { ac_try
='test -s conftest$ac_exeext'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.
$ac_ext >&5
11315 ac_cv_lib_Xext_XShapeQueryExtension
=no
11317 rm -f conftest.err conftest.
$ac_objext \
11318 conftest
$ac_exeext conftest.
$ac_ext
11319 LIBS
=$ac_check_lib_save_LIBS
11321 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11322 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
11323 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11324 cat >>confdefs.h
<<_ACEOF
11325 #define HAVE_LIBXEXT 1
11328 LIBS
="-lXext $LIBS"
11335 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11336 echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11337 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6
11338 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11339 echo $ECHO_N "(cached) $ECHO_C" >&6
11341 cat >conftest.
$ac_ext <<_ACEOF
11344 cat confdefs.h
>>conftest.
$ac_ext
11345 cat >>conftest.
$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11351 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11354 Motif version prior to 2.1.
11360 rm -f conftest.
$ac_objext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362 (eval $ac_compile) 2>conftest.er1
11364 grep -v '^ *+' conftest.er1
>conftest.err
11366 cat conftest.err
>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try
='test -z "$ac_c_werror_flag"
11370 || test ! -s conftest.err'
11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11372 (eval $ac_try) 2>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; } &&
11376 { ac_try
='test -s conftest.$ac_objext'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; }; then
11382 emacs_cv_motif_version_2_1
=yes
11384 echo "$as_me: failed program was:" >&5
11385 sed 's/^/| /' conftest.
$ac_ext >&5
11387 emacs_cv_motif_version_2_1
=no
11389 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11391 echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11392 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6
11393 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
11394 if test $emacs_cv_motif_version_2_1 = yes; then
11397 cat >>confdefs.h
<<\_ACEOF
11398 #define HAVE_MOTIF_2_1 1
11401 echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11402 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6
11403 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 ac_check_lib_save_LIBS
=$LIBS
11408 cat >conftest.
$ac_ext <<_ACEOF
11411 cat confdefs.h
>>conftest.
$ac_ext
11412 cat >>conftest.
$ac_ext <<_ACEOF
11413 /* end confdefs.h. */
11415 /* Override any gcc2 internal prototype to avoid an error. */
11419 /* We use char because int might match the return type of a gcc2
11420 builtin and then its argument prototype would still apply. */
11421 char XpCreateContext ();
11425 XpCreateContext ();
11430 rm -f conftest.
$ac_objext conftest
$ac_exeext
11431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11432 (eval $ac_link) 2>conftest.er1
11434 grep -v '^ *+' conftest.er1
>conftest.err
11436 cat conftest.err
>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } &&
11439 { ac_try
='test -z "$ac_c_werror_flag"
11440 || test ! -s conftest.err'
11441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11442 (eval $ac_try) 2>&5
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }; } &&
11446 { ac_try
='test -s conftest$ac_exeext'
11447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11448 (eval $ac_try) 2>&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); }; }; then
11452 ac_cv_lib_Xp_XpCreateContext
=yes
11454 echo "$as_me: failed program was:" >&5
11455 sed 's/^/| /' conftest.
$ac_ext >&5
11457 ac_cv_lib_Xp_XpCreateContext
=no
11459 rm -f conftest.err conftest.
$ac_objext \
11460 conftest
$ac_exeext conftest.
$ac_ext
11461 LIBS
=$ac_check_lib_save_LIBS
11463 echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11464 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6
11465 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11469 if test ${HAVE_LIBXP} = yes; then
11471 cat >>confdefs.h
<<\_ACEOF
11472 #define HAVE_LIBXP 1
11477 echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11478 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6
11479 if test "${emacs_cv_lesstif+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 # We put this in CFLAGS temporarily to precede other -I options
11483 # that might be in CFLAGS temporarily.
11484 # We put this in CPPFLAGS where it precedes the other -I options.
11485 OLD_CPPFLAGS
=$CPPFLAGS
11487 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11488 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11489 cat >conftest.
$ac_ext <<_ACEOF
11492 cat confdefs.h
>>conftest.
$ac_ext
11493 cat >>conftest.
$ac_ext <<_ACEOF
11494 /* end confdefs.h. */
11495 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11504 rm -f conftest.
$ac_objext
11505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11506 (eval $ac_compile) 2>conftest.er1
11508 grep -v '^ *+' conftest.er1
>conftest.err
11510 cat conftest.err
>&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } &&
11513 { ac_try
='test -z "$ac_c_werror_flag"
11514 || test ! -s conftest.err'
11515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11516 (eval $ac_try) 2>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); }; } &&
11520 { ac_try
='test -s conftest.$ac_objext'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; }; then
11526 emacs_cv_lesstif
=yes
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.
$ac_ext >&5
11531 emacs_cv_lesstif
=no
11533 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11535 echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11536 echo "${ECHO_T}$emacs_cv_lesstif" >&6
11537 if test $emacs_cv_lesstif = yes; then
11538 # Make sure this -I option remains in CPPFLAGS after it is set
11539 # back to REAL_CPPFLAGS.
11540 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11541 # have those other -I options anyway. Ultimately, having this
11542 # directory ultimately in CPPFLAGS will be enough.
11543 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11544 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11547 CPPFLAGS
=$OLD_CPPFLAGS
11552 ### Is -lXaw3d available?
11554 if test "${HAVE_X11}" = "yes"; then
11555 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11556 echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11557 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6
11558 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 cat >conftest.
$ac_ext <<_ACEOF
11564 cat confdefs.h
>>conftest.
$ac_ext
11565 cat >>conftest.
$ac_ext <<_ACEOF
11566 /* end confdefs.h. */
11567 #include <X11/Xaw3d/Scrollbar.h>
11569 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11570 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11572 grep -v '^ *+' conftest.er1
>conftest.err
11574 cat conftest.err
>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); } >/dev
/null
; then
11577 if test -s conftest.err
; then
11578 ac_cpp_err
=$ac_c_preproc_warn_flag
11579 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11586 if test -z "$ac_cpp_err"; then
11587 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.
$ac_ext >&5
11592 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11594 rm -f conftest.err conftest.
$ac_ext
11596 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11597 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6
11598 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11599 echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11600 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6
11601 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 ac_check_lib_save_LIBS
=$LIBS
11605 LIBS
="-lXaw3d $LIBS"
11606 cat >conftest.
$ac_ext <<_ACEOF
11609 cat confdefs.h
>>conftest.
$ac_ext
11610 cat >>conftest.
$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11613 /* Override any gcc2 internal prototype to avoid an error. */
11617 /* We use char because int might match the return type of a gcc2
11618 builtin and then its argument prototype would still apply. */
11619 char XawScrollbarSetThumb ();
11623 XawScrollbarSetThumb ();
11628 rm -f conftest.
$ac_objext conftest
$ac_exeext
11629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11630 (eval $ac_link) 2>conftest.er1
11632 grep -v '^ *+' conftest.er1
>conftest.err
11634 cat conftest.err
>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try
='test -z "$ac_c_werror_flag"
11638 || test ! -s conftest.err'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; } &&
11644 { ac_try
='test -s conftest$ac_exeext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.
$ac_ext >&5
11655 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
11657 rm -f conftest.err conftest.
$ac_objext \
11658 conftest
$ac_exeext conftest.
$ac_ext
11659 LIBS
=$ac_check_lib_save_LIBS
11661 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11662 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6
11663 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11670 if test "${HAVE_XAW3D}" = "yes"; then
11672 cat >>confdefs.h
<<\_ACEOF
11673 #define HAVE_XAW3D 1
11682 USE_TOOLKIT_SCROLL_BARS
=no
11683 if test "${with_toolkit_scroll_bars}" != "no"; then
11684 if test "${USE_X_TOOLKIT}" != "none"; then
11685 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11686 cat >>confdefs.h
<<\_ACEOF
11687 #define USE_TOOLKIT_SCROLL_BARS 1
11691 USE_TOOLKIT_SCROLL_BARS
=yes
11692 elif test "${HAVE_XAW3D}" = "yes"; then
11693 cat >>confdefs.h
<<\_ACEOF
11694 #define USE_TOOLKIT_SCROLL_BARS 1
11697 USE_TOOLKIT_SCROLL_BARS
=yes
11699 elif test "${HAVE_GTK}" = "yes"; then
11700 cat >>confdefs.h
<<\_ACEOF
11701 #define USE_TOOLKIT_SCROLL_BARS 1
11704 USE_TOOLKIT_SCROLL_BARS
=yes
11705 elif test "${HAVE_CARBON}" = "yes"; then
11706 cat >>confdefs.h
<<\_ACEOF
11707 #define USE_TOOLKIT_SCROLL_BARS 1
11710 USE_TOOLKIT_SCROLL_BARS
=yes
11714 cat >conftest.
$ac_ext <<_ACEOF
11717 cat confdefs.h
>>conftest.
$ac_ext
11718 cat >>conftest.
$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11721 #include <X11/Xlib.h>
11722 #include <X11/Xresource.h>
11731 rm -f conftest.
$ac_objext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>conftest.er1
11735 grep -v '^ *+' conftest.er1
>conftest.err
11737 cat conftest.err
>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try
='test -z "$ac_c_werror_flag"
11741 || test ! -s conftest.err'
11742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11743 (eval $ac_try) 2>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); }; } &&
11747 { ac_try
='test -s conftest.$ac_objext'
11748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11749 (eval $ac_try) 2>&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); }; }; then
11755 cat >>confdefs.h
<<\_ACEOF
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.
$ac_ext >&5
11765 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11768 if test "${with_xim}" != "no"; then
11770 cat >>confdefs.h
<<\_ACEOF
11777 if test "${HAVE_XIM}" != "no"; then
11778 late_CFLAGS
=$CFLAGS
11779 if test "$GCC" = yes; then
11780 CFLAGS
="$CFLAGS --pedantic-errors"
11782 cat >conftest.
$ac_ext <<_ACEOF
11785 cat confdefs.h
>>conftest.
$ac_ext
11786 cat >>conftest.
$ac_ext <<_ACEOF
11787 /* end confdefs.h. */
11789 #include <X11/Xlib.h>
11790 #include <X11/Xresource.h>
11799 XPointer *client_data;
11801 /* If we're not using GCC, it's probably not XFree86, and this is
11802 probably right, but we can't use something like --pedantic-errors. */
11803 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11804 char*, XIMProc, XPointer*);
11806 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11812 rm -f conftest.
$ac_objext
11813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11814 (eval $ac_compile) 2>conftest.er1
11816 grep -v '^ *+' conftest.er1
>conftest.err
11818 cat conftest.err
>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } &&
11821 { ac_try
='test -z "$ac_c_werror_flag"
11822 || test ! -s conftest.err'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; } &&
11828 { ac_try
='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 emacs_cv_arg6_star
=yes
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.
$ac_ext >&5
11840 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11842 if test "$emacs_cv_arg6_star" = yes; then
11843 cat >>confdefs.h
<<\_ACEOF
11844 #define XRegisterIMInstantiateCallback_arg6 XPointer*
11848 cat >>confdefs.h
<<\_ACEOF
11849 #define XRegisterIMInstantiateCallback_arg6 XPointer
11853 CFLAGS
=$late_CFLAGS
11856 ### For font-backend
11857 if test "${USE_FONT_BACKEND}" = "yes"; then
11860 cat >>confdefs.h
<<\_ACEOF
11861 #define USE_FONT_BACKEND 1
11865 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
11867 if test "${HAVE_X11}" = "yes"; then
11868 if test "x${with_freetype}" = "xno"; then
11871 if test "x${with_xft}" != "xno"; then
11873 if test "X${with_pkg_config_prog}" != X
; then
11874 PKG_CONFIG
="${with_pkg_config_prog}"
11880 if test -z "$PKG_CONFIG"; then
11881 # Extract the first word of "pkg-config", so it can be a program name with args.
11882 set dummy pkg-config
; ac_word
=$2
11883 echo "$as_me:$LINENO: checking for $ac_word" >&5
11884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11885 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11886 echo $ECHO_N "(cached) $ECHO_C" >&6
11888 case $PKG_CONFIG in
11890 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11894 for as_dir
in $PATH
11897 test -z "$as_dir" && as_dir
=.
11898 for ac_exec_ext
in '' $ac_executable_extensions; do
11899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11900 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11907 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11911 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11913 if test -n "$PKG_CONFIG"; then
11914 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11915 echo "${ECHO_T}$PKG_CONFIG" >&6
11917 echo "$as_me:$LINENO: result: no" >&5
11918 echo "${ECHO_T}no" >&6
11923 if test "$PKG_CONFIG" = "no" ; then
11924 echo "*** The pkg-config script could not be found. Make sure it is"
11925 echo "*** in your path, or give the full path to pkg-config with"
11926 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
11927 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
11929 PKG_CONFIG_MIN_VERSION
=0.9.0
11930 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11931 echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11932 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6
11934 if $PKG_CONFIG --exists "xft >= 0.13.0" ; then
11935 echo "$as_me:$LINENO: result: yes" >&5
11936 echo "${ECHO_T}yes" >&6
11939 echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11940 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6
11941 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
11942 echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11943 echo "${ECHO_T}$XFT_CFLAGS" >&6
11945 echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11946 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6
11947 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"`
11948 echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11949 echo "${ECHO_T}$XFT_LIBS" >&6
11953 ## If we have a custom action on failure, don't print errors, but
11954 ## do set a variable so people can do so.
11955 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11962 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11963 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11967 if test $succeeded = yes; then
11973 if test "$HAVE_XFT" != no
; then
11974 OLD_CPPFLAGS
="$CPPFLAGS"
11975 OLD_CFLAGS
="$CFLAGS"
11977 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11978 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11979 LIBS
="$XFT_LIBS $LIBS"
11980 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11981 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11982 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
11983 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11987 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
11989 # Is the header compilable?
11990 echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11991 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6
11992 cat >conftest.
$ac_ext <<_ACEOF
11995 cat confdefs.h
>>conftest.
$ac_ext
11996 cat >>conftest.
$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 $ac_includes_default
11999 #include <X11/Xft/Xft.h>
12001 rm -f conftest.
$ac_objext
12002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12003 (eval $ac_compile) 2>conftest.er1
12005 grep -v '^ *+' conftest.er1
>conftest.err
12007 cat conftest.err
>&5
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); } &&
12010 { ac_try
='test -z "$ac_c_werror_flag"
12011 || test ! -s conftest.err'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try
='test -s conftest.$ac_objext'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 ac_header_compiler
=yes
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.
$ac_ext >&5
12028 ac_header_compiler
=no
12030 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12031 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12032 echo "${ECHO_T}$ac_header_compiler" >&6
12034 # Is the header present?
12035 echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12036 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6
12037 cat >conftest.
$ac_ext <<_ACEOF
12040 cat confdefs.h
>>conftest.
$ac_ext
12041 cat >>conftest.
$ac_ext <<_ACEOF
12042 /* end confdefs.h. */
12043 #include <X11/Xft/Xft.h>
12045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12046 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12048 grep -v '^ *+' conftest.er1
>conftest.err
12050 cat conftest.err
>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } >/dev
/null
; then
12053 if test -s conftest.err
; then
12054 ac_cpp_err
=$ac_c_preproc_warn_flag
12055 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12062 if test -z "$ac_cpp_err"; then
12063 ac_header_preproc
=yes
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.
$ac_ext >&5
12068 ac_header_preproc
=no
12070 rm -f conftest.err conftest.
$ac_ext
12071 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12072 echo "${ECHO_T}$ac_header_preproc" >&6
12074 # So? What about this header?
12075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12077 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12078 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12079 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12080 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12081 ac_header_preproc
=yes
12084 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12085 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12086 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12087 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12088 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12089 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12090 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12091 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12092 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12093 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12095 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12098 ## ------------------------------------------ ##
12099 ## Report this to the AC_PACKAGE_NAME lists. ##
12100 ## ------------------------------------------ ##
12103 sed "s/^/$as_me: WARNING: /" >&2
12106 echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12107 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6
12108 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12113 echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12114 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6
12117 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12118 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12119 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
12120 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 ac_check_lib_save_LIBS
=$LIBS
12124 LIBS
="-lXft $XFT_LIBS $LIBS"
12125 cat >conftest.
$ac_ext <<_ACEOF
12128 cat confdefs.h
>>conftest.
$ac_ext
12129 cat >>conftest.
$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12132 /* Override any gcc2 internal prototype to avoid an error. */
12136 /* We use char because int might match the return type of a gcc2
12137 builtin and then its argument prototype would still apply. */
12138 char XftFontOpen ();
12147 rm -f conftest.
$ac_objext conftest
$ac_exeext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12149 (eval $ac_link) 2>conftest.er1
12151 grep -v '^ *+' conftest.er1
>conftest.err
12153 cat conftest.err
>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } &&
12156 { ac_try
='test -z "$ac_c_werror_flag"
12157 || test ! -s conftest.err'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; } &&
12163 { ac_try
='test -s conftest$ac_exeext'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 ac_cv_lib_Xft_XftFontOpen
=yes
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.
$ac_ext >&5
12174 ac_cv_lib_Xft_XftFontOpen
=no
12176 rm -f conftest.err conftest.
$ac_objext \
12177 conftest
$ac_exeext conftest.
$ac_ext
12178 LIBS
=$ac_check_lib_save_LIBS
12180 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12181 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
12182 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12190 if test "${HAVE_XFT}" = "yes"; then
12192 cat >>confdefs.h
<<\_ACEOF
12197 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12199 CFLAGS
="$OLD_CPPFLAGS"
12200 CFLAGS
="$OLD_CFLAGS"
12208 ### Use -lfreetype if available, unless `--with-freetype=no'.
12209 if test "${HAVE_XFT}" = "yes"; then
12211 elif test "x${with_freetype}" != "xno"; then
12212 if test "X${with_pkg_config_prog}" != X
; then
12213 PKG_CONFIG
="${with_pkg_config_prog}"
12219 if test -z "$PKG_CONFIG"; then
12220 # Extract the first word of "pkg-config", so it can be a program name with args.
12221 set dummy pkg-config
; ac_word
=$2
12222 echo "$as_me:$LINENO: checking for $ac_word" >&5
12223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12224 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12225 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 case $PKG_CONFIG in
12229 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12233 for as_dir
in $PATH
12236 test -z "$as_dir" && as_dir
=.
12237 for ac_exec_ext
in '' $ac_executable_extensions; do
12238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12239 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12246 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12250 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12252 if test -n "$PKG_CONFIG"; then
12253 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12254 echo "${ECHO_T}$PKG_CONFIG" >&6
12256 echo "$as_me:$LINENO: result: no" >&5
12257 echo "${ECHO_T}no" >&6
12262 if test "$PKG_CONFIG" = "no" ; then
12263 echo "*** The pkg-config script could not be found. Make sure it is"
12264 echo "*** in your path, or give the full path to pkg-config with"
12265 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12266 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12268 PKG_CONFIG_MIN_VERSION
=0.9.0
12269 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12270 echo "$as_me:$LINENO: checking for freetype2" >&5
12271 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6
12273 if $PKG_CONFIG --exists "freetype2" ; then
12274 echo "$as_me:$LINENO: result: yes" >&5
12275 echo "${ECHO_T}yes" >&6
12278 echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12279 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6
12280 FREETYPE_CFLAGS
=`$PKG_CONFIG --cflags "freetype2"`
12281 echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12282 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6
12284 echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12285 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6
12286 FREETYPE_LIBS
=`$PKG_CONFIG --libs "freetype2"`
12287 echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12288 echo "${ECHO_T}$FREETYPE_LIBS" >&6
12292 ## If we have a custom action on failure, don't print errors, but
12293 ## do set a variable so people can do so.
12294 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12301 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12302 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12306 if test $succeeded = yes; then
12312 if test "${HAVE_FREETYPE}" = "yes"; then
12316 if test -z "$PKG_CONFIG"; then
12317 # Extract the first word of "pkg-config", so it can be a program name with args.
12318 set dummy pkg-config
; ac_word
=$2
12319 echo "$as_me:$LINENO: checking for $ac_word" >&5
12320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12321 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 case $PKG_CONFIG in
12326 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12330 for as_dir
in $PATH
12333 test -z "$as_dir" && as_dir
=.
12334 for ac_exec_ext
in '' $ac_executable_extensions; do
12335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12336 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12343 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12347 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12349 if test -n "$PKG_CONFIG"; then
12350 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12351 echo "${ECHO_T}$PKG_CONFIG" >&6
12353 echo "$as_me:$LINENO: result: no" >&5
12354 echo "${ECHO_T}no" >&6
12359 if test "$PKG_CONFIG" = "no" ; then
12360 echo "*** The pkg-config script could not be found. Make sure it is"
12361 echo "*** in your path, or give the full path to pkg-config with"
12362 echo "*** the PKG_CONFIG environment variable or --with-pkg-config-prog."
12363 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
12365 PKG_CONFIG_MIN_VERSION
=0.9.0
12366 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12367 echo "$as_me:$LINENO: checking for fontconfig" >&5
12368 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6
12370 if $PKG_CONFIG --exists "fontconfig" ; then
12371 echo "$as_me:$LINENO: result: yes" >&5
12372 echo "${ECHO_T}yes" >&6
12375 echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12376 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6
12377 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"`
12378 echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12379 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6
12381 echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12382 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6
12383 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"`
12384 echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12385 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6
12387 FONTCONFIG_CFLAGS
=""
12389 ## If we have a custom action on failure, don't print errors, but
12390 ## do set a variable so people can do so.
12391 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12398 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12399 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12403 if test $succeeded = yes; then
12409 if test "${HAVE_FC}" = "no"; then
12414 if test "${HAVE_FREETYPE}" = "yes"; then
12416 cat >>confdefs.h
<<\_ACEOF
12417 #define HAVE_FREETYPE 1
12420 # Extract the first word of "libotf-config", so it can be a program name with args.
12421 set dummy libotf-config
; ac_word
=$2
12422 echo "$as_me:$LINENO: checking for $ac_word" >&5
12423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12424 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 if test -n "$HAVE_LIBOTF"; then
12428 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
12430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12431 for as_dir
in $PATH
12434 test -z "$as_dir" && as_dir
=.
12435 for ac_exec_ext
in '' $ac_executable_extensions; do
12436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12437 ac_cv_prog_HAVE_LIBOTF
="yes"
12438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12444 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
12447 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
12448 if test -n "$HAVE_LIBOTF"; then
12449 echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
12450 echo "${ECHO_T}$HAVE_LIBOTF" >&6
12452 echo "$as_me:$LINENO: result: no" >&5
12453 echo "${ECHO_T}no" >&6
12456 if test "${HAVE_LIBOTF}" = "yes"; then
12458 cat >>confdefs.h
<<\_ACEOF
12459 #define HAVE_LIBOTF 1
12462 LIBOTF_CFLAGS
=`libotf-config --cflags`
12463 LIBOTF_LIBS
=`libotf-config --libs`
12475 ### Use -lXpm if available, unless `--with-xpm=no'.
12477 if test "${HAVE_X11}" = "yes"; then
12478 if test "${with_xpm}" != "no"; then
12479 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12480 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12481 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12482 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12486 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12488 # Is the header compilable?
12489 echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12490 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6
12491 cat >conftest.
$ac_ext <<_ACEOF
12494 cat confdefs.h
>>conftest.
$ac_ext
12495 cat >>conftest.
$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 $ac_includes_default
12498 #include <X11/xpm.h>
12500 rm -f conftest.
$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>conftest.er1
12504 grep -v '^ *+' conftest.er1
>conftest.err
12506 cat conftest.err
>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try
='test -z "$ac_c_werror_flag"
12510 || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try
='test -s conftest.$ac_objext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_header_compiler
=yes
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.
$ac_ext >&5
12527 ac_header_compiler
=no
12529 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12531 echo "${ECHO_T}$ac_header_compiler" >&6
12533 # Is the header present?
12534 echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12535 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6
12536 cat >conftest.
$ac_ext <<_ACEOF
12539 cat confdefs.h
>>conftest.
$ac_ext
12540 cat >>conftest.
$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12542 #include <X11/xpm.h>
12544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12545 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12547 grep -v '^ *+' conftest.er1
>conftest.err
12549 cat conftest.err
>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } >/dev
/null
; then
12552 if test -s conftest.err
; then
12553 ac_cpp_err
=$ac_c_preproc_warn_flag
12554 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12561 if test -z "$ac_cpp_err"; then
12562 ac_header_preproc
=yes
12564 echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.
$ac_ext >&5
12567 ac_header_preproc
=no
12569 rm -f conftest.err conftest.
$ac_ext
12570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12571 echo "${ECHO_T}$ac_header_preproc" >&6
12573 # So? What about this header?
12574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12576 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12577 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12578 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12579 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12580 ac_header_preproc
=yes
12583 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12584 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12585 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12586 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12588 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12590 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12591 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12592 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12593 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12594 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12597 ## ------------------------------------------ ##
12598 ## Report this to the AC_PACKAGE_NAME lists. ##
12599 ## ------------------------------------------ ##
12602 sed "s/^/$as_me: WARNING: /" >&2
12605 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12606 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
12607 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12612 echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12613 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6
12616 if test $ac_cv_header_X11_xpm_h = yes; then
12617 echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12618 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6
12619 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12620 echo $ECHO_N "(cached) $ECHO_C" >&6
12622 ac_check_lib_save_LIBS
=$LIBS
12623 LIBS
="-lXpm -lX11 $LIBS"
12624 cat >conftest.
$ac_ext <<_ACEOF
12627 cat confdefs.h
>>conftest.
$ac_ext
12628 cat >>conftest.
$ac_ext <<_ACEOF
12629 /* end confdefs.h. */
12631 /* Override any gcc2 internal prototype to avoid an error. */
12635 /* We use char because int might match the return type of a gcc2
12636 builtin and then its argument prototype would still apply. */
12637 char XpmReadFileToPixmap ();
12641 XpmReadFileToPixmap ();
12646 rm -f conftest.
$ac_objext conftest
$ac_exeext
12647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12648 (eval $ac_link) 2>conftest.er1
12650 grep -v '^ *+' conftest.er1
>conftest.err
12652 cat conftest.err
>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try
='test -z "$ac_c_werror_flag"
12656 || test ! -s conftest.err'
12657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12658 (eval $ac_try) 2>&5
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); }; } &&
12662 { ac_try
='test -s conftest$ac_exeext'
12663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12664 (eval $ac_try) 2>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; }; then
12668 ac_cv_lib_Xpm_XpmReadFileToPixmap
=yes
12670 echo "$as_me: failed program was:" >&5
12671 sed 's/^/| /' conftest.
$ac_ext >&5
12673 ac_cv_lib_Xpm_XpmReadFileToPixmap
=no
12675 rm -f conftest.err conftest.
$ac_objext \
12676 conftest
$ac_exeext conftest.
$ac_ext
12677 LIBS
=$ac_check_lib_save_LIBS
12679 echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12680 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6
12681 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12688 if test "${HAVE_XPM}" = "yes"; then
12689 echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12690 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6
12691 cat >conftest.
$ac_ext <<_ACEOF
12694 cat confdefs.h
>>conftest.
$ac_ext
12695 cat >>conftest.
$ac_ext <<_ACEOF
12696 /* end confdefs.h. */
12697 #include "X11/xpm.h"
12698 #ifndef XpmReturnAllocPixels
12699 no_return_alloc_pixels
12703 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12704 $EGREP "no_return_alloc_pixels" >/dev
/null
2>&1; then
12712 if test "${HAVE_XPM}" = "yes"; then
12713 echo "$as_me:$LINENO: result: yes" >&5
12714 echo "${ECHO_T}yes" >&6
12716 echo "$as_me:$LINENO: result: no" >&5
12717 echo "${ECHO_T}no" >&6
12722 if test "${HAVE_XPM}" = "yes"; then
12724 cat >>confdefs.h
<<\_ACEOF
12731 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12733 if test "${HAVE_X11}" = "yes"; then
12734 if test "${with_jpeg}" != "no"; then
12735 if test "${ac_cv_header_jerror_h+set}" = set; then
12736 echo "$as_me:$LINENO: checking for jerror.h" >&5
12737 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12738 if test "${ac_cv_header_jerror_h+set}" = set; then
12739 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12742 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12744 # Is the header compilable?
12745 echo "$as_me:$LINENO: checking jerror.h usability" >&5
12746 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6
12747 cat >conftest.
$ac_ext <<_ACEOF
12750 cat confdefs.h
>>conftest.
$ac_ext
12751 cat >>conftest.
$ac_ext <<_ACEOF
12752 /* end confdefs.h. */
12753 $ac_includes_default
12754 #include <jerror.h>
12756 rm -f conftest.
$ac_objext
12757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12758 (eval $ac_compile) 2>conftest.er1
12760 grep -v '^ *+' conftest.er1
>conftest.err
12762 cat conftest.err
>&5
12763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764 (exit $ac_status); } &&
12765 { ac_try
='test -z "$ac_c_werror_flag"
12766 || test ! -s conftest.err'
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; } &&
12772 { ac_try
='test -s conftest.$ac_objext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 ac_header_compiler
=yes
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.
$ac_ext >&5
12783 ac_header_compiler
=no
12785 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12786 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12787 echo "${ECHO_T}$ac_header_compiler" >&6
12789 # Is the header present?
12790 echo "$as_me:$LINENO: checking jerror.h presence" >&5
12791 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6
12792 cat >conftest.
$ac_ext <<_ACEOF
12795 cat confdefs.h
>>conftest.
$ac_ext
12796 cat >>conftest.
$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12798 #include <jerror.h>
12800 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12801 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
12803 grep -v '^ *+' conftest.er1
>conftest.err
12805 cat conftest.err
>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); } >/dev
/null
; then
12808 if test -s conftest.err
; then
12809 ac_cpp_err
=$ac_c_preproc_warn_flag
12810 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12817 if test -z "$ac_cpp_err"; then
12818 ac_header_preproc
=yes
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.
$ac_ext >&5
12823 ac_header_preproc
=no
12825 rm -f conftest.err conftest.
$ac_ext
12826 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12827 echo "${ECHO_T}$ac_header_preproc" >&6
12829 # So? What about this header?
12830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12832 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12833 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12834 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12835 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12836 ac_header_preproc
=yes
12839 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12840 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12842 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12844 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12846 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12848 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12850 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12853 ## ------------------------------------------ ##
12854 ## Report this to the AC_PACKAGE_NAME lists. ##
12855 ## ------------------------------------------ ##
12858 sed "s/^/$as_me: WARNING: /" >&2
12861 echo "$as_me:$LINENO: checking for jerror.h" >&5
12862 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6
12863 if test "${ac_cv_header_jerror_h+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12866 ac_cv_header_jerror_h
=$ac_header_preproc
12868 echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12869 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6
12872 if test $ac_cv_header_jerror_h = yes; then
12873 echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12874 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6
12875 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12876 echo $ECHO_N "(cached) $ECHO_C" >&6
12878 ac_check_lib_save_LIBS
=$LIBS
12879 LIBS
="-ljpeg $LIBS"
12880 cat >conftest.
$ac_ext <<_ACEOF
12883 cat confdefs.h
>>conftest.
$ac_ext
12884 cat >>conftest.
$ac_ext <<_ACEOF
12885 /* end confdefs.h. */
12887 /* Override any gcc2 internal prototype to avoid an error. */
12891 /* We use char because int might match the return type of a gcc2
12892 builtin and then its argument prototype would still apply. */
12893 char jpeg_destroy_compress ();
12897 jpeg_destroy_compress ();
12902 rm -f conftest.
$ac_objext conftest
$ac_exeext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12904 (eval $ac_link) 2>conftest.er1
12906 grep -v '^ *+' conftest.er1
>conftest.err
12908 cat conftest.err
>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try
='test -z "$ac_c_werror_flag"
12912 || test ! -s conftest.err'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; } &&
12918 { ac_try
='test -s conftest$ac_exeext'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12924 ac_cv_lib_jpeg_jpeg_destroy_compress
=yes
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.
$ac_ext >&5
12929 ac_cv_lib_jpeg_jpeg_destroy_compress
=no
12931 rm -f conftest.err conftest.
$ac_objext \
12932 conftest
$ac_exeext conftest.
$ac_ext
12933 LIBS
=$ac_check_lib_save_LIBS
12935 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12936 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6
12937 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12947 if test "${HAVE_JPEG}" = "yes"; then
12948 cat >>confdefs.h
<<\_ACEOF
12949 #define HAVE_JPEG 1
12952 cat >conftest.
$ac_ext <<_ACEOF
12955 cat confdefs.h
>>conftest.
$ac_ext
12956 cat >>conftest.
$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12958 #include <jpeglib.h>
12959 version=JPEG_LIB_VERSION
12962 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12963 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev
/null
2>&1; then
12964 cat >>confdefs.h
<<\_ACEOF
12965 #define HAVE_JPEG 1
12969 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12970 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12978 ### Use -lpng if available, unless `--with-png=no'.
12980 if test "${HAVE_X11}" = "yes"; then
12981 if test "${with_png}" != "no"; then
12982 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12983 # in /usr/include/libpng.
12986 for ac_header
in png.h libpng
/png.h
12988 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12990 echo "$as_me:$LINENO: checking for $ac_header" >&5
12991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12992 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12993 echo $ECHO_N "(cached) $ECHO_C" >&6
12995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12998 # Is the header compilable?
12999 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13000 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13001 cat >conftest.
$ac_ext <<_ACEOF
13004 cat confdefs.h
>>conftest.
$ac_ext
13005 cat >>conftest.
$ac_ext <<_ACEOF
13006 /* end confdefs.h. */
13007 $ac_includes_default
13008 #include <$ac_header>
13010 rm -f conftest.
$ac_objext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012 (eval $ac_compile) 2>conftest.er1
13014 grep -v '^ *+' conftest.er1
>conftest.err
13016 cat conftest.err
>&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try
='test -z "$ac_c_werror_flag"
13020 || test ! -s conftest.err'
13021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13022 (eval $ac_try) 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try
='test -s conftest.$ac_objext'
13027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13028 (eval $ac_try) 2>&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); }; }; then
13032 ac_header_compiler
=yes
13034 echo "$as_me: failed program was:" >&5
13035 sed 's/^/| /' conftest.
$ac_ext >&5
13037 ac_header_compiler
=no
13039 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13040 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13041 echo "${ECHO_T}$ac_header_compiler" >&6
13043 # Is the header present?
13044 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13046 cat >conftest.
$ac_ext <<_ACEOF
13049 cat confdefs.h
>>conftest.
$ac_ext
13050 cat >>conftest.
$ac_ext <<_ACEOF
13051 /* end confdefs.h. */
13052 #include <$ac_header>
13054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13055 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13057 grep -v '^ *+' conftest.er1
>conftest.err
13059 cat conftest.err
>&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } >/dev
/null
; then
13062 if test -s conftest.err
; then
13063 ac_cpp_err
=$ac_c_preproc_warn_flag
13064 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13071 if test -z "$ac_cpp_err"; then
13072 ac_header_preproc
=yes
13074 echo "$as_me: failed program was:" >&5
13075 sed 's/^/| /' conftest.
$ac_ext >&5
13077 ac_header_preproc
=no
13079 rm -f conftest.err conftest.
$ac_ext
13080 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13081 echo "${ECHO_T}$ac_header_preproc" >&6
13083 # So? What about this header?
13084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13090 ac_header_preproc
=yes
13093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13107 ## ------------------------------------------ ##
13108 ## Report this to the AC_PACKAGE_NAME lists. ##
13109 ## ------------------------------------------ ##
13112 sed "s/^/$as_me: WARNING: /" >&2
13115 echo "$as_me:$LINENO: checking for $ac_header" >&5
13116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13120 eval "$as_ac_Header=\$ac_header_preproc"
13122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13123 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13127 cat >>confdefs.h
<<_ACEOF
13128 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13135 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13136 echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13137 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6
13138 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13139 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 ac_check_lib_save_LIBS
=$LIBS
13142 LIBS
="-lpng -lz -lm $LIBS"
13143 cat >conftest.
$ac_ext <<_ACEOF
13146 cat confdefs.h
>>conftest.
$ac_ext
13147 cat >>conftest.
$ac_ext <<_ACEOF
13148 /* end confdefs.h. */
13150 /* Override any gcc2 internal prototype to avoid an error. */
13154 /* We use char because int might match the return type of a gcc2
13155 builtin and then its argument prototype would still apply. */
13156 char png_get_channels ();
13160 png_get_channels ();
13165 rm -f conftest.
$ac_objext conftest
$ac_exeext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13167 (eval $ac_link) 2>conftest.er1
13169 grep -v '^ *+' conftest.er1
>conftest.err
13171 cat conftest.err
>&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try
='test -z "$ac_c_werror_flag"
13175 || test ! -s conftest.err'
13176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13177 (eval $ac_try) 2>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); }; } &&
13181 { ac_try
='test -s conftest$ac_exeext'
13182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13183 (eval $ac_try) 2>&5
13185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); }; }; then
13187 ac_cv_lib_png_png_get_channels
=yes
13189 echo "$as_me: failed program was:" >&5
13190 sed 's/^/| /' conftest.
$ac_ext >&5
13192 ac_cv_lib_png_png_get_channels
=no
13194 rm -f conftest.err conftest.
$ac_objext \
13195 conftest
$ac_exeext conftest.
$ac_ext
13196 LIBS
=$ac_check_lib_save_LIBS
13198 echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13199 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6
13200 if test $ac_cv_lib_png_png_get_channels = yes; then
13207 if test "${HAVE_PNG}" = "yes"; then
13209 cat >>confdefs.h
<<\_ACEOF
13216 ### Use -ltiff if available, unless `--with-tiff=no'.
13218 if test "${HAVE_X11}" = "yes"; then
13219 if test "${with_tiff}" != "no"; then
13220 if test "${ac_cv_header_tiffio_h+set}" = set; then
13221 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13222 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13223 if test "${ac_cv_header_tiffio_h+set}" = set; then
13224 echo $ECHO_N "(cached) $ECHO_C" >&6
13226 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13227 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13229 # Is the header compilable?
13230 echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13231 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
13232 cat >conftest.
$ac_ext <<_ACEOF
13235 cat confdefs.h
>>conftest.
$ac_ext
13236 cat >>conftest.
$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13238 $ac_includes_default
13239 #include <tiffio.h>
13241 rm -f conftest.
$ac_objext
13242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13243 (eval $ac_compile) 2>conftest.er1
13245 grep -v '^ *+' conftest.er1
>conftest.err
13247 cat conftest.err
>&5
13248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13249 (exit $ac_status); } &&
13250 { ac_try
='test -z "$ac_c_werror_flag"
13251 || test ! -s conftest.err'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; } &&
13257 { ac_try
='test -s conftest.$ac_objext'
13258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13259 (eval $ac_try) 2>&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); }; }; then
13263 ac_header_compiler
=yes
13265 echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.
$ac_ext >&5
13268 ac_header_compiler
=no
13270 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13272 echo "${ECHO_T}$ac_header_compiler" >&6
13274 # Is the header present?
13275 echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13276 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
13277 cat >conftest.
$ac_ext <<_ACEOF
13280 cat confdefs.h
>>conftest.
$ac_ext
13281 cat >>conftest.
$ac_ext <<_ACEOF
13282 /* end confdefs.h. */
13283 #include <tiffio.h>
13285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13286 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13288 grep -v '^ *+' conftest.er1
>conftest.err
13290 cat conftest.err
>&5
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); } >/dev
/null
; then
13293 if test -s conftest.err
; then
13294 ac_cpp_err
=$ac_c_preproc_warn_flag
13295 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13302 if test -z "$ac_cpp_err"; then
13303 ac_header_preproc
=yes
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.
$ac_ext >&5
13308 ac_header_preproc
=no
13310 rm -f conftest.err conftest.
$ac_ext
13311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13312 echo "${ECHO_T}$ac_header_preproc" >&6
13314 # So? What about this header?
13315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13317 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13318 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13320 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13321 ac_header_preproc
=yes
13324 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13325 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13327 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13329 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13331 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13333 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13335 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13338 ## ------------------------------------------ ##
13339 ## Report this to the AC_PACKAGE_NAME lists. ##
13340 ## ------------------------------------------ ##
13343 sed "s/^/$as_me: WARNING: /" >&2
13346 echo "$as_me:$LINENO: checking for tiffio.h" >&5
13347 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
13348 if test "${ac_cv_header_tiffio_h+set}" = set; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 ac_cv_header_tiffio_h
=$ac_header_preproc
13353 echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13354 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
13357 if test $ac_cv_header_tiffio_h = yes; then
13359 # At least one tiff package requires the jpeg library.
13360 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13361 echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13362 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6
13363 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13364 echo $ECHO_N "(cached) $ECHO_C" >&6
13366 ac_check_lib_save_LIBS
=$LIBS
13367 LIBS
="-ltiff $tifflibs $LIBS"
13368 cat >conftest.
$ac_ext <<_ACEOF
13371 cat confdefs.h
>>conftest.
$ac_ext
13372 cat >>conftest.
$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13375 /* Override any gcc2 internal prototype to avoid an error. */
13379 /* We use char because int might match the return type of a gcc2
13380 builtin and then its argument prototype would still apply. */
13381 char TIFFGetVersion ();
13390 rm -f conftest.
$ac_objext conftest
$ac_exeext
13391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13392 (eval $ac_link) 2>conftest.er1
13394 grep -v '^ *+' conftest.er1
>conftest.err
13396 cat conftest.err
>&5
13397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13398 (exit $ac_status); } &&
13399 { ac_try
='test -z "$ac_c_werror_flag"
13400 || test ! -s conftest.err'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } &&
13406 { ac_try
='test -s conftest$ac_exeext'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 ac_cv_lib_tiff_TIFFGetVersion
=yes
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.
$ac_ext >&5
13417 ac_cv_lib_tiff_TIFFGetVersion
=no
13419 rm -f conftest.err conftest.
$ac_objext \
13420 conftest
$ac_exeext conftest.
$ac_ext
13421 LIBS
=$ac_check_lib_save_LIBS
13423 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13424 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6
13425 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13434 if test "${HAVE_TIFF}" = "yes"; then
13436 cat >>confdefs.h
<<\_ACEOF
13437 #define HAVE_TIFF 1
13443 ### Use -lgif if available, unless `--with-gif=no'.
13445 if test "${HAVE_X11}" = "yes"; then
13446 if test "${with_gif}" != "no"; then
13447 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13448 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13449 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13450 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13454 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13456 # Is the header compilable?
13457 echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13458 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6
13459 cat >conftest.
$ac_ext <<_ACEOF
13462 cat confdefs.h
>>conftest.
$ac_ext
13463 cat >>conftest.
$ac_ext <<_ACEOF
13464 /* end confdefs.h. */
13465 $ac_includes_default
13466 #include <gif_lib.h>
13468 rm -f conftest.
$ac_objext
13469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13470 (eval $ac_compile) 2>conftest.er1
13472 grep -v '^ *+' conftest.er1
>conftest.err
13474 cat conftest.err
>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } &&
13477 { ac_try
='test -z "$ac_c_werror_flag"
13478 || test ! -s conftest.err'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; } &&
13484 { ac_try
='test -s conftest.$ac_objext'
13485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13486 (eval $ac_try) 2>&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); }; }; then
13490 ac_header_compiler
=yes
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.
$ac_ext >&5
13495 ac_header_compiler
=no
13497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13499 echo "${ECHO_T}$ac_header_compiler" >&6
13501 # Is the header present?
13502 echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13503 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6
13504 cat >conftest.
$ac_ext <<_ACEOF
13507 cat confdefs.h
>>conftest.
$ac_ext
13508 cat >>conftest.
$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13510 #include <gif_lib.h>
13512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13513 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13515 grep -v '^ *+' conftest.er1
>conftest.err
13517 cat conftest.err
>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); } >/dev
/null
; then
13520 if test -s conftest.err
; then
13521 ac_cpp_err
=$ac_c_preproc_warn_flag
13522 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13529 if test -z "$ac_cpp_err"; then
13530 ac_header_preproc
=yes
13532 echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.
$ac_ext >&5
13535 ac_header_preproc
=no
13537 rm -f conftest.err conftest.
$ac_ext
13538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13539 echo "${ECHO_T}$ac_header_preproc" >&6
13541 # So? What about this header?
13542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13544 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13545 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13546 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13547 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13548 ac_header_preproc
=yes
13551 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13552 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13554 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13556 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13558 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13560 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13562 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13565 ## ------------------------------------------ ##
13566 ## Report this to the AC_PACKAGE_NAME lists. ##
13567 ## ------------------------------------------ ##
13570 sed "s/^/$as_me: WARNING: /" >&2
13573 echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13574 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6
13575 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13578 ac_cv_header_gif_lib_h
=$ac_header_preproc
13580 echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13581 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6
13584 if test $ac_cv_header_gif_lib_h = yes; then
13585 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13586 # Earlier versions can crash Emacs.
13587 echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13588 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6
13589 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13590 echo $ECHO_N "(cached) $ECHO_C" >&6
13592 ac_check_lib_save_LIBS
=$LIBS
13593 LIBS
="-lungif $LIBS"
13594 cat >conftest.
$ac_ext <<_ACEOF
13597 cat confdefs.h
>>conftest.
$ac_ext
13598 cat >>conftest.
$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13601 /* Override any gcc2 internal prototype to avoid an error. */
13605 /* We use char because int might match the return type of a gcc2
13606 builtin and then its argument prototype would still apply. */
13607 char EGifPutExtensionLast ();
13611 EGifPutExtensionLast ();
13616 rm -f conftest.
$ac_objext conftest
$ac_exeext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13618 (eval $ac_link) 2>conftest.er1
13620 grep -v '^ *+' conftest.er1
>conftest.err
13622 cat conftest.err
>&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } &&
13625 { ac_try
='test -z "$ac_c_werror_flag"
13626 || test ! -s conftest.err'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try
='test -s conftest$ac_exeext'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13638 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.
$ac_ext >&5
13643 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13645 rm -f conftest.err conftest.
$ac_objext \
13646 conftest
$ac_exeext conftest.
$ac_ext
13647 LIBS
=$ac_check_lib_save_LIBS
13649 echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13650 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6
13651 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13660 if test "${HAVE_GIF}" = "yes"; then
13662 cat >>confdefs.h
<<\_ACEOF
13669 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13670 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13671 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13672 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13675 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13676 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13678 # Is the header compilable?
13679 echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13680 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6
13681 cat >conftest.
$ac_ext <<_ACEOF
13684 cat confdefs.h
>>conftest.
$ac_ext
13685 cat >>conftest.
$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 $ac_includes_default
13688 #include <malloc/malloc.h>
13690 rm -f conftest.
$ac_objext
13691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13692 (eval $ac_compile) 2>conftest.er1
13694 grep -v '^ *+' conftest.er1
>conftest.err
13696 cat conftest.err
>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); } &&
13699 { ac_try
='test -z "$ac_c_werror_flag"
13700 || test ! -s conftest.err'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; } &&
13706 { ac_try
='test -s conftest.$ac_objext'
13707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13708 (eval $ac_try) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); }; }; then
13712 ac_header_compiler
=yes
13714 echo "$as_me: failed program was:" >&5
13715 sed 's/^/| /' conftest.
$ac_ext >&5
13717 ac_header_compiler
=no
13719 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13721 echo "${ECHO_T}$ac_header_compiler" >&6
13723 # Is the header present?
13724 echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13725 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6
13726 cat >conftest.
$ac_ext <<_ACEOF
13729 cat confdefs.h
>>conftest.
$ac_ext
13730 cat >>conftest.
$ac_ext <<_ACEOF
13731 /* end confdefs.h. */
13732 #include <malloc/malloc.h>
13734 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13735 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
13737 grep -v '^ *+' conftest.er1
>conftest.err
13739 cat conftest.err
>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } >/dev
/null
; then
13742 if test -s conftest.err
; then
13743 ac_cpp_err
=$ac_c_preproc_warn_flag
13744 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
13751 if test -z "$ac_cpp_err"; then
13752 ac_header_preproc
=yes
13754 echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.
$ac_ext >&5
13757 ac_header_preproc
=no
13759 rm -f conftest.err conftest.
$ac_ext
13760 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13761 echo "${ECHO_T}$ac_header_preproc" >&6
13763 # So? What about this header?
13764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13766 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13767 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13768 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13769 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13770 ac_header_preproc
=yes
13773 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13774 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13776 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13777 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13778 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13780 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13781 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13782 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13783 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13784 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13787 ## ------------------------------------------ ##
13788 ## Report this to the AC_PACKAGE_NAME lists. ##
13789 ## ------------------------------------------ ##
13792 sed "s/^/$as_me: WARNING: /" >&2
13795 echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13796 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6
13797 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 ac_cv_header_malloc_malloc_h
=$ac_header_preproc
13802 echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13803 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6
13806 if test $ac_cv_header_malloc_malloc_h = yes; then
13808 cat >>confdefs.h
<<\_ACEOF
13809 #define HAVE_MALLOC_MALLOC_H 1
13816 ### Use Mac OS X Carbon API to implement GUI.
13817 if test "${HAVE_CARBON}" = "yes"; then
13819 cat >>confdefs.h
<<\_ACEOF
13820 #define HAVE_CARBON 1
13823 ## Specify the install directory
13825 if test "${carbon_appdir_x}" != ""; then
13826 case ${carbon_appdir_x} in
13827 y | ye |
yes) carbon_appdir
=/Applications
;;
13828 * ) carbon_appdir
=${carbon_appdir_x} ;;
13831 # We also have mouse menus.
13834 tmp_CFLAGS
="$CFLAGS"
13835 CFLAGS
="$CFLAGS -framework Carbon"
13836 echo "$as_me:$LINENO: checking for CancelMenuTracking" >&5
13837 echo $ECHO_N "checking for CancelMenuTracking... $ECHO_C" >&6
13838 if test "${ac_cv_func_CancelMenuTracking+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 cat >conftest.
$ac_ext <<_ACEOF
13844 cat confdefs.h
>>conftest.
$ac_ext
13845 cat >>conftest.
$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847 /* Define CancelMenuTracking to an innocuous variant, in case <limits.h> declares CancelMenuTracking.
13848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13849 #define CancelMenuTracking innocuous_CancelMenuTracking
13851 /* System header to define __stub macros and hopefully few prototypes,
13852 which can conflict with char CancelMenuTracking (); below.
13853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13854 <limits.h> exists even on freestanding compilers. */
13857 # include <limits.h>
13859 # include <assert.h>
13862 #undef CancelMenuTracking
13864 /* Override any gcc2 internal prototype to avoid an error. */
13869 /* We use char because int might match the return type of a gcc2
13870 builtin and then its argument prototype would still apply. */
13871 char CancelMenuTracking ();
13872 /* The GNU C library defines this for functions which it implements
13873 to always fail with ENOSYS. Some functions are actually named
13874 something starting with __ and the normal name is an alias. */
13875 #if defined (__stub_CancelMenuTracking) || defined (__stub___CancelMenuTracking)
13878 char (*f) () = CancelMenuTracking;
13887 return f != CancelMenuTracking;
13892 rm -f conftest.
$ac_objext conftest
$ac_exeext
13893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13894 (eval $ac_link) 2>conftest.er1
13896 grep -v '^ *+' conftest.er1
>conftest.err
13898 cat conftest.err
>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); } &&
13901 { ac_try
='test -z "$ac_c_werror_flag"
13902 || test ! -s conftest.err'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; } &&
13908 { ac_try
='test -s conftest$ac_exeext'
13909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13910 (eval $ac_try) 2>&5
13912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); }; }; then
13914 ac_cv_func_CancelMenuTracking
=yes
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.
$ac_ext >&5
13919 ac_cv_func_CancelMenuTracking
=no
13921 rm -f conftest.err conftest.
$ac_objext \
13922 conftest
$ac_exeext conftest.
$ac_ext
13924 echo "$as_me:$LINENO: result: $ac_cv_func_CancelMenuTracking" >&5
13925 echo "${ECHO_T}$ac_cv_func_CancelMenuTracking" >&6
13926 if test $ac_cv_func_CancelMenuTracking = yes; then
13932 if test "$have_cmt" = yes; then
13934 cat >>confdefs.h
<<\_ACEOF
13935 #define HAVE_CANCELMENUTRACKING 1
13939 CFLAGS
="$tmp_CFLAGS"
13942 ### Use session management (-lSM -lICE) if available
13944 if test "${HAVE_X11}" = "yes"; then
13945 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13946 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13947 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
13948 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13952 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
13954 # Is the header compilable?
13955 echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13956 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6
13957 cat >conftest.
$ac_ext <<_ACEOF
13960 cat confdefs.h
>>conftest.
$ac_ext
13961 cat >>conftest.
$ac_ext <<_ACEOF
13962 /* end confdefs.h. */
13963 $ac_includes_default
13964 #include <X11/SM/SMlib.h>
13966 rm -f conftest.
$ac_objext
13967 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13968 (eval $ac_compile) 2>conftest.er1
13970 grep -v '^ *+' conftest.er1
>conftest.err
13972 cat conftest.err
>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } &&
13975 { ac_try
='test -z "$ac_c_werror_flag"
13976 || test ! -s conftest.err'
13977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13978 (eval $ac_try) 2>&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); }; } &&
13982 { ac_try
='test -s conftest.$ac_objext'
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; }; then
13988 ac_header_compiler
=yes
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.
$ac_ext >&5
13993 ac_header_compiler
=no
13995 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13996 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13997 echo "${ECHO_T}$ac_header_compiler" >&6
13999 # Is the header present?
14000 echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14001 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6
14002 cat >conftest.
$ac_ext <<_ACEOF
14005 cat confdefs.h
>>conftest.
$ac_ext
14006 cat >>conftest.
$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 #include <X11/SM/SMlib.h>
14010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14011 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
14013 grep -v '^ *+' conftest.er1
>conftest.err
14015 cat conftest.err
>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } >/dev
/null
; then
14018 if test -s conftest.err
; then
14019 ac_cpp_err
=$ac_c_preproc_warn_flag
14020 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
14027 if test -z "$ac_cpp_err"; then
14028 ac_header_preproc
=yes
14030 echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.
$ac_ext >&5
14033 ac_header_preproc
=no
14035 rm -f conftest.err conftest.
$ac_ext
14036 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14037 echo "${ECHO_T}$ac_header_preproc" >&6
14039 # So? What about this header?
14040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14042 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14043 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14045 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14046 ac_header_preproc
=yes
14049 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14050 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14052 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14054 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14056 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14058 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14060 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14063 ## ------------------------------------------ ##
14064 ## Report this to the AC_PACKAGE_NAME lists. ##
14065 ## ------------------------------------------ ##
14068 sed "s/^/$as_me: WARNING: /" >&2
14071 echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14072 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6
14073 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 ac_cv_header_X11_SM_SMlib_h
=$ac_header_preproc
14078 echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14079 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6
14082 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14083 echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14084 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6
14085 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14086 echo $ECHO_N "(cached) $ECHO_C" >&6
14088 ac_check_lib_save_LIBS
=$LIBS
14089 LIBS
="-lSM -lICE $LIBS"
14090 cat >conftest.
$ac_ext <<_ACEOF
14093 cat confdefs.h
>>conftest.
$ac_ext
14094 cat >>conftest.
$ac_ext <<_ACEOF
14095 /* end confdefs.h. */
14097 /* Override any gcc2 internal prototype to avoid an error. */
14101 /* We use char because int might match the return type of a gcc2
14102 builtin and then its argument prototype would still apply. */
14103 char SmcOpenConnection ();
14107 SmcOpenConnection ();
14112 rm -f conftest.
$ac_objext conftest
$ac_exeext
14113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14114 (eval $ac_link) 2>conftest.er1
14116 grep -v '^ *+' conftest.er1
>conftest.err
14118 cat conftest.err
>&5
14119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14120 (exit $ac_status); } &&
14121 { ac_try
='test -z "$ac_c_werror_flag"
14122 || test ! -s conftest.err'
14123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14124 (eval $ac_try) 2>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; } &&
14128 { ac_try
='test -s conftest$ac_exeext'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_cv_lib_SM_SmcOpenConnection
=yes
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.
$ac_ext >&5
14139 ac_cv_lib_SM_SmcOpenConnection
=no
14141 rm -f conftest.err conftest.
$ac_objext \
14142 conftest
$ac_exeext conftest.
$ac_ext
14143 LIBS
=$ac_check_lib_save_LIBS
14145 echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14146 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6
14147 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14155 if test "${HAVE_X_SM}" = "yes"; then
14157 cat >>confdefs.h
<<\_ACEOF
14158 #define HAVE_X_SM 1
14163 *) LIBS
="-lSM -lICE $LIBS" ;;
14168 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14169 echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14170 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6
14171 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14172 echo $ECHO_N "(cached) $ECHO_C" >&6
14174 cat >conftest.
$ac_ext <<_ACEOF
14177 cat confdefs.h
>>conftest.
$ac_ext
14178 cat >>conftest.
$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14189 rm -f conftest.
$ac_objext conftest
$ac_exeext
14190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14191 (eval $ac_link) 2>conftest.er1
14193 grep -v '^ *+' conftest.er1
>conftest.err
14195 cat conftest.err
>&5
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); } &&
14198 { ac_try
='test -z "$ac_c_werror_flag"
14199 || test ! -s conftest.err'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; } &&
14205 { ac_try
='test -s conftest$ac_exeext'
14206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207 (eval $ac_try) 2>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); }; }; then
14211 emacs_cv_netdb_declares_h_errno
=yes
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.
$ac_ext >&5
14216 emacs_cv_netdb_declares_h_errno
=no
14218 rm -f conftest.err conftest.
$ac_objext \
14219 conftest
$ac_exeext conftest.
$ac_ext
14221 echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14222 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6
14223 if test $emacs_cv_netdb_declares_h_errno = yes; then
14225 cat >>confdefs.h
<<\_ACEOF
14226 #define HAVE_H_ERRNO 1
14231 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14232 # for constant arguments. Useless!
14233 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14234 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14235 if test "${ac_cv_working_alloca_h+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 cat >conftest.
$ac_ext <<_ACEOF
14241 cat confdefs.h
>>conftest.
$ac_ext
14242 cat >>conftest.
$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 #include <alloca.h>
14248 char *p = (char *) alloca (2 * sizeof (int));
14253 rm -f conftest.
$ac_objext conftest
$ac_exeext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14255 (eval $ac_link) 2>conftest.er1
14257 grep -v '^ *+' conftest.er1
>conftest.err
14259 cat conftest.err
>&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try
='test -z "$ac_c_werror_flag"
14263 || test ! -s conftest.err'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try
='test -s conftest$ac_exeext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_working_alloca_h
=yes
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.
$ac_ext >&5
14280 ac_cv_working_alloca_h
=no
14282 rm -f conftest.err conftest.
$ac_objext \
14283 conftest
$ac_exeext conftest.
$ac_ext
14285 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14286 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14287 if test $ac_cv_working_alloca_h = yes; then
14289 cat >>confdefs.h
<<\_ACEOF
14290 #define HAVE_ALLOCA_H 1
14295 echo "$as_me:$LINENO: checking for alloca" >&5
14296 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14297 if test "${ac_cv_func_alloca_works+set}" = set; then
14298 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 cat >conftest.
$ac_ext <<_ACEOF
14303 cat confdefs.h
>>conftest.
$ac_ext
14304 cat >>conftest.
$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14307 # define alloca __builtin_alloca
14310 # include <malloc.h>
14311 # define alloca _alloca
14314 # include <alloca.h>
14319 # ifndef alloca /* predefined by HP cc +Olibcalls */
14330 char *p = (char *) alloca (1);
14335 rm -f conftest.
$ac_objext conftest
$ac_exeext
14336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14337 (eval $ac_link) 2>conftest.er1
14339 grep -v '^ *+' conftest.er1
>conftest.err
14341 cat conftest.err
>&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } &&
14344 { ac_try
='test -z "$ac_c_werror_flag"
14345 || test ! -s conftest.err'
14346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14347 (eval $ac_try) 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); }; } &&
14351 { ac_try
='test -s conftest$ac_exeext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 ac_cv_func_alloca_works
=yes
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.
$ac_ext >&5
14362 ac_cv_func_alloca_works
=no
14364 rm -f conftest.err conftest.
$ac_objext \
14365 conftest
$ac_exeext conftest.
$ac_ext
14367 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14368 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14370 if test $ac_cv_func_alloca_works = yes; then
14372 cat >>confdefs.h
<<\_ACEOF
14373 #define HAVE_ALLOCA 1
14377 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14378 # that cause trouble. Some versions do not even contain alloca or
14379 # contain a buggy version. If you still want to use their alloca,
14380 # use ar to extract alloca.o from them instead of compiling alloca.c.
14382 ALLOCA
=alloca.
$ac_objext
14384 cat >>confdefs.h
<<\_ACEOF
14389 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14390 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14391 if test "${ac_cv_os_cray+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14394 cat >conftest.
$ac_ext <<_ACEOF
14397 cat confdefs.h
>>conftest.
$ac_ext
14398 cat >>conftest.
$ac_ext <<_ACEOF
14399 /* end confdefs.h. */
14400 #if defined(CRAY) && ! defined(CRAY2)
14407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14408 $EGREP "webecray" >/dev
/null
2>&1; then
14416 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14417 echo "${ECHO_T}$ac_cv_os_cray" >&6
14418 if test $ac_cv_os_cray = yes; then
14419 for ac_func
in _getb67 GETB67 getb67
; do
14420 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14421 echo "$as_me:$LINENO: checking for $ac_func" >&5
14422 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14423 if eval "test \"\${$as_ac_var+set}\" = set"; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 cat >conftest.
$ac_ext <<_ACEOF
14429 cat confdefs.h
>>conftest.
$ac_ext
14430 cat >>conftest.
$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14432 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14434 #define $ac_func innocuous_$ac_func
14436 /* System header to define __stub macros and hopefully few prototypes,
14437 which can conflict with char $ac_func (); below.
14438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14439 <limits.h> exists even on freestanding compilers. */
14442 # include <limits.h>
14444 # include <assert.h>
14449 /* Override any gcc2 internal prototype to avoid an error. */
14454 /* We use char because int might match the return type of a gcc2
14455 builtin and then its argument prototype would still apply. */
14457 /* The GNU C library defines this for functions which it implements
14458 to always fail with ENOSYS. Some functions are actually named
14459 something starting with __ and the normal name is an alias. */
14460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14463 char (*f) () = $ac_func;
14472 return f != $ac_func;
14477 rm -f conftest.
$ac_objext conftest
$ac_exeext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14479 (eval $ac_link) 2>conftest.er1
14481 grep -v '^ *+' conftest.er1
>conftest.err
14483 cat conftest.err
>&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } &&
14486 { ac_try
='test -z "$ac_c_werror_flag"
14487 || test ! -s conftest.err'
14488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489 (eval $ac_try) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); }; } &&
14493 { ac_try
='test -s conftest$ac_exeext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14499 eval "$as_ac_var=yes"
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.
$ac_ext >&5
14504 eval "$as_ac_var=no"
14506 rm -f conftest.err conftest.
$ac_objext \
14507 conftest
$ac_exeext conftest.
$ac_ext
14509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14510 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14511 if test `eval echo '${'$as_ac_var'}'` = yes; then
14513 cat >>confdefs.h
<<_ACEOF
14514 #define CRAY_STACKSEG_END $ac_func
14523 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14524 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14525 if test "${ac_cv_c_stack_direction+set}" = set; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 if test "$cross_compiling" = yes; then
14529 ac_cv_c_stack_direction
=0
14531 cat >conftest.
$ac_ext <<_ACEOF
14534 cat confdefs.h
>>conftest.
$ac_ext
14535 cat >>conftest.
$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14538 find_stack_direction ()
14540 static char *addr = 0;
14545 return find_stack_direction ();
14548 return (&dummy > addr) ? 1 : -1;
14554 exit (find_stack_direction () < 0);
14557 rm -f conftest
$ac_exeext
14558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14559 (eval $ac_link) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
14563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14564 (eval $ac_try) 2>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 ac_cv_c_stack_direction
=1
14570 echo "$as_me: program exited with status $ac_status" >&5
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.
$ac_ext >&5
14574 ( exit $ac_status )
14575 ac_cv_c_stack_direction
=-1
14577 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
14580 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14581 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14583 cat >>confdefs.h
<<_ACEOF
14584 #define STACK_DIRECTION $ac_cv_c_stack_direction
14591 # fmod, logb, and frexp are found in -lm on most systems.
14592 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14594 echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14595 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
14596 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14597 echo $ECHO_N "(cached) $ECHO_C" >&6
14599 ac_check_lib_save_LIBS
=$LIBS
14601 cat >conftest.
$ac_ext <<_ACEOF
14604 cat confdefs.h
>>conftest.
$ac_ext
14605 cat >>conftest.
$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14608 /* Override any gcc2 internal prototype to avoid an error. */
14612 /* We use char because int might match the return type of a gcc2
14613 builtin and then its argument prototype would still apply. */
14623 rm -f conftest.
$ac_objext conftest
$ac_exeext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14625 (eval $ac_link) 2>conftest.er1
14627 grep -v '^ *+' conftest.er1
>conftest.err
14629 cat conftest.err
>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try
='test -z "$ac_c_werror_flag"
14633 || test ! -s conftest.err'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; } &&
14639 { ac_try
='test -s conftest$ac_exeext'
14640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641 (eval $ac_try) 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; }; then
14645 ac_cv_lib_m_sqrt
=yes
14647 echo "$as_me: failed program was:" >&5
14648 sed 's/^/| /' conftest.
$ac_ext >&5
14650 ac_cv_lib_m_sqrt
=no
14652 rm -f conftest.err conftest.
$ac_objext \
14653 conftest
$ac_exeext conftest.
$ac_ext
14654 LIBS
=$ac_check_lib_save_LIBS
14656 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14657 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
14658 if test $ac_cv_lib_m_sqrt = yes; then
14659 cat >>confdefs.h
<<_ACEOF
14660 #define HAVE_LIBM 1
14668 # Check for mail-locking functions in a "mail" library. Probably this should
14669 # have the same check as for liblockfile below.
14671 echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14672 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6
14673 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14674 echo $ECHO_N "(cached) $ECHO_C" >&6
14676 ac_check_lib_save_LIBS
=$LIBS
14677 LIBS
="-lmail $LIBS"
14678 cat >conftest.
$ac_ext <<_ACEOF
14681 cat confdefs.h
>>conftest.
$ac_ext
14682 cat >>conftest.
$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14685 /* Override any gcc2 internal prototype to avoid an error. */
14689 /* We use char because int might match the return type of a gcc2
14690 builtin and then its argument prototype would still apply. */
14700 rm -f conftest.
$ac_objext conftest
$ac_exeext
14701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14702 (eval $ac_link) 2>conftest.er1
14704 grep -v '^ *+' conftest.er1
>conftest.err
14706 cat conftest.err
>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
14709 { ac_try
='test -z "$ac_c_werror_flag"
14710 || test ! -s conftest.err'
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try
='test -s conftest$ac_exeext'
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_cv_lib_mail_maillock
=yes
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.
$ac_ext >&5
14727 ac_cv_lib_mail_maillock
=no
14729 rm -f conftest.err conftest.
$ac_objext \
14730 conftest
$ac_exeext conftest.
$ac_ext
14731 LIBS
=$ac_check_lib_save_LIBS
14733 echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14734 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6
14735 if test $ac_cv_lib_mail_maillock = yes; then
14736 cat >>confdefs.h
<<_ACEOF
14737 #define HAVE_LIBMAIL 1
14740 LIBS
="-lmail $LIBS"
14745 echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14746 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6
14747 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14748 echo $ECHO_N "(cached) $ECHO_C" >&6
14750 ac_check_lib_save_LIBS
=$LIBS
14751 LIBS
="-llockfile $LIBS"
14752 cat >conftest.
$ac_ext <<_ACEOF
14755 cat confdefs.h
>>conftest.
$ac_ext
14756 cat >>conftest.
$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14759 /* Override any gcc2 internal prototype to avoid an error. */
14763 /* We use char because int might match the return type of a gcc2
14764 builtin and then its argument prototype would still apply. */
14774 rm -f conftest.
$ac_objext conftest
$ac_exeext
14775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14776 (eval $ac_link) 2>conftest.er1
14778 grep -v '^ *+' conftest.er1
>conftest.err
14780 cat conftest.err
>&5
14781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782 (exit $ac_status); } &&
14783 { ac_try
='test -z "$ac_c_werror_flag"
14784 || test ! -s conftest.err'
14785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14786 (eval $ac_try) 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try
='test -s conftest$ac_exeext'
14791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14792 (eval $ac_try) 2>&5
14794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14795 (exit $ac_status); }; }; then
14796 ac_cv_lib_lockfile_maillock
=yes
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.
$ac_ext >&5
14801 ac_cv_lib_lockfile_maillock
=no
14803 rm -f conftest.err conftest.
$ac_objext \
14804 conftest
$ac_exeext conftest.
$ac_ext
14805 LIBS
=$ac_check_lib_save_LIBS
14807 echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14808 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6
14809 if test $ac_cv_lib_lockfile_maillock = yes; then
14810 cat >>confdefs.h
<<_ACEOF
14811 #define HAVE_LIBLOCKFILE 1
14814 LIBS
="-llockfile $LIBS"
14818 # If we have the shared liblockfile, assume we must use it for mail
14819 # locking (e.g. Debian). If we couldn't link against liblockfile
14820 # (no liblockfile.a installed), ensure that we don't need to.
14821 if test "$ac_cv_lib_lockfile_maillock" = no
; then
14822 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14823 set dummy liblockfile.so
; ac_word
=$2
14824 echo "$as_me:$LINENO: checking for $ac_word" >&5
14825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14826 if test "${ac_cv_prog_liblockfile+set}" = set; then
14827 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 if test -n "$liblockfile"; then
14830 ac_cv_prog_liblockfile
="$liblockfile" # Let the user override the test.
14832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14833 as_dummy
="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14834 for as_dir
in $as_dummy
14837 test -z "$as_dir" && as_dir
=.
14838 for ac_exec_ext
in '' $ac_executable_extensions; do
14839 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14840 ac_cv_prog_liblockfile
="yes"
14841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14847 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile
="no"
14850 liblockfile
=$ac_cv_prog_liblockfile
14851 if test -n "$liblockfile"; then
14852 echo "$as_me:$LINENO: result: $liblockfile" >&5
14853 echo "${ECHO_T}$liblockfile" >&6
14855 echo "$as_me:$LINENO: result: no" >&5
14856 echo "${ECHO_T}no" >&6
14859 if test $ac_cv_prog_liblockfile = yes; then
14860 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14861 This probably means that movemail could lose mail.
14862 There may be a \`development' package to install containing liblockfile." >&5
14863 echo "$as_me: error: Shared liblockfile found but can't link against it.
14864 This probably means that movemail could lose mail.
14865 There may be a \`development' package to install containing liblockfile." >&2;}
14866 { (exit 1); exit 1; }; }
14871 for ac_func
in touchlock
14873 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14874 echo "$as_me:$LINENO: checking for $ac_func" >&5
14875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14876 if eval "test \"\${$as_ac_var+set}\" = set"; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 cat >conftest.
$ac_ext <<_ACEOF
14882 cat confdefs.h
>>conftest.
$ac_ext
14883 cat >>conftest.
$ac_ext <<_ACEOF
14884 /* end confdefs.h. */
14885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14887 #define $ac_func innocuous_$ac_func
14889 /* System header to define __stub macros and hopefully few prototypes,
14890 which can conflict with char $ac_func (); below.
14891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14892 <limits.h> exists even on freestanding compilers. */
14895 # include <limits.h>
14897 # include <assert.h>
14902 /* Override any gcc2 internal prototype to avoid an error. */
14907 /* We use char because int might match the return type of a gcc2
14908 builtin and then its argument prototype would still apply. */
14910 /* The GNU C library defines this for functions which it implements
14911 to always fail with ENOSYS. Some functions are actually named
14912 something starting with __ and the normal name is an alias. */
14913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14916 char (*f) () = $ac_func;
14925 return f != $ac_func;
14930 rm -f conftest.
$ac_objext conftest
$ac_exeext
14931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14932 (eval $ac_link) 2>conftest.er1
14934 grep -v '^ *+' conftest.er1
>conftest.err
14936 cat conftest.err
>&5
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } &&
14939 { ac_try
='test -z "$ac_c_werror_flag"
14940 || test ! -s conftest.err'
14941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14942 (eval $ac_try) 2>&5
14944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945 (exit $ac_status); }; } &&
14946 { ac_try
='test -s conftest$ac_exeext'
14947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14948 (eval $ac_try) 2>&5
14950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14951 (exit $ac_status); }; }; then
14952 eval "$as_ac_var=yes"
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.
$ac_ext >&5
14957 eval "$as_ac_var=no"
14959 rm -f conftest.err conftest.
$ac_objext \
14960 conftest
$ac_exeext conftest.
$ac_ext
14962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14964 if test `eval echo '${'$as_ac_var'}'` = yes; then
14965 cat >>confdefs.h
<<_ACEOF
14966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14973 for ac_header
in maillock.h
14975 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14977 echo "$as_me:$LINENO: checking for $ac_header" >&5
14978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14985 # Is the header compilable?
14986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14988 cat >conftest.
$ac_ext <<_ACEOF
14991 cat confdefs.h
>>conftest.
$ac_ext
14992 cat >>conftest.
$ac_ext <<_ACEOF
14993 /* end confdefs.h. */
14994 $ac_includes_default
14995 #include <$ac_header>
14997 rm -f conftest.
$ac_objext
14998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14999 (eval $ac_compile) 2>conftest.er1
15001 grep -v '^ *+' conftest.er1
>conftest.err
15003 cat conftest.err
>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); } &&
15006 { ac_try
='test -z "$ac_c_werror_flag"
15007 || test ! -s conftest.err'
15008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15009 (eval $ac_try) 2>&5
15011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15012 (exit $ac_status); }; } &&
15013 { ac_try
='test -s conftest.$ac_objext'
15014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15015 (eval $ac_try) 2>&5
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); }; }; then
15019 ac_header_compiler
=yes
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.
$ac_ext >&5
15024 ac_header_compiler
=no
15026 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15028 echo "${ECHO_T}$ac_header_compiler" >&6
15030 # Is the header present?
15031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15033 cat >conftest.
$ac_ext <<_ACEOF
15036 cat confdefs.h
>>conftest.
$ac_ext
15037 cat >>conftest.
$ac_ext <<_ACEOF
15038 /* end confdefs.h. */
15039 #include <$ac_header>
15041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15042 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15044 grep -v '^ *+' conftest.er1
>conftest.err
15046 cat conftest.err
>&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } >/dev
/null
; then
15049 if test -s conftest.err
; then
15050 ac_cpp_err
=$ac_c_preproc_warn_flag
15051 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15058 if test -z "$ac_cpp_err"; then
15059 ac_header_preproc
=yes
15061 echo "$as_me: failed program was:" >&5
15062 sed 's/^/| /' conftest.
$ac_ext >&5
15064 ac_header_preproc
=no
15066 rm -f conftest.err conftest.
$ac_ext
15067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15068 echo "${ECHO_T}$ac_header_preproc" >&6
15070 # So? What about this header?
15071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15077 ac_header_preproc
=yes
15080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15094 ## ------------------------------------------ ##
15095 ## Report this to the AC_PACKAGE_NAME lists. ##
15096 ## ------------------------------------------ ##
15099 sed "s/^/$as_me: WARNING: /" >&2
15102 echo "$as_me:$LINENO: checking for $ac_header" >&5
15103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 eval "$as_ac_Header=\$ac_header_preproc"
15109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15114 cat >>confdefs.h
<<_ACEOF
15115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15191 for ac_func
in gethostname getdomainname dup2 \
15192 rename closedir mkdir
rmdir sysinfo getrusage get_current_dir_name \
15193 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15194 strerror fpathconf
select mktime euidaccess getpagesize tzset setlocale \
15195 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15196 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15197 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15198 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
15199 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15201 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15202 echo "$as_me:$LINENO: checking for $ac_func" >&5
15203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15204 if eval "test \"\${$as_ac_var+set}\" = set"; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 cat >conftest.
$ac_ext <<_ACEOF
15210 cat confdefs.h
>>conftest.
$ac_ext
15211 cat >>conftest.
$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15215 #define $ac_func innocuous_$ac_func
15217 /* System header to define __stub macros and hopefully few prototypes,
15218 which can conflict with char $ac_func (); below.
15219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15220 <limits.h> exists even on freestanding compilers. */
15223 # include <limits.h>
15225 # include <assert.h>
15230 /* Override any gcc2 internal prototype to avoid an error. */
15235 /* We use char because int might match the return type of a gcc2
15236 builtin and then its argument prototype would still apply. */
15238 /* The GNU C library defines this for functions which it implements
15239 to always fail with ENOSYS. Some functions are actually named
15240 something starting with __ and the normal name is an alias. */
15241 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15244 char (*f) () = $ac_func;
15253 return f != $ac_func;
15258 rm -f conftest.
$ac_objext conftest
$ac_exeext
15259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15260 (eval $ac_link) 2>conftest.er1
15262 grep -v '^ *+' conftest.er1
>conftest.err
15264 cat conftest.err
>&5
15265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15266 (exit $ac_status); } &&
15267 { ac_try
='test -z "$ac_c_werror_flag"
15268 || test ! -s conftest.err'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; } &&
15274 { ac_try
='test -s conftest$ac_exeext'
15275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15276 (eval $ac_try) 2>&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); }; }; then
15280 eval "$as_ac_var=yes"
15282 echo "$as_me: failed program was:" >&5
15283 sed 's/^/| /' conftest.
$ac_ext >&5
15285 eval "$as_ac_var=no"
15287 rm -f conftest.err conftest.
$ac_objext \
15288 conftest
$ac_exeext conftest.
$ac_ext
15290 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15291 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15292 if test `eval echo '${'$as_ac_var'}'` = yes; then
15293 cat >>confdefs.h
<<_ACEOF
15294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15302 for ac_header
in sys
/un.h
15304 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15306 echo "$as_me:$LINENO: checking for $ac_header" >&5
15307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15314 # Is the header compilable?
15315 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15316 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15317 cat >conftest.
$ac_ext <<_ACEOF
15320 cat confdefs.h
>>conftest.
$ac_ext
15321 cat >>conftest.
$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 $ac_includes_default
15324 #include <$ac_header>
15326 rm -f conftest.
$ac_objext
15327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15328 (eval $ac_compile) 2>conftest.er1
15330 grep -v '^ *+' conftest.er1
>conftest.err
15332 cat conftest.err
>&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } &&
15335 { ac_try
='test -z "$ac_c_werror_flag"
15336 || test ! -s conftest.err'
15337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15338 (eval $ac_try) 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; } &&
15342 { ac_try
='test -s conftest.$ac_objext'
15343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15344 (eval $ac_try) 2>&5
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); }; }; then
15348 ac_header_compiler
=yes
15350 echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.
$ac_ext >&5
15353 ac_header_compiler
=no
15355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15357 echo "${ECHO_T}$ac_header_compiler" >&6
15359 # Is the header present?
15360 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15362 cat >conftest.
$ac_ext <<_ACEOF
15365 cat confdefs.h
>>conftest.
$ac_ext
15366 cat >>conftest.
$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 #include <$ac_header>
15370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15371 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15373 grep -v '^ *+' conftest.er1
>conftest.err
15375 cat conftest.err
>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } >/dev
/null
; then
15378 if test -s conftest.err
; then
15379 ac_cpp_err
=$ac_c_preproc_warn_flag
15380 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15387 if test -z "$ac_cpp_err"; then
15388 ac_header_preproc
=yes
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.
$ac_ext >&5
15393 ac_header_preproc
=no
15395 rm -f conftest.err conftest.
$ac_ext
15396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15397 echo "${ECHO_T}$ac_header_preproc" >&6
15399 # So? What about this header?
15400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15403 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15406 ac_header_preproc
=yes
15409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15410 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15412 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15414 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15416 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15420 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15423 ## ------------------------------------------ ##
15424 ## Report this to the AC_PACKAGE_NAME lists. ##
15425 ## ------------------------------------------ ##
15428 sed "s/^/$as_me: WARNING: /" >&2
15431 echo "$as_me:$LINENO: checking for $ac_header" >&5
15432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 eval "$as_ac_Header=\$ac_header_preproc"
15438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15443 cat >>confdefs.h
<<_ACEOF
15444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15455 for ac_header
in stdlib.h sys
/time.h unistd.h
15457 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15459 echo "$as_me:$LINENO: checking for $ac_header" >&5
15460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15467 # Is the header compilable?
15468 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15470 cat >conftest.
$ac_ext <<_ACEOF
15473 cat confdefs.h
>>conftest.
$ac_ext
15474 cat >>conftest.
$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 $ac_includes_default
15477 #include <$ac_header>
15479 rm -f conftest.
$ac_objext
15480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481 (eval $ac_compile) 2>conftest.er1
15483 grep -v '^ *+' conftest.er1
>conftest.err
15485 cat conftest.err
>&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
15488 { ac_try
='test -z "$ac_c_werror_flag"
15489 || test ! -s conftest.err'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; } &&
15495 { ac_try
='test -s conftest.$ac_objext'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
15501 ac_header_compiler
=yes
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.
$ac_ext >&5
15506 ac_header_compiler
=no
15508 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
15509 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15510 echo "${ECHO_T}$ac_header_compiler" >&6
15512 # Is the header present?
15513 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15515 cat >conftest.
$ac_ext <<_ACEOF
15518 cat confdefs.h
>>conftest.
$ac_ext
15519 cat >>conftest.
$ac_ext <<_ACEOF
15520 /* end confdefs.h. */
15521 #include <$ac_header>
15523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15524 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
15526 grep -v '^ *+' conftest.er1
>conftest.err
15528 cat conftest.err
>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } >/dev
/null
; then
15531 if test -s conftest.err
; then
15532 ac_cpp_err
=$ac_c_preproc_warn_flag
15533 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15540 if test -z "$ac_cpp_err"; then
15541 ac_header_preproc
=yes
15543 echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.
$ac_ext >&5
15546 ac_header_preproc
=no
15548 rm -f conftest.err conftest.
$ac_ext
15549 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15550 echo "${ECHO_T}$ac_header_preproc" >&6
15552 # So? What about this header?
15553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15559 ac_header_preproc
=yes
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15565 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15569 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15576 ## ------------------------------------------ ##
15577 ## Report this to the AC_PACKAGE_NAME lists. ##
15578 ## ------------------------------------------ ##
15581 sed "s/^/$as_me: WARNING: /" >&2
15584 echo "$as_me:$LINENO: checking for $ac_header" >&5
15585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15586 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15587 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 eval "$as_ac_Header=\$ac_header_preproc"
15591 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15592 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15596 cat >>confdefs.h
<<_ACEOF
15597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15605 for ac_func
in alarm
15607 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15608 echo "$as_me:$LINENO: checking for $ac_func" >&5
15609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15610 if eval "test \"\${$as_ac_var+set}\" = set"; then
15611 echo $ECHO_N "(cached) $ECHO_C" >&6
15613 cat >conftest.
$ac_ext <<_ACEOF
15616 cat confdefs.h
>>conftest.
$ac_ext
15617 cat >>conftest.
$ac_ext <<_ACEOF
15618 /* end confdefs.h. */
15619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15621 #define $ac_func innocuous_$ac_func
15623 /* System header to define __stub macros and hopefully few prototypes,
15624 which can conflict with char $ac_func (); below.
15625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15626 <limits.h> exists even on freestanding compilers. */
15629 # include <limits.h>
15631 # include <assert.h>
15636 /* Override any gcc2 internal prototype to avoid an error. */
15641 /* We use char because int might match the return type of a gcc2
15642 builtin and then its argument prototype would still apply. */
15644 /* The GNU C library defines this for functions which it implements
15645 to always fail with ENOSYS. Some functions are actually named
15646 something starting with __ and the normal name is an alias. */
15647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15650 char (*f) () = $ac_func;
15659 return f != $ac_func;
15664 rm -f conftest.
$ac_objext conftest
$ac_exeext
15665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15666 (eval $ac_link) 2>conftest.er1
15668 grep -v '^ *+' conftest.er1
>conftest.err
15670 cat conftest.err
>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } &&
15673 { ac_try
='test -z "$ac_c_werror_flag"
15674 || test ! -s conftest.err'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; } &&
15680 { ac_try
='test -s conftest$ac_exeext'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 eval "$as_ac_var=yes"
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.
$ac_ext >&5
15691 eval "$as_ac_var=no"
15693 rm -f conftest.err conftest.
$ac_objext \
15694 conftest
$ac_exeext conftest.
$ac_ext
15696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15698 if test `eval echo '${'$as_ac_var'}'` = yes; then
15699 cat >>confdefs.h
<<_ACEOF
15700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15706 echo "$as_me:$LINENO: checking for working mktime" >&5
15707 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
15708 if test "${ac_cv_func_working_mktime+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 if test "$cross_compiling" = yes; then
15712 ac_cv_func_working_mktime
=no
15714 cat >conftest.
$ac_ext <<_ACEOF
15717 cat confdefs.h
>>conftest.
$ac_ext
15718 cat >>conftest.
$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 /* Test program from Paul Eggert and Tony Leneis. */
15721 #if TIME_WITH_SYS_TIME
15722 # include <sys/time.h>
15725 # if HAVE_SYS_TIME_H
15726 # include <sys/time.h>
15733 # include <stdlib.h>
15737 # include <unistd.h>
15741 # define alarm(X) /* empty */
15744 /* Work around redefinition to rpl_putenv by other config tests. */
15747 static time_t time_t_max;
15748 static time_t time_t_min;
15750 /* Values we'll use to set the TZ environment variable. */
15751 static char *tz_strings[] = {
15752 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15753 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15755 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15757 /* Fail if mktime fails to convert a date in the spring-forward gap.
15758 Based on a problem report from Andreas Jaeger. */
15760 spring_forward_gap ()
15762 /* glibc (up to about 1998-10-07) failed this test. */
15765 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15766 instead of "TZ=America/Vancouver" in order to detect the bug even
15767 on systems that don't support the Olson extension, or don't have the
15768 full zoneinfo tables installed. */
15769 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15778 if (mktime (&tm) == (time_t)-1)
15787 if ((lt = localtime (&now)) && mktime (lt) != now)
15795 mktime_test1 (now);
15796 mktime_test1 ((time_t) (time_t_max - now));
15797 mktime_test1 ((time_t) (time_t_min + now));
15803 /* Based on code from Ariel Faigon. */
15813 if (tm.tm_mon != 2 || tm.tm_mday != 31)
15823 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15824 now = mktime (&tm);
15825 if (now != (time_t) -1)
15827 struct tm *lt = localtime (&now);
15829 && lt->tm_year == tm.tm_year
15830 && lt->tm_mon == tm.tm_mon
15831 && lt->tm_mday == tm.tm_mday
15832 && lt->tm_hour == tm.tm_hour
15833 && lt->tm_min == tm.tm_min
15834 && lt->tm_sec == tm.tm_sec
15835 && lt->tm_yday == tm.tm_yday
15836 && lt->tm_wday == tm.tm_wday
15837 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15838 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15849 /* This test makes some buggy mktime implementations loop.
15850 Give up after 60 seconds; a mktime slower than that
15851 isn't worth using anyway. */
15854 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15857 if ((time_t) -1 < 0)
15858 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15860 delta = time_t_max / 997; /* a suitable prime number */
15861 for (i = 0; i < N_STRINGS; i++)
15864 putenv (tz_strings[i]);
15866 for (t = 0; t <= time_t_max - delta; t += delta)
15868 mktime_test ((time_t) 1);
15869 mktime_test ((time_t) (60 * 60));
15870 mktime_test ((time_t) (60 * 60 * 24));
15872 for (j = 1; 0 < j; j *= 2)
15874 bigtime_test (j - 1);
15877 spring_forward_gap ();
15881 rm -f conftest
$ac_exeext
15882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15883 (eval $ac_link) 2>&5
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
15887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15888 (eval $ac_try) 2>&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); }; }; then
15892 ac_cv_func_working_mktime
=yes
15894 echo "$as_me: program exited with status $ac_status" >&5
15895 echo "$as_me: failed program was:" >&5
15896 sed 's/^/| /' conftest.
$ac_ext >&5
15898 ( exit $ac_status )
15899 ac_cv_func_working_mktime
=no
15901 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15904 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15905 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
15906 if test $ac_cv_func_working_mktime = no
; then
15908 "mktime.$ac_objext" | \
15909 *" mktime.$ac_objext" | \
15910 "mktime.$ac_objext "* | \
15911 *" mktime.$ac_objext "* ) ;;
15912 *) LIBOBJS
="$LIBOBJS mktime.$ac_objext" ;;
15917 if test "$ac_cv_func_working_mktime" = no
; then
15919 cat >>confdefs.h
<<\_ACEOF
15920 #define BROKEN_MKTIME 1
15925 ac_have_func
=no
# yes means we've found a way to get the load average.
15927 # Make sure getloadavg.c is where it belongs, at configure-time.
15928 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15929 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15930 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15931 { (exit 1); exit 1; }; }
15935 # Check for getloadavg, but be sure not to touch the cache variable.
15936 (echo "$as_me:$LINENO: checking for getloadavg" >&5
15937 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6
15938 if test "${ac_cv_func_getloadavg+set}" = set; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15941 cat >conftest.
$ac_ext <<_ACEOF
15944 cat confdefs.h
>>conftest.
$ac_ext
15945 cat >>conftest.
$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15949 #define getloadavg innocuous_getloadavg
15951 /* System header to define __stub macros and hopefully few prototypes,
15952 which can conflict with char getloadavg (); below.
15953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15954 <limits.h> exists even on freestanding compilers. */
15957 # include <limits.h>
15959 # include <assert.h>
15964 /* Override any gcc2 internal prototype to avoid an error. */
15969 /* We use char because int might match the return type of a gcc2
15970 builtin and then its argument prototype would still apply. */
15971 char getloadavg ();
15972 /* The GNU C library defines this for functions which it implements
15973 to always fail with ENOSYS. Some functions are actually named
15974 something starting with __ and the normal name is an alias. */
15975 #if defined (__stub_getloadavg) || defined (__stub___getloadavg)
15978 char (*f) () = getloadavg;
15987 return f != getloadavg;
15992 rm -f conftest.
$ac_objext conftest
$ac_exeext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15994 (eval $ac_link) 2>conftest.er1
15996 grep -v '^ *+' conftest.er1
>conftest.err
15998 cat conftest.err
>&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try
='test -z "$ac_c_werror_flag"
16002 || test ! -s conftest.err'
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try
='test -s conftest$ac_exeext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 ac_cv_func_getloadavg
=yes
16016 echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.
$ac_ext >&5
16019 ac_cv_func_getloadavg
=no
16021 rm -f conftest.err conftest.
$ac_objext \
16022 conftest
$ac_exeext conftest.
$ac_ext
16024 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16025 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6
16026 if test $ac_cv_func_getloadavg = yes; then
16031 ) && ac_have_func
=yes
16033 # On HPUX9, an unprivileged user can get load averages through this function.
16035 for ac_func
in pstat_getdynamic
16037 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16038 echo "$as_me:$LINENO: checking for $ac_func" >&5
16039 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16040 if eval "test \"\${$as_ac_var+set}\" = set"; then
16041 echo $ECHO_N "(cached) $ECHO_C" >&6
16043 cat >conftest.
$ac_ext <<_ACEOF
16046 cat confdefs.h
>>conftest.
$ac_ext
16047 cat >>conftest.
$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16051 #define $ac_func innocuous_$ac_func
16053 /* System header to define __stub macros and hopefully few prototypes,
16054 which can conflict with char $ac_func (); below.
16055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16056 <limits.h> exists even on freestanding compilers. */
16059 # include <limits.h>
16061 # include <assert.h>
16066 /* Override any gcc2 internal prototype to avoid an error. */
16071 /* We use char because int might match the return type of a gcc2
16072 builtin and then its argument prototype would still apply. */
16074 /* The GNU C library defines this for functions which it implements
16075 to always fail with ENOSYS. Some functions are actually named
16076 something starting with __ and the normal name is an alias. */
16077 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16080 char (*f) () = $ac_func;
16089 return f != $ac_func;
16094 rm -f conftest.
$ac_objext conftest
$ac_exeext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16096 (eval $ac_link) 2>conftest.er1
16098 grep -v '^ *+' conftest.er1
>conftest.err
16100 cat conftest.err
>&5
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); } &&
16103 { ac_try
='test -z "$ac_c_werror_flag"
16104 || test ! -s conftest.err'
16105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106 (eval $ac_try) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); }; } &&
16110 { ac_try
='test -s conftest$ac_exeext'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116 eval "$as_ac_var=yes"
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.
$ac_ext >&5
16121 eval "$as_ac_var=no"
16123 rm -f conftest.err conftest.
$ac_objext \
16124 conftest
$ac_exeext conftest.
$ac_ext
16126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16127 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16128 if test `eval echo '${'$as_ac_var'}'` = yes; then
16129 cat >>confdefs.h
<<_ACEOF
16130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16137 # Solaris has libkstat which does not require root.
16139 echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16140 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6
16141 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16142 echo $ECHO_N "(cached) $ECHO_C" >&6
16144 ac_check_lib_save_LIBS
=$LIBS
16145 LIBS
="-lkstat $LIBS"
16146 cat >conftest.
$ac_ext <<_ACEOF
16149 cat confdefs.h
>>conftest.
$ac_ext
16150 cat >>conftest.
$ac_ext <<_ACEOF
16151 /* end confdefs.h. */
16153 /* Override any gcc2 internal prototype to avoid an error. */
16157 /* We use char because int might match the return type of a gcc2
16158 builtin and then its argument prototype would still apply. */
16159 char kstat_open ();
16168 rm -f conftest.
$ac_objext conftest
$ac_exeext
16169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16170 (eval $ac_link) 2>conftest.er1
16172 grep -v '^ *+' conftest.er1
>conftest.err
16174 cat conftest.err
>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } &&
16177 { ac_try
='test -z "$ac_c_werror_flag"
16178 || 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_kstat_kstat_open
=yes
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.
$ac_ext >&5
16195 ac_cv_lib_kstat_kstat_open
=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_kstat_kstat_open" >&5
16202 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6
16203 if test $ac_cv_lib_kstat_kstat_open = yes; then
16204 cat >>confdefs.h
<<_ACEOF
16205 #define HAVE_LIBKSTAT 1
16208 LIBS
="-lkstat $LIBS"
16212 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func
=yes
16214 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16215 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16216 # to get the right answer into the cache.
16217 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16218 if test $ac_have_func = no
; then
16219 echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16220 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
16221 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16224 ac_check_lib_save_LIBS
=$LIBS
16226 cat >conftest.
$ac_ext <<_ACEOF
16229 cat confdefs.h
>>conftest.
$ac_ext
16230 cat >>conftest.
$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16233 /* Override any gcc2 internal prototype to avoid an error. */
16237 /* We use char because int might match the return type of a gcc2
16238 builtin and then its argument prototype would still apply. */
16248 rm -f conftest.
$ac_objext conftest
$ac_exeext
16249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16250 (eval $ac_link) 2>conftest.er1
16252 grep -v '^ *+' conftest.er1
>conftest.err
16254 cat conftest.err
>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } &&
16257 { ac_try
='test -z "$ac_c_werror_flag"
16258 || test ! -s conftest.err'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try
='test -s conftest$ac_exeext'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_lib_elf_elf_begin
=yes
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.
$ac_ext >&5
16275 ac_cv_lib_elf_elf_begin
=no
16277 rm -f conftest.err conftest.
$ac_objext \
16278 conftest
$ac_exeext conftest.
$ac_ext
16279 LIBS
=$ac_check_lib_save_LIBS
16281 echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16282 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
16283 if test $ac_cv_lib_elf_elf_begin = yes; then
16288 if test $ac_have_func = no
; then
16289 echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16290 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6
16291 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16292 echo $ECHO_N "(cached) $ECHO_C" >&6
16294 ac_check_lib_save_LIBS
=$LIBS
16296 cat >conftest.
$ac_ext <<_ACEOF
16299 cat confdefs.h
>>conftest.
$ac_ext
16300 cat >>conftest.
$ac_ext <<_ACEOF
16301 /* end confdefs.h. */
16303 /* Override any gcc2 internal prototype to avoid an error. */
16307 /* We use char because int might match the return type of a gcc2
16308 builtin and then its argument prototype would still apply. */
16318 rm -f conftest.
$ac_objext conftest
$ac_exeext
16319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16320 (eval $ac_link) 2>conftest.er1
16322 grep -v '^ *+' conftest.er1
>conftest.err
16324 cat conftest.err
>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } &&
16327 { ac_try
='test -z "$ac_c_werror_flag"
16328 || test ! -s conftest.err'
16329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16330 (eval $ac_try) 2>&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; } &&
16334 { ac_try
='test -s conftest$ac_exeext'
16335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16336 (eval $ac_try) 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); }; }; then
16340 ac_cv_lib_kvm_kvm_open
=yes
16342 echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.
$ac_ext >&5
16345 ac_cv_lib_kvm_kvm_open
=no
16347 rm -f conftest.err conftest.
$ac_objext \
16348 conftest
$ac_exeext conftest.
$ac_ext
16349 LIBS
=$ac_check_lib_save_LIBS
16351 echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16352 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6
16353 if test $ac_cv_lib_kvm_kvm_open = yes; then
16357 # Check for the 4.4BSD definition of getloadavg.
16358 echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16359 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6
16360 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16361 echo $ECHO_N "(cached) $ECHO_C" >&6
16363 ac_check_lib_save_LIBS
=$LIBS
16364 LIBS
="-lutil $LIBS"
16365 cat >conftest.
$ac_ext <<_ACEOF
16368 cat confdefs.h
>>conftest.
$ac_ext
16369 cat >>conftest.
$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16372 /* Override any gcc2 internal prototype to avoid an error. */
16376 /* We use char because int might match the return type of a gcc2
16377 builtin and then its argument prototype would still apply. */
16378 char getloadavg ();
16387 rm -f conftest.
$ac_objext conftest
$ac_exeext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16389 (eval $ac_link) 2>conftest.er1
16391 grep -v '^ *+' conftest.er1
>conftest.err
16393 cat conftest.err
>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
16396 { ac_try
='test -z "$ac_c_werror_flag"
16397 || test ! -s conftest.err'
16398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16399 (eval $ac_try) 2>&5
16401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); }; } &&
16403 { ac_try
='test -s conftest$ac_exeext'
16404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16405 (eval $ac_try) 2>&5
16407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16408 (exit $ac_status); }; }; then
16409 ac_cv_lib_util_getloadavg
=yes
16411 echo "$as_me: failed program was:" >&5
16412 sed 's/^/| /' conftest.
$ac_ext >&5
16414 ac_cv_lib_util_getloadavg
=no
16416 rm -f conftest.err conftest.
$ac_objext \
16417 conftest
$ac_exeext conftest.
$ac_ext
16418 LIBS
=$ac_check_lib_save_LIBS
16420 echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16421 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6
16422 if test $ac_cv_lib_util_getloadavg = yes; then
16423 LIBS
="-lutil $LIBS" ac_have_func
=yes ac_cv_func_getloadavg_setgid
=yes
16428 if test $ac_have_func = no
; then
16429 # There is a commonly available library for RS/6000 AIX.
16430 # Since it is not a standard part of AIX, it might be installed locally.
16431 ac_getloadavg_LIBS
=$LIBS
16432 LIBS
="-L/usr/local/lib $LIBS"
16433 echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16434 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6
16435 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16438 ac_check_lib_save_LIBS
=$LIBS
16439 LIBS
="-lgetloadavg $LIBS"
16440 cat >conftest.
$ac_ext <<_ACEOF
16443 cat confdefs.h
>>conftest.
$ac_ext
16444 cat >>conftest.
$ac_ext <<_ACEOF
16445 /* end confdefs.h. */
16447 /* Override any gcc2 internal prototype to avoid an error. */
16451 /* We use char because int might match the return type of a gcc2
16452 builtin and then its argument prototype would still apply. */
16453 char getloadavg ();
16462 rm -f conftest.
$ac_objext conftest
$ac_exeext
16463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16464 (eval $ac_link) 2>conftest.er1
16466 grep -v '^ *+' conftest.er1
>conftest.err
16468 cat conftest.err
>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); } &&
16471 { ac_try
='test -z "$ac_c_werror_flag"
16472 || test ! -s conftest.err'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; } &&
16478 { ac_try
='test -s conftest$ac_exeext'
16479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16480 (eval $ac_try) 2>&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); }; }; then
16484 ac_cv_lib_getloadavg_getloadavg
=yes
16486 echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.
$ac_ext >&5
16489 ac_cv_lib_getloadavg_getloadavg
=no
16491 rm -f conftest.err conftest.
$ac_objext \
16492 conftest
$ac_exeext conftest.
$ac_ext
16493 LIBS
=$ac_check_lib_save_LIBS
16495 echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16496 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6
16497 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16498 LIBS
="-lgetloadavg $LIBS"
16500 LIBS
=$ac_getloadavg_LIBS
16505 # Make sure it is really in the library, if we think we found it,
16506 # otherwise set up the replacement function.
16508 for ac_func
in getloadavg
16510 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16511 echo "$as_me:$LINENO: checking for $ac_func" >&5
16512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16513 if eval "test \"\${$as_ac_var+set}\" = set"; then
16514 echo $ECHO_N "(cached) $ECHO_C" >&6
16516 cat >conftest.
$ac_ext <<_ACEOF
16519 cat confdefs.h
>>conftest.
$ac_ext
16520 cat >>conftest.
$ac_ext <<_ACEOF
16521 /* end confdefs.h. */
16522 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16524 #define $ac_func innocuous_$ac_func
16526 /* System header to define __stub macros and hopefully few prototypes,
16527 which can conflict with char $ac_func (); below.
16528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16529 <limits.h> exists even on freestanding compilers. */
16532 # include <limits.h>
16534 # include <assert.h>
16539 /* Override any gcc2 internal prototype to avoid an error. */
16544 /* We use char because int might match the return type of a gcc2
16545 builtin and then its argument prototype would still apply. */
16547 /* The GNU C library defines this for functions which it implements
16548 to always fail with ENOSYS. Some functions are actually named
16549 something starting with __ and the normal name is an alias. */
16550 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16553 char (*f) () = $ac_func;
16562 return f != $ac_func;
16567 rm -f conftest.
$ac_objext conftest
$ac_exeext
16568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16569 (eval $ac_link) 2>conftest.er1
16571 grep -v '^ *+' conftest.er1
>conftest.err
16573 cat conftest.err
>&5
16574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575 (exit $ac_status); } &&
16576 { ac_try
='test -z "$ac_c_werror_flag"
16577 || test ! -s conftest.err'
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); }; } &&
16583 { ac_try
='test -s conftest$ac_exeext'
16584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16585 (eval $ac_try) 2>&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); }; }; then
16589 eval "$as_ac_var=yes"
16591 echo "$as_me: failed program was:" >&5
16592 sed 's/^/| /' conftest.
$ac_ext >&5
16594 eval "$as_ac_var=no"
16596 rm -f conftest.err conftest.
$ac_objext \
16597 conftest
$ac_exeext conftest.
$ac_ext
16599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16600 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16601 if test `eval echo '${'$as_ac_var'}'` = yes; then
16602 cat >>confdefs.h
<<_ACEOF
16603 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16608 "getloadavg.$ac_objext" | \
16609 *" getloadavg.$ac_objext" | \
16610 "getloadavg.$ac_objext "* | \
16611 *" getloadavg.$ac_objext "* ) ;;
16612 *) LIBOBJS
="$LIBOBJS getloadavg.$ac_objext" ;;
16616 cat >>confdefs.h
<<\_ACEOF
16617 #define C_GETLOADAVG 1
16620 # Figure out what our getloadavg.c needs.
16622 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16623 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16624 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16625 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16626 echo $ECHO_N "(cached) $ECHO_C" >&6
16628 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16629 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16631 # Is the header compilable?
16632 echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16633 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6
16634 cat >conftest.
$ac_ext <<_ACEOF
16637 cat confdefs.h
>>conftest.
$ac_ext
16638 cat >>conftest.
$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 $ac_includes_default
16641 #include <sys/dg_sys_info.h>
16643 rm -f conftest.
$ac_objext
16644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16645 (eval $ac_compile) 2>conftest.er1
16647 grep -v '^ *+' conftest.er1
>conftest.err
16649 cat conftest.err
>&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } &&
16652 { ac_try
='test -z "$ac_c_werror_flag"
16653 || test ! -s conftest.err'
16654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16655 (eval $ac_try) 2>&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); }; } &&
16659 { ac_try
='test -s conftest.$ac_objext'
16660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16661 (eval $ac_try) 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_header_compiler
=yes
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.
$ac_ext >&5
16670 ac_header_compiler
=no
16672 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16673 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16674 echo "${ECHO_T}$ac_header_compiler" >&6
16676 # Is the header present?
16677 echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16678 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6
16679 cat >conftest.
$ac_ext <<_ACEOF
16682 cat confdefs.h
>>conftest.
$ac_ext
16683 cat >>conftest.
$ac_ext <<_ACEOF
16684 /* end confdefs.h. */
16685 #include <sys/dg_sys_info.h>
16687 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16688 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16690 grep -v '^ *+' conftest.er1
>conftest.err
16692 cat conftest.err
>&5
16693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16694 (exit $ac_status); } >/dev
/null
; then
16695 if test -s conftest.err
; then
16696 ac_cpp_err
=$ac_c_preproc_warn_flag
16697 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16704 if test -z "$ac_cpp_err"; then
16705 ac_header_preproc
=yes
16707 echo "$as_me: failed program was:" >&5
16708 sed 's/^/| /' conftest.
$ac_ext >&5
16710 ac_header_preproc
=no
16712 rm -f conftest.err conftest.
$ac_ext
16713 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16714 echo "${ECHO_T}$ac_header_preproc" >&6
16716 # So? What about this header?
16717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16719 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16720 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16721 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16722 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16723 ac_header_preproc
=yes
16726 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16727 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16729 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16731 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16732 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16733 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16734 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16735 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16736 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16737 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16740 ## ------------------------------------------ ##
16741 ## Report this to the AC_PACKAGE_NAME lists. ##
16742 ## ------------------------------------------ ##
16745 sed "s/^/$as_me: WARNING: /" >&2
16748 echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16749 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6
16750 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16751 echo $ECHO_N "(cached) $ECHO_C" >&6
16753 ac_cv_header_sys_dg_sys_info_h
=$ac_header_preproc
16755 echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16756 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6
16759 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16762 cat >>confdefs.h
<<\_ACEOF
16767 echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16768 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6
16769 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16770 echo $ECHO_N "(cached) $ECHO_C" >&6
16772 ac_check_lib_save_LIBS
=$LIBS
16774 cat >conftest.
$ac_ext <<_ACEOF
16777 cat confdefs.h
>>conftest.
$ac_ext
16778 cat >>conftest.
$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16781 /* Override any gcc2 internal prototype to avoid an error. */
16785 /* We use char because int might match the return type of a gcc2
16786 builtin and then its argument prototype would still apply. */
16787 char dg_sys_info ();
16796 rm -f conftest.
$ac_objext conftest
$ac_exeext
16797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16798 (eval $ac_link) 2>conftest.er1
16800 grep -v '^ *+' conftest.er1
>conftest.err
16802 cat conftest.err
>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } &&
16805 { ac_try
='test -z "$ac_c_werror_flag"
16806 || test ! -s conftest.err'
16807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16808 (eval $ac_try) 2>&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); }; } &&
16812 { ac_try
='test -s conftest$ac_exeext'
16813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16814 (eval $ac_try) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); }; }; then
16818 ac_cv_lib_dgc_dg_sys_info
=yes
16820 echo "$as_me: failed program was:" >&5
16821 sed 's/^/| /' conftest.
$ac_ext >&5
16823 ac_cv_lib_dgc_dg_sys_info
=no
16825 rm -f conftest.err conftest.
$ac_objext \
16826 conftest
$ac_exeext conftest.
$ac_ext
16827 LIBS
=$ac_check_lib_save_LIBS
16829 echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16830 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6
16831 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16832 cat >>confdefs.h
<<_ACEOF
16833 #define HAVE_LIBDGC 1
16844 if test "${ac_cv_header_locale_h+set}" = set; then
16845 echo "$as_me:$LINENO: checking for locale.h" >&5
16846 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16847 if test "${ac_cv_header_locale_h+set}" = set; then
16848 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16851 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16853 # Is the header compilable?
16854 echo "$as_me:$LINENO: checking locale.h usability" >&5
16855 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
16856 cat >conftest.
$ac_ext <<_ACEOF
16859 cat confdefs.h
>>conftest.
$ac_ext
16860 cat >>conftest.
$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 $ac_includes_default
16863 #include <locale.h>
16865 rm -f conftest.
$ac_objext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867 (eval $ac_compile) 2>conftest.er1
16869 grep -v '^ *+' conftest.er1
>conftest.err
16871 cat conftest.err
>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
16874 { ac_try
='test -z "$ac_c_werror_flag"
16875 || test ! -s conftest.err'
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; } &&
16881 { ac_try
='test -s conftest.$ac_objext'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; }; then
16887 ac_header_compiler
=yes
16889 echo "$as_me: failed program was:" >&5
16890 sed 's/^/| /' conftest.
$ac_ext >&5
16892 ac_header_compiler
=no
16894 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
16895 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16896 echo "${ECHO_T}$ac_header_compiler" >&6
16898 # Is the header present?
16899 echo "$as_me:$LINENO: checking locale.h presence" >&5
16900 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
16901 cat >conftest.
$ac_ext <<_ACEOF
16904 cat confdefs.h
>>conftest.
$ac_ext
16905 cat >>conftest.
$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 #include <locale.h>
16909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16910 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
16912 grep -v '^ *+' conftest.er1
>conftest.err
16914 cat conftest.err
>&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } >/dev
/null
; then
16917 if test -s conftest.err
; then
16918 ac_cpp_err
=$ac_c_preproc_warn_flag
16919 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16926 if test -z "$ac_cpp_err"; then
16927 ac_header_preproc
=yes
16929 echo "$as_me: failed program was:" >&5
16930 sed 's/^/| /' conftest.
$ac_ext >&5
16932 ac_header_preproc
=no
16934 rm -f conftest.err conftest.
$ac_ext
16935 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16936 echo "${ECHO_T}$ac_header_preproc" >&6
16938 # So? What about this header?
16939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16941 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16942 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16943 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16944 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16945 ac_header_preproc
=yes
16948 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16949 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16950 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16951 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16953 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16955 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16957 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16959 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16962 ## ------------------------------------------ ##
16963 ## Report this to the AC_PACKAGE_NAME lists. ##
16964 ## ------------------------------------------ ##
16967 sed "s/^/$as_me: WARNING: /" >&2
16970 echo "$as_me:$LINENO: checking for locale.h" >&5
16971 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
16972 if test "${ac_cv_header_locale_h+set}" = set; then
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16975 ac_cv_header_locale_h
=$ac_header_preproc
16977 echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16978 echo "${ECHO_T}$ac_cv_header_locale_h" >&6
16984 for ac_func
in setlocale
16986 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16987 echo "$as_me:$LINENO: checking for $ac_func" >&5
16988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16989 if eval "test \"\${$as_ac_var+set}\" = set"; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 cat >conftest.
$ac_ext <<_ACEOF
16995 cat confdefs.h
>>conftest.
$ac_ext
16996 cat >>conftest.
$ac_ext <<_ACEOF
16997 /* end confdefs.h. */
16998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17000 #define $ac_func innocuous_$ac_func
17002 /* System header to define __stub macros and hopefully few prototypes,
17003 which can conflict with char $ac_func (); below.
17004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17005 <limits.h> exists even on freestanding compilers. */
17008 # include <limits.h>
17010 # include <assert.h>
17015 /* Override any gcc2 internal prototype to avoid an error. */
17020 /* We use char because int might match the return type of a gcc2
17021 builtin and then its argument prototype would still apply. */
17023 /* The GNU C library defines this for functions which it implements
17024 to always fail with ENOSYS. Some functions are actually named
17025 something starting with __ and the normal name is an alias. */
17026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17029 char (*f) () = $ac_func;
17038 return f != $ac_func;
17043 rm -f conftest.
$ac_objext conftest
$ac_exeext
17044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17045 (eval $ac_link) 2>conftest.er1
17047 grep -v '^ *+' conftest.er1
>conftest.err
17049 cat conftest.err
>&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } &&
17052 { ac_try
='test -z "$ac_c_werror_flag"
17053 || test ! -s conftest.err'
17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; } &&
17059 { ac_try
='test -s conftest$ac_exeext'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
17065 eval "$as_ac_var=yes"
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.
$ac_ext >&5
17070 eval "$as_ac_var=no"
17072 rm -f conftest.err conftest.
$ac_objext \
17073 conftest
$ac_exeext conftest.
$ac_ext
17075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17077 if test `eval echo '${'$as_ac_var'}'` = yes; then
17078 cat >>confdefs.h
<<_ACEOF
17079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17086 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17087 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17088 # Irix 4.0.5F has the header but not the library.
17089 if test $ac_have_func = no
&& test "$ac_cv_lib_elf_elf_begin" = yes; then
17092 cat >>confdefs.h
<<\_ACEOF
17098 if test $ac_have_func = no
; then
17099 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17100 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17101 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17102 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17103 echo $ECHO_N "(cached) $ECHO_C" >&6
17105 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17106 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17108 # Is the header compilable?
17109 echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17110 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6
17111 cat >conftest.
$ac_ext <<_ACEOF
17114 cat confdefs.h
>>conftest.
$ac_ext
17115 cat >>conftest.
$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17117 $ac_includes_default
17118 #include <inq_stats/cpustats.h>
17120 rm -f conftest.
$ac_objext
17121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17122 (eval $ac_compile) 2>conftest.er1
17124 grep -v '^ *+' conftest.er1
>conftest.err
17126 cat conftest.err
>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
17129 { ac_try
='test -z "$ac_c_werror_flag"
17130 || test ! -s conftest.err'
17131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17132 (eval $ac_try) 2>&5
17134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17135 (exit $ac_status); }; } &&
17136 { ac_try
='test -s conftest.$ac_objext'
17137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17138 (eval $ac_try) 2>&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); }; }; then
17142 ac_header_compiler
=yes
17144 echo "$as_me: failed program was:" >&5
17145 sed 's/^/| /' conftest.
$ac_ext >&5
17147 ac_header_compiler
=no
17149 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17150 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17151 echo "${ECHO_T}$ac_header_compiler" >&6
17153 # Is the header present?
17154 echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17155 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6
17156 cat >conftest.
$ac_ext <<_ACEOF
17159 cat confdefs.h
>>conftest.
$ac_ext
17160 cat >>conftest.
$ac_ext <<_ACEOF
17161 /* end confdefs.h. */
17162 #include <inq_stats/cpustats.h>
17164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17165 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17167 grep -v '^ *+' conftest.er1
>conftest.err
17169 cat conftest.err
>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } >/dev
/null
; then
17172 if test -s conftest.err
; then
17173 ac_cpp_err
=$ac_c_preproc_warn_flag
17174 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17181 if test -z "$ac_cpp_err"; then
17182 ac_header_preproc
=yes
17184 echo "$as_me: failed program was:" >&5
17185 sed 's/^/| /' conftest.
$ac_ext >&5
17187 ac_header_preproc
=no
17189 rm -f conftest.err conftest.
$ac_ext
17190 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17191 echo "${ECHO_T}$ac_header_preproc" >&6
17193 # So? What about this header?
17194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17196 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17197 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17198 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17199 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17200 ac_header_preproc
=yes
17203 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17204 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17205 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17206 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17207 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17208 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17209 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17210 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17211 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17212 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17213 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17214 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17217 ## ------------------------------------------ ##
17218 ## Report this to the AC_PACKAGE_NAME lists. ##
17219 ## ------------------------------------------ ##
17222 sed "s/^/$as_me: WARNING: /" >&2
17225 echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17226 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6
17227 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 ac_cv_header_inq_stats_cpustats_h
=$ac_header_preproc
17232 echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17233 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6
17236 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17239 cat >>confdefs.h
<<\_ACEOF
17244 cat >>confdefs.h
<<\_ACEOF
17253 if test $ac_have_func = no
; then
17254 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17255 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17256 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17257 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17260 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17261 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17263 # Is the header compilable?
17264 echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17265 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6
17266 cat >conftest.
$ac_ext <<_ACEOF
17269 cat confdefs.h
>>conftest.
$ac_ext
17270 cat >>conftest.
$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17272 $ac_includes_default
17273 #include <sys/cpustats.h>
17275 rm -f conftest.
$ac_objext
17276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17277 (eval $ac_compile) 2>conftest.er1
17279 grep -v '^ *+' conftest.er1
>conftest.err
17281 cat conftest.err
>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
17284 { ac_try
='test -z "$ac_c_werror_flag"
17285 || test ! -s conftest.err'
17286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; } &&
17291 { ac_try
='test -s conftest.$ac_objext'
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 ac_header_compiler
=yes
17299 echo "$as_me: failed program was:" >&5
17300 sed 's/^/| /' conftest.
$ac_ext >&5
17302 ac_header_compiler
=no
17304 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17306 echo "${ECHO_T}$ac_header_compiler" >&6
17308 # Is the header present?
17309 echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17310 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6
17311 cat >conftest.
$ac_ext <<_ACEOF
17314 cat confdefs.h
>>conftest.
$ac_ext
17315 cat >>conftest.
$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17317 #include <sys/cpustats.h>
17319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17320 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17322 grep -v '^ *+' conftest.er1
>conftest.err
17324 cat conftest.err
>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); } >/dev
/null
; then
17327 if test -s conftest.err
; then
17328 ac_cpp_err
=$ac_c_preproc_warn_flag
17329 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17336 if test -z "$ac_cpp_err"; then
17337 ac_header_preproc
=yes
17339 echo "$as_me: failed program was:" >&5
17340 sed 's/^/| /' conftest.
$ac_ext >&5
17342 ac_header_preproc
=no
17344 rm -f conftest.err conftest.
$ac_ext
17345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17346 echo "${ECHO_T}$ac_header_preproc" >&6
17348 # So? What about this header?
17349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17351 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17352 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17353 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17354 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17355 ac_header_preproc
=yes
17358 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17359 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17360 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17361 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17362 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17363 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17364 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17365 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17366 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17367 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17368 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17369 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17372 ## ------------------------------------------ ##
17373 ## Report this to the AC_PACKAGE_NAME lists. ##
17374 ## ------------------------------------------ ##
17377 sed "s/^/$as_me: WARNING: /" >&2
17380 echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17381 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6
17382 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17383 echo $ECHO_N "(cached) $ECHO_C" >&6
17385 ac_cv_header_sys_cpustats_h
=$ac_header_preproc
17387 echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17388 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6
17391 if test $ac_cv_header_sys_cpustats_h = yes; then
17392 ac_have_func
=yes; cat >>confdefs.h
<<\_ACEOF
17401 if test $ac_have_func = no
; then
17403 for ac_header
in mach
/mach.h
17405 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17407 echo "$as_me:$LINENO: checking for $ac_header" >&5
17408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17415 # Is the header compilable?
17416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17418 cat >conftest.
$ac_ext <<_ACEOF
17421 cat confdefs.h
>>conftest.
$ac_ext
17422 cat >>conftest.
$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17424 $ac_includes_default
17425 #include <$ac_header>
17427 rm -f conftest.
$ac_objext
17428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17429 (eval $ac_compile) 2>conftest.er1
17431 grep -v '^ *+' conftest.er1
>conftest.err
17433 cat conftest.err
>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } &&
17436 { ac_try
='test -z "$ac_c_werror_flag"
17437 || test ! -s conftest.err'
17438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17439 (eval $ac_try) 2>&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); }; } &&
17443 { ac_try
='test -s conftest.$ac_objext'
17444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17445 (eval $ac_try) 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); }; }; then
17449 ac_header_compiler
=yes
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.
$ac_ext >&5
17454 ac_header_compiler
=no
17456 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17457 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17458 echo "${ECHO_T}$ac_header_compiler" >&6
17460 # Is the header present?
17461 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17462 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17463 cat >conftest.
$ac_ext <<_ACEOF
17466 cat confdefs.h
>>conftest.
$ac_ext
17467 cat >>conftest.
$ac_ext <<_ACEOF
17468 /* end confdefs.h. */
17469 #include <$ac_header>
17471 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17472 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17474 grep -v '^ *+' conftest.er1
>conftest.err
17476 cat conftest.err
>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } >/dev
/null
; then
17479 if test -s conftest.err
; then
17480 ac_cpp_err
=$ac_c_preproc_warn_flag
17481 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17488 if test -z "$ac_cpp_err"; then
17489 ac_header_preproc
=yes
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.
$ac_ext >&5
17494 ac_header_preproc
=no
17496 rm -f conftest.err conftest.
$ac_ext
17497 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17498 echo "${ECHO_T}$ac_header_preproc" >&6
17500 # So? What about this header?
17501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17507 ac_header_preproc
=yes
17510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17524 ## ------------------------------------------ ##
17525 ## Report this to the AC_PACKAGE_NAME lists. ##
17526 ## ------------------------------------------ ##
17529 sed "s/^/$as_me: WARNING: /" >&2
17532 echo "$as_me:$LINENO: checking for $ac_header" >&5
17533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17535 echo $ECHO_N "(cached) $ECHO_C" >&6
17537 eval "$as_ac_Header=\$ac_header_preproc"
17539 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17540 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17543 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17544 cat >>confdefs.h
<<_ACEOF
17545 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17555 for ac_header
in nlist.h
17557 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17559 echo "$as_me:$LINENO: checking for $ac_header" >&5
17560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17562 echo $ECHO_N "(cached) $ECHO_C" >&6
17564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17567 # Is the header compilable?
17568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17570 cat >conftest.
$ac_ext <<_ACEOF
17573 cat confdefs.h
>>conftest.
$ac_ext
17574 cat >>conftest.
$ac_ext <<_ACEOF
17575 /* end confdefs.h. */
17576 $ac_includes_default
17577 #include <$ac_header>
17579 rm -f conftest.
$ac_objext
17580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17581 (eval $ac_compile) 2>conftest.er1
17583 grep -v '^ *+' conftest.er1
>conftest.err
17585 cat conftest.err
>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try
='test -z "$ac_c_werror_flag"
17589 || test ! -s conftest.err'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; } &&
17595 { ac_try
='test -s conftest.$ac_objext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_header_compiler
=yes
17603 echo "$as_me: failed program was:" >&5
17604 sed 's/^/| /' conftest.
$ac_ext >&5
17606 ac_header_compiler
=no
17608 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17609 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17610 echo "${ECHO_T}$ac_header_compiler" >&6
17612 # Is the header present?
17613 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17615 cat >conftest.
$ac_ext <<_ACEOF
17618 cat confdefs.h
>>conftest.
$ac_ext
17619 cat >>conftest.
$ac_ext <<_ACEOF
17620 /* end confdefs.h. */
17621 #include <$ac_header>
17623 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17624 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
17626 grep -v '^ *+' conftest.er1
>conftest.err
17628 cat conftest.err
>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } >/dev
/null
; then
17631 if test -s conftest.err
; then
17632 ac_cpp_err
=$ac_c_preproc_warn_flag
17633 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17640 if test -z "$ac_cpp_err"; then
17641 ac_header_preproc
=yes
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.
$ac_ext >&5
17646 ac_header_preproc
=no
17648 rm -f conftest.err conftest.
$ac_ext
17649 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17650 echo "${ECHO_T}$ac_header_preproc" >&6
17652 # So? What about this header?
17653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17659 ac_header_preproc
=yes
17662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17676 ## ------------------------------------------ ##
17677 ## Report this to the AC_PACKAGE_NAME lists. ##
17678 ## ------------------------------------------ ##
17681 sed "s/^/$as_me: WARNING: /" >&2
17684 echo "$as_me:$LINENO: checking for $ac_header" >&5
17685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17687 echo $ECHO_N "(cached) $ECHO_C" >&6
17689 eval "$as_ac_Header=\$ac_header_preproc"
17691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17696 cat >>confdefs.h
<<_ACEOF
17697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17699 echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17700 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6
17701 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 cat >conftest.
$ac_ext <<_ACEOF
17707 cat confdefs.h
>>conftest.
$ac_ext
17708 cat >>conftest.
$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17715 static struct nlist ac_aggr;
17716 if (ac_aggr.n_un.n_name)
17722 rm -f conftest.
$ac_objext
17723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17724 (eval $ac_compile) 2>conftest.er1
17726 grep -v '^ *+' conftest.er1
>conftest.err
17728 cat conftest.err
>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } &&
17731 { ac_try
='test -z "$ac_c_werror_flag"
17732 || test ! -s conftest.err'
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; } &&
17738 { ac_try
='test -s conftest.$ac_objext'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
17744 ac_cv_member_struct_nlist_n_un_n_name
=yes
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.
$ac_ext >&5
17749 cat >conftest.
$ac_ext <<_ACEOF
17752 cat confdefs.h
>>conftest.
$ac_ext
17753 cat >>conftest.
$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17760 static struct nlist ac_aggr;
17761 if (sizeof ac_aggr.n_un.n_name)
17767 rm -f conftest.
$ac_objext
17768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17769 (eval $ac_compile) 2>conftest.er1
17771 grep -v '^ *+' conftest.er1
>conftest.err
17773 cat conftest.err
>&5
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); } &&
17776 { ac_try
='test -z "$ac_c_werror_flag"
17777 || test ! -s conftest.err'
17778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779 (eval $ac_try) 2>&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); }; } &&
17783 { ac_try
='test -s conftest.$ac_objext'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 ac_cv_member_struct_nlist_n_un_n_name
=yes
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.
$ac_ext >&5
17794 ac_cv_member_struct_nlist_n_un_n_name
=no
17796 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17798 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17800 echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17801 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6
17802 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17804 cat >>confdefs.h
<<_ACEOF
17805 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17809 cat >>confdefs.h
<<\_ACEOF
17810 #define NLIST_NAME_UNION 1
17824 # Some definitions of getloadavg require that the program be installed setgid.
17825 echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17826 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6
17827 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 cat >conftest.
$ac_ext <<_ACEOF
17833 cat confdefs.h
>>conftest.
$ac_ext
17834 cat >>conftest.
$ac_ext <<_ACEOF
17835 /* end confdefs.h. */
17836 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17837 #ifdef LDAV_PRIVILEGED
17838 Yowza Am I SETGID yet
17841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17842 $EGREP "Yowza Am I SETGID yet" >/dev
/null
2>&1; then
17843 ac_cv_func_getloadavg_setgid
=yes
17845 ac_cv_func_getloadavg_setgid
=no
17850 echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17851 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6
17852 if test $ac_cv_func_getloadavg_setgid = yes; then
17855 cat >>confdefs.h
<<\_ACEOF
17856 #define GETLOADAVG_PRIVILEGED 1
17863 if test $ac_cv_func_getloadavg_setgid = yes; then
17864 echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17865 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6
17866 if test "${ac_cv_group_kmem+set}" = set; then
17867 echo $ECHO_N "(cached) $ECHO_C" >&6
17869 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17870 ac_ls_output
=`ls -lgL /dev/kmem 2>/dev/null`
17871 # If we got an error (system does not support symlinks), try without -L.
17872 test -z "$ac_ls_output" && ac_ls_output
=`ls -lg /dev/kmem`
17873 ac_cv_group_kmem
=`echo $ac_ls_output \
17874 | sed -ne 's/[ ][ ]*/ /g;
17875 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17879 echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17880 echo "${ECHO_T}$ac_cv_group_kmem" >&6
17881 KMEM_GROUP
=$ac_cv_group_kmem
17883 if test "x$ac_save_LIBS" = x
; then
17884 GETLOADAVG_LIBS
=$LIBS
17886 GETLOADAVG_LIBS
=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17892 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17893 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
17894 if test "${ac_cv_sys_largefile_source+set}" = set; then
17895 echo $ECHO_N "(cached) $ECHO_C" >&6
17898 ac_cv_sys_largefile_source
=no
17899 cat >conftest.
$ac_ext <<_ACEOF
17902 cat confdefs.h
>>conftest.
$ac_ext
17903 cat >>conftest.
$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17914 rm -f conftest.
$ac_objext
17915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17916 (eval $ac_compile) 2>conftest.er1
17918 grep -v '^ *+' conftest.er1
>conftest.err
17920 cat conftest.err
>&5
17921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); } &&
17923 { ac_try
='test -z "$ac_c_werror_flag"
17924 || test ! -s conftest.err'
17925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17926 (eval $ac_try) 2>&5
17928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929 (exit $ac_status); }; } &&
17930 { ac_try
='test -s conftest.$ac_objext'
17931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17932 (eval $ac_try) 2>&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); }; }; then
17938 echo "$as_me: failed program was:" >&5
17939 sed 's/^/| /' conftest.
$ac_ext >&5
17942 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17943 cat >conftest.
$ac_ext <<_ACEOF
17946 cat confdefs.h
>>conftest.
$ac_ext
17947 cat >>conftest.
$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17949 #define _LARGEFILE_SOURCE 1
17959 rm -f conftest.
$ac_objext
17960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17961 (eval $ac_compile) 2>conftest.er1
17963 grep -v '^ *+' conftest.er1
>conftest.err
17965 cat conftest.err
>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } &&
17968 { ac_try
='test -z "$ac_c_werror_flag"
17969 || test ! -s conftest.err'
17970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971 (eval $ac_try) 2>&5
17973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974 (exit $ac_status); }; } &&
17975 { ac_try
='test -s conftest.$ac_objext'
17976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977 (eval $ac_try) 2>&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); }; }; then
17981 ac_cv_sys_largefile_source
=1; break
17983 echo "$as_me: failed program was:" >&5
17984 sed 's/^/| /' conftest.
$ac_ext >&5
17987 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
17991 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17992 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17993 if test "$ac_cv_sys_largefile_source" != no
; then
17995 cat >>confdefs.h
<<_ACEOF
17996 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18002 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18003 # in glibc 2.1.3, but that breaks too many other things.
18004 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18005 echo "$as_me:$LINENO: checking for fseeko" >&5
18006 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
18007 if test "${ac_cv_func_fseeko+set}" = set; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 cat >conftest.
$ac_ext <<_ACEOF
18013 cat confdefs.h
>>conftest.
$ac_ext
18014 cat >>conftest.
$ac_ext <<_ACEOF
18015 /* end confdefs.h. */
18020 return fseeko && fseeko (stdin, 0, 0);
18025 rm -f conftest.
$ac_objext conftest
$ac_exeext
18026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18027 (eval $ac_link) 2>conftest.er1
18029 grep -v '^ *+' conftest.er1
>conftest.err
18031 cat conftest.err
>&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } &&
18034 { ac_try
='test -z "$ac_c_werror_flag"
18035 || test ! -s conftest.err'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; } &&
18041 { ac_try
='test -s conftest$ac_exeext'
18042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18043 (eval $ac_try) 2>&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); }; }; then
18047 ac_cv_func_fseeko
=yes
18049 echo "$as_me: failed program was:" >&5
18050 sed 's/^/| /' conftest.
$ac_ext >&5
18052 ac_cv_func_fseeko
=no
18054 rm -f conftest.err conftest.
$ac_objext \
18055 conftest
$ac_exeext conftest.
$ac_ext
18057 echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
18058 echo "${ECHO_T}$ac_cv_func_fseeko" >&6
18059 if test $ac_cv_func_fseeko = yes; then
18061 cat >>confdefs.h
<<\_ACEOF
18062 #define HAVE_FSEEKO 1
18068 # Configure getopt.
18069 # getopt.m4 serial 10
18071 # The getopt module assume you want GNU getopt, with getopt_long etc,
18072 # rather than vanilla POSIX getopt. This means your your code should
18073 # always include <getopt.h> for the getopt prototypes.
18085 # Prerequisites of lib/getopt*.
18092 for ac_header
in getopt.h
18094 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18095 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18096 echo "$as_me:$LINENO: checking for $ac_header" >&5
18097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18099 echo $ECHO_N "(cached) $ECHO_C" >&6
18101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18102 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18104 # Is the header compilable?
18105 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18107 cat >conftest.
$ac_ext <<_ACEOF
18110 cat confdefs.h
>>conftest.
$ac_ext
18111 cat >>conftest.
$ac_ext <<_ACEOF
18112 /* end confdefs.h. */
18113 $ac_includes_default
18114 #include <$ac_header>
18116 rm -f conftest.
$ac_objext
18117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18118 (eval $ac_compile) 2>conftest.er1
18120 grep -v '^ *+' conftest.er1
>conftest.err
18122 cat conftest.err
>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); } &&
18125 { ac_try
='test -z "$ac_c_werror_flag"
18126 || test ! -s conftest.err'
18127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; } &&
18132 { ac_try
='test -s conftest.$ac_objext'
18133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18134 (eval $ac_try) 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 ac_header_compiler
=yes
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.
$ac_ext >&5
18143 ac_header_compiler
=no
18145 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18146 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18147 echo "${ECHO_T}$ac_header_compiler" >&6
18149 # Is the header present?
18150 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18152 cat >conftest.
$ac_ext <<_ACEOF
18155 cat confdefs.h
>>conftest.
$ac_ext
18156 cat >>conftest.
$ac_ext <<_ACEOF
18157 /* end confdefs.h. */
18158 #include <$ac_header>
18160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18161 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
18163 grep -v '^ *+' conftest.er1
>conftest.err
18165 cat conftest.err
>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } >/dev
/null
; then
18168 if test -s conftest.err
; then
18169 ac_cpp_err
=$ac_c_preproc_warn_flag
18170 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
18177 if test -z "$ac_cpp_err"; then
18178 ac_header_preproc
=yes
18180 echo "$as_me: failed program was:" >&5
18181 sed 's/^/| /' conftest.
$ac_ext >&5
18183 ac_header_preproc
=no
18185 rm -f conftest.err conftest.
$ac_ext
18186 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18187 echo "${ECHO_T}$ac_header_preproc" >&6
18189 # So? What about this header?
18190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18192 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18193 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18194 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18196 ac_header_preproc
=yes
18199 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18200 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18201 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18202 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18203 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18204 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18205 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18206 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18209 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18210 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18213 ## ------------------------------------------ ##
18214 ## Report this to the AC_PACKAGE_NAME lists. ##
18215 ## ------------------------------------------ ##
18218 sed "s/^/$as_me: WARNING: /" >&2
18221 echo "$as_me:$LINENO: checking for $ac_header" >&5
18222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18226 eval "$as_ac_Header=\$ac_header_preproc"
18228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18233 cat >>confdefs.h
<<_ACEOF
18234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18243 if test -z "$GETOPT_H"; then
18245 for ac_func
in getopt_long_only
18247 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18248 echo "$as_me:$LINENO: checking for $ac_func" >&5
18249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18250 if eval "test \"\${$as_ac_var+set}\" = set"; then
18251 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 cat >conftest.
$ac_ext <<_ACEOF
18256 cat confdefs.h
>>conftest.
$ac_ext
18257 cat >>conftest.
$ac_ext <<_ACEOF
18258 /* end confdefs.h. */
18259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18261 #define $ac_func innocuous_$ac_func
18263 /* System header to define __stub macros and hopefully few prototypes,
18264 which can conflict with char $ac_func (); below.
18265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18266 <limits.h> exists even on freestanding compilers. */
18269 # include <limits.h>
18271 # include <assert.h>
18276 /* Override any gcc2 internal prototype to avoid an error. */
18281 /* We use char because int might match the return type of a gcc2
18282 builtin and then its argument prototype would still apply. */
18284 /* The GNU C library defines this for functions which it implements
18285 to always fail with ENOSYS. Some functions are actually named
18286 something starting with __ and the normal name is an alias. */
18287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18290 char (*f) () = $ac_func;
18299 return f != $ac_func;
18304 rm -f conftest.
$ac_objext conftest
$ac_exeext
18305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18306 (eval $ac_link) 2>conftest.er1
18308 grep -v '^ *+' conftest.er1
>conftest.err
18310 cat conftest.err
>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } &&
18313 { ac_try
='test -z "$ac_c_werror_flag"
18314 || test ! -s conftest.err'
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; } &&
18320 { ac_try
='test -s conftest$ac_exeext'
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
18326 eval "$as_ac_var=yes"
18328 echo "$as_me: failed program was:" >&5
18329 sed 's/^/| /' conftest.
$ac_ext >&5
18331 eval "$as_ac_var=no"
18333 rm -f conftest.err conftest.
$ac_objext \
18334 conftest
$ac_exeext conftest.
$ac_ext
18336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18337 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18338 if test `eval echo '${'$as_ac_var'}'` = yes; then
18339 cat >>confdefs.h
<<_ACEOF
18340 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18350 if test -z "$GETOPT_H"; then
18351 echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18352 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6
18353 if test "${ac_cv_have_decl_optreset+set}" = set; then
18354 echo $ECHO_N "(cached) $ECHO_C" >&6
18356 cat >conftest.
$ac_ext <<_ACEOF
18359 cat confdefs.h
>>conftest.
$ac_ext
18360 cat >>conftest.
$ac_ext <<_ACEOF
18361 /* end confdefs.h. */
18362 #include <getopt.h>
18368 char *p = (char *) optreset;
18375 rm -f conftest.
$ac_objext
18376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18377 (eval $ac_compile) 2>conftest.er1
18379 grep -v '^ *+' conftest.er1
>conftest.err
18381 cat conftest.err
>&5
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } &&
18384 { ac_try
='test -z "$ac_c_werror_flag"
18385 || test ! -s conftest.err'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; } &&
18391 { ac_try
='test -s conftest.$ac_objext'
18392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18393 (eval $ac_try) 2>&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 ac_cv_have_decl_optreset
=yes
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.
$ac_ext >&5
18402 ac_cv_have_decl_optreset
=no
18404 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18406 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18407 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6
18408 if test $ac_cv_have_decl_optreset = yes; then
18414 if test -z "$GETOPT_H"; then
18415 echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18416 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6
18417 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18418 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 if test "$cross_compiling" = yes; then
18421 echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18422 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6
18423 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18424 echo $ECHO_N "(cached) $ECHO_C" >&6
18426 cat >conftest.
$ac_ext <<_ACEOF
18429 cat confdefs.h
>>conftest.
$ac_ext
18430 cat >>conftest.
$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 #include <getopt.h>
18437 #ifndef getopt_clip
18438 char *p = (char *) getopt_clip;
18445 rm -f conftest.
$ac_objext
18446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18447 (eval $ac_compile) 2>conftest.er1
18449 grep -v '^ *+' conftest.er1
>conftest.err
18451 cat conftest.err
>&5
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
18454 { ac_try
='test -z "$ac_c_werror_flag"
18455 || test ! -s conftest.err'
18456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18457 (eval $ac_try) 2>&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); }; } &&
18461 { ac_try
='test -s conftest.$ac_objext'
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; }; then
18467 ac_cv_have_decl_getopt_clip
=yes
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.
$ac_ext >&5
18472 ac_cv_have_decl_getopt_clip
=no
18474 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18476 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18477 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6
18478 if test $ac_cv_have_decl_getopt_clip = yes; then
18479 gl_cv_func_gnu_getopt
=no
18481 gl_cv_func_gnu_getopt
=yes
18485 cat >conftest.
$ac_ext <<_ACEOF
18488 cat confdefs.h
>>conftest.
$ac_ext
18489 cat >>conftest.
$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18491 #include <getopt.h>
18497 myargv[0] = "conftest";
18500 return getopt (2, myargv, "+a") != '?';
18506 rm -f conftest
$ac_exeext
18507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18508 (eval $ac_link) 2>&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
18512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18513 (eval $ac_try) 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; }; then
18517 gl_cv_func_gnu_getopt
=yes
18519 echo "$as_me: program exited with status $ac_status" >&5
18520 echo "$as_me: failed program was:" >&5
18521 sed 's/^/| /' conftest.
$ac_ext >&5
18523 ( exit $ac_status )
18524 gl_cv_func_gnu_getopt
=no
18526 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18529 echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18530 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6
18531 if test "$gl_cv_func_gnu_getopt" = "no"; then
18538 if test -n "$GETOPT_H"; then
18543 cat >>confdefs.h
<<\_ACEOF
18544 #define __GETOPT_PREFIX rpl_
18550 GETOPTOBJS
='getopt.o getopt1.o'
18557 echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18558 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
18559 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18562 # Use it with a single arg.
18563 cat >conftest.
$ac_ext <<_ACEOF
18566 cat confdefs.h
>>conftest.
$ac_ext
18567 cat >>conftest.
$ac_ext <<_ACEOF
18568 /* end confdefs.h. */
18569 $ac_includes_default
18578 rm -f conftest.
$ac_objext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18580 (eval $ac_compile) 2>conftest.er1
18582 grep -v '^ *+' conftest.er1
>conftest.err
18584 cat conftest.err
>&5
18585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586 (exit $ac_status); } &&
18587 { ac_try
='test -z "$ac_c_werror_flag"
18588 || test ! -s conftest.err'
18589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590 (eval $ac_try) 2>&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); }; } &&
18594 { ac_try
='test -s conftest.$ac_objext'
18595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596 (eval $ac_try) 2>&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); }; }; then
18600 ac_cv_func_getpgrp_void
=no
18602 echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.
$ac_ext >&5
18605 ac_cv_func_getpgrp_void
=yes
18607 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
18610 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18611 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
18612 if test $ac_cv_func_getpgrp_void = yes; then
18614 cat >>confdefs.h
<<\_ACEOF
18615 #define GETPGRP_VOID 1
18622 for ac_func
in strftime
18624 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18625 echo "$as_me:$LINENO: checking for $ac_func" >&5
18626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18627 if eval "test \"\${$as_ac_var+set}\" = set"; then
18628 echo $ECHO_N "(cached) $ECHO_C" >&6
18630 cat >conftest.
$ac_ext <<_ACEOF
18633 cat confdefs.h
>>conftest.
$ac_ext
18634 cat >>conftest.
$ac_ext <<_ACEOF
18635 /* end confdefs.h. */
18636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18638 #define $ac_func innocuous_$ac_func
18640 /* System header to define __stub macros and hopefully few prototypes,
18641 which can conflict with char $ac_func (); below.
18642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18643 <limits.h> exists even on freestanding compilers. */
18646 # include <limits.h>
18648 # include <assert.h>
18653 /* Override any gcc2 internal prototype to avoid an error. */
18658 /* We use char because int might match the return type of a gcc2
18659 builtin and then its argument prototype would still apply. */
18661 /* The GNU C library defines this for functions which it implements
18662 to always fail with ENOSYS. Some functions are actually named
18663 something starting with __ and the normal name is an alias. */
18664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18667 char (*f) () = $ac_func;
18676 return f != $ac_func;
18681 rm -f conftest.
$ac_objext conftest
$ac_exeext
18682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18683 (eval $ac_link) 2>conftest.er1
18685 grep -v '^ *+' conftest.er1
>conftest.err
18687 cat conftest.err
>&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try
='test -z "$ac_c_werror_flag"
18691 || test ! -s conftest.err'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; } &&
18697 { ac_try
='test -s conftest$ac_exeext'
18698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699 (eval $ac_try) 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 eval "$as_ac_var=yes"
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.
$ac_ext >&5
18708 eval "$as_ac_var=no"
18710 rm -f conftest.err conftest.
$ac_objext \
18711 conftest
$ac_exeext conftest.
$ac_ext
18713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18715 if test `eval echo '${'$as_ac_var'}'` = yes; then
18716 cat >>confdefs.h
<<_ACEOF
18717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18721 # strftime is in -lintl on SCO UNIX.
18722 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18723 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
18724 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18727 ac_check_lib_save_LIBS
=$LIBS
18728 LIBS
="-lintl $LIBS"
18729 cat >conftest.
$ac_ext <<_ACEOF
18732 cat confdefs.h
>>conftest.
$ac_ext
18733 cat >>conftest.
$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18736 /* Override any gcc2 internal prototype to avoid an error. */
18740 /* We use char because int might match the return type of a gcc2
18741 builtin and then its argument prototype would still apply. */
18751 rm -f conftest.
$ac_objext conftest
$ac_exeext
18752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18753 (eval $ac_link) 2>conftest.er1
18755 grep -v '^ *+' conftest.er1
>conftest.err
18757 cat conftest.err
>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } &&
18760 { ac_try
='test -z "$ac_c_werror_flag"
18761 || test ! -s conftest.err'
18762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18763 (eval $ac_try) 2>&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); }; } &&
18767 { ac_try
='test -s conftest$ac_exeext'
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; }; then
18773 ac_cv_lib_intl_strftime
=yes
18775 echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.
$ac_ext >&5
18778 ac_cv_lib_intl_strftime
=no
18780 rm -f conftest.err conftest.
$ac_objext \
18781 conftest
$ac_exeext conftest.
$ac_ext
18782 LIBS
=$ac_check_lib_save_LIBS
18784 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18785 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
18786 if test $ac_cv_lib_intl_strftime = yes; then
18787 cat >>confdefs.h
<<\_ACEOF
18788 #define HAVE_STRFTIME 1
18791 LIBS
="-lintl $LIBS"
18800 for ac_func
in grantpt
18802 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18803 echo "$as_me:$LINENO: checking for $ac_func" >&5
18804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18805 if eval "test \"\${$as_ac_var+set}\" = set"; then
18806 echo $ECHO_N "(cached) $ECHO_C" >&6
18808 cat >conftest.
$ac_ext <<_ACEOF
18811 cat confdefs.h
>>conftest.
$ac_ext
18812 cat >>conftest.
$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18816 #define $ac_func innocuous_$ac_func
18818 /* System header to define __stub macros and hopefully few prototypes,
18819 which can conflict with char $ac_func (); below.
18820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18821 <limits.h> exists even on freestanding compilers. */
18824 # include <limits.h>
18826 # include <assert.h>
18831 /* Override any gcc2 internal prototype to avoid an error. */
18836 /* We use char because int might match the return type of a gcc2
18837 builtin and then its argument prototype would still apply. */
18839 /* The GNU C library defines this for functions which it implements
18840 to always fail with ENOSYS. Some functions are actually named
18841 something starting with __ and the normal name is an alias. */
18842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18845 char (*f) () = $ac_func;
18854 return f != $ac_func;
18859 rm -f conftest.
$ac_objext conftest
$ac_exeext
18860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18861 (eval $ac_link) 2>conftest.er1
18863 grep -v '^ *+' conftest.er1
>conftest.err
18865 cat conftest.err
>&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try
='test -z "$ac_c_werror_flag"
18869 || test ! -s conftest.err'
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try
='test -s conftest$ac_exeext'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 eval "$as_ac_var=yes"
18883 echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.
$ac_ext >&5
18886 eval "$as_ac_var=no"
18888 rm -f conftest.err conftest.
$ac_objext \
18889 conftest
$ac_exeext conftest.
$ac_ext
18891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18893 if test `eval echo '${'$as_ac_var'}'` = yes; then
18894 cat >>confdefs.h
<<_ACEOF
18895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18902 # PTY-related GNU extensions.
18904 for ac_func
in getpt
18906 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18907 echo "$as_me:$LINENO: checking for $ac_func" >&5
18908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18909 if eval "test \"\${$as_ac_var+set}\" = set"; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 cat >conftest.
$ac_ext <<_ACEOF
18915 cat confdefs.h
>>conftest.
$ac_ext
18916 cat >>conftest.
$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18920 #define $ac_func innocuous_$ac_func
18922 /* System header to define __stub macros and hopefully few prototypes,
18923 which can conflict with char $ac_func (); below.
18924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18925 <limits.h> exists even on freestanding compilers. */
18928 # include <limits.h>
18930 # include <assert.h>
18935 /* Override any gcc2 internal prototype to avoid an error. */
18940 /* We use char because int might match the return type of a gcc2
18941 builtin and then its argument prototype would still apply. */
18943 /* The GNU C library defines this for functions which it implements
18944 to always fail with ENOSYS. Some functions are actually named
18945 something starting with __ and the normal name is an alias. */
18946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18949 char (*f) () = $ac_func;
18958 return f != $ac_func;
18963 rm -f conftest.
$ac_objext conftest
$ac_exeext
18964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18965 (eval $ac_link) 2>conftest.er1
18967 grep -v '^ *+' conftest.er1
>conftest.err
18969 cat conftest.err
>&5
18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } &&
18972 { ac_try
='test -z "$ac_c_werror_flag"
18973 || test ! -s conftest.err'
18974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18975 (eval $ac_try) 2>&5
18977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978 (exit $ac_status); }; } &&
18979 { ac_try
='test -s conftest$ac_exeext'
18980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18981 (eval $ac_try) 2>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; }; then
18985 eval "$as_ac_var=yes"
18987 echo "$as_me: failed program was:" >&5
18988 sed 's/^/| /' conftest.
$ac_ext >&5
18990 eval "$as_ac_var=no"
18992 rm -f conftest.err conftest.
$ac_objext \
18993 conftest
$ac_exeext conftest.
$ac_ext
18995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18997 if test `eval echo '${'$as_ac_var'}'` = yes; then
18998 cat >>confdefs.h
<<_ACEOF
18999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19006 # Check this now, so that we will NOT find the above functions in ncurses.
19007 # That is because we have not set up to link ncurses in lib-src.
19008 # It's better to believe a function is not available
19009 # than to expect to find it in ncurses.
19011 echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19012 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6
19013 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 ac_check_lib_save_LIBS
=$LIBS
19017 LIBS
="-lncurses $LIBS"
19018 cat >conftest.
$ac_ext <<_ACEOF
19021 cat confdefs.h
>>conftest.
$ac_ext
19022 cat >>conftest.
$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19025 /* Override any gcc2 internal prototype to avoid an error. */
19029 /* We use char because int might match the return type of a gcc2
19030 builtin and then its argument prototype would still apply. */
19040 rm -f conftest.
$ac_objext conftest
$ac_exeext
19041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19042 (eval $ac_link) 2>conftest.er1
19044 grep -v '^ *+' conftest.er1
>conftest.err
19046 cat conftest.err
>&5
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); } &&
19049 { ac_try
='test -z "$ac_c_werror_flag"
19050 || test ! -s conftest.err'
19051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052 (eval $ac_try) 2>&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; } &&
19056 { ac_try
='test -s conftest$ac_exeext'
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 ac_cv_lib_ncurses_tparm
=yes
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.
$ac_ext >&5
19067 ac_cv_lib_ncurses_tparm
=no
19069 rm -f conftest.err conftest.
$ac_objext \
19070 conftest
$ac_exeext conftest.
$ac_ext
19071 LIBS
=$ac_check_lib_save_LIBS
19073 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19074 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6
19075 if test $ac_cv_lib_ncurses_tparm = yes; then
19076 cat >>confdefs.h
<<_ACEOF
19077 #define HAVE_LIBNCURSES 1
19080 LIBS
="-lncurses $LIBS"
19085 # Do we need the Hesiod library to provide the support routines?
19086 if test "$with_hesiod" = yes ; then
19087 # Don't set $LIBS here -- see comments above.
19089 echo "$as_me:$LINENO: checking for res_send" >&5
19090 echo $ECHO_N "checking for res_send... $ECHO_C" >&6
19091 if test "${ac_cv_func_res_send+set}" = set; then
19092 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 cat >conftest.
$ac_ext <<_ACEOF
19097 cat confdefs.h
>>conftest.
$ac_ext
19098 cat >>conftest.
$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19100 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19102 #define res_send innocuous_res_send
19104 /* System header to define __stub macros and hopefully few prototypes,
19105 which can conflict with char res_send (); below.
19106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19107 <limits.h> exists even on freestanding compilers. */
19110 # include <limits.h>
19112 # include <assert.h>
19117 /* Override any gcc2 internal prototype to avoid an error. */
19122 /* We use char because int might match the return type of a gcc2
19123 builtin and then its argument prototype would still apply. */
19125 /* The GNU C library defines this for functions which it implements
19126 to always fail with ENOSYS. Some functions are actually named
19127 something starting with __ and the normal name is an alias. */
19128 #if defined (__stub_res_send) || defined (__stub___res_send)
19131 char (*f) () = res_send;
19140 return f != res_send;
19145 rm -f conftest.
$ac_objext conftest
$ac_exeext
19146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19147 (eval $ac_link) 2>conftest.er1
19149 grep -v '^ *+' conftest.er1
>conftest.err
19151 cat conftest.err
>&5
19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19153 (exit $ac_status); } &&
19154 { ac_try
='test -z "$ac_c_werror_flag"
19155 || test ! -s conftest.err'
19156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19157 (eval $ac_try) 2>&5
19159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); }; } &&
19161 { ac_try
='test -s conftest$ac_exeext'
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); }; }; then
19167 ac_cv_func_res_send
=yes
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.
$ac_ext >&5
19172 ac_cv_func_res_send
=no
19174 rm -f conftest.err conftest.
$ac_objext \
19175 conftest
$ac_exeext conftest.
$ac_ext
19177 echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19178 echo "${ECHO_T}$ac_cv_func_res_send" >&6
19179 if test $ac_cv_func_res_send = yes; then
19182 echo "$as_me:$LINENO: checking for __res_send" >&5
19183 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6
19184 if test "${ac_cv_func___res_send+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19187 cat >conftest.
$ac_ext <<_ACEOF
19190 cat confdefs.h
>>conftest.
$ac_ext
19191 cat >>conftest.
$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19195 #define __res_send innocuous___res_send
19197 /* System header to define __stub macros and hopefully few prototypes,
19198 which can conflict with char __res_send (); below.
19199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19200 <limits.h> exists even on freestanding compilers. */
19203 # include <limits.h>
19205 # include <assert.h>
19210 /* Override any gcc2 internal prototype to avoid an error. */
19215 /* We use char because int might match the return type of a gcc2
19216 builtin and then its argument prototype would still apply. */
19217 char __res_send ();
19218 /* The GNU C library defines this for functions which it implements
19219 to always fail with ENOSYS. Some functions are actually named
19220 something starting with __ and the normal name is an alias. */
19221 #if defined (__stub___res_send) || defined (__stub_____res_send)
19224 char (*f) () = __res_send;
19233 return f != __res_send;
19238 rm -f conftest.
$ac_objext conftest
$ac_exeext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19240 (eval $ac_link) 2>conftest.er1
19242 grep -v '^ *+' conftest.er1
>conftest.err
19244 cat conftest.err
>&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
19247 { ac_try
='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try
='test -s conftest$ac_exeext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_func___res_send
=yes
19262 echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.
$ac_ext >&5
19265 ac_cv_func___res_send
=no
19267 rm -f conftest.err conftest.
$ac_objext \
19268 conftest
$ac_exeext conftest.
$ac_ext
19270 echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19271 echo "${ECHO_T}$ac_cv_func___res_send" >&6
19272 if test $ac_cv_func___res_send = yes; then
19275 echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19276 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6
19277 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19280 ac_check_lib_save_LIBS
=$LIBS
19281 LIBS
="-lresolv $LIBS"
19282 cat >conftest.
$ac_ext <<_ACEOF
19285 cat confdefs.h
>>conftest.
$ac_ext
19286 cat >>conftest.
$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19289 /* Override any gcc2 internal prototype to avoid an error. */
19293 /* We use char because int might match the return type of a gcc2
19294 builtin and then its argument prototype would still apply. */
19304 rm -f conftest.
$ac_objext conftest
$ac_exeext
19305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19306 (eval $ac_link) 2>conftest.er1
19308 grep -v '^ *+' conftest.er1
>conftest.err
19310 cat conftest.err
>&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } &&
19313 { ac_try
='test -z "$ac_c_werror_flag"
19314 || test ! -s conftest.err'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; } &&
19320 { ac_try
='test -s conftest$ac_exeext'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; }; then
19326 ac_cv_lib_resolv_res_send
=yes
19328 echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.
$ac_ext >&5
19331 ac_cv_lib_resolv_res_send
=no
19333 rm -f conftest.err conftest.
$ac_objext \
19334 conftest
$ac_exeext conftest.
$ac_ext
19335 LIBS
=$ac_check_lib_save_LIBS
19337 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19338 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6
19339 if test $ac_cv_lib_resolv_res_send = yes; then
19342 echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19343 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6
19344 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 ac_check_lib_save_LIBS
=$LIBS
19348 LIBS
="-lresolv $LIBS"
19349 cat >conftest.
$ac_ext <<_ACEOF
19352 cat confdefs.h
>>conftest.
$ac_ext
19353 cat >>conftest.
$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19356 /* Override any gcc2 internal prototype to avoid an error. */
19360 /* We use char because int might match the return type of a gcc2
19361 builtin and then its argument prototype would still apply. */
19362 char __res_send ();
19371 rm -f conftest.
$ac_objext conftest
$ac_exeext
19372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19373 (eval $ac_link) 2>conftest.er1
19375 grep -v '^ *+' conftest.er1
>conftest.err
19377 cat conftest.err
>&5
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); } &&
19380 { ac_try
='test -z "$ac_c_werror_flag"
19381 || test ! -s conftest.err'
19382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19383 (eval $ac_try) 2>&5
19385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19386 (exit $ac_status); }; } &&
19387 { ac_try
='test -s conftest$ac_exeext'
19388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19389 (eval $ac_try) 2>&5
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_cv_lib_resolv___res_send
=yes
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.
$ac_ext >&5
19398 ac_cv_lib_resolv___res_send
=no
19400 rm -f conftest.err conftest.
$ac_objext \
19401 conftest
$ac_exeext conftest.
$ac_ext
19402 LIBS
=$ac_check_lib_save_LIBS
19404 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19405 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6
19406 if test $ac_cv_lib_resolv___res_send = yes; then
19416 if test "$resolv" = yes ; then
19419 cat >>confdefs.h
<<\_ACEOF
19420 #define HAVE_LIBRESOLV 1
19426 echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19427 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6
19428 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19429 echo $ECHO_N "(cached) $ECHO_C" >&6
19431 cat >conftest.
$ac_ext <<_ACEOF
19434 cat confdefs.h
>>conftest.
$ac_ext
19435 cat >>conftest.
$ac_ext <<_ACEOF
19436 /* end confdefs.h. */
19437 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19439 #define hes_getmailhost innocuous_hes_getmailhost
19441 /* System header to define __stub macros and hopefully few prototypes,
19442 which can conflict with char hes_getmailhost (); below.
19443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19444 <limits.h> exists even on freestanding compilers. */
19447 # include <limits.h>
19449 # include <assert.h>
19452 #undef hes_getmailhost
19454 /* Override any gcc2 internal prototype to avoid an error. */
19459 /* We use char because int might match the return type of a gcc2
19460 builtin and then its argument prototype would still apply. */
19461 char hes_getmailhost ();
19462 /* The GNU C library defines this for functions which it implements
19463 to always fail with ENOSYS. Some functions are actually named
19464 something starting with __ and the normal name is an alias. */
19465 #if defined (__stub_hes_getmailhost) || defined (__stub___hes_getmailhost)
19468 char (*f) () = hes_getmailhost;
19477 return f != hes_getmailhost;
19482 rm -f conftest.
$ac_objext conftest
$ac_exeext
19483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19484 (eval $ac_link) 2>conftest.er1
19486 grep -v '^ *+' conftest.er1
>conftest.err
19488 cat conftest.err
>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } &&
19491 { ac_try
='test -z "$ac_c_werror_flag"
19492 || test ! -s conftest.err'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; } &&
19498 { ac_try
='test -s conftest$ac_exeext'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 ac_cv_func_hes_getmailhost
=yes
19506 echo "$as_me: failed program was:" >&5
19507 sed 's/^/| /' conftest.
$ac_ext >&5
19509 ac_cv_func_hes_getmailhost
=no
19511 rm -f conftest.err conftest.
$ac_objext \
19512 conftest
$ac_exeext conftest.
$ac_ext
19514 echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19515 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6
19516 if test $ac_cv_func_hes_getmailhost = yes; then
19519 echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19520 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6
19521 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 ac_check_lib_save_LIBS
=$LIBS
19525 LIBS
="-lhesiod $RESOLVLIB $LIBS"
19526 cat >conftest.
$ac_ext <<_ACEOF
19529 cat confdefs.h
>>conftest.
$ac_ext
19530 cat >>conftest.
$ac_ext <<_ACEOF
19531 /* end confdefs.h. */
19533 /* Override any gcc2 internal prototype to avoid an error. */
19537 /* We use char because int might match the return type of a gcc2
19538 builtin and then its argument prototype would still apply. */
19539 char hes_getmailhost ();
19543 hes_getmailhost ();
19548 rm -f conftest.
$ac_objext conftest
$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550 (eval $ac_link) 2>conftest.er1
19552 grep -v '^ *+' conftest.er1
>conftest.err
19554 cat conftest.err
>&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try
='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try
='test -s conftest$ac_exeext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_cv_lib_hesiod_hes_getmailhost
=yes
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.
$ac_ext >&5
19575 ac_cv_lib_hesiod_hes_getmailhost
=no
19577 rm -f conftest.err conftest.
$ac_objext \
19578 conftest
$ac_exeext conftest.
$ac_ext
19579 LIBS
=$ac_check_lib_save_LIBS
19581 echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19582 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6
19583 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19585 cat >>confdefs.h
<<\_ACEOF
19586 #define HAVE_LIBHESIOD 1
19597 # These tell us which Kerberos-related libraries to use.
19598 if test "${with_kerberos+set}" = set; then
19600 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19601 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6
19602 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19603 echo $ECHO_N "(cached) $ECHO_C" >&6
19605 ac_check_lib_save_LIBS
=$LIBS
19606 LIBS
="-lcom_err $LIBS"
19607 cat >conftest.
$ac_ext <<_ACEOF
19610 cat confdefs.h
>>conftest.
$ac_ext
19611 cat >>conftest.
$ac_ext <<_ACEOF
19612 /* end confdefs.h. */
19614 /* Override any gcc2 internal prototype to avoid an error. */
19618 /* We use char because int might match the return type of a gcc2
19619 builtin and then its argument prototype would still apply. */
19629 rm -f conftest.
$ac_objext conftest
$ac_exeext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19631 (eval $ac_link) 2>conftest.er1
19633 grep -v '^ *+' conftest.er1
>conftest.err
19635 cat conftest.err
>&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
19638 { ac_try
='test -z "$ac_c_werror_flag"
19639 || test ! -s conftest.err'
19640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641 (eval $ac_try) 2>&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); }; } &&
19645 { ac_try
='test -s conftest$ac_exeext'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; }; then
19651 ac_cv_lib_com_err_com_err
=yes
19653 echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.
$ac_ext >&5
19656 ac_cv_lib_com_err_com_err
=no
19658 rm -f conftest.err conftest.
$ac_objext \
19659 conftest
$ac_exeext conftest.
$ac_ext
19660 LIBS
=$ac_check_lib_save_LIBS
19662 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19663 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6
19664 if test $ac_cv_lib_com_err_com_err = yes; then
19665 cat >>confdefs.h
<<_ACEOF
19666 #define HAVE_LIBCOM_ERR 1
19669 LIBS
="-lcom_err $LIBS"
19674 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19675 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6
19676 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19679 ac_check_lib_save_LIBS
=$LIBS
19680 LIBS
="-lk5crypto $LIBS"
19681 cat >conftest.
$ac_ext <<_ACEOF
19684 cat confdefs.h
>>conftest.
$ac_ext
19685 cat >>conftest.
$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19688 /* Override any gcc2 internal prototype to avoid an error. */
19692 /* We use char because int might match the return type of a gcc2
19693 builtin and then its argument prototype would still apply. */
19694 char mit_des_cbc_encrypt ();
19698 mit_des_cbc_encrypt ();
19703 rm -f conftest.
$ac_objext conftest
$ac_exeext
19704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19705 (eval $ac_link) 2>conftest.er1
19707 grep -v '^ *+' conftest.er1
>conftest.err
19709 cat conftest.err
>&5
19710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19711 (exit $ac_status); } &&
19712 { ac_try
='test -z "$ac_c_werror_flag"
19713 || test ! -s conftest.err'
19714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19715 (eval $ac_try) 2>&5
19717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19718 (exit $ac_status); }; } &&
19719 { ac_try
='test -s conftest$ac_exeext'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; }; then
19725 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=yes
19727 echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.
$ac_ext >&5
19730 ac_cv_lib_k5crypto_mit_des_cbc_encrypt
=no
19732 rm -f conftest.err conftest.
$ac_objext \
19733 conftest
$ac_exeext conftest.
$ac_ext
19734 LIBS
=$ac_check_lib_save_LIBS
19736 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19737 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6
19738 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19739 cat >>confdefs.h
<<_ACEOF
19740 #define HAVE_LIBK5CRYPTO 1
19743 LIBS
="-lk5crypto $LIBS"
19748 echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19749 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6
19750 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 ac_check_lib_save_LIBS
=$LIBS
19754 LIBS
="-lcrypto $LIBS"
19755 cat >conftest.
$ac_ext <<_ACEOF
19758 cat confdefs.h
>>conftest.
$ac_ext
19759 cat >>conftest.
$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19762 /* Override any gcc2 internal prototype to avoid an error. */
19766 /* We use char because int might match the return type of a gcc2
19767 builtin and then its argument prototype would still apply. */
19768 char mit_des_cbc_encrypt ();
19772 mit_des_cbc_encrypt ();
19777 rm -f conftest.
$ac_objext conftest
$ac_exeext
19778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19779 (eval $ac_link) 2>conftest.er1
19781 grep -v '^ *+' conftest.er1
>conftest.err
19783 cat conftest.err
>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
19786 { ac_try
='test -z "$ac_c_werror_flag"
19787 || test ! -s conftest.err'
19788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19789 (eval $ac_try) 2>&5
19791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19792 (exit $ac_status); }; } &&
19793 { ac_try
='test -s conftest$ac_exeext'
19794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19795 (eval $ac_try) 2>&5
19797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); }; }; then
19799 ac_cv_lib_crypto_mit_des_cbc_encrypt
=yes
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.
$ac_ext >&5
19804 ac_cv_lib_crypto_mit_des_cbc_encrypt
=no
19806 rm -f conftest.err conftest.
$ac_objext \
19807 conftest
$ac_exeext conftest.
$ac_ext
19808 LIBS
=$ac_check_lib_save_LIBS
19810 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19811 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6
19812 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19813 cat >>confdefs.h
<<_ACEOF
19814 #define HAVE_LIBCRYPTO 1
19817 LIBS
="-lcrypto $LIBS"
19822 echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19823 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6
19824 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 ac_check_lib_save_LIBS
=$LIBS
19828 LIBS
="-lkrb5 $LIBS"
19829 cat >conftest.
$ac_ext <<_ACEOF
19832 cat confdefs.h
>>conftest.
$ac_ext
19833 cat >>conftest.
$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19836 /* Override any gcc2 internal prototype to avoid an error. */
19840 /* We use char because int might match the return type of a gcc2
19841 builtin and then its argument prototype would still apply. */
19842 char krb5_init_context ();
19846 krb5_init_context ();
19851 rm -f conftest.
$ac_objext conftest
$ac_exeext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19853 (eval $ac_link) 2>conftest.er1
19855 grep -v '^ *+' conftest.er1
>conftest.err
19857 cat conftest.err
>&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
19860 { ac_try
='test -z "$ac_c_werror_flag"
19861 || test ! -s conftest.err'
19862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19863 (eval $ac_try) 2>&5
19865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19866 (exit $ac_status); }; } &&
19867 { ac_try
='test -s conftest$ac_exeext'
19868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19869 (eval $ac_try) 2>&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); }; }; then
19873 ac_cv_lib_krb5_krb5_init_context
=yes
19875 echo "$as_me: failed program was:" >&5
19876 sed 's/^/| /' conftest.
$ac_ext >&5
19878 ac_cv_lib_krb5_krb5_init_context
=no
19880 rm -f conftest.err conftest.
$ac_objext \
19881 conftest
$ac_exeext conftest.
$ac_ext
19882 LIBS
=$ac_check_lib_save_LIBS
19884 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19885 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6
19886 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19887 cat >>confdefs.h
<<_ACEOF
19888 #define HAVE_LIBKRB5 1
19891 LIBS
="-lkrb5 $LIBS"
19895 if test "${with_kerberos5+set}" != set; then
19897 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19898 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6
19899 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19902 ac_check_lib_save_LIBS
=$LIBS
19903 LIBS
="-ldes425 $LIBS"
19904 cat >conftest.
$ac_ext <<_ACEOF
19907 cat confdefs.h
>>conftest.
$ac_ext
19908 cat >>conftest.
$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19911 /* Override any gcc2 internal prototype to avoid an error. */
19915 /* We use char because int might match the return type of a gcc2
19916 builtin and then its argument prototype would still apply. */
19917 char des_cbc_encrypt ();
19921 des_cbc_encrypt ();
19926 rm -f conftest.
$ac_objext conftest
$ac_exeext
19927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19928 (eval $ac_link) 2>conftest.er1
19930 grep -v '^ *+' conftest.er1
>conftest.err
19932 cat conftest.err
>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
19935 { ac_try
='test -z "$ac_c_werror_flag"
19936 || test ! -s conftest.err'
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; } &&
19942 { ac_try
='test -s conftest$ac_exeext'
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; }; then
19948 ac_cv_lib_des425_des_cbc_encrypt
=yes
19950 echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.
$ac_ext >&5
19953 ac_cv_lib_des425_des_cbc_encrypt
=no
19955 rm -f conftest.err conftest.
$ac_objext \
19956 conftest
$ac_exeext conftest.
$ac_ext
19957 LIBS
=$ac_check_lib_save_LIBS
19959 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19960 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6
19961 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19962 cat >>confdefs.h
<<_ACEOF
19963 #define HAVE_LIBDES425 1
19966 LIBS
="-ldes425 $LIBS"
19970 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19971 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6
19972 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 ac_check_lib_save_LIBS
=$LIBS
19977 cat >conftest.
$ac_ext <<_ACEOF
19980 cat confdefs.h
>>conftest.
$ac_ext
19981 cat >>conftest.
$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19984 /* Override any gcc2 internal prototype to avoid an error. */
19988 /* We use char because int might match the return type of a gcc2
19989 builtin and then its argument prototype would still apply. */
19990 char des_cbc_encrypt ();
19994 des_cbc_encrypt ();
19999 rm -f conftest.
$ac_objext conftest
$ac_exeext
20000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20001 (eval $ac_link) 2>conftest.er1
20003 grep -v '^ *+' conftest.er1
>conftest.err
20005 cat conftest.err
>&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
20008 { ac_try
='test -z "$ac_c_werror_flag"
20009 || test ! -s conftest.err'
20010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011 (eval $ac_try) 2>&5
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; } &&
20015 { ac_try
='test -s conftest$ac_exeext'
20016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20017 (eval $ac_try) 2>&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); }; }; then
20021 ac_cv_lib_des_des_cbc_encrypt
=yes
20023 echo "$as_me: failed program was:" >&5
20024 sed 's/^/| /' conftest.
$ac_ext >&5
20026 ac_cv_lib_des_des_cbc_encrypt
=no
20028 rm -f conftest.err conftest.
$ac_objext \
20029 conftest
$ac_exeext conftest.
$ac_ext
20030 LIBS
=$ac_check_lib_save_LIBS
20032 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20033 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6
20034 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20035 cat >>confdefs.h
<<_ACEOF
20036 #define HAVE_LIBDES 1
20046 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20047 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6
20048 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 ac_check_lib_save_LIBS
=$LIBS
20052 LIBS
="-lkrb4 $LIBS"
20053 cat >conftest.
$ac_ext <<_ACEOF
20056 cat confdefs.h
>>conftest.
$ac_ext
20057 cat >>conftest.
$ac_ext <<_ACEOF
20058 /* end confdefs.h. */
20060 /* Override any gcc2 internal prototype to avoid an error. */
20064 /* We use char because int might match the return type of a gcc2
20065 builtin and then its argument prototype would still apply. */
20066 char krb_get_cred ();
20075 rm -f conftest.
$ac_objext conftest
$ac_exeext
20076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20077 (eval $ac_link) 2>conftest.er1
20079 grep -v '^ *+' conftest.er1
>conftest.err
20081 cat conftest.err
>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); } &&
20084 { ac_try
='test -z "$ac_c_werror_flag"
20085 || test ! -s conftest.err'
20086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20087 (eval $ac_try) 2>&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); }; } &&
20091 { ac_try
='test -s conftest$ac_exeext'
20092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20093 (eval $ac_try) 2>&5
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); }; }; then
20097 ac_cv_lib_krb4_krb_get_cred
=yes
20099 echo "$as_me: failed program was:" >&5
20100 sed 's/^/| /' conftest.
$ac_ext >&5
20102 ac_cv_lib_krb4_krb_get_cred
=no
20104 rm -f conftest.err conftest.
$ac_objext \
20105 conftest
$ac_exeext conftest.
$ac_ext
20106 LIBS
=$ac_check_lib_save_LIBS
20108 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20109 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6
20110 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20111 cat >>confdefs.h
<<_ACEOF
20112 #define HAVE_LIBKRB4 1
20115 LIBS
="-lkrb4 $LIBS"
20119 echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20120 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6
20121 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20122 echo $ECHO_N "(cached) $ECHO_C" >&6
20124 ac_check_lib_save_LIBS
=$LIBS
20126 cat >conftest.
$ac_ext <<_ACEOF
20129 cat confdefs.h
>>conftest.
$ac_ext
20130 cat >>conftest.
$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20133 /* Override any gcc2 internal prototype to avoid an error. */
20137 /* We use char because int might match the return type of a gcc2
20138 builtin and then its argument prototype would still apply. */
20139 char krb_get_cred ();
20148 rm -f conftest.
$ac_objext conftest
$ac_exeext
20149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20150 (eval $ac_link) 2>conftest.er1
20152 grep -v '^ *+' conftest.er1
>conftest.err
20154 cat conftest.err
>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
20157 { ac_try
='test -z "$ac_c_werror_flag"
20158 || test ! -s conftest.err'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; } &&
20164 { ac_try
='test -s conftest$ac_exeext'
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; }; then
20170 ac_cv_lib_krb_krb_get_cred
=yes
20172 echo "$as_me: failed program was:" >&5
20173 sed 's/^/| /' conftest.
$ac_ext >&5
20175 ac_cv_lib_krb_krb_get_cred
=no
20177 rm -f conftest.err conftest.
$ac_objext \
20178 conftest
$ac_exeext conftest.
$ac_ext
20179 LIBS
=$ac_check_lib_save_LIBS
20181 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20182 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6
20183 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20184 cat >>confdefs.h
<<_ACEOF
20185 #define HAVE_LIBKRB 1
20196 if test "${with_kerberos5+set}" = set; then
20198 for ac_header
in krb5.h
20200 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20202 echo "$as_me:$LINENO: checking for $ac_header" >&5
20203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20204 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
20207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20210 # Is the header compilable?
20211 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20212 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20213 cat >conftest.
$ac_ext <<_ACEOF
20216 cat confdefs.h
>>conftest.
$ac_ext
20217 cat >>conftest.
$ac_ext <<_ACEOF
20218 /* end confdefs.h. */
20219 $ac_includes_default
20220 #include <$ac_header>
20222 rm -f conftest.
$ac_objext
20223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20224 (eval $ac_compile) 2>conftest.er1
20226 grep -v '^ *+' conftest.er1
>conftest.err
20228 cat conftest.err
>&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try
='test -z "$ac_c_werror_flag"
20232 || test ! -s conftest.err'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try
='test -s conftest.$ac_objext'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 ac_header_compiler
=yes
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.
$ac_ext >&5
20249 ac_header_compiler
=no
20251 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20253 echo "${ECHO_T}$ac_header_compiler" >&6
20255 # Is the header present?
20256 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20258 cat >conftest.
$ac_ext <<_ACEOF
20261 cat confdefs.h
>>conftest.
$ac_ext
20262 cat >>conftest.
$ac_ext <<_ACEOF
20263 /* end confdefs.h. */
20264 #include <$ac_header>
20266 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20267 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20269 grep -v '^ *+' conftest.er1
>conftest.err
20271 cat conftest.err
>&5
20272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20273 (exit $ac_status); } >/dev
/null
; then
20274 if test -s conftest.err
; then
20275 ac_cpp_err
=$ac_c_preproc_warn_flag
20276 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20283 if test -z "$ac_cpp_err"; then
20284 ac_header_preproc
=yes
20286 echo "$as_me: failed program was:" >&5
20287 sed 's/^/| /' conftest.
$ac_ext >&5
20289 ac_header_preproc
=no
20291 rm -f conftest.err conftest.
$ac_ext
20292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20293 echo "${ECHO_T}$ac_header_preproc" >&6
20295 # So? What about this header?
20296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20302 ac_header_preproc
=yes
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20319 ## ------------------------------------------ ##
20320 ## Report this to the AC_PACKAGE_NAME lists. ##
20321 ## ------------------------------------------ ##
20324 sed "s/^/$as_me: WARNING: /" >&2
20327 echo "$as_me:$LINENO: checking for $ac_header" >&5
20328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20330 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 eval "$as_ac_Header=\$ac_header_preproc"
20334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20339 cat >>confdefs.h
<<_ACEOF
20340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20349 for ac_header
in des.h
20351 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20353 echo "$as_me:$LINENO: checking for $ac_header" >&5
20354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20358 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20359 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20361 # Is the header compilable?
20362 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20364 cat >conftest.
$ac_ext <<_ACEOF
20367 cat confdefs.h
>>conftest.
$ac_ext
20368 cat >>conftest.
$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20370 $ac_includes_default
20371 #include <$ac_header>
20373 rm -f conftest.
$ac_objext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20375 (eval $ac_compile) 2>conftest.er1
20377 grep -v '^ *+' conftest.er1
>conftest.err
20379 cat conftest.err
>&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } &&
20382 { ac_try
='test -z "$ac_c_werror_flag"
20383 || test ! -s conftest.err'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; } &&
20389 { ac_try
='test -s conftest.$ac_objext'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 ac_header_compiler
=yes
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.
$ac_ext >&5
20400 ac_header_compiler
=no
20402 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20404 echo "${ECHO_T}$ac_header_compiler" >&6
20406 # Is the header present?
20407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20409 cat >conftest.
$ac_ext <<_ACEOF
20412 cat confdefs.h
>>conftest.
$ac_ext
20413 cat >>conftest.
$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 #include <$ac_header>
20417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20418 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20420 grep -v '^ *+' conftest.er1
>conftest.err
20422 cat conftest.err
>&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } >/dev
/null
; then
20425 if test -s conftest.err
; then
20426 ac_cpp_err
=$ac_c_preproc_warn_flag
20427 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20434 if test -z "$ac_cpp_err"; then
20435 ac_header_preproc
=yes
20437 echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.
$ac_ext >&5
20440 ac_header_preproc
=no
20442 rm -f conftest.err conftest.
$ac_ext
20443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20444 echo "${ECHO_T}$ac_header_preproc" >&6
20446 # So? What about this header?
20447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20453 ac_header_preproc
=yes
20456 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20459 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20462 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20463 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20466 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20470 ## ------------------------------------------ ##
20471 ## Report this to the AC_PACKAGE_NAME lists. ##
20472 ## ------------------------------------------ ##
20475 sed "s/^/$as_me: WARNING: /" >&2
20478 echo "$as_me:$LINENO: checking for $ac_header" >&5
20479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20483 eval "$as_ac_Header=\$ac_header_preproc"
20485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20490 cat >>confdefs.h
<<_ACEOF
20491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20496 for ac_header
in kerberosIV
/des.h
20498 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20499 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20500 echo "$as_me:$LINENO: checking for $ac_header" >&5
20501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20503 echo $ECHO_N "(cached) $ECHO_C" >&6
20505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20508 # Is the header compilable?
20509 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20511 cat >conftest.
$ac_ext <<_ACEOF
20514 cat confdefs.h
>>conftest.
$ac_ext
20515 cat >>conftest.
$ac_ext <<_ACEOF
20516 /* end confdefs.h. */
20517 $ac_includes_default
20518 #include <$ac_header>
20520 rm -f conftest.
$ac_objext
20521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20522 (eval $ac_compile) 2>conftest.er1
20524 grep -v '^ *+' conftest.er1
>conftest.err
20526 cat conftest.err
>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } &&
20529 { ac_try
='test -z "$ac_c_werror_flag"
20530 || test ! -s conftest.err'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; } &&
20536 { ac_try
='test -s conftest.$ac_objext'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; }; then
20542 ac_header_compiler
=yes
20544 echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.
$ac_ext >&5
20547 ac_header_compiler
=no
20549 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20551 echo "${ECHO_T}$ac_header_compiler" >&6
20553 # Is the header present?
20554 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20556 cat >conftest.
$ac_ext <<_ACEOF
20559 cat confdefs.h
>>conftest.
$ac_ext
20560 cat >>conftest.
$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 #include <$ac_header>
20564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20565 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20567 grep -v '^ *+' conftest.er1
>conftest.err
20569 cat conftest.err
>&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } >/dev
/null
; then
20572 if test -s conftest.err
; then
20573 ac_cpp_err
=$ac_c_preproc_warn_flag
20574 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20581 if test -z "$ac_cpp_err"; then
20582 ac_header_preproc
=yes
20584 echo "$as_me: failed program was:" >&5
20585 sed 's/^/| /' conftest.
$ac_ext >&5
20587 ac_header_preproc
=no
20589 rm -f conftest.err conftest.
$ac_ext
20590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20591 echo "${ECHO_T}$ac_header_preproc" >&6
20593 # So? What about this header?
20594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20596 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20600 ac_header_preproc
=yes
20603 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20606 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20609 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20610 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20611 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20613 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20617 ## ------------------------------------------ ##
20618 ## Report this to the AC_PACKAGE_NAME lists. ##
20619 ## ------------------------------------------ ##
20622 sed "s/^/$as_me: WARNING: /" >&2
20625 echo "$as_me:$LINENO: checking for $ac_header" >&5
20626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20628 echo $ECHO_N "(cached) $ECHO_C" >&6
20630 eval "$as_ac_Header=\$ac_header_preproc"
20632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20637 cat >>confdefs.h
<<_ACEOF
20638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20643 for ac_header
in kerberos
/des.h
20645 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20647 echo "$as_me:$LINENO: checking for $ac_header" >&5
20648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20650 echo $ECHO_N "(cached) $ECHO_C" >&6
20652 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20653 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20655 # Is the header compilable?
20656 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20658 cat >conftest.
$ac_ext <<_ACEOF
20661 cat confdefs.h
>>conftest.
$ac_ext
20662 cat >>conftest.
$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20664 $ac_includes_default
20665 #include <$ac_header>
20667 rm -f conftest.
$ac_objext
20668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20669 (eval $ac_compile) 2>conftest.er1
20671 grep -v '^ *+' conftest.er1
>conftest.err
20673 cat conftest.err
>&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } &&
20676 { ac_try
='test -z "$ac_c_werror_flag"
20677 || test ! -s conftest.err'
20678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20679 (eval $ac_try) 2>&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); }; } &&
20683 { ac_try
='test -s conftest.$ac_objext'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; }; then
20689 ac_header_compiler
=yes
20691 echo "$as_me: failed program was:" >&5
20692 sed 's/^/| /' conftest.
$ac_ext >&5
20694 ac_header_compiler
=no
20696 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20697 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20698 echo "${ECHO_T}$ac_header_compiler" >&6
20700 # Is the header present?
20701 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20702 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20703 cat >conftest.
$ac_ext <<_ACEOF
20706 cat confdefs.h
>>conftest.
$ac_ext
20707 cat >>conftest.
$ac_ext <<_ACEOF
20708 /* end confdefs.h. */
20709 #include <$ac_header>
20711 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20712 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20714 grep -v '^ *+' conftest.er1
>conftest.err
20716 cat conftest.err
>&5
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } >/dev
/null
; then
20719 if test -s conftest.err
; then
20720 ac_cpp_err
=$ac_c_preproc_warn_flag
20721 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20728 if test -z "$ac_cpp_err"; then
20729 ac_header_preproc
=yes
20731 echo "$as_me: failed program was:" >&5
20732 sed 's/^/| /' conftest.
$ac_ext >&5
20734 ac_header_preproc
=no
20736 rm -f conftest.err conftest.
$ac_ext
20737 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20738 echo "${ECHO_T}$ac_header_preproc" >&6
20740 # So? What about this header?
20741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20747 ac_header_preproc
=yes
20750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20757 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20764 ## ------------------------------------------ ##
20765 ## Report this to the AC_PACKAGE_NAME lists. ##
20766 ## ------------------------------------------ ##
20769 sed "s/^/$as_me: WARNING: /" >&2
20772 echo "$as_me:$LINENO: checking for $ac_header" >&5
20773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20774 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20775 echo $ECHO_N "(cached) $ECHO_C" >&6
20777 eval "$as_ac_Header=\$ac_header_preproc"
20779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20784 cat >>confdefs.h
<<_ACEOF
20785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20801 for ac_header
in krb.h
20803 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20805 echo "$as_me:$LINENO: checking for $ac_header" >&5
20806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20808 echo $ECHO_N "(cached) $ECHO_C" >&6
20810 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20811 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20813 # Is the header compilable?
20814 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20816 cat >conftest.
$ac_ext <<_ACEOF
20819 cat confdefs.h
>>conftest.
$ac_ext
20820 cat >>conftest.
$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20822 $ac_includes_default
20823 #include <$ac_header>
20825 rm -f conftest.
$ac_objext
20826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20827 (eval $ac_compile) 2>conftest.er1
20829 grep -v '^ *+' conftest.er1
>conftest.err
20831 cat conftest.err
>&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } &&
20834 { ac_try
='test -z "$ac_c_werror_flag"
20835 || test ! -s conftest.err'
20836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; } &&
20841 { ac_try
='test -s conftest.$ac_objext'
20842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843 (eval $ac_try) 2>&5
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; }; then
20847 ac_header_compiler
=yes
20849 echo "$as_me: failed program was:" >&5
20850 sed 's/^/| /' conftest.
$ac_ext >&5
20852 ac_header_compiler
=no
20854 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
20855 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20856 echo "${ECHO_T}$ac_header_compiler" >&6
20858 # Is the header present?
20859 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20861 cat >conftest.
$ac_ext <<_ACEOF
20864 cat confdefs.h
>>conftest.
$ac_ext
20865 cat >>conftest.
$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 #include <$ac_header>
20869 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20870 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
20872 grep -v '^ *+' conftest.er1
>conftest.err
20874 cat conftest.err
>&5
20875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20876 (exit $ac_status); } >/dev
/null
; then
20877 if test -s conftest.err
; then
20878 ac_cpp_err
=$ac_c_preproc_warn_flag
20879 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
20886 if test -z "$ac_cpp_err"; then
20887 ac_header_preproc
=yes
20889 echo "$as_me: failed program was:" >&5
20890 sed 's/^/| /' conftest.
$ac_ext >&5
20892 ac_header_preproc
=no
20894 rm -f conftest.err conftest.
$ac_ext
20895 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20896 echo "${ECHO_T}$ac_header_preproc" >&6
20898 # So? What about this header?
20899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20905 ac_header_preproc
=yes
20908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20922 ## ------------------------------------------ ##
20923 ## Report this to the AC_PACKAGE_NAME lists. ##
20924 ## ------------------------------------------ ##
20927 sed "s/^/$as_me: WARNING: /" >&2
20930 echo "$as_me:$LINENO: checking for $ac_header" >&5
20931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20932 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20933 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 eval "$as_ac_Header=\$ac_header_preproc"
20937 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20938 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20942 cat >>confdefs.h
<<_ACEOF
20943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20948 for ac_header
in kerberosIV
/krb.h
20950 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20952 echo "$as_me:$LINENO: checking for $ac_header" >&5
20953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20957 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20958 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20960 # Is the header compilable?
20961 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20963 cat >conftest.
$ac_ext <<_ACEOF
20966 cat confdefs.h
>>conftest.
$ac_ext
20967 cat >>conftest.
$ac_ext <<_ACEOF
20968 /* end confdefs.h. */
20969 $ac_includes_default
20970 #include <$ac_header>
20972 rm -f conftest.
$ac_objext
20973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20974 (eval $ac_compile) 2>conftest.er1
20976 grep -v '^ *+' conftest.er1
>conftest.err
20978 cat conftest.err
>&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } &&
20981 { ac_try
='test -z "$ac_c_werror_flag"
20982 || test ! -s conftest.err'
20983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984 (eval $ac_try) 2>&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; } &&
20988 { ac_try
='test -s conftest.$ac_objext'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; }; then
20994 ac_header_compiler
=yes
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.
$ac_ext >&5
20999 ac_header_compiler
=no
21001 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21002 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21003 echo "${ECHO_T}$ac_header_compiler" >&6
21005 # Is the header present?
21006 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21008 cat >conftest.
$ac_ext <<_ACEOF
21011 cat confdefs.h
>>conftest.
$ac_ext
21012 cat >>conftest.
$ac_ext <<_ACEOF
21013 /* end confdefs.h. */
21014 #include <$ac_header>
21016 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21017 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21019 grep -v '^ *+' conftest.er1
>conftest.err
21021 cat conftest.err
>&5
21022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21023 (exit $ac_status); } >/dev
/null
; then
21024 if test -s conftest.err
; then
21025 ac_cpp_err
=$ac_c_preproc_warn_flag
21026 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21033 if test -z "$ac_cpp_err"; then
21034 ac_header_preproc
=yes
21036 echo "$as_me: failed program was:" >&5
21037 sed 's/^/| /' conftest.
$ac_ext >&5
21039 ac_header_preproc
=no
21041 rm -f conftest.err conftest.
$ac_ext
21042 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21043 echo "${ECHO_T}$ac_header_preproc" >&6
21045 # So? What about this header?
21046 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21048 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21049 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21051 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21052 ac_header_preproc
=yes
21055 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21056 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21057 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21058 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21059 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21060 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21061 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21062 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21064 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21065 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21066 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21069 ## ------------------------------------------ ##
21070 ## Report this to the AC_PACKAGE_NAME lists. ##
21071 ## ------------------------------------------ ##
21074 sed "s/^/$as_me: WARNING: /" >&2
21077 echo "$as_me:$LINENO: checking for $ac_header" >&5
21078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21082 eval "$as_ac_Header=\$ac_header_preproc"
21084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21089 cat >>confdefs.h
<<_ACEOF
21090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21095 for ac_header
in kerberos
/krb.h
21097 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21099 echo "$as_me:$LINENO: checking for $ac_header" >&5
21100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21102 echo $ECHO_N "(cached) $ECHO_C" >&6
21104 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21105 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21107 # Is the header compilable?
21108 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21110 cat >conftest.
$ac_ext <<_ACEOF
21113 cat confdefs.h
>>conftest.
$ac_ext
21114 cat >>conftest.
$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 $ac_includes_default
21117 #include <$ac_header>
21119 rm -f conftest.
$ac_objext
21120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21121 (eval $ac_compile) 2>conftest.er1
21123 grep -v '^ *+' conftest.er1
>conftest.err
21125 cat conftest.err
>&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); } &&
21128 { ac_try
='test -z "$ac_c_werror_flag"
21129 || test ! -s conftest.err'
21130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131 (eval $ac_try) 2>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); }; } &&
21135 { ac_try
='test -s conftest.$ac_objext'
21136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137 (eval $ac_try) 2>&5
21139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140 (exit $ac_status); }; }; then
21141 ac_header_compiler
=yes
21143 echo "$as_me: failed program was:" >&5
21144 sed 's/^/| /' conftest.
$ac_ext >&5
21146 ac_header_compiler
=no
21148 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21149 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21150 echo "${ECHO_T}$ac_header_compiler" >&6
21152 # Is the header present?
21153 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21155 cat >conftest.
$ac_ext <<_ACEOF
21158 cat confdefs.h
>>conftest.
$ac_ext
21159 cat >>conftest.
$ac_ext <<_ACEOF
21160 /* end confdefs.h. */
21161 #include <$ac_header>
21163 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21164 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21166 grep -v '^ *+' conftest.er1
>conftest.err
21168 cat conftest.err
>&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } >/dev
/null
; then
21171 if test -s conftest.err
; then
21172 ac_cpp_err
=$ac_c_preproc_warn_flag
21173 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21180 if test -z "$ac_cpp_err"; then
21181 ac_header_preproc
=yes
21183 echo "$as_me: failed program was:" >&5
21184 sed 's/^/| /' conftest.
$ac_ext >&5
21186 ac_header_preproc
=no
21188 rm -f conftest.err conftest.
$ac_ext
21189 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21190 echo "${ECHO_T}$ac_header_preproc" >&6
21192 # So? What about this header?
21193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21195 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21196 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21197 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21199 ac_header_preproc
=yes
21202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21206 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21207 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21208 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21209 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21210 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21212 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21213 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21216 ## ------------------------------------------ ##
21217 ## Report this to the AC_PACKAGE_NAME lists. ##
21218 ## ------------------------------------------ ##
21221 sed "s/^/$as_me: WARNING: /" >&2
21224 echo "$as_me:$LINENO: checking for $ac_header" >&5
21225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21226 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
21229 eval "$as_ac_Header=\$ac_header_preproc"
21231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21232 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21236 cat >>confdefs.h
<<_ACEOF
21237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21254 for ac_header
in com_err.h
21256 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21258 echo "$as_me:$LINENO: checking for $ac_header" >&5
21259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21261 echo $ECHO_N "(cached) $ECHO_C" >&6
21263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21266 # Is the header compilable?
21267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21269 cat >conftest.
$ac_ext <<_ACEOF
21272 cat confdefs.h
>>conftest.
$ac_ext
21273 cat >>conftest.
$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21275 $ac_includes_default
21276 #include <$ac_header>
21278 rm -f conftest.
$ac_objext
21279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21280 (eval $ac_compile) 2>conftest.er1
21282 grep -v '^ *+' conftest.er1
>conftest.err
21284 cat conftest.err
>&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); } &&
21287 { ac_try
='test -z "$ac_c_werror_flag"
21288 || test ! -s conftest.err'
21289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21290 (eval $ac_try) 2>&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); }; } &&
21294 { ac_try
='test -s conftest.$ac_objext'
21295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21296 (eval $ac_try) 2>&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); }; }; then
21300 ac_header_compiler
=yes
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.
$ac_ext >&5
21305 ac_header_compiler
=no
21307 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21309 echo "${ECHO_T}$ac_header_compiler" >&6
21311 # Is the header present?
21312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21314 cat >conftest.
$ac_ext <<_ACEOF
21317 cat confdefs.h
>>conftest.
$ac_ext
21318 cat >>conftest.
$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21320 #include <$ac_header>
21322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21323 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
21325 grep -v '^ *+' conftest.er1
>conftest.err
21327 cat conftest.err
>&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } >/dev
/null
; then
21330 if test -s conftest.err
; then
21331 ac_cpp_err
=$ac_c_preproc_warn_flag
21332 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
21339 if test -z "$ac_cpp_err"; then
21340 ac_header_preproc
=yes
21342 echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.
$ac_ext >&5
21345 ac_header_preproc
=no
21347 rm -f conftest.err conftest.
$ac_ext
21348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21349 echo "${ECHO_T}$ac_header_preproc" >&6
21351 # So? What about this header?
21352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21358 ac_header_preproc
=yes
21361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21375 ## ------------------------------------------ ##
21376 ## Report this to the AC_PACKAGE_NAME lists. ##
21377 ## ------------------------------------------ ##
21380 sed "s/^/$as_me: WARNING: /" >&2
21383 echo "$as_me:$LINENO: checking for $ac_header" >&5
21384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21388 eval "$as_ac_Header=\$ac_header_preproc"
21390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21395 cat >>confdefs.h
<<_ACEOF
21396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21405 # Solaris requires -lintl if you want strerror (which calls dgettext)
21406 # to return localized messages.
21408 echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21409 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
21410 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21411 echo $ECHO_N "(cached) $ECHO_C" >&6
21413 ac_check_lib_save_LIBS
=$LIBS
21414 LIBS
="-lintl $LIBS"
21415 cat >conftest.
$ac_ext <<_ACEOF
21418 cat confdefs.h
>>conftest.
$ac_ext
21419 cat >>conftest.
$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21422 /* Override any gcc2 internal prototype to avoid an error. */
21426 /* We use char because int might match the return type of a gcc2
21427 builtin and then its argument prototype would still apply. */
21437 rm -f conftest.
$ac_objext conftest
$ac_exeext
21438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21439 (eval $ac_link) 2>conftest.er1
21441 grep -v '^ *+' conftest.er1
>conftest.err
21443 cat conftest.err
>&5
21444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21445 (exit $ac_status); } &&
21446 { ac_try
='test -z "$ac_c_werror_flag"
21447 || test ! -s conftest.err'
21448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449 (eval $ac_try) 2>&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); }; } &&
21453 { ac_try
='test -s conftest$ac_exeext'
21454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455 (eval $ac_try) 2>&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; }; then
21459 ac_cv_lib_intl_dgettext
=yes
21461 echo "$as_me: failed program was:" >&5
21462 sed 's/^/| /' conftest.
$ac_ext >&5
21464 ac_cv_lib_intl_dgettext
=no
21466 rm -f conftest.err conftest.
$ac_objext \
21467 conftest
$ac_exeext conftest.
$ac_ext
21468 LIBS
=$ac_check_lib_save_LIBS
21470 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21471 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
21472 if test $ac_cv_lib_intl_dgettext = yes; then
21473 cat >>confdefs.h
<<_ACEOF
21474 #define HAVE_LIBINTL 1
21477 LIBS
="-lintl $LIBS"
21482 echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21483 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6
21484 if test "${emacs_cv_localtime_cache+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21487 if test x
$ac_cv_func_tzset = xyes
; then
21488 if test "$cross_compiling" = yes; then
21489 # If we have tzset, assume the worst when cross-compiling.
21490 emacs_cv_localtime_cache
=yes
21492 cat >conftest.
$ac_ext <<_ACEOF
21495 cat confdefs.h
>>conftest.
$ac_ext
21496 cat >>conftest.
$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21499 extern char **environ;
21503 for (to = from = environ; (*to = *from); from++)
21504 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21507 char TZ_GMT0[] = "TZ=GMT0";
21508 char TZ_PST8[] = "TZ=PST8";
21511 time_t now = time ((time_t *) 0);
21512 int hour_GMT0, hour_unset;
21513 if (putenv (TZ_GMT0) != 0)
21515 hour_GMT0 = localtime (&now)->tm_hour;
21517 hour_unset = localtime (&now)->tm_hour;
21518 if (putenv (TZ_PST8) != 0)
21520 if (localtime (&now)->tm_hour == hour_GMT0)
21523 if (localtime (&now)->tm_hour != hour_unset)
21528 rm -f conftest
$ac_exeext
21529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21530 (eval $ac_link) 2>&5
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; }; then
21539 emacs_cv_localtime_cache
=no
21541 echo "$as_me: program exited with status $ac_status" >&5
21542 echo "$as_me: failed program was:" >&5
21543 sed 's/^/| /' conftest.
$ac_ext >&5
21545 ( exit $ac_status )
21546 emacs_cv_localtime_cache
=yes
21548 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
21551 # If we lack tzset, report that localtime does not cache TZ,
21552 # since we can't invalidate the cache if we don't have tzset.
21553 emacs_cv_localtime_cache
=no
21556 echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21557 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6
21558 if test $emacs_cv_localtime_cache = yes; then
21560 cat >>confdefs.h
<<\_ACEOF
21561 #define LOCALTIME_CACHE 1
21566 if test "x$HAVE_TIMEVAL" = xyes
; then
21568 for ac_func
in gettimeofday
21570 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21571 echo "$as_me:$LINENO: checking for $ac_func" >&5
21572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21573 if eval "test \"\${$as_ac_var+set}\" = set"; then
21574 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 cat >conftest.
$ac_ext <<_ACEOF
21579 cat confdefs.h
>>conftest.
$ac_ext
21580 cat >>conftest.
$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21584 #define $ac_func innocuous_$ac_func
21586 /* System header to define __stub macros and hopefully few prototypes,
21587 which can conflict with char $ac_func (); below.
21588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21589 <limits.h> exists even on freestanding compilers. */
21592 # include <limits.h>
21594 # include <assert.h>
21599 /* Override any gcc2 internal prototype to avoid an error. */
21604 /* We use char because int might match the return type of a gcc2
21605 builtin and then its argument prototype would still apply. */
21607 /* The GNU C library defines this for functions which it implements
21608 to always fail with ENOSYS. Some functions are actually named
21609 something starting with __ and the normal name is an alias. */
21610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21613 char (*f) () = $ac_func;
21622 return f != $ac_func;
21627 rm -f conftest.
$ac_objext conftest
$ac_exeext
21628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21629 (eval $ac_link) 2>conftest.er1
21631 grep -v '^ *+' conftest.er1
>conftest.err
21633 cat conftest.err
>&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } &&
21636 { ac_try
='test -z "$ac_c_werror_flag"
21637 || test ! -s conftest.err'
21638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21639 (eval $ac_try) 2>&5
21641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21642 (exit $ac_status); }; } &&
21643 { ac_try
='test -s conftest$ac_exeext'
21644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21645 (eval $ac_try) 2>&5
21647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648 (exit $ac_status); }; }; then
21649 eval "$as_ac_var=yes"
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.
$ac_ext >&5
21654 eval "$as_ac_var=no"
21656 rm -f conftest.err conftest.
$ac_objext \
21657 conftest
$ac_exeext conftest.
$ac_ext
21659 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21660 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21661 if test `eval echo '${'$as_ac_var'}'` = yes; then
21662 cat >>confdefs.h
<<_ACEOF
21663 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21669 if test $ac_cv_func_gettimeofday = yes; then
21670 echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21671 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6
21672 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21673 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 cat >conftest.
$ac_ext <<_ACEOF
21678 cat confdefs.h
>>conftest.
$ac_ext
21679 cat >>conftest.
$ac_ext <<_ACEOF
21680 /* end confdefs.h. */
21682 #ifdef TIME_WITH_SYS_TIME
21683 #include <sys/time.h>
21686 #ifdef HAVE_SYS_TIME_H
21687 #include <sys/time.h>
21695 struct timeval time;
21696 gettimeofday (&time, 0);
21701 rm -f conftest.
$ac_objext
21702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21703 (eval $ac_compile) 2>conftest.er1
21705 grep -v '^ *+' conftest.er1
>conftest.err
21707 cat conftest.err
>&5
21708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709 (exit $ac_status); } &&
21710 { ac_try
='test -z "$ac_c_werror_flag"
21711 || test ! -s conftest.err'
21712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21713 (eval $ac_try) 2>&5
21715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21716 (exit $ac_status); }; } &&
21717 { ac_try
='test -s conftest.$ac_objext'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21723 emacs_cv_gettimeofday_two_arguments
=yes
21725 echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.
$ac_ext >&5
21728 emacs_cv_gettimeofday_two_arguments
=no
21730 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21732 echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21733 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6
21734 if test $emacs_cv_gettimeofday_two_arguments = no
; then
21736 cat >>confdefs.h
<<\_ACEOF
21737 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21744 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
21745 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21746 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
21747 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21748 echo $ECHO_N "(cached) $ECHO_C" >&6
21750 cat >conftest.
$ac_ext <<_ACEOF
21753 cat confdefs.h
>>conftest.
$ac_ext
21754 cat >>conftest.
$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21756 #include <sys/types.h>
21757 #include <$ac_cv_struct_tm>
21763 static struct tm ac_aggr;
21764 if (ac_aggr.tm_zone)
21770 rm -f conftest.
$ac_objext
21771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21772 (eval $ac_compile) 2>conftest.er1
21774 grep -v '^ *+' conftest.er1
>conftest.err
21776 cat conftest.err
>&5
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); } &&
21779 { ac_try
='test -z "$ac_c_werror_flag"
21780 || test ! -s conftest.err'
21781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21782 (eval $ac_try) 2>&5
21784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); }; } &&
21786 { ac_try
='test -s conftest.$ac_objext'
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; }; then
21792 ac_cv_member_struct_tm_tm_zone
=yes
21794 echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.
$ac_ext >&5
21797 cat >conftest.
$ac_ext <<_ACEOF
21800 cat confdefs.h
>>conftest.
$ac_ext
21801 cat >>conftest.
$ac_ext <<_ACEOF
21802 /* end confdefs.h. */
21803 #include <sys/types.h>
21804 #include <$ac_cv_struct_tm>
21810 static struct tm ac_aggr;
21811 if (sizeof ac_aggr.tm_zone)
21817 rm -f conftest.
$ac_objext
21818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21819 (eval $ac_compile) 2>conftest.er1
21821 grep -v '^ *+' conftest.er1
>conftest.err
21823 cat conftest.err
>&5
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); } &&
21826 { ac_try
='test -z "$ac_c_werror_flag"
21827 || test ! -s conftest.err'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; } &&
21833 { ac_try
='test -s conftest.$ac_objext'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 ac_cv_member_struct_tm_tm_zone
=yes
21841 echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.
$ac_ext >&5
21844 ac_cv_member_struct_tm_tm_zone
=no
21846 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21848 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
21850 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21851 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
21852 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21854 cat >>confdefs.h
<<_ACEOF
21855 #define HAVE_STRUCT_TM_TM_ZONE 1
21861 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21863 cat >>confdefs.h
<<\_ACEOF
21864 #define HAVE_TM_ZONE 1
21868 echo "$as_me:$LINENO: checking for tzname" >&5
21869 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21870 if test "${ac_cv_var_tzname+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21873 cat >conftest.
$ac_ext <<_ACEOF
21876 cat confdefs.h
>>conftest.
$ac_ext
21877 cat >>conftest.
$ac_ext <<_ACEOF
21878 /* end confdefs.h. */
21880 #ifndef tzname /* For SGI. */
21881 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
21892 rm -f conftest.
$ac_objext conftest
$ac_exeext
21893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21894 (eval $ac_link) 2>conftest.er1
21896 grep -v '^ *+' conftest.er1
>conftest.err
21898 cat conftest.err
>&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } &&
21901 { ac_try
='test -z "$ac_c_werror_flag"
21902 || test ! -s conftest.err'
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; } &&
21908 { ac_try
='test -s conftest$ac_exeext'
21909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21910 (eval $ac_try) 2>&5
21912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21913 (exit $ac_status); }; }; then
21914 ac_cv_var_tzname
=yes
21916 echo "$as_me: failed program was:" >&5
21917 sed 's/^/| /' conftest.
$ac_ext >&5
21919 ac_cv_var_tzname
=no
21921 rm -f conftest.err conftest.
$ac_objext \
21922 conftest
$ac_exeext conftest.
$ac_ext
21924 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21925 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21926 if test $ac_cv_var_tzname = yes; then
21928 cat >>confdefs.h
<<\_ACEOF
21929 #define HAVE_TZNAME 1
21936 if test "$ac_cv_func_gettimeofday" = yes; then
21937 echo "$as_me:$LINENO: checking for struct timezone" >&5
21938 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6
21939 if test "${emacs_cv_struct_timezone+set}" = set; then
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21942 cat >conftest.
$ac_ext <<_ACEOF
21945 cat confdefs.h
>>conftest.
$ac_ext
21946 cat >>conftest.
$ac_ext <<_ACEOF
21947 /* end confdefs.h. */
21948 #include <sys/time.h>
21952 struct timezone tz;
21957 rm -f conftest.
$ac_objext
21958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21959 (eval $ac_compile) 2>conftest.er1
21961 grep -v '^ *+' conftest.er1
>conftest.err
21963 cat conftest.err
>&5
21964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21965 (exit $ac_status); } &&
21966 { ac_try
='test -z "$ac_c_werror_flag"
21967 || test ! -s conftest.err'
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; } &&
21973 { ac_try
='test -s conftest.$ac_objext'
21974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21975 (eval $ac_try) 2>&5
21977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21978 (exit $ac_status); }; }; then
21979 if test "$cross_compiling" = yes; then
21980 emacs_cv_struct_timezone
=yes
21982 cat >conftest.
$ac_ext <<_ACEOF
21985 cat confdefs.h
>>conftest.
$ac_ext
21986 cat >>conftest.
$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21989 #ifdef TIME_WITH_SYS_TIME
21990 #include <sys/time.h>
21993 #ifdef HAVE_SYS_TIME_H
21994 #include <sys/time.h>
22000 struct timeval time;
22001 struct timezone dummy;
22002 exit (gettimeofday (&time, &dummy));
22005 rm -f conftest
$ac_exeext
22006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22007 (eval $ac_link) 2>&5
22009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012 (eval $ac_try) 2>&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; }; then
22016 emacs_cv_struct_timezone
=yes
22018 echo "$as_me: program exited with status $ac_status" >&5
22019 echo "$as_me: failed program was:" >&5
22020 sed 's/^/| /' conftest.
$ac_ext >&5
22022 ( exit $ac_status )
22023 emacs_cv_struct_timezone
=no
22025 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22028 echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.
$ac_ext >&5
22031 emacs_cv_struct_timezone
=no
22033 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22035 echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
22036 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6
22040 echo "$as_me:$LINENO: checking for socket" >&5
22041 echo $ECHO_N "checking for socket... $ECHO_C" >&6
22042 if test "${ac_cv_func_socket+set}" = set; then
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22045 cat >conftest.
$ac_ext <<_ACEOF
22048 cat confdefs.h
>>conftest.
$ac_ext
22049 cat >>conftest.
$ac_ext <<_ACEOF
22050 /* end confdefs.h. */
22051 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22053 #define socket innocuous_socket
22055 /* System header to define __stub macros and hopefully few prototypes,
22056 which can conflict with char socket (); below.
22057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22058 <limits.h> exists even on freestanding compilers. */
22061 # include <limits.h>
22063 # include <assert.h>
22068 /* Override any gcc2 internal prototype to avoid an error. */
22073 /* We use char because int might match the return type of a gcc2
22074 builtin and then its argument prototype would still apply. */
22076 /* The GNU C library defines this for functions which it implements
22077 to always fail with ENOSYS. Some functions are actually named
22078 something starting with __ and the normal name is an alias. */
22079 #if defined (__stub_socket) || defined (__stub___socket)
22082 char (*f) () = socket;
22091 return f != socket;
22096 rm -f conftest.
$ac_objext conftest
$ac_exeext
22097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22098 (eval $ac_link) 2>conftest.er1
22100 grep -v '^ *+' conftest.er1
>conftest.err
22102 cat conftest.err
>&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
22105 { ac_try
='test -z "$ac_c_werror_flag"
22106 || test ! -s conftest.err'
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try
='test -s conftest$ac_exeext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 ac_cv_func_socket
=yes
22120 echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.
$ac_ext >&5
22123 ac_cv_func_socket
=no
22125 rm -f conftest.err conftest.
$ac_objext \
22126 conftest
$ac_exeext conftest.
$ac_ext
22128 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22129 echo "${ECHO_T}$ac_cv_func_socket" >&6
22130 if test $ac_cv_func_socket = yes; then
22136 if test $ok_so_far = yes; then
22137 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22138 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22139 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22140 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22141 echo $ECHO_N "(cached) $ECHO_C" >&6
22143 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22144 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22146 # Is the header compilable?
22147 echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22148 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6
22149 cat >conftest.
$ac_ext <<_ACEOF
22152 cat confdefs.h
>>conftest.
$ac_ext
22153 cat >>conftest.
$ac_ext <<_ACEOF
22154 /* end confdefs.h. */
22155 $ac_includes_default
22156 #include <netinet/in.h>
22158 rm -f conftest.
$ac_objext
22159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22160 (eval $ac_compile) 2>conftest.er1
22162 grep -v '^ *+' conftest.er1
>conftest.err
22164 cat conftest.err
>&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); } &&
22167 { ac_try
='test -z "$ac_c_werror_flag"
22168 || test ! -s conftest.err'
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; } &&
22174 { ac_try
='test -s conftest.$ac_objext'
22175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22176 (eval $ac_try) 2>&5
22178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179 (exit $ac_status); }; }; then
22180 ac_header_compiler
=yes
22182 echo "$as_me: failed program was:" >&5
22183 sed 's/^/| /' conftest.
$ac_ext >&5
22185 ac_header_compiler
=no
22187 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22189 echo "${ECHO_T}$ac_header_compiler" >&6
22191 # Is the header present?
22192 echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22193 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6
22194 cat >conftest.
$ac_ext <<_ACEOF
22197 cat confdefs.h
>>conftest.
$ac_ext
22198 cat >>conftest.
$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22200 #include <netinet/in.h>
22202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22203 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22205 grep -v '^ *+' conftest.er1
>conftest.err
22207 cat conftest.err
>&5
22208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22209 (exit $ac_status); } >/dev
/null
; then
22210 if test -s conftest.err
; then
22211 ac_cpp_err
=$ac_c_preproc_warn_flag
22212 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22219 if test -z "$ac_cpp_err"; then
22220 ac_header_preproc
=yes
22222 echo "$as_me: failed program was:" >&5
22223 sed 's/^/| /' conftest.
$ac_ext >&5
22225 ac_header_preproc
=no
22227 rm -f conftest.err conftest.
$ac_ext
22228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22229 echo "${ECHO_T}$ac_header_preproc" >&6
22231 # So? What about this header?
22232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22234 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22235 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22236 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22237 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22238 ac_header_preproc
=yes
22241 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22242 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22243 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22244 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22245 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22246 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22247 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22248 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22249 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22250 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22251 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22252 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22255 ## ------------------------------------------ ##
22256 ## Report this to the AC_PACKAGE_NAME lists. ##
22257 ## ------------------------------------------ ##
22260 sed "s/^/$as_me: WARNING: /" >&2
22263 echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22264 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6
22265 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22266 echo $ECHO_N "(cached) $ECHO_C" >&6
22268 ac_cv_header_netinet_in_h
=$ac_header_preproc
22270 echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22271 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6
22274 if test $ac_cv_header_netinet_in_h = yes; then
22282 if test $ok_so_far = yes; then
22283 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22284 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22285 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22286 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22287 echo $ECHO_N "(cached) $ECHO_C" >&6
22289 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22290 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22292 # Is the header compilable?
22293 echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22294 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6
22295 cat >conftest.
$ac_ext <<_ACEOF
22298 cat confdefs.h
>>conftest.
$ac_ext
22299 cat >>conftest.
$ac_ext <<_ACEOF
22300 /* end confdefs.h. */
22301 $ac_includes_default
22302 #include <arpa/inet.h>
22304 rm -f conftest.
$ac_objext
22305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22306 (eval $ac_compile) 2>conftest.er1
22308 grep -v '^ *+' conftest.er1
>conftest.err
22310 cat conftest.err
>&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } &&
22313 { ac_try
='test -z "$ac_c_werror_flag"
22314 || test ! -s conftest.err'
22315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22316 (eval $ac_try) 2>&5
22318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22319 (exit $ac_status); }; } &&
22320 { ac_try
='test -s conftest.$ac_objext'
22321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22322 (eval $ac_try) 2>&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); }; }; then
22326 ac_header_compiler
=yes
22328 echo "$as_me: failed program was:" >&5
22329 sed 's/^/| /' conftest.
$ac_ext >&5
22331 ac_header_compiler
=no
22333 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22334 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22335 echo "${ECHO_T}$ac_header_compiler" >&6
22337 # Is the header present?
22338 echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22339 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6
22340 cat >conftest.
$ac_ext <<_ACEOF
22343 cat confdefs.h
>>conftest.
$ac_ext
22344 cat >>conftest.
$ac_ext <<_ACEOF
22345 /* end confdefs.h. */
22346 #include <arpa/inet.h>
22348 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22349 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22351 grep -v '^ *+' conftest.er1
>conftest.err
22353 cat conftest.err
>&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); } >/dev
/null
; then
22356 if test -s conftest.err
; then
22357 ac_cpp_err
=$ac_c_preproc_warn_flag
22358 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22365 if test -z "$ac_cpp_err"; then
22366 ac_header_preproc
=yes
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.
$ac_ext >&5
22371 ac_header_preproc
=no
22373 rm -f conftest.err conftest.
$ac_ext
22374 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22375 echo "${ECHO_T}$ac_header_preproc" >&6
22377 # So? What about this header?
22378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22380 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22381 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22382 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22383 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22384 ac_header_preproc
=yes
22387 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22388 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22389 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22390 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22391 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22392 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22393 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22394 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22395 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22396 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22397 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22398 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22401 ## ------------------------------------------ ##
22402 ## Report this to the AC_PACKAGE_NAME lists. ##
22403 ## ------------------------------------------ ##
22406 sed "s/^/$as_me: WARNING: /" >&2
22409 echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22410 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6
22411 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22412 echo $ECHO_N "(cached) $ECHO_C" >&6
22414 ac_cv_header_arpa_inet_h
=$ac_header_preproc
22416 echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22417 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6
22420 if test $ac_cv_header_arpa_inet_h = yes; then
22428 if test $ok_so_far = yes; then
22430 cat >>confdefs.h
<<\_ACEOF
22431 #define HAVE_INET_SOCKETS 1
22437 for ac_header
in sys
/ioctl.h
22439 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22440 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22441 echo "$as_me:$LINENO: checking for $ac_header" >&5
22442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22443 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22444 echo $ECHO_N "(cached) $ECHO_C" >&6
22446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22447 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22449 # Is the header compilable?
22450 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22451 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22452 cat >conftest.
$ac_ext <<_ACEOF
22455 cat confdefs.h
>>conftest.
$ac_ext
22456 cat >>conftest.
$ac_ext <<_ACEOF
22457 /* end confdefs.h. */
22458 $ac_includes_default
22459 #include <$ac_header>
22461 rm -f conftest.
$ac_objext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22463 (eval $ac_compile) 2>conftest.er1
22465 grep -v '^ *+' conftest.er1
>conftest.err
22467 cat conftest.err
>&5
22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22469 (exit $ac_status); } &&
22470 { ac_try
='test -z "$ac_c_werror_flag"
22471 || test ! -s conftest.err'
22472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22473 (eval $ac_try) 2>&5
22475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22476 (exit $ac_status); }; } &&
22477 { ac_try
='test -s conftest.$ac_objext'
22478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22479 (eval $ac_try) 2>&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); }; }; then
22483 ac_header_compiler
=yes
22485 echo "$as_me: failed program was:" >&5
22486 sed 's/^/| /' conftest.
$ac_ext >&5
22488 ac_header_compiler
=no
22490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22491 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22492 echo "${ECHO_T}$ac_header_compiler" >&6
22494 # Is the header present?
22495 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22497 cat >conftest.
$ac_ext <<_ACEOF
22500 cat confdefs.h
>>conftest.
$ac_ext
22501 cat >>conftest.
$ac_ext <<_ACEOF
22502 /* end confdefs.h. */
22503 #include <$ac_header>
22505 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22506 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22508 grep -v '^ *+' conftest.er1
>conftest.err
22510 cat conftest.err
>&5
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); } >/dev
/null
; then
22513 if test -s conftest.err
; then
22514 ac_cpp_err
=$ac_c_preproc_warn_flag
22515 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22522 if test -z "$ac_cpp_err"; then
22523 ac_header_preproc
=yes
22525 echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.
$ac_ext >&5
22528 ac_header_preproc
=no
22530 rm -f conftest.err conftest.
$ac_ext
22531 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22532 echo "${ECHO_T}$ac_header_preproc" >&6
22534 # So? What about this header?
22535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22537 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22541 ac_header_preproc
=yes
22544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22548 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22550 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22551 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22554 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22558 ## ------------------------------------------ ##
22559 ## Report this to the AC_PACKAGE_NAME lists. ##
22560 ## ------------------------------------------ ##
22563 sed "s/^/$as_me: WARNING: /" >&2
22566 echo "$as_me:$LINENO: checking for $ac_header" >&5
22567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22568 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22569 echo $ECHO_N "(cached) $ECHO_C" >&6
22571 eval "$as_ac_Header=\$ac_header_preproc"
22573 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22574 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22577 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22578 cat >>confdefs.h
<<_ACEOF
22579 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22587 if test -f /usr
/lpp
/X11
/bin
/smt.exp
; then
22589 cat >>confdefs.h
<<\_ACEOF
22590 #define HAVE_AIX_SMT_EXP 1
22595 echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22596 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6
22597 if test -d /dev
/pts
&& ls -d /dev
/ptmx
> /dev
/null
2>&1 ; then
22598 echo "$as_me:$LINENO: result: yes" >&5
22599 echo "${ECHO_T}yes" >&6
22601 cat >>confdefs.h
<<\_ACEOF
22602 #define HAVE_DEV_PTMX 1
22606 echo "$as_me:$LINENO: result: no" >&5
22607 echo "${ECHO_T}no" >&6
22610 echo "$as_me:$LINENO: checking for pid_t" >&5
22611 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22612 if test "${ac_cv_type_pid_t+set}" = set; then
22613 echo $ECHO_N "(cached) $ECHO_C" >&6
22615 cat >conftest.
$ac_ext <<_ACEOF
22618 cat confdefs.h
>>conftest.
$ac_ext
22619 cat >>conftest.
$ac_ext <<_ACEOF
22620 /* end confdefs.h. */
22621 $ac_includes_default
22627 if (sizeof (pid_t))
22633 rm -f conftest.
$ac_objext
22634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22635 (eval $ac_compile) 2>conftest.er1
22637 grep -v '^ *+' conftest.er1
>conftest.err
22639 cat conftest.err
>&5
22640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22641 (exit $ac_status); } &&
22642 { ac_try
='test -z "$ac_c_werror_flag"
22643 || test ! -s conftest.err'
22644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22645 (eval $ac_try) 2>&5
22647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648 (exit $ac_status); }; } &&
22649 { ac_try
='test -s conftest.$ac_objext'
22650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22651 (eval $ac_try) 2>&5
22653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22654 (exit $ac_status); }; }; then
22655 ac_cv_type_pid_t
=yes
22657 echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.
$ac_ext >&5
22660 ac_cv_type_pid_t
=no
22662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22664 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22665 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22666 if test $ac_cv_type_pid_t = yes; then
22670 cat >>confdefs.h
<<_ACEOF
22678 for ac_header
in unistd.h vfork.h
22680 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22682 echo "$as_me:$LINENO: checking for $ac_header" >&5
22683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22685 echo $ECHO_N "(cached) $ECHO_C" >&6
22687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22690 # Is the header compilable?
22691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22693 cat >conftest.
$ac_ext <<_ACEOF
22696 cat confdefs.h
>>conftest.
$ac_ext
22697 cat >>conftest.
$ac_ext <<_ACEOF
22698 /* end confdefs.h. */
22699 $ac_includes_default
22700 #include <$ac_header>
22702 rm -f conftest.
$ac_objext
22703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22704 (eval $ac_compile) 2>conftest.er1
22706 grep -v '^ *+' conftest.er1
>conftest.err
22708 cat conftest.err
>&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } &&
22711 { ac_try
='test -z "$ac_c_werror_flag"
22712 || test ! -s conftest.err'
22713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714 (eval $ac_try) 2>&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; } &&
22718 { ac_try
='test -s conftest.$ac_objext'
22719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22720 (eval $ac_try) 2>&5
22722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723 (exit $ac_status); }; }; then
22724 ac_header_compiler
=yes
22726 echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.
$ac_ext >&5
22729 ac_header_compiler
=no
22731 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
22732 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22733 echo "${ECHO_T}$ac_header_compiler" >&6
22735 # Is the header present?
22736 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22738 cat >conftest.
$ac_ext <<_ACEOF
22741 cat confdefs.h
>>conftest.
$ac_ext
22742 cat >>conftest.
$ac_ext <<_ACEOF
22743 /* end confdefs.h. */
22744 #include <$ac_header>
22746 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22747 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
22749 grep -v '^ *+' conftest.er1
>conftest.err
22751 cat conftest.err
>&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } >/dev
/null
; then
22754 if test -s conftest.err
; then
22755 ac_cpp_err
=$ac_c_preproc_warn_flag
22756 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
22763 if test -z "$ac_cpp_err"; then
22764 ac_header_preproc
=yes
22766 echo "$as_me: failed program was:" >&5
22767 sed 's/^/| /' conftest.
$ac_ext >&5
22769 ac_header_preproc
=no
22771 rm -f conftest.err conftest.
$ac_ext
22772 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22773 echo "${ECHO_T}$ac_header_preproc" >&6
22775 # So? What about this header?
22776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22782 ac_header_preproc
=yes
22785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22799 ## ------------------------------------------ ##
22800 ## Report this to the AC_PACKAGE_NAME lists. ##
22801 ## ------------------------------------------ ##
22804 sed "s/^/$as_me: WARNING: /" >&2
22807 echo "$as_me:$LINENO: checking for $ac_header" >&5
22808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22809 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22810 echo $ECHO_N "(cached) $ECHO_C" >&6
22812 eval "$as_ac_Header=\$ac_header_preproc"
22814 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22815 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22819 cat >>confdefs.h
<<_ACEOF
22820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22829 for ac_func
in fork vfork
22831 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22832 echo "$as_me:$LINENO: checking for $ac_func" >&5
22833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22834 if eval "test \"\${$as_ac_var+set}\" = set"; then
22835 echo $ECHO_N "(cached) $ECHO_C" >&6
22837 cat >conftest.
$ac_ext <<_ACEOF
22840 cat confdefs.h
>>conftest.
$ac_ext
22841 cat >>conftest.
$ac_ext <<_ACEOF
22842 /* end confdefs.h. */
22843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22845 #define $ac_func innocuous_$ac_func
22847 /* System header to define __stub macros and hopefully few prototypes,
22848 which can conflict with char $ac_func (); below.
22849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22850 <limits.h> exists even on freestanding compilers. */
22853 # include <limits.h>
22855 # include <assert.h>
22860 /* Override any gcc2 internal prototype to avoid an error. */
22865 /* We use char because int might match the return type of a gcc2
22866 builtin and then its argument prototype would still apply. */
22868 /* The GNU C library defines this for functions which it implements
22869 to always fail with ENOSYS. Some functions are actually named
22870 something starting with __ and the normal name is an alias. */
22871 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22874 char (*f) () = $ac_func;
22883 return f != $ac_func;
22888 rm -f conftest.
$ac_objext conftest
$ac_exeext
22889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22890 (eval $ac_link) 2>conftest.er1
22892 grep -v '^ *+' conftest.er1
>conftest.err
22894 cat conftest.err
>&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } &&
22897 { ac_try
='test -z "$ac_c_werror_flag"
22898 || test ! -s conftest.err'
22899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900 (eval $ac_try) 2>&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }; } &&
22904 { ac_try
='test -s conftest$ac_exeext'
22905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22906 (eval $ac_try) 2>&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); }; }; then
22910 eval "$as_ac_var=yes"
22912 echo "$as_me: failed program was:" >&5
22913 sed 's/^/| /' conftest.
$ac_ext >&5
22915 eval "$as_ac_var=no"
22917 rm -f conftest.err conftest.
$ac_objext \
22918 conftest
$ac_exeext conftest.
$ac_ext
22920 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22921 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22922 if test `eval echo '${'$as_ac_var'}'` = yes; then
22923 cat >>confdefs.h
<<_ACEOF
22924 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22930 if test "x$ac_cv_func_fork" = xyes
; then
22931 echo "$as_me:$LINENO: checking for working fork" >&5
22932 echo $ECHO_N "checking for working fork... $ECHO_C" >&6
22933 if test "${ac_cv_func_fork_works+set}" = set; then
22934 echo $ECHO_N "(cached) $ECHO_C" >&6
22936 if test "$cross_compiling" = yes; then
22937 ac_cv_func_fork_works
=cross
22939 cat >conftest.
$ac_ext <<_ACEOF
22940 /* By Ruediger Kuhlmann. */
22941 #include <sys/types.h>
22943 # include <unistd.h>
22945 /* Some systems only have a dummy stub for fork() */
22953 rm -f conftest
$ac_exeext
22954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22955 (eval $ac_link) 2>&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
22959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22960 (eval $ac_try) 2>&5
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); }; }; then
22964 ac_cv_func_fork_works
=yes
22966 echo "$as_me: program exited with status $ac_status" >&5
22967 echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.
$ac_ext >&5
22970 ( exit $ac_status )
22971 ac_cv_func_fork_works
=no
22973 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
22976 echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22977 echo "${ECHO_T}$ac_cv_func_fork_works" >&6
22980 ac_cv_func_fork_works
=$ac_cv_func_fork
22982 if test "x$ac_cv_func_fork_works" = xcross
; then
22984 *-*-amigaos* |
*-*-msdosdjgpp*)
22985 # Override, as these systems have only a dummy fork() stub
22986 ac_cv_func_fork_works
=no
22989 ac_cv_func_fork_works
=yes
22992 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22993 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22995 ac_cv_func_vfork_works
=$ac_cv_func_vfork
22996 if test "x$ac_cv_func_vfork" = xyes
; then
22997 echo "$as_me:$LINENO: checking for working vfork" >&5
22998 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
22999 if test "${ac_cv_func_vfork_works+set}" = set; then
23000 echo $ECHO_N "(cached) $ECHO_C" >&6
23002 if test "$cross_compiling" = yes; then
23003 ac_cv_func_vfork_works
=cross
23005 cat >conftest.
$ac_ext <<_ACEOF
23008 cat confdefs.h
>>conftest.
$ac_ext
23009 cat >>conftest.
$ac_ext <<_ACEOF
23010 /* end confdefs.h. */
23011 /* Thanks to Paul Eggert for this test. */
23013 #include <stdlib.h>
23014 #include <sys/types.h>
23015 #include <sys/stat.h>
23016 #include <sys/wait.h>
23018 # include <unistd.h>
23021 # include <vfork.h>
23023 /* On some sparc systems, changes by the child to local and incoming
23024 argument registers are propagated back to the parent. The compiler
23025 is told about this with #include <vfork.h>, but some compilers
23026 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23027 static variable whose address is put into a register that is
23028 clobbered by the vfork. */
23031 sparc_address_test (int arg)
23033 sparc_address_test (arg) int arg;
23036 static pid_t child;
23054 pid_t parent = getpid ();
23057 sparc_address_test (0);
23062 /* Here is another test for sparc vfork register problems. This
23063 test uses lots of local variables, at least as many local
23064 variables as main has allocated so far including compiler
23065 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23066 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23067 reuse the register of parent for one of the local variables,
23068 since it will think that parent can't possibly be used any more
23069 in this routine. Assigning to the local variable will thus
23070 munge parent in the parent process. */
23072 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23073 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23074 /* Convince the compiler that p..p7 are live; otherwise, it might
23075 use the same hardware register for all 8 local variables. */
23076 if (p != p1 || p != p2 || p != p3 || p != p4
23077 || p != p5 || p != p6 || p != p7)
23080 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23081 from child file descriptors. If the child closes a descriptor
23082 before it execs or exits, this munges the parent's descriptor
23083 as well. Test for this by closing stdout in the child. */
23084 _exit(close(fileno(stdout)) != 0);
23089 while (wait(&status) != child)
23092 /* Was there some problem with vforking? */
23095 /* Did the child fail? (This shouldn't happen.) */
23098 /* Did the vfork/compiler bug occur? */
23099 || parent != getpid()
23101 /* Did the file descriptor bug occur? */
23102 || fstat(fileno(stdout), &st) != 0
23107 rm -f conftest
$ac_exeext
23108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23109 (eval $ac_link) 2>&5
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; }; then
23118 ac_cv_func_vfork_works
=yes
23120 echo "$as_me: program exited with status $ac_status" >&5
23121 echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.
$ac_ext >&5
23124 ( exit $ac_status )
23125 ac_cv_func_vfork_works
=no
23127 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
23130 echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23131 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
23134 if test "x$ac_cv_func_fork_works" = xcross
; then
23135 ac_cv_func_vfork_works
=$ac_cv_func_vfork
23136 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23137 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23140 if test "x$ac_cv_func_vfork_works" = xyes
; then
23142 cat >>confdefs.h
<<\_ACEOF
23143 #define HAVE_WORKING_VFORK 1
23148 cat >>confdefs.h
<<\_ACEOF
23153 if test "x$ac_cv_func_fork_works" = xyes
; then
23155 cat >>confdefs.h
<<\_ACEOF
23156 #define HAVE_WORKING_FORK 1
23162 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23163 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
23164 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23165 echo $ECHO_N "(cached) $ECHO_C" >&6
23167 cat >conftest.
$ac_ext <<_ACEOF
23170 cat confdefs.h
>>conftest.
$ac_ext
23171 cat >>conftest.
$ac_ext <<_ACEOF
23172 /* end confdefs.h. */
23173 #include <langinfo.h>
23177 char* cs = nl_langinfo(CODESET);
23182 rm -f conftest.
$ac_objext conftest
$ac_exeext
23183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23184 (eval $ac_link) 2>conftest.er1
23186 grep -v '^ *+' conftest.er1
>conftest.err
23188 cat conftest.err
>&5
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); } &&
23191 { ac_try
='test -z "$ac_c_werror_flag"
23192 || test ! -s conftest.err'
23193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23194 (eval $ac_try) 2>&5
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); }; } &&
23198 { ac_try
='test -s conftest$ac_exeext'
23199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23200 (eval $ac_try) 2>&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); }; }; then
23204 emacs_cv_langinfo_codeset
=yes
23206 echo "$as_me: failed program was:" >&5
23207 sed 's/^/| /' conftest.
$ac_ext >&5
23209 emacs_cv_langinfo_codeset
=no
23211 rm -f conftest.err conftest.
$ac_objext \
23212 conftest
$ac_exeext conftest.
$ac_ext
23215 echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23216 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6
23217 if test $emacs_cv_langinfo_codeset = yes; then
23219 cat >>confdefs.h
<<\_ACEOF
23220 #define HAVE_LANGINFO_CODESET 1
23225 echo "$as_me:$LINENO: checking for size_t" >&5
23226 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
23227 if test "${ac_cv_type_size_t+set}" = set; then
23228 echo $ECHO_N "(cached) $ECHO_C" >&6
23230 cat >conftest.
$ac_ext <<_ACEOF
23233 cat confdefs.h
>>conftest.
$ac_ext
23234 cat >>conftest.
$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236 $ac_includes_default
23242 if (sizeof (size_t))
23248 rm -f conftest.
$ac_objext
23249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23250 (eval $ac_compile) 2>conftest.er1
23252 grep -v '^ *+' conftest.er1
>conftest.err
23254 cat conftest.err
>&5
23255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23256 (exit $ac_status); } &&
23257 { ac_try
='test -z "$ac_c_werror_flag"
23258 || test ! -s conftest.err'
23259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23260 (eval $ac_try) 2>&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); }; } &&
23264 { ac_try
='test -s conftest.$ac_objext'
23265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23266 (eval $ac_try) 2>&5
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); }; }; then
23270 ac_cv_type_size_t
=yes
23272 echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.
$ac_ext >&5
23275 ac_cv_type_size_t
=no
23277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23279 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23280 echo "${ECHO_T}$ac_cv_type_size_t" >&6
23281 if test $ac_cv_type_size_t = yes; then
23283 cat >>confdefs.h
<<_ACEOF
23284 #define HAVE_SIZE_T 1
23291 echo "$as_me:$LINENO: checking for mbstate_t" >&5
23292 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
23293 if test "${ac_cv_type_mbstate_t+set}" = set; then
23294 echo $ECHO_N "(cached) $ECHO_C" >&6
23296 cat >conftest.
$ac_ext <<_ACEOF
23299 cat confdefs.h
>>conftest.
$ac_ext
23300 cat >>conftest.
$ac_ext <<_ACEOF
23301 /* end confdefs.h. */
23302 $ac_includes_default
23303 # include <wchar.h>
23307 mbstate_t x; return sizeof x;
23312 rm -f conftest.
$ac_objext
23313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23314 (eval $ac_compile) 2>conftest.er1
23316 grep -v '^ *+' conftest.er1
>conftest.err
23318 cat conftest.err
>&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); } &&
23321 { ac_try
='test -z "$ac_c_werror_flag"
23322 || test ! -s conftest.err'
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; } &&
23328 { ac_try
='test -s conftest.$ac_objext'
23329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330 (eval $ac_try) 2>&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); }; }; then
23334 ac_cv_type_mbstate_t
=yes
23336 echo "$as_me: failed program was:" >&5
23337 sed 's/^/| /' conftest.
$ac_ext >&5
23339 ac_cv_type_mbstate_t
=no
23341 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23343 echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23344 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
23345 if test $ac_cv_type_mbstate_t = yes; then
23347 cat >>confdefs.h
<<\_ACEOF
23348 #define HAVE_MBSTATE_T 1
23353 cat >>confdefs.h
<<\_ACEOF
23354 #define mbstate_t int
23359 echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23360 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6
23361 if test "${emacs_cv_c_restrict+set}" = set; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23364 cat >conftest.
$ac_ext <<_ACEOF
23367 cat confdefs.h
>>conftest.
$ac_ext
23368 cat >>conftest.
$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23370 void fred (int *restrict x);
23379 rm -f conftest.
$ac_objext
23380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23381 (eval $ac_compile) 2>conftest.er1
23383 grep -v '^ *+' conftest.er1
>conftest.err
23385 cat conftest.err
>&5
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } &&
23388 { ac_try
='test -z "$ac_c_werror_flag"
23389 || test ! -s conftest.err'
23390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23391 (eval $ac_try) 2>&5
23393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); }; } &&
23395 { ac_try
='test -s conftest.$ac_objext'
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; }; then
23401 emacs_cv_c_restrict
=yes
23403 echo "$as_me: failed program was:" >&5
23404 sed 's/^/| /' conftest.
$ac_ext >&5
23406 cat >conftest.
$ac_ext <<_ACEOF
23409 cat confdefs.h
>>conftest.
$ac_ext
23410 cat >>conftest.
$ac_ext <<_ACEOF
23411 /* end confdefs.h. */
23412 void fred (int *__restrict x);
23421 rm -f conftest.
$ac_objext
23422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23423 (eval $ac_compile) 2>conftest.er1
23425 grep -v '^ *+' conftest.er1
>conftest.err
23427 cat conftest.err
>&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); } &&
23430 { ac_try
='test -z "$ac_c_werror_flag"
23431 || test ! -s conftest.err'
23432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433 (eval $ac_try) 2>&5
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); }; } &&
23437 { ac_try
='test -s conftest.$ac_objext'
23438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439 (eval $ac_try) 2>&5
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); }; }; then
23443 emacs_cv_c_restrict
=__restrict
23445 echo "$as_me: failed program was:" >&5
23446 sed 's/^/| /' conftest.
$ac_ext >&5
23448 emacs_cv_c_restrict
=no
23450 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23452 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23454 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23455 echo "${ECHO_T}$emacs_cv_c_restrict" >&6
23456 case "$emacs_cv_c_restrict" in
23457 yes) emacs_restrict
=restrict
;;
23458 no
) emacs_restrict
="";;
23459 *) emacs_restrict
="$emacs_cv_c_restrict";;
23461 if test "$emacs_restrict" != __restrict
; then
23463 cat >>confdefs.h
<<_ACEOF
23464 #define __restrict $emacs_restrict
23469 echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23470 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6
23471 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23472 echo $ECHO_N "(cached) $ECHO_C" >&6
23474 cat >conftest.
$ac_ext <<_ACEOF
23477 cat confdefs.h
>>conftest.
$ac_ext
23478 cat >>conftest.
$ac_ext <<_ACEOF
23479 /* end confdefs.h. */
23480 void fred (int x[__restrict]);
23489 rm -f conftest.
$ac_objext
23490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23491 (eval $ac_compile) 2>conftest.er1
23493 grep -v '^ *+' conftest.er1
>conftest.err
23495 cat conftest.err
>&5
23496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23497 (exit $ac_status); } &&
23498 { ac_try
='test -z "$ac_c_werror_flag"
23499 || test ! -s conftest.err'
23500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23501 (eval $ac_try) 2>&5
23503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23504 (exit $ac_status); }; } &&
23505 { ac_try
='test -s conftest.$ac_objext'
23506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23507 (eval $ac_try) 2>&5
23509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23510 (exit $ac_status); }; }; then
23511 emacs_cv_c_restrict_arr
=yes
23513 echo "$as_me: failed program was:" >&5
23514 sed 's/^/| /' conftest.
$ac_ext >&5
23516 emacs_cv_c_restrict_arr
=no
23518 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
23520 echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23521 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6
23522 if test "$emacs_cv_c_restrict_arr" = yes; then
23524 cat >>confdefs.h
<<\_ACEOF
23525 #define __restrict_arr __restrict
23532 # Set up the CFLAGS for real compilation, so we can substitute it.
23533 CFLAGS
="$REAL_CFLAGS"
23534 CPPFLAGS
="$REAL_CPPFLAGS"
23536 #### Find out which version of Emacs this is.
23537 version
=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23538 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23539 if test x
"${version}" = x
; then
23540 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23541 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23542 { (exit 1); exit 1; }; }
23545 ### Specify what sort of things we'll be editing into Makefile and config.h.
23546 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23582 cat >>confdefs.h
<<_ACEOF
23583 #define EMACS_CONFIGURATION "${canonical}"
23587 cat >>confdefs.h
<<_ACEOF
23588 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23592 cat >>confdefs.h
<<_ACEOF
23593 #define config_machfile "${machfile}"
23597 cat >>confdefs.h
<<_ACEOF
23598 #define config_opsysfile "${opsysfile}"
23602 cat >>confdefs.h
<<_ACEOF
23603 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23607 cat >>confdefs.h
<<_ACEOF
23608 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23612 cat >>confdefs.h
<<_ACEOF
23613 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23617 cat >>confdefs.h
<<_ACEOF
23618 #define UNEXEC_SRC ${UNEXEC_SRC}
23622 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23624 cat >>confdefs.h
<<\_ACEOF
23625 #define HAVE_X_WINDOWS 1
23629 if test "${USE_X_TOOLKIT}" != "none" ; then
23631 cat >>confdefs.h
<<\_ACEOF
23632 #define USE_X_TOOLKIT 1
23636 if test "${HAVE_X11}" = "yes" ; then
23638 cat >>confdefs.h
<<\_ACEOF
23643 if test "${HAVE_XFREE386}" = "yes" ; then
23645 cat >>confdefs.h
<<\_ACEOF
23646 #define HAVE_XFREE386 1
23650 if test "${HAVE_MENUS}" = "yes" ; then
23652 cat >>confdefs.h
<<\_ACEOF
23653 #define HAVE_MENUS 1
23657 if test "${GNU_MALLOC}" = "yes" ; then
23659 cat >>confdefs.h
<<\_ACEOF
23660 #define GNU_MALLOC 1
23664 if test "${REL_ALLOC}" = "yes" ; then
23666 cat >>confdefs.h
<<\_ACEOF
23667 #define REL_ALLOC 1
23676 #### Report on what we decided to do.
23677 #### Report GTK as a toolkit, even if it doesn't use Xt.
23678 #### It makes printing result more understandable as using GTK sets
23679 #### toolkit_scroll_bars to yes by default.
23680 if test "${HAVE_GTK}" = "yes"; then
23685 Configured for \`${canonical}'.
23687 Where should the build process find the source code? ${srcdir}
23688 What operating system and machine description files should Emacs use?
23689 \`${opsysfile}' and \`${machfile}'
23690 What compiler should emacs be built with? ${CC} ${CFLAGS}
23691 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23692 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23693 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23694 What window system should Emacs use? ${window_system}
23695 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23697 if test -n "${x_includes}"; then
23698 echo " Where do we find X Windows header files? ${x_includes}"
23700 echo " Where do we find X Windows header files? Standard dirs"
23702 if test -n "${x_libraries}"; then
23703 echo " Where do we find X Windows libraries? ${x_libraries}"
23705 echo " Where do we find X Windows libraries? Standard dirs"
23708 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23709 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23710 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23711 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23712 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23713 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23714 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23717 if test $USE_XASSERTS = yes; then
23718 echo " Compiling with asserts turned on."
23719 CPPFLAGS
="$CPPFLAGS -DXASSERTS=1"
23725 # Remove any trailing slashes in these variables.
23726 test "${prefix}" != NONE
&&
23727 prefix
=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23728 test "${exec_prefix}" != NONE
&&
23729 exec_prefix
=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23731 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23732 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23733 ## from Makefile.c can correctly provide the arg `-traditional' to the
23736 cat >conftest.
$ac_ext <<_ACEOF
23739 cat confdefs.h
>>conftest.
$ac_ext
23740 cat >>conftest.
$ac_ext <<_ACEOF
23741 /* end confdefs.h. */
23744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23745 $EGREP "yes..yes" >/dev
/null
2>&1; then
23746 CPP_NEED_TRADITIONAL
=no
23748 CPP_NEED_TRADITIONAL
=yes
23753 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"
23754 ac_config_commands
="$ac_config_commands default"
23755 cat >confcache
<<\_ACEOF
23756 # This file is a shell script that caches the results of configure
23757 # tests run on this system so they can be shared between configure
23758 # scripts and configure runs, see configure's option --config-cache.
23759 # It is not useful on other systems. If it contains results you don't
23760 # want to keep, you may remove or edit it.
23762 # config.status only pays attention to the cache file if you give it
23763 # the --recheck option to rerun configure.
23765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23767 # following values.
23771 # The following way of writing the cache mishandles newlines in values,
23772 # but we know of no workaround that is simple, portable, and efficient.
23773 # So, don't put newlines in cache variables' values.
23774 # Ultrix sh set writes to stderr and can't be redirected directly,
23775 # and sets the high bit in the cache file unless we assign to the vars.
23778 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23780 # `set' does not quote correctly, so add quotes (double-quote
23781 # substitution turns \\\\ into \\, and sed turns \\ into \).
23784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23787 # `set' quotes correctly as required by POSIX, so do not add quotes.
23789 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23796 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23798 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23800 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
23801 if test -w $cache_file; then
23802 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23803 cat confcache
>$cache_file
23805 echo "not updating unwritable cache $cache_file"
23810 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
23811 # Let make expand exec_prefix.
23812 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
23814 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23815 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23816 # trailing colons and then remove the whole line if VPATH becomes empty
23817 # (actually we leave an empty line to preserve line numbers).
23818 if test "x$srcdir" = x.
; then
23819 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23820 s/:*\$(srcdir):*/:/;
23821 s/:*\${srcdir}:*/:/;
23823 s/^\([^=]*=[ ]*\):*/\1/;
23829 DEFS
=-DHAVE_CONFIG_H
23833 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
23834 # 1. Remove the extension, and $U if already installed.
23835 ac_i
=`echo "$ac_i" |
23836 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23838 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
23839 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
23841 LIBOBJS
=$ac_libobjs
23843 LTLIBOBJS
=$ac_ltlibobjs
23847 : ${CONFIG_STATUS=./config.status}
23848 ac_clean_files_save
=$ac_clean_files
23849 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
23850 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23851 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23852 cat >$CONFIG_STATUS <<_ACEOF
23854 # Generated by $as_me.
23855 # Run this file to recreate the current configuration.
23856 # Compiler output produced by configure, useful for debugging
23857 # configure, is in config.log if it exists.
23860 ac_cs_recheck=false
23862 SHELL=\${CONFIG_SHELL-$SHELL}
23865 cat >>$CONFIG_STATUS <<\_ACEOF
23866 ## --------------------- ##
23867 ## M4sh Initialization. ##
23868 ## --------------------- ##
23870 # Be Bourne compatible
23871 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
23874 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23875 # is contrary to our usage. Disable this feature.
23876 alias -g '${1+"$@"}'='"$@"'
23877 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
23880 DUALCASE
=1; export DUALCASE
# for MKS sh
23882 # Support unset when possible.
23883 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23890 # Work around bugs in pre-3.0 UWIN ksh.
23891 $as_unset ENV MAIL MAILPATH
23898 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23899 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23900 LC_TELEPHONE LC_TIME
23902 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23903 eval $as_var=C
; export $as_var
23909 # Required to use basename.
23910 if expr a
: '\(a\)' >/dev
/null
2>&1; then
23916 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
23917 as_basename
=basename
23923 # Name of the executable.
23924 as_me
=`$as_basename "$0" ||
23925 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23926 X"$0" : 'X\(//\)$' \| \
23927 X"$0" : 'X\(/\)$' \| \
23928 . : '\(.\)' 2>/dev/null ||
23930 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23931 /^X\/\(\/\/\)$/{ s//\1/; q; }
23932 /^X\/\(\/\).*/{ s//\1/; q; }
23936 # PATH needs CR, and LINENO needs CR and PATH.
23937 # Avoid depending upon Character Ranges.
23938 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
23939 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23940 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
23941 as_cr_digits
='0123456789'
23942 as_cr_alnum
=$as_cr_Letters$as_cr_digits
23944 # The user is always right.
23945 if test "${PATH_SEPARATOR+set}" != set; then
23946 echo "#! /bin/sh" >conf$$.sh
23947 echo "exit 0" >>conf$$.sh
23949 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23958 as_lineno_1
=$LINENO
23959 as_lineno_2
=$LINENO
23960 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
23961 test "x$as_lineno_1" != "x$as_lineno_2" &&
23962 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
23963 # Find who we are. Look in the path if we contain no path at all
23966 *[\\/]* ) as_myself
=$0 ;;
23967 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23968 for as_dir
in $PATH
23971 test -z "$as_dir" && as_dir
=.
23972 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23977 # We did not find ourselves, most probably we were run as `sh COMMAND'
23978 # in which case we are not to be found in the path.
23979 if test "x$as_myself" = x
; then
23982 if test ! -f "$as_myself"; then
23983 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23984 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23985 { (exit 1); exit 1; }; }
23987 case $CONFIG_SHELL in
23989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23990 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
23993 test -z "$as_dir" && as_dir
=.
23994 for as_base
in sh bash ksh sh5
; do
23997 if ("$as_dir/$as_base" -c '
23998 as_lineno_1=$LINENO
23999 as_lineno_2=$LINENO
24000 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24001 test "x$as_lineno_1" != "x$as_lineno_2" &&
24002 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
24003 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
24004 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
24005 CONFIG_SHELL
=$as_dir/$as_base
24006 export CONFIG_SHELL
24007 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24015 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24016 # uniformly replaced by the line number. The first 'sed' inserts a
24017 # line-number line before each line; the second 'sed' does the real
24018 # work. The second script uses 'N' to pair each line-number line
24019 # with the numbered line, and appends trailing '-' during
24020 # substitution so that $LINENO is not a special case at line end.
24021 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24022 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24023 sed '=' <$as_myself |
24028 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24031 s,^['$as_cr_digits']*\n,,
24032 ' >$as_me.lineno
&&
24033 chmod +x
$as_me.lineno ||
24034 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24035 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24036 { (exit 1); exit 1; }; }
24038 # Don't try to exec as it changes $[0], causing all sort of problems
24039 # (the dirname of $[0] is not the place where we might find the
24040 # original and so on. Autoconf is especially sensible to this).
24042 # Exit status is that of the last command.
24047 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24048 *c
*,-n*) ECHO_N
= ECHO_C
='
24050 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
24051 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
24054 if expr a
: '\(a\)' >/dev
/null
2>&1; then
24060 rm -f conf$$ conf$$.exe conf$$.
file
24062 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24063 # We could just check for DJGPP; but this test a) works b) is more generic
24064 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24065 if test -f conf$$.exe
; then
24066 # Don't use ln at all; we don't have any links
24071 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24076 rm -f conf$$ conf$$.exe conf$$.
file
24078 if mkdir
-p .
2>/dev
/null
; then
24081 test -d .
/-p && rmdir .
/-p
24085 as_executable_p
="test -f"
24087 # Sed expression to map a string onto a valid CPP name.
24088 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24090 # Sed expression to map a string onto a valid variable name.
24091 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24095 # We need space, tab and new line, in precisely that order.
24105 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24106 # report actual input values of CONFIG_FILES etc. instead of their
24107 # values after options handling. Logging --version etc. is OK.
24111 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24112 ## Running $as_me. ##
24117 This file was extended by $as_me, which was
24118 generated by GNU Autoconf 2.59. Invocation command line was
24120 CONFIG_FILES = $CONFIG_FILES
24121 CONFIG_HEADERS = $CONFIG_HEADERS
24122 CONFIG_LINKS = $CONFIG_LINKS
24123 CONFIG_COMMANDS = $CONFIG_COMMANDS
24127 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24131 # Files that config.status was made for.
24132 if test -n "$ac_config_files"; then
24133 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24136 if test -n "$ac_config_headers"; then
24137 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24140 if test -n "$ac_config_links"; then
24141 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24144 if test -n "$ac_config_commands"; then
24145 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24148 cat >>$CONFIG_STATUS <<\_ACEOF
24151 \`$as_me' instantiates files from templates according to the
24152 current configuration.
24154 Usage: $0 [OPTIONS] [FILE]...
24156 -h, --help print this help, then exit
24157 -V, --version print version number, then exit
24158 -q, --quiet do not print progress messages
24159 -d, --debug don't remove temporary files
24160 --recheck update $as_me by reconfiguring in the same conditions
24161 --file=FILE[:TEMPLATE]
24162 instantiate the configuration file FILE
24163 --header=FILE[:TEMPLATE]
24164 instantiate the configuration header FILE
24166 Configuration files:
24169 Configuration headers:
24172 Configuration commands:
24175 Report bugs to <bug-autoconf@gnu.org>."
24178 cat >>$CONFIG_STATUS <<_ACEOF
24181 configured by $0, generated by GNU Autoconf 2.59,
24182 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24184 Copyright (C) 2003 Free Software Foundation, Inc.
24185 This config.status script is free software; the Free Software Foundation
24186 gives unlimited permission to copy, distribute and modify it."
24191 cat >>$CONFIG_STATUS <<\_ACEOF
24192 # If no file are specified by the user, then we need to provide default
24193 # value. By we need to know if files were specified by the user.
24199 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
24200 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
24208 *) # This is not an option, so the user has probably given explicit
24211 ac_need_defaults
=false
;;
24215 # Handling of the options.
24217 cat >>$CONFIG_STATUS <<\_ACEOF
24218 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24220 --version |
--vers* |
-V )
24221 echo "$ac_cs_version"; exit 0 ;;
24223 # Conflict between --help and --header
24224 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24225 Try \`$0 --help' for more information." >&5
24226 echo "$as_me: error: ambiguous option: $1
24227 Try \`$0 --help' for more information." >&2;}
24228 { (exit 1); exit 1; }; };;
24229 --help |
--hel |
-h )
24230 echo "$ac_cs_usage"; exit 0 ;;
24231 --debug |
--d* |
-d )
24233 --file |
--fil |
--fi |
--f )
24235 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24236 ac_need_defaults
=false
;;
24237 --header |
--heade |
--head |
--hea )
24239 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24240 ac_need_defaults
=false
;;
24241 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24242 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24245 # This is an error.
24246 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24247 Try \`$0 --help' for more information." >&5
24248 echo "$as_me: error: unrecognized option: $1
24249 Try \`$0 --help' for more information." >&2;}
24250 { (exit 1); exit 1; }; } ;;
24252 *) ac_config_targets
="$ac_config_targets $1" ;;
24258 ac_configure_extra_args
=
24260 if $ac_cs_silent; then
24262 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24266 cat >>$CONFIG_STATUS <<_ACEOF
24267 if \$ac_cs_recheck; then
24268 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24269 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24274 cat >>$CONFIG_STATUS <<_ACEOF
24276 # INIT-COMMANDS section.
24279 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24285 cat >>$CONFIG_STATUS <<\_ACEOF
24286 for ac_config_target
in $ac_config_targets
24288 case "$ac_config_target" in
24289 # Handling of arguments.
24290 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24291 "lib-src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24292 "oldXMenu/Makefile" ) CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24293 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24294 "lwlib/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24295 "src/Makefile.c" ) CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24296 "lisp/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24297 "lispref/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24298 "lispintro/Makefile" ) CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24299 "leim/Makefile" ) CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24300 "default" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24301 "src/config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24302 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24303 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24304 { (exit 1); exit 1; }; };;
24308 # If the user did not use the arguments to specify the items to instantiate,
24309 # then the envvar interface is used. Set only those that are not.
24310 # We use the long form for the default assignment because of an extremely
24311 # bizarre bug on SunOS 4.1.3.
24312 if $ac_need_defaults; then
24313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24314 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24318 # Have a temporary directory for convenience. Make it in the build tree
24319 # simply because there is no reason to put it here, and in addition,
24320 # creating and moving files from /tmp can sometimes cause problems.
24321 # Create a temporary directory, and hook for its removal unless debugging.
24324 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24325 trap '{ (exit 1); exit 1; }' 1 2 13 15
24328 # Create a (secure) tmp directory for tmp files.
24331 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24332 test -n "$tmp" && test -d "$tmp"
24335 tmp
=.
/confstat$$
-$RANDOM
24336 (umask 077 && mkdir
$tmp)
24339 echo "$me: cannot create a temporary directory in ." >&2
24340 { (exit 1); exit 1; }
24345 cat >>$CONFIG_STATUS <<_ACEOF
24348 # CONFIG_FILES section.
24351 # No need to generate the scripts if there are no CONFIG_FILES.
24352 # This happens for instance when ./config.status config.h
24353 if test -n "\$CONFIG_FILES"; then
24354 # Protect against being on the right side of a sed subst in config.status.
24355 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24356 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24357 s,@SHELL@,$SHELL,;t t
24358 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24359 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24360 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24361 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24362 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24363 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24364 s,@exec_prefix@,$exec_prefix,;t t
24365 s,@prefix@,$prefix,;t t
24366 s,@program_transform_name@,$program_transform_name,;t t
24367 s,@bindir@,$bindir,;t t
24368 s,@sbindir@,$sbindir,;t t
24369 s,@libexecdir@,$libexecdir,;t t
24370 s,@datadir@,$datadir,;t t
24371 s,@sysconfdir@,$sysconfdir,;t t
24372 s,@sharedstatedir@,$sharedstatedir,;t t
24373 s,@localstatedir@,$localstatedir,;t t
24374 s,@libdir@,$libdir,;t t
24375 s,@includedir@,$includedir,;t t
24376 s,@oldincludedir@,$oldincludedir,;t t
24377 s,@infodir@,$infodir,;t t
24378 s,@mandir@,$mandir,;t t
24379 s,@build_alias@,$build_alias,;t t
24380 s,@host_alias@,$host_alias,;t t
24381 s,@target_alias@,$target_alias,;t t
24382 s,@DEFS@,$DEFS,;t t
24383 s,@ECHO_C@,$ECHO_C,;t t
24384 s,@ECHO_N@,$ECHO_N,;t t
24385 s,@ECHO_T@,$ECHO_T,;t t
24386 s,@LIBS@,$LIBS,;t t
24387 s,@MAINT@,$MAINT,;t t
24388 s,@build@,$build,;t t
24389 s,@build_cpu@,$build_cpu,;t t
24390 s,@build_vendor@,$build_vendor,;t t
24391 s,@build_os@,$build_os,;t t
24392 s,@host@,$host,;t t
24393 s,@host_cpu@,$host_cpu,;t t
24394 s,@host_vendor@,$host_vendor,;t t
24395 s,@host_os@,$host_os,;t t
24397 s,@CFLAGS@,$CFLAGS,;t t
24398 s,@LDFLAGS@,$LDFLAGS,;t t
24399 s,@CPPFLAGS@,$CPPFLAGS,;t t
24400 s,@ac_ct_CC@,$ac_ct_CC,;t t
24401 s,@EXEEXT@,$EXEEXT,;t t
24402 s,@OBJEXT@,$OBJEXT,;t t
24404 s,@EGREP@,$EGREP,;t t
24405 s,@LN_S@,$LN_S,;t t
24406 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24407 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24408 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24409 s,@RANLIB@,$RANLIB,;t t
24410 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24411 s,@INSTALL_INFO@,$INSTALL_INFO,;t t
24412 s,@GZIP_PROG@,$GZIP_PROG,;t t
24413 s,@LIBSOUND@,$LIBSOUND,;t t
24414 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24415 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
24416 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
24417 s,@CFLAGS_SOUND@,$CFLAGS_SOUND,;t t
24418 s,@SET_MAKE@,$SET_MAKE,;t t
24419 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
24420 s,@GTK_LIBS@,$GTK_LIBS,;t t
24421 s,@XFT_CFLAGS@,$XFT_CFLAGS,;t t
24422 s,@XFT_LIBS@,$XFT_LIBS,;t t
24423 s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
24424 s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
24425 s,@FONTCONFIG_CFLAGS@,$FONTCONFIG_CFLAGS,;t t
24426 s,@FONTCONFIG_LIBS@,$FONTCONFIG_LIBS,;t t
24427 s,@HAVE_LIBOTF@,$HAVE_LIBOTF,;t t
24428 s,@LIBOTF_CFLAGS@,$LIBOTF_CFLAGS,;t t
24429 s,@LIBOTF_LIBS@,$LIBOTF_LIBS,;t t
24430 s,@ALLOCA@,$ALLOCA,;t t
24431 s,@liblockfile@,$liblockfile,;t t
24432 s,@LIBOBJS@,$LIBOBJS,;t t
24433 s,@NEED_SETGID@,$NEED_SETGID,;t t
24434 s,@KMEM_GROUP@,$KMEM_GROUP,;t t
24435 s,@GETLOADAVG_LIBS@,$GETLOADAVG_LIBS,;t t
24436 s,@GETOPT_H@,$GETOPT_H,;t t
24437 s,@GETOPTOBJS@,$GETOPTOBJS,;t t
24438 s,@version@,$version,;t t
24439 s,@configuration@,$configuration,;t t
24440 s,@canonical@,$canonical,;t t
24441 s,@srcdir@,$srcdir,;t t
24442 s,@lispdir@,$lispdir,;t t
24443 s,@locallisppath@,$locallisppath,;t t
24444 s,@lisppath@,$lisppath,;t t
24445 s,@x_default_search_path@,$x_default_search_path,;t t
24446 s,@etcdir@,$etcdir,;t t
24447 s,@archlibdir@,$archlibdir,;t t
24448 s,@docdir@,$docdir,;t t
24449 s,@bitmapdir@,$bitmapdir,;t t
24450 s,@gamedir@,$gamedir,;t t
24451 s,@gameuser@,$gameuser,;t t
24452 s,@c_switch_system@,$c_switch_system,;t t
24453 s,@c_switch_machine@,$c_switch_machine,;t t
24454 s,@LD_SWITCH_X_SITE@,$LD_SWITCH_X_SITE,;t t
24455 s,@LD_SWITCH_X_SITE_AUX@,$LD_SWITCH_X_SITE_AUX,;t t
24456 s,@C_SWITCH_X_SITE@,$C_SWITCH_X_SITE,;t t
24457 s,@X_TOOLKIT_TYPE@,$X_TOOLKIT_TYPE,;t t
24458 s,@machfile@,$machfile,;t t
24459 s,@opsysfile@,$opsysfile,;t t
24460 s,@carbon_appdir@,$carbon_appdir,;t t
24461 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24466 cat >>$CONFIG_STATUS <<\_ACEOF
24467 # Split the substitutions into bite-sized pieces for seds with
24468 # small command number limits, like on Digital OSF/1 and HP-UX.
24469 ac_max_sed_lines
=48
24470 ac_sed_frag
=1 # Number of current file.
24471 ac_beg
=1 # First line for current file.
24472 ac_end
=$ac_max_sed_lines # Line after last line for current file.
24475 while $ac_more_lines; do
24476 if test $ac_beg -gt 1; then
24477 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24479 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
24481 if test ! -s $tmp/subs.frag
; then
24482 ac_more_lines
=false
24484 # The purpose of the label and of the branching condition is to
24485 # speed up the sed processing (if there are no `@' at all, there
24486 # is no need to browse any of the substitutions).
24487 # These are the two extra sed commands mentioned above.
24489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
24490 if test -z "$ac_sed_cmds"; then
24491 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
24493 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24495 ac_sed_frag
=`expr $ac_sed_frag + 1`
24497 ac_end
=`expr $ac_end + $ac_max_sed_lines`
24500 if test -z "$ac_sed_cmds"; then
24503 fi # test -n "$CONFIG_FILES"
24506 cat >>$CONFIG_STATUS <<\_ACEOF
24507 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
24508 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24510 - |
*:- |
*:-:* ) # input from stdin
24512 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24513 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24514 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24515 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24516 * ) ac_file_in
=$ac_file.
in ;;
24519 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24520 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24521 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24522 X"$ac_file" : 'X\(//\)[^/]' \| \
24523 X"$ac_file" : 'X\(//\)$' \| \
24524 X"$ac_file" : 'X\(/\)' \| \
24525 . : '\(.\)' 2>/dev/null ||
24527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24529 /^X\(\/\/\)$/{ s//\1/; q; }
24530 /^X\(\/\).*/{ s//\1/; q; }
24532 { if $as_mkdir_p; then
24537 while test ! -d "$as_dir"; do
24538 as_dirs
="$as_dir $as_dirs"
24539 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24540 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24541 X"$as_dir" : 'X\(//\)[^/]' \| \
24542 X"$as_dir" : 'X\(//\)$' \| \
24543 X"$as_dir" : 'X\(/\)' \| \
24544 . : '\(.\)' 2>/dev/null ||
24546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24547 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24548 /^X\(\/\/\)$/{ s//\1/; q; }
24549 /^X\(\/\).*/{ s//\1/; q; }
24552 test ! -n "$as_dirs" || mkdir
$as_dirs
24553 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24554 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24555 { (exit 1); exit 1; }; }; }
24559 if test "$ac_dir" != .
; then
24560 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24561 # A "../" for each directory in $ac_dir_suffix.
24562 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24564 ac_dir_suffix
= ac_top_builddir
=
24568 .
) # No --srcdir option. We are building in place.
24570 if test -z "$ac_top_builddir"; then
24573 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24575 [\\/]* | ?
:[\\/]* ) # Absolute path.
24576 ac_srcdir
=$srcdir$ac_dir_suffix;
24577 ac_top_srcdir
=$srcdir ;;
24578 *) # Relative path.
24579 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24580 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24583 # Do not use `cd foo && pwd` to compute absolute paths, because
24584 # the directories may not exist.
24586 .
) ac_abs_builddir
="$ac_dir";;
24589 .
) ac_abs_builddir
=`pwd`;;
24590 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
24591 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
24594 case $ac_abs_builddir in
24595 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24597 case ${ac_top_builddir}.
in
24598 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
24599 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
24600 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
24603 case $ac_abs_builddir in
24604 .
) ac_abs_srcdir
=$ac_srcdir;;
24607 .
) ac_abs_srcdir
=$ac_abs_builddir;;
24608 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
24609 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
24612 case $ac_abs_builddir in
24613 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
24615 case $ac_top_srcdir in
24616 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
24617 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
24618 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
24624 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24625 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
24628 if test x
"$ac_file" != x-
; then
24629 { echo "$as_me:$LINENO: creating $ac_file" >&5
24630 echo "$as_me: creating $ac_file" >&6;}
24633 # Let's still pretend it is `configure' which instantiates (i.e., don't
24634 # use $as_me), people would be surprised to read:
24635 # /* config.h. Generated by config.status. */
24636 if test x
"$ac_file" = x-
; then
24639 configure_input
="$ac_file. "
24641 configure_input
=$configure_input"Generated from `echo $ac_file_in |
24642 sed 's,.*/,,'` by configure."
24644 # First look for the input files in the build tree, otherwise in the
24646 ac_file_inputs
=`IFS=:
24647 for f in $ac_file_in; do
24649 -) echo $tmp/stdin ;;
24651 # Absolute (can't be DOS-style, as IFS=:)
24652 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24653 echo "$as_me: error: cannot find input file: $f" >&2;}
24654 { (exit 1); exit 1; }; }
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; }
24672 cat >>$CONFIG_STATUS <<_ACEOF
24676 cat >>$CONFIG_STATUS <<\_ACEOF
24678 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24679 s
,@configure_input@
,$configure_input,;t t
24680 s
,@srcdir@
,$ac_srcdir,;t t
24681 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
24682 s
,@top_srcdir@
,$ac_top_srcdir,;t t
24683 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
24684 s
,@builddir@
,$ac_builddir,;t t
24685 s
,@abs_builddir@
,$ac_abs_builddir,;t t
24686 s
,@top_builddir@
,$ac_top_builddir,;t t
24687 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
24688 s
,@INSTALL@
,$ac_INSTALL,;t t
24689 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24691 if test x"$ac_file" != x-; then
24692 mv $tmp/out $ac_file
24700 cat >>$CONFIG_STATUS <<\_ACEOF
24703 # CONFIG_HEADER section.
24706 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
24707 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24709 # ac_d sets the value in "#define NAME VALUE" lines.
24710 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24711 ac_dB
='[ ].*$,\1#\2'
24714 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24715 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24716 ac_uB
='$,\1#\2define\3'
24720 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
24721 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24723 - |
*:- |
*:-:* ) # input from stdin
24725 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24726 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24727 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24728 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
24729 * ) ac_file_in
=$ac_file.
in ;;
24732 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
24733 echo "$as_me: creating $ac_file" >&6;}
24735 # First look for the input files in the build tree, otherwise in the
24737 ac_file_inputs
=`IFS=:
24738 for f in $ac_file_in; do
24740 -) echo $tmp/stdin ;;
24742 # Absolute (can't be DOS-style, as IFS=:)
24743 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24744 echo "$as_me: error: cannot find input file: $f" >&2;}
24745 { (exit 1); exit 1; }; }
24746 # Do quote $f, to prevent DOS paths from being IFS'd.
24749 if test -f "$f"; then
24752 elif test -f "$srcdir/$f"; then
24757 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24758 echo "$as_me: error: cannot find input file: $f" >&2;}
24759 { (exit 1); exit 1; }; }
24762 done` ||
{ (exit 1); exit 1; }
24763 # Remove the trailing spaces.
24764 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24768 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24769 # `conftest.undefs', that substitutes the proper values into
24770 # config.h.in to produce config.h. The first handles `#define'
24771 # templates, and the second `#undef' templates.
24772 # And first: Protect against being on the right side of a sed subst in
24773 # config.status. Protect against being in an unquoted here document
24774 # in config.status.
24775 rm -f conftest.defines conftest.undefs
24776 # Using a here document instead of a string reduces the quoting nightmare.
24777 # Putting comments in sed scripts is not portable.
24779 # `end' is used to avoid that the second main sed command (meant for
24780 # 0-ary CPP macros) applies to n-ary macro definitions.
24781 # See the Autoconf documentation for `clear'.
24782 cat >confdef2sed.
sed <<\_ACEOF
24787 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24789 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24792 # If some macros were called several times there might be several times
24793 # the same #defines, which is useless. Nevertheless, we may not want to
24794 # sort them, since we want the *last* AC-DEFINE to be honored.
24795 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24796 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24797 rm -f confdef2sed.sed
24799 # This sed command replaces #undef with comments. This is necessary, for
24800 # example, in the case of _POSIX_SOURCE, which is predefined and required
24801 # on some systems where configure will not decide to define it.
24802 cat >>conftest.undefs <<\_ACEOF
24803 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24806 # Break up conftest.defines because some shells have a limit on the size
24807 # of here documents, and old seds have small limits too (100 cmds).
24808 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24809 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24810 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24811 echo ' :' >>$CONFIG_STATUS
24812 rm -f conftest.tail
24813 while grep . conftest.defines >/dev/null
24815 # Write a limited-size here document to $tmp/defines.sed.
24816 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24817 # Speed up: don't consider the non `#define' lines.
24818 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24819 # Work around the forget-to-reset-the-flag bug.
24820 echo 't clr' >>$CONFIG_STATUS
24821 echo ': clr' >>$CONFIG_STATUS
24822 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
24824 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24826 mv $tmp/out $tmp/in
24828 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
24829 rm -f conftest.defines
24830 mv conftest.
tail conftest.defines
24832 rm -f conftest.defines
24833 echo ' fi # grep' >>$CONFIG_STATUS
24834 echo >>$CONFIG_STATUS
24836 # Break up conftest.undefs because some shells have a limit on the size
24837 # of here documents, and old seds have small limits too (100 cmds).
24838 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24839 rm -f conftest.
tail
24840 while grep . conftest.undefs
>/dev
/null
24842 # Write a limited-size here document to $tmp/undefs.sed.
24843 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24844 # Speed up: don't consider the non
`#undef'
24845 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24846 # Work around the forget-to-reset-the-flag bug.
24847 echo 't clr' >>$CONFIG_STATUS
24848 echo ': clr' >>$CONFIG_STATUS
24849 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24851 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24853 mv $tmp/out $tmp/in
24855 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24856 rm -f conftest.undefs
24857 mv conftest.tail conftest.undefs
24859 rm -f conftest.undefs
24861 cat >>$CONFIG_STATUS <<\_ACEOF
24862 # Let's still pretend it is `configure
' which instantiates (i.e., don't
24863 # use $as_me), people would be surprised to read:
24864 # /* config.h. Generated by config.status. */
24865 if test x
"$ac_file" = x-
; then
24866 echo "/* Generated by configure. */" >$tmp/config.h
24868 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24870 cat $tmp/in >>$tmp/config.h
24872 if test x
"$ac_file" != x-
; then
24873 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
24874 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24875 echo "$as_me: $ac_file is unchanged" >&6;}
24877 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
24878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24879 X"$ac_file" : 'X\(//\)[^/]' \| \
24880 X"$ac_file" : 'X\(//\)$' \| \
24881 X"$ac_file" : 'X\(/\)' \| \
24882 . : '\(.\)' 2>/dev/null ||
24884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24886 /^X\(\/\/\)$/{ s//\1/; q; }
24887 /^X\(\/\).*/{ s//\1/; q; }
24889 { if $as_mkdir_p; then
24894 while test ! -d "$as_dir"; do
24895 as_dirs
="$as_dir $as_dirs"
24896 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24898 X"$as_dir" : 'X\(//\)[^/]' \| \
24899 X"$as_dir" : 'X\(//\)$' \| \
24900 X"$as_dir" : 'X\(/\)' \| \
24901 . : '\(.\)' 2>/dev/null ||
24903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24904 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24905 /^X\(\/\/\)$/{ s//\1/; q; }
24906 /^X\(\/\).*/{ s//\1/; q; }
24909 test ! -n "$as_dirs" || mkdir
$as_dirs
24910 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24911 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24912 { (exit 1); exit 1; }; }; }
24915 mv $tmp/config.h
$ac_file
24919 rm -f $tmp/config.h
24923 cat >>$CONFIG_STATUS <<\_ACEOF
24926 # CONFIG_COMMANDS section.
24928 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
24929 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
24930 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
24931 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
24932 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24933 X"$ac_dest" : 'X\(//\)[^/]' \| \
24934 X"$ac_dest" : 'X\(//\)$' \| \
24935 X"$ac_dest" : 'X\(/\)' \| \
24936 . : '\(.\)' 2>/dev/null ||
24938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24939 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24940 /^X\(\/\/\)$/{ s//\1/; q; }
24941 /^X\(\/\).*/{ s//\1/; q; }
24943 { if $as_mkdir_p; then
24948 while test ! -d "$as_dir"; do
24949 as_dirs
="$as_dir $as_dirs"
24950 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
24951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24952 X"$as_dir" : 'X\(//\)[^/]' \| \
24953 X"$as_dir" : 'X\(//\)$' \| \
24954 X"$as_dir" : 'X\(/\)' \| \
24955 . : '\(.\)' 2>/dev/null ||
24957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24958 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24959 /^X\(\/\/\)$/{ s//\1/; q; }
24960 /^X\(\/\).*/{ s//\1/; q; }
24963 test ! -n "$as_dirs" || mkdir
$as_dirs
24964 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24965 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24966 { (exit 1); exit 1; }; }; }
24970 if test "$ac_dir" != .
; then
24971 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24972 # A "../" for each directory in $ac_dir_suffix.
24973 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24975 ac_dir_suffix
= ac_top_builddir
=
24979 .
) # No --srcdir option. We are building in place.
24981 if test -z "$ac_top_builddir"; then
24984 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
24986 [\\/]* | ?
:[\\/]* ) # Absolute path.
24987 ac_srcdir
=$srcdir$ac_dir_suffix;
24988 ac_top_srcdir
=$srcdir ;;
24989 *) # Relative path.
24990 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
24991 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
24994 # Do not use `cd foo && pwd` to compute absolute paths, because
24995 # the directories may not exist.
24997 .
) ac_abs_builddir
="$ac_dir";;
25000 .
) ac_abs_builddir
=`pwd`;;
25001 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
25002 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
25005 case $ac_abs_builddir in
25006 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25008 case ${ac_top_builddir}.
in
25009 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
25010 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
25011 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
25014 case $ac_abs_builddir in
25015 .
) ac_abs_srcdir
=$ac_srcdir;;
25018 .
) ac_abs_srcdir
=$ac_abs_builddir;;
25019 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
25020 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
25023 case $ac_abs_builddir in
25024 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
25026 case $ac_top_srcdir in
25027 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
25028 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
25029 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
25034 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25035 echo "$as_me: executing $ac_dest commands" >&6;}
25039 ### Make the necessary directories, if they don't exist.
25040 for dir
in etc lisp
; do
25041 test -d ${dir} || mkdir
${dir}
25044 # Build src/Makefile from ${srcdir}/src/Makefile.c
25045 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25046 # This must be done after src/config.h is built, since we rely on that file.
25048 # Now get this: Some word that is part of the ${srcdir} directory name
25049 # or the ${configuration} value might, just might, happen to be an
25050 # identifier like `sun4' or `i386' or something, and be predefined by
25051 # the C preprocessor to some helpful value like 1, or maybe the empty
25052 # string. Needless to say consequent macro substitutions are less
25053 # than conducive to the makefile finding the correct directory.
25054 undefs
="`echo $top_srcdir $configuration $canonical |
25055 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25056 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25059 echo creating src
/epaths.h
25060 ${MAKE-make} epaths-force
25062 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25063 # `..' to `. .' unless invoked with -traditional
25065 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25066 CPPFLAGS
="$CPPFLAGS -traditional"
25069 echo creating lib-src
/Makefile
25071 rm -f junk.c junk1.c junk2.c
25072 sed -e '/start of cpp stuff/q' \
25073 < Makefile.c
> junk1.c
25074 sed -e '1,/start of cpp stuff/d'\
25075 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25076 < Makefile.c
> junk.c
25077 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25078 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25079 cat junk1.c junk2.c
> Makefile.new
25080 rm -f junk.c junk1.c junk2.c
25081 chmod 444 Makefile.new
25082 mv -f Makefile.new Makefile
25085 echo creating src
/Makefile
25087 rm -f junk.c junk1.c junk2.c
25088 sed -e '/start of cpp stuff/q' \
25089 < Makefile.c
> junk1.c
25090 sed -e '1,/start of cpp stuff/d'\
25091 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25092 < Makefile.c
> junk.c
25093 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25094 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25096 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25097 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25098 cat junk1.c junk2.c
> Makefile.new
25099 rm -f junk.c junk1.c junk2.c
25100 chmod 444 Makefile.new
25101 mv -f Makefile.new Makefile
25104 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25105 echo creating src
/.gdbinit
25106 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25109 # This is how we know whether to re-run configure in certain cases.
25110 touch src
/config.stamp
25117 cat >>$CONFIG_STATUS <<\_ACEOF
25119 { (exit 0); exit 0; }
25121 chmod +x
$CONFIG_STATUS
25122 ac_clean_files
=$ac_clean_files_save
25125 # configure is writing to config.log, and then calls config.status.
25126 # config.status does its own redirection, appending to config.log.
25127 # Unfortunately, on DOS this fails, as config.log is still kept open
25128 # by configure, so config.status won't be able to write to it; its
25129 # output is simply discarded. So we exec the FD to /dev/null,
25130 # effectively closing config.log, so it can be properly (re)opened and
25131 # appended to by config.status. When coming back to configure, we
25132 # need to make the FD available again.
25133 if test "$no_create" != yes; then
25135 ac_config_status_args
=
25136 test "$silent" = yes &&
25137 ac_config_status_args
="$ac_config_status_args --quiet"
25139 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25141 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25142 # would make configure fail if this is the last instruction.
25143 $ac_cs_success ||
{ (exit 1); exit 1; }