Give package name and verision to AC_INIT.
[emacs.git] / configure
blob10fea94c5069ebe2e94baee7078b2de06496227b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.50'
576 PACKAGE_STRING='emacs 23.0.50'
577 PACKAGE_BUGREPORT=''
579 ac_config_libobj_dir=src
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_header_list=
617 ac_func_list=
618 ac_subst_vars='SHELL
619 PATH_SEPARATOR
620 PACKAGE_NAME
621 PACKAGE_TARNAME
622 PACKAGE_VERSION
623 PACKAGE_STRING
624 PACKAGE_BUGREPORT
625 exec_prefix
626 prefix
627 program_transform_name
628 bindir
629 sbindir
630 libexecdir
631 datarootdir
632 datadir
633 sysconfdir
634 sharedstatedir
635 localstatedir
636 includedir
637 oldincludedir
638 docdir
639 infodir
640 htmldir
641 dvidir
642 pdfdir
643 psdir
644 libdir
645 localedir
646 mandir
647 DEFS
648 ECHO_C
649 ECHO_N
650 ECHO_T
651 LIBS
652 build_alias
653 host_alias
654 target_alias
655 MAINT
656 build
657 build_cpu
658 build_vendor
659 build_os
660 host
661 host_cpu
662 host_vendor
663 host_os
665 CFLAGS
666 LDFLAGS
667 CPPFLAGS
668 ac_ct_CC
669 EXEEXT
670 OBJEXT
672 GREP
673 EGREP
674 LN_S
675 INSTALL_PROGRAM
676 INSTALL_SCRIPT
677 INSTALL_DATA
678 RANLIB
679 INSTALL_INFO
680 GZIP_PROG
681 MAKEINFO
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686 CFLAGS_SOUND
687 SET_MAKE
688 XMKMF
689 HAVE_XSERVER
690 RSVG_CFLAGS
691 RSVG_LIBS
692 GTK_CFLAGS
693 GTK_LIBS
694 DBUS_CFLAGS
695 DBUS_LIBS
696 XFT_CFLAGS
697 XFT_LIBS
698 ALLOCA
699 liblockfile
700 LIBOBJS
701 NEED_SETGID
702 KMEM_GROUP
703 GETLOADAVG_LIBS
704 GETOPT_H
705 GETOPTOBJS
706 version
707 configuration
708 canonical
709 srcdir
710 lispdir
711 locallisppath
712 lisppath
713 x_default_search_path
714 etcdir
715 archlibdir
716 bitmapdir
717 gamedir
718 gameuser
719 c_switch_system
720 c_switch_machine
721 LD_SWITCH_X_SITE
722 LD_SWITCH_X_SITE_AUX
723 C_SWITCH_X_SITE
724 X_TOOLKIT_TYPE
725 machfile
726 opsysfile
727 carbon_appdir
728 LTLIBOBJS'
729 ac_subst_files=''
730 ac_precious_vars='build_alias
731 host_alias
732 target_alias
734 CFLAGS
735 LDFLAGS
736 LIBS
737 CPPFLAGS
739 XMKMF'
742 # Initialize some variables set by options.
743 ac_init_help=
744 ac_init_version=false
745 # The variables have the same names as the options, with
746 # dashes changed to underlines.
747 cache_file=/dev/null
748 exec_prefix=NONE
749 no_create=
750 no_recursion=
751 prefix=NONE
752 program_prefix=NONE
753 program_suffix=NONE
754 program_transform_name=s,x,x,
755 silent=
756 site=
757 srcdir=
758 verbose=
759 x_includes=NONE
760 x_libraries=NONE
762 # Installation directory options.
763 # These are left unexpanded so users can "make install exec_prefix=/foo"
764 # and all the variables that are supposed to be based on exec_prefix
765 # by default will actually change.
766 # Use braces instead of parens because sh, perl, etc. also accept them.
767 # (The list follows the same order as the GNU Coding Standards.)
768 bindir='${exec_prefix}/bin'
769 sbindir='${exec_prefix}/sbin'
770 libexecdir='${exec_prefix}/libexec'
771 datarootdir='${prefix}/share'
772 datadir='${datarootdir}'
773 sysconfdir='${prefix}/etc'
774 sharedstatedir='${prefix}/com'
775 localstatedir='${prefix}/var'
776 includedir='${prefix}/include'
777 oldincludedir='/usr/include'
778 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
779 infodir='${datarootdir}/info'
780 htmldir='${docdir}'
781 dvidir='${docdir}'
782 pdfdir='${docdir}'
783 psdir='${docdir}'
784 libdir='${exec_prefix}/lib'
785 localedir='${datarootdir}/locale'
786 mandir='${datarootdir}/man'
788 ac_prev=
789 ac_dashdash=
790 for ac_option
792 # If the previous option needs an argument, assign it.
793 if test -n "$ac_prev"; then
794 eval $ac_prev=\$ac_option
795 ac_prev=
796 continue
799 case $ac_option in
800 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 *) ac_optarg=yes ;;
802 esac
804 # Accept the important Cygnus configure options, so we can diagnose typos.
806 case $ac_dashdash$ac_option in
808 ac_dashdash=yes ;;
810 -bindir | --bindir | --bindi | --bind | --bin | --bi)
811 ac_prev=bindir ;;
812 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813 bindir=$ac_optarg ;;
815 -build | --build | --buil | --bui | --bu)
816 ac_prev=build_alias ;;
817 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818 build_alias=$ac_optarg ;;
820 -cache-file | --cache-file | --cache-fil | --cache-fi \
821 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822 ac_prev=cache_file ;;
823 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825 cache_file=$ac_optarg ;;
827 --config-cache | -C)
828 cache_file=config.cache ;;
830 -datadir | --datadir | --datadi | --datad)
831 ac_prev=datadir ;;
832 -datadir=* | --datadir=* | --datadi=* | --datad=*)
833 datadir=$ac_optarg ;;
835 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836 | --dataroo | --dataro | --datar)
837 ac_prev=datarootdir ;;
838 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840 datarootdir=$ac_optarg ;;
842 -disable-* | --disable-*)
843 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844 # Reject names that are not valid shell variable names.
845 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
846 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
847 { (exit 1); exit 1; }; }
848 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
849 eval enable_$ac_feature=no ;;
851 -docdir | --docdir | --docdi | --doc | --do)
852 ac_prev=docdir ;;
853 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
854 docdir=$ac_optarg ;;
856 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
857 ac_prev=dvidir ;;
858 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
859 dvidir=$ac_optarg ;;
861 -enable-* | --enable-*)
862 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
865 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
866 { (exit 1); exit 1; }; }
867 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
868 eval enable_$ac_feature=\$ac_optarg ;;
870 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
871 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
872 | --exec | --exe | --ex)
873 ac_prev=exec_prefix ;;
874 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
875 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
876 | --exec=* | --exe=* | --ex=*)
877 exec_prefix=$ac_optarg ;;
879 -gas | --gas | --ga | --g)
880 # Obsolete; use --with-gas.
881 with_gas=yes ;;
883 -help | --help | --hel | --he | -h)
884 ac_init_help=long ;;
885 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
886 ac_init_help=recursive ;;
887 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
888 ac_init_help=short ;;
890 -host | --host | --hos | --ho)
891 ac_prev=host_alias ;;
892 -host=* | --host=* | --hos=* | --ho=*)
893 host_alias=$ac_optarg ;;
895 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
896 ac_prev=htmldir ;;
897 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
898 | --ht=*)
899 htmldir=$ac_optarg ;;
901 -includedir | --includedir | --includedi | --included | --include \
902 | --includ | --inclu | --incl | --inc)
903 ac_prev=includedir ;;
904 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
905 | --includ=* | --inclu=* | --incl=* | --inc=*)
906 includedir=$ac_optarg ;;
908 -infodir | --infodir | --infodi | --infod | --info | --inf)
909 ac_prev=infodir ;;
910 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
911 infodir=$ac_optarg ;;
913 -libdir | --libdir | --libdi | --libd)
914 ac_prev=libdir ;;
915 -libdir=* | --libdir=* | --libdi=* | --libd=*)
916 libdir=$ac_optarg ;;
918 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
919 | --libexe | --libex | --libe)
920 ac_prev=libexecdir ;;
921 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
922 | --libexe=* | --libex=* | --libe=*)
923 libexecdir=$ac_optarg ;;
925 -localedir | --localedir | --localedi | --localed | --locale)
926 ac_prev=localedir ;;
927 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
928 localedir=$ac_optarg ;;
930 -localstatedir | --localstatedir | --localstatedi | --localstated \
931 | --localstate | --localstat | --localsta | --localst | --locals)
932 ac_prev=localstatedir ;;
933 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
934 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
935 localstatedir=$ac_optarg ;;
937 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
938 ac_prev=mandir ;;
939 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
940 mandir=$ac_optarg ;;
942 -nfp | --nfp | --nf)
943 # Obsolete; use --without-fp.
944 with_fp=no ;;
946 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
947 | --no-cr | --no-c | -n)
948 no_create=yes ;;
950 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
951 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
952 no_recursion=yes ;;
954 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
955 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
956 | --oldin | --oldi | --old | --ol | --o)
957 ac_prev=oldincludedir ;;
958 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
959 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
960 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
961 oldincludedir=$ac_optarg ;;
963 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
964 ac_prev=prefix ;;
965 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
966 prefix=$ac_optarg ;;
968 -program-prefix | --program-prefix | --program-prefi | --program-pref \
969 | --program-pre | --program-pr | --program-p)
970 ac_prev=program_prefix ;;
971 -program-prefix=* | --program-prefix=* | --program-prefi=* \
972 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
973 program_prefix=$ac_optarg ;;
975 -program-suffix | --program-suffix | --program-suffi | --program-suff \
976 | --program-suf | --program-su | --program-s)
977 ac_prev=program_suffix ;;
978 -program-suffix=* | --program-suffix=* | --program-suffi=* \
979 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
980 program_suffix=$ac_optarg ;;
982 -program-transform-name | --program-transform-name \
983 | --program-transform-nam | --program-transform-na \
984 | --program-transform-n | --program-transform- \
985 | --program-transform | --program-transfor \
986 | --program-transfo | --program-transf \
987 | --program-trans | --program-tran \
988 | --progr-tra | --program-tr | --program-t)
989 ac_prev=program_transform_name ;;
990 -program-transform-name=* | --program-transform-name=* \
991 | --program-transform-nam=* | --program-transform-na=* \
992 | --program-transform-n=* | --program-transform-=* \
993 | --program-transform=* | --program-transfor=* \
994 | --program-transfo=* | --program-transf=* \
995 | --program-trans=* | --program-tran=* \
996 | --progr-tra=* | --program-tr=* | --program-t=*)
997 program_transform_name=$ac_optarg ;;
999 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1000 ac_prev=pdfdir ;;
1001 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1002 pdfdir=$ac_optarg ;;
1004 -psdir | --psdir | --psdi | --psd | --ps)
1005 ac_prev=psdir ;;
1006 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1007 psdir=$ac_optarg ;;
1009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010 | -silent | --silent | --silen | --sile | --sil)
1011 silent=yes ;;
1013 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1014 ac_prev=sbindir ;;
1015 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1016 | --sbi=* | --sb=*)
1017 sbindir=$ac_optarg ;;
1019 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1020 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1021 | --sharedst | --shareds | --shared | --share | --shar \
1022 | --sha | --sh)
1023 ac_prev=sharedstatedir ;;
1024 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1025 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1026 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1027 | --sha=* | --sh=*)
1028 sharedstatedir=$ac_optarg ;;
1030 -site | --site | --sit)
1031 ac_prev=site ;;
1032 -site=* | --site=* | --sit=*)
1033 site=$ac_optarg ;;
1035 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1036 ac_prev=srcdir ;;
1037 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1038 srcdir=$ac_optarg ;;
1040 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1041 | --syscon | --sysco | --sysc | --sys | --sy)
1042 ac_prev=sysconfdir ;;
1043 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1044 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1045 sysconfdir=$ac_optarg ;;
1047 -target | --target | --targe | --targ | --tar | --ta | --t)
1048 ac_prev=target_alias ;;
1049 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1050 target_alias=$ac_optarg ;;
1052 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1053 verbose=yes ;;
1055 -version | --version | --versio | --versi | --vers | -V)
1056 ac_init_version=: ;;
1058 -with-* | --with-*)
1059 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1060 # Reject names that are not valid shell variable names.
1061 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1062 { echo "$as_me: error: invalid package name: $ac_package" >&2
1063 { (exit 1); exit 1; }; }
1064 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1065 eval with_$ac_package=\$ac_optarg ;;
1067 -without-* | --without-*)
1068 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_$ac_package=no ;;
1076 --x)
1077 # Obsolete; use --with-x.
1078 with_x=yes ;;
1080 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1081 | --x-incl | --x-inc | --x-in | --x-i)
1082 ac_prev=x_includes ;;
1083 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1084 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1085 x_includes=$ac_optarg ;;
1087 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1088 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1089 ac_prev=x_libraries ;;
1090 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1091 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1092 x_libraries=$ac_optarg ;;
1094 -*) { echo "$as_me: error: unrecognized option: $ac_option
1095 Try \`$0 --help' for more information." >&2
1096 { (exit 1); exit 1; }; }
1099 *=*)
1100 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1103 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1104 { (exit 1); exit 1; }; }
1105 eval $ac_envvar=\$ac_optarg
1106 export $ac_envvar ;;
1109 # FIXME: should be removed in autoconf 3.0.
1110 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1111 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1113 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1116 esac
1117 done
1119 if test -n "$ac_prev"; then
1120 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1121 { echo "$as_me: error: missing argument to $ac_option" >&2
1122 { (exit 1); exit 1; }; }
1125 # Be sure to have absolute directory names.
1126 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1127 datadir sysconfdir sharedstatedir localstatedir includedir \
1128 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1129 libdir localedir mandir
1131 eval ac_val=\$$ac_var
1132 case $ac_val in
1133 [\\/$]* | ?:[\\/]* ) continue;;
1134 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1135 esac
1136 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1137 { (exit 1); exit 1; }; }
1138 done
1140 # There might be people who depend on the old broken behavior: `$host'
1141 # used to hold the argument of --host etc.
1142 # FIXME: To remove some day.
1143 build=$build_alias
1144 host=$host_alias
1145 target=$target_alias
1147 # FIXME: To remove some day.
1148 if test "x$host_alias" != x; then
1149 if test "x$build_alias" = x; then
1150 cross_compiling=maybe
1151 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1152 If a cross compiler is detected then cross compile mode will be used." >&2
1153 elif test "x$build_alias" != "x$host_alias"; then
1154 cross_compiling=yes
1158 ac_tool_prefix=
1159 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1161 test "$silent" = yes && exec 6>/dev/null
1164 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1165 ac_ls_di=`ls -di .` &&
1166 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1167 { echo "$as_me: error: Working directory cannot be determined" >&2
1168 { (exit 1); exit 1; }; }
1169 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1170 { echo "$as_me: error: pwd does not report name of working directory" >&2
1171 { (exit 1); exit 1; }; }
1174 # Find the source files, if location was not specified.
1175 if test -z "$srcdir"; then
1176 ac_srcdir_defaulted=yes
1177 # Try the directory containing this script, then the parent directory.
1178 ac_confdir=`$as_dirname -- "$0" ||
1179 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1180 X"$0" : 'X\(//\)[^/]' \| \
1181 X"$0" : 'X\(//\)$' \| \
1182 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1183 echo X"$0" |
1184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1185 s//\1/
1188 /^X\(\/\/\)[^/].*/{
1189 s//\1/
1192 /^X\(\/\/\)$/{
1193 s//\1/
1196 /^X\(\/\).*/{
1197 s//\1/
1200 s/.*/./; q'`
1201 srcdir=$ac_confdir
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 srcdir=..
1205 else
1206 ac_srcdir_defaulted=no
1208 if test ! -r "$srcdir/$ac_unique_file"; then
1209 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1210 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1211 { (exit 1); exit 1; }; }
1213 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1214 ac_abs_confdir=`(
1215 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1216 { (exit 1); exit 1; }; }
1217 pwd)`
1218 # When building in place, set srcdir=.
1219 if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 srcdir=.
1222 # Remove unnecessary trailing slashes from srcdir.
1223 # Double slashes in file names in object file debugging info
1224 # mess up M-x gdb in Emacs.
1225 case $srcdir in
1226 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227 esac
1228 for ac_var in $ac_precious_vars; do
1229 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_${ac_var}_value=\$${ac_var}
1231 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1233 done
1236 # Report the --help message.
1238 if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1241 cat <<_ACEOF
1242 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1244 Usage: $0 [OPTION]... [VAR=VALUE]...
1246 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247 VAR=VALUE. See below for descriptions of some of the useful variables.
1249 Defaults for the options are specified in brackets.
1251 Configuration:
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1262 Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 [PREFIX]
1268 By default, \`make install' will install all the files in
1269 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271 for instance \`--prefix=\$HOME'.
1273 For better control, use the options below.
1275 Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1295 _ACEOF
1297 cat <<\_ACEOF
1299 Program names:
1300 --program-prefix=PREFIX prepend PREFIX to installed program names
1301 --program-suffix=SUFFIX append SUFFIX to installed program names
1302 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1304 X features:
1305 --x-includes=DIR X include files are in DIR
1306 --x-libraries=DIR X library files are in DIR
1308 System types:
1309 --build=BUILD configure for building on BUILD [guessed]
1310 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1311 _ACEOF
1314 if test -n "$ac_init_help"; then
1315 case $ac_init_help in
1316 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1317 esac
1318 cat <<\_ACEOF
1320 Optional Features:
1321 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1322 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1323 --enable-carbon-app[=DIR]
1324 specify install directory for Emacs.app on Mac OS X
1325 [DIR=/Application]
1326 --enable-asserts compile code with asserts enabled
1327 --enable-maintainer-mode
1328 enable make rules and dependencies not useful (and
1329 sometimes confusing) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search for lisp files
1332 specific to this site
1333 --disable-largefile omit support for large files
1335 Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --without-gcc don't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version 5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server host
1343 --without-sound don't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1345 motif, gtk, no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lgif (or -lungif) for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1352 --with-rsvg use -lrsvg-2 for displaying SVG images
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xaw3d don't use Xaw3d
1358 --without-xim don't use X11 XIM
1359 --without-carbon don't use Carbon GUI on Mac OS X
1360 --without-dbus don't use D-Bus
1361 --with-x use the X Window System
1363 Some influential environment variables:
1364 CC C compiler command
1365 CFLAGS C compiler flags
1366 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1367 nonstandard directory <lib dir>
1368 LIBS libraries to pass to the linker, e.g. -l<library>
1369 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1370 you have headers in a nonstandard directory <include dir>
1371 CPP C preprocessor
1372 XMKMF Path to xmkmf, Makefile generator for X Window System
1374 Use these variables to override the choices made by `configure' or to help
1375 it to find libraries and programs with nonstandard names/locations.
1377 _ACEOF
1378 ac_status=$?
1381 if test "$ac_init_help" = "recursive"; then
1382 # If there are subdirs, report their specific --help.
1383 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1384 test -d "$ac_dir" || continue
1385 ac_builddir=.
1387 case "$ac_dir" in
1388 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1390 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1391 # A ".." for each directory in $ac_dir_suffix.
1392 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1393 case $ac_top_builddir_sub in
1394 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1395 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 esac ;;
1397 esac
1398 ac_abs_top_builddir=$ac_pwd
1399 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1400 # for backward compatibility:
1401 ac_top_builddir=$ac_top_build_prefix
1403 case $srcdir in
1404 .) # We are building in place.
1405 ac_srcdir=.
1406 ac_top_srcdir=$ac_top_builddir_sub
1407 ac_abs_top_srcdir=$ac_pwd ;;
1408 [\\/]* | ?:[\\/]* ) # Absolute name.
1409 ac_srcdir=$srcdir$ac_dir_suffix;
1410 ac_top_srcdir=$srcdir
1411 ac_abs_top_srcdir=$srcdir ;;
1412 *) # Relative name.
1413 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1414 ac_top_srcdir=$ac_top_build_prefix$srcdir
1415 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1416 esac
1417 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1419 cd "$ac_dir" || { ac_status=$?; continue; }
1420 # Check for guested configure.
1421 if test -f "$ac_srcdir/configure.gnu"; then
1422 echo &&
1423 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1424 elif test -f "$ac_srcdir/configure"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure" --help=recursive
1427 else
1428 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429 fi || ac_status=$?
1430 cd "$ac_pwd" || { ac_status=$?; break; }
1431 done
1434 test -n "$ac_init_help" && exit $ac_status
1435 if $ac_init_version; then
1436 cat <<\_ACEOF
1437 emacs configure 23.0.50
1438 generated by GNU Autoconf 2.61
1440 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1441 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1442 This configure script is free software; the Free Software Foundation
1443 gives unlimited permission to copy, distribute and modify it.
1444 _ACEOF
1445 exit
1447 cat >config.log <<_ACEOF
1448 This file contains any messages produced by compilers while
1449 running configure, to aid debugging if configure makes a mistake.
1451 It was created by emacs $as_me 23.0.50, which was
1452 generated by GNU Autoconf 2.61. Invocation command line was
1454 $ $0 $@
1456 _ACEOF
1457 exec 5>>config.log
1459 cat <<_ASUNAME
1460 ## --------- ##
1461 ## Platform. ##
1462 ## --------- ##
1464 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1465 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1466 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1467 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1468 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1470 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1471 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1473 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1474 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1475 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1476 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1477 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1478 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1479 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1481 _ASUNAME
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 echo "PATH: $as_dir"
1489 done
1490 IFS=$as_save_IFS
1492 } >&5
1494 cat >&5 <<_ACEOF
1497 ## ----------- ##
1498 ## Core tests. ##
1499 ## ----------- ##
1501 _ACEOF
1504 # Keep a trace of the command line.
1505 # Strip out --no-create and --no-recursion so they do not pile up.
1506 # Strip out --silent because we don't want to record it for future runs.
1507 # Also quote any args containing shell meta-characters.
1508 # Make two passes to allow for proper duplicate-argument suppression.
1509 ac_configure_args=
1510 ac_configure_args0=
1511 ac_configure_args1=
1512 ac_must_keep_next=false
1513 for ac_pass in 1 2
1515 for ac_arg
1517 case $ac_arg in
1518 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1520 | -silent | --silent | --silen | --sile | --sil)
1521 continue ;;
1522 *\'*)
1523 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1524 esac
1525 case $ac_pass in
1526 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1528 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1529 if test $ac_must_keep_next = true; then
1530 ac_must_keep_next=false # Got value, back to normal.
1531 else
1532 case $ac_arg in
1533 *=* | --config-cache | -C | -disable-* | --disable-* \
1534 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1535 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1536 | -with-* | --with-* | -without-* | --without-* | --x)
1537 case "$ac_configure_args0 " in
1538 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1539 esac
1541 -* ) ac_must_keep_next=true ;;
1542 esac
1544 ac_configure_args="$ac_configure_args '$ac_arg'"
1546 esac
1547 done
1548 done
1549 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1550 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1552 # When interrupted or exit'd, cleanup temporary files, and complete
1553 # config.log. We remove comments because anyway the quotes in there
1554 # would cause problems or look ugly.
1555 # WARNING: Use '\'' to represent an apostrophe within the trap.
1556 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1557 trap 'exit_status=$?
1558 # Save into config.log some information that might help in debugging.
1560 echo
1562 cat <<\_ASBOX
1563 ## ---------------- ##
1564 ## Cache variables. ##
1565 ## ---------------- ##
1566 _ASBOX
1567 echo
1568 # The following way of writing the cache mishandles newlines in values,
1570 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1571 eval ac_val=\$$ac_var
1572 case $ac_val in #(
1573 *${as_nl}*)
1574 case $ac_var in #(
1575 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1576 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1577 esac
1578 case $ac_var in #(
1579 _ | IFS | as_nl) ;; #(
1580 *) $as_unset $ac_var ;;
1581 esac ;;
1582 esac
1583 done
1584 (set) 2>&1 |
1585 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1586 *${as_nl}ac_space=\ *)
1587 sed -n \
1588 "s/'\''/'\''\\\\'\'''\''/g;
1589 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1590 ;; #(
1592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1594 esac |
1595 sort
1597 echo
1599 cat <<\_ASBOX
1600 ## ----------------- ##
1601 ## Output variables. ##
1602 ## ----------------- ##
1603 _ASBOX
1604 echo
1605 for ac_var in $ac_subst_vars
1607 eval ac_val=\$$ac_var
1608 case $ac_val in
1609 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1610 esac
1611 echo "$ac_var='\''$ac_val'\''"
1612 done | sort
1613 echo
1615 if test -n "$ac_subst_files"; then
1616 cat <<\_ASBOX
1617 ## ------------------- ##
1618 ## File substitutions. ##
1619 ## ------------------- ##
1620 _ASBOX
1621 echo
1622 for ac_var in $ac_subst_files
1624 eval ac_val=\$$ac_var
1625 case $ac_val in
1626 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 esac
1628 echo "$ac_var='\''$ac_val'\''"
1629 done | sort
1630 echo
1633 if test -s confdefs.h; then
1634 cat <<\_ASBOX
1635 ## ----------- ##
1636 ## confdefs.h. ##
1637 ## ----------- ##
1638 _ASBOX
1639 echo
1640 cat confdefs.h
1641 echo
1643 test "$ac_signal" != 0 &&
1644 echo "$as_me: caught signal $ac_signal"
1645 echo "$as_me: exit $exit_status"
1646 } >&5
1647 rm -f core *.core core.conftest.* &&
1648 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1649 exit $exit_status
1651 for ac_signal in 1 2 13 15; do
1652 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1653 done
1654 ac_signal=0
1656 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1657 rm -f -r conftest* confdefs.h
1659 # Predefined preprocessor variables.
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_NAME "$PACKAGE_NAME"
1663 _ACEOF
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1668 _ACEOF
1671 cat >>confdefs.h <<_ACEOF
1672 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1673 _ACEOF
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_STRING "$PACKAGE_STRING"
1678 _ACEOF
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1683 _ACEOF
1686 # Let the site file select an alternate cache file if it wants to.
1687 # Prefer explicitly selected file to automatically selected ones.
1688 if test -n "$CONFIG_SITE"; then
1689 set x "$CONFIG_SITE"
1690 elif test "x$prefix" != xNONE; then
1691 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1692 else
1693 set x "$ac_default_prefix/share/config.site" \
1694 "$ac_default_prefix/etc/config.site"
1696 shift
1697 for ac_site_file
1699 if test -r "$ac_site_file"; then
1700 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1701 echo "$as_me: loading site script $ac_site_file" >&6;}
1702 sed 's/^/| /' "$ac_site_file" >&5
1703 . "$ac_site_file"
1705 done
1707 if test -r "$cache_file"; then
1708 # Some versions of bash will fail to source /dev/null (special
1709 # files actually), so we avoid doing that.
1710 if test -f "$cache_file"; then
1711 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1712 echo "$as_me: loading cache $cache_file" >&6;}
1713 case $cache_file in
1714 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1715 *) . "./$cache_file";;
1716 esac
1718 else
1719 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1720 echo "$as_me: creating cache $cache_file" >&6;}
1721 >$cache_file
1724 ac_header_list="$ac_header_list sys/time.h"
1725 ac_header_list="$ac_header_list unistd.h"
1726 ac_func_list="$ac_func_list alarm"
1727 # Check that the precious variables saved in the cache have kept the same
1728 # value.
1729 ac_cache_corrupted=false
1730 for ac_var in $ac_precious_vars; do
1731 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1732 eval ac_new_set=\$ac_env_${ac_var}_set
1733 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1734 eval ac_new_val=\$ac_env_${ac_var}_value
1735 case $ac_old_set,$ac_new_set in
1736 set,)
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1738 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1739 ac_cache_corrupted=: ;;
1740 ,set)
1741 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1742 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1743 ac_cache_corrupted=: ;;
1744 ,);;
1746 if test "x$ac_old_val" != "x$ac_new_val"; then
1747 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1748 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1749 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1750 echo "$as_me: former value: $ac_old_val" >&2;}
1751 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1752 echo "$as_me: current value: $ac_new_val" >&2;}
1753 ac_cache_corrupted=:
1754 fi;;
1755 esac
1756 # Pass precious variables to config.status.
1757 if test "$ac_new_set" = set; then
1758 case $ac_new_val in
1759 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1760 *) ac_arg=$ac_var=$ac_new_val ;;
1761 esac
1762 case " $ac_configure_args " in
1763 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1764 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1765 esac
1767 done
1768 if $ac_cache_corrupted; then
1769 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1770 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1771 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1772 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1773 { (exit 1); exit 1; }; }
1800 ac_ext=c
1801 ac_cpp='$CPP $CPPFLAGS'
1802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1807 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1810 test "$program_prefix" != NONE &&
1811 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1812 # Use a double $ so make ignores it.
1813 test "$program_suffix" != NONE &&
1814 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1815 # Double any \ or $. echo might interpret backslashes.
1816 # By default was `s,x,x', remove it if useless.
1817 cat <<\_ACEOF >conftest.sed
1818 s/[\\$]/&&/g;s/;s,x,x,$//
1819 _ACEOF
1820 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1821 rm -f conftest.sed
1824 lispdir='${datadir}/emacs/${version}/lisp'
1825 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1826 '${datadir}/emacs/site-lisp'
1827 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1828 etcdir='${datadir}/emacs/${version}/etc'
1829 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1830 docdir='${datadir}/emacs/${version}/etc'
1831 gamedir='${localstatedir}/games/emacs'
1833 gameuser=games
1837 # Check whether --with-gcc was given.
1838 if test "${with_gcc+set}" = set; then
1839 withval=$with_gcc;
1844 # Check whether --with-pop was given.
1845 if test "${with_pop+set}" = set; then
1846 withval=$with_pop; if test "$withval" = yes; then
1847 cat >>confdefs.h <<\_ACEOF
1848 #define MAIL_USE_POP 1
1849 _ACEOF
1851 else :
1853 else
1854 cat >>confdefs.h <<\_ACEOF
1855 #define MAIL_USE_POP 1
1856 _ACEOF
1863 # Check whether --with-kerberos was given.
1864 if test "${with_kerberos+set}" = set; then
1865 withval=$with_kerberos; if test "$withval" = yes; then
1866 cat >>confdefs.h <<\_ACEOF
1867 #define KERBEROS 1
1868 _ACEOF
1876 # Check whether --with-kerberos5 was given.
1877 if test "${with_kerberos5+set}" = set; then
1878 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1879 if test "${with_kerberos+set}" != set; then
1880 with_kerberos=yes
1881 cat >>confdefs.h <<\_ACEOF
1882 #define KERBEROS 1
1883 _ACEOF
1887 cat >>confdefs.h <<\_ACEOF
1888 #define KERBEROS5 1
1889 _ACEOF
1896 # Check whether --with-hesiod was given.
1897 if test "${with_hesiod+set}" = set; then
1898 withval=$with_hesiod; if test "$withval" = yes; then
1900 cat >>confdefs.h <<\_ACEOF
1901 #define HESIOD 1
1902 _ACEOF
1909 # Check whether --with-sound was given.
1910 if test "${with_sound+set}" = set; then
1911 withval=$with_sound;
1916 # Check whether --with-x-toolkit was given.
1917 if test "${with_x_toolkit+set}" = set; then
1918 withval=$with_x_toolkit; case "${withval}" in
1919 y | ye | yes ) val=gtk ;;
1920 n | no ) val=no ;;
1921 l | lu | luc | luci | lucid ) val=lucid ;;
1922 a | at | ath | athe | athen | athena ) val=athena ;;
1923 m | mo | mot | moti | motif ) val=motif ;;
1924 g | gt | gtk ) val=gtk ;;
1926 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1927 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1928 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1929 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1930 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1931 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1932 { (exit 1); exit 1; }; }
1934 esac
1935 with_x_toolkit=$val
1941 # Check whether --with-xpm was given.
1942 if test "${with_xpm+set}" = set; then
1943 withval=$with_xpm;
1947 # Check whether --with-jpeg was given.
1948 if test "${with_jpeg+set}" = set; then
1949 withval=$with_jpeg;
1953 # Check whether --with-tiff was given.
1954 if test "${with_tiff+set}" = set; then
1955 withval=$with_tiff;
1959 # Check whether --with-gif was given.
1960 if test "${with_gif+set}" = set; then
1961 withval=$with_gif;
1965 # Check whether --with-png was given.
1966 if test "${with_png+set}" = set; then
1967 withval=$with_png;
1971 # Check whether --with-gpm was given.
1972 if test "${with_gpm+set}" = set; then
1973 withval=$with_gpm;
1977 # Check whether --with-rsvg was given.
1978 if test "${with_rsvg+set}" = set; then
1979 withval=$with_rsvg;
1983 # Check whether --with-gtk was given.
1984 if test "${with_gtk+set}" = set; then
1985 withval=$with_gtk;
1989 # Check whether --with-pkg-config-prog was given.
1990 if test "${with_pkg_config_prog+set}" = set; then
1991 withval=$with_pkg_config_prog;
1995 # Check whether --with-toolkit-scroll-bars was given.
1996 if test "${with_toolkit_scroll_bars+set}" = set; then
1997 withval=$with_toolkit_scroll_bars;
2001 # Check whether --with-xaw3d was given.
2002 if test "${with_xaw3d+set}" = set; then
2003 withval=$with_xaw3d;
2007 # Check whether --with-xim was given.
2008 if test "${with_xim+set}" = set; then
2009 withval=$with_xim;
2013 # Check whether --with-carbon was given.
2014 if test "${with_carbon+set}" = set; then
2015 withval=$with_carbon;
2019 # Check whether --with-dbus was given.
2020 if test "${with_dbus+set}" = set; then
2021 withval=$with_dbus;
2025 # Check whether --enable-carbon-app was given.
2026 if test "${enable_carbon_app+set}" = set; then
2027 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2031 # Check whether --enable-asserts was given.
2032 if test "${enable_asserts+set}" = set; then
2033 enableval=$enable_asserts; USE_XASSERTS=$enableval
2034 else
2035 USE_XASSERTS=no
2039 # Check whether --enable-maintainer-mode was given.
2040 if test "${enable_maintainer_mode+set}" = set; then
2041 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2042 else
2043 USE_MAINTAINER_MODE=no
2046 if test $USE_MAINTAINER_MODE = yes; then
2047 MAINT=
2048 else
2049 MAINT=#
2053 # Check whether --enable-locallisppath was given.
2054 if test "${enable_locallisppath+set}" = set; then
2055 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2056 locallisppath=
2057 elif test "${enableval}" != "yes"; then
2058 locallisppath=${enableval}
2063 #### Make srcdir absolute, if it isn't already. It's important to
2064 #### avoid running the path through pwd unnecessarily, since pwd can
2065 #### give you automounter prefixes, which can go away. We do all this
2066 #### so Emacs can find its files when run uninstalled.
2067 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2068 unset CDPATH
2069 case "${srcdir}" in
2070 /* ) ;;
2072 ## We may be able to use the $PWD environment variable to make this
2073 ## absolute. But sometimes PWD is inaccurate.
2074 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2075 ## but that tested only for a well-formed and valid PWD,
2076 ## it did not object when PWD was well-formed and valid but just wrong.
2077 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2078 then
2079 srcdir="$PWD"
2080 else
2081 srcdir="`(cd ${srcdir}; pwd)`"
2084 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2085 esac
2087 #### Check if the source directory already has a configured system in it.
2088 if test `pwd` != `(cd ${srcdir} && pwd)` \
2089 && test -f "${srcdir}/src/config.h" ; then
2090 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2091 as a build directory right now; it has been configured in its own
2092 right. To configure in another directory as well, you MUST
2093 use GNU make. If you do not have GNU make, then you must
2094 now do \`make distclean' in ${srcdir},
2095 and then run $0 again." >&5
2096 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2097 as a build directory right now; it has been configured in its own
2098 right. To configure in another directory as well, you MUST
2099 use GNU make. If you do not have GNU make, then you must
2100 now do \`make distclean' in ${srcdir},
2101 and then run $0 again." >&2;}
2104 #### Given the configuration name, set machfile and opsysfile to the
2105 #### names of the m/*.h and s/*.h files we should use.
2107 ### Canonicalize the configuration name.
2109 ac_aux_dir=
2110 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2111 if test -f "$ac_dir/install-sh"; then
2112 ac_aux_dir=$ac_dir
2113 ac_install_sh="$ac_aux_dir/install-sh -c"
2114 break
2115 elif test -f "$ac_dir/install.sh"; then
2116 ac_aux_dir=$ac_dir
2117 ac_install_sh="$ac_aux_dir/install.sh -c"
2118 break
2119 elif test -f "$ac_dir/shtool"; then
2120 ac_aux_dir=$ac_dir
2121 ac_install_sh="$ac_aux_dir/shtool install -c"
2122 break
2124 done
2125 if test -z "$ac_aux_dir"; then
2126 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2127 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2128 { (exit 1); exit 1; }; }
2131 # These three variables are undocumented and unsupported,
2132 # and are intended to be withdrawn in a future Autoconf release.
2133 # They can cause serious problems if a builder's source tree is in a directory
2134 # whose full name contains unusual characters.
2135 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2136 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2137 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2140 # Make sure we can run config.sub.
2141 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2142 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2143 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2144 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: checking build system type" >&5
2147 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2148 if test "${ac_cv_build+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 ac_build_alias=$build_alias
2152 test "x$ac_build_alias" = x &&
2153 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2154 test "x$ac_build_alias" = x &&
2155 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2156 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2157 { (exit 1); exit 1; }; }
2158 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2159 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2160 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2161 { (exit 1); exit 1; }; }
2164 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2165 echo "${ECHO_T}$ac_cv_build" >&6; }
2166 case $ac_cv_build in
2167 *-*-*) ;;
2168 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2169 echo "$as_me: error: invalid value of canonical build" >&2;}
2170 { (exit 1); exit 1; }; };;
2171 esac
2172 build=$ac_cv_build
2173 ac_save_IFS=$IFS; IFS='-'
2174 set x $ac_cv_build
2175 shift
2176 build_cpu=$1
2177 build_vendor=$2
2178 shift; shift
2179 # Remember, the first character of IFS is used to create $*,
2180 # except with old shells:
2181 build_os=$*
2182 IFS=$ac_save_IFS
2183 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2186 { echo "$as_me:$LINENO: checking host system type" >&5
2187 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2188 if test "${ac_cv_host+set}" = set; then
2189 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 else
2191 if test "x$host_alias" = x; then
2192 ac_cv_host=$ac_cv_build
2193 else
2194 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2195 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2196 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2197 { (exit 1); exit 1; }; }
2201 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2202 echo "${ECHO_T}$ac_cv_host" >&6; }
2203 case $ac_cv_host in
2204 *-*-*) ;;
2205 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2206 echo "$as_me: error: invalid value of canonical host" >&2;}
2207 { (exit 1); exit 1; }; };;
2208 esac
2209 host=$ac_cv_host
2210 ac_save_IFS=$IFS; IFS='-'
2211 set x $ac_cv_host
2212 shift
2213 host_cpu=$1
2214 host_vendor=$2
2215 shift; shift
2216 # Remember, the first character of IFS is used to create $*,
2217 # except with old shells:
2218 host_os=$*
2219 IFS=$ac_save_IFS
2220 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2223 canonical=$host
2224 configuration=${host_alias-${build_alias-$host}}
2228 ### If you add support for a new configuration, add code to this
2229 ### switch statement to recognize your configuration name and select
2230 ### the appropriate operating system and machine description files.
2232 ### You would hope that you could choose an m/*.h file pretty much
2233 ### based on the machine portion of the configuration name, and an s-
2234 ### file based on the operating system portion. However, it turns out
2235 ### that each m/*.h file is pretty manufacturer-specific - for
2236 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2237 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2238 ### machines. So we basically have to have a special case for each
2239 ### configuration name.
2241 ### As far as handling version numbers on operating systems is
2242 ### concerned, make sure things will fail in a fixable way. If
2243 ### /etc/MACHINES doesn't say anything about version numbers, be
2244 ### prepared to handle anything reasonably. If version numbers
2245 ### matter, be sure /etc/MACHINES says something about it.
2247 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2248 ### "System V Release 4"; he writes, "The old convention encouraged
2249 ### confusion between `system' and `release' levels'."
2251 machine='' opsys='' unported=no
2252 case "${canonical}" in
2254 ## FreeBSD ports
2255 *-*-freebsd* )
2256 opsys=freebsd
2257 case "${canonical}" in
2258 alpha*-*-freebsd*) machine=alpha ;;
2259 ia64-*-freebsd*) machine=ia64 ;;
2260 sparc64-*-freebsd*) machine=sparc ;;
2261 powerpc-*-freebsd*) machine=macppc ;;
2262 i[3456]86-*-freebsd*) machine=intel386 ;;
2263 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2264 esac
2267 ## FreeBSD kernel + glibc based userland
2268 *-*-kfreebsd*gnu* )
2269 opsys=gnu-kfreebsd
2270 case "${canonical}" in
2271 alpha*-*-kfreebsd*) machine=alpha ;;
2272 ia64-*-kfreebsd*) machine=ia64 ;;
2273 sparc64-*-kfreebsd*) machine=sparc ;;
2274 powerpc-*-kfreebsd*) machine=macppc ;;
2275 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2276 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2277 esac
2280 ## NetBSD ports
2281 *-*-netbsd* )
2282 opsys=netbsd
2283 if test -f /usr/lib/crti.o; then
2285 cat >>confdefs.h <<\_ACEOF
2286 #define HAVE_CRTIN
2287 _ACEOF
2291 case "${canonical}" in
2292 alpha*-*-netbsd*) machine=alpha ;;
2293 i[3456]86-*-netbsd*) machine=intel386 ;;
2294 m68k-*-netbsd*)
2295 # This is somewhat bogus.
2296 machine=hp9000s300 ;;
2297 mips-*-netbsd*) machine=pmax ;;
2298 mipsel-*-netbsd*) machine=pmax ;;
2299 mipseb-*-netbsd*) machine=pmax ;;
2300 ns32k-*-netbsd*) machine=ns32000 ;;
2301 powerpc-*-netbsd*) machine=macppc ;;
2302 sparc*-*-netbsd*) machine=sparc ;;
2303 vax-*-netbsd*) machine=vax ;;
2304 arm-*-netbsd*) machine=arm ;;
2305 x86_64-*-netbsd*) machine=amdx86-64 ;;
2306 hppa-*-netbsd*) machine=hp800 ;;
2307 shle-*-netbsd*) machine=sh3el ;;
2308 esac
2311 ## OpenBSD ports
2312 *-*-openbsd* )
2313 opsys=openbsd
2314 case "${canonical}" in
2315 alpha*-*-openbsd*) machine=alpha ;;
2316 arm-*-openbsd*) machine=arm ;;
2317 hppa-*-openbsd*) machine=hp9000s300 ;;
2318 i386-*-openbsd*) machine=intel386 ;;
2319 m68k-*-openbsd*) machine=hp9000s300 ;;
2320 m88k-*-openbsd*) machine=aviion ;;
2321 mips64-*-openbsd*) machine=mips64 ;;
2322 powerpc-*-openbsd*) machine=macppc ;;
2323 sh-*-openbsd*) machine=sh3el ;;
2324 sparc*-*-openbsd*) machine=sparc ;;
2325 vax-*-openbsd*) machine=vax ;;
2326 x86_64-*-openbsd*) machine=amdx86-64 ;;
2327 esac
2330 ## LynxOS ports
2331 *-*-lynxos* )
2332 opsys=lynxos
2333 case "${canonical}" in
2334 i[3456]86-*-lynxos*) machine=intel386 ;;
2335 powerpc-*-lynxos*) machine=powerpc ;;
2336 esac
2339 ## Acorn RISCiX:
2340 arm-acorn-riscix1.1* )
2341 machine=acorn opsys=riscix1-1
2343 arm-acorn-riscix1.2* | arm-acorn-riscix )
2344 ## This name is riscix12 instead of riscix1.2
2345 ## to avoid a file name conflict on MSDOS.
2346 machine=acorn opsys=riscix12
2349 ## BSDI ports
2350 *-*-bsdi* )
2351 opsys=bsdi
2352 case "${canonical}" in
2353 i[345]86-*-bsdi*) machine=intel386 ;;
2354 sparc-*-bsdi*) machine=sparc ;;
2355 powerpc-*-bsdi*) machine=macppc ;;
2356 esac
2357 case "${canonical}" in
2358 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2359 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2360 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2361 *-*-bsdi3* ) opsys=bsdos3 ;;
2362 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2363 esac
2366 ## Alliant machines
2367 ## Strictly speaking, we need the version of the alliant operating
2368 ## system to choose the right machine file, but currently the
2369 ## configuration name doesn't tell us enough to choose the right
2370 ## one; we need to give alliants their own operating system name to
2371 ## do this right. When someone cares, they can help us.
2372 fx80-alliant-* )
2373 machine=alliant4 opsys=bsd4-2
2375 i860-alliant-* )
2376 machine=alliant-2800 opsys=bsd4-3
2379 ## Alpha (DEC) machines.
2380 alpha*-dec-osf* )
2381 machine=alpha opsys=osf1
2382 # This is needed to find X11R6.1 libraries for certain tests.
2383 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2384 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2385 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2386 # due to non-traditional preprocessing with the current compiler
2387 # defaults. OSF 4 can also have that compiler version, and there
2388 # seems always to have been a usable /usr/bin/cpp.
2389 NON_GNU_CPP=/usr/bin/cpp
2390 case "${canonical}" in
2391 alpha*-dec-osf[5-9]*)
2392 opsys=osf5-0 ;;
2393 esac
2396 alpha*-*-linux-gnu* )
2397 machine=alpha opsys=gnu-linux
2400 arm*-*-linux-gnu* )
2401 machine=arm opsys=gnu-linux
2404 ## Altos 3068
2405 m68*-altos-sysv* )
2406 machine=altos opsys=usg5-2
2409 ## Amdahl UTS
2410 580-amdahl-sysv* )
2411 machine=amdahl opsys=usg5-2-2
2414 ## Apollo, Domain/OS
2415 m68*-apollo-* )
2416 machine=apollo opsys=bsd4-3
2419 ## Apple Darwin / Mac OS X
2420 *-apple-darwin* )
2421 case "${canonical}" in
2422 i[3456]86-* ) machine=intel386 ;;
2423 powerpc-* ) machine=powermac ;;
2424 * ) unported=yes ;;
2425 esac
2426 opsys=darwin
2427 # Define CPP as follows to make autoconf work correctly.
2428 CPP="${CC-cc} -E -no-cpp-precomp"
2429 # Use fink packages if available.
2430 if test -d /sw/include && test -d /sw/lib; then
2431 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2432 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2433 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2437 ## AT&T 3b2, 3b5, 3b15, 3b20
2438 we32k-att-sysv* )
2439 machine=att3b opsys=usg5-2-2
2442 ## AT&T 3b1 - The Mighty Unix PC!
2443 m68*-att-sysv* )
2444 machine=7300 opsys=usg5-2-2
2447 ## Bull dpx20
2448 rs6000-bull-bosx* )
2449 machine=ibmrs6000 opsys=aix3-2
2452 ## Bull dpx2
2453 m68*-bull-sysv3* )
2454 machine=dpx2 opsys=usg5-3
2457 ## Bull sps7
2458 m68*-bull-sysv2* )
2459 machine=sps7 opsys=usg5-2
2462 ## CCI 5/32, 6/32 -- see "Tahoe".
2464 ## Celerity
2465 ## I don't know what configuration name to use for this; config.sub
2466 ## doesn't seem to know anything about it. Hey, Celerity users, get
2467 ## in touch with us!
2468 celerity-celerity-bsd* )
2469 machine=celerity opsys=bsd4-2
2472 ## Clipper
2473 ## What operating systems does this chip run that Emacs has been
2474 ## tested on?
2475 clipper-* )
2476 machine=clipper
2477 ## We'll use the catch-all code at the bottom to guess the
2478 ## operating system.
2481 ## Compaq Nonstop
2482 mips-compaq-nonstopux* )
2483 machine=nonstopux opsys=nonstopux
2486 ## Convex
2487 *-convex-bsd* | *-convex-convexos* )
2488 machine=convex opsys=bsd4-3
2489 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2490 NON_GNU_CPP="cc -E -P"
2493 ## Cubix QBx/386
2494 i[3456]86-cubix-sysv* )
2495 machine=intel386 opsys=usg5-3
2498 ## Cydra 5
2499 cydra*-cydrome-sysv* )
2500 machine=cydra5 opsys=usg5-3
2503 ## Data General AViiON Machines
2504 ## DG changed naming conventions with the release of 5.4.4.10, they
2505 ## dropped the initial 5.4 but left the intervening R. Because of the
2506 ## R this shouldn't conflict with older versions of the OS (which I
2507 ## think were named like dgux4.*). In addition, DG new AViiONs series
2508 ## uses either Motorola M88k or Intel Pentium CPUs.
2509 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2510 machine=aviion opsys=dgux4
2512 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2513 ## This name is dgux5-4-3 instead of dgux5-4r3
2514 ## to avoid a file name conflict on MSDOS.
2515 machine=aviion opsys=dgux5-4-3
2517 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2518 machine=aviion opsys=dgux5-4r2
2520 m88k-dg-dgux* )
2521 machine=aviion opsys=dgux
2524 ## Data General AViiON Intel (x86) Machines
2525 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2526 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2527 i[345]86-dg-dguxR4* )
2528 machine=aviion-intel opsys=dgux4
2531 ## DECstations
2532 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2533 machine=pmax opsys=bsd4-2
2535 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2536 machine=pmax opsys=bsd4-3
2538 mips-dec-ultrix* )
2539 machine=pmax opsys=ultrix4-3
2541 mips-dec-osf* )
2542 machine=pmax opsys=osf1
2544 mips-dec-mach_bsd4.3* )
2545 machine=pmax opsys=mach-bsd4-3
2548 ## Motorola Delta machines
2549 m68k-motorola-sysv* | m68000-motorola-sysv* )
2550 machine=delta opsys=usg5-3
2551 if test -z "`type gnucc | grep 'not found'`"
2552 then
2553 if test -s /etc/167config
2554 then CC="gnucc -m68040"
2555 else CC="gnucc -m68881"
2557 else
2558 if test -z "`type gcc | grep 'not found'`"
2559 then CC=gcc
2560 else CC=cc
2564 m88k-motorola-sysv4* )
2565 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2566 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2567 # I hope there are not other 4.0 versions for this machine
2568 # which really need usg5-4 instead.
2569 machine=delta88k opsys=usg5-4-2
2571 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2572 machine=delta88k opsys=usg5-3
2575 ## Dual machines
2576 m68*-dual-sysv* )
2577 machine=dual opsys=usg5-2
2579 m68*-dual-uniplus* )
2580 machine=dual opsys=unipl5-2
2583 ## Elxsi 6400
2584 elxsi-elxsi-sysv* )
2585 machine=elxsi opsys=usg5-2
2588 ## Encore machines
2589 ns16k-encore-bsd* )
2590 machine=ns16000 opsys=umax
2593 ## The GEC 63 - apparently, this port isn't really finished yet.
2594 # I'm sure we finished off the last of the machines, though. -- fx
2596 ## Gould Power Node and NP1
2597 pn-gould-bsd4.2* )
2598 machine=gould opsys=bsd4-2
2600 pn-gould-bsd4.3* )
2601 machine=gould opsys=bsd4-3
2603 np1-gould-bsd* )
2604 machine=gould-np1 opsys=bsd4-3
2607 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2608 ## as far as Emacs is concerned).
2609 m88k-harris-cxux* )
2610 # Build needs to be different on 7.0 and later releases
2611 case "`uname -r`" in
2612 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2613 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2614 esac
2615 NON_GNU_CPP="/lib/cpp"
2617 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2618 m68k-harris-cxux* )
2619 machine=nh3000 opsys=cxux
2621 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2622 powerpc-harris-powerunix )
2623 machine=nh6000 opsys=powerunix
2624 NON_GNU_CPP="cc -Xo -E -P"
2626 ## SR2001/SR2201 running HI-UX/MPP
2627 hppa1.1-hitachi-hiuxmpp* )
2628 machine=sr2k opsys=hiuxmpp
2630 hppa1.1-hitachi-hiuxwe2* )
2631 machine=sr2k opsys=hiuxwe2
2633 ## Honeywell XPS100
2634 xps*-honeywell-sysv* )
2635 machine=xps100 opsys=usg5-2
2638 ## HP 9000 series 200 or 300
2639 m68*-hp-bsd* )
2640 machine=hp9000s300 opsys=bsd4-3
2642 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2643 m68*-hp-hpux* )
2644 case "`uname -r`" in
2645 ## Someone's system reports A.B8.05 for this.
2646 ## I wonder what other possibilities there are.
2647 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2648 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2649 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2650 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2651 *) machine=hp9000s300 opsys=hpux ;;
2652 esac
2655 ## HP 9000 series 700 and 800, running HP/UX
2656 hppa*-hp-hpux7* )
2657 machine=hp800 opsys=hpux
2659 hppa*-hp-hpux8* )
2660 machine=hp800 opsys=hpux8
2662 hppa*-hp-hpux9shr* )
2663 machine=hp800 opsys=hpux9shr
2665 hppa*-hp-hpux9* )
2666 machine=hp800 opsys=hpux9
2668 hppa*-hp-hpux10.2* )
2669 machine=hp800 opsys=hpux10-20
2671 hppa*-hp-hpux10* )
2672 machine=hp800 opsys=hpux10
2674 hppa*-hp-hpux1[1-9]* )
2675 machine=hp800 opsys=hpux11
2676 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2679 hppa*-*-linux-gnu* )
2680 machine=hp800 opsys=gnu-linux
2683 ## HP 9000 series 700 and 800, running HP/UX
2684 hppa*-hp-hpux* )
2685 ## Cross-compilation? Nah!
2686 case "`uname -r`" in
2687 ## Someone's system reports A.B8.05 for this.
2688 ## I wonder what other possibilities there are.
2689 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2690 *.08.* ) machine=hp800 opsys=hpux8 ;;
2691 *.09.* ) machine=hp800 opsys=hpux9 ;;
2692 *) machine=hp800 opsys=hpux10 ;;
2693 esac
2695 hppa*-*-nextstep* )
2696 machine=hp800 opsys=nextstep
2699 ## Orion machines
2700 orion-orion-bsd* )
2701 machine=orion opsys=bsd4-2
2703 clipper-orion-bsd* )
2704 machine=orion105 opsys=bsd4-2
2707 ## IBM machines
2708 i[3456]86-ibm-aix1.1* )
2709 machine=ibmps2-aix opsys=usg5-2-2
2711 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2712 machine=ibmps2-aix opsys=usg5-3
2714 i370-ibm-aix*)
2715 machine=ibm370aix opsys=usg5-3
2717 s390-*-linux-gnu* )
2718 machine=ibms390 opsys=gnu-linux
2720 s390x-*-linux-gnu* )
2721 machine=ibms390x opsys=gnu-linux
2723 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2724 machine=ibmrs6000 opsys=aix3-1
2726 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2727 machine=ibmrs6000 opsys=aix3-2-5
2729 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2730 machine=ibmrs6000 opsys=aix4-1
2732 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2733 machine=ibmrs6000 opsys=aix4-2
2735 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2736 machine=ibmrs6000 opsys=aix4-2
2738 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2739 machine=ibmrs6000 opsys=aix4-2
2741 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2742 machine=ibmrs6000 opsys=aix4
2744 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2745 machine=ibmrs6000 opsys=aix4-1
2747 rs6000-ibm-aix* | powerpc-ibm-aix* )
2748 machine=ibmrs6000 opsys=aix3-2
2750 romp-ibm-bsd4.3* )
2751 machine=ibmrt opsys=bsd4-3
2753 romp-ibm-bsd4.2* )
2754 machine=ibmrt opsys=bsd4-2
2756 romp-ibm-aos4.3* )
2757 machine=ibmrt opsys=bsd4-3
2759 romp-ibm-aos4.2* )
2760 machine=ibmrt opsys=bsd4-2
2762 romp-ibm-aos* )
2763 machine=ibmrt opsys=bsd4-3
2765 romp-ibm-bsd* )
2766 machine=ibmrt opsys=bsd4-3
2768 romp-ibm-aix* )
2769 machine=ibmrt-aix opsys=usg5-2-2
2772 ## Integrated Solutions `Optimum V'
2773 m68*-isi-bsd4.2* )
2774 machine=isi-ov opsys=bsd4-2
2776 m68*-isi-bsd4.3* )
2777 machine=isi-ov opsys=bsd4-3
2780 ## Intel 386 machines where we do care about the manufacturer
2781 i[3456]86-intsys-sysv* )
2782 machine=is386 opsys=usg5-2-2
2785 ## Prime EXL
2786 i[3456]86-prime-sysv* )
2787 machine=i386 opsys=usg5-3
2790 ## Sequent Symmetry running Dynix
2791 i[3456]86-sequent-bsd* )
2792 machine=symmetry opsys=bsd4-3
2795 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2796 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2797 machine=sequent-ptx opsys=ptx4
2798 NON_GNU_CPP=/lib/cpp
2801 ## Sequent Symmetry running DYNIX/ptx
2802 ## Use the old cpp rather than the newer ANSI one.
2803 i[3456]86-sequent-ptx* )
2804 machine=sequent-ptx opsys=ptx
2805 NON_GNU_CPP="/lib/cpp"
2808 ## ncr machine running svr4.3.
2809 i[3456]86-ncr-sysv4.3 )
2810 machine=ncr386 opsys=usg5-4-3
2813 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2814 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2815 i[3456]86-ncr-sysv* )
2816 machine=ncr386 opsys=usg5-4-2
2819 ## Intel Paragon OSF/1
2820 i860-intel-osf1* )
2821 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2824 ## Intel 860
2825 i860-*-sysv4* )
2826 machine=i860 opsys=usg5-4
2827 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2828 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2831 ## Macintosh PowerPC
2832 powerpc*-*-linux-gnu* )
2833 machine=macppc opsys=gnu-linux
2836 ## Masscomp machines
2837 m68*-masscomp-rtu* )
2838 machine=masscomp opsys=rtu
2841 ## Megatest machines
2842 m68*-megatest-bsd* )
2843 machine=mega68 opsys=bsd4-2
2846 ## Workstations sold by MIPS
2847 ## This is not necessarily all workstations using the MIPS processor -
2848 ## Irises are produced by SGI, and DECstations by DEC.
2850 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2851 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2852 ## it gives for choosing between the alternatives seems to be "Use
2853 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2854 ## the BSD world." I'll assume that these are instructions for
2855 ## handling two odd situations, and that every other situation
2856 ## should use mips.h and usg5-2-2, they being listed first.
2857 mips-mips-usg* )
2858 machine=mips4
2859 ## Fall through to the general code at the bottom to decide on the OS.
2861 mips-mips-riscos4* )
2862 machine=mips4 opsys=bsd4-3
2863 NON_GNU_CC="cc -systype bsd43"
2864 NON_GNU_CPP="cc -systype bsd43 -E"
2866 mips-mips-riscos5* )
2867 machine=mips4 opsys=riscos5
2868 NON_GNU_CC="cc -systype bsd43"
2869 NON_GNU_CPP="cc -systype bsd43 -E"
2871 mips-mips-bsd* )
2872 machine=mips opsys=bsd4-3
2874 mips-mips-* )
2875 machine=mips opsys=usg5-2-2
2878 ## NeXT
2879 m68*-next-* | m68k-*-nextstep* )
2880 machine=m68k opsys=nextstep
2883 ## The complete machine from National Semiconductor
2884 ns32k-ns-genix* )
2885 machine=ns32000 opsys=usg5-2
2888 ## NCR machines
2889 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2890 machine=tower32 opsys=usg5-2-2
2892 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2893 machine=tower32v3 opsys=usg5-3
2896 ## NEC EWS4800
2897 mips-nec-sysv4*)
2898 machine=ews4800 opsys=ux4800
2901 ## Nixdorf Targon 31
2902 m68*-nixdorf-sysv* )
2903 machine=targon31 opsys=usg5-2-2
2906 ## Nu (TI or LMI)
2907 m68*-nu-sysv* )
2908 machine=nu opsys=usg5-2
2911 ## Plexus
2912 m68*-plexus-sysv* )
2913 machine=plexus opsys=usg5-2
2916 ## Pyramid machines
2917 ## I don't really have any idea what sort of processor the Pyramid has,
2918 ## so I'm assuming it is its own architecture.
2919 pyramid-pyramid-bsd* )
2920 machine=pyramid opsys=bsd4-2
2923 ## Sequent Balance
2924 ns32k-sequent-bsd4.2* )
2925 machine=sequent opsys=bsd4-2
2927 ns32k-sequent-bsd4.3* )
2928 machine=sequent opsys=bsd4-3
2931 ## Siemens Nixdorf
2932 mips-siemens-sysv* | mips-sni-sysv*)
2933 machine=mips-siemens opsys=usg5-4
2934 NON_GNU_CC=/usr/ccs/bin/cc
2935 NON_GNU_CPP=/usr/ccs/lib/cpp
2938 ## Silicon Graphics machines
2939 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2940 m68*-sgi-iris3.5* )
2941 machine=irist opsys=iris3-5
2943 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2944 machine=irist opsys=iris3-6
2946 ## Iris 4D
2947 mips-sgi-irix3* )
2948 machine=iris4d opsys=irix3-3
2950 mips-sgi-irix4* )
2951 machine=iris4d opsys=irix4-0
2953 mips-sgi-irix6.5 )
2954 machine=iris4d opsys=irix6-5
2955 # Without defining _LANGUAGE_C, things get masked out in the headers
2956 # so that, for instance, grepping for `free' in stdlib.h fails and
2957 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2958 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2959 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2961 mips-sgi-irix6* )
2962 machine=iris4d opsys=irix6-0
2963 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2964 # but presumably it does no harm.
2965 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2966 # -32 probably isn't necessary in later v.6s -- anyone know which?
2967 NON_GCC_TEST_OPTIONS=-32
2969 mips-sgi-irix5.[01]* )
2970 machine=iris4d opsys=irix5-0
2972 mips-sgi-irix5* | mips-sgi-irix* )
2973 machine=iris4d opsys=irix5-2
2976 ## SONY machines
2977 m68*-sony-bsd4.2* )
2978 machine=news opsys=bsd4-2
2980 m68*-sony-bsd4.3* )
2981 machine=news opsys=bsd4-3
2983 m68*-sony-newsos3* | m68*-sony-news3*)
2984 machine=news opsys=bsd4-3
2986 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2987 machine=news-risc opsys=bsd4-3
2989 mips-sony-newsos6* )
2990 machine=news-r6 opsys=newsos6
2992 mips-sony-news* )
2993 machine=news-risc opsys=newsos5
2996 ## Stride
2997 m68*-stride-sysv* )
2998 machine=stride opsys=usg5-2
3001 ## Suns
3002 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
3003 machine=sparc opsys=gnu-linux
3006 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
3007 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
3008 | rs6000-*-solaris2*)
3009 case "${canonical}" in
3010 m68*-sunos1* ) machine=sun1 ;;
3011 m68*-sunos2* ) machine=sun2 ;;
3012 m68* ) machine=sun3 ;;
3013 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
3014 i[3456]86-*-* ) machine=intel386 ;;
3015 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3016 powerpcle* ) machine=powerpcle ;;
3017 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3018 sparc* ) machine=sparc ;;
3019 * ) unported=yes ;;
3020 esac
3021 case "${canonical}" in
3022 ## The Sun386 didn't get past 4.0.
3023 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
3024 *-sunos4.0* ) opsys=sunos4-0 ;;
3025 *-sunos4.1.[3-9]*noshare )
3026 ## This name is sunos413 instead of sunos4-1-3
3027 ## to avoid a file name conflict on MSDOS.
3028 opsys=sunos413
3029 NON_GNU_CPP=/usr/lib/cpp
3030 NON_GCC_TEST_OPTIONS=-Bstatic
3031 GCC_TEST_OPTIONS=-static
3033 *-sunos4.1.[3-9]* | *-sunos4shr*)
3034 opsys=sunos4shr
3035 NON_GNU_CPP=/usr/lib/cpp
3037 *-sunos4* | *-sunos )
3038 opsys=sunos4-1
3039 NON_GCC_TEST_OPTIONS=-Bstatic
3040 GCC_TEST_OPTIONS=-static
3042 *-sunos5.3* | *-solaris2.3* )
3043 opsys=sol2-3
3044 NON_GNU_CPP=/usr/ccs/lib/cpp
3046 *-sunos5.4* | *-solaris2.4* )
3047 opsys=sol2-4
3048 NON_GNU_CPP=/usr/ccs/lib/cpp
3049 RANLIB="ar -ts"
3051 *-sunos5.5* | *-solaris2.5* )
3052 opsys=sol2-5
3053 NON_GNU_CPP=/usr/ccs/lib/cpp
3054 RANLIB="ar -ts"
3056 *-sunos5.6* | *-solaris2.6* )
3057 opsys=sol2-6
3058 NON_GNU_CPP=/usr/ccs/lib/cpp
3059 RANLIB="ar -ts"
3061 *-sunos5* | *-solaris* )
3062 opsys=sol2-6
3063 emacs_check_sunpro_c=yes
3064 NON_GNU_CPP=/usr/ccs/lib/cpp
3066 * ) opsys=bsd4-2 ;;
3067 esac
3068 ## Watch out for a compiler that we know will not work.
3069 case "${canonical}" in
3070 *-solaris* | *-sunos5* )
3071 if [ "x$CC" = x/usr/ucb/cc ]; then
3072 ## /usr/ucb/cc doesn't work;
3073 ## we should find some other compiler that does work.
3074 unset CC
3077 *) ;;
3078 esac
3080 sparc-*-nextstep* )
3081 machine=sparc opsys=nextstep
3084 ## Tadpole 68k
3085 m68*-tadpole-sysv* )
3086 machine=tad68k opsys=usg5-3
3089 ## Tahoe machines
3090 tahoe-tahoe-bsd4.2* )
3091 machine=tahoe opsys=bsd4-2
3093 tahoe-tahoe-bsd4.3* )
3094 machine=tahoe opsys=bsd4-3
3097 ## Tandem Integrity S2
3098 mips-tandem-sysv* )
3099 machine=tandem-s2 opsys=usg5-3
3102 ## Tektronix XD88
3103 m88k-tektronix-sysv3* )
3104 machine=tekxd88 opsys=usg5-3
3107 ## Tektronix 16000 box (6130?)
3108 ns16k-tektronix-bsd* )
3109 machine=ns16000 opsys=bsd4-2
3111 ## Tektronix 4300
3112 ## src/m/tek4300.h hints that this is a m68k machine.
3113 m68*-tektronix-bsd* )
3114 machine=tek4300 opsys=bsd4-3
3117 ## Titan P2 or P3
3118 ## We seem to have lost the machine-description file titan.h!
3119 titan-titan-sysv* )
3120 machine=titan opsys=usg5-3
3123 ## Ustation E30 (SS5E)
3124 m68*-unisys-uniplus* )
3125 machine=ustation opsystem=unipl5-2
3128 ## Vaxen.
3129 vax-dec-* )
3130 machine=vax
3131 case "${canonical}" in
3132 *-bsd4.1* ) opsys=bsd4-1 ;;
3133 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3134 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3135 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3136 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3137 *-vms* ) opsys=vms ;;
3138 * ) unported=yes
3139 esac
3142 ## Whitechapel MG1
3143 ns16k-whitechapel-* )
3144 machine=mg1
3145 ## We don't know what sort of OS runs on these; we'll let the
3146 ## operating system guessing code below try.
3149 ## Wicat
3150 m68*-wicat-sysv* )
3151 machine=wicat opsys=usg5-2
3154 ## IA-64
3155 ia64*-*-linux* )
3156 machine=ia64 opsys=gnu-linux
3159 ## Intel 386 machines where we don't care about the manufacturer
3160 i[3456]86-*-* )
3161 machine=intel386
3162 case "${canonical}" in
3163 *-cygwin ) opsys=cygwin ;;
3164 *-darwin* ) opsys=darwin
3165 CPP="${CC-cc} -E -no-cpp-precomp"
3167 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3168 *-isc2.2* ) opsys=isc2-2 ;;
3169 *-isc4.0* ) opsys=isc4-0 ;;
3170 *-isc4.* ) opsys=isc4-1
3171 GCC_TEST_OPTIONS=-posix
3172 NON_GCC_TEST_OPTIONS=-Xp
3174 *-isc* ) opsys=isc3-0 ;;
3175 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3176 *-esix* ) opsys=esix ;;
3177 *-xenix* ) opsys=xenix ;;
3178 *-linux-gnu* ) opsys=gnu-linux ;;
3179 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3180 *-sco3.2v5* ) opsys=sco5
3181 NON_GNU_CPP=/lib/cpp
3182 # Prevent -belf from being passed to $CPP.
3183 # /lib/cpp does not accept it.
3184 OVERRIDE_CPPFLAGS=" "
3186 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3187 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3188 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3189 *-386bsd* ) opsys=386bsd ;;
3190 *-nextstep* ) opsys=nextstep ;;
3191 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3192 esac
3195 ## m68k Linux-based GNU system
3196 m68k-*-linux-gnu* )
3197 machine=m68k opsys=gnu-linux
3200 ## Mips Linux-based GNU system
3201 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3202 machine=mips opsys=gnu-linux
3205 ## UXP/DS
3206 sparc-fujitsu-sysv4* )
3207 machine=sparc opsys=uxpds
3208 NON_GNU_CPP=/usr/ccs/lib/cpp
3209 RANLIB="ar -ts"
3212 ## UXP/V
3213 f301-fujitsu-uxpv4.1)
3214 machine=f301 opsys=uxpv
3217 ## AMD x86-64 Linux-based GNU system
3218 x86_64-*-linux-gnu* )
3219 machine=amdx86-64 opsys=gnu-linux
3222 ## Tensilica Xtensa Linux-based GNU system
3223 xtensa-*-linux-gnu* )
3224 machine=xtensa opsys=gnu-linux
3228 unported=yes
3230 esac
3232 ### If the code above didn't choose an operating system, just choose
3233 ### an operating system based on the configuration name. You really
3234 ### only want to use this when you have no idea what the right
3235 ### operating system is; if you know what operating systems a machine
3236 ### runs, it's cleaner to make it explicit in the case statement
3237 ### above.
3238 if test x"${opsys}" = x; then
3239 case "${canonical}" in
3240 *-gnu* ) opsys=gnu ;;
3241 *-bsd4.[01] ) opsys=bsd4-1 ;;
3242 *-bsd4.2 ) opsys=bsd4-2 ;;
3243 *-bsd4.3 ) opsys=bsd4-3 ;;
3244 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3245 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3246 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3247 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3248 *-sysv4.2uw* ) opsys=unixware ;;
3249 *-sysv5uw* ) opsys=unixware ;;
3250 *-sysv5OpenUNIX* ) opsys=unixware ;;
3251 *-sysv4.1* | *-sysvr4.1* )
3252 NON_GNU_CPP=/usr/lib/cpp
3253 opsys=usg5-4 ;;
3254 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3255 if [ x$NON_GNU_CPP = x ]; then
3256 if [ -f /usr/ccs/lib/cpp ]; then
3257 NON_GNU_CPP=/usr/ccs/lib/cpp
3258 else
3259 NON_GNU_CPP=/lib/cpp
3262 opsys=usg5-4-2 ;;
3263 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3265 unported=yes
3267 esac
3272 if test $unported = yes; then
3273 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3274 Check \`etc/MACHINES' for recognized configuration names." >&5
3275 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3276 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3277 { (exit 1); exit 1; }; }
3280 machfile="m/${machine}.h"
3281 opsysfile="s/${opsys}.h"
3284 #### Choose a compiler.
3285 test -n "$CC" && cc_specified=yes
3287 # Save the value of CFLAGS that the user specified.
3288 SPECIFIED_CFLAGS="$CFLAGS"
3290 case ${with_gcc} in
3291 "yes" ) CC="gcc" GCC=yes ;;
3292 "no" ) : ${CC=cc} ;;
3294 esac
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 if test -n "$ac_tool_prefix"; then
3301 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3302 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3305 if test "${ac_cv_prog_CC+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 if test -n "$CC"; then
3309 ac_cv_prog_CC="$CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3314 IFS=$as_save_IFS
3315 test -z "$as_dir" && as_dir=.
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320 break 2
3322 done
3323 done
3324 IFS=$as_save_IFS
3328 CC=$ac_cv_prog_CC
3329 if test -n "$CC"; then
3330 { echo "$as_me:$LINENO: result: $CC" >&5
3331 echo "${ECHO_T}$CC" >&6; }
3332 else
3333 { echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6; }
3339 if test -z "$ac_cv_prog_CC"; then
3340 ac_ct_CC=$CC
3341 # Extract the first word of "gcc", so it can be a program name with args.
3342 set dummy gcc; ac_word=$2
3343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 else
3348 if test -n "$ac_ct_CC"; then
3349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3354 IFS=$as_save_IFS
3355 test -z "$as_dir" && as_dir=.
3356 for ac_exec_ext in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_ac_ct_CC="gcc"
3359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3362 done
3363 done
3364 IFS=$as_save_IFS
3368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3369 if test -n "$ac_ct_CC"; then
3370 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3371 echo "${ECHO_T}$ac_ct_CC" >&6; }
3372 else
3373 { echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6; }
3377 if test "x$ac_ct_CC" = x; then
3378 CC=""
3379 else
3380 case $cross_compiling:$ac_tool_warned in
3381 yes:)
3382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3383 whose name does not start with the host triplet. If you think this
3384 configuration is useful to you, please write to autoconf@gnu.org." >&5
3385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3386 whose name does not start with the host triplet. If you think this
3387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3388 ac_tool_warned=yes ;;
3389 esac
3390 CC=$ac_ct_CC
3392 else
3393 CC="$ac_cv_prog_CC"
3396 if test -z "$CC"; then
3397 if test -n "$ac_tool_prefix"; then
3398 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3399 set dummy ${ac_tool_prefix}cc; ac_word=$2
3400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3402 if test "${ac_cv_prog_CC+set}" = set; then
3403 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405 if test -n "$CC"; then
3406 ac_cv_prog_CC="$CC" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_CC="${ac_tool_prefix}cc"
3416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3419 done
3420 done
3421 IFS=$as_save_IFS
3425 CC=$ac_cv_prog_CC
3426 if test -n "$CC"; then
3427 { echo "$as_me:$LINENO: result: $CC" >&5
3428 echo "${ECHO_T}$CC" >&6; }
3429 else
3430 { echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6; }
3437 if test -z "$CC"; then
3438 # Extract the first word of "cc", so it can be a program name with args.
3439 set dummy cc; ac_word=$2
3440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 if test -n "$CC"; then
3446 ac_cv_prog_CC="$CC" # Let the user override the test.
3447 else
3448 ac_prog_rejected=no
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3457 ac_prog_rejected=yes
3458 continue
3460 ac_cv_prog_CC="cc"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 break 2
3464 done
3465 done
3466 IFS=$as_save_IFS
3468 if test $ac_prog_rejected = yes; then
3469 # We found a bogon in the path, so make sure we never use it.
3470 set dummy $ac_cv_prog_CC
3471 shift
3472 if test $# != 0; then
3473 # We chose a different compiler from the bogus one.
3474 # However, it has the same basename, so the bogon will be chosen
3475 # first if we set CC to just the basename; use the full file name.
3476 shift
3477 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3482 CC=$ac_cv_prog_CC
3483 if test -n "$CC"; then
3484 { echo "$as_me:$LINENO: result: $CC" >&5
3485 echo "${ECHO_T}$CC" >&6; }
3486 else
3487 { echo "$as_me:$LINENO: result: no" >&5
3488 echo "${ECHO_T}no" >&6; }
3493 if test -z "$CC"; then
3494 if test -n "$ac_tool_prefix"; then
3495 for ac_prog in cl.exe
3497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3501 if test "${ac_cv_prog_CC+set}" = set; then
3502 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 else
3504 if test -n "$CC"; then
3505 ac_cv_prog_CC="$CC" # Let the user override the test.
3506 else
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508 for as_dir in $PATH
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3516 break 2
3518 done
3519 done
3520 IFS=$as_save_IFS
3524 CC=$ac_cv_prog_CC
3525 if test -n "$CC"; then
3526 { echo "$as_me:$LINENO: result: $CC" >&5
3527 echo "${ECHO_T}$CC" >&6; }
3528 else
3529 { echo "$as_me:$LINENO: result: no" >&5
3530 echo "${ECHO_T}no" >&6; }
3534 test -n "$CC" && break
3535 done
3537 if test -z "$CC"; then
3538 ac_ct_CC=$CC
3539 for ac_prog in cl.exe
3541 # Extract the first word of "$ac_prog", so it can be a program name with args.
3542 set dummy $ac_prog; ac_word=$2
3543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3545 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 else
3548 if test -n "$ac_ct_CC"; then
3549 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3550 else
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3558 ac_cv_prog_ac_ct_CC="$ac_prog"
3559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 break 2
3562 done
3563 done
3564 IFS=$as_save_IFS
3568 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3569 if test -n "$ac_ct_CC"; then
3570 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3571 echo "${ECHO_T}$ac_ct_CC" >&6; }
3572 else
3573 { echo "$as_me:$LINENO: result: no" >&5
3574 echo "${ECHO_T}no" >&6; }
3578 test -n "$ac_ct_CC" && break
3579 done
3581 if test "x$ac_ct_CC" = x; then
3582 CC=""
3583 else
3584 case $cross_compiling:$ac_tool_warned in
3585 yes:)
3586 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3587 whose name does not start with the host triplet. If you think this
3588 configuration is useful to you, please write to autoconf@gnu.org." >&5
3589 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3590 whose name does not start with the host triplet. If you think this
3591 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3592 ac_tool_warned=yes ;;
3593 esac
3594 CC=$ac_ct_CC
3601 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3602 See \`config.log' for more details." >&5
3603 echo "$as_me: error: no acceptable C compiler found in \$PATH
3604 See \`config.log' for more details." >&2;}
3605 { (exit 1); exit 1; }; }
3607 # Provide some information about the compiler.
3608 echo "$as_me:$LINENO: checking for C compiler version" >&5
3609 ac_compiler=`set X $ac_compile; echo $2`
3610 { (ac_try="$ac_compiler --version >&5"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3616 (eval "$ac_compiler --version >&5") 2>&5
3617 ac_status=$?
3618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619 (exit $ac_status); }
3620 { (ac_try="$ac_compiler -v >&5"
3621 case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624 esac
3625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3626 (eval "$ac_compiler -v >&5") 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }
3630 { (ac_try="$ac_compiler -V >&5"
3631 case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634 esac
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_compiler -V >&5") 2>&5
3637 ac_status=$?
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); }
3641 cat >conftest.$ac_ext <<_ACEOF
3642 /* confdefs.h. */
3643 _ACEOF
3644 cat confdefs.h >>conftest.$ac_ext
3645 cat >>conftest.$ac_ext <<_ACEOF
3646 /* end confdefs.h. */
3649 main ()
3653 return 0;
3655 _ACEOF
3656 ac_clean_files_save=$ac_clean_files
3657 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3658 # Try to create an executable without -o first, disregard a.out.
3659 # It will help us diagnose broken compilers, and finding out an intuition
3660 # of exeext.
3661 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3662 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3663 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3665 # List of possible output files, starting from the most likely.
3666 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3667 # only as a last resort. b.out is created by i960 compilers.
3668 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3670 # The IRIX 6 linker writes into existing files which may not be
3671 # executable, retaining their permissions. Remove them first so a
3672 # subsequent execution test works.
3673 ac_rmfiles=
3674 for ac_file in $ac_files
3676 case $ac_file in
3677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3678 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3679 esac
3680 done
3681 rm -f $ac_rmfiles
3683 if { (ac_try="$ac_link_default"
3684 case "(($ac_try" in
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3687 esac
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689 (eval "$ac_link_default") 2>&5
3690 ac_status=$?
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; then
3693 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3694 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3695 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3696 # so that the user can short-circuit this test for compilers unknown to
3697 # Autoconf.
3698 for ac_file in $ac_files ''
3700 test -f "$ac_file" || continue
3701 case $ac_file in
3702 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3704 [ab].out )
3705 # We found the default executable, but exeext='' is most
3706 # certainly right.
3707 break;;
3708 *.* )
3709 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3710 then :; else
3711 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3713 # We set ac_cv_exeext here because the later test for it is not
3714 # safe: cross compilers may not add the suffix if given an `-o'
3715 # argument, so we may need to know it at that point already.
3716 # Even if this section looks crufty: it has the advantage of
3717 # actually working.
3718 break;;
3720 break;;
3721 esac
3722 done
3723 test "$ac_cv_exeext" = no && ac_cv_exeext=
3725 else
3726 ac_file=''
3729 { echo "$as_me:$LINENO: result: $ac_file" >&5
3730 echo "${ECHO_T}$ac_file" >&6; }
3731 if test -z "$ac_file"; then
3732 echo "$as_me: failed program was:" >&5
3733 sed 's/^/| /' conftest.$ac_ext >&5
3735 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3736 See \`config.log' for more details." >&5
3737 echo "$as_me: error: C compiler cannot create executables
3738 See \`config.log' for more details." >&2;}
3739 { (exit 77); exit 77; }; }
3742 ac_exeext=$ac_cv_exeext
3744 # Check that the compiler produces executables we can run. If not, either
3745 # the compiler is broken, or we cross compile.
3746 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3747 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3748 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3749 # If not cross compiling, check that we can run a simple program.
3750 if test "$cross_compiling" != yes; then
3751 if { ac_try='./$ac_file'
3752 { (case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755 esac
3756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757 (eval "$ac_try") 2>&5
3758 ac_status=$?
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; }; then
3761 cross_compiling=no
3762 else
3763 if test "$cross_compiling" = maybe; then
3764 cross_compiling=yes
3765 else
3766 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3767 If you meant to cross compile, use \`--host'.
3768 See \`config.log' for more details." >&5
3769 echo "$as_me: error: cannot run C compiled programs.
3770 If you meant to cross compile, use \`--host'.
3771 See \`config.log' for more details." >&2;}
3772 { (exit 1); exit 1; }; }
3776 { echo "$as_me:$LINENO: result: yes" >&5
3777 echo "${ECHO_T}yes" >&6; }
3779 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3780 ac_clean_files=$ac_clean_files_save
3781 # Check that the compiler produces executables we can run. If not, either
3782 # the compiler is broken, or we cross compile.
3783 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3784 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3785 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3786 echo "${ECHO_T}$cross_compiling" >&6; }
3788 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3789 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3790 if { (ac_try="$ac_link"
3791 case "(($ac_try" in
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3794 esac
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_link") 2>&5
3797 ac_status=$?
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; then
3800 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3801 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3802 # work properly (i.e., refer to `conftest.exe'), while it won't with
3803 # `rm'.
3804 for ac_file in conftest.exe conftest conftest.*; do
3805 test -f "$ac_file" || continue
3806 case $ac_file in
3807 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3808 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3809 break;;
3810 * ) break;;
3811 esac
3812 done
3813 else
3814 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3815 See \`config.log' for more details." >&5
3816 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3817 See \`config.log' for more details." >&2;}
3818 { (exit 1); exit 1; }; }
3821 rm -f conftest$ac_cv_exeext
3822 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3823 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3825 rm -f conftest.$ac_ext
3826 EXEEXT=$ac_cv_exeext
3827 ac_exeext=$EXEEXT
3828 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3829 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3830 if test "${ac_cv_objext+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 else
3833 cat >conftest.$ac_ext <<_ACEOF
3834 /* confdefs.h. */
3835 _ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3841 main ()
3845 return 0;
3847 _ACEOF
3848 rm -f conftest.o conftest.obj
3849 if { (ac_try="$ac_compile"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_compile") 2>&5
3856 ac_status=$?
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; then
3859 for ac_file in conftest.o conftest.obj conftest.*; do
3860 test -f "$ac_file" || continue;
3861 case $ac_file in
3862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3863 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3864 break;;
3865 esac
3866 done
3867 else
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3872 See \`config.log' for more details." >&5
3873 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3874 See \`config.log' for more details." >&2;}
3875 { (exit 1); exit 1; }; }
3878 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3880 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3881 echo "${ECHO_T}$ac_cv_objext" >&6; }
3882 OBJEXT=$ac_cv_objext
3883 ac_objext=$OBJEXT
3884 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3885 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3886 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3887 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 else
3889 cat >conftest.$ac_ext <<_ACEOF
3890 /* confdefs.h. */
3891 _ACEOF
3892 cat confdefs.h >>conftest.$ac_ext
3893 cat >>conftest.$ac_ext <<_ACEOF
3894 /* end confdefs.h. */
3897 main ()
3899 #ifndef __GNUC__
3900 choke me
3901 #endif
3904 return 0;
3906 _ACEOF
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3924 ac_compiler_gnu=yes
3925 else
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 ac_compiler_gnu=no
3932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3933 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3936 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3937 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3938 GCC=`test $ac_compiler_gnu = yes && echo yes`
3939 ac_test_CFLAGS=${CFLAGS+set}
3940 ac_save_CFLAGS=$CFLAGS
3941 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3942 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3943 if test "${ac_cv_prog_cc_g+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 else
3946 ac_save_c_werror_flag=$ac_c_werror_flag
3947 ac_c_werror_flag=yes
3948 ac_cv_prog_cc_g=no
3949 CFLAGS="-g"
3950 cat >conftest.$ac_ext <<_ACEOF
3951 /* confdefs.h. */
3952 _ACEOF
3953 cat confdefs.h >>conftest.$ac_ext
3954 cat >>conftest.$ac_ext <<_ACEOF
3955 /* end confdefs.h. */
3958 main ()
3962 return 0;
3964 _ACEOF
3965 rm -f conftest.$ac_objext
3966 if { (ac_try="$ac_compile"
3967 case "(($ac_try" in
3968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3969 *) ac_try_echo=$ac_try;;
3970 esac
3971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3972 (eval "$ac_compile") 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest.$ac_objext; then
3982 ac_cv_prog_cc_g=yes
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 sed 's/^/| /' conftest.$ac_ext >&5
3987 CFLAGS=""
3988 cat >conftest.$ac_ext <<_ACEOF
3989 /* confdefs.h. */
3990 _ACEOF
3991 cat confdefs.h >>conftest.$ac_ext
3992 cat >>conftest.$ac_ext <<_ACEOF
3993 /* end confdefs.h. */
3996 main ()
4000 return 0;
4002 _ACEOF
4003 rm -f conftest.$ac_objext
4004 if { (ac_try="$ac_compile"
4005 case "(($ac_try" in
4006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4007 *) ac_try_echo=$ac_try;;
4008 esac
4009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4010 (eval "$ac_compile") 2>conftest.er1
4011 ac_status=$?
4012 grep -v '^ *+' conftest.er1 >conftest.err
4013 rm -f conftest.er1
4014 cat conftest.err >&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); } && {
4017 test -z "$ac_c_werror_flag" ||
4018 test ! -s conftest.err
4019 } && test -s conftest.$ac_objext; then
4021 else
4022 echo "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4025 ac_c_werror_flag=$ac_save_c_werror_flag
4026 CFLAGS="-g"
4027 cat >conftest.$ac_ext <<_ACEOF
4028 /* confdefs.h. */
4029 _ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4035 main ()
4039 return 0;
4041 _ACEOF
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4044 case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_compile") 2>conftest.er1
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } && {
4056 test -z "$ac_c_werror_flag" ||
4057 test ! -s conftest.err
4058 } && test -s conftest.$ac_objext; then
4059 ac_cv_prog_cc_g=yes
4060 else
4061 echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4076 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4077 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4078 if test "$ac_test_CFLAGS" = set; then
4079 CFLAGS=$ac_save_CFLAGS
4080 elif test $ac_cv_prog_cc_g = yes; then
4081 if test "$GCC" = yes; then
4082 CFLAGS="-g -O2"
4083 else
4084 CFLAGS="-g"
4086 else
4087 if test "$GCC" = yes; then
4088 CFLAGS="-O2"
4089 else
4090 CFLAGS=
4093 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4094 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4095 if test "${ac_cv_prog_cc_c89+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097 else
4098 ac_cv_prog_cc_c89=no
4099 ac_save_CC=$CC
4100 cat >conftest.$ac_ext <<_ACEOF
4101 /* confdefs.h. */
4102 _ACEOF
4103 cat confdefs.h >>conftest.$ac_ext
4104 cat >>conftest.$ac_ext <<_ACEOF
4105 /* end confdefs.h. */
4106 #include <stdarg.h>
4107 #include <stdio.h>
4108 #include <sys/types.h>
4109 #include <sys/stat.h>
4110 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4111 struct buf { int x; };
4112 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4113 static char *e (p, i)
4114 char **p;
4115 int i;
4117 return p[i];
4119 static char *f (char * (*g) (char **, int), char **p, ...)
4121 char *s;
4122 va_list v;
4123 va_start (v,p);
4124 s = g (p, va_arg (v,int));
4125 va_end (v);
4126 return s;
4129 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4130 function prototypes and stuff, but not '\xHH' hex character constants.
4131 These don't provoke an error unfortunately, instead are silently treated
4132 as 'x'. The following induces an error, until -std is added to get
4133 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4134 array size at least. It's necessary to write '\x00'==0 to get something
4135 that's true only with -std. */
4136 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4138 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4139 inside strings and character constants. */
4140 #define FOO(x) 'x'
4141 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4143 int test (int i, double x);
4144 struct s1 {int (*f) (int a);};
4145 struct s2 {int (*f) (double a);};
4146 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4147 int argc;
4148 char **argv;
4150 main ()
4152 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4154 return 0;
4156 _ACEOF
4157 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4158 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4160 CC="$ac_save_CC $ac_arg"
4161 rm -f conftest.$ac_objext
4162 if { (ac_try="$ac_compile"
4163 case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4166 esac
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_compile") 2>conftest.er1
4169 ac_status=$?
4170 grep -v '^ *+' conftest.er1 >conftest.err
4171 rm -f conftest.er1
4172 cat conftest.err >&5
4173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174 (exit $ac_status); } && {
4175 test -z "$ac_c_werror_flag" ||
4176 test ! -s conftest.err
4177 } && test -s conftest.$ac_objext; then
4178 ac_cv_prog_cc_c89=$ac_arg
4179 else
4180 echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4186 rm -f core conftest.err conftest.$ac_objext
4187 test "x$ac_cv_prog_cc_c89" != "xno" && break
4188 done
4189 rm -f conftest.$ac_ext
4190 CC=$ac_save_CC
4193 # AC_CACHE_VAL
4194 case "x$ac_cv_prog_cc_c89" in
4196 { echo "$as_me:$LINENO: result: none needed" >&5
4197 echo "${ECHO_T}none needed" >&6; } ;;
4198 xno)
4199 { echo "$as_me:$LINENO: result: unsupported" >&5
4200 echo "${ECHO_T}unsupported" >&6; } ;;
4202 CC="$CC $ac_cv_prog_cc_c89"
4203 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4204 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4205 esac
4208 ac_ext=c
4209 ac_cpp='$CPP $CPPFLAGS'
4210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4215 # On Suns, sometimes $CPP names a directory.
4216 if test -n "$CPP" && test -d "$CPP"; then
4217 CPP=
4220 ## If not using gcc, and on Solaris, and no CPP specified, see if
4221 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4222 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4223 test x"$CPP" = x; then
4224 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4225 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4227 if test "${emacs_cv_sunpro_c+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4229 else
4230 cat >conftest.$ac_ext <<_ACEOF
4231 /* confdefs.h. */
4232 _ACEOF
4233 cat confdefs.h >>conftest.$ac_ext
4234 cat >>conftest.$ac_ext <<_ACEOF
4235 /* end confdefs.h. */
4238 main ()
4240 #ifndef __SUNPRO_C
4241 fail;
4242 #endif
4245 return 0;
4247 _ACEOF
4248 rm -f conftest.$ac_objext conftest$ac_exeext
4249 if { (ac_try="$ac_link"
4250 case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253 esac
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_link") 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } && {
4262 test -z "$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4264 } && test -s conftest$ac_exeext &&
4265 $as_test_x conftest$ac_exeext; then
4266 emacs_cv_sunpro_c=yes
4267 else
4268 echo "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.$ac_ext >&5
4271 emacs_cv_sunpro_c=no
4274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4275 conftest$ac_exeext conftest.$ac_ext
4278 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4279 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4281 if test x"$emacs_cv_sunpro_c" = xyes; then
4282 NON_GNU_CPP="$CC -E -Xs"
4286 #### Some systems specify a CPP to use unless we are using GCC.
4287 #### Now that we know whether we are using GCC, we can decide whether
4288 #### to use that one.
4289 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4290 then
4291 CPP="$NON_GNU_CPP"
4294 #### Some systems specify a CC to use unless we are using GCC.
4295 #### Now that we know whether we are using GCC, we can decide whether
4296 #### to use that one.
4297 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4298 test x$cc_specified != xyes
4299 then
4300 CC="$NON_GNU_CC"
4303 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4304 then
4305 CC="$CC $GCC_TEST_OPTIONS"
4308 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4309 then
4310 CC="$CC $NON_GCC_TEST_OPTIONS"
4313 ac_ext=c
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4319 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4320 # On Suns, sometimes $CPP names a directory.
4321 if test -n "$CPP" && test -d "$CPP"; then
4322 CPP=
4324 if test -z "$CPP"; then
4325 if test "${ac_cv_prog_CPP+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328 # Double quotes because CPP needs to be expanded
4329 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4331 ac_preproc_ok=false
4332 for ac_c_preproc_warn_flag in '' yes
4334 # Use a header file that comes with gcc, so configuring glibc
4335 # with a fresh cross-compiler works.
4336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4337 # <limits.h> exists even on freestanding compilers.
4338 # On the NeXT, cc -E runs the code through the compiler's parser,
4339 # not just through cpp. "Syntax error" is here to catch this case.
4340 cat >conftest.$ac_ext <<_ACEOF
4341 /* confdefs.h. */
4342 _ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 #ifdef __STDC__
4347 # include <limits.h>
4348 #else
4349 # include <assert.h>
4350 #endif
4351 Syntax error
4352 _ACEOF
4353 if { (ac_try="$ac_cpp conftest.$ac_ext"
4354 case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4360 ac_status=$?
4361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } >/dev/null && {
4366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4367 test ! -s conftest.err
4368 }; then
4370 else
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4374 # Broken: fails on valid input.
4375 continue
4378 rm -f conftest.err conftest.$ac_ext
4380 # OK, works on sane cases. Now check whether nonexistent headers
4381 # can be detected and how.
4382 cat >conftest.$ac_ext <<_ACEOF
4383 /* confdefs.h. */
4384 _ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4388 #include <ac_nonexistent.h>
4389 _ACEOF
4390 if { (ac_try="$ac_cpp conftest.$ac_ext"
4391 case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394 esac
4395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4397 ac_status=$?
4398 grep -v '^ *+' conftest.er1 >conftest.err
4399 rm -f conftest.er1
4400 cat conftest.err >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); } >/dev/null && {
4403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4404 test ! -s conftest.err
4405 }; then
4406 # Broken: success on invalid input.
4407 continue
4408 else
4409 echo "$as_me: failed program was:" >&5
4410 sed 's/^/| /' conftest.$ac_ext >&5
4412 # Passes both tests.
4413 ac_preproc_ok=:
4414 break
4417 rm -f conftest.err conftest.$ac_ext
4419 done
4420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4421 rm -f conftest.err conftest.$ac_ext
4422 if $ac_preproc_ok; then
4423 break
4426 done
4427 ac_cv_prog_CPP=$CPP
4430 CPP=$ac_cv_prog_CPP
4431 else
4432 ac_cv_prog_CPP=$CPP
4434 { echo "$as_me:$LINENO: result: $CPP" >&5
4435 echo "${ECHO_T}$CPP" >&6; }
4436 ac_preproc_ok=false
4437 for ac_c_preproc_warn_flag in '' yes
4439 # Use a header file that comes with gcc, so configuring glibc
4440 # with a fresh cross-compiler works.
4441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4442 # <limits.h> exists even on freestanding compilers.
4443 # On the NeXT, cc -E runs the code through the compiler's parser,
4444 # not just through cpp. "Syntax error" is here to catch this case.
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #ifdef __STDC__
4452 # include <limits.h>
4453 #else
4454 # include <assert.h>
4455 #endif
4456 Syntax error
4457 _ACEOF
4458 if { (ac_try="$ac_cpp conftest.$ac_ext"
4459 case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4465 ac_status=$?
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } >/dev/null && {
4471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4472 test ! -s conftest.err
4473 }; then
4475 else
4476 echo "$as_me: failed program was:" >&5
4477 sed 's/^/| /' conftest.$ac_ext >&5
4479 # Broken: fails on valid input.
4480 continue
4483 rm -f conftest.err conftest.$ac_ext
4485 # OK, works on sane cases. Now check whether nonexistent headers
4486 # can be detected and how.
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 #include <ac_nonexistent.h>
4494 _ACEOF
4495 if { (ac_try="$ac_cpp conftest.$ac_ext"
4496 case "(($ac_try" in
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4499 esac
4500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4502 ac_status=$?
4503 grep -v '^ *+' conftest.er1 >conftest.err
4504 rm -f conftest.er1
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } >/dev/null && {
4508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4509 test ! -s conftest.err
4510 }; then
4511 # Broken: success on invalid input.
4512 continue
4513 else
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 # Passes both tests.
4518 ac_preproc_ok=:
4519 break
4522 rm -f conftest.err conftest.$ac_ext
4524 done
4525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4526 rm -f conftest.err conftest.$ac_ext
4527 if $ac_preproc_ok; then
4529 else
4530 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4531 See \`config.log' for more details." >&5
4532 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4533 See \`config.log' for more details." >&2;}
4534 { (exit 1); exit 1; }; }
4537 ac_ext=c
4538 ac_cpp='$CPP $CPPFLAGS'
4539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4544 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4545 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4546 if test "${ac_cv_path_GREP+set}" = set; then
4547 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 else
4549 # Extract the first word of "grep ggrep" to use in msg output
4550 if test -z "$GREP"; then
4551 set dummy grep ggrep; ac_prog_name=$2
4552 if test "${ac_cv_path_GREP+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555 ac_path_GREP_found=false
4556 # Loop through the user's path and test for each of PROGNAME-LIST
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_prog in grep ggrep; do
4563 for ac_exec_ext in '' $ac_executable_extensions; do
4564 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4565 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4566 # Check for GNU ac_path_GREP and select it if it is found.
4567 # Check for GNU $ac_path_GREP
4568 case `"$ac_path_GREP" --version 2>&1` in
4569 *GNU*)
4570 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4572 ac_count=0
4573 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4574 while :
4576 cat "conftest.in" "conftest.in" >"conftest.tmp"
4577 mv "conftest.tmp" "conftest.in"
4578 cp "conftest.in" "conftest.nl"
4579 echo 'GREP' >> "conftest.nl"
4580 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4582 ac_count=`expr $ac_count + 1`
4583 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4584 # Best one so far, save it but keep looking for a better one
4585 ac_cv_path_GREP="$ac_path_GREP"
4586 ac_path_GREP_max=$ac_count
4588 # 10*(2^10) chars as input seems more than enough
4589 test $ac_count -gt 10 && break
4590 done
4591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4592 esac
4595 $ac_path_GREP_found && break 3
4596 done
4597 done
4599 done
4600 IFS=$as_save_IFS
4605 GREP="$ac_cv_path_GREP"
4606 if test -z "$GREP"; then
4607 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4608 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4609 { (exit 1); exit 1; }; }
4612 else
4613 ac_cv_path_GREP=$GREP
4618 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4619 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4620 GREP="$ac_cv_path_GREP"
4623 { echo "$as_me:$LINENO: checking for egrep" >&5
4624 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4625 if test "${ac_cv_path_EGREP+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4629 then ac_cv_path_EGREP="$GREP -E"
4630 else
4631 # Extract the first word of "egrep" to use in msg output
4632 if test -z "$EGREP"; then
4633 set dummy egrep; ac_prog_name=$2
4634 if test "${ac_cv_path_EGREP+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637 ac_path_EGREP_found=false
4638 # Loop through the user's path and test for each of PROGNAME-LIST
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_prog in egrep; do
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4647 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4648 # Check for GNU ac_path_EGREP and select it if it is found.
4649 # Check for GNU $ac_path_EGREP
4650 case `"$ac_path_EGREP" --version 2>&1` in
4651 *GNU*)
4652 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4654 ac_count=0
4655 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4656 while :
4658 cat "conftest.in" "conftest.in" >"conftest.tmp"
4659 mv "conftest.tmp" "conftest.in"
4660 cp "conftest.in" "conftest.nl"
4661 echo 'EGREP' >> "conftest.nl"
4662 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664 ac_count=`expr $ac_count + 1`
4665 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4666 # Best one so far, save it but keep looking for a better one
4667 ac_cv_path_EGREP="$ac_path_EGREP"
4668 ac_path_EGREP_max=$ac_count
4670 # 10*(2^10) chars as input seems more than enough
4671 test $ac_count -gt 10 && break
4672 done
4673 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674 esac
4677 $ac_path_EGREP_found && break 3
4678 done
4679 done
4681 done
4682 IFS=$as_save_IFS
4687 EGREP="$ac_cv_path_EGREP"
4688 if test -z "$EGREP"; then
4689 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4690 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4691 { (exit 1); exit 1; }; }
4694 else
4695 ac_cv_path_EGREP=$EGREP
4701 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4702 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4703 EGREP="$ac_cv_path_EGREP"
4707 { echo "$as_me:$LINENO: checking for AIX" >&5
4708 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4709 cat >conftest.$ac_ext <<_ACEOF
4710 /* confdefs.h. */
4711 _ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 #ifdef _AIX
4717 #endif
4719 _ACEOF
4720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4721 $EGREP "yes" >/dev/null 2>&1; then
4722 { echo "$as_me:$LINENO: result: yes" >&5
4723 echo "${ECHO_T}yes" >&6; }
4724 cat >>confdefs.h <<\_ACEOF
4725 #define _ALL_SOURCE 1
4726 _ACEOF
4728 else
4729 { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4732 rm -f conftest*
4736 cat >>confdefs.h <<\_ACEOF
4737 #define _GNU_SOURCE 1
4738 _ACEOF
4742 ### Use -Wno-pointer-sign if the compiler supports it
4743 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4744 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4745 SAVE_CFLAGS="$CFLAGS"
4746 CFLAGS="$CFLAGS -Wno-pointer-sign"
4747 cat >conftest.$ac_ext <<_ACEOF
4748 /* confdefs.h. */
4749 _ACEOF
4750 cat confdefs.h >>conftest.$ac_ext
4751 cat >>conftest.$ac_ext <<_ACEOF
4752 /* end confdefs.h. */
4755 main ()
4759 return 0;
4761 _ACEOF
4762 rm -f conftest.$ac_objext
4763 if { (ac_try="$ac_compile"
4764 case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_compile") 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } && {
4776 test -z "$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4778 } && test -s conftest.$ac_objext; then
4779 has_option=yes
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4784 has_option=no
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 if test $has_option = yes; then
4789 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4791 { echo "$as_me:$LINENO: result: $has_option" >&5
4792 echo "${ECHO_T}$has_option" >&6; }
4793 CFLAGS="$SAVE_CFLAGS"
4794 unset has_option
4795 unset SAVE_CFLAGS
4797 #### Some other nice autoconf tests.
4799 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4800 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4801 LN_S=$as_ln_s
4802 if test "$LN_S" = "ln -s"; then
4803 { echo "$as_me:$LINENO: result: yes" >&5
4804 echo "${ECHO_T}yes" >&6; }
4805 else
4806 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4807 echo "${ECHO_T}no, using $LN_S" >&6; }
4810 ac_ext=c
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4816 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4817 # On Suns, sometimes $CPP names a directory.
4818 if test -n "$CPP" && test -d "$CPP"; then
4819 CPP=
4821 if test -z "$CPP"; then
4822 if test "${ac_cv_prog_CPP+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 # Double quotes because CPP needs to be expanded
4826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4828 ac_preproc_ok=false
4829 for ac_c_preproc_warn_flag in '' yes
4831 # Use a header file that comes with gcc, so configuring glibc
4832 # with a fresh cross-compiler works.
4833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4834 # <limits.h> exists even on freestanding compilers.
4835 # On the NeXT, cc -E runs the code through the compiler's parser,
4836 # not just through cpp. "Syntax error" is here to catch this case.
4837 cat >conftest.$ac_ext <<_ACEOF
4838 /* confdefs.h. */
4839 _ACEOF
4840 cat confdefs.h >>conftest.$ac_ext
4841 cat >>conftest.$ac_ext <<_ACEOF
4842 /* end confdefs.h. */
4843 #ifdef __STDC__
4844 # include <limits.h>
4845 #else
4846 # include <assert.h>
4847 #endif
4848 Syntax error
4849 _ACEOF
4850 if { (ac_try="$ac_cpp conftest.$ac_ext"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } >/dev/null && {
4863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4864 test ! -s conftest.err
4865 }; then
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4871 # Broken: fails on valid input.
4872 continue
4875 rm -f conftest.err conftest.$ac_ext
4877 # OK, works on sane cases. Now check whether nonexistent headers
4878 # can be detected and how.
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h. */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 #include <ac_nonexistent.h>
4886 _ACEOF
4887 if { (ac_try="$ac_cpp conftest.$ac_ext"
4888 case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891 esac
4892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
4898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4899 (exit $ac_status); } >/dev/null && {
4900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 }; then
4903 # Broken: success on invalid input.
4904 continue
4905 else
4906 echo "$as_me: failed program was:" >&5
4907 sed 's/^/| /' conftest.$ac_ext >&5
4909 # Passes both tests.
4910 ac_preproc_ok=:
4911 break
4914 rm -f conftest.err conftest.$ac_ext
4916 done
4917 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4918 rm -f conftest.err conftest.$ac_ext
4919 if $ac_preproc_ok; then
4920 break
4923 done
4924 ac_cv_prog_CPP=$CPP
4927 CPP=$ac_cv_prog_CPP
4928 else
4929 ac_cv_prog_CPP=$CPP
4931 { echo "$as_me:$LINENO: result: $CPP" >&5
4932 echo "${ECHO_T}$CPP" >&6; }
4933 ac_preproc_ok=false
4934 for ac_c_preproc_warn_flag in '' yes
4936 # Use a header file that comes with gcc, so configuring glibc
4937 # with a fresh cross-compiler works.
4938 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4939 # <limits.h> exists even on freestanding compilers.
4940 # On the NeXT, cc -E runs the code through the compiler's parser,
4941 # not just through cpp. "Syntax error" is here to catch this case.
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 #ifdef __STDC__
4949 # include <limits.h>
4950 #else
4951 # include <assert.h>
4952 #endif
4953 Syntax error
4954 _ACEOF
4955 if { (ac_try="$ac_cpp conftest.$ac_ext"
4956 case "(($ac_try" in
4957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4958 *) ac_try_echo=$ac_try;;
4959 esac
4960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } >/dev/null && {
4968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4970 }; then
4972 else
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 # Broken: fails on valid input.
4977 continue
4980 rm -f conftest.err conftest.$ac_ext
4982 # OK, works on sane cases. Now check whether nonexistent headers
4983 # can be detected and how.
4984 cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h. */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 #include <ac_nonexistent.h>
4991 _ACEOF
4992 if { (ac_try="$ac_cpp conftest.$ac_ext"
4993 case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996 esac
4997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999 ac_status=$?
5000 grep -v '^ *+' conftest.er1 >conftest.err
5001 rm -f conftest.er1
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } >/dev/null && {
5005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5006 test ! -s conftest.err
5007 }; then
5008 # Broken: success on invalid input.
5009 continue
5010 else
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5014 # Passes both tests.
5015 ac_preproc_ok=:
5016 break
5019 rm -f conftest.err conftest.$ac_ext
5021 done
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.$ac_ext
5024 if $ac_preproc_ok; then
5026 else
5027 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5028 See \`config.log' for more details." >&5
5029 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5030 See \`config.log' for more details." >&2;}
5031 { (exit 1); exit 1; }; }
5034 ac_ext=c
5035 ac_cpp='$CPP $CPPFLAGS'
5036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040 # Find a good install program. We prefer a C program (faster),
5041 # so one script is as good as another. But avoid the broken or
5042 # incompatible versions:
5043 # SysV /etc/install, /usr/sbin/install
5044 # SunOS /usr/etc/install
5045 # IRIX /sbin/install
5046 # AIX /bin/install
5047 # AmigaOS /C/install, which installs bootblocks on floppy discs
5048 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5049 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5050 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5051 # OS/2's system install, which has a completely different semantic
5052 # ./install, which can be erroneously created by make from ./install.sh.
5053 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5054 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5055 if test -z "$INSTALL"; then
5056 if test "${ac_cv_path_install+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
5064 # Account for people who put trailing slashes in PATH elements.
5065 case $as_dir/ in
5066 ./ | .// | /cC/* | \
5067 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5068 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5069 /usr/ucb/* ) ;;
5071 # OSF1 and SCO ODT 3.0 have their own names for install.
5072 # Don't use installbsd from OSF since it installs stuff as root
5073 # by default.
5074 for ac_prog in ginstall scoinst install; do
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5077 if test $ac_prog = install &&
5078 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5079 # AIX install. It has an incompatible calling convention.
5081 elif test $ac_prog = install &&
5082 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5083 # program-specific install script used by HP pwplus--don't use.
5085 else
5086 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5087 break 3
5090 done
5091 done
5093 esac
5094 done
5095 IFS=$as_save_IFS
5099 if test "${ac_cv_path_install+set}" = set; then
5100 INSTALL=$ac_cv_path_install
5101 else
5102 # As a last resort, use the slow shell script. Don't cache a
5103 # value for INSTALL within a source directory, because that will
5104 # break other packages using the cache if that directory is
5105 # removed, or if the value is a relative name.
5106 INSTALL=$ac_install_sh
5109 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5110 echo "${ECHO_T}$INSTALL" >&6; }
5112 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5113 # It thinks the first close brace ends the variable substitution.
5114 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5116 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5118 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5120 if test "x$RANLIB" = x; then
5121 if test -n "$ac_tool_prefix"; then
5122 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5126 if test "${ac_cv_prog_RANLIB+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 if test -n "$RANLIB"; then
5130 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5131 else
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5135 IFS=$as_save_IFS
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 break 2
5143 done
5144 done
5145 IFS=$as_save_IFS
5149 RANLIB=$ac_cv_prog_RANLIB
5150 if test -n "$RANLIB"; then
5151 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5152 echo "${ECHO_T}$RANLIB" >&6; }
5153 else
5154 { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5160 if test -z "$ac_cv_prog_RANLIB"; then
5161 ac_ct_RANLIB=$RANLIB
5162 # Extract the first word of "ranlib", so it can be a program name with args.
5163 set dummy ranlib; ac_word=$2
5164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 else
5169 if test -n "$ac_ct_RANLIB"; then
5170 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5171 else
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173 for as_dir in $PATH
5175 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5179 ac_cv_prog_ac_ct_RANLIB="ranlib"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2
5183 done
5184 done
5185 IFS=$as_save_IFS
5189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5190 if test -n "$ac_ct_RANLIB"; then
5191 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5192 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5193 else
5194 { echo "$as_me:$LINENO: result: no" >&5
5195 echo "${ECHO_T}no" >&6; }
5198 if test "x$ac_ct_RANLIB" = x; then
5199 RANLIB=":"
5200 else
5201 case $cross_compiling:$ac_tool_warned in
5202 yes:)
5203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5204 whose name does not start with the host triplet. If you think this
5205 configuration is useful to you, please write to autoconf@gnu.org." >&5
5206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5207 whose name does not start with the host triplet. If you think this
5208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5209 ac_tool_warned=yes ;;
5210 esac
5211 RANLIB=$ac_ct_RANLIB
5213 else
5214 RANLIB="$ac_cv_prog_RANLIB"
5218 # Extract the first word of "install-info", so it can be a program name with args.
5219 set dummy install-info; ac_word=$2
5220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5222 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 else
5225 case $INSTALL_INFO in
5226 [\\/]* | ?:[\\/]*)
5227 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5241 done
5242 done
5243 IFS=$as_save_IFS
5246 esac
5248 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5249 if test -n "$INSTALL_INFO"; then
5250 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5251 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5252 else
5253 { echo "$as_me:$LINENO: result: no" >&5
5254 echo "${ECHO_T}no" >&6; }
5258 # Extract the first word of "install-info", so it can be a program name with args.
5259 set dummy install-info; ac_word=$2
5260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5262 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 case $INSTALL_INFO in
5266 [\\/]* | ?:[\\/]*)
5267 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in /usr/sbin
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5281 done
5282 done
5283 IFS=$as_save_IFS
5286 esac
5288 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5289 if test -n "$INSTALL_INFO"; then
5290 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5291 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5292 else
5293 { echo "$as_me:$LINENO: result: no" >&5
5294 echo "${ECHO_T}no" >&6; }
5298 # Extract the first word of "install-info", so it can be a program name with args.
5299 set dummy install-info; ac_word=$2
5300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5302 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305 case $INSTALL_INFO in
5306 [\\/]* | ?:[\\/]*)
5307 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in /sbin
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5317 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5323 IFS=$as_save_IFS
5325 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5327 esac
5329 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5330 if test -n "$INSTALL_INFO"; then
5331 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5332 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5333 else
5334 { echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6; }
5339 # Extract the first word of "gzip", so it can be a program name with args.
5340 set dummy gzip; ac_word=$2
5341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5343 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346 case $GZIP_PROG in
5347 [\\/]* | ?:[\\/]*)
5348 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 for as_dir in $PATH
5354 IFS=$as_save_IFS
5355 test -z "$as_dir" && as_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5358 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5360 break 2
5362 done
5363 done
5364 IFS=$as_save_IFS
5367 esac
5369 GZIP_PROG=$ac_cv_path_GZIP_PROG
5370 if test -n "$GZIP_PROG"; then
5371 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5372 echo "${ECHO_T}$GZIP_PROG" >&6; }
5373 else
5374 { echo "$as_me:$LINENO: result: no" >&5
5375 echo "${ECHO_T}no" >&6; }
5381 ## Need makeinfo >= 4.6 (?) to build the manuals.
5382 # Extract the first word of "makeinfo", so it can be a program name with args.
5383 set dummy makeinfo; ac_word=$2
5384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5386 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5388 else
5389 case $MAKEINFO in
5390 [\\/]* | ?:[\\/]*)
5391 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5401 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5405 done
5406 done
5407 IFS=$as_save_IFS
5409 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5411 esac
5413 MAKEINFO=$ac_cv_path_MAKEINFO
5414 if test -n "$MAKEINFO"; then
5415 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5416 echo "${ECHO_T}$MAKEINFO" >&6; }
5417 else
5418 { echo "$as_me:$LINENO: result: no" >&5
5419 echo "${ECHO_T}no" >&6; }
5423 if test "$MAKEINFO" != "no" && \
5424 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5425 MAKEINFO=no
5428 if test "$MAKEINFO" = "no"; then
5429 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5430 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5431 { (exit 1); exit 1; }; }
5436 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5437 then
5438 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5441 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5442 then
5443 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5447 late_LDFLAGS=$LDFLAGS
5448 if test "$GCC" = yes; then
5449 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5450 else
5451 LDFLAGS="$LDFLAGS -znocombreloc"
5454 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5455 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5456 cat >conftest.$ac_ext <<_ACEOF
5457 main(){return 0;}
5458 _ACEOF
5459 rm -f conftest.$ac_objext conftest$ac_exeext
5460 if { (ac_try="$ac_link"
5461 case "(($ac_try" in
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5464 esac
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_link") 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } && {
5473 test -z "$ac_c_werror_flag" ||
5474 test ! -s conftest.err
5475 } && test -s conftest$ac_exeext &&
5476 $as_test_x conftest$ac_exeext; then
5477 { echo "$as_me:$LINENO: result: yes" >&5
5478 echo "${ECHO_T}yes" >&6; }
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5483 LDFLAGS=$late_LDFLAGS
5484 { echo "$as_me:$LINENO: result: no" >&5
5485 echo "${ECHO_T}no" >&6; }
5488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5489 conftest$ac_exeext conftest.$ac_ext
5491 #### Extract some information from the operating system and machine files.
5493 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5494 - which libraries the lib-src programs will want, and
5495 - whether the GNU malloc routines are usable..." >&5
5496 echo "$as_me: checking the machine- and system-dependent files to find out
5497 - which libraries the lib-src programs will want, and
5498 - whether the GNU malloc routines are usable..." >&6;}
5500 ### First figure out CFLAGS (which we use for running the compiler here)
5501 ### and REAL_CFLAGS (which we use for real compilation).
5502 ### The two are the same except on a few systems, where they are made
5503 ### different to work around various lossages. For example,
5504 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5505 ### as implying static linking.
5507 ### If the CFLAGS env var is specified, we use that value
5508 ### instead of the default.
5510 ### It's not important that this name contain the PID; you can't run
5511 ### two configures in the same directory and have anything work
5512 ### anyway.
5513 tempcname="conftest.c"
5515 echo '
5516 #include "'${srcdir}'/src/'${opsysfile}'"
5517 #include "'${srcdir}'/src/'${machfile}'"
5518 #ifndef LIBS_MACHINE
5519 #define LIBS_MACHINE
5520 #endif
5521 #ifndef LIBS_SYSTEM
5522 #define LIBS_SYSTEM
5523 #endif
5524 #ifndef C_SWITCH_SYSTEM
5525 #define C_SWITCH_SYSTEM
5526 #endif
5527 #ifndef C_SWITCH_MACHINE
5528 #define C_SWITCH_MACHINE
5529 #endif
5530 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5531 configure___ c_switch_system=C_SWITCH_SYSTEM
5532 configure___ c_switch_machine=C_SWITCH_MACHINE
5534 #ifndef LIB_X11_LIB
5535 #define LIB_X11_LIB -lX11
5536 #endif
5538 #ifndef LIBX11_MACHINE
5539 #define LIBX11_MACHINE
5540 #endif
5542 #ifndef LIBX11_SYSTEM
5543 #define LIBX11_SYSTEM
5544 #endif
5545 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5547 #ifdef UNEXEC
5548 configure___ unexec=UNEXEC
5549 #else
5550 configure___ unexec=unexec.o
5551 #endif
5553 #ifdef SYSTEM_MALLOC
5554 configure___ system_malloc=yes
5555 #else
5556 configure___ system_malloc=no
5557 #endif
5559 #ifdef USE_MMAP_FOR_BUFFERS
5560 configure___ use_mmap_for_buffers=yes
5561 #else
5562 configure___ use_mmap_for_buffers=no
5563 #endif
5565 #ifndef C_DEBUG_SWITCH
5566 #define C_DEBUG_SWITCH -g
5567 #endif
5569 #ifndef C_OPTIMIZE_SWITCH
5570 #ifdef __GNUC__
5571 #define C_OPTIMIZE_SWITCH -O2
5572 #else
5573 #define C_OPTIMIZE_SWITCH -O
5574 #endif
5575 #endif
5577 #ifndef C_WARNINGS_SWITCH
5578 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5579 #endif
5581 #ifndef LD_SWITCH_MACHINE
5582 #define LD_SWITCH_MACHINE
5583 #endif
5585 #ifndef LD_SWITCH_SYSTEM
5586 #define LD_SWITCH_SYSTEM
5587 #endif
5589 #ifndef LD_SWITCH_X_SITE_AUX
5590 #define LD_SWITCH_X_SITE_AUX
5591 #endif
5593 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5594 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5596 #ifdef THIS_IS_CONFIGURE
5598 /* Get the CFLAGS for tests in configure. */
5599 #ifdef __GNUC__
5600 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5601 #else
5602 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5603 #endif
5605 #else /* not THIS_IS_CONFIGURE */
5607 /* Get the CFLAGS for real compilation. */
5608 #ifdef __GNUC__
5609 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5610 #else
5611 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5612 #endif
5614 #endif /* not THIS_IS_CONFIGURE */
5615 ' > ${tempcname}
5617 # The value of CPP is a quoted variable reference, so we need to do this
5618 # to get its actual value...
5619 CPP=`eval "echo $CPP"`
5620 eval `${CPP} -Isrc ${tempcname} \
5621 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5622 if test "x$SPECIFIED_CFLAGS" = x; then
5623 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5624 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5625 else
5626 REAL_CFLAGS="$CFLAGS"
5628 rm ${tempcname}
5630 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5632 ### Make sure subsequent tests use flags consistent with the build flags.
5634 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5635 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5636 else
5637 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5642 # Check whether --enable-largefile was given.
5643 if test "${enable_largefile+set}" = set; then
5644 enableval=$enable_largefile;
5647 if test "$enable_largefile" != no; then
5649 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5650 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5651 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 else
5654 ac_cv_sys_largefile_CC=no
5655 if test "$GCC" != yes; then
5656 ac_save_CC=$CC
5657 while :; do
5658 # IRIX 6.2 and later do not support large files by default,
5659 # so use the C compiler's -n32 option if that helps.
5660 cat >conftest.$ac_ext <<_ACEOF
5661 /* confdefs.h. */
5662 _ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5666 #include <sys/types.h>
5667 /* Check that off_t can represent 2**63 - 1 correctly.
5668 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5669 since some C++ compilers masquerading as C compilers
5670 incorrectly reject 9223372036854775807. */
5671 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5672 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5673 && LARGE_OFF_T % 2147483647 == 1)
5674 ? 1 : -1];
5676 main ()
5680 return 0;
5682 _ACEOF
5683 rm -f conftest.$ac_objext
5684 if { (ac_try="$ac_compile"
5685 case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5690 (eval "$ac_compile") 2>conftest.er1
5691 ac_status=$?
5692 grep -v '^ *+' conftest.er1 >conftest.err
5693 rm -f conftest.er1
5694 cat conftest.err >&5
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); } && {
5697 test -z "$ac_c_werror_flag" ||
5698 test ! -s conftest.err
5699 } && test -s conftest.$ac_objext; then
5700 break
5701 else
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5708 rm -f core conftest.err conftest.$ac_objext
5709 CC="$CC -n32"
5710 rm -f conftest.$ac_objext
5711 if { (ac_try="$ac_compile"
5712 case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715 esac
5716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717 (eval "$ac_compile") 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && {
5724 test -z "$ac_c_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest.$ac_objext; then
5727 ac_cv_sys_largefile_CC=' -n32'; break
5728 else
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5735 rm -f core conftest.err conftest.$ac_objext
5736 break
5737 done
5738 CC=$ac_save_CC
5739 rm -f conftest.$ac_ext
5742 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5743 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5744 if test "$ac_cv_sys_largefile_CC" != no; then
5745 CC=$CC$ac_cv_sys_largefile_CC
5748 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5749 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5750 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 while :; do
5754 cat >conftest.$ac_ext <<_ACEOF
5755 /* confdefs.h. */
5756 _ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5760 #include <sys/types.h>
5761 /* Check that off_t can represent 2**63 - 1 correctly.
5762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763 since some C++ compilers masquerading as C compilers
5764 incorrectly reject 9223372036854775807. */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767 && LARGE_OFF_T % 2147483647 == 1)
5768 ? 1 : -1];
5770 main ()
5774 return 0;
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (ac_try="$ac_compile"
5779 case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5782 esac
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compile") 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && {
5791 test -z "$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 } && test -s conftest.$ac_objext; then
5794 ac_cv_sys_file_offset_bits=no; break
5795 else
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h. */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5809 #define _FILE_OFFSET_BITS 64
5810 #include <sys/types.h>
5811 /* Check that off_t can represent 2**63 - 1 correctly.
5812 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5813 since some C++ compilers masquerading as C compilers
5814 incorrectly reject 9223372036854775807. */
5815 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5816 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5817 && LARGE_OFF_T % 2147483647 == 1)
5818 ? 1 : -1];
5820 main ()
5824 return 0;
5826 _ACEOF
5827 rm -f conftest.$ac_objext
5828 if { (ac_try="$ac_compile"
5829 case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_compile") 2>conftest.er1
5835 ac_status=$?
5836 grep -v '^ *+' conftest.er1 >conftest.err
5837 rm -f conftest.er1
5838 cat conftest.err >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && {
5841 test -z "$ac_c_werror_flag" ||
5842 test ! -s conftest.err
5843 } && test -s conftest.$ac_objext; then
5844 ac_cv_sys_file_offset_bits=64; break
5845 else
5846 echo "$as_me: failed program was:" >&5
5847 sed 's/^/| /' conftest.$ac_ext >&5
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 ac_cv_sys_file_offset_bits=unknown
5854 break
5855 done
5857 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5858 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5859 case $ac_cv_sys_file_offset_bits in #(
5860 no | unknown) ;;
5862 cat >>confdefs.h <<_ACEOF
5863 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5864 _ACEOF
5866 esac
5867 rm -f conftest*
5868 if test $ac_cv_sys_file_offset_bits = unknown; then
5869 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5870 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5871 if test "${ac_cv_sys_large_files+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 else
5874 while :; do
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <sys/types.h>
5882 /* Check that off_t can represent 2**63 - 1 correctly.
5883 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5884 since some C++ compilers masquerading as C compilers
5885 incorrectly reject 9223372036854775807. */
5886 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5887 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5888 && LARGE_OFF_T % 2147483647 == 1)
5889 ? 1 : -1];
5891 main ()
5895 return 0;
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (ac_try="$ac_compile"
5900 case "(($ac_try" in
5901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902 *) ac_try_echo=$ac_try;;
5903 esac
5904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905 (eval "$ac_compile") 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } && {
5912 test -z "$ac_c_werror_flag" ||
5913 test ! -s conftest.err
5914 } && test -s conftest.$ac_objext; then
5915 ac_cv_sys_large_files=no; break
5916 else
5917 echo "$as_me: failed program was:" >&5
5918 sed 's/^/| /' conftest.$ac_ext >&5
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924 cat >conftest.$ac_ext <<_ACEOF
5925 /* confdefs.h. */
5926 _ACEOF
5927 cat confdefs.h >>conftest.$ac_ext
5928 cat >>conftest.$ac_ext <<_ACEOF
5929 /* end confdefs.h. */
5930 #define _LARGE_FILES 1
5931 #include <sys/types.h>
5932 /* Check that off_t can represent 2**63 - 1 correctly.
5933 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5934 since some C++ compilers masquerading as C compilers
5935 incorrectly reject 9223372036854775807. */
5936 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5937 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5938 && LARGE_OFF_T % 2147483647 == 1)
5939 ? 1 : -1];
5941 main ()
5945 return 0;
5947 _ACEOF
5948 rm -f conftest.$ac_objext
5949 if { (ac_try="$ac_compile"
5950 case "(($ac_try" in
5951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952 *) ac_try_echo=$ac_try;;
5953 esac
5954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955 (eval "$ac_compile") 2>conftest.er1
5956 ac_status=$?
5957 grep -v '^ *+' conftest.er1 >conftest.err
5958 rm -f conftest.er1
5959 cat conftest.err >&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } && {
5962 test -z "$ac_c_werror_flag" ||
5963 test ! -s conftest.err
5964 } && test -s conftest.$ac_objext; then
5965 ac_cv_sys_large_files=1; break
5966 else
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 ac_cv_sys_large_files=unknown
5975 break
5976 done
5978 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5979 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5980 case $ac_cv_sys_large_files in #(
5981 no | unknown) ;;
5983 cat >>confdefs.h <<_ACEOF
5984 #define _LARGE_FILES $ac_cv_sys_large_files
5985 _ACEOF
5987 esac
5988 rm -f conftest*
5994 ### The standard library on x86-64 GNU/Linux distributions can
5995 ### be located in either /usr/lib64 or /usr/lib.
5996 case "${canonical}" in
5997 x86_64-*-linux-gnu* )
5998 if test -d /usr/lib64; then
6000 cat >>confdefs.h <<\_ACEOF
6001 #define HAVE_X86_64_LIB64_DIR 1
6002 _ACEOF
6005 esac
6010 if test "${with_sound}" != "no"; then
6011 # Sound support for GNU/Linux and the free BSDs.
6012 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6013 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6014 if test "${ac_cv_header_stdc+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017 cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h. */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 #include <stdlib.h>
6024 #include <stdarg.h>
6025 #include <string.h>
6026 #include <float.h>
6029 main ()
6033 return 0;
6035 _ACEOF
6036 rm -f conftest.$ac_objext
6037 if { (ac_try="$ac_compile"
6038 case "(($ac_try" in
6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6041 esac
6042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043 (eval "$ac_compile") 2>conftest.er1
6044 ac_status=$?
6045 grep -v '^ *+' conftest.er1 >conftest.err
6046 rm -f conftest.er1
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } && {
6050 test -z "$ac_c_werror_flag" ||
6051 test ! -s conftest.err
6052 } && test -s conftest.$ac_objext; then
6053 ac_cv_header_stdc=yes
6054 else
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6058 ac_cv_header_stdc=no
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 if test $ac_cv_header_stdc = yes; then
6064 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6065 cat >conftest.$ac_ext <<_ACEOF
6066 /* confdefs.h. */
6067 _ACEOF
6068 cat confdefs.h >>conftest.$ac_ext
6069 cat >>conftest.$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 #include <string.h>
6073 _ACEOF
6074 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6075 $EGREP "memchr" >/dev/null 2>&1; then
6077 else
6078 ac_cv_header_stdc=no
6080 rm -f conftest*
6084 if test $ac_cv_header_stdc = yes; then
6085 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6086 cat >conftest.$ac_ext <<_ACEOF
6087 /* confdefs.h. */
6088 _ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6092 #include <stdlib.h>
6094 _ACEOF
6095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6096 $EGREP "free" >/dev/null 2>&1; then
6098 else
6099 ac_cv_header_stdc=no
6101 rm -f conftest*
6105 if test $ac_cv_header_stdc = yes; then
6106 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6107 if test "$cross_compiling" = yes; then
6109 else
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 #include <ctype.h>
6117 #include <stdlib.h>
6118 #if ((' ' & 0x0FF) == 0x020)
6119 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6120 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6121 #else
6122 # define ISLOWER(c) \
6123 (('a' <= (c) && (c) <= 'i') \
6124 || ('j' <= (c) && (c) <= 'r') \
6125 || ('s' <= (c) && (c) <= 'z'))
6126 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6127 #endif
6129 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6131 main ()
6133 int i;
6134 for (i = 0; i < 256; i++)
6135 if (XOR (islower (i), ISLOWER (i))
6136 || toupper (i) != TOUPPER (i))
6137 return 2;
6138 return 0;
6140 _ACEOF
6141 rm -f conftest$ac_exeext
6142 if { (ac_try="$ac_link"
6143 case "(($ac_try" in
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6146 esac
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_link") 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6152 { (case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6157 (eval "$ac_try") 2>&5
6158 ac_status=$?
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); }; }; then
6162 else
6163 echo "$as_me: program exited with status $ac_status" >&5
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6167 ( exit $ac_status )
6168 ac_cv_header_stdc=no
6170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6176 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6177 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6178 if test $ac_cv_header_stdc = yes; then
6180 cat >>confdefs.h <<\_ACEOF
6181 #define STDC_HEADERS 1
6182 _ACEOF
6186 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6196 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6197 inttypes.h stdint.h unistd.h
6199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6203 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 else
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6213 #include <$ac_header>
6214 _ACEOF
6215 rm -f conftest.$ac_objext
6216 if { (ac_try="$ac_compile"
6217 case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220 esac
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compile") 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest.$ac_objext; then
6232 eval "$as_ac_Header=yes"
6233 else
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 eval "$as_ac_Header=no"
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 ac_res=`eval echo '${'$as_ac_Header'}'`
6243 { echo "$as_me:$LINENO: result: $ac_res" >&5
6244 echo "${ECHO_T}$ac_res" >&6; }
6245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6246 cat >>confdefs.h <<_ACEOF
6247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6248 _ACEOF
6252 done
6258 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 ac_res=`eval echo '${'$as_ac_Header'}'`
6268 { echo "$as_me:$LINENO: result: $ac_res" >&5
6269 echo "${ECHO_T}$ac_res" >&6; }
6270 else
6271 # Is the header compilable?
6272 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6274 cat >conftest.$ac_ext <<_ACEOF
6275 /* confdefs.h. */
6276 _ACEOF
6277 cat confdefs.h >>conftest.$ac_ext
6278 cat >>conftest.$ac_ext <<_ACEOF
6279 /* end confdefs.h. */
6280 $ac_includes_default
6281 #include <$ac_header>
6282 _ACEOF
6283 rm -f conftest.$ac_objext
6284 if { (ac_try="$ac_compile"
6285 case "(($ac_try" in
6286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287 *) ac_try_echo=$ac_try;;
6288 esac
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_compile") 2>conftest.er1
6291 ac_status=$?
6292 grep -v '^ *+' conftest.er1 >conftest.err
6293 rm -f conftest.er1
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } && {
6297 test -z "$ac_c_werror_flag" ||
6298 test ! -s conftest.err
6299 } && test -s conftest.$ac_objext; then
6300 ac_header_compiler=yes
6301 else
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6305 ac_header_compiler=no
6308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6310 echo "${ECHO_T}$ac_header_compiler" >&6; }
6312 # Is the header present?
6313 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6315 cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h. */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 #include <$ac_header>
6322 _ACEOF
6323 if { (ac_try="$ac_cpp conftest.$ac_ext"
6324 case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6327 esac
6328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } >/dev/null && {
6336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6337 test ! -s conftest.err
6338 }; then
6339 ac_header_preproc=yes
6340 else
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6344 ac_header_preproc=no
6347 rm -f conftest.err conftest.$ac_ext
6348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6349 echo "${ECHO_T}$ac_header_preproc" >&6; }
6351 # So? What about this header?
6352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6353 yes:no: )
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6358 ac_header_preproc=yes
6360 no:yes:* )
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6375 esac
6376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6379 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 else
6381 eval "$as_ac_Header=\$ac_header_preproc"
6383 ac_res=`eval echo '${'$as_ac_Header'}'`
6384 { echo "$as_me:$LINENO: result: $ac_res" >&5
6385 echo "${ECHO_T}$ac_res" >&6; }
6388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6389 cat >>confdefs.h <<_ACEOF
6390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6391 _ACEOF
6395 done
6397 # Emulation library used on NetBSD.
6398 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6399 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6400 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6401 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 else
6403 ac_check_lib_save_LIBS=$LIBS
6404 LIBS="-lossaudio $LIBS"
6405 cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h. */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6412 /* Override any GCC internal prototype to avoid an error.
6413 Use char because int might match the return type of a GCC
6414 builtin and then its argument prototype would still apply. */
6415 #ifdef __cplusplus
6416 extern "C"
6417 #endif
6418 char _oss_ioctl ();
6420 main ()
6422 return _oss_ioctl ();
6424 return 0;
6426 _ACEOF
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (ac_try="$ac_link"
6429 case "(($ac_try" in
6430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431 *) ac_try_echo=$ac_try;;
6432 esac
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_link") 2>conftest.er1
6435 ac_status=$?
6436 grep -v '^ *+' conftest.er1 >conftest.err
6437 rm -f conftest.er1
6438 cat conftest.err >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } && {
6441 test -z "$ac_c_werror_flag" ||
6442 test ! -s conftest.err
6443 } && test -s conftest$ac_exeext &&
6444 $as_test_x conftest$ac_exeext; then
6445 ac_cv_lib_ossaudio__oss_ioctl=yes
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 ac_cv_lib_ossaudio__oss_ioctl=no
6453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6454 conftest$ac_exeext conftest.$ac_ext
6455 LIBS=$ac_check_lib_save_LIBS
6457 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6458 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6459 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6460 LIBSOUND=-lossaudio
6461 else
6462 LIBSOUND=
6467 ALSA_REQUIRED=1.0.0
6468 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6469 if test "X${with_pkg_config_prog}" != X; then
6470 PKG_CONFIG="${with_pkg_config_prog}"
6473 succeeded=no
6475 if test -z "$PKG_CONFIG"; then
6476 # Extract the first word of "pkg-config", so it can be a program name with args.
6477 set dummy pkg-config; ac_word=$2
6478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6480 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483 case $PKG_CONFIG in
6484 [\\/]* | ?:[\\/]*)
6485 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6499 done
6500 done
6501 IFS=$as_save_IFS
6503 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6505 esac
6507 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6508 if test -n "$PKG_CONFIG"; then
6509 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6510 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6511 else
6512 { echo "$as_me:$LINENO: result: no" >&5
6513 echo "${ECHO_T}no" >&6; }
6519 if test "$PKG_CONFIG" = "no" ; then
6520 HAVE_ALSA=no
6521 else
6522 PKG_CONFIG_MIN_VERSION=0.9.0
6523 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6524 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6525 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6527 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6528 { echo "$as_me:$LINENO: result: yes" >&5
6529 echo "${ECHO_T}yes" >&6; }
6530 succeeded=yes
6532 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6533 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6534 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6535 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6536 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6538 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6539 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6540 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6541 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6542 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6543 else
6544 { echo "$as_me:$LINENO: result: no" >&5
6545 echo "${ECHO_T}no" >&6; }
6546 ALSA_CFLAGS=""
6547 ALSA_LIBS=""
6548 ## If we have a custom action on failure, don't print errors, but
6549 ## do set a variable so people can do so.
6550 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6556 else
6557 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6558 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6562 if test $succeeded = yes; then
6563 HAVE_ALSA=yes
6564 else
6565 HAVE_ALSA=no
6568 if test $HAVE_ALSA = yes; then
6569 SAVE_CFLAGS="$CFLAGS"
6570 SAVE_LDFLAGS="$LDFLAGS"
6571 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6572 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 #include <asoundlib.h>
6581 main ()
6583 snd_lib_error_set_handler (0);
6585 return 0;
6587 _ACEOF
6588 rm -f conftest.$ac_objext
6589 if { (ac_try="$ac_compile"
6590 case "(($ac_try" in
6591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6592 *) ac_try_echo=$ac_try;;
6593 esac
6594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6595 (eval "$ac_compile") 2>conftest.er1
6596 ac_status=$?
6597 grep -v '^ *+' conftest.er1 >conftest.err
6598 rm -f conftest.er1
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } && {
6602 test -z "$ac_c_werror_flag" ||
6603 test ! -s conftest.err
6604 } && test -s conftest.$ac_objext; then
6605 emacs_alsa_normal=yes
6606 else
6607 echo "$as_me: failed program was:" >&5
6608 sed 's/^/| /' conftest.$ac_ext >&5
6610 emacs_alsa_normal=no
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6614 if test "$emacs_alsa_normal" != yes; then
6615 cat >conftest.$ac_ext <<_ACEOF
6616 /* confdefs.h. */
6617 _ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6621 #include <alsa/asoundlib.h>
6623 main ()
6625 snd_lib_error_set_handler (0);
6627 return 0;
6629 _ACEOF
6630 rm -f conftest.$ac_objext
6631 if { (ac_try="$ac_compile"
6632 case "(($ac_try" in
6633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6634 *) ac_try_echo=$ac_try;;
6635 esac
6636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6637 (eval "$ac_compile") 2>conftest.er1
6638 ac_status=$?
6639 grep -v '^ *+' conftest.er1 >conftest.err
6640 rm -f conftest.er1
6641 cat conftest.err >&5
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && {
6644 test -z "$ac_c_werror_flag" ||
6645 test ! -s conftest.err
6646 } && test -s conftest.$ac_objext; then
6647 emacs_alsa_subdir=yes
6648 else
6649 echo "$as_me: failed program was:" >&5
6650 sed 's/^/| /' conftest.$ac_ext >&5
6652 emacs_alsa_subdir=no
6655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6656 if test "$emacs_alsa_subdir" != yes; then
6657 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6658 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6659 { (exit 1); exit 1; }; }
6661 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6664 CFLAGS="$SAVE_CFLAGS"
6665 LDFLAGS="$SAVE_LDFLAGS"
6666 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6667 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6669 cat >>confdefs.h <<\_ACEOF
6670 #define HAVE_ALSA 1
6671 _ACEOF
6702 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6703 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6704 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6705 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6706 sys/utsname.h pwd.h
6708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6713 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 ac_res=`eval echo '${'$as_ac_Header'}'`
6716 { echo "$as_me:$LINENO: result: $ac_res" >&5
6717 echo "${ECHO_T}$ac_res" >&6; }
6718 else
6719 # Is the header compilable?
6720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6722 cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h. */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 $ac_includes_default
6729 #include <$ac_header>
6730 _ACEOF
6731 rm -f conftest.$ac_objext
6732 if { (ac_try="$ac_compile"
6733 case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6736 esac
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 ac_header_compiler=yes
6749 else
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6753 ac_header_compiler=no
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6758 echo "${ECHO_T}$ac_header_compiler" >&6; }
6760 # Is the header present?
6761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <$ac_header>
6770 _ACEOF
6771 if { (ac_try="$ac_cpp conftest.$ac_ext"
6772 case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775 esac
6776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6778 ac_status=$?
6779 grep -v '^ *+' conftest.er1 >conftest.err
6780 rm -f conftest.er1
6781 cat conftest.err >&5
6782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6783 (exit $ac_status); } >/dev/null && {
6784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6785 test ! -s conftest.err
6786 }; then
6787 ac_header_preproc=yes
6788 else
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 ac_header_preproc=no
6795 rm -f conftest.err conftest.$ac_ext
6796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6797 echo "${ECHO_T}$ac_header_preproc" >&6; }
6799 # So? What about this header?
6800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6801 yes:no: )
6802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6806 ac_header_preproc=yes
6808 no:yes:* )
6809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6812 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6816 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6823 esac
6824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829 eval "$as_ac_Header=\$ac_header_preproc"
6831 ac_res=`eval echo '${'$as_ac_Header'}'`
6832 { echo "$as_me:$LINENO: result: $ac_res" >&5
6833 echo "${ECHO_T}$ac_res" >&6; }
6836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6837 cat >>confdefs.h <<_ACEOF
6838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6839 _ACEOF
6843 done
6846 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6847 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6848 cat >conftest.$ac_ext <<_ACEOF
6849 /* confdefs.h. */
6850 _ACEOF
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 #include <sys/personality.h>
6856 main ()
6858 personality (PER_LINUX32)
6860 return 0;
6862 _ACEOF
6863 rm -f conftest.$ac_objext
6864 if { (ac_try="$ac_compile"
6865 case "(($ac_try" in
6866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867 *) ac_try_echo=$ac_try;;
6868 esac
6869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870 (eval "$ac_compile") 2>conftest.er1
6871 ac_status=$?
6872 grep -v '^ *+' conftest.er1 >conftest.err
6873 rm -f conftest.er1
6874 cat conftest.err >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } && {
6877 test -z "$ac_c_werror_flag" ||
6878 test ! -s conftest.err
6879 } && test -s conftest.$ac_objext; then
6880 emacs_cv_personality_linux32=yes
6881 else
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 emacs_cv_personality_linux32=no
6888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6890 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6892 if test $emacs_cv_personality_linux32 = yes; then
6894 cat >>confdefs.h <<\_ACEOF
6895 #define HAVE_PERSONALITY_LINUX32 1
6896 _ACEOF
6901 for ac_header in term.h
6903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 else
6909 cat >conftest.$ac_ext <<_ACEOF
6910 /* confdefs.h. */
6911 _ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h. */
6915 #include <$ac_header>
6916 _ACEOF
6917 if { (ac_try="$ac_cpp conftest.$ac_ext"
6918 case "(($ac_try" in
6919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920 *) ac_try_echo=$ac_try;;
6921 esac
6922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6924 ac_status=$?
6925 grep -v '^ *+' conftest.er1 >conftest.err
6926 rm -f conftest.er1
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } >/dev/null && {
6930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6931 test ! -s conftest.err
6932 }; then
6933 eval "$as_ac_Header=yes"
6934 else
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6938 eval "$as_ac_Header=no"
6941 rm -f conftest.err conftest.$ac_ext
6943 ac_res=`eval echo '${'$as_ac_Header'}'`
6944 { echo "$as_me:$LINENO: result: $ac_res" >&5
6945 echo "${ECHO_T}$ac_res" >&6; }
6946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6947 cat >>confdefs.h <<_ACEOF
6948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6949 _ACEOF
6953 done
6955 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6956 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6957 if test "${ac_cv_header_stdc+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 else
6960 cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h. */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h. */
6966 #include <stdlib.h>
6967 #include <stdarg.h>
6968 #include <string.h>
6969 #include <float.h>
6972 main ()
6976 return 0;
6978 _ACEOF
6979 rm -f conftest.$ac_objext
6980 if { (ac_try="$ac_compile"
6981 case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
6987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
6996 ac_cv_header_stdc=yes
6997 else
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7001 ac_cv_header_stdc=no
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 if test $ac_cv_header_stdc = yes; then
7007 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7008 cat >conftest.$ac_ext <<_ACEOF
7009 /* confdefs.h. */
7010 _ACEOF
7011 cat confdefs.h >>conftest.$ac_ext
7012 cat >>conftest.$ac_ext <<_ACEOF
7013 /* end confdefs.h. */
7014 #include <string.h>
7016 _ACEOF
7017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7018 $EGREP "memchr" >/dev/null 2>&1; then
7020 else
7021 ac_cv_header_stdc=no
7023 rm -f conftest*
7027 if test $ac_cv_header_stdc = yes; then
7028 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 #include <stdlib.h>
7037 _ACEOF
7038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039 $EGREP "free" >/dev/null 2>&1; then
7041 else
7042 ac_cv_header_stdc=no
7044 rm -f conftest*
7048 if test $ac_cv_header_stdc = yes; then
7049 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7050 if test "$cross_compiling" = yes; then
7052 else
7053 cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h. */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 #include <ctype.h>
7060 #include <stdlib.h>
7061 #if ((' ' & 0x0FF) == 0x020)
7062 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7063 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7064 #else
7065 # define ISLOWER(c) \
7066 (('a' <= (c) && (c) <= 'i') \
7067 || ('j' <= (c) && (c) <= 'r') \
7068 || ('s' <= (c) && (c) <= 'z'))
7069 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7070 #endif
7072 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7074 main ()
7076 int i;
7077 for (i = 0; i < 256; i++)
7078 if (XOR (islower (i), ISLOWER (i))
7079 || toupper (i) != TOUPPER (i))
7080 return 2;
7081 return 0;
7083 _ACEOF
7084 rm -f conftest$ac_exeext
7085 if { (ac_try="$ac_link"
7086 case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7089 esac
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_link") 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7095 { (case "(($ac_try" in
7096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097 *) ac_try_echo=$ac_try;;
7098 esac
7099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100 (eval "$ac_try") 2>&5
7101 ac_status=$?
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); }; }; then
7105 else
7106 echo "$as_me: program exited with status $ac_status" >&5
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7110 ( exit $ac_status )
7111 ac_cv_header_stdc=no
7113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7119 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7120 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7121 if test $ac_cv_header_stdc = yes; then
7123 cat >>confdefs.h <<\_ACEOF
7124 #define STDC_HEADERS 1
7125 _ACEOF
7129 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7130 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7131 if test "${ac_cv_header_time+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 else
7134 cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h. */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 #include <sys/types.h>
7141 #include <sys/time.h>
7142 #include <time.h>
7145 main ()
7147 if ((struct tm *) 0)
7148 return 0;
7150 return 0;
7152 _ACEOF
7153 rm -f conftest.$ac_objext
7154 if { (ac_try="$ac_compile"
7155 case "(($ac_try" in
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7158 esac
7159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_compile") 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_c_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest.$ac_objext; then
7170 ac_cv_header_time=yes
7171 else
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 ac_cv_header_time=no
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7181 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7182 if test $ac_cv_header_time = yes; then
7184 cat >>confdefs.h <<\_ACEOF
7185 #define TIME_WITH_SYS_TIME 1
7186 _ACEOF
7190 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7191 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7192 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h. */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 $ac_includes_default
7203 main ()
7205 #ifndef sys_siglist
7206 (void) sys_siglist;
7207 #endif
7210 return 0;
7212 _ACEOF
7213 rm -f conftest.$ac_objext
7214 if { (ac_try="$ac_compile"
7215 case "(($ac_try" in
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7218 esac
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_compile") 2>conftest.er1
7221 ac_status=$?
7222 grep -v '^ *+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && {
7227 test -z "$ac_c_werror_flag" ||
7228 test ! -s conftest.err
7229 } && test -s conftest.$ac_objext; then
7230 ac_cv_have_decl_sys_siglist=yes
7231 else
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.$ac_ext >&5
7235 ac_cv_have_decl_sys_siglist=no
7238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7240 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7241 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7242 if test $ac_cv_have_decl_sys_siglist = yes; then
7244 cat >>confdefs.h <<_ACEOF
7245 #define HAVE_DECL_SYS_SIGLIST 1
7246 _ACEOF
7249 else
7250 cat >>confdefs.h <<_ACEOF
7251 #define HAVE_DECL_SYS_SIGLIST 0
7252 _ACEOF
7258 if test $ac_cv_have_decl_sys_siglist != yes; then
7259 # For Tru64, at least:
7260 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7261 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7262 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 else
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 $ac_includes_default
7273 main ()
7275 #ifndef __sys_siglist
7276 (void) __sys_siglist;
7277 #endif
7280 return 0;
7282 _ACEOF
7283 rm -f conftest.$ac_objext
7284 if { (ac_try="$ac_compile"
7285 case "(($ac_try" in
7286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287 *) ac_try_echo=$ac_try;;
7288 esac
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290 (eval "$ac_compile") 2>conftest.er1
7291 ac_status=$?
7292 grep -v '^ *+' conftest.er1 >conftest.err
7293 rm -f conftest.er1
7294 cat conftest.err >&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } && {
7297 test -z "$ac_c_werror_flag" ||
7298 test ! -s conftest.err
7299 } && test -s conftest.$ac_objext; then
7300 ac_cv_have_decl___sys_siglist=yes
7301 else
7302 echo "$as_me: failed program was:" >&5
7303 sed 's/^/| /' conftest.$ac_ext >&5
7305 ac_cv_have_decl___sys_siglist=no
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7311 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7312 if test $ac_cv_have_decl___sys_siglist = yes; then
7314 cat >>confdefs.h <<_ACEOF
7315 #define HAVE_DECL___SYS_SIGLIST 1
7316 _ACEOF
7319 else
7320 cat >>confdefs.h <<_ACEOF
7321 #define HAVE_DECL___SYS_SIGLIST 0
7322 _ACEOF
7328 if test $ac_cv_have_decl___sys_siglist = yes; then
7330 cat >>confdefs.h <<\_ACEOF
7331 #define sys_siglist __sys_siglist
7332 _ACEOF
7336 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7337 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7338 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7339 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 else
7341 cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h. */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7347 #include <sys/types.h>
7348 #include <sys/wait.h>
7349 #ifndef WEXITSTATUS
7350 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7351 #endif
7352 #ifndef WIFEXITED
7353 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7354 #endif
7357 main ()
7359 int s;
7360 wait (&s);
7361 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7363 return 0;
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7368 case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7371 esac
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7383 ac_cv_header_sys_wait_h=yes
7384 else
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 ac_cv_header_sys_wait_h=no
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7394 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7395 if test $ac_cv_header_sys_wait_h = yes; then
7397 cat >>confdefs.h <<\_ACEOF
7398 #define HAVE_SYS_WAIT_H 1
7399 _ACEOF
7404 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7405 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7406 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 else
7409 cat >conftest.$ac_ext <<_ACEOF
7410 /* confdefs.h. */
7411 _ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7415 #ifdef TIME_WITH_SYS_TIME
7416 #include <sys/time.h>
7417 #include <time.h>
7418 #else
7419 #ifdef HAVE_SYS_TIME_H
7420 #include <sys/time.h>
7421 #else
7422 #include <time.h>
7423 #endif
7424 #endif
7425 #ifdef HAVE_UTIME_H
7426 #include <utime.h>
7427 #endif
7429 main ()
7431 static struct utimbuf x; x.actime = x.modtime;
7433 return 0;
7435 _ACEOF
7436 rm -f conftest.$ac_objext
7437 if { (ac_try="$ac_compile"
7438 case "(($ac_try" in
7439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7440 *) ac_try_echo=$ac_try;;
7441 esac
7442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7443 (eval "$ac_compile") 2>conftest.er1
7444 ac_status=$?
7445 grep -v '^ *+' conftest.er1 >conftest.err
7446 rm -f conftest.er1
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } && {
7450 test -z "$ac_c_werror_flag" ||
7451 test ! -s conftest.err
7452 } && test -s conftest.$ac_objext; then
7453 emacs_cv_struct_utimbuf=yes
7454 else
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7458 emacs_cv_struct_utimbuf=no
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7464 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7465 if test $emacs_cv_struct_utimbuf = yes; then
7467 cat >>confdefs.h <<\_ACEOF
7468 #define HAVE_STRUCT_UTIMBUF 1
7469 _ACEOF
7473 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7474 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7475 if test "${ac_cv_type_signal+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <sys/types.h>
7485 #include <signal.h>
7488 main ()
7490 return *(signal (0, 0)) (0) == 1;
7492 return 0;
7494 _ACEOF
7495 rm -f conftest.$ac_objext
7496 if { (ac_try="$ac_compile"
7497 case "(($ac_try" in
7498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7499 *) ac_try_echo=$ac_try;;
7500 esac
7501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7502 (eval "$ac_compile") 2>conftest.er1
7503 ac_status=$?
7504 grep -v '^ *+' conftest.er1 >conftest.err
7505 rm -f conftest.er1
7506 cat conftest.err >&5
7507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508 (exit $ac_status); } && {
7509 test -z "$ac_c_werror_flag" ||
7510 test ! -s conftest.err
7511 } && test -s conftest.$ac_objext; then
7512 ac_cv_type_signal=int
7513 else
7514 echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7517 ac_cv_type_signal=void
7520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7523 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7525 cat >>confdefs.h <<_ACEOF
7526 #define RETSIGTYPE $ac_cv_type_signal
7527 _ACEOF
7531 { echo "$as_me:$LINENO: checking for speed_t" >&5
7532 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7533 if test "${emacs_cv_speed_t+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536 cat >conftest.$ac_ext <<_ACEOF
7537 /* confdefs.h. */
7538 _ACEOF
7539 cat confdefs.h >>conftest.$ac_ext
7540 cat >>conftest.$ac_ext <<_ACEOF
7541 /* end confdefs.h. */
7542 #include <termios.h>
7544 main ()
7546 speed_t x = 1;
7548 return 0;
7550 _ACEOF
7551 rm -f conftest.$ac_objext
7552 if { (ac_try="$ac_compile"
7553 case "(($ac_try" in
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7556 esac
7557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558 (eval "$ac_compile") 2>conftest.er1
7559 ac_status=$?
7560 grep -v '^ *+' conftest.er1 >conftest.err
7561 rm -f conftest.er1
7562 cat conftest.err >&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } && {
7565 test -z "$ac_c_werror_flag" ||
7566 test ! -s conftest.err
7567 } && test -s conftest.$ac_objext; then
7568 emacs_cv_speed_t=yes
7569 else
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7573 emacs_cv_speed_t=no
7576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7578 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7579 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7580 if test $emacs_cv_speed_t = yes; then
7582 cat >>confdefs.h <<\_ACEOF
7583 #define HAVE_SPEED_T 1
7584 _ACEOF
7588 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7589 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7590 if test "${emacs_cv_struct_timeval+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 else
7593 cat >conftest.$ac_ext <<_ACEOF
7594 /* confdefs.h. */
7595 _ACEOF
7596 cat confdefs.h >>conftest.$ac_ext
7597 cat >>conftest.$ac_ext <<_ACEOF
7598 /* end confdefs.h. */
7599 #ifdef TIME_WITH_SYS_TIME
7600 #include <sys/time.h>
7601 #include <time.h>
7602 #else
7603 #ifdef HAVE_SYS_TIME_H
7604 #include <sys/time.h>
7605 #else
7606 #include <time.h>
7607 #endif
7608 #endif
7610 main ()
7612 static struct timeval x; x.tv_sec = x.tv_usec;
7614 return 0;
7616 _ACEOF
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7619 case "(($ac_try" in
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7622 esac
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624 (eval "$ac_compile") 2>conftest.er1
7625 ac_status=$?
7626 grep -v '^ *+' conftest.er1 >conftest.err
7627 rm -f conftest.er1
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } && {
7631 test -z "$ac_c_werror_flag" ||
7632 test ! -s conftest.err
7633 } && test -s conftest.$ac_objext; then
7634 emacs_cv_struct_timeval=yes
7635 else
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7639 emacs_cv_struct_timeval=no
7642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7645 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7646 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7647 if test $emacs_cv_struct_timeval = yes; then
7649 cat >>confdefs.h <<\_ACEOF
7650 #define HAVE_TIMEVAL 1
7651 _ACEOF
7655 { echo "$as_me:$LINENO: checking for struct exception" >&5
7656 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7657 if test "${emacs_cv_struct_exception+set}" = set; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660 cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h. */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7666 #include <math.h>
7668 main ()
7670 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7672 return 0;
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (ac_try="$ac_compile"
7677 case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_compile") 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest.$ac_objext; then
7692 emacs_cv_struct_exception=yes
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 emacs_cv_struct_exception=no
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7703 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7704 HAVE_EXCEPTION=$emacs_cv_struct_exception
7705 if test $emacs_cv_struct_exception != yes; then
7707 cat >>confdefs.h <<\_ACEOF
7708 #define NO_MATHERR 1
7709 _ACEOF
7714 for ac_header in sys/socket.h
7716 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7718 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7719 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 ac_res=`eval echo '${'$as_ac_Header'}'`
7724 { echo "$as_me:$LINENO: result: $ac_res" >&5
7725 echo "${ECHO_T}$ac_res" >&6; }
7726 else
7727 # Is the header compilable?
7728 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7729 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7730 cat >conftest.$ac_ext <<_ACEOF
7731 /* confdefs.h. */
7732 _ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 $ac_includes_default
7737 #include <$ac_header>
7738 _ACEOF
7739 rm -f conftest.$ac_objext
7740 if { (ac_try="$ac_compile"
7741 case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744 esac
7745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7746 (eval "$ac_compile") 2>conftest.er1
7747 ac_status=$?
7748 grep -v '^ *+' conftest.er1 >conftest.err
7749 rm -f conftest.er1
7750 cat conftest.err >&5
7751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7752 (exit $ac_status); } && {
7753 test -z "$ac_c_werror_flag" ||
7754 test ! -s conftest.err
7755 } && test -s conftest.$ac_objext; then
7756 ac_header_compiler=yes
7757 else
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.$ac_ext >&5
7761 ac_header_compiler=no
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7766 echo "${ECHO_T}$ac_header_compiler" >&6; }
7768 # Is the header present?
7769 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7771 cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h. */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 #include <$ac_header>
7778 _ACEOF
7779 if { (ac_try="$ac_cpp conftest.$ac_ext"
7780 case "(($ac_try" in
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7783 esac
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } >/dev/null && {
7792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7793 test ! -s conftest.err
7794 }; then
7795 ac_header_preproc=yes
7796 else
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7800 ac_header_preproc=no
7803 rm -f conftest.err conftest.$ac_ext
7804 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7805 echo "${ECHO_T}$ac_header_preproc" >&6; }
7807 # So? What about this header?
7808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7809 yes:no: )
7810 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7814 ac_header_preproc=yes
7816 no:yes:* )
7817 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7820 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7824 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7827 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7831 esac
7832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837 eval "$as_ac_Header=\$ac_header_preproc"
7839 ac_res=`eval echo '${'$as_ac_Header'}'`
7840 { echo "$as_me:$LINENO: result: $ac_res" >&5
7841 echo "${ECHO_T}$ac_res" >&6; }
7844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7845 cat >>confdefs.h <<_ACEOF
7846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7847 _ACEOF
7851 done
7854 for ac_header in net/if.h
7856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 else
7862 cat >conftest.$ac_ext <<_ACEOF
7863 /* confdefs.h. */
7864 _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>
7871 #endif
7873 #include <$ac_header>
7874 _ACEOF
7875 rm -f conftest.$ac_objext
7876 if { (ac_try="$ac_compile"
7877 case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_compile") 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest.$ac_objext; then
7892 eval "$as_ac_Header=yes"
7893 else
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 eval "$as_ac_Header=no"
7900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902 ac_res=`eval echo '${'$as_ac_Header'}'`
7903 { echo "$as_me:$LINENO: result: $ac_res" >&5
7904 echo "${ECHO_T}$ac_res" >&6; }
7905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7906 cat >>confdefs.h <<_ACEOF
7907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7908 _ACEOF
7912 done
7915 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7916 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7917 if test "${ac_cv_struct_tm+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 #include <sys/types.h>
7927 #include <time.h>
7930 main ()
7932 struct tm tm;
7933 int *p = &tm.tm_sec;
7934 return !p;
7936 return 0;
7938 _ACEOF
7939 rm -f conftest.$ac_objext
7940 if { (ac_try="$ac_compile"
7941 case "(($ac_try" in
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7944 esac
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_compile") 2>conftest.er1
7947 ac_status=$?
7948 grep -v '^ *+' conftest.er1 >conftest.err
7949 rm -f conftest.er1
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } && {
7953 test -z "$ac_c_werror_flag" ||
7954 test ! -s conftest.err
7955 } && test -s conftest.$ac_objext; then
7956 ac_cv_struct_tm=time.h
7957 else
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 ac_cv_struct_tm=sys/time.h
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7967 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7968 if test $ac_cv_struct_tm = sys/time.h; then
7970 cat >>confdefs.h <<\_ACEOF
7971 #define TM_IN_SYS_TIME 1
7972 _ACEOF
7976 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7977 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7978 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981 cat >conftest.$ac_ext <<_ACEOF
7982 /* confdefs.h. */
7983 _ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7987 #include <sys/types.h>
7988 #include <$ac_cv_struct_tm>
7992 main ()
7994 static struct tm ac_aggr;
7995 if (ac_aggr.tm_zone)
7996 return 0;
7998 return 0;
8000 _ACEOF
8001 rm -f conftest.$ac_objext
8002 if { (ac_try="$ac_compile"
8003 case "(($ac_try" in
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8006 esac
8007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
8012 cat conftest.err >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
8018 ac_cv_member_struct_tm_tm_zone=yes
8019 else
8020 echo "$as_me: failed program was:" >&5
8021 sed 's/^/| /' conftest.$ac_ext >&5
8023 cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h. */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8029 #include <sys/types.h>
8030 #include <$ac_cv_struct_tm>
8034 main ()
8036 static struct tm ac_aggr;
8037 if (sizeof ac_aggr.tm_zone)
8038 return 0;
8040 return 0;
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (ac_try="$ac_compile"
8045 case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_compile") 2>conftest.er1
8051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest.$ac_objext; then
8060 ac_cv_member_struct_tm_tm_zone=yes
8061 else
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 ac_cv_member_struct_tm_tm_zone=no
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8074 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8075 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8077 cat >>confdefs.h <<_ACEOF
8078 #define HAVE_STRUCT_TM_TM_ZONE 1
8079 _ACEOF
8084 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8086 cat >>confdefs.h <<\_ACEOF
8087 #define HAVE_TM_ZONE 1
8088 _ACEOF
8090 else
8091 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8092 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8093 if test "${ac_cv_have_decl_tzname+set}" = set; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 else
8096 cat >conftest.$ac_ext <<_ACEOF
8097 /* confdefs.h. */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8102 #include <time.h>
8105 main ()
8107 #ifndef tzname
8108 (void) tzname;
8109 #endif
8112 return 0;
8114 _ACEOF
8115 rm -f conftest.$ac_objext
8116 if { (ac_try="$ac_compile"
8117 case "(($ac_try" in
8118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8120 esac
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_cv_have_decl_tzname=yes
8133 else
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_cv_have_decl_tzname=no
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8143 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8144 if test $ac_cv_have_decl_tzname = yes; then
8146 cat >>confdefs.h <<_ACEOF
8147 #define HAVE_DECL_TZNAME 1
8148 _ACEOF
8151 else
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_DECL_TZNAME 0
8154 _ACEOF
8160 { echo "$as_me:$LINENO: checking for tzname" >&5
8161 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8162 if test "${ac_cv_var_tzname+set}" = set; then
8163 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 else
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h. */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 #include <time.h>
8172 #if !HAVE_DECL_TZNAME
8173 extern char *tzname[];
8174 #endif
8177 main ()
8179 return tzname[0][0];
8181 return 0;
8183 _ACEOF
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (ac_try="$ac_link"
8186 case "(($ac_try" in
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8189 esac
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_link") 2>conftest.er1
8192 ac_status=$?
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } && {
8198 test -z "$ac_c_werror_flag" ||
8199 test ! -s conftest.err
8200 } && test -s conftest$ac_exeext &&
8201 $as_test_x conftest$ac_exeext; then
8202 ac_cv_var_tzname=yes
8203 else
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 ac_cv_var_tzname=no
8210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8211 conftest$ac_exeext conftest.$ac_ext
8213 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8214 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8215 if test $ac_cv_var_tzname = yes; then
8217 cat >>confdefs.h <<\_ACEOF
8218 #define HAVE_TZNAME 1
8219 _ACEOF
8224 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8225 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8226 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 #include <time.h>
8238 main ()
8240 static struct tm ac_aggr;
8241 if (ac_aggr.tm_gmtoff)
8242 return 0;
8244 return 0;
8246 _ACEOF
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8249 case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_compile") 2>conftest.er1
8255 ac_status=$?
8256 grep -v '^ *+' conftest.er1 >conftest.err
8257 rm -f conftest.er1
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } && {
8261 test -z "$ac_c_werror_flag" ||
8262 test ! -s conftest.err
8263 } && test -s conftest.$ac_objext; then
8264 ac_cv_member_struct_tm_tm_gmtoff=yes
8265 else
8266 echo "$as_me: failed program was:" >&5
8267 sed 's/^/| /' conftest.$ac_ext >&5
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h. */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 #include <time.h>
8278 main ()
8280 static struct tm ac_aggr;
8281 if (sizeof ac_aggr.tm_gmtoff)
8282 return 0;
8284 return 0;
8286 _ACEOF
8287 rm -f conftest.$ac_objext
8288 if { (ac_try="$ac_compile"
8289 case "(($ac_try" in
8290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291 *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294 (eval "$ac_compile") 2>conftest.er1
8295 ac_status=$?
8296 grep -v '^ *+' conftest.er1 >conftest.err
8297 rm -f conftest.er1
8298 cat conftest.err >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); } && {
8301 test -z "$ac_c_werror_flag" ||
8302 test ! -s conftest.err
8303 } && test -s conftest.$ac_objext; then
8304 ac_cv_member_struct_tm_tm_gmtoff=yes
8305 else
8306 echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8309 ac_cv_member_struct_tm_tm_gmtoff=no
8312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8318 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8319 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8321 cat >>confdefs.h <<\_ACEOF
8322 #define HAVE_TM_GMTOFF 1
8323 _ACEOF
8327 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8328 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8329 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 else
8332 cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h. */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h. */
8338 $ac_includes_default
8339 #if HAVE_SYS_SOCKET_H
8340 #include <sys/socket.h>
8341 #endif
8342 #if HAVE_NET_IF_H
8343 #include <net/if.h>
8344 #endif
8347 main ()
8349 static struct ifreq ac_aggr;
8350 if (ac_aggr.ifr_flags)
8351 return 0;
8353 return 0;
8355 _ACEOF
8356 rm -f conftest.$ac_objext
8357 if { (ac_try="$ac_compile"
8358 case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363 (eval "$ac_compile") 2>conftest.er1
8364 ac_status=$?
8365 grep -v '^ *+' conftest.er1 >conftest.err
8366 rm -f conftest.er1
8367 cat conftest.err >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } && {
8370 test -z "$ac_c_werror_flag" ||
8371 test ! -s conftest.err
8372 } && test -s conftest.$ac_objext; then
8373 ac_cv_member_struct_ifreq_ifr_flags=yes
8374 else
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8378 cat >conftest.$ac_ext <<_ACEOF
8379 /* confdefs.h. */
8380 _ACEOF
8381 cat confdefs.h >>conftest.$ac_ext
8382 cat >>conftest.$ac_ext <<_ACEOF
8383 /* end confdefs.h. */
8384 $ac_includes_default
8385 #if HAVE_SYS_SOCKET_H
8386 #include <sys/socket.h>
8387 #endif
8388 #if HAVE_NET_IF_H
8389 #include <net/if.h>
8390 #endif
8393 main ()
8395 static struct ifreq ac_aggr;
8396 if (sizeof ac_aggr.ifr_flags)
8397 return 0;
8399 return 0;
8401 _ACEOF
8402 rm -f conftest.$ac_objext
8403 if { (ac_try="$ac_compile"
8404 case "(($ac_try" in
8405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406 *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409 (eval "$ac_compile") 2>conftest.er1
8410 ac_status=$?
8411 grep -v '^ *+' conftest.er1 >conftest.err
8412 rm -f conftest.er1
8413 cat conftest.err >&5
8414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415 (exit $ac_status); } && {
8416 test -z "$ac_c_werror_flag" ||
8417 test ! -s conftest.err
8418 } && test -s conftest.$ac_objext; then
8419 ac_cv_member_struct_ifreq_ifr_flags=yes
8420 else
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 ac_cv_member_struct_ifreq_ifr_flags=no
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8432 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8433 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8434 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8436 cat >>confdefs.h <<_ACEOF
8437 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8438 _ACEOF
8442 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8443 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8444 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8445 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 else
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h. */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h. */
8453 $ac_includes_default
8454 #if HAVE_SYS_SOCKET_H
8455 #include <sys/socket.h>
8456 #endif
8457 #if HAVE_NET_IF_H
8458 #include <net/if.h>
8459 #endif
8462 main ()
8464 static struct ifreq ac_aggr;
8465 if (ac_aggr.ifr_hwaddr)
8466 return 0;
8468 return 0;
8470 _ACEOF
8471 rm -f conftest.$ac_objext
8472 if { (ac_try="$ac_compile"
8473 case "(($ac_try" in
8474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475 *) ac_try_echo=$ac_try;;
8476 esac
8477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478 (eval "$ac_compile") 2>conftest.er1
8479 ac_status=$?
8480 grep -v '^ *+' conftest.er1 >conftest.err
8481 rm -f conftest.er1
8482 cat conftest.err >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } && {
8485 test -z "$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8487 } && test -s conftest.$ac_objext; then
8488 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8489 else
8490 echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h. */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h. */
8499 $ac_includes_default
8500 #if HAVE_SYS_SOCKET_H
8501 #include <sys/socket.h>
8502 #endif
8503 #if HAVE_NET_IF_H
8504 #include <net/if.h>
8505 #endif
8508 main ()
8510 static struct ifreq ac_aggr;
8511 if (sizeof ac_aggr.ifr_hwaddr)
8512 return 0;
8514 return 0;
8516 _ACEOF
8517 rm -f conftest.$ac_objext
8518 if { (ac_try="$ac_compile"
8519 case "(($ac_try" in
8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8522 esac
8523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8524 (eval "$ac_compile") 2>conftest.er1
8525 ac_status=$?
8526 grep -v '^ *+' conftest.er1 >conftest.err
8527 rm -f conftest.er1
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } && {
8531 test -z "$ac_c_werror_flag" ||
8532 test ! -s conftest.err
8533 } && test -s conftest.$ac_objext; then
8534 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8535 else
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8548 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8549 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8551 cat >>confdefs.h <<_ACEOF
8552 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8553 _ACEOF
8557 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8558 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8559 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h. */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8568 $ac_includes_default
8569 #if HAVE_SYS_SOCKET_H
8570 #include <sys/socket.h>
8571 #endif
8572 #if HAVE_NET_IF_H
8573 #include <net/if.h>
8574 #endif
8577 main ()
8579 static struct ifreq ac_aggr;
8580 if (ac_aggr.ifr_netmask)
8581 return 0;
8583 return 0;
8585 _ACEOF
8586 rm -f conftest.$ac_objext
8587 if { (ac_try="$ac_compile"
8588 case "(($ac_try" in
8589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590 *) ac_try_echo=$ac_try;;
8591 esac
8592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593 (eval "$ac_compile") 2>conftest.er1
8594 ac_status=$?
8595 grep -v '^ *+' conftest.er1 >conftest.err
8596 rm -f conftest.er1
8597 cat conftest.err >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); } && {
8600 test -z "$ac_c_werror_flag" ||
8601 test ! -s conftest.err
8602 } && test -s conftest.$ac_objext; then
8603 ac_cv_member_struct_ifreq_ifr_netmask=yes
8604 else
8605 echo "$as_me: failed program was:" >&5
8606 sed 's/^/| /' conftest.$ac_ext >&5
8608 cat >conftest.$ac_ext <<_ACEOF
8609 /* confdefs.h. */
8610 _ACEOF
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 #if HAVE_SYS_SOCKET_H
8616 #include <sys/socket.h>
8617 #endif
8618 #if HAVE_NET_IF_H
8619 #include <net/if.h>
8620 #endif
8623 main ()
8625 static struct ifreq ac_aggr;
8626 if (sizeof ac_aggr.ifr_netmask)
8627 return 0;
8629 return 0;
8631 _ACEOF
8632 rm -f conftest.$ac_objext
8633 if { (ac_try="$ac_compile"
8634 case "(($ac_try" in
8635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636 *) ac_try_echo=$ac_try;;
8637 esac
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && {
8646 test -z "$ac_c_werror_flag" ||
8647 test ! -s conftest.err
8648 } && test -s conftest.$ac_objext; then
8649 ac_cv_member_struct_ifreq_ifr_netmask=yes
8650 else
8651 echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 ac_cv_member_struct_ifreq_ifr_netmask=no
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8662 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8663 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8664 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8666 cat >>confdefs.h <<_ACEOF
8667 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8668 _ACEOF
8672 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8673 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8674 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8675 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 else
8677 cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h. */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h. */
8683 $ac_includes_default
8684 #if HAVE_SYS_SOCKET_H
8685 #include <sys/socket.h>
8686 #endif
8687 #if HAVE_NET_IF_H
8688 #include <net/if.h>
8689 #endif
8692 main ()
8694 static struct ifreq ac_aggr;
8695 if (ac_aggr.ifr_broadaddr)
8696 return 0;
8698 return 0;
8700 _ACEOF
8701 rm -f conftest.$ac_objext
8702 if { (ac_try="$ac_compile"
8703 case "(($ac_try" in
8704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8705 *) ac_try_echo=$ac_try;;
8706 esac
8707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8708 (eval "$ac_compile") 2>conftest.er1
8709 ac_status=$?
8710 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1
8712 cat conftest.err >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } && {
8715 test -z "$ac_c_werror_flag" ||
8716 test ! -s conftest.err
8717 } && test -s conftest.$ac_objext; then
8718 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8719 else
8720 echo "$as_me: failed program was:" >&5
8721 sed 's/^/| /' conftest.$ac_ext >&5
8723 cat >conftest.$ac_ext <<_ACEOF
8724 /* confdefs.h. */
8725 _ACEOF
8726 cat confdefs.h >>conftest.$ac_ext
8727 cat >>conftest.$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8729 $ac_includes_default
8730 #if HAVE_SYS_SOCKET_H
8731 #include <sys/socket.h>
8732 #endif
8733 #if HAVE_NET_IF_H
8734 #include <net/if.h>
8735 #endif
8738 main ()
8740 static struct ifreq ac_aggr;
8741 if (sizeof ac_aggr.ifr_broadaddr)
8742 return 0;
8744 return 0;
8746 _ACEOF
8747 rm -f conftest.$ac_objext
8748 if { (ac_try="$ac_compile"
8749 case "(($ac_try" in
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8752 esac
8753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754 (eval "$ac_compile") 2>conftest.er1
8755 ac_status=$?
8756 grep -v '^ *+' conftest.er1 >conftest.err
8757 rm -f conftest.er1
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && {
8761 test -z "$ac_c_werror_flag" ||
8762 test ! -s conftest.err
8763 } && test -s conftest.$ac_objext; then
8764 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8765 else
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8769 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8777 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8778 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8779 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8781 cat >>confdefs.h <<_ACEOF
8782 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8783 _ACEOF
8787 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8788 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8789 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 else
8792 cat >conftest.$ac_ext <<_ACEOF
8793 /* confdefs.h. */
8794 _ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8798 $ac_includes_default
8799 #if HAVE_SYS_SOCKET_H
8800 #include <sys/socket.h>
8801 #endif
8802 #if HAVE_NET_IF_H
8803 #include <net/if.h>
8804 #endif
8807 main ()
8809 static struct ifreq ac_aggr;
8810 if (ac_aggr.ifr_addr)
8811 return 0;
8813 return 0;
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (ac_try="$ac_compile"
8818 case "(($ac_try" in
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8821 esac
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_compile") 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } && {
8830 test -z "$ac_c_werror_flag" ||
8831 test ! -s conftest.err
8832 } && test -s conftest.$ac_objext; then
8833 ac_cv_member_struct_ifreq_ifr_addr=yes
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 $ac_includes_default
8845 #if HAVE_SYS_SOCKET_H
8846 #include <sys/socket.h>
8847 #endif
8848 #if HAVE_NET_IF_H
8849 #include <net/if.h>
8850 #endif
8853 main ()
8855 static struct ifreq ac_aggr;
8856 if (sizeof ac_aggr.ifr_addr)
8857 return 0;
8859 return 0;
8861 _ACEOF
8862 rm -f conftest.$ac_objext
8863 if { (ac_try="$ac_compile"
8864 case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8867 esac
8868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8869 (eval "$ac_compile") 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_c_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest.$ac_objext; then
8879 ac_cv_member_struct_ifreq_ifr_addr=yes
8880 else
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 ac_cv_member_struct_ifreq_ifr_addr=no
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8892 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8893 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8894 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8896 cat >>confdefs.h <<_ACEOF
8897 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8898 _ACEOF
8905 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8906 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8907 if test "$ac_cv_prog_cc_c89" != no; then
8908 { echo "$as_me:$LINENO: result: yes" >&5
8909 echo "${ECHO_T}yes" >&6; }
8911 cat >>confdefs.h <<\_ACEOF
8912 #define PROTOTYPES 1
8913 _ACEOF
8916 cat >>confdefs.h <<\_ACEOF
8917 #define __PROTOTYPES 1
8918 _ACEOF
8920 else
8921 { echo "$as_me:$LINENO: result: no" >&5
8922 echo "${ECHO_T}no" >&6; }
8925 { echo "$as_me:$LINENO: checking for working volatile" >&5
8926 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8927 if test "${ac_cv_c_volatile+set}" = set; then
8928 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930 cat >conftest.$ac_ext <<_ACEOF
8931 /* confdefs.h. */
8932 _ACEOF
8933 cat confdefs.h >>conftest.$ac_ext
8934 cat >>conftest.$ac_ext <<_ACEOF
8935 /* end confdefs.h. */
8938 main ()
8941 volatile int x;
8942 int * volatile y = (int *) 0;
8943 return !x && !y;
8945 return 0;
8947 _ACEOF
8948 rm -f conftest.$ac_objext
8949 if { (ac_try="$ac_compile"
8950 case "(($ac_try" in
8951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8952 *) ac_try_echo=$ac_try;;
8953 esac
8954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8955 (eval "$ac_compile") 2>conftest.er1
8956 ac_status=$?
8957 grep -v '^ *+' conftest.er1 >conftest.err
8958 rm -f conftest.er1
8959 cat conftest.err >&5
8960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8961 (exit $ac_status); } && {
8962 test -z "$ac_c_werror_flag" ||
8963 test ! -s conftest.err
8964 } && test -s conftest.$ac_objext; then
8965 ac_cv_c_volatile=yes
8966 else
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 ac_cv_c_volatile=no
8973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8976 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8977 if test $ac_cv_c_volatile = no; then
8979 cat >>confdefs.h <<\_ACEOF
8980 #define volatile
8981 _ACEOF
8985 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8986 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8987 if test "${ac_cv_c_const+set}" = set; then
8988 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 else
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h. */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8998 main ()
9000 /* FIXME: Include the comments suggested by Paul. */
9001 #ifndef __cplusplus
9002 /* Ultrix mips cc rejects this. */
9003 typedef int charset[2];
9004 const charset cs;
9005 /* SunOS 4.1.1 cc rejects this. */
9006 char const *const *pcpcc;
9007 char **ppc;
9008 /* NEC SVR4.0.2 mips cc rejects this. */
9009 struct point {int x, y;};
9010 static struct point const zero = {0,0};
9011 /* AIX XL C 1.02.0.0 rejects this.
9012 It does not let you subtract one const X* pointer from another in
9013 an arm of an if-expression whose if-part is not a constant
9014 expression */
9015 const char *g = "string";
9016 pcpcc = &g + (g ? g-g : 0);
9017 /* HPUX 7.0 cc rejects these. */
9018 ++pcpcc;
9019 ppc = (char**) pcpcc;
9020 pcpcc = (char const *const *) ppc;
9021 { /* SCO 3.2v4 cc rejects this. */
9022 char *t;
9023 char const *s = 0 ? (char *) 0 : (char const *) 0;
9025 *t++ = 0;
9026 if (s) return 0;
9028 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9029 int x[] = {25, 17};
9030 const int *foo = &x[0];
9031 ++foo;
9033 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9034 typedef const int *iptr;
9035 iptr p = 0;
9036 ++p;
9038 { /* AIX XL C 1.02.0.0 rejects this saying
9039 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9040 struct s { int j; const int *ap[3]; };
9041 struct s *b; b->j = 5;
9043 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9044 const int foo = 10;
9045 if (!foo) return 0;
9047 return !cs[0] && !zero.x;
9048 #endif
9051 return 0;
9053 _ACEOF
9054 rm -f conftest.$ac_objext
9055 if { (ac_try="$ac_compile"
9056 case "(($ac_try" in
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9059 esac
9060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061 (eval "$ac_compile") 2>conftest.er1
9062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest.$ac_objext; then
9071 ac_cv_c_const=yes
9072 else
9073 echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9076 ac_cv_c_const=no
9079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9081 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9082 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9083 if test $ac_cv_c_const = no; then
9085 cat >>confdefs.h <<\_ACEOF
9086 #define const
9087 _ACEOF
9091 { echo "$as_me:$LINENO: checking for void * support" >&5
9092 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9093 if test "${emacs_cv_void_star+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 else
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9104 main ()
9106 void * foo;
9108 return 0;
9110 _ACEOF
9111 rm -f conftest.$ac_objext
9112 if { (ac_try="$ac_compile"
9113 case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116 esac
9117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_compile") 2>conftest.er1
9119 ac_status=$?
9120 grep -v '^ *+' conftest.er1 >conftest.err
9121 rm -f conftest.er1
9122 cat conftest.err >&5
9123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124 (exit $ac_status); } && {
9125 test -z "$ac_c_werror_flag" ||
9126 test ! -s conftest.err
9127 } && test -s conftest.$ac_objext; then
9128 emacs_cv_void_star=yes
9129 else
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 emacs_cv_void_star=no
9136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9138 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9139 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9140 if test $emacs_cv_void_star = yes; then
9141 cat >>confdefs.h <<\_ACEOF
9142 #define POINTER_TYPE void
9143 _ACEOF
9145 else
9146 cat >>confdefs.h <<\_ACEOF
9147 #define POINTER_TYPE char
9148 _ACEOF
9156 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9157 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9158 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9159 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 else
9162 cat >conftest.make <<\_ACEOF
9163 SHELL = /bin/sh
9164 all:
9165 @echo '@@@%%%=$(MAKE)=@@@%%%'
9166 _ACEOF
9167 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9168 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9169 *@@@%%%=?*=@@@%%%*)
9170 eval ac_cv_prog_make_${ac_make}_set=yes;;
9172 eval ac_cv_prog_make_${ac_make}_set=no;;
9173 esac
9174 rm -f conftest.make
9176 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9177 { echo "$as_me:$LINENO: result: yes" >&5
9178 echo "${ECHO_T}yes" >&6; }
9179 SET_MAKE=
9180 else
9181 { echo "$as_me:$LINENO: result: no" >&5
9182 echo "${ECHO_T}no" >&6; }
9183 SET_MAKE="MAKE=${MAKE-make}"
9187 { echo "$as_me:$LINENO: checking for long file names" >&5
9188 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9189 if test "${ac_cv_sys_long_file_names+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 else
9192 ac_cv_sys_long_file_names=yes
9193 # Test for long file names in all the places we know might matter:
9194 # . the current directory, where building will happen
9195 # $prefix/lib where we will be installing things
9196 # $exec_prefix/lib likewise
9197 # $TMPDIR if set, where it might want to write temporary files
9198 # /tmp where it might want to write temporary files
9199 # /var/tmp likewise
9200 # /usr/tmp likewise
9201 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9202 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9203 # in the usual case where exec_prefix is '${prefix}'.
9204 case $ac_dir in #(
9205 . | /* | ?:[\\/]*) ;; #(
9206 *) continue;;
9207 esac
9208 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9209 ac_xdir=$ac_dir/cf$$
9210 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9211 ac_tf1=$ac_xdir/conftest9012345
9212 ac_tf2=$ac_xdir/conftest9012346
9213 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9214 ac_cv_sys_long_file_names=no
9215 rm -f -r "$ac_xdir" 2>/dev/null
9216 test $ac_cv_sys_long_file_names = no && break
9217 done
9219 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9220 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9221 if test $ac_cv_sys_long_file_names = yes; then
9223 cat >>confdefs.h <<\_ACEOF
9224 #define HAVE_LONG_FILE_NAMES 1
9225 _ACEOF
9230 #### Choose a window system.
9232 { echo "$as_me:$LINENO: checking for X" >&5
9233 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9236 # Check whether --with-x was given.
9237 if test "${with_x+set}" = set; then
9238 withval=$with_x;
9241 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9242 if test "x$with_x" = xno; then
9243 # The user explicitly disabled X.
9244 have_x=disabled
9245 else
9246 case $x_includes,$x_libraries in #(
9247 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9248 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9249 { (exit 1); exit 1; }; };; #(
9250 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 else
9253 # One or both of the vars are not set, and there is no cached value.
9254 ac_x_includes=no ac_x_libraries=no
9255 rm -f -r conftest.dir
9256 if mkdir conftest.dir; then
9257 cd conftest.dir
9258 cat >Imakefile <<'_ACEOF'
9259 incroot:
9260 @echo incroot='${INCROOT}'
9261 usrlibdir:
9262 @echo usrlibdir='${USRLIBDIR}'
9263 libdir:
9264 @echo libdir='${LIBDIR}'
9265 _ACEOF
9266 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9267 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9268 for ac_var in incroot usrlibdir libdir; do
9269 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9270 done
9271 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9272 for ac_extension in a so sl; do
9273 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9274 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9275 ac_im_usrlibdir=$ac_im_libdir; break
9277 done
9278 # Screen out bogus values from the imake configuration. They are
9279 # bogus both because they are the default anyway, and because
9280 # using them would break gcc on systems where it needs fixed includes.
9281 case $ac_im_incroot in
9282 /usr/include) ac_x_includes= ;;
9283 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9284 esac
9285 case $ac_im_usrlibdir in
9286 /usr/lib | /lib) ;;
9287 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9288 esac
9290 cd ..
9291 rm -f -r conftest.dir
9294 # Standard set of common directories for X headers.
9295 # Check X11 before X11Rn because it is often a symlink to the current release.
9296 ac_x_header_dirs='
9297 /usr/X11/include
9298 /usr/X11R6/include
9299 /usr/X11R5/include
9300 /usr/X11R4/include
9302 /usr/include/X11
9303 /usr/include/X11R6
9304 /usr/include/X11R5
9305 /usr/include/X11R4
9307 /usr/local/X11/include
9308 /usr/local/X11R6/include
9309 /usr/local/X11R5/include
9310 /usr/local/X11R4/include
9312 /usr/local/include/X11
9313 /usr/local/include/X11R6
9314 /usr/local/include/X11R5
9315 /usr/local/include/X11R4
9317 /usr/X386/include
9318 /usr/x386/include
9319 /usr/XFree86/include/X11
9321 /usr/include
9322 /usr/local/include
9323 /usr/unsupported/include
9324 /usr/athena/include
9325 /usr/local/x11r5/include
9326 /usr/lpp/Xamples/include
9328 /usr/openwin/include
9329 /usr/openwin/share/include'
9331 if test "$ac_x_includes" = no; then
9332 # Guess where to find include files, by looking for Xlib.h.
9333 # First, try using that file with no special directory specified.
9334 cat >conftest.$ac_ext <<_ACEOF
9335 /* confdefs.h. */
9336 _ACEOF
9337 cat confdefs.h >>conftest.$ac_ext
9338 cat >>conftest.$ac_ext <<_ACEOF
9339 /* end confdefs.h. */
9340 #include <X11/Xlib.h>
9341 _ACEOF
9342 if { (ac_try="$ac_cpp conftest.$ac_ext"
9343 case "(($ac_try" in
9344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345 *) ac_try_echo=$ac_try;;
9346 esac
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9349 ac_status=$?
9350 grep -v '^ *+' conftest.er1 >conftest.err
9351 rm -f conftest.er1
9352 cat conftest.err >&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } >/dev/null && {
9355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9356 test ! -s conftest.err
9357 }; then
9358 # We can compile using X headers with no special include directory.
9359 ac_x_includes=
9360 else
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9364 for ac_dir in $ac_x_header_dirs; do
9365 if test -r "$ac_dir/X11/Xlib.h"; then
9366 ac_x_includes=$ac_dir
9367 break
9369 done
9372 rm -f conftest.err conftest.$ac_ext
9373 fi # $ac_x_includes = no
9375 if test "$ac_x_libraries" = no; then
9376 # Check for the libraries.
9377 # See if we find them without any special options.
9378 # Don't add to $LIBS permanently.
9379 ac_save_LIBS=$LIBS
9380 LIBS="-lX11 $LIBS"
9381 cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h. */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 #include <X11/Xlib.h>
9389 main ()
9391 XrmInitialize ()
9393 return 0;
9395 _ACEOF
9396 rm -f conftest.$ac_objext conftest$ac_exeext
9397 if { (ac_try="$ac_link"
9398 case "(($ac_try" in
9399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9400 *) ac_try_echo=$ac_try;;
9401 esac
9402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9403 (eval "$ac_link") 2>conftest.er1
9404 ac_status=$?
9405 grep -v '^ *+' conftest.er1 >conftest.err
9406 rm -f conftest.er1
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } && {
9410 test -z "$ac_c_werror_flag" ||
9411 test ! -s conftest.err
9412 } && test -s conftest$ac_exeext &&
9413 $as_test_x conftest$ac_exeext; then
9414 LIBS=$ac_save_LIBS
9415 # We can link X programs with no special library path.
9416 ac_x_libraries=
9417 else
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9421 LIBS=$ac_save_LIBS
9422 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9424 # Don't even attempt the hair of trying to link an X program!
9425 for ac_extension in a so sl; do
9426 if test -r "$ac_dir/libX11.$ac_extension"; then
9427 ac_x_libraries=$ac_dir
9428 break 2
9430 done
9431 done
9434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9435 conftest$ac_exeext conftest.$ac_ext
9436 fi # $ac_x_libraries = no
9438 case $ac_x_includes,$ac_x_libraries in #(
9439 no,* | *,no | *\'*)
9440 # Didn't find X, or a directory has "'" in its name.
9441 ac_cv_have_x="have_x=no";; #(
9443 # Record where we found X for the cache.
9444 ac_cv_have_x="have_x=yes\
9445 ac_x_includes='$ac_x_includes'\
9446 ac_x_libraries='$ac_x_libraries'"
9447 esac
9449 ;; #(
9450 *) have_x=yes;;
9451 esac
9452 eval "$ac_cv_have_x"
9453 fi # $with_x != no
9455 if test "$have_x" != yes; then
9456 { echo "$as_me:$LINENO: result: $have_x" >&5
9457 echo "${ECHO_T}$have_x" >&6; }
9458 no_x=yes
9459 else
9460 # If each of the values was on the command line, it overrides each guess.
9461 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9462 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9463 # Update the cache value to reflect the command line values.
9464 ac_cv_have_x="have_x=yes\
9465 ac_x_includes='$x_includes'\
9466 ac_x_libraries='$x_libraries'"
9467 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9468 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9471 if test "$no_x" = yes; then
9472 window_system=none
9473 else
9474 window_system=x11
9477 if test "${x_libraries}" != NONE; then
9478 if test -n "${x_libraries}"; then
9479 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9480 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9482 x_default_search_path=""
9483 x_search_path=${x_libraries}
9484 if test -z "${x_search_path}"; then
9485 x_search_path=/usr/lib
9487 for x_library in `echo ${x_search_path}: | \
9488 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9489 x_search_path="\
9490 ${x_library}/X11/%L/%T/%N%C%S:\
9491 ${x_library}/X11/%l/%T/%N%C%S:\
9492 ${x_library}/X11/%T/%N%C%S:\
9493 ${x_library}/X11/%L/%T/%N%S:\
9494 ${x_library}/X11/%l/%T/%N%S:\
9495 ${x_library}/X11/%T/%N%S"
9496 if test x"${x_default_search_path}" = x; then
9497 x_default_search_path=${x_search_path}
9498 else
9499 x_default_search_path="${x_search_path}:${x_default_search_path}"
9501 done
9503 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9504 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9507 if test x"${x_includes}" = x; then
9508 bitmapdir=/usr/include/X11/bitmaps
9509 else
9510 # accumulate include directories that have X11 bitmap subdirectories
9511 bmd_acc="dummyval"
9512 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9513 if test -d "${bmd}/X11/bitmaps"; then
9514 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9516 if test -d "${bmd}/bitmaps"; then
9517 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9519 done
9520 if test ${bmd_acc} != "dummyval"; then
9521 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9525 HAVE_CARBON=no
9526 if test "${with_carbon}" != no; then
9527 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9528 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9529 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9530 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9531 echo $ECHO_N "(cached) $ECHO_C" >&6
9533 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9534 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9535 else
9536 # Is the header compilable?
9537 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9538 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9539 cat >conftest.$ac_ext <<_ACEOF
9540 /* confdefs.h. */
9541 _ACEOF
9542 cat confdefs.h >>conftest.$ac_ext
9543 cat >>conftest.$ac_ext <<_ACEOF
9544 /* end confdefs.h. */
9545 $ac_includes_default
9546 #include <Carbon/Carbon.h>
9547 _ACEOF
9548 rm -f conftest.$ac_objext
9549 if { (ac_try="$ac_compile"
9550 case "(($ac_try" in
9551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9553 esac
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_compile") 2>conftest.er1
9556 ac_status=$?
9557 grep -v '^ *+' conftest.er1 >conftest.err
9558 rm -f conftest.er1
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } && {
9562 test -z "$ac_c_werror_flag" ||
9563 test ! -s conftest.err
9564 } && test -s conftest.$ac_objext; then
9565 ac_header_compiler=yes
9566 else
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.$ac_ext >&5
9570 ac_header_compiler=no
9573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9575 echo "${ECHO_T}$ac_header_compiler" >&6; }
9577 # Is the header present?
9578 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9579 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h. */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 #include <Carbon/Carbon.h>
9587 _ACEOF
9588 if { (ac_try="$ac_cpp conftest.$ac_ext"
9589 case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592 esac
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9595 ac_status=$?
9596 grep -v '^ *+' conftest.er1 >conftest.err
9597 rm -f conftest.er1
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } >/dev/null && {
9601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9602 test ! -s conftest.err
9603 }; then
9604 ac_header_preproc=yes
9605 else
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 ac_header_preproc=no
9612 rm -f conftest.err conftest.$ac_ext
9613 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9614 echo "${ECHO_T}$ac_header_preproc" >&6; }
9616 # So? What about this header?
9617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9618 yes:no: )
9619 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9620 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9622 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9623 ac_header_preproc=yes
9625 no:yes:* )
9626 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9627 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9629 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9630 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9631 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9632 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9633 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9635 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9636 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9637 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9640 esac
9641 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9642 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9643 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 else
9646 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9648 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9649 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9652 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9653 HAVE_CARBON=yes
9658 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9659 if test "${with_carbon+set}" != set \
9660 && test "${carbon_appdir_x+set}" != set; then
9661 for var in with_x with_x_toolkit with_gtk with_xim \
9662 with_xpm with_jpeg with_tiff with_gif with_png; do
9663 if eval test \"\${$var+set}\" = set; then
9664 HAVE_CARBON=no
9665 break
9667 done
9670 if test "${HAVE_CARBON}" = yes; then
9671 window_system=mac
9674 case "${window_system}" in
9675 x11 )
9676 HAVE_X_WINDOWS=yes
9677 HAVE_X11=yes
9678 case "${with_x_toolkit}" in
9679 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9680 motif ) USE_X_TOOLKIT=MOTIF ;;
9681 gtk ) with_gtk=yes
9682 USE_X_TOOLKIT=none ;;
9683 no ) USE_X_TOOLKIT=none ;;
9685 if test x"$with_gtk" = xyes; then
9686 USE_X_TOOLKIT=none
9687 else
9688 USE_X_TOOLKIT=maybe
9691 esac
9693 mac | none )
9694 HAVE_X_WINDOWS=no
9695 HAVE_X11=no
9696 USE_X_TOOLKIT=none
9698 esac
9700 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9701 # Extract the first word of "X", so it can be a program name with args.
9702 set dummy X; ac_word=$2
9703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9705 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708 if test -n "$HAVE_XSERVER"; then
9709 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9710 else
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9712 for as_dir in $PATH
9714 IFS=$as_save_IFS
9715 test -z "$as_dir" && as_dir=.
9716 for ac_exec_ext in '' $ac_executable_extensions; do
9717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9718 ac_cv_prog_HAVE_XSERVER="true"
9719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9720 break 2
9722 done
9723 done
9724 IFS=$as_save_IFS
9726 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9729 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9730 if test -n "$HAVE_XSERVER"; then
9731 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9732 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9733 else
9734 { echo "$as_me:$LINENO: result: no" >&5
9735 echo "${ECHO_T}no" >&6; }
9739 if test "$HAVE_XSERVER" = true ||
9740 test -n "$DISPLAY" ||
9741 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9742 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9743 were found. You should install the relevant development files for X
9744 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9745 sure you have development files for image handling, i.e.
9746 tiff, gif, jpeg, png and xpm.
9747 If you are sure you want Emacs compiled without X window support, pass
9748 --without-x
9749 to configure." >&5
9750 echo "$as_me: error: You seem to be running X, but no X development libraries
9751 were found. You should install the relevant development files for X
9752 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9753 sure you have development files for image handling, i.e.
9754 tiff, gif, jpeg, png and xpm.
9755 If you are sure you want Emacs compiled without X window support, pass
9756 --without-x
9757 to configure." >&2;}
9758 { (exit 1); exit 1; }; }
9762 ### If we're using X11, we should use the X menu package.
9763 HAVE_MENUS=no
9764 case ${HAVE_X11} in
9765 yes ) HAVE_MENUS=yes ;;
9766 esac
9768 if test "${opsys}" = "hpux9"; then
9769 case "${x_libraries}" in
9770 *X11R4* )
9771 opsysfile="s/hpux9-x11r4.h"
9773 esac
9776 if test "${opsys}" = "hpux9shr"; then
9777 case "${x_libraries}" in
9778 *X11R4* )
9779 opsysfile="s/hpux9shxr4.h"
9781 esac
9784 ### Compute the unexec source name from the object name.
9785 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9787 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9788 # Assume not, until told otherwise.
9789 GNU_MALLOC=yes
9790 doug_lea_malloc=yes
9791 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9792 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9793 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9794 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 else
9796 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h. */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9804 #define malloc_get_state innocuous_malloc_get_state
9806 /* System header to define __stub macros and hopefully few prototypes,
9807 which can conflict with char malloc_get_state (); below.
9808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9809 <limits.h> exists even on freestanding compilers. */
9811 #ifdef __STDC__
9812 # include <limits.h>
9813 #else
9814 # include <assert.h>
9815 #endif
9817 #undef malloc_get_state
9819 /* Override any GCC internal prototype to avoid an error.
9820 Use char because int might match the return type of a GCC
9821 builtin and then its argument prototype would still apply. */
9822 #ifdef __cplusplus
9823 extern "C"
9824 #endif
9825 char malloc_get_state ();
9826 /* The GNU C library defines this for functions which it implements
9827 to always fail with ENOSYS. Some functions are actually named
9828 something starting with __ and the normal name is an alias. */
9829 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9830 choke me
9831 #endif
9834 main ()
9836 return malloc_get_state ();
9838 return 0;
9840 _ACEOF
9841 rm -f conftest.$ac_objext conftest$ac_exeext
9842 if { (ac_try="$ac_link"
9843 case "(($ac_try" in
9844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845 *) ac_try_echo=$ac_try;;
9846 esac
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848 (eval "$ac_link") 2>conftest.er1
9849 ac_status=$?
9850 grep -v '^ *+' conftest.er1 >conftest.err
9851 rm -f conftest.er1
9852 cat conftest.err >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); } && {
9855 test -z "$ac_c_werror_flag" ||
9856 test ! -s conftest.err
9857 } && test -s conftest$ac_exeext &&
9858 $as_test_x conftest$ac_exeext; then
9859 ac_cv_func_malloc_get_state=yes
9860 else
9861 echo "$as_me: failed program was:" >&5
9862 sed 's/^/| /' conftest.$ac_ext >&5
9864 ac_cv_func_malloc_get_state=no
9867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9868 conftest$ac_exeext conftest.$ac_ext
9870 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9871 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9872 if test $ac_cv_func_malloc_get_state = yes; then
9874 else
9875 doug_lea_malloc=no
9878 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9879 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9880 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h. */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9891 #define malloc_set_state innocuous_malloc_set_state
9893 /* System header to define __stub macros and hopefully few prototypes,
9894 which can conflict with char malloc_set_state (); below.
9895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9896 <limits.h> exists even on freestanding compilers. */
9898 #ifdef __STDC__
9899 # include <limits.h>
9900 #else
9901 # include <assert.h>
9902 #endif
9904 #undef malloc_set_state
9906 /* Override any GCC internal prototype to avoid an error.
9907 Use char because int might match the return type of a GCC
9908 builtin and then its argument prototype would still apply. */
9909 #ifdef __cplusplus
9910 extern "C"
9911 #endif
9912 char malloc_set_state ();
9913 /* The GNU C library defines this for functions which it implements
9914 to always fail with ENOSYS. Some functions are actually named
9915 something starting with __ and the normal name is an alias. */
9916 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9917 choke me
9918 #endif
9921 main ()
9923 return malloc_set_state ();
9925 return 0;
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (ac_try="$ac_link"
9930 case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933 esac
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_link") 2>conftest.er1
9936 ac_status=$?
9937 grep -v '^ *+' conftest.er1 >conftest.err
9938 rm -f conftest.er1
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest$ac_exeext &&
9945 $as_test_x conftest$ac_exeext; then
9946 ac_cv_func_malloc_set_state=yes
9947 else
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_func_malloc_set_state=no
9954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9955 conftest$ac_exeext conftest.$ac_ext
9957 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9958 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9959 if test $ac_cv_func_malloc_set_state = yes; then
9961 else
9962 doug_lea_malloc=no
9965 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9966 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9967 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970 cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h. */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h. */
9976 extern void (* __after_morecore_hook)();
9978 main ()
9980 __after_morecore_hook = 0
9982 return 0;
9984 _ACEOF
9985 rm -f conftest.$ac_objext conftest$ac_exeext
9986 if { (ac_try="$ac_link"
9987 case "(($ac_try" in
9988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9989 *) ac_try_echo=$ac_try;;
9990 esac
9991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9992 (eval "$ac_link") 2>conftest.er1
9993 ac_status=$?
9994 grep -v '^ *+' conftest.er1 >conftest.err
9995 rm -f conftest.er1
9996 cat conftest.err >&5
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } && {
9999 test -z "$ac_c_werror_flag" ||
10000 test ! -s conftest.err
10001 } && test -s conftest$ac_exeext &&
10002 $as_test_x conftest$ac_exeext; then
10003 emacs_cv_var___after_morecore_hook=yes
10004 else
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 emacs_cv_var___after_morecore_hook=no
10011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10012 conftest$ac_exeext conftest.$ac_ext
10014 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10015 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10016 if test $emacs_cv_var___after_morecore_hook = no; then
10017 doug_lea_malloc=no
10019 if test "${system_malloc}" = "yes"; then
10020 GNU_MALLOC=no
10021 GNU_MALLOC_reason="
10022 (The GNU allocators don't work with this system configuration.)"
10024 if test "$doug_lea_malloc" = "yes" ; then
10025 if test "$GNU_MALLOC" = yes ; then
10026 GNU_MALLOC_reason="
10027 (Using Doug Lea's new malloc from the GNU C Library.)"
10030 cat >>confdefs.h <<\_ACEOF
10031 #define DOUG_LEA_MALLOC 1
10032 _ACEOF
10036 if test x"${REL_ALLOC}" = x; then
10037 REL_ALLOC=${GNU_MALLOC}
10043 for ac_header in stdlib.h unistd.h
10045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10050 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 ac_res=`eval echo '${'$as_ac_Header'}'`
10053 { echo "$as_me:$LINENO: result: $ac_res" >&5
10054 echo "${ECHO_T}$ac_res" >&6; }
10055 else
10056 # Is the header compilable?
10057 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10059 cat >conftest.$ac_ext <<_ACEOF
10060 /* confdefs.h. */
10061 _ACEOF
10062 cat confdefs.h >>conftest.$ac_ext
10063 cat >>conftest.$ac_ext <<_ACEOF
10064 /* end confdefs.h. */
10065 $ac_includes_default
10066 #include <$ac_header>
10067 _ACEOF
10068 rm -f conftest.$ac_objext
10069 if { (ac_try="$ac_compile"
10070 case "(($ac_try" in
10071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10073 esac
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_compile") 2>conftest.er1
10076 ac_status=$?
10077 grep -v '^ *+' conftest.er1 >conftest.err
10078 rm -f conftest.er1
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } && {
10082 test -z "$ac_c_werror_flag" ||
10083 test ! -s conftest.err
10084 } && test -s conftest.$ac_objext; then
10085 ac_header_compiler=yes
10086 else
10087 echo "$as_me: failed program was:" >&5
10088 sed 's/^/| /' conftest.$ac_ext >&5
10090 ac_header_compiler=no
10093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10095 echo "${ECHO_T}$ac_header_compiler" >&6; }
10097 # Is the header present?
10098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10100 cat >conftest.$ac_ext <<_ACEOF
10101 /* confdefs.h. */
10102 _ACEOF
10103 cat confdefs.h >>conftest.$ac_ext
10104 cat >>conftest.$ac_ext <<_ACEOF
10105 /* end confdefs.h. */
10106 #include <$ac_header>
10107 _ACEOF
10108 if { (ac_try="$ac_cpp conftest.$ac_ext"
10109 case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112 esac
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } >/dev/null && {
10121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10122 test ! -s conftest.err
10123 }; then
10124 ac_header_preproc=yes
10125 else
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 ac_header_preproc=no
10132 rm -f conftest.err conftest.$ac_ext
10133 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10134 echo "${ECHO_T}$ac_header_preproc" >&6; }
10136 # So? What about this header?
10137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10138 yes:no: )
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10140 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10143 ac_header_preproc=yes
10145 no:yes:* )
10146 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10147 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10148 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10149 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10150 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10151 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10152 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10153 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10156 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10157 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10160 esac
10161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166 eval "$as_ac_Header=\$ac_header_preproc"
10168 ac_res=`eval echo '${'$as_ac_Header'}'`
10169 { echo "$as_me:$LINENO: result: $ac_res" >&5
10170 echo "${ECHO_T}$ac_res" >&6; }
10173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10174 cat >>confdefs.h <<_ACEOF
10175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10176 _ACEOF
10180 done
10183 for ac_func in getpagesize
10185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10186 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10188 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10189 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 else
10191 cat >conftest.$ac_ext <<_ACEOF
10192 /* confdefs.h. */
10193 _ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10199 #define $ac_func innocuous_$ac_func
10201 /* System header to define __stub macros and hopefully few prototypes,
10202 which can conflict with char $ac_func (); below.
10203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204 <limits.h> exists even on freestanding compilers. */
10206 #ifdef __STDC__
10207 # include <limits.h>
10208 #else
10209 # include <assert.h>
10210 #endif
10212 #undef $ac_func
10214 /* Override any GCC internal prototype to avoid an error.
10215 Use char because int might match the return type of a GCC
10216 builtin and then its argument prototype would still apply. */
10217 #ifdef __cplusplus
10218 extern "C"
10219 #endif
10220 char $ac_func ();
10221 /* The GNU C library defines this for functions which it implements
10222 to always fail with ENOSYS. Some functions are actually named
10223 something starting with __ and the normal name is an alias. */
10224 #if defined __stub_$ac_func || defined __stub___$ac_func
10225 choke me
10226 #endif
10229 main ()
10231 return $ac_func ();
10233 return 0;
10235 _ACEOF
10236 rm -f conftest.$ac_objext conftest$ac_exeext
10237 if { (ac_try="$ac_link"
10238 case "(($ac_try" in
10239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10240 *) ac_try_echo=$ac_try;;
10241 esac
10242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10243 (eval "$ac_link") 2>conftest.er1
10244 ac_status=$?
10245 grep -v '^ *+' conftest.er1 >conftest.err
10246 rm -f conftest.er1
10247 cat conftest.err >&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); } && {
10250 test -z "$ac_c_werror_flag" ||
10251 test ! -s conftest.err
10252 } && test -s conftest$ac_exeext &&
10253 $as_test_x conftest$ac_exeext; then
10254 eval "$as_ac_var=yes"
10255 else
10256 echo "$as_me: failed program was:" >&5
10257 sed 's/^/| /' conftest.$ac_ext >&5
10259 eval "$as_ac_var=no"
10262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10263 conftest$ac_exeext conftest.$ac_ext
10265 ac_res=`eval echo '${'$as_ac_var'}'`
10266 { echo "$as_me:$LINENO: result: $ac_res" >&5
10267 echo "${ECHO_T}$ac_res" >&6; }
10268 if test `eval echo '${'$as_ac_var'}'` = yes; then
10269 cat >>confdefs.h <<_ACEOF
10270 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10271 _ACEOF
10274 done
10276 { echo "$as_me:$LINENO: checking for working mmap" >&5
10277 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10278 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 if test "$cross_compiling" = yes; then
10282 ac_cv_func_mmap_fixed_mapped=no
10283 else
10284 cat >conftest.$ac_ext <<_ACEOF
10285 /* confdefs.h. */
10286 _ACEOF
10287 cat confdefs.h >>conftest.$ac_ext
10288 cat >>conftest.$ac_ext <<_ACEOF
10289 /* end confdefs.h. */
10290 $ac_includes_default
10291 /* malloc might have been renamed as rpl_malloc. */
10292 #undef malloc
10294 /* Thanks to Mike Haertel and Jim Avera for this test.
10295 Here is a matrix of mmap possibilities:
10296 mmap private not fixed
10297 mmap private fixed at somewhere currently unmapped
10298 mmap private fixed at somewhere already mapped
10299 mmap shared not fixed
10300 mmap shared fixed at somewhere currently unmapped
10301 mmap shared fixed at somewhere already mapped
10302 For private mappings, we should verify that changes cannot be read()
10303 back from the file, nor mmap's back from the file at a different
10304 address. (There have been systems where private was not correctly
10305 implemented like the infamous i386 svr4.0, and systems where the
10306 VM page cache was not coherent with the file system buffer cache
10307 like early versions of FreeBSD and possibly contemporary NetBSD.)
10308 For shared mappings, we should conversely verify that changes get
10309 propagated back to all the places they're supposed to be.
10311 Grep wants private fixed already mapped.
10312 The main things grep needs to know about mmap are:
10313 * does it exist and is it safe to write into the mmap'd area
10314 * how to use it (BSD variants) */
10316 #include <fcntl.h>
10317 #include <sys/mman.h>
10319 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10320 char *malloc ();
10321 #endif
10323 /* This mess was copied from the GNU getpagesize.h. */
10324 #ifndef HAVE_GETPAGESIZE
10325 /* Assume that all systems that can run configure have sys/param.h. */
10326 # ifndef HAVE_SYS_PARAM_H
10327 # define HAVE_SYS_PARAM_H 1
10328 # endif
10330 # ifdef _SC_PAGESIZE
10331 # define getpagesize() sysconf(_SC_PAGESIZE)
10332 # else /* no _SC_PAGESIZE */
10333 # ifdef HAVE_SYS_PARAM_H
10334 # include <sys/param.h>
10335 # ifdef EXEC_PAGESIZE
10336 # define getpagesize() EXEC_PAGESIZE
10337 # else /* no EXEC_PAGESIZE */
10338 # ifdef NBPG
10339 # define getpagesize() NBPG * CLSIZE
10340 # ifndef CLSIZE
10341 # define CLSIZE 1
10342 # endif /* no CLSIZE */
10343 # else /* no NBPG */
10344 # ifdef NBPC
10345 # define getpagesize() NBPC
10346 # else /* no NBPC */
10347 # ifdef PAGESIZE
10348 # define getpagesize() PAGESIZE
10349 # endif /* PAGESIZE */
10350 # endif /* no NBPC */
10351 # endif /* no NBPG */
10352 # endif /* no EXEC_PAGESIZE */
10353 # else /* no HAVE_SYS_PARAM_H */
10354 # define getpagesize() 8192 /* punt totally */
10355 # endif /* no HAVE_SYS_PARAM_H */
10356 # endif /* no _SC_PAGESIZE */
10358 #endif /* no HAVE_GETPAGESIZE */
10361 main ()
10363 char *data, *data2, *data3;
10364 int i, pagesize;
10365 int fd;
10367 pagesize = getpagesize ();
10369 /* First, make a file with some known garbage in it. */
10370 data = (char *) malloc (pagesize);
10371 if (!data)
10372 return 1;
10373 for (i = 0; i < pagesize; ++i)
10374 *(data + i) = rand ();
10375 umask (0);
10376 fd = creat ("conftest.mmap", 0600);
10377 if (fd < 0)
10378 return 1;
10379 if (write (fd, data, pagesize) != pagesize)
10380 return 1;
10381 close (fd);
10383 /* Next, try to mmap the file at a fixed address which already has
10384 something else allocated at it. If we can, also make sure that
10385 we see the same garbage. */
10386 fd = open ("conftest.mmap", O_RDWR);
10387 if (fd < 0)
10388 return 1;
10389 data2 = (char *) malloc (2 * pagesize);
10390 if (!data2)
10391 return 1;
10392 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10393 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10394 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10395 return 1;
10396 for (i = 0; i < pagesize; ++i)
10397 if (*(data + i) != *(data2 + i))
10398 return 1;
10400 /* Finally, make sure that changes to the mapped area do not
10401 percolate back to the file as seen by read(). (This is a bug on
10402 some variants of i386 svr4.0.) */
10403 for (i = 0; i < pagesize; ++i)
10404 *(data2 + i) = *(data2 + i) + 1;
10405 data3 = (char *) malloc (pagesize);
10406 if (!data3)
10407 return 1;
10408 if (read (fd, data3, pagesize) != pagesize)
10409 return 1;
10410 for (i = 0; i < pagesize; ++i)
10411 if (*(data + i) != *(data3 + i))
10412 return 1;
10413 close (fd);
10414 return 0;
10416 _ACEOF
10417 rm -f conftest$ac_exeext
10418 if { (ac_try="$ac_link"
10419 case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_link") 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10428 { (case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10431 esac
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_try") 2>&5
10434 ac_status=$?
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); }; }; then
10437 ac_cv_func_mmap_fixed_mapped=yes
10438 else
10439 echo "$as_me: program exited with status $ac_status" >&5
10440 echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10443 ( exit $ac_status )
10444 ac_cv_func_mmap_fixed_mapped=no
10446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10451 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10452 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10453 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10455 cat >>confdefs.h <<\_ACEOF
10456 #define HAVE_MMAP 1
10457 _ACEOF
10460 rm -f conftest.mmap
10462 if test $use_mmap_for_buffers = yes; then
10463 REL_ALLOC=no
10466 LIBS="$libsrc_libs $LIBS"
10469 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10470 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10471 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474 ac_check_lib_save_LIBS=$LIBS
10475 LIBS="-ldnet $LIBS"
10476 cat >conftest.$ac_ext <<_ACEOF
10477 /* confdefs.h. */
10478 _ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10483 /* Override any GCC internal prototype to avoid an error.
10484 Use char because int might match the return type of a GCC
10485 builtin and then its argument prototype would still apply. */
10486 #ifdef __cplusplus
10487 extern "C"
10488 #endif
10489 char dnet_ntoa ();
10491 main ()
10493 return dnet_ntoa ();
10495 return 0;
10497 _ACEOF
10498 rm -f conftest.$ac_objext conftest$ac_exeext
10499 if { (ac_try="$ac_link"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10503 esac
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_link") 2>conftest.er1
10506 ac_status=$?
10507 grep -v '^ *+' conftest.er1 >conftest.err
10508 rm -f conftest.er1
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest$ac_exeext &&
10515 $as_test_x conftest$ac_exeext; then
10516 ac_cv_lib_dnet_dnet_ntoa=yes
10517 else
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10521 ac_cv_lib_dnet_dnet_ntoa=no
10524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10525 conftest$ac_exeext conftest.$ac_ext
10526 LIBS=$ac_check_lib_save_LIBS
10528 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10529 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10530 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10531 cat >>confdefs.h <<_ACEOF
10532 #define HAVE_LIBDNET 1
10533 _ACEOF
10535 LIBS="-ldnet $LIBS"
10540 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10541 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10542 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 else
10545 ac_check_lib_save_LIBS=$LIBS
10546 LIBS="-lXbsd $LIBS"
10547 cat >conftest.$ac_ext <<_ACEOF
10548 /* confdefs.h. */
10549 _ACEOF
10550 cat confdefs.h >>conftest.$ac_ext
10551 cat >>conftest.$ac_ext <<_ACEOF
10552 /* end confdefs.h. */
10556 main ()
10558 return main ();
10560 return 0;
10562 _ACEOF
10563 rm -f conftest.$ac_objext conftest$ac_exeext
10564 if { (ac_try="$ac_link"
10565 case "(($ac_try" in
10566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567 *) ac_try_echo=$ac_try;;
10568 esac
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570 (eval "$ac_link") 2>conftest.er1
10571 ac_status=$?
10572 grep -v '^ *+' conftest.er1 >conftest.err
10573 rm -f conftest.er1
10574 cat conftest.err >&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } && {
10577 test -z "$ac_c_werror_flag" ||
10578 test ! -s conftest.err
10579 } && test -s conftest$ac_exeext &&
10580 $as_test_x conftest$ac_exeext; then
10581 ac_cv_lib_Xbsd_main=yes
10582 else
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ac_cv_lib_Xbsd_main=no
10589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10590 conftest$ac_exeext conftest.$ac_ext
10591 LIBS=$ac_check_lib_save_LIBS
10593 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10594 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10595 if test $ac_cv_lib_Xbsd_main = yes; then
10596 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10601 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10602 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10603 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10604 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 else
10606 ac_check_lib_save_LIBS=$LIBS
10607 LIBS="-lpthreads $LIBS"
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10615 /* Override any GCC internal prototype to avoid an error.
10616 Use char because int might match the return type of a GCC
10617 builtin and then its argument prototype would still apply. */
10618 #ifdef __cplusplus
10619 extern "C"
10620 #endif
10621 char cma_open ();
10623 main ()
10625 return cma_open ();
10627 return 0;
10629 _ACEOF
10630 rm -f conftest.$ac_objext conftest$ac_exeext
10631 if { (ac_try="$ac_link"
10632 case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635 esac
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_link") 2>conftest.er1
10638 ac_status=$?
10639 grep -v '^ *+' conftest.er1 >conftest.err
10640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } && {
10644 test -z "$ac_c_werror_flag" ||
10645 test ! -s conftest.err
10646 } && test -s conftest$ac_exeext &&
10647 $as_test_x conftest$ac_exeext; then
10648 ac_cv_lib_pthreads_cma_open=yes
10649 else
10650 echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10653 ac_cv_lib_pthreads_cma_open=no
10656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10657 conftest$ac_exeext conftest.$ac_ext
10658 LIBS=$ac_check_lib_save_LIBS
10660 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10661 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10662 if test $ac_cv_lib_pthreads_cma_open = yes; then
10663 cat >>confdefs.h <<_ACEOF
10664 #define HAVE_LIBPTHREADS 1
10665 _ACEOF
10667 LIBS="-lpthreads $LIBS"
10672 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10673 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10674 if test -d /usr/X386/include; then
10675 HAVE_XFREE386=yes
10676 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10677 else
10678 HAVE_XFREE386=no
10680 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10681 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10684 case ${host_os} in
10685 aix*)
10686 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10687 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10688 if test "${gdb_cv_bigtoc+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10690 else
10692 case $GCC in
10693 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10694 *) gdb_cv_bigtoc=-bbigtoc ;;
10695 esac
10697 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10698 cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h. */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h. */
10706 main ()
10708 int i;
10710 return 0;
10712 _ACEOF
10713 rm -f conftest.$ac_objext conftest$ac_exeext
10714 if { (ac_try="$ac_link"
10715 case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_link") 2>conftest.er1
10721 ac_status=$?
10722 grep -v '^ *+' conftest.er1 >conftest.err
10723 rm -f conftest.er1
10724 cat conftest.err >&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); } && {
10727 test -z "$ac_c_werror_flag" ||
10728 test ! -s conftest.err
10729 } && test -s conftest$ac_exeext &&
10730 $as_test_x conftest$ac_exeext; then
10732 else
10733 echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10736 gdb_cv_bigtoc=
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740 conftest$ac_exeext conftest.$ac_ext
10743 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10744 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10746 esac
10748 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10749 # used for the tests that follow. We set them back to REAL_CFLAGS and
10750 # REAL_CPPFLAGS later on.
10752 REAL_CPPFLAGS="$CPPFLAGS"
10754 if test "${HAVE_X11}" = "yes"; then
10755 DEFS="$C_SWITCH_X_SITE $DEFS"
10756 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10757 LIBS="$LIBX $LIBS"
10758 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10759 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10761 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10762 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10763 # but it's more convenient here to set LD_RUN_PATH
10764 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10765 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10766 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10767 export LD_RUN_PATH
10770 if test "${opsys}" = "gnu-linux"; then
10771 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10772 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h. */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h. */
10781 main ()
10783 XOpenDisplay ("foo");
10785 return 0;
10787 _ACEOF
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (ac_try="$ac_link"
10790 case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10793 esac
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_link") 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest$ac_exeext &&
10805 $as_test_x conftest$ac_exeext; then
10806 xlinux_first_failure=no
10807 else
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 xlinux_first_failure=yes
10814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10815 conftest$ac_exeext conftest.$ac_ext
10816 if test "${xlinux_first_failure}" = "yes"; then
10817 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10818 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10819 OLD_CPPFLAGS="$CPPFLAGS"
10820 OLD_LIBS="$LIBS"
10821 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10822 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10823 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10824 LIBS="$LIBS -b i486-linuxaout"
10825 cat >conftest.$ac_ext <<_ACEOF
10826 /* confdefs.h. */
10827 _ACEOF
10828 cat confdefs.h >>conftest.$ac_ext
10829 cat >>conftest.$ac_ext <<_ACEOF
10830 /* end confdefs.h. */
10833 main ()
10835 XOpenDisplay ("foo");
10837 return 0;
10839 _ACEOF
10840 rm -f conftest.$ac_objext conftest$ac_exeext
10841 if { (ac_try="$ac_link"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10845 esac
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_link") 2>conftest.er1
10848 ac_status=$?
10849 grep -v '^ *+' conftest.er1 >conftest.err
10850 rm -f conftest.er1
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } && {
10854 test -z "$ac_c_werror_flag" ||
10855 test ! -s conftest.err
10856 } && test -s conftest$ac_exeext &&
10857 $as_test_x conftest$ac_exeext; then
10858 xlinux_second_failure=no
10859 else
10860 echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10863 xlinux_second_failure=yes
10866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10867 conftest$ac_exeext conftest.$ac_ext
10868 if test "${xlinux_second_failure}" = "yes"; then
10869 # If we get the same failure with -b, there is no use adding -b.
10870 # So take it out. This plays safe.
10871 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10872 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10873 CPPFLAGS="$OLD_CPPFLAGS"
10874 LIBS="$OLD_LIBS"
10875 { echo "$as_me:$LINENO: result: no" >&5
10876 echo "${ECHO_T}no" >&6; }
10877 else
10878 { echo "$as_me:$LINENO: result: yes" >&5
10879 echo "${ECHO_T}yes" >&6; }
10881 else
10882 { echo "$as_me:$LINENO: result: no" >&5
10883 echo "${ECHO_T}no" >&6; }
10887 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10888 # header files included from there.
10889 { echo "$as_me:$LINENO: checking for Xkb" >&5
10890 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10891 cat >conftest.$ac_ext <<_ACEOF
10892 /* confdefs.h. */
10893 _ACEOF
10894 cat confdefs.h >>conftest.$ac_ext
10895 cat >>conftest.$ac_ext <<_ACEOF
10896 /* end confdefs.h. */
10897 #include <X11/Xlib.h>
10898 #include <X11/XKBlib.h>
10900 main ()
10902 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10904 return 0;
10906 _ACEOF
10907 rm -f conftest.$ac_objext conftest$ac_exeext
10908 if { (ac_try="$ac_link"
10909 case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912 esac
10913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10914 (eval "$ac_link") 2>conftest.er1
10915 ac_status=$?
10916 grep -v '^ *+' conftest.er1 >conftest.err
10917 rm -f conftest.er1
10918 cat conftest.err >&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } && {
10921 test -z "$ac_c_werror_flag" ||
10922 test ! -s conftest.err
10923 } && test -s conftest$ac_exeext &&
10924 $as_test_x conftest$ac_exeext; then
10925 emacs_xkb=yes
10926 else
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 emacs_xkb=no
10933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10934 conftest$ac_exeext conftest.$ac_ext
10935 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10936 echo "${ECHO_T}$emacs_xkb" >&6; }
10937 if test $emacs_xkb = yes; then
10939 cat >>confdefs.h <<\_ACEOF
10940 #define HAVE_XKBGETKEYBOARD 1
10941 _ACEOF
10949 for ac_func in XrmSetDatabase XScreenResourceString \
10950 XScreenNumberOfScreen XSetWMProtocols
10952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 else
10958 cat >conftest.$ac_ext <<_ACEOF
10959 /* confdefs.h. */
10960 _ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10965 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10966 #define $ac_func innocuous_$ac_func
10968 /* System header to define __stub macros and hopefully few prototypes,
10969 which can conflict with char $ac_func (); below.
10970 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10971 <limits.h> exists even on freestanding compilers. */
10973 #ifdef __STDC__
10974 # include <limits.h>
10975 #else
10976 # include <assert.h>
10977 #endif
10979 #undef $ac_func
10981 /* Override any GCC internal prototype to avoid an error.
10982 Use char because int might match the return type of a GCC
10983 builtin and then its argument prototype would still apply. */
10984 #ifdef __cplusplus
10985 extern "C"
10986 #endif
10987 char $ac_func ();
10988 /* The GNU C library defines this for functions which it implements
10989 to always fail with ENOSYS. Some functions are actually named
10990 something starting with __ and the normal name is an alias. */
10991 #if defined __stub_$ac_func || defined __stub___$ac_func
10992 choke me
10993 #endif
10996 main ()
10998 return $ac_func ();
11000 return 0;
11002 _ACEOF
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (ac_try="$ac_link"
11005 case "(($ac_try" in
11006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007 *) ac_try_echo=$ac_try;;
11008 esac
11009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010 (eval "$ac_link") 2>conftest.er1
11011 ac_status=$?
11012 grep -v '^ *+' conftest.er1 >conftest.err
11013 rm -f conftest.er1
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } && {
11017 test -z "$ac_c_werror_flag" ||
11018 test ! -s conftest.err
11019 } && test -s conftest$ac_exeext &&
11020 $as_test_x conftest$ac_exeext; then
11021 eval "$as_ac_var=yes"
11022 else
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 eval "$as_ac_var=no"
11029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11030 conftest$ac_exeext conftest.$ac_ext
11032 ac_res=`eval echo '${'$as_ac_var'}'`
11033 { echo "$as_me:$LINENO: result: $ac_res" >&5
11034 echo "${ECHO_T}$ac_res" >&6; }
11035 if test `eval echo '${'$as_ac_var'}'` = yes; then
11036 cat >>confdefs.h <<_ACEOF
11037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11038 _ACEOF
11041 done
11045 if test "${window_system}" = "x11"; then
11046 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11047 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11048 if test "${emacs_cv_x11_version_6+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051 cat >conftest.$ac_ext <<_ACEOF
11052 /* confdefs.h. */
11053 _ACEOF
11054 cat confdefs.h >>conftest.$ac_ext
11055 cat >>conftest.$ac_ext <<_ACEOF
11056 /* end confdefs.h. */
11057 #include <X11/Xlib.h>
11059 main ()
11061 #if XlibSpecificationRelease < 6
11062 fail;
11063 #endif
11066 return 0;
11068 _ACEOF
11069 rm -f conftest.$ac_objext conftest$ac_exeext
11070 if { (ac_try="$ac_link"
11071 case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11074 esac
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_link") 2>conftest.er1
11077 ac_status=$?
11078 grep -v '^ *+' conftest.er1 >conftest.err
11079 rm -f conftest.er1
11080 cat conftest.err >&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } && {
11083 test -z "$ac_c_werror_flag" ||
11084 test ! -s conftest.err
11085 } && test -s conftest$ac_exeext &&
11086 $as_test_x conftest$ac_exeext; then
11087 emacs_cv_x11_version_6=yes
11088 else
11089 echo "$as_me: failed program was:" >&5
11090 sed 's/^/| /' conftest.$ac_ext >&5
11092 emacs_cv_x11_version_6=no
11095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11096 conftest$ac_exeext conftest.$ac_ext
11099 if test $emacs_cv_x11_version_6 = yes; then
11100 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11101 echo "${ECHO_T}6 or newer" >&6; }
11103 cat >>confdefs.h <<\_ACEOF
11104 #define HAVE_X11R6 1
11105 _ACEOF
11107 else
11108 { echo "$as_me:$LINENO: result: before 6" >&5
11109 echo "${ECHO_T}before 6" >&6; }
11114 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11115 HAVE_RSVG=no
11116 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11117 if test "${with_rsvg}" != "no"; then
11118 if test "X${with_pkg_config_prog}" != X; then
11119 PKG_CONFIG="${with_pkg_config_prog}"
11122 RSVG_REQUIRED=2.0.0
11123 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11126 succeeded=no
11128 if test -z "$PKG_CONFIG"; then
11129 # Extract the first word of "pkg-config", so it can be a program name with args.
11130 set dummy pkg-config; ac_word=$2
11131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11133 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136 case $PKG_CONFIG in
11137 [\\/]* | ?:[\\/]*)
11138 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11144 IFS=$as_save_IFS
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11148 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 break 2
11152 done
11153 done
11154 IFS=$as_save_IFS
11156 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11158 esac
11160 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11161 if test -n "$PKG_CONFIG"; then
11162 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11163 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11164 else
11165 { echo "$as_me:$LINENO: result: no" >&5
11166 echo "${ECHO_T}no" >&6; }
11172 if test "$PKG_CONFIG" = "no" ; then
11174 else
11175 PKG_CONFIG_MIN_VERSION=0.9.0
11176 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11177 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11178 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11180 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11181 { echo "$as_me:$LINENO: result: yes" >&5
11182 echo "${ECHO_T}yes" >&6; }
11183 succeeded=yes
11185 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11186 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11187 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11188 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11189 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11191 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11192 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11193 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11194 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11195 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11196 else
11197 { echo "$as_me:$LINENO: result: no" >&5
11198 echo "${ECHO_T}no" >&6; }
11199 RSVG_CFLAGS=""
11200 RSVG_LIBS=""
11201 ## If we have a custom action on failure, don't print errors, but
11202 ## do set a variable so people can do so.
11203 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11209 else
11210 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11211 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11215 if test $succeeded = yes; then
11217 else
11224 if test ".${RSVG_CFLAGS}" != "."; then
11225 HAVE_RSVG=yes
11227 cat >>confdefs.h <<\_ACEOF
11228 #define HAVE_RSVG 1
11229 _ACEOF
11231 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11232 LIBS="$RSVG_LIBS $LIBS"
11238 HAVE_GTK=no
11239 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11240 USE_X_TOOLKIT=none
11242 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11243 test "$USE_X_TOOLKIT" = "maybe"; then
11244 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11245 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11246 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11247 { (exit 1); exit 1; }; };
11249 GLIB_REQUIRED=2.6
11250 GTK_REQUIRED=2.6
11251 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11253 if test "X${with_pkg_config_prog}" != X; then
11254 PKG_CONFIG="${with_pkg_config_prog}"
11257 succeeded=no
11259 if test -z "$PKG_CONFIG"; then
11260 # Extract the first word of "pkg-config", so it can be a program name with args.
11261 set dummy pkg-config; ac_word=$2
11262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11264 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11265 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 else
11267 case $PKG_CONFIG in
11268 [\\/]* | ?:[\\/]*)
11269 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11279 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 break 2
11283 done
11284 done
11285 IFS=$as_save_IFS
11287 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11289 esac
11291 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11292 if test -n "$PKG_CONFIG"; then
11293 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11294 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11295 else
11296 { echo "$as_me:$LINENO: result: no" >&5
11297 echo "${ECHO_T}no" >&6; }
11303 if test "$PKG_CONFIG" = "no" ; then
11304 pkg_check_gtk=no
11305 else
11306 PKG_CONFIG_MIN_VERSION=0.9.0
11307 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11308 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11309 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11311 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11312 { echo "$as_me:$LINENO: result: yes" >&5
11313 echo "${ECHO_T}yes" >&6; }
11314 succeeded=yes
11316 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11317 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11318 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11319 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11320 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11322 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11323 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11324 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11325 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11326 echo "${ECHO_T}$GTK_LIBS" >&6; }
11327 else
11328 { echo "$as_me:$LINENO: result: no" >&5
11329 echo "${ECHO_T}no" >&6; }
11330 GTK_CFLAGS=""
11331 GTK_LIBS=""
11332 ## If we have a custom action on failure, don't print errors, but
11333 ## do set a variable so people can do so.
11334 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11340 else
11341 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11342 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11346 if test $succeeded = yes; then
11347 pkg_check_gtk=yes
11348 else
11349 pkg_check_gtk=no
11352 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11353 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11354 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11355 { (exit 1); exit 1; }; }
11360 if test x"$pkg_check_gtk" = xyes; then
11364 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11365 CFLAGS="$CFLAGS $GTK_CFLAGS"
11366 LIBS="$GTK_LIBS $LIBS"
11367 GTK_COMPILES=no
11369 for ac_func in gtk_main
11371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 else
11377 cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h. */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h. */
11383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11385 #define $ac_func innocuous_$ac_func
11387 /* System header to define __stub macros and hopefully few prototypes,
11388 which can conflict with char $ac_func (); below.
11389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11390 <limits.h> exists even on freestanding compilers. */
11392 #ifdef __STDC__
11393 # include <limits.h>
11394 #else
11395 # include <assert.h>
11396 #endif
11398 #undef $ac_func
11400 /* Override any GCC internal prototype to avoid an error.
11401 Use char because int might match the return type of a GCC
11402 builtin and then its argument prototype would still apply. */
11403 #ifdef __cplusplus
11404 extern "C"
11405 #endif
11406 char $ac_func ();
11407 /* The GNU C library defines this for functions which it implements
11408 to always fail with ENOSYS. Some functions are actually named
11409 something starting with __ and the normal name is an alias. */
11410 #if defined __stub_$ac_func || defined __stub___$ac_func
11411 choke me
11412 #endif
11415 main ()
11417 return $ac_func ();
11419 return 0;
11421 _ACEOF
11422 rm -f conftest.$ac_objext conftest$ac_exeext
11423 if { (ac_try="$ac_link"
11424 case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427 esac
11428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11429 (eval "$ac_link") 2>conftest.er1
11430 ac_status=$?
11431 grep -v '^ *+' conftest.er1 >conftest.err
11432 rm -f conftest.er1
11433 cat conftest.err >&5
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); } && {
11436 test -z "$ac_c_werror_flag" ||
11437 test ! -s conftest.err
11438 } && test -s conftest$ac_exeext &&
11439 $as_test_x conftest$ac_exeext; then
11440 eval "$as_ac_var=yes"
11441 else
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 eval "$as_ac_var=no"
11448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11449 conftest$ac_exeext conftest.$ac_ext
11451 ac_res=`eval echo '${'$as_ac_var'}'`
11452 { echo "$as_me:$LINENO: result: $ac_res" >&5
11453 echo "${ECHO_T}$ac_res" >&6; }
11454 if test `eval echo '${'$as_ac_var'}'` = yes; then
11455 cat >>confdefs.h <<_ACEOF
11456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11457 _ACEOF
11458 GTK_COMPILES=yes
11460 done
11462 if test "${GTK_COMPILES}" != "yes"; then
11463 if test "$USE_X_TOOLKIT" != "maybe"; then
11464 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11465 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11466 { (exit 1); exit 1; }; };
11468 else
11469 HAVE_GTK=yes
11471 cat >>confdefs.h <<\_ACEOF
11472 #define HAVE_GTK 1
11473 _ACEOF
11475 USE_X_TOOLKIT=none
11481 if test "${HAVE_GTK}" = "yes"; then
11483 if test "$with_toolkit_scroll_bars" != no; then
11484 with_toolkit_scroll_bars=yes
11487 HAVE_GTK_MULTIDISPLAY=no
11489 for ac_func in gdk_display_open
11491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 else
11497 cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h. */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11505 #define $ac_func innocuous_$ac_func
11507 /* System header to define __stub macros and hopefully few prototypes,
11508 which can conflict with char $ac_func (); below.
11509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11510 <limits.h> exists even on freestanding compilers. */
11512 #ifdef __STDC__
11513 # include <limits.h>
11514 #else
11515 # include <assert.h>
11516 #endif
11518 #undef $ac_func
11520 /* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char $ac_func ();
11527 /* The GNU C library defines this for functions which it implements
11528 to always fail with ENOSYS. Some functions are actually named
11529 something starting with __ and the normal name is an alias. */
11530 #if defined __stub_$ac_func || defined __stub___$ac_func
11531 choke me
11532 #endif
11535 main ()
11537 return $ac_func ();
11539 return 0;
11541 _ACEOF
11542 rm -f conftest.$ac_objext conftest$ac_exeext
11543 if { (ac_try="$ac_link"
11544 case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547 esac
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_link") 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } && {
11556 test -z "$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 } && test -s conftest$ac_exeext &&
11559 $as_test_x conftest$ac_exeext; then
11560 eval "$as_ac_var=yes"
11561 else
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 eval "$as_ac_var=no"
11568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11569 conftest$ac_exeext conftest.$ac_ext
11571 ac_res=`eval echo '${'$as_ac_var'}'`
11572 { echo "$as_me:$LINENO: result: $ac_res" >&5
11573 echo "${ECHO_T}$ac_res" >&6; }
11574 if test `eval echo '${'$as_ac_var'}'` = yes; then
11575 cat >>confdefs.h <<_ACEOF
11576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11577 _ACEOF
11578 HAVE_GTK_MULTIDISPLAY=yes
11580 done
11582 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11584 cat >>confdefs.h <<\_ACEOF
11585 #define HAVE_GTK_MULTIDISPLAY 1
11586 _ACEOF
11590 HAVE_GTK_FILE_SELECTION=no
11592 for ac_func in gtk_file_selection_new
11594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11598 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 else
11600 cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h. */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h. */
11606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11608 #define $ac_func innocuous_$ac_func
11610 /* System header to define __stub macros and hopefully few prototypes,
11611 which can conflict with char $ac_func (); below.
11612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11613 <limits.h> exists even on freestanding compilers. */
11615 #ifdef __STDC__
11616 # include <limits.h>
11617 #else
11618 # include <assert.h>
11619 #endif
11621 #undef $ac_func
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11626 #ifdef __cplusplus
11627 extern "C"
11628 #endif
11629 char $ac_func ();
11630 /* The GNU C library defines this for functions which it implements
11631 to always fail with ENOSYS. Some functions are actually named
11632 something starting with __ and the normal name is an alias. */
11633 #if defined __stub_$ac_func || defined __stub___$ac_func
11634 choke me
11635 #endif
11638 main ()
11640 return $ac_func ();
11642 return 0;
11644 _ACEOF
11645 rm -f conftest.$ac_objext conftest$ac_exeext
11646 if { (ac_try="$ac_link"
11647 case "(($ac_try" in
11648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11650 esac
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_link") 2>conftest.er1
11653 ac_status=$?
11654 grep -v '^ *+' conftest.er1 >conftest.err
11655 rm -f conftest.er1
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && {
11659 test -z "$ac_c_werror_flag" ||
11660 test ! -s conftest.err
11661 } && test -s conftest$ac_exeext &&
11662 $as_test_x conftest$ac_exeext; then
11663 eval "$as_ac_var=yes"
11664 else
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 eval "$as_ac_var=no"
11671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11672 conftest$ac_exeext conftest.$ac_ext
11674 ac_res=`eval echo '${'$as_ac_var'}'`
11675 { echo "$as_me:$LINENO: result: $ac_res" >&5
11676 echo "${ECHO_T}$ac_res" >&6; }
11677 if test `eval echo '${'$as_ac_var'}'` = yes; then
11678 cat >>confdefs.h <<_ACEOF
11679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11680 _ACEOF
11681 HAVE_GTK_FILE_SELECTION=yes
11683 done
11686 HAVE_GTK_FILE_CHOOSER=no
11688 for ac_func in gtk_file_chooser_dialog_new
11690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 else
11696 cat >conftest.$ac_ext <<_ACEOF
11697 /* confdefs.h. */
11698 _ACEOF
11699 cat confdefs.h >>conftest.$ac_ext
11700 cat >>conftest.$ac_ext <<_ACEOF
11701 /* end confdefs.h. */
11702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11704 #define $ac_func innocuous_$ac_func
11706 /* System header to define __stub macros and hopefully few prototypes,
11707 which can conflict with char $ac_func (); below.
11708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11709 <limits.h> exists even on freestanding compilers. */
11711 #ifdef __STDC__
11712 # include <limits.h>
11713 #else
11714 # include <assert.h>
11715 #endif
11717 #undef $ac_func
11719 /* Override any GCC internal prototype to avoid an error.
11720 Use char because int might match the return type of a GCC
11721 builtin and then its argument prototype would still apply. */
11722 #ifdef __cplusplus
11723 extern "C"
11724 #endif
11725 char $ac_func ();
11726 /* The GNU C library defines this for functions which it implements
11727 to always fail with ENOSYS. Some functions are actually named
11728 something starting with __ and the normal name is an alias. */
11729 #if defined __stub_$ac_func || defined __stub___$ac_func
11730 choke me
11731 #endif
11734 main ()
11736 return $ac_func ();
11738 return 0;
11740 _ACEOF
11741 rm -f conftest.$ac_objext conftest$ac_exeext
11742 if { (ac_try="$ac_link"
11743 case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746 esac
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_link") 2>conftest.er1
11749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } && {
11755 test -z "$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11757 } && test -s conftest$ac_exeext &&
11758 $as_test_x conftest$ac_exeext; then
11759 eval "$as_ac_var=yes"
11760 else
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11764 eval "$as_ac_var=no"
11767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11768 conftest$ac_exeext conftest.$ac_ext
11770 ac_res=`eval echo '${'$as_ac_var'}'`
11771 { echo "$as_me:$LINENO: result: $ac_res" >&5
11772 echo "${ECHO_T}$ac_res" >&6; }
11773 if test `eval echo '${'$as_ac_var'}'` = yes; then
11774 cat >>confdefs.h <<_ACEOF
11775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11776 _ACEOF
11777 HAVE_GTK_FILE_CHOOSER=yes
11779 done
11782 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11783 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11785 cat >>confdefs.h <<\_ACEOF
11786 #define HAVE_GTK_FILE_BOTH 1
11787 _ACEOF
11791 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11792 HAVE_GTK_AND_PTHREAD=no
11794 for ac_header in pthread.h
11796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 ac_res=`eval echo '${'$as_ac_Header'}'`
11804 { echo "$as_me:$LINENO: result: $ac_res" >&5
11805 echo "${ECHO_T}$ac_res" >&6; }
11806 else
11807 # Is the header compilable?
11808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11810 cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h. */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 $ac_includes_default
11817 #include <$ac_header>
11818 _ACEOF
11819 rm -f conftest.$ac_objext
11820 if { (ac_try="$ac_compile"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_compile") 2>conftest.er1
11827 ac_status=$?
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } && {
11833 test -z "$ac_c_werror_flag" ||
11834 test ! -s conftest.err
11835 } && test -s conftest.$ac_objext; then
11836 ac_header_compiler=yes
11837 else
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ac_header_compiler=no
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11846 echo "${ECHO_T}$ac_header_compiler" >&6; }
11848 # Is the header present?
11849 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11850 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11851 cat >conftest.$ac_ext <<_ACEOF
11852 /* confdefs.h. */
11853 _ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 #include <$ac_header>
11858 _ACEOF
11859 if { (ac_try="$ac_cpp conftest.$ac_ext"
11860 case "(($ac_try" in
11861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862 *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11866 ac_status=$?
11867 grep -v '^ *+' conftest.er1 >conftest.err
11868 rm -f conftest.er1
11869 cat conftest.err >&5
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); } >/dev/null && {
11872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11873 test ! -s conftest.err
11874 }; then
11875 ac_header_preproc=yes
11876 else
11877 echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11880 ac_header_preproc=no
11883 rm -f conftest.err conftest.$ac_ext
11884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11885 echo "${ECHO_T}$ac_header_preproc" >&6; }
11887 # So? What about this header?
11888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11889 yes:no: )
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11894 ac_header_preproc=yes
11896 no:yes:* )
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11911 esac
11912 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 else
11917 eval "$as_ac_Header=\$ac_header_preproc"
11919 ac_res=`eval echo '${'$as_ac_Header'}'`
11920 { echo "$as_me:$LINENO: result: $ac_res" >&5
11921 echo "${ECHO_T}$ac_res" >&6; }
11924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11925 cat >>confdefs.h <<_ACEOF
11926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11927 _ACEOF
11931 done
11933 if test "$ac_cv_header_pthread_h"; then
11934 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11935 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11936 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 else
11939 ac_check_lib_save_LIBS=$LIBS
11940 LIBS="-lpthread $LIBS"
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h. */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11951 #ifdef __cplusplus
11952 extern "C"
11953 #endif
11954 char pthread_self ();
11956 main ()
11958 return pthread_self ();
11960 return 0;
11962 _ACEOF
11963 rm -f conftest.$ac_objext conftest$ac_exeext
11964 if { (ac_try="$ac_link"
11965 case "(($ac_try" in
11966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11967 *) ac_try_echo=$ac_try;;
11968 esac
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970 (eval "$ac_link") 2>conftest.er1
11971 ac_status=$?
11972 grep -v '^ *+' conftest.er1 >conftest.err
11973 rm -f conftest.er1
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } && {
11977 test -z "$ac_c_werror_flag" ||
11978 test ! -s conftest.err
11979 } && test -s conftest$ac_exeext &&
11980 $as_test_x conftest$ac_exeext; then
11981 ac_cv_lib_pthread_pthread_self=yes
11982 else
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_cv_lib_pthread_pthread_self=no
11989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11990 conftest$ac_exeext conftest.$ac_ext
11991 LIBS=$ac_check_lib_save_LIBS
11993 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11994 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11995 if test $ac_cv_lib_pthread_pthread_self = yes; then
11996 HAVE_GTK_AND_PTHREAD=yes
12000 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12001 case "${canonical}" in
12002 *-hpux*) ;;
12003 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12004 esac
12006 cat >>confdefs.h <<\_ACEOF
12007 #define HAVE_GTK_AND_PTHREAD 1
12008 _ACEOF
12014 HAVE_DBUS=no
12015 if test "${with_dbus}" = "yes"; then
12017 succeeded=no
12019 if test -z "$PKG_CONFIG"; then
12020 # Extract the first word of "pkg-config", so it can be a program name with args.
12021 set dummy pkg-config; ac_word=$2
12022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12024 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027 case $PKG_CONFIG in
12028 [\\/]* | ?:[\\/]*)
12029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12033 for as_dir in $PATH
12035 IFS=$as_save_IFS
12036 test -z "$as_dir" && as_dir=.
12037 for ac_exec_ext in '' $ac_executable_extensions; do
12038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12041 break 2
12043 done
12044 done
12045 IFS=$as_save_IFS
12047 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12049 esac
12051 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12052 if test -n "$PKG_CONFIG"; then
12053 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12054 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12055 else
12056 { echo "$as_me:$LINENO: result: no" >&5
12057 echo "${ECHO_T}no" >&6; }
12063 if test "$PKG_CONFIG" = "no" ; then
12064 HAVE_DBUS=no
12065 else
12066 PKG_CONFIG_MIN_VERSION=0.9.0
12067 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12068 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12069 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
12071 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12072 { echo "$as_me:$LINENO: result: yes" >&5
12073 echo "${ECHO_T}yes" >&6; }
12074 succeeded=yes
12076 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12077 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
12078 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12079 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12080 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
12082 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12083 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
12084 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12085 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12086 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12087 else
12088 { echo "$as_me:$LINENO: result: no" >&5
12089 echo "${ECHO_T}no" >&6; }
12090 DBUS_CFLAGS=""
12091 DBUS_LIBS=""
12092 ## If we have a custom action on failure, don't print errors, but
12093 ## do set a variable so people can do so.
12094 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12100 else
12101 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12102 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12106 if test $succeeded = yes; then
12107 HAVE_DBUS=yes
12108 else
12109 HAVE_DBUS=no
12112 if test "$HAVE_DBUS" = yes; then
12114 cat >>confdefs.h <<\_ACEOF
12115 #define HAVE_DBUS 1
12116 _ACEOF
12121 ### Link with -lXft if available to work around a bug.
12122 HAVE_XFT=maybe
12123 if test "${HAVE_GTK}" = "yes"; then
12124 if test "X${with_pkg_config_prog}" != X; then
12125 PKG_CONFIG="${with_pkg_config_prog}"
12129 succeeded=no
12131 if test -z "$PKG_CONFIG"; then
12132 # Extract the first word of "pkg-config", so it can be a program name with args.
12133 set dummy pkg-config; ac_word=$2
12134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12136 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12137 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 else
12139 case $PKG_CONFIG in
12140 [\\/]* | ?:[\\/]*)
12141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12147 IFS=$as_save_IFS
12148 test -z "$as_dir" && as_dir=.
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12153 break 2
12155 done
12156 done
12157 IFS=$as_save_IFS
12159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12161 esac
12163 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12164 if test -n "$PKG_CONFIG"; then
12165 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12166 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12167 else
12168 { echo "$as_me:$LINENO: result: no" >&5
12169 echo "${ECHO_T}no" >&6; }
12175 if test "$PKG_CONFIG" = "no" ; then
12176 HAVE_XFT=no
12177 else
12178 PKG_CONFIG_MIN_VERSION=0.9.0
12179 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12180 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12181 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12183 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12184 { echo "$as_me:$LINENO: result: yes" >&5
12185 echo "${ECHO_T}yes" >&6; }
12186 succeeded=yes
12188 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12189 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12190 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12191 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12192 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12194 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12195 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12196 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12197 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12198 echo "${ECHO_T}$XFT_LIBS" >&6; }
12199 else
12200 { echo "$as_me:$LINENO: result: no" >&5
12201 echo "${ECHO_T}no" >&6; }
12202 XFT_CFLAGS=""
12203 XFT_LIBS=""
12204 ## If we have a custom action on failure, don't print errors, but
12205 ## do set a variable so people can do so.
12206 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12212 else
12213 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12214 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12218 if test $succeeded = yes; then
12220 else
12221 HAVE_XFT=no
12224 if test "$HAVE_XFT" != no; then
12225 OLD_CFLAGS="$CPPFLAGS"
12226 OLD_CPPFLAGS="$CFLAGS"
12227 OLD_LIBS="$LIBS"
12228 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12229 CFLAGS="$CFLAGS $XFT_CFLAGS"
12230 LIBS="$XFT_LIBS $LIBS"
12231 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12232 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12233 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12234 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12238 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12239 else
12240 # Is the header compilable?
12241 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12242 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12243 cat >conftest.$ac_ext <<_ACEOF
12244 /* confdefs.h. */
12245 _ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12249 $ac_includes_default
12250 #include <X11/Xft/Xft.h>
12251 _ACEOF
12252 rm -f conftest.$ac_objext
12253 if { (ac_try="$ac_compile"
12254 case "(($ac_try" in
12255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12256 *) ac_try_echo=$ac_try;;
12257 esac
12258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12259 (eval "$ac_compile") 2>conftest.er1
12260 ac_status=$?
12261 grep -v '^ *+' conftest.er1 >conftest.err
12262 rm -f conftest.er1
12263 cat conftest.err >&5
12264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12265 (exit $ac_status); } && {
12266 test -z "$ac_c_werror_flag" ||
12267 test ! -s conftest.err
12268 } && test -s conftest.$ac_objext; then
12269 ac_header_compiler=yes
12270 else
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 ac_header_compiler=no
12277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12279 echo "${ECHO_T}$ac_header_compiler" >&6; }
12281 # Is the header present?
12282 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12283 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <X11/Xft/Xft.h>
12291 _ACEOF
12292 if { (ac_try="$ac_cpp conftest.$ac_ext"
12293 case "(($ac_try" in
12294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12295 *) ac_try_echo=$ac_try;;
12296 esac
12297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12299 ac_status=$?
12300 grep -v '^ *+' conftest.er1 >conftest.err
12301 rm -f conftest.er1
12302 cat conftest.err >&5
12303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304 (exit $ac_status); } >/dev/null && {
12305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12306 test ! -s conftest.err
12307 }; then
12308 ac_header_preproc=yes
12309 else
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 ac_header_preproc=no
12316 rm -f conftest.err conftest.$ac_ext
12317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12318 echo "${ECHO_T}$ac_header_preproc" >&6; }
12320 # So? What about this header?
12321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12322 yes:no: )
12323 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12324 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12325 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12326 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12327 ac_header_preproc=yes
12329 no:yes:* )
12330 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12331 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12332 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12333 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12334 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12335 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12336 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12337 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12338 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12339 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12340 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12341 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12344 esac
12345 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12346 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12347 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12348 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 else
12350 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12352 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12353 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12356 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12357 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12358 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12359 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12360 echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362 ac_check_lib_save_LIBS=$LIBS
12363 LIBS="-lXft $XFT_LIBS $LIBS"
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h. */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12371 /* Override any GCC internal prototype to avoid an error.
12372 Use char because int might match the return type of a GCC
12373 builtin and then its argument prototype would still apply. */
12374 #ifdef __cplusplus
12375 extern "C"
12376 #endif
12377 char XftFontOpen ();
12379 main ()
12381 return XftFontOpen ();
12383 return 0;
12385 _ACEOF
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (ac_try="$ac_link"
12388 case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12391 esac
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_link") 2>conftest.er1
12394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } && {
12400 test -z "$ac_c_werror_flag" ||
12401 test ! -s conftest.err
12402 } && test -s conftest$ac_exeext &&
12403 $as_test_x conftest$ac_exeext; then
12404 ac_cv_lib_Xft_XftFontOpen=yes
12405 else
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 ac_cv_lib_Xft_XftFontOpen=no
12412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12413 conftest$ac_exeext conftest.$ac_ext
12414 LIBS=$ac_check_lib_save_LIBS
12416 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12417 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12418 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12419 HAVE_XFT=yes
12426 if test "${HAVE_XFT}" = "yes"; then
12428 cat >>confdefs.h <<\_ACEOF
12429 #define HAVE_XFT 1
12430 _ACEOF
12433 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12434 else
12435 CFLAGS="$OLD_CPPFLAGS"
12436 CFLAGS="$OLD_CFLAGS"
12437 LIBS="$OLD_LIBS"
12442 HAVE_XAW3D=no
12443 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12444 if test "$with_xaw3d" != no; then
12445 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12446 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12447 if test "${emacs_cv_xaw3d+set}" = set; then
12448 echo $ECHO_N "(cached) $ECHO_C" >&6
12449 else
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h. */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h. */
12457 #include <X11/Intrinsic.h>
12458 #include <X11/Xaw3d/Simple.h>
12460 main ()
12464 return 0;
12466 _ACEOF
12467 rm -f conftest.$ac_objext conftest$ac_exeext
12468 if { (ac_try="$ac_link"
12469 case "(($ac_try" in
12470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471 *) ac_try_echo=$ac_try;;
12472 esac
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474 (eval "$ac_link") 2>conftest.er1
12475 ac_status=$?
12476 grep -v '^ *+' conftest.er1 >conftest.err
12477 rm -f conftest.er1
12478 cat conftest.err >&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } && {
12481 test -z "$ac_c_werror_flag" ||
12482 test ! -s conftest.err
12483 } && test -s conftest$ac_exeext &&
12484 $as_test_x conftest$ac_exeext; then
12485 emacs_cv_xaw3d=yes
12486 else
12487 echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12490 emacs_cv_xaw3d=no
12493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12494 conftest$ac_exeext conftest.$ac_ext
12497 else
12498 emacs_cv_xaw3d=no
12500 if test $emacs_cv_xaw3d = yes; then
12501 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12502 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12503 USE_X_TOOLKIT=LUCID
12504 HAVE_XAW3D=yes
12506 cat >>confdefs.h <<\_ACEOF
12507 #define HAVE_XAW3D 1
12508 _ACEOF
12510 else
12511 { echo "$as_me:$LINENO: result: no" >&5
12512 echo "${ECHO_T}no" >&6; }
12513 { echo "$as_me:$LINENO: checking for libXaw" >&5
12514 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12515 if test "${emacs_cv_xaw+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h. */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12525 #include <X11/Intrinsic.h>
12526 #include <X11/Xaw/Simple.h>
12528 main ()
12532 return 0;
12534 _ACEOF
12535 rm -f conftest.$ac_objext conftest$ac_exeext
12536 if { (ac_try="$ac_link"
12537 case "(($ac_try" in
12538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12539 *) ac_try_echo=$ac_try;;
12540 esac
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_link") 2>conftest.er1
12543 ac_status=$?
12544 grep -v '^ *+' conftest.er1 >conftest.err
12545 rm -f conftest.er1
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } && {
12549 test -z "$ac_c_werror_flag" ||
12550 test ! -s conftest.err
12551 } && test -s conftest$ac_exeext &&
12552 $as_test_x conftest$ac_exeext; then
12553 emacs_cv_xaw=yes
12554 else
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12558 emacs_cv_xaw=no
12561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12562 conftest$ac_exeext conftest.$ac_ext
12565 if test $emacs_cv_xaw = yes; then
12566 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12567 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12568 USE_X_TOOLKIT=LUCID
12569 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12570 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12571 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12572 { (exit 1); exit 1; }; }
12573 else
12574 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12575 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12576 USE_X_TOOLKIT=none
12581 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12583 if test "${USE_X_TOOLKIT}" != "none"; then
12584 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12585 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12586 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h. */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 #include <X11/Intrinsic.h>
12597 main ()
12599 #if XtSpecificationRelease < 6
12600 fail;
12601 #endif
12604 return 0;
12606 _ACEOF
12607 rm -f conftest.$ac_objext conftest$ac_exeext
12608 if { (ac_try="$ac_link"
12609 case "(($ac_try" in
12610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12611 *) ac_try_echo=$ac_try;;
12612 esac
12613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12614 (eval "$ac_link") 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && {
12621 test -z "$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 } && test -s conftest$ac_exeext &&
12624 $as_test_x conftest$ac_exeext; then
12625 emacs_cv_x11_toolkit_version_6=yes
12626 else
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 emacs_cv_x11_toolkit_version_6=no
12633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12634 conftest$ac_exeext conftest.$ac_ext
12637 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12638 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12639 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12640 echo "${ECHO_T}6 or newer" >&6; }
12642 cat >>confdefs.h <<\_ACEOF
12643 #define HAVE_X11XTR6 1
12644 _ACEOF
12646 else
12647 { echo "$as_me:$LINENO: result: before 6" >&5
12648 echo "${ECHO_T}before 6" >&6; }
12651 OLDLIBS="$LIBS"
12652 if test x$HAVE_X11XTR6 = xyes; then
12653 LIBS="-lXt -lSM -lICE $LIBS"
12654 else
12655 LIBS="-lXt $LIBS"
12658 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12659 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12660 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12661 echo $ECHO_N "(cached) $ECHO_C" >&6
12662 else
12663 ac_check_lib_save_LIBS=$LIBS
12664 LIBS="-lXmu $LIBS"
12665 cat >conftest.$ac_ext <<_ACEOF
12666 /* confdefs.h. */
12667 _ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12672 /* Override any GCC internal prototype to avoid an error.
12673 Use char because int might match the return type of a GCC
12674 builtin and then its argument prototype would still apply. */
12675 #ifdef __cplusplus
12676 extern "C"
12677 #endif
12678 char XmuConvertStandardSelection ();
12680 main ()
12682 return XmuConvertStandardSelection ();
12684 return 0;
12686 _ACEOF
12687 rm -f conftest.$ac_objext conftest$ac_exeext
12688 if { (ac_try="$ac_link"
12689 case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12692 esac
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_link") 2>conftest.er1
12695 ac_status=$?
12696 grep -v '^ *+' conftest.er1 >conftest.err
12697 rm -f conftest.er1
12698 cat conftest.err >&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); } && {
12701 test -z "$ac_c_werror_flag" ||
12702 test ! -s conftest.err
12703 } && test -s conftest$ac_exeext &&
12704 $as_test_x conftest$ac_exeext; then
12705 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12706 else
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12710 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12714 conftest$ac_exeext conftest.$ac_ext
12715 LIBS=$ac_check_lib_save_LIBS
12717 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12718 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12719 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12720 cat >>confdefs.h <<_ACEOF
12721 #define HAVE_LIBXMU 1
12722 _ACEOF
12724 LIBS="-lXmu $LIBS"
12728 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12731 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12732 if test "${HAVE_X11}" = "yes"; then
12733 if test "${USE_X_TOOLKIT}" != "none"; then
12735 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12736 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12737 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12738 echo $ECHO_N "(cached) $ECHO_C" >&6
12739 else
12740 ac_check_lib_save_LIBS=$LIBS
12741 LIBS="-lXext $LIBS"
12742 cat >conftest.$ac_ext <<_ACEOF
12743 /* confdefs.h. */
12744 _ACEOF
12745 cat confdefs.h >>conftest.$ac_ext
12746 cat >>conftest.$ac_ext <<_ACEOF
12747 /* end confdefs.h. */
12749 /* Override any GCC internal prototype to avoid an error.
12750 Use char because int might match the return type of a GCC
12751 builtin and then its argument prototype would still apply. */
12752 #ifdef __cplusplus
12753 extern "C"
12754 #endif
12755 char XShapeQueryExtension ();
12757 main ()
12759 return XShapeQueryExtension ();
12761 return 0;
12763 _ACEOF
12764 rm -f conftest.$ac_objext conftest$ac_exeext
12765 if { (ac_try="$ac_link"
12766 case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12769 esac
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_link") 2>conftest.er1
12772 ac_status=$?
12773 grep -v '^ *+' conftest.er1 >conftest.err
12774 rm -f conftest.er1
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && {
12778 test -z "$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 } && test -s conftest$ac_exeext &&
12781 $as_test_x conftest$ac_exeext; then
12782 ac_cv_lib_Xext_XShapeQueryExtension=yes
12783 else
12784 echo "$as_me: failed program was:" >&5
12785 sed 's/^/| /' conftest.$ac_ext >&5
12787 ac_cv_lib_Xext_XShapeQueryExtension=no
12790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12791 conftest$ac_exeext conftest.$ac_ext
12792 LIBS=$ac_check_lib_save_LIBS
12794 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12795 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12796 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12797 cat >>confdefs.h <<_ACEOF
12798 #define HAVE_LIBXEXT 1
12799 _ACEOF
12801 LIBS="-lXext $LIBS"
12808 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12809 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12810 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12811 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814 cat >conftest.$ac_ext <<_ACEOF
12815 /* confdefs.h. */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12820 #include <Xm/Xm.h>
12822 main ()
12824 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12825 int x = 5;
12826 #else
12827 Motif version prior to 2.1.
12828 #endif
12830 return 0;
12832 _ACEOF
12833 rm -f conftest.$ac_objext
12834 if { (ac_try="$ac_compile"
12835 case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12838 esac
12839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12840 (eval "$ac_compile") 2>conftest.er1
12841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } && {
12847 test -z "$ac_c_werror_flag" ||
12848 test ! -s conftest.err
12849 } && test -s conftest.$ac_objext; then
12850 emacs_cv_motif_version_2_1=yes
12851 else
12852 echo "$as_me: failed program was:" >&5
12853 sed 's/^/| /' conftest.$ac_ext >&5
12855 emacs_cv_motif_version_2_1=no
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12860 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12861 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12862 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12863 if test $emacs_cv_motif_version_2_1 = yes; then
12864 HAVE_LIBXP=no
12866 cat >>confdefs.h <<\_ACEOF
12867 #define HAVE_MOTIF_2_1 1
12868 _ACEOF
12870 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12871 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12872 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875 ac_check_lib_save_LIBS=$LIBS
12876 LIBS="-lXp $LIBS"
12877 cat >conftest.$ac_ext <<_ACEOF
12878 /* confdefs.h. */
12879 _ACEOF
12880 cat confdefs.h >>conftest.$ac_ext
12881 cat >>conftest.$ac_ext <<_ACEOF
12882 /* end confdefs.h. */
12884 /* Override any GCC internal prototype to avoid an error.
12885 Use char because int might match the return type of a GCC
12886 builtin and then its argument prototype would still apply. */
12887 #ifdef __cplusplus
12888 extern "C"
12889 #endif
12890 char XpCreateContext ();
12892 main ()
12894 return XpCreateContext ();
12896 return 0;
12898 _ACEOF
12899 rm -f conftest.$ac_objext conftest$ac_exeext
12900 if { (ac_try="$ac_link"
12901 case "(($ac_try" in
12902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12903 *) ac_try_echo=$ac_try;;
12904 esac
12905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12906 (eval "$ac_link") 2>conftest.er1
12907 ac_status=$?
12908 grep -v '^ *+' conftest.er1 >conftest.err
12909 rm -f conftest.er1
12910 cat conftest.err >&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } && {
12913 test -z "$ac_c_werror_flag" ||
12914 test ! -s conftest.err
12915 } && test -s conftest$ac_exeext &&
12916 $as_test_x conftest$ac_exeext; then
12917 ac_cv_lib_Xp_XpCreateContext=yes
12918 else
12919 echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.$ac_ext >&5
12922 ac_cv_lib_Xp_XpCreateContext=no
12925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12926 conftest$ac_exeext conftest.$ac_ext
12927 LIBS=$ac_check_lib_save_LIBS
12929 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12930 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12931 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12932 HAVE_LIBXP=yes
12935 if test ${HAVE_LIBXP} = yes; then
12937 cat >>confdefs.h <<\_ACEOF
12938 #define HAVE_LIBXP 1
12939 _ACEOF
12942 else
12943 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12944 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12945 if test "${emacs_cv_lesstif+set}" = set; then
12946 echo $ECHO_N "(cached) $ECHO_C" >&6
12947 else
12948 # We put this in CFLAGS temporarily to precede other -I options
12949 # that might be in CFLAGS temporarily.
12950 # We put this in CPPFLAGS where it precedes the other -I options.
12951 OLD_CPPFLAGS=$CPPFLAGS
12952 OLD_CFLAGS=$CFLAGS
12953 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12954 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12955 cat >conftest.$ac_ext <<_ACEOF
12956 /* confdefs.h. */
12957 _ACEOF
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12961 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12963 main ()
12965 int x = 5;
12967 return 0;
12969 _ACEOF
12970 rm -f conftest.$ac_objext
12971 if { (ac_try="$ac_compile"
12972 case "(($ac_try" in
12973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974 *) ac_try_echo=$ac_try;;
12975 esac
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977 (eval "$ac_compile") 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } && {
12984 test -z "$ac_c_werror_flag" ||
12985 test ! -s conftest.err
12986 } && test -s conftest.$ac_objext; then
12987 emacs_cv_lesstif=yes
12988 else
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12992 emacs_cv_lesstif=no
12995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12998 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12999 if test $emacs_cv_lesstif = yes; then
13000 # Make sure this -I option remains in CPPFLAGS after it is set
13001 # back to REAL_CPPFLAGS.
13002 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13003 # have those other -I options anyway. Ultimately, having this
13004 # directory ultimately in CPPFLAGS will be enough.
13005 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13006 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13007 else
13008 CFLAGS=$OLD_CFLAGS
13009 CPPFLAGS=$OLD_CPPFLAGS
13016 USE_TOOLKIT_SCROLL_BARS=no
13017 if test "${with_toolkit_scroll_bars}" != "no"; then
13018 if test "${USE_X_TOOLKIT}" != "none"; then
13019 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13020 cat >>confdefs.h <<\_ACEOF
13021 #define USE_TOOLKIT_SCROLL_BARS 1
13022 _ACEOF
13024 HAVE_XAW3D=no
13025 USE_TOOLKIT_SCROLL_BARS=yes
13026 elif test "${HAVE_XAW3D}" = "yes"; then
13027 cat >>confdefs.h <<\_ACEOF
13028 #define USE_TOOLKIT_SCROLL_BARS 1
13029 _ACEOF
13031 USE_TOOLKIT_SCROLL_BARS=yes
13033 elif test "${HAVE_GTK}" = "yes"; then
13034 cat >>confdefs.h <<\_ACEOF
13035 #define USE_TOOLKIT_SCROLL_BARS 1
13036 _ACEOF
13038 USE_TOOLKIT_SCROLL_BARS=yes
13039 elif test "${HAVE_CARBON}" = "yes"; then
13040 cat >>confdefs.h <<\_ACEOF
13041 #define USE_TOOLKIT_SCROLL_BARS 1
13042 _ACEOF
13044 USE_TOOLKIT_SCROLL_BARS=yes
13048 cat >conftest.$ac_ext <<_ACEOF
13049 /* confdefs.h. */
13050 _ACEOF
13051 cat confdefs.h >>conftest.$ac_ext
13052 cat >>conftest.$ac_ext <<_ACEOF
13053 /* end confdefs.h. */
13055 #include <X11/Xlib.h>
13056 #include <X11/Xresource.h>
13058 main ()
13060 XIMProc callback;
13062 return 0;
13064 _ACEOF
13065 rm -f conftest.$ac_objext
13066 if { (ac_try="$ac_compile"
13067 case "(($ac_try" in
13068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13069 *) ac_try_echo=$ac_try;;
13070 esac
13071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13072 (eval "$ac_compile") 2>conftest.er1
13073 ac_status=$?
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } && {
13079 test -z "$ac_c_werror_flag" ||
13080 test ! -s conftest.err
13081 } && test -s conftest.$ac_objext; then
13082 HAVE_XIM=yes
13084 cat >>confdefs.h <<\_ACEOF
13085 #define HAVE_XIM 1
13086 _ACEOF
13088 else
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13092 HAVE_XIM=no
13095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 if test "${with_xim}" != "no"; then
13100 cat >>confdefs.h <<\_ACEOF
13101 #define USE_XIM 1
13102 _ACEOF
13107 if test "${HAVE_XIM}" != "no"; then
13108 late_CFLAGS=$CFLAGS
13109 if test "$GCC" = yes; then
13110 CFLAGS="$CFLAGS --pedantic-errors"
13112 cat >conftest.$ac_ext <<_ACEOF
13113 /* confdefs.h. */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13119 #include <X11/Xlib.h>
13120 #include <X11/Xresource.h>
13122 main ()
13124 Display *display;
13125 XrmDatabase db;
13126 char *res_name;
13127 char *res_class;
13128 XIMProc callback;
13129 XPointer *client_data;
13130 #ifndef __GNUC__
13131 /* If we're not using GCC, it's probably not XFree86, and this is
13132 probably right, but we can't use something like --pedantic-errors. */
13133 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13134 char*, XIMProc, XPointer*);
13135 #endif
13136 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13137 client_data);
13139 return 0;
13141 _ACEOF
13142 rm -f conftest.$ac_objext
13143 if { (ac_try="$ac_compile"
13144 case "(($ac_try" in
13145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13146 *) ac_try_echo=$ac_try;;
13147 esac
13148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13149 (eval "$ac_compile") 2>conftest.er1
13150 ac_status=$?
13151 grep -v '^ *+' conftest.er1 >conftest.err
13152 rm -f conftest.er1
13153 cat conftest.err >&5
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); } && {
13156 test -z "$ac_c_werror_flag" ||
13157 test ! -s conftest.err
13158 } && test -s conftest.$ac_objext; then
13159 emacs_cv_arg6_star=yes
13160 else
13161 echo "$as_me: failed program was:" >&5
13162 sed 's/^/| /' conftest.$ac_ext >&5
13167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13169 if test "$emacs_cv_arg6_star" = yes; then
13170 cat >>confdefs.h <<\_ACEOF
13171 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13172 _ACEOF
13174 else
13175 cat >>confdefs.h <<\_ACEOF
13176 #define XRegisterIMInstantiateCallback_arg6 XPointer
13177 _ACEOF
13180 CFLAGS=$late_CFLAGS
13183 ### Use -lXpm if available, unless `--with-xpm=no'.
13184 HAVE_XPM=no
13185 if test "${HAVE_X11}" = "yes"; then
13186 if test "${with_xpm}" != "no"; then
13187 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13188 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13189 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13190 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13194 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13195 else
13196 # Is the header compilable?
13197 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13198 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13199 cat >conftest.$ac_ext <<_ACEOF
13200 /* confdefs.h. */
13201 _ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 $ac_includes_default
13206 #include <X11/xpm.h>
13207 _ACEOF
13208 rm -f conftest.$ac_objext
13209 if { (ac_try="$ac_compile"
13210 case "(($ac_try" in
13211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13212 *) ac_try_echo=$ac_try;;
13213 esac
13214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13215 (eval "$ac_compile") 2>conftest.er1
13216 ac_status=$?
13217 grep -v '^ *+' conftest.er1 >conftest.err
13218 rm -f conftest.er1
13219 cat conftest.err >&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } && {
13222 test -z "$ac_c_werror_flag" ||
13223 test ! -s conftest.err
13224 } && test -s conftest.$ac_objext; then
13225 ac_header_compiler=yes
13226 else
13227 echo "$as_me: failed program was:" >&5
13228 sed 's/^/| /' conftest.$ac_ext >&5
13230 ac_header_compiler=no
13233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13235 echo "${ECHO_T}$ac_header_compiler" >&6; }
13237 # Is the header present?
13238 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13239 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13240 cat >conftest.$ac_ext <<_ACEOF
13241 /* confdefs.h. */
13242 _ACEOF
13243 cat confdefs.h >>conftest.$ac_ext
13244 cat >>conftest.$ac_ext <<_ACEOF
13245 /* end confdefs.h. */
13246 #include <X11/xpm.h>
13247 _ACEOF
13248 if { (ac_try="$ac_cpp conftest.$ac_ext"
13249 case "(($ac_try" in
13250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251 *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } >/dev/null && {
13261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13262 test ! -s conftest.err
13263 }; then
13264 ac_header_preproc=yes
13265 else
13266 echo "$as_me: failed program was:" >&5
13267 sed 's/^/| /' conftest.$ac_ext >&5
13269 ac_header_preproc=no
13272 rm -f conftest.err conftest.$ac_ext
13273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13274 echo "${ECHO_T}$ac_header_preproc" >&6; }
13276 # So? What about this header?
13277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13278 yes:no: )
13279 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13280 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13282 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13283 ac_header_preproc=yes
13285 no:yes:* )
13286 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13287 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13288 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13289 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13290 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13291 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13293 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13295 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13297 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13300 esac
13301 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13302 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13303 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13304 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306 ac_cv_header_X11_xpm_h=$ac_header_preproc
13308 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13309 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13312 if test $ac_cv_header_X11_xpm_h = yes; then
13313 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13314 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13315 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 else
13318 ac_check_lib_save_LIBS=$LIBS
13319 LIBS="-lXpm -lX11 $LIBS"
13320 cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h. */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h. */
13327 /* Override any GCC internal prototype to avoid an error.
13328 Use char because int might match the return type of a GCC
13329 builtin and then its argument prototype would still apply. */
13330 #ifdef __cplusplus
13331 extern "C"
13332 #endif
13333 char XpmReadFileToPixmap ();
13335 main ()
13337 return XpmReadFileToPixmap ();
13339 return 0;
13341 _ACEOF
13342 rm -f conftest.$ac_objext conftest$ac_exeext
13343 if { (ac_try="$ac_link"
13344 case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13347 esac
13348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_link") 2>conftest.er1
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } && {
13356 test -z "$ac_c_werror_flag" ||
13357 test ! -s conftest.err
13358 } && test -s conftest$ac_exeext &&
13359 $as_test_x conftest$ac_exeext; then
13360 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13361 else
13362 echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13365 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13369 conftest$ac_exeext conftest.$ac_ext
13370 LIBS=$ac_check_lib_save_LIBS
13372 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13373 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13374 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13375 HAVE_XPM=yes
13381 if test "${HAVE_XPM}" = "yes"; then
13382 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13383 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13384 cat >conftest.$ac_ext <<_ACEOF
13385 /* confdefs.h. */
13386 _ACEOF
13387 cat confdefs.h >>conftest.$ac_ext
13388 cat >>conftest.$ac_ext <<_ACEOF
13389 /* end confdefs.h. */
13390 #include "X11/xpm.h"
13391 #ifndef XpmReturnAllocPixels
13392 no_return_alloc_pixels
13393 #endif
13395 _ACEOF
13396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13397 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13398 HAVE_XPM=no
13399 else
13400 HAVE_XPM=yes
13402 rm -f conftest*
13405 if test "${HAVE_XPM}" = "yes"; then
13406 { echo "$as_me:$LINENO: result: yes" >&5
13407 echo "${ECHO_T}yes" >&6; }
13408 else
13409 { echo "$as_me:$LINENO: result: no" >&5
13410 echo "${ECHO_T}no" >&6; }
13415 if test "${HAVE_XPM}" = "yes"; then
13417 cat >>confdefs.h <<\_ACEOF
13418 #define HAVE_XPM 1
13419 _ACEOF
13424 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13425 HAVE_JPEG=no
13426 if test "${HAVE_X11}" = "yes"; then
13427 if test "${with_jpeg}" != "no"; then
13428 if test "${ac_cv_header_jerror_h+set}" = set; then
13429 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13430 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13431 if test "${ac_cv_header_jerror_h+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13435 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13436 else
13437 # Is the header compilable?
13438 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13439 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13440 cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h. */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13446 $ac_includes_default
13447 #include <jerror.h>
13448 _ACEOF
13449 rm -f conftest.$ac_objext
13450 if { (ac_try="$ac_compile"
13451 case "(($ac_try" in
13452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453 *) ac_try_echo=$ac_try;;
13454 esac
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456 (eval "$ac_compile") 2>conftest.er1
13457 ac_status=$?
13458 grep -v '^ *+' conftest.er1 >conftest.err
13459 rm -f conftest.er1
13460 cat conftest.err >&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } && {
13463 test -z "$ac_c_werror_flag" ||
13464 test ! -s conftest.err
13465 } && test -s conftest.$ac_objext; then
13466 ac_header_compiler=yes
13467 else
13468 echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13471 ac_header_compiler=no
13474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13476 echo "${ECHO_T}$ac_header_compiler" >&6; }
13478 # Is the header present?
13479 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13480 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13481 cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h. */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 #include <jerror.h>
13488 _ACEOF
13489 if { (ac_try="$ac_cpp conftest.$ac_ext"
13490 case "(($ac_try" in
13491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13493 esac
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13496 ac_status=$?
13497 grep -v '^ *+' conftest.er1 >conftest.err
13498 rm -f conftest.er1
13499 cat conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } >/dev/null && {
13502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13503 test ! -s conftest.err
13504 }; then
13505 ac_header_preproc=yes
13506 else
13507 echo "$as_me: failed program was:" >&5
13508 sed 's/^/| /' conftest.$ac_ext >&5
13510 ac_header_preproc=no
13513 rm -f conftest.err conftest.$ac_ext
13514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13515 echo "${ECHO_T}$ac_header_preproc" >&6; }
13517 # So? What about this header?
13518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13519 yes:no: )
13520 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13521 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13523 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13524 ac_header_preproc=yes
13526 no:yes:* )
13527 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13528 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13529 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13530 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13531 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13532 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13533 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13534 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13535 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13536 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13537 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13538 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13541 esac
13542 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13543 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13544 if test "${ac_cv_header_jerror_h+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 else
13547 ac_cv_header_jerror_h=$ac_header_preproc
13549 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13550 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13553 if test $ac_cv_header_jerror_h = yes; then
13554 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13555 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13556 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13557 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 else
13559 ac_check_lib_save_LIBS=$LIBS
13560 LIBS="-ljpeg $LIBS"
13561 cat >conftest.$ac_ext <<_ACEOF
13562 /* confdefs.h. */
13563 _ACEOF
13564 cat confdefs.h >>conftest.$ac_ext
13565 cat >>conftest.$ac_ext <<_ACEOF
13566 /* end confdefs.h. */
13568 /* Override any GCC internal prototype to avoid an error.
13569 Use char because int might match the return type of a GCC
13570 builtin and then its argument prototype would still apply. */
13571 #ifdef __cplusplus
13572 extern "C"
13573 #endif
13574 char jpeg_destroy_compress ();
13576 main ()
13578 return jpeg_destroy_compress ();
13580 return 0;
13582 _ACEOF
13583 rm -f conftest.$ac_objext conftest$ac_exeext
13584 if { (ac_try="$ac_link"
13585 case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13588 esac
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_link") 2>conftest.er1
13591 ac_status=$?
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } && {
13597 test -z "$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 } && test -s conftest$ac_exeext &&
13600 $as_test_x conftest$ac_exeext; then
13601 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13602 else
13603 echo "$as_me: failed program was:" >&5
13604 sed 's/^/| /' conftest.$ac_ext >&5
13606 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13610 conftest$ac_exeext conftest.$ac_ext
13611 LIBS=$ac_check_lib_save_LIBS
13613 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13614 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13615 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13616 HAVE_JPEG=yes
13625 if test "${HAVE_JPEG}" = "yes"; then
13626 cat >>confdefs.h <<\_ACEOF
13627 #define HAVE_JPEG 1
13628 _ACEOF
13630 cat >conftest.$ac_ext <<_ACEOF
13631 /* confdefs.h. */
13632 _ACEOF
13633 cat confdefs.h >>conftest.$ac_ext
13634 cat >>conftest.$ac_ext <<_ACEOF
13635 /* end confdefs.h. */
13636 #include <jpeglib.h>
13637 version=JPEG_LIB_VERSION
13639 _ACEOF
13640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13641 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13642 cat >>confdefs.h <<\_ACEOF
13643 #define HAVE_JPEG 1
13644 _ACEOF
13646 else
13647 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13648 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13649 HAVE_JPEG=no
13651 rm -f conftest*
13656 ### Use -lpng if available, unless `--with-png=no'.
13657 HAVE_PNG=no
13658 if test "${HAVE_X11}" = "yes"; then
13659 if test "${with_png}" != "no"; then
13660 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13661 # in /usr/include/libpng.
13664 for ac_header in png.h libpng/png.h
13666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 ac_res=`eval echo '${'$as_ac_Header'}'`
13674 { echo "$as_me:$LINENO: result: $ac_res" >&5
13675 echo "${ECHO_T}$ac_res" >&6; }
13676 else
13677 # Is the header compilable?
13678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h. */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h. */
13686 $ac_includes_default
13687 #include <$ac_header>
13688 _ACEOF
13689 rm -f conftest.$ac_objext
13690 if { (ac_try="$ac_compile"
13691 case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694 esac
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696 (eval "$ac_compile") 2>conftest.er1
13697 ac_status=$?
13698 grep -v '^ *+' conftest.er1 >conftest.err
13699 rm -f conftest.er1
13700 cat conftest.err >&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); } && {
13703 test -z "$ac_c_werror_flag" ||
13704 test ! -s conftest.err
13705 } && test -s conftest.$ac_objext; then
13706 ac_header_compiler=yes
13707 else
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13711 ac_header_compiler=no
13714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13716 echo "${ECHO_T}$ac_header_compiler" >&6; }
13718 # Is the header present?
13719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13721 cat >conftest.$ac_ext <<_ACEOF
13722 /* confdefs.h. */
13723 _ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 #include <$ac_header>
13728 _ACEOF
13729 if { (ac_try="$ac_cpp conftest.$ac_ext"
13730 case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13733 esac
13734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13736 ac_status=$?
13737 grep -v '^ *+' conftest.er1 >conftest.err
13738 rm -f conftest.er1
13739 cat conftest.err >&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } >/dev/null && {
13742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13743 test ! -s conftest.err
13744 }; then
13745 ac_header_preproc=yes
13746 else
13747 echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13750 ac_header_preproc=no
13753 rm -f conftest.err conftest.$ac_ext
13754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13755 echo "${ECHO_T}$ac_header_preproc" >&6; }
13757 # So? What about this header?
13758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13759 yes:no: )
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13764 ac_header_preproc=yes
13766 no:yes:* )
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13781 esac
13782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13786 else
13787 eval "$as_ac_Header=\$ac_header_preproc"
13789 ac_res=`eval echo '${'$as_ac_Header'}'`
13790 { echo "$as_me:$LINENO: result: $ac_res" >&5
13791 echo "${ECHO_T}$ac_res" >&6; }
13794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13795 cat >>confdefs.h <<_ACEOF
13796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13797 _ACEOF
13801 done
13803 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13804 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13805 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13806 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13807 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 else
13809 ac_check_lib_save_LIBS=$LIBS
13810 LIBS="-lpng -lz -lm $LIBS"
13811 cat >conftest.$ac_ext <<_ACEOF
13812 /* confdefs.h. */
13813 _ACEOF
13814 cat confdefs.h >>conftest.$ac_ext
13815 cat >>conftest.$ac_ext <<_ACEOF
13816 /* end confdefs.h. */
13818 /* Override any GCC internal prototype to avoid an error.
13819 Use char because int might match the return type of a GCC
13820 builtin and then its argument prototype would still apply. */
13821 #ifdef __cplusplus
13822 extern "C"
13823 #endif
13824 char png_get_channels ();
13826 main ()
13828 return png_get_channels ();
13830 return 0;
13832 _ACEOF
13833 rm -f conftest.$ac_objext conftest$ac_exeext
13834 if { (ac_try="$ac_link"
13835 case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13838 esac
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_link") 2>conftest.er1
13841 ac_status=$?
13842 grep -v '^ *+' conftest.er1 >conftest.err
13843 rm -f conftest.er1
13844 cat conftest.err >&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } && {
13847 test -z "$ac_c_werror_flag" ||
13848 test ! -s conftest.err
13849 } && test -s conftest$ac_exeext &&
13850 $as_test_x conftest$ac_exeext; then
13851 ac_cv_lib_png_png_get_channels=yes
13852 else
13853 echo "$as_me: failed program was:" >&5
13854 sed 's/^/| /' conftest.$ac_ext >&5
13856 ac_cv_lib_png_png_get_channels=no
13859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13860 conftest$ac_exeext conftest.$ac_ext
13861 LIBS=$ac_check_lib_save_LIBS
13863 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13864 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13865 if test $ac_cv_lib_png_png_get_channels = yes; then
13866 HAVE_PNG=yes
13872 if test "${HAVE_PNG}" = "yes"; then
13874 cat >>confdefs.h <<\_ACEOF
13875 #define HAVE_PNG 1
13876 _ACEOF
13881 ### Use -ltiff if available, unless `--with-tiff=no'.
13882 HAVE_TIFF=no
13883 if test "${HAVE_X11}" = "yes"; then
13884 if test "${with_tiff}" != "no"; then
13885 if test "${ac_cv_header_tiffio_h+set}" = set; then
13886 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13887 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13888 if test "${ac_cv_header_tiffio_h+set}" = set; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13892 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13893 else
13894 # Is the header compilable?
13895 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13896 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13897 cat >conftest.$ac_ext <<_ACEOF
13898 /* confdefs.h. */
13899 _ACEOF
13900 cat confdefs.h >>conftest.$ac_ext
13901 cat >>conftest.$ac_ext <<_ACEOF
13902 /* end confdefs.h. */
13903 $ac_includes_default
13904 #include <tiffio.h>
13905 _ACEOF
13906 rm -f conftest.$ac_objext
13907 if { (ac_try="$ac_compile"
13908 case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13911 esac
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_compile") 2>conftest.er1
13914 ac_status=$?
13915 grep -v '^ *+' conftest.er1 >conftest.err
13916 rm -f conftest.er1
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } && {
13920 test -z "$ac_c_werror_flag" ||
13921 test ! -s conftest.err
13922 } && test -s conftest.$ac_objext; then
13923 ac_header_compiler=yes
13924 else
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13928 ac_header_compiler=no
13931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13932 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13933 echo "${ECHO_T}$ac_header_compiler" >&6; }
13935 # Is the header present?
13936 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13937 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13938 cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h. */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 #include <tiffio.h>
13945 _ACEOF
13946 if { (ac_try="$ac_cpp conftest.$ac_ext"
13947 case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950 esac
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13953 ac_status=$?
13954 grep -v '^ *+' conftest.er1 >conftest.err
13955 rm -f conftest.er1
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } >/dev/null && {
13959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13960 test ! -s conftest.err
13961 }; then
13962 ac_header_preproc=yes
13963 else
13964 echo "$as_me: failed program was:" >&5
13965 sed 's/^/| /' conftest.$ac_ext >&5
13967 ac_header_preproc=no
13970 rm -f conftest.err conftest.$ac_ext
13971 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13972 echo "${ECHO_T}$ac_header_preproc" >&6; }
13974 # So? What about this header?
13975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13976 yes:no: )
13977 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13978 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13980 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13981 ac_header_preproc=yes
13983 no:yes:* )
13984 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13985 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13986 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13987 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13988 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13989 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13990 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13991 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13992 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13993 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13994 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13995 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13998 esac
13999 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14000 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14001 if test "${ac_cv_header_tiffio_h+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 else
14004 ac_cv_header_tiffio_h=$ac_header_preproc
14006 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14007 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14010 if test $ac_cv_header_tiffio_h = yes; then
14011 tifflibs="-lz -lm"
14012 # At least one tiff package requires the jpeg library.
14013 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14014 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14015 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14016 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14017 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 else
14019 ac_check_lib_save_LIBS=$LIBS
14020 LIBS="-ltiff $tifflibs $LIBS"
14021 cat >conftest.$ac_ext <<_ACEOF
14022 /* confdefs.h. */
14023 _ACEOF
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14028 /* Override any GCC internal prototype to avoid an error.
14029 Use char because int might match the return type of a GCC
14030 builtin and then its argument prototype would still apply. */
14031 #ifdef __cplusplus
14032 extern "C"
14033 #endif
14034 char TIFFGetVersion ();
14036 main ()
14038 return TIFFGetVersion ();
14040 return 0;
14042 _ACEOF
14043 rm -f conftest.$ac_objext conftest$ac_exeext
14044 if { (ac_try="$ac_link"
14045 case "(($ac_try" in
14046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14048 esac
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_link") 2>conftest.er1
14051 ac_status=$?
14052 grep -v '^ *+' conftest.er1 >conftest.err
14053 rm -f conftest.er1
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } && {
14057 test -z "$ac_c_werror_flag" ||
14058 test ! -s conftest.err
14059 } && test -s conftest$ac_exeext &&
14060 $as_test_x conftest$ac_exeext; then
14061 ac_cv_lib_tiff_TIFFGetVersion=yes
14062 else
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14066 ac_cv_lib_tiff_TIFFGetVersion=no
14069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14070 conftest$ac_exeext conftest.$ac_ext
14071 LIBS=$ac_check_lib_save_LIBS
14073 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14074 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14075 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14076 HAVE_TIFF=yes
14084 if test "${HAVE_TIFF}" = "yes"; then
14086 cat >>confdefs.h <<\_ACEOF
14087 #define HAVE_TIFF 1
14088 _ACEOF
14093 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14094 HAVE_GIF=no
14095 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14096 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14097 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14098 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14099 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14100 echo $ECHO_N "(cached) $ECHO_C" >&6
14102 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14103 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14104 else
14105 # Is the header compilable?
14106 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14107 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14108 cat >conftest.$ac_ext <<_ACEOF
14109 /* confdefs.h. */
14110 _ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114 $ac_includes_default
14115 #include <gif_lib.h>
14116 _ACEOF
14117 rm -f conftest.$ac_objext
14118 if { (ac_try="$ac_compile"
14119 case "(($ac_try" in
14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14122 esac
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_compile") 2>conftest.er1
14125 ac_status=$?
14126 grep -v '^ *+' conftest.er1 >conftest.err
14127 rm -f conftest.er1
14128 cat conftest.err >&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } && {
14131 test -z "$ac_c_werror_flag" ||
14132 test ! -s conftest.err
14133 } && test -s conftest.$ac_objext; then
14134 ac_header_compiler=yes
14135 else
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14139 ac_header_compiler=no
14142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14144 echo "${ECHO_T}$ac_header_compiler" >&6; }
14146 # Is the header present?
14147 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14148 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14149 cat >conftest.$ac_ext <<_ACEOF
14150 /* confdefs.h. */
14151 _ACEOF
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 #include <gif_lib.h>
14156 _ACEOF
14157 if { (ac_try="$ac_cpp conftest.$ac_ext"
14158 case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14161 esac
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14164 ac_status=$?
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } >/dev/null && {
14170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14171 test ! -s conftest.err
14172 }; then
14173 ac_header_preproc=yes
14174 else
14175 echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14178 ac_header_preproc=no
14181 rm -f conftest.err conftest.$ac_ext
14182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14183 echo "${ECHO_T}$ac_header_preproc" >&6; }
14185 # So? What about this header?
14186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14187 yes:no: )
14188 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14189 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14191 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14192 ac_header_preproc=yes
14194 no:yes:* )
14195 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14196 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14198 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14199 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14200 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14201 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14202 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14203 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14204 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14205 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14206 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14209 esac
14210 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14211 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14212 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215 ac_cv_header_gif_lib_h=$ac_header_preproc
14217 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14218 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14221 if test $ac_cv_header_gif_lib_h = yes; then
14222 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14223 # Earlier versions can crash Emacs.
14224 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14225 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14226 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229 ac_check_lib_save_LIBS=$LIBS
14230 LIBS="-lgif $LIBS"
14231 cat >conftest.$ac_ext <<_ACEOF
14232 /* confdefs.h. */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14238 /* Override any GCC internal prototype to avoid an error.
14239 Use char because int might match the return type of a GCC
14240 builtin and then its argument prototype would still apply. */
14241 #ifdef __cplusplus
14242 extern "C"
14243 #endif
14244 char EGifPutExtensionLast ();
14246 main ()
14248 return EGifPutExtensionLast ();
14250 return 0;
14252 _ACEOF
14253 rm -f conftest.$ac_objext conftest$ac_exeext
14254 if { (ac_try="$ac_link"
14255 case "(($ac_try" in
14256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14257 *) ac_try_echo=$ac_try;;
14258 esac
14259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14260 (eval "$ac_link") 2>conftest.er1
14261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } && {
14267 test -z "$ac_c_werror_flag" ||
14268 test ! -s conftest.err
14269 } && test -s conftest$ac_exeext &&
14270 $as_test_x conftest$ac_exeext; then
14271 ac_cv_lib_gif_EGifPutExtensionLast=yes
14272 else
14273 echo "$as_me: failed program was:" >&5
14274 sed 's/^/| /' conftest.$ac_ext >&5
14276 ac_cv_lib_gif_EGifPutExtensionLast=no
14279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14280 conftest$ac_exeext conftest.$ac_ext
14281 LIBS=$ac_check_lib_save_LIBS
14283 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14284 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14285 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14286 HAVE_GIF=yes
14287 else
14288 try_libungif=yes
14295 if test "$HAVE_GIF" = yes; then
14296 ac_gif_lib_name="-lgif"
14299 # If gif_lib.h but no libgif, try libungif.
14300 if test x"$try_libungif" = xyes; then
14301 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14302 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14303 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14304 echo $ECHO_N "(cached) $ECHO_C" >&6
14305 else
14306 ac_check_lib_save_LIBS=$LIBS
14307 LIBS="-lungif $LIBS"
14308 cat >conftest.$ac_ext <<_ACEOF
14309 /* confdefs.h. */
14310 _ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14315 /* Override any GCC internal prototype to avoid an error.
14316 Use char because int might match the return type of a GCC
14317 builtin and then its argument prototype would still apply. */
14318 #ifdef __cplusplus
14319 extern "C"
14320 #endif
14321 char EGifPutExtensionLast ();
14323 main ()
14325 return EGifPutExtensionLast ();
14327 return 0;
14329 _ACEOF
14330 rm -f conftest.$ac_objext conftest$ac_exeext
14331 if { (ac_try="$ac_link"
14332 case "(($ac_try" in
14333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14335 esac
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_link") 2>conftest.er1
14338 ac_status=$?
14339 grep -v '^ *+' conftest.er1 >conftest.err
14340 rm -f conftest.er1
14341 cat conftest.err >&5
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); } && {
14344 test -z "$ac_c_werror_flag" ||
14345 test ! -s conftest.err
14346 } && test -s conftest$ac_exeext &&
14347 $as_test_x conftest$ac_exeext; then
14348 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14349 else
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 ac_cv_lib_ungif_EGifPutExtensionLast=no
14356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14357 conftest$ac_exeext conftest.$ac_ext
14358 LIBS=$ac_check_lib_save_LIBS
14360 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14361 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14362 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14363 HAVE_GIF=yes
14367 if test "$HAVE_GIF" = yes; then
14369 cat >>confdefs.h <<\_ACEOF
14370 #define LIBGIF -lungif
14371 _ACEOF
14373 ac_gif_lib_name="-lungif"
14377 if test "${HAVE_GIF}" = "yes"; then
14379 cat >>confdefs.h <<\_ACEOF
14380 #define HAVE_GIF 1
14381 _ACEOF
14386 if test "${HAVE_X11}" = "yes"; then
14387 MISSING=""
14388 WITH_NO=""
14389 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14390 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14391 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14392 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14393 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14394 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14395 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14396 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14397 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14398 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14400 if test "X${MISSING}" != X; then
14401 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14402 $MISSING
14403 Maybe some development libraries/packages are missing?
14404 If you don't want to link with them give
14405 $WITH_NO
14406 as options to configure" >&5
14407 echo "$as_me: error: The following required libraries were not found:
14408 $MISSING
14409 Maybe some development libraries/packages are missing?
14410 If you don't want to link with them give
14411 $WITH_NO
14412 as options to configure" >&2;}
14413 { (exit 1); exit 1; }; }
14417 ### Use -lgpm if available, unless `--with-gpm=no'.
14418 HAVE_GPM=no
14419 if test "${with_gpm}" != "no"; then
14420 if test "${ac_cv_header_gpm_h+set}" = set; then
14421 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14422 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14423 if test "${ac_cv_header_gpm_h+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14427 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14428 else
14429 # Is the header compilable?
14430 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14431 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14432 cat >conftest.$ac_ext <<_ACEOF
14433 /* confdefs.h. */
14434 _ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14438 $ac_includes_default
14439 #include <gpm.h>
14440 _ACEOF
14441 rm -f conftest.$ac_objext
14442 if { (ac_try="$ac_compile"
14443 case "(($ac_try" in
14444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14445 *) ac_try_echo=$ac_try;;
14446 esac
14447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14448 (eval "$ac_compile") 2>conftest.er1
14449 ac_status=$?
14450 grep -v '^ *+' conftest.er1 >conftest.err
14451 rm -f conftest.er1
14452 cat conftest.err >&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); } && {
14455 test -z "$ac_c_werror_flag" ||
14456 test ! -s conftest.err
14457 } && test -s conftest.$ac_objext; then
14458 ac_header_compiler=yes
14459 else
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14463 ac_header_compiler=no
14466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14468 echo "${ECHO_T}$ac_header_compiler" >&6; }
14470 # Is the header present?
14471 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14472 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14473 cat >conftest.$ac_ext <<_ACEOF
14474 /* confdefs.h. */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14479 #include <gpm.h>
14480 _ACEOF
14481 if { (ac_try="$ac_cpp conftest.$ac_ext"
14482 case "(($ac_try" in
14483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484 *) ac_try_echo=$ac_try;;
14485 esac
14486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } >/dev/null && {
14494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14496 }; then
14497 ac_header_preproc=yes
14498 else
14499 echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14502 ac_header_preproc=no
14505 rm -f conftest.err conftest.$ac_ext
14506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14507 echo "${ECHO_T}$ac_header_preproc" >&6; }
14509 # So? What about this header?
14510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14511 yes:no: )
14512 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14513 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14515 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14516 ac_header_preproc=yes
14518 no:yes:* )
14519 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14520 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14521 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14522 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14523 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14524 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14525 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14526 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14528 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14530 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14533 esac
14534 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14535 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14536 if test "${ac_cv_header_gpm_h+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 else
14539 ac_cv_header_gpm_h=$ac_header_preproc
14541 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14542 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14545 if test $ac_cv_header_gpm_h = yes; then
14546 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14547 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14548 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14550 else
14551 ac_check_lib_save_LIBS=$LIBS
14552 LIBS="-lgpm $LIBS"
14553 cat >conftest.$ac_ext <<_ACEOF
14554 /* confdefs.h. */
14555 _ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14560 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14563 #ifdef __cplusplus
14564 extern "C"
14565 #endif
14566 char Gpm_Open ();
14568 main ()
14570 return Gpm_Open ();
14572 return 0;
14574 _ACEOF
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580 esac
14581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14582 (eval "$ac_link") 2>conftest.er1
14583 ac_status=$?
14584 grep -v '^ *+' conftest.er1 >conftest.err
14585 rm -f conftest.er1
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } && {
14589 test -z "$ac_c_werror_flag" ||
14590 test ! -s conftest.err
14591 } && test -s conftest$ac_exeext &&
14592 $as_test_x conftest$ac_exeext; then
14593 ac_cv_lib_gpm_Gpm_Open=yes
14594 else
14595 echo "$as_me: failed program was:" >&5
14596 sed 's/^/| /' conftest.$ac_ext >&5
14598 ac_cv_lib_gpm_Gpm_Open=no
14601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14602 conftest$ac_exeext conftest.$ac_ext
14603 LIBS=$ac_check_lib_save_LIBS
14605 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14606 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14607 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14608 HAVE_GPM=yes
14616 if test "${HAVE_GPM}" = "yes"; then
14618 cat >>confdefs.h <<\_ACEOF
14619 #define HAVE_GPM 1
14620 _ACEOF
14624 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14625 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14626 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14627 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14628 echo $ECHO_N "(cached) $ECHO_C" >&6
14630 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14631 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14632 else
14633 # Is the header compilable?
14634 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14635 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14636 cat >conftest.$ac_ext <<_ACEOF
14637 /* confdefs.h. */
14638 _ACEOF
14639 cat confdefs.h >>conftest.$ac_ext
14640 cat >>conftest.$ac_ext <<_ACEOF
14641 /* end confdefs.h. */
14642 $ac_includes_default
14643 #include <malloc/malloc.h>
14644 _ACEOF
14645 rm -f conftest.$ac_objext
14646 if { (ac_try="$ac_compile"
14647 case "(($ac_try" in
14648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14649 *) ac_try_echo=$ac_try;;
14650 esac
14651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14652 (eval "$ac_compile") 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } && {
14659 test -z "$ac_c_werror_flag" ||
14660 test ! -s conftest.err
14661 } && test -s conftest.$ac_objext; then
14662 ac_header_compiler=yes
14663 else
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 ac_header_compiler=no
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14672 echo "${ECHO_T}$ac_header_compiler" >&6; }
14674 # Is the header present?
14675 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14676 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14677 cat >conftest.$ac_ext <<_ACEOF
14678 /* confdefs.h. */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 #include <malloc/malloc.h>
14684 _ACEOF
14685 if { (ac_try="$ac_cpp conftest.$ac_ext"
14686 case "(($ac_try" in
14687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688 *) ac_try_echo=$ac_try;;
14689 esac
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14692 ac_status=$?
14693 grep -v '^ *+' conftest.er1 >conftest.err
14694 rm -f conftest.er1
14695 cat conftest.err >&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); } >/dev/null && {
14698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14699 test ! -s conftest.err
14700 }; then
14701 ac_header_preproc=yes
14702 else
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ac_header_preproc=no
14709 rm -f conftest.err conftest.$ac_ext
14710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14711 echo "${ECHO_T}$ac_header_preproc" >&6; }
14713 # So? What about this header?
14714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14715 yes:no: )
14716 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14717 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14719 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14720 ac_header_preproc=yes
14722 no:yes:* )
14723 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14724 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14726 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14728 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14730 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14732 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14734 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14737 esac
14738 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14739 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14740 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14741 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 else
14743 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14745 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14746 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14749 if test $ac_cv_header_malloc_malloc_h = yes; then
14751 cat >>confdefs.h <<\_ACEOF
14752 #define HAVE_MALLOC_MALLOC_H 1
14753 _ACEOF
14759 ### Use Mac OS X Carbon API to implement GUI.
14760 if test "${HAVE_CARBON}" = "yes"; then
14762 cat >>confdefs.h <<\_ACEOF
14763 #define HAVE_CARBON 1
14764 _ACEOF
14766 ## Specify the install directory
14767 carbon_appdir=
14768 if test "${carbon_appdir_x}" != ""; then
14769 case ${carbon_appdir_x} in
14770 y | ye | yes) carbon_appdir=/Applications ;;
14771 * ) carbon_appdir=${carbon_appdir_x} ;;
14772 esac
14774 # We also have mouse menus.
14775 HAVE_MENUS=yes
14778 ### Use session management (-lSM -lICE) if available
14779 HAVE_X_SM=no
14780 if test "${HAVE_X11}" = "yes"; then
14781 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14782 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14783 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14784 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14788 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14789 else
14790 # Is the header compilable?
14791 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14792 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14793 cat >conftest.$ac_ext <<_ACEOF
14794 /* confdefs.h. */
14795 _ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h. */
14799 $ac_includes_default
14800 #include <X11/SM/SMlib.h>
14801 _ACEOF
14802 rm -f conftest.$ac_objext
14803 if { (ac_try="$ac_compile"
14804 case "(($ac_try" in
14805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14806 *) ac_try_echo=$ac_try;;
14807 esac
14808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14809 (eval "$ac_compile") 2>conftest.er1
14810 ac_status=$?
14811 grep -v '^ *+' conftest.er1 >conftest.err
14812 rm -f conftest.er1
14813 cat conftest.err >&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } && {
14816 test -z "$ac_c_werror_flag" ||
14817 test ! -s conftest.err
14818 } && test -s conftest.$ac_objext; then
14819 ac_header_compiler=yes
14820 else
14821 echo "$as_me: failed program was:" >&5
14822 sed 's/^/| /' conftest.$ac_ext >&5
14824 ac_header_compiler=no
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14829 echo "${ECHO_T}$ac_header_compiler" >&6; }
14831 # Is the header present?
14832 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14833 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14834 cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h. */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 #include <X11/SM/SMlib.h>
14841 _ACEOF
14842 if { (ac_try="$ac_cpp conftest.$ac_ext"
14843 case "(($ac_try" in
14844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14845 *) ac_try_echo=$ac_try;;
14846 esac
14847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14849 ac_status=$?
14850 grep -v '^ *+' conftest.er1 >conftest.err
14851 rm -f conftest.er1
14852 cat conftest.err >&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); } >/dev/null && {
14855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14856 test ! -s conftest.err
14857 }; then
14858 ac_header_preproc=yes
14859 else
14860 echo "$as_me: failed program was:" >&5
14861 sed 's/^/| /' conftest.$ac_ext >&5
14863 ac_header_preproc=no
14866 rm -f conftest.err conftest.$ac_ext
14867 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14868 echo "${ECHO_T}$ac_header_preproc" >&6; }
14870 # So? What about this header?
14871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14872 yes:no: )
14873 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14874 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14876 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14877 ac_header_preproc=yes
14879 no:yes:* )
14880 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14881 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14883 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14885 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14886 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14887 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14889 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14891 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14894 esac
14895 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14896 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14897 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 else
14900 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14902 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14903 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14906 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14907 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14908 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14909 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14910 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 else
14912 ac_check_lib_save_LIBS=$LIBS
14913 LIBS="-lSM -lICE $LIBS"
14914 cat >conftest.$ac_ext <<_ACEOF
14915 /* confdefs.h. */
14916 _ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14921 /* Override any GCC internal prototype to avoid an error.
14922 Use char because int might match the return type of a GCC
14923 builtin and then its argument prototype would still apply. */
14924 #ifdef __cplusplus
14925 extern "C"
14926 #endif
14927 char SmcOpenConnection ();
14929 main ()
14931 return SmcOpenConnection ();
14933 return 0;
14935 _ACEOF
14936 rm -f conftest.$ac_objext conftest$ac_exeext
14937 if { (ac_try="$ac_link"
14938 case "(($ac_try" in
14939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14940 *) ac_try_echo=$ac_try;;
14941 esac
14942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14943 (eval "$ac_link") 2>conftest.er1
14944 ac_status=$?
14945 grep -v '^ *+' conftest.er1 >conftest.err
14946 rm -f conftest.er1
14947 cat conftest.err >&5
14948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14949 (exit $ac_status); } && {
14950 test -z "$ac_c_werror_flag" ||
14951 test ! -s conftest.err
14952 } && test -s conftest$ac_exeext &&
14953 $as_test_x conftest$ac_exeext; then
14954 ac_cv_lib_SM_SmcOpenConnection=yes
14955 else
14956 echo "$as_me: failed program was:" >&5
14957 sed 's/^/| /' conftest.$ac_ext >&5
14959 ac_cv_lib_SM_SmcOpenConnection=no
14962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14963 conftest$ac_exeext conftest.$ac_ext
14964 LIBS=$ac_check_lib_save_LIBS
14966 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14967 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14968 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14969 HAVE_X_SM=yes
14976 if test "${HAVE_X_SM}" = "yes"; then
14978 cat >>confdefs.h <<\_ACEOF
14979 #define HAVE_X_SM 1
14980 _ACEOF
14982 case "$LIBS" in
14983 *-lSM*) ;;
14984 *) LIBS="-lSM -lICE $LIBS" ;;
14985 esac
14989 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14990 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14991 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14992 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14994 else
14995 cat >conftest.$ac_ext <<_ACEOF
14996 /* confdefs.h. */
14997 _ACEOF
14998 cat confdefs.h >>conftest.$ac_ext
14999 cat >>conftest.$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15001 #include <netdb.h>
15003 main ()
15005 return h_errno;
15007 return 0;
15009 _ACEOF
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (ac_try="$ac_link"
15012 case "(($ac_try" in
15013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_link") 2>conftest.er1
15018 ac_status=$?
15019 grep -v '^ *+' conftest.er1 >conftest.err
15020 rm -f conftest.er1
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } && {
15024 test -z "$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15026 } && test -s conftest$ac_exeext &&
15027 $as_test_x conftest$ac_exeext; then
15028 emacs_cv_netdb_declares_h_errno=yes
15029 else
15030 echo "$as_me: failed program was:" >&5
15031 sed 's/^/| /' conftest.$ac_ext >&5
15033 emacs_cv_netdb_declares_h_errno=no
15036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15037 conftest$ac_exeext conftest.$ac_ext
15039 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15040 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15041 if test $emacs_cv_netdb_declares_h_errno = yes; then
15043 cat >>confdefs.h <<\_ACEOF
15044 #define HAVE_H_ERRNO 1
15045 _ACEOF
15049 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15050 # for constant arguments. Useless!
15051 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15052 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15053 if test "${ac_cv_working_alloca_h+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 else
15056 cat >conftest.$ac_ext <<_ACEOF
15057 /* confdefs.h. */
15058 _ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15062 #include <alloca.h>
15064 main ()
15066 char *p = (char *) alloca (2 * sizeof (int));
15067 if (p) return 0;
15069 return 0;
15071 _ACEOF
15072 rm -f conftest.$ac_objext conftest$ac_exeext
15073 if { (ac_try="$ac_link"
15074 case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15077 esac
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_link") 2>conftest.er1
15080 ac_status=$?
15081 grep -v '^ *+' conftest.er1 >conftest.err
15082 rm -f conftest.er1
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } && {
15086 test -z "$ac_c_werror_flag" ||
15087 test ! -s conftest.err
15088 } && test -s conftest$ac_exeext &&
15089 $as_test_x conftest$ac_exeext; then
15090 ac_cv_working_alloca_h=yes
15091 else
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15095 ac_cv_working_alloca_h=no
15098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15099 conftest$ac_exeext conftest.$ac_ext
15101 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15102 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15103 if test $ac_cv_working_alloca_h = yes; then
15105 cat >>confdefs.h <<\_ACEOF
15106 #define HAVE_ALLOCA_H 1
15107 _ACEOF
15111 { echo "$as_me:$LINENO: checking for alloca" >&5
15112 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15113 if test "${ac_cv_func_alloca_works+set}" = set; then
15114 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116 cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h. */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122 #ifdef __GNUC__
15123 # define alloca __builtin_alloca
15124 #else
15125 # ifdef _MSC_VER
15126 # include <malloc.h>
15127 # define alloca _alloca
15128 # else
15129 # ifdef HAVE_ALLOCA_H
15130 # include <alloca.h>
15131 # else
15132 # ifdef _AIX
15133 #pragma alloca
15134 # else
15135 # ifndef alloca /* predefined by HP cc +Olibcalls */
15136 char *alloca ();
15137 # endif
15138 # endif
15139 # endif
15140 # endif
15141 #endif
15144 main ()
15146 char *p = (char *) alloca (1);
15147 if (p) return 0;
15149 return 0;
15151 _ACEOF
15152 rm -f conftest.$ac_objext conftest$ac_exeext
15153 if { (ac_try="$ac_link"
15154 case "(($ac_try" in
15155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15156 *) ac_try_echo=$ac_try;;
15157 esac
15158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15159 (eval "$ac_link") 2>conftest.er1
15160 ac_status=$?
15161 grep -v '^ *+' conftest.er1 >conftest.err
15162 rm -f conftest.er1
15163 cat conftest.err >&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } && {
15166 test -z "$ac_c_werror_flag" ||
15167 test ! -s conftest.err
15168 } && test -s conftest$ac_exeext &&
15169 $as_test_x conftest$ac_exeext; then
15170 ac_cv_func_alloca_works=yes
15171 else
15172 echo "$as_me: failed program was:" >&5
15173 sed 's/^/| /' conftest.$ac_ext >&5
15175 ac_cv_func_alloca_works=no
15178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15179 conftest$ac_exeext conftest.$ac_ext
15181 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15182 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15184 if test $ac_cv_func_alloca_works = yes; then
15186 cat >>confdefs.h <<\_ACEOF
15187 #define HAVE_ALLOCA 1
15188 _ACEOF
15190 else
15191 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15192 # that cause trouble. Some versions do not even contain alloca or
15193 # contain a buggy version. If you still want to use their alloca,
15194 # use ar to extract alloca.o from them instead of compiling alloca.c.
15196 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15198 cat >>confdefs.h <<\_ACEOF
15199 #define C_ALLOCA 1
15200 _ACEOF
15203 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15204 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15205 if test "${ac_cv_os_cray+set}" = set; then
15206 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 else
15208 cat >conftest.$ac_ext <<_ACEOF
15209 /* confdefs.h. */
15210 _ACEOF
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 #if defined CRAY && ! defined CRAY2
15215 webecray
15216 #else
15217 wenotbecray
15218 #endif
15220 _ACEOF
15221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15222 $EGREP "webecray" >/dev/null 2>&1; then
15223 ac_cv_os_cray=yes
15224 else
15225 ac_cv_os_cray=no
15227 rm -f conftest*
15230 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15231 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15232 if test $ac_cv_os_cray = yes; then
15233 for ac_func in _getb67 GETB67 getb67; do
15234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240 cat >conftest.$ac_ext <<_ACEOF
15241 /* confdefs.h. */
15242 _ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h. */
15246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15248 #define $ac_func innocuous_$ac_func
15250 /* System header to define __stub macros and hopefully few prototypes,
15251 which can conflict with char $ac_func (); below.
15252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15253 <limits.h> exists even on freestanding compilers. */
15255 #ifdef __STDC__
15256 # include <limits.h>
15257 #else
15258 # include <assert.h>
15259 #endif
15261 #undef $ac_func
15263 /* Override any GCC internal prototype to avoid an error.
15264 Use char because int might match the return type of a GCC
15265 builtin and then its argument prototype would still apply. */
15266 #ifdef __cplusplus
15267 extern "C"
15268 #endif
15269 char $ac_func ();
15270 /* The GNU C library defines this for functions which it implements
15271 to always fail with ENOSYS. Some functions are actually named
15272 something starting with __ and the normal name is an alias. */
15273 #if defined __stub_$ac_func || defined __stub___$ac_func
15274 choke me
15275 #endif
15278 main ()
15280 return $ac_func ();
15282 return 0;
15284 _ACEOF
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (ac_try="$ac_link"
15287 case "(($ac_try" in
15288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15290 esac
15291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_link") 2>conftest.er1
15293 ac_status=$?
15294 grep -v '^ *+' conftest.er1 >conftest.err
15295 rm -f conftest.er1
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } && {
15299 test -z "$ac_c_werror_flag" ||
15300 test ! -s conftest.err
15301 } && test -s conftest$ac_exeext &&
15302 $as_test_x conftest$ac_exeext; then
15303 eval "$as_ac_var=yes"
15304 else
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15308 eval "$as_ac_var=no"
15311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15312 conftest$ac_exeext conftest.$ac_ext
15314 ac_res=`eval echo '${'$as_ac_var'}'`
15315 { echo "$as_me:$LINENO: result: $ac_res" >&5
15316 echo "${ECHO_T}$ac_res" >&6; }
15317 if test `eval echo '${'$as_ac_var'}'` = yes; then
15319 cat >>confdefs.h <<_ACEOF
15320 #define CRAY_STACKSEG_END $ac_func
15321 _ACEOF
15323 break
15326 done
15329 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15330 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15331 if test "${ac_cv_c_stack_direction+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334 if test "$cross_compiling" = yes; then
15335 ac_cv_c_stack_direction=0
15336 else
15337 cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h. */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343 $ac_includes_default
15345 find_stack_direction ()
15347 static char *addr = 0;
15348 auto char dummy;
15349 if (addr == 0)
15351 addr = &dummy;
15352 return find_stack_direction ();
15354 else
15355 return (&dummy > addr) ? 1 : -1;
15359 main ()
15361 return find_stack_direction () < 0;
15363 _ACEOF
15364 rm -f conftest$ac_exeext
15365 if { (ac_try="$ac_link"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15375 { (case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_try") 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; }; then
15384 ac_cv_c_stack_direction=1
15385 else
15386 echo "$as_me: program exited with status $ac_status" >&5
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 ( exit $ac_status )
15391 ac_cv_c_stack_direction=-1
15393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15398 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15399 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15401 cat >>confdefs.h <<_ACEOF
15402 #define STACK_DIRECTION $ac_cv_c_stack_direction
15403 _ACEOF
15409 if test x"$ac_cv_func_alloca_works" != xyes; then
15410 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15411 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15412 { (exit 1); exit 1; }; }
15415 # fmod, logb, and frexp are found in -lm on most systems.
15416 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15418 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15419 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15420 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15422 else
15423 ac_check_lib_save_LIBS=$LIBS
15424 LIBS="-lm $LIBS"
15425 cat >conftest.$ac_ext <<_ACEOF
15426 /* confdefs.h. */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h. */
15432 /* Override any GCC internal prototype to avoid an error.
15433 Use char because int might match the return type of a GCC
15434 builtin and then its argument prototype would still apply. */
15435 #ifdef __cplusplus
15436 extern "C"
15437 #endif
15438 char sqrt ();
15440 main ()
15442 return sqrt ();
15444 return 0;
15446 _ACEOF
15447 rm -f conftest.$ac_objext conftest$ac_exeext
15448 if { (ac_try="$ac_link"
15449 case "(($ac_try" in
15450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15451 *) ac_try_echo=$ac_try;;
15452 esac
15453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15454 (eval "$ac_link") 2>conftest.er1
15455 ac_status=$?
15456 grep -v '^ *+' conftest.er1 >conftest.err
15457 rm -f conftest.er1
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } && {
15461 test -z "$ac_c_werror_flag" ||
15462 test ! -s conftest.err
15463 } && test -s conftest$ac_exeext &&
15464 $as_test_x conftest$ac_exeext; then
15465 ac_cv_lib_m_sqrt=yes
15466 else
15467 echo "$as_me: failed program was:" >&5
15468 sed 's/^/| /' conftest.$ac_ext >&5
15470 ac_cv_lib_m_sqrt=no
15473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15474 conftest$ac_exeext conftest.$ac_ext
15475 LIBS=$ac_check_lib_save_LIBS
15477 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15478 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15479 if test $ac_cv_lib_m_sqrt = yes; then
15480 cat >>confdefs.h <<_ACEOF
15481 #define HAVE_LIBM 1
15482 _ACEOF
15484 LIBS="-lm $LIBS"
15489 # Check for mail-locking functions in a "mail" library. Probably this should
15490 # have the same check as for liblockfile below.
15492 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15493 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15494 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15496 else
15497 ac_check_lib_save_LIBS=$LIBS
15498 LIBS="-lmail $LIBS"
15499 cat >conftest.$ac_ext <<_ACEOF
15500 /* confdefs.h. */
15501 _ACEOF
15502 cat confdefs.h >>conftest.$ac_ext
15503 cat >>conftest.$ac_ext <<_ACEOF
15504 /* end confdefs.h. */
15506 /* Override any GCC internal prototype to avoid an error.
15507 Use char because int might match the return type of a GCC
15508 builtin and then its argument prototype would still apply. */
15509 #ifdef __cplusplus
15510 extern "C"
15511 #endif
15512 char maillock ();
15514 main ()
15516 return maillock ();
15518 return 0;
15520 _ACEOF
15521 rm -f conftest.$ac_objext conftest$ac_exeext
15522 if { (ac_try="$ac_link"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15526 esac
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_link") 2>conftest.er1
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } && {
15535 test -z "$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15537 } && test -s conftest$ac_exeext &&
15538 $as_test_x conftest$ac_exeext; then
15539 ac_cv_lib_mail_maillock=yes
15540 else
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_cv_lib_mail_maillock=no
15547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15548 conftest$ac_exeext conftest.$ac_ext
15549 LIBS=$ac_check_lib_save_LIBS
15551 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15552 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15553 if test $ac_cv_lib_mail_maillock = yes; then
15554 cat >>confdefs.h <<_ACEOF
15555 #define HAVE_LIBMAIL 1
15556 _ACEOF
15558 LIBS="-lmail $LIBS"
15563 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15564 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15565 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15566 echo $ECHO_N "(cached) $ECHO_C" >&6
15567 else
15568 ac_check_lib_save_LIBS=$LIBS
15569 LIBS="-llockfile $LIBS"
15570 cat >conftest.$ac_ext <<_ACEOF
15571 /* confdefs.h. */
15572 _ACEOF
15573 cat confdefs.h >>conftest.$ac_ext
15574 cat >>conftest.$ac_ext <<_ACEOF
15575 /* end confdefs.h. */
15577 /* Override any GCC internal prototype to avoid an error.
15578 Use char because int might match the return type of a GCC
15579 builtin and then its argument prototype would still apply. */
15580 #ifdef __cplusplus
15581 extern "C"
15582 #endif
15583 char maillock ();
15585 main ()
15587 return maillock ();
15589 return 0;
15591 _ACEOF
15592 rm -f conftest.$ac_objext conftest$ac_exeext
15593 if { (ac_try="$ac_link"
15594 case "(($ac_try" in
15595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596 *) ac_try_echo=$ac_try;;
15597 esac
15598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599 (eval "$ac_link") 2>conftest.er1
15600 ac_status=$?
15601 grep -v '^ *+' conftest.er1 >conftest.err
15602 rm -f conftest.er1
15603 cat conftest.err >&5
15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605 (exit $ac_status); } && {
15606 test -z "$ac_c_werror_flag" ||
15607 test ! -s conftest.err
15608 } && test -s conftest$ac_exeext &&
15609 $as_test_x conftest$ac_exeext; then
15610 ac_cv_lib_lockfile_maillock=yes
15611 else
15612 echo "$as_me: failed program was:" >&5
15613 sed 's/^/| /' conftest.$ac_ext >&5
15615 ac_cv_lib_lockfile_maillock=no
15618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15619 conftest$ac_exeext conftest.$ac_ext
15620 LIBS=$ac_check_lib_save_LIBS
15622 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15623 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15624 if test $ac_cv_lib_lockfile_maillock = yes; then
15625 cat >>confdefs.h <<_ACEOF
15626 #define HAVE_LIBLOCKFILE 1
15627 _ACEOF
15629 LIBS="-llockfile $LIBS"
15633 # If we have the shared liblockfile, assume we must use it for mail
15634 # locking (e.g. Debian). If we couldn't link against liblockfile
15635 # (no liblockfile.a installed), ensure that we don't need to.
15636 if test "$ac_cv_lib_lockfile_maillock" = no; then
15637 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15638 set dummy liblockfile.so; ac_word=$2
15639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15641 if test "${ac_cv_prog_liblockfile+set}" = set; then
15642 echo $ECHO_N "(cached) $ECHO_C" >&6
15643 else
15644 if test -n "$liblockfile"; then
15645 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15646 else
15647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15648 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15649 for as_dir in $as_dummy
15651 IFS=$as_save_IFS
15652 test -z "$as_dir" && as_dir=.
15653 for ac_exec_ext in '' $ac_executable_extensions; do
15654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15655 ac_cv_prog_liblockfile="yes"
15656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15657 break 2
15659 done
15660 done
15661 IFS=$as_save_IFS
15663 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15666 liblockfile=$ac_cv_prog_liblockfile
15667 if test -n "$liblockfile"; then
15668 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15669 echo "${ECHO_T}$liblockfile" >&6; }
15670 else
15671 { echo "$as_me:$LINENO: result: no" >&5
15672 echo "${ECHO_T}no" >&6; }
15676 if test $ac_cv_prog_liblockfile = yes; then
15677 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15678 This probably means that movemail could lose mail.
15679 There may be a \`development' package to install containing liblockfile." >&5
15680 echo "$as_me: error: Shared liblockfile found but can't link against it.
15681 This probably means that movemail could lose mail.
15682 There may be a \`development' package to install containing liblockfile." >&2;}
15683 { (exit 1); exit 1; }; }
15684 else :
15688 for ac_func in touchlock
15690 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15691 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15692 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15695 else
15696 cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h. */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h. */
15702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15704 #define $ac_func innocuous_$ac_func
15706 /* System header to define __stub macros and hopefully few prototypes,
15707 which can conflict with char $ac_func (); below.
15708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15709 <limits.h> exists even on freestanding compilers. */
15711 #ifdef __STDC__
15712 # include <limits.h>
15713 #else
15714 # include <assert.h>
15715 #endif
15717 #undef $ac_func
15719 /* Override any GCC internal prototype to avoid an error.
15720 Use char because int might match the return type of a GCC
15721 builtin and then its argument prototype would still apply. */
15722 #ifdef __cplusplus
15723 extern "C"
15724 #endif
15725 char $ac_func ();
15726 /* The GNU C library defines this for functions which it implements
15727 to always fail with ENOSYS. Some functions are actually named
15728 something starting with __ and the normal name is an alias. */
15729 #if defined __stub_$ac_func || defined __stub___$ac_func
15730 choke me
15731 #endif
15734 main ()
15736 return $ac_func ();
15738 return 0;
15740 _ACEOF
15741 rm -f conftest.$ac_objext conftest$ac_exeext
15742 if { (ac_try="$ac_link"
15743 case "(($ac_try" in
15744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15745 *) ac_try_echo=$ac_try;;
15746 esac
15747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15748 (eval "$ac_link") 2>conftest.er1
15749 ac_status=$?
15750 grep -v '^ *+' conftest.er1 >conftest.err
15751 rm -f conftest.er1
15752 cat conftest.err >&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); } && {
15755 test -z "$ac_c_werror_flag" ||
15756 test ! -s conftest.err
15757 } && test -s conftest$ac_exeext &&
15758 $as_test_x conftest$ac_exeext; then
15759 eval "$as_ac_var=yes"
15760 else
15761 echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15764 eval "$as_ac_var=no"
15767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15768 conftest$ac_exeext conftest.$ac_ext
15770 ac_res=`eval echo '${'$as_ac_var'}'`
15771 { echo "$as_me:$LINENO: result: $ac_res" >&5
15772 echo "${ECHO_T}$ac_res" >&6; }
15773 if test `eval echo '${'$as_ac_var'}'` = yes; then
15774 cat >>confdefs.h <<_ACEOF
15775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15776 _ACEOF
15779 done
15782 for ac_header in maillock.h
15784 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 echo $ECHO_N "(cached) $ECHO_C" >&6
15791 ac_res=`eval echo '${'$as_ac_Header'}'`
15792 { echo "$as_me:$LINENO: result: $ac_res" >&5
15793 echo "${ECHO_T}$ac_res" >&6; }
15794 else
15795 # Is the header compilable?
15796 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15798 cat >conftest.$ac_ext <<_ACEOF
15799 /* confdefs.h. */
15800 _ACEOF
15801 cat confdefs.h >>conftest.$ac_ext
15802 cat >>conftest.$ac_ext <<_ACEOF
15803 /* end confdefs.h. */
15804 $ac_includes_default
15805 #include <$ac_header>
15806 _ACEOF
15807 rm -f conftest.$ac_objext
15808 if { (ac_try="$ac_compile"
15809 case "(($ac_try" in
15810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15811 *) ac_try_echo=$ac_try;;
15812 esac
15813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15814 (eval "$ac_compile") 2>conftest.er1
15815 ac_status=$?
15816 grep -v '^ *+' conftest.er1 >conftest.err
15817 rm -f conftest.er1
15818 cat conftest.err >&5
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } && {
15821 test -z "$ac_c_werror_flag" ||
15822 test ! -s conftest.err
15823 } && test -s conftest.$ac_objext; then
15824 ac_header_compiler=yes
15825 else
15826 echo "$as_me: failed program was:" >&5
15827 sed 's/^/| /' conftest.$ac_ext >&5
15829 ac_header_compiler=no
15832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15834 echo "${ECHO_T}$ac_header_compiler" >&6; }
15836 # Is the header present?
15837 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15838 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15839 cat >conftest.$ac_ext <<_ACEOF
15840 /* confdefs.h. */
15841 _ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15845 #include <$ac_header>
15846 _ACEOF
15847 if { (ac_try="$ac_cpp conftest.$ac_ext"
15848 case "(($ac_try" in
15849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15850 *) ac_try_echo=$ac_try;;
15851 esac
15852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15853 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15854 ac_status=$?
15855 grep -v '^ *+' conftest.er1 >conftest.err
15856 rm -f conftest.er1
15857 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); } >/dev/null && {
15860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15861 test ! -s conftest.err
15862 }; then
15863 ac_header_preproc=yes
15864 else
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_header_preproc=no
15871 rm -f conftest.err conftest.$ac_ext
15872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15873 echo "${ECHO_T}$ac_header_preproc" >&6; }
15875 # So? What about this header?
15876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15877 yes:no: )
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15882 ac_header_preproc=yes
15884 no:yes:* )
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15899 esac
15900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15903 echo $ECHO_N "(cached) $ECHO_C" >&6
15904 else
15905 eval "$as_ac_Header=\$ac_header_preproc"
15907 ac_res=`eval echo '${'$as_ac_Header'}'`
15908 { echo "$as_me:$LINENO: result: $ac_res" >&5
15909 echo "${ECHO_T}$ac_res" >&6; }
15912 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15913 cat >>confdefs.h <<_ACEOF
15914 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15915 _ACEOF
15919 done
15990 for ac_func in gethostname getdomainname dup2 \
15991 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15992 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15993 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15994 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15995 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15996 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15997 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15998 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16004 echo $ECHO_N "(cached) $ECHO_C" >&6
16005 else
16006 cat >conftest.$ac_ext <<_ACEOF
16007 /* confdefs.h. */
16008 _ACEOF
16009 cat confdefs.h >>conftest.$ac_ext
16010 cat >>conftest.$ac_ext <<_ACEOF
16011 /* end confdefs.h. */
16012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16014 #define $ac_func innocuous_$ac_func
16016 /* System header to define __stub macros and hopefully few prototypes,
16017 which can conflict with char $ac_func (); below.
16018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16019 <limits.h> exists even on freestanding compilers. */
16021 #ifdef __STDC__
16022 # include <limits.h>
16023 #else
16024 # include <assert.h>
16025 #endif
16027 #undef $ac_func
16029 /* Override any GCC internal prototype to avoid an error.
16030 Use char because int might match the return type of a GCC
16031 builtin and then its argument prototype would still apply. */
16032 #ifdef __cplusplus
16033 extern "C"
16034 #endif
16035 char $ac_func ();
16036 /* The GNU C library defines this for functions which it implements
16037 to always fail with ENOSYS. Some functions are actually named
16038 something starting with __ and the normal name is an alias. */
16039 #if defined __stub_$ac_func || defined __stub___$ac_func
16040 choke me
16041 #endif
16044 main ()
16046 return $ac_func ();
16048 return 0;
16050 _ACEOF
16051 rm -f conftest.$ac_objext conftest$ac_exeext
16052 if { (ac_try="$ac_link"
16053 case "(($ac_try" in
16054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16055 *) ac_try_echo=$ac_try;;
16056 esac
16057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16058 (eval "$ac_link") 2>conftest.er1
16059 ac_status=$?
16060 grep -v '^ *+' conftest.er1 >conftest.err
16061 rm -f conftest.er1
16062 cat conftest.err >&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } && {
16065 test -z "$ac_c_werror_flag" ||
16066 test ! -s conftest.err
16067 } && test -s conftest$ac_exeext &&
16068 $as_test_x conftest$ac_exeext; then
16069 eval "$as_ac_var=yes"
16070 else
16071 echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.$ac_ext >&5
16074 eval "$as_ac_var=no"
16077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16078 conftest$ac_exeext conftest.$ac_ext
16080 ac_res=`eval echo '${'$as_ac_var'}'`
16081 { echo "$as_me:$LINENO: result: $ac_res" >&5
16082 echo "${ECHO_T}$ac_res" >&6; }
16083 if test `eval echo '${'$as_ac_var'}'` = yes; then
16084 cat >>confdefs.h <<_ACEOF
16085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16086 _ACEOF
16089 done
16093 for ac_header in sys/un.h
16095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16102 ac_res=`eval echo '${'$as_ac_Header'}'`
16103 { echo "$as_me:$LINENO: result: $ac_res" >&5
16104 echo "${ECHO_T}$ac_res" >&6; }
16105 else
16106 # Is the header compilable?
16107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h. */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 $ac_includes_default
16116 #include <$ac_header>
16117 _ACEOF
16118 rm -f conftest.$ac_objext
16119 if { (ac_try="$ac_compile"
16120 case "(($ac_try" in
16121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16123 esac
16124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_compile") 2>conftest.er1
16126 ac_status=$?
16127 grep -v '^ *+' conftest.er1 >conftest.err
16128 rm -f conftest.er1
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } && {
16132 test -z "$ac_c_werror_flag" ||
16133 test ! -s conftest.err
16134 } && test -s conftest.$ac_objext; then
16135 ac_header_compiler=yes
16136 else
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 ac_header_compiler=no
16143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16145 echo "${ECHO_T}$ac_header_compiler" >&6; }
16147 # Is the header present?
16148 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16150 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h. */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 #include <$ac_header>
16157 _ACEOF
16158 if { (ac_try="$ac_cpp conftest.$ac_ext"
16159 case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162 esac
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16165 ac_status=$?
16166 grep -v '^ *+' conftest.er1 >conftest.err
16167 rm -f conftest.er1
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } >/dev/null && {
16171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16172 test ! -s conftest.err
16173 }; then
16174 ac_header_preproc=yes
16175 else
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 ac_header_preproc=no
16182 rm -f conftest.err conftest.$ac_ext
16183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16184 echo "${ECHO_T}$ac_header_preproc" >&6; }
16186 # So? What about this header?
16187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16188 yes:no: )
16189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16190 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16192 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16193 ac_header_preproc=yes
16195 no:yes:* )
16196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16197 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16199 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16201 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16203 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16207 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16210 esac
16211 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16214 echo $ECHO_N "(cached) $ECHO_C" >&6
16215 else
16216 eval "$as_ac_Header=\$ac_header_preproc"
16218 ac_res=`eval echo '${'$as_ac_Header'}'`
16219 { echo "$as_me:$LINENO: result: $ac_res" >&5
16220 echo "${ECHO_T}$ac_res" >&6; }
16223 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16224 cat >>confdefs.h <<_ACEOF
16225 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16226 _ACEOF
16230 done
16237 for ac_header in $ac_header_list
16239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 ac_res=`eval echo '${'$as_ac_Header'}'`
16247 { echo "$as_me:$LINENO: result: $ac_res" >&5
16248 echo "${ECHO_T}$ac_res" >&6; }
16249 else
16250 # Is the header compilable?
16251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 $ac_includes_default
16260 #include <$ac_header>
16261 _ACEOF
16262 rm -f conftest.$ac_objext
16263 if { (ac_try="$ac_compile"
16264 case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267 esac
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_compile") 2>conftest.er1
16270 ac_status=$?
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } && {
16276 test -z "$ac_c_werror_flag" ||
16277 test ! -s conftest.err
16278 } && test -s conftest.$ac_objext; then
16279 ac_header_compiler=yes
16280 else
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16284 ac_header_compiler=no
16287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16289 echo "${ECHO_T}$ac_header_compiler" >&6; }
16291 # Is the header present?
16292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h. */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 #include <$ac_header>
16301 _ACEOF
16302 if { (ac_try="$ac_cpp conftest.$ac_ext"
16303 case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } >/dev/null && {
16315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 }; then
16318 ac_header_preproc=yes
16319 else
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16323 ac_header_preproc=no
16326 rm -f conftest.err conftest.$ac_ext
16327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16328 echo "${ECHO_T}$ac_header_preproc" >&6; }
16330 # So? What about this header?
16331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16332 yes:no: )
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16337 ac_header_preproc=yes
16339 no:yes:* )
16340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16354 esac
16355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360 eval "$as_ac_Header=\$ac_header_preproc"
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363 { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16368 cat >>confdefs.h <<_ACEOF
16369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16370 _ACEOF
16374 done
16384 for ac_func in $ac_func_list
16386 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16387 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16388 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16389 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16390 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 else
16392 cat >conftest.$ac_ext <<_ACEOF
16393 /* confdefs.h. */
16394 _ACEOF
16395 cat confdefs.h >>conftest.$ac_ext
16396 cat >>conftest.$ac_ext <<_ACEOF
16397 /* end confdefs.h. */
16398 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16400 #define $ac_func innocuous_$ac_func
16402 /* System header to define __stub macros and hopefully few prototypes,
16403 which can conflict with char $ac_func (); below.
16404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16405 <limits.h> exists even on freestanding compilers. */
16407 #ifdef __STDC__
16408 # include <limits.h>
16409 #else
16410 # include <assert.h>
16411 #endif
16413 #undef $ac_func
16415 /* Override any GCC internal prototype to avoid an error.
16416 Use char because int might match the return type of a GCC
16417 builtin and then its argument prototype would still apply. */
16418 #ifdef __cplusplus
16419 extern "C"
16420 #endif
16421 char $ac_func ();
16422 /* The GNU C library defines this for functions which it implements
16423 to always fail with ENOSYS. Some functions are actually named
16424 something starting with __ and the normal name is an alias. */
16425 #if defined __stub_$ac_func || defined __stub___$ac_func
16426 choke me
16427 #endif
16430 main ()
16432 return $ac_func ();
16434 return 0;
16436 _ACEOF
16437 rm -f conftest.$ac_objext conftest$ac_exeext
16438 if { (ac_try="$ac_link"
16439 case "(($ac_try" in
16440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16441 *) ac_try_echo=$ac_try;;
16442 esac
16443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16444 (eval "$ac_link") 2>conftest.er1
16445 ac_status=$?
16446 grep -v '^ *+' conftest.er1 >conftest.err
16447 rm -f conftest.er1
16448 cat conftest.err >&5
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } && {
16451 test -z "$ac_c_werror_flag" ||
16452 test ! -s conftest.err
16453 } && test -s conftest$ac_exeext &&
16454 $as_test_x conftest$ac_exeext; then
16455 eval "$as_ac_var=yes"
16456 else
16457 echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16460 eval "$as_ac_var=no"
16463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16464 conftest$ac_exeext conftest.$ac_ext
16466 ac_res=`eval echo '${'$as_ac_var'}'`
16467 { echo "$as_me:$LINENO: result: $ac_res" >&5
16468 echo "${ECHO_T}$ac_res" >&6; }
16469 if test `eval echo '${'$as_ac_var'}'` = yes; then
16470 cat >>confdefs.h <<_ACEOF
16471 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16472 _ACEOF
16475 done
16493 { echo "$as_me:$LINENO: checking for working mktime" >&5
16494 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16495 if test "${ac_cv_func_working_mktime+set}" = set; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16497 else
16498 if test "$cross_compiling" = yes; then
16499 ac_cv_func_working_mktime=no
16500 else
16501 cat >conftest.$ac_ext <<_ACEOF
16502 /* confdefs.h. */
16503 _ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16507 /* Test program from Paul Eggert and Tony Leneis. */
16508 #ifdef TIME_WITH_SYS_TIME
16509 # include <sys/time.h>
16510 # include <time.h>
16511 #else
16512 # ifdef HAVE_SYS_TIME_H
16513 # include <sys/time.h>
16514 # else
16515 # include <time.h>
16516 # endif
16517 #endif
16519 #include <stdlib.h>
16521 #ifdef HAVE_UNISTD_H
16522 # include <unistd.h>
16523 #endif
16525 #ifndef HAVE_ALARM
16526 # define alarm(X) /* empty */
16527 #endif
16529 /* Work around redefinition to rpl_putenv by other config tests. */
16530 #undef putenv
16532 static time_t time_t_max;
16533 static time_t time_t_min;
16535 /* Values we'll use to set the TZ environment variable. */
16536 static char *tz_strings[] = {
16537 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16538 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16540 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16542 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16543 Based on a problem report from Andreas Jaeger. */
16544 static int
16545 spring_forward_gap ()
16547 /* glibc (up to about 1998-10-07) failed this test. */
16548 struct tm tm;
16550 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16551 instead of "TZ=America/Vancouver" in order to detect the bug even
16552 on systems that don't support the Olson extension, or don't have the
16553 full zoneinfo tables installed. */
16554 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16556 tm.tm_year = 98;
16557 tm.tm_mon = 3;
16558 tm.tm_mday = 5;
16559 tm.tm_hour = 2;
16560 tm.tm_min = 0;
16561 tm.tm_sec = 0;
16562 tm.tm_isdst = -1;
16563 return mktime (&tm) != (time_t) -1;
16566 static int
16567 mktime_test1 (now)
16568 time_t now;
16570 struct tm *lt;
16571 return ! (lt = localtime (&now)) || mktime (lt) == now;
16574 static int
16575 mktime_test (now)
16576 time_t now;
16578 return (mktime_test1 (now)
16579 && mktime_test1 ((time_t) (time_t_max - now))
16580 && mktime_test1 ((time_t) (time_t_min + now)));
16583 static int
16584 irix_6_4_bug ()
16586 /* Based on code from Ariel Faigon. */
16587 struct tm tm;
16588 tm.tm_year = 96;
16589 tm.tm_mon = 3;
16590 tm.tm_mday = 0;
16591 tm.tm_hour = 0;
16592 tm.tm_min = 0;
16593 tm.tm_sec = 0;
16594 tm.tm_isdst = -1;
16595 mktime (&tm);
16596 return tm.tm_mon == 2 && tm.tm_mday == 31;
16599 static int
16600 bigtime_test (j)
16601 int j;
16603 struct tm tm;
16604 time_t now;
16605 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16606 now = mktime (&tm);
16607 if (now != (time_t) -1)
16609 struct tm *lt = localtime (&now);
16610 if (! (lt
16611 && lt->tm_year == tm.tm_year
16612 && lt->tm_mon == tm.tm_mon
16613 && lt->tm_mday == tm.tm_mday
16614 && lt->tm_hour == tm.tm_hour
16615 && lt->tm_min == tm.tm_min
16616 && lt->tm_sec == tm.tm_sec
16617 && lt->tm_yday == tm.tm_yday
16618 && lt->tm_wday == tm.tm_wday
16619 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16620 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16621 return 0;
16623 return 1;
16626 static int
16627 year_2050_test ()
16629 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16630 ignoring leap seconds. */
16631 unsigned long int answer = 2527315200UL;
16633 struct tm tm;
16634 time_t t;
16635 tm.tm_year = 2050 - 1900;
16636 tm.tm_mon = 2 - 1;
16637 tm.tm_mday = 1;
16638 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16639 tm.tm_isdst = -1;
16641 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16642 instead of "TZ=America/Vancouver" in order to detect the bug even
16643 on systems that don't support the Olson extension, or don't have the
16644 full zoneinfo tables installed. */
16645 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16647 t = mktime (&tm);
16649 /* Check that the result is either a failure, or close enough
16650 to the correct answer that we can assume the discrepancy is
16651 due to leap seconds. */
16652 return (t == (time_t) -1
16653 || (0 < t && answer - 120 <= t && t <= answer + 120));
16657 main ()
16659 time_t t, delta;
16660 int i, j;
16662 /* This test makes some buggy mktime implementations loop.
16663 Give up after 60 seconds; a mktime slower than that
16664 isn't worth using anyway. */
16665 alarm (60);
16667 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16668 continue;
16669 time_t_max--;
16670 if ((time_t) -1 < 0)
16671 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16672 continue;
16673 delta = time_t_max / 997; /* a suitable prime number */
16674 for (i = 0; i < N_STRINGS; i++)
16676 if (tz_strings[i])
16677 putenv (tz_strings[i]);
16679 for (t = 0; t <= time_t_max - delta; t += delta)
16680 if (! mktime_test (t))
16681 return 1;
16682 if (! (mktime_test ((time_t) 1)
16683 && mktime_test ((time_t) (60 * 60))
16684 && mktime_test ((time_t) (60 * 60 * 24))))
16685 return 1;
16687 for (j = 1; 0 < j; j *= 2)
16688 if (! bigtime_test (j))
16689 return 1;
16690 if (! bigtime_test (j - 1))
16691 return 1;
16693 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16695 _ACEOF
16696 rm -f conftest$ac_exeext
16697 if { (ac_try="$ac_link"
16698 case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16701 esac
16702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_link") 2>&5
16704 ac_status=$?
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16707 { (case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_cv_func_working_mktime=yes
16717 else
16718 echo "$as_me: program exited with status $ac_status" >&5
16719 echo "$as_me: failed program was:" >&5
16720 sed 's/^/| /' conftest.$ac_ext >&5
16722 ( exit $ac_status )
16723 ac_cv_func_working_mktime=no
16725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16730 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16731 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16732 if test $ac_cv_func_working_mktime = no; then
16733 case " $LIBOBJS " in
16734 *" mktime.$ac_objext "* ) ;;
16735 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16737 esac
16741 if test "$ac_cv_func_working_mktime" = no; then
16743 cat >>confdefs.h <<\_ACEOF
16744 #define BROKEN_MKTIME 1
16745 _ACEOF
16749 ac_have_func=no # yes means we've found a way to get the load average.
16751 # Make sure getloadavg.c is where it belongs, at configure-time.
16752 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16753 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16754 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16755 { (exit 1); exit 1; }; }
16757 ac_save_LIBS=$LIBS
16759 # Check for getloadavg, but be sure not to touch the cache variable.
16760 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16761 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16762 if test "${ac_cv_func_getloadavg+set}" = set; then
16763 echo $ECHO_N "(cached) $ECHO_C" >&6
16764 else
16765 cat >conftest.$ac_ext <<_ACEOF
16766 /* confdefs.h. */
16767 _ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16771 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16773 #define getloadavg innocuous_getloadavg
16775 /* System header to define __stub macros and hopefully few prototypes,
16776 which can conflict with char getloadavg (); below.
16777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16778 <limits.h> exists even on freestanding compilers. */
16780 #ifdef __STDC__
16781 # include <limits.h>
16782 #else
16783 # include <assert.h>
16784 #endif
16786 #undef getloadavg
16788 /* Override any GCC internal prototype to avoid an error.
16789 Use char because int might match the return type of a GCC
16790 builtin and then its argument prototype would still apply. */
16791 #ifdef __cplusplus
16792 extern "C"
16793 #endif
16794 char getloadavg ();
16795 /* The GNU C library defines this for functions which it implements
16796 to always fail with ENOSYS. Some functions are actually named
16797 something starting with __ and the normal name is an alias. */
16798 #if defined __stub_getloadavg || defined __stub___getloadavg
16799 choke me
16800 #endif
16803 main ()
16805 return getloadavg ();
16807 return 0;
16809 _ACEOF
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (ac_try="$ac_link"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_link") 2>conftest.er1
16818 ac_status=$?
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } && {
16824 test -z "$ac_c_werror_flag" ||
16825 test ! -s conftest.err
16826 } && test -s conftest$ac_exeext &&
16827 $as_test_x conftest$ac_exeext; then
16828 ac_cv_func_getloadavg=yes
16829 else
16830 echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16833 ac_cv_func_getloadavg=no
16836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16837 conftest$ac_exeext conftest.$ac_ext
16839 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16840 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16841 if test $ac_cv_func_getloadavg = yes; then
16842 exit 0
16843 else
16844 exit 1
16846 ) && ac_have_func=yes
16848 # On HPUX9, an unprivileged user can get load averages through this function.
16850 for ac_func in pstat_getdynamic
16852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16853 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16855 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16856 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 else
16858 cat >conftest.$ac_ext <<_ACEOF
16859 /* confdefs.h. */
16860 _ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16866 #define $ac_func innocuous_$ac_func
16868 /* System header to define __stub macros and hopefully few prototypes,
16869 which can conflict with char $ac_func (); below.
16870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16871 <limits.h> exists even on freestanding compilers. */
16873 #ifdef __STDC__
16874 # include <limits.h>
16875 #else
16876 # include <assert.h>
16877 #endif
16879 #undef $ac_func
16881 /* Override any GCC internal prototype to avoid an error.
16882 Use char because int might match the return type of a GCC
16883 builtin and then its argument prototype would still apply. */
16884 #ifdef __cplusplus
16885 extern "C"
16886 #endif
16887 char $ac_func ();
16888 /* The GNU C library defines this for functions which it implements
16889 to always fail with ENOSYS. Some functions are actually named
16890 something starting with __ and the normal name is an alias. */
16891 #if defined __stub_$ac_func || defined __stub___$ac_func
16892 choke me
16893 #endif
16896 main ()
16898 return $ac_func ();
16900 return 0;
16902 _ACEOF
16903 rm -f conftest.$ac_objext conftest$ac_exeext
16904 if { (ac_try="$ac_link"
16905 case "(($ac_try" in
16906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907 *) ac_try_echo=$ac_try;;
16908 esac
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910 (eval "$ac_link") 2>conftest.er1
16911 ac_status=$?
16912 grep -v '^ *+' conftest.er1 >conftest.err
16913 rm -f conftest.er1
16914 cat conftest.err >&5
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } && {
16917 test -z "$ac_c_werror_flag" ||
16918 test ! -s conftest.err
16919 } && test -s conftest$ac_exeext &&
16920 $as_test_x conftest$ac_exeext; then
16921 eval "$as_ac_var=yes"
16922 else
16923 echo "$as_me: failed program was:" >&5
16924 sed 's/^/| /' conftest.$ac_ext >&5
16926 eval "$as_ac_var=no"
16929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16930 conftest$ac_exeext conftest.$ac_ext
16932 ac_res=`eval echo '${'$as_ac_var'}'`
16933 { echo "$as_me:$LINENO: result: $ac_res" >&5
16934 echo "${ECHO_T}$ac_res" >&6; }
16935 if test `eval echo '${'$as_ac_var'}'` = yes; then
16936 cat >>confdefs.h <<_ACEOF
16937 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16938 _ACEOF
16941 done
16944 # Solaris has libkstat which does not require root.
16946 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16947 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16948 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16950 else
16951 ac_check_lib_save_LIBS=$LIBS
16952 LIBS="-lkstat $LIBS"
16953 cat >conftest.$ac_ext <<_ACEOF
16954 /* confdefs.h. */
16955 _ACEOF
16956 cat confdefs.h >>conftest.$ac_ext
16957 cat >>conftest.$ac_ext <<_ACEOF
16958 /* end confdefs.h. */
16960 /* Override any GCC internal prototype to avoid an error.
16961 Use char because int might match the return type of a GCC
16962 builtin and then its argument prototype would still apply. */
16963 #ifdef __cplusplus
16964 extern "C"
16965 #endif
16966 char kstat_open ();
16968 main ()
16970 return kstat_open ();
16972 return 0;
16974 _ACEOF
16975 rm -f conftest.$ac_objext conftest$ac_exeext
16976 if { (ac_try="$ac_link"
16977 case "(($ac_try" in
16978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16979 *) ac_try_echo=$ac_try;;
16980 esac
16981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16982 (eval "$ac_link") 2>conftest.er1
16983 ac_status=$?
16984 grep -v '^ *+' conftest.er1 >conftest.err
16985 rm -f conftest.er1
16986 cat conftest.err >&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); } && {
16989 test -z "$ac_c_werror_flag" ||
16990 test ! -s conftest.err
16991 } && test -s conftest$ac_exeext &&
16992 $as_test_x conftest$ac_exeext; then
16993 ac_cv_lib_kstat_kstat_open=yes
16994 else
16995 echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16998 ac_cv_lib_kstat_kstat_open=no
17001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17002 conftest$ac_exeext conftest.$ac_ext
17003 LIBS=$ac_check_lib_save_LIBS
17005 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17006 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17007 if test $ac_cv_lib_kstat_kstat_open = yes; then
17008 cat >>confdefs.h <<_ACEOF
17009 #define HAVE_LIBKSTAT 1
17010 _ACEOF
17012 LIBS="-lkstat $LIBS"
17016 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17018 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17019 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17020 # to get the right answer into the cache.
17021 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17022 if test $ac_have_func = no; then
17023 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17024 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17025 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17026 echo $ECHO_N "(cached) $ECHO_C" >&6
17027 else
17028 ac_check_lib_save_LIBS=$LIBS
17029 LIBS="-lelf $LIBS"
17030 cat >conftest.$ac_ext <<_ACEOF
17031 /* confdefs.h. */
17032 _ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h. */
17037 /* Override any GCC internal prototype to avoid an error.
17038 Use char because int might match the return type of a GCC
17039 builtin and then its argument prototype would still apply. */
17040 #ifdef __cplusplus
17041 extern "C"
17042 #endif
17043 char elf_begin ();
17045 main ()
17047 return elf_begin ();
17049 return 0;
17051 _ACEOF
17052 rm -f conftest.$ac_objext conftest$ac_exeext
17053 if { (ac_try="$ac_link"
17054 case "(($ac_try" in
17055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056 *) ac_try_echo=$ac_try;;
17057 esac
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059 (eval "$ac_link") 2>conftest.er1
17060 ac_status=$?
17061 grep -v '^ *+' conftest.er1 >conftest.err
17062 rm -f conftest.er1
17063 cat conftest.err >&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); } && {
17066 test -z "$ac_c_werror_flag" ||
17067 test ! -s conftest.err
17068 } && test -s conftest$ac_exeext &&
17069 $as_test_x conftest$ac_exeext; then
17070 ac_cv_lib_elf_elf_begin=yes
17071 else
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 ac_cv_lib_elf_elf_begin=no
17078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17079 conftest$ac_exeext conftest.$ac_ext
17080 LIBS=$ac_check_lib_save_LIBS
17082 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17083 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17084 if test $ac_cv_lib_elf_elf_begin = yes; then
17085 LIBS="-lelf $LIBS"
17089 if test $ac_have_func = no; then
17090 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17091 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17092 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17094 else
17095 ac_check_lib_save_LIBS=$LIBS
17096 LIBS="-lkvm $LIBS"
17097 cat >conftest.$ac_ext <<_ACEOF
17098 /* confdefs.h. */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17104 /* Override any GCC internal prototype to avoid an error.
17105 Use char because int might match the return type of a GCC
17106 builtin and then its argument prototype would still apply. */
17107 #ifdef __cplusplus
17108 extern "C"
17109 #endif
17110 char kvm_open ();
17112 main ()
17114 return kvm_open ();
17116 return 0;
17118 _ACEOF
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (ac_try="$ac_link"
17121 case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17124 esac
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_link") 2>conftest.er1
17127 ac_status=$?
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } && {
17133 test -z "$ac_c_werror_flag" ||
17134 test ! -s conftest.err
17135 } && test -s conftest$ac_exeext &&
17136 $as_test_x conftest$ac_exeext; then
17137 ac_cv_lib_kvm_kvm_open=yes
17138 else
17139 echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17142 ac_cv_lib_kvm_kvm_open=no
17145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17146 conftest$ac_exeext conftest.$ac_ext
17147 LIBS=$ac_check_lib_save_LIBS
17149 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17150 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17151 if test $ac_cv_lib_kvm_kvm_open = yes; then
17152 LIBS="-lkvm $LIBS"
17155 # Check for the 4.4BSD definition of getloadavg.
17156 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17157 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17158 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17159 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 else
17161 ac_check_lib_save_LIBS=$LIBS
17162 LIBS="-lutil $LIBS"
17163 cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h. */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17170 /* Override any GCC internal prototype to avoid an error.
17171 Use char because int might match the return type of a GCC
17172 builtin and then its argument prototype would still apply. */
17173 #ifdef __cplusplus
17174 extern "C"
17175 #endif
17176 char getloadavg ();
17178 main ()
17180 return getloadavg ();
17182 return 0;
17184 _ACEOF
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (ac_try="$ac_link"
17187 case "(($ac_try" in
17188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17189 *) ac_try_echo=$ac_try;;
17190 esac
17191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17192 (eval "$ac_link") 2>conftest.er1
17193 ac_status=$?
17194 grep -v '^ *+' conftest.er1 >conftest.err
17195 rm -f conftest.er1
17196 cat conftest.err >&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } && {
17199 test -z "$ac_c_werror_flag" ||
17200 test ! -s conftest.err
17201 } && test -s conftest$ac_exeext &&
17202 $as_test_x conftest$ac_exeext; then
17203 ac_cv_lib_util_getloadavg=yes
17204 else
17205 echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17208 ac_cv_lib_util_getloadavg=no
17211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17212 conftest$ac_exeext conftest.$ac_ext
17213 LIBS=$ac_check_lib_save_LIBS
17215 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17216 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17217 if test $ac_cv_lib_util_getloadavg = yes; then
17218 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17223 if test $ac_have_func = no; then
17224 # There is a commonly available library for RS/6000 AIX.
17225 # Since it is not a standard part of AIX, it might be installed locally.
17226 ac_getloadavg_LIBS=$LIBS
17227 LIBS="-L/usr/local/lib $LIBS"
17228 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17229 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17230 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17231 echo $ECHO_N "(cached) $ECHO_C" >&6
17232 else
17233 ac_check_lib_save_LIBS=$LIBS
17234 LIBS="-lgetloadavg $LIBS"
17235 cat >conftest.$ac_ext <<_ACEOF
17236 /* confdefs.h. */
17237 _ACEOF
17238 cat confdefs.h >>conftest.$ac_ext
17239 cat >>conftest.$ac_ext <<_ACEOF
17240 /* end confdefs.h. */
17242 /* Override any GCC internal prototype to avoid an error.
17243 Use char because int might match the return type of a GCC
17244 builtin and then its argument prototype would still apply. */
17245 #ifdef __cplusplus
17246 extern "C"
17247 #endif
17248 char getloadavg ();
17250 main ()
17252 return getloadavg ();
17254 return 0;
17256 _ACEOF
17257 rm -f conftest.$ac_objext conftest$ac_exeext
17258 if { (ac_try="$ac_link"
17259 case "(($ac_try" in
17260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17261 *) ac_try_echo=$ac_try;;
17262 esac
17263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17264 (eval "$ac_link") 2>conftest.er1
17265 ac_status=$?
17266 grep -v '^ *+' conftest.er1 >conftest.err
17267 rm -f conftest.er1
17268 cat conftest.err >&5
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); } && {
17271 test -z "$ac_c_werror_flag" ||
17272 test ! -s conftest.err
17273 } && test -s conftest$ac_exeext &&
17274 $as_test_x conftest$ac_exeext; then
17275 ac_cv_lib_getloadavg_getloadavg=yes
17276 else
17277 echo "$as_me: failed program was:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 ac_cv_lib_getloadavg_getloadavg=no
17283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17284 conftest$ac_exeext conftest.$ac_ext
17285 LIBS=$ac_check_lib_save_LIBS
17287 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17288 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17289 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17290 LIBS="-lgetloadavg $LIBS"
17291 else
17292 LIBS=$ac_getloadavg_LIBS
17297 # Make sure it is really in the library, if we think we found it,
17298 # otherwise set up the replacement function.
17300 for ac_func in getloadavg
17302 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17303 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17304 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17307 else
17308 cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h. */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h. */
17314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17316 #define $ac_func innocuous_$ac_func
17318 /* System header to define __stub macros and hopefully few prototypes,
17319 which can conflict with char $ac_func (); below.
17320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17321 <limits.h> exists even on freestanding compilers. */
17323 #ifdef __STDC__
17324 # include <limits.h>
17325 #else
17326 # include <assert.h>
17327 #endif
17329 #undef $ac_func
17331 /* Override any GCC internal prototype to avoid an error.
17332 Use char because int might match the return type of a GCC
17333 builtin and then its argument prototype would still apply. */
17334 #ifdef __cplusplus
17335 extern "C"
17336 #endif
17337 char $ac_func ();
17338 /* The GNU C library defines this for functions which it implements
17339 to always fail with ENOSYS. Some functions are actually named
17340 something starting with __ and the normal name is an alias. */
17341 #if defined __stub_$ac_func || defined __stub___$ac_func
17342 choke me
17343 #endif
17346 main ()
17348 return $ac_func ();
17350 return 0;
17352 _ACEOF
17353 rm -f conftest.$ac_objext conftest$ac_exeext
17354 if { (ac_try="$ac_link"
17355 case "(($ac_try" in
17356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357 *) ac_try_echo=$ac_try;;
17358 esac
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360 (eval "$ac_link") 2>conftest.er1
17361 ac_status=$?
17362 grep -v '^ *+' conftest.er1 >conftest.err
17363 rm -f conftest.er1
17364 cat conftest.err >&5
17365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366 (exit $ac_status); } && {
17367 test -z "$ac_c_werror_flag" ||
17368 test ! -s conftest.err
17369 } && test -s conftest$ac_exeext &&
17370 $as_test_x conftest$ac_exeext; then
17371 eval "$as_ac_var=yes"
17372 else
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 eval "$as_ac_var=no"
17379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17380 conftest$ac_exeext conftest.$ac_ext
17382 ac_res=`eval echo '${'$as_ac_var'}'`
17383 { echo "$as_me:$LINENO: result: $ac_res" >&5
17384 echo "${ECHO_T}$ac_res" >&6; }
17385 if test `eval echo '${'$as_ac_var'}'` = yes; then
17386 cat >>confdefs.h <<_ACEOF
17387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17388 _ACEOF
17390 else
17391 case " $LIBOBJS " in
17392 *" getloadavg.$ac_objext "* ) ;;
17393 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17395 esac
17398 cat >>confdefs.h <<\_ACEOF
17399 #define C_GETLOADAVG 1
17400 _ACEOF
17402 # Figure out what our getloadavg.c needs.
17403 ac_have_func=no
17404 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17405 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17406 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17407 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17408 echo $ECHO_N "(cached) $ECHO_C" >&6
17410 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17411 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17412 else
17413 # Is the header compilable?
17414 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17415 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17416 cat >conftest.$ac_ext <<_ACEOF
17417 /* confdefs.h. */
17418 _ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h. */
17422 $ac_includes_default
17423 #include <sys/dg_sys_info.h>
17424 _ACEOF
17425 rm -f conftest.$ac_objext
17426 if { (ac_try="$ac_compile"
17427 case "(($ac_try" in
17428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17429 *) ac_try_echo=$ac_try;;
17430 esac
17431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17432 (eval "$ac_compile") 2>conftest.er1
17433 ac_status=$?
17434 grep -v '^ *+' conftest.er1 >conftest.err
17435 rm -f conftest.er1
17436 cat conftest.err >&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); } && {
17439 test -z "$ac_c_werror_flag" ||
17440 test ! -s conftest.err
17441 } && test -s conftest.$ac_objext; then
17442 ac_header_compiler=yes
17443 else
17444 echo "$as_me: failed program was:" >&5
17445 sed 's/^/| /' conftest.$ac_ext >&5
17447 ac_header_compiler=no
17450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17452 echo "${ECHO_T}$ac_header_compiler" >&6; }
17454 # Is the header present?
17455 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17456 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h. */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17463 #include <sys/dg_sys_info.h>
17464 _ACEOF
17465 if { (ac_try="$ac_cpp conftest.$ac_ext"
17466 case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17469 esac
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17472 ac_status=$?
17473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } >/dev/null && {
17478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17479 test ! -s conftest.err
17480 }; then
17481 ac_header_preproc=yes
17482 else
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17486 ac_header_preproc=no
17489 rm -f conftest.err conftest.$ac_ext
17490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17491 echo "${ECHO_T}$ac_header_preproc" >&6; }
17493 # So? What about this header?
17494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17495 yes:no: )
17496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17497 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17498 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17499 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17500 ac_header_preproc=yes
17502 no:yes:* )
17503 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17504 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17505 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17506 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17507 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17508 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17509 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17510 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17511 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17512 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17513 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17514 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17517 esac
17518 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17519 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17520 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17521 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 else
17523 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17525 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17526 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17529 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17530 ac_have_func=yes
17532 cat >>confdefs.h <<\_ACEOF
17533 #define DGUX 1
17534 _ACEOF
17537 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17538 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17539 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17540 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 else
17542 ac_check_lib_save_LIBS=$LIBS
17543 LIBS="-ldgc $LIBS"
17544 cat >conftest.$ac_ext <<_ACEOF
17545 /* confdefs.h. */
17546 _ACEOF
17547 cat confdefs.h >>conftest.$ac_ext
17548 cat >>conftest.$ac_ext <<_ACEOF
17549 /* end confdefs.h. */
17551 /* Override any GCC internal prototype to avoid an error.
17552 Use char because int might match the return type of a GCC
17553 builtin and then its argument prototype would still apply. */
17554 #ifdef __cplusplus
17555 extern "C"
17556 #endif
17557 char dg_sys_info ();
17559 main ()
17561 return dg_sys_info ();
17563 return 0;
17565 _ACEOF
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (ac_try="$ac_link"
17568 case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17571 esac
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_link") 2>conftest.er1
17574 ac_status=$?
17575 grep -v '^ *+' conftest.er1 >conftest.err
17576 rm -f conftest.er1
17577 cat conftest.err >&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); } && {
17580 test -z "$ac_c_werror_flag" ||
17581 test ! -s conftest.err
17582 } && test -s conftest$ac_exeext &&
17583 $as_test_x conftest$ac_exeext; then
17584 ac_cv_lib_dgc_dg_sys_info=yes
17585 else
17586 echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17589 ac_cv_lib_dgc_dg_sys_info=no
17592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17593 conftest$ac_exeext conftest.$ac_ext
17594 LIBS=$ac_check_lib_save_LIBS
17596 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17597 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17598 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17599 cat >>confdefs.h <<_ACEOF
17600 #define HAVE_LIBDGC 1
17601 _ACEOF
17603 LIBS="-ldgc $LIBS"
17611 if test "${ac_cv_header_locale_h+set}" = set; then
17612 { echo "$as_me:$LINENO: checking for locale.h" >&5
17613 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17614 if test "${ac_cv_header_locale_h+set}" = set; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17618 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17619 else
17620 # Is the header compilable?
17621 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17622 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17623 cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h. */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629 $ac_includes_default
17630 #include <locale.h>
17631 _ACEOF
17632 rm -f conftest.$ac_objext
17633 if { (ac_try="$ac_compile"
17634 case "(($ac_try" in
17635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17636 *) ac_try_echo=$ac_try;;
17637 esac
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_compile") 2>conftest.er1
17640 ac_status=$?
17641 grep -v '^ *+' conftest.er1 >conftest.err
17642 rm -f conftest.er1
17643 cat conftest.err >&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } && {
17646 test -z "$ac_c_werror_flag" ||
17647 test ! -s conftest.err
17648 } && test -s conftest.$ac_objext; then
17649 ac_header_compiler=yes
17650 else
17651 echo "$as_me: failed program was:" >&5
17652 sed 's/^/| /' conftest.$ac_ext >&5
17654 ac_header_compiler=no
17657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17659 echo "${ECHO_T}$ac_header_compiler" >&6; }
17661 # Is the header present?
17662 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17663 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17664 cat >conftest.$ac_ext <<_ACEOF
17665 /* confdefs.h. */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 #include <locale.h>
17671 _ACEOF
17672 if { (ac_try="$ac_cpp conftest.$ac_ext"
17673 case "(($ac_try" in
17674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675 *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17679 ac_status=$?
17680 grep -v '^ *+' conftest.er1 >conftest.err
17681 rm -f conftest.er1
17682 cat conftest.err >&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); } >/dev/null && {
17685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17686 test ! -s conftest.err
17687 }; then
17688 ac_header_preproc=yes
17689 else
17690 echo "$as_me: failed program was:" >&5
17691 sed 's/^/| /' conftest.$ac_ext >&5
17693 ac_header_preproc=no
17696 rm -f conftest.err conftest.$ac_ext
17697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17698 echo "${ECHO_T}$ac_header_preproc" >&6; }
17700 # So? What about this header?
17701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17702 yes:no: )
17703 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17704 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17705 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17706 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17707 ac_header_preproc=yes
17709 no:yes:* )
17710 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17711 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17712 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17713 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17714 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17715 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17716 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17717 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17718 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17719 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17720 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17721 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17724 esac
17725 { echo "$as_me:$LINENO: checking for locale.h" >&5
17726 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17727 if test "${ac_cv_header_locale_h+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729 else
17730 ac_cv_header_locale_h=$ac_header_preproc
17732 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17733 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17739 for ac_func in setlocale
17741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17745 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 else
17747 cat >conftest.$ac_ext <<_ACEOF
17748 /* confdefs.h. */
17749 _ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17755 #define $ac_func innocuous_$ac_func
17757 /* System header to define __stub macros and hopefully few prototypes,
17758 which can conflict with char $ac_func (); below.
17759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17760 <limits.h> exists even on freestanding compilers. */
17762 #ifdef __STDC__
17763 # include <limits.h>
17764 #else
17765 # include <assert.h>
17766 #endif
17768 #undef $ac_func
17770 /* Override any GCC internal prototype to avoid an error.
17771 Use char because int might match the return type of a GCC
17772 builtin and then its argument prototype would still apply. */
17773 #ifdef __cplusplus
17774 extern "C"
17775 #endif
17776 char $ac_func ();
17777 /* The GNU C library defines this for functions which it implements
17778 to always fail with ENOSYS. Some functions are actually named
17779 something starting with __ and the normal name is an alias. */
17780 #if defined __stub_$ac_func || defined __stub___$ac_func
17781 choke me
17782 #endif
17785 main ()
17787 return $ac_func ();
17789 return 0;
17791 _ACEOF
17792 rm -f conftest.$ac_objext conftest$ac_exeext
17793 if { (ac_try="$ac_link"
17794 case "(($ac_try" in
17795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796 *) ac_try_echo=$ac_try;;
17797 esac
17798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799 (eval "$ac_link") 2>conftest.er1
17800 ac_status=$?
17801 grep -v '^ *+' conftest.er1 >conftest.err
17802 rm -f conftest.er1
17803 cat conftest.err >&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); } && {
17806 test -z "$ac_c_werror_flag" ||
17807 test ! -s conftest.err
17808 } && test -s conftest$ac_exeext &&
17809 $as_test_x conftest$ac_exeext; then
17810 eval "$as_ac_var=yes"
17811 else
17812 echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17815 eval "$as_ac_var=no"
17818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17819 conftest$ac_exeext conftest.$ac_ext
17821 ac_res=`eval echo '${'$as_ac_var'}'`
17822 { echo "$as_me:$LINENO: result: $ac_res" >&5
17823 echo "${ECHO_T}$ac_res" >&6; }
17824 if test `eval echo '${'$as_ac_var'}'` = yes; then
17825 cat >>confdefs.h <<_ACEOF
17826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17827 _ACEOF
17830 done
17833 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17834 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17835 # Irix 4.0.5F has the header but not the library.
17836 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17837 ac_have_func=yes
17839 cat >>confdefs.h <<\_ACEOF
17840 #define SVR4 1
17841 _ACEOF
17845 if test $ac_have_func = no; then
17846 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17847 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17848 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17849 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17850 echo $ECHO_N "(cached) $ECHO_C" >&6
17852 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17853 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17854 else
17855 # Is the header compilable?
17856 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17857 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17858 cat >conftest.$ac_ext <<_ACEOF
17859 /* confdefs.h. */
17860 _ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h. */
17864 $ac_includes_default
17865 #include <inq_stats/cpustats.h>
17866 _ACEOF
17867 rm -f conftest.$ac_objext
17868 if { (ac_try="$ac_compile"
17869 case "(($ac_try" in
17870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871 *) ac_try_echo=$ac_try;;
17872 esac
17873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17874 (eval "$ac_compile") 2>conftest.er1
17875 ac_status=$?
17876 grep -v '^ *+' conftest.er1 >conftest.err
17877 rm -f conftest.er1
17878 cat conftest.err >&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); } && {
17881 test -z "$ac_c_werror_flag" ||
17882 test ! -s conftest.err
17883 } && test -s conftest.$ac_objext; then
17884 ac_header_compiler=yes
17885 else
17886 echo "$as_me: failed program was:" >&5
17887 sed 's/^/| /' conftest.$ac_ext >&5
17889 ac_header_compiler=no
17892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17893 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17894 echo "${ECHO_T}$ac_header_compiler" >&6; }
17896 # Is the header present?
17897 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17898 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17899 cat >conftest.$ac_ext <<_ACEOF
17900 /* confdefs.h. */
17901 _ACEOF
17902 cat confdefs.h >>conftest.$ac_ext
17903 cat >>conftest.$ac_ext <<_ACEOF
17904 /* end confdefs.h. */
17905 #include <inq_stats/cpustats.h>
17906 _ACEOF
17907 if { (ac_try="$ac_cpp conftest.$ac_ext"
17908 case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17914 ac_status=$?
17915 grep -v '^ *+' conftest.er1 >conftest.err
17916 rm -f conftest.er1
17917 cat conftest.err >&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); } >/dev/null && {
17920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17921 test ! -s conftest.err
17922 }; then
17923 ac_header_preproc=yes
17924 else
17925 echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17928 ac_header_preproc=no
17931 rm -f conftest.err conftest.$ac_ext
17932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17933 echo "${ECHO_T}$ac_header_preproc" >&6; }
17935 # So? What about this header?
17936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17937 yes:no: )
17938 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17939 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17940 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17941 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17942 ac_header_preproc=yes
17944 no:yes:* )
17945 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17946 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17947 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17948 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17949 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17950 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17951 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17952 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17953 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17954 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17955 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17956 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17959 esac
17960 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17961 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17962 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17963 echo $ECHO_N "(cached) $ECHO_C" >&6
17964 else
17965 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17967 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17968 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17971 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17972 ac_have_func=yes
17974 cat >>confdefs.h <<\_ACEOF
17975 #define UMAX 1
17976 _ACEOF
17979 cat >>confdefs.h <<\_ACEOF
17980 #define UMAX4_3 1
17981 _ACEOF
17988 if test $ac_have_func = no; then
17989 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17990 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17991 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17992 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17993 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17996 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17997 else
17998 # Is the header compilable?
17999 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18000 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18001 cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h. */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 $ac_includes_default
18008 #include <sys/cpustats.h>
18009 _ACEOF
18010 rm -f conftest.$ac_objext
18011 if { (ac_try="$ac_compile"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18015 esac
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_compile") 2>conftest.er1
18018 ac_status=$?
18019 grep -v '^ *+' conftest.er1 >conftest.err
18020 rm -f conftest.er1
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest.$ac_objext; then
18027 ac_header_compiler=yes
18028 else
18029 echo "$as_me: failed program was:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_header_compiler=no
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18037 echo "${ECHO_T}$ac_header_compiler" >&6; }
18039 # Is the header present?
18040 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18041 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18042 cat >conftest.$ac_ext <<_ACEOF
18043 /* confdefs.h. */
18044 _ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 #include <sys/cpustats.h>
18049 _ACEOF
18050 if { (ac_try="$ac_cpp conftest.$ac_ext"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18057 ac_status=$?
18058 grep -v '^ *+' conftest.er1 >conftest.err
18059 rm -f conftest.er1
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } >/dev/null && {
18063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 }; then
18066 ac_header_preproc=yes
18067 else
18068 echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_header_preproc=no
18074 rm -f conftest.err conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18076 echo "${ECHO_T}$ac_header_preproc" >&6; }
18078 # So? What about this header?
18079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18080 yes:no: )
18081 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18082 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18084 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18085 ac_header_preproc=yes
18087 no:yes:* )
18088 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18089 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18090 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18091 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18092 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18093 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18094 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18095 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18096 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18097 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18098 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18099 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18102 esac
18103 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18104 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18105 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18107 else
18108 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18110 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18111 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18114 if test $ac_cv_header_sys_cpustats_h = yes; then
18115 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18116 #define UMAX 1
18117 _ACEOF
18124 if test $ac_have_func = no; then
18126 for ac_header in mach/mach.h
18128 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18133 echo $ECHO_N "(cached) $ECHO_C" >&6
18135 ac_res=`eval echo '${'$as_ac_Header'}'`
18136 { echo "$as_me:$LINENO: result: $ac_res" >&5
18137 echo "${ECHO_T}$ac_res" >&6; }
18138 else
18139 # Is the header compilable?
18140 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18141 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18142 cat >conftest.$ac_ext <<_ACEOF
18143 /* confdefs.h. */
18144 _ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18148 $ac_includes_default
18149 #include <$ac_header>
18150 _ACEOF
18151 rm -f conftest.$ac_objext
18152 if { (ac_try="$ac_compile"
18153 case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18156 esac
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_compile") 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } && {
18165 test -z "$ac_c_werror_flag" ||
18166 test ! -s conftest.err
18167 } && test -s conftest.$ac_objext; then
18168 ac_header_compiler=yes
18169 else
18170 echo "$as_me: failed program was:" >&5
18171 sed 's/^/| /' conftest.$ac_ext >&5
18173 ac_header_compiler=no
18176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18178 echo "${ECHO_T}$ac_header_compiler" >&6; }
18180 # Is the header present?
18181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18183 cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h. */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 #include <$ac_header>
18190 _ACEOF
18191 if { (ac_try="$ac_cpp conftest.$ac_ext"
18192 case "(($ac_try" in
18193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18194 *) ac_try_echo=$ac_try;;
18195 esac
18196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } >/dev/null && {
18204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18205 test ! -s conftest.err
18206 }; then
18207 ac_header_preproc=yes
18208 else
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18212 ac_header_preproc=no
18215 rm -f conftest.err conftest.$ac_ext
18216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18217 echo "${ECHO_T}$ac_header_preproc" >&6; }
18219 # So? What about this header?
18220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18221 yes:no: )
18222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18223 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18225 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18226 ac_header_preproc=yes
18228 no:yes:* )
18229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18230 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18232 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18234 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18236 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18238 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18240 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18243 esac
18244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18247 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 else
18249 eval "$as_ac_Header=\$ac_header_preproc"
18251 ac_res=`eval echo '${'$as_ac_Header'}'`
18252 { echo "$as_me:$LINENO: result: $ac_res" >&5
18253 echo "${ECHO_T}$ac_res" >&6; }
18256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18257 cat >>confdefs.h <<_ACEOF
18258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18259 _ACEOF
18263 done
18268 for ac_header in nlist.h
18270 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18277 ac_res=`eval echo '${'$as_ac_Header'}'`
18278 { echo "$as_me:$LINENO: result: $ac_res" >&5
18279 echo "${ECHO_T}$ac_res" >&6; }
18280 else
18281 # Is the header compilable?
18282 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18283 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18284 cat >conftest.$ac_ext <<_ACEOF
18285 /* confdefs.h. */
18286 _ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18290 $ac_includes_default
18291 #include <$ac_header>
18292 _ACEOF
18293 rm -f conftest.$ac_objext
18294 if { (ac_try="$ac_compile"
18295 case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18298 esac
18299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_compile") 2>conftest.er1
18301 ac_status=$?
18302 grep -v '^ *+' conftest.er1 >conftest.err
18303 rm -f conftest.er1
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } && {
18307 test -z "$ac_c_werror_flag" ||
18308 test ! -s conftest.err
18309 } && test -s conftest.$ac_objext; then
18310 ac_header_compiler=yes
18311 else
18312 echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 ac_header_compiler=no
18318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18319 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18320 echo "${ECHO_T}$ac_header_compiler" >&6; }
18322 # Is the header present?
18323 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18324 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18325 cat >conftest.$ac_ext <<_ACEOF
18326 /* confdefs.h. */
18327 _ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 #include <$ac_header>
18332 _ACEOF
18333 if { (ac_try="$ac_cpp conftest.$ac_ext"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18337 esac
18338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18340 ac_status=$?
18341 grep -v '^ *+' conftest.er1 >conftest.err
18342 rm -f conftest.er1
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } >/dev/null && {
18346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18347 test ! -s conftest.err
18348 }; then
18349 ac_header_preproc=yes
18350 else
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18354 ac_header_preproc=no
18357 rm -f conftest.err conftest.$ac_ext
18358 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18359 echo "${ECHO_T}$ac_header_preproc" >&6; }
18361 # So? What about this header?
18362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18363 yes:no: )
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18365 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18368 ac_header_preproc=yes
18370 no:yes:* )
18371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18375 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18376 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18377 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18378 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18381 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18382 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18385 esac
18386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18390 else
18391 eval "$as_ac_Header=\$ac_header_preproc"
18393 ac_res=`eval echo '${'$as_ac_Header'}'`
18394 { echo "$as_me:$LINENO: result: $ac_res" >&5
18395 echo "${ECHO_T}$ac_res" >&6; }
18398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18399 cat >>confdefs.h <<_ACEOF
18400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18401 _ACEOF
18402 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18403 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18404 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18406 else
18407 cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h. */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <nlist.h>
18416 main ()
18418 static struct nlist ac_aggr;
18419 if (ac_aggr.n_un.n_name)
18420 return 0;
18422 return 0;
18424 _ACEOF
18425 rm -f conftest.$ac_objext
18426 if { (ac_try="$ac_compile"
18427 case "(($ac_try" in
18428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18429 *) ac_try_echo=$ac_try;;
18430 esac
18431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18432 (eval "$ac_compile") 2>conftest.er1
18433 ac_status=$?
18434 grep -v '^ *+' conftest.er1 >conftest.err
18435 rm -f conftest.er1
18436 cat conftest.err >&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); } && {
18439 test -z "$ac_c_werror_flag" ||
18440 test ! -s conftest.err
18441 } && test -s conftest.$ac_objext; then
18442 ac_cv_member_struct_nlist_n_un_n_name=yes
18443 else
18444 echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h. */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 #include <nlist.h>
18456 main ()
18458 static struct nlist ac_aggr;
18459 if (sizeof ac_aggr.n_un.n_name)
18460 return 0;
18462 return 0;
18464 _ACEOF
18465 rm -f conftest.$ac_objext
18466 if { (ac_try="$ac_compile"
18467 case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18470 esac
18471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_compile") 2>conftest.er1
18473 ac_status=$?
18474 grep -v '^ *+' conftest.er1 >conftest.err
18475 rm -f conftest.er1
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest.$ac_objext; then
18482 ac_cv_member_struct_nlist_n_un_n_name=yes
18483 else
18484 echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 ac_cv_member_struct_nlist_n_un_n_name=no
18490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18495 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18496 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18497 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18499 cat >>confdefs.h <<_ACEOF
18500 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18501 _ACEOF
18504 cat >>confdefs.h <<\_ACEOF
18505 #define NLIST_NAME_UNION 1
18506 _ACEOF
18513 done
18516 done
18519 # Some definitions of getloadavg require that the program be installed setgid.
18520 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18521 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18522 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18523 echo $ECHO_N "(cached) $ECHO_C" >&6
18524 else
18525 cat >conftest.$ac_ext <<_ACEOF
18526 /* confdefs.h. */
18527 _ACEOF
18528 cat confdefs.h >>conftest.$ac_ext
18529 cat >>conftest.$ac_ext <<_ACEOF
18530 /* end confdefs.h. */
18531 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18532 #ifdef LDAV_PRIVILEGED
18533 Yowza Am I SETGID yet
18534 #endif
18535 _ACEOF
18536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18537 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18538 ac_cv_func_getloadavg_setgid=yes
18539 else
18540 ac_cv_func_getloadavg_setgid=no
18542 rm -f conftest*
18545 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18546 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18547 if test $ac_cv_func_getloadavg_setgid = yes; then
18548 NEED_SETGID=true
18550 cat >>confdefs.h <<\_ACEOF
18551 #define GETLOADAVG_PRIVILEGED 1
18552 _ACEOF
18554 else
18555 NEED_SETGID=false
18558 if test $ac_cv_func_getloadavg_setgid = yes; then
18559 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18560 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18561 if test "${ac_cv_group_kmem+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18565 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18566 # If we got an error (system does not support symlinks), try without -L.
18567 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18568 ac_cv_group_kmem=`echo $ac_ls_output \
18569 | sed -ne 's/[ ][ ]*/ /g;
18570 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18571 / /s/.* //;p;'`
18574 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18575 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18576 KMEM_GROUP=$ac_cv_group_kmem
18578 if test "x$ac_save_LIBS" = x; then
18579 GETLOADAVG_LIBS=$LIBS
18580 else
18581 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18583 LIBS=$ac_save_LIBS
18587 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18588 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18589 if test "${ac_cv_sys_largefile_source+set}" = set; then
18590 echo $ECHO_N "(cached) $ECHO_C" >&6
18591 else
18592 while :; do
18593 cat >conftest.$ac_ext <<_ACEOF
18594 /* confdefs.h. */
18595 _ACEOF
18596 cat confdefs.h >>conftest.$ac_ext
18597 cat >>conftest.$ac_ext <<_ACEOF
18598 /* end confdefs.h. */
18599 #include <stdio.h>
18601 main ()
18603 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18605 return 0;
18607 _ACEOF
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_link") 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest$ac_exeext &&
18625 $as_test_x conftest$ac_exeext; then
18626 ac_cv_sys_largefile_source=no; break
18627 else
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18635 conftest$ac_exeext conftest.$ac_ext
18636 cat >conftest.$ac_ext <<_ACEOF
18637 /* confdefs.h. */
18638 _ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h. */
18642 #define _LARGEFILE_SOURCE 1
18643 #include <stdio.h>
18645 main ()
18647 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18649 return 0;
18651 _ACEOF
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (ac_try="$ac_link"
18654 case "(($ac_try" in
18655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18656 *) ac_try_echo=$ac_try;;
18657 esac
18658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18659 (eval "$ac_link") 2>conftest.er1
18660 ac_status=$?
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } && {
18666 test -z "$ac_c_werror_flag" ||
18667 test ! -s conftest.err
18668 } && test -s conftest$ac_exeext &&
18669 $as_test_x conftest$ac_exeext; then
18670 ac_cv_sys_largefile_source=1; break
18671 else
18672 echo "$as_me: failed program was:" >&5
18673 sed 's/^/| /' conftest.$ac_ext >&5
18678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18679 conftest$ac_exeext conftest.$ac_ext
18680 ac_cv_sys_largefile_source=unknown
18681 break
18682 done
18684 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18685 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18686 case $ac_cv_sys_largefile_source in #(
18687 no | unknown) ;;
18689 cat >>confdefs.h <<_ACEOF
18690 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18691 _ACEOF
18693 esac
18694 rm -f conftest*
18696 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18697 # in glibc 2.1.3, but that breaks too many other things.
18698 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18699 if test $ac_cv_sys_largefile_source != unknown; then
18701 cat >>confdefs.h <<\_ACEOF
18702 #define HAVE_FSEEKO 1
18703 _ACEOF
18708 # Configure getopt.
18709 # getopt.m4 serial 10
18711 # The getopt module assume you want GNU getopt, with getopt_long etc,
18712 # rather than vanilla POSIX getopt. This means your your code should
18713 # always include <getopt.h> for the getopt prototypes.
18725 # Prerequisites of lib/getopt*.
18730 GETOPT_H=
18732 for ac_header in getopt.h
18734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18739 echo $ECHO_N "(cached) $ECHO_C" >&6
18741 ac_res=`eval echo '${'$as_ac_Header'}'`
18742 { echo "$as_me:$LINENO: result: $ac_res" >&5
18743 echo "${ECHO_T}$ac_res" >&6; }
18744 else
18745 # Is the header compilable?
18746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18748 cat >conftest.$ac_ext <<_ACEOF
18749 /* confdefs.h. */
18750 _ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18754 $ac_includes_default
18755 #include <$ac_header>
18756 _ACEOF
18757 rm -f conftest.$ac_objext
18758 if { (ac_try="$ac_compile"
18759 case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18762 esac
18763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_compile") 2>conftest.er1
18765 ac_status=$?
18766 grep -v '^ *+' conftest.er1 >conftest.err
18767 rm -f conftest.er1
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); } && {
18771 test -z "$ac_c_werror_flag" ||
18772 test ! -s conftest.err
18773 } && test -s conftest.$ac_objext; then
18774 ac_header_compiler=yes
18775 else
18776 echo "$as_me: failed program was:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18779 ac_header_compiler=no
18782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18784 echo "${ECHO_T}$ac_header_compiler" >&6; }
18786 # Is the header present?
18787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18789 cat >conftest.$ac_ext <<_ACEOF
18790 /* confdefs.h. */
18791 _ACEOF
18792 cat confdefs.h >>conftest.$ac_ext
18793 cat >>conftest.$ac_ext <<_ACEOF
18794 /* end confdefs.h. */
18795 #include <$ac_header>
18796 _ACEOF
18797 if { (ac_try="$ac_cpp conftest.$ac_ext"
18798 case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18801 esac
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18804 ac_status=$?
18805 grep -v '^ *+' conftest.er1 >conftest.err
18806 rm -f conftest.er1
18807 cat conftest.err >&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } >/dev/null && {
18810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18811 test ! -s conftest.err
18812 }; then
18813 ac_header_preproc=yes
18814 else
18815 echo "$as_me: failed program was:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18818 ac_header_preproc=no
18821 rm -f conftest.err conftest.$ac_ext
18822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18823 echo "${ECHO_T}$ac_header_preproc" >&6; }
18825 # So? What about this header?
18826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18827 yes:no: )
18828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18832 ac_header_preproc=yes
18834 no:yes:* )
18835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18849 esac
18850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18853 echo $ECHO_N "(cached) $ECHO_C" >&6
18854 else
18855 eval "$as_ac_Header=\$ac_header_preproc"
18857 ac_res=`eval echo '${'$as_ac_Header'}'`
18858 { echo "$as_me:$LINENO: result: $ac_res" >&5
18859 echo "${ECHO_T}$ac_res" >&6; }
18862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18863 cat >>confdefs.h <<_ACEOF
18864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18865 _ACEOF
18867 else
18868 GETOPT_H=getopt.h
18871 done
18873 if test -z "$GETOPT_H"; then
18875 for ac_func in getopt_long_only
18877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18881 echo $ECHO_N "(cached) $ECHO_C" >&6
18882 else
18883 cat >conftest.$ac_ext <<_ACEOF
18884 /* confdefs.h. */
18885 _ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h. */
18889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18891 #define $ac_func innocuous_$ac_func
18893 /* System header to define __stub macros and hopefully few prototypes,
18894 which can conflict with char $ac_func (); below.
18895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18896 <limits.h> exists even on freestanding compilers. */
18898 #ifdef __STDC__
18899 # include <limits.h>
18900 #else
18901 # include <assert.h>
18902 #endif
18904 #undef $ac_func
18906 /* Override any GCC internal prototype to avoid an error.
18907 Use char because int might match the return type of a GCC
18908 builtin and then its argument prototype would still apply. */
18909 #ifdef __cplusplus
18910 extern "C"
18911 #endif
18912 char $ac_func ();
18913 /* The GNU C library defines this for functions which it implements
18914 to always fail with ENOSYS. Some functions are actually named
18915 something starting with __ and the normal name is an alias. */
18916 #if defined __stub_$ac_func || defined __stub___$ac_func
18917 choke me
18918 #endif
18921 main ()
18923 return $ac_func ();
18925 return 0;
18927 _ACEOF
18928 rm -f conftest.$ac_objext conftest$ac_exeext
18929 if { (ac_try="$ac_link"
18930 case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18933 esac
18934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18935 (eval "$ac_link") 2>conftest.er1
18936 ac_status=$?
18937 grep -v '^ *+' conftest.er1 >conftest.err
18938 rm -f conftest.er1
18939 cat conftest.err >&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); } && {
18942 test -z "$ac_c_werror_flag" ||
18943 test ! -s conftest.err
18944 } && test -s conftest$ac_exeext &&
18945 $as_test_x conftest$ac_exeext; then
18946 eval "$as_ac_var=yes"
18947 else
18948 echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 eval "$as_ac_var=no"
18954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18955 conftest$ac_exeext conftest.$ac_ext
18957 ac_res=`eval echo '${'$as_ac_var'}'`
18958 { echo "$as_me:$LINENO: result: $ac_res" >&5
18959 echo "${ECHO_T}$ac_res" >&6; }
18960 if test `eval echo '${'$as_ac_var'}'` = yes; then
18961 cat >>confdefs.h <<_ACEOF
18962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18963 _ACEOF
18965 else
18966 GETOPT_H=getopt.h
18968 done
18972 if test -z "$GETOPT_H"; then
18973 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18974 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18975 if test "${ac_cv_have_decl_optreset+set}" = set; then
18976 echo $ECHO_N "(cached) $ECHO_C" >&6
18977 else
18978 cat >conftest.$ac_ext <<_ACEOF
18979 /* confdefs.h. */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h. */
18984 #include <getopt.h>
18987 main ()
18989 #ifndef optreset
18990 (void) optreset;
18991 #endif
18994 return 0;
18996 _ACEOF
18997 rm -f conftest.$ac_objext
18998 if { (ac_try="$ac_compile"
18999 case "(($ac_try" in
19000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19001 *) ac_try_echo=$ac_try;;
19002 esac
19003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19004 (eval "$ac_compile") 2>conftest.er1
19005 ac_status=$?
19006 grep -v '^ *+' conftest.er1 >conftest.err
19007 rm -f conftest.er1
19008 cat conftest.err >&5
19009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19010 (exit $ac_status); } && {
19011 test -z "$ac_c_werror_flag" ||
19012 test ! -s conftest.err
19013 } && test -s conftest.$ac_objext; then
19014 ac_cv_have_decl_optreset=yes
19015 else
19016 echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19019 ac_cv_have_decl_optreset=no
19022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19024 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19025 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19026 if test $ac_cv_have_decl_optreset = yes; then
19027 GETOPT_H=getopt.h
19032 if test -z "$GETOPT_H"; then
19033 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19034 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19035 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19036 echo $ECHO_N "(cached) $ECHO_C" >&6
19037 else
19038 if test "$cross_compiling" = yes; then
19039 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19040 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19041 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19043 else
19044 cat >conftest.$ac_ext <<_ACEOF
19045 /* confdefs.h. */
19046 _ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 #include <getopt.h>
19053 main ()
19055 #ifndef getopt_clip
19056 (void) getopt_clip;
19057 #endif
19060 return 0;
19062 _ACEOF
19063 rm -f conftest.$ac_objext
19064 if { (ac_try="$ac_compile"
19065 case "(($ac_try" in
19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19068 esac
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_compile") 2>conftest.er1
19071 ac_status=$?
19072 grep -v '^ *+' conftest.er1 >conftest.err
19073 rm -f conftest.er1
19074 cat conftest.err >&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } && {
19077 test -z "$ac_c_werror_flag" ||
19078 test ! -s conftest.err
19079 } && test -s conftest.$ac_objext; then
19080 ac_cv_have_decl_getopt_clip=yes
19081 else
19082 echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19085 ac_cv_have_decl_getopt_clip=no
19088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19090 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19091 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19092 if test $ac_cv_have_decl_getopt_clip = yes; then
19093 gl_cv_func_gnu_getopt=no
19094 else
19095 gl_cv_func_gnu_getopt=yes
19098 else
19099 cat >conftest.$ac_ext <<_ACEOF
19100 /* confdefs.h. */
19101 _ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19105 #include <getopt.h>
19107 main ()
19110 char *myargv[3];
19111 myargv[0] = "conftest";
19112 myargv[1] = "-+";
19113 myargv[2] = 0;
19114 return getopt (2, myargv, "+a") != '?';
19117 return 0;
19119 _ACEOF
19120 rm -f conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19125 esac
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_link") 2>&5
19128 ac_status=$?
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19131 { (case "(($ac_try" in
19132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19133 *) ac_try_echo=$ac_try;;
19134 esac
19135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19136 (eval "$ac_try") 2>&5
19137 ac_status=$?
19138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19139 (exit $ac_status); }; }; then
19140 gl_cv_func_gnu_getopt=yes
19141 else
19142 echo "$as_me: program exited with status $ac_status" >&5
19143 echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ( exit $ac_status )
19147 gl_cv_func_gnu_getopt=no
19149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19154 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19155 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19156 if test "$gl_cv_func_gnu_getopt" = "no"; then
19157 GETOPT_H=getopt.h
19163 if test -n "$GETOPT_H"; then
19166 GETOPT_H=getopt.h
19168 cat >>confdefs.h <<\_ACEOF
19169 #define __GETOPT_PREFIX rpl_
19170 _ACEOF
19175 GETOPTOBJS='getopt.o getopt1.o'
19182 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19183 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19184 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19185 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 else
19187 # Use it with a single arg.
19188 cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h. */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19194 $ac_includes_default
19196 main ()
19198 getpgrp (0);
19200 return 0;
19202 _ACEOF
19203 rm -f conftest.$ac_objext
19204 if { (ac_try="$ac_compile"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19208 esac
19209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_compile") 2>conftest.er1
19211 ac_status=$?
19212 grep -v '^ *+' conftest.er1 >conftest.err
19213 rm -f conftest.er1
19214 cat conftest.err >&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); } && {
19217 test -z "$ac_c_werror_flag" ||
19218 test ! -s conftest.err
19219 } && test -s conftest.$ac_objext; then
19220 ac_cv_func_getpgrp_void=no
19221 else
19222 echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19225 ac_cv_func_getpgrp_void=yes
19228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19232 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19233 if test $ac_cv_func_getpgrp_void = yes; then
19235 cat >>confdefs.h <<\_ACEOF
19236 #define GETPGRP_VOID 1
19237 _ACEOF
19243 for ac_func in strftime
19245 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19249 echo $ECHO_N "(cached) $ECHO_C" >&6
19250 else
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h. */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19259 #define $ac_func innocuous_$ac_func
19261 /* System header to define __stub macros and hopefully few prototypes,
19262 which can conflict with char $ac_func (); below.
19263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19264 <limits.h> exists even on freestanding compilers. */
19266 #ifdef __STDC__
19267 # include <limits.h>
19268 #else
19269 # include <assert.h>
19270 #endif
19272 #undef $ac_func
19274 /* Override any GCC internal prototype to avoid an error.
19275 Use char because int might match the return type of a GCC
19276 builtin and then its argument prototype would still apply. */
19277 #ifdef __cplusplus
19278 extern "C"
19279 #endif
19280 char $ac_func ();
19281 /* The GNU C library defines this for functions which it implements
19282 to always fail with ENOSYS. Some functions are actually named
19283 something starting with __ and the normal name is an alias. */
19284 #if defined __stub_$ac_func || defined __stub___$ac_func
19285 choke me
19286 #endif
19289 main ()
19291 return $ac_func ();
19293 return 0;
19295 _ACEOF
19296 rm -f conftest.$ac_objext conftest$ac_exeext
19297 if { (ac_try="$ac_link"
19298 case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19301 esac
19302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19303 (eval "$ac_link") 2>conftest.er1
19304 ac_status=$?
19305 grep -v '^ *+' conftest.er1 >conftest.err
19306 rm -f conftest.er1
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } && {
19310 test -z "$ac_c_werror_flag" ||
19311 test ! -s conftest.err
19312 } && test -s conftest$ac_exeext &&
19313 $as_test_x conftest$ac_exeext; then
19314 eval "$as_ac_var=yes"
19315 else
19316 echo "$as_me: failed program was:" >&5
19317 sed 's/^/| /' conftest.$ac_ext >&5
19319 eval "$as_ac_var=no"
19322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19323 conftest$ac_exeext conftest.$ac_ext
19325 ac_res=`eval echo '${'$as_ac_var'}'`
19326 { echo "$as_me:$LINENO: result: $ac_res" >&5
19327 echo "${ECHO_T}$ac_res" >&6; }
19328 if test `eval echo '${'$as_ac_var'}'` = yes; then
19329 cat >>confdefs.h <<_ACEOF
19330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19331 _ACEOF
19333 else
19334 # strftime is in -lintl on SCO UNIX.
19335 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19336 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19337 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19338 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 else
19340 ac_check_lib_save_LIBS=$LIBS
19341 LIBS="-lintl $LIBS"
19342 cat >conftest.$ac_ext <<_ACEOF
19343 /* confdefs.h. */
19344 _ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19349 /* Override any GCC internal prototype to avoid an error.
19350 Use char because int might match the return type of a GCC
19351 builtin and then its argument prototype would still apply. */
19352 #ifdef __cplusplus
19353 extern "C"
19354 #endif
19355 char strftime ();
19357 main ()
19359 return strftime ();
19361 return 0;
19363 _ACEOF
19364 rm -f conftest.$ac_objext conftest$ac_exeext
19365 if { (ac_try="$ac_link"
19366 case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19369 esac
19370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19371 (eval "$ac_link") 2>conftest.er1
19372 ac_status=$?
19373 grep -v '^ *+' conftest.er1 >conftest.err
19374 rm -f conftest.er1
19375 cat conftest.err >&5
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); } && {
19378 test -z "$ac_c_werror_flag" ||
19379 test ! -s conftest.err
19380 } && test -s conftest$ac_exeext &&
19381 $as_test_x conftest$ac_exeext; then
19382 ac_cv_lib_intl_strftime=yes
19383 else
19384 echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19387 ac_cv_lib_intl_strftime=no
19390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19391 conftest$ac_exeext conftest.$ac_ext
19392 LIBS=$ac_check_lib_save_LIBS
19394 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19395 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19396 if test $ac_cv_lib_intl_strftime = yes; then
19397 cat >>confdefs.h <<\_ACEOF
19398 #define HAVE_STRFTIME 1
19399 _ACEOF
19401 LIBS="-lintl $LIBS"
19405 done
19408 # UNIX98 PTYs.
19410 for ac_func in grantpt
19412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19417 else
19418 cat >conftest.$ac_ext <<_ACEOF
19419 /* confdefs.h. */
19420 _ACEOF
19421 cat confdefs.h >>conftest.$ac_ext
19422 cat >>conftest.$ac_ext <<_ACEOF
19423 /* end confdefs.h. */
19424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19426 #define $ac_func innocuous_$ac_func
19428 /* System header to define __stub macros and hopefully few prototypes,
19429 which can conflict with char $ac_func (); below.
19430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19431 <limits.h> exists even on freestanding compilers. */
19433 #ifdef __STDC__
19434 # include <limits.h>
19435 #else
19436 # include <assert.h>
19437 #endif
19439 #undef $ac_func
19441 /* Override any GCC internal prototype to avoid an error.
19442 Use char because int might match the return type of a GCC
19443 builtin and then its argument prototype would still apply. */
19444 #ifdef __cplusplus
19445 extern "C"
19446 #endif
19447 char $ac_func ();
19448 /* The GNU C library defines this for functions which it implements
19449 to always fail with ENOSYS. Some functions are actually named
19450 something starting with __ and the normal name is an alias. */
19451 #if defined __stub_$ac_func || defined __stub___$ac_func
19452 choke me
19453 #endif
19456 main ()
19458 return $ac_func ();
19460 return 0;
19462 _ACEOF
19463 rm -f conftest.$ac_objext conftest$ac_exeext
19464 if { (ac_try="$ac_link"
19465 case "(($ac_try" in
19466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467 *) ac_try_echo=$ac_try;;
19468 esac
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470 (eval "$ac_link") 2>conftest.er1
19471 ac_status=$?
19472 grep -v '^ *+' conftest.er1 >conftest.err
19473 rm -f conftest.er1
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } && {
19477 test -z "$ac_c_werror_flag" ||
19478 test ! -s conftest.err
19479 } && test -s conftest$ac_exeext &&
19480 $as_test_x conftest$ac_exeext; then
19481 eval "$as_ac_var=yes"
19482 else
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19486 eval "$as_ac_var=no"
19489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19490 conftest$ac_exeext conftest.$ac_ext
19492 ac_res=`eval echo '${'$as_ac_var'}'`
19493 { echo "$as_me:$LINENO: result: $ac_res" >&5
19494 echo "${ECHO_T}$ac_res" >&6; }
19495 if test `eval echo '${'$as_ac_var'}'` = yes; then
19496 cat >>confdefs.h <<_ACEOF
19497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19498 _ACEOF
19501 done
19504 # PTY-related GNU extensions.
19506 for ac_func in getpt
19508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 else
19514 cat >conftest.$ac_ext <<_ACEOF
19515 /* confdefs.h. */
19516 _ACEOF
19517 cat confdefs.h >>conftest.$ac_ext
19518 cat >>conftest.$ac_ext <<_ACEOF
19519 /* end confdefs.h. */
19520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19522 #define $ac_func innocuous_$ac_func
19524 /* System header to define __stub macros and hopefully few prototypes,
19525 which can conflict with char $ac_func (); below.
19526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19527 <limits.h> exists even on freestanding compilers. */
19529 #ifdef __STDC__
19530 # include <limits.h>
19531 #else
19532 # include <assert.h>
19533 #endif
19535 #undef $ac_func
19537 /* Override any GCC internal prototype to avoid an error.
19538 Use char because int might match the return type of a GCC
19539 builtin and then its argument prototype would still apply. */
19540 #ifdef __cplusplus
19541 extern "C"
19542 #endif
19543 char $ac_func ();
19544 /* The GNU C library defines this for functions which it implements
19545 to always fail with ENOSYS. Some functions are actually named
19546 something starting with __ and the normal name is an alias. */
19547 #if defined __stub_$ac_func || defined __stub___$ac_func
19548 choke me
19549 #endif
19552 main ()
19554 return $ac_func ();
19556 return 0;
19558 _ACEOF
19559 rm -f conftest.$ac_objext conftest$ac_exeext
19560 if { (ac_try="$ac_link"
19561 case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19564 esac
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_link") 2>conftest.er1
19567 ac_status=$?
19568 grep -v '^ *+' conftest.er1 >conftest.err
19569 rm -f conftest.er1
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } && {
19573 test -z "$ac_c_werror_flag" ||
19574 test ! -s conftest.err
19575 } && test -s conftest$ac_exeext &&
19576 $as_test_x conftest$ac_exeext; then
19577 eval "$as_ac_var=yes"
19578 else
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 eval "$as_ac_var=no"
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586 conftest$ac_exeext conftest.$ac_ext
19588 ac_res=`eval echo '${'$as_ac_var'}'`
19589 { echo "$as_me:$LINENO: result: $ac_res" >&5
19590 echo "${ECHO_T}$ac_res" >&6; }
19591 if test `eval echo '${'$as_ac_var'}'` = yes; then
19592 cat >>confdefs.h <<_ACEOF
19593 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19594 _ACEOF
19597 done
19600 # Check this now, so that we will NOT find the above functions in ncurses.
19601 # That is because we have not set up to link ncurses in lib-src.
19602 # It's better to believe a function is not available
19603 # than to expect to find it in ncurses.
19605 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19606 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19607 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19608 echo $ECHO_N "(cached) $ECHO_C" >&6
19609 else
19610 ac_check_lib_save_LIBS=$LIBS
19611 LIBS="-lncurses $LIBS"
19612 cat >conftest.$ac_ext <<_ACEOF
19613 /* confdefs.h. */
19614 _ACEOF
19615 cat confdefs.h >>conftest.$ac_ext
19616 cat >>conftest.$ac_ext <<_ACEOF
19617 /* end confdefs.h. */
19619 /* Override any GCC internal prototype to avoid an error.
19620 Use char because int might match the return type of a GCC
19621 builtin and then its argument prototype would still apply. */
19622 #ifdef __cplusplus
19623 extern "C"
19624 #endif
19625 char tparm ();
19627 main ()
19629 return tparm ();
19631 return 0;
19633 _ACEOF
19634 rm -f conftest.$ac_objext conftest$ac_exeext
19635 if { (ac_try="$ac_link"
19636 case "(($ac_try" in
19637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19638 *) ac_try_echo=$ac_try;;
19639 esac
19640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19641 (eval "$ac_link") 2>conftest.er1
19642 ac_status=$?
19643 grep -v '^ *+' conftest.er1 >conftest.err
19644 rm -f conftest.er1
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } && {
19648 test -z "$ac_c_werror_flag" ||
19649 test ! -s conftest.err
19650 } && test -s conftest$ac_exeext &&
19651 $as_test_x conftest$ac_exeext; then
19652 ac_cv_lib_ncurses_tparm=yes
19653 else
19654 echo "$as_me: failed program was:" >&5
19655 sed 's/^/| /' conftest.$ac_ext >&5
19657 ac_cv_lib_ncurses_tparm=no
19660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19661 conftest$ac_exeext conftest.$ac_ext
19662 LIBS=$ac_check_lib_save_LIBS
19664 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19665 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19666 if test $ac_cv_lib_ncurses_tparm = yes; then
19667 cat >>confdefs.h <<_ACEOF
19668 #define HAVE_LIBNCURSES 1
19669 _ACEOF
19671 LIBS="-lncurses $LIBS"
19676 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19678 resolv=no
19679 cat >conftest.$ac_ext <<_ACEOF
19680 /* confdefs.h. */
19681 _ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 #include <netinet/in.h>
19686 #include <arpa/nameser.h>
19687 #include <resolv.h>
19689 main ()
19691 return res_init();
19693 return 0;
19695 _ACEOF
19696 rm -f conftest.$ac_objext conftest$ac_exeext
19697 if { (ac_try="$ac_link"
19698 case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19701 esac
19702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_link") 2>conftest.er1
19704 ac_status=$?
19705 grep -v '^ *+' conftest.er1 >conftest.err
19706 rm -f conftest.er1
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } && {
19710 test -z "$ac_c_werror_flag" ||
19711 test ! -s conftest.err
19712 } && test -s conftest$ac_exeext &&
19713 $as_test_x conftest$ac_exeext; then
19714 have_res_init=yes
19715 else
19716 echo "$as_me: failed program was:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19719 have_res_init=no
19722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19723 conftest$ac_exeext conftest.$ac_ext
19724 if test "$have_res_init" = no; then
19725 OLIBS="$LIBS"
19726 LIBS="$LIBS -lresolv"
19727 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19728 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19729 cat >conftest.$ac_ext <<_ACEOF
19730 /* confdefs.h. */
19731 _ACEOF
19732 cat confdefs.h >>conftest.$ac_ext
19733 cat >>conftest.$ac_ext <<_ACEOF
19734 /* end confdefs.h. */
19735 #include <netinet/in.h>
19736 #include <arpa/nameser.h>
19737 #include <resolv.h>
19739 main ()
19741 return res_init();
19743 return 0;
19745 _ACEOF
19746 rm -f conftest.$ac_objext conftest$ac_exeext
19747 if { (ac_try="$ac_link"
19748 case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19751 esac
19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_link") 2>conftest.er1
19754 ac_status=$?
19755 grep -v '^ *+' conftest.er1 >conftest.err
19756 rm -f conftest.er1
19757 cat conftest.err >&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); } && {
19760 test -z "$ac_c_werror_flag" ||
19761 test ! -s conftest.err
19762 } && test -s conftest$ac_exeext &&
19763 $as_test_x conftest$ac_exeext; then
19764 have_res_init=yes
19765 else
19766 echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19769 have_res_init=no
19772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19773 conftest$ac_exeext conftest.$ac_ext
19774 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19775 echo "${ECHO_T}$have_res_init" >&6; }
19776 if test "$have_res_init" = yes ; then
19777 resolv=yes
19779 LIBS="$OLIBS"
19782 if test "$have_res_init" = yes; then
19784 cat >>confdefs.h <<\_ACEOF
19785 #define HAVE_RES_INIT 1
19786 _ACEOF
19790 # Do we need the Hesiod library to provide the support routines?
19791 if test "$with_hesiod" = yes ; then
19792 # Don't set $LIBS here -- see comments above.
19793 { echo "$as_me:$LINENO: checking for res_send" >&5
19794 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19795 if test "${ac_cv_func_res_send+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
19797 else
19798 cat >conftest.$ac_ext <<_ACEOF
19799 /* confdefs.h. */
19800 _ACEOF
19801 cat confdefs.h >>conftest.$ac_ext
19802 cat >>conftest.$ac_ext <<_ACEOF
19803 /* end confdefs.h. */
19804 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19806 #define res_send innocuous_res_send
19808 /* System header to define __stub macros and hopefully few prototypes,
19809 which can conflict with char res_send (); below.
19810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19811 <limits.h> exists even on freestanding compilers. */
19813 #ifdef __STDC__
19814 # include <limits.h>
19815 #else
19816 # include <assert.h>
19817 #endif
19819 #undef res_send
19821 /* Override any GCC internal prototype to avoid an error.
19822 Use char because int might match the return type of a GCC
19823 builtin and then its argument prototype would still apply. */
19824 #ifdef __cplusplus
19825 extern "C"
19826 #endif
19827 char res_send ();
19828 /* The GNU C library defines this for functions which it implements
19829 to always fail with ENOSYS. Some functions are actually named
19830 something starting with __ and the normal name is an alias. */
19831 #if defined __stub_res_send || defined __stub___res_send
19832 choke me
19833 #endif
19836 main ()
19838 return res_send ();
19840 return 0;
19842 _ACEOF
19843 rm -f conftest.$ac_objext conftest$ac_exeext
19844 if { (ac_try="$ac_link"
19845 case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19848 esac
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_link") 2>conftest.er1
19851 ac_status=$?
19852 grep -v '^ *+' conftest.er1 >conftest.err
19853 rm -f conftest.er1
19854 cat conftest.err >&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); } && {
19857 test -z "$ac_c_werror_flag" ||
19858 test ! -s conftest.err
19859 } && test -s conftest$ac_exeext &&
19860 $as_test_x conftest$ac_exeext; then
19861 ac_cv_func_res_send=yes
19862 else
19863 echo "$as_me: failed program was:" >&5
19864 sed 's/^/| /' conftest.$ac_ext >&5
19866 ac_cv_func_res_send=no
19869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19870 conftest$ac_exeext conftest.$ac_ext
19872 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19873 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19874 if test $ac_cv_func_res_send = yes; then
19876 else
19877 { echo "$as_me:$LINENO: checking for __res_send" >&5
19878 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19879 if test "${ac_cv_func___res_send+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19881 else
19882 cat >conftest.$ac_ext <<_ACEOF
19883 /* confdefs.h. */
19884 _ACEOF
19885 cat confdefs.h >>conftest.$ac_ext
19886 cat >>conftest.$ac_ext <<_ACEOF
19887 /* end confdefs.h. */
19888 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19890 #define __res_send innocuous___res_send
19892 /* System header to define __stub macros and hopefully few prototypes,
19893 which can conflict with char __res_send (); below.
19894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19895 <limits.h> exists even on freestanding compilers. */
19897 #ifdef __STDC__
19898 # include <limits.h>
19899 #else
19900 # include <assert.h>
19901 #endif
19903 #undef __res_send
19905 /* Override any GCC internal prototype to avoid an error.
19906 Use char because int might match the return type of a GCC
19907 builtin and then its argument prototype would still apply. */
19908 #ifdef __cplusplus
19909 extern "C"
19910 #endif
19911 char __res_send ();
19912 /* The GNU C library defines this for functions which it implements
19913 to always fail with ENOSYS. Some functions are actually named
19914 something starting with __ and the normal name is an alias. */
19915 #if defined __stub___res_send || defined __stub_____res_send
19916 choke me
19917 #endif
19920 main ()
19922 return __res_send ();
19924 return 0;
19926 _ACEOF
19927 rm -f conftest.$ac_objext conftest$ac_exeext
19928 if { (ac_try="$ac_link"
19929 case "(($ac_try" in
19930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19931 *) ac_try_echo=$ac_try;;
19932 esac
19933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19934 (eval "$ac_link") 2>conftest.er1
19935 ac_status=$?
19936 grep -v '^ *+' conftest.er1 >conftest.err
19937 rm -f conftest.er1
19938 cat conftest.err >&5
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); } && {
19941 test -z "$ac_c_werror_flag" ||
19942 test ! -s conftest.err
19943 } && test -s conftest$ac_exeext &&
19944 $as_test_x conftest$ac_exeext; then
19945 ac_cv_func___res_send=yes
19946 else
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ac_cv_func___res_send=no
19953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19954 conftest$ac_exeext conftest.$ac_ext
19956 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19957 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19958 if test $ac_cv_func___res_send = yes; then
19960 else
19961 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19962 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19963 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 else
19966 ac_check_lib_save_LIBS=$LIBS
19967 LIBS="-lresolv $LIBS"
19968 cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h. */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19975 /* Override any GCC internal prototype to avoid an error.
19976 Use char because int might match the return type of a GCC
19977 builtin and then its argument prototype would still apply. */
19978 #ifdef __cplusplus
19979 extern "C"
19980 #endif
19981 char res_send ();
19983 main ()
19985 return res_send ();
19987 return 0;
19989 _ACEOF
19990 rm -f conftest.$ac_objext conftest$ac_exeext
19991 if { (ac_try="$ac_link"
19992 case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19995 esac
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_link") 2>conftest.er1
19998 ac_status=$?
19999 grep -v '^ *+' conftest.er1 >conftest.err
20000 rm -f conftest.er1
20001 cat conftest.err >&5
20002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003 (exit $ac_status); } && {
20004 test -z "$ac_c_werror_flag" ||
20005 test ! -s conftest.err
20006 } && test -s conftest$ac_exeext &&
20007 $as_test_x conftest$ac_exeext; then
20008 ac_cv_lib_resolv_res_send=yes
20009 else
20010 echo "$as_me: failed program was:" >&5
20011 sed 's/^/| /' conftest.$ac_ext >&5
20013 ac_cv_lib_resolv_res_send=no
20016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20017 conftest$ac_exeext conftest.$ac_ext
20018 LIBS=$ac_check_lib_save_LIBS
20020 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20021 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20022 if test $ac_cv_lib_resolv_res_send = yes; then
20023 resolv=yes
20024 else
20025 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20026 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20027 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20028 echo $ECHO_N "(cached) $ECHO_C" >&6
20029 else
20030 ac_check_lib_save_LIBS=$LIBS
20031 LIBS="-lresolv $LIBS"
20032 cat >conftest.$ac_ext <<_ACEOF
20033 /* confdefs.h. */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20039 /* Override any GCC internal prototype to avoid an error.
20040 Use char because int might match the return type of a GCC
20041 builtin and then its argument prototype would still apply. */
20042 #ifdef __cplusplus
20043 extern "C"
20044 #endif
20045 char __res_send ();
20047 main ()
20049 return __res_send ();
20051 return 0;
20053 _ACEOF
20054 rm -f conftest.$ac_objext conftest$ac_exeext
20055 if { (ac_try="$ac_link"
20056 case "(($ac_try" in
20057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058 *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061 (eval "$ac_link") 2>conftest.er1
20062 ac_status=$?
20063 grep -v '^ *+' conftest.er1 >conftest.err
20064 rm -f conftest.er1
20065 cat conftest.err >&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); } && {
20068 test -z "$ac_c_werror_flag" ||
20069 test ! -s conftest.err
20070 } && test -s conftest$ac_exeext &&
20071 $as_test_x conftest$ac_exeext; then
20072 ac_cv_lib_resolv___res_send=yes
20073 else
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20077 ac_cv_lib_resolv___res_send=no
20080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20081 conftest$ac_exeext conftest.$ac_ext
20082 LIBS=$ac_check_lib_save_LIBS
20084 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20085 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20086 if test $ac_cv_lib_resolv___res_send = yes; then
20087 resolv=yes
20096 if test "$resolv" = yes ; then
20097 RESOLVLIB=-lresolv
20098 else
20099 RESOLVLIB=
20101 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20102 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20103 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20105 else
20106 cat >conftest.$ac_ext <<_ACEOF
20107 /* confdefs.h. */
20108 _ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h. */
20112 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20114 #define hes_getmailhost innocuous_hes_getmailhost
20116 /* System header to define __stub macros and hopefully few prototypes,
20117 which can conflict with char hes_getmailhost (); below.
20118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20119 <limits.h> exists even on freestanding compilers. */
20121 #ifdef __STDC__
20122 # include <limits.h>
20123 #else
20124 # include <assert.h>
20125 #endif
20127 #undef hes_getmailhost
20129 /* Override any GCC internal prototype to avoid an error.
20130 Use char because int might match the return type of a GCC
20131 builtin and then its argument prototype would still apply. */
20132 #ifdef __cplusplus
20133 extern "C"
20134 #endif
20135 char hes_getmailhost ();
20136 /* The GNU C library defines this for functions which it implements
20137 to always fail with ENOSYS. Some functions are actually named
20138 something starting with __ and the normal name is an alias. */
20139 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20140 choke me
20141 #endif
20144 main ()
20146 return hes_getmailhost ();
20148 return 0;
20150 _ACEOF
20151 rm -f conftest.$ac_objext conftest$ac_exeext
20152 if { (ac_try="$ac_link"
20153 case "(($ac_try" in
20154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20155 *) ac_try_echo=$ac_try;;
20156 esac
20157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20158 (eval "$ac_link") 2>conftest.er1
20159 ac_status=$?
20160 grep -v '^ *+' conftest.er1 >conftest.err
20161 rm -f conftest.er1
20162 cat conftest.err >&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } && {
20165 test -z "$ac_c_werror_flag" ||
20166 test ! -s conftest.err
20167 } && test -s conftest$ac_exeext &&
20168 $as_test_x conftest$ac_exeext; then
20169 ac_cv_func_hes_getmailhost=yes
20170 else
20171 echo "$as_me: failed program was:" >&5
20172 sed 's/^/| /' conftest.$ac_ext >&5
20174 ac_cv_func_hes_getmailhost=no
20177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20178 conftest$ac_exeext conftest.$ac_ext
20180 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20181 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20182 if test $ac_cv_func_hes_getmailhost = yes; then
20184 else
20185 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20186 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20187 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20189 else
20190 ac_check_lib_save_LIBS=$LIBS
20191 LIBS="-lhesiod $RESOLVLIB $LIBS"
20192 cat >conftest.$ac_ext <<_ACEOF
20193 /* confdefs.h. */
20194 _ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20199 /* Override any GCC internal prototype to avoid an error.
20200 Use char because int might match the return type of a GCC
20201 builtin and then its argument prototype would still apply. */
20202 #ifdef __cplusplus
20203 extern "C"
20204 #endif
20205 char hes_getmailhost ();
20207 main ()
20209 return hes_getmailhost ();
20211 return 0;
20213 _ACEOF
20214 rm -f conftest.$ac_objext conftest$ac_exeext
20215 if { (ac_try="$ac_link"
20216 case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20219 esac
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_link") 2>conftest.er1
20222 ac_status=$?
20223 grep -v '^ *+' conftest.er1 >conftest.err
20224 rm -f conftest.er1
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } && {
20228 test -z "$ac_c_werror_flag" ||
20229 test ! -s conftest.err
20230 } && test -s conftest$ac_exeext &&
20231 $as_test_x conftest$ac_exeext; then
20232 ac_cv_lib_hesiod_hes_getmailhost=yes
20233 else
20234 echo "$as_me: failed program was:" >&5
20235 sed 's/^/| /' conftest.$ac_ext >&5
20237 ac_cv_lib_hesiod_hes_getmailhost=no
20240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20241 conftest$ac_exeext conftest.$ac_ext
20242 LIBS=$ac_check_lib_save_LIBS
20244 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20245 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20246 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20248 cat >>confdefs.h <<\_ACEOF
20249 #define HAVE_LIBHESIOD 1
20250 _ACEOF
20252 else
20260 # Do we need libresolv (due to res_init or Hesiod)?
20261 if test "$resolv" = yes ; then
20263 cat >>confdefs.h <<\_ACEOF
20264 #define HAVE_LIBRESOLV 1
20265 _ACEOF
20269 # These tell us which Kerberos-related libraries to use.
20270 if test "${with_kerberos+set}" = set; then
20272 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20273 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20274 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 else
20277 ac_check_lib_save_LIBS=$LIBS
20278 LIBS="-lcom_err $LIBS"
20279 cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h. */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20286 /* Override any GCC internal prototype to avoid an error.
20287 Use char because int might match the return type of a GCC
20288 builtin and then its argument prototype would still apply. */
20289 #ifdef __cplusplus
20290 extern "C"
20291 #endif
20292 char com_err ();
20294 main ()
20296 return com_err ();
20298 return 0;
20300 _ACEOF
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (ac_try="$ac_link"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20306 esac
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_link") 2>conftest.er1
20309 ac_status=$?
20310 grep -v '^ *+' conftest.er1 >conftest.err
20311 rm -f conftest.er1
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } && {
20315 test -z "$ac_c_werror_flag" ||
20316 test ! -s conftest.err
20317 } && test -s conftest$ac_exeext &&
20318 $as_test_x conftest$ac_exeext; then
20319 ac_cv_lib_com_err_com_err=yes
20320 else
20321 echo "$as_me: failed program was:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ac_cv_lib_com_err_com_err=no
20327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20328 conftest$ac_exeext conftest.$ac_ext
20329 LIBS=$ac_check_lib_save_LIBS
20331 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20332 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20333 if test $ac_cv_lib_com_err_com_err = yes; then
20334 cat >>confdefs.h <<_ACEOF
20335 #define HAVE_LIBCOM_ERR 1
20336 _ACEOF
20338 LIBS="-lcom_err $LIBS"
20343 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20344 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20345 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20346 echo $ECHO_N "(cached) $ECHO_C" >&6
20347 else
20348 ac_check_lib_save_LIBS=$LIBS
20349 LIBS="-lk5crypto $LIBS"
20350 cat >conftest.$ac_ext <<_ACEOF
20351 /* confdefs.h. */
20352 _ACEOF
20353 cat confdefs.h >>conftest.$ac_ext
20354 cat >>conftest.$ac_ext <<_ACEOF
20355 /* end confdefs.h. */
20357 /* Override any GCC internal prototype to avoid an error.
20358 Use char because int might match the return type of a GCC
20359 builtin and then its argument prototype would still apply. */
20360 #ifdef __cplusplus
20361 extern "C"
20362 #endif
20363 char mit_des_cbc_encrypt ();
20365 main ()
20367 return mit_des_cbc_encrypt ();
20369 return 0;
20371 _ACEOF
20372 rm -f conftest.$ac_objext conftest$ac_exeext
20373 if { (ac_try="$ac_link"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_link") 2>conftest.er1
20380 ac_status=$?
20381 grep -v '^ *+' conftest.er1 >conftest.err
20382 rm -f conftest.er1
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } && {
20386 test -z "$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 } && test -s conftest$ac_exeext &&
20389 $as_test_x conftest$ac_exeext; then
20390 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20391 else
20392 echo "$as_me: failed program was:" >&5
20393 sed 's/^/| /' conftest.$ac_ext >&5
20395 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20399 conftest$ac_exeext conftest.$ac_ext
20400 LIBS=$ac_check_lib_save_LIBS
20402 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20403 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20404 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20405 cat >>confdefs.h <<_ACEOF
20406 #define HAVE_LIBK5CRYPTO 1
20407 _ACEOF
20409 LIBS="-lk5crypto $LIBS"
20414 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20415 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20416 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20418 else
20419 ac_check_lib_save_LIBS=$LIBS
20420 LIBS="-lcrypto $LIBS"
20421 cat >conftest.$ac_ext <<_ACEOF
20422 /* confdefs.h. */
20423 _ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20428 /* Override any GCC internal prototype to avoid an error.
20429 Use char because int might match the return type of a GCC
20430 builtin and then its argument prototype would still apply. */
20431 #ifdef __cplusplus
20432 extern "C"
20433 #endif
20434 char mit_des_cbc_encrypt ();
20436 main ()
20438 return mit_des_cbc_encrypt ();
20440 return 0;
20442 _ACEOF
20443 rm -f conftest.$ac_objext conftest$ac_exeext
20444 if { (ac_try="$ac_link"
20445 case "(($ac_try" in
20446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447 *) ac_try_echo=$ac_try;;
20448 esac
20449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20450 (eval "$ac_link") 2>conftest.er1
20451 ac_status=$?
20452 grep -v '^ *+' conftest.er1 >conftest.err
20453 rm -f conftest.er1
20454 cat conftest.err >&5
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); } && {
20457 test -z "$ac_c_werror_flag" ||
20458 test ! -s conftest.err
20459 } && test -s conftest$ac_exeext &&
20460 $as_test_x conftest$ac_exeext; then
20461 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20462 else
20463 echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20466 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20470 conftest$ac_exeext conftest.$ac_ext
20471 LIBS=$ac_check_lib_save_LIBS
20473 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20474 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20475 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20476 cat >>confdefs.h <<_ACEOF
20477 #define HAVE_LIBCRYPTO 1
20478 _ACEOF
20480 LIBS="-lcrypto $LIBS"
20485 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20486 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20487 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20488 echo $ECHO_N "(cached) $ECHO_C" >&6
20489 else
20490 ac_check_lib_save_LIBS=$LIBS
20491 LIBS="-lkrb5 $LIBS"
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h. */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20499 /* Override any GCC internal prototype to avoid an error.
20500 Use char because int might match the return type of a GCC
20501 builtin and then its argument prototype would still apply. */
20502 #ifdef __cplusplus
20503 extern "C"
20504 #endif
20505 char krb5_init_context ();
20507 main ()
20509 return krb5_init_context ();
20511 return 0;
20513 _ACEOF
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (ac_try="$ac_link"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20519 esac
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_link") 2>conftest.er1
20522 ac_status=$?
20523 grep -v '^ *+' conftest.er1 >conftest.err
20524 rm -f conftest.er1
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } && {
20528 test -z "$ac_c_werror_flag" ||
20529 test ! -s conftest.err
20530 } && test -s conftest$ac_exeext &&
20531 $as_test_x conftest$ac_exeext; then
20532 ac_cv_lib_krb5_krb5_init_context=yes
20533 else
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_cv_lib_krb5_krb5_init_context=no
20540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20541 conftest$ac_exeext conftest.$ac_ext
20542 LIBS=$ac_check_lib_save_LIBS
20544 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20545 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20546 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20547 cat >>confdefs.h <<_ACEOF
20548 #define HAVE_LIBKRB5 1
20549 _ACEOF
20551 LIBS="-lkrb5 $LIBS"
20555 if test "${with_kerberos5+set}" != set; then
20557 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20558 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20559 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20560 echo $ECHO_N "(cached) $ECHO_C" >&6
20561 else
20562 ac_check_lib_save_LIBS=$LIBS
20563 LIBS="-ldes425 $LIBS"
20564 cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h. */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20571 /* Override any GCC internal prototype to avoid an error.
20572 Use char because int might match the return type of a GCC
20573 builtin and then its argument prototype would still apply. */
20574 #ifdef __cplusplus
20575 extern "C"
20576 #endif
20577 char des_cbc_encrypt ();
20579 main ()
20581 return des_cbc_encrypt ();
20583 return 0;
20585 _ACEOF
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (ac_try="$ac_link"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20591 esac
20592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_link") 2>conftest.er1
20594 ac_status=$?
20595 grep -v '^ *+' conftest.er1 >conftest.err
20596 rm -f conftest.er1
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599 (exit $ac_status); } && {
20600 test -z "$ac_c_werror_flag" ||
20601 test ! -s conftest.err
20602 } && test -s conftest$ac_exeext &&
20603 $as_test_x conftest$ac_exeext; then
20604 ac_cv_lib_des425_des_cbc_encrypt=yes
20605 else
20606 echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20609 ac_cv_lib_des425_des_cbc_encrypt=no
20612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20613 conftest$ac_exeext conftest.$ac_ext
20614 LIBS=$ac_check_lib_save_LIBS
20616 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20617 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20618 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20619 cat >>confdefs.h <<_ACEOF
20620 #define HAVE_LIBDES425 1
20621 _ACEOF
20623 LIBS="-ldes425 $LIBS"
20625 else
20627 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20628 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20629 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20630 echo $ECHO_N "(cached) $ECHO_C" >&6
20631 else
20632 ac_check_lib_save_LIBS=$LIBS
20633 LIBS="-ldes $LIBS"
20634 cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h. */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20641 /* Override any GCC internal prototype to avoid an error.
20642 Use char because int might match the return type of a GCC
20643 builtin and then its argument prototype would still apply. */
20644 #ifdef __cplusplus
20645 extern "C"
20646 #endif
20647 char des_cbc_encrypt ();
20649 main ()
20651 return des_cbc_encrypt ();
20653 return 0;
20655 _ACEOF
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20661 esac
20662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_link") 2>conftest.er1
20664 ac_status=$?
20665 grep -v '^ *+' conftest.er1 >conftest.err
20666 rm -f conftest.er1
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest$ac_exeext &&
20673 $as_test_x conftest$ac_exeext; then
20674 ac_cv_lib_des_des_cbc_encrypt=yes
20675 else
20676 echo "$as_me: failed program was:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ac_cv_lib_des_des_cbc_encrypt=no
20682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20683 conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20686 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20687 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20688 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20689 cat >>confdefs.h <<_ACEOF
20690 #define HAVE_LIBDES 1
20691 _ACEOF
20693 LIBS="-ldes $LIBS"
20700 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20701 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20702 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20703 echo $ECHO_N "(cached) $ECHO_C" >&6
20704 else
20705 ac_check_lib_save_LIBS=$LIBS
20706 LIBS="-lkrb4 $LIBS"
20707 cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h. */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20714 /* Override any GCC internal prototype to avoid an error.
20715 Use char because int might match the return type of a GCC
20716 builtin and then its argument prototype would still apply. */
20717 #ifdef __cplusplus
20718 extern "C"
20719 #endif
20720 char krb_get_cred ();
20722 main ()
20724 return krb_get_cred ();
20726 return 0;
20728 _ACEOF
20729 rm -f conftest.$ac_objext conftest$ac_exeext
20730 if { (ac_try="$ac_link"
20731 case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20734 esac
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_link") 2>conftest.er1
20737 ac_status=$?
20738 grep -v '^ *+' conftest.er1 >conftest.err
20739 rm -f conftest.er1
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest$ac_exeext &&
20746 $as_test_x conftest$ac_exeext; then
20747 ac_cv_lib_krb4_krb_get_cred=yes
20748 else
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20752 ac_cv_lib_krb4_krb_get_cred=no
20755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20756 conftest$ac_exeext conftest.$ac_ext
20757 LIBS=$ac_check_lib_save_LIBS
20759 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20760 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20761 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20762 cat >>confdefs.h <<_ACEOF
20763 #define HAVE_LIBKRB4 1
20764 _ACEOF
20766 LIBS="-lkrb4 $LIBS"
20768 else
20770 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20771 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20772 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20773 echo $ECHO_N "(cached) $ECHO_C" >&6
20774 else
20775 ac_check_lib_save_LIBS=$LIBS
20776 LIBS="-lkrb $LIBS"
20777 cat >conftest.$ac_ext <<_ACEOF
20778 /* confdefs.h. */
20779 _ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20784 /* Override any GCC internal prototype to avoid an error.
20785 Use char because int might match the return type of a GCC
20786 builtin and then its argument prototype would still apply. */
20787 #ifdef __cplusplus
20788 extern "C"
20789 #endif
20790 char krb_get_cred ();
20792 main ()
20794 return krb_get_cred ();
20796 return 0;
20798 _ACEOF
20799 rm -f conftest.$ac_objext conftest$ac_exeext
20800 if { (ac_try="$ac_link"
20801 case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804 esac
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_link") 2>conftest.er1
20807 ac_status=$?
20808 grep -v '^ *+' conftest.er1 >conftest.err
20809 rm -f conftest.er1
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } && {
20813 test -z "$ac_c_werror_flag" ||
20814 test ! -s conftest.err
20815 } && test -s conftest$ac_exeext &&
20816 $as_test_x conftest$ac_exeext; then
20817 ac_cv_lib_krb_krb_get_cred=yes
20818 else
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20822 ac_cv_lib_krb_krb_get_cred=no
20825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20826 conftest$ac_exeext conftest.$ac_ext
20827 LIBS=$ac_check_lib_save_LIBS
20829 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20830 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20831 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20832 cat >>confdefs.h <<_ACEOF
20833 #define HAVE_LIBKRB 1
20834 _ACEOF
20836 LIBS="-lkrb $LIBS"
20844 if test "${with_kerberos5+set}" = set; then
20846 for ac_header in krb5.h
20848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20855 ac_res=`eval echo '${'$as_ac_Header'}'`
20856 { echo "$as_me:$LINENO: result: $ac_res" >&5
20857 echo "${ECHO_T}$ac_res" >&6; }
20858 else
20859 # Is the header compilable?
20860 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20862 cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h. */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 $ac_includes_default
20869 #include <$ac_header>
20870 _ACEOF
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20876 esac
20877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_compile") 2>conftest.er1
20879 ac_status=$?
20880 grep -v '^ *+' conftest.er1 >conftest.err
20881 rm -f conftest.er1
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } && {
20885 test -z "$ac_c_werror_flag" ||
20886 test ! -s conftest.err
20887 } && test -s conftest.$ac_objext; then
20888 ac_header_compiler=yes
20889 else
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20893 ac_header_compiler=no
20896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20898 echo "${ECHO_T}$ac_header_compiler" >&6; }
20900 # Is the header present?
20901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20903 cat >conftest.$ac_ext <<_ACEOF
20904 /* confdefs.h. */
20905 _ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h. */
20909 #include <$ac_header>
20910 _ACEOF
20911 if { (ac_try="$ac_cpp conftest.$ac_ext"
20912 case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20915 esac
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20918 ac_status=$?
20919 grep -v '^ *+' conftest.er1 >conftest.err
20920 rm -f conftest.er1
20921 cat conftest.err >&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } >/dev/null && {
20924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20925 test ! -s conftest.err
20926 }; then
20927 ac_header_preproc=yes
20928 else
20929 echo "$as_me: failed program was:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20932 ac_header_preproc=no
20935 rm -f conftest.err conftest.$ac_ext
20936 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20937 echo "${ECHO_T}$ac_header_preproc" >&6; }
20939 # So? What about this header?
20940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20941 yes:no: )
20942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20943 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20946 ac_header_preproc=yes
20948 no:yes:* )
20949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20950 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20952 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20954 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20956 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20960 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20963 esac
20964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20967 echo $ECHO_N "(cached) $ECHO_C" >&6
20968 else
20969 eval "$as_ac_Header=\$ac_header_preproc"
20971 ac_res=`eval echo '${'$as_ac_Header'}'`
20972 { echo "$as_me:$LINENO: result: $ac_res" >&5
20973 echo "${ECHO_T}$ac_res" >&6; }
20976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20977 cat >>confdefs.h <<_ACEOF
20978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20979 _ACEOF
20983 done
20985 else
20987 for ac_header in des.h
20989 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20994 echo $ECHO_N "(cached) $ECHO_C" >&6
20996 ac_res=`eval echo '${'$as_ac_Header'}'`
20997 { echo "$as_me:$LINENO: result: $ac_res" >&5
20998 echo "${ECHO_T}$ac_res" >&6; }
20999 else
21000 # Is the header compilable?
21001 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21002 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21003 cat >conftest.$ac_ext <<_ACEOF
21004 /* confdefs.h. */
21005 _ACEOF
21006 cat confdefs.h >>conftest.$ac_ext
21007 cat >>conftest.$ac_ext <<_ACEOF
21008 /* end confdefs.h. */
21009 $ac_includes_default
21010 #include <$ac_header>
21011 _ACEOF
21012 rm -f conftest.$ac_objext
21013 if { (ac_try="$ac_compile"
21014 case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21017 esac
21018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_compile") 2>conftest.er1
21020 ac_status=$?
21021 grep -v '^ *+' conftest.er1 >conftest.err
21022 rm -f conftest.er1
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); } && {
21026 test -z "$ac_c_werror_flag" ||
21027 test ! -s conftest.err
21028 } && test -s conftest.$ac_objext; then
21029 ac_header_compiler=yes
21030 else
21031 echo "$as_me: failed program was:" >&5
21032 sed 's/^/| /' conftest.$ac_ext >&5
21034 ac_header_compiler=no
21037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21038 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21039 echo "${ECHO_T}$ac_header_compiler" >&6; }
21041 # Is the header present?
21042 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21043 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21044 cat >conftest.$ac_ext <<_ACEOF
21045 /* confdefs.h. */
21046 _ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h. */
21050 #include <$ac_header>
21051 _ACEOF
21052 if { (ac_try="$ac_cpp conftest.$ac_ext"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21059 ac_status=$?
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } >/dev/null && {
21065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 }; then
21068 ac_header_preproc=yes
21069 else
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_header_preproc=no
21076 rm -f conftest.err conftest.$ac_ext
21077 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21078 echo "${ECHO_T}$ac_header_preproc" >&6; }
21080 # So? What about this header?
21081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21082 yes:no: )
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21084 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21087 ac_header_preproc=yes
21089 no:yes:* )
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21091 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21093 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21095 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21096 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21097 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21098 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21100 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21101 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21104 esac
21105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 else
21110 eval "$as_ac_Header=\$ac_header_preproc"
21112 ac_res=`eval echo '${'$as_ac_Header'}'`
21113 { echo "$as_me:$LINENO: result: $ac_res" >&5
21114 echo "${ECHO_T}$ac_res" >&6; }
21117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21118 cat >>confdefs.h <<_ACEOF
21119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21120 _ACEOF
21122 else
21124 for ac_header in kerberosIV/des.h
21126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21131 echo $ECHO_N "(cached) $ECHO_C" >&6
21133 ac_res=`eval echo '${'$as_ac_Header'}'`
21134 { echo "$as_me:$LINENO: result: $ac_res" >&5
21135 echo "${ECHO_T}$ac_res" >&6; }
21136 else
21137 # Is the header compilable?
21138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h. */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 $ac_includes_default
21147 #include <$ac_header>
21148 _ACEOF
21149 rm -f conftest.$ac_objext
21150 if { (ac_try="$ac_compile"
21151 case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21154 esac
21155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_compile") 2>conftest.er1
21157 ac_status=$?
21158 grep -v '^ *+' conftest.er1 >conftest.err
21159 rm -f conftest.er1
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest.$ac_objext; then
21166 ac_header_compiler=yes
21167 else
21168 echo "$as_me: failed program was:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 ac_header_compiler=no
21174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21176 echo "${ECHO_T}$ac_header_compiler" >&6; }
21178 # Is the header present?
21179 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21180 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h. */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 #include <$ac_header>
21188 _ACEOF
21189 if { (ac_try="$ac_cpp conftest.$ac_ext"
21190 case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21193 esac
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21196 ac_status=$?
21197 grep -v '^ *+' conftest.er1 >conftest.err
21198 rm -f conftest.er1
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } >/dev/null && {
21202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21204 }; then
21205 ac_header_preproc=yes
21206 else
21207 echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21210 ac_header_preproc=no
21213 rm -f conftest.err conftest.$ac_ext
21214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21215 echo "${ECHO_T}$ac_header_preproc" >&6; }
21217 # So? What about this header?
21218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21219 yes:no: )
21220 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21221 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21224 ac_header_preproc=yes
21226 no:yes:* )
21227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21228 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21230 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21232 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21234 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21235 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21237 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21238 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21241 esac
21242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21246 else
21247 eval "$as_ac_Header=\$ac_header_preproc"
21249 ac_res=`eval echo '${'$as_ac_Header'}'`
21250 { echo "$as_me:$LINENO: result: $ac_res" >&5
21251 echo "${ECHO_T}$ac_res" >&6; }
21254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21255 cat >>confdefs.h <<_ACEOF
21256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21257 _ACEOF
21259 else
21261 for ac_header in kerberos/des.h
21263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 ac_res=`eval echo '${'$as_ac_Header'}'`
21271 { echo "$as_me:$LINENO: result: $ac_res" >&5
21272 echo "${ECHO_T}$ac_res" >&6; }
21273 else
21274 # Is the header compilable?
21275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21277 cat >conftest.$ac_ext <<_ACEOF
21278 /* confdefs.h. */
21279 _ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h. */
21283 $ac_includes_default
21284 #include <$ac_header>
21285 _ACEOF
21286 rm -f conftest.$ac_objext
21287 if { (ac_try="$ac_compile"
21288 case "(($ac_try" in
21289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290 *) ac_try_echo=$ac_try;;
21291 esac
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293 (eval "$ac_compile") 2>conftest.er1
21294 ac_status=$?
21295 grep -v '^ *+' conftest.er1 >conftest.err
21296 rm -f conftest.er1
21297 cat conftest.err >&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } && {
21300 test -z "$ac_c_werror_flag" ||
21301 test ! -s conftest.err
21302 } && test -s conftest.$ac_objext; then
21303 ac_header_compiler=yes
21304 else
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 ac_header_compiler=no
21311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21313 echo "${ECHO_T}$ac_header_compiler" >&6; }
21315 # Is the header present?
21316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21318 cat >conftest.$ac_ext <<_ACEOF
21319 /* confdefs.h. */
21320 _ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21324 #include <$ac_header>
21325 _ACEOF
21326 if { (ac_try="$ac_cpp conftest.$ac_ext"
21327 case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21330 esac
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21333 ac_status=$?
21334 grep -v '^ *+' conftest.er1 >conftest.err
21335 rm -f conftest.er1
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } >/dev/null && {
21339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21340 test ! -s conftest.err
21341 }; then
21342 ac_header_preproc=yes
21343 else
21344 echo "$as_me: failed program was:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21347 ac_header_preproc=no
21350 rm -f conftest.err conftest.$ac_ext
21351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21352 echo "${ECHO_T}$ac_header_preproc" >&6; }
21354 # So? What about this header?
21355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21356 yes:no: )
21357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21361 ac_header_preproc=yes
21363 no:yes:* )
21364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21378 esac
21379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21383 else
21384 eval "$as_ac_Header=\$ac_header_preproc"
21386 ac_res=`eval echo '${'$as_ac_Header'}'`
21387 { echo "$as_me:$LINENO: result: $ac_res" >&5
21388 echo "${ECHO_T}$ac_res" >&6; }
21391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21392 cat >>confdefs.h <<_ACEOF
21393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21394 _ACEOF
21398 done
21402 done
21406 done
21409 for ac_header in krb.h
21411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21412 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21413 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21416 echo $ECHO_N "(cached) $ECHO_C" >&6
21418 ac_res=`eval echo '${'$as_ac_Header'}'`
21419 { echo "$as_me:$LINENO: result: $ac_res" >&5
21420 echo "${ECHO_T}$ac_res" >&6; }
21421 else
21422 # Is the header compilable?
21423 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21425 cat >conftest.$ac_ext <<_ACEOF
21426 /* confdefs.h. */
21427 _ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h. */
21431 $ac_includes_default
21432 #include <$ac_header>
21433 _ACEOF
21434 rm -f conftest.$ac_objext
21435 if { (ac_try="$ac_compile"
21436 case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21439 esac
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441 (eval "$ac_compile") 2>conftest.er1
21442 ac_status=$?
21443 grep -v '^ *+' conftest.er1 >conftest.err
21444 rm -f conftest.er1
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } && {
21448 test -z "$ac_c_werror_flag" ||
21449 test ! -s conftest.err
21450 } && test -s conftest.$ac_objext; then
21451 ac_header_compiler=yes
21452 else
21453 echo "$as_me: failed program was:" >&5
21454 sed 's/^/| /' conftest.$ac_ext >&5
21456 ac_header_compiler=no
21459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21461 echo "${ECHO_T}$ac_header_compiler" >&6; }
21463 # Is the header present?
21464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21466 cat >conftest.$ac_ext <<_ACEOF
21467 /* confdefs.h. */
21468 _ACEOF
21469 cat confdefs.h >>conftest.$ac_ext
21470 cat >>conftest.$ac_ext <<_ACEOF
21471 /* end confdefs.h. */
21472 #include <$ac_header>
21473 _ACEOF
21474 if { (ac_try="$ac_cpp conftest.$ac_ext"
21475 case "(($ac_try" in
21476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21477 *) ac_try_echo=$ac_try;;
21478 esac
21479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21481 ac_status=$?
21482 grep -v '^ *+' conftest.er1 >conftest.err
21483 rm -f conftest.er1
21484 cat conftest.err >&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } >/dev/null && {
21487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21488 test ! -s conftest.err
21489 }; then
21490 ac_header_preproc=yes
21491 else
21492 echo "$as_me: failed program was:" >&5
21493 sed 's/^/| /' conftest.$ac_ext >&5
21495 ac_header_preproc=no
21498 rm -f conftest.err conftest.$ac_ext
21499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21500 echo "${ECHO_T}$ac_header_preproc" >&6; }
21502 # So? What about this header?
21503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21504 yes:no: )
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21506 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21509 ac_header_preproc=yes
21511 no:yes:* )
21512 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21513 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21514 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21515 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21517 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21519 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21522 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21523 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21526 esac
21527 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21531 else
21532 eval "$as_ac_Header=\$ac_header_preproc"
21534 ac_res=`eval echo '${'$as_ac_Header'}'`
21535 { echo "$as_me:$LINENO: result: $ac_res" >&5
21536 echo "${ECHO_T}$ac_res" >&6; }
21539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21540 cat >>confdefs.h <<_ACEOF
21541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21542 _ACEOF
21544 else
21546 for ac_header in kerberosIV/krb.h
21548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21555 ac_res=`eval echo '${'$as_ac_Header'}'`
21556 { echo "$as_me:$LINENO: result: $ac_res" >&5
21557 echo "${ECHO_T}$ac_res" >&6; }
21558 else
21559 # Is the header compilable?
21560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21562 cat >conftest.$ac_ext <<_ACEOF
21563 /* confdefs.h. */
21564 _ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21568 $ac_includes_default
21569 #include <$ac_header>
21570 _ACEOF
21571 rm -f conftest.$ac_objext
21572 if { (ac_try="$ac_compile"
21573 case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21576 esac
21577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_compile") 2>conftest.er1
21579 ac_status=$?
21580 grep -v '^ *+' conftest.er1 >conftest.err
21581 rm -f conftest.er1
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } && {
21585 test -z "$ac_c_werror_flag" ||
21586 test ! -s conftest.err
21587 } && test -s conftest.$ac_objext; then
21588 ac_header_compiler=yes
21589 else
21590 echo "$as_me: failed program was:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 ac_header_compiler=no
21596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21598 echo "${ECHO_T}$ac_header_compiler" >&6; }
21600 # Is the header present?
21601 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21603 cat >conftest.$ac_ext <<_ACEOF
21604 /* confdefs.h. */
21605 _ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 #include <$ac_header>
21610 _ACEOF
21611 if { (ac_try="$ac_cpp conftest.$ac_ext"
21612 case "(($ac_try" in
21613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21614 *) ac_try_echo=$ac_try;;
21615 esac
21616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21618 ac_status=$?
21619 grep -v '^ *+' conftest.er1 >conftest.err
21620 rm -f conftest.er1
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21623 (exit $ac_status); } >/dev/null && {
21624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21625 test ! -s conftest.err
21626 }; then
21627 ac_header_preproc=yes
21628 else
21629 echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 ac_header_preproc=no
21635 rm -f conftest.err conftest.$ac_ext
21636 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21637 echo "${ECHO_T}$ac_header_preproc" >&6; }
21639 # So? What about this header?
21640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21641 yes:no: )
21642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21646 ac_header_preproc=yes
21648 no:yes:* )
21649 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21650 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21651 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21652 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21653 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21654 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21655 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21656 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21660 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21663 esac
21664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21667 echo $ECHO_N "(cached) $ECHO_C" >&6
21668 else
21669 eval "$as_ac_Header=\$ac_header_preproc"
21671 ac_res=`eval echo '${'$as_ac_Header'}'`
21672 { echo "$as_me:$LINENO: result: $ac_res" >&5
21673 echo "${ECHO_T}$ac_res" >&6; }
21676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21677 cat >>confdefs.h <<_ACEOF
21678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21679 _ACEOF
21681 else
21683 for ac_header in kerberos/krb.h
21685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 ac_res=`eval echo '${'$as_ac_Header'}'`
21693 { echo "$as_me:$LINENO: result: $ac_res" >&5
21694 echo "${ECHO_T}$ac_res" >&6; }
21695 else
21696 # Is the header compilable?
21697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21699 cat >conftest.$ac_ext <<_ACEOF
21700 /* confdefs.h. */
21701 _ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h. */
21705 $ac_includes_default
21706 #include <$ac_header>
21707 _ACEOF
21708 rm -f conftest.$ac_objext
21709 if { (ac_try="$ac_compile"
21710 case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21713 esac
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715 (eval "$ac_compile") 2>conftest.er1
21716 ac_status=$?
21717 grep -v '^ *+' conftest.er1 >conftest.err
21718 rm -f conftest.er1
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } && {
21722 test -z "$ac_c_werror_flag" ||
21723 test ! -s conftest.err
21724 } && test -s conftest.$ac_objext; then
21725 ac_header_compiler=yes
21726 else
21727 echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21730 ac_header_compiler=no
21733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21735 echo "${ECHO_T}$ac_header_compiler" >&6; }
21737 # Is the header present?
21738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21740 cat >conftest.$ac_ext <<_ACEOF
21741 /* confdefs.h. */
21742 _ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 #include <$ac_header>
21747 _ACEOF
21748 if { (ac_try="$ac_cpp conftest.$ac_ext"
21749 case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21752 esac
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21755 ac_status=$?
21756 grep -v '^ *+' conftest.er1 >conftest.err
21757 rm -f conftest.er1
21758 cat conftest.err >&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); } >/dev/null && {
21761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21762 test ! -s conftest.err
21763 }; then
21764 ac_header_preproc=yes
21765 else
21766 echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21769 ac_header_preproc=no
21772 rm -f conftest.err conftest.$ac_ext
21773 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21774 echo "${ECHO_T}$ac_header_preproc" >&6; }
21776 # So? What about this header?
21777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21778 yes:no: )
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21780 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21783 ac_header_preproc=yes
21785 no:yes:* )
21786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21790 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21791 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21792 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21793 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21796 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21797 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21800 esac
21801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21805 else
21806 eval "$as_ac_Header=\$ac_header_preproc"
21808 ac_res=`eval echo '${'$as_ac_Header'}'`
21809 { echo "$as_me:$LINENO: result: $ac_res" >&5
21810 echo "${ECHO_T}$ac_res" >&6; }
21813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21814 cat >>confdefs.h <<_ACEOF
21815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21816 _ACEOF
21820 done
21824 done
21828 done
21832 for ac_header in com_err.h
21834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 ac_res=`eval echo '${'$as_ac_Header'}'`
21842 { echo "$as_me:$LINENO: result: $ac_res" >&5
21843 echo "${ECHO_T}$ac_res" >&6; }
21844 else
21845 # Is the header compilable?
21846 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21848 cat >conftest.$ac_ext <<_ACEOF
21849 /* confdefs.h. */
21850 _ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21854 $ac_includes_default
21855 #include <$ac_header>
21856 _ACEOF
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21862 esac
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21865 ac_status=$?
21866 grep -v '^ *+' conftest.er1 >conftest.err
21867 rm -f conftest.er1
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest.$ac_objext; then
21874 ac_header_compiler=yes
21875 else
21876 echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21879 ac_header_compiler=no
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21884 echo "${ECHO_T}$ac_header_compiler" >&6; }
21886 # Is the header present?
21887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21889 cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h. */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 #include <$ac_header>
21896 _ACEOF
21897 if { (ac_try="$ac_cpp conftest.$ac_ext"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21901 esac
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21904 ac_status=$?
21905 grep -v '^ *+' conftest.er1 >conftest.err
21906 rm -f conftest.er1
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } >/dev/null && {
21910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21911 test ! -s conftest.err
21912 }; then
21913 ac_header_preproc=yes
21914 else
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ac_header_preproc=no
21921 rm -f conftest.err conftest.$ac_ext
21922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21923 echo "${ECHO_T}$ac_header_preproc" >&6; }
21925 # So? What about this header?
21926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21927 yes:no: )
21928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21932 ac_header_preproc=yes
21934 no:yes:* )
21935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21949 esac
21950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 else
21955 eval "$as_ac_Header=\$ac_header_preproc"
21957 ac_res=`eval echo '${'$as_ac_Header'}'`
21958 { echo "$as_me:$LINENO: result: $ac_res" >&5
21959 echo "${ECHO_T}$ac_res" >&6; }
21962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21963 cat >>confdefs.h <<_ACEOF
21964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21965 _ACEOF
21969 done
21973 # Solaris requires -lintl if you want strerror (which calls dgettext)
21974 # to return localized messages.
21976 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21977 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21978 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21979 echo $ECHO_N "(cached) $ECHO_C" >&6
21980 else
21981 ac_check_lib_save_LIBS=$LIBS
21982 LIBS="-lintl $LIBS"
21983 cat >conftest.$ac_ext <<_ACEOF
21984 /* confdefs.h. */
21985 _ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21990 /* Override any GCC internal prototype to avoid an error.
21991 Use char because int might match the return type of a GCC
21992 builtin and then its argument prototype would still apply. */
21993 #ifdef __cplusplus
21994 extern "C"
21995 #endif
21996 char dgettext ();
21998 main ()
22000 return dgettext ();
22002 return 0;
22004 _ACEOF
22005 rm -f conftest.$ac_objext conftest$ac_exeext
22006 if { (ac_try="$ac_link"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22010 esac
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_link") 2>conftest.er1
22013 ac_status=$?
22014 grep -v '^ *+' conftest.er1 >conftest.err
22015 rm -f conftest.er1
22016 cat conftest.err >&5
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); } && {
22019 test -z "$ac_c_werror_flag" ||
22020 test ! -s conftest.err
22021 } && test -s conftest$ac_exeext &&
22022 $as_test_x conftest$ac_exeext; then
22023 ac_cv_lib_intl_dgettext=yes
22024 else
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 ac_cv_lib_intl_dgettext=no
22031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22032 conftest$ac_exeext conftest.$ac_ext
22033 LIBS=$ac_check_lib_save_LIBS
22035 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22036 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22037 if test $ac_cv_lib_intl_dgettext = yes; then
22038 cat >>confdefs.h <<_ACEOF
22039 #define HAVE_LIBINTL 1
22040 _ACEOF
22042 LIBS="-lintl $LIBS"
22047 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22048 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22049 if test "${emacs_cv_localtime_cache+set}" = set; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22051 else
22052 if test x$ac_cv_func_tzset = xyes; then
22053 if test "$cross_compiling" = yes; then
22054 # If we have tzset, assume the worst when cross-compiling.
22055 emacs_cv_localtime_cache=yes
22056 else
22057 cat >conftest.$ac_ext <<_ACEOF
22058 /* confdefs.h. */
22059 _ACEOF
22060 cat confdefs.h >>conftest.$ac_ext
22061 cat >>conftest.$ac_ext <<_ACEOF
22062 /* end confdefs.h. */
22063 #include <time.h>
22064 extern char **environ;
22065 unset_TZ ()
22067 char **from, **to;
22068 for (to = from = environ; (*to = *from); from++)
22069 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22070 to++;
22072 char TZ_GMT0[] = "TZ=GMT0";
22073 char TZ_PST8[] = "TZ=PST8";
22074 main()
22076 time_t now = time ((time_t *) 0);
22077 int hour_GMT0, hour_unset;
22078 if (putenv (TZ_GMT0) != 0)
22079 exit (1);
22080 hour_GMT0 = localtime (&now)->tm_hour;
22081 unset_TZ ();
22082 hour_unset = localtime (&now)->tm_hour;
22083 if (putenv (TZ_PST8) != 0)
22084 exit (1);
22085 if (localtime (&now)->tm_hour == hour_GMT0)
22086 exit (1);
22087 unset_TZ ();
22088 if (localtime (&now)->tm_hour != hour_unset)
22089 exit (1);
22090 exit (0);
22092 _ACEOF
22093 rm -f conftest$ac_exeext
22094 if { (ac_try="$ac_link"
22095 case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_link") 2>&5
22101 ac_status=$?
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22104 { (case "(($ac_try" in
22105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106 *) ac_try_echo=$ac_try;;
22107 esac
22108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22109 (eval "$ac_try") 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; }; then
22113 emacs_cv_localtime_cache=no
22114 else
22115 echo "$as_me: program exited with status $ac_status" >&5
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22119 ( exit $ac_status )
22120 emacs_cv_localtime_cache=yes
22122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22126 else
22127 # If we lack tzset, report that localtime does not cache TZ,
22128 # since we can't invalidate the cache if we don't have tzset.
22129 emacs_cv_localtime_cache=no
22132 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22133 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22134 if test $emacs_cv_localtime_cache = yes; then
22136 cat >>confdefs.h <<\_ACEOF
22137 #define LOCALTIME_CACHE 1
22138 _ACEOF
22142 if test "x$HAVE_TIMEVAL" = xyes; then
22144 for ac_func in gettimeofday
22146 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22147 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22148 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22149 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
22151 else
22152 cat >conftest.$ac_ext <<_ACEOF
22153 /* confdefs.h. */
22154 _ACEOF
22155 cat confdefs.h >>conftest.$ac_ext
22156 cat >>conftest.$ac_ext <<_ACEOF
22157 /* end confdefs.h. */
22158 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22160 #define $ac_func innocuous_$ac_func
22162 /* System header to define __stub macros and hopefully few prototypes,
22163 which can conflict with char $ac_func (); below.
22164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22165 <limits.h> exists even on freestanding compilers. */
22167 #ifdef __STDC__
22168 # include <limits.h>
22169 #else
22170 # include <assert.h>
22171 #endif
22173 #undef $ac_func
22175 /* Override any GCC internal prototype to avoid an error.
22176 Use char because int might match the return type of a GCC
22177 builtin and then its argument prototype would still apply. */
22178 #ifdef __cplusplus
22179 extern "C"
22180 #endif
22181 char $ac_func ();
22182 /* The GNU C library defines this for functions which it implements
22183 to always fail with ENOSYS. Some functions are actually named
22184 something starting with __ and the normal name is an alias. */
22185 #if defined __stub_$ac_func || defined __stub___$ac_func
22186 choke me
22187 #endif
22190 main ()
22192 return $ac_func ();
22194 return 0;
22196 _ACEOF
22197 rm -f conftest.$ac_objext conftest$ac_exeext
22198 if { (ac_try="$ac_link"
22199 case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22202 esac
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204 (eval "$ac_link") 2>conftest.er1
22205 ac_status=$?
22206 grep -v '^ *+' conftest.er1 >conftest.err
22207 rm -f conftest.er1
22208 cat conftest.err >&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); } && {
22211 test -z "$ac_c_werror_flag" ||
22212 test ! -s conftest.err
22213 } && test -s conftest$ac_exeext &&
22214 $as_test_x conftest$ac_exeext; then
22215 eval "$as_ac_var=yes"
22216 else
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 eval "$as_ac_var=no"
22223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22224 conftest$ac_exeext conftest.$ac_ext
22226 ac_res=`eval echo '${'$as_ac_var'}'`
22227 { echo "$as_me:$LINENO: result: $ac_res" >&5
22228 echo "${ECHO_T}$ac_res" >&6; }
22229 if test `eval echo '${'$as_ac_var'}'` = yes; then
22230 cat >>confdefs.h <<_ACEOF
22231 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22232 _ACEOF
22235 done
22237 if test $ac_cv_func_gettimeofday = yes; then
22238 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22239 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22240 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22241 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 else
22243 cat >conftest.$ac_ext <<_ACEOF
22244 /* confdefs.h. */
22245 _ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22250 #ifdef TIME_WITH_SYS_TIME
22251 #include <sys/time.h>
22252 #include <time.h>
22253 #else
22254 #ifdef HAVE_SYS_TIME_H
22255 #include <sys/time.h>
22256 #else
22257 #include <time.h>
22258 #endif
22259 #endif
22261 main ()
22263 struct timeval time;
22264 gettimeofday (&time, 0);
22266 return 0;
22268 _ACEOF
22269 rm -f conftest.$ac_objext
22270 if { (ac_try="$ac_compile"
22271 case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22274 esac
22275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22276 (eval "$ac_compile") 2>conftest.er1
22277 ac_status=$?
22278 grep -v '^ *+' conftest.er1 >conftest.err
22279 rm -f conftest.er1
22280 cat conftest.err >&5
22281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22282 (exit $ac_status); } && {
22283 test -z "$ac_c_werror_flag" ||
22284 test ! -s conftest.err
22285 } && test -s conftest.$ac_objext; then
22286 emacs_cv_gettimeofday_two_arguments=yes
22287 else
22288 echo "$as_me: failed program was:" >&5
22289 sed 's/^/| /' conftest.$ac_ext >&5
22291 emacs_cv_gettimeofday_two_arguments=no
22294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22296 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22297 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22298 if test $emacs_cv_gettimeofday_two_arguments = no; then
22300 cat >>confdefs.h <<\_ACEOF
22301 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22302 _ACEOF
22308 ok_so_far=yes
22309 { echo "$as_me:$LINENO: checking for socket" >&5
22310 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22311 if test "${ac_cv_func_socket+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22313 else
22314 cat >conftest.$ac_ext <<_ACEOF
22315 /* confdefs.h. */
22316 _ACEOF
22317 cat confdefs.h >>conftest.$ac_ext
22318 cat >>conftest.$ac_ext <<_ACEOF
22319 /* end confdefs.h. */
22320 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22322 #define socket innocuous_socket
22324 /* System header to define __stub macros and hopefully few prototypes,
22325 which can conflict with char socket (); below.
22326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22327 <limits.h> exists even on freestanding compilers. */
22329 #ifdef __STDC__
22330 # include <limits.h>
22331 #else
22332 # include <assert.h>
22333 #endif
22335 #undef socket
22337 /* Override any GCC internal prototype to avoid an error.
22338 Use char because int might match the return type of a GCC
22339 builtin and then its argument prototype would still apply. */
22340 #ifdef __cplusplus
22341 extern "C"
22342 #endif
22343 char socket ();
22344 /* The GNU C library defines this for functions which it implements
22345 to always fail with ENOSYS. Some functions are actually named
22346 something starting with __ and the normal name is an alias. */
22347 #if defined __stub_socket || defined __stub___socket
22348 choke me
22349 #endif
22352 main ()
22354 return socket ();
22356 return 0;
22358 _ACEOF
22359 rm -f conftest.$ac_objext conftest$ac_exeext
22360 if { (ac_try="$ac_link"
22361 case "(($ac_try" in
22362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22363 *) ac_try_echo=$ac_try;;
22364 esac
22365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22366 (eval "$ac_link") 2>conftest.er1
22367 ac_status=$?
22368 grep -v '^ *+' conftest.er1 >conftest.err
22369 rm -f conftest.er1
22370 cat conftest.err >&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } && {
22373 test -z "$ac_c_werror_flag" ||
22374 test ! -s conftest.err
22375 } && test -s conftest$ac_exeext &&
22376 $as_test_x conftest$ac_exeext; then
22377 ac_cv_func_socket=yes
22378 else
22379 echo "$as_me: failed program was:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22382 ac_cv_func_socket=no
22385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22386 conftest$ac_exeext conftest.$ac_ext
22388 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22389 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22390 if test $ac_cv_func_socket = yes; then
22392 else
22393 ok_so_far=no
22396 if test $ok_so_far = yes; then
22397 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22398 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22399 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22400 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22401 echo $ECHO_N "(cached) $ECHO_C" >&6
22403 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22404 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22405 else
22406 # Is the header compilable?
22407 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22408 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22409 cat >conftest.$ac_ext <<_ACEOF
22410 /* confdefs.h. */
22411 _ACEOF
22412 cat confdefs.h >>conftest.$ac_ext
22413 cat >>conftest.$ac_ext <<_ACEOF
22414 /* end confdefs.h. */
22415 $ac_includes_default
22416 #include <netinet/in.h>
22417 _ACEOF
22418 rm -f conftest.$ac_objext
22419 if { (ac_try="$ac_compile"
22420 case "(($ac_try" in
22421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22422 *) ac_try_echo=$ac_try;;
22423 esac
22424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22425 (eval "$ac_compile") 2>conftest.er1
22426 ac_status=$?
22427 grep -v '^ *+' conftest.er1 >conftest.err
22428 rm -f conftest.er1
22429 cat conftest.err >&5
22430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431 (exit $ac_status); } && {
22432 test -z "$ac_c_werror_flag" ||
22433 test ! -s conftest.err
22434 } && test -s conftest.$ac_objext; then
22435 ac_header_compiler=yes
22436 else
22437 echo "$as_me: failed program was:" >&5
22438 sed 's/^/| /' conftest.$ac_ext >&5
22440 ac_header_compiler=no
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22445 echo "${ECHO_T}$ac_header_compiler" >&6; }
22447 # Is the header present?
22448 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22449 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22450 cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h. */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 #include <netinet/in.h>
22457 _ACEOF
22458 if { (ac_try="$ac_cpp conftest.$ac_ext"
22459 case "(($ac_try" in
22460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461 *) ac_try_echo=$ac_try;;
22462 esac
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22465 ac_status=$?
22466 grep -v '^ *+' conftest.er1 >conftest.err
22467 rm -f conftest.er1
22468 cat conftest.err >&5
22469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470 (exit $ac_status); } >/dev/null && {
22471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22472 test ! -s conftest.err
22473 }; then
22474 ac_header_preproc=yes
22475 else
22476 echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22479 ac_header_preproc=no
22482 rm -f conftest.err conftest.$ac_ext
22483 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22484 echo "${ECHO_T}$ac_header_preproc" >&6; }
22486 # So? What about this header?
22487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22488 yes:no: )
22489 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22490 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22491 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22492 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22493 ac_header_preproc=yes
22495 no:yes:* )
22496 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22497 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22498 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22499 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22500 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22501 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22502 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22503 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22504 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22505 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22506 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22507 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22510 esac
22511 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22512 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22513 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
22515 else
22516 ac_cv_header_netinet_in_h=$ac_header_preproc
22518 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22519 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22522 if test $ac_cv_header_netinet_in_h = yes; then
22524 else
22525 ok_so_far=no
22530 if test $ok_so_far = yes; then
22531 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22532 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22533 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22534 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22535 echo $ECHO_N "(cached) $ECHO_C" >&6
22537 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22538 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22539 else
22540 # Is the header compilable?
22541 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22542 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22543 cat >conftest.$ac_ext <<_ACEOF
22544 /* confdefs.h. */
22545 _ACEOF
22546 cat confdefs.h >>conftest.$ac_ext
22547 cat >>conftest.$ac_ext <<_ACEOF
22548 /* end confdefs.h. */
22549 $ac_includes_default
22550 #include <arpa/inet.h>
22551 _ACEOF
22552 rm -f conftest.$ac_objext
22553 if { (ac_try="$ac_compile"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22557 esac
22558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22559 (eval "$ac_compile") 2>conftest.er1
22560 ac_status=$?
22561 grep -v '^ *+' conftest.er1 >conftest.err
22562 rm -f conftest.er1
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } && {
22566 test -z "$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 } && test -s conftest.$ac_objext; then
22569 ac_header_compiler=yes
22570 else
22571 echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22574 ac_header_compiler=no
22577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22579 echo "${ECHO_T}$ac_header_compiler" >&6; }
22581 # Is the header present?
22582 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22583 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22584 cat >conftest.$ac_ext <<_ACEOF
22585 /* confdefs.h. */
22586 _ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22590 #include <arpa/inet.h>
22591 _ACEOF
22592 if { (ac_try="$ac_cpp conftest.$ac_ext"
22593 case "(($ac_try" in
22594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22595 *) ac_try_echo=$ac_try;;
22596 esac
22597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22599 ac_status=$?
22600 grep -v '^ *+' conftest.er1 >conftest.err
22601 rm -f conftest.er1
22602 cat conftest.err >&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } >/dev/null && {
22605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 }; then
22608 ac_header_preproc=yes
22609 else
22610 echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22613 ac_header_preproc=no
22616 rm -f conftest.err conftest.$ac_ext
22617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22618 echo "${ECHO_T}$ac_header_preproc" >&6; }
22620 # So? What about this header?
22621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22622 yes:no: )
22623 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22624 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22625 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22626 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22627 ac_header_preproc=yes
22629 no:yes:* )
22630 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22631 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22632 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22633 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22634 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22635 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22636 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22637 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22638 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22639 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22640 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22641 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22644 esac
22645 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22646 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22647 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22649 else
22650 ac_cv_header_arpa_inet_h=$ac_header_preproc
22652 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22653 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22656 if test $ac_cv_header_arpa_inet_h = yes; then
22658 else
22659 ok_so_far=no
22664 if test $ok_so_far = yes; then
22666 cat >>confdefs.h <<\_ACEOF
22667 #define HAVE_INET_SOCKETS 1
22668 _ACEOF
22673 for ac_header in sys/ioctl.h
22675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22680 echo $ECHO_N "(cached) $ECHO_C" >&6
22682 ac_res=`eval echo '${'$as_ac_Header'}'`
22683 { echo "$as_me:$LINENO: result: $ac_res" >&5
22684 echo "${ECHO_T}$ac_res" >&6; }
22685 else
22686 # Is the header compilable?
22687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22689 cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h. */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22695 $ac_includes_default
22696 #include <$ac_header>
22697 _ACEOF
22698 rm -f conftest.$ac_objext
22699 if { (ac_try="$ac_compile"
22700 case "(($ac_try" in
22701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702 *) ac_try_echo=$ac_try;;
22703 esac
22704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22705 (eval "$ac_compile") 2>conftest.er1
22706 ac_status=$?
22707 grep -v '^ *+' conftest.er1 >conftest.err
22708 rm -f conftest.er1
22709 cat conftest.err >&5
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); } && {
22712 test -z "$ac_c_werror_flag" ||
22713 test ! -s conftest.err
22714 } && test -s conftest.$ac_objext; then
22715 ac_header_compiler=yes
22716 else
22717 echo "$as_me: failed program was:" >&5
22718 sed 's/^/| /' conftest.$ac_ext >&5
22720 ac_header_compiler=no
22723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22725 echo "${ECHO_T}$ac_header_compiler" >&6; }
22727 # Is the header present?
22728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22730 cat >conftest.$ac_ext <<_ACEOF
22731 /* confdefs.h. */
22732 _ACEOF
22733 cat confdefs.h >>conftest.$ac_ext
22734 cat >>conftest.$ac_ext <<_ACEOF
22735 /* end confdefs.h. */
22736 #include <$ac_header>
22737 _ACEOF
22738 if { (ac_try="$ac_cpp conftest.$ac_ext"
22739 case "(($ac_try" in
22740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741 *) ac_try_echo=$ac_try;;
22742 esac
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22745 ac_status=$?
22746 grep -v '^ *+' conftest.er1 >conftest.err
22747 rm -f conftest.er1
22748 cat conftest.err >&5
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } >/dev/null && {
22751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 }; then
22754 ac_header_preproc=yes
22755 else
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 ac_header_preproc=no
22762 rm -f conftest.err conftest.$ac_ext
22763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22764 echo "${ECHO_T}$ac_header_preproc" >&6; }
22766 # So? What about this header?
22767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22768 yes:no: )
22769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22773 ac_header_preproc=yes
22775 no:yes:* )
22776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22790 esac
22791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22794 echo $ECHO_N "(cached) $ECHO_C" >&6
22795 else
22796 eval "$as_ac_Header=\$ac_header_preproc"
22798 ac_res=`eval echo '${'$as_ac_Header'}'`
22799 { echo "$as_me:$LINENO: result: $ac_res" >&5
22800 echo "${ECHO_T}$ac_res" >&6; }
22803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22804 cat >>confdefs.h <<_ACEOF
22805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22806 _ACEOF
22810 done
22813 if test -f /usr/lpp/X11/bin/smt.exp; then
22815 cat >>confdefs.h <<\_ACEOF
22816 #define HAVE_AIX_SMT_EXP 1
22817 _ACEOF
22821 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22822 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22823 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22824 { echo "$as_me:$LINENO: result: yes" >&5
22825 echo "${ECHO_T}yes" >&6; }
22827 cat >>confdefs.h <<\_ACEOF
22828 #define HAVE_DEV_PTMX 1
22829 _ACEOF
22831 else
22832 { echo "$as_me:$LINENO: result: no" >&5
22833 echo "${ECHO_T}no" >&6; }
22836 { echo "$as_me:$LINENO: checking for pid_t" >&5
22837 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22838 if test "${ac_cv_type_pid_t+set}" = set; then
22839 echo $ECHO_N "(cached) $ECHO_C" >&6
22840 else
22841 cat >conftest.$ac_ext <<_ACEOF
22842 /* confdefs.h. */
22843 _ACEOF
22844 cat confdefs.h >>conftest.$ac_ext
22845 cat >>conftest.$ac_ext <<_ACEOF
22846 /* end confdefs.h. */
22847 $ac_includes_default
22848 typedef pid_t ac__type_new_;
22850 main ()
22852 if ((ac__type_new_ *) 0)
22853 return 0;
22854 if (sizeof (ac__type_new_))
22855 return 0;
22857 return 0;
22859 _ACEOF
22860 rm -f conftest.$ac_objext
22861 if { (ac_try="$ac_compile"
22862 case "(($ac_try" in
22863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22864 *) ac_try_echo=$ac_try;;
22865 esac
22866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22867 (eval "$ac_compile") 2>conftest.er1
22868 ac_status=$?
22869 grep -v '^ *+' conftest.er1 >conftest.err
22870 rm -f conftest.er1
22871 cat conftest.err >&5
22872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22873 (exit $ac_status); } && {
22874 test -z "$ac_c_werror_flag" ||
22875 test ! -s conftest.err
22876 } && test -s conftest.$ac_objext; then
22877 ac_cv_type_pid_t=yes
22878 else
22879 echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22882 ac_cv_type_pid_t=no
22885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22887 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22888 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22889 if test $ac_cv_type_pid_t = yes; then
22891 else
22893 cat >>confdefs.h <<_ACEOF
22894 #define pid_t int
22895 _ACEOF
22900 for ac_header in vfork.h
22902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22907 echo $ECHO_N "(cached) $ECHO_C" >&6
22909 ac_res=`eval echo '${'$as_ac_Header'}'`
22910 { echo "$as_me:$LINENO: result: $ac_res" >&5
22911 echo "${ECHO_T}$ac_res" >&6; }
22912 else
22913 # Is the header compilable?
22914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22916 cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h. */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 $ac_includes_default
22923 #include <$ac_header>
22924 _ACEOF
22925 rm -f conftest.$ac_objext
22926 if { (ac_try="$ac_compile"
22927 case "(($ac_try" in
22928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22929 *) ac_try_echo=$ac_try;;
22930 esac
22931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22932 (eval "$ac_compile") 2>conftest.er1
22933 ac_status=$?
22934 grep -v '^ *+' conftest.er1 >conftest.err
22935 rm -f conftest.er1
22936 cat conftest.err >&5
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); } && {
22939 test -z "$ac_c_werror_flag" ||
22940 test ! -s conftest.err
22941 } && test -s conftest.$ac_objext; then
22942 ac_header_compiler=yes
22943 else
22944 echo "$as_me: failed program was:" >&5
22945 sed 's/^/| /' conftest.$ac_ext >&5
22947 ac_header_compiler=no
22950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22952 echo "${ECHO_T}$ac_header_compiler" >&6; }
22954 # Is the header present?
22955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22957 cat >conftest.$ac_ext <<_ACEOF
22958 /* confdefs.h. */
22959 _ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h. */
22963 #include <$ac_header>
22964 _ACEOF
22965 if { (ac_try="$ac_cpp conftest.$ac_ext"
22966 case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22969 esac
22970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22972 ac_status=$?
22973 grep -v '^ *+' conftest.er1 >conftest.err
22974 rm -f conftest.er1
22975 cat conftest.err >&5
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); } >/dev/null && {
22978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22979 test ! -s conftest.err
22980 }; then
22981 ac_header_preproc=yes
22982 else
22983 echo "$as_me: failed program was:" >&5
22984 sed 's/^/| /' conftest.$ac_ext >&5
22986 ac_header_preproc=no
22989 rm -f conftest.err conftest.$ac_ext
22990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22991 echo "${ECHO_T}$ac_header_preproc" >&6; }
22993 # So? What about this header?
22994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22995 yes:no: )
22996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23000 ac_header_preproc=yes
23002 no:yes:* )
23003 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23005 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23006 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23007 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23009 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23010 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23013 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23017 esac
23018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23021 echo $ECHO_N "(cached) $ECHO_C" >&6
23022 else
23023 eval "$as_ac_Header=\$ac_header_preproc"
23025 ac_res=`eval echo '${'$as_ac_Header'}'`
23026 { echo "$as_me:$LINENO: result: $ac_res" >&5
23027 echo "${ECHO_T}$ac_res" >&6; }
23030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23031 cat >>confdefs.h <<_ACEOF
23032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23033 _ACEOF
23037 done
23041 for ac_func in fork vfork
23043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23047 echo $ECHO_N "(cached) $ECHO_C" >&6
23048 else
23049 cat >conftest.$ac_ext <<_ACEOF
23050 /* confdefs.h. */
23051 _ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h. */
23055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23057 #define $ac_func innocuous_$ac_func
23059 /* System header to define __stub macros and hopefully few prototypes,
23060 which can conflict with char $ac_func (); below.
23061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23062 <limits.h> exists even on freestanding compilers. */
23064 #ifdef __STDC__
23065 # include <limits.h>
23066 #else
23067 # include <assert.h>
23068 #endif
23070 #undef $ac_func
23072 /* Override any GCC internal prototype to avoid an error.
23073 Use char because int might match the return type of a GCC
23074 builtin and then its argument prototype would still apply. */
23075 #ifdef __cplusplus
23076 extern "C"
23077 #endif
23078 char $ac_func ();
23079 /* The GNU C library defines this for functions which it implements
23080 to always fail with ENOSYS. Some functions are actually named
23081 something starting with __ and the normal name is an alias. */
23082 #if defined __stub_$ac_func || defined __stub___$ac_func
23083 choke me
23084 #endif
23087 main ()
23089 return $ac_func ();
23091 return 0;
23093 _ACEOF
23094 rm -f conftest.$ac_objext conftest$ac_exeext
23095 if { (ac_try="$ac_link"
23096 case "(($ac_try" in
23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23099 esac
23100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23101 (eval "$ac_link") 2>conftest.er1
23102 ac_status=$?
23103 grep -v '^ *+' conftest.er1 >conftest.err
23104 rm -f conftest.er1
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } && {
23108 test -z "$ac_c_werror_flag" ||
23109 test ! -s conftest.err
23110 } && test -s conftest$ac_exeext &&
23111 $as_test_x conftest$ac_exeext; then
23112 eval "$as_ac_var=yes"
23113 else
23114 echo "$as_me: failed program was:" >&5
23115 sed 's/^/| /' conftest.$ac_ext >&5
23117 eval "$as_ac_var=no"
23120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23121 conftest$ac_exeext conftest.$ac_ext
23123 ac_res=`eval echo '${'$as_ac_var'}'`
23124 { echo "$as_me:$LINENO: result: $ac_res" >&5
23125 echo "${ECHO_T}$ac_res" >&6; }
23126 if test `eval echo '${'$as_ac_var'}'` = yes; then
23127 cat >>confdefs.h <<_ACEOF
23128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23129 _ACEOF
23132 done
23134 if test "x$ac_cv_func_fork" = xyes; then
23135 { echo "$as_me:$LINENO: checking for working fork" >&5
23136 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23137 if test "${ac_cv_func_fork_works+set}" = set; then
23138 echo $ECHO_N "(cached) $ECHO_C" >&6
23139 else
23140 if test "$cross_compiling" = yes; then
23141 ac_cv_func_fork_works=cross
23142 else
23143 cat >conftest.$ac_ext <<_ACEOF
23144 /* confdefs.h. */
23145 _ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23149 $ac_includes_default
23151 main ()
23154 /* By Ruediger Kuhlmann. */
23155 return fork () < 0;
23158 return 0;
23160 _ACEOF
23161 rm -f conftest$ac_exeext
23162 if { (ac_try="$ac_link"
23163 case "(($ac_try" in
23164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165 *) ac_try_echo=$ac_try;;
23166 esac
23167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23168 (eval "$ac_link") 2>&5
23169 ac_status=$?
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23172 { (case "(($ac_try" in
23173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23174 *) ac_try_echo=$ac_try;;
23175 esac
23176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23177 (eval "$ac_try") 2>&5
23178 ac_status=$?
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); }; }; then
23181 ac_cv_func_fork_works=yes
23182 else
23183 echo "$as_me: program exited with status $ac_status" >&5
23184 echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23187 ( exit $ac_status )
23188 ac_cv_func_fork_works=no
23190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23195 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23196 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23198 else
23199 ac_cv_func_fork_works=$ac_cv_func_fork
23201 if test "x$ac_cv_func_fork_works" = xcross; then
23202 case $host in
23203 *-*-amigaos* | *-*-msdosdjgpp*)
23204 # Override, as these systems have only a dummy fork() stub
23205 ac_cv_func_fork_works=no
23208 ac_cv_func_fork_works=yes
23210 esac
23211 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23212 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23214 ac_cv_func_vfork_works=$ac_cv_func_vfork
23215 if test "x$ac_cv_func_vfork" = xyes; then
23216 { echo "$as_me:$LINENO: checking for working vfork" >&5
23217 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23218 if test "${ac_cv_func_vfork_works+set}" = set; then
23219 echo $ECHO_N "(cached) $ECHO_C" >&6
23220 else
23221 if test "$cross_compiling" = yes; then
23222 ac_cv_func_vfork_works=cross
23223 else
23224 cat >conftest.$ac_ext <<_ACEOF
23225 /* confdefs.h. */
23226 _ACEOF
23227 cat confdefs.h >>conftest.$ac_ext
23228 cat >>conftest.$ac_ext <<_ACEOF
23229 /* end confdefs.h. */
23230 /* Thanks to Paul Eggert for this test. */
23231 $ac_includes_default
23232 #include <sys/wait.h>
23233 #ifdef HAVE_VFORK_H
23234 # include <vfork.h>
23235 #endif
23236 /* On some sparc systems, changes by the child to local and incoming
23237 argument registers are propagated back to the parent. The compiler
23238 is told about this with #include <vfork.h>, but some compilers
23239 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23240 static variable whose address is put into a register that is
23241 clobbered by the vfork. */
23242 static void
23243 #ifdef __cplusplus
23244 sparc_address_test (int arg)
23245 # else
23246 sparc_address_test (arg) int arg;
23247 #endif
23249 static pid_t child;
23250 if (!child) {
23251 child = vfork ();
23252 if (child < 0) {
23253 perror ("vfork");
23254 _exit(2);
23256 if (!child) {
23257 arg = getpid();
23258 write(-1, "", 0);
23259 _exit (arg);
23265 main ()
23267 pid_t parent = getpid ();
23268 pid_t child;
23270 sparc_address_test (0);
23272 child = vfork ();
23274 if (child == 0) {
23275 /* Here is another test for sparc vfork register problems. This
23276 test uses lots of local variables, at least as many local
23277 variables as main has allocated so far including compiler
23278 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23279 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23280 reuse the register of parent for one of the local variables,
23281 since it will think that parent can't possibly be used any more
23282 in this routine. Assigning to the local variable will thus
23283 munge parent in the parent process. */
23284 pid_t
23285 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23286 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23287 /* Convince the compiler that p..p7 are live; otherwise, it might
23288 use the same hardware register for all 8 local variables. */
23289 if (p != p1 || p != p2 || p != p3 || p != p4
23290 || p != p5 || p != p6 || p != p7)
23291 _exit(1);
23293 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23294 from child file descriptors. If the child closes a descriptor
23295 before it execs or exits, this munges the parent's descriptor
23296 as well. Test for this by closing stdout in the child. */
23297 _exit(close(fileno(stdout)) != 0);
23298 } else {
23299 int status;
23300 struct stat st;
23302 while (wait(&status) != child)
23304 return (
23305 /* Was there some problem with vforking? */
23306 child < 0
23308 /* Did the child fail? (This shouldn't happen.) */
23309 || status
23311 /* Did the vfork/compiler bug occur? */
23312 || parent != getpid()
23314 /* Did the file descriptor bug occur? */
23315 || fstat(fileno(stdout), &st) != 0
23319 _ACEOF
23320 rm -f conftest$ac_exeext
23321 if { (ac_try="$ac_link"
23322 case "(($ac_try" in
23323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23325 esac
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327 (eval "$ac_link") 2>&5
23328 ac_status=$?
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23331 { (case "(($ac_try" in
23332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23333 *) ac_try_echo=$ac_try;;
23334 esac
23335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23336 (eval "$ac_try") 2>&5
23337 ac_status=$?
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; }; then
23340 ac_cv_func_vfork_works=yes
23341 else
23342 echo "$as_me: program exited with status $ac_status" >&5
23343 echo "$as_me: failed program was:" >&5
23344 sed 's/^/| /' conftest.$ac_ext >&5
23346 ( exit $ac_status )
23347 ac_cv_func_vfork_works=no
23349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23354 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23355 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23358 if test "x$ac_cv_func_fork_works" = xcross; then
23359 ac_cv_func_vfork_works=$ac_cv_func_vfork
23360 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23361 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23364 if test "x$ac_cv_func_vfork_works" = xyes; then
23366 cat >>confdefs.h <<\_ACEOF
23367 #define HAVE_WORKING_VFORK 1
23368 _ACEOF
23370 else
23372 cat >>confdefs.h <<\_ACEOF
23373 #define vfork fork
23374 _ACEOF
23377 if test "x$ac_cv_func_fork_works" = xyes; then
23379 cat >>confdefs.h <<\_ACEOF
23380 #define HAVE_WORKING_FORK 1
23381 _ACEOF
23386 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23387 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23388 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23389 echo $ECHO_N "(cached) $ECHO_C" >&6
23390 else
23391 cat >conftest.$ac_ext <<_ACEOF
23392 /* confdefs.h. */
23393 _ACEOF
23394 cat confdefs.h >>conftest.$ac_ext
23395 cat >>conftest.$ac_ext <<_ACEOF
23396 /* end confdefs.h. */
23397 #include <langinfo.h>
23399 main ()
23401 char* cs = nl_langinfo(CODESET);
23403 return 0;
23405 _ACEOF
23406 rm -f conftest.$ac_objext conftest$ac_exeext
23407 if { (ac_try="$ac_link"
23408 case "(($ac_try" in
23409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410 *) ac_try_echo=$ac_try;;
23411 esac
23412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23413 (eval "$ac_link") 2>conftest.er1
23414 ac_status=$?
23415 grep -v '^ *+' conftest.er1 >conftest.err
23416 rm -f conftest.er1
23417 cat conftest.err >&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } && {
23420 test -z "$ac_c_werror_flag" ||
23421 test ! -s conftest.err
23422 } && test -s conftest$ac_exeext &&
23423 $as_test_x conftest$ac_exeext; then
23424 emacs_cv_langinfo_codeset=yes
23425 else
23426 echo "$as_me: failed program was:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23429 emacs_cv_langinfo_codeset=no
23432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23433 conftest$ac_exeext conftest.$ac_ext
23436 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23437 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23438 if test $emacs_cv_langinfo_codeset = yes; then
23440 cat >>confdefs.h <<\_ACEOF
23441 #define HAVE_LANGINFO_CODESET 1
23442 _ACEOF
23446 { echo "$as_me:$LINENO: checking for size_t" >&5
23447 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23448 if test "${ac_cv_type_size_t+set}" = set; then
23449 echo $ECHO_N "(cached) $ECHO_C" >&6
23450 else
23451 cat >conftest.$ac_ext <<_ACEOF
23452 /* confdefs.h. */
23453 _ACEOF
23454 cat confdefs.h >>conftest.$ac_ext
23455 cat >>conftest.$ac_ext <<_ACEOF
23456 /* end confdefs.h. */
23457 $ac_includes_default
23458 typedef size_t ac__type_new_;
23460 main ()
23462 if ((ac__type_new_ *) 0)
23463 return 0;
23464 if (sizeof (ac__type_new_))
23465 return 0;
23467 return 0;
23469 _ACEOF
23470 rm -f conftest.$ac_objext
23471 if { (ac_try="$ac_compile"
23472 case "(($ac_try" in
23473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23474 *) ac_try_echo=$ac_try;;
23475 esac
23476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23477 (eval "$ac_compile") 2>conftest.er1
23478 ac_status=$?
23479 grep -v '^ *+' conftest.er1 >conftest.err
23480 rm -f conftest.er1
23481 cat conftest.err >&5
23482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483 (exit $ac_status); } && {
23484 test -z "$ac_c_werror_flag" ||
23485 test ! -s conftest.err
23486 } && test -s conftest.$ac_objext; then
23487 ac_cv_type_size_t=yes
23488 else
23489 echo "$as_me: failed program was:" >&5
23490 sed 's/^/| /' conftest.$ac_ext >&5
23492 ac_cv_type_size_t=no
23495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23497 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23498 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23499 if test $ac_cv_type_size_t = yes; then
23501 cat >>confdefs.h <<_ACEOF
23502 #define HAVE_SIZE_T 1
23503 _ACEOF
23509 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23510 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23511 if test "${ac_cv_type_mbstate_t+set}" = set; then
23512 echo $ECHO_N "(cached) $ECHO_C" >&6
23513 else
23514 cat >conftest.$ac_ext <<_ACEOF
23515 /* confdefs.h. */
23516 _ACEOF
23517 cat confdefs.h >>conftest.$ac_ext
23518 cat >>conftest.$ac_ext <<_ACEOF
23519 /* end confdefs.h. */
23520 $ac_includes_default
23521 # include <wchar.h>
23523 main ()
23525 mbstate_t x; return sizeof x;
23527 return 0;
23529 _ACEOF
23530 rm -f conftest.$ac_objext
23531 if { (ac_try="$ac_compile"
23532 case "(($ac_try" in
23533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23534 *) ac_try_echo=$ac_try;;
23535 esac
23536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23537 (eval "$ac_compile") 2>conftest.er1
23538 ac_status=$?
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && {
23544 test -z "$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23546 } && test -s conftest.$ac_objext; then
23547 ac_cv_type_mbstate_t=yes
23548 else
23549 echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23552 ac_cv_type_mbstate_t=no
23555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23557 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23558 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23559 if test $ac_cv_type_mbstate_t = yes; then
23561 cat >>confdefs.h <<\_ACEOF
23562 #define HAVE_MBSTATE_T 1
23563 _ACEOF
23565 else
23567 cat >>confdefs.h <<\_ACEOF
23568 #define mbstate_t int
23569 _ACEOF
23573 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23574 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23575 if test "${emacs_cv_c_restrict+set}" = set; then
23576 echo $ECHO_N "(cached) $ECHO_C" >&6
23577 else
23578 cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h. */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h. */
23584 void fred (int *restrict x);
23586 main ()
23590 return 0;
23592 _ACEOF
23593 rm -f conftest.$ac_objext
23594 if { (ac_try="$ac_compile"
23595 case "(($ac_try" in
23596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597 *) ac_try_echo=$ac_try;;
23598 esac
23599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23600 (eval "$ac_compile") 2>conftest.er1
23601 ac_status=$?
23602 grep -v '^ *+' conftest.er1 >conftest.err
23603 rm -f conftest.er1
23604 cat conftest.err >&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } && {
23607 test -z "$ac_c_werror_flag" ||
23608 test ! -s conftest.err
23609 } && test -s conftest.$ac_objext; then
23610 emacs_cv_c_restrict=yes
23611 else
23612 echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23615 cat >conftest.$ac_ext <<_ACEOF
23616 /* confdefs.h. */
23617 _ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 void fred (int *__restrict x);
23623 main ()
23627 return 0;
23629 _ACEOF
23630 rm -f conftest.$ac_objext
23631 if { (ac_try="$ac_compile"
23632 case "(($ac_try" in
23633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23634 *) ac_try_echo=$ac_try;;
23635 esac
23636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23637 (eval "$ac_compile") 2>conftest.er1
23638 ac_status=$?
23639 grep -v '^ *+' conftest.er1 >conftest.err
23640 rm -f conftest.er1
23641 cat conftest.err >&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); } && {
23644 test -z "$ac_c_werror_flag" ||
23645 test ! -s conftest.err
23646 } && test -s conftest.$ac_objext; then
23647 emacs_cv_c_restrict=__restrict
23648 else
23649 echo "$as_me: failed program was:" >&5
23650 sed 's/^/| /' conftest.$ac_ext >&5
23652 emacs_cv_c_restrict=no
23655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23660 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23661 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23662 case "$emacs_cv_c_restrict" in
23663 yes) emacs_restrict=restrict;;
23664 no) emacs_restrict="";;
23665 *) emacs_restrict="$emacs_cv_c_restrict";;
23666 esac
23667 if test "$emacs_restrict" != __restrict; then
23669 cat >>confdefs.h <<_ACEOF
23670 #define __restrict $emacs_restrict
23671 _ACEOF
23675 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23676 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23677 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23678 echo $ECHO_N "(cached) $ECHO_C" >&6
23679 else
23680 cat >conftest.$ac_ext <<_ACEOF
23681 /* confdefs.h. */
23682 _ACEOF
23683 cat confdefs.h >>conftest.$ac_ext
23684 cat >>conftest.$ac_ext <<_ACEOF
23685 /* end confdefs.h. */
23686 void fred (int x[__restrict]);
23688 main ()
23692 return 0;
23694 _ACEOF
23695 rm -f conftest.$ac_objext
23696 if { (ac_try="$ac_compile"
23697 case "(($ac_try" in
23698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699 *) ac_try_echo=$ac_try;;
23700 esac
23701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23702 (eval "$ac_compile") 2>conftest.er1
23703 ac_status=$?
23704 grep -v '^ *+' conftest.er1 >conftest.err
23705 rm -f conftest.er1
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } && {
23709 test -z "$ac_c_werror_flag" ||
23710 test ! -s conftest.err
23711 } && test -s conftest.$ac_objext; then
23712 emacs_cv_c_restrict_arr=yes
23713 else
23714 echo "$as_me: failed program was:" >&5
23715 sed 's/^/| /' conftest.$ac_ext >&5
23717 emacs_cv_c_restrict_arr=no
23720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23722 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23723 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23724 if test "$emacs_cv_c_restrict_arr" = yes; then
23726 cat >>confdefs.h <<\_ACEOF
23727 #define __restrict_arr __restrict
23728 _ACEOF
23734 # Set up the CFLAGS for real compilation, so we can substitute it.
23735 CFLAGS="$REAL_CFLAGS"
23736 CPPFLAGS="$REAL_CPPFLAGS"
23738 #### Find out which version of Emacs this is.
23739 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23740 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23741 if test x"${version}" = x; then
23742 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23743 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23744 { (exit 1); exit 1; }; }
23747 ### Specify what sort of things we'll be editing into Makefile and config.h.
23748 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23784 cat >>confdefs.h <<_ACEOF
23785 #define EMACS_CONFIGURATION "${canonical}"
23786 _ACEOF
23789 cat >>confdefs.h <<_ACEOF
23790 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23791 _ACEOF
23794 cat >>confdefs.h <<_ACEOF
23795 #define config_machfile "${machfile}"
23796 _ACEOF
23799 cat >>confdefs.h <<_ACEOF
23800 #define config_opsysfile "${opsysfile}"
23801 _ACEOF
23804 cat >>confdefs.h <<_ACEOF
23805 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23806 _ACEOF
23809 cat >>confdefs.h <<_ACEOF
23810 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23811 _ACEOF
23814 cat >>confdefs.h <<_ACEOF
23815 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23816 _ACEOF
23819 cat >>confdefs.h <<_ACEOF
23820 #define UNEXEC_SRC ${UNEXEC_SRC}
23821 _ACEOF
23824 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23826 cat >>confdefs.h <<\_ACEOF
23827 #define HAVE_X_WINDOWS 1
23828 _ACEOF
23831 if test "${USE_X_TOOLKIT}" != "none" ; then
23833 cat >>confdefs.h <<\_ACEOF
23834 #define USE_X_TOOLKIT 1
23835 _ACEOF
23838 if test "${HAVE_X11}" = "yes" ; then
23840 cat >>confdefs.h <<\_ACEOF
23841 #define HAVE_X11 1
23842 _ACEOF
23845 if test "${HAVE_XFREE386}" = "yes" ; then
23847 cat >>confdefs.h <<\_ACEOF
23848 #define HAVE_XFREE386 1
23849 _ACEOF
23852 if test "${HAVE_MENUS}" = "yes" ; then
23854 cat >>confdefs.h <<\_ACEOF
23855 #define HAVE_MENUS 1
23856 _ACEOF
23859 if test "${GNU_MALLOC}" = "yes" ; then
23861 cat >>confdefs.h <<\_ACEOF
23862 #define GNU_MALLOC 1
23863 _ACEOF
23866 if test "${REL_ALLOC}" = "yes" ; then
23868 cat >>confdefs.h <<\_ACEOF
23869 #define REL_ALLOC 1
23870 _ACEOF
23879 #### Report on what we decided to do.
23880 #### Report GTK as a toolkit, even if it doesn't use Xt.
23881 #### It makes printing result more understandable as using GTK sets
23882 #### toolkit_scroll_bars to yes by default.
23883 if test "${HAVE_GTK}" = "yes"; then
23884 USE_X_TOOLKIT=GTK
23887 echo "
23888 Configured for \`${canonical}'.
23890 Where should the build process find the source code? ${srcdir}
23891 What operating system and machine description files should Emacs use?
23892 \`${opsysfile}' and \`${machfile}'
23893 What compiler should emacs be built with? ${CC} ${CFLAGS}
23894 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23895 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23896 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23897 What window system should Emacs use? ${window_system}
23898 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23900 if test -n "${x_includes}"; then
23901 echo " Where do we find X Windows header files? ${x_includes}"
23902 else
23903 echo " Where do we find X Windows header files? Standard dirs"
23905 if test -n "${x_libraries}"; then
23906 echo " Where do we find X Windows libraries? ${x_libraries}"
23907 else
23908 echo " Where do we find X Windows libraries? Standard dirs"
23911 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23912 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23913 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23914 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23915 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23916 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23917 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23918 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23919 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23920 echo
23922 if test $USE_XASSERTS = yes; then
23923 echo " Compiling with asserts turned on."
23924 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23925 echo
23928 if test "$USE_X_TOOLKIT" = GTK; then
23929 case "$canonical" in
23930 *cygwin*)
23931 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23932 will probably get a crash on startup. If this happens, please use another
23933 toolkit for Emacs. See etc/PROBLEMS for more information."
23935 esac
23939 if test "$HAVE_CARBON" = "yes"; then
23940 echo
23941 echo "Warning: The Mac Carbon port is currently unsupported and has
23942 known problems. It is not recommended for use by non-developers.
23943 Read the emacs-devel archives for more information."
23944 echo
23947 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23948 echo "D-Bus integration has been tested for GNU/Linux only."
23949 echo
23953 # Remove any trailing slashes in these variables.
23954 test "${prefix}" != NONE &&
23955 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23956 test "${exec_prefix}" != NONE &&
23957 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23959 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23960 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23961 ## from Makefile.c can correctly provide the arg `-traditional' to the
23962 ## C preprocessor.
23964 cat >conftest.$ac_ext <<_ACEOF
23965 /* confdefs.h. */
23966 _ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h. */
23970 yes..yes
23971 _ACEOF
23972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23973 $EGREP "yes..yes" >/dev/null 2>&1; then
23974 CPP_NEED_TRADITIONAL=no
23975 else
23976 CPP_NEED_TRADITIONAL=yes
23978 rm -f conftest*
23981 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
23983 ac_config_commands="$ac_config_commands default"
23985 cat >confcache <<\_ACEOF
23986 # This file is a shell script that caches the results of configure
23987 # tests run on this system so they can be shared between configure
23988 # scripts and configure runs, see configure's option --config-cache.
23989 # It is not useful on other systems. If it contains results you don't
23990 # want to keep, you may remove or edit it.
23992 # config.status only pays attention to the cache file if you give it
23993 # the --recheck option to rerun configure.
23995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23997 # following values.
23999 _ACEOF
24001 # The following way of writing the cache mishandles newlines in values,
24002 # but we know of no workaround that is simple, portable, and efficient.
24003 # So, we kill variables containing newlines.
24004 # Ultrix sh set writes to stderr and can't be redirected directly,
24005 # and sets the high bit in the cache file unless we assign to the vars.
24007 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24008 eval ac_val=\$$ac_var
24009 case $ac_val in #(
24010 *${as_nl}*)
24011 case $ac_var in #(
24012 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24013 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24014 esac
24015 case $ac_var in #(
24016 _ | IFS | as_nl) ;; #(
24017 *) $as_unset $ac_var ;;
24018 esac ;;
24019 esac
24020 done
24022 (set) 2>&1 |
24023 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24024 *${as_nl}ac_space=\ *)
24025 # `set' does not quote correctly, so add quotes (double-quote
24026 # substitution turns \\\\ into \\, and sed turns \\ into \).
24027 sed -n \
24028 "s/'/'\\\\''/g;
24029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24030 ;; #(
24032 # `set' quotes correctly as required by POSIX, so do not add quotes.
24033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24035 esac |
24036 sort
24038 sed '
24039 /^ac_cv_env_/b end
24040 t clear
24041 :clear
24042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24043 t end
24044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24045 :end' >>confcache
24046 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24047 if test -w "$cache_file"; then
24048 test "x$cache_file" != "x/dev/null" &&
24049 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24050 echo "$as_me: updating cache $cache_file" >&6;}
24051 cat confcache >$cache_file
24052 else
24053 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24054 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24057 rm -f confcache
24059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24060 # Let make expand exec_prefix.
24061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24063 DEFS=-DHAVE_CONFIG_H
24065 ac_libobjs=
24066 ac_ltlibobjs=
24067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24068 # 1. Remove the extension, and $U if already installed.
24069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24070 ac_i=`echo "$ac_i" | sed "$ac_script"`
24071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24072 # will be set to the directory where LIBOBJS objects are built.
24073 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24074 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24075 done
24076 LIBOBJS=$ac_libobjs
24078 LTLIBOBJS=$ac_ltlibobjs
24082 : ${CONFIG_STATUS=./config.status}
24083 ac_clean_files_save=$ac_clean_files
24084 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24085 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24086 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24087 cat >$CONFIG_STATUS <<_ACEOF
24088 #! $SHELL
24089 # Generated by $as_me.
24090 # Run this file to recreate the current configuration.
24091 # Compiler output produced by configure, useful for debugging
24092 # configure, is in config.log if it exists.
24094 debug=false
24095 ac_cs_recheck=false
24096 ac_cs_silent=false
24097 SHELL=\${CONFIG_SHELL-$SHELL}
24098 _ACEOF
24100 cat >>$CONFIG_STATUS <<\_ACEOF
24101 ## --------------------- ##
24102 ## M4sh Initialization. ##
24103 ## --------------------- ##
24105 # Be more Bourne compatible
24106 DUALCASE=1; export DUALCASE # for MKS sh
24107 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24108 emulate sh
24109 NULLCMD=:
24110 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24111 # is contrary to our usage. Disable this feature.
24112 alias -g '${1+"$@"}'='"$@"'
24113 setopt NO_GLOB_SUBST
24114 else
24115 case `(set -o) 2>/dev/null` in
24116 *posix*) set -o posix ;;
24117 esac
24124 # PATH needs CR
24125 # Avoid depending upon Character Ranges.
24126 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24127 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24128 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24129 as_cr_digits='0123456789'
24130 as_cr_alnum=$as_cr_Letters$as_cr_digits
24132 # The user is always right.
24133 if test "${PATH_SEPARATOR+set}" != set; then
24134 echo "#! /bin/sh" >conf$$.sh
24135 echo "exit 0" >>conf$$.sh
24136 chmod +x conf$$.sh
24137 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24138 PATH_SEPARATOR=';'
24139 else
24140 PATH_SEPARATOR=:
24142 rm -f conf$$.sh
24145 # Support unset when possible.
24146 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24147 as_unset=unset
24148 else
24149 as_unset=false
24153 # IFS
24154 # We need space, tab and new line, in precisely that order. Quoting is
24155 # there to prevent editors from complaining about space-tab.
24156 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24157 # splitting by setting IFS to empty value.)
24158 as_nl='
24160 IFS=" "" $as_nl"
24162 # Find who we are. Look in the path if we contain no directory separator.
24163 case $0 in
24164 *[\\/]* ) as_myself=$0 ;;
24165 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24166 for as_dir in $PATH
24168 IFS=$as_save_IFS
24169 test -z "$as_dir" && as_dir=.
24170 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24171 done
24172 IFS=$as_save_IFS
24175 esac
24176 # We did not find ourselves, most probably we were run as `sh COMMAND'
24177 # in which case we are not to be found in the path.
24178 if test "x$as_myself" = x; then
24179 as_myself=$0
24181 if test ! -f "$as_myself"; then
24182 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24183 { (exit 1); exit 1; }
24186 # Work around bugs in pre-3.0 UWIN ksh.
24187 for as_var in ENV MAIL MAILPATH
24188 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24189 done
24190 PS1='$ '
24191 PS2='> '
24192 PS4='+ '
24194 # NLS nuisances.
24195 for as_var in \
24196 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24197 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24198 LC_TELEPHONE LC_TIME
24200 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24201 eval $as_var=C; export $as_var
24202 else
24203 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24205 done
24207 # Required to use basename.
24208 if expr a : '\(a\)' >/dev/null 2>&1 &&
24209 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24210 as_expr=expr
24211 else
24212 as_expr=false
24215 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24216 as_basename=basename
24217 else
24218 as_basename=false
24222 # Name of the executable.
24223 as_me=`$as_basename -- "$0" ||
24224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24225 X"$0" : 'X\(//\)$' \| \
24226 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24227 echo X/"$0" |
24228 sed '/^.*\/\([^/][^/]*\)\/*$/{
24229 s//\1/
24232 /^X\/\(\/\/\)$/{
24233 s//\1/
24236 /^X\/\(\/\).*/{
24237 s//\1/
24240 s/.*/./; q'`
24242 # CDPATH.
24243 $as_unset CDPATH
24247 as_lineno_1=$LINENO
24248 as_lineno_2=$LINENO
24249 test "x$as_lineno_1" != "x$as_lineno_2" &&
24250 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24252 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24253 # uniformly replaced by the line number. The first 'sed' inserts a
24254 # line-number line after each line using $LINENO; the second 'sed'
24255 # does the real work. The second script uses 'N' to pair each
24256 # line-number line with the line containing $LINENO, and appends
24257 # trailing '-' during substitution so that $LINENO is not a special
24258 # case at line end.
24259 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24260 # scripts with optimization help from Paolo Bonzini. Blame Lee
24261 # E. McMahon (1931-1989) for sed's syntax. :-)
24262 sed -n '
24264 /[$]LINENO/=
24265 ' <$as_myself |
24266 sed '
24267 s/[$]LINENO.*/&-/
24268 t lineno
24270 :lineno
24272 :loop
24273 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24274 t loop
24275 s/-\n.*//
24276 ' >$as_me.lineno &&
24277 chmod +x "$as_me.lineno" ||
24278 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24279 { (exit 1); exit 1; }; }
24281 # Don't try to exec as it changes $[0], causing all sort of problems
24282 # (the dirname of $[0] is not the place where we might find the
24283 # original and so on. Autoconf is especially sensitive to this).
24284 . "./$as_me.lineno"
24285 # Exit status is that of the last command.
24286 exit
24290 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24291 as_dirname=dirname
24292 else
24293 as_dirname=false
24296 ECHO_C= ECHO_N= ECHO_T=
24297 case `echo -n x` in
24298 -n*)
24299 case `echo 'x\c'` in
24300 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24301 *) ECHO_C='\c';;
24302 esac;;
24304 ECHO_N='-n';;
24305 esac
24307 if expr a : '\(a\)' >/dev/null 2>&1 &&
24308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24309 as_expr=expr
24310 else
24311 as_expr=false
24314 rm -f conf$$ conf$$.exe conf$$.file
24315 if test -d conf$$.dir; then
24316 rm -f conf$$.dir/conf$$.file
24317 else
24318 rm -f conf$$.dir
24319 mkdir conf$$.dir
24321 echo >conf$$.file
24322 if ln -s conf$$.file conf$$ 2>/dev/null; then
24323 as_ln_s='ln -s'
24324 # ... but there are two gotchas:
24325 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24326 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24327 # In both cases, we have to default to `cp -p'.
24328 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24329 as_ln_s='cp -p'
24330 elif ln conf$$.file conf$$ 2>/dev/null; then
24331 as_ln_s=ln
24332 else
24333 as_ln_s='cp -p'
24335 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24336 rmdir conf$$.dir 2>/dev/null
24338 if mkdir -p . 2>/dev/null; then
24339 as_mkdir_p=:
24340 else
24341 test -d ./-p && rmdir ./-p
24342 as_mkdir_p=false
24345 if test -x / >/dev/null 2>&1; then
24346 as_test_x='test -x'
24347 else
24348 if ls -dL / >/dev/null 2>&1; then
24349 as_ls_L_option=L
24350 else
24351 as_ls_L_option=
24353 as_test_x='
24354 eval sh -c '\''
24355 if test -d "$1"; then
24356 test -d "$1/.";
24357 else
24358 case $1 in
24359 -*)set "./$1";;
24360 esac;
24361 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24362 ???[sx]*):;;*)false;;esac;fi
24363 '\'' sh
24366 as_executable_p=$as_test_x
24368 # Sed expression to map a string onto a valid CPP name.
24369 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24371 # Sed expression to map a string onto a valid variable name.
24372 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24375 exec 6>&1
24377 # Save the log message, to keep $[0] and so on meaningful, and to
24378 # report actual input values of CONFIG_FILES etc. instead of their
24379 # values after options handling.
24380 ac_log="
24381 This file was extended by emacs $as_me 23.0.50, which was
24382 generated by GNU Autoconf 2.61. Invocation command line was
24384 CONFIG_FILES = $CONFIG_FILES
24385 CONFIG_HEADERS = $CONFIG_HEADERS
24386 CONFIG_LINKS = $CONFIG_LINKS
24387 CONFIG_COMMANDS = $CONFIG_COMMANDS
24388 $ $0 $@
24390 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24393 _ACEOF
24395 cat >>$CONFIG_STATUS <<_ACEOF
24396 # Files that config.status was made for.
24397 config_files="$ac_config_files"
24398 config_headers="$ac_config_headers"
24399 config_commands="$ac_config_commands"
24401 _ACEOF
24403 cat >>$CONFIG_STATUS <<\_ACEOF
24404 ac_cs_usage="\
24405 \`$as_me' instantiates files from templates according to the
24406 current configuration.
24408 Usage: $0 [OPTIONS] [FILE]...
24410 -h, --help print this help, then exit
24411 -V, --version print version number and configuration settings, then exit
24412 -q, --quiet do not print progress messages
24413 -d, --debug don't remove temporary files
24414 --recheck update $as_me by reconfiguring in the same conditions
24415 --file=FILE[:TEMPLATE]
24416 instantiate the configuration file FILE
24417 --header=FILE[:TEMPLATE]
24418 instantiate the configuration header FILE
24420 Configuration files:
24421 $config_files
24423 Configuration headers:
24424 $config_headers
24426 Configuration commands:
24427 $config_commands
24429 Report bugs to <bug-autoconf@gnu.org>."
24431 _ACEOF
24432 cat >>$CONFIG_STATUS <<_ACEOF
24433 ac_cs_version="\\
24434 emacs config.status 23.0.50
24435 configured by $0, generated by GNU Autoconf 2.61,
24436 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24438 Copyright (C) 2006 Free Software Foundation, Inc.
24439 This config.status script is free software; the Free Software Foundation
24440 gives unlimited permission to copy, distribute and modify it."
24442 ac_pwd='$ac_pwd'
24443 srcdir='$srcdir'
24444 INSTALL='$INSTALL'
24445 _ACEOF
24447 cat >>$CONFIG_STATUS <<\_ACEOF
24448 # If no file are specified by the user, then we need to provide default
24449 # value. By we need to know if files were specified by the user.
24450 ac_need_defaults=:
24451 while test $# != 0
24453 case $1 in
24454 --*=*)
24455 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24456 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24457 ac_shift=:
24460 ac_option=$1
24461 ac_optarg=$2
24462 ac_shift=shift
24464 esac
24466 case $ac_option in
24467 # Handling of the options.
24468 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24469 ac_cs_recheck=: ;;
24470 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24471 echo "$ac_cs_version"; exit ;;
24472 --debug | --debu | --deb | --de | --d | -d )
24473 debug=: ;;
24474 --file | --fil | --fi | --f )
24475 $ac_shift
24476 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24477 ac_need_defaults=false;;
24478 --header | --heade | --head | --hea )
24479 $ac_shift
24480 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24481 ac_need_defaults=false;;
24482 --he | --h)
24483 # Conflict between --help and --header
24484 { echo "$as_me: error: ambiguous option: $1
24485 Try \`$0 --help' for more information." >&2
24486 { (exit 1); exit 1; }; };;
24487 --help | --hel | -h )
24488 echo "$ac_cs_usage"; exit ;;
24489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24490 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24491 ac_cs_silent=: ;;
24493 # This is an error.
24494 -*) { echo "$as_me: error: unrecognized option: $1
24495 Try \`$0 --help' for more information." >&2
24496 { (exit 1); exit 1; }; } ;;
24498 *) ac_config_targets="$ac_config_targets $1"
24499 ac_need_defaults=false ;;
24501 esac
24502 shift
24503 done
24505 ac_configure_extra_args=
24507 if $ac_cs_silent; then
24508 exec 6>/dev/null
24509 ac_configure_extra_args="$ac_configure_extra_args --silent"
24512 _ACEOF
24513 cat >>$CONFIG_STATUS <<_ACEOF
24514 if \$ac_cs_recheck; then
24515 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24516 CONFIG_SHELL=$SHELL
24517 export CONFIG_SHELL
24518 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24521 _ACEOF
24522 cat >>$CONFIG_STATUS <<\_ACEOF
24523 exec 5>>config.log
24525 echo
24526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24527 ## Running $as_me. ##
24528 _ASBOX
24529 echo "$ac_log"
24530 } >&5
24532 _ACEOF
24533 cat >>$CONFIG_STATUS <<_ACEOF
24535 # INIT-COMMANDS
24537 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24539 _ACEOF
24541 cat >>$CONFIG_STATUS <<\_ACEOF
24543 # Handling of arguments.
24544 for ac_config_target in $ac_config_targets
24546 case $ac_config_target in
24547 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24548 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24549 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24550 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24551 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24552 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24553 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24554 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24555 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24556 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24557 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24558 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24559 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24561 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24562 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24563 { (exit 1); exit 1; }; };;
24564 esac
24565 done
24568 # If the user did not use the arguments to specify the items to instantiate,
24569 # then the envvar interface is used. Set only those that are not.
24570 # We use the long form for the default assignment because of an extremely
24571 # bizarre bug on SunOS 4.1.3.
24572 if $ac_need_defaults; then
24573 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24574 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24575 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24578 # Have a temporary directory for convenience. Make it in the build tree
24579 # simply because there is no reason against having it here, and in addition,
24580 # creating and moving files from /tmp can sometimes cause problems.
24581 # Hook for its removal unless debugging.
24582 # Note that there is a small window in which the directory will not be cleaned:
24583 # after its creation but before its name has been assigned to `$tmp'.
24584 $debug ||
24586 tmp=
24587 trap 'exit_status=$?
24588 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24590 trap '{ (exit 1); exit 1; }' 1 2 13 15
24592 # Create a (secure) tmp directory for tmp files.
24595 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24596 test -n "$tmp" && test -d "$tmp"
24597 } ||
24599 tmp=./conf$$-$RANDOM
24600 (umask 077 && mkdir "$tmp")
24601 } ||
24603 echo "$me: cannot create a temporary directory in ." >&2
24604 { (exit 1); exit 1; }
24608 # Set up the sed scripts for CONFIG_FILES section.
24611 # No need to generate the scripts if there are no CONFIG_FILES.
24612 # This happens for instance when ./config.status config.h
24613 if test -n "$CONFIG_FILES"; then
24615 _ACEOF
24619 ac_delim='%!_!# '
24620 for ac_last_try in false false false false false :; do
24621 cat >conf$$subs.sed <<_ACEOF
24622 SHELL!$SHELL$ac_delim
24623 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24624 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24625 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24626 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24627 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24628 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24629 exec_prefix!$exec_prefix$ac_delim
24630 prefix!$prefix$ac_delim
24631 program_transform_name!$program_transform_name$ac_delim
24632 bindir!$bindir$ac_delim
24633 sbindir!$sbindir$ac_delim
24634 libexecdir!$libexecdir$ac_delim
24635 datarootdir!$datarootdir$ac_delim
24636 datadir!$datadir$ac_delim
24637 sysconfdir!$sysconfdir$ac_delim
24638 sharedstatedir!$sharedstatedir$ac_delim
24639 localstatedir!$localstatedir$ac_delim
24640 includedir!$includedir$ac_delim
24641 oldincludedir!$oldincludedir$ac_delim
24642 docdir!$docdir$ac_delim
24643 infodir!$infodir$ac_delim
24644 htmldir!$htmldir$ac_delim
24645 dvidir!$dvidir$ac_delim
24646 pdfdir!$pdfdir$ac_delim
24647 psdir!$psdir$ac_delim
24648 libdir!$libdir$ac_delim
24649 localedir!$localedir$ac_delim
24650 mandir!$mandir$ac_delim
24651 DEFS!$DEFS$ac_delim
24652 ECHO_C!$ECHO_C$ac_delim
24653 ECHO_N!$ECHO_N$ac_delim
24654 ECHO_T!$ECHO_T$ac_delim
24655 LIBS!$LIBS$ac_delim
24656 build_alias!$build_alias$ac_delim
24657 host_alias!$host_alias$ac_delim
24658 target_alias!$target_alias$ac_delim
24659 MAINT!$MAINT$ac_delim
24660 build!$build$ac_delim
24661 build_cpu!$build_cpu$ac_delim
24662 build_vendor!$build_vendor$ac_delim
24663 build_os!$build_os$ac_delim
24664 host!$host$ac_delim
24665 host_cpu!$host_cpu$ac_delim
24666 host_vendor!$host_vendor$ac_delim
24667 host_os!$host_os$ac_delim
24668 CC!$CC$ac_delim
24669 CFLAGS!$CFLAGS$ac_delim
24670 LDFLAGS!$LDFLAGS$ac_delim
24671 CPPFLAGS!$CPPFLAGS$ac_delim
24672 ac_ct_CC!$ac_ct_CC$ac_delim
24673 EXEEXT!$EXEEXT$ac_delim
24674 OBJEXT!$OBJEXT$ac_delim
24675 CPP!$CPP$ac_delim
24676 GREP!$GREP$ac_delim
24677 EGREP!$EGREP$ac_delim
24678 LN_S!$LN_S$ac_delim
24679 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24680 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24681 INSTALL_DATA!$INSTALL_DATA$ac_delim
24682 RANLIB!$RANLIB$ac_delim
24683 INSTALL_INFO!$INSTALL_INFO$ac_delim
24684 GZIP_PROG!$GZIP_PROG$ac_delim
24685 MAKEINFO!$MAKEINFO$ac_delim
24686 LIBSOUND!$LIBSOUND$ac_delim
24687 PKG_CONFIG!$PKG_CONFIG$ac_delim
24688 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24689 ALSA_LIBS!$ALSA_LIBS$ac_delim
24690 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24691 SET_MAKE!$SET_MAKE$ac_delim
24692 XMKMF!$XMKMF$ac_delim
24693 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24694 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24695 RSVG_LIBS!$RSVG_LIBS$ac_delim
24696 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24697 GTK_LIBS!$GTK_LIBS$ac_delim
24698 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24699 DBUS_LIBS!$DBUS_LIBS$ac_delim
24700 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24701 XFT_LIBS!$XFT_LIBS$ac_delim
24702 ALLOCA!$ALLOCA$ac_delim
24703 liblockfile!$liblockfile$ac_delim
24704 LIBOBJS!$LIBOBJS$ac_delim
24705 NEED_SETGID!$NEED_SETGID$ac_delim
24706 KMEM_GROUP!$KMEM_GROUP$ac_delim
24707 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24708 GETOPT_H!$GETOPT_H$ac_delim
24709 GETOPTOBJS!$GETOPTOBJS$ac_delim
24710 version!$version$ac_delim
24711 configuration!$configuration$ac_delim
24712 canonical!$canonical$ac_delim
24713 srcdir!$srcdir$ac_delim
24714 lispdir!$lispdir$ac_delim
24715 locallisppath!$locallisppath$ac_delim
24716 lisppath!$lisppath$ac_delim
24717 x_default_search_path!$x_default_search_path$ac_delim
24718 etcdir!$etcdir$ac_delim
24719 _ACEOF
24721 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24722 break
24723 elif $ac_last_try; then
24724 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24725 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24726 { (exit 1); exit 1; }; }
24727 else
24728 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24730 done
24732 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24733 if test -n "$ac_eof"; then
24734 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24735 ac_eof=`expr $ac_eof + 1`
24738 cat >>$CONFIG_STATUS <<_ACEOF
24739 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24740 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24741 _ACEOF
24742 sed '
24743 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24744 s/^/s,@/; s/!/@,|#_!!_#|/
24747 s/'"$ac_delim"'$/,g/; t
24748 s/$/\\/; p
24749 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24750 ' >>$CONFIG_STATUS <conf$$subs.sed
24751 rm -f conf$$subs.sed
24752 cat >>$CONFIG_STATUS <<_ACEOF
24753 CEOF$ac_eof
24754 _ACEOF
24757 ac_delim='%!_!# '
24758 for ac_last_try in false false false false false :; do
24759 cat >conf$$subs.sed <<_ACEOF
24760 archlibdir!$archlibdir$ac_delim
24761 bitmapdir!$bitmapdir$ac_delim
24762 gamedir!$gamedir$ac_delim
24763 gameuser!$gameuser$ac_delim
24764 c_switch_system!$c_switch_system$ac_delim
24765 c_switch_machine!$c_switch_machine$ac_delim
24766 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24767 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24768 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24769 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24770 machfile!$machfile$ac_delim
24771 opsysfile!$opsysfile$ac_delim
24772 carbon_appdir!$carbon_appdir$ac_delim
24773 LTLIBOBJS!$LTLIBOBJS$ac_delim
24774 _ACEOF
24776 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24777 break
24778 elif $ac_last_try; then
24779 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24780 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24781 { (exit 1); exit 1; }; }
24782 else
24783 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24785 done
24787 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24788 if test -n "$ac_eof"; then
24789 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24790 ac_eof=`expr $ac_eof + 1`
24793 cat >>$CONFIG_STATUS <<_ACEOF
24794 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24795 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24796 _ACEOF
24797 sed '
24798 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24799 s/^/s,@/; s/!/@,|#_!!_#|/
24802 s/'"$ac_delim"'$/,g/; t
24803 s/$/\\/; p
24804 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24805 ' >>$CONFIG_STATUS <conf$$subs.sed
24806 rm -f conf$$subs.sed
24807 cat >>$CONFIG_STATUS <<_ACEOF
24808 :end
24809 s/|#_!!_#|//g
24810 CEOF$ac_eof
24811 _ACEOF
24814 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24815 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24816 # trailing colons and then remove the whole line if VPATH becomes empty
24817 # (actually we leave an empty line to preserve line numbers).
24818 if test "x$srcdir" = x.; then
24819 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24820 s/:*\$(srcdir):*/:/
24821 s/:*\${srcdir}:*/:/
24822 s/:*@srcdir@:*/:/
24823 s/^\([^=]*=[ ]*\):*/\1/
24824 s/:*$//
24825 s/^[^=]*=[ ]*$//
24829 cat >>$CONFIG_STATUS <<\_ACEOF
24830 fi # test -n "$CONFIG_FILES"
24833 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24835 case $ac_tag in
24836 :[FHLC]) ac_mode=$ac_tag; continue;;
24837 esac
24838 case $ac_mode$ac_tag in
24839 :[FHL]*:*);;
24840 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24841 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24842 { (exit 1); exit 1; }; };;
24843 :[FH]-) ac_tag=-:-;;
24844 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24845 esac
24846 ac_save_IFS=$IFS
24847 IFS=:
24848 set x $ac_tag
24849 IFS=$ac_save_IFS
24850 shift
24851 ac_file=$1
24852 shift
24854 case $ac_mode in
24855 :L) ac_source=$1;;
24856 :[FH])
24857 ac_file_inputs=
24858 for ac_f
24860 case $ac_f in
24861 -) ac_f="$tmp/stdin";;
24862 *) # Look for the file first in the build tree, then in the source tree
24863 # (if the path is not absolute). The absolute path cannot be DOS-style,
24864 # because $ac_f cannot contain `:'.
24865 test -f "$ac_f" ||
24866 case $ac_f in
24867 [\\/$]*) false;;
24868 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24869 esac ||
24870 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24871 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24872 { (exit 1); exit 1; }; };;
24873 esac
24874 ac_file_inputs="$ac_file_inputs $ac_f"
24875 done
24877 # Let's still pretend it is `configure' which instantiates (i.e., don't
24878 # use $as_me), people would be surprised to read:
24879 # /* config.h. Generated by config.status. */
24880 configure_input="Generated from "`IFS=:
24881 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24882 if test x"$ac_file" != x-; then
24883 configure_input="$ac_file. $configure_input"
24884 { echo "$as_me:$LINENO: creating $ac_file" >&5
24885 echo "$as_me: creating $ac_file" >&6;}
24888 case $ac_tag in
24889 *:-:* | *:-) cat >"$tmp/stdin";;
24890 esac
24892 esac
24894 ac_dir=`$as_dirname -- "$ac_file" ||
24895 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24896 X"$ac_file" : 'X\(//\)[^/]' \| \
24897 X"$ac_file" : 'X\(//\)$' \| \
24898 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24899 echo X"$ac_file" |
24900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24901 s//\1/
24904 /^X\(\/\/\)[^/].*/{
24905 s//\1/
24908 /^X\(\/\/\)$/{
24909 s//\1/
24912 /^X\(\/\).*/{
24913 s//\1/
24916 s/.*/./; q'`
24917 { as_dir="$ac_dir"
24918 case $as_dir in #(
24919 -*) as_dir=./$as_dir;;
24920 esac
24921 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24922 as_dirs=
24923 while :; do
24924 case $as_dir in #(
24925 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24926 *) as_qdir=$as_dir;;
24927 esac
24928 as_dirs="'$as_qdir' $as_dirs"
24929 as_dir=`$as_dirname -- "$as_dir" ||
24930 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24931 X"$as_dir" : 'X\(//\)[^/]' \| \
24932 X"$as_dir" : 'X\(//\)$' \| \
24933 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24934 echo X"$as_dir" |
24935 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24936 s//\1/
24939 /^X\(\/\/\)[^/].*/{
24940 s//\1/
24943 /^X\(\/\/\)$/{
24944 s//\1/
24947 /^X\(\/\).*/{
24948 s//\1/
24951 s/.*/./; q'`
24952 test -d "$as_dir" && break
24953 done
24954 test -z "$as_dirs" || eval "mkdir $as_dirs"
24955 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24956 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24957 { (exit 1); exit 1; }; }; }
24958 ac_builddir=.
24960 case "$ac_dir" in
24961 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24963 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24964 # A ".." for each directory in $ac_dir_suffix.
24965 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24966 case $ac_top_builddir_sub in
24967 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24968 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24969 esac ;;
24970 esac
24971 ac_abs_top_builddir=$ac_pwd
24972 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24973 # for backward compatibility:
24974 ac_top_builddir=$ac_top_build_prefix
24976 case $srcdir in
24977 .) # We are building in place.
24978 ac_srcdir=.
24979 ac_top_srcdir=$ac_top_builddir_sub
24980 ac_abs_top_srcdir=$ac_pwd ;;
24981 [\\/]* | ?:[\\/]* ) # Absolute name.
24982 ac_srcdir=$srcdir$ac_dir_suffix;
24983 ac_top_srcdir=$srcdir
24984 ac_abs_top_srcdir=$srcdir ;;
24985 *) # Relative name.
24986 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24987 ac_top_srcdir=$ac_top_build_prefix$srcdir
24988 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24989 esac
24990 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24993 case $ac_mode in
24996 # CONFIG_FILE
24999 case $INSTALL in
25000 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25001 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25002 esac
25003 _ACEOF
25005 cat >>$CONFIG_STATUS <<\_ACEOF
25006 # If the template does not know about datarootdir, expand it.
25007 # FIXME: This hack should be removed a few years after 2.60.
25008 ac_datarootdir_hack=; ac_datarootdir_seen=
25010 case `sed -n '/datarootdir/ {
25014 /@datadir@/p
25015 /@docdir@/p
25016 /@infodir@/p
25017 /@localedir@/p
25018 /@mandir@/p
25019 ' $ac_file_inputs` in
25020 *datarootdir*) ac_datarootdir_seen=yes;;
25021 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25022 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25023 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25024 _ACEOF
25025 cat >>$CONFIG_STATUS <<_ACEOF
25026 ac_datarootdir_hack='
25027 s&@datadir@&$datadir&g
25028 s&@docdir@&$docdir&g
25029 s&@infodir@&$infodir&g
25030 s&@localedir@&$localedir&g
25031 s&@mandir@&$mandir&g
25032 s&\\\${datarootdir}&$datarootdir&g' ;;
25033 esac
25034 _ACEOF
25036 # Neutralize VPATH when `$srcdir' = `.'.
25037 # Shell code in configure.ac might set extrasub.
25038 # FIXME: do we really want to maintain this feature?
25039 cat >>$CONFIG_STATUS <<_ACEOF
25040 sed "$ac_vpsub
25041 $extrasub
25042 _ACEOF
25043 cat >>$CONFIG_STATUS <<\_ACEOF
25045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25046 s&@configure_input@&$configure_input&;t t
25047 s&@top_builddir@&$ac_top_builddir_sub&;t t
25048 s&@srcdir@&$ac_srcdir&;t t
25049 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25050 s&@top_srcdir@&$ac_top_srcdir&;t t
25051 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25052 s&@builddir@&$ac_builddir&;t t
25053 s&@abs_builddir@&$ac_abs_builddir&;t t
25054 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25055 s&@INSTALL@&$ac_INSTALL&;t t
25056 $ac_datarootdir_hack
25057 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25059 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25060 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25061 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25062 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25063 which seems to be undefined. Please make sure it is defined." >&5
25064 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25065 which seems to be undefined. Please make sure it is defined." >&2;}
25067 rm -f "$tmp/stdin"
25068 case $ac_file in
25069 -) cat "$tmp/out"; rm -f "$tmp/out";;
25070 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25071 esac
25075 # CONFIG_HEADER
25077 _ACEOF
25079 # Transform confdefs.h into a sed script `conftest.defines', that
25080 # substitutes the proper values into config.h.in to produce config.h.
25081 rm -f conftest.defines conftest.tail
25082 # First, append a space to every undef/define line, to ease matching.
25083 echo 's/$/ /' >conftest.defines
25084 # Then, protect against being on the right side of a sed subst, or in
25085 # an unquoted here document, in config.status. If some macros were
25086 # called several times there might be several #defines for the same
25087 # symbol, which is useless. But do not sort them, since the last
25088 # AC_DEFINE must be honored.
25089 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25090 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25091 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25092 # PARAMS is the parameter list in the macro definition--in most cases, it's
25093 # just an empty string.
25094 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25095 ac_dB='\\)[ (].*,\\1define\\2'
25096 ac_dC=' '
25097 ac_dD=' ,'
25099 uniq confdefs.h |
25100 sed -n '
25101 t rset
25102 :rset
25103 s/^[ ]*#[ ]*define[ ][ ]*//
25104 t ok
25107 s/[\\&,]/\\&/g
25108 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25109 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25110 ' >>conftest.defines
25112 # Remove the space that was appended to ease matching.
25113 # Then replace #undef with comments. This is necessary, for
25114 # example, in the case of _POSIX_SOURCE, which is predefined and required
25115 # on some systems where configure will not decide to define it.
25116 # (The regexp can be short, since the line contains either #define or #undef.)
25117 echo 's/ $//
25118 s,^[ #]*u.*,/* & */,' >>conftest.defines
25120 # Break up conftest.defines:
25121 ac_max_sed_lines=50
25123 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25124 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25125 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25126 # et cetera.
25127 ac_in='$ac_file_inputs'
25128 ac_out='"$tmp/out1"'
25129 ac_nxt='"$tmp/out2"'
25131 while :
25133 # Write a here document:
25134 cat >>$CONFIG_STATUS <<_ACEOF
25135 # First, check the format of the line:
25136 cat >"\$tmp/defines.sed" <<\\CEOF
25137 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25138 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25140 :def
25141 _ACEOF
25142 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25143 echo 'CEOF
25144 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25145 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25146 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25147 grep . conftest.tail >/dev/null || break
25148 rm -f conftest.defines
25149 mv conftest.tail conftest.defines
25150 done
25151 rm -f conftest.defines conftest.tail
25153 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25154 cat >>$CONFIG_STATUS <<\_ACEOF
25155 if test x"$ac_file" != x-; then
25156 echo "/* $configure_input */" >"$tmp/config.h"
25157 cat "$ac_result" >>"$tmp/config.h"
25158 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25159 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25160 echo "$as_me: $ac_file is unchanged" >&6;}
25161 else
25162 rm -f $ac_file
25163 mv "$tmp/config.h" $ac_file
25165 else
25166 echo "/* $configure_input */"
25167 cat "$ac_result"
25169 rm -f "$tmp/out12"
25172 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25173 echo "$as_me: executing $ac_file commands" >&6;}
25175 esac
25178 case $ac_file$ac_mode in
25179 "default":C)
25181 ### Make the necessary directories, if they don't exist.
25182 for dir in etc lisp ; do
25183 test -d ${dir} || mkdir ${dir}
25184 done
25186 # Build src/Makefile from ${srcdir}/src/Makefile.c
25187 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25188 # This must be done after src/config.h is built, since we rely on that file.
25190 # Now get this: Some word that is part of the ${srcdir} directory name
25191 # or the ${configuration} value might, just might, happen to be an
25192 # identifier like `sun4' or `i386' or something, and be predefined by
25193 # the C preprocessor to some helpful value like 1, or maybe the empty
25194 # string. Needless to say consequent macro substitutions are less
25195 # than conducive to the makefile finding the correct directory.
25196 undefs="`echo $top_srcdir $configuration $canonical |
25197 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25198 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25201 echo creating src/epaths.h
25202 ${MAKE-make} epaths-force
25204 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25205 # `..' to `. .' unless invoked with -traditional
25207 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25208 CPPFLAGS="$CPPFLAGS -traditional"
25211 echo creating lib-src/Makefile
25212 ( cd lib-src
25213 rm -f junk.c junk1.c junk2.c
25214 sed -e '/start of cpp stuff/q' \
25215 < Makefile.c > junk1.c
25216 sed -e '1,/start of cpp stuff/d'\
25217 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25218 < Makefile.c > junk.c
25219 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25220 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25221 cat junk1.c junk2.c > Makefile.new
25222 rm -f junk.c junk1.c junk2.c
25223 chmod 444 Makefile.new
25224 mv -f Makefile.new Makefile
25227 echo creating src/Makefile
25228 ( cd src
25229 rm -f junk.c junk1.c junk2.c
25230 sed -e '/start of cpp stuff/q' \
25231 < Makefile.c > junk1.c
25232 sed -e '1,/start of cpp stuff/d'\
25233 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25234 < Makefile.c > junk.c
25235 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25236 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25237 cat junk1.c junk2.c > Makefile.new
25238 rm -f junk.c junk1.c junk2.c
25239 chmod 444 Makefile.new
25240 mv -f Makefile.new Makefile
25243 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25244 echo creating src/.gdbinit
25245 echo source $srcdir/src/.gdbinit > src/.gdbinit
25248 # This is how we know whether to re-run configure in certain cases.
25249 touch src/config.stamp
25253 esac
25254 done # for ac_tag
25257 { (exit 0); exit 0; }
25258 _ACEOF
25259 chmod +x $CONFIG_STATUS
25260 ac_clean_files=$ac_clean_files_save
25263 # configure is writing to config.log, and then calls config.status.
25264 # config.status does its own redirection, appending to config.log.
25265 # Unfortunately, on DOS this fails, as config.log is still kept open
25266 # by configure, so config.status won't be able to write to it; its
25267 # output is simply discarded. So we exec the FD to /dev/null,
25268 # effectively closing config.log, so it can be properly (re)opened and
25269 # appended to by config.status. When coming back to configure, we
25270 # need to make the FD available again.
25271 if test "$no_create" != yes; then
25272 ac_cs_success=:
25273 ac_config_status_args=
25274 test "$silent" = yes &&
25275 ac_config_status_args="$ac_config_status_args --quiet"
25276 exec 5>/dev/null
25277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25278 exec 5>>config.log
25279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25280 # would make configure fail if this is the last instruction.
25281 $ac_cs_success || { (exit 1); exit 1; }