(Fdisplay_buffer): Reinitialize tem to nil.
[emacs.git] / configure
blob54830584109f2c2980a434eea9bd87d521fd1a84
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_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 carbon_appdir
737 LTLIBOBJS'
738 ac_subst_files=''
739 ac_precious_vars='build_alias
740 host_alias
741 target_alias
743 CFLAGS
744 LDFLAGS
745 LIBS
746 CPPFLAGS
748 XMKMF'
751 # Initialize some variables set by options.
752 ac_init_help=
753 ac_init_version=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
756 cache_file=/dev/null
757 exec_prefix=NONE
758 no_create=
759 no_recursion=
760 prefix=NONE
761 program_prefix=NONE
762 program_suffix=NONE
763 program_transform_name=s,x,x,
764 silent=
765 site=
766 srcdir=
767 verbose=
768 x_includes=NONE
769 x_libraries=NONE
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir='${exec_prefix}/bin'
778 sbindir='${exec_prefix}/sbin'
779 libexecdir='${exec_prefix}/libexec'
780 datarootdir='${prefix}/share'
781 datadir='${datarootdir}'
782 sysconfdir='${prefix}/etc'
783 sharedstatedir='${prefix}/com'
784 localstatedir='${prefix}/var'
785 includedir='${prefix}/include'
786 oldincludedir='/usr/include'
787 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir='${datarootdir}/info'
789 htmldir='${docdir}'
790 dvidir='${docdir}'
791 pdfdir='${docdir}'
792 psdir='${docdir}'
793 libdir='${exec_prefix}/lib'
794 localedir='${datarootdir}/locale'
795 mandir='${datarootdir}/man'
797 ac_prev=
798 ac_dashdash=
799 for ac_option
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\$ac_option
804 ac_prev=
805 continue
808 case $ac_option in
809 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 *) ac_optarg=yes ;;
811 esac
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
817 ac_dashdash=yes ;;
819 -bindir | --bindir | --bindi | --bind | --bin | --bi)
820 ac_prev=bindir ;;
821 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
822 bindir=$ac_optarg ;;
824 -build | --build | --buil | --bui | --bu)
825 ac_prev=build_alias ;;
826 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
827 build_alias=$ac_optarg ;;
829 -cache-file | --cache-file | --cache-fil | --cache-fi \
830 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
831 ac_prev=cache_file ;;
832 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
833 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
834 cache_file=$ac_optarg ;;
836 --config-cache | -C)
837 cache_file=config.cache ;;
839 -datadir | --datadir | --datadi | --datad)
840 ac_prev=datadir ;;
841 -datadir=* | --datadir=* | --datadi=* | --datad=*)
842 datadir=$ac_optarg ;;
844 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
845 | --dataroo | --dataro | --datar)
846 ac_prev=datarootdir ;;
847 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
848 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
849 datarootdir=$ac_optarg ;;
851 -disable-* | --disable-*)
852 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_$ac_feature=no ;;
860 -docdir | --docdir | --docdi | --doc | --do)
861 ac_prev=docdir ;;
862 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
863 docdir=$ac_optarg ;;
865 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
866 ac_prev=dvidir ;;
867 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
868 dvidir=$ac_optarg ;;
870 -enable-* | --enable-*)
871 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_$ac_feature=\$ac_optarg ;;
879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
881 | --exec | --exe | --ex)
882 ac_prev=exec_prefix ;;
883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
885 | --exec=* | --exe=* | --ex=*)
886 exec_prefix=$ac_optarg ;;
888 -gas | --gas | --ga | --g)
889 # Obsolete; use --with-gas.
890 with_gas=yes ;;
892 -help | --help | --hel | --he | -h)
893 ac_init_help=long ;;
894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
895 ac_init_help=recursive ;;
896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
897 ac_init_help=short ;;
899 -host | --host | --hos | --ho)
900 ac_prev=host_alias ;;
901 -host=* | --host=* | --hos=* | --ho=*)
902 host_alias=$ac_optarg ;;
904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
905 ac_prev=htmldir ;;
906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
907 | --ht=*)
908 htmldir=$ac_optarg ;;
910 -includedir | --includedir | --includedi | --included | --include \
911 | --includ | --inclu | --incl | --inc)
912 ac_prev=includedir ;;
913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
914 | --includ=* | --inclu=* | --incl=* | --inc=*)
915 includedir=$ac_optarg ;;
917 -infodir | --infodir | --infodi | --infod | --info | --inf)
918 ac_prev=infodir ;;
919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
920 infodir=$ac_optarg ;;
922 -libdir | --libdir | --libdi | --libd)
923 ac_prev=libdir ;;
924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
925 libdir=$ac_optarg ;;
927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
928 | --libexe | --libex | --libe)
929 ac_prev=libexecdir ;;
930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
931 | --libexe=* | --libex=* | --libe=*)
932 libexecdir=$ac_optarg ;;
934 -localedir | --localedir | --localedi | --localed | --locale)
935 ac_prev=localedir ;;
936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
937 localedir=$ac_optarg ;;
939 -localstatedir | --localstatedir | --localstatedi | --localstated \
940 | --localstate | --localstat | --localsta | --localst | --locals)
941 ac_prev=localstatedir ;;
942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
944 localstatedir=$ac_optarg ;;
946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
947 ac_prev=mandir ;;
948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
949 mandir=$ac_optarg ;;
951 -nfp | --nfp | --nf)
952 # Obsolete; use --without-fp.
953 with_fp=no ;;
955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
956 | --no-cr | --no-c | -n)
957 no_create=yes ;;
959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
961 no_recursion=yes ;;
963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
965 | --oldin | --oldi | --old | --ol | --o)
966 ac_prev=oldincludedir ;;
967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
970 oldincludedir=$ac_optarg ;;
972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
973 ac_prev=prefix ;;
974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
975 prefix=$ac_optarg ;;
977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
978 | --program-pre | --program-pr | --program-p)
979 ac_prev=program_prefix ;;
980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
982 program_prefix=$ac_optarg ;;
984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
985 | --program-suf | --program-su | --program-s)
986 ac_prev=program_suffix ;;
987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
989 program_suffix=$ac_optarg ;;
991 -program-transform-name | --program-transform-name \
992 | --program-transform-nam | --program-transform-na \
993 | --program-transform-n | --program-transform- \
994 | --program-transform | --program-transfor \
995 | --program-transfo | --program-transf \
996 | --program-trans | --program-tran \
997 | --progr-tra | --program-tr | --program-t)
998 ac_prev=program_transform_name ;;
999 -program-transform-name=* | --program-transform-name=* \
1000 | --program-transform-nam=* | --program-transform-na=* \
1001 | --program-transform-n=* | --program-transform-=* \
1002 | --program-transform=* | --program-transfor=* \
1003 | --program-transfo=* | --program-transf=* \
1004 | --program-trans=* | --program-tran=* \
1005 | --progr-tra=* | --program-tr=* | --program-t=*)
1006 program_transform_name=$ac_optarg ;;
1008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1009 ac_prev=pdfdir ;;
1010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1011 pdfdir=$ac_optarg ;;
1013 -psdir | --psdir | --psdi | --psd | --ps)
1014 ac_prev=psdir ;;
1015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1016 psdir=$ac_optarg ;;
1018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1019 | -silent | --silent | --silen | --sile | --sil)
1020 silent=yes ;;
1022 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1023 ac_prev=sbindir ;;
1024 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1025 | --sbi=* | --sb=*)
1026 sbindir=$ac_optarg ;;
1028 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1029 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1030 | --sharedst | --shareds | --shared | --share | --shar \
1031 | --sha | --sh)
1032 ac_prev=sharedstatedir ;;
1033 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1034 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1035 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1036 | --sha=* | --sh=*)
1037 sharedstatedir=$ac_optarg ;;
1039 -site | --site | --sit)
1040 ac_prev=site ;;
1041 -site=* | --site=* | --sit=*)
1042 site=$ac_optarg ;;
1044 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1045 ac_prev=srcdir ;;
1046 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1047 srcdir=$ac_optarg ;;
1049 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1050 | --syscon | --sysco | --sysc | --sys | --sy)
1051 ac_prev=sysconfdir ;;
1052 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1053 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1054 sysconfdir=$ac_optarg ;;
1056 -target | --target | --targe | --targ | --tar | --ta | --t)
1057 ac_prev=target_alias ;;
1058 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1059 target_alias=$ac_optarg ;;
1061 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1062 verbose=yes ;;
1064 -version | --version | --versio | --versi | --vers | -V)
1065 ac_init_version=: ;;
1067 -with-* | --with-*)
1068 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\$ac_optarg ;;
1076 -without-* | --without-*)
1077 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_$ac_package=no ;;
1085 --x)
1086 # Obsolete; use --with-x.
1087 with_x=yes ;;
1089 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090 | --x-incl | --x-inc | --x-in | --x-i)
1091 ac_prev=x_includes ;;
1092 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094 x_includes=$ac_optarg ;;
1096 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098 ac_prev=x_libraries ;;
1099 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101 x_libraries=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1108 *=*)
1109 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 esac
1126 done
1128 if test -n "$ac_prev"; then
1129 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val=\$$ac_var
1141 case $ac_val in
1142 [\\/$]* | ?:[\\/]* ) continue;;
1143 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1144 esac
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1147 done
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1152 build=$build_alias
1153 host=$host_alias
1154 target=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x; then
1158 if test "x$build_alias" = x; then
1159 cross_compiling=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1163 cross_compiling=yes
1167 ac_tool_prefix=
1168 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1170 test "$silent" = yes && exec 6>/dev/null
1173 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di=`ls -di .` &&
1175 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1192 echo X"$0" |
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1194 s//\1/
1197 /^X\(\/\/\)[^/].*/{
1198 s//\1/
1201 /^X\(\/\/\)$/{
1202 s//\1/
1205 /^X\(\/\).*/{
1206 s//\1/
1209 s/.*/./; q'`
1210 srcdir=$ac_confdir
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 srcdir=..
1214 else
1215 ac_srcdir_defaulted=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1223 ac_abs_confdir=`(
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1226 pwd)`
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1229 srcdir=.
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1234 case $srcdir in
1235 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1236 esac
1237 for ac_var in $ac_precious_vars; do
1238 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_${ac_var}_value=\$${ac_var}
1240 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1242 done
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1250 cat <<_ACEOF
1251 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1260 Configuration:
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1275 [PREFIX]
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1304 _ACEOF
1306 cat <<\_ACEOF
1308 Program names:
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1313 X features:
1314 --x-includes=DIR X include files are in DIR
1315 --x-libraries=DIR X library files are in DIR
1317 System types:
1318 --build=BUILD configure for building on BUILD [guessed]
1319 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1320 _ACEOF
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1326 esac
1327 cat <<\_ACEOF
1329 Optional Features:
1330 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1331 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1332 --enable-carbon-app[=DIR]
1333 specify install directory for Emacs.app on Mac OS X
1334 [DIR=/Application]
1335 --disable-font-backend don't compile font-backend support
1336 --enable-sync-input compile code with sync-input
1337 --enable-asserts compile code with asserts enabled
1338 --enable-maintainer-mode
1339 enable make rules and dependencies not useful (and
1340 sometimes confusing) to the casual installer
1341 --enable-locallisppath=PATH
1342 directories Emacs should search for lisp files
1343 specific to this site
1344 --disable-largefile omit support for large files
1346 Optional Packages:
1347 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1348 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1349 --without-pop don't support POP mail retrieval with movemail
1350 --with-kerberos support Kerberos-authenticated POP
1351 --with-kerberos5 support Kerberos version 5 authenticated POP
1352 --with-hesiod support Hesiod to get the POP server host
1353 --without-sound don't compile with sound support
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1355 motif, gtk, no)
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don't compile with SVG image support
1362 --without-freetype don't use Freetype for local font support
1363 --without-xft don't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf for OpenType font support
1365 --without-m17n-flt don't use m17n-flt for text shaping
1366 --without-toolkit-scroll-bars
1367 don't use Motif or Xaw3d scroll bars
1368 --without-xaw3d don't use Xaw3d
1369 --without-xim don't use X11 XIM
1370 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1371 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1372 console
1373 --without-dbus don't compile with D-Bus support
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config for finding GTK and librsvg
1377 --with-x use the X Window System
1379 Some influential environment variables:
1380 CC C compiler command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1383 nonstandard directory <lib dir>
1384 LIBS libraries to pass to the linker, e.g. -l<library>
1385 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1386 you have headers in a nonstandard directory <include dir>
1387 CPP C preprocessor
1388 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 Use these variables to override the choices made by `configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1393 _ACEOF
1394 ac_status=$?
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1401 ac_builddir=.
1403 case "$ac_dir" in
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1412 esac ;;
1413 esac
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1419 case $srcdir in
1420 .) # We are building in place.
1421 ac_srcdir=.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1428 *) # Relative name.
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 esac
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1438 echo &&
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1443 else
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 fi || ac_status=$?
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1447 done
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1452 cat <<\_ACEOF
1453 emacs configure 23.0.50
1454 generated by GNU Autoconf 2.61
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1460 _ACEOF
1461 exit
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1467 It was created by emacs $as_me 23.0.50, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1470 $ $0 $@
1472 _ACEOF
1473 exec 5>>config.log
1475 cat <<_ASUNAME
1476 ## --------- ##
1477 ## Platform. ##
1478 ## --------- ##
1480 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1481 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1482 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1483 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1484 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1486 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1487 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1489 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1490 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1491 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1492 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1493 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1494 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1495 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1497 _ASUNAME
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1500 for as_dir in $PATH
1502 IFS=$as_save_IFS
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1505 done
1506 IFS=$as_save_IFS
1508 } >&5
1510 cat >&5 <<_ACEOF
1513 ## ----------- ##
1514 ## Core tests. ##
1515 ## ----------- ##
1517 _ACEOF
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1525 ac_configure_args=
1526 ac_configure_args0=
1527 ac_configure_args1=
1528 ac_must_keep_next=false
1529 for ac_pass in 1 2
1531 for ac_arg
1533 case $ac_arg in
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1537 continue ;;
1538 *\'*)
1539 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1540 esac
1541 case $ac_pass in
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1547 else
1548 case $ac_arg in
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1555 esac
1557 -* ) ac_must_keep_next=true ;;
1558 esac
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1562 esac
1563 done
1564 done
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1576 echo
1578 cat <<\_ASBOX
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1582 _ASBOX
1583 echo
1584 # The following way of writing the cache mishandles newlines in values,
1586 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1587 eval ac_val=\$$ac_var
1588 case $ac_val in #(
1589 *${as_nl}*)
1590 case $ac_var in #(
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1593 esac
1594 case $ac_var in #(
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1597 esac ;;
1598 esac
1599 done
1600 (set) 2>&1 |
1601 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1603 sed -n \
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1606 ;; #(
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1610 esac |
1611 sort
1613 echo
1615 cat <<\_ASBOX
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1631 if test -n "$ac_subst_files"; then
1632 cat <<\_ASBOX
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1636 _ASBOX
1637 echo
1638 for ac_var in $ac_subst_files
1640 eval ac_val=\$$ac_var
1641 case $ac_val in
1642 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 esac
1644 echo "$ac_var='\''$ac_val'\''"
1645 done | sort
1646 echo
1649 if test -s confdefs.h; then
1650 cat <<\_ASBOX
1651 ## ----------- ##
1652 ## confdefs.h. ##
1653 ## ----------- ##
1654 _ASBOX
1655 echo
1656 cat confdefs.h
1657 echo
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1662 } >&5
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1665 exit $exit_status
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1669 done
1670 ac_signal=0
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1679 _ACEOF
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1684 _ACEOF
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1689 _ACEOF
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1694 _ACEOF
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1699 _ACEOF
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708 else
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1712 shift
1713 for ac_site_file
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1719 . "$ac_site_file"
1721 done
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1729 case $cache_file in
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1732 esac
1734 else
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1737 >$cache_file
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1744 # value.
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1752 set,)
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1754 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1756 ,set)
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1758 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1760 ,);;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1765 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1766 echo "$as_me: former value: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1768 echo "$as_me: current value: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1770 fi;;
1771 esac
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1774 case $ac_new_val in
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1777 esac
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1781 esac
1783 done
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1786 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1787 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1816 ac_ext=c
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s,x,x', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1836 _ACEOF
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1838 rm -f conftest.sed
1841 lispdir='${datadir}/emacs/${version}/lisp'
1842 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1843 '${datadir}/emacs/site-lisp'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1845 etcdir='${datadir}/emacs/${version}/etc'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs/${version}/etc'
1848 gamedir='${localstatedir}/games/emacs'
1850 gameuser=games
1855 # Check whether --with-pop was given.
1856 if test "${with_pop+set}" = set; then
1857 withval=$with_pop;
1858 else
1859 with_pop=yes
1862 if test "$with_pop" = yes; then
1863 cat >>confdefs.h <<\_ACEOF
1864 #define MAIL_USE_POP 1
1865 _ACEOF
1871 # Check whether --with-kerberos was given.
1872 if test "${with_kerberos+set}" = set; then
1873 withval=$with_kerberos;
1874 else
1875 with_kerberos=no
1878 if test "$with_kerberos" = yes; then
1879 cat >>confdefs.h <<\_ACEOF
1880 #define KERBEROS 1
1881 _ACEOF
1887 # Check whether --with-kerberos5 was given.
1888 if test "${with_kerberos5+set}" = set; then
1889 withval=$with_kerberos5;
1890 else
1891 with_kerberos5=no
1894 if test "${with_kerberos5}" = yes; then
1895 if test "${with_kerberos}" != yes; then
1896 with_kerberos=yes
1897 cat >>confdefs.h <<\_ACEOF
1898 #define KERBEROS 1
1899 _ACEOF
1903 cat >>confdefs.h <<\_ACEOF
1904 #define KERBEROS5 1
1905 _ACEOF
1910 # Check whether --with-hesiod was given.
1911 if test "${with_hesiod+set}" = set; then
1912 withval=$with_hesiod;
1913 else
1914 with_hesiod=no
1917 if test "$with_hesiod" = yes; then
1919 cat >>confdefs.h <<\_ACEOF
1920 #define HESIOD 1
1921 _ACEOF
1926 # Check whether --with-sound was given.
1927 if test "${with_sound+set}" = set; then
1928 withval=$with_sound;
1929 else
1930 with_sound=yes
1935 # Check whether --with-x-toolkit was given.
1936 if test "${with_x_toolkit+set}" = set; then
1937 withval=$with_x_toolkit; case "${withval}" in
1938 y | ye | yes ) val=gtk ;;
1939 n | no ) val=no ;;
1940 l | lu | luc | luci | lucid ) val=lucid ;;
1941 a | at | ath | athe | athen | athena ) val=athena ;;
1942 m | mo | mot | moti | motif ) val=motif ;;
1943 g | gt | gtk ) val=gtk ;;
1945 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1946 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1947 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1948 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1949 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1950 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1951 { (exit 1); exit 1; }; }
1953 esac
1954 with_x_toolkit=$val
1960 # Check whether --with-xpm was given.
1961 if test "${with_xpm+set}" = set; then
1962 withval=$with_xpm;
1963 else
1964 with_xpm=yes
1968 # Check whether --with-jpeg was given.
1969 if test "${with_jpeg+set}" = set; then
1970 withval=$with_jpeg;
1971 else
1972 with_jpeg=yes
1976 # Check whether --with-tiff was given.
1977 if test "${with_tiff+set}" = set; then
1978 withval=$with_tiff;
1979 else
1980 with_tiff=yes
1984 # Check whether --with-gif was given.
1985 if test "${with_gif+set}" = set; then
1986 withval=$with_gif;
1987 else
1988 with_gif=yes
1992 # Check whether --with-png was given.
1993 if test "${with_png+set}" = set; then
1994 withval=$with_png;
1995 else
1996 with_png=yes
2000 # Check whether --with-rsvg was given.
2001 if test "${with_rsvg+set}" = set; then
2002 withval=$with_rsvg;
2003 else
2004 with_rsvg=yes
2009 # Check whether --with-freetype was given.
2010 if test "${with_freetype+set}" = set; then
2011 withval=$with_freetype;
2012 else
2013 with_freetype=yes
2017 # Check whether --with-xft was given.
2018 if test "${with_xft+set}" = set; then
2019 withval=$with_xft;
2020 else
2021 with_xft=yes
2025 # Check whether --with-libotf was given.
2026 if test "${with_libotf+set}" = set; then
2027 withval=$with_libotf;
2028 else
2029 with_libotf=yes
2033 # Check whether --with-m17n-flt was given.
2034 if test "${with_m17n_flt+set}" = set; then
2035 withval=$with_m17n_flt;
2036 else
2037 with_m17n_flt=yes
2042 # Check whether --with-toolkit-scroll-bars was given.
2043 if test "${with_toolkit_scroll_bars+set}" = set; then
2044 withval=$with_toolkit_scroll_bars;
2045 else
2046 with_toolkit_scroll_bars=yes
2050 # Check whether --with-xaw3d was given.
2051 if test "${with_xaw3d+set}" = set; then
2052 withval=$with_xaw3d;
2053 else
2054 with_xaw3d=yes
2058 # Check whether --with-xim was given.
2059 if test "${with_xim+set}" = set; then
2060 withval=$with_xim;
2061 else
2062 with_xim=yes
2066 # Check whether --with-carbon was given.
2067 if test "${with_carbon+set}" = set; then
2068 withval=$with_carbon;
2069 else
2070 with_carbon=no
2075 # Check whether --with-gpm was given.
2076 if test "${with_gpm+set}" = set; then
2077 withval=$with_gpm;
2078 else
2079 with_gpm=yes
2083 # Check whether --with-dbus was given.
2084 if test "${with_dbus+set}" = set; then
2085 withval=$with_dbus;
2086 else
2087 with_dbus=yes
2092 # Check whether --with-gtk was given.
2093 if test "${with_gtk+set}" = set; then
2094 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2095 specify a toolkit." >&5
2096 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2097 specify a toolkit." >&2;}
2098 { (exit 1); exit 1; }; }
2103 # Check whether --with-gcc was given.
2104 if test "${with_gcc+set}" = set; then
2105 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2106 variable to specify a compiler." >&5
2107 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2108 variable to specify a compiler." >&2;}
2109 { (exit 1); exit 1; }; }
2114 # Check whether --with-pkg-config-prog was given.
2115 if test "${with_pkg_config_prog+set}" = set; then
2116 withval=$with_pkg_config_prog;
2119 if test "X${with_pkg_config_prog}" != X; then
2120 if test "${with_pkg_config_prog}" != yes; then
2121 PKG_CONFIG="${with_pkg_config_prog}"
2125 # Check whether --enable-carbon-app was given.
2126 if test "${enable_carbon_app+set}" = set; then
2127 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2131 ## Enabled by default.
2132 # Check whether --enable-font-backend was given.
2133 if test "${enable_font_backend+set}" = set; then
2134 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2135 else
2136 USE_FONT_BACKEND=yes
2140 # Check whether --enable-sync-input was given.
2141 if test "${enable_sync_input+set}" = set; then
2142 enableval=$enable_sync_input; USE_SYNC_INPUT=$enableval
2143 else
2144 USE_SYNC_INPUT=yes
2148 # Check whether --enable-asserts was given.
2149 if test "${enable_asserts+set}" = set; then
2150 enableval=$enable_asserts; USE_XASSERTS=$enableval
2151 else
2152 USE_XASSERTS=no
2156 # Check whether --enable-maintainer-mode was given.
2157 if test "${enable_maintainer_mode+set}" = set; then
2158 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2159 else
2160 USE_MAINTAINER_MODE=no
2163 if test $USE_MAINTAINER_MODE = yes; then
2164 MAINT=
2165 else
2166 MAINT=#
2170 # Check whether --enable-locallisppath was given.
2171 if test "${enable_locallisppath+set}" = set; then
2172 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2173 locallisppath=
2174 elif test "${enableval}" != "yes"; then
2175 locallisppath=${enableval}
2180 #### Make srcdir absolute, if it isn't already. It's important to
2181 #### avoid running the path through pwd unnecessarily, since pwd can
2182 #### give you automounter prefixes, which can go away. We do all this
2183 #### so Emacs can find its files when run uninstalled.
2184 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2185 unset CDPATH
2186 case "${srcdir}" in
2187 /* ) ;;
2189 ## We may be able to use the $PWD environment variable to make this
2190 ## absolute. But sometimes PWD is inaccurate.
2191 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2192 ## but that tested only for a well-formed and valid PWD,
2193 ## it did not object when PWD was well-formed and valid but just wrong.
2194 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2195 then
2196 srcdir="$PWD"
2197 else
2198 srcdir="`(cd ${srcdir}; pwd)`"
2201 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2202 esac
2204 #### Check if the source directory already has a configured system in it.
2205 if test `pwd` != `(cd ${srcdir} && pwd)` \
2206 && test -f "${srcdir}/src/config.h" ; then
2207 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2208 as a build directory right now; it has been configured in its own
2209 right. To configure in another directory as well, you MUST
2210 use GNU make. If you do not have GNU make, then you must
2211 now do \`make distclean' in ${srcdir},
2212 and then run $0 again." >&5
2213 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2214 as a build directory right now; it has been configured in its own
2215 right. To configure in another directory as well, you MUST
2216 use GNU make. If you do not have GNU make, then you must
2217 now do \`make distclean' in ${srcdir},
2218 and then run $0 again." >&2;}
2221 #### Given the configuration name, set machfile and opsysfile to the
2222 #### names of the m/*.h and s/*.h files we should use.
2224 ### Canonicalize the configuration name.
2226 ac_aux_dir=
2227 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2228 if test -f "$ac_dir/install-sh"; then
2229 ac_aux_dir=$ac_dir
2230 ac_install_sh="$ac_aux_dir/install-sh -c"
2231 break
2232 elif test -f "$ac_dir/install.sh"; then
2233 ac_aux_dir=$ac_dir
2234 ac_install_sh="$ac_aux_dir/install.sh -c"
2235 break
2236 elif test -f "$ac_dir/shtool"; then
2237 ac_aux_dir=$ac_dir
2238 ac_install_sh="$ac_aux_dir/shtool install -c"
2239 break
2241 done
2242 if test -z "$ac_aux_dir"; then
2243 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2244 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2245 { (exit 1); exit 1; }; }
2248 # These three variables are undocumented and unsupported,
2249 # and are intended to be withdrawn in a future Autoconf release.
2250 # They can cause serious problems if a builder's source tree is in a directory
2251 # whose full name contains unusual characters.
2252 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2253 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2254 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2257 # Make sure we can run config.sub.
2258 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2259 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2260 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2261 { (exit 1); exit 1; }; }
2263 { echo "$as_me:$LINENO: checking build system type" >&5
2264 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2265 if test "${ac_cv_build+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268 ac_build_alias=$build_alias
2269 test "x$ac_build_alias" = x &&
2270 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2271 test "x$ac_build_alias" = x &&
2272 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2273 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2274 { (exit 1); exit 1; }; }
2275 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2276 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2277 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2278 { (exit 1); exit 1; }; }
2281 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2282 echo "${ECHO_T}$ac_cv_build" >&6; }
2283 case $ac_cv_build in
2284 *-*-*) ;;
2285 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2286 echo "$as_me: error: invalid value of canonical build" >&2;}
2287 { (exit 1); exit 1; }; };;
2288 esac
2289 build=$ac_cv_build
2290 ac_save_IFS=$IFS; IFS='-'
2291 set x $ac_cv_build
2292 shift
2293 build_cpu=$1
2294 build_vendor=$2
2295 shift; shift
2296 # Remember, the first character of IFS is used to create $*,
2297 # except with old shells:
2298 build_os=$*
2299 IFS=$ac_save_IFS
2300 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2303 { echo "$as_me:$LINENO: checking host system type" >&5
2304 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2305 if test "${ac_cv_host+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308 if test "x$host_alias" = x; then
2309 ac_cv_host=$ac_cv_build
2310 else
2311 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2312 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2313 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2314 { (exit 1); exit 1; }; }
2318 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2319 echo "${ECHO_T}$ac_cv_host" >&6; }
2320 case $ac_cv_host in
2321 *-*-*) ;;
2322 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2323 echo "$as_me: error: invalid value of canonical host" >&2;}
2324 { (exit 1); exit 1; }; };;
2325 esac
2326 host=$ac_cv_host
2327 ac_save_IFS=$IFS; IFS='-'
2328 set x $ac_cv_host
2329 shift
2330 host_cpu=$1
2331 host_vendor=$2
2332 shift; shift
2333 # Remember, the first character of IFS is used to create $*,
2334 # except with old shells:
2335 host_os=$*
2336 IFS=$ac_save_IFS
2337 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2340 canonical=$host
2341 configuration=${host_alias-${build_alias-$host}}
2345 ### If you add support for a new configuration, add code to this
2346 ### switch statement to recognize your configuration name and select
2347 ### the appropriate operating system and machine description files.
2349 ### You would hope that you could choose an m/*.h file pretty much
2350 ### based on the machine portion of the configuration name, and an s-
2351 ### file based on the operating system portion. However, it turns out
2352 ### that each m/*.h file is pretty manufacturer-specific - for
2353 ### example hp9000s300.h is a 68000 machine;
2354 ### mips.h, pmax.h are all MIPS
2355 ### machines. So we basically have to have a special case for each
2356 ### configuration name.
2358 ### As far as handling version numbers on operating systems is
2359 ### concerned, make sure things will fail in a fixable way. If
2360 ### /etc/MACHINES doesn't say anything about version numbers, be
2361 ### prepared to handle anything reasonably. If version numbers
2362 ### matter, be sure /etc/MACHINES says something about it.
2364 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2365 ### "System V Release 4"; he writes, "The old convention encouraged
2366 ### confusion between `system' and `release' levels'."
2368 machine='' opsys='' unported=no
2369 case "${canonical}" in
2371 ## FreeBSD ports
2372 *-*-freebsd* )
2373 opsys=freebsd
2374 case "${canonical}" in
2375 alpha*-*-freebsd*) machine=alpha ;;
2376 arm*-*-freebsd*) machine=arm ;;
2377 ia64-*-freebsd*) machine=ia64 ;;
2378 sparc64-*-freebsd*) machine=sparc ;;
2379 powerpc-*-freebsd*) machine=macppc ;;
2380 i[3456]86-*-freebsd*) machine=intel386 ;;
2381 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2382 esac
2385 ## FreeBSD kernel + glibc based userland
2386 *-*-kfreebsd*gnu* )
2387 opsys=gnu-kfreebsd
2388 case "${canonical}" in
2389 alpha*-*-kfreebsd*) machine=alpha ;;
2390 ia64-*-kfreebsd*) machine=ia64 ;;
2391 sparc64-*-kfreebsd*) machine=sparc ;;
2392 powerpc-*-kfreebsd*) machine=macppc ;;
2393 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2394 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2395 esac
2398 ## NetBSD ports
2399 *-*-netbsd* )
2400 opsys=netbsd
2401 if test -f /usr/lib/crti.o; then
2403 cat >>confdefs.h <<\_ACEOF
2404 #define HAVE_CRTIN
2405 _ACEOF
2409 case "${canonical}" in
2410 alpha*-*-netbsd*) machine=alpha ;;
2411 i[3456]86-*-netbsd*) machine=intel386 ;;
2412 m68k-*-netbsd*)
2413 # This is somewhat bogus.
2414 machine=hp9000s300 ;;
2415 mips-*-netbsd*) machine=pmax ;;
2416 mipsel-*-netbsd*) machine=pmax ;;
2417 mipseb-*-netbsd*) machine=pmax ;;
2418 powerpc-*-netbsd*) machine=macppc ;;
2419 sparc*-*-netbsd*) machine=sparc ;;
2420 vax-*-netbsd*) machine=vax ;;
2421 arm-*-netbsd*) machine=arm ;;
2422 x86_64-*-netbsd*) machine=amdx86-64 ;;
2423 hppa-*-netbsd*) machine=hp800 ;;
2424 esac
2427 ## OpenBSD ports
2428 *-*-openbsd* )
2429 opsys=openbsd
2430 case "${canonical}" in
2431 alpha*-*-openbsd*) machine=alpha ;;
2432 arm-*-openbsd*) machine=arm ;;
2433 hppa-*-openbsd*) machine=hp9000s300 ;;
2434 i386-*-openbsd*) machine=intel386 ;;
2435 m68k-*-openbsd*) machine=hp9000s300 ;;
2436 powerpc-*-openbsd*) machine=macppc ;;
2437 sparc*-*-openbsd*) machine=sparc ;;
2438 vax-*-openbsd*) machine=vax ;;
2439 x86_64-*-openbsd*) machine=amdx86-64 ;;
2440 esac
2443 ## LynxOS ports
2444 *-*-lynxos* )
2445 opsys=lynxos
2446 case "${canonical}" in
2447 i[3456]86-*-lynxos*) machine=intel386 ;;
2448 powerpc-*-lynxos*) machine=powerpc ;;
2449 esac
2452 ## BSDI ports
2453 *-*-bsdi* )
2454 opsys=bsdi
2455 case "${canonical}" in
2456 i[345]86-*-bsdi*) machine=intel386 ;;
2457 sparc-*-bsdi*) machine=sparc ;;
2458 powerpc-*-bsdi*) machine=macppc ;;
2459 esac
2460 case "${canonical}" in
2461 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2462 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2463 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2464 *-*-bsdi3* ) opsys=bsdos3 ;;
2465 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2466 esac
2469 alpha*-*-linux-gnu* )
2470 machine=alpha opsys=gnu-linux
2473 arm*-*-linux-gnu* )
2474 machine=arm opsys=gnu-linux
2477 ## Apple Darwin / Mac OS X
2478 *-apple-darwin* )
2479 case "${canonical}" in
2480 i[3456]86-* ) machine=intel386 ;;
2481 powerpc-* ) machine=powermac ;;
2482 * ) unported=yes ;;
2483 esac
2484 opsys=darwin
2485 # Define CPP as follows to make autoconf work correctly.
2486 CPP="${CC-cc} -E -no-cpp-precomp"
2487 # Use fink packages if available.
2488 if test -d /sw/include && test -d /sw/lib; then
2489 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2490 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2491 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2495 ## Cubix QBx/386
2496 i[3456]86-cubix-sysv* )
2497 machine=intel386 opsys=usg5-3
2500 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2501 machine=pmax opsys=bsd4-2
2503 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2504 machine=pmax opsys=bsd4-3
2506 mips-dec-ultrix* )
2507 machine=pmax opsys=ultrix4-3
2509 ## HP 9000 series 200 or 300
2510 m68*-hp-bsd* )
2511 machine=hp9000s300 opsys=bsd4-3
2513 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2514 m68*-hp-hpux* )
2515 case "`uname -r`" in
2516 ## Someone's system reports A.B8.05 for this.
2517 ## I wonder what other possibilities there are.
2518 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2519 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2520 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2521 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2522 *) machine=hp9000s300 opsys=hpux ;;
2523 esac
2526 ## HP 9000 series 700 and 800, running HP/UX
2527 hppa*-hp-hpux7* )
2528 machine=hp800 opsys=hpux
2530 hppa*-hp-hpux8* )
2531 machine=hp800 opsys=hpux8
2533 hppa*-hp-hpux9shr* )
2534 machine=hp800 opsys=hpux9shr
2536 hppa*-hp-hpux9* )
2537 machine=hp800 opsys=hpux9
2539 hppa*-hp-hpux10.2* )
2540 machine=hp800 opsys=hpux10-20
2542 hppa*-hp-hpux10* )
2543 machine=hp800 opsys=hpux10
2545 hppa*-hp-hpux1[1-9]* )
2546 machine=hp800 opsys=hpux11
2547 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2550 hppa*-*-linux-gnu* )
2551 machine=hp800 opsys=gnu-linux
2554 ## HP 9000 series 700 and 800, running HP/UX
2555 hppa*-hp-hpux* )
2556 ## Cross-compilation? Nah!
2557 case "`uname -r`" in
2558 ## Someone's system reports A.B8.05 for this.
2559 ## I wonder what other possibilities there are.
2560 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2561 *.08.* ) machine=hp800 opsys=hpux8 ;;
2562 *.09.* ) machine=hp800 opsys=hpux9 ;;
2563 *) machine=hp800 opsys=hpux10 ;;
2564 esac
2566 hppa*-*-nextstep* )
2567 machine=hp800 opsys=nextstep
2570 ## IBM machines
2571 i370-ibm-aix*)
2572 machine=ibm370aix opsys=usg5-3
2574 s390-*-linux-gnu* )
2575 machine=ibms390 opsys=gnu-linux
2577 s390x-*-linux-gnu* )
2578 machine=ibms390x opsys=gnu-linux
2580 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2581 machine=ibmrs6000 opsys=aix3-1
2583 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2584 machine=ibmrs6000 opsys=aix3-2-5
2586 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2587 machine=ibmrs6000 opsys=aix4-1
2589 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2590 machine=ibmrs6000 opsys=aix4-2
2592 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2593 machine=ibmrs6000 opsys=aix4-2
2595 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2596 machine=ibmrs6000 opsys=aix4-2
2598 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2599 machine=ibmrs6000 opsys=aix4-2
2601 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2602 machine=ibmrs6000 opsys=aix4
2604 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2605 machine=ibmrs6000 opsys=aix4-1
2607 rs6000-ibm-aix* | powerpc-ibm-aix* )
2608 machine=ibmrs6000 opsys=aix3-2
2611 ## Prime EXL
2612 i[3456]86-prime-sysv* )
2613 machine=i386 opsys=usg5-3
2616 ## ncr machine running svr4.3.
2617 i[3456]86-ncr-sysv4.3 )
2618 machine=ncr386 opsys=usg5-4-3
2621 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2622 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2623 i[3456]86-ncr-sysv* )
2624 machine=ncr386 opsys=usg5-4-2
2627 ## Macintosh PowerPC
2628 powerpc*-*-linux-gnu* )
2629 machine=macppc opsys=gnu-linux
2632 ## Workstations sold by MIPS
2633 ## This is not necessarily all workstations using the MIPS processor -
2634 ## Irises are produced by SGI, and DECstations by DEC.
2636 mips-mips-bsd* )
2637 machine=mips opsys=bsd4-3
2639 mips-mips-* )
2640 machine=mips opsys=usg5-2-2
2643 ## NeXT
2644 m68*-next-* | m68k-*-nextstep* )
2645 machine=m68k opsys=nextstep
2648 ## NEC EWS4800
2649 mips-nec-sysv4*)
2650 machine=ews4800 opsys=ux4800
2653 ## Siemens Nixdorf
2654 mips-siemens-sysv* | mips-sni-sysv*)
2655 machine=mips-siemens opsys=usg5-4
2656 NON_GNU_CC=/usr/ccs/bin/cc
2657 NON_GNU_CPP=/usr/ccs/lib/cpp
2660 ## Silicon Graphics machines
2661 ## Iris 4D
2662 mips-sgi-irix6.5 )
2663 machine=iris4d opsys=irix6-5
2664 # Without defining _LANGUAGE_C, things get masked out in the headers
2665 # so that, for instance, grepping for `free' in stdlib.h fails and
2666 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2667 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2668 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2671 ## Suns
2672 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2673 machine=sparc opsys=gnu-linux
2676 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2677 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2678 | rs6000-*-solaris2*)
2679 case "${canonical}" in
2680 i[3456]86-*-* ) machine=intel386 ;;
2681 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2682 powerpcle* ) machine=powerpcle ;;
2683 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2684 sparc* ) machine=sparc ;;
2685 * ) unported=yes ;;
2686 esac
2687 case "${canonical}" in
2688 *-sunos5.3* | *-solaris2.3* )
2689 opsys=sol2-3
2690 NON_GNU_CPP=/usr/ccs/lib/cpp
2692 *-sunos5.4* | *-solaris2.4* )
2693 opsys=sol2-4
2694 NON_GNU_CPP=/usr/ccs/lib/cpp
2695 RANLIB="ar -ts"
2697 *-sunos5.5* | *-solaris2.5* )
2698 opsys=sol2-5
2699 NON_GNU_CPP=/usr/ccs/lib/cpp
2700 RANLIB="ar -ts"
2702 *-sunos5.6* | *-solaris2.6* )
2703 opsys=sol2-6
2704 NON_GNU_CPP=/usr/ccs/lib/cpp
2705 RANLIB="ar -ts"
2707 *-sunos5* | *-solaris* )
2708 opsys=sol2-6
2709 emacs_check_sunpro_c=yes
2710 NON_GNU_CPP=/usr/ccs/lib/cpp
2712 * ) opsys=bsd4-2 ;;
2713 esac
2714 ## Watch out for a compiler that we know will not work.
2715 case "${canonical}" in
2716 *-solaris* | *-sunos5* )
2717 if [ "x$CC" = x/usr/ucb/cc ]; then
2718 ## /usr/ucb/cc doesn't work;
2719 ## we should find some other compiler that does work.
2720 unset CC
2723 *) ;;
2724 esac
2726 sparc-*-nextstep* )
2727 machine=sparc opsys=nextstep
2730 ## Tandem Integrity S2
2731 mips-tandem-sysv* )
2732 machine=tandem-s2 opsys=usg5-3
2735 ## Vaxen.
2736 vax-dec-* )
2737 machine=vax
2738 case "${canonical}" in
2739 *-bsd4.1* ) opsys=bsd4-1 ;;
2740 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2741 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2742 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2743 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2744 *-vms* ) opsys=vms ;;
2745 * ) unported=yes
2746 esac
2749 ## IA-64
2750 ia64*-*-linux* )
2751 machine=ia64 opsys=gnu-linux
2754 ## Intel 386 machines where we don't care about the manufacturer
2755 i[3456]86-*-* )
2756 machine=intel386
2757 case "${canonical}" in
2758 *-cygwin ) opsys=cygwin ;;
2759 *-darwin* ) opsys=darwin
2760 CPP="${CC-cc} -E -no-cpp-precomp"
2762 *-linux-gnu* ) opsys=gnu-linux ;;
2763 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2764 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2765 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2766 *-386bsd* ) opsys=386bsd ;;
2767 *-nextstep* ) opsys=nextstep ;;
2768 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2769 esac
2772 ## m68k Linux-based GNU system
2773 m68k-*-linux-gnu* )
2774 machine=m68k opsys=gnu-linux
2777 ## Mips Linux-based GNU system
2778 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2779 machine=mips opsys=gnu-linux
2782 ## UXP/DS
2783 sparc-fujitsu-sysv4* )
2784 machine=sparc opsys=uxpds
2785 NON_GNU_CPP=/usr/ccs/lib/cpp
2786 RANLIB="ar -ts"
2789 ## AMD x86-64 Linux-based GNU system
2790 x86_64-*-linux-gnu* )
2791 machine=amdx86-64 opsys=gnu-linux
2794 ## Tensilica Xtensa Linux-based GNU system
2795 xtensa*-*-linux-gnu* )
2796 machine=xtensa opsys=gnu-linux
2800 unported=yes
2802 esac
2804 ### If the code above didn't choose an operating system, just choose
2805 ### an operating system based on the configuration name. You really
2806 ### only want to use this when you have no idea what the right
2807 ### operating system is; if you know what operating systems a machine
2808 ### runs, it's cleaner to make it explicit in the case statement
2809 ### above.
2810 if test x"${opsys}" = x; then
2811 case "${canonical}" in
2812 *-gnu* ) opsys=gnu ;;
2813 *-bsd4.[01] ) opsys=bsd4-1 ;;
2814 *-bsd4.2 ) opsys=bsd4-2 ;;
2815 *-bsd4.3 ) opsys=bsd4-3 ;;
2816 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2817 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2818 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2819 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2820 *-sysv4.2uw* ) opsys=unixware ;;
2821 *-sysv5uw* ) opsys=unixware ;;
2822 *-sysv5OpenUNIX* ) opsys=unixware ;;
2823 *-sysv4.1* | *-sysvr4.1* )
2824 NON_GNU_CPP=/usr/lib/cpp
2825 opsys=usg5-4 ;;
2826 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2827 if [ x$NON_GNU_CPP = x ]; then
2828 if [ -f /usr/ccs/lib/cpp ]; then
2829 NON_GNU_CPP=/usr/ccs/lib/cpp
2830 else
2831 NON_GNU_CPP=/lib/cpp
2834 opsys=usg5-4-2 ;;
2835 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2837 unported=yes
2839 esac
2842 ### Tests for sytems that we beleive are obsolete and should be desupported.
2844 case "${machine}" in
2845 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2 )
2846 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2847 echo "and it is planned to be desupported in the next version of Emacs"
2848 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2849 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2850 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2851 exit 33
2853 esac
2855 case "${opsys}" in
2856 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 | 386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | hpux10-20 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv )
2857 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2858 echo "and it is planned to be desupported in the next version of Emacs"
2859 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2860 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2861 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2862 exit 44
2864 esac
2868 if test $unported = yes; then
2869 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2870 Check \`etc/MACHINES' for recognized configuration names." >&5
2871 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2872 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2873 { (exit 1); exit 1; }; }
2876 machfile="m/${machine}.h"
2877 opsysfile="s/${opsys}.h"
2880 #### Choose a compiler.
2881 test -n "$CC" && cc_specified=yes
2883 # Save the value of CFLAGS that the user specified.
2884 SPECIFIED_CFLAGS="$CFLAGS"
2886 ac_ext=c
2887 ac_cpp='$CPP $CPPFLAGS'
2888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2891 if test -n "$ac_tool_prefix"; then
2892 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2893 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2896 if test "${ac_cv_prog_CC+set}" = set; then
2897 echo $ECHO_N "(cached) $ECHO_C" >&6
2898 else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 break 2
2913 done
2914 done
2915 IFS=$as_save_IFS
2919 CC=$ac_cv_prog_CC
2920 if test -n "$CC"; then
2921 { echo "$as_me:$LINENO: result: $CC" >&5
2922 echo "${ECHO_T}$CC" >&6; }
2923 else
2924 { echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6; }
2930 if test -z "$ac_cv_prog_CC"; then
2931 ac_ct_CC=$CC
2932 # Extract the first word of "gcc", so it can be a program name with args.
2933 set dummy gcc; ac_word=$2
2934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2936 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2937 echo $ECHO_N "(cached) $ECHO_C" >&6
2938 else
2939 if test -n "$ac_ct_CC"; then
2940 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2945 IFS=$as_save_IFS
2946 test -z "$as_dir" && as_dir=.
2947 for ac_exec_ext in '' $ac_executable_extensions; do
2948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949 ac_cv_prog_ac_ct_CC="gcc"
2950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 break 2
2953 done
2954 done
2955 IFS=$as_save_IFS
2959 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2960 if test -n "$ac_ct_CC"; then
2961 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2962 echo "${ECHO_T}$ac_ct_CC" >&6; }
2963 else
2964 { echo "$as_me:$LINENO: result: no" >&5
2965 echo "${ECHO_T}no" >&6; }
2968 if test "x$ac_ct_CC" = x; then
2969 CC=""
2970 else
2971 case $cross_compiling:$ac_tool_warned in
2972 yes:)
2973 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2974 whose name does not start with the host triplet. If you think this
2975 configuration is useful to you, please write to autoconf@gnu.org." >&5
2976 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2977 whose name does not start with the host triplet. If you think this
2978 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2979 ac_tool_warned=yes ;;
2980 esac
2981 CC=$ac_ct_CC
2983 else
2984 CC="$ac_cv_prog_CC"
2987 if test -z "$CC"; then
2988 if test -n "$ac_tool_prefix"; then
2989 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2990 set dummy ${ac_tool_prefix}cc; ac_word=$2
2991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_CC+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_CC="${ac_tool_prefix}cc"
3007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3010 done
3011 done
3012 IFS=$as_save_IFS
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018 { echo "$as_me:$LINENO: result: $CC" >&5
3019 echo "${ECHO_T}$CC" >&6; }
3020 else
3021 { echo "$as_me:$LINENO: result: no" >&5
3022 echo "${ECHO_T}no" >&6; }
3028 if test -z "$CC"; then
3029 # Extract the first word of "cc", so it can be a program name with args.
3030 set dummy cc; ac_word=$2
3031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3033 if test "${ac_cv_prog_CC+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 else
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3038 else
3039 ac_prog_rejected=no
3040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041 for as_dir in $PATH
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3047 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3048 ac_prog_rejected=yes
3049 continue
3051 ac_cv_prog_CC="cc"
3052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053 break 2
3055 done
3056 done
3057 IFS=$as_save_IFS
3059 if test $ac_prog_rejected = yes; then
3060 # We found a bogon in the path, so make sure we never use it.
3061 set dummy $ac_cv_prog_CC
3062 shift
3063 if test $# != 0; then
3064 # We chose a different compiler from the bogus one.
3065 # However, it has the same basename, so the bogon will be chosen
3066 # first if we set CC to just the basename; use the full file name.
3067 shift
3068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3073 CC=$ac_cv_prog_CC
3074 if test -n "$CC"; then
3075 { echo "$as_me:$LINENO: result: $CC" >&5
3076 echo "${ECHO_T}$CC" >&6; }
3077 else
3078 { echo "$as_me:$LINENO: result: no" >&5
3079 echo "${ECHO_T}no" >&6; }
3084 if test -z "$CC"; then
3085 if test -n "$ac_tool_prefix"; then
3086 for ac_prog in cl.exe
3088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3090 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3092 if test "${ac_cv_prog_CC+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097 else
3098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099 for as_dir in $PATH
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 break 2
3109 done
3110 done
3111 IFS=$as_save_IFS
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117 { echo "$as_me:$LINENO: result: $CC" >&5
3118 echo "${ECHO_T}$CC" >&6; }
3119 else
3120 { echo "$as_me:$LINENO: result: no" >&5
3121 echo "${ECHO_T}no" >&6; }
3125 test -n "$CC" && break
3126 done
3128 if test -z "$CC"; then
3129 ac_ct_CC=$CC
3130 for ac_prog in cl.exe
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133 set dummy $ac_prog; ac_word=$2
3134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3136 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3137 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 else
3139 if test -n "$ac_ct_CC"; then
3140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3141 else
3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143 for as_dir in $PATH
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
3147 for ac_exec_ext in '' $ac_executable_extensions; do
3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3149 ac_cv_prog_ac_ct_CC="$ac_prog"
3150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3151 break 2
3153 done
3154 done
3155 IFS=$as_save_IFS
3159 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3160 if test -n "$ac_ct_CC"; then
3161 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3162 echo "${ECHO_T}$ac_ct_CC" >&6; }
3163 else
3164 { echo "$as_me:$LINENO: result: no" >&5
3165 echo "${ECHO_T}no" >&6; }
3169 test -n "$ac_ct_CC" && break
3170 done
3172 if test "x$ac_ct_CC" = x; then
3173 CC=""
3174 else
3175 case $cross_compiling:$ac_tool_warned in
3176 yes:)
3177 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3178 whose name does not start with the host triplet. If you think this
3179 configuration is useful to you, please write to autoconf@gnu.org." >&5
3180 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3181 whose name does not start with the host triplet. If you think this
3182 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3183 ac_tool_warned=yes ;;
3184 esac
3185 CC=$ac_ct_CC
3192 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3193 See \`config.log' for more details." >&5
3194 echo "$as_me: error: no acceptable C compiler found in \$PATH
3195 See \`config.log' for more details." >&2;}
3196 { (exit 1); exit 1; }; }
3198 # Provide some information about the compiler.
3199 echo "$as_me:$LINENO: checking for C compiler version" >&5
3200 ac_compiler=`set X $ac_compile; echo $2`
3201 { (ac_try="$ac_compiler --version >&5"
3202 case "(($ac_try" in
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compiler --version >&5") 2>&5
3208 ac_status=$?
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }
3211 { (ac_try="$ac_compiler -v >&5"
3212 case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compiler -v >&5") 2>&5
3218 ac_status=$?
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }
3221 { (ac_try="$ac_compiler -V >&5"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compiler -V >&5") 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h. */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3240 main ()
3244 return 0;
3246 _ACEOF
3247 ac_clean_files_save=$ac_clean_files
3248 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3249 # Try to create an executable without -o first, disregard a.out.
3250 # It will help us diagnose broken compilers, and finding out an intuition
3251 # of exeext.
3252 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3253 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3254 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3256 # List of possible output files, starting from the most likely.
3257 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3258 # only as a last resort. b.out is created by i960 compilers.
3259 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3261 # The IRIX 6 linker writes into existing files which may not be
3262 # executable, retaining their permissions. Remove them first so a
3263 # subsequent execution test works.
3264 ac_rmfiles=
3265 for ac_file in $ac_files
3267 case $ac_file in
3268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3269 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3270 esac
3271 done
3272 rm -f $ac_rmfiles
3274 if { (ac_try="$ac_link_default"
3275 case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278 esac
3279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3280 (eval "$ac_link_default") 2>&5
3281 ac_status=$?
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; then
3284 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3285 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3286 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3287 # so that the user can short-circuit this test for compilers unknown to
3288 # Autoconf.
3289 for ac_file in $ac_files ''
3291 test -f "$ac_file" || continue
3292 case $ac_file in
3293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3295 [ab].out )
3296 # We found the default executable, but exeext='' is most
3297 # certainly right.
3298 break;;
3299 *.* )
3300 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3301 then :; else
3302 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3304 # We set ac_cv_exeext here because the later test for it is not
3305 # safe: cross compilers may not add the suffix if given an `-o'
3306 # argument, so we may need to know it at that point already.
3307 # Even if this section looks crufty: it has the advantage of
3308 # actually working.
3309 break;;
3311 break;;
3312 esac
3313 done
3314 test "$ac_cv_exeext" = no && ac_cv_exeext=
3316 else
3317 ac_file=''
3320 { echo "$as_me:$LINENO: result: $ac_file" >&5
3321 echo "${ECHO_T}$ac_file" >&6; }
3322 if test -z "$ac_file"; then
3323 echo "$as_me: failed program was:" >&5
3324 sed 's/^/| /' conftest.$ac_ext >&5
3326 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3327 See \`config.log' for more details." >&5
3328 echo "$as_me: error: C compiler cannot create executables
3329 See \`config.log' for more details." >&2;}
3330 { (exit 77); exit 77; }; }
3333 ac_exeext=$ac_cv_exeext
3335 # Check that the compiler produces executables we can run. If not, either
3336 # the compiler is broken, or we cross compile.
3337 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3338 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3339 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3340 # If not cross compiling, check that we can run a simple program.
3341 if test "$cross_compiling" != yes; then
3342 if { ac_try='./$ac_file'
3343 { (case "(($ac_try" in
3344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3346 esac
3347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 cross_compiling=no
3353 else
3354 if test "$cross_compiling" = maybe; then
3355 cross_compiling=yes
3356 else
3357 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3358 If you meant to cross compile, use \`--host'.
3359 See \`config.log' for more details." >&5
3360 echo "$as_me: error: cannot run C compiled programs.
3361 If you meant to cross compile, use \`--host'.
3362 See \`config.log' for more details." >&2;}
3363 { (exit 1); exit 1; }; }
3367 { echo "$as_me:$LINENO: result: yes" >&5
3368 echo "${ECHO_T}yes" >&6; }
3370 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3371 ac_clean_files=$ac_clean_files_save
3372 # Check that the compiler produces executables we can run. If not, either
3373 # the compiler is broken, or we cross compile.
3374 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3375 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3376 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3377 echo "${ECHO_T}$cross_compiling" >&6; }
3379 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3380 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3381 if { (ac_try="$ac_link"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_link") 2>&5
3388 ac_status=$?
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); }; then
3391 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3392 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3393 # work properly (i.e., refer to `conftest.exe'), while it won't with
3394 # `rm'.
3395 for ac_file in conftest.exe conftest conftest.*; do
3396 test -f "$ac_file" || continue
3397 case $ac_file in
3398 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3399 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400 break;;
3401 * ) break;;
3402 esac
3403 done
3404 else
3405 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3406 See \`config.log' for more details." >&5
3407 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3408 See \`config.log' for more details." >&2;}
3409 { (exit 1); exit 1; }; }
3412 rm -f conftest$ac_cv_exeext
3413 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3414 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3416 rm -f conftest.$ac_ext
3417 EXEEXT=$ac_cv_exeext
3418 ac_exeext=$EXEEXT
3419 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3420 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3421 if test "${ac_cv_objext+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h. */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3432 main ()
3436 return 0;
3438 _ACEOF
3439 rm -f conftest.o conftest.obj
3440 if { (ac_try="$ac_compile"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_compile") 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; then
3450 for ac_file in conftest.o conftest.obj conftest.*; do
3451 test -f "$ac_file" || continue;
3452 case $ac_file in
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3454 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3455 break;;
3456 esac
3457 done
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3463 See \`config.log' for more details." >&5
3464 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3465 See \`config.log' for more details." >&2;}
3466 { (exit 1); exit 1; }; }
3469 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3471 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3472 echo "${ECHO_T}$ac_cv_objext" >&6; }
3473 OBJEXT=$ac_cv_objext
3474 ac_objext=$OBJEXT
3475 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3476 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3477 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480 cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h. */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3488 main ()
3490 #ifndef __GNUC__
3491 choke me
3492 #endif
3495 return 0;
3497 _ACEOF
3498 rm -f conftest.$ac_objext
3499 if { (ac_try="$ac_compile"
3500 case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_compile") 2>conftest.er1
3506 ac_status=$?
3507 grep -v '^ *+' conftest.er1 >conftest.err
3508 rm -f conftest.er1
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } && {
3512 test -z "$ac_c_werror_flag" ||
3513 test ! -s conftest.err
3514 } && test -s conftest.$ac_objext; then
3515 ac_compiler_gnu=yes
3516 else
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 ac_compiler_gnu=no
3523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3524 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3527 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3528 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3529 GCC=`test $ac_compiler_gnu = yes && echo yes`
3530 ac_test_CFLAGS=${CFLAGS+set}
3531 ac_save_CFLAGS=$CFLAGS
3532 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3533 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3534 if test "${ac_cv_prog_cc_g+set}" = set; then
3535 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 else
3537 ac_save_c_werror_flag=$ac_c_werror_flag
3538 ac_c_werror_flag=yes
3539 ac_cv_prog_cc_g=no
3540 CFLAGS="-g"
3541 cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h. */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3549 main ()
3553 return 0;
3555 _ACEOF
3556 rm -f conftest.$ac_objext
3557 if { (ac_try="$ac_compile"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563 (eval "$ac_compile") 2>conftest.er1
3564 ac_status=$?
3565 grep -v '^ *+' conftest.er1 >conftest.err
3566 rm -f conftest.er1
3567 cat conftest.err >&5
3568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569 (exit $ac_status); } && {
3570 test -z "$ac_c_werror_flag" ||
3571 test ! -s conftest.err
3572 } && test -s conftest.$ac_objext; then
3573 ac_cv_prog_cc_g=yes
3574 else
3575 echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3578 CFLAGS=""
3579 cat >conftest.$ac_ext <<_ACEOF
3580 /* confdefs.h. */
3581 _ACEOF
3582 cat confdefs.h >>conftest.$ac_ext
3583 cat >>conftest.$ac_ext <<_ACEOF
3584 /* end confdefs.h. */
3587 main ()
3591 return 0;
3593 _ACEOF
3594 rm -f conftest.$ac_objext
3595 if { (ac_try="$ac_compile"
3596 case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_compile") 2>conftest.er1
3602 ac_status=$?
3603 grep -v '^ *+' conftest.er1 >conftest.err
3604 rm -f conftest.er1
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } && {
3608 test -z "$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3610 } && test -s conftest.$ac_objext; then
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3616 ac_c_werror_flag=$ac_save_c_werror_flag
3617 CFLAGS="-g"
3618 cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h. */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3626 main ()
3630 return 0;
3632 _ACEOF
3633 rm -f conftest.$ac_objext
3634 if { (ac_try="$ac_compile"
3635 case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_compile") 2>conftest.er1
3641 ac_status=$?
3642 grep -v '^ *+' conftest.er1 >conftest.err
3643 rm -f conftest.er1
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); } && {
3647 test -z "$ac_c_werror_flag" ||
3648 test ! -s conftest.err
3649 } && test -s conftest.$ac_objext; then
3650 ac_cv_prog_cc_g=yes
3651 else
3652 echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_c_werror_flag=$ac_save_c_werror_flag
3667 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3668 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3669 if test "$ac_test_CFLAGS" = set; then
3670 CFLAGS=$ac_save_CFLAGS
3671 elif test $ac_cv_prog_cc_g = yes; then
3672 if test "$GCC" = yes; then
3673 CFLAGS="-g -O2"
3674 else
3675 CFLAGS="-g"
3677 else
3678 if test "$GCC" = yes; then
3679 CFLAGS="-O2"
3680 else
3681 CFLAGS=
3684 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3685 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3686 if test "${ac_cv_prog_cc_c89+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3688 else
3689 ac_cv_prog_cc_c89=no
3690 ac_save_CC=$CC
3691 cat >conftest.$ac_ext <<_ACEOF
3692 /* confdefs.h. */
3693 _ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3697 #include <stdarg.h>
3698 #include <stdio.h>
3699 #include <sys/types.h>
3700 #include <sys/stat.h>
3701 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3702 struct buf { int x; };
3703 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3704 static char *e (p, i)
3705 char **p;
3706 int i;
3708 return p[i];
3710 static char *f (char * (*g) (char **, int), char **p, ...)
3712 char *s;
3713 va_list v;
3714 va_start (v,p);
3715 s = g (p, va_arg (v,int));
3716 va_end (v);
3717 return s;
3720 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3721 function prototypes and stuff, but not '\xHH' hex character constants.
3722 These don't provoke an error unfortunately, instead are silently treated
3723 as 'x'. The following induces an error, until -std is added to get
3724 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3725 array size at least. It's necessary to write '\x00'==0 to get something
3726 that's true only with -std. */
3727 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3729 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3730 inside strings and character constants. */
3731 #define FOO(x) 'x'
3732 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3734 int test (int i, double x);
3735 struct s1 {int (*f) (int a);};
3736 struct s2 {int (*f) (double a);};
3737 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3738 int argc;
3739 char **argv;
3741 main ()
3743 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3745 return 0;
3747 _ACEOF
3748 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3749 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3751 CC="$ac_save_CC $ac_arg"
3752 rm -f conftest.$ac_objext
3753 if { (ac_try="$ac_compile"
3754 case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3757 esac
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_compile") 2>conftest.er1
3760 ac_status=$?
3761 grep -v '^ *+' conftest.er1 >conftest.err
3762 rm -f conftest.er1
3763 cat conftest.err >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); } && {
3766 test -z "$ac_c_werror_flag" ||
3767 test ! -s conftest.err
3768 } && test -s conftest.$ac_objext; then
3769 ac_cv_prog_cc_c89=$ac_arg
3770 else
3771 echo "$as_me: failed program was:" >&5
3772 sed 's/^/| /' conftest.$ac_ext >&5
3777 rm -f core conftest.err conftest.$ac_objext
3778 test "x$ac_cv_prog_cc_c89" != "xno" && break
3779 done
3780 rm -f conftest.$ac_ext
3781 CC=$ac_save_CC
3784 # AC_CACHE_VAL
3785 case "x$ac_cv_prog_cc_c89" in
3787 { echo "$as_me:$LINENO: result: none needed" >&5
3788 echo "${ECHO_T}none needed" >&6; } ;;
3789 xno)
3790 { echo "$as_me:$LINENO: result: unsupported" >&5
3791 echo "${ECHO_T}unsupported" >&6; } ;;
3793 CC="$CC $ac_cv_prog_cc_c89"
3794 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3795 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3796 esac
3799 ac_ext=c
3800 ac_cpp='$CPP $CPPFLAGS'
3801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3806 # On Suns, sometimes $CPP names a directory.
3807 if test -n "$CPP" && test -d "$CPP"; then
3808 CPP=
3811 ## If not using gcc, and on Solaris, and no CPP specified, see if
3812 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3813 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3814 test x"$CPP" = x; then
3815 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3816 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3818 if test "${emacs_cv_sunpro_c+set}" = set; then
3819 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 else
3821 cat >conftest.$ac_ext <<_ACEOF
3822 /* confdefs.h. */
3823 _ACEOF
3824 cat confdefs.h >>conftest.$ac_ext
3825 cat >>conftest.$ac_ext <<_ACEOF
3826 /* end confdefs.h. */
3829 main ()
3831 #ifndef __SUNPRO_C
3832 fail;
3833 #endif
3836 return 0;
3838 _ACEOF
3839 rm -f conftest.$ac_objext conftest$ac_exeext
3840 if { (ac_try="$ac_link"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_link") 2>conftest.er1
3847 ac_status=$?
3848 grep -v '^ *+' conftest.er1 >conftest.err
3849 rm -f conftest.er1
3850 cat conftest.err >&5
3851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852 (exit $ac_status); } && {
3853 test -z "$ac_c_werror_flag" ||
3854 test ! -s conftest.err
3855 } && test -s conftest$ac_exeext &&
3856 $as_test_x conftest$ac_exeext; then
3857 emacs_cv_sunpro_c=yes
3858 else
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 emacs_cv_sunpro_c=no
3865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3866 conftest$ac_exeext conftest.$ac_ext
3869 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3870 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3872 if test x"$emacs_cv_sunpro_c" = xyes; then
3873 NON_GNU_CPP="$CC -E -Xs"
3877 #### Some systems specify a CPP to use unless we are using GCC.
3878 #### Now that we know whether we are using GCC, we can decide whether
3879 #### to use that one.
3880 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3881 then
3882 CPP="$NON_GNU_CPP"
3885 #### Some systems specify a CC to use unless we are using GCC.
3886 #### Now that we know whether we are using GCC, we can decide whether
3887 #### to use that one.
3888 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3889 test x$cc_specified != xyes
3890 then
3891 CC="$NON_GNU_CC"
3894 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3895 then
3896 CC="$CC $GCC_TEST_OPTIONS"
3899 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3900 then
3901 CC="$CC $NON_GCC_TEST_OPTIONS"
3904 ac_ext=c
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3910 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3911 # On Suns, sometimes $CPP names a directory.
3912 if test -n "$CPP" && test -d "$CPP"; then
3913 CPP=
3915 if test -z "$CPP"; then
3916 if test "${ac_cv_prog_CPP+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 # Double quotes because CPP needs to be expanded
3920 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3922 ac_preproc_ok=false
3923 for ac_c_preproc_warn_flag in '' yes
3925 # Use a header file that comes with gcc, so configuring glibc
3926 # with a fresh cross-compiler works.
3927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3928 # <limits.h> exists even on freestanding compilers.
3929 # On the NeXT, cc -E runs the code through the compiler's parser,
3930 # not just through cpp. "Syntax error" is here to catch this case.
3931 cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h. */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3937 #ifdef __STDC__
3938 # include <limits.h>
3939 #else
3940 # include <assert.h>
3941 #endif
3942 Syntax error
3943 _ACEOF
3944 if { (ac_try="$ac_cpp conftest.$ac_ext"
3945 case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } >/dev/null && {
3957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3958 test ! -s conftest.err
3959 }; then
3961 else
3962 echo "$as_me: failed program was:" >&5
3963 sed 's/^/| /' conftest.$ac_ext >&5
3965 # Broken: fails on valid input.
3966 continue
3969 rm -f conftest.err conftest.$ac_ext
3971 # OK, works on sane cases. Now check whether nonexistent headers
3972 # can be detected and how.
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h. */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h. */
3979 #include <ac_nonexistent.h>
3980 _ACEOF
3981 if { (ac_try="$ac_cpp conftest.$ac_ext"
3982 case "(($ac_try" in
3983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3984 *) ac_try_echo=$ac_try;;
3985 esac
3986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3988 ac_status=$?
3989 grep -v '^ *+' conftest.er1 >conftest.err
3990 rm -f conftest.er1
3991 cat conftest.err >&5
3992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3993 (exit $ac_status); } >/dev/null && {
3994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3995 test ! -s conftest.err
3996 }; then
3997 # Broken: success on invalid input.
3998 continue
3999 else
4000 echo "$as_me: failed program was:" >&5
4001 sed 's/^/| /' conftest.$ac_ext >&5
4003 # Passes both tests.
4004 ac_preproc_ok=:
4005 break
4008 rm -f conftest.err conftest.$ac_ext
4010 done
4011 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4012 rm -f conftest.err conftest.$ac_ext
4013 if $ac_preproc_ok; then
4014 break
4017 done
4018 ac_cv_prog_CPP=$CPP
4021 CPP=$ac_cv_prog_CPP
4022 else
4023 ac_cv_prog_CPP=$CPP
4025 { echo "$as_me:$LINENO: result: $CPP" >&5
4026 echo "${ECHO_T}$CPP" >&6; }
4027 ac_preproc_ok=false
4028 for ac_c_preproc_warn_flag in '' yes
4030 # Use a header file that comes with gcc, so configuring glibc
4031 # with a fresh cross-compiler works.
4032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4033 # <limits.h> exists even on freestanding compilers.
4034 # On the NeXT, cc -E runs the code through the compiler's parser,
4035 # not just through cpp. "Syntax error" is here to catch this case.
4036 cat >conftest.$ac_ext <<_ACEOF
4037 /* confdefs.h. */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h. */
4042 #ifdef __STDC__
4043 # include <limits.h>
4044 #else
4045 # include <assert.h>
4046 #endif
4047 Syntax error
4048 _ACEOF
4049 if { (ac_try="$ac_cpp conftest.$ac_ext"
4050 case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053 esac
4054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4055 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4056 ac_status=$?
4057 grep -v '^ *+' conftest.er1 >conftest.err
4058 rm -f conftest.er1
4059 cat conftest.err >&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); } >/dev/null && {
4062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4063 test ! -s conftest.err
4064 }; then
4066 else
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4070 # Broken: fails on valid input.
4071 continue
4074 rm -f conftest.err conftest.$ac_ext
4076 # OK, works on sane cases. Now check whether nonexistent headers
4077 # can be detected and how.
4078 cat >conftest.$ac_ext <<_ACEOF
4079 /* confdefs.h. */
4080 _ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4084 #include <ac_nonexistent.h>
4085 _ACEOF
4086 if { (ac_try="$ac_cpp conftest.$ac_ext"
4087 case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4090 esac
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4093 ac_status=$?
4094 grep -v '^ *+' conftest.er1 >conftest.err
4095 rm -f conftest.er1
4096 cat conftest.err >&5
4097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4098 (exit $ac_status); } >/dev/null && {
4099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4100 test ! -s conftest.err
4101 }; then
4102 # Broken: success on invalid input.
4103 continue
4104 else
4105 echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 # Passes both tests.
4109 ac_preproc_ok=:
4110 break
4113 rm -f conftest.err conftest.$ac_ext
4115 done
4116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4117 rm -f conftest.err conftest.$ac_ext
4118 if $ac_preproc_ok; then
4120 else
4121 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4122 See \`config.log' for more details." >&5
4123 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4124 See \`config.log' for more details." >&2;}
4125 { (exit 1); exit 1; }; }
4128 ac_ext=c
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4135 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4136 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4137 if test "${ac_cv_path_GREP+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 # Extract the first word of "grep ggrep" to use in msg output
4141 if test -z "$GREP"; then
4142 set dummy grep ggrep; ac_prog_name=$2
4143 if test "${ac_cv_path_GREP+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 ac_path_GREP_found=false
4147 # Loop through the user's path and test for each of PROGNAME-LIST
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151 IFS=$as_save_IFS
4152 test -z "$as_dir" && as_dir=.
4153 for ac_prog in grep ggrep; do
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4156 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4157 # Check for GNU ac_path_GREP and select it if it is found.
4158 # Check for GNU $ac_path_GREP
4159 case `"$ac_path_GREP" --version 2>&1` in
4160 *GNU*)
4161 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4163 ac_count=0
4164 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4165 while :
4167 cat "conftest.in" "conftest.in" >"conftest.tmp"
4168 mv "conftest.tmp" "conftest.in"
4169 cp "conftest.in" "conftest.nl"
4170 echo 'GREP' >> "conftest.nl"
4171 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4173 ac_count=`expr $ac_count + 1`
4174 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4175 # Best one so far, save it but keep looking for a better one
4176 ac_cv_path_GREP="$ac_path_GREP"
4177 ac_path_GREP_max=$ac_count
4179 # 10*(2^10) chars as input seems more than enough
4180 test $ac_count -gt 10 && break
4181 done
4182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4183 esac
4186 $ac_path_GREP_found && break 3
4187 done
4188 done
4190 done
4191 IFS=$as_save_IFS
4196 GREP="$ac_cv_path_GREP"
4197 if test -z "$GREP"; then
4198 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4199 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4200 { (exit 1); exit 1; }; }
4203 else
4204 ac_cv_path_GREP=$GREP
4209 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4210 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4211 GREP="$ac_cv_path_GREP"
4214 { echo "$as_me:$LINENO: checking for egrep" >&5
4215 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4216 if test "${ac_cv_path_EGREP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 else
4219 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4220 then ac_cv_path_EGREP="$GREP -E"
4221 else
4222 # Extract the first word of "egrep" to use in msg output
4223 if test -z "$EGREP"; then
4224 set dummy egrep; ac_prog_name=$2
4225 if test "${ac_cv_path_EGREP+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 ac_path_EGREP_found=false
4229 # Loop through the user's path and test for each of PROGNAME-LIST
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_prog in egrep; do
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4238 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4239 # Check for GNU ac_path_EGREP and select it if it is found.
4240 # Check for GNU $ac_path_EGREP
4241 case `"$ac_path_EGREP" --version 2>&1` in
4242 *GNU*)
4243 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4245 ac_count=0
4246 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4247 while :
4249 cat "conftest.in" "conftest.in" >"conftest.tmp"
4250 mv "conftest.tmp" "conftest.in"
4251 cp "conftest.in" "conftest.nl"
4252 echo 'EGREP' >> "conftest.nl"
4253 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4255 ac_count=`expr $ac_count + 1`
4256 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4257 # Best one so far, save it but keep looking for a better one
4258 ac_cv_path_EGREP="$ac_path_EGREP"
4259 ac_path_EGREP_max=$ac_count
4261 # 10*(2^10) chars as input seems more than enough
4262 test $ac_count -gt 10 && break
4263 done
4264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4265 esac
4268 $ac_path_EGREP_found && break 3
4269 done
4270 done
4272 done
4273 IFS=$as_save_IFS
4278 EGREP="$ac_cv_path_EGREP"
4279 if test -z "$EGREP"; then
4280 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4281 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4282 { (exit 1); exit 1; }; }
4285 else
4286 ac_cv_path_EGREP=$EGREP
4292 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4293 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4294 EGREP="$ac_cv_path_EGREP"
4298 { echo "$as_me:$LINENO: checking for AIX" >&5
4299 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h. */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 #ifdef _AIX
4308 #endif
4310 _ACEOF
4311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4312 $EGREP "yes" >/dev/null 2>&1; then
4313 { echo "$as_me:$LINENO: result: yes" >&5
4314 echo "${ECHO_T}yes" >&6; }
4315 cat >>confdefs.h <<\_ACEOF
4316 #define _ALL_SOURCE 1
4317 _ACEOF
4319 else
4320 { echo "$as_me:$LINENO: result: no" >&5
4321 echo "${ECHO_T}no" >&6; }
4323 rm -f conftest*
4327 cat >>confdefs.h <<\_ACEOF
4328 #define _GNU_SOURCE 1
4329 _ACEOF
4333 ### Use -Wno-pointer-sign if the compiler supports it
4334 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4335 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4336 SAVE_CFLAGS="$CFLAGS"
4337 CFLAGS="$CFLAGS -Wno-pointer-sign"
4338 cat >conftest.$ac_ext <<_ACEOF
4339 /* confdefs.h. */
4340 _ACEOF
4341 cat confdefs.h >>conftest.$ac_ext
4342 cat >>conftest.$ac_ext <<_ACEOF
4343 /* end confdefs.h. */
4346 main ()
4350 return 0;
4352 _ACEOF
4353 rm -f conftest.$ac_objext
4354 if { (ac_try="$ac_compile"
4355 case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358 esac
4359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4360 (eval "$ac_compile") 2>conftest.er1
4361 ac_status=$?
4362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest.$ac_objext; then
4370 has_option=yes
4371 else
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 has_option=no
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 if test $has_option = yes; then
4380 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4382 { echo "$as_me:$LINENO: result: $has_option" >&5
4383 echo "${ECHO_T}$has_option" >&6; }
4384 CFLAGS="$SAVE_CFLAGS"
4385 unset has_option
4386 unset SAVE_CFLAGS
4388 #### Some other nice autoconf tests.
4390 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4391 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4392 LN_S=$as_ln_s
4393 if test "$LN_S" = "ln -s"; then
4394 { echo "$as_me:$LINENO: result: yes" >&5
4395 echo "${ECHO_T}yes" >&6; }
4396 else
4397 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4398 echo "${ECHO_T}no, using $LN_S" >&6; }
4401 ac_ext=c
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4407 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4408 # On Suns, sometimes $CPP names a directory.
4409 if test -n "$CPP" && test -d "$CPP"; then
4410 CPP=
4412 if test -z "$CPP"; then
4413 if test "${ac_cv_prog_CPP+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416 # Double quotes because CPP needs to be expanded
4417 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4419 ac_preproc_ok=false
4420 for ac_c_preproc_warn_flag in '' yes
4422 # Use a header file that comes with gcc, so configuring glibc
4423 # with a fresh cross-compiler works.
4424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4425 # <limits.h> exists even on freestanding compilers.
4426 # On the NeXT, cc -E runs the code through the compiler's parser,
4427 # not just through cpp. "Syntax error" is here to catch this case.
4428 cat >conftest.$ac_ext <<_ACEOF
4429 /* confdefs.h. */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4434 #ifdef __STDC__
4435 # include <limits.h>
4436 #else
4437 # include <assert.h>
4438 #endif
4439 Syntax error
4440 _ACEOF
4441 if { (ac_try="$ac_cpp conftest.$ac_ext"
4442 case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445 esac
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4448 ac_status=$?
4449 grep -v '^ *+' conftest.er1 >conftest.err
4450 rm -f conftest.er1
4451 cat conftest.err >&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); } >/dev/null && {
4454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4455 test ! -s conftest.err
4456 }; then
4458 else
4459 echo "$as_me: failed program was:" >&5
4460 sed 's/^/| /' conftest.$ac_ext >&5
4462 # Broken: fails on valid input.
4463 continue
4466 rm -f conftest.err conftest.$ac_ext
4468 # OK, works on sane cases. Now check whether nonexistent headers
4469 # can be detected and how.
4470 cat >conftest.$ac_ext <<_ACEOF
4471 /* confdefs.h. */
4472 _ACEOF
4473 cat confdefs.h >>conftest.$ac_ext
4474 cat >>conftest.$ac_ext <<_ACEOF
4475 /* end confdefs.h. */
4476 #include <ac_nonexistent.h>
4477 _ACEOF
4478 if { (ac_try="$ac_cpp conftest.$ac_ext"
4479 case "(($ac_try" in
4480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481 *) ac_try_echo=$ac_try;;
4482 esac
4483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } >/dev/null && {
4491 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4493 }; then
4494 # Broken: success on invalid input.
4495 continue
4496 else
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 # Passes both tests.
4501 ac_preproc_ok=:
4502 break
4505 rm -f conftest.err conftest.$ac_ext
4507 done
4508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4509 rm -f conftest.err conftest.$ac_ext
4510 if $ac_preproc_ok; then
4511 break
4514 done
4515 ac_cv_prog_CPP=$CPP
4518 CPP=$ac_cv_prog_CPP
4519 else
4520 ac_cv_prog_CPP=$CPP
4522 { echo "$as_me:$LINENO: result: $CPP" >&5
4523 echo "${ECHO_T}$CPP" >&6; }
4524 ac_preproc_ok=false
4525 for ac_c_preproc_warn_flag in '' yes
4527 # Use a header file that comes with gcc, so configuring glibc
4528 # with a fresh cross-compiler works.
4529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4530 # <limits.h> exists even on freestanding compilers.
4531 # On the NeXT, cc -E runs the code through the compiler's parser,
4532 # not just through cpp. "Syntax error" is here to catch this case.
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h. */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 #ifdef __STDC__
4540 # include <limits.h>
4541 #else
4542 # include <assert.h>
4543 #endif
4544 Syntax error
4545 _ACEOF
4546 if { (ac_try="$ac_cpp conftest.$ac_ext"
4547 case "(($ac_try" in
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4550 esac
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4553 ac_status=$?
4554 grep -v '^ *+' conftest.er1 >conftest.err
4555 rm -f conftest.er1
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } >/dev/null && {
4559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4560 test ! -s conftest.err
4561 }; then
4563 else
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 # Broken: fails on valid input.
4568 continue
4571 rm -f conftest.err conftest.$ac_ext
4573 # OK, works on sane cases. Now check whether nonexistent headers
4574 # can be detected and how.
4575 cat >conftest.$ac_ext <<_ACEOF
4576 /* confdefs.h. */
4577 _ACEOF
4578 cat confdefs.h >>conftest.$ac_ext
4579 cat >>conftest.$ac_ext <<_ACEOF
4580 /* end confdefs.h. */
4581 #include <ac_nonexistent.h>
4582 _ACEOF
4583 if { (ac_try="$ac_cpp conftest.$ac_ext"
4584 case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587 esac
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4590 ac_status=$?
4591 grep -v '^ *+' conftest.er1 >conftest.err
4592 rm -f conftest.er1
4593 cat conftest.err >&5
4594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4595 (exit $ac_status); } >/dev/null && {
4596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4597 test ! -s conftest.err
4598 }; then
4599 # Broken: success on invalid input.
4600 continue
4601 else
4602 echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 # Passes both tests.
4606 ac_preproc_ok=:
4607 break
4610 rm -f conftest.err conftest.$ac_ext
4612 done
4613 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4614 rm -f conftest.err conftest.$ac_ext
4615 if $ac_preproc_ok; then
4617 else
4618 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4619 See \`config.log' for more details." >&5
4620 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4621 See \`config.log' for more details." >&2;}
4622 { (exit 1); exit 1; }; }
4625 ac_ext=c
4626 ac_cpp='$CPP $CPPFLAGS'
4627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631 # Find a good install program. We prefer a C program (faster),
4632 # so one script is as good as another. But avoid the broken or
4633 # incompatible versions:
4634 # SysV /etc/install, /usr/sbin/install
4635 # SunOS /usr/etc/install
4636 # IRIX /sbin/install
4637 # AIX /bin/install
4638 # AmigaOS /C/install, which installs bootblocks on floppy discs
4639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4642 # OS/2's system install, which has a completely different semantic
4643 # ./install, which can be erroneously created by make from ./install.sh.
4644 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4645 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4646 if test -z "$INSTALL"; then
4647 if test "${ac_cv_path_install+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4653 IFS=$as_save_IFS
4654 test -z "$as_dir" && as_dir=.
4655 # Account for people who put trailing slashes in PATH elements.
4656 case $as_dir/ in
4657 ./ | .// | /cC/* | \
4658 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4659 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4660 /usr/ucb/* ) ;;
4662 # OSF1 and SCO ODT 3.0 have their own names for install.
4663 # Don't use installbsd from OSF since it installs stuff as root
4664 # by default.
4665 for ac_prog in ginstall scoinst install; do
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4668 if test $ac_prog = install &&
4669 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4670 # AIX install. It has an incompatible calling convention.
4672 elif test $ac_prog = install &&
4673 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4674 # program-specific install script used by HP pwplus--don't use.
4676 else
4677 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4678 break 3
4681 done
4682 done
4684 esac
4685 done
4686 IFS=$as_save_IFS
4690 if test "${ac_cv_path_install+set}" = set; then
4691 INSTALL=$ac_cv_path_install
4692 else
4693 # As a last resort, use the slow shell script. Don't cache a
4694 # value for INSTALL within a source directory, because that will
4695 # break other packages using the cache if that directory is
4696 # removed, or if the value is a relative name.
4697 INSTALL=$ac_install_sh
4700 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4701 echo "${ECHO_T}$INSTALL" >&6; }
4703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4704 # It thinks the first close brace ends the variable substitution.
4705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4709 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4711 if test "x$RANLIB" = x; then
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_RANLIB+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720 if test -n "$RANLIB"; then
4721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4734 done
4735 done
4736 IFS=$as_save_IFS
4740 RANLIB=$ac_cv_prog_RANLIB
4741 if test -n "$RANLIB"; then
4742 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4743 echo "${ECHO_T}$RANLIB" >&6; }
4744 else
4745 { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4751 if test -z "$ac_cv_prog_RANLIB"; then
4752 ac_ct_RANLIB=$RANLIB
4753 # Extract the first word of "ranlib", so it can be a program name with args.
4754 set dummy ranlib; ac_word=$2
4755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4757 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760 if test -n "$ac_ct_RANLIB"; then
4761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4762 else
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_ac_ct_RANLIB="ranlib"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4774 done
4775 done
4776 IFS=$as_save_IFS
4780 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4781 if test -n "$ac_ct_RANLIB"; then
4782 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4783 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4784 else
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4789 if test "x$ac_ct_RANLIB" = x; then
4790 RANLIB=":"
4791 else
4792 case $cross_compiling:$ac_tool_warned in
4793 yes:)
4794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4795 whose name does not start with the host triplet. If you think this
4796 configuration is useful to you, please write to autoconf@gnu.org." >&5
4797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4798 whose name does not start with the host triplet. If you think this
4799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4800 ac_tool_warned=yes ;;
4801 esac
4802 RANLIB=$ac_ct_RANLIB
4804 else
4805 RANLIB="$ac_cv_prog_RANLIB"
4809 # Extract the first word of "install-info", so it can be a program name with args.
4810 set dummy install-info; ac_word=$2
4811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4813 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 case $INSTALL_INFO in
4817 [\\/]* | ?:[\\/]*)
4818 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH
4824 IFS=$as_save_IFS
4825 test -z "$as_dir" && as_dir=.
4826 for ac_exec_ext in '' $ac_executable_extensions; do
4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4828 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 break 2
4832 done
4833 done
4834 IFS=$as_save_IFS
4837 esac
4839 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4840 if test -n "$INSTALL_INFO"; then
4841 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4842 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4843 else
4844 { echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6; }
4849 # Extract the first word of "install-info", so it can be a program name with args.
4850 set dummy install-info; ac_word=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 else
4856 case $INSTALL_INFO in
4857 [\\/]* | ?:[\\/]*)
4858 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in /usr/sbin
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 break 2
4872 done
4873 done
4874 IFS=$as_save_IFS
4877 esac
4879 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4880 if test -n "$INSTALL_INFO"; then
4881 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4882 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4883 else
4884 { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4889 # Extract the first word of "install-info", so it can be a program name with args.
4890 set dummy install-info; ac_word=$2
4891 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4893 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4894 echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896 case $INSTALL_INFO in
4897 [\\/]* | ?:[\\/]*)
4898 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in /sbin
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4908 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4912 done
4913 done
4914 IFS=$as_save_IFS
4916 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4918 esac
4920 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4921 if test -n "$INSTALL_INFO"; then
4922 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4923 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4924 else
4925 { echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6; }
4930 # Extract the first word of "gzip", so it can be a program name with args.
4931 set dummy gzip; ac_word=$2
4932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4934 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937 case $GZIP_PROG in
4938 [\\/]* | ?:[\\/]*)
4939 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4945 IFS=$as_save_IFS
4946 test -z "$as_dir" && as_dir=.
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 break 2
4953 done
4954 done
4955 IFS=$as_save_IFS
4958 esac
4960 GZIP_PROG=$ac_cv_path_GZIP_PROG
4961 if test -n "$GZIP_PROG"; then
4962 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4963 echo "${ECHO_T}$GZIP_PROG" >&6; }
4964 else
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4972 ## Need makeinfo >= 4.6 (?) to build the manuals.
4973 # Extract the first word of "makeinfo", so it can be a program name with args.
4974 set dummy makeinfo; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 case $MAKEINFO in
4981 [\\/]* | ?:[\\/]*)
4982 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4996 done
4997 done
4998 IFS=$as_save_IFS
5000 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5002 esac
5004 MAKEINFO=$ac_cv_path_MAKEINFO
5005 if test -n "$MAKEINFO"; then
5006 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5007 echo "${ECHO_T}$MAKEINFO" >&6; }
5008 else
5009 { echo "$as_me:$LINENO: result: no" >&5
5010 echo "${ECHO_T}no" >&6; }
5014 if test "$MAKEINFO" != "no" && \
5015 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
5016 MAKEINFO=no
5019 if test "$MAKEINFO" = "no"; then
5020 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5021 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5022 { (exit 1); exit 1; }; }
5027 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5028 then
5029 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5032 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5033 then
5034 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5038 late_LDFLAGS=$LDFLAGS
5039 if test "$GCC" = yes; then
5040 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5041 else
5042 LDFLAGS="$LDFLAGS -znocombreloc"
5045 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5046 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5047 cat >conftest.$ac_ext <<_ACEOF
5048 main(){return 0;}
5049 _ACEOF
5050 rm -f conftest.$ac_objext conftest$ac_exeext
5051 if { (ac_try="$ac_link"
5052 case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055 esac
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_link") 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest$ac_exeext &&
5067 $as_test_x conftest$ac_exeext; then
5068 { echo "$as_me:$LINENO: result: yes" >&5
5069 echo "${ECHO_T}yes" >&6; }
5070 else
5071 echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5074 LDFLAGS=$late_LDFLAGS
5075 { echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6; }
5079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5080 conftest$ac_exeext conftest.$ac_ext
5082 #### Extract some information from the operating system and machine files.
5084 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5085 - which libraries the lib-src programs will want, and
5086 - whether the GNU malloc routines are usable..." >&5
5087 echo "$as_me: checking the machine- and system-dependent files to find out
5088 - which libraries the lib-src programs will want, and
5089 - whether the GNU malloc routines are usable..." >&6;}
5091 ### First figure out CFLAGS (which we use for running the compiler here)
5092 ### and REAL_CFLAGS (which we use for real compilation).
5093 ### The two are the same except on a few systems, where they are made
5094 ### different to work around various lossages. For example,
5095 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5096 ### as implying static linking.
5098 ### If the CFLAGS env var is specified, we use that value
5099 ### instead of the default.
5101 ### It's not important that this name contain the PID; you can't run
5102 ### two configures in the same directory and have anything work
5103 ### anyway.
5104 tempcname="conftest.c"
5106 echo '
5107 #include "'${srcdir}'/src/'${opsysfile}'"
5108 #include "'${srcdir}'/src/'${machfile}'"
5109 #ifndef LIBS_MACHINE
5110 #define LIBS_MACHINE
5111 #endif
5112 #ifndef LIBS_SYSTEM
5113 #define LIBS_SYSTEM
5114 #endif
5115 #ifndef C_SWITCH_SYSTEM
5116 #define C_SWITCH_SYSTEM
5117 #endif
5118 #ifndef C_SWITCH_MACHINE
5119 #define C_SWITCH_MACHINE
5120 #endif
5121 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5122 configure___ c_switch_system=C_SWITCH_SYSTEM
5123 configure___ c_switch_machine=C_SWITCH_MACHINE
5125 #ifndef LIB_X11_LIB
5126 #define LIB_X11_LIB -lX11
5127 #endif
5129 #ifndef LIBX11_SYSTEM
5130 #define LIBX11_SYSTEM
5131 #endif
5132 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5134 #ifdef UNEXEC
5135 configure___ unexec=UNEXEC
5136 #else
5137 configure___ unexec=unexec.o
5138 #endif
5140 #ifdef SYSTEM_MALLOC
5141 configure___ system_malloc=yes
5142 #else
5143 configure___ system_malloc=no
5144 #endif
5146 #ifdef USE_MMAP_FOR_BUFFERS
5147 configure___ use_mmap_for_buffers=yes
5148 #else
5149 configure___ use_mmap_for_buffers=no
5150 #endif
5152 #ifndef C_DEBUG_SWITCH
5153 #define C_DEBUG_SWITCH -g
5154 #endif
5156 #ifndef C_OPTIMIZE_SWITCH
5157 #ifdef __GNUC__
5158 #define C_OPTIMIZE_SWITCH -O2
5159 #else
5160 #define C_OPTIMIZE_SWITCH -O
5161 #endif
5162 #endif
5164 #ifndef C_WARNINGS_SWITCH
5165 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5166 #endif
5168 #ifndef LD_SWITCH_MACHINE
5169 #define LD_SWITCH_MACHINE
5170 #endif
5172 #ifndef LD_SWITCH_SYSTEM
5173 #define LD_SWITCH_SYSTEM
5174 #endif
5176 #ifndef LD_SWITCH_X_SITE_AUX
5177 #define LD_SWITCH_X_SITE_AUX
5178 #endif
5180 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5181 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5183 #ifdef THIS_IS_CONFIGURE
5185 /* Get the CFLAGS for tests in configure. */
5186 #ifdef __GNUC__
5187 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5188 #else
5189 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5190 #endif
5192 #else /* not THIS_IS_CONFIGURE */
5194 /* Get the CFLAGS for real compilation. */
5195 #ifdef __GNUC__
5196 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5197 #else
5198 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5199 #endif
5201 #endif /* not THIS_IS_CONFIGURE */
5202 ' > ${tempcname}
5204 # The value of CPP is a quoted variable reference, so we need to do this
5205 # to get its actual value...
5206 CPP=`eval "echo $CPP"`
5207 eval `${CPP} -Isrc ${tempcname} \
5208 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5209 if test "x$SPECIFIED_CFLAGS" = x; then
5210 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5211 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5212 else
5213 REAL_CFLAGS="$CFLAGS"
5215 rm ${tempcname}
5217 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5219 ### Make sure subsequent tests use flags consistent with the build flags.
5221 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5222 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5223 else
5224 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5229 # Check whether --enable-largefile was given.
5230 if test "${enable_largefile+set}" = set; then
5231 enableval=$enable_largefile;
5234 if test "$enable_largefile" != no; then
5236 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5237 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5238 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 ac_cv_sys_largefile_CC=no
5242 if test "$GCC" != yes; then
5243 ac_save_CC=$CC
5244 while :; do
5245 # IRIX 6.2 and later do not support large files by default,
5246 # so use the C compiler's -n32 option if that helps.
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 #include <sys/types.h>
5254 /* Check that off_t can represent 2**63 - 1 correctly.
5255 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5256 since some C++ compilers masquerading as C compilers
5257 incorrectly reject 9223372036854775807. */
5258 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5260 && LARGE_OFF_T % 2147483647 == 1)
5261 ? 1 : -1];
5263 main ()
5267 return 0;
5269 _ACEOF
5270 rm -f conftest.$ac_objext
5271 if { (ac_try="$ac_compile"
5272 case "(($ac_try" in
5273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5274 *) ac_try_echo=$ac_try;;
5275 esac
5276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5277 (eval "$ac_compile") 2>conftest.er1
5278 ac_status=$?
5279 grep -v '^ *+' conftest.er1 >conftest.err
5280 rm -f conftest.er1
5281 cat conftest.err >&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); } && {
5284 test -z "$ac_c_werror_flag" ||
5285 test ! -s conftest.err
5286 } && test -s conftest.$ac_objext; then
5287 break
5288 else
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5295 rm -f core conftest.err conftest.$ac_objext
5296 CC="$CC -n32"
5297 rm -f conftest.$ac_objext
5298 if { (ac_try="$ac_compile"
5299 case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5302 esac
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_compile") 2>conftest.er1
5305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } && {
5311 test -z "$ac_c_werror_flag" ||
5312 test ! -s conftest.err
5313 } && test -s conftest.$ac_objext; then
5314 ac_cv_sys_largefile_CC=' -n32'; break
5315 else
5316 echo "$as_me: failed program was:" >&5
5317 sed 's/^/| /' conftest.$ac_ext >&5
5322 rm -f core conftest.err conftest.$ac_objext
5323 break
5324 done
5325 CC=$ac_save_CC
5326 rm -f conftest.$ac_ext
5329 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5330 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5331 if test "$ac_cv_sys_largefile_CC" != no; then
5332 CC=$CC$ac_cv_sys_largefile_CC
5335 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5336 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5337 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5339 else
5340 while :; do
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 #include <sys/types.h>
5348 /* Check that off_t can represent 2**63 - 1 correctly.
5349 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5350 since some C++ compilers masquerading as C compilers
5351 incorrectly reject 9223372036854775807. */
5352 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5353 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5354 && LARGE_OFF_T % 2147483647 == 1)
5355 ? 1 : -1];
5357 main ()
5361 return 0;
5363 _ACEOF
5364 rm -f conftest.$ac_objext
5365 if { (ac_try="$ac_compile"
5366 case "(($ac_try" in
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5369 esac
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_compile") 2>conftest.er1
5372 ac_status=$?
5373 grep -v '^ *+' conftest.er1 >conftest.err
5374 rm -f conftest.er1
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } && {
5378 test -z "$ac_c_werror_flag" ||
5379 test ! -s conftest.err
5380 } && test -s conftest.$ac_objext; then
5381 ac_cv_sys_file_offset_bits=no; break
5382 else
5383 echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5390 cat >conftest.$ac_ext <<_ACEOF
5391 /* confdefs.h. */
5392 _ACEOF
5393 cat confdefs.h >>conftest.$ac_ext
5394 cat >>conftest.$ac_ext <<_ACEOF
5395 /* end confdefs.h. */
5396 #define _FILE_OFFSET_BITS 64
5397 #include <sys/types.h>
5398 /* Check that off_t can represent 2**63 - 1 correctly.
5399 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5400 since some C++ compilers masquerading as C compilers
5401 incorrectly reject 9223372036854775807. */
5402 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5403 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5404 && LARGE_OFF_T % 2147483647 == 1)
5405 ? 1 : -1];
5407 main ()
5411 return 0;
5413 _ACEOF
5414 rm -f conftest.$ac_objext
5415 if { (ac_try="$ac_compile"
5416 case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419 esac
5420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_compile") 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } && {
5428 test -z "$ac_c_werror_flag" ||
5429 test ! -s conftest.err
5430 } && test -s conftest.$ac_objext; then
5431 ac_cv_sys_file_offset_bits=64; break
5432 else
5433 echo "$as_me: failed program was:" >&5
5434 sed 's/^/| /' conftest.$ac_ext >&5
5439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5440 ac_cv_sys_file_offset_bits=unknown
5441 break
5442 done
5444 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5445 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5446 case $ac_cv_sys_file_offset_bits in #(
5447 no | unknown) ;;
5449 cat >>confdefs.h <<_ACEOF
5450 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5451 _ACEOF
5453 esac
5454 rm -f conftest*
5455 if test $ac_cv_sys_file_offset_bits = unknown; then
5456 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5457 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5458 if test "${ac_cv_sys_large_files+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461 while :; do
5462 cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h. */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 #include <sys/types.h>
5469 /* Check that off_t can represent 2**63 - 1 correctly.
5470 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5471 since some C++ compilers masquerading as C compilers
5472 incorrectly reject 9223372036854775807. */
5473 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5474 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5475 && LARGE_OFF_T % 2147483647 == 1)
5476 ? 1 : -1];
5478 main ()
5482 return 0;
5484 _ACEOF
5485 rm -f conftest.$ac_objext
5486 if { (ac_try="$ac_compile"
5487 case "(($ac_try" in
5488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5489 *) ac_try_echo=$ac_try;;
5490 esac
5491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5492 (eval "$ac_compile") 2>conftest.er1
5493 ac_status=$?
5494 grep -v '^ *+' conftest.er1 >conftest.err
5495 rm -f conftest.er1
5496 cat conftest.err >&5
5497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5498 (exit $ac_status); } && {
5499 test -z "$ac_c_werror_flag" ||
5500 test ! -s conftest.err
5501 } && test -s conftest.$ac_objext; then
5502 ac_cv_sys_large_files=no; break
5503 else
5504 echo "$as_me: failed program was:" >&5
5505 sed 's/^/| /' conftest.$ac_ext >&5
5510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5511 cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h. */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #define _LARGE_FILES 1
5518 #include <sys/types.h>
5519 /* Check that off_t can represent 2**63 - 1 correctly.
5520 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5521 since some C++ compilers masquerading as C compilers
5522 incorrectly reject 9223372036854775807. */
5523 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5524 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5525 && LARGE_OFF_T % 2147483647 == 1)
5526 ? 1 : -1];
5528 main ()
5532 return 0;
5534 _ACEOF
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5537 case "(($ac_try" in
5538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5540 esac
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compile") 2>conftest.er1
5543 ac_status=$?
5544 grep -v '^ *+' conftest.er1 >conftest.err
5545 rm -f conftest.er1
5546 cat conftest.err >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && {
5549 test -z "$ac_c_werror_flag" ||
5550 test ! -s conftest.err
5551 } && test -s conftest.$ac_objext; then
5552 ac_cv_sys_large_files=1; break
5553 else
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 ac_cv_sys_large_files=unknown
5562 break
5563 done
5565 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5566 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5567 case $ac_cv_sys_large_files in #(
5568 no | unknown) ;;
5570 cat >>confdefs.h <<_ACEOF
5571 #define _LARGE_FILES $ac_cv_sys_large_files
5572 _ACEOF
5574 esac
5575 rm -f conftest*
5581 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5582 ### be located in either /usr/lib64 or /usr/lib.
5583 case "${canonical}" in
5584 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5585 if test -d /usr/lib64; then
5587 cat >>confdefs.h <<\_ACEOF
5588 #define HAVE_LIB64_DIR 1
5589 _ACEOF
5592 esac
5597 if test "${with_sound}" != "no"; then
5598 # Sound support for GNU/Linux and the free BSDs.
5599 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5600 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5601 if test "${ac_cv_header_stdc+set}" = set; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5603 else
5604 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 #include <stdlib.h>
5611 #include <stdarg.h>
5612 #include <string.h>
5613 #include <float.h>
5616 main ()
5620 return 0;
5622 _ACEOF
5623 rm -f conftest.$ac_objext
5624 if { (ac_try="$ac_compile"
5625 case "(($ac_try" in
5626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5627 *) ac_try_echo=$ac_try;;
5628 esac
5629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && {
5637 test -z "$ac_c_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
5640 ac_cv_header_stdc=yes
5641 else
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 ac_cv_header_stdc=no
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 if test $ac_cv_header_stdc = yes; then
5651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5652 cat >conftest.$ac_ext <<_ACEOF
5653 /* confdefs.h. */
5654 _ACEOF
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 #include <string.h>
5660 _ACEOF
5661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5662 $EGREP "memchr" >/dev/null 2>&1; then
5664 else
5665 ac_cv_header_stdc=no
5667 rm -f conftest*
5671 if test $ac_cv_header_stdc = yes; then
5672 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 #include <stdlib.h>
5681 _ACEOF
5682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5683 $EGREP "free" >/dev/null 2>&1; then
5685 else
5686 ac_cv_header_stdc=no
5688 rm -f conftest*
5692 if test $ac_cv_header_stdc = yes; then
5693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5694 if test "$cross_compiling" = yes; then
5696 else
5697 cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h. */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #include <ctype.h>
5704 #include <stdlib.h>
5705 #if ((' ' & 0x0FF) == 0x020)
5706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5708 #else
5709 # define ISLOWER(c) \
5710 (('a' <= (c) && (c) <= 'i') \
5711 || ('j' <= (c) && (c) <= 'r') \
5712 || ('s' <= (c) && (c) <= 'z'))
5713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5714 #endif
5716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5718 main ()
5720 int i;
5721 for (i = 0; i < 256; i++)
5722 if (XOR (islower (i), ISLOWER (i))
5723 || toupper (i) != TOUPPER (i))
5724 return 2;
5725 return 0;
5727 _ACEOF
5728 rm -f conftest$ac_exeext
5729 if { (ac_try="$ac_link"
5730 case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733 esac
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_link") 2>&5
5736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5739 { (case "(($ac_try" in
5740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741 *) ac_try_echo=$ac_try;;
5742 esac
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_try") 2>&5
5745 ac_status=$?
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); }; }; then
5749 else
5750 echo "$as_me: program exited with status $ac_status" >&5
5751 echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5754 ( exit $ac_status )
5755 ac_cv_header_stdc=no
5757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5763 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5764 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5765 if test $ac_cv_header_stdc = yes; then
5767 cat >>confdefs.h <<\_ACEOF
5768 #define STDC_HEADERS 1
5769 _ACEOF
5773 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5783 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5784 inttypes.h stdint.h unistd.h
5786 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5791 else
5792 cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 $ac_includes_default
5800 #include <$ac_header>
5801 _ACEOF
5802 rm -f conftest.$ac_objext
5803 if { (ac_try="$ac_compile"
5804 case "(($ac_try" in
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5807 esac
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5810 ac_status=$?
5811 grep -v '^ *+' conftest.er1 >conftest.err
5812 rm -f conftest.er1
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
5819 eval "$as_ac_Header=yes"
5820 else
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5824 eval "$as_ac_Header=no"
5827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5829 ac_res=`eval echo '${'$as_ac_Header'}'`
5830 { echo "$as_me:$LINENO: result: $ac_res" >&5
5831 echo "${ECHO_T}$ac_res" >&6; }
5832 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5833 cat >>confdefs.h <<_ACEOF
5834 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5835 _ACEOF
5839 done
5845 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5852 echo $ECHO_N "(cached) $ECHO_C" >&6
5854 ac_res=`eval echo '${'$as_ac_Header'}'`
5855 { echo "$as_me:$LINENO: result: $ac_res" >&5
5856 echo "${ECHO_T}$ac_res" >&6; }
5857 else
5858 # Is the header compilable?
5859 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5861 cat >conftest.$ac_ext <<_ACEOF
5862 /* confdefs.h. */
5863 _ACEOF
5864 cat confdefs.h >>conftest.$ac_ext
5865 cat >>conftest.$ac_ext <<_ACEOF
5866 /* end confdefs.h. */
5867 $ac_includes_default
5868 #include <$ac_header>
5869 _ACEOF
5870 rm -f conftest.$ac_objext
5871 if { (ac_try="$ac_compile"
5872 case "(($ac_try" in
5873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5874 *) ac_try_echo=$ac_try;;
5875 esac
5876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5877 (eval "$ac_compile") 2>conftest.er1
5878 ac_status=$?
5879 grep -v '^ *+' conftest.er1 >conftest.err
5880 rm -f conftest.er1
5881 cat conftest.err >&5
5882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5883 (exit $ac_status); } && {
5884 test -z "$ac_c_werror_flag" ||
5885 test ! -s conftest.err
5886 } && test -s conftest.$ac_objext; then
5887 ac_header_compiler=yes
5888 else
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_header_compiler=no
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5897 echo "${ECHO_T}$ac_header_compiler" >&6; }
5899 # Is the header present?
5900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5902 cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h. */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 #include <$ac_header>
5909 _ACEOF
5910 if { (ac_try="$ac_cpp conftest.$ac_ext"
5911 case "(($ac_try" in
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5914 esac
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5917 ac_status=$?
5918 grep -v '^ *+' conftest.er1 >conftest.err
5919 rm -f conftest.er1
5920 cat conftest.err >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); } >/dev/null && {
5923 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5924 test ! -s conftest.err
5925 }; then
5926 ac_header_preproc=yes
5927 else
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 ac_header_preproc=no
5934 rm -f conftest.err conftest.$ac_ext
5935 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5936 echo "${ECHO_T}$ac_header_preproc" >&6; }
5938 # So? What about this header?
5939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5940 yes:no: )
5941 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5942 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5944 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5945 ac_header_preproc=yes
5947 no:yes:* )
5948 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5949 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5950 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5951 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5953 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5954 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5955 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5957 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5958 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5959 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5962 esac
5963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968 eval "$as_ac_Header=\$ac_header_preproc"
5970 ac_res=`eval echo '${'$as_ac_Header'}'`
5971 { echo "$as_me:$LINENO: result: $ac_res" >&5
5972 echo "${ECHO_T}$ac_res" >&6; }
5975 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5976 cat >>confdefs.h <<_ACEOF
5977 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5978 _ACEOF
5982 done
5984 # Emulation library used on NetBSD.
5985 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5986 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5987 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990 ac_check_lib_save_LIBS=$LIBS
5991 LIBS="-lossaudio $LIBS"
5992 cat >conftest.$ac_ext <<_ACEOF
5993 /* confdefs.h. */
5994 _ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5999 /* Override any GCC internal prototype to avoid an error.
6000 Use char because int might match the return type of a GCC
6001 builtin and then its argument prototype would still apply. */
6002 #ifdef __cplusplus
6003 extern "C"
6004 #endif
6005 char _oss_ioctl ();
6007 main ()
6009 return _oss_ioctl ();
6011 return 0;
6013 _ACEOF
6014 rm -f conftest.$ac_objext conftest$ac_exeext
6015 if { (ac_try="$ac_link"
6016 case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019 esac
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_link") 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && {
6028 test -z "$ac_c_werror_flag" ||
6029 test ! -s conftest.err
6030 } && test -s conftest$ac_exeext &&
6031 $as_test_x conftest$ac_exeext; then
6032 ac_cv_lib_ossaudio__oss_ioctl=yes
6033 else
6034 echo "$as_me: failed program was:" >&5
6035 sed 's/^/| /' conftest.$ac_ext >&5
6037 ac_cv_lib_ossaudio__oss_ioctl=no
6040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6041 conftest$ac_exeext conftest.$ac_ext
6042 LIBS=$ac_check_lib_save_LIBS
6044 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6045 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6046 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6047 LIBSOUND=-lossaudio
6048 else
6049 LIBSOUND=
6054 ALSA_REQUIRED=1.0.0
6055 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6057 succeeded=no
6059 # Extract the first word of "pkg-config", so it can be a program name with args.
6060 set dummy pkg-config; ac_word=$2
6061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6063 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 else
6066 case $PKG_CONFIG in
6067 [\\/]* | ?:[\\/]*)
6068 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 for as_dir in $PATH
6074 IFS=$as_save_IFS
6075 test -z "$as_dir" && as_dir=.
6076 for ac_exec_ext in '' $ac_executable_extensions; do
6077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6078 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6080 break 2
6082 done
6083 done
6084 IFS=$as_save_IFS
6086 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6088 esac
6090 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6091 if test -n "$PKG_CONFIG"; then
6092 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6093 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6094 else
6095 { echo "$as_me:$LINENO: result: no" >&5
6096 echo "${ECHO_T}no" >&6; }
6101 if test "$PKG_CONFIG" = "no" ; then
6102 HAVE_ALSA=no
6103 else
6104 PKG_CONFIG_MIN_VERSION=0.9.0
6105 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6106 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6107 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6109 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6110 { echo "$as_me:$LINENO: result: yes" >&5
6111 echo "${ECHO_T}yes" >&6; }
6112 succeeded=yes
6114 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6115 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6116 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6117 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6118 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6120 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6121 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6122 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6123 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6124 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6125 else
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6128 ALSA_CFLAGS=""
6129 ALSA_LIBS=""
6130 ## If we have a custom action on failure, don't print errors, but
6131 ## do set a variable so people can do so.
6132 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6138 else
6139 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6140 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6144 if test $succeeded = yes; then
6145 HAVE_ALSA=yes
6146 else
6147 HAVE_ALSA=no
6150 if test $HAVE_ALSA = yes; then
6151 SAVE_CFLAGS="$CFLAGS"
6152 SAVE_LDFLAGS="$LDFLAGS"
6153 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6154 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6155 cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h. */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h. */
6161 #include <asoundlib.h>
6163 main ()
6165 snd_lib_error_set_handler (0);
6167 return 0;
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (ac_try="$ac_compile"
6172 case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175 esac
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.$ac_objext; then
6187 emacs_alsa_normal=yes
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6192 emacs_alsa_normal=no
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6196 if test "$emacs_alsa_normal" != yes; then
6197 cat >conftest.$ac_ext <<_ACEOF
6198 /* confdefs.h. */
6199 _ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6203 #include <alsa/asoundlib.h>
6205 main ()
6207 snd_lib_error_set_handler (0);
6209 return 0;
6211 _ACEOF
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6214 case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217 esac
6218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6219 (eval "$ac_compile") 2>conftest.er1
6220 ac_status=$?
6221 grep -v '^ *+' conftest.er1 >conftest.err
6222 rm -f conftest.er1
6223 cat conftest.err >&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } && {
6226 test -z "$ac_c_werror_flag" ||
6227 test ! -s conftest.err
6228 } && test -s conftest.$ac_objext; then
6229 emacs_alsa_subdir=yes
6230 else
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 emacs_alsa_subdir=no
6237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238 if test "$emacs_alsa_subdir" != yes; then
6239 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6240 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6241 { (exit 1); exit 1; }; }
6243 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6246 CFLAGS="$SAVE_CFLAGS"
6247 LDFLAGS="$SAVE_LDFLAGS"
6248 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6249 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6251 cat >>confdefs.h <<\_ACEOF
6252 #define HAVE_ALSA 1
6253 _ACEOF
6284 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6285 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6286 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6287 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6288 sys/utsname.h pwd.h
6290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6297 ac_res=`eval echo '${'$as_ac_Header'}'`
6298 { echo "$as_me:$LINENO: result: $ac_res" >&5
6299 echo "${ECHO_T}$ac_res" >&6; }
6300 else
6301 # Is the header compilable?
6302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 $ac_includes_default
6311 #include <$ac_header>
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (ac_try="$ac_compile"
6315 case "(($ac_try" in
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6318 esac
6319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_compile") 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } && {
6327 test -z "$ac_c_werror_flag" ||
6328 test ! -s conftest.err
6329 } && test -s conftest.$ac_objext; then
6330 ac_header_compiler=yes
6331 else
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6335 ac_header_compiler=no
6338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6340 echo "${ECHO_T}$ac_header_compiler" >&6; }
6342 # Is the header present?
6343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6345 cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h. */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 #include <$ac_header>
6352 _ACEOF
6353 if { (ac_try="$ac_cpp conftest.$ac_ext"
6354 case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6360 ac_status=$?
6361 grep -v '^ *+' conftest.er1 >conftest.err
6362 rm -f conftest.er1
6363 cat conftest.err >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } >/dev/null && {
6366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6367 test ! -s conftest.err
6368 }; then
6369 ac_header_preproc=yes
6370 else
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6374 ac_header_preproc=no
6377 rm -f conftest.err conftest.$ac_ext
6378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6379 echo "${ECHO_T}$ac_header_preproc" >&6; }
6381 # So? What about this header?
6382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6383 yes:no: )
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6388 ac_header_preproc=yes
6390 no:yes:* )
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6405 esac
6406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 eval "$as_ac_Header=\$ac_header_preproc"
6413 ac_res=`eval echo '${'$as_ac_Header'}'`
6414 { echo "$as_me:$LINENO: result: $ac_res" >&5
6415 echo "${ECHO_T}$ac_res" >&6; }
6418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6419 cat >>confdefs.h <<_ACEOF
6420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6421 _ACEOF
6425 done
6428 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6429 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <sys/personality.h>
6438 main ()
6440 personality (PER_LINUX32)
6442 return 0;
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (ac_try="$ac_compile"
6447 case "(($ac_try" in
6448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449 *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6453 ac_status=$?
6454 grep -v '^ *+' conftest.er1 >conftest.err
6455 rm -f conftest.er1
6456 cat conftest.err >&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest.$ac_objext; then
6462 emacs_cv_personality_linux32=yes
6463 else
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6467 emacs_cv_personality_linux32=no
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6472 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6474 if test $emacs_cv_personality_linux32 = yes; then
6476 cat >>confdefs.h <<\_ACEOF
6477 #define HAVE_PERSONALITY_LINUX32 1
6478 _ACEOF
6483 for ac_header in term.h
6485 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 else
6491 cat >conftest.$ac_ext <<_ACEOF
6492 /* confdefs.h. */
6493 _ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497 #include <$ac_header>
6498 _ACEOF
6499 if { (ac_try="$ac_cpp conftest.$ac_ext"
6500 case "(($ac_try" in
6501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6502 *) ac_try_echo=$ac_try;;
6503 esac
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6506 ac_status=$?
6507 grep -v '^ *+' conftest.er1 >conftest.err
6508 rm -f conftest.er1
6509 cat conftest.err >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } >/dev/null && {
6512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6513 test ! -s conftest.err
6514 }; then
6515 eval "$as_ac_Header=yes"
6516 else
6517 echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6520 eval "$as_ac_Header=no"
6523 rm -f conftest.err conftest.$ac_ext
6525 ac_res=`eval echo '${'$as_ac_Header'}'`
6526 { echo "$as_me:$LINENO: result: $ac_res" >&5
6527 echo "${ECHO_T}$ac_res" >&6; }
6528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6529 cat >>confdefs.h <<_ACEOF
6530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6531 _ACEOF
6535 done
6537 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6538 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6539 if test "${ac_cv_header_stdc+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6541 else
6542 cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h. */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 #include <stdlib.h>
6549 #include <stdarg.h>
6550 #include <string.h>
6551 #include <float.h>
6554 main ()
6558 return 0;
6560 _ACEOF
6561 rm -f conftest.$ac_objext
6562 if { (ac_try="$ac_compile"
6563 case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566 esac
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 ac_cv_header_stdc=yes
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6583 ac_cv_header_stdc=no
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6588 if test $ac_cv_header_stdc = yes; then
6589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6590 cat >conftest.$ac_ext <<_ACEOF
6591 /* confdefs.h. */
6592 _ACEOF
6593 cat confdefs.h >>conftest.$ac_ext
6594 cat >>conftest.$ac_ext <<_ACEOF
6595 /* end confdefs.h. */
6596 #include <string.h>
6598 _ACEOF
6599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6600 $EGREP "memchr" >/dev/null 2>&1; then
6602 else
6603 ac_cv_header_stdc=no
6605 rm -f conftest*
6609 if test $ac_cv_header_stdc = yes; then
6610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6611 cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h. */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6617 #include <stdlib.h>
6619 _ACEOF
6620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6621 $EGREP "free" >/dev/null 2>&1; then
6623 else
6624 ac_cv_header_stdc=no
6626 rm -f conftest*
6630 if test $ac_cv_header_stdc = yes; then
6631 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6632 if test "$cross_compiling" = yes; then
6634 else
6635 cat >conftest.$ac_ext <<_ACEOF
6636 /* confdefs.h. */
6637 _ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 #include <ctype.h>
6642 #include <stdlib.h>
6643 #if ((' ' & 0x0FF) == 0x020)
6644 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6645 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6646 #else
6647 # define ISLOWER(c) \
6648 (('a' <= (c) && (c) <= 'i') \
6649 || ('j' <= (c) && (c) <= 'r') \
6650 || ('s' <= (c) && (c) <= 'z'))
6651 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6652 #endif
6654 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6656 main ()
6658 int i;
6659 for (i = 0; i < 256; i++)
6660 if (XOR (islower (i), ISLOWER (i))
6661 || toupper (i) != TOUPPER (i))
6662 return 2;
6663 return 0;
6665 _ACEOF
6666 rm -f conftest$ac_exeext
6667 if { (ac_try="$ac_link"
6668 case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6671 esac
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_link") 2>&5
6674 ac_status=$?
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6677 { (case "(($ac_try" in
6678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6679 *) ac_try_echo=$ac_try;;
6680 esac
6681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6682 (eval "$ac_try") 2>&5
6683 ac_status=$?
6684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685 (exit $ac_status); }; }; then
6687 else
6688 echo "$as_me: program exited with status $ac_status" >&5
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 ( exit $ac_status )
6693 ac_cv_header_stdc=no
6695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6701 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6702 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6703 if test $ac_cv_header_stdc = yes; then
6705 cat >>confdefs.h <<\_ACEOF
6706 #define STDC_HEADERS 1
6707 _ACEOF
6711 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6712 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6713 if test "${ac_cv_header_time+set}" = set; then
6714 echo $ECHO_N "(cached) $ECHO_C" >&6
6715 else
6716 cat >conftest.$ac_ext <<_ACEOF
6717 /* confdefs.h. */
6718 _ACEOF
6719 cat confdefs.h >>conftest.$ac_ext
6720 cat >>conftest.$ac_ext <<_ACEOF
6721 /* end confdefs.h. */
6722 #include <sys/types.h>
6723 #include <sys/time.h>
6724 #include <time.h>
6727 main ()
6729 if ((struct tm *) 0)
6730 return 0;
6732 return 0;
6734 _ACEOF
6735 rm -f conftest.$ac_objext
6736 if { (ac_try="$ac_compile"
6737 case "(($ac_try" in
6738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6740 esac
6741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_compile") 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } && {
6749 test -z "$ac_c_werror_flag" ||
6750 test ! -s conftest.err
6751 } && test -s conftest.$ac_objext; then
6752 ac_cv_header_time=yes
6753 else
6754 echo "$as_me: failed program was:" >&5
6755 sed 's/^/| /' conftest.$ac_ext >&5
6757 ac_cv_header_time=no
6760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6763 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6764 if test $ac_cv_header_time = yes; then
6766 cat >>confdefs.h <<\_ACEOF
6767 #define TIME_WITH_SYS_TIME 1
6768 _ACEOF
6772 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6773 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6774 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6775 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 else
6777 cat >conftest.$ac_ext <<_ACEOF
6778 /* confdefs.h. */
6779 _ACEOF
6780 cat confdefs.h >>conftest.$ac_ext
6781 cat >>conftest.$ac_ext <<_ACEOF
6782 /* end confdefs.h. */
6783 $ac_includes_default
6785 main ()
6787 #ifndef sys_siglist
6788 (void) sys_siglist;
6789 #endif
6792 return 0;
6794 _ACEOF
6795 rm -f conftest.$ac_objext
6796 if { (ac_try="$ac_compile"
6797 case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_compile") 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest.$ac_objext; then
6812 ac_cv_have_decl_sys_siglist=yes
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6817 ac_cv_have_decl_sys_siglist=no
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6823 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6824 if test $ac_cv_have_decl_sys_siglist = yes; then
6826 cat >>confdefs.h <<_ACEOF
6827 #define HAVE_DECL_SYS_SIGLIST 1
6828 _ACEOF
6831 else
6832 cat >>confdefs.h <<_ACEOF
6833 #define HAVE_DECL_SYS_SIGLIST 0
6834 _ACEOF
6840 if test $ac_cv_have_decl_sys_siglist != yes; then
6841 # For Tru64, at least:
6842 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6843 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6844 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6845 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847 cat >conftest.$ac_ext <<_ACEOF
6848 /* confdefs.h. */
6849 _ACEOF
6850 cat confdefs.h >>conftest.$ac_ext
6851 cat >>conftest.$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 $ac_includes_default
6855 main ()
6857 #ifndef __sys_siglist
6858 (void) __sys_siglist;
6859 #endif
6862 return 0;
6864 _ACEOF
6865 rm -f conftest.$ac_objext
6866 if { (ac_try="$ac_compile"
6867 case "(($ac_try" in
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6870 esac
6871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872 (eval "$ac_compile") 2>conftest.er1
6873 ac_status=$?
6874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } && {
6879 test -z "$ac_c_werror_flag" ||
6880 test ! -s conftest.err
6881 } && test -s conftest.$ac_objext; then
6882 ac_cv_have_decl___sys_siglist=yes
6883 else
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6887 ac_cv_have_decl___sys_siglist=no
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6893 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6894 if test $ac_cv_have_decl___sys_siglist = yes; then
6896 cat >>confdefs.h <<_ACEOF
6897 #define HAVE_DECL___SYS_SIGLIST 1
6898 _ACEOF
6901 else
6902 cat >>confdefs.h <<_ACEOF
6903 #define HAVE_DECL___SYS_SIGLIST 0
6904 _ACEOF
6910 if test $ac_cv_have_decl___sys_siglist = yes; then
6912 cat >>confdefs.h <<\_ACEOF
6913 #define sys_siglist __sys_siglist
6914 _ACEOF
6918 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6919 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6920 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6921 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 else
6923 cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h. */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h. */
6929 #include <sys/types.h>
6930 #include <sys/wait.h>
6931 #ifndef WEXITSTATUS
6932 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6933 #endif
6934 #ifndef WIFEXITED
6935 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6936 #endif
6939 main ()
6941 int s;
6942 wait (&s);
6943 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6945 return 0;
6947 _ACEOF
6948 rm -f conftest.$ac_objext
6949 if { (ac_try="$ac_compile"
6950 case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953 esac
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_compile") 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest.$ac_objext; then
6965 ac_cv_header_sys_wait_h=yes
6966 else
6967 echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6970 ac_cv_header_sys_wait_h=no
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6976 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6977 if test $ac_cv_header_sys_wait_h = yes; then
6979 cat >>confdefs.h <<\_ACEOF
6980 #define HAVE_SYS_WAIT_H 1
6981 _ACEOF
6986 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6987 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6988 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 else
6991 cat >conftest.$ac_ext <<_ACEOF
6992 /* confdefs.h. */
6993 _ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 #ifdef TIME_WITH_SYS_TIME
6998 #include <sys/time.h>
6999 #include <time.h>
7000 #else
7001 #ifdef HAVE_SYS_TIME_H
7002 #include <sys/time.h>
7003 #else
7004 #include <time.h>
7005 #endif
7006 #endif
7007 #ifdef HAVE_UTIME_H
7008 #include <utime.h>
7009 #endif
7011 main ()
7013 static struct utimbuf x; x.actime = x.modtime;
7015 return 0;
7017 _ACEOF
7018 rm -f conftest.$ac_objext
7019 if { (ac_try="$ac_compile"
7020 case "(($ac_try" in
7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7023 esac
7024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7025 (eval "$ac_compile") 2>conftest.er1
7026 ac_status=$?
7027 grep -v '^ *+' conftest.er1 >conftest.err
7028 rm -f conftest.er1
7029 cat conftest.err >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); } && {
7032 test -z "$ac_c_werror_flag" ||
7033 test ! -s conftest.err
7034 } && test -s conftest.$ac_objext; then
7035 emacs_cv_struct_utimbuf=yes
7036 else
7037 echo "$as_me: failed program was:" >&5
7038 sed 's/^/| /' conftest.$ac_ext >&5
7040 emacs_cv_struct_utimbuf=no
7043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7046 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7047 if test $emacs_cv_struct_utimbuf = yes; then
7049 cat >>confdefs.h <<\_ACEOF
7050 #define HAVE_STRUCT_UTIMBUF 1
7051 _ACEOF
7055 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7056 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7057 if test "${ac_cv_type_signal+set}" = set; then
7058 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 else
7060 cat >conftest.$ac_ext <<_ACEOF
7061 /* confdefs.h. */
7062 _ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h. */
7066 #include <sys/types.h>
7067 #include <signal.h>
7070 main ()
7072 return *(signal (0, 0)) (0) == 1;
7074 return 0;
7076 _ACEOF
7077 rm -f conftest.$ac_objext
7078 if { (ac_try="$ac_compile"
7079 case "(($ac_try" in
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7082 esac
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_compile") 2>conftest.er1
7085 ac_status=$?
7086 grep -v '^ *+' conftest.er1 >conftest.err
7087 rm -f conftest.er1
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && {
7091 test -z "$ac_c_werror_flag" ||
7092 test ! -s conftest.err
7093 } && test -s conftest.$ac_objext; then
7094 ac_cv_type_signal=int
7095 else
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 ac_cv_type_signal=void
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7105 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7107 cat >>confdefs.h <<_ACEOF
7108 #define RETSIGTYPE $ac_cv_type_signal
7109 _ACEOF
7113 { echo "$as_me:$LINENO: checking for speed_t" >&5
7114 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7115 if test "${emacs_cv_speed_t+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 else
7118 cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h. */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <termios.h>
7126 main ()
7128 speed_t x = 1;
7130 return 0;
7132 _ACEOF
7133 rm -f conftest.$ac_objext
7134 if { (ac_try="$ac_compile"
7135 case "(($ac_try" in
7136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7137 *) ac_try_echo=$ac_try;;
7138 esac
7139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7140 (eval "$ac_compile") 2>conftest.er1
7141 ac_status=$?
7142 grep -v '^ *+' conftest.er1 >conftest.err
7143 rm -f conftest.er1
7144 cat conftest.err >&5
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && {
7147 test -z "$ac_c_werror_flag" ||
7148 test ! -s conftest.err
7149 } && test -s conftest.$ac_objext; then
7150 emacs_cv_speed_t=yes
7151 else
7152 echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7155 emacs_cv_speed_t=no
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7161 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7162 if test $emacs_cv_speed_t = yes; then
7164 cat >>confdefs.h <<\_ACEOF
7165 #define HAVE_SPEED_T 1
7166 _ACEOF
7170 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7171 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7172 if test "${emacs_cv_struct_timeval+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 #ifdef TIME_WITH_SYS_TIME
7182 #include <sys/time.h>
7183 #include <time.h>
7184 #else
7185 #ifdef HAVE_SYS_TIME_H
7186 #include <sys/time.h>
7187 #else
7188 #include <time.h>
7189 #endif
7190 #endif
7192 main ()
7194 static struct timeval x; x.tv_sec = x.tv_usec;
7196 return 0;
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (ac_try="$ac_compile"
7201 case "(($ac_try" in
7202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7204 esac
7205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206 (eval "$ac_compile") 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest.$ac_objext; then
7216 emacs_cv_struct_timeval=yes
7217 else
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7221 emacs_cv_struct_timeval=no
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7227 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7228 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7229 if test $emacs_cv_struct_timeval = yes; then
7231 cat >>confdefs.h <<\_ACEOF
7232 #define HAVE_TIMEVAL 1
7233 _ACEOF
7237 { echo "$as_me:$LINENO: checking for struct exception" >&5
7238 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7239 if test "${emacs_cv_struct_exception+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h. */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 #include <math.h>
7250 main ()
7252 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7254 return 0;
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7259 case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262 esac
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_compile") 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest.$ac_objext; then
7274 emacs_cv_struct_exception=yes
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7279 emacs_cv_struct_exception=no
7282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7285 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7286 HAVE_EXCEPTION=$emacs_cv_struct_exception
7287 if test $emacs_cv_struct_exception != yes; then
7289 cat >>confdefs.h <<\_ACEOF
7290 #define NO_MATHERR 1
7291 _ACEOF
7296 for ac_header in sys/socket.h
7298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7303 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 ac_res=`eval echo '${'$as_ac_Header'}'`
7306 { echo "$as_me:$LINENO: result: $ac_res" >&5
7307 echo "${ECHO_T}$ac_res" >&6; }
7308 else
7309 # Is the header compilable?
7310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7312 cat >conftest.$ac_ext <<_ACEOF
7313 /* confdefs.h. */
7314 _ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7318 $ac_includes_default
7319 #include <$ac_header>
7320 _ACEOF
7321 rm -f conftest.$ac_objext
7322 if { (ac_try="$ac_compile"
7323 case "(($ac_try" in
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7326 esac
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_compile") 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } && {
7335 test -z "$ac_c_werror_flag" ||
7336 test ! -s conftest.err
7337 } && test -s conftest.$ac_objext; then
7338 ac_header_compiler=yes
7339 else
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7343 ac_header_compiler=no
7346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348 echo "${ECHO_T}$ac_header_compiler" >&6; }
7350 # Is the header present?
7351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7353 cat >conftest.$ac_ext <<_ACEOF
7354 /* confdefs.h. */
7355 _ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <$ac_header>
7360 _ACEOF
7361 if { (ac_try="$ac_cpp conftest.$ac_ext"
7362 case "(($ac_try" in
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7365 esac
7366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7368 ac_status=$?
7369 grep -v '^ *+' conftest.er1 >conftest.err
7370 rm -f conftest.er1
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } >/dev/null && {
7374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7375 test ! -s conftest.err
7376 }; then
7377 ac_header_preproc=yes
7378 else
7379 echo "$as_me: failed program was:" >&5
7380 sed 's/^/| /' conftest.$ac_ext >&5
7382 ac_header_preproc=no
7385 rm -f conftest.err conftest.$ac_ext
7386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7387 echo "${ECHO_T}$ac_header_preproc" >&6; }
7389 # So? What about this header?
7390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7391 yes:no: )
7392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7396 ac_header_preproc=yes
7398 no:yes:* )
7399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7413 esac
7414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 else
7419 eval "$as_ac_Header=\$ac_header_preproc"
7421 ac_res=`eval echo '${'$as_ac_Header'}'`
7422 { echo "$as_me:$LINENO: result: $ac_res" >&5
7423 echo "${ECHO_T}$ac_res" >&6; }
7426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7427 cat >>confdefs.h <<_ACEOF
7428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7429 _ACEOF
7433 done
7436 for ac_header in net/if.h
7438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 cat >conftest.$ac_ext <<_ACEOF
7445 /* confdefs.h. */
7446 _ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7450 $ac_includes_default
7451 #if HAVE_SYS_SOCKET_H
7452 #include <sys/socket.h>
7453 #endif
7455 #include <$ac_header>
7456 _ACEOF
7457 rm -f conftest.$ac_objext
7458 if { (ac_try="$ac_compile"
7459 case "(($ac_try" in
7460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7462 esac
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464 (eval "$ac_compile") 2>conftest.er1
7465 ac_status=$?
7466 grep -v '^ *+' conftest.er1 >conftest.err
7467 rm -f conftest.er1
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } && {
7471 test -z "$ac_c_werror_flag" ||
7472 test ! -s conftest.err
7473 } && test -s conftest.$ac_objext; then
7474 eval "$as_ac_Header=yes"
7475 else
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 eval "$as_ac_Header=no"
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7484 ac_res=`eval echo '${'$as_ac_Header'}'`
7485 { echo "$as_me:$LINENO: result: $ac_res" >&5
7486 echo "${ECHO_T}$ac_res" >&6; }
7487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7488 cat >>confdefs.h <<_ACEOF
7489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7490 _ACEOF
7494 done
7497 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7498 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7499 if test "${ac_cv_struct_tm+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7501 else
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508 #include <sys/types.h>
7509 #include <time.h>
7512 main ()
7514 struct tm tm;
7515 int *p = &tm.tm_sec;
7516 return !p;
7518 return 0;
7520 _ACEOF
7521 rm -f conftest.$ac_objext
7522 if { (ac_try="$ac_compile"
7523 case "(($ac_try" in
7524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7526 esac
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_compile") 2>conftest.er1
7529 ac_status=$?
7530 grep -v '^ *+' conftest.er1 >conftest.err
7531 rm -f conftest.er1
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest.$ac_objext; then
7538 ac_cv_struct_tm=time.h
7539 else
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7543 ac_cv_struct_tm=sys/time.h
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7549 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7550 if test $ac_cv_struct_tm = sys/time.h; then
7552 cat >>confdefs.h <<\_ACEOF
7553 #define TM_IN_SYS_TIME 1
7554 _ACEOF
7558 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7559 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7560 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7561 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 else
7563 cat >conftest.$ac_ext <<_ACEOF
7564 /* confdefs.h. */
7565 _ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 #include <sys/types.h>
7570 #include <$ac_cv_struct_tm>
7574 main ()
7576 static struct tm ac_aggr;
7577 if (ac_aggr.tm_zone)
7578 return 0;
7580 return 0;
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (ac_try="$ac_compile"
7585 case "(($ac_try" in
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7588 esac
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest.$ac_objext; then
7600 ac_cv_member_struct_tm_tm_zone=yes
7601 else
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h. */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <sys/types.h>
7612 #include <$ac_cv_struct_tm>
7616 main ()
7618 static struct tm ac_aggr;
7619 if (sizeof ac_aggr.tm_zone)
7620 return 0;
7622 return 0;
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (ac_try="$ac_compile"
7627 case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_compile") 2>conftest.er1
7633 ac_status=$?
7634 grep -v '^ *+' conftest.er1 >conftest.err
7635 rm -f conftest.er1
7636 cat conftest.err >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && {
7639 test -z "$ac_c_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest.$ac_objext; then
7642 ac_cv_member_struct_tm_tm_zone=yes
7643 else
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 ac_cv_member_struct_tm_tm_zone=no
7650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7656 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7657 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7659 cat >>confdefs.h <<_ACEOF
7660 #define HAVE_STRUCT_TM_TM_ZONE 1
7661 _ACEOF
7666 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7668 cat >>confdefs.h <<\_ACEOF
7669 #define HAVE_TM_ZONE 1
7670 _ACEOF
7672 else
7673 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7674 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7675 if test "${ac_cv_have_decl_tzname+set}" = set; then
7676 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 else
7678 cat >conftest.$ac_ext <<_ACEOF
7679 /* confdefs.h. */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 #include <time.h>
7687 main ()
7689 #ifndef tzname
7690 (void) tzname;
7691 #endif
7694 return 0;
7696 _ACEOF
7697 rm -f conftest.$ac_objext
7698 if { (ac_try="$ac_compile"
7699 case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702 esac
7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704 (eval "$ac_compile") 2>conftest.er1
7705 ac_status=$?
7706 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } && {
7711 test -z "$ac_c_werror_flag" ||
7712 test ! -s conftest.err
7713 } && test -s conftest.$ac_objext; then
7714 ac_cv_have_decl_tzname=yes
7715 else
7716 echo "$as_me: failed program was:" >&5
7717 sed 's/^/| /' conftest.$ac_ext >&5
7719 ac_cv_have_decl_tzname=no
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7725 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7726 if test $ac_cv_have_decl_tzname = yes; then
7728 cat >>confdefs.h <<_ACEOF
7729 #define HAVE_DECL_TZNAME 1
7730 _ACEOF
7733 else
7734 cat >>confdefs.h <<_ACEOF
7735 #define HAVE_DECL_TZNAME 0
7736 _ACEOF
7742 { echo "$as_me:$LINENO: checking for tzname" >&5
7743 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7744 if test "${ac_cv_var_tzname+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 else
7747 cat >conftest.$ac_ext <<_ACEOF
7748 /* confdefs.h. */
7749 _ACEOF
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7753 #include <time.h>
7754 #if !HAVE_DECL_TZNAME
7755 extern char *tzname[];
7756 #endif
7759 main ()
7761 return tzname[0][0];
7763 return 0;
7765 _ACEOF
7766 rm -f conftest.$ac_objext conftest$ac_exeext
7767 if { (ac_try="$ac_link"
7768 case "(($ac_try" in
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7771 esac
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773 (eval "$ac_link") 2>conftest.er1
7774 ac_status=$?
7775 grep -v '^ *+' conftest.er1 >conftest.err
7776 rm -f conftest.er1
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } && {
7780 test -z "$ac_c_werror_flag" ||
7781 test ! -s conftest.err
7782 } && test -s conftest$ac_exeext &&
7783 $as_test_x conftest$ac_exeext; then
7784 ac_cv_var_tzname=yes
7785 else
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7789 ac_cv_var_tzname=no
7792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7793 conftest$ac_exeext conftest.$ac_ext
7795 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7796 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7797 if test $ac_cv_var_tzname = yes; then
7799 cat >>confdefs.h <<\_ACEOF
7800 #define HAVE_TZNAME 1
7801 _ACEOF
7806 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7807 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7808 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811 cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h. */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 #include <time.h>
7820 main ()
7822 static struct tm ac_aggr;
7823 if (ac_aggr.tm_gmtoff)
7824 return 0;
7826 return 0;
7828 _ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7831 case "(($ac_try" in
7832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833 *) ac_try_echo=$ac_try;;
7834 esac
7835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7836 (eval "$ac_compile") 2>conftest.er1
7837 ac_status=$?
7838 grep -v '^ *+' conftest.er1 >conftest.err
7839 rm -f conftest.er1
7840 cat conftest.err >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); } && {
7843 test -z "$ac_c_werror_flag" ||
7844 test ! -s conftest.err
7845 } && test -s conftest.$ac_objext; then
7846 ac_cv_member_struct_tm_tm_gmtoff=yes
7847 else
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 cat >conftest.$ac_ext <<_ACEOF
7852 /* confdefs.h. */
7853 _ACEOF
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7857 #include <time.h>
7860 main ()
7862 static struct tm ac_aggr;
7863 if (sizeof ac_aggr.tm_gmtoff)
7864 return 0;
7866 return 0;
7868 _ACEOF
7869 rm -f conftest.$ac_objext
7870 if { (ac_try="$ac_compile"
7871 case "(($ac_try" in
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7874 esac
7875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876 (eval "$ac_compile") 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } && {
7883 test -z "$ac_c_werror_flag" ||
7884 test ! -s conftest.err
7885 } && test -s conftest.$ac_objext; then
7886 ac_cv_member_struct_tm_tm_gmtoff=yes
7887 else
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ac_cv_member_struct_tm_tm_gmtoff=no
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7900 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7901 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7903 cat >>confdefs.h <<\_ACEOF
7904 #define HAVE_TM_GMTOFF 1
7905 _ACEOF
7909 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7910 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7911 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7913 else
7914 cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h. */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7920 $ac_includes_default
7921 #if HAVE_SYS_SOCKET_H
7922 #include <sys/socket.h>
7923 #endif
7924 #if HAVE_NET_IF_H
7925 #include <net/if.h>
7926 #endif
7929 main ()
7931 static struct ifreq ac_aggr;
7932 if (ac_aggr.ifr_flags)
7933 return 0;
7935 return 0;
7937 _ACEOF
7938 rm -f conftest.$ac_objext
7939 if { (ac_try="$ac_compile"
7940 case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943 esac
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_compile") 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest.$ac_objext; then
7955 ac_cv_member_struct_ifreq_ifr_flags=yes
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h. */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966 $ac_includes_default
7967 #if HAVE_SYS_SOCKET_H
7968 #include <sys/socket.h>
7969 #endif
7970 #if HAVE_NET_IF_H
7971 #include <net/if.h>
7972 #endif
7975 main ()
7977 static struct ifreq ac_aggr;
7978 if (sizeof ac_aggr.ifr_flags)
7979 return 0;
7981 return 0;
7983 _ACEOF
7984 rm -f conftest.$ac_objext
7985 if { (ac_try="$ac_compile"
7986 case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_compile") 2>conftest.er1
7992 ac_status=$?
7993 grep -v '^ *+' conftest.er1 >conftest.err
7994 rm -f conftest.er1
7995 cat conftest.err >&5
7996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997 (exit $ac_status); } && {
7998 test -z "$ac_c_werror_flag" ||
7999 test ! -s conftest.err
8000 } && test -s conftest.$ac_objext; then
8001 ac_cv_member_struct_ifreq_ifr_flags=yes
8002 else
8003 echo "$as_me: failed program was:" >&5
8004 sed 's/^/| /' conftest.$ac_ext >&5
8006 ac_cv_member_struct_ifreq_ifr_flags=no
8009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8015 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8016 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8018 cat >>confdefs.h <<_ACEOF
8019 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8020 _ACEOF
8024 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8025 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8026 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 else
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h. */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 $ac_includes_default
8036 #if HAVE_SYS_SOCKET_H
8037 #include <sys/socket.h>
8038 #endif
8039 #if HAVE_NET_IF_H
8040 #include <net/if.h>
8041 #endif
8044 main ()
8046 static struct ifreq ac_aggr;
8047 if (ac_aggr.ifr_hwaddr)
8048 return 0;
8050 return 0;
8052 _ACEOF
8053 rm -f conftest.$ac_objext
8054 if { (ac_try="$ac_compile"
8055 case "(($ac_try" in
8056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8057 *) ac_try_echo=$ac_try;;
8058 esac
8059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8060 (eval "$ac_compile") 2>conftest.er1
8061 ac_status=$?
8062 grep -v '^ *+' conftest.er1 >conftest.err
8063 rm -f conftest.er1
8064 cat conftest.err >&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); } && {
8067 test -z "$ac_c_werror_flag" ||
8068 test ! -s conftest.err
8069 } && test -s conftest.$ac_objext; then
8070 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8071 else
8072 echo "$as_me: failed program was:" >&5
8073 sed 's/^/| /' conftest.$ac_ext >&5
8075 cat >conftest.$ac_ext <<_ACEOF
8076 /* confdefs.h. */
8077 _ACEOF
8078 cat confdefs.h >>conftest.$ac_ext
8079 cat >>conftest.$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 $ac_includes_default
8082 #if HAVE_SYS_SOCKET_H
8083 #include <sys/socket.h>
8084 #endif
8085 #if HAVE_NET_IF_H
8086 #include <net/if.h>
8087 #endif
8090 main ()
8092 static struct ifreq ac_aggr;
8093 if (sizeof ac_aggr.ifr_hwaddr)
8094 return 0;
8096 return 0;
8098 _ACEOF
8099 rm -f conftest.$ac_objext
8100 if { (ac_try="$ac_compile"
8101 case "(($ac_try" in
8102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103 *) ac_try_echo=$ac_try;;
8104 esac
8105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8106 (eval "$ac_compile") 2>conftest.er1
8107 ac_status=$?
8108 grep -v '^ *+' conftest.er1 >conftest.err
8109 rm -f conftest.er1
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } && {
8113 test -z "$ac_c_werror_flag" ||
8114 test ! -s conftest.err
8115 } && test -s conftest.$ac_objext; then
8116 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8117 else
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8121 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8129 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8130 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8131 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8133 cat >>confdefs.h <<_ACEOF
8134 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8135 _ACEOF
8139 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8140 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8141 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 else
8144 cat >conftest.$ac_ext <<_ACEOF
8145 /* confdefs.h. */
8146 _ACEOF
8147 cat confdefs.h >>conftest.$ac_ext
8148 cat >>conftest.$ac_ext <<_ACEOF
8149 /* end confdefs.h. */
8150 $ac_includes_default
8151 #if HAVE_SYS_SOCKET_H
8152 #include <sys/socket.h>
8153 #endif
8154 #if HAVE_NET_IF_H
8155 #include <net/if.h>
8156 #endif
8159 main ()
8161 static struct ifreq ac_aggr;
8162 if (ac_aggr.ifr_netmask)
8163 return 0;
8165 return 0;
8167 _ACEOF
8168 rm -f conftest.$ac_objext
8169 if { (ac_try="$ac_compile"
8170 case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173 esac
8174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8175 (eval "$ac_compile") 2>conftest.er1
8176 ac_status=$?
8177 grep -v '^ *+' conftest.er1 >conftest.err
8178 rm -f conftest.er1
8179 cat conftest.err >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && {
8182 test -z "$ac_c_werror_flag" ||
8183 test ! -s conftest.err
8184 } && test -s conftest.$ac_objext; then
8185 ac_cv_member_struct_ifreq_ifr_netmask=yes
8186 else
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8190 cat >conftest.$ac_ext <<_ACEOF
8191 /* confdefs.h. */
8192 _ACEOF
8193 cat confdefs.h >>conftest.$ac_ext
8194 cat >>conftest.$ac_ext <<_ACEOF
8195 /* end confdefs.h. */
8196 $ac_includes_default
8197 #if HAVE_SYS_SOCKET_H
8198 #include <sys/socket.h>
8199 #endif
8200 #if HAVE_NET_IF_H
8201 #include <net/if.h>
8202 #endif
8205 main ()
8207 static struct ifreq ac_aggr;
8208 if (sizeof ac_aggr.ifr_netmask)
8209 return 0;
8211 return 0;
8213 _ACEOF
8214 rm -f conftest.$ac_objext
8215 if { (ac_try="$ac_compile"
8216 case "(($ac_try" in
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8219 esac
8220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8221 (eval "$ac_compile") 2>conftest.er1
8222 ac_status=$?
8223 grep -v '^ *+' conftest.er1 >conftest.err
8224 rm -f conftest.er1
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } && {
8228 test -z "$ac_c_werror_flag" ||
8229 test ! -s conftest.err
8230 } && test -s conftest.$ac_objext; then
8231 ac_cv_member_struct_ifreq_ifr_netmask=yes
8232 else
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8236 ac_cv_member_struct_ifreq_ifr_netmask=no
8239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8244 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8245 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8246 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8248 cat >>confdefs.h <<_ACEOF
8249 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8250 _ACEOF
8254 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8255 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8256 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8258 else
8259 cat >conftest.$ac_ext <<_ACEOF
8260 /* confdefs.h. */
8261 _ACEOF
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8265 $ac_includes_default
8266 #if HAVE_SYS_SOCKET_H
8267 #include <sys/socket.h>
8268 #endif
8269 #if HAVE_NET_IF_H
8270 #include <net/if.h>
8271 #endif
8274 main ()
8276 static struct ifreq ac_aggr;
8277 if (ac_aggr.ifr_broadaddr)
8278 return 0;
8280 return 0;
8282 _ACEOF
8283 rm -f conftest.$ac_objext
8284 if { (ac_try="$ac_compile"
8285 case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8288 esac
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290 (eval "$ac_compile") 2>conftest.er1
8291 ac_status=$?
8292 grep -v '^ *+' conftest.er1 >conftest.err
8293 rm -f conftest.er1
8294 cat conftest.err >&5
8295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } && {
8297 test -z "$ac_c_werror_flag" ||
8298 test ! -s conftest.err
8299 } && test -s conftest.$ac_objext; then
8300 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8301 else
8302 echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8305 cat >conftest.$ac_ext <<_ACEOF
8306 /* confdefs.h. */
8307 _ACEOF
8308 cat confdefs.h >>conftest.$ac_ext
8309 cat >>conftest.$ac_ext <<_ACEOF
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 #if HAVE_SYS_SOCKET_H
8313 #include <sys/socket.h>
8314 #endif
8315 #if HAVE_NET_IF_H
8316 #include <net/if.h>
8317 #endif
8320 main ()
8322 static struct ifreq ac_aggr;
8323 if (sizeof ac_aggr.ifr_broadaddr)
8324 return 0;
8326 return 0;
8328 _ACEOF
8329 rm -f conftest.$ac_objext
8330 if { (ac_try="$ac_compile"
8331 case "(($ac_try" in
8332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8333 *) ac_try_echo=$ac_try;;
8334 esac
8335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8336 (eval "$ac_compile") 2>conftest.er1
8337 ac_status=$?
8338 grep -v '^ *+' conftest.er1 >conftest.err
8339 rm -f conftest.er1
8340 cat conftest.err >&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); } && {
8343 test -z "$ac_c_werror_flag" ||
8344 test ! -s conftest.err
8345 } && test -s conftest.$ac_objext; then
8346 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8347 else
8348 echo "$as_me: failed program was:" >&5
8349 sed 's/^/| /' conftest.$ac_ext >&5
8351 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8359 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8360 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8361 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8363 cat >>confdefs.h <<_ACEOF
8364 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8365 _ACEOF
8369 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8370 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8371 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374 cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h. */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h. */
8380 $ac_includes_default
8381 #if HAVE_SYS_SOCKET_H
8382 #include <sys/socket.h>
8383 #endif
8384 #if HAVE_NET_IF_H
8385 #include <net/if.h>
8386 #endif
8389 main ()
8391 static struct ifreq ac_aggr;
8392 if (ac_aggr.ifr_addr)
8393 return 0;
8395 return 0;
8397 _ACEOF
8398 rm -f conftest.$ac_objext
8399 if { (ac_try="$ac_compile"
8400 case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8403 esac
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_compile") 2>conftest.er1
8406 ac_status=$?
8407 grep -v '^ *+' conftest.er1 >conftest.err
8408 rm -f conftest.er1
8409 cat conftest.err >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); } && {
8412 test -z "$ac_c_werror_flag" ||
8413 test ! -s conftest.err
8414 } && test -s conftest.$ac_objext; then
8415 ac_cv_member_struct_ifreq_ifr_addr=yes
8416 else
8417 echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h. */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8426 $ac_includes_default
8427 #if HAVE_SYS_SOCKET_H
8428 #include <sys/socket.h>
8429 #endif
8430 #if HAVE_NET_IF_H
8431 #include <net/if.h>
8432 #endif
8435 main ()
8437 static struct ifreq ac_aggr;
8438 if (sizeof ac_aggr.ifr_addr)
8439 return 0;
8441 return 0;
8443 _ACEOF
8444 rm -f conftest.$ac_objext
8445 if { (ac_try="$ac_compile"
8446 case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449 esac
8450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8451 (eval "$ac_compile") 2>conftest.er1
8452 ac_status=$?
8453 grep -v '^ *+' conftest.er1 >conftest.err
8454 rm -f conftest.er1
8455 cat conftest.err >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } && {
8458 test -z "$ac_c_werror_flag" ||
8459 test ! -s conftest.err
8460 } && test -s conftest.$ac_objext; then
8461 ac_cv_member_struct_ifreq_ifr_addr=yes
8462 else
8463 echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8466 ac_cv_member_struct_ifreq_ifr_addr=no
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8474 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8475 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8476 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8478 cat >>confdefs.h <<_ACEOF
8479 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8480 _ACEOF
8487 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8488 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8489 if test "$ac_cv_prog_cc_c89" != no; then
8490 { echo "$as_me:$LINENO: result: yes" >&5
8491 echo "${ECHO_T}yes" >&6; }
8493 cat >>confdefs.h <<\_ACEOF
8494 #define PROTOTYPES 1
8495 _ACEOF
8498 cat >>confdefs.h <<\_ACEOF
8499 #define __PROTOTYPES 1
8500 _ACEOF
8502 else
8503 { echo "$as_me:$LINENO: result: no" >&5
8504 echo "${ECHO_T}no" >&6; }
8507 { echo "$as_me:$LINENO: checking for working volatile" >&5
8508 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8509 if test "${ac_cv_c_volatile+set}" = set; then
8510 echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512 cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h. */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h. */
8520 main ()
8523 volatile int x;
8524 int * volatile y = (int *) 0;
8525 return !x && !y;
8527 return 0;
8529 _ACEOF
8530 rm -f conftest.$ac_objext
8531 if { (ac_try="$ac_compile"
8532 case "(($ac_try" in
8533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8534 *) ac_try_echo=$ac_try;;
8535 esac
8536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8537 (eval "$ac_compile") 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } && {
8544 test -z "$ac_c_werror_flag" ||
8545 test ! -s conftest.err
8546 } && test -s conftest.$ac_objext; then
8547 ac_cv_c_volatile=yes
8548 else
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8552 ac_cv_c_volatile=no
8555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8558 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8559 if test $ac_cv_c_volatile = no; then
8561 cat >>confdefs.h <<\_ACEOF
8562 #define volatile
8563 _ACEOF
8567 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8568 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8569 if test "${ac_cv_c_const+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h. */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8580 main ()
8582 /* FIXME: Include the comments suggested by Paul. */
8583 #ifndef __cplusplus
8584 /* Ultrix mips cc rejects this. */
8585 typedef int charset[2];
8586 const charset cs;
8587 /* SunOS 4.1.1 cc rejects this. */
8588 char const *const *pcpcc;
8589 char **ppc;
8590 /* NEC SVR4.0.2 mips cc rejects this. */
8591 struct point {int x, y;};
8592 static struct point const zero = {0,0};
8593 /* AIX XL C 1.02.0.0 rejects this.
8594 It does not let you subtract one const X* pointer from another in
8595 an arm of an if-expression whose if-part is not a constant
8596 expression */
8597 const char *g = "string";
8598 pcpcc = &g + (g ? g-g : 0);
8599 /* HPUX 7.0 cc rejects these. */
8600 ++pcpcc;
8601 ppc = (char**) pcpcc;
8602 pcpcc = (char const *const *) ppc;
8603 { /* SCO 3.2v4 cc rejects this. */
8604 char *t;
8605 char const *s = 0 ? (char *) 0 : (char const *) 0;
8607 *t++ = 0;
8608 if (s) return 0;
8610 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8611 int x[] = {25, 17};
8612 const int *foo = &x[0];
8613 ++foo;
8615 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8616 typedef const int *iptr;
8617 iptr p = 0;
8618 ++p;
8620 { /* AIX XL C 1.02.0.0 rejects this saying
8621 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8622 struct s { int j; const int *ap[3]; };
8623 struct s *b; b->j = 5;
8625 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8626 const int foo = 10;
8627 if (!foo) return 0;
8629 return !cs[0] && !zero.x;
8630 #endif
8633 return 0;
8635 _ACEOF
8636 rm -f conftest.$ac_objext
8637 if { (ac_try="$ac_compile"
8638 case "(($ac_try" in
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8641 esac
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643 (eval "$ac_compile") 2>conftest.er1
8644 ac_status=$?
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } && {
8650 test -z "$ac_c_werror_flag" ||
8651 test ! -s conftest.err
8652 } && test -s conftest.$ac_objext; then
8653 ac_cv_c_const=yes
8654 else
8655 echo "$as_me: failed program was:" >&5
8656 sed 's/^/| /' conftest.$ac_ext >&5
8658 ac_cv_c_const=no
8661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8664 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8665 if test $ac_cv_c_const = no; then
8667 cat >>confdefs.h <<\_ACEOF
8668 #define const
8669 _ACEOF
8673 { echo "$as_me:$LINENO: checking for void * support" >&5
8674 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8675 if test "${emacs_cv_void_star+set}" = set; then
8676 echo $ECHO_N "(cached) $ECHO_C" >&6
8677 else
8678 cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h. */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h. */
8686 main ()
8688 void * foo;
8690 return 0;
8692 _ACEOF
8693 rm -f conftest.$ac_objext
8694 if { (ac_try="$ac_compile"
8695 case "(($ac_try" in
8696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697 *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700 (eval "$ac_compile") 2>conftest.er1
8701 ac_status=$?
8702 grep -v '^ *+' conftest.er1 >conftest.err
8703 rm -f conftest.er1
8704 cat conftest.err >&5
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && {
8707 test -z "$ac_c_werror_flag" ||
8708 test ! -s conftest.err
8709 } && test -s conftest.$ac_objext; then
8710 emacs_cv_void_star=yes
8711 else
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 emacs_cv_void_star=no
8718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8720 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8721 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8722 if test $emacs_cv_void_star = yes; then
8723 cat >>confdefs.h <<\_ACEOF
8724 #define POINTER_TYPE void
8725 _ACEOF
8727 else
8728 cat >>confdefs.h <<\_ACEOF
8729 #define POINTER_TYPE char
8730 _ACEOF
8738 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8739 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8740 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8741 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 cat >conftest.make <<\_ACEOF
8745 SHELL = /bin/sh
8746 all:
8747 @echo '@@@%%%=$(MAKE)=@@@%%%'
8748 _ACEOF
8749 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8750 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8751 *@@@%%%=?*=@@@%%%*)
8752 eval ac_cv_prog_make_${ac_make}_set=yes;;
8754 eval ac_cv_prog_make_${ac_make}_set=no;;
8755 esac
8756 rm -f conftest.make
8758 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8759 { echo "$as_me:$LINENO: result: yes" >&5
8760 echo "${ECHO_T}yes" >&6; }
8761 SET_MAKE=
8762 else
8763 { echo "$as_me:$LINENO: result: no" >&5
8764 echo "${ECHO_T}no" >&6; }
8765 SET_MAKE="MAKE=${MAKE-make}"
8769 { echo "$as_me:$LINENO: checking for long file names" >&5
8770 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8771 if test "${ac_cv_sys_long_file_names+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8773 else
8774 ac_cv_sys_long_file_names=yes
8775 # Test for long file names in all the places we know might matter:
8776 # . the current directory, where building will happen
8777 # $prefix/lib where we will be installing things
8778 # $exec_prefix/lib likewise
8779 # $TMPDIR if set, where it might want to write temporary files
8780 # /tmp where it might want to write temporary files
8781 # /var/tmp likewise
8782 # /usr/tmp likewise
8783 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8784 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8785 # in the usual case where exec_prefix is '${prefix}'.
8786 case $ac_dir in #(
8787 . | /* | ?:[\\/]*) ;; #(
8788 *) continue;;
8789 esac
8790 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8791 ac_xdir=$ac_dir/cf$$
8792 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8793 ac_tf1=$ac_xdir/conftest9012345
8794 ac_tf2=$ac_xdir/conftest9012346
8795 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8796 ac_cv_sys_long_file_names=no
8797 rm -f -r "$ac_xdir" 2>/dev/null
8798 test $ac_cv_sys_long_file_names = no && break
8799 done
8801 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8802 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8803 if test $ac_cv_sys_long_file_names = yes; then
8805 cat >>confdefs.h <<\_ACEOF
8806 #define HAVE_LONG_FILE_NAMES 1
8807 _ACEOF
8812 #### Choose a window system.
8814 { echo "$as_me:$LINENO: checking for X" >&5
8815 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8818 # Check whether --with-x was given.
8819 if test "${with_x+set}" = set; then
8820 withval=$with_x;
8823 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8824 if test "x$with_x" = xno; then
8825 # The user explicitly disabled X.
8826 have_x=disabled
8827 else
8828 case $x_includes,$x_libraries in #(
8829 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8830 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8831 { (exit 1); exit 1; }; };; #(
8832 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8833 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 else
8835 # One or both of the vars are not set, and there is no cached value.
8836 ac_x_includes=no ac_x_libraries=no
8837 rm -f -r conftest.dir
8838 if mkdir conftest.dir; then
8839 cd conftest.dir
8840 cat >Imakefile <<'_ACEOF'
8841 incroot:
8842 @echo incroot='${INCROOT}'
8843 usrlibdir:
8844 @echo usrlibdir='${USRLIBDIR}'
8845 libdir:
8846 @echo libdir='${LIBDIR}'
8847 _ACEOF
8848 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8849 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8850 for ac_var in incroot usrlibdir libdir; do
8851 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8852 done
8853 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8854 for ac_extension in a so sl; do
8855 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8856 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8857 ac_im_usrlibdir=$ac_im_libdir; break
8859 done
8860 # Screen out bogus values from the imake configuration. They are
8861 # bogus both because they are the default anyway, and because
8862 # using them would break gcc on systems where it needs fixed includes.
8863 case $ac_im_incroot in
8864 /usr/include) ac_x_includes= ;;
8865 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8866 esac
8867 case $ac_im_usrlibdir in
8868 /usr/lib | /lib) ;;
8869 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8870 esac
8872 cd ..
8873 rm -f -r conftest.dir
8876 # Standard set of common directories for X headers.
8877 # Check X11 before X11Rn because it is often a symlink to the current release.
8878 ac_x_header_dirs='
8879 /usr/X11/include
8880 /usr/X11R6/include
8881 /usr/X11R5/include
8882 /usr/X11R4/include
8884 /usr/include/X11
8885 /usr/include/X11R6
8886 /usr/include/X11R5
8887 /usr/include/X11R4
8889 /usr/local/X11/include
8890 /usr/local/X11R6/include
8891 /usr/local/X11R5/include
8892 /usr/local/X11R4/include
8894 /usr/local/include/X11
8895 /usr/local/include/X11R6
8896 /usr/local/include/X11R5
8897 /usr/local/include/X11R4
8899 /usr/X386/include
8900 /usr/x386/include
8901 /usr/XFree86/include/X11
8903 /usr/include
8904 /usr/local/include
8905 /usr/unsupported/include
8906 /usr/athena/include
8907 /usr/local/x11r5/include
8908 /usr/lpp/Xamples/include
8910 /usr/openwin/include
8911 /usr/openwin/share/include'
8913 if test "$ac_x_includes" = no; then
8914 # Guess where to find include files, by looking for Xlib.h.
8915 # First, try using that file with no special directory specified.
8916 cat >conftest.$ac_ext <<_ACEOF
8917 /* confdefs.h. */
8918 _ACEOF
8919 cat confdefs.h >>conftest.$ac_ext
8920 cat >>conftest.$ac_ext <<_ACEOF
8921 /* end confdefs.h. */
8922 #include <X11/Xlib.h>
8923 _ACEOF
8924 if { (ac_try="$ac_cpp conftest.$ac_ext"
8925 case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928 esac
8929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } >/dev/null && {
8937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8938 test ! -s conftest.err
8939 }; then
8940 # We can compile using X headers with no special include directory.
8941 ac_x_includes=
8942 else
8943 echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8946 for ac_dir in $ac_x_header_dirs; do
8947 if test -r "$ac_dir/X11/Xlib.h"; then
8948 ac_x_includes=$ac_dir
8949 break
8951 done
8954 rm -f conftest.err conftest.$ac_ext
8955 fi # $ac_x_includes = no
8957 if test "$ac_x_libraries" = no; then
8958 # Check for the libraries.
8959 # See if we find them without any special options.
8960 # Don't add to $LIBS permanently.
8961 ac_save_LIBS=$LIBS
8962 LIBS="-lX11 $LIBS"
8963 cat >conftest.$ac_ext <<_ACEOF
8964 /* confdefs.h. */
8965 _ACEOF
8966 cat confdefs.h >>conftest.$ac_ext
8967 cat >>conftest.$ac_ext <<_ACEOF
8968 /* end confdefs.h. */
8969 #include <X11/Xlib.h>
8971 main ()
8973 XrmInitialize ()
8975 return 0;
8977 _ACEOF
8978 rm -f conftest.$ac_objext conftest$ac_exeext
8979 if { (ac_try="$ac_link"
8980 case "(($ac_try" in
8981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982 *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985 (eval "$ac_link") 2>conftest.er1
8986 ac_status=$?
8987 grep -v '^ *+' conftest.er1 >conftest.err
8988 rm -f conftest.er1
8989 cat conftest.err >&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } && {
8992 test -z "$ac_c_werror_flag" ||
8993 test ! -s conftest.err
8994 } && test -s conftest$ac_exeext &&
8995 $as_test_x conftest$ac_exeext; then
8996 LIBS=$ac_save_LIBS
8997 # We can link X programs with no special library path.
8998 ac_x_libraries=
8999 else
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 LIBS=$ac_save_LIBS
9004 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9006 # Don't even attempt the hair of trying to link an X program!
9007 for ac_extension in a so sl; do
9008 if test -r "$ac_dir/libX11.$ac_extension"; then
9009 ac_x_libraries=$ac_dir
9010 break 2
9012 done
9013 done
9016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9017 conftest$ac_exeext conftest.$ac_ext
9018 fi # $ac_x_libraries = no
9020 case $ac_x_includes,$ac_x_libraries in #(
9021 no,* | *,no | *\'*)
9022 # Didn't find X, or a directory has "'" in its name.
9023 ac_cv_have_x="have_x=no";; #(
9025 # Record where we found X for the cache.
9026 ac_cv_have_x="have_x=yes\
9027 ac_x_includes='$ac_x_includes'\
9028 ac_x_libraries='$ac_x_libraries'"
9029 esac
9031 ;; #(
9032 *) have_x=yes;;
9033 esac
9034 eval "$ac_cv_have_x"
9035 fi # $with_x != no
9037 if test "$have_x" != yes; then
9038 { echo "$as_me:$LINENO: result: $have_x" >&5
9039 echo "${ECHO_T}$have_x" >&6; }
9040 no_x=yes
9041 else
9042 # If each of the values was on the command line, it overrides each guess.
9043 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9044 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9045 # Update the cache value to reflect the command line values.
9046 ac_cv_have_x="have_x=yes\
9047 ac_x_includes='$x_includes'\
9048 ac_x_libraries='$x_libraries'"
9049 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9050 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9053 if test "$no_x" = yes; then
9054 window_system=none
9055 else
9056 window_system=x11
9059 if test "${x_libraries}" != NONE; then
9060 if test -n "${x_libraries}"; then
9061 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9062 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9064 x_default_search_path=""
9065 x_search_path=${x_libraries}
9066 if test -z "${x_search_path}"; then
9067 x_search_path=/usr/lib
9069 for x_library in `echo ${x_search_path}: | \
9070 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9071 x_search_path="\
9072 ${x_library}/X11/%L/%T/%N%C%S:\
9073 ${x_library}/X11/%l/%T/%N%C%S:\
9074 ${x_library}/X11/%T/%N%C%S:\
9075 ${x_library}/X11/%L/%T/%N%S:\
9076 ${x_library}/X11/%l/%T/%N%S:\
9077 ${x_library}/X11/%T/%N%S"
9078 if test x"${x_default_search_path}" = x; then
9079 x_default_search_path=${x_search_path}
9080 else
9081 x_default_search_path="${x_search_path}:${x_default_search_path}"
9083 done
9085 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9086 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9089 if test x"${x_includes}" = x; then
9090 bitmapdir=/usr/include/X11/bitmaps
9091 else
9092 # accumulate include directories that have X11 bitmap subdirectories
9093 bmd_acc="dummyval"
9094 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9095 if test -d "${bmd}/X11/bitmaps"; then
9096 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9098 if test -d "${bmd}/bitmaps"; then
9099 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9101 done
9102 if test ${bmd_acc} != "dummyval"; then
9103 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9107 HAVE_CARBON=no
9108 if test "${with_carbon}" != no; then
9109 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9110 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9111 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9112 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9113 echo $ECHO_N "(cached) $ECHO_C" >&6
9115 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9116 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9117 else
9118 # Is the header compilable?
9119 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9120 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9121 cat >conftest.$ac_ext <<_ACEOF
9122 /* confdefs.h. */
9123 _ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9127 $ac_includes_default
9128 #include <Carbon/Carbon.h>
9129 _ACEOF
9130 rm -f conftest.$ac_objext
9131 if { (ac_try="$ac_compile"
9132 case "(($ac_try" in
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9135 esac
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_compile") 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && {
9144 test -z "$ac_c_werror_flag" ||
9145 test ! -s conftest.err
9146 } && test -s conftest.$ac_objext; then
9147 ac_header_compiler=yes
9148 else
9149 echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9152 ac_header_compiler=no
9155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9157 echo "${ECHO_T}$ac_header_compiler" >&6; }
9159 # Is the header present?
9160 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9161 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9162 cat >conftest.$ac_ext <<_ACEOF
9163 /* confdefs.h. */
9164 _ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9168 #include <Carbon/Carbon.h>
9169 _ACEOF
9170 if { (ac_try="$ac_cpp conftest.$ac_ext"
9171 case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9174 esac
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9177 ac_status=$?
9178 grep -v '^ *+' conftest.er1 >conftest.err
9179 rm -f conftest.er1
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } >/dev/null && {
9183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9184 test ! -s conftest.err
9185 }; then
9186 ac_header_preproc=yes
9187 else
9188 echo "$as_me: failed program was:" >&5
9189 sed 's/^/| /' conftest.$ac_ext >&5
9191 ac_header_preproc=no
9194 rm -f conftest.err conftest.$ac_ext
9195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9196 echo "${ECHO_T}$ac_header_preproc" >&6; }
9198 # So? What about this header?
9199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9200 yes:no: )
9201 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9202 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9204 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9205 ac_header_preproc=yes
9207 no:yes:* )
9208 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9209 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9210 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9211 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9213 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9215 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9217 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9219 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9222 esac
9223 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9224 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9225 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 else
9228 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9230 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9231 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9234 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9235 HAVE_CARBON=yes
9240 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9241 if test "${with_carbon+set}" != set \
9242 && test "${carbon_appdir_x+set}" != set; then
9243 for var in with_x with_x_toolkit with_xim \
9244 with_xpm with_jpeg with_tiff with_gif with_png; do
9245 if eval test \"\${$var+set}\" = set; then
9246 HAVE_CARBON=no
9247 break
9249 done
9252 if test "${HAVE_CARBON}" = yes; then
9253 window_system=mac
9256 case "${window_system}" in
9257 x11 )
9258 HAVE_X_WINDOWS=yes
9259 HAVE_X11=yes
9260 case "${with_x_toolkit}" in
9261 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9262 motif ) USE_X_TOOLKIT=MOTIF ;;
9263 gtk ) with_gtk=yes
9264 USE_X_TOOLKIT=none ;;
9265 no ) USE_X_TOOLKIT=none ;;
9266 * ) USE_X_TOOLKIT=maybe ;;
9267 esac
9269 mac | none )
9270 HAVE_X_WINDOWS=no
9271 HAVE_X11=no
9272 USE_X_TOOLKIT=none
9274 esac
9276 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9277 # Extract the first word of "X", so it can be a program name with args.
9278 set dummy X; ac_word=$2
9279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9281 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284 if test -n "$HAVE_XSERVER"; then
9285 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9286 else
9287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288 for as_dir in $PATH
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9294 ac_cv_prog_HAVE_XSERVER="true"
9295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9296 break 2
9298 done
9299 done
9300 IFS=$as_save_IFS
9302 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9305 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9306 if test -n "$HAVE_XSERVER"; then
9307 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9308 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9309 else
9310 { echo "$as_me:$LINENO: result: no" >&5
9311 echo "${ECHO_T}no" >&6; }
9315 if test "$HAVE_XSERVER" = true ||
9316 test -n "$DISPLAY" ||
9317 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9318 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9319 were found. You should install the relevant development files for X
9320 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9321 sure you have development files for image handling, i.e.
9322 tiff, gif, jpeg, png and xpm.
9323 If you are sure you want Emacs compiled without X window support, pass
9324 --without-x
9325 to configure." >&5
9326 echo "$as_me: error: You seem to be running X, but no X development libraries
9327 were found. You should install the relevant development files for X
9328 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9329 sure you have development files for image handling, i.e.
9330 tiff, gif, jpeg, png and xpm.
9331 If you are sure you want Emacs compiled without X window support, pass
9332 --without-x
9333 to configure." >&2;}
9334 { (exit 1); exit 1; }; }
9338 ### If we're using X11, we should use the X menu package.
9339 HAVE_MENUS=no
9340 case ${HAVE_X11} in
9341 yes ) HAVE_MENUS=yes ;;
9342 esac
9344 ### Compute the unexec source name from the object name.
9345 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9347 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9348 # Assume not, until told otherwise.
9349 GNU_MALLOC=yes
9350 doug_lea_malloc=yes
9351 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9352 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9353 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9355 else
9356 cat >conftest.$ac_ext <<_ACEOF
9357 /* confdefs.h. */
9358 _ACEOF
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9364 #define malloc_get_state innocuous_malloc_get_state
9366 /* System header to define __stub macros and hopefully few prototypes,
9367 which can conflict with char malloc_get_state (); below.
9368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9369 <limits.h> exists even on freestanding compilers. */
9371 #ifdef __STDC__
9372 # include <limits.h>
9373 #else
9374 # include <assert.h>
9375 #endif
9377 #undef malloc_get_state
9379 /* Override any GCC internal prototype to avoid an error.
9380 Use char because int might match the return type of a GCC
9381 builtin and then its argument prototype would still apply. */
9382 #ifdef __cplusplus
9383 extern "C"
9384 #endif
9385 char malloc_get_state ();
9386 /* The GNU C library defines this for functions which it implements
9387 to always fail with ENOSYS. Some functions are actually named
9388 something starting with __ and the normal name is an alias. */
9389 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9390 choke me
9391 #endif
9394 main ()
9396 return malloc_get_state ();
9398 return 0;
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (ac_try="$ac_link"
9403 case "(($ac_try" in
9404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405 *) ac_try_echo=$ac_try;;
9406 esac
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_link") 2>conftest.er1
9409 ac_status=$?
9410 grep -v '^ *+' conftest.er1 >conftest.err
9411 rm -f conftest.er1
9412 cat conftest.err >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } && {
9415 test -z "$ac_c_werror_flag" ||
9416 test ! -s conftest.err
9417 } && test -s conftest$ac_exeext &&
9418 $as_test_x conftest$ac_exeext; then
9419 ac_cv_func_malloc_get_state=yes
9420 else
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9424 ac_cv_func_malloc_get_state=no
9427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9428 conftest$ac_exeext conftest.$ac_ext
9430 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9431 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9432 if test $ac_cv_func_malloc_get_state = yes; then
9434 else
9435 doug_lea_malloc=no
9438 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9439 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9440 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443 cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9451 #define malloc_set_state innocuous_malloc_set_state
9453 /* System header to define __stub macros and hopefully few prototypes,
9454 which can conflict with char malloc_set_state (); below.
9455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9456 <limits.h> exists even on freestanding compilers. */
9458 #ifdef __STDC__
9459 # include <limits.h>
9460 #else
9461 # include <assert.h>
9462 #endif
9464 #undef malloc_set_state
9466 /* Override any GCC internal prototype to avoid an error.
9467 Use char because int might match the return type of a GCC
9468 builtin and then its argument prototype would still apply. */
9469 #ifdef __cplusplus
9470 extern "C"
9471 #endif
9472 char malloc_set_state ();
9473 /* The GNU C library defines this for functions which it implements
9474 to always fail with ENOSYS. Some functions are actually named
9475 something starting with __ and the normal name is an alias. */
9476 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9477 choke me
9478 #endif
9481 main ()
9483 return malloc_set_state ();
9485 return 0;
9487 _ACEOF
9488 rm -f conftest.$ac_objext conftest$ac_exeext
9489 if { (ac_try="$ac_link"
9490 case "(($ac_try" in
9491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9492 *) ac_try_echo=$ac_try;;
9493 esac
9494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9495 (eval "$ac_link") 2>conftest.er1
9496 ac_status=$?
9497 grep -v '^ *+' conftest.er1 >conftest.err
9498 rm -f conftest.er1
9499 cat conftest.err >&5
9500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501 (exit $ac_status); } && {
9502 test -z "$ac_c_werror_flag" ||
9503 test ! -s conftest.err
9504 } && test -s conftest$ac_exeext &&
9505 $as_test_x conftest$ac_exeext; then
9506 ac_cv_func_malloc_set_state=yes
9507 else
9508 echo "$as_me: failed program was:" >&5
9509 sed 's/^/| /' conftest.$ac_ext >&5
9511 ac_cv_func_malloc_set_state=no
9514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9515 conftest$ac_exeext conftest.$ac_ext
9517 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9518 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9519 if test $ac_cv_func_malloc_set_state = yes; then
9521 else
9522 doug_lea_malloc=no
9525 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9526 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9527 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9528 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 else
9530 cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h. */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 extern void (* __after_morecore_hook)();
9538 main ()
9540 __after_morecore_hook = 0
9542 return 0;
9544 _ACEOF
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (ac_try="$ac_link"
9547 case "(($ac_try" in
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9550 esac
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_link") 2>conftest.er1
9553 ac_status=$?
9554 grep -v '^ *+' conftest.er1 >conftest.err
9555 rm -f conftest.er1
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && {
9559 test -z "$ac_c_werror_flag" ||
9560 test ! -s conftest.err
9561 } && test -s conftest$ac_exeext &&
9562 $as_test_x conftest$ac_exeext; then
9563 emacs_cv_var___after_morecore_hook=yes
9564 else
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 emacs_cv_var___after_morecore_hook=no
9571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9572 conftest$ac_exeext conftest.$ac_ext
9574 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9575 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9576 if test $emacs_cv_var___after_morecore_hook = no; then
9577 doug_lea_malloc=no
9579 if test "${system_malloc}" = "yes"; then
9580 GNU_MALLOC=no
9581 GNU_MALLOC_reason="
9582 (The GNU allocators don't work with this system configuration.)"
9584 if test "$doug_lea_malloc" = "yes" ; then
9585 if test "$GNU_MALLOC" = yes ; then
9586 GNU_MALLOC_reason="
9587 (Using Doug Lea's new malloc from the GNU C Library.)"
9590 cat >>confdefs.h <<\_ACEOF
9591 #define DOUG_LEA_MALLOC 1
9592 _ACEOF
9596 if test x"${REL_ALLOC}" = x; then
9597 REL_ALLOC=${GNU_MALLOC}
9603 for ac_header in stdlib.h unistd.h
9605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9612 ac_res=`eval echo '${'$as_ac_Header'}'`
9613 { echo "$as_me:$LINENO: result: $ac_res" >&5
9614 echo "${ECHO_T}$ac_res" >&6; }
9615 else
9616 # Is the header compilable?
9617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9619 cat >conftest.$ac_ext <<_ACEOF
9620 /* confdefs.h. */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 $ac_includes_default
9626 #include <$ac_header>
9627 _ACEOF
9628 rm -f conftest.$ac_objext
9629 if { (ac_try="$ac_compile"
9630 case "(($ac_try" in
9631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9632 *) ac_try_echo=$ac_try;;
9633 esac
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_compile") 2>conftest.er1
9636 ac_status=$?
9637 grep -v '^ *+' conftest.er1 >conftest.err
9638 rm -f conftest.er1
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest.$ac_objext; then
9645 ac_header_compiler=yes
9646 else
9647 echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9650 ac_header_compiler=no
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9655 echo "${ECHO_T}$ac_header_compiler" >&6; }
9657 # Is the header present?
9658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9660 cat >conftest.$ac_ext <<_ACEOF
9661 /* confdefs.h. */
9662 _ACEOF
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 #include <$ac_header>
9667 _ACEOF
9668 if { (ac_try="$ac_cpp conftest.$ac_ext"
9669 case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672 esac
9673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } >/dev/null && {
9681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9682 test ! -s conftest.err
9683 }; then
9684 ac_header_preproc=yes
9685 else
9686 echo "$as_me: failed program was:" >&5
9687 sed 's/^/| /' conftest.$ac_ext >&5
9689 ac_header_preproc=no
9692 rm -f conftest.err conftest.$ac_ext
9693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9694 echo "${ECHO_T}$ac_header_preproc" >&6; }
9696 # So? What about this header?
9697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9698 yes:no: )
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9703 ac_header_preproc=yes
9705 no:yes:* )
9706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9720 esac
9721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 else
9726 eval "$as_ac_Header=\$ac_header_preproc"
9728 ac_res=`eval echo '${'$as_ac_Header'}'`
9729 { echo "$as_me:$LINENO: result: $ac_res" >&5
9730 echo "${ECHO_T}$ac_res" >&6; }
9733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9734 cat >>confdefs.h <<_ACEOF
9735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9736 _ACEOF
9740 done
9743 for ac_func in getpagesize
9745 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9746 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9747 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9748 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9749 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9759 #define $ac_func innocuous_$ac_func
9761 /* System header to define __stub macros and hopefully few prototypes,
9762 which can conflict with char $ac_func (); below.
9763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9764 <limits.h> exists even on freestanding compilers. */
9766 #ifdef __STDC__
9767 # include <limits.h>
9768 #else
9769 # include <assert.h>
9770 #endif
9772 #undef $ac_func
9774 /* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
9777 #ifdef __cplusplus
9778 extern "C"
9779 #endif
9780 char $ac_func ();
9781 /* The GNU C library defines this for functions which it implements
9782 to always fail with ENOSYS. Some functions are actually named
9783 something starting with __ and the normal name is an alias. */
9784 #if defined __stub_$ac_func || defined __stub___$ac_func
9785 choke me
9786 #endif
9789 main ()
9791 return $ac_func ();
9793 return 0;
9795 _ACEOF
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (ac_try="$ac_link"
9798 case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_link") 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest$ac_exeext &&
9813 $as_test_x conftest$ac_exeext; then
9814 eval "$as_ac_var=yes"
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9819 eval "$as_ac_var=no"
9822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9823 conftest$ac_exeext conftest.$ac_ext
9825 ac_res=`eval echo '${'$as_ac_var'}'`
9826 { echo "$as_me:$LINENO: result: $ac_res" >&5
9827 echo "${ECHO_T}$ac_res" >&6; }
9828 if test `eval echo '${'$as_ac_var'}'` = yes; then
9829 cat >>confdefs.h <<_ACEOF
9830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9831 _ACEOF
9834 done
9836 { echo "$as_me:$LINENO: checking for working mmap" >&5
9837 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9838 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 else
9841 if test "$cross_compiling" = yes; then
9842 ac_cv_func_mmap_fixed_mapped=no
9843 else
9844 cat >conftest.$ac_ext <<_ACEOF
9845 /* confdefs.h. */
9846 _ACEOF
9847 cat confdefs.h >>conftest.$ac_ext
9848 cat >>conftest.$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 $ac_includes_default
9851 /* malloc might have been renamed as rpl_malloc. */
9852 #undef malloc
9854 /* Thanks to Mike Haertel and Jim Avera for this test.
9855 Here is a matrix of mmap possibilities:
9856 mmap private not fixed
9857 mmap private fixed at somewhere currently unmapped
9858 mmap private fixed at somewhere already mapped
9859 mmap shared not fixed
9860 mmap shared fixed at somewhere currently unmapped
9861 mmap shared fixed at somewhere already mapped
9862 For private mappings, we should verify that changes cannot be read()
9863 back from the file, nor mmap's back from the file at a different
9864 address. (There have been systems where private was not correctly
9865 implemented like the infamous i386 svr4.0, and systems where the
9866 VM page cache was not coherent with the file system buffer cache
9867 like early versions of FreeBSD and possibly contemporary NetBSD.)
9868 For shared mappings, we should conversely verify that changes get
9869 propagated back to all the places they're supposed to be.
9871 Grep wants private fixed already mapped.
9872 The main things grep needs to know about mmap are:
9873 * does it exist and is it safe to write into the mmap'd area
9874 * how to use it (BSD variants) */
9876 #include <fcntl.h>
9877 #include <sys/mman.h>
9879 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9880 char *malloc ();
9881 #endif
9883 /* This mess was copied from the GNU getpagesize.h. */
9884 #ifndef HAVE_GETPAGESIZE
9885 /* Assume that all systems that can run configure have sys/param.h. */
9886 # ifndef HAVE_SYS_PARAM_H
9887 # define HAVE_SYS_PARAM_H 1
9888 # endif
9890 # ifdef _SC_PAGESIZE
9891 # define getpagesize() sysconf(_SC_PAGESIZE)
9892 # else /* no _SC_PAGESIZE */
9893 # ifdef HAVE_SYS_PARAM_H
9894 # include <sys/param.h>
9895 # ifdef EXEC_PAGESIZE
9896 # define getpagesize() EXEC_PAGESIZE
9897 # else /* no EXEC_PAGESIZE */
9898 # ifdef NBPG
9899 # define getpagesize() NBPG * CLSIZE
9900 # ifndef CLSIZE
9901 # define CLSIZE 1
9902 # endif /* no CLSIZE */
9903 # else /* no NBPG */
9904 # ifdef NBPC
9905 # define getpagesize() NBPC
9906 # else /* no NBPC */
9907 # ifdef PAGESIZE
9908 # define getpagesize() PAGESIZE
9909 # endif /* PAGESIZE */
9910 # endif /* no NBPC */
9911 # endif /* no NBPG */
9912 # endif /* no EXEC_PAGESIZE */
9913 # else /* no HAVE_SYS_PARAM_H */
9914 # define getpagesize() 8192 /* punt totally */
9915 # endif /* no HAVE_SYS_PARAM_H */
9916 # endif /* no _SC_PAGESIZE */
9918 #endif /* no HAVE_GETPAGESIZE */
9921 main ()
9923 char *data, *data2, *data3;
9924 int i, pagesize;
9925 int fd;
9927 pagesize = getpagesize ();
9929 /* First, make a file with some known garbage in it. */
9930 data = (char *) malloc (pagesize);
9931 if (!data)
9932 return 1;
9933 for (i = 0; i < pagesize; ++i)
9934 *(data + i) = rand ();
9935 umask (0);
9936 fd = creat ("conftest.mmap", 0600);
9937 if (fd < 0)
9938 return 1;
9939 if (write (fd, data, pagesize) != pagesize)
9940 return 1;
9941 close (fd);
9943 /* Next, try to mmap the file at a fixed address which already has
9944 something else allocated at it. If we can, also make sure that
9945 we see the same garbage. */
9946 fd = open ("conftest.mmap", O_RDWR);
9947 if (fd < 0)
9948 return 1;
9949 data2 = (char *) malloc (2 * pagesize);
9950 if (!data2)
9951 return 1;
9952 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9953 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9954 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9955 return 1;
9956 for (i = 0; i < pagesize; ++i)
9957 if (*(data + i) != *(data2 + i))
9958 return 1;
9960 /* Finally, make sure that changes to the mapped area do not
9961 percolate back to the file as seen by read(). (This is a bug on
9962 some variants of i386 svr4.0.) */
9963 for (i = 0; i < pagesize; ++i)
9964 *(data2 + i) = *(data2 + i) + 1;
9965 data3 = (char *) malloc (pagesize);
9966 if (!data3)
9967 return 1;
9968 if (read (fd, data3, pagesize) != pagesize)
9969 return 1;
9970 for (i = 0; i < pagesize; ++i)
9971 if (*(data + i) != *(data3 + i))
9972 return 1;
9973 close (fd);
9974 return 0;
9976 _ACEOF
9977 rm -f conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9979 case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982 esac
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>&5
9985 ac_status=$?
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9988 { (case "(($ac_try" in
9989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9991 esac
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_try") 2>&5
9994 ac_status=$?
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); }; }; then
9997 ac_cv_func_mmap_fixed_mapped=yes
9998 else
9999 echo "$as_me: program exited with status $ac_status" >&5
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10003 ( exit $ac_status )
10004 ac_cv_func_mmap_fixed_mapped=no
10006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10011 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10012 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10013 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10015 cat >>confdefs.h <<\_ACEOF
10016 #define HAVE_MMAP 1
10017 _ACEOF
10020 rm -f conftest.mmap
10022 if test $use_mmap_for_buffers = yes; then
10023 REL_ALLOC=no
10026 LIBS="$libsrc_libs $LIBS"
10029 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10030 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10031 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034 ac_check_lib_save_LIBS=$LIBS
10035 LIBS="-ldnet $LIBS"
10036 cat >conftest.$ac_ext <<_ACEOF
10037 /* confdefs.h. */
10038 _ACEOF
10039 cat confdefs.h >>conftest.$ac_ext
10040 cat >>conftest.$ac_ext <<_ACEOF
10041 /* end confdefs.h. */
10043 /* Override any GCC internal prototype to avoid an error.
10044 Use char because int might match the return type of a GCC
10045 builtin and then its argument prototype would still apply. */
10046 #ifdef __cplusplus
10047 extern "C"
10048 #endif
10049 char dnet_ntoa ();
10051 main ()
10053 return dnet_ntoa ();
10055 return 0;
10057 _ACEOF
10058 rm -f conftest.$ac_objext conftest$ac_exeext
10059 if { (ac_try="$ac_link"
10060 case "(($ac_try" in
10061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10062 *) ac_try_echo=$ac_try;;
10063 esac
10064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10065 (eval "$ac_link") 2>conftest.er1
10066 ac_status=$?
10067 grep -v '^ *+' conftest.er1 >conftest.err
10068 rm -f conftest.er1
10069 cat conftest.err >&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); } && {
10072 test -z "$ac_c_werror_flag" ||
10073 test ! -s conftest.err
10074 } && test -s conftest$ac_exeext &&
10075 $as_test_x conftest$ac_exeext; then
10076 ac_cv_lib_dnet_dnet_ntoa=yes
10077 else
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10081 ac_cv_lib_dnet_dnet_ntoa=no
10084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10088 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10089 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10090 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10091 cat >>confdefs.h <<_ACEOF
10092 #define HAVE_LIBDNET 1
10093 _ACEOF
10095 LIBS="-ldnet $LIBS"
10100 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10101 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10102 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104 else
10105 ac_check_lib_save_LIBS=$LIBS
10106 LIBS="-lXbsd $LIBS"
10107 cat >conftest.$ac_ext <<_ACEOF
10108 /* confdefs.h. */
10109 _ACEOF
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10116 main ()
10118 return main ();
10120 return 0;
10122 _ACEOF
10123 rm -f conftest.$ac_objext conftest$ac_exeext
10124 if { (ac_try="$ac_link"
10125 case "(($ac_try" in
10126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10127 *) ac_try_echo=$ac_try;;
10128 esac
10129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10130 (eval "$ac_link") 2>conftest.er1
10131 ac_status=$?
10132 grep -v '^ *+' conftest.er1 >conftest.err
10133 rm -f conftest.er1
10134 cat conftest.err >&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && {
10137 test -z "$ac_c_werror_flag" ||
10138 test ! -s conftest.err
10139 } && test -s conftest$ac_exeext &&
10140 $as_test_x conftest$ac_exeext; then
10141 ac_cv_lib_Xbsd_main=yes
10142 else
10143 echo "$as_me: failed program was:" >&5
10144 sed 's/^/| /' conftest.$ac_ext >&5
10146 ac_cv_lib_Xbsd_main=no
10149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10150 conftest$ac_exeext conftest.$ac_ext
10151 LIBS=$ac_check_lib_save_LIBS
10153 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10154 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10155 if test $ac_cv_lib_Xbsd_main = yes; then
10156 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10161 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10162 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10163 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10164 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 else
10166 ac_check_lib_save_LIBS=$LIBS
10167 LIBS="-lpthreads $LIBS"
10168 cat >conftest.$ac_ext <<_ACEOF
10169 /* confdefs.h. */
10170 _ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10175 /* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
10178 #ifdef __cplusplus
10179 extern "C"
10180 #endif
10181 char cma_open ();
10183 main ()
10185 return cma_open ();
10187 return 0;
10189 _ACEOF
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10194 *) ac_try_echo=$ac_try;;
10195 esac
10196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10197 (eval "$ac_link") 2>conftest.er1
10198 ac_status=$?
10199 grep -v '^ *+' conftest.er1 >conftest.err
10200 rm -f conftest.er1
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } && {
10204 test -z "$ac_c_werror_flag" ||
10205 test ! -s conftest.err
10206 } && test -s conftest$ac_exeext &&
10207 $as_test_x conftest$ac_exeext; then
10208 ac_cv_lib_pthreads_cma_open=yes
10209 else
10210 echo "$as_me: failed program was:" >&5
10211 sed 's/^/| /' conftest.$ac_ext >&5
10213 ac_cv_lib_pthreads_cma_open=no
10216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10217 conftest$ac_exeext conftest.$ac_ext
10218 LIBS=$ac_check_lib_save_LIBS
10220 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10221 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10222 if test $ac_cv_lib_pthreads_cma_open = yes; then
10223 cat >>confdefs.h <<_ACEOF
10224 #define HAVE_LIBPTHREADS 1
10225 _ACEOF
10227 LIBS="-lpthreads $LIBS"
10233 case ${host_os} in
10234 aix*)
10235 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10236 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10237 if test "${gdb_cv_bigtoc+set}" = set; then
10238 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 else
10241 case $GCC in
10242 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10243 *) gdb_cv_bigtoc=-bbigtoc ;;
10244 esac
10246 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10247 cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h. */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10255 main ()
10257 int i;
10259 return 0;
10261 _ACEOF
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266 *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269 (eval "$ac_link") 2>conftest.er1
10270 ac_status=$?
10271 grep -v '^ *+' conftest.er1 >conftest.err
10272 rm -f conftest.er1
10273 cat conftest.err >&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && {
10276 test -z "$ac_c_werror_flag" ||
10277 test ! -s conftest.err
10278 } && test -s conftest$ac_exeext &&
10279 $as_test_x conftest$ac_exeext; then
10281 else
10282 echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10285 gdb_cv_bigtoc=
10288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10289 conftest$ac_exeext conftest.$ac_ext
10292 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10293 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10295 esac
10297 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10298 # used for the tests that follow. We set them back to REAL_CFLAGS and
10299 # REAL_CPPFLAGS later on.
10301 REAL_CPPFLAGS="$CPPFLAGS"
10303 if test "${HAVE_X11}" = "yes"; then
10304 DEFS="$C_SWITCH_X_SITE $DEFS"
10305 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10306 LIBS="$LIBX $LIBS"
10307 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10308 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10310 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10311 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10312 # but it's more convenient here to set LD_RUN_PATH
10313 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10314 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10315 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10316 export LD_RUN_PATH
10319 if test "${opsys}" = "gnu-linux"; then
10320 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10321 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10322 cat >conftest.$ac_ext <<_ACEOF
10323 /* confdefs.h. */
10324 _ACEOF
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10330 main ()
10332 XOpenDisplay ("foo");
10334 return 0;
10336 _ACEOF
10337 rm -f conftest.$ac_objext conftest$ac_exeext
10338 if { (ac_try="$ac_link"
10339 case "(($ac_try" in
10340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10342 esac
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_link") 2>conftest.er1
10345 ac_status=$?
10346 grep -v '^ *+' conftest.er1 >conftest.err
10347 rm -f conftest.er1
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest$ac_exeext &&
10354 $as_test_x conftest$ac_exeext; then
10355 xlinux_first_failure=no
10356 else
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10360 xlinux_first_failure=yes
10363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10364 conftest$ac_exeext conftest.$ac_ext
10365 if test "${xlinux_first_failure}" = "yes"; then
10366 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10367 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10368 OLD_CPPFLAGS="$CPPFLAGS"
10369 OLD_LIBS="$LIBS"
10370 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10371 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10372 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10373 LIBS="$LIBS -b i486-linuxaout"
10374 cat >conftest.$ac_ext <<_ACEOF
10375 /* confdefs.h. */
10376 _ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10382 main ()
10384 XOpenDisplay ("foo");
10386 return 0;
10388 _ACEOF
10389 rm -f conftest.$ac_objext conftest$ac_exeext
10390 if { (ac_try="$ac_link"
10391 case "(($ac_try" in
10392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10393 *) ac_try_echo=$ac_try;;
10394 esac
10395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10396 (eval "$ac_link") 2>conftest.er1
10397 ac_status=$?
10398 grep -v '^ *+' conftest.er1 >conftest.err
10399 rm -f conftest.er1
10400 cat conftest.err >&5
10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10402 (exit $ac_status); } && {
10403 test -z "$ac_c_werror_flag" ||
10404 test ! -s conftest.err
10405 } && test -s conftest$ac_exeext &&
10406 $as_test_x conftest$ac_exeext; then
10407 xlinux_second_failure=no
10408 else
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 xlinux_second_failure=yes
10415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10416 conftest$ac_exeext conftest.$ac_ext
10417 if test "${xlinux_second_failure}" = "yes"; then
10418 # If we get the same failure with -b, there is no use adding -b.
10419 # So take it out. This plays safe.
10420 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10421 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10422 CPPFLAGS="$OLD_CPPFLAGS"
10423 LIBS="$OLD_LIBS"
10424 { echo "$as_me:$LINENO: result: no" >&5
10425 echo "${ECHO_T}no" >&6; }
10426 else
10427 { echo "$as_me:$LINENO: result: yes" >&5
10428 echo "${ECHO_T}yes" >&6; }
10430 else
10431 { echo "$as_me:$LINENO: result: no" >&5
10432 echo "${ECHO_T}no" >&6; }
10436 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10437 # header files included from there.
10438 { echo "$as_me:$LINENO: checking for Xkb" >&5
10439 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10440 cat >conftest.$ac_ext <<_ACEOF
10441 /* confdefs.h. */
10442 _ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10446 #include <X11/Xlib.h>
10447 #include <X11/XKBlib.h>
10449 main ()
10451 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10453 return 0;
10455 _ACEOF
10456 rm -f conftest.$ac_objext conftest$ac_exeext
10457 if { (ac_try="$ac_link"
10458 case "(($ac_try" in
10459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10460 *) ac_try_echo=$ac_try;;
10461 esac
10462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10463 (eval "$ac_link") 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && {
10470 test -z "$ac_c_werror_flag" ||
10471 test ! -s conftest.err
10472 } && test -s conftest$ac_exeext &&
10473 $as_test_x conftest$ac_exeext; then
10474 emacs_xkb=yes
10475 else
10476 echo "$as_me: failed program was:" >&5
10477 sed 's/^/| /' conftest.$ac_ext >&5
10479 emacs_xkb=no
10482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10483 conftest$ac_exeext conftest.$ac_ext
10484 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10485 echo "${ECHO_T}$emacs_xkb" >&6; }
10486 if test $emacs_xkb = yes; then
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_XKBGETKEYBOARD 1
10490 _ACEOF
10498 for ac_func in XrmSetDatabase XScreenResourceString \
10499 XScreenNumberOfScreen XSetWMProtocols
10501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507 cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h. */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10515 #define $ac_func innocuous_$ac_func
10517 /* System header to define __stub macros and hopefully few prototypes,
10518 which can conflict with char $ac_func (); below.
10519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10520 <limits.h> exists even on freestanding compilers. */
10522 #ifdef __STDC__
10523 # include <limits.h>
10524 #else
10525 # include <assert.h>
10526 #endif
10528 #undef $ac_func
10530 /* Override any GCC internal prototype to avoid an error.
10531 Use char because int might match the return type of a GCC
10532 builtin and then its argument prototype would still apply. */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 char $ac_func ();
10537 /* The GNU C library defines this for functions which it implements
10538 to always fail with ENOSYS. Some functions are actually named
10539 something starting with __ and the normal name is an alias. */
10540 #if defined __stub_$ac_func || defined __stub___$ac_func
10541 choke me
10542 #endif
10545 main ()
10547 return $ac_func ();
10549 return 0;
10551 _ACEOF
10552 rm -f conftest.$ac_objext conftest$ac_exeext
10553 if { (ac_try="$ac_link"
10554 case "(($ac_try" in
10555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556 *) ac_try_echo=$ac_try;;
10557 esac
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559 (eval "$ac_link") 2>conftest.er1
10560 ac_status=$?
10561 grep -v '^ *+' conftest.er1 >conftest.err
10562 rm -f conftest.er1
10563 cat conftest.err >&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } && {
10566 test -z "$ac_c_werror_flag" ||
10567 test ! -s conftest.err
10568 } && test -s conftest$ac_exeext &&
10569 $as_test_x conftest$ac_exeext; then
10570 eval "$as_ac_var=yes"
10571 else
10572 echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10575 eval "$as_ac_var=no"
10578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10579 conftest$ac_exeext conftest.$ac_ext
10581 ac_res=`eval echo '${'$as_ac_var'}'`
10582 { echo "$as_me:$LINENO: result: $ac_res" >&5
10583 echo "${ECHO_T}$ac_res" >&6; }
10584 if test `eval echo '${'$as_ac_var'}'` = yes; then
10585 cat >>confdefs.h <<_ACEOF
10586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10587 _ACEOF
10590 done
10594 if test "${window_system}" = "x11"; then
10595 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10596 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10597 if test "${emacs_cv_x11_version_6+set}" = set; then
10598 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600 cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h. */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 #include <X11/Xlib.h>
10608 main ()
10610 #if XlibSpecificationRelease < 6
10611 fail;
10612 #endif
10615 return 0;
10617 _ACEOF
10618 rm -f conftest.$ac_objext conftest$ac_exeext
10619 if { (ac_try="$ac_link"
10620 case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10623 esac
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_link") 2>conftest.er1
10626 ac_status=$?
10627 grep -v '^ *+' conftest.er1 >conftest.err
10628 rm -f conftest.er1
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && {
10632 test -z "$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 } && test -s conftest$ac_exeext &&
10635 $as_test_x conftest$ac_exeext; then
10636 emacs_cv_x11_version_6=yes
10637 else
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10641 emacs_cv_x11_version_6=no
10644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10645 conftest$ac_exeext conftest.$ac_ext
10648 if test $emacs_cv_x11_version_6 = yes; then
10649 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10650 echo "${ECHO_T}6 or newer" >&6; }
10652 cat >>confdefs.h <<\_ACEOF
10653 #define HAVE_X11R6 1
10654 _ACEOF
10656 else
10657 { echo "$as_me:$LINENO: result: before 6" >&5
10658 echo "${ECHO_T}before 6" >&6; }
10663 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10664 HAVE_RSVG=no
10665 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10666 if test "${with_rsvg}" != "no"; then
10667 RSVG_REQUIRED=2.0.0
10668 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10671 succeeded=no
10673 # Extract the first word of "pkg-config", so it can be a program name with args.
10674 set dummy pkg-config; ac_word=$2
10675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10677 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10678 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 else
10680 case $PKG_CONFIG in
10681 [\\/]* | ?:[\\/]*)
10682 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10688 IFS=$as_save_IFS
10689 test -z "$as_dir" && as_dir=.
10690 for ac_exec_ext in '' $ac_executable_extensions; do
10691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10692 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10694 break 2
10696 done
10697 done
10698 IFS=$as_save_IFS
10700 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10702 esac
10704 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10705 if test -n "$PKG_CONFIG"; then
10706 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10707 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10708 else
10709 { echo "$as_me:$LINENO: result: no" >&5
10710 echo "${ECHO_T}no" >&6; }
10715 if test "$PKG_CONFIG" = "no" ; then
10717 else
10718 PKG_CONFIG_MIN_VERSION=0.9.0
10719 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10720 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10721 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10723 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10724 { echo "$as_me:$LINENO: result: yes" >&5
10725 echo "${ECHO_T}yes" >&6; }
10726 succeeded=yes
10728 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10729 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10730 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10731 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10732 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10734 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10735 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10736 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10737 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10738 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10739 else
10740 { echo "$as_me:$LINENO: result: no" >&5
10741 echo "${ECHO_T}no" >&6; }
10742 RSVG_CFLAGS=""
10743 RSVG_LIBS=""
10744 ## If we have a custom action on failure, don't print errors, but
10745 ## do set a variable so people can do so.
10746 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10752 else
10753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10758 if test $succeeded = yes; then
10760 else
10767 if test ".${RSVG_CFLAGS}" != "."; then
10768 HAVE_RSVG=yes
10770 cat >>confdefs.h <<\_ACEOF
10771 #define HAVE_RSVG 1
10772 _ACEOF
10774 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10775 LIBS="$RSVG_LIBS $LIBS"
10781 HAVE_GTK=no
10782 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10783 GLIB_REQUIRED=2.6
10784 GTK_REQUIRED=2.6
10785 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10788 succeeded=no
10790 # Extract the first word of "pkg-config", so it can be a program name with args.
10791 set dummy pkg-config; ac_word=$2
10792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10794 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797 case $PKG_CONFIG in
10798 [\\/]* | ?:[\\/]*)
10799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 break 2
10813 done
10814 done
10815 IFS=$as_save_IFS
10817 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10819 esac
10821 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10822 if test -n "$PKG_CONFIG"; then
10823 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10824 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10825 else
10826 { echo "$as_me:$LINENO: result: no" >&5
10827 echo "${ECHO_T}no" >&6; }
10832 if test "$PKG_CONFIG" = "no" ; then
10833 pkg_check_gtk=no
10834 else
10835 PKG_CONFIG_MIN_VERSION=0.9.0
10836 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10837 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10838 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10840 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10841 { echo "$as_me:$LINENO: result: yes" >&5
10842 echo "${ECHO_T}yes" >&6; }
10843 succeeded=yes
10845 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10846 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10847 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10848 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10849 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10851 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10852 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10853 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10854 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10855 echo "${ECHO_T}$GTK_LIBS" >&6; }
10856 else
10857 { echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6; }
10859 GTK_CFLAGS=""
10860 GTK_LIBS=""
10861 ## If we have a custom action on failure, don't print errors, but
10862 ## do set a variable so people can do so.
10863 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10869 else
10870 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10871 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10875 if test $succeeded = yes; then
10876 pkg_check_gtk=yes
10877 else
10878 pkg_check_gtk=no
10881 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10882 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10883 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10884 { (exit 1); exit 1; }; }
10889 if test x"$pkg_check_gtk" = xyes; then
10893 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10894 CFLAGS="$CFLAGS $GTK_CFLAGS"
10895 LIBS="$GTK_LIBS $LIBS"
10896 GTK_COMPILES=no
10898 for ac_func in gtk_main
10900 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10901 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10902 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10904 echo $ECHO_N "(cached) $ECHO_C" >&6
10905 else
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10914 #define $ac_func innocuous_$ac_func
10916 /* System header to define __stub macros and hopefully few prototypes,
10917 which can conflict with char $ac_func (); below.
10918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10919 <limits.h> exists even on freestanding compilers. */
10921 #ifdef __STDC__
10922 # include <limits.h>
10923 #else
10924 # include <assert.h>
10925 #endif
10927 #undef $ac_func
10929 /* Override any GCC internal prototype to avoid an error.
10930 Use char because int might match the return type of a GCC
10931 builtin and then its argument prototype would still apply. */
10932 #ifdef __cplusplus
10933 extern "C"
10934 #endif
10935 char $ac_func ();
10936 /* The GNU C library defines this for functions which it implements
10937 to always fail with ENOSYS. Some functions are actually named
10938 something starting with __ and the normal name is an alias. */
10939 #if defined __stub_$ac_func || defined __stub___$ac_func
10940 choke me
10941 #endif
10944 main ()
10946 return $ac_func ();
10948 return 0;
10950 _ACEOF
10951 rm -f conftest.$ac_objext conftest$ac_exeext
10952 if { (ac_try="$ac_link"
10953 case "(($ac_try" in
10954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10955 *) ac_try_echo=$ac_try;;
10956 esac
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_link") 2>conftest.er1
10959 ac_status=$?
10960 grep -v '^ *+' conftest.er1 >conftest.err
10961 rm -f conftest.er1
10962 cat conftest.err >&5
10963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10964 (exit $ac_status); } && {
10965 test -z "$ac_c_werror_flag" ||
10966 test ! -s conftest.err
10967 } && test -s conftest$ac_exeext &&
10968 $as_test_x conftest$ac_exeext; then
10969 eval "$as_ac_var=yes"
10970 else
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 eval "$as_ac_var=no"
10977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10978 conftest$ac_exeext conftest.$ac_ext
10980 ac_res=`eval echo '${'$as_ac_var'}'`
10981 { echo "$as_me:$LINENO: result: $ac_res" >&5
10982 echo "${ECHO_T}$ac_res" >&6; }
10983 if test `eval echo '${'$as_ac_var'}'` = yes; then
10984 cat >>confdefs.h <<_ACEOF
10985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10986 _ACEOF
10987 GTK_COMPILES=yes
10989 done
10991 if test "${GTK_COMPILES}" != "yes"; then
10992 if test "$USE_X_TOOLKIT" != "maybe"; then
10993 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10994 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10995 { (exit 1); exit 1; }; };
10997 else
10998 HAVE_GTK=yes
11000 cat >>confdefs.h <<\_ACEOF
11001 #define HAVE_GTK 1
11002 _ACEOF
11004 USE_X_TOOLKIT=none
11005 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11007 else
11008 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11009 closing open displays. This is no problem if you just use
11010 one display, but if you use more than one and close one of them
11011 Emacs may crash." >&5
11012 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11013 closing open displays. This is no problem if you just use
11014 one display, but if you use more than one and close one of them
11015 Emacs may crash." >&2;}
11016 sleep 3
11023 if test "${HAVE_GTK}" = "yes"; then
11025 if test "$with_toolkit_scroll_bars" != no; then
11026 with_toolkit_scroll_bars=yes
11029 HAVE_GTK_MULTIDISPLAY=no
11031 for ac_func in gdk_display_open
11033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11037 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 else
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h. */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11047 #define $ac_func innocuous_$ac_func
11049 /* System header to define __stub macros and hopefully few prototypes,
11050 which can conflict with char $ac_func (); below.
11051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11052 <limits.h> exists even on freestanding compilers. */
11054 #ifdef __STDC__
11055 # include <limits.h>
11056 #else
11057 # include <assert.h>
11058 #endif
11060 #undef $ac_func
11062 /* Override any GCC internal prototype to avoid an error.
11063 Use char because int might match the return type of a GCC
11064 builtin and then its argument prototype would still apply. */
11065 #ifdef __cplusplus
11066 extern "C"
11067 #endif
11068 char $ac_func ();
11069 /* The GNU C library defines this for functions which it implements
11070 to always fail with ENOSYS. Some functions are actually named
11071 something starting with __ and the normal name is an alias. */
11072 #if defined __stub_$ac_func || defined __stub___$ac_func
11073 choke me
11074 #endif
11077 main ()
11079 return $ac_func ();
11081 return 0;
11083 _ACEOF
11084 rm -f conftest.$ac_objext conftest$ac_exeext
11085 if { (ac_try="$ac_link"
11086 case "(($ac_try" in
11087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088 *) ac_try_echo=$ac_try;;
11089 esac
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091 (eval "$ac_link") 2>conftest.er1
11092 ac_status=$?
11093 grep -v '^ *+' conftest.er1 >conftest.err
11094 rm -f conftest.er1
11095 cat conftest.err >&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } && {
11098 test -z "$ac_c_werror_flag" ||
11099 test ! -s conftest.err
11100 } && test -s conftest$ac_exeext &&
11101 $as_test_x conftest$ac_exeext; then
11102 eval "$as_ac_var=yes"
11103 else
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11107 eval "$as_ac_var=no"
11110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11111 conftest$ac_exeext conftest.$ac_ext
11113 ac_res=`eval echo '${'$as_ac_var'}'`
11114 { echo "$as_me:$LINENO: result: $ac_res" >&5
11115 echo "${ECHO_T}$ac_res" >&6; }
11116 if test `eval echo '${'$as_ac_var'}'` = yes; then
11117 cat >>confdefs.h <<_ACEOF
11118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11119 _ACEOF
11120 HAVE_GTK_MULTIDISPLAY=yes
11122 done
11124 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11126 cat >>confdefs.h <<\_ACEOF
11127 #define HAVE_GTK_MULTIDISPLAY 1
11128 _ACEOF
11132 HAVE_GTK_FILE_SELECTION=no
11134 for ac_func in gtk_file_selection_new
11136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11137 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11139 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 else
11142 cat >conftest.$ac_ext <<_ACEOF
11143 /* confdefs.h. */
11144 _ACEOF
11145 cat confdefs.h >>conftest.$ac_ext
11146 cat >>conftest.$ac_ext <<_ACEOF
11147 /* end confdefs.h. */
11148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11150 #define $ac_func innocuous_$ac_func
11152 /* System header to define __stub macros and hopefully few prototypes,
11153 which can conflict with char $ac_func (); below.
11154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11155 <limits.h> exists even on freestanding compilers. */
11157 #ifdef __STDC__
11158 # include <limits.h>
11159 #else
11160 # include <assert.h>
11161 #endif
11163 #undef $ac_func
11165 /* Override any GCC internal prototype to avoid an error.
11166 Use char because int might match the return type of a GCC
11167 builtin and then its argument prototype would still apply. */
11168 #ifdef __cplusplus
11169 extern "C"
11170 #endif
11171 char $ac_func ();
11172 /* The GNU C library defines this for functions which it implements
11173 to always fail with ENOSYS. Some functions are actually named
11174 something starting with __ and the normal name is an alias. */
11175 #if defined __stub_$ac_func || defined __stub___$ac_func
11176 choke me
11177 #endif
11180 main ()
11182 return $ac_func ();
11184 return 0;
11186 _ACEOF
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (ac_try="$ac_link"
11189 case "(($ac_try" in
11190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11191 *) ac_try_echo=$ac_try;;
11192 esac
11193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11194 (eval "$ac_link") 2>conftest.er1
11195 ac_status=$?
11196 grep -v '^ *+' conftest.er1 >conftest.err
11197 rm -f conftest.er1
11198 cat conftest.err >&5
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); } && {
11201 test -z "$ac_c_werror_flag" ||
11202 test ! -s conftest.err
11203 } && test -s conftest$ac_exeext &&
11204 $as_test_x conftest$ac_exeext; then
11205 eval "$as_ac_var=yes"
11206 else
11207 echo "$as_me: failed program was:" >&5
11208 sed 's/^/| /' conftest.$ac_ext >&5
11210 eval "$as_ac_var=no"
11213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11214 conftest$ac_exeext conftest.$ac_ext
11216 ac_res=`eval echo '${'$as_ac_var'}'`
11217 { echo "$as_me:$LINENO: result: $ac_res" >&5
11218 echo "${ECHO_T}$ac_res" >&6; }
11219 if test `eval echo '${'$as_ac_var'}'` = yes; then
11220 cat >>confdefs.h <<_ACEOF
11221 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11222 _ACEOF
11223 HAVE_GTK_FILE_SELECTION=yes
11225 done
11228 HAVE_GTK_FILE_CHOOSER=no
11230 for ac_func in gtk_file_chooser_dialog_new
11232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11233 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 else
11238 cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h. */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11246 #define $ac_func innocuous_$ac_func
11248 /* System header to define __stub macros and hopefully few prototypes,
11249 which can conflict with char $ac_func (); below.
11250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11251 <limits.h> exists even on freestanding compilers. */
11253 #ifdef __STDC__
11254 # include <limits.h>
11255 #else
11256 # include <assert.h>
11257 #endif
11259 #undef $ac_func
11261 /* Override any GCC internal prototype to avoid an error.
11262 Use char because int might match the return type of a GCC
11263 builtin and then its argument prototype would still apply. */
11264 #ifdef __cplusplus
11265 extern "C"
11266 #endif
11267 char $ac_func ();
11268 /* The GNU C library defines this for functions which it implements
11269 to always fail with ENOSYS. Some functions are actually named
11270 something starting with __ and the normal name is an alias. */
11271 #if defined __stub_$ac_func || defined __stub___$ac_func
11272 choke me
11273 #endif
11276 main ()
11278 return $ac_func ();
11280 return 0;
11282 _ACEOF
11283 rm -f conftest.$ac_objext conftest$ac_exeext
11284 if { (ac_try="$ac_link"
11285 case "(($ac_try" in
11286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287 *) ac_try_echo=$ac_try;;
11288 esac
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290 (eval "$ac_link") 2>conftest.er1
11291 ac_status=$?
11292 grep -v '^ *+' conftest.er1 >conftest.err
11293 rm -f conftest.er1
11294 cat conftest.err >&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); } && {
11297 test -z "$ac_c_werror_flag" ||
11298 test ! -s conftest.err
11299 } && test -s conftest$ac_exeext &&
11300 $as_test_x conftest$ac_exeext; then
11301 eval "$as_ac_var=yes"
11302 else
11303 echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11306 eval "$as_ac_var=no"
11309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11310 conftest$ac_exeext conftest.$ac_ext
11312 ac_res=`eval echo '${'$as_ac_var'}'`
11313 { echo "$as_me:$LINENO: result: $ac_res" >&5
11314 echo "${ECHO_T}$ac_res" >&6; }
11315 if test `eval echo '${'$as_ac_var'}'` = yes; then
11316 cat >>confdefs.h <<_ACEOF
11317 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11318 _ACEOF
11319 HAVE_GTK_FILE_CHOOSER=yes
11321 done
11324 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11325 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11327 cat >>confdefs.h <<\_ACEOF
11328 #define HAVE_GTK_FILE_BOTH 1
11329 _ACEOF
11333 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11334 HAVE_GTK_AND_PTHREAD=no
11336 for ac_header in pthread.h
11338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
11345 ac_res=`eval echo '${'$as_ac_Header'}'`
11346 { echo "$as_me:$LINENO: result: $ac_res" >&5
11347 echo "${ECHO_T}$ac_res" >&6; }
11348 else
11349 # Is the header compilable?
11350 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11351 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11352 cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h. */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h. */
11358 $ac_includes_default
11359 #include <$ac_header>
11360 _ACEOF
11361 rm -f conftest.$ac_objext
11362 if { (ac_try="$ac_compile"
11363 case "(($ac_try" in
11364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11365 *) ac_try_echo=$ac_try;;
11366 esac
11367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11368 (eval "$ac_compile") 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } && {
11375 test -z "$ac_c_werror_flag" ||
11376 test ! -s conftest.err
11377 } && test -s conftest.$ac_objext; then
11378 ac_header_compiler=yes
11379 else
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11383 ac_header_compiler=no
11386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11388 echo "${ECHO_T}$ac_header_compiler" >&6; }
11390 # Is the header present?
11391 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11392 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11393 cat >conftest.$ac_ext <<_ACEOF
11394 /* confdefs.h. */
11395 _ACEOF
11396 cat confdefs.h >>conftest.$ac_ext
11397 cat >>conftest.$ac_ext <<_ACEOF
11398 /* end confdefs.h. */
11399 #include <$ac_header>
11400 _ACEOF
11401 if { (ac_try="$ac_cpp conftest.$ac_ext"
11402 case "(($ac_try" in
11403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404 *) ac_try_echo=$ac_try;;
11405 esac
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11408 ac_status=$?
11409 grep -v '^ *+' conftest.er1 >conftest.err
11410 rm -f conftest.er1
11411 cat conftest.err >&5
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); } >/dev/null && {
11414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11415 test ! -s conftest.err
11416 }; then
11417 ac_header_preproc=yes
11418 else
11419 echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11422 ac_header_preproc=no
11425 rm -f conftest.err conftest.$ac_ext
11426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11427 echo "${ECHO_T}$ac_header_preproc" >&6; }
11429 # So? What about this header?
11430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11431 yes:no: )
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11433 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11436 ac_header_preproc=yes
11438 no:yes:* )
11439 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11440 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11441 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11442 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11443 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11444 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11445 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11446 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11450 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11453 esac
11454 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11455 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 else
11459 eval "$as_ac_Header=\$ac_header_preproc"
11461 ac_res=`eval echo '${'$as_ac_Header'}'`
11462 { echo "$as_me:$LINENO: result: $ac_res" >&5
11463 echo "${ECHO_T}$ac_res" >&6; }
11466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11467 cat >>confdefs.h <<_ACEOF
11468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11469 _ACEOF
11473 done
11475 if test "$ac_cv_header_pthread_h"; then
11476 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11477 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11478 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 else
11481 ac_check_lib_save_LIBS=$LIBS
11482 LIBS="-lpthread $LIBS"
11483 cat >conftest.$ac_ext <<_ACEOF
11484 /* confdefs.h. */
11485 _ACEOF
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11490 /* Override any GCC internal prototype to avoid an error.
11491 Use char because int might match the return type of a GCC
11492 builtin and then its argument prototype would still apply. */
11493 #ifdef __cplusplus
11494 extern "C"
11495 #endif
11496 char pthread_self ();
11498 main ()
11500 return pthread_self ();
11502 return 0;
11504 _ACEOF
11505 rm -f conftest.$ac_objext conftest$ac_exeext
11506 if { (ac_try="$ac_link"
11507 case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_link") 2>conftest.er1
11513 ac_status=$?
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } && {
11519 test -z "$ac_c_werror_flag" ||
11520 test ! -s conftest.err
11521 } && test -s conftest$ac_exeext &&
11522 $as_test_x conftest$ac_exeext; then
11523 ac_cv_lib_pthread_pthread_self=yes
11524 else
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11528 ac_cv_lib_pthread_pthread_self=no
11531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11532 conftest$ac_exeext conftest.$ac_ext
11533 LIBS=$ac_check_lib_save_LIBS
11535 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11536 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11537 if test $ac_cv_lib_pthread_pthread_self = yes; then
11538 HAVE_GTK_AND_PTHREAD=yes
11542 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11543 case "${canonical}" in
11544 *-hpux*) ;;
11545 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11546 esac
11548 cat >>confdefs.h <<\_ACEOF
11549 #define HAVE_GTK_AND_PTHREAD 1
11550 _ACEOF
11556 HAVE_DBUS=no
11557 if test "${with_dbus}" = "yes"; then
11559 succeeded=no
11561 # Extract the first word of "pkg-config", so it can be a program name with args.
11562 set dummy pkg-config; ac_word=$2
11563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11565 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568 case $PKG_CONFIG in
11569 [\\/]* | ?:[\\/]*)
11570 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11574 for as_dir in $PATH
11576 IFS=$as_save_IFS
11577 test -z "$as_dir" && as_dir=.
11578 for ac_exec_ext in '' $ac_executable_extensions; do
11579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11580 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11582 break 2
11584 done
11585 done
11586 IFS=$as_save_IFS
11588 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11590 esac
11592 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11593 if test -n "$PKG_CONFIG"; then
11594 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11595 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11596 else
11597 { echo "$as_me:$LINENO: result: no" >&5
11598 echo "${ECHO_T}no" >&6; }
11603 if test "$PKG_CONFIG" = "no" ; then
11604 HAVE_DBUS=no
11605 else
11606 PKG_CONFIG_MIN_VERSION=0.9.0
11607 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11608 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11609 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11611 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11612 { echo "$as_me:$LINENO: result: yes" >&5
11613 echo "${ECHO_T}yes" >&6; }
11614 succeeded=yes
11616 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11617 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11618 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11619 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11620 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11622 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11623 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11624 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11625 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11626 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11627 else
11628 { echo "$as_me:$LINENO: result: no" >&5
11629 echo "${ECHO_T}no" >&6; }
11630 DBUS_CFLAGS=""
11631 DBUS_LIBS=""
11632 ## If we have a custom action on failure, don't print errors, but
11633 ## do set a variable so people can do so.
11634 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11640 else
11641 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11642 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11646 if test $succeeded = yes; then
11647 HAVE_DBUS=yes
11648 else
11649 HAVE_DBUS=no
11652 if test "$HAVE_DBUS" = yes; then
11654 cat >>confdefs.h <<\_ACEOF
11655 #define HAVE_DBUS 1
11656 _ACEOF
11661 HAVE_XAW3D=no
11662 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11663 if test "$with_xaw3d" != no; then
11664 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11665 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11666 if test "${emacs_cv_xaw3d+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 else
11669 cat >conftest.$ac_ext <<_ACEOF
11670 /* confdefs.h. */
11671 _ACEOF
11672 cat confdefs.h >>conftest.$ac_ext
11673 cat >>conftest.$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11676 #include <X11/Intrinsic.h>
11677 #include <X11/Xaw3d/Simple.h>
11679 main ()
11683 return 0;
11685 _ACEOF
11686 rm -f conftest.$ac_objext conftest$ac_exeext
11687 if { (ac_try="$ac_link"
11688 case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11694 ac_status=$?
11695 grep -v '^ *+' conftest.er1 >conftest.err
11696 rm -f conftest.er1
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest$ac_exeext &&
11703 $as_test_x conftest$ac_exeext; then
11704 emacs_cv_xaw3d=yes
11705 else
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 emacs_cv_xaw3d=no
11712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11713 conftest$ac_exeext conftest.$ac_ext
11716 else
11717 emacs_cv_xaw3d=no
11719 if test $emacs_cv_xaw3d = yes; then
11720 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11721 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11722 USE_X_TOOLKIT=LUCID
11723 HAVE_XAW3D=yes
11725 cat >>confdefs.h <<\_ACEOF
11726 #define HAVE_XAW3D 1
11727 _ACEOF
11729 else
11730 { echo "$as_me:$LINENO: result: no" >&5
11731 echo "${ECHO_T}no" >&6; }
11732 { echo "$as_me:$LINENO: checking for libXaw" >&5
11733 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11734 if test "${emacs_cv_xaw+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737 cat >conftest.$ac_ext <<_ACEOF
11738 /* confdefs.h. */
11739 _ACEOF
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11744 #include <X11/Intrinsic.h>
11745 #include <X11/Xaw/Simple.h>
11747 main ()
11751 return 0;
11753 _ACEOF
11754 rm -f conftest.$ac_objext conftest$ac_exeext
11755 if { (ac_try="$ac_link"
11756 case "(($ac_try" in
11757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11758 *) ac_try_echo=$ac_try;;
11759 esac
11760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11761 (eval "$ac_link") 2>conftest.er1
11762 ac_status=$?
11763 grep -v '^ *+' conftest.er1 >conftest.err
11764 rm -f conftest.er1
11765 cat conftest.err >&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); } && {
11768 test -z "$ac_c_werror_flag" ||
11769 test ! -s conftest.err
11770 } && test -s conftest$ac_exeext &&
11771 $as_test_x conftest$ac_exeext; then
11772 emacs_cv_xaw=yes
11773 else
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11777 emacs_cv_xaw=no
11780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11781 conftest$ac_exeext conftest.$ac_ext
11784 if test $emacs_cv_xaw = yes; then
11785 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11786 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11787 USE_X_TOOLKIT=LUCID
11788 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11789 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11790 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11791 { (exit 1); exit 1; }; }
11792 else
11793 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11794 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11795 USE_X_TOOLKIT=none
11800 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11802 if test "${USE_X_TOOLKIT}" != "none"; then
11803 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11804 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11805 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 else
11808 cat >conftest.$ac_ext <<_ACEOF
11809 /* confdefs.h. */
11810 _ACEOF
11811 cat confdefs.h >>conftest.$ac_ext
11812 cat >>conftest.$ac_ext <<_ACEOF
11813 /* end confdefs.h. */
11814 #include <X11/Intrinsic.h>
11816 main ()
11818 #if XtSpecificationRelease < 6
11819 fail;
11820 #endif
11823 return 0;
11825 _ACEOF
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831 esac
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_link") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest$ac_exeext &&
11843 $as_test_x conftest$ac_exeext; then
11844 emacs_cv_x11_toolkit_version_6=yes
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 emacs_cv_x11_toolkit_version_6=no
11852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11853 conftest$ac_exeext conftest.$ac_ext
11856 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11857 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11858 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11859 echo "${ECHO_T}6 or newer" >&6; }
11861 cat >>confdefs.h <<\_ACEOF
11862 #define HAVE_X11XTR6 1
11863 _ACEOF
11865 else
11866 { echo "$as_me:$LINENO: result: before 6" >&5
11867 echo "${ECHO_T}before 6" >&6; }
11870 OLDLIBS="$LIBS"
11871 if test x$HAVE_X11XTR6 = xyes; then
11872 LIBS="-lXt -lSM -lICE $LIBS"
11873 else
11874 LIBS="-lXt $LIBS"
11877 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11878 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11879 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882 ac_check_lib_save_LIBS=$LIBS
11883 LIBS="-lXmu $LIBS"
11884 cat >conftest.$ac_ext <<_ACEOF
11885 /* confdefs.h. */
11886 _ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11891 /* Override any GCC internal prototype to avoid an error.
11892 Use char because int might match the return type of a GCC
11893 builtin and then its argument prototype would still apply. */
11894 #ifdef __cplusplus
11895 extern "C"
11896 #endif
11897 char XmuConvertStandardSelection ();
11899 main ()
11901 return XmuConvertStandardSelection ();
11903 return 0;
11905 _ACEOF
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (ac_try="$ac_link"
11908 case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11911 esac
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913 (eval "$ac_link") 2>conftest.er1
11914 ac_status=$?
11915 grep -v '^ *+' conftest.er1 >conftest.err
11916 rm -f conftest.er1
11917 cat conftest.err >&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } && {
11920 test -z "$ac_c_werror_flag" ||
11921 test ! -s conftest.err
11922 } && test -s conftest$ac_exeext &&
11923 $as_test_x conftest$ac_exeext; then
11924 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11925 else
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11933 conftest$ac_exeext conftest.$ac_ext
11934 LIBS=$ac_check_lib_save_LIBS
11936 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11937 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11938 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11939 cat >>confdefs.h <<_ACEOF
11940 #define HAVE_LIBXMU 1
11941 _ACEOF
11943 LIBS="-lXmu $LIBS"
11947 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11950 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11951 if test "${HAVE_X11}" = "yes"; then
11952 if test "${USE_X_TOOLKIT}" != "none"; then
11954 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11955 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11956 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11957 echo $ECHO_N "(cached) $ECHO_C" >&6
11958 else
11959 ac_check_lib_save_LIBS=$LIBS
11960 LIBS="-lXext $LIBS"
11961 cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h. */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h. */
11968 /* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11971 #ifdef __cplusplus
11972 extern "C"
11973 #endif
11974 char XShapeQueryExtension ();
11976 main ()
11978 return XShapeQueryExtension ();
11980 return 0;
11982 _ACEOF
11983 rm -f conftest.$ac_objext conftest$ac_exeext
11984 if { (ac_try="$ac_link"
11985 case "(($ac_try" in
11986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987 *) ac_try_echo=$ac_try;;
11988 esac
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990 (eval "$ac_link") 2>conftest.er1
11991 ac_status=$?
11992 grep -v '^ *+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } && {
11997 test -z "$ac_c_werror_flag" ||
11998 test ! -s conftest.err
11999 } && test -s conftest$ac_exeext &&
12000 $as_test_x conftest$ac_exeext; then
12001 ac_cv_lib_Xext_XShapeQueryExtension=yes
12002 else
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 ac_cv_lib_Xext_XShapeQueryExtension=no
12009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12010 conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12013 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12014 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12015 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12016 cat >>confdefs.h <<_ACEOF
12017 #define HAVE_LIBXEXT 1
12018 _ACEOF
12020 LIBS="-lXext $LIBS"
12027 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12028 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12029 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12030 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033 cat >conftest.$ac_ext <<_ACEOF
12034 /* confdefs.h. */
12035 _ACEOF
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 #include <Xm/Xm.h>
12041 main ()
12043 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12044 int x = 5;
12045 #else
12046 Motif version prior to 2.1.
12047 #endif
12049 return 0;
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_compile") 2>conftest.er1
12060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && {
12066 test -z "$ac_c_werror_flag" ||
12067 test ! -s conftest.err
12068 } && test -s conftest.$ac_objext; then
12069 emacs_cv_motif_version_2_1=yes
12070 else
12071 echo "$as_me: failed program was:" >&5
12072 sed 's/^/| /' conftest.$ac_ext >&5
12074 emacs_cv_motif_version_2_1=no
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12079 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12080 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12081 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12082 if test $emacs_cv_motif_version_2_1 = yes; then
12083 HAVE_LIBXP=no
12085 cat >>confdefs.h <<\_ACEOF
12086 #define HAVE_MOTIF_2_1 1
12087 _ACEOF
12089 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12090 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12091 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 else
12094 ac_check_lib_save_LIBS=$LIBS
12095 LIBS="-lXp $LIBS"
12096 cat >conftest.$ac_ext <<_ACEOF
12097 /* confdefs.h. */
12098 _ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12103 /* Override any GCC internal prototype to avoid an error.
12104 Use char because int might match the return type of a GCC
12105 builtin and then its argument prototype would still apply. */
12106 #ifdef __cplusplus
12107 extern "C"
12108 #endif
12109 char XpCreateContext ();
12111 main ()
12113 return XpCreateContext ();
12115 return 0;
12117 _ACEOF
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (ac_try="$ac_link"
12120 case "(($ac_try" in
12121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12122 *) ac_try_echo=$ac_try;;
12123 esac
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_link") 2>conftest.er1
12126 ac_status=$?
12127 grep -v '^ *+' conftest.er1 >conftest.err
12128 rm -f conftest.er1
12129 cat conftest.err >&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } && {
12132 test -z "$ac_c_werror_flag" ||
12133 test ! -s conftest.err
12134 } && test -s conftest$ac_exeext &&
12135 $as_test_x conftest$ac_exeext; then
12136 ac_cv_lib_Xp_XpCreateContext=yes
12137 else
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 ac_cv_lib_Xp_XpCreateContext=no
12144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12148 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12149 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12150 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12151 HAVE_LIBXP=yes
12154 if test ${HAVE_LIBXP} = yes; then
12156 cat >>confdefs.h <<\_ACEOF
12157 #define HAVE_LIBXP 1
12158 _ACEOF
12161 else
12162 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12163 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12164 if test "${emacs_cv_lesstif+set}" = set; then
12165 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167 # We put this in CFLAGS temporarily to precede other -I options
12168 # that might be in CFLAGS temporarily.
12169 # We put this in CPPFLAGS where it precedes the other -I options.
12170 OLD_CPPFLAGS=$CPPFLAGS
12171 OLD_CFLAGS=$CFLAGS
12172 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12173 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12174 cat >conftest.$ac_ext <<_ACEOF
12175 /* confdefs.h. */
12176 _ACEOF
12177 cat confdefs.h >>conftest.$ac_ext
12178 cat >>conftest.$ac_ext <<_ACEOF
12179 /* end confdefs.h. */
12180 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12182 main ()
12184 int x = 5;
12186 return 0;
12188 _ACEOF
12189 rm -f conftest.$ac_objext
12190 if { (ac_try="$ac_compile"
12191 case "(($ac_try" in
12192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12194 esac
12195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196 (eval "$ac_compile") 2>conftest.er1
12197 ac_status=$?
12198 grep -v '^ *+' conftest.er1 >conftest.err
12199 rm -f conftest.er1
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } && {
12203 test -z "$ac_c_werror_flag" ||
12204 test ! -s conftest.err
12205 } && test -s conftest.$ac_objext; then
12206 emacs_cv_lesstif=yes
12207 else
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12211 emacs_cv_lesstif=no
12214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12217 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12218 if test $emacs_cv_lesstif = yes; then
12219 # Make sure this -I option remains in CPPFLAGS after it is set
12220 # back to REAL_CPPFLAGS.
12221 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12222 # have those other -I options anyway. Ultimately, having this
12223 # directory ultimately in CPPFLAGS will be enough.
12224 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12225 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12226 else
12227 CFLAGS=$OLD_CFLAGS
12228 CPPFLAGS=$OLD_CPPFLAGS
12235 USE_TOOLKIT_SCROLL_BARS=no
12236 if test "${with_toolkit_scroll_bars}" != "no"; then
12237 if test "${USE_X_TOOLKIT}" != "none"; then
12238 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12239 cat >>confdefs.h <<\_ACEOF
12240 #define USE_TOOLKIT_SCROLL_BARS 1
12241 _ACEOF
12243 HAVE_XAW3D=no
12244 USE_TOOLKIT_SCROLL_BARS=yes
12245 elif test "${HAVE_XAW3D}" = "yes"; then
12246 cat >>confdefs.h <<\_ACEOF
12247 #define USE_TOOLKIT_SCROLL_BARS 1
12248 _ACEOF
12250 USE_TOOLKIT_SCROLL_BARS=yes
12252 elif test "${HAVE_GTK}" = "yes"; then
12253 cat >>confdefs.h <<\_ACEOF
12254 #define USE_TOOLKIT_SCROLL_BARS 1
12255 _ACEOF
12257 USE_TOOLKIT_SCROLL_BARS=yes
12258 elif test "${HAVE_CARBON}" = "yes"; then
12259 cat >>confdefs.h <<\_ACEOF
12260 #define USE_TOOLKIT_SCROLL_BARS 1
12261 _ACEOF
12263 USE_TOOLKIT_SCROLL_BARS=yes
12267 cat >conftest.$ac_ext <<_ACEOF
12268 /* confdefs.h. */
12269 _ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12274 #include <X11/Xlib.h>
12275 #include <X11/Xresource.h>
12277 main ()
12279 XIMProc callback;
12281 return 0;
12283 _ACEOF
12284 rm -f conftest.$ac_objext
12285 if { (ac_try="$ac_compile"
12286 case "(($ac_try" in
12287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288 *) ac_try_echo=$ac_try;;
12289 esac
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291 (eval "$ac_compile") 2>conftest.er1
12292 ac_status=$?
12293 grep -v '^ *+' conftest.er1 >conftest.err
12294 rm -f conftest.er1
12295 cat conftest.err >&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } && {
12298 test -z "$ac_c_werror_flag" ||
12299 test ! -s conftest.err
12300 } && test -s conftest.$ac_objext; then
12301 HAVE_XIM=yes
12303 cat >>confdefs.h <<\_ACEOF
12304 #define HAVE_XIM 1
12305 _ACEOF
12307 else
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 HAVE_XIM=no
12314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12317 if test "${with_xim}" != "no"; then
12319 cat >>confdefs.h <<\_ACEOF
12320 #define USE_XIM 1
12321 _ACEOF
12326 if test "${HAVE_XIM}" != "no"; then
12327 late_CFLAGS=$CFLAGS
12328 if test "$GCC" = yes; then
12329 CFLAGS="$CFLAGS --pedantic-errors"
12331 cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h. */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12338 #include <X11/Xlib.h>
12339 #include <X11/Xresource.h>
12341 main ()
12343 Display *display;
12344 XrmDatabase db;
12345 char *res_name;
12346 char *res_class;
12347 XIMProc callback;
12348 XPointer *client_data;
12349 #ifndef __GNUC__
12350 /* If we're not using GCC, it's probably not XFree86, and this is
12351 probably right, but we can't use something like --pedantic-errors. */
12352 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12353 char*, XIMProc, XPointer*);
12354 #endif
12355 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12356 client_data);
12358 return 0;
12360 _ACEOF
12361 rm -f conftest.$ac_objext
12362 if { (ac_try="$ac_compile"
12363 case "(($ac_try" in
12364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12365 *) ac_try_echo=$ac_try;;
12366 esac
12367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12368 (eval "$ac_compile") 2>conftest.er1
12369 ac_status=$?
12370 grep -v '^ *+' conftest.er1 >conftest.err
12371 rm -f conftest.er1
12372 cat conftest.err >&5
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); } && {
12375 test -z "$ac_c_werror_flag" ||
12376 test ! -s conftest.err
12377 } && test -s conftest.$ac_objext; then
12378 emacs_cv_arg6_star=yes
12379 else
12380 echo "$as_me: failed program was:" >&5
12381 sed 's/^/| /' conftest.$ac_ext >&5
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 if test "$emacs_cv_arg6_star" = yes; then
12389 cat >>confdefs.h <<\_ACEOF
12390 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12391 _ACEOF
12393 else
12394 cat >>confdefs.h <<\_ACEOF
12395 #define XRegisterIMInstantiateCallback_arg6 XPointer
12396 _ACEOF
12399 CFLAGS=$late_CFLAGS
12402 ### Start of font-backend section.
12403 if test "${HAVE_X11}" != "yes"; then
12404 USE_FONT_BACKEND=no
12407 if test "${USE_FONT_BACKEND}" = "yes"; then
12409 cat >>confdefs.h <<\_ACEOF
12410 #define USE_FONT_BACKEND 1
12411 _ACEOF
12414 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12415 HAVE_XFT=maybe
12416 if test "x${with_freetype}" = "xno"; then
12417 with_xft="no";
12419 if test "x${with_xft}" != "xno"; then
12422 succeeded=no
12424 # Extract the first word of "pkg-config", so it can be a program name with args.
12425 set dummy pkg-config; ac_word=$2
12426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12428 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12430 else
12431 case $PKG_CONFIG in
12432 [\\/]* | ?:[\\/]*)
12433 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437 for as_dir in $PATH
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12443 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12445 break 2
12447 done
12448 done
12449 IFS=$as_save_IFS
12451 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12453 esac
12455 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12456 if test -n "$PKG_CONFIG"; then
12457 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12458 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12459 else
12460 { echo "$as_me:$LINENO: result: no" >&5
12461 echo "${ECHO_T}no" >&6; }
12466 if test "$PKG_CONFIG" = "no" ; then
12467 HAVE_XFT=no
12468 else
12469 PKG_CONFIG_MIN_VERSION=0.9.0
12470 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12471 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12472 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12474 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12475 { echo "$as_me:$LINENO: result: yes" >&5
12476 echo "${ECHO_T}yes" >&6; }
12477 succeeded=yes
12479 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12480 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12481 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12482 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12483 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12485 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12486 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12487 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12488 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12489 echo "${ECHO_T}$XFT_LIBS" >&6; }
12490 else
12491 { echo "$as_me:$LINENO: result: no" >&5
12492 echo "${ECHO_T}no" >&6; }
12493 XFT_CFLAGS=""
12494 XFT_LIBS=""
12495 ## If we have a custom action on failure, don't print errors, but
12496 ## do set a variable so people can do so.
12497 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12503 else
12504 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12505 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12509 if test $succeeded = yes; then
12511 else
12512 HAVE_XFT=no
12515 if test "$HAVE_XFT" != no; then
12516 OLD_CPPFLAGS="$CPPFLAGS"
12517 OLD_CFLAGS="$CFLAGS"
12518 OLD_LIBS="$LIBS"
12519 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12520 CFLAGS="$CFLAGS $XFT_CFLAGS"
12521 LIBS="$XFT_LIBS $LIBS"
12522 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12523 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12524 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12525 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12529 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12530 else
12531 # Is the header compilable?
12532 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12533 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12534 cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h. */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 $ac_includes_default
12541 #include <X11/Xft/Xft.h>
12542 _ACEOF
12543 rm -f conftest.$ac_objext
12544 if { (ac_try="$ac_compile"
12545 case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12548 esac
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_compile") 2>conftest.er1
12551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } && {
12557 test -z "$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12559 } && test -s conftest.$ac_objext; then
12560 ac_header_compiler=yes
12561 else
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 ac_header_compiler=no
12568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12570 echo "${ECHO_T}$ac_header_compiler" >&6; }
12572 # Is the header present?
12573 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12574 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12575 cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h. */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h. */
12581 #include <X11/Xft/Xft.h>
12582 _ACEOF
12583 if { (ac_try="$ac_cpp conftest.$ac_ext"
12584 case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587 esac
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12590 ac_status=$?
12591 grep -v '^ *+' conftest.er1 >conftest.err
12592 rm -f conftest.er1
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } >/dev/null && {
12596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12597 test ! -s conftest.err
12598 }; then
12599 ac_header_preproc=yes
12600 else
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12604 ac_header_preproc=no
12607 rm -f conftest.err conftest.$ac_ext
12608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12609 echo "${ECHO_T}$ac_header_preproc" >&6; }
12611 # So? What about this header?
12612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12613 yes:no: )
12614 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12615 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12616 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12617 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12618 ac_header_preproc=yes
12620 no:yes:* )
12621 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12622 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12623 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12624 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12625 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12626 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12627 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12628 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12629 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12630 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12631 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12632 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12635 esac
12636 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12637 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12638 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12639 echo $ECHO_N "(cached) $ECHO_C" >&6
12640 else
12641 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12643 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12644 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12647 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12648 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12649 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12650 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12652 else
12653 ac_check_lib_save_LIBS=$LIBS
12654 LIBS="-lXft $XFT_LIBS $LIBS"
12655 cat >conftest.$ac_ext <<_ACEOF
12656 /* confdefs.h. */
12657 _ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12662 /* Override any GCC internal prototype to avoid an error.
12663 Use char because int might match the return type of a GCC
12664 builtin and then its argument prototype would still apply. */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 char XftFontOpen ();
12670 main ()
12672 return XftFontOpen ();
12674 return 0;
12676 _ACEOF
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (ac_try="$ac_link"
12679 case "(($ac_try" in
12680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12681 *) ac_try_echo=$ac_try;;
12682 esac
12683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12684 (eval "$ac_link") 2>conftest.er1
12685 ac_status=$?
12686 grep -v '^ *+' conftest.er1 >conftest.err
12687 rm -f conftest.er1
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } && {
12691 test -z "$ac_c_werror_flag" ||
12692 test ! -s conftest.err
12693 } && test -s conftest$ac_exeext &&
12694 $as_test_x conftest$ac_exeext; then
12695 ac_cv_lib_Xft_XftFontOpen=yes
12696 else
12697 echo "$as_me: failed program was:" >&5
12698 sed 's/^/| /' conftest.$ac_ext >&5
12700 ac_cv_lib_Xft_XftFontOpen=no
12703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12704 conftest$ac_exeext conftest.$ac_ext
12705 LIBS=$ac_check_lib_save_LIBS
12707 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12708 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12709 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12710 HAVE_XFT=yes
12717 if test "${HAVE_XFT}" = "yes"; then
12719 cat >>confdefs.h <<\_ACEOF
12720 #define HAVE_XFT 1
12721 _ACEOF
12724 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12725 else
12726 CPPFLAGS="$OLD_CPPFLAGS"
12727 CFLAGS="$OLD_CFLAGS"
12728 LIBS="$OLD_LIBS"
12729 fi # "${HAVE_XFT}" = "yes"
12730 fi # "$HAVE_XFT" != no
12731 fi # "x${with_xft}" != "xno"
12733 if test "$HAVE_XFT" != "yes"; then
12734 HAVE_XFT=no
12738 HAVE_FREETYPE=no
12739 ### Use -lfreetype if available, unless `--with-freetype=no'.
12740 if test "${HAVE_XFT}" = "yes"; then
12741 HAVE_FREETYPE=yes
12742 elif test "x${with_freetype}" != "xno"; then
12745 succeeded=no
12747 # Extract the first word of "pkg-config", so it can be a program name with args.
12748 set dummy pkg-config; ac_word=$2
12749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12751 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754 case $PKG_CONFIG in
12755 [\\/]* | ?:[\\/]*)
12756 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12760 for as_dir in $PATH
12762 IFS=$as_save_IFS
12763 test -z "$as_dir" && as_dir=.
12764 for ac_exec_ext in '' $ac_executable_extensions; do
12765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12766 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12768 break 2
12770 done
12771 done
12772 IFS=$as_save_IFS
12774 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12776 esac
12778 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12779 if test -n "$PKG_CONFIG"; then
12780 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12781 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12782 else
12783 { echo "$as_me:$LINENO: result: no" >&5
12784 echo "${ECHO_T}no" >&6; }
12789 if test "$PKG_CONFIG" = "no" ; then
12790 HAVE_FREETYPE=no
12791 else
12792 PKG_CONFIG_MIN_VERSION=0.9.0
12793 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12794 { echo "$as_me:$LINENO: checking for freetype2" >&5
12795 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12797 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12798 { echo "$as_me:$LINENO: result: yes" >&5
12799 echo "${ECHO_T}yes" >&6; }
12800 succeeded=yes
12802 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12803 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12804 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12805 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12806 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12808 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12809 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12810 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12811 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12812 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12813 else
12814 { echo "$as_me:$LINENO: result: no" >&5
12815 echo "${ECHO_T}no" >&6; }
12816 FREETYPE_CFLAGS=""
12817 FREETYPE_LIBS=""
12818 ## If we have a custom action on failure, don't print errors, but
12819 ## do set a variable so people can do so.
12820 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12826 else
12827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12832 if test $succeeded = yes; then
12833 HAVE_FREETYPE=yes
12834 else
12835 HAVE_FREETYPE=no
12838 if test "${HAVE_FREETYPE}" = "yes"; then
12840 succeeded=no
12842 # Extract the first word of "pkg-config", so it can be a program name with args.
12843 set dummy pkg-config; ac_word=$2
12844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12846 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12847 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 else
12849 case $PKG_CONFIG in
12850 [\\/]* | ?:[\\/]*)
12851 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12855 for as_dir in $PATH
12857 IFS=$as_save_IFS
12858 test -z "$as_dir" && as_dir=.
12859 for ac_exec_ext in '' $ac_executable_extensions; do
12860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12861 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12863 break 2
12865 done
12866 done
12867 IFS=$as_save_IFS
12869 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12871 esac
12873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12874 if test -n "$PKG_CONFIG"; then
12875 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12876 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12877 else
12878 { echo "$as_me:$LINENO: result: no" >&5
12879 echo "${ECHO_T}no" >&6; }
12884 if test "$PKG_CONFIG" = "no" ; then
12885 HAVE_FC=no
12886 else
12887 PKG_CONFIG_MIN_VERSION=0.9.0
12888 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12889 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12890 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12892 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12893 { echo "$as_me:$LINENO: result: yes" >&5
12894 echo "${ECHO_T}yes" >&6; }
12895 succeeded=yes
12897 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12898 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12899 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12900 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12901 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12903 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12904 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12905 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12906 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12907 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12908 else
12909 { echo "$as_me:$LINENO: result: no" >&5
12910 echo "${ECHO_T}no" >&6; }
12911 FONTCONFIG_CFLAGS=""
12912 FONTCONFIG_LIBS=""
12913 ## If we have a custom action on failure, don't print errors, but
12914 ## do set a variable so people can do so.
12915 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12921 else
12922 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12923 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12927 if test $succeeded = yes; then
12928 HAVE_FC=yes
12929 else
12930 HAVE_FC=no
12933 if test "${HAVE_FC}" = "no"; then
12934 HAVE_FREETYPE=no
12939 HAVE_LIBOTF=no
12940 if test "${HAVE_FREETYPE}" = "yes"; then
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_FREETYPE 1
12944 _ACEOF
12946 if test "${with_libotf}" != "no"; then
12948 succeeded=no
12950 # Extract the first word of "pkg-config", so it can be a program name with args.
12951 set dummy pkg-config; ac_word=$2
12952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12954 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 else
12957 case $PKG_CONFIG in
12958 [\\/]* | ?:[\\/]*)
12959 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 break 2
12973 done
12974 done
12975 IFS=$as_save_IFS
12977 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12979 esac
12981 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12982 if test -n "$PKG_CONFIG"; then
12983 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12984 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12985 else
12986 { echo "$as_me:$LINENO: result: no" >&5
12987 echo "${ECHO_T}no" >&6; }
12992 if test "$PKG_CONFIG" = "no" ; then
12993 HAVE_LIBOTF=no
12994 else
12995 PKG_CONFIG_MIN_VERSION=0.9.0
12996 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12997 { echo "$as_me:$LINENO: checking for libotf" >&5
12998 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13000 if $PKG_CONFIG --exists "libotf" 2>&5; then
13001 { echo "$as_me:$LINENO: result: yes" >&5
13002 echo "${ECHO_T}yes" >&6; }
13003 succeeded=yes
13005 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13006 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13007 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13008 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13009 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13011 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13012 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13013 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13014 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13015 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13016 else
13017 { echo "$as_me:$LINENO: result: no" >&5
13018 echo "${ECHO_T}no" >&6; }
13019 LIBOTF_CFLAGS=""
13020 LIBOTF_LIBS=""
13021 ## If we have a custom action on failure, don't print errors, but
13022 ## do set a variable so people can do so.
13023 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13029 else
13030 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13031 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13035 if test $succeeded = yes; then
13036 HAVE_LIBOTF=yes
13037 else
13038 HAVE_LIBOTF=no
13041 if test "$HAVE_LIBOTF" = "yes"; then
13043 cat >>confdefs.h <<\_ACEOF
13044 #define HAVE_LIBOTF 1
13045 _ACEOF
13051 HAVE_M17N_FLT=no
13052 if test "${with_m17n_flt}" != "no"; then
13054 succeeded=no
13056 # Extract the first word of "pkg-config", so it can be a program name with args.
13057 set dummy pkg-config; ac_word=$2
13058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13060 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062 else
13063 case $PKG_CONFIG in
13064 [\\/]* | ?:[\\/]*)
13065 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069 for as_dir in $PATH
13071 IFS=$as_save_IFS
13072 test -z "$as_dir" && as_dir=.
13073 for ac_exec_ext in '' $ac_executable_extensions; do
13074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13075 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13077 break 2
13079 done
13080 done
13081 IFS=$as_save_IFS
13083 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13085 esac
13087 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13088 if test -n "$PKG_CONFIG"; then
13089 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13090 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13091 else
13092 { echo "$as_me:$LINENO: result: no" >&5
13093 echo "${ECHO_T}no" >&6; }
13098 if test "$PKG_CONFIG" = "no" ; then
13099 HAVE_M17N_FLT=no
13100 else
13101 PKG_CONFIG_MIN_VERSION=0.9.0
13102 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13103 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13104 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13106 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13107 { echo "$as_me:$LINENO: result: yes" >&5
13108 echo "${ECHO_T}yes" >&6; }
13109 succeeded=yes
13111 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13112 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13113 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13114 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13115 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13117 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13118 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13119 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13120 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13121 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13122 else
13123 { echo "$as_me:$LINENO: result: no" >&5
13124 echo "${ECHO_T}no" >&6; }
13125 M17N_FLT_CFLAGS=""
13126 M17N_FLT_LIBS=""
13127 ## If we have a custom action on failure, don't print errors, but
13128 ## do set a variable so people can do so.
13129 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13135 else
13136 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13137 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13141 if test $succeeded = yes; then
13142 HAVE_M17N_FLT=yes
13143 else
13144 HAVE_M17N_FLT=no
13147 if test "$HAVE_M17N_FLT" = "yes"; then
13149 cat >>confdefs.h <<\_ACEOF
13150 #define HAVE_M17N_FLT 1
13151 _ACEOF
13165 fi # "${USE_FONT_BACKEND}" = "yes"
13166 ### End of font-backend section.
13168 ### Use -lXpm if available, unless `--with-xpm=no'.
13169 HAVE_XPM=no
13170 if test "${HAVE_X11}" = "yes"; then
13171 if test "${with_xpm}" != "no"; then
13172 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13173 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13174 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13175 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13176 echo $ECHO_N "(cached) $ECHO_C" >&6
13178 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13179 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13180 else
13181 # Is the header compilable?
13182 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13183 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13184 cat >conftest.$ac_ext <<_ACEOF
13185 /* confdefs.h. */
13186 _ACEOF
13187 cat confdefs.h >>conftest.$ac_ext
13188 cat >>conftest.$ac_ext <<_ACEOF
13189 /* end confdefs.h. */
13190 $ac_includes_default
13191 #include <X11/xpm.h>
13192 _ACEOF
13193 rm -f conftest.$ac_objext
13194 if { (ac_try="$ac_compile"
13195 case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198 esac
13199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13200 (eval "$ac_compile") 2>conftest.er1
13201 ac_status=$?
13202 grep -v '^ *+' conftest.er1 >conftest.err
13203 rm -f conftest.er1
13204 cat conftest.err >&5
13205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206 (exit $ac_status); } && {
13207 test -z "$ac_c_werror_flag" ||
13208 test ! -s conftest.err
13209 } && test -s conftest.$ac_objext; then
13210 ac_header_compiler=yes
13211 else
13212 echo "$as_me: failed program was:" >&5
13213 sed 's/^/| /' conftest.$ac_ext >&5
13215 ac_header_compiler=no
13218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13220 echo "${ECHO_T}$ac_header_compiler" >&6; }
13222 # Is the header present?
13223 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13224 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13225 cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h. */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 #include <X11/xpm.h>
13232 _ACEOF
13233 if { (ac_try="$ac_cpp conftest.$ac_ext"
13234 case "(($ac_try" in
13235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13237 esac
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13240 ac_status=$?
13241 grep -v '^ *+' conftest.er1 >conftest.err
13242 rm -f conftest.er1
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } >/dev/null && {
13246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13247 test ! -s conftest.err
13248 }; then
13249 ac_header_preproc=yes
13250 else
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13254 ac_header_preproc=no
13257 rm -f conftest.err conftest.$ac_ext
13258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13259 echo "${ECHO_T}$ac_header_preproc" >&6; }
13261 # So? What about this header?
13262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13263 yes:no: )
13264 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13265 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13267 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13268 ac_header_preproc=yes
13270 no:yes:* )
13271 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13272 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13273 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13274 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13275 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13276 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13277 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13278 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13279 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13280 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13282 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13285 esac
13286 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13287 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13288 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 else
13291 ac_cv_header_X11_xpm_h=$ac_header_preproc
13293 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13294 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13297 if test $ac_cv_header_X11_xpm_h = yes; then
13298 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13299 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13300 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13302 else
13303 ac_check_lib_save_LIBS=$LIBS
13304 LIBS="-lXpm -lX11 $LIBS"
13305 cat >conftest.$ac_ext <<_ACEOF
13306 /* confdefs.h. */
13307 _ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13312 /* Override any GCC internal prototype to avoid an error.
13313 Use char because int might match the return type of a GCC
13314 builtin and then its argument prototype would still apply. */
13315 #ifdef __cplusplus
13316 extern "C"
13317 #endif
13318 char XpmReadFileToPixmap ();
13320 main ()
13322 return XpmReadFileToPixmap ();
13324 return 0;
13326 _ACEOF
13327 rm -f conftest.$ac_objext conftest$ac_exeext
13328 if { (ac_try="$ac_link"
13329 case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13332 esac
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_link") 2>conftest.er1
13335 ac_status=$?
13336 grep -v '^ *+' conftest.er1 >conftest.err
13337 rm -f conftest.er1
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } && {
13341 test -z "$ac_c_werror_flag" ||
13342 test ! -s conftest.err
13343 } && test -s conftest$ac_exeext &&
13344 $as_test_x conftest$ac_exeext; then
13345 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13346 else
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13350 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13354 conftest$ac_exeext conftest.$ac_ext
13355 LIBS=$ac_check_lib_save_LIBS
13357 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13358 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13359 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13360 HAVE_XPM=yes
13366 if test "${HAVE_XPM}" = "yes"; then
13367 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13368 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13369 cat >conftest.$ac_ext <<_ACEOF
13370 /* confdefs.h. */
13371 _ACEOF
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 #include "X11/xpm.h"
13376 #ifndef XpmReturnAllocPixels
13377 no_return_alloc_pixels
13378 #endif
13380 _ACEOF
13381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13382 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13383 HAVE_XPM=no
13384 else
13385 HAVE_XPM=yes
13387 rm -f conftest*
13390 if test "${HAVE_XPM}" = "yes"; then
13391 { echo "$as_me:$LINENO: result: yes" >&5
13392 echo "${ECHO_T}yes" >&6; }
13393 else
13394 { echo "$as_me:$LINENO: result: no" >&5
13395 echo "${ECHO_T}no" >&6; }
13400 if test "${HAVE_XPM}" = "yes"; then
13402 cat >>confdefs.h <<\_ACEOF
13403 #define HAVE_XPM 1
13404 _ACEOF
13409 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13410 HAVE_JPEG=no
13411 if test "${HAVE_X11}" = "yes"; then
13412 if test "${with_jpeg}" != "no"; then
13413 if test "${ac_cv_header_jerror_h+set}" = set; then
13414 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13415 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13416 if test "${ac_cv_header_jerror_h+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13420 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13421 else
13422 # Is the header compilable?
13423 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13424 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13425 cat >conftest.$ac_ext <<_ACEOF
13426 /* confdefs.h. */
13427 _ACEOF
13428 cat confdefs.h >>conftest.$ac_ext
13429 cat >>conftest.$ac_ext <<_ACEOF
13430 /* end confdefs.h. */
13431 $ac_includes_default
13432 #include <jerror.h>
13433 _ACEOF
13434 rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441 (eval "$ac_compile") 2>conftest.er1
13442 ac_status=$?
13443 grep -v '^ *+' conftest.er1 >conftest.err
13444 rm -f conftest.er1
13445 cat conftest.err >&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); } && {
13448 test -z "$ac_c_werror_flag" ||
13449 test ! -s conftest.err
13450 } && test -s conftest.$ac_objext; then
13451 ac_header_compiler=yes
13452 else
13453 echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13456 ac_header_compiler=no
13459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13461 echo "${ECHO_T}$ac_header_compiler" >&6; }
13463 # Is the header present?
13464 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13465 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13466 cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h. */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 #include <jerror.h>
13473 _ACEOF
13474 if { (ac_try="$ac_cpp conftest.$ac_ext"
13475 case "(($ac_try" in
13476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13477 *) ac_try_echo=$ac_try;;
13478 esac
13479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13481 ac_status=$?
13482 grep -v '^ *+' conftest.er1 >conftest.err
13483 rm -f conftest.er1
13484 cat conftest.err >&5
13485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13486 (exit $ac_status); } >/dev/null && {
13487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13488 test ! -s conftest.err
13489 }; then
13490 ac_header_preproc=yes
13491 else
13492 echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13495 ac_header_preproc=no
13498 rm -f conftest.err conftest.$ac_ext
13499 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13500 echo "${ECHO_T}$ac_header_preproc" >&6; }
13502 # So? What about this header?
13503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13504 yes:no: )
13505 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13506 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13507 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13508 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13509 ac_header_preproc=yes
13511 no:yes:* )
13512 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13513 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13515 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13517 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13519 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13521 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13523 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13526 esac
13527 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13528 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13529 if test "${ac_cv_header_jerror_h+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532 ac_cv_header_jerror_h=$ac_header_preproc
13534 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13535 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13538 if test $ac_cv_header_jerror_h = yes; then
13539 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13540 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13541 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544 ac_check_lib_save_LIBS=$LIBS
13545 LIBS="-ljpeg $LIBS"
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h. */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13556 #ifdef __cplusplus
13557 extern "C"
13558 #endif
13559 char jpeg_destroy_compress ();
13561 main ()
13563 return jpeg_destroy_compress ();
13565 return 0;
13567 _ACEOF
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (ac_try="$ac_link"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_link") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest$ac_exeext &&
13585 $as_test_x conftest$ac_exeext; then
13586 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13587 else
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13591 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13598 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13599 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13600 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13601 HAVE_JPEG=yes
13610 if test "${HAVE_JPEG}" = "yes"; then
13611 cat >>confdefs.h <<\_ACEOF
13612 #define HAVE_JPEG 1
13613 _ACEOF
13615 cat >conftest.$ac_ext <<_ACEOF
13616 /* confdefs.h. */
13617 _ACEOF
13618 cat confdefs.h >>conftest.$ac_ext
13619 cat >>conftest.$ac_ext <<_ACEOF
13620 /* end confdefs.h. */
13621 #include <jpeglib.h>
13622 version=JPEG_LIB_VERSION
13624 _ACEOF
13625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13626 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13627 cat >>confdefs.h <<\_ACEOF
13628 #define HAVE_JPEG 1
13629 _ACEOF
13631 else
13632 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13633 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13634 HAVE_JPEG=no
13636 rm -f conftest*
13641 ### Use -lpng if available, unless `--with-png=no'.
13642 HAVE_PNG=no
13643 if test "${HAVE_X11}" = "yes"; then
13644 if test "${with_png}" != "no"; then
13645 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13646 # in /usr/include/libpng.
13649 for ac_header in png.h libpng/png.h
13651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13656 echo $ECHO_N "(cached) $ECHO_C" >&6
13658 ac_res=`eval echo '${'$as_ac_Header'}'`
13659 { echo "$as_me:$LINENO: result: $ac_res" >&5
13660 echo "${ECHO_T}$ac_res" >&6; }
13661 else
13662 # Is the header compilable?
13663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13665 cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h. */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h. */
13671 $ac_includes_default
13672 #include <$ac_header>
13673 _ACEOF
13674 rm -f conftest.$ac_objext
13675 if { (ac_try="$ac_compile"
13676 case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13679 esac
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_compile") 2>conftest.er1
13682 ac_status=$?
13683 grep -v '^ *+' conftest.er1 >conftest.err
13684 rm -f conftest.er1
13685 cat conftest.err >&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } && {
13688 test -z "$ac_c_werror_flag" ||
13689 test ! -s conftest.err
13690 } && test -s conftest.$ac_objext; then
13691 ac_header_compiler=yes
13692 else
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 ac_header_compiler=no
13699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13701 echo "${ECHO_T}$ac_header_compiler" >&6; }
13703 # Is the header present?
13704 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13706 cat >conftest.$ac_ext <<_ACEOF
13707 /* confdefs.h. */
13708 _ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 #include <$ac_header>
13713 _ACEOF
13714 if { (ac_try="$ac_cpp conftest.$ac_ext"
13715 case "(($ac_try" in
13716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13718 esac
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13721 ac_status=$?
13722 grep -v '^ *+' conftest.er1 >conftest.err
13723 rm -f conftest.er1
13724 cat conftest.err >&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); } >/dev/null && {
13727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13728 test ! -s conftest.err
13729 }; then
13730 ac_header_preproc=yes
13731 else
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13735 ac_header_preproc=no
13738 rm -f conftest.err conftest.$ac_ext
13739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13740 echo "${ECHO_T}$ac_header_preproc" >&6; }
13742 # So? What about this header?
13743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13744 yes:no: )
13745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13749 ac_header_preproc=yes
13751 no:yes:* )
13752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13766 esac
13767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13770 echo $ECHO_N "(cached) $ECHO_C" >&6
13771 else
13772 eval "$as_ac_Header=\$ac_header_preproc"
13774 ac_res=`eval echo '${'$as_ac_Header'}'`
13775 { echo "$as_me:$LINENO: result: $ac_res" >&5
13776 echo "${ECHO_T}$ac_res" >&6; }
13779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13780 cat >>confdefs.h <<_ACEOF
13781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13782 _ACEOF
13786 done
13788 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13789 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13790 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13791 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 else
13794 ac_check_lib_save_LIBS=$LIBS
13795 LIBS="-lpng -lz -lm $LIBS"
13796 cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h. */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13803 /* Override any GCC internal prototype to avoid an error.
13804 Use char because int might match the return type of a GCC
13805 builtin and then its argument prototype would still apply. */
13806 #ifdef __cplusplus
13807 extern "C"
13808 #endif
13809 char png_get_channels ();
13811 main ()
13813 return png_get_channels ();
13815 return 0;
13817 _ACEOF
13818 rm -f conftest.$ac_objext conftest$ac_exeext
13819 if { (ac_try="$ac_link"
13820 case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823 esac
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_link") 2>conftest.er1
13826 ac_status=$?
13827 grep -v '^ *+' conftest.er1 >conftest.err
13828 rm -f conftest.er1
13829 cat conftest.err >&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } && {
13832 test -z "$ac_c_werror_flag" ||
13833 test ! -s conftest.err
13834 } && test -s conftest$ac_exeext &&
13835 $as_test_x conftest$ac_exeext; then
13836 ac_cv_lib_png_png_get_channels=yes
13837 else
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_lib_png_png_get_channels=no
13844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13845 conftest$ac_exeext conftest.$ac_ext
13846 LIBS=$ac_check_lib_save_LIBS
13848 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13849 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13850 if test $ac_cv_lib_png_png_get_channels = yes; then
13851 HAVE_PNG=yes
13857 if test "${HAVE_PNG}" = "yes"; then
13859 cat >>confdefs.h <<\_ACEOF
13860 #define HAVE_PNG 1
13861 _ACEOF
13866 ### Use -ltiff if available, unless `--with-tiff=no'.
13867 HAVE_TIFF=no
13868 if test "${HAVE_X11}" = "yes"; then
13869 if test "${with_tiff}" != "no"; then
13870 if test "${ac_cv_header_tiffio_h+set}" = set; then
13871 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13872 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13873 if test "${ac_cv_header_tiffio_h+set}" = set; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13876 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13877 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13878 else
13879 # Is the header compilable?
13880 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13881 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13882 cat >conftest.$ac_ext <<_ACEOF
13883 /* confdefs.h. */
13884 _ACEOF
13885 cat confdefs.h >>conftest.$ac_ext
13886 cat >>conftest.$ac_ext <<_ACEOF
13887 /* end confdefs.h. */
13888 $ac_includes_default
13889 #include <tiffio.h>
13890 _ACEOF
13891 rm -f conftest.$ac_objext
13892 if { (ac_try="$ac_compile"
13893 case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_compile") 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest.$ac_objext; then
13908 ac_header_compiler=yes
13909 else
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 ac_header_compiler=no
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13918 echo "${ECHO_T}$ac_header_compiler" >&6; }
13920 # Is the header present?
13921 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13922 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h. */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 #include <tiffio.h>
13930 _ACEOF
13931 if { (ac_try="$ac_cpp conftest.$ac_ext"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13935 esac
13936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13938 ac_status=$?
13939 grep -v '^ *+' conftest.er1 >conftest.err
13940 rm -f conftest.er1
13941 cat conftest.err >&5
13942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13943 (exit $ac_status); } >/dev/null && {
13944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13945 test ! -s conftest.err
13946 }; then
13947 ac_header_preproc=yes
13948 else
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13952 ac_header_preproc=no
13955 rm -f conftest.err conftest.$ac_ext
13956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13957 echo "${ECHO_T}$ac_header_preproc" >&6; }
13959 # So? What about this header?
13960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13961 yes:no: )
13962 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13963 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13964 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13965 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13966 ac_header_preproc=yes
13968 no:yes:* )
13969 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13970 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13972 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13974 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13976 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13978 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13980 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13983 esac
13984 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13985 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13986 if test "${ac_cv_header_tiffio_h+set}" = set; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 else
13989 ac_cv_header_tiffio_h=$ac_header_preproc
13991 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13992 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13995 if test $ac_cv_header_tiffio_h = yes; then
13996 tifflibs="-lz -lm"
13997 # At least one tiff package requires the jpeg library.
13998 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13999 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14000 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14001 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14002 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 else
14004 ac_check_lib_save_LIBS=$LIBS
14005 LIBS="-ltiff $tifflibs $LIBS"
14006 cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h. */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h. */
14013 /* Override any GCC internal prototype to avoid an error.
14014 Use char because int might match the return type of a GCC
14015 builtin and then its argument prototype would still apply. */
14016 #ifdef __cplusplus
14017 extern "C"
14018 #endif
14019 char TIFFGetVersion ();
14021 main ()
14023 return TIFFGetVersion ();
14025 return 0;
14027 _ACEOF
14028 rm -f conftest.$ac_objext conftest$ac_exeext
14029 if { (ac_try="$ac_link"
14030 case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14033 esac
14034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14035 (eval "$ac_link") 2>conftest.er1
14036 ac_status=$?
14037 grep -v '^ *+' conftest.er1 >conftest.err
14038 rm -f conftest.er1
14039 cat conftest.err >&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); } && {
14042 test -z "$ac_c_werror_flag" ||
14043 test ! -s conftest.err
14044 } && test -s conftest$ac_exeext &&
14045 $as_test_x conftest$ac_exeext; then
14046 ac_cv_lib_tiff_TIFFGetVersion=yes
14047 else
14048 echo "$as_me: failed program was:" >&5
14049 sed 's/^/| /' conftest.$ac_ext >&5
14051 ac_cv_lib_tiff_TIFFGetVersion=no
14054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14055 conftest$ac_exeext conftest.$ac_ext
14056 LIBS=$ac_check_lib_save_LIBS
14058 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14059 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14060 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14061 HAVE_TIFF=yes
14069 if test "${HAVE_TIFF}" = "yes"; then
14071 cat >>confdefs.h <<\_ACEOF
14072 #define HAVE_TIFF 1
14073 _ACEOF
14078 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14079 HAVE_GIF=no
14080 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14081 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14082 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14083 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14084 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14085 echo $ECHO_N "(cached) $ECHO_C" >&6
14087 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14088 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14089 else
14090 # Is the header compilable?
14091 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14092 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14093 cat >conftest.$ac_ext <<_ACEOF
14094 /* confdefs.h. */
14095 _ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14099 $ac_includes_default
14100 #include <gif_lib.h>
14101 _ACEOF
14102 rm -f conftest.$ac_objext
14103 if { (ac_try="$ac_compile"
14104 case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14107 esac
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109 (eval "$ac_compile") 2>conftest.er1
14110 ac_status=$?
14111 grep -v '^ *+' conftest.er1 >conftest.err
14112 rm -f conftest.er1
14113 cat conftest.err >&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); } && {
14116 test -z "$ac_c_werror_flag" ||
14117 test ! -s conftest.err
14118 } && test -s conftest.$ac_objext; then
14119 ac_header_compiler=yes
14120 else
14121 echo "$as_me: failed program was:" >&5
14122 sed 's/^/| /' conftest.$ac_ext >&5
14124 ac_header_compiler=no
14127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14128 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14129 echo "${ECHO_T}$ac_header_compiler" >&6; }
14131 # Is the header present?
14132 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14133 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14134 cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h. */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14140 #include <gif_lib.h>
14141 _ACEOF
14142 if { (ac_try="$ac_cpp conftest.$ac_ext"
14143 case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14146 esac
14147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14149 ac_status=$?
14150 grep -v '^ *+' conftest.er1 >conftest.err
14151 rm -f conftest.er1
14152 cat conftest.err >&5
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); } >/dev/null && {
14155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14156 test ! -s conftest.err
14157 }; then
14158 ac_header_preproc=yes
14159 else
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14163 ac_header_preproc=no
14166 rm -f conftest.err conftest.$ac_ext
14167 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14168 echo "${ECHO_T}$ac_header_preproc" >&6; }
14170 # So? What about this header?
14171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14172 yes:no: )
14173 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14174 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14175 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14176 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14177 ac_header_preproc=yes
14179 no:yes:* )
14180 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14181 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14182 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14183 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14185 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14187 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14189 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14191 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14194 esac
14195 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14196 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14197 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200 ac_cv_header_gif_lib_h=$ac_header_preproc
14202 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14203 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14206 if test $ac_cv_header_gif_lib_h = yes; then
14207 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14208 # Earlier versions can crash Emacs.
14209 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14210 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14211 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14213 else
14214 ac_check_lib_save_LIBS=$LIBS
14215 LIBS="-lgif $LIBS"
14216 cat >conftest.$ac_ext <<_ACEOF
14217 /* confdefs.h. */
14218 _ACEOF
14219 cat confdefs.h >>conftest.$ac_ext
14220 cat >>conftest.$ac_ext <<_ACEOF
14221 /* end confdefs.h. */
14223 /* Override any GCC internal prototype to avoid an error.
14224 Use char because int might match the return type of a GCC
14225 builtin and then its argument prototype would still apply. */
14226 #ifdef __cplusplus
14227 extern "C"
14228 #endif
14229 char EGifPutExtensionLast ();
14231 main ()
14233 return EGifPutExtensionLast ();
14235 return 0;
14237 _ACEOF
14238 rm -f conftest.$ac_objext conftest$ac_exeext
14239 if { (ac_try="$ac_link"
14240 case "(($ac_try" in
14241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14242 *) ac_try_echo=$ac_try;;
14243 esac
14244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14245 (eval "$ac_link") 2>conftest.er1
14246 ac_status=$?
14247 grep -v '^ *+' conftest.er1 >conftest.err
14248 rm -f conftest.er1
14249 cat conftest.err >&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } && {
14252 test -z "$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14254 } && test -s conftest$ac_exeext &&
14255 $as_test_x conftest$ac_exeext; then
14256 ac_cv_lib_gif_EGifPutExtensionLast=yes
14257 else
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 ac_cv_lib_gif_EGifPutExtensionLast=no
14264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14265 conftest$ac_exeext conftest.$ac_ext
14266 LIBS=$ac_check_lib_save_LIBS
14268 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14269 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14270 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14271 HAVE_GIF=yes
14272 else
14273 try_libungif=yes
14280 if test "$HAVE_GIF" = yes; then
14281 ac_gif_lib_name="-lgif"
14284 # If gif_lib.h but no libgif, try libungif.
14285 if test x"$try_libungif" = xyes; then
14286 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14287 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14288 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291 ac_check_lib_save_LIBS=$LIBS
14292 LIBS="-lungif $LIBS"
14293 cat >conftest.$ac_ext <<_ACEOF
14294 /* confdefs.h. */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h. */
14300 /* Override any GCC internal prototype to avoid an error.
14301 Use char because int might match the return type of a GCC
14302 builtin and then its argument prototype would still apply. */
14303 #ifdef __cplusplus
14304 extern "C"
14305 #endif
14306 char EGifPutExtensionLast ();
14308 main ()
14310 return EGifPutExtensionLast ();
14312 return 0;
14314 _ACEOF
14315 rm -f conftest.$ac_objext conftest$ac_exeext
14316 if { (ac_try="$ac_link"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320 esac
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_link") 2>conftest.er1
14323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && {
14329 test -z "$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 } && test -s conftest$ac_exeext &&
14332 $as_test_x conftest$ac_exeext; then
14333 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14334 else
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_cv_lib_ungif_EGifPutExtensionLast=no
14341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14342 conftest$ac_exeext conftest.$ac_ext
14343 LIBS=$ac_check_lib_save_LIBS
14345 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14346 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14347 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14348 HAVE_GIF=yes
14352 if test "$HAVE_GIF" = yes; then
14354 cat >>confdefs.h <<\_ACEOF
14355 #define LIBGIF -lungif
14356 _ACEOF
14358 ac_gif_lib_name="-lungif"
14362 if test "${HAVE_GIF}" = "yes"; then
14364 cat >>confdefs.h <<\_ACEOF
14365 #define HAVE_GIF 1
14366 _ACEOF
14371 if test "${HAVE_X11}" = "yes"; then
14372 MISSING=""
14373 WITH_NO=""
14374 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14375 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14376 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14377 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14378 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14379 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14380 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14381 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14382 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14383 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14385 if test "X${MISSING}" != X; then
14386 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14387 $MISSING
14388 Maybe some development libraries/packages are missing?
14389 If you don't want to link with them give
14390 $WITH_NO
14391 as options to configure" >&5
14392 echo "$as_me: error: The following required libraries were not found:
14393 $MISSING
14394 Maybe some development libraries/packages are missing?
14395 If you don't want to link with them give
14396 $WITH_NO
14397 as options to configure" >&2;}
14398 { (exit 1); exit 1; }; }
14402 ### Use -lgpm if available, unless `--with-gpm=no'.
14403 HAVE_GPM=no
14404 if test "${with_gpm}" != "no"; then
14405 if test "${ac_cv_header_gpm_h+set}" = set; then
14406 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14407 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14408 if test "${ac_cv_header_gpm_h+set}" = set; then
14409 echo $ECHO_N "(cached) $ECHO_C" >&6
14411 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14412 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14413 else
14414 # Is the header compilable?
14415 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14416 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14417 cat >conftest.$ac_ext <<_ACEOF
14418 /* confdefs.h. */
14419 _ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 $ac_includes_default
14424 #include <gpm.h>
14425 _ACEOF
14426 rm -f conftest.$ac_objext
14427 if { (ac_try="$ac_compile"
14428 case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14431 esac
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433 (eval "$ac_compile") 2>conftest.er1
14434 ac_status=$?
14435 grep -v '^ *+' conftest.er1 >conftest.err
14436 rm -f conftest.er1
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } && {
14440 test -z "$ac_c_werror_flag" ||
14441 test ! -s conftest.err
14442 } && test -s conftest.$ac_objext; then
14443 ac_header_compiler=yes
14444 else
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14448 ac_header_compiler=no
14451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14453 echo "${ECHO_T}$ac_header_compiler" >&6; }
14455 # Is the header present?
14456 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14457 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14458 cat >conftest.$ac_ext <<_ACEOF
14459 /* confdefs.h. */
14460 _ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h. */
14464 #include <gpm.h>
14465 _ACEOF
14466 if { (ac_try="$ac_cpp conftest.$ac_ext"
14467 case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14470 esac
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14473 ac_status=$?
14474 grep -v '^ *+' conftest.er1 >conftest.err
14475 rm -f conftest.er1
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } >/dev/null && {
14479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14480 test ! -s conftest.err
14481 }; then
14482 ac_header_preproc=yes
14483 else
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 ac_header_preproc=no
14490 rm -f conftest.err conftest.$ac_ext
14491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14492 echo "${ECHO_T}$ac_header_preproc" >&6; }
14494 # So? What about this header?
14495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14496 yes:no: )
14497 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14498 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14500 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14501 ac_header_preproc=yes
14503 no:yes:* )
14504 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14505 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14506 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14507 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14508 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14509 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14511 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14513 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14515 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14518 esac
14519 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14520 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14521 if test "${ac_cv_header_gpm_h+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 else
14524 ac_cv_header_gpm_h=$ac_header_preproc
14526 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14527 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14530 if test $ac_cv_header_gpm_h = yes; then
14531 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14532 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14533 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14535 else
14536 ac_check_lib_save_LIBS=$LIBS
14537 LIBS="-lgpm $LIBS"
14538 cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h. */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14545 /* Override any GCC internal prototype to avoid an error.
14546 Use char because int might match the return type of a GCC
14547 builtin and then its argument prototype would still apply. */
14548 #ifdef __cplusplus
14549 extern "C"
14550 #endif
14551 char Gpm_Open ();
14553 main ()
14555 return Gpm_Open ();
14557 return 0;
14559 _ACEOF
14560 rm -f conftest.$ac_objext conftest$ac_exeext
14561 if { (ac_try="$ac_link"
14562 case "(($ac_try" in
14563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14564 *) ac_try_echo=$ac_try;;
14565 esac
14566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14567 (eval "$ac_link") 2>conftest.er1
14568 ac_status=$?
14569 grep -v '^ *+' conftest.er1 >conftest.err
14570 rm -f conftest.er1
14571 cat conftest.err >&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); } && {
14574 test -z "$ac_c_werror_flag" ||
14575 test ! -s conftest.err
14576 } && test -s conftest$ac_exeext &&
14577 $as_test_x conftest$ac_exeext; then
14578 ac_cv_lib_gpm_Gpm_Open=yes
14579 else
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 ac_cv_lib_gpm_Gpm_Open=no
14586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14587 conftest$ac_exeext conftest.$ac_ext
14588 LIBS=$ac_check_lib_save_LIBS
14590 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14591 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14592 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14593 HAVE_GPM=yes
14601 if test "${HAVE_GPM}" = "yes"; then
14603 cat >>confdefs.h <<\_ACEOF
14604 #define HAVE_GPM 1
14605 _ACEOF
14609 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14610 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14611 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14612 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14616 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14617 else
14618 # Is the header compilable?
14619 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14620 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14621 cat >conftest.$ac_ext <<_ACEOF
14622 /* confdefs.h. */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */
14627 $ac_includes_default
14628 #include <malloc/malloc.h>
14629 _ACEOF
14630 rm -f conftest.$ac_objext
14631 if { (ac_try="$ac_compile"
14632 case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14635 esac
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_compile") 2>conftest.er1
14638 ac_status=$?
14639 grep -v '^ *+' conftest.er1 >conftest.err
14640 rm -f conftest.er1
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } && {
14644 test -z "$ac_c_werror_flag" ||
14645 test ! -s conftest.err
14646 } && test -s conftest.$ac_objext; then
14647 ac_header_compiler=yes
14648 else
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14652 ac_header_compiler=no
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657 echo "${ECHO_T}$ac_header_compiler" >&6; }
14659 # Is the header present?
14660 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14661 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14662 cat >conftest.$ac_ext <<_ACEOF
14663 /* confdefs.h. */
14664 _ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <malloc/malloc.h>
14669 _ACEOF
14670 if { (ac_try="$ac_cpp conftest.$ac_ext"
14671 case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14674 esac
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14677 ac_status=$?
14678 grep -v '^ *+' conftest.er1 >conftest.err
14679 rm -f conftest.er1
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } >/dev/null && {
14683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14684 test ! -s conftest.err
14685 }; then
14686 ac_header_preproc=yes
14687 else
14688 echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14691 ac_header_preproc=no
14694 rm -f conftest.err conftest.$ac_ext
14695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14696 echo "${ECHO_T}$ac_header_preproc" >&6; }
14698 # So? What about this header?
14699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14700 yes:no: )
14701 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14702 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14703 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14704 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14705 ac_header_preproc=yes
14707 no:yes:* )
14708 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14709 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14711 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14713 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14715 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14717 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14719 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14722 esac
14723 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14724 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14725 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14726 echo $ECHO_N "(cached) $ECHO_C" >&6
14727 else
14728 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14730 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14731 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14734 if test $ac_cv_header_malloc_malloc_h = yes; then
14736 cat >>confdefs.h <<\_ACEOF
14737 #define HAVE_MALLOC_MALLOC_H 1
14738 _ACEOF
14744 ### Use Mac OS X Carbon API to implement GUI.
14745 if test "${HAVE_CARBON}" = "yes"; then
14747 cat >>confdefs.h <<\_ACEOF
14748 #define HAVE_CARBON 1
14749 _ACEOF
14751 ## Specify the install directory
14752 carbon_appdir=
14753 if test "${carbon_appdir_x}" != ""; then
14754 case ${carbon_appdir_x} in
14755 y | ye | yes) carbon_appdir=/Applications ;;
14756 * ) carbon_appdir=${carbon_appdir_x} ;;
14757 esac
14759 # We also have mouse menus.
14760 HAVE_MENUS=yes
14763 ### Use session management (-lSM -lICE) if available
14764 HAVE_X_SM=no
14765 if test "${HAVE_X11}" = "yes"; then
14766 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14767 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14768 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14769 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14773 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14774 else
14775 # Is the header compilable?
14776 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14777 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14778 cat >conftest.$ac_ext <<_ACEOF
14779 /* confdefs.h. */
14780 _ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 $ac_includes_default
14785 #include <X11/SM/SMlib.h>
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14792 esac
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_compile") 2>conftest.er1
14795 ac_status=$?
14796 grep -v '^ *+' conftest.er1 >conftest.err
14797 rm -f conftest.er1
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } && {
14801 test -z "$ac_c_werror_flag" ||
14802 test ! -s conftest.err
14803 } && test -s conftest.$ac_objext; then
14804 ac_header_compiler=yes
14805 else
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 ac_header_compiler=no
14812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14814 echo "${ECHO_T}$ac_header_compiler" >&6; }
14816 # Is the header present?
14817 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14818 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14819 cat >conftest.$ac_ext <<_ACEOF
14820 /* confdefs.h. */
14821 _ACEOF
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 #include <X11/SM/SMlib.h>
14826 _ACEOF
14827 if { (ac_try="$ac_cpp conftest.$ac_ext"
14828 case "(($ac_try" in
14829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830 *) ac_try_echo=$ac_try;;
14831 esac
14832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14834 ac_status=$?
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } >/dev/null && {
14840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14841 test ! -s conftest.err
14842 }; then
14843 ac_header_preproc=yes
14844 else
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14848 ac_header_preproc=no
14851 rm -f conftest.err conftest.$ac_ext
14852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14853 echo "${ECHO_T}$ac_header_preproc" >&6; }
14855 # So? What about this header?
14856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14857 yes:no: )
14858 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14859 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14860 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14861 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14862 ac_header_preproc=yes
14864 no:yes:* )
14865 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14866 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14867 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14868 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14870 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14872 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14874 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14876 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14879 esac
14880 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14881 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14882 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14884 else
14885 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14887 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14888 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14891 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14892 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14893 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14894 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14895 echo $ECHO_N "(cached) $ECHO_C" >&6
14896 else
14897 ac_check_lib_save_LIBS=$LIBS
14898 LIBS="-lSM -lICE $LIBS"
14899 cat >conftest.$ac_ext <<_ACEOF
14900 /* confdefs.h. */
14901 _ACEOF
14902 cat confdefs.h >>conftest.$ac_ext
14903 cat >>conftest.$ac_ext <<_ACEOF
14904 /* end confdefs.h. */
14906 /* Override any GCC internal prototype to avoid an error.
14907 Use char because int might match the return type of a GCC
14908 builtin and then its argument prototype would still apply. */
14909 #ifdef __cplusplus
14910 extern "C"
14911 #endif
14912 char SmcOpenConnection ();
14914 main ()
14916 return SmcOpenConnection ();
14918 return 0;
14920 _ACEOF
14921 rm -f conftest.$ac_objext conftest$ac_exeext
14922 if { (ac_try="$ac_link"
14923 case "(($ac_try" in
14924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 *) ac_try_echo=$ac_try;;
14926 esac
14927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 (eval "$ac_link") 2>conftest.er1
14929 ac_status=$?
14930 grep -v '^ *+' conftest.er1 >conftest.err
14931 rm -f conftest.er1
14932 cat conftest.err >&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } && {
14935 test -z "$ac_c_werror_flag" ||
14936 test ! -s conftest.err
14937 } && test -s conftest$ac_exeext &&
14938 $as_test_x conftest$ac_exeext; then
14939 ac_cv_lib_SM_SmcOpenConnection=yes
14940 else
14941 echo "$as_me: failed program was:" >&5
14942 sed 's/^/| /' conftest.$ac_ext >&5
14944 ac_cv_lib_SM_SmcOpenConnection=no
14947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14948 conftest$ac_exeext conftest.$ac_ext
14949 LIBS=$ac_check_lib_save_LIBS
14951 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14952 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14953 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14954 HAVE_X_SM=yes
14961 if test "${HAVE_X_SM}" = "yes"; then
14963 cat >>confdefs.h <<\_ACEOF
14964 #define HAVE_X_SM 1
14965 _ACEOF
14967 case "$LIBS" in
14968 *-lSM*) ;;
14969 *) LIBS="-lSM -lICE $LIBS" ;;
14970 esac
14974 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14975 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14976 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14977 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14978 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 else
14980 cat >conftest.$ac_ext <<_ACEOF
14981 /* confdefs.h. */
14982 _ACEOF
14983 cat confdefs.h >>conftest.$ac_ext
14984 cat >>conftest.$ac_ext <<_ACEOF
14985 /* end confdefs.h. */
14986 #include <netdb.h>
14988 main ()
14990 return h_errno;
14992 return 0;
14994 _ACEOF
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (ac_try="$ac_link"
14997 case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_link") 2>conftest.er1
15003 ac_status=$?
15004 grep -v '^ *+' conftest.er1 >conftest.err
15005 rm -f conftest.er1
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008 (exit $ac_status); } && {
15009 test -z "$ac_c_werror_flag" ||
15010 test ! -s conftest.err
15011 } && test -s conftest$ac_exeext &&
15012 $as_test_x conftest$ac_exeext; then
15013 emacs_cv_netdb_declares_h_errno=yes
15014 else
15015 echo "$as_me: failed program was:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15018 emacs_cv_netdb_declares_h_errno=no
15021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15022 conftest$ac_exeext conftest.$ac_ext
15024 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15025 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15026 if test $emacs_cv_netdb_declares_h_errno = yes; then
15028 cat >>confdefs.h <<\_ACEOF
15029 #define HAVE_H_ERRNO 1
15030 _ACEOF
15034 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15035 # for constant arguments. Useless!
15036 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15037 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15038 if test "${ac_cv_working_alloca_h+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 else
15041 cat >conftest.$ac_ext <<_ACEOF
15042 /* confdefs.h. */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 #include <alloca.h>
15049 main ()
15051 char *p = (char *) alloca (2 * sizeof (int));
15052 if (p) return 0;
15054 return 0;
15056 _ACEOF
15057 rm -f conftest.$ac_objext conftest$ac_exeext
15058 if { (ac_try="$ac_link"
15059 case "(($ac_try" in
15060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15061 *) ac_try_echo=$ac_try;;
15062 esac
15063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15064 (eval "$ac_link") 2>conftest.er1
15065 ac_status=$?
15066 grep -v '^ *+' conftest.er1 >conftest.err
15067 rm -f conftest.er1
15068 cat conftest.err >&5
15069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15070 (exit $ac_status); } && {
15071 test -z "$ac_c_werror_flag" ||
15072 test ! -s conftest.err
15073 } && test -s conftest$ac_exeext &&
15074 $as_test_x conftest$ac_exeext; then
15075 ac_cv_working_alloca_h=yes
15076 else
15077 echo "$as_me: failed program was:" >&5
15078 sed 's/^/| /' conftest.$ac_ext >&5
15080 ac_cv_working_alloca_h=no
15083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15084 conftest$ac_exeext conftest.$ac_ext
15086 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15087 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15088 if test $ac_cv_working_alloca_h = yes; then
15090 cat >>confdefs.h <<\_ACEOF
15091 #define HAVE_ALLOCA_H 1
15092 _ACEOF
15096 { echo "$as_me:$LINENO: checking for alloca" >&5
15097 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15098 if test "${ac_cv_func_alloca_works+set}" = set; then
15099 echo $ECHO_N "(cached) $ECHO_C" >&6
15100 else
15101 cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h. */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 #ifdef __GNUC__
15108 # define alloca __builtin_alloca
15109 #else
15110 # ifdef _MSC_VER
15111 # include <malloc.h>
15112 # define alloca _alloca
15113 # else
15114 # ifdef HAVE_ALLOCA_H
15115 # include <alloca.h>
15116 # else
15117 # ifdef _AIX
15118 #pragma alloca
15119 # else
15120 # ifndef alloca /* predefined by HP cc +Olibcalls */
15121 char *alloca ();
15122 # endif
15123 # endif
15124 # endif
15125 # endif
15126 #endif
15129 main ()
15131 char *p = (char *) alloca (1);
15132 if (p) return 0;
15134 return 0;
15136 _ACEOF
15137 rm -f conftest.$ac_objext conftest$ac_exeext
15138 if { (ac_try="$ac_link"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15142 esac
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_link") 2>conftest.er1
15145 ac_status=$?
15146 grep -v '^ *+' conftest.er1 >conftest.err
15147 rm -f conftest.er1
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } && {
15151 test -z "$ac_c_werror_flag" ||
15152 test ! -s conftest.err
15153 } && test -s conftest$ac_exeext &&
15154 $as_test_x conftest$ac_exeext; then
15155 ac_cv_func_alloca_works=yes
15156 else
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 ac_cv_func_alloca_works=no
15163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15164 conftest$ac_exeext conftest.$ac_ext
15166 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15167 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15169 if test $ac_cv_func_alloca_works = yes; then
15171 cat >>confdefs.h <<\_ACEOF
15172 #define HAVE_ALLOCA 1
15173 _ACEOF
15175 else
15176 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15177 # that cause trouble. Some versions do not even contain alloca or
15178 # contain a buggy version. If you still want to use their alloca,
15179 # use ar to extract alloca.o from them instead of compiling alloca.c.
15181 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15183 cat >>confdefs.h <<\_ACEOF
15184 #define C_ALLOCA 1
15185 _ACEOF
15188 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15189 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15190 if test "${ac_cv_os_cray+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192 else
15193 cat >conftest.$ac_ext <<_ACEOF
15194 /* confdefs.h. */
15195 _ACEOF
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15199 #if defined CRAY && ! defined CRAY2
15200 webecray
15201 #else
15202 wenotbecray
15203 #endif
15205 _ACEOF
15206 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15207 $EGREP "webecray" >/dev/null 2>&1; then
15208 ac_cv_os_cray=yes
15209 else
15210 ac_cv_os_cray=no
15212 rm -f conftest*
15215 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15216 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15217 if test $ac_cv_os_cray = yes; then
15218 for ac_func in _getb67 GETB67 getb67; do
15219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15224 else
15225 cat >conftest.$ac_ext <<_ACEOF
15226 /* confdefs.h. */
15227 _ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15233 #define $ac_func innocuous_$ac_func
15235 /* System header to define __stub macros and hopefully few prototypes,
15236 which can conflict with char $ac_func (); below.
15237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15238 <limits.h> exists even on freestanding compilers. */
15240 #ifdef __STDC__
15241 # include <limits.h>
15242 #else
15243 # include <assert.h>
15244 #endif
15246 #undef $ac_func
15248 /* Override any GCC internal prototype to avoid an error.
15249 Use char because int might match the return type of a GCC
15250 builtin and then its argument prototype would still apply. */
15251 #ifdef __cplusplus
15252 extern "C"
15253 #endif
15254 char $ac_func ();
15255 /* The GNU C library defines this for functions which it implements
15256 to always fail with ENOSYS. Some functions are actually named
15257 something starting with __ and the normal name is an alias. */
15258 #if defined __stub_$ac_func || defined __stub___$ac_func
15259 choke me
15260 #endif
15263 main ()
15265 return $ac_func ();
15267 return 0;
15269 _ACEOF
15270 rm -f conftest.$ac_objext conftest$ac_exeext
15271 if { (ac_try="$ac_link"
15272 case "(($ac_try" in
15273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15275 esac
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_link") 2>conftest.er1
15278 ac_status=$?
15279 grep -v '^ *+' conftest.er1 >conftest.err
15280 rm -f conftest.er1
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } && {
15284 test -z "$ac_c_werror_flag" ||
15285 test ! -s conftest.err
15286 } && test -s conftest$ac_exeext &&
15287 $as_test_x conftest$ac_exeext; then
15288 eval "$as_ac_var=yes"
15289 else
15290 echo "$as_me: failed program was:" >&5
15291 sed 's/^/| /' conftest.$ac_ext >&5
15293 eval "$as_ac_var=no"
15296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15297 conftest$ac_exeext conftest.$ac_ext
15299 ac_res=`eval echo '${'$as_ac_var'}'`
15300 { echo "$as_me:$LINENO: result: $ac_res" >&5
15301 echo "${ECHO_T}$ac_res" >&6; }
15302 if test `eval echo '${'$as_ac_var'}'` = yes; then
15304 cat >>confdefs.h <<_ACEOF
15305 #define CRAY_STACKSEG_END $ac_func
15306 _ACEOF
15308 break
15311 done
15314 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15315 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15316 if test "${ac_cv_c_stack_direction+set}" = set; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15318 else
15319 if test "$cross_compiling" = yes; then
15320 ac_cv_c_stack_direction=0
15321 else
15322 cat >conftest.$ac_ext <<_ACEOF
15323 /* confdefs.h. */
15324 _ACEOF
15325 cat confdefs.h >>conftest.$ac_ext
15326 cat >>conftest.$ac_ext <<_ACEOF
15327 /* end confdefs.h. */
15328 $ac_includes_default
15330 find_stack_direction ()
15332 static char *addr = 0;
15333 auto char dummy;
15334 if (addr == 0)
15336 addr = &dummy;
15337 return find_stack_direction ();
15339 else
15340 return (&dummy > addr) ? 1 : -1;
15344 main ()
15346 return find_stack_direction () < 0;
15348 _ACEOF
15349 rm -f conftest$ac_exeext
15350 if { (ac_try="$ac_link"
15351 case "(($ac_try" in
15352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353 *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356 (eval "$ac_link") 2>&5
15357 ac_status=$?
15358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15360 { (case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_try") 2>&5
15366 ac_status=$?
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); }; }; then
15369 ac_cv_c_stack_direction=1
15370 else
15371 echo "$as_me: program exited with status $ac_status" >&5
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15375 ( exit $ac_status )
15376 ac_cv_c_stack_direction=-1
15378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15383 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15384 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15386 cat >>confdefs.h <<_ACEOF
15387 #define STACK_DIRECTION $ac_cv_c_stack_direction
15388 _ACEOF
15394 if test x"$ac_cv_func_alloca_works" != xyes; then
15395 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15396 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15397 { (exit 1); exit 1; }; }
15400 # fmod, logb, and frexp are found in -lm on most systems.
15401 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15403 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15404 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15405 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 else
15408 ac_check_lib_save_LIBS=$LIBS
15409 LIBS="-lm $LIBS"
15410 cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h. */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15417 /* Override any GCC internal prototype to avoid an error.
15418 Use char because int might match the return type of a GCC
15419 builtin and then its argument prototype would still apply. */
15420 #ifdef __cplusplus
15421 extern "C"
15422 #endif
15423 char sqrt ();
15425 main ()
15427 return sqrt ();
15429 return 0;
15431 _ACEOF
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (ac_try="$ac_link"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_link") 2>conftest.er1
15440 ac_status=$?
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } && {
15446 test -z "$ac_c_werror_flag" ||
15447 test ! -s conftest.err
15448 } && test -s conftest$ac_exeext &&
15449 $as_test_x conftest$ac_exeext; then
15450 ac_cv_lib_m_sqrt=yes
15451 else
15452 echo "$as_me: failed program was:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 ac_cv_lib_m_sqrt=no
15458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15459 conftest$ac_exeext conftest.$ac_ext
15460 LIBS=$ac_check_lib_save_LIBS
15462 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15463 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15464 if test $ac_cv_lib_m_sqrt = yes; then
15465 cat >>confdefs.h <<_ACEOF
15466 #define HAVE_LIBM 1
15467 _ACEOF
15469 LIBS="-lm $LIBS"
15474 # Check for mail-locking functions in a "mail" library. Probably this should
15475 # have the same check as for liblockfile below.
15477 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15478 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15479 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15480 echo $ECHO_N "(cached) $ECHO_C" >&6
15481 else
15482 ac_check_lib_save_LIBS=$LIBS
15483 LIBS="-lmail $LIBS"
15484 cat >conftest.$ac_ext <<_ACEOF
15485 /* confdefs.h. */
15486 _ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h. */
15491 /* Override any GCC internal prototype to avoid an error.
15492 Use char because int might match the return type of a GCC
15493 builtin and then its argument prototype would still apply. */
15494 #ifdef __cplusplus
15495 extern "C"
15496 #endif
15497 char maillock ();
15499 main ()
15501 return maillock ();
15503 return 0;
15505 _ACEOF
15506 rm -f conftest.$ac_objext conftest$ac_exeext
15507 if { (ac_try="$ac_link"
15508 case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15511 esac
15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_link") 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } && {
15520 test -z "$ac_c_werror_flag" ||
15521 test ! -s conftest.err
15522 } && test -s conftest$ac_exeext &&
15523 $as_test_x conftest$ac_exeext; then
15524 ac_cv_lib_mail_maillock=yes
15525 else
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 ac_cv_lib_mail_maillock=no
15532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15533 conftest$ac_exeext conftest.$ac_ext
15534 LIBS=$ac_check_lib_save_LIBS
15536 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15537 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15538 if test $ac_cv_lib_mail_maillock = yes; then
15539 cat >>confdefs.h <<_ACEOF
15540 #define HAVE_LIBMAIL 1
15541 _ACEOF
15543 LIBS="-lmail $LIBS"
15548 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15549 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15550 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15551 echo $ECHO_N "(cached) $ECHO_C" >&6
15552 else
15553 ac_check_lib_save_LIBS=$LIBS
15554 LIBS="-llockfile $LIBS"
15555 cat >conftest.$ac_ext <<_ACEOF
15556 /* confdefs.h. */
15557 _ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15562 /* Override any GCC internal prototype to avoid an error.
15563 Use char because int might match the return type of a GCC
15564 builtin and then its argument prototype would still apply. */
15565 #ifdef __cplusplus
15566 extern "C"
15567 #endif
15568 char maillock ();
15570 main ()
15572 return maillock ();
15574 return 0;
15576 _ACEOF
15577 rm -f conftest.$ac_objext conftest$ac_exeext
15578 if { (ac_try="$ac_link"
15579 case "(($ac_try" in
15580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581 *) ac_try_echo=$ac_try;;
15582 esac
15583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584 (eval "$ac_link") 2>conftest.er1
15585 ac_status=$?
15586 grep -v '^ *+' conftest.er1 >conftest.err
15587 rm -f conftest.er1
15588 cat conftest.err >&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } && {
15591 test -z "$ac_c_werror_flag" ||
15592 test ! -s conftest.err
15593 } && test -s conftest$ac_exeext &&
15594 $as_test_x conftest$ac_exeext; then
15595 ac_cv_lib_lockfile_maillock=yes
15596 else
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_cv_lib_lockfile_maillock=no
15603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15604 conftest$ac_exeext conftest.$ac_ext
15605 LIBS=$ac_check_lib_save_LIBS
15607 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15608 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15609 if test $ac_cv_lib_lockfile_maillock = yes; then
15610 cat >>confdefs.h <<_ACEOF
15611 #define HAVE_LIBLOCKFILE 1
15612 _ACEOF
15614 LIBS="-llockfile $LIBS"
15618 # If we have the shared liblockfile, assume we must use it for mail
15619 # locking (e.g. Debian). If we couldn't link against liblockfile
15620 # (no liblockfile.a installed), ensure that we don't need to.
15621 if test "$ac_cv_lib_lockfile_maillock" = no; then
15622 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15623 set dummy liblockfile.so; ac_word=$2
15624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15626 if test "${ac_cv_prog_liblockfile+set}" = set; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15628 else
15629 if test -n "$liblockfile"; then
15630 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15631 else
15632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15633 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15634 for as_dir in $as_dummy
15636 IFS=$as_save_IFS
15637 test -z "$as_dir" && as_dir=.
15638 for ac_exec_ext in '' $ac_executable_extensions; do
15639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15640 ac_cv_prog_liblockfile="yes"
15641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15642 break 2
15644 done
15645 done
15646 IFS=$as_save_IFS
15648 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15651 liblockfile=$ac_cv_prog_liblockfile
15652 if test -n "$liblockfile"; then
15653 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15654 echo "${ECHO_T}$liblockfile" >&6; }
15655 else
15656 { echo "$as_me:$LINENO: result: no" >&5
15657 echo "${ECHO_T}no" >&6; }
15661 if test $ac_cv_prog_liblockfile = yes; then
15662 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15663 This probably means that movemail could lose mail.
15664 There may be a \`development' package to install containing liblockfile." >&5
15665 echo "$as_me: error: Shared liblockfile found but can't link against it.
15666 This probably means that movemail could lose mail.
15667 There may be a \`development' package to install containing liblockfile." >&2;}
15668 { (exit 1); exit 1; }; }
15669 else :
15673 for ac_func in touchlock
15675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15676 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15678 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15679 echo $ECHO_N "(cached) $ECHO_C" >&6
15680 else
15681 cat >conftest.$ac_ext <<_ACEOF
15682 /* confdefs.h. */
15683 _ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15687 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15689 #define $ac_func innocuous_$ac_func
15691 /* System header to define __stub macros and hopefully few prototypes,
15692 which can conflict with char $ac_func (); below.
15693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15694 <limits.h> exists even on freestanding compilers. */
15696 #ifdef __STDC__
15697 # include <limits.h>
15698 #else
15699 # include <assert.h>
15700 #endif
15702 #undef $ac_func
15704 /* Override any GCC internal prototype to avoid an error.
15705 Use char because int might match the return type of a GCC
15706 builtin and then its argument prototype would still apply. */
15707 #ifdef __cplusplus
15708 extern "C"
15709 #endif
15710 char $ac_func ();
15711 /* The GNU C library defines this for functions which it implements
15712 to always fail with ENOSYS. Some functions are actually named
15713 something starting with __ and the normal name is an alias. */
15714 #if defined __stub_$ac_func || defined __stub___$ac_func
15715 choke me
15716 #endif
15719 main ()
15721 return $ac_func ();
15723 return 0;
15725 _ACEOF
15726 rm -f conftest.$ac_objext conftest$ac_exeext
15727 if { (ac_try="$ac_link"
15728 case "(($ac_try" in
15729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15730 *) ac_try_echo=$ac_try;;
15731 esac
15732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15733 (eval "$ac_link") 2>conftest.er1
15734 ac_status=$?
15735 grep -v '^ *+' conftest.er1 >conftest.err
15736 rm -f conftest.er1
15737 cat conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); } && {
15740 test -z "$ac_c_werror_flag" ||
15741 test ! -s conftest.err
15742 } && test -s conftest$ac_exeext &&
15743 $as_test_x conftest$ac_exeext; then
15744 eval "$as_ac_var=yes"
15745 else
15746 echo "$as_me: failed program was:" >&5
15747 sed 's/^/| /' conftest.$ac_ext >&5
15749 eval "$as_ac_var=no"
15752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15753 conftest$ac_exeext conftest.$ac_ext
15755 ac_res=`eval echo '${'$as_ac_var'}'`
15756 { echo "$as_me:$LINENO: result: $ac_res" >&5
15757 echo "${ECHO_T}$ac_res" >&6; }
15758 if test `eval echo '${'$as_ac_var'}'` = yes; then
15759 cat >>confdefs.h <<_ACEOF
15760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15761 _ACEOF
15764 done
15767 for ac_header in maillock.h
15769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15774 echo $ECHO_N "(cached) $ECHO_C" >&6
15776 ac_res=`eval echo '${'$as_ac_Header'}'`
15777 { echo "$as_me:$LINENO: result: $ac_res" >&5
15778 echo "${ECHO_T}$ac_res" >&6; }
15779 else
15780 # Is the header compilable?
15781 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15782 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15783 cat >conftest.$ac_ext <<_ACEOF
15784 /* confdefs.h. */
15785 _ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 $ac_includes_default
15790 #include <$ac_header>
15791 _ACEOF
15792 rm -f conftest.$ac_objext
15793 if { (ac_try="$ac_compile"
15794 case "(($ac_try" in
15795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15796 *) ac_try_echo=$ac_try;;
15797 esac
15798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15799 (eval "$ac_compile") 2>conftest.er1
15800 ac_status=$?
15801 grep -v '^ *+' conftest.er1 >conftest.err
15802 rm -f conftest.er1
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } && {
15806 test -z "$ac_c_werror_flag" ||
15807 test ! -s conftest.err
15808 } && test -s conftest.$ac_objext; then
15809 ac_header_compiler=yes
15810 else
15811 echo "$as_me: failed program was:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ac_header_compiler=no
15817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15819 echo "${ECHO_T}$ac_header_compiler" >&6; }
15821 # Is the header present?
15822 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15823 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15824 cat >conftest.$ac_ext <<_ACEOF
15825 /* confdefs.h. */
15826 _ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h. */
15830 #include <$ac_header>
15831 _ACEOF
15832 if { (ac_try="$ac_cpp conftest.$ac_ext"
15833 case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15836 esac
15837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } >/dev/null && {
15845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15846 test ! -s conftest.err
15847 }; then
15848 ac_header_preproc=yes
15849 else
15850 echo "$as_me: failed program was:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15853 ac_header_preproc=no
15856 rm -f conftest.err conftest.$ac_ext
15857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15858 echo "${ECHO_T}$ac_header_preproc" >&6; }
15860 # So? What about this header?
15861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15862 yes:no: )
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15867 ac_header_preproc=yes
15869 no:yes:* )
15870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15873 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15877 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15884 esac
15885 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15888 echo $ECHO_N "(cached) $ECHO_C" >&6
15889 else
15890 eval "$as_ac_Header=\$ac_header_preproc"
15892 ac_res=`eval echo '${'$as_ac_Header'}'`
15893 { echo "$as_me:$LINENO: result: $ac_res" >&5
15894 echo "${ECHO_T}$ac_res" >&6; }
15897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15898 cat >>confdefs.h <<_ACEOF
15899 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15900 _ACEOF
15904 done
15975 for ac_func in gethostname getdomainname dup2 \
15976 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15977 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15978 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15979 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15980 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15981 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15982 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15983 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15989 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 else
15991 cat >conftest.$ac_ext <<_ACEOF
15992 /* confdefs.h. */
15993 _ACEOF
15994 cat confdefs.h >>conftest.$ac_ext
15995 cat >>conftest.$ac_ext <<_ACEOF
15996 /* end confdefs.h. */
15997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15999 #define $ac_func innocuous_$ac_func
16001 /* System header to define __stub macros and hopefully few prototypes,
16002 which can conflict with char $ac_func (); below.
16003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16004 <limits.h> exists even on freestanding compilers. */
16006 #ifdef __STDC__
16007 # include <limits.h>
16008 #else
16009 # include <assert.h>
16010 #endif
16012 #undef $ac_func
16014 /* Override any GCC internal prototype to avoid an error.
16015 Use char because int might match the return type of a GCC
16016 builtin and then its argument prototype would still apply. */
16017 #ifdef __cplusplus
16018 extern "C"
16019 #endif
16020 char $ac_func ();
16021 /* The GNU C library defines this for functions which it implements
16022 to always fail with ENOSYS. Some functions are actually named
16023 something starting with __ and the normal name is an alias. */
16024 #if defined __stub_$ac_func || defined __stub___$ac_func
16025 choke me
16026 #endif
16029 main ()
16031 return $ac_func ();
16033 return 0;
16035 _ACEOF
16036 rm -f conftest.$ac_objext conftest$ac_exeext
16037 if { (ac_try="$ac_link"
16038 case "(($ac_try" in
16039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16041 esac
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_link") 2>conftest.er1
16044 ac_status=$?
16045 grep -v '^ *+' conftest.er1 >conftest.err
16046 rm -f conftest.er1
16047 cat conftest.err >&5
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } && {
16050 test -z "$ac_c_werror_flag" ||
16051 test ! -s conftest.err
16052 } && test -s conftest$ac_exeext &&
16053 $as_test_x conftest$ac_exeext; then
16054 eval "$as_ac_var=yes"
16055 else
16056 echo "$as_me: failed program was:" >&5
16057 sed 's/^/| /' conftest.$ac_ext >&5
16059 eval "$as_ac_var=no"
16062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16063 conftest$ac_exeext conftest.$ac_ext
16065 ac_res=`eval echo '${'$as_ac_var'}'`
16066 { echo "$as_me:$LINENO: result: $ac_res" >&5
16067 echo "${ECHO_T}$ac_res" >&6; }
16068 if test `eval echo '${'$as_ac_var'}'` = yes; then
16069 cat >>confdefs.h <<_ACEOF
16070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16071 _ACEOF
16074 done
16078 for ac_header in sys/un.h
16080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16085 echo $ECHO_N "(cached) $ECHO_C" >&6
16087 ac_res=`eval echo '${'$as_ac_Header'}'`
16088 { echo "$as_me:$LINENO: result: $ac_res" >&5
16089 echo "${ECHO_T}$ac_res" >&6; }
16090 else
16091 # Is the header compilable?
16092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h. */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100 $ac_includes_default
16101 #include <$ac_header>
16102 _ACEOF
16103 rm -f conftest.$ac_objext
16104 if { (ac_try="$ac_compile"
16105 case "(($ac_try" in
16106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16107 *) ac_try_echo=$ac_try;;
16108 esac
16109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16110 (eval "$ac_compile") 2>conftest.er1
16111 ac_status=$?
16112 grep -v '^ *+' conftest.er1 >conftest.err
16113 rm -f conftest.er1
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } && {
16117 test -z "$ac_c_werror_flag" ||
16118 test ! -s conftest.err
16119 } && test -s conftest.$ac_objext; then
16120 ac_header_compiler=yes
16121 else
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 ac_header_compiler=no
16128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16130 echo "${ECHO_T}$ac_header_compiler" >&6; }
16132 # Is the header present?
16133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16135 cat >conftest.$ac_ext <<_ACEOF
16136 /* confdefs.h. */
16137 _ACEOF
16138 cat confdefs.h >>conftest.$ac_ext
16139 cat >>conftest.$ac_ext <<_ACEOF
16140 /* end confdefs.h. */
16141 #include <$ac_header>
16142 _ACEOF
16143 if { (ac_try="$ac_cpp conftest.$ac_ext"
16144 case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16147 esac
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16150 ac_status=$?
16151 grep -v '^ *+' conftest.er1 >conftest.err
16152 rm -f conftest.er1
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } >/dev/null && {
16156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16157 test ! -s conftest.err
16158 }; then
16159 ac_header_preproc=yes
16160 else
16161 echo "$as_me: failed program was:" >&5
16162 sed 's/^/| /' conftest.$ac_ext >&5
16164 ac_header_preproc=no
16167 rm -f conftest.err conftest.$ac_ext
16168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16169 echo "${ECHO_T}$ac_header_preproc" >&6; }
16171 # So? What about this header?
16172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16173 yes:no: )
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16178 ac_header_preproc=yes
16180 no:yes:* )
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16195 esac
16196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16200 else
16201 eval "$as_ac_Header=\$ac_header_preproc"
16203 ac_res=`eval echo '${'$as_ac_Header'}'`
16204 { echo "$as_me:$LINENO: result: $ac_res" >&5
16205 echo "${ECHO_T}$ac_res" >&6; }
16208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16209 cat >>confdefs.h <<_ACEOF
16210 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16211 _ACEOF
16215 done
16222 for ac_header in $ac_header_list
16224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16229 echo $ECHO_N "(cached) $ECHO_C" >&6
16231 ac_res=`eval echo '${'$as_ac_Header'}'`
16232 { echo "$as_me:$LINENO: result: $ac_res" >&5
16233 echo "${ECHO_T}$ac_res" >&6; }
16234 else
16235 # Is the header compilable?
16236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16238 cat >conftest.$ac_ext <<_ACEOF
16239 /* confdefs.h. */
16240 _ACEOF
16241 cat confdefs.h >>conftest.$ac_ext
16242 cat >>conftest.$ac_ext <<_ACEOF
16243 /* end confdefs.h. */
16244 $ac_includes_default
16245 #include <$ac_header>
16246 _ACEOF
16247 rm -f conftest.$ac_objext
16248 if { (ac_try="$ac_compile"
16249 case "(($ac_try" in
16250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16251 *) ac_try_echo=$ac_try;;
16252 esac
16253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16254 (eval "$ac_compile") 2>conftest.er1
16255 ac_status=$?
16256 grep -v '^ *+' conftest.er1 >conftest.err
16257 rm -f conftest.er1
16258 cat conftest.err >&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } && {
16261 test -z "$ac_c_werror_flag" ||
16262 test ! -s conftest.err
16263 } && test -s conftest.$ac_objext; then
16264 ac_header_compiler=yes
16265 else
16266 echo "$as_me: failed program was:" >&5
16267 sed 's/^/| /' conftest.$ac_ext >&5
16269 ac_header_compiler=no
16272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16274 echo "${ECHO_T}$ac_header_compiler" >&6; }
16276 # Is the header present?
16277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16279 cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h. */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h. */
16285 #include <$ac_header>
16286 _ACEOF
16287 if { (ac_try="$ac_cpp conftest.$ac_ext"
16288 case "(($ac_try" in
16289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16290 *) ac_try_echo=$ac_try;;
16291 esac
16292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16294 ac_status=$?
16295 grep -v '^ *+' conftest.er1 >conftest.err
16296 rm -f conftest.er1
16297 cat conftest.err >&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } >/dev/null && {
16300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16301 test ! -s conftest.err
16302 }; then
16303 ac_header_preproc=yes
16304 else
16305 echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.$ac_ext >&5
16308 ac_header_preproc=no
16311 rm -f conftest.err conftest.$ac_ext
16312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16313 echo "${ECHO_T}$ac_header_preproc" >&6; }
16315 # So? What about this header?
16316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16317 yes:no: )
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16322 ac_header_preproc=yes
16324 no:yes:* )
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16339 esac
16340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16343 echo $ECHO_N "(cached) $ECHO_C" >&6
16344 else
16345 eval "$as_ac_Header=\$ac_header_preproc"
16347 ac_res=`eval echo '${'$as_ac_Header'}'`
16348 { echo "$as_me:$LINENO: result: $ac_res" >&5
16349 echo "${ECHO_T}$ac_res" >&6; }
16352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16353 cat >>confdefs.h <<_ACEOF
16354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16355 _ACEOF
16359 done
16369 for ac_func in $ac_func_list
16371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 else
16377 cat >conftest.$ac_ext <<_ACEOF
16378 /* confdefs.h. */
16379 _ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16385 #define $ac_func innocuous_$ac_func
16387 /* System header to define __stub macros and hopefully few prototypes,
16388 which can conflict with char $ac_func (); below.
16389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16390 <limits.h> exists even on freestanding compilers. */
16392 #ifdef __STDC__
16393 # include <limits.h>
16394 #else
16395 # include <assert.h>
16396 #endif
16398 #undef $ac_func
16400 /* Override any GCC internal prototype to avoid an error.
16401 Use char because int might match the return type of a GCC
16402 builtin and then its argument prototype would still apply. */
16403 #ifdef __cplusplus
16404 extern "C"
16405 #endif
16406 char $ac_func ();
16407 /* The GNU C library defines this for functions which it implements
16408 to always fail with ENOSYS. Some functions are actually named
16409 something starting with __ and the normal name is an alias. */
16410 #if defined __stub_$ac_func || defined __stub___$ac_func
16411 choke me
16412 #endif
16415 main ()
16417 return $ac_func ();
16419 return 0;
16421 _ACEOF
16422 rm -f conftest.$ac_objext conftest$ac_exeext
16423 if { (ac_try="$ac_link"
16424 case "(($ac_try" in
16425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426 *) ac_try_echo=$ac_try;;
16427 esac
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429 (eval "$ac_link") 2>conftest.er1
16430 ac_status=$?
16431 grep -v '^ *+' conftest.er1 >conftest.err
16432 rm -f conftest.er1
16433 cat conftest.err >&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); } && {
16436 test -z "$ac_c_werror_flag" ||
16437 test ! -s conftest.err
16438 } && test -s conftest$ac_exeext &&
16439 $as_test_x conftest$ac_exeext; then
16440 eval "$as_ac_var=yes"
16441 else
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16445 eval "$as_ac_var=no"
16448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16449 conftest$ac_exeext conftest.$ac_ext
16451 ac_res=`eval echo '${'$as_ac_var'}'`
16452 { echo "$as_me:$LINENO: result: $ac_res" >&5
16453 echo "${ECHO_T}$ac_res" >&6; }
16454 if test `eval echo '${'$as_ac_var'}'` = yes; then
16455 cat >>confdefs.h <<_ACEOF
16456 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16457 _ACEOF
16460 done
16478 { echo "$as_me:$LINENO: checking for working mktime" >&5
16479 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16480 if test "${ac_cv_func_working_mktime+set}" = set; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482 else
16483 if test "$cross_compiling" = yes; then
16484 ac_cv_func_working_mktime=no
16485 else
16486 cat >conftest.$ac_ext <<_ACEOF
16487 /* confdefs.h. */
16488 _ACEOF
16489 cat confdefs.h >>conftest.$ac_ext
16490 cat >>conftest.$ac_ext <<_ACEOF
16491 /* end confdefs.h. */
16492 /* Test program from Paul Eggert and Tony Leneis. */
16493 #ifdef TIME_WITH_SYS_TIME
16494 # include <sys/time.h>
16495 # include <time.h>
16496 #else
16497 # ifdef HAVE_SYS_TIME_H
16498 # include <sys/time.h>
16499 # else
16500 # include <time.h>
16501 # endif
16502 #endif
16504 #include <stdlib.h>
16506 #ifdef HAVE_UNISTD_H
16507 # include <unistd.h>
16508 #endif
16510 #ifndef HAVE_ALARM
16511 # define alarm(X) /* empty */
16512 #endif
16514 /* Work around redefinition to rpl_putenv by other config tests. */
16515 #undef putenv
16517 static time_t time_t_max;
16518 static time_t time_t_min;
16520 /* Values we'll use to set the TZ environment variable. */
16521 static char *tz_strings[] = {
16522 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16523 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16525 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16527 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16528 Based on a problem report from Andreas Jaeger. */
16529 static int
16530 spring_forward_gap ()
16532 /* glibc (up to about 1998-10-07) failed this test. */
16533 struct tm tm;
16535 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16536 instead of "TZ=America/Vancouver" in order to detect the bug even
16537 on systems that don't support the Olson extension, or don't have the
16538 full zoneinfo tables installed. */
16539 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16541 tm.tm_year = 98;
16542 tm.tm_mon = 3;
16543 tm.tm_mday = 5;
16544 tm.tm_hour = 2;
16545 tm.tm_min = 0;
16546 tm.tm_sec = 0;
16547 tm.tm_isdst = -1;
16548 return mktime (&tm) != (time_t) -1;
16551 static int
16552 mktime_test1 (now)
16553 time_t now;
16555 struct tm *lt;
16556 return ! (lt = localtime (&now)) || mktime (lt) == now;
16559 static int
16560 mktime_test (now)
16561 time_t now;
16563 return (mktime_test1 (now)
16564 && mktime_test1 ((time_t) (time_t_max - now))
16565 && mktime_test1 ((time_t) (time_t_min + now)));
16568 static int
16569 irix_6_4_bug ()
16571 /* Based on code from Ariel Faigon. */
16572 struct tm tm;
16573 tm.tm_year = 96;
16574 tm.tm_mon = 3;
16575 tm.tm_mday = 0;
16576 tm.tm_hour = 0;
16577 tm.tm_min = 0;
16578 tm.tm_sec = 0;
16579 tm.tm_isdst = -1;
16580 mktime (&tm);
16581 return tm.tm_mon == 2 && tm.tm_mday == 31;
16584 static int
16585 bigtime_test (j)
16586 int j;
16588 struct tm tm;
16589 time_t now;
16590 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16591 now = mktime (&tm);
16592 if (now != (time_t) -1)
16594 struct tm *lt = localtime (&now);
16595 if (! (lt
16596 && lt->tm_year == tm.tm_year
16597 && lt->tm_mon == tm.tm_mon
16598 && lt->tm_mday == tm.tm_mday
16599 && lt->tm_hour == tm.tm_hour
16600 && lt->tm_min == tm.tm_min
16601 && lt->tm_sec == tm.tm_sec
16602 && lt->tm_yday == tm.tm_yday
16603 && lt->tm_wday == tm.tm_wday
16604 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16605 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16606 return 0;
16608 return 1;
16611 static int
16612 year_2050_test ()
16614 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16615 ignoring leap seconds. */
16616 unsigned long int answer = 2527315200UL;
16618 struct tm tm;
16619 time_t t;
16620 tm.tm_year = 2050 - 1900;
16621 tm.tm_mon = 2 - 1;
16622 tm.tm_mday = 1;
16623 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16624 tm.tm_isdst = -1;
16626 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16627 instead of "TZ=America/Vancouver" in order to detect the bug even
16628 on systems that don't support the Olson extension, or don't have the
16629 full zoneinfo tables installed. */
16630 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16632 t = mktime (&tm);
16634 /* Check that the result is either a failure, or close enough
16635 to the correct answer that we can assume the discrepancy is
16636 due to leap seconds. */
16637 return (t == (time_t) -1
16638 || (0 < t && answer - 120 <= t && t <= answer + 120));
16642 main ()
16644 time_t t, delta;
16645 int i, j;
16647 /* This test makes some buggy mktime implementations loop.
16648 Give up after 60 seconds; a mktime slower than that
16649 isn't worth using anyway. */
16650 alarm (60);
16652 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16653 continue;
16654 time_t_max--;
16655 if ((time_t) -1 < 0)
16656 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16657 continue;
16658 delta = time_t_max / 997; /* a suitable prime number */
16659 for (i = 0; i < N_STRINGS; i++)
16661 if (tz_strings[i])
16662 putenv (tz_strings[i]);
16664 for (t = 0; t <= time_t_max - delta; t += delta)
16665 if (! mktime_test (t))
16666 return 1;
16667 if (! (mktime_test ((time_t) 1)
16668 && mktime_test ((time_t) (60 * 60))
16669 && mktime_test ((time_t) (60 * 60 * 24))))
16670 return 1;
16672 for (j = 1; 0 < j; j *= 2)
16673 if (! bigtime_test (j))
16674 return 1;
16675 if (! bigtime_test (j - 1))
16676 return 1;
16678 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16680 _ACEOF
16681 rm -f conftest$ac_exeext
16682 if { (ac_try="$ac_link"
16683 case "(($ac_try" in
16684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16685 *) ac_try_echo=$ac_try;;
16686 esac
16687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16688 (eval "$ac_link") 2>&5
16689 ac_status=$?
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16692 { (case "(($ac_try" in
16693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16694 *) ac_try_echo=$ac_try;;
16695 esac
16696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16697 (eval "$ac_try") 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_cv_func_working_mktime=yes
16702 else
16703 echo "$as_me: program exited with status $ac_status" >&5
16704 echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16707 ( exit $ac_status )
16708 ac_cv_func_working_mktime=no
16710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16715 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16716 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16717 if test $ac_cv_func_working_mktime = no; then
16718 case " $LIBOBJS " in
16719 *" mktime.$ac_objext "* ) ;;
16720 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16722 esac
16726 if test "$ac_cv_func_working_mktime" = no; then
16728 cat >>confdefs.h <<\_ACEOF
16729 #define BROKEN_MKTIME 1
16730 _ACEOF
16734 ac_have_func=no # yes means we've found a way to get the load average.
16736 # Make sure getloadavg.c is where it belongs, at configure-time.
16737 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16738 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16739 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16740 { (exit 1); exit 1; }; }
16742 ac_save_LIBS=$LIBS
16744 # Check for getloadavg, but be sure not to touch the cache variable.
16745 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16746 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16747 if test "${ac_cv_func_getloadavg+set}" = set; then
16748 echo $ECHO_N "(cached) $ECHO_C" >&6
16749 else
16750 cat >conftest.$ac_ext <<_ACEOF
16751 /* confdefs.h. */
16752 _ACEOF
16753 cat confdefs.h >>conftest.$ac_ext
16754 cat >>conftest.$ac_ext <<_ACEOF
16755 /* end confdefs.h. */
16756 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16758 #define getloadavg innocuous_getloadavg
16760 /* System header to define __stub macros and hopefully few prototypes,
16761 which can conflict with char getloadavg (); below.
16762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16763 <limits.h> exists even on freestanding compilers. */
16765 #ifdef __STDC__
16766 # include <limits.h>
16767 #else
16768 # include <assert.h>
16769 #endif
16771 #undef getloadavg
16773 /* Override any GCC internal prototype to avoid an error.
16774 Use char because int might match the return type of a GCC
16775 builtin and then its argument prototype would still apply. */
16776 #ifdef __cplusplus
16777 extern "C"
16778 #endif
16779 char getloadavg ();
16780 /* The GNU C library defines this for functions which it implements
16781 to always fail with ENOSYS. Some functions are actually named
16782 something starting with __ and the normal name is an alias. */
16783 #if defined __stub_getloadavg || defined __stub___getloadavg
16784 choke me
16785 #endif
16788 main ()
16790 return getloadavg ();
16792 return 0;
16794 _ACEOF
16795 rm -f conftest.$ac_objext conftest$ac_exeext
16796 if { (ac_try="$ac_link"
16797 case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800 esac
16801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16802 (eval "$ac_link") 2>conftest.er1
16803 ac_status=$?
16804 grep -v '^ *+' conftest.er1 >conftest.err
16805 rm -f conftest.er1
16806 cat conftest.err >&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); } && {
16809 test -z "$ac_c_werror_flag" ||
16810 test ! -s conftest.err
16811 } && test -s conftest$ac_exeext &&
16812 $as_test_x conftest$ac_exeext; then
16813 ac_cv_func_getloadavg=yes
16814 else
16815 echo "$as_me: failed program was:" >&5
16816 sed 's/^/| /' conftest.$ac_ext >&5
16818 ac_cv_func_getloadavg=no
16821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16822 conftest$ac_exeext conftest.$ac_ext
16824 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16825 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16826 if test $ac_cv_func_getloadavg = yes; then
16827 exit 0
16828 else
16829 exit 1
16831 ) && ac_have_func=yes
16833 # On HPUX9, an unprivileged user can get load averages through this function.
16835 for ac_func in pstat_getdynamic
16837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16841 echo $ECHO_N "(cached) $ECHO_C" >&6
16842 else
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h. */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16851 #define $ac_func innocuous_$ac_func
16853 /* System header to define __stub macros and hopefully few prototypes,
16854 which can conflict with char $ac_func (); below.
16855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16856 <limits.h> exists even on freestanding compilers. */
16858 #ifdef __STDC__
16859 # include <limits.h>
16860 #else
16861 # include <assert.h>
16862 #endif
16864 #undef $ac_func
16866 /* Override any GCC internal prototype to avoid an error.
16867 Use char because int might match the return type of a GCC
16868 builtin and then its argument prototype would still apply. */
16869 #ifdef __cplusplus
16870 extern "C"
16871 #endif
16872 char $ac_func ();
16873 /* The GNU C library defines this for functions which it implements
16874 to always fail with ENOSYS. Some functions are actually named
16875 something starting with __ and the normal name is an alias. */
16876 #if defined __stub_$ac_func || defined __stub___$ac_func
16877 choke me
16878 #endif
16881 main ()
16883 return $ac_func ();
16885 return 0;
16887 _ACEOF
16888 rm -f conftest.$ac_objext conftest$ac_exeext
16889 if { (ac_try="$ac_link"
16890 case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_link") 2>conftest.er1
16896 ac_status=$?
16897 grep -v '^ *+' conftest.er1 >conftest.err
16898 rm -f conftest.er1
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } && {
16902 test -z "$ac_c_werror_flag" ||
16903 test ! -s conftest.err
16904 } && test -s conftest$ac_exeext &&
16905 $as_test_x conftest$ac_exeext; then
16906 eval "$as_ac_var=yes"
16907 else
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 eval "$as_ac_var=no"
16914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16915 conftest$ac_exeext conftest.$ac_ext
16917 ac_res=`eval echo '${'$as_ac_var'}'`
16918 { echo "$as_me:$LINENO: result: $ac_res" >&5
16919 echo "${ECHO_T}$ac_res" >&6; }
16920 if test `eval echo '${'$as_ac_var'}'` = yes; then
16921 cat >>confdefs.h <<_ACEOF
16922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16923 _ACEOF
16926 done
16929 # Solaris has libkstat which does not require root.
16931 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16932 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16933 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16935 else
16936 ac_check_lib_save_LIBS=$LIBS
16937 LIBS="-lkstat $LIBS"
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h. */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h. */
16945 /* Override any GCC internal prototype to avoid an error.
16946 Use char because int might match the return type of a GCC
16947 builtin and then its argument prototype would still apply. */
16948 #ifdef __cplusplus
16949 extern "C"
16950 #endif
16951 char kstat_open ();
16953 main ()
16955 return kstat_open ();
16957 return 0;
16959 _ACEOF
16960 rm -f conftest.$ac_objext conftest$ac_exeext
16961 if { (ac_try="$ac_link"
16962 case "(($ac_try" in
16963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16964 *) ac_try_echo=$ac_try;;
16965 esac
16966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16967 (eval "$ac_link") 2>conftest.er1
16968 ac_status=$?
16969 grep -v '^ *+' conftest.er1 >conftest.err
16970 rm -f conftest.er1
16971 cat conftest.err >&5
16972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16973 (exit $ac_status); } && {
16974 test -z "$ac_c_werror_flag" ||
16975 test ! -s conftest.err
16976 } && test -s conftest$ac_exeext &&
16977 $as_test_x conftest$ac_exeext; then
16978 ac_cv_lib_kstat_kstat_open=yes
16979 else
16980 echo "$as_me: failed program was:" >&5
16981 sed 's/^/| /' conftest.$ac_ext >&5
16983 ac_cv_lib_kstat_kstat_open=no
16986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16987 conftest$ac_exeext conftest.$ac_ext
16988 LIBS=$ac_check_lib_save_LIBS
16990 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16991 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16992 if test $ac_cv_lib_kstat_kstat_open = yes; then
16993 cat >>confdefs.h <<_ACEOF
16994 #define HAVE_LIBKSTAT 1
16995 _ACEOF
16997 LIBS="-lkstat $LIBS"
17001 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17003 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17004 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17005 # to get the right answer into the cache.
17006 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17007 if test $ac_have_func = no; then
17008 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17009 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17010 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 else
17013 ac_check_lib_save_LIBS=$LIBS
17014 LIBS="-lelf $LIBS"
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h. */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17022 /* Override any GCC internal prototype to avoid an error.
17023 Use char because int might match the return type of a GCC
17024 builtin and then its argument prototype would still apply. */
17025 #ifdef __cplusplus
17026 extern "C"
17027 #endif
17028 char elf_begin ();
17030 main ()
17032 return elf_begin ();
17034 return 0;
17036 _ACEOF
17037 rm -f conftest.$ac_objext conftest$ac_exeext
17038 if { (ac_try="$ac_link"
17039 case "(($ac_try" in
17040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041 *) ac_try_echo=$ac_try;;
17042 esac
17043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044 (eval "$ac_link") 2>conftest.er1
17045 ac_status=$?
17046 grep -v '^ *+' conftest.er1 >conftest.err
17047 rm -f conftest.er1
17048 cat conftest.err >&5
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); } && {
17051 test -z "$ac_c_werror_flag" ||
17052 test ! -s conftest.err
17053 } && test -s conftest$ac_exeext &&
17054 $as_test_x conftest$ac_exeext; then
17055 ac_cv_lib_elf_elf_begin=yes
17056 else
17057 echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.$ac_ext >&5
17060 ac_cv_lib_elf_elf_begin=no
17063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17064 conftest$ac_exeext conftest.$ac_ext
17065 LIBS=$ac_check_lib_save_LIBS
17067 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17068 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17069 if test $ac_cv_lib_elf_elf_begin = yes; then
17070 LIBS="-lelf $LIBS"
17074 if test $ac_have_func = no; then
17075 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17076 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17077 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17078 echo $ECHO_N "(cached) $ECHO_C" >&6
17079 else
17080 ac_check_lib_save_LIBS=$LIBS
17081 LIBS="-lkvm $LIBS"
17082 cat >conftest.$ac_ext <<_ACEOF
17083 /* confdefs.h. */
17084 _ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17089 /* Override any GCC internal prototype to avoid an error.
17090 Use char because int might match the return type of a GCC
17091 builtin and then its argument prototype would still apply. */
17092 #ifdef __cplusplus
17093 extern "C"
17094 #endif
17095 char kvm_open ();
17097 main ()
17099 return kvm_open ();
17101 return 0;
17103 _ACEOF
17104 rm -f conftest.$ac_objext conftest$ac_exeext
17105 if { (ac_try="$ac_link"
17106 case "(($ac_try" in
17107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17108 *) ac_try_echo=$ac_try;;
17109 esac
17110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17111 (eval "$ac_link") 2>conftest.er1
17112 ac_status=$?
17113 grep -v '^ *+' conftest.er1 >conftest.err
17114 rm -f conftest.er1
17115 cat conftest.err >&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); } && {
17118 test -z "$ac_c_werror_flag" ||
17119 test ! -s conftest.err
17120 } && test -s conftest$ac_exeext &&
17121 $as_test_x conftest$ac_exeext; then
17122 ac_cv_lib_kvm_kvm_open=yes
17123 else
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17127 ac_cv_lib_kvm_kvm_open=no
17130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17131 conftest$ac_exeext conftest.$ac_ext
17132 LIBS=$ac_check_lib_save_LIBS
17134 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17135 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17136 if test $ac_cv_lib_kvm_kvm_open = yes; then
17137 LIBS="-lkvm $LIBS"
17140 # Check for the 4.4BSD definition of getloadavg.
17141 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17142 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17143 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17145 else
17146 ac_check_lib_save_LIBS=$LIBS
17147 LIBS="-lutil $LIBS"
17148 cat >conftest.$ac_ext <<_ACEOF
17149 /* confdefs.h. */
17150 _ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17155 /* Override any GCC internal prototype to avoid an error.
17156 Use char because int might match the return type of a GCC
17157 builtin and then its argument prototype would still apply. */
17158 #ifdef __cplusplus
17159 extern "C"
17160 #endif
17161 char getloadavg ();
17163 main ()
17165 return getloadavg ();
17167 return 0;
17169 _ACEOF
17170 rm -f conftest.$ac_objext conftest$ac_exeext
17171 if { (ac_try="$ac_link"
17172 case "(($ac_try" in
17173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174 *) ac_try_echo=$ac_try;;
17175 esac
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177 (eval "$ac_link") 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest$ac_exeext &&
17187 $as_test_x conftest$ac_exeext; then
17188 ac_cv_lib_util_getloadavg=yes
17189 else
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 ac_cv_lib_util_getloadavg=no
17196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17197 conftest$ac_exeext conftest.$ac_ext
17198 LIBS=$ac_check_lib_save_LIBS
17200 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17201 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17202 if test $ac_cv_lib_util_getloadavg = yes; then
17203 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17208 if test $ac_have_func = no; then
17209 # There is a commonly available library for RS/6000 AIX.
17210 # Since it is not a standard part of AIX, it might be installed locally.
17211 ac_getloadavg_LIBS=$LIBS
17212 LIBS="-L/usr/local/lib $LIBS"
17213 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17214 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17215 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17216 echo $ECHO_N "(cached) $ECHO_C" >&6
17217 else
17218 ac_check_lib_save_LIBS=$LIBS
17219 LIBS="-lgetloadavg $LIBS"
17220 cat >conftest.$ac_ext <<_ACEOF
17221 /* confdefs.h. */
17222 _ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17227 /* Override any GCC internal prototype to avoid an error.
17228 Use char because int might match the return type of a GCC
17229 builtin and then its argument prototype would still apply. */
17230 #ifdef __cplusplus
17231 extern "C"
17232 #endif
17233 char getloadavg ();
17235 main ()
17237 return getloadavg ();
17239 return 0;
17241 _ACEOF
17242 rm -f conftest.$ac_objext conftest$ac_exeext
17243 if { (ac_try="$ac_link"
17244 case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17247 esac
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_link") 2>conftest.er1
17250 ac_status=$?
17251 grep -v '^ *+' conftest.er1 >conftest.err
17252 rm -f conftest.er1
17253 cat conftest.err >&5
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } && {
17256 test -z "$ac_c_werror_flag" ||
17257 test ! -s conftest.err
17258 } && test -s conftest$ac_exeext &&
17259 $as_test_x conftest$ac_exeext; then
17260 ac_cv_lib_getloadavg_getloadavg=yes
17261 else
17262 echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17265 ac_cv_lib_getloadavg_getloadavg=no
17268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17269 conftest$ac_exeext conftest.$ac_ext
17270 LIBS=$ac_check_lib_save_LIBS
17272 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17273 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17274 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17275 LIBS="-lgetloadavg $LIBS"
17276 else
17277 LIBS=$ac_getloadavg_LIBS
17282 # Make sure it is really in the library, if we think we found it,
17283 # otherwise set up the replacement function.
17285 for ac_func in getloadavg
17287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17291 echo $ECHO_N "(cached) $ECHO_C" >&6
17292 else
17293 cat >conftest.$ac_ext <<_ACEOF
17294 /* confdefs.h. */
17295 _ACEOF
17296 cat confdefs.h >>conftest.$ac_ext
17297 cat >>conftest.$ac_ext <<_ACEOF
17298 /* end confdefs.h. */
17299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17301 #define $ac_func innocuous_$ac_func
17303 /* System header to define __stub macros and hopefully few prototypes,
17304 which can conflict with char $ac_func (); below.
17305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17306 <limits.h> exists even on freestanding compilers. */
17308 #ifdef __STDC__
17309 # include <limits.h>
17310 #else
17311 # include <assert.h>
17312 #endif
17314 #undef $ac_func
17316 /* Override any GCC internal prototype to avoid an error.
17317 Use char because int might match the return type of a GCC
17318 builtin and then its argument prototype would still apply. */
17319 #ifdef __cplusplus
17320 extern "C"
17321 #endif
17322 char $ac_func ();
17323 /* The GNU C library defines this for functions which it implements
17324 to always fail with ENOSYS. Some functions are actually named
17325 something starting with __ and the normal name is an alias. */
17326 #if defined __stub_$ac_func || defined __stub___$ac_func
17327 choke me
17328 #endif
17331 main ()
17333 return $ac_func ();
17335 return 0;
17337 _ACEOF
17338 rm -f conftest.$ac_objext conftest$ac_exeext
17339 if { (ac_try="$ac_link"
17340 case "(($ac_try" in
17341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17342 *) ac_try_echo=$ac_try;;
17343 esac
17344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17345 (eval "$ac_link") 2>conftest.er1
17346 ac_status=$?
17347 grep -v '^ *+' conftest.er1 >conftest.err
17348 rm -f conftest.er1
17349 cat conftest.err >&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); } && {
17352 test -z "$ac_c_werror_flag" ||
17353 test ! -s conftest.err
17354 } && test -s conftest$ac_exeext &&
17355 $as_test_x conftest$ac_exeext; then
17356 eval "$as_ac_var=yes"
17357 else
17358 echo "$as_me: failed program was:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17361 eval "$as_ac_var=no"
17364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17365 conftest$ac_exeext conftest.$ac_ext
17367 ac_res=`eval echo '${'$as_ac_var'}'`
17368 { echo "$as_me:$LINENO: result: $ac_res" >&5
17369 echo "${ECHO_T}$ac_res" >&6; }
17370 if test `eval echo '${'$as_ac_var'}'` = yes; then
17371 cat >>confdefs.h <<_ACEOF
17372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17373 _ACEOF
17375 else
17376 case " $LIBOBJS " in
17377 *" getloadavg.$ac_objext "* ) ;;
17378 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17380 esac
17383 cat >>confdefs.h <<\_ACEOF
17384 #define C_GETLOADAVG 1
17385 _ACEOF
17387 # Figure out what our getloadavg.c needs.
17388 ac_have_func=no
17389 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17390 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17391 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17392 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17393 echo $ECHO_N "(cached) $ECHO_C" >&6
17395 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17396 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17397 else
17398 # Is the header compilable?
17399 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17400 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17401 cat >conftest.$ac_ext <<_ACEOF
17402 /* confdefs.h. */
17403 _ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 $ac_includes_default
17408 #include <sys/dg_sys_info.h>
17409 _ACEOF
17410 rm -f conftest.$ac_objext
17411 if { (ac_try="$ac_compile"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_compile") 2>conftest.er1
17418 ac_status=$?
17419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } && {
17424 test -z "$ac_c_werror_flag" ||
17425 test ! -s conftest.err
17426 } && test -s conftest.$ac_objext; then
17427 ac_header_compiler=yes
17428 else
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 ac_header_compiler=no
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17437 echo "${ECHO_T}$ac_header_compiler" >&6; }
17439 # Is the header present?
17440 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17441 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17442 cat >conftest.$ac_ext <<_ACEOF
17443 /* confdefs.h. */
17444 _ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 #include <sys/dg_sys_info.h>
17449 _ACEOF
17450 if { (ac_try="$ac_cpp conftest.$ac_ext"
17451 case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17454 esac
17455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17457 ac_status=$?
17458 grep -v '^ *+' conftest.er1 >conftest.err
17459 rm -f conftest.er1
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } >/dev/null && {
17463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17464 test ! -s conftest.err
17465 }; then
17466 ac_header_preproc=yes
17467 else
17468 echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_header_preproc=no
17474 rm -f conftest.err conftest.$ac_ext
17475 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17476 echo "${ECHO_T}$ac_header_preproc" >&6; }
17478 # So? What about this header?
17479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17480 yes:no: )
17481 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17482 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17484 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17485 ac_header_preproc=yes
17487 no:yes:* )
17488 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17489 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17490 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17491 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17492 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17493 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17494 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17495 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17497 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17498 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17499 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17502 esac
17503 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17504 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17505 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17506 echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17510 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17511 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17514 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17515 ac_have_func=yes
17517 cat >>confdefs.h <<\_ACEOF
17518 #define DGUX 1
17519 _ACEOF
17522 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17523 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17524 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17526 else
17527 ac_check_lib_save_LIBS=$LIBS
17528 LIBS="-ldgc $LIBS"
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17536 /* Override any GCC internal prototype to avoid an error.
17537 Use char because int might match the return type of a GCC
17538 builtin and then its argument prototype would still apply. */
17539 #ifdef __cplusplus
17540 extern "C"
17541 #endif
17542 char dg_sys_info ();
17544 main ()
17546 return dg_sys_info ();
17548 return 0;
17550 _ACEOF
17551 rm -f conftest.$ac_objext conftest$ac_exeext
17552 if { (ac_try="$ac_link"
17553 case "(($ac_try" in
17554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17555 *) ac_try_echo=$ac_try;;
17556 esac
17557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17558 (eval "$ac_link") 2>conftest.er1
17559 ac_status=$?
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } && {
17565 test -z "$ac_c_werror_flag" ||
17566 test ! -s conftest.err
17567 } && test -s conftest$ac_exeext &&
17568 $as_test_x conftest$ac_exeext; then
17569 ac_cv_lib_dgc_dg_sys_info=yes
17570 else
17571 echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 ac_cv_lib_dgc_dg_sys_info=no
17577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17578 conftest$ac_exeext conftest.$ac_ext
17579 LIBS=$ac_check_lib_save_LIBS
17581 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17582 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17583 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17584 cat >>confdefs.h <<_ACEOF
17585 #define HAVE_LIBDGC 1
17586 _ACEOF
17588 LIBS="-ldgc $LIBS"
17596 if test "${ac_cv_header_locale_h+set}" = set; then
17597 { echo "$as_me:$LINENO: checking for locale.h" >&5
17598 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17599 if test "${ac_cv_header_locale_h+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17603 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17604 else
17605 # Is the header compilable?
17606 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17607 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17608 cat >conftest.$ac_ext <<_ACEOF
17609 /* confdefs.h. */
17610 _ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17614 $ac_includes_default
17615 #include <locale.h>
17616 _ACEOF
17617 rm -f conftest.$ac_objext
17618 if { (ac_try="$ac_compile"
17619 case "(($ac_try" in
17620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17621 *) ac_try_echo=$ac_try;;
17622 esac
17623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17624 (eval "$ac_compile") 2>conftest.er1
17625 ac_status=$?
17626 grep -v '^ *+' conftest.er1 >conftest.err
17627 rm -f conftest.er1
17628 cat conftest.err >&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } && {
17631 test -z "$ac_c_werror_flag" ||
17632 test ! -s conftest.err
17633 } && test -s conftest.$ac_objext; then
17634 ac_header_compiler=yes
17635 else
17636 echo "$as_me: failed program was:" >&5
17637 sed 's/^/| /' conftest.$ac_ext >&5
17639 ac_header_compiler=no
17642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17643 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17644 echo "${ECHO_T}$ac_header_compiler" >&6; }
17646 # Is the header present?
17647 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17648 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17649 cat >conftest.$ac_ext <<_ACEOF
17650 /* confdefs.h. */
17651 _ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h. */
17655 #include <locale.h>
17656 _ACEOF
17657 if { (ac_try="$ac_cpp conftest.$ac_ext"
17658 case "(($ac_try" in
17659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17661 esac
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17664 ac_status=$?
17665 grep -v '^ *+' conftest.er1 >conftest.err
17666 rm -f conftest.er1
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); } >/dev/null && {
17670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17671 test ! -s conftest.err
17672 }; then
17673 ac_header_preproc=yes
17674 else
17675 echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17678 ac_header_preproc=no
17681 rm -f conftest.err conftest.$ac_ext
17682 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17683 echo "${ECHO_T}$ac_header_preproc" >&6; }
17685 # So? What about this header?
17686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17687 yes:no: )
17688 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17689 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17690 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17691 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17692 ac_header_preproc=yes
17694 no:yes:* )
17695 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17696 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17697 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17698 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17699 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17700 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17701 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17702 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17703 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17704 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17705 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17706 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17709 esac
17710 { echo "$as_me:$LINENO: checking for locale.h" >&5
17711 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17712 if test "${ac_cv_header_locale_h+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17714 else
17715 ac_cv_header_locale_h=$ac_header_preproc
17717 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17718 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17724 for ac_func in setlocale
17726 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17727 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17728 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17729 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17730 echo $ECHO_N "(cached) $ECHO_C" >&6
17731 else
17732 cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h. */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17740 #define $ac_func innocuous_$ac_func
17742 /* System header to define __stub macros and hopefully few prototypes,
17743 which can conflict with char $ac_func (); below.
17744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17745 <limits.h> exists even on freestanding compilers. */
17747 #ifdef __STDC__
17748 # include <limits.h>
17749 #else
17750 # include <assert.h>
17751 #endif
17753 #undef $ac_func
17755 /* Override any GCC internal prototype to avoid an error.
17756 Use char because int might match the return type of a GCC
17757 builtin and then its argument prototype would still apply. */
17758 #ifdef __cplusplus
17759 extern "C"
17760 #endif
17761 char $ac_func ();
17762 /* The GNU C library defines this for functions which it implements
17763 to always fail with ENOSYS. Some functions are actually named
17764 something starting with __ and the normal name is an alias. */
17765 #if defined __stub_$ac_func || defined __stub___$ac_func
17766 choke me
17767 #endif
17770 main ()
17772 return $ac_func ();
17774 return 0;
17776 _ACEOF
17777 rm -f conftest.$ac_objext conftest$ac_exeext
17778 if { (ac_try="$ac_link"
17779 case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17782 esac
17783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_link") 2>conftest.er1
17785 ac_status=$?
17786 grep -v '^ *+' conftest.er1 >conftest.err
17787 rm -f conftest.er1
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } && {
17791 test -z "$ac_c_werror_flag" ||
17792 test ! -s conftest.err
17793 } && test -s conftest$ac_exeext &&
17794 $as_test_x conftest$ac_exeext; then
17795 eval "$as_ac_var=yes"
17796 else
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 eval "$as_ac_var=no"
17803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17804 conftest$ac_exeext conftest.$ac_ext
17806 ac_res=`eval echo '${'$as_ac_var'}'`
17807 { echo "$as_me:$LINENO: result: $ac_res" >&5
17808 echo "${ECHO_T}$ac_res" >&6; }
17809 if test `eval echo '${'$as_ac_var'}'` = yes; then
17810 cat >>confdefs.h <<_ACEOF
17811 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17812 _ACEOF
17815 done
17818 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17819 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17820 # Irix 4.0.5F has the header but not the library.
17821 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17822 ac_have_func=yes
17824 cat >>confdefs.h <<\_ACEOF
17825 #define SVR4 1
17826 _ACEOF
17830 if test $ac_have_func = no; then
17831 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17832 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17833 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17834 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17837 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17838 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17839 else
17840 # Is the header compilable?
17841 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17842 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17843 cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h. */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 $ac_includes_default
17850 #include <inq_stats/cpustats.h>
17851 _ACEOF
17852 rm -f conftest.$ac_objext
17853 if { (ac_try="$ac_compile"
17854 case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17857 esac
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_compile") 2>conftest.er1
17860 ac_status=$?
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } && {
17866 test -z "$ac_c_werror_flag" ||
17867 test ! -s conftest.err
17868 } && test -s conftest.$ac_objext; then
17869 ac_header_compiler=yes
17870 else
17871 echo "$as_me: failed program was:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17874 ac_header_compiler=no
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17879 echo "${ECHO_T}$ac_header_compiler" >&6; }
17881 # Is the header present?
17882 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17883 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17884 cat >conftest.$ac_ext <<_ACEOF
17885 /* confdefs.h. */
17886 _ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 #include <inq_stats/cpustats.h>
17891 _ACEOF
17892 if { (ac_try="$ac_cpp conftest.$ac_ext"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17896 esac
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17899 ac_status=$?
17900 grep -v '^ *+' conftest.er1 >conftest.err
17901 rm -f conftest.er1
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } >/dev/null && {
17905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17906 test ! -s conftest.err
17907 }; then
17908 ac_header_preproc=yes
17909 else
17910 echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 ac_header_preproc=no
17916 rm -f conftest.err conftest.$ac_ext
17917 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17918 echo "${ECHO_T}$ac_header_preproc" >&6; }
17920 # So? What about this header?
17921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17922 yes:no: )
17923 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17924 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17925 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17926 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17927 ac_header_preproc=yes
17929 no:yes:* )
17930 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17931 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17932 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17933 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17934 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17935 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17936 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17937 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17939 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17940 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17941 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17944 esac
17945 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17946 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17947 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17948 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 else
17950 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17952 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17953 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17956 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17957 ac_have_func=yes
17959 cat >>confdefs.h <<\_ACEOF
17960 #define UMAX 1
17961 _ACEOF
17964 cat >>confdefs.h <<\_ACEOF
17965 #define UMAX4_3 1
17966 _ACEOF
17973 if test $ac_have_func = no; then
17974 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17975 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17976 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17977 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17981 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17982 else
17983 # Is the header compilable?
17984 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17985 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17986 cat >conftest.$ac_ext <<_ACEOF
17987 /* confdefs.h. */
17988 _ACEOF
17989 cat confdefs.h >>conftest.$ac_ext
17990 cat >>conftest.$ac_ext <<_ACEOF
17991 /* end confdefs.h. */
17992 $ac_includes_default
17993 #include <sys/cpustats.h>
17994 _ACEOF
17995 rm -f conftest.$ac_objext
17996 if { (ac_try="$ac_compile"
17997 case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18000 esac
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_compile") 2>conftest.er1
18003 ac_status=$?
18004 grep -v '^ *+' conftest.er1 >conftest.err
18005 rm -f conftest.er1
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008 (exit $ac_status); } && {
18009 test -z "$ac_c_werror_flag" ||
18010 test ! -s conftest.err
18011 } && test -s conftest.$ac_objext; then
18012 ac_header_compiler=yes
18013 else
18014 echo "$as_me: failed program was:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18017 ac_header_compiler=no
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18021 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18022 echo "${ECHO_T}$ac_header_compiler" >&6; }
18024 # Is the header present?
18025 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18026 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18027 cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h. */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18033 #include <sys/cpustats.h>
18034 _ACEOF
18035 if { (ac_try="$ac_cpp conftest.$ac_ext"
18036 case "(($ac_try" in
18037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038 *) ac_try_echo=$ac_try;;
18039 esac
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18042 ac_status=$?
18043 grep -v '^ *+' conftest.er1 >conftest.err
18044 rm -f conftest.er1
18045 cat conftest.err >&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } >/dev/null && {
18048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18049 test ! -s conftest.err
18050 }; then
18051 ac_header_preproc=yes
18052 else
18053 echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18056 ac_header_preproc=no
18059 rm -f conftest.err conftest.$ac_ext
18060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18061 echo "${ECHO_T}$ac_header_preproc" >&6; }
18063 # So? What about this header?
18064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18065 yes:no: )
18066 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18067 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18068 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18069 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18070 ac_header_preproc=yes
18072 no:yes:* )
18073 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18074 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18076 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18077 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18078 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18079 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18080 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18082 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18084 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18087 esac
18088 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18089 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18090 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18091 echo $ECHO_N "(cached) $ECHO_C" >&6
18092 else
18093 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18095 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18096 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18099 if test $ac_cv_header_sys_cpustats_h = yes; then
18100 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18101 #define UMAX 1
18102 _ACEOF
18109 if test $ac_have_func = no; then
18111 for ac_header in mach/mach.h
18113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18115 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18118 echo $ECHO_N "(cached) $ECHO_C" >&6
18120 ac_res=`eval echo '${'$as_ac_Header'}'`
18121 { echo "$as_me:$LINENO: result: $ac_res" >&5
18122 echo "${ECHO_T}$ac_res" >&6; }
18123 else
18124 # Is the header compilable?
18125 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18127 cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h. */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 $ac_includes_default
18134 #include <$ac_header>
18135 _ACEOF
18136 rm -f conftest.$ac_objext
18137 if { (ac_try="$ac_compile"
18138 case "(($ac_try" in
18139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18140 *) ac_try_echo=$ac_try;;
18141 esac
18142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18143 (eval "$ac_compile") 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } && {
18150 test -z "$ac_c_werror_flag" ||
18151 test ! -s conftest.err
18152 } && test -s conftest.$ac_objext; then
18153 ac_header_compiler=yes
18154 else
18155 echo "$as_me: failed program was:" >&5
18156 sed 's/^/| /' conftest.$ac_ext >&5
18158 ac_header_compiler=no
18161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18162 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18163 echo "${ECHO_T}$ac_header_compiler" >&6; }
18165 # Is the header present?
18166 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18167 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18168 cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h. */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174 #include <$ac_header>
18175 _ACEOF
18176 if { (ac_try="$ac_cpp conftest.$ac_ext"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18180 esac
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18183 ac_status=$?
18184 grep -v '^ *+' conftest.er1 >conftest.err
18185 rm -f conftest.er1
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } >/dev/null && {
18189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18190 test ! -s conftest.err
18191 }; then
18192 ac_header_preproc=yes
18193 else
18194 echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18197 ac_header_preproc=no
18200 rm -f conftest.err conftest.$ac_ext
18201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18202 echo "${ECHO_T}$ac_header_preproc" >&6; }
18204 # So? What about this header?
18205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18206 yes:no: )
18207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18211 ac_header_preproc=yes
18213 no:yes:* )
18214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18228 esac
18229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18232 echo $ECHO_N "(cached) $ECHO_C" >&6
18233 else
18234 eval "$as_ac_Header=\$ac_header_preproc"
18236 ac_res=`eval echo '${'$as_ac_Header'}'`
18237 { echo "$as_me:$LINENO: result: $ac_res" >&5
18238 echo "${ECHO_T}$ac_res" >&6; }
18241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18242 cat >>confdefs.h <<_ACEOF
18243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18244 _ACEOF
18248 done
18253 for ac_header in nlist.h
18255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18262 ac_res=`eval echo '${'$as_ac_Header'}'`
18263 { echo "$as_me:$LINENO: result: $ac_res" >&5
18264 echo "${ECHO_T}$ac_res" >&6; }
18265 else
18266 # Is the header compilable?
18267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18269 cat >conftest.$ac_ext <<_ACEOF
18270 /* confdefs.h. */
18271 _ACEOF
18272 cat confdefs.h >>conftest.$ac_ext
18273 cat >>conftest.$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18275 $ac_includes_default
18276 #include <$ac_header>
18277 _ACEOF
18278 rm -f conftest.$ac_objext
18279 if { (ac_try="$ac_compile"
18280 case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18283 esac
18284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_compile") 2>conftest.er1
18286 ac_status=$?
18287 grep -v '^ *+' conftest.er1 >conftest.err
18288 rm -f conftest.er1
18289 cat conftest.err >&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); } && {
18292 test -z "$ac_c_werror_flag" ||
18293 test ! -s conftest.err
18294 } && test -s conftest.$ac_objext; then
18295 ac_header_compiler=yes
18296 else
18297 echo "$as_me: failed program was:" >&5
18298 sed 's/^/| /' conftest.$ac_ext >&5
18300 ac_header_compiler=no
18303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18305 echo "${ECHO_T}$ac_header_compiler" >&6; }
18307 # Is the header present?
18308 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18310 cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h. */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h. */
18316 #include <$ac_header>
18317 _ACEOF
18318 if { (ac_try="$ac_cpp conftest.$ac_ext"
18319 case "(($ac_try" in
18320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18321 *) ac_try_echo=$ac_try;;
18322 esac
18323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18325 ac_status=$?
18326 grep -v '^ *+' conftest.er1 >conftest.err
18327 rm -f conftest.er1
18328 cat conftest.err >&5
18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18330 (exit $ac_status); } >/dev/null && {
18331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18332 test ! -s conftest.err
18333 }; then
18334 ac_header_preproc=yes
18335 else
18336 echo "$as_me: failed program was:" >&5
18337 sed 's/^/| /' conftest.$ac_ext >&5
18339 ac_header_preproc=no
18342 rm -f conftest.err conftest.$ac_ext
18343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18344 echo "${ECHO_T}$ac_header_preproc" >&6; }
18346 # So? What about this header?
18347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18348 yes:no: )
18349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18353 ac_header_preproc=yes
18355 no:yes:* )
18356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18370 esac
18371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18374 echo $ECHO_N "(cached) $ECHO_C" >&6
18375 else
18376 eval "$as_ac_Header=\$ac_header_preproc"
18378 ac_res=`eval echo '${'$as_ac_Header'}'`
18379 { echo "$as_me:$LINENO: result: $ac_res" >&5
18380 echo "${ECHO_T}$ac_res" >&6; }
18383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18384 cat >>confdefs.h <<_ACEOF
18385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18386 _ACEOF
18387 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18388 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18389 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 else
18392 cat >conftest.$ac_ext <<_ACEOF
18393 /* confdefs.h. */
18394 _ACEOF
18395 cat confdefs.h >>conftest.$ac_ext
18396 cat >>conftest.$ac_ext <<_ACEOF
18397 /* end confdefs.h. */
18398 #include <nlist.h>
18401 main ()
18403 static struct nlist ac_aggr;
18404 if (ac_aggr.n_un.n_name)
18405 return 0;
18407 return 0;
18409 _ACEOF
18410 rm -f conftest.$ac_objext
18411 if { (ac_try="$ac_compile"
18412 case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18415 esac
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417 (eval "$ac_compile") 2>conftest.er1
18418 ac_status=$?
18419 grep -v '^ *+' conftest.er1 >conftest.err
18420 rm -f conftest.er1
18421 cat conftest.err >&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } && {
18424 test -z "$ac_c_werror_flag" ||
18425 test ! -s conftest.err
18426 } && test -s conftest.$ac_objext; then
18427 ac_cv_member_struct_nlist_n_un_n_name=yes
18428 else
18429 echo "$as_me: failed program was:" >&5
18430 sed 's/^/| /' conftest.$ac_ext >&5
18432 cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h. */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438 #include <nlist.h>
18441 main ()
18443 static struct nlist ac_aggr;
18444 if (sizeof ac_aggr.n_un.n_name)
18445 return 0;
18447 return 0;
18449 _ACEOF
18450 rm -f conftest.$ac_objext
18451 if { (ac_try="$ac_compile"
18452 case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18455 esac
18456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_compile") 2>conftest.er1
18458 ac_status=$?
18459 grep -v '^ *+' conftest.er1 >conftest.err
18460 rm -f conftest.er1
18461 cat conftest.err >&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); } && {
18464 test -z "$ac_c_werror_flag" ||
18465 test ! -s conftest.err
18466 } && test -s conftest.$ac_objext; then
18467 ac_cv_member_struct_nlist_n_un_n_name=yes
18468 else
18469 echo "$as_me: failed program was:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 ac_cv_member_struct_nlist_n_un_n_name=no
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18481 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18482 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18484 cat >>confdefs.h <<_ACEOF
18485 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18486 _ACEOF
18489 cat >>confdefs.h <<\_ACEOF
18490 #define NLIST_NAME_UNION 1
18491 _ACEOF
18498 done
18501 done
18504 # Some definitions of getloadavg require that the program be installed setgid.
18505 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18506 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18507 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18508 echo $ECHO_N "(cached) $ECHO_C" >&6
18509 else
18510 cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h. */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18516 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18517 #ifdef LDAV_PRIVILEGED
18518 Yowza Am I SETGID yet
18519 #endif
18520 _ACEOF
18521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18522 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18523 ac_cv_func_getloadavg_setgid=yes
18524 else
18525 ac_cv_func_getloadavg_setgid=no
18527 rm -f conftest*
18530 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18531 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18532 if test $ac_cv_func_getloadavg_setgid = yes; then
18533 NEED_SETGID=true
18535 cat >>confdefs.h <<\_ACEOF
18536 #define GETLOADAVG_PRIVILEGED 1
18537 _ACEOF
18539 else
18540 NEED_SETGID=false
18543 if test $ac_cv_func_getloadavg_setgid = yes; then
18544 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18545 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18546 if test "${ac_cv_group_kmem+set}" = set; then
18547 echo $ECHO_N "(cached) $ECHO_C" >&6
18548 else
18549 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18550 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18551 # If we got an error (system does not support symlinks), try without -L.
18552 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18553 ac_cv_group_kmem=`echo $ac_ls_output \
18554 | sed -ne 's/[ ][ ]*/ /g;
18555 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18556 / /s/.* //;p;'`
18559 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18560 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18561 KMEM_GROUP=$ac_cv_group_kmem
18563 if test "x$ac_save_LIBS" = x; then
18564 GETLOADAVG_LIBS=$LIBS
18565 else
18566 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18568 LIBS=$ac_save_LIBS
18572 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18573 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18574 if test "${ac_cv_sys_largefile_source+set}" = set; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577 while :; do
18578 cat >conftest.$ac_ext <<_ACEOF
18579 /* confdefs.h. */
18580 _ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584 #include <stdio.h>
18586 main ()
18588 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18590 return 0;
18592 _ACEOF
18593 rm -f conftest.$ac_objext conftest$ac_exeext
18594 if { (ac_try="$ac_link"
18595 case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18598 esac
18599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600 (eval "$ac_link") 2>conftest.er1
18601 ac_status=$?
18602 grep -v '^ *+' conftest.er1 >conftest.err
18603 rm -f conftest.er1
18604 cat conftest.err >&5
18605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606 (exit $ac_status); } && {
18607 test -z "$ac_c_werror_flag" ||
18608 test ! -s conftest.err
18609 } && test -s conftest$ac_exeext &&
18610 $as_test_x conftest$ac_exeext; then
18611 ac_cv_sys_largefile_source=no; break
18612 else
18613 echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18620 conftest$ac_exeext conftest.$ac_ext
18621 cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h. */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18627 #define _LARGEFILE_SOURCE 1
18628 #include <stdio.h>
18630 main ()
18632 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18634 return 0;
18636 _ACEOF
18637 rm -f conftest.$ac_objext conftest$ac_exeext
18638 if { (ac_try="$ac_link"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18642 esac
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_link") 2>conftest.er1
18645 ac_status=$?
18646 grep -v '^ *+' conftest.er1 >conftest.err
18647 rm -f conftest.er1
18648 cat conftest.err >&5
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); } && {
18651 test -z "$ac_c_werror_flag" ||
18652 test ! -s conftest.err
18653 } && test -s conftest$ac_exeext &&
18654 $as_test_x conftest$ac_exeext; then
18655 ac_cv_sys_largefile_source=1; break
18656 else
18657 echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.$ac_ext >&5
18663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18664 conftest$ac_exeext conftest.$ac_ext
18665 ac_cv_sys_largefile_source=unknown
18666 break
18667 done
18669 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18670 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18671 case $ac_cv_sys_largefile_source in #(
18672 no | unknown) ;;
18674 cat >>confdefs.h <<_ACEOF
18675 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18676 _ACEOF
18678 esac
18679 rm -f conftest*
18681 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18682 # in glibc 2.1.3, but that breaks too many other things.
18683 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18684 if test $ac_cv_sys_largefile_source != unknown; then
18686 cat >>confdefs.h <<\_ACEOF
18687 #define HAVE_FSEEKO 1
18688 _ACEOF
18693 # Configure getopt.
18694 # getopt.m4 serial 10
18696 # The getopt module assume you want GNU getopt, with getopt_long etc,
18697 # rather than vanilla POSIX getopt. This means your your code should
18698 # always include <getopt.h> for the getopt prototypes.
18710 # Prerequisites of lib/getopt*.
18715 GETOPT_H=
18717 for ac_header in getopt.h
18719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18724 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 ac_res=`eval echo '${'$as_ac_Header'}'`
18727 { echo "$as_me:$LINENO: result: $ac_res" >&5
18728 echo "${ECHO_T}$ac_res" >&6; }
18729 else
18730 # Is the header compilable?
18731 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18732 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18733 cat >conftest.$ac_ext <<_ACEOF
18734 /* confdefs.h. */
18735 _ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h. */
18739 $ac_includes_default
18740 #include <$ac_header>
18741 _ACEOF
18742 rm -f conftest.$ac_objext
18743 if { (ac_try="$ac_compile"
18744 case "(($ac_try" in
18745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18746 *) ac_try_echo=$ac_try;;
18747 esac
18748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18749 (eval "$ac_compile") 2>conftest.er1
18750 ac_status=$?
18751 grep -v '^ *+' conftest.er1 >conftest.err
18752 rm -f conftest.er1
18753 cat conftest.err >&5
18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755 (exit $ac_status); } && {
18756 test -z "$ac_c_werror_flag" ||
18757 test ! -s conftest.err
18758 } && test -s conftest.$ac_objext; then
18759 ac_header_compiler=yes
18760 else
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 ac_header_compiler=no
18767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18768 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18769 echo "${ECHO_T}$ac_header_compiler" >&6; }
18771 # Is the header present?
18772 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18773 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18774 cat >conftest.$ac_ext <<_ACEOF
18775 /* confdefs.h. */
18776 _ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 #include <$ac_header>
18781 _ACEOF
18782 if { (ac_try="$ac_cpp conftest.$ac_ext"
18783 case "(($ac_try" in
18784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18785 *) ac_try_echo=$ac_try;;
18786 esac
18787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18789 ac_status=$?
18790 grep -v '^ *+' conftest.er1 >conftest.err
18791 rm -f conftest.er1
18792 cat conftest.err >&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); } >/dev/null && {
18795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18796 test ! -s conftest.err
18797 }; then
18798 ac_header_preproc=yes
18799 else
18800 echo "$as_me: failed program was:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18803 ac_header_preproc=no
18806 rm -f conftest.err conftest.$ac_ext
18807 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18808 echo "${ECHO_T}$ac_header_preproc" >&6; }
18810 # So? What about this header?
18811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18812 yes:no: )
18813 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18814 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18816 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18817 ac_header_preproc=yes
18819 no:yes:* )
18820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18821 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18823 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18824 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18825 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18826 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18827 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18829 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18830 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18831 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18834 esac
18835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18838 echo $ECHO_N "(cached) $ECHO_C" >&6
18839 else
18840 eval "$as_ac_Header=\$ac_header_preproc"
18842 ac_res=`eval echo '${'$as_ac_Header'}'`
18843 { echo "$as_me:$LINENO: result: $ac_res" >&5
18844 echo "${ECHO_T}$ac_res" >&6; }
18847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18848 cat >>confdefs.h <<_ACEOF
18849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18850 _ACEOF
18852 else
18853 GETOPT_H=getopt.h
18856 done
18858 if test -z "$GETOPT_H"; then
18860 for ac_func in getopt_long_only
18862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18866 echo $ECHO_N "(cached) $ECHO_C" >&6
18867 else
18868 cat >conftest.$ac_ext <<_ACEOF
18869 /* confdefs.h. */
18870 _ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
18873 /* end confdefs.h. */
18874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18876 #define $ac_func innocuous_$ac_func
18878 /* System header to define __stub macros and hopefully few prototypes,
18879 which can conflict with char $ac_func (); below.
18880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18881 <limits.h> exists even on freestanding compilers. */
18883 #ifdef __STDC__
18884 # include <limits.h>
18885 #else
18886 # include <assert.h>
18887 #endif
18889 #undef $ac_func
18891 /* Override any GCC internal prototype to avoid an error.
18892 Use char because int might match the return type of a GCC
18893 builtin and then its argument prototype would still apply. */
18894 #ifdef __cplusplus
18895 extern "C"
18896 #endif
18897 char $ac_func ();
18898 /* The GNU C library defines this for functions which it implements
18899 to always fail with ENOSYS. Some functions are actually named
18900 something starting with __ and the normal name is an alias. */
18901 #if defined __stub_$ac_func || defined __stub___$ac_func
18902 choke me
18903 #endif
18906 main ()
18908 return $ac_func ();
18910 return 0;
18912 _ACEOF
18913 rm -f conftest.$ac_objext conftest$ac_exeext
18914 if { (ac_try="$ac_link"
18915 case "(($ac_try" in
18916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917 *) ac_try_echo=$ac_try;;
18918 esac
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920 (eval "$ac_link") 2>conftest.er1
18921 ac_status=$?
18922 grep -v '^ *+' conftest.er1 >conftest.err
18923 rm -f conftest.er1
18924 cat conftest.err >&5
18925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18926 (exit $ac_status); } && {
18927 test -z "$ac_c_werror_flag" ||
18928 test ! -s conftest.err
18929 } && test -s conftest$ac_exeext &&
18930 $as_test_x conftest$ac_exeext; then
18931 eval "$as_ac_var=yes"
18932 else
18933 echo "$as_me: failed program was:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 eval "$as_ac_var=no"
18939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18940 conftest$ac_exeext conftest.$ac_ext
18942 ac_res=`eval echo '${'$as_ac_var'}'`
18943 { echo "$as_me:$LINENO: result: $ac_res" >&5
18944 echo "${ECHO_T}$ac_res" >&6; }
18945 if test `eval echo '${'$as_ac_var'}'` = yes; then
18946 cat >>confdefs.h <<_ACEOF
18947 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18948 _ACEOF
18950 else
18951 GETOPT_H=getopt.h
18953 done
18957 if test -z "$GETOPT_H"; then
18958 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18959 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18960 if test "${ac_cv_have_decl_optreset+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962 else
18963 cat >conftest.$ac_ext <<_ACEOF
18964 /* confdefs.h. */
18965 _ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18969 #include <getopt.h>
18972 main ()
18974 #ifndef optreset
18975 (void) optreset;
18976 #endif
18979 return 0;
18981 _ACEOF
18982 rm -f conftest.$ac_objext
18983 if { (ac_try="$ac_compile"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_compile") 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } && {
18996 test -z "$ac_c_werror_flag" ||
18997 test ! -s conftest.err
18998 } && test -s conftest.$ac_objext; then
18999 ac_cv_have_decl_optreset=yes
19000 else
19001 echo "$as_me: failed program was:" >&5
19002 sed 's/^/| /' conftest.$ac_ext >&5
19004 ac_cv_have_decl_optreset=no
19007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19009 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19010 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19011 if test $ac_cv_have_decl_optreset = yes; then
19012 GETOPT_H=getopt.h
19017 if test -z "$GETOPT_H"; then
19018 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19019 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19020 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19021 echo $ECHO_N "(cached) $ECHO_C" >&6
19022 else
19023 if test "$cross_compiling" = yes; then
19024 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19025 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19026 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
19028 else
19029 cat >conftest.$ac_ext <<_ACEOF
19030 /* confdefs.h. */
19031 _ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h. */
19035 #include <getopt.h>
19038 main ()
19040 #ifndef getopt_clip
19041 (void) getopt_clip;
19042 #endif
19045 return 0;
19047 _ACEOF
19048 rm -f conftest.$ac_objext
19049 if { (ac_try="$ac_compile"
19050 case "(($ac_try" in
19051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19052 *) ac_try_echo=$ac_try;;
19053 esac
19054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19055 (eval "$ac_compile") 2>conftest.er1
19056 ac_status=$?
19057 grep -v '^ *+' conftest.er1 >conftest.err
19058 rm -f conftest.er1
19059 cat conftest.err >&5
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); } && {
19062 test -z "$ac_c_werror_flag" ||
19063 test ! -s conftest.err
19064 } && test -s conftest.$ac_objext; then
19065 ac_cv_have_decl_getopt_clip=yes
19066 else
19067 echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19070 ac_cv_have_decl_getopt_clip=no
19073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19076 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19077 if test $ac_cv_have_decl_getopt_clip = yes; then
19078 gl_cv_func_gnu_getopt=no
19079 else
19080 gl_cv_func_gnu_getopt=yes
19083 else
19084 cat >conftest.$ac_ext <<_ACEOF
19085 /* confdefs.h. */
19086 _ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19090 #include <getopt.h>
19092 main ()
19095 char *myargv[3];
19096 myargv[0] = "conftest";
19097 myargv[1] = "-+";
19098 myargv[2] = 0;
19099 return getopt (2, myargv, "+a") != '?';
19102 return 0;
19104 _ACEOF
19105 rm -f conftest$ac_exeext
19106 if { (ac_try="$ac_link"
19107 case "(($ac_try" in
19108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109 *) ac_try_echo=$ac_try;;
19110 esac
19111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112 (eval "$ac_link") 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19116 { (case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19119 esac
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_try") 2>&5
19122 ac_status=$?
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; }; then
19125 gl_cv_func_gnu_getopt=yes
19126 else
19127 echo "$as_me: program exited with status $ac_status" >&5
19128 echo "$as_me: failed program was:" >&5
19129 sed 's/^/| /' conftest.$ac_ext >&5
19131 ( exit $ac_status )
19132 gl_cv_func_gnu_getopt=no
19134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19139 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19140 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19141 if test "$gl_cv_func_gnu_getopt" = "no"; then
19142 GETOPT_H=getopt.h
19148 if test -n "$GETOPT_H"; then
19151 GETOPT_H=getopt.h
19153 cat >>confdefs.h <<\_ACEOF
19154 #define __GETOPT_PREFIX rpl_
19155 _ACEOF
19160 GETOPTOBJS='getopt.o getopt1.o'
19167 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19168 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19169 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19171 else
19172 # Use it with a single arg.
19173 cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h. */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h. */
19179 $ac_includes_default
19181 main ()
19183 getpgrp (0);
19185 return 0;
19187 _ACEOF
19188 rm -f conftest.$ac_objext
19189 if { (ac_try="$ac_compile"
19190 case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19193 esac
19194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_compile") 2>conftest.er1
19196 ac_status=$?
19197 grep -v '^ *+' conftest.er1 >conftest.err
19198 rm -f conftest.er1
19199 cat conftest.err >&5
19200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19201 (exit $ac_status); } && {
19202 test -z "$ac_c_werror_flag" ||
19203 test ! -s conftest.err
19204 } && test -s conftest.$ac_objext; then
19205 ac_cv_func_getpgrp_void=no
19206 else
19207 echo "$as_me: failed program was:" >&5
19208 sed 's/^/| /' conftest.$ac_ext >&5
19210 ac_cv_func_getpgrp_void=yes
19213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19216 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19217 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19218 if test $ac_cv_func_getpgrp_void = yes; then
19220 cat >>confdefs.h <<\_ACEOF
19221 #define GETPGRP_VOID 1
19222 _ACEOF
19228 for ac_func in strftime
19230 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19234 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 else
19236 cat >conftest.$ac_ext <<_ACEOF
19237 /* confdefs.h. */
19238 _ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19244 #define $ac_func innocuous_$ac_func
19246 /* System header to define __stub macros and hopefully few prototypes,
19247 which can conflict with char $ac_func (); below.
19248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19249 <limits.h> exists even on freestanding compilers. */
19251 #ifdef __STDC__
19252 # include <limits.h>
19253 #else
19254 # include <assert.h>
19255 #endif
19257 #undef $ac_func
19259 /* Override any GCC internal prototype to avoid an error.
19260 Use char because int might match the return type of a GCC
19261 builtin and then its argument prototype would still apply. */
19262 #ifdef __cplusplus
19263 extern "C"
19264 #endif
19265 char $ac_func ();
19266 /* The GNU C library defines this for functions which it implements
19267 to always fail with ENOSYS. Some functions are actually named
19268 something starting with __ and the normal name is an alias. */
19269 #if defined __stub_$ac_func || defined __stub___$ac_func
19270 choke me
19271 #endif
19274 main ()
19276 return $ac_func ();
19278 return 0;
19280 _ACEOF
19281 rm -f conftest.$ac_objext conftest$ac_exeext
19282 if { (ac_try="$ac_link"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19286 esac
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_link") 2>conftest.er1
19289 ac_status=$?
19290 grep -v '^ *+' conftest.er1 >conftest.err
19291 rm -f conftest.er1
19292 cat conftest.err >&5
19293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19294 (exit $ac_status); } && {
19295 test -z "$ac_c_werror_flag" ||
19296 test ! -s conftest.err
19297 } && test -s conftest$ac_exeext &&
19298 $as_test_x conftest$ac_exeext; then
19299 eval "$as_ac_var=yes"
19300 else
19301 echo "$as_me: failed program was:" >&5
19302 sed 's/^/| /' conftest.$ac_ext >&5
19304 eval "$as_ac_var=no"
19307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19308 conftest$ac_exeext conftest.$ac_ext
19310 ac_res=`eval echo '${'$as_ac_var'}'`
19311 { echo "$as_me:$LINENO: result: $ac_res" >&5
19312 echo "${ECHO_T}$ac_res" >&6; }
19313 if test `eval echo '${'$as_ac_var'}'` = yes; then
19314 cat >>confdefs.h <<_ACEOF
19315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19316 _ACEOF
19318 else
19319 # strftime is in -lintl on SCO UNIX.
19320 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19321 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19322 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 else
19325 ac_check_lib_save_LIBS=$LIBS
19326 LIBS="-lintl $LIBS"
19327 cat >conftest.$ac_ext <<_ACEOF
19328 /* confdefs.h. */
19329 _ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19334 /* Override any GCC internal prototype to avoid an error.
19335 Use char because int might match the return type of a GCC
19336 builtin and then its argument prototype would still apply. */
19337 #ifdef __cplusplus
19338 extern "C"
19339 #endif
19340 char strftime ();
19342 main ()
19344 return strftime ();
19346 return 0;
19348 _ACEOF
19349 rm -f conftest.$ac_objext conftest$ac_exeext
19350 if { (ac_try="$ac_link"
19351 case "(($ac_try" in
19352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19353 *) ac_try_echo=$ac_try;;
19354 esac
19355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19356 (eval "$ac_link") 2>conftest.er1
19357 ac_status=$?
19358 grep -v '^ *+' conftest.er1 >conftest.err
19359 rm -f conftest.er1
19360 cat conftest.err >&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); } && {
19363 test -z "$ac_c_werror_flag" ||
19364 test ! -s conftest.err
19365 } && test -s conftest$ac_exeext &&
19366 $as_test_x conftest$ac_exeext; then
19367 ac_cv_lib_intl_strftime=yes
19368 else
19369 echo "$as_me: failed program was:" >&5
19370 sed 's/^/| /' conftest.$ac_ext >&5
19372 ac_cv_lib_intl_strftime=no
19375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19376 conftest$ac_exeext conftest.$ac_ext
19377 LIBS=$ac_check_lib_save_LIBS
19379 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19380 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19381 if test $ac_cv_lib_intl_strftime = yes; then
19382 cat >>confdefs.h <<\_ACEOF
19383 #define HAVE_STRFTIME 1
19384 _ACEOF
19386 LIBS="-lintl $LIBS"
19390 done
19393 # UNIX98 PTYs.
19395 for ac_func in grantpt
19397 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19398 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19399 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19400 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19401 echo $ECHO_N "(cached) $ECHO_C" >&6
19402 else
19403 cat >conftest.$ac_ext <<_ACEOF
19404 /* confdefs.h. */
19405 _ACEOF
19406 cat confdefs.h >>conftest.$ac_ext
19407 cat >>conftest.$ac_ext <<_ACEOF
19408 /* end confdefs.h. */
19409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19411 #define $ac_func innocuous_$ac_func
19413 /* System header to define __stub macros and hopefully few prototypes,
19414 which can conflict with char $ac_func (); below.
19415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19416 <limits.h> exists even on freestanding compilers. */
19418 #ifdef __STDC__
19419 # include <limits.h>
19420 #else
19421 # include <assert.h>
19422 #endif
19424 #undef $ac_func
19426 /* Override any GCC internal prototype to avoid an error.
19427 Use char because int might match the return type of a GCC
19428 builtin and then its argument prototype would still apply. */
19429 #ifdef __cplusplus
19430 extern "C"
19431 #endif
19432 char $ac_func ();
19433 /* The GNU C library defines this for functions which it implements
19434 to always fail with ENOSYS. Some functions are actually named
19435 something starting with __ and the normal name is an alias. */
19436 #if defined __stub_$ac_func || defined __stub___$ac_func
19437 choke me
19438 #endif
19441 main ()
19443 return $ac_func ();
19445 return 0;
19447 _ACEOF
19448 rm -f conftest.$ac_objext conftest$ac_exeext
19449 if { (ac_try="$ac_link"
19450 case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19453 esac
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_link") 2>conftest.er1
19456 ac_status=$?
19457 grep -v '^ *+' conftest.er1 >conftest.err
19458 rm -f conftest.er1
19459 cat conftest.err >&5
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); } && {
19462 test -z "$ac_c_werror_flag" ||
19463 test ! -s conftest.err
19464 } && test -s conftest$ac_exeext &&
19465 $as_test_x conftest$ac_exeext; then
19466 eval "$as_ac_var=yes"
19467 else
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19471 eval "$as_ac_var=no"
19474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19475 conftest$ac_exeext conftest.$ac_ext
19477 ac_res=`eval echo '${'$as_ac_var'}'`
19478 { echo "$as_me:$LINENO: result: $ac_res" >&5
19479 echo "${ECHO_T}$ac_res" >&6; }
19480 if test `eval echo '${'$as_ac_var'}'` = yes; then
19481 cat >>confdefs.h <<_ACEOF
19482 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19483 _ACEOF
19486 done
19489 # PTY-related GNU extensions.
19491 for ac_func in getpt
19493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19494 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499 cat >conftest.$ac_ext <<_ACEOF
19500 /* confdefs.h. */
19501 _ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19507 #define $ac_func innocuous_$ac_func
19509 /* System header to define __stub macros and hopefully few prototypes,
19510 which can conflict with char $ac_func (); below.
19511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19512 <limits.h> exists even on freestanding compilers. */
19514 #ifdef __STDC__
19515 # include <limits.h>
19516 #else
19517 # include <assert.h>
19518 #endif
19520 #undef $ac_func
19522 /* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
19525 #ifdef __cplusplus
19526 extern "C"
19527 #endif
19528 char $ac_func ();
19529 /* The GNU C library defines this for functions which it implements
19530 to always fail with ENOSYS. Some functions are actually named
19531 something starting with __ and the normal name is an alias. */
19532 #if defined __stub_$ac_func || defined __stub___$ac_func
19533 choke me
19534 #endif
19537 main ()
19539 return $ac_func ();
19541 return 0;
19543 _ACEOF
19544 rm -f conftest.$ac_objext conftest$ac_exeext
19545 if { (ac_try="$ac_link"
19546 case "(($ac_try" in
19547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19548 *) ac_try_echo=$ac_try;;
19549 esac
19550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19551 (eval "$ac_link") 2>conftest.er1
19552 ac_status=$?
19553 grep -v '^ *+' conftest.er1 >conftest.err
19554 rm -f conftest.er1
19555 cat conftest.err >&5
19556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19557 (exit $ac_status); } && {
19558 test -z "$ac_c_werror_flag" ||
19559 test ! -s conftest.err
19560 } && test -s conftest$ac_exeext &&
19561 $as_test_x conftest$ac_exeext; then
19562 eval "$as_ac_var=yes"
19563 else
19564 echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19567 eval "$as_ac_var=no"
19570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19571 conftest$ac_exeext conftest.$ac_ext
19573 ac_res=`eval echo '${'$as_ac_var'}'`
19574 { echo "$as_me:$LINENO: result: $ac_res" >&5
19575 echo "${ECHO_T}$ac_res" >&6; }
19576 if test `eval echo '${'$as_ac_var'}'` = yes; then
19577 cat >>confdefs.h <<_ACEOF
19578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19579 _ACEOF
19582 done
19585 # Check this now, so that we will NOT find the above functions in ncurses.
19586 # That is because we have not set up to link ncurses in lib-src.
19587 # It's better to believe a function is not available
19588 # than to expect to find it in ncurses.
19590 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19591 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19592 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 else
19595 ac_check_lib_save_LIBS=$LIBS
19596 LIBS="-lncurses $LIBS"
19597 cat >conftest.$ac_ext <<_ACEOF
19598 /* confdefs.h. */
19599 _ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19604 /* Override any GCC internal prototype to avoid an error.
19605 Use char because int might match the return type of a GCC
19606 builtin and then its argument prototype would still apply. */
19607 #ifdef __cplusplus
19608 extern "C"
19609 #endif
19610 char tparm ();
19612 main ()
19614 return tparm ();
19616 return 0;
19618 _ACEOF
19619 rm -f conftest.$ac_objext conftest$ac_exeext
19620 if { (ac_try="$ac_link"
19621 case "(($ac_try" in
19622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19623 *) ac_try_echo=$ac_try;;
19624 esac
19625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19626 (eval "$ac_link") 2>conftest.er1
19627 ac_status=$?
19628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } && {
19633 test -z "$ac_c_werror_flag" ||
19634 test ! -s conftest.err
19635 } && test -s conftest$ac_exeext &&
19636 $as_test_x conftest$ac_exeext; then
19637 ac_cv_lib_ncurses_tparm=yes
19638 else
19639 echo "$as_me: failed program was:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19642 ac_cv_lib_ncurses_tparm=no
19645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19646 conftest$ac_exeext conftest.$ac_ext
19647 LIBS=$ac_check_lib_save_LIBS
19649 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19650 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19651 if test $ac_cv_lib_ncurses_tparm = yes; then
19652 cat >>confdefs.h <<_ACEOF
19653 #define HAVE_LIBNCURSES 1
19654 _ACEOF
19656 LIBS="-lncurses $LIBS"
19661 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19663 resolv=no
19664 cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h. */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h. */
19670 #include <netinet/in.h>
19671 #include <arpa/nameser.h>
19672 #include <resolv.h>
19674 main ()
19676 return res_init();
19678 return 0;
19680 _ACEOF
19681 rm -f conftest.$ac_objext conftest$ac_exeext
19682 if { (ac_try="$ac_link"
19683 case "(($ac_try" in
19684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19685 *) ac_try_echo=$ac_try;;
19686 esac
19687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19688 (eval "$ac_link") 2>conftest.er1
19689 ac_status=$?
19690 grep -v '^ *+' conftest.er1 >conftest.err
19691 rm -f conftest.er1
19692 cat conftest.err >&5
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } && {
19695 test -z "$ac_c_werror_flag" ||
19696 test ! -s conftest.err
19697 } && test -s conftest$ac_exeext &&
19698 $as_test_x conftest$ac_exeext; then
19699 have_res_init=yes
19700 else
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19704 have_res_init=no
19707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19708 conftest$ac_exeext conftest.$ac_ext
19709 if test "$have_res_init" = no; then
19710 OLIBS="$LIBS"
19711 LIBS="$LIBS -lresolv"
19712 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19713 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19714 cat >conftest.$ac_ext <<_ACEOF
19715 /* confdefs.h. */
19716 _ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 #include <netinet/in.h>
19721 #include <arpa/nameser.h>
19722 #include <resolv.h>
19724 main ()
19726 return res_init();
19728 return 0;
19730 _ACEOF
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext &&
19748 $as_test_x conftest$ac_exeext; then
19749 have_res_init=yes
19750 else
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19754 have_res_init=no
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19759 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19760 echo "${ECHO_T}$have_res_init" >&6; }
19761 if test "$have_res_init" = yes ; then
19762 resolv=yes
19764 LIBS="$OLIBS"
19767 if test "$have_res_init" = yes; then
19769 cat >>confdefs.h <<\_ACEOF
19770 #define HAVE_RES_INIT 1
19771 _ACEOF
19775 # Do we need the Hesiod library to provide the support routines?
19776 if test "$with_hesiod" = yes ; then
19777 # Don't set $LIBS here -- see comments above.
19778 { echo "$as_me:$LINENO: checking for res_send" >&5
19779 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19780 if test "${ac_cv_func_res_send+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 else
19783 cat >conftest.$ac_ext <<_ACEOF
19784 /* confdefs.h. */
19785 _ACEOF
19786 cat confdefs.h >>conftest.$ac_ext
19787 cat >>conftest.$ac_ext <<_ACEOF
19788 /* end confdefs.h. */
19789 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19791 #define res_send innocuous_res_send
19793 /* System header to define __stub macros and hopefully few prototypes,
19794 which can conflict with char res_send (); below.
19795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19796 <limits.h> exists even on freestanding compilers. */
19798 #ifdef __STDC__
19799 # include <limits.h>
19800 #else
19801 # include <assert.h>
19802 #endif
19804 #undef res_send
19806 /* Override any GCC internal prototype to avoid an error.
19807 Use char because int might match the return type of a GCC
19808 builtin and then its argument prototype would still apply. */
19809 #ifdef __cplusplus
19810 extern "C"
19811 #endif
19812 char res_send ();
19813 /* The GNU C library defines this for functions which it implements
19814 to always fail with ENOSYS. Some functions are actually named
19815 something starting with __ and the normal name is an alias. */
19816 #if defined __stub_res_send || defined __stub___res_send
19817 choke me
19818 #endif
19821 main ()
19823 return res_send ();
19825 return 0;
19827 _ACEOF
19828 rm -f conftest.$ac_objext conftest$ac_exeext
19829 if { (ac_try="$ac_link"
19830 case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19833 esac
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_link") 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } && {
19842 test -z "$ac_c_werror_flag" ||
19843 test ! -s conftest.err
19844 } && test -s conftest$ac_exeext &&
19845 $as_test_x conftest$ac_exeext; then
19846 ac_cv_func_res_send=yes
19847 else
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19851 ac_cv_func_res_send=no
19854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19855 conftest$ac_exeext conftest.$ac_ext
19857 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19858 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19859 if test $ac_cv_func_res_send = yes; then
19861 else
19862 { echo "$as_me:$LINENO: checking for __res_send" >&5
19863 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19864 if test "${ac_cv_func___res_send+set}" = set; then
19865 echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867 cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h. */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19873 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19875 #define __res_send innocuous___res_send
19877 /* System header to define __stub macros and hopefully few prototypes,
19878 which can conflict with char __res_send (); below.
19879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19880 <limits.h> exists even on freestanding compilers. */
19882 #ifdef __STDC__
19883 # include <limits.h>
19884 #else
19885 # include <assert.h>
19886 #endif
19888 #undef __res_send
19890 /* Override any GCC internal prototype to avoid an error.
19891 Use char because int might match the return type of a GCC
19892 builtin and then its argument prototype would still apply. */
19893 #ifdef __cplusplus
19894 extern "C"
19895 #endif
19896 char __res_send ();
19897 /* The GNU C library defines this for functions which it implements
19898 to always fail with ENOSYS. Some functions are actually named
19899 something starting with __ and the normal name is an alias. */
19900 #if defined __stub___res_send || defined __stub_____res_send
19901 choke me
19902 #endif
19905 main ()
19907 return __res_send ();
19909 return 0;
19911 _ACEOF
19912 rm -f conftest.$ac_objext conftest$ac_exeext
19913 if { (ac_try="$ac_link"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19917 esac
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_link") 2>conftest.er1
19920 ac_status=$?
19921 grep -v '^ *+' conftest.er1 >conftest.err
19922 rm -f conftest.er1
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } && {
19926 test -z "$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 } && test -s conftest$ac_exeext &&
19929 $as_test_x conftest$ac_exeext; then
19930 ac_cv_func___res_send=yes
19931 else
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_cv_func___res_send=no
19938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19939 conftest$ac_exeext conftest.$ac_ext
19941 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19942 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19943 if test $ac_cv_func___res_send = yes; then
19945 else
19946 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19947 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19948 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19950 else
19951 ac_check_lib_save_LIBS=$LIBS
19952 LIBS="-lresolv $LIBS"
19953 cat >conftest.$ac_ext <<_ACEOF
19954 /* confdefs.h. */
19955 _ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19960 /* Override any GCC internal prototype to avoid an error.
19961 Use char because int might match the return type of a GCC
19962 builtin and then its argument prototype would still apply. */
19963 #ifdef __cplusplus
19964 extern "C"
19965 #endif
19966 char res_send ();
19968 main ()
19970 return res_send ();
19972 return 0;
19974 _ACEOF
19975 rm -f conftest.$ac_objext conftest$ac_exeext
19976 if { (ac_try="$ac_link"
19977 case "(($ac_try" in
19978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19979 *) ac_try_echo=$ac_try;;
19980 esac
19981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19982 (eval "$ac_link") 2>conftest.er1
19983 ac_status=$?
19984 grep -v '^ *+' conftest.er1 >conftest.err
19985 rm -f conftest.er1
19986 cat conftest.err >&5
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); } && {
19989 test -z "$ac_c_werror_flag" ||
19990 test ! -s conftest.err
19991 } && test -s conftest$ac_exeext &&
19992 $as_test_x conftest$ac_exeext; then
19993 ac_cv_lib_resolv_res_send=yes
19994 else
19995 echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.$ac_ext >&5
19998 ac_cv_lib_resolv_res_send=no
20001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20002 conftest$ac_exeext conftest.$ac_ext
20003 LIBS=$ac_check_lib_save_LIBS
20005 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20006 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20007 if test $ac_cv_lib_resolv_res_send = yes; then
20008 resolv=yes
20009 else
20010 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20011 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20012 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015 ac_check_lib_save_LIBS=$LIBS
20016 LIBS="-lresolv $LIBS"
20017 cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h. */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20024 /* Override any GCC internal prototype to avoid an error.
20025 Use char because int might match the return type of a GCC
20026 builtin and then its argument prototype would still apply. */
20027 #ifdef __cplusplus
20028 extern "C"
20029 #endif
20030 char __res_send ();
20032 main ()
20034 return __res_send ();
20036 return 0;
20038 _ACEOF
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (ac_try="$ac_link"
20041 case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20044 esac
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_link") 2>conftest.er1
20047 ac_status=$?
20048 grep -v '^ *+' conftest.er1 >conftest.err
20049 rm -f conftest.er1
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } && {
20053 test -z "$ac_c_werror_flag" ||
20054 test ! -s conftest.err
20055 } && test -s conftest$ac_exeext &&
20056 $as_test_x conftest$ac_exeext; then
20057 ac_cv_lib_resolv___res_send=yes
20058 else
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_cv_lib_resolv___res_send=no
20065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20066 conftest$ac_exeext conftest.$ac_ext
20067 LIBS=$ac_check_lib_save_LIBS
20069 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20070 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20071 if test $ac_cv_lib_resolv___res_send = yes; then
20072 resolv=yes
20081 if test "$resolv" = yes ; then
20082 RESOLVLIB=-lresolv
20083 else
20084 RESOLVLIB=
20086 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20087 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20088 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20089 echo $ECHO_N "(cached) $ECHO_C" >&6
20090 else
20091 cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h. */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20097 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20099 #define hes_getmailhost innocuous_hes_getmailhost
20101 /* System header to define __stub macros and hopefully few prototypes,
20102 which can conflict with char hes_getmailhost (); below.
20103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20104 <limits.h> exists even on freestanding compilers. */
20106 #ifdef __STDC__
20107 # include <limits.h>
20108 #else
20109 # include <assert.h>
20110 #endif
20112 #undef hes_getmailhost
20114 /* Override any GCC internal prototype to avoid an error.
20115 Use char because int might match the return type of a GCC
20116 builtin and then its argument prototype would still apply. */
20117 #ifdef __cplusplus
20118 extern "C"
20119 #endif
20120 char hes_getmailhost ();
20121 /* The GNU C library defines this for functions which it implements
20122 to always fail with ENOSYS. Some functions are actually named
20123 something starting with __ and the normal name is an alias. */
20124 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20125 choke me
20126 #endif
20129 main ()
20131 return hes_getmailhost ();
20133 return 0;
20135 _ACEOF
20136 rm -f conftest.$ac_objext conftest$ac_exeext
20137 if { (ac_try="$ac_link"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_link") 2>conftest.er1
20144 ac_status=$?
20145 grep -v '^ *+' conftest.er1 >conftest.err
20146 rm -f conftest.er1
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } && {
20150 test -z "$ac_c_werror_flag" ||
20151 test ! -s conftest.err
20152 } && test -s conftest$ac_exeext &&
20153 $as_test_x conftest$ac_exeext; then
20154 ac_cv_func_hes_getmailhost=yes
20155 else
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20159 ac_cv_func_hes_getmailhost=no
20162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20163 conftest$ac_exeext conftest.$ac_ext
20165 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20166 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20167 if test $ac_cv_func_hes_getmailhost = yes; then
20169 else
20170 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20171 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20172 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20173 echo $ECHO_N "(cached) $ECHO_C" >&6
20174 else
20175 ac_check_lib_save_LIBS=$LIBS
20176 LIBS="-lhesiod $RESOLVLIB $LIBS"
20177 cat >conftest.$ac_ext <<_ACEOF
20178 /* confdefs.h. */
20179 _ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h. */
20184 /* Override any GCC internal prototype to avoid an error.
20185 Use char because int might match the return type of a GCC
20186 builtin and then its argument prototype would still apply. */
20187 #ifdef __cplusplus
20188 extern "C"
20189 #endif
20190 char hes_getmailhost ();
20192 main ()
20194 return hes_getmailhost ();
20196 return 0;
20198 _ACEOF
20199 rm -f conftest.$ac_objext conftest$ac_exeext
20200 if { (ac_try="$ac_link"
20201 case "(($ac_try" in
20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20204 esac
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206 (eval "$ac_link") 2>conftest.er1
20207 ac_status=$?
20208 grep -v '^ *+' conftest.er1 >conftest.err
20209 rm -f conftest.er1
20210 cat conftest.err >&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); } && {
20213 test -z "$ac_c_werror_flag" ||
20214 test ! -s conftest.err
20215 } && test -s conftest$ac_exeext &&
20216 $as_test_x conftest$ac_exeext; then
20217 ac_cv_lib_hesiod_hes_getmailhost=yes
20218 else
20219 echo "$as_me: failed program was:" >&5
20220 sed 's/^/| /' conftest.$ac_ext >&5
20222 ac_cv_lib_hesiod_hes_getmailhost=no
20225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20226 conftest$ac_exeext conftest.$ac_ext
20227 LIBS=$ac_check_lib_save_LIBS
20229 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20230 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20231 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20233 cat >>confdefs.h <<\_ACEOF
20234 #define HAVE_LIBHESIOD 1
20235 _ACEOF
20237 else
20245 # Do we need libresolv (due to res_init or Hesiod)?
20246 if test "$resolv" = yes ; then
20248 cat >>confdefs.h <<\_ACEOF
20249 #define HAVE_LIBRESOLV 1
20250 _ACEOF
20254 # These tell us which Kerberos-related libraries to use.
20255 if test "${with_kerberos+set}" = set; then
20257 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20258 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20259 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 else
20262 ac_check_lib_save_LIBS=$LIBS
20263 LIBS="-lcom_err $LIBS"
20264 cat >conftest.$ac_ext <<_ACEOF
20265 /* confdefs.h. */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h. */
20271 /* Override any GCC internal prototype to avoid an error.
20272 Use char because int might match the return type of a GCC
20273 builtin and then its argument prototype would still apply. */
20274 #ifdef __cplusplus
20275 extern "C"
20276 #endif
20277 char com_err ();
20279 main ()
20281 return com_err ();
20283 return 0;
20285 _ACEOF
20286 rm -f conftest.$ac_objext conftest$ac_exeext
20287 if { (ac_try="$ac_link"
20288 case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20291 esac
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_link") 2>conftest.er1
20294 ac_status=$?
20295 grep -v '^ *+' conftest.er1 >conftest.err
20296 rm -f conftest.er1
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest$ac_exeext &&
20303 $as_test_x conftest$ac_exeext; then
20304 ac_cv_lib_com_err_com_err=yes
20305 else
20306 echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20309 ac_cv_lib_com_err_com_err=no
20312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20313 conftest$ac_exeext conftest.$ac_ext
20314 LIBS=$ac_check_lib_save_LIBS
20316 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20317 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20318 if test $ac_cv_lib_com_err_com_err = yes; then
20319 cat >>confdefs.h <<_ACEOF
20320 #define HAVE_LIBCOM_ERR 1
20321 _ACEOF
20323 LIBS="-lcom_err $LIBS"
20328 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20329 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20330 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20332 else
20333 ac_check_lib_save_LIBS=$LIBS
20334 LIBS="-lk5crypto $LIBS"
20335 cat >conftest.$ac_ext <<_ACEOF
20336 /* confdefs.h. */
20337 _ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20342 /* Override any GCC internal prototype to avoid an error.
20343 Use char because int might match the return type of a GCC
20344 builtin and then its argument prototype would still apply. */
20345 #ifdef __cplusplus
20346 extern "C"
20347 #endif
20348 char mit_des_cbc_encrypt ();
20350 main ()
20352 return mit_des_cbc_encrypt ();
20354 return 0;
20356 _ACEOF
20357 rm -f conftest.$ac_objext conftest$ac_exeext
20358 if { (ac_try="$ac_link"
20359 case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20362 esac
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_link") 2>conftest.er1
20365 ac_status=$?
20366 grep -v '^ *+' conftest.er1 >conftest.err
20367 rm -f conftest.er1
20368 cat conftest.err >&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); } && {
20371 test -z "$ac_c_werror_flag" ||
20372 test ! -s conftest.err
20373 } && test -s conftest$ac_exeext &&
20374 $as_test_x conftest$ac_exeext; then
20375 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20376 else
20377 echo "$as_me: failed program was:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20380 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20384 conftest$ac_exeext conftest.$ac_ext
20385 LIBS=$ac_check_lib_save_LIBS
20387 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20388 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20389 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20390 cat >>confdefs.h <<_ACEOF
20391 #define HAVE_LIBK5CRYPTO 1
20392 _ACEOF
20394 LIBS="-lk5crypto $LIBS"
20399 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20400 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20401 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 else
20404 ac_check_lib_save_LIBS=$LIBS
20405 LIBS="-lcrypto $LIBS"
20406 cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h. */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h. */
20413 /* Override any GCC internal prototype to avoid an error.
20414 Use char because int might match the return type of a GCC
20415 builtin and then its argument prototype would still apply. */
20416 #ifdef __cplusplus
20417 extern "C"
20418 #endif
20419 char mit_des_cbc_encrypt ();
20421 main ()
20423 return mit_des_cbc_encrypt ();
20425 return 0;
20427 _ACEOF
20428 rm -f conftest.$ac_objext conftest$ac_exeext
20429 if { (ac_try="$ac_link"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20433 esac
20434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_link") 2>conftest.er1
20436 ac_status=$?
20437 grep -v '^ *+' conftest.er1 >conftest.err
20438 rm -f conftest.er1
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest$ac_exeext &&
20445 $as_test_x conftest$ac_exeext; then
20446 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20447 else
20448 echo "$as_me: failed program was:" >&5
20449 sed 's/^/| /' conftest.$ac_ext >&5
20451 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20455 conftest$ac_exeext conftest.$ac_ext
20456 LIBS=$ac_check_lib_save_LIBS
20458 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20459 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20460 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20461 cat >>confdefs.h <<_ACEOF
20462 #define HAVE_LIBCRYPTO 1
20463 _ACEOF
20465 LIBS="-lcrypto $LIBS"
20470 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20471 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20472 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20473 echo $ECHO_N "(cached) $ECHO_C" >&6
20474 else
20475 ac_check_lib_save_LIBS=$LIBS
20476 LIBS="-lkrb5 $LIBS"
20477 cat >conftest.$ac_ext <<_ACEOF
20478 /* confdefs.h. */
20479 _ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20484 /* Override any GCC internal prototype to avoid an error.
20485 Use char because int might match the return type of a GCC
20486 builtin and then its argument prototype would still apply. */
20487 #ifdef __cplusplus
20488 extern "C"
20489 #endif
20490 char krb5_init_context ();
20492 main ()
20494 return krb5_init_context ();
20496 return 0;
20498 _ACEOF
20499 rm -f conftest.$ac_objext conftest$ac_exeext
20500 if { (ac_try="$ac_link"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_link") 2>conftest.er1
20507 ac_status=$?
20508 grep -v '^ *+' conftest.er1 >conftest.err
20509 rm -f conftest.er1
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest$ac_exeext &&
20516 $as_test_x conftest$ac_exeext; then
20517 ac_cv_lib_krb5_krb5_init_context=yes
20518 else
20519 echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20522 ac_cv_lib_krb5_krb5_init_context=no
20525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20526 conftest$ac_exeext conftest.$ac_ext
20527 LIBS=$ac_check_lib_save_LIBS
20529 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20530 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20531 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20532 cat >>confdefs.h <<_ACEOF
20533 #define HAVE_LIBKRB5 1
20534 _ACEOF
20536 LIBS="-lkrb5 $LIBS"
20540 if test "${with_kerberos5+set}" != set; then
20542 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20543 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20544 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20546 else
20547 ac_check_lib_save_LIBS=$LIBS
20548 LIBS="-ldes425 $LIBS"
20549 cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h. */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20556 /* Override any GCC internal prototype to avoid an error.
20557 Use char because int might match the return type of a GCC
20558 builtin and then its argument prototype would still apply. */
20559 #ifdef __cplusplus
20560 extern "C"
20561 #endif
20562 char des_cbc_encrypt ();
20564 main ()
20566 return des_cbc_encrypt ();
20568 return 0;
20570 _ACEOF
20571 rm -f conftest.$ac_objext conftest$ac_exeext
20572 if { (ac_try="$ac_link"
20573 case "(($ac_try" in
20574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20575 *) ac_try_echo=$ac_try;;
20576 esac
20577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20578 (eval "$ac_link") 2>conftest.er1
20579 ac_status=$?
20580 grep -v '^ *+' conftest.er1 >conftest.err
20581 rm -f conftest.er1
20582 cat conftest.err >&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } && {
20585 test -z "$ac_c_werror_flag" ||
20586 test ! -s conftest.err
20587 } && test -s conftest$ac_exeext &&
20588 $as_test_x conftest$ac_exeext; then
20589 ac_cv_lib_des425_des_cbc_encrypt=yes
20590 else
20591 echo "$as_me: failed program was:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 ac_cv_lib_des425_des_cbc_encrypt=no
20597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20598 conftest$ac_exeext conftest.$ac_ext
20599 LIBS=$ac_check_lib_save_LIBS
20601 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20602 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20603 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20604 cat >>confdefs.h <<_ACEOF
20605 #define HAVE_LIBDES425 1
20606 _ACEOF
20608 LIBS="-ldes425 $LIBS"
20610 else
20612 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20613 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20614 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20615 echo $ECHO_N "(cached) $ECHO_C" >&6
20616 else
20617 ac_check_lib_save_LIBS=$LIBS
20618 LIBS="-ldes $LIBS"
20619 cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h. */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20626 /* Override any GCC internal prototype to avoid an error.
20627 Use char because int might match the return type of a GCC
20628 builtin and then its argument prototype would still apply. */
20629 #ifdef __cplusplus
20630 extern "C"
20631 #endif
20632 char des_cbc_encrypt ();
20634 main ()
20636 return des_cbc_encrypt ();
20638 return 0;
20640 _ACEOF
20641 rm -f conftest.$ac_objext conftest$ac_exeext
20642 if { (ac_try="$ac_link"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20646 esac
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_link") 2>conftest.er1
20649 ac_status=$?
20650 grep -v '^ *+' conftest.er1 >conftest.err
20651 rm -f conftest.er1
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && {
20655 test -z "$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 } && test -s conftest$ac_exeext &&
20658 $as_test_x conftest$ac_exeext; then
20659 ac_cv_lib_des_des_cbc_encrypt=yes
20660 else
20661 echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20664 ac_cv_lib_des_des_cbc_encrypt=no
20667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20668 conftest$ac_exeext conftest.$ac_ext
20669 LIBS=$ac_check_lib_save_LIBS
20671 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20672 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20673 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20674 cat >>confdefs.h <<_ACEOF
20675 #define HAVE_LIBDES 1
20676 _ACEOF
20678 LIBS="-ldes $LIBS"
20685 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20686 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20687 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
20689 else
20690 ac_check_lib_save_LIBS=$LIBS
20691 LIBS="-lkrb4 $LIBS"
20692 cat >conftest.$ac_ext <<_ACEOF
20693 /* confdefs.h. */
20694 _ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h. */
20699 /* Override any GCC internal prototype to avoid an error.
20700 Use char because int might match the return type of a GCC
20701 builtin and then its argument prototype would still apply. */
20702 #ifdef __cplusplus
20703 extern "C"
20704 #endif
20705 char krb_get_cred ();
20707 main ()
20709 return krb_get_cred ();
20711 return 0;
20713 _ACEOF
20714 rm -f conftest.$ac_objext conftest$ac_exeext
20715 if { (ac_try="$ac_link"
20716 case "(($ac_try" in
20717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718 *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721 (eval "$ac_link") 2>conftest.er1
20722 ac_status=$?
20723 grep -v '^ *+' conftest.er1 >conftest.err
20724 rm -f conftest.er1
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } && {
20728 test -z "$ac_c_werror_flag" ||
20729 test ! -s conftest.err
20730 } && test -s conftest$ac_exeext &&
20731 $as_test_x conftest$ac_exeext; then
20732 ac_cv_lib_krb4_krb_get_cred=yes
20733 else
20734 echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20737 ac_cv_lib_krb4_krb_get_cred=no
20740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20741 conftest$ac_exeext conftest.$ac_ext
20742 LIBS=$ac_check_lib_save_LIBS
20744 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20745 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20746 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20747 cat >>confdefs.h <<_ACEOF
20748 #define HAVE_LIBKRB4 1
20749 _ACEOF
20751 LIBS="-lkrb4 $LIBS"
20753 else
20755 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20756 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20757 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20758 echo $ECHO_N "(cached) $ECHO_C" >&6
20759 else
20760 ac_check_lib_save_LIBS=$LIBS
20761 LIBS="-lkrb $LIBS"
20762 cat >conftest.$ac_ext <<_ACEOF
20763 /* confdefs.h. */
20764 _ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
20769 /* Override any GCC internal prototype to avoid an error.
20770 Use char because int might match the return type of a GCC
20771 builtin and then its argument prototype would still apply. */
20772 #ifdef __cplusplus
20773 extern "C"
20774 #endif
20775 char krb_get_cred ();
20777 main ()
20779 return krb_get_cred ();
20781 return 0;
20783 _ACEOF
20784 rm -f conftest.$ac_objext conftest$ac_exeext
20785 if { (ac_try="$ac_link"
20786 case "(($ac_try" in
20787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788 *) ac_try_echo=$ac_try;;
20789 esac
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791 (eval "$ac_link") 2>conftest.er1
20792 ac_status=$?
20793 grep -v '^ *+' conftest.er1 >conftest.err
20794 rm -f conftest.er1
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } && {
20798 test -z "$ac_c_werror_flag" ||
20799 test ! -s conftest.err
20800 } && test -s conftest$ac_exeext &&
20801 $as_test_x conftest$ac_exeext; then
20802 ac_cv_lib_krb_krb_get_cred=yes
20803 else
20804 echo "$as_me: failed program was:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20807 ac_cv_lib_krb_krb_get_cred=no
20810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20811 conftest$ac_exeext conftest.$ac_ext
20812 LIBS=$ac_check_lib_save_LIBS
20814 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20815 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20816 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20817 cat >>confdefs.h <<_ACEOF
20818 #define HAVE_LIBKRB 1
20819 _ACEOF
20821 LIBS="-lkrb $LIBS"
20829 if test "${with_kerberos5+set}" = set; then
20831 for ac_header in krb5.h
20833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
20840 ac_res=`eval echo '${'$as_ac_Header'}'`
20841 { echo "$as_me:$LINENO: result: $ac_res" >&5
20842 echo "${ECHO_T}$ac_res" >&6; }
20843 else
20844 # Is the header compilable?
20845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20847 cat >conftest.$ac_ext <<_ACEOF
20848 /* confdefs.h. */
20849 _ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 $ac_includes_default
20854 #include <$ac_header>
20855 _ACEOF
20856 rm -f conftest.$ac_objext
20857 if { (ac_try="$ac_compile"
20858 case "(($ac_try" in
20859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20860 *) ac_try_echo=$ac_try;;
20861 esac
20862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20863 (eval "$ac_compile") 2>conftest.er1
20864 ac_status=$?
20865 grep -v '^ *+' conftest.er1 >conftest.err
20866 rm -f conftest.er1
20867 cat conftest.err >&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); } && {
20870 test -z "$ac_c_werror_flag" ||
20871 test ! -s conftest.err
20872 } && test -s conftest.$ac_objext; then
20873 ac_header_compiler=yes
20874 else
20875 echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20878 ac_header_compiler=no
20881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20883 echo "${ECHO_T}$ac_header_compiler" >&6; }
20885 # Is the header present?
20886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20888 cat >conftest.$ac_ext <<_ACEOF
20889 /* confdefs.h. */
20890 _ACEOF
20891 cat confdefs.h >>conftest.$ac_ext
20892 cat >>conftest.$ac_ext <<_ACEOF
20893 /* end confdefs.h. */
20894 #include <$ac_header>
20895 _ACEOF
20896 if { (ac_try="$ac_cpp conftest.$ac_ext"
20897 case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20903 ac_status=$?
20904 grep -v '^ *+' conftest.er1 >conftest.err
20905 rm -f conftest.er1
20906 cat conftest.err >&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); } >/dev/null && {
20909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20910 test ! -s conftest.err
20911 }; then
20912 ac_header_preproc=yes
20913 else
20914 echo "$as_me: failed program was:" >&5
20915 sed 's/^/| /' conftest.$ac_ext >&5
20917 ac_header_preproc=no
20920 rm -f conftest.err conftest.$ac_ext
20921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20922 echo "${ECHO_T}$ac_header_preproc" >&6; }
20924 # So? What about this header?
20925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20926 yes:no: )
20927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20931 ac_header_preproc=yes
20933 no:yes:* )
20934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20948 esac
20949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20953 else
20954 eval "$as_ac_Header=\$ac_header_preproc"
20956 ac_res=`eval echo '${'$as_ac_Header'}'`
20957 { echo "$as_me:$LINENO: result: $ac_res" >&5
20958 echo "${ECHO_T}$ac_res" >&6; }
20961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20962 cat >>confdefs.h <<_ACEOF
20963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20964 _ACEOF
20968 done
20970 else
20972 for ac_header in des.h
20974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20981 ac_res=`eval echo '${'$as_ac_Header'}'`
20982 { echo "$as_me:$LINENO: result: $ac_res" >&5
20983 echo "${ECHO_T}$ac_res" >&6; }
20984 else
20985 # Is the header compilable?
20986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20988 cat >conftest.$ac_ext <<_ACEOF
20989 /* confdefs.h. */
20990 _ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h. */
20994 $ac_includes_default
20995 #include <$ac_header>
20996 _ACEOF
20997 rm -f conftest.$ac_objext
20998 if { (ac_try="$ac_compile"
20999 case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21002 esac
21003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_compile") 2>conftest.er1
21005 ac_status=$?
21006 grep -v '^ *+' conftest.er1 >conftest.err
21007 rm -f conftest.er1
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010 (exit $ac_status); } && {
21011 test -z "$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21013 } && test -s conftest.$ac_objext; then
21014 ac_header_compiler=yes
21015 else
21016 echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ac_header_compiler=no
21022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21024 echo "${ECHO_T}$ac_header_compiler" >&6; }
21026 # Is the header present?
21027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21029 cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h. */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 #include <$ac_header>
21036 _ACEOF
21037 if { (ac_try="$ac_cpp conftest.$ac_ext"
21038 case "(($ac_try" in
21039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040 *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21044 ac_status=$?
21045 grep -v '^ *+' conftest.er1 >conftest.err
21046 rm -f conftest.er1
21047 cat conftest.err >&5
21048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21049 (exit $ac_status); } >/dev/null && {
21050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21051 test ! -s conftest.err
21052 }; then
21053 ac_header_preproc=yes
21054 else
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21058 ac_header_preproc=no
21061 rm -f conftest.err conftest.$ac_ext
21062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21063 echo "${ECHO_T}$ac_header_preproc" >&6; }
21065 # So? What about this header?
21066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21067 yes:no: )
21068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21072 ac_header_preproc=yes
21074 no:yes:* )
21075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21078 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21082 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21089 esac
21090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21093 echo $ECHO_N "(cached) $ECHO_C" >&6
21094 else
21095 eval "$as_ac_Header=\$ac_header_preproc"
21097 ac_res=`eval echo '${'$as_ac_Header'}'`
21098 { echo "$as_me:$LINENO: result: $ac_res" >&5
21099 echo "${ECHO_T}$ac_res" >&6; }
21102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21103 cat >>confdefs.h <<_ACEOF
21104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21105 _ACEOF
21107 else
21109 for ac_header in kerberosIV/des.h
21111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21116 echo $ECHO_N "(cached) $ECHO_C" >&6
21118 ac_res=`eval echo '${'$as_ac_Header'}'`
21119 { echo "$as_me:$LINENO: result: $ac_res" >&5
21120 echo "${ECHO_T}$ac_res" >&6; }
21121 else
21122 # Is the header compilable?
21123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21125 cat >conftest.$ac_ext <<_ACEOF
21126 /* confdefs.h. */
21127 _ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21131 $ac_includes_default
21132 #include <$ac_header>
21133 _ACEOF
21134 rm -f conftest.$ac_objext
21135 if { (ac_try="$ac_compile"
21136 case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21139 esac
21140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_compile") 2>conftest.er1
21142 ac_status=$?
21143 grep -v '^ *+' conftest.er1 >conftest.err
21144 rm -f conftest.er1
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && {
21148 test -z "$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21150 } && test -s conftest.$ac_objext; then
21151 ac_header_compiler=yes
21152 else
21153 echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21156 ac_header_compiler=no
21159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21160 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21161 echo "${ECHO_T}$ac_header_compiler" >&6; }
21163 # Is the header present?
21164 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21165 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21166 cat >conftest.$ac_ext <<_ACEOF
21167 /* confdefs.h. */
21168 _ACEOF
21169 cat confdefs.h >>conftest.$ac_ext
21170 cat >>conftest.$ac_ext <<_ACEOF
21171 /* end confdefs.h. */
21172 #include <$ac_header>
21173 _ACEOF
21174 if { (ac_try="$ac_cpp conftest.$ac_ext"
21175 case "(($ac_try" in
21176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177 *) ac_try_echo=$ac_try;;
21178 esac
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21181 ac_status=$?
21182 grep -v '^ *+' conftest.er1 >conftest.err
21183 rm -f conftest.er1
21184 cat conftest.err >&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); } >/dev/null && {
21187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21188 test ! -s conftest.err
21189 }; then
21190 ac_header_preproc=yes
21191 else
21192 echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21195 ac_header_preproc=no
21198 rm -f conftest.err conftest.$ac_ext
21199 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21200 echo "${ECHO_T}$ac_header_preproc" >&6; }
21202 # So? What about this header?
21203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21204 yes:no: )
21205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21209 ac_header_preproc=yes
21211 no:yes:* )
21212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21226 esac
21227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21228 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21231 else
21232 eval "$as_ac_Header=\$ac_header_preproc"
21234 ac_res=`eval echo '${'$as_ac_Header'}'`
21235 { echo "$as_me:$LINENO: result: $ac_res" >&5
21236 echo "${ECHO_T}$ac_res" >&6; }
21239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21240 cat >>confdefs.h <<_ACEOF
21241 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21242 _ACEOF
21244 else
21246 for ac_header in kerberos/des.h
21248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21253 echo $ECHO_N "(cached) $ECHO_C" >&6
21255 ac_res=`eval echo '${'$as_ac_Header'}'`
21256 { echo "$as_me:$LINENO: result: $ac_res" >&5
21257 echo "${ECHO_T}$ac_res" >&6; }
21258 else
21259 # Is the header compilable?
21260 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21262 cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h. */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h. */
21268 $ac_includes_default
21269 #include <$ac_header>
21270 _ACEOF
21271 rm -f conftest.$ac_objext
21272 if { (ac_try="$ac_compile"
21273 case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21276 esac
21277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_compile") 2>conftest.er1
21279 ac_status=$?
21280 grep -v '^ *+' conftest.er1 >conftest.err
21281 rm -f conftest.er1
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); } && {
21285 test -z "$ac_c_werror_flag" ||
21286 test ! -s conftest.err
21287 } && test -s conftest.$ac_objext; then
21288 ac_header_compiler=yes
21289 else
21290 echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 ac_header_compiler=no
21296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21297 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21298 echo "${ECHO_T}$ac_header_compiler" >&6; }
21300 # Is the header present?
21301 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21303 cat >conftest.$ac_ext <<_ACEOF
21304 /* confdefs.h. */
21305 _ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 #include <$ac_header>
21310 _ACEOF
21311 if { (ac_try="$ac_cpp conftest.$ac_ext"
21312 case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21315 esac
21316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21318 ac_status=$?
21319 grep -v '^ *+' conftest.er1 >conftest.err
21320 rm -f conftest.er1
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } >/dev/null && {
21324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 }; then
21327 ac_header_preproc=yes
21328 else
21329 echo "$as_me: failed program was:" >&5
21330 sed 's/^/| /' conftest.$ac_ext >&5
21332 ac_header_preproc=no
21335 rm -f conftest.err conftest.$ac_ext
21336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21337 echo "${ECHO_T}$ac_header_preproc" >&6; }
21339 # So? What about this header?
21340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21341 yes:no: )
21342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21346 ac_header_preproc=yes
21348 no:yes:* )
21349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21363 esac
21364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21368 else
21369 eval "$as_ac_Header=\$ac_header_preproc"
21371 ac_res=`eval echo '${'$as_ac_Header'}'`
21372 { echo "$as_me:$LINENO: result: $ac_res" >&5
21373 echo "${ECHO_T}$ac_res" >&6; }
21376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21377 cat >>confdefs.h <<_ACEOF
21378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21379 _ACEOF
21383 done
21387 done
21391 done
21394 for ac_header in krb.h
21396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21401 echo $ECHO_N "(cached) $ECHO_C" >&6
21403 ac_res=`eval echo '${'$as_ac_Header'}'`
21404 { echo "$as_me:$LINENO: result: $ac_res" >&5
21405 echo "${ECHO_T}$ac_res" >&6; }
21406 else
21407 # Is the header compilable?
21408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21410 cat >conftest.$ac_ext <<_ACEOF
21411 /* confdefs.h. */
21412 _ACEOF
21413 cat confdefs.h >>conftest.$ac_ext
21414 cat >>conftest.$ac_ext <<_ACEOF
21415 /* end confdefs.h. */
21416 $ac_includes_default
21417 #include <$ac_header>
21418 _ACEOF
21419 rm -f conftest.$ac_objext
21420 if { (ac_try="$ac_compile"
21421 case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21424 esac
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_compile") 2>conftest.er1
21427 ac_status=$?
21428 grep -v '^ *+' conftest.er1 >conftest.err
21429 rm -f conftest.er1
21430 cat conftest.err >&5
21431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432 (exit $ac_status); } && {
21433 test -z "$ac_c_werror_flag" ||
21434 test ! -s conftest.err
21435 } && test -s conftest.$ac_objext; then
21436 ac_header_compiler=yes
21437 else
21438 echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.$ac_ext >&5
21441 ac_header_compiler=no
21444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21446 echo "${ECHO_T}$ac_header_compiler" >&6; }
21448 # Is the header present?
21449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21451 cat >conftest.$ac_ext <<_ACEOF
21452 /* confdefs.h. */
21453 _ACEOF
21454 cat confdefs.h >>conftest.$ac_ext
21455 cat >>conftest.$ac_ext <<_ACEOF
21456 /* end confdefs.h. */
21457 #include <$ac_header>
21458 _ACEOF
21459 if { (ac_try="$ac_cpp conftest.$ac_ext"
21460 case "(($ac_try" in
21461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462 *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21466 ac_status=$?
21467 grep -v '^ *+' conftest.er1 >conftest.err
21468 rm -f conftest.er1
21469 cat conftest.err >&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); } >/dev/null && {
21472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21473 test ! -s conftest.err
21474 }; then
21475 ac_header_preproc=yes
21476 else
21477 echo "$as_me: failed program was:" >&5
21478 sed 's/^/| /' conftest.$ac_ext >&5
21480 ac_header_preproc=no
21483 rm -f conftest.err conftest.$ac_ext
21484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21485 echo "${ECHO_T}$ac_header_preproc" >&6; }
21487 # So? What about this header?
21488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21489 yes:no: )
21490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21494 ac_header_preproc=yes
21496 no:yes:* )
21497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21511 esac
21512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21516 else
21517 eval "$as_ac_Header=\$ac_header_preproc"
21519 ac_res=`eval echo '${'$as_ac_Header'}'`
21520 { echo "$as_me:$LINENO: result: $ac_res" >&5
21521 echo "${ECHO_T}$ac_res" >&6; }
21524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21525 cat >>confdefs.h <<_ACEOF
21526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21527 _ACEOF
21529 else
21531 for ac_header in kerberosIV/krb.h
21533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 ac_res=`eval echo '${'$as_ac_Header'}'`
21541 { echo "$as_me:$LINENO: result: $ac_res" >&5
21542 echo "${ECHO_T}$ac_res" >&6; }
21543 else
21544 # Is the header compilable?
21545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21547 cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h. */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 $ac_includes_default
21554 #include <$ac_header>
21555 _ACEOF
21556 rm -f conftest.$ac_objext
21557 if { (ac_try="$ac_compile"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21561 esac
21562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_compile") 2>conftest.er1
21564 ac_status=$?
21565 grep -v '^ *+' conftest.er1 >conftest.err
21566 rm -f conftest.er1
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } && {
21570 test -z "$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21572 } && test -s conftest.$ac_objext; then
21573 ac_header_compiler=yes
21574 else
21575 echo "$as_me: failed program was:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21578 ac_header_compiler=no
21581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21583 echo "${ECHO_T}$ac_header_compiler" >&6; }
21585 # Is the header present?
21586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21588 cat >conftest.$ac_ext <<_ACEOF
21589 /* confdefs.h. */
21590 _ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21594 #include <$ac_header>
21595 _ACEOF
21596 if { (ac_try="$ac_cpp conftest.$ac_ext"
21597 case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21603 ac_status=$?
21604 grep -v '^ *+' conftest.er1 >conftest.err
21605 rm -f conftest.er1
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } >/dev/null && {
21609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 }; then
21612 ac_header_preproc=yes
21613 else
21614 echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 ac_header_preproc=no
21620 rm -f conftest.err conftest.$ac_ext
21621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21622 echo "${ECHO_T}$ac_header_preproc" >&6; }
21624 # So? What about this header?
21625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21626 yes:no: )
21627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21631 ac_header_preproc=yes
21633 no:yes:* )
21634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21648 esac
21649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21652 echo $ECHO_N "(cached) $ECHO_C" >&6
21653 else
21654 eval "$as_ac_Header=\$ac_header_preproc"
21656 ac_res=`eval echo '${'$as_ac_Header'}'`
21657 { echo "$as_me:$LINENO: result: $ac_res" >&5
21658 echo "${ECHO_T}$ac_res" >&6; }
21661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21662 cat >>confdefs.h <<_ACEOF
21663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21664 _ACEOF
21666 else
21668 for ac_header in kerberos/krb.h
21670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 ac_res=`eval echo '${'$as_ac_Header'}'`
21678 { echo "$as_me:$LINENO: result: $ac_res" >&5
21679 echo "${ECHO_T}$ac_res" >&6; }
21680 else
21681 # Is the header compilable?
21682 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21684 cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h. */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21690 $ac_includes_default
21691 #include <$ac_header>
21692 _ACEOF
21693 rm -f conftest.$ac_objext
21694 if { (ac_try="$ac_compile"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21698 esac
21699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_compile") 2>conftest.er1
21701 ac_status=$?
21702 grep -v '^ *+' conftest.er1 >conftest.err
21703 rm -f conftest.er1
21704 cat conftest.err >&5
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); } && {
21707 test -z "$ac_c_werror_flag" ||
21708 test ! -s conftest.err
21709 } && test -s conftest.$ac_objext; then
21710 ac_header_compiler=yes
21711 else
21712 echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 ac_header_compiler=no
21718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21720 echo "${ECHO_T}$ac_header_compiler" >&6; }
21722 # Is the header present?
21723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21725 cat >conftest.$ac_ext <<_ACEOF
21726 /* confdefs.h. */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 #include <$ac_header>
21732 _ACEOF
21733 if { (ac_try="$ac_cpp conftest.$ac_ext"
21734 case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21737 esac
21738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21740 ac_status=$?
21741 grep -v '^ *+' conftest.er1 >conftest.err
21742 rm -f conftest.er1
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21745 (exit $ac_status); } >/dev/null && {
21746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21747 test ! -s conftest.err
21748 }; then
21749 ac_header_preproc=yes
21750 else
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21754 ac_header_preproc=no
21757 rm -f conftest.err conftest.$ac_ext
21758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21759 echo "${ECHO_T}$ac_header_preproc" >&6; }
21761 # So? What about this header?
21762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21763 yes:no: )
21764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21768 ac_header_preproc=yes
21770 no:yes:* )
21771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21785 esac
21786 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21789 echo $ECHO_N "(cached) $ECHO_C" >&6
21790 else
21791 eval "$as_ac_Header=\$ac_header_preproc"
21793 ac_res=`eval echo '${'$as_ac_Header'}'`
21794 { echo "$as_me:$LINENO: result: $ac_res" >&5
21795 echo "${ECHO_T}$ac_res" >&6; }
21798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21799 cat >>confdefs.h <<_ACEOF
21800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21801 _ACEOF
21805 done
21809 done
21813 done
21817 for ac_header in com_err.h
21819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21824 echo $ECHO_N "(cached) $ECHO_C" >&6
21826 ac_res=`eval echo '${'$as_ac_Header'}'`
21827 { echo "$as_me:$LINENO: result: $ac_res" >&5
21828 echo "${ECHO_T}$ac_res" >&6; }
21829 else
21830 # Is the header compilable?
21831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21833 cat >conftest.$ac_ext <<_ACEOF
21834 /* confdefs.h. */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 $ac_includes_default
21840 #include <$ac_header>
21841 _ACEOF
21842 rm -f conftest.$ac_objext
21843 if { (ac_try="$ac_compile"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847 esac
21848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21849 (eval "$ac_compile") 2>conftest.er1
21850 ac_status=$?
21851 grep -v '^ *+' conftest.er1 >conftest.err
21852 rm -f conftest.er1
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } && {
21856 test -z "$ac_c_werror_flag" ||
21857 test ! -s conftest.err
21858 } && test -s conftest.$ac_objext; then
21859 ac_header_compiler=yes
21860 else
21861 echo "$as_me: failed program was:" >&5
21862 sed 's/^/| /' conftest.$ac_ext >&5
21864 ac_header_compiler=no
21867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21869 echo "${ECHO_T}$ac_header_compiler" >&6; }
21871 # Is the header present?
21872 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21874 cat >conftest.$ac_ext <<_ACEOF
21875 /* confdefs.h. */
21876 _ACEOF
21877 cat confdefs.h >>conftest.$ac_ext
21878 cat >>conftest.$ac_ext <<_ACEOF
21879 /* end confdefs.h. */
21880 #include <$ac_header>
21881 _ACEOF
21882 if { (ac_try="$ac_cpp conftest.$ac_ext"
21883 case "(($ac_try" in
21884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21885 *) ac_try_echo=$ac_try;;
21886 esac
21887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21889 ac_status=$?
21890 grep -v '^ *+' conftest.er1 >conftest.err
21891 rm -f conftest.er1
21892 cat conftest.err >&5
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); } >/dev/null && {
21895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21896 test ! -s conftest.err
21897 }; then
21898 ac_header_preproc=yes
21899 else
21900 echo "$as_me: failed program was:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 ac_header_preproc=no
21906 rm -f conftest.err conftest.$ac_ext
21907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21908 echo "${ECHO_T}$ac_header_preproc" >&6; }
21910 # So? What about this header?
21911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21912 yes:no: )
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21917 ac_header_preproc=yes
21919 no:yes:* )
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21923 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21927 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21934 esac
21935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21938 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 else
21940 eval "$as_ac_Header=\$ac_header_preproc"
21942 ac_res=`eval echo '${'$as_ac_Header'}'`
21943 { echo "$as_me:$LINENO: result: $ac_res" >&5
21944 echo "${ECHO_T}$ac_res" >&6; }
21947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21948 cat >>confdefs.h <<_ACEOF
21949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21950 _ACEOF
21954 done
21958 # Solaris requires -lintl if you want strerror (which calls dgettext)
21959 # to return localized messages.
21961 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21962 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21963 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 else
21966 ac_check_lib_save_LIBS=$LIBS
21967 LIBS="-lintl $LIBS"
21968 cat >conftest.$ac_ext <<_ACEOF
21969 /* confdefs.h. */
21970 _ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21975 /* Override any GCC internal prototype to avoid an error.
21976 Use char because int might match the return type of a GCC
21977 builtin and then its argument prototype would still apply. */
21978 #ifdef __cplusplus
21979 extern "C"
21980 #endif
21981 char dgettext ();
21983 main ()
21985 return dgettext ();
21987 return 0;
21989 _ACEOF
21990 rm -f conftest.$ac_objext conftest$ac_exeext
21991 if { (ac_try="$ac_link"
21992 case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997 (eval "$ac_link") 2>conftest.er1
21998 ac_status=$?
21999 grep -v '^ *+' conftest.er1 >conftest.err
22000 rm -f conftest.er1
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); } && {
22004 test -z "$ac_c_werror_flag" ||
22005 test ! -s conftest.err
22006 } && test -s conftest$ac_exeext &&
22007 $as_test_x conftest$ac_exeext; then
22008 ac_cv_lib_intl_dgettext=yes
22009 else
22010 echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22013 ac_cv_lib_intl_dgettext=no
22016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22017 conftest$ac_exeext conftest.$ac_ext
22018 LIBS=$ac_check_lib_save_LIBS
22020 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22021 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22022 if test $ac_cv_lib_intl_dgettext = yes; then
22023 cat >>confdefs.h <<_ACEOF
22024 #define HAVE_LIBINTL 1
22025 _ACEOF
22027 LIBS="-lintl $LIBS"
22032 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22033 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22034 if test "${emacs_cv_localtime_cache+set}" = set; then
22035 echo $ECHO_N "(cached) $ECHO_C" >&6
22036 else
22037 if test x$ac_cv_func_tzset = xyes; then
22038 if test "$cross_compiling" = yes; then
22039 # If we have tzset, assume the worst when cross-compiling.
22040 emacs_cv_localtime_cache=yes
22041 else
22042 cat >conftest.$ac_ext <<_ACEOF
22043 /* confdefs.h. */
22044 _ACEOF
22045 cat confdefs.h >>conftest.$ac_ext
22046 cat >>conftest.$ac_ext <<_ACEOF
22047 /* end confdefs.h. */
22048 #include <time.h>
22049 extern char **environ;
22050 unset_TZ ()
22052 char **from, **to;
22053 for (to = from = environ; (*to = *from); from++)
22054 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22055 to++;
22057 char TZ_GMT0[] = "TZ=GMT0";
22058 char TZ_PST8[] = "TZ=PST8";
22059 main()
22061 time_t now = time ((time_t *) 0);
22062 int hour_GMT0, hour_unset;
22063 if (putenv (TZ_GMT0) != 0)
22064 exit (1);
22065 hour_GMT0 = localtime (&now)->tm_hour;
22066 unset_TZ ();
22067 hour_unset = localtime (&now)->tm_hour;
22068 if (putenv (TZ_PST8) != 0)
22069 exit (1);
22070 if (localtime (&now)->tm_hour == hour_GMT0)
22071 exit (1);
22072 unset_TZ ();
22073 if (localtime (&now)->tm_hour != hour_unset)
22074 exit (1);
22075 exit (0);
22077 _ACEOF
22078 rm -f conftest$ac_exeext
22079 if { (ac_try="$ac_link"
22080 case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22083 esac
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_link") 2>&5
22086 ac_status=$?
22087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22089 { (case "(($ac_try" in
22090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22091 *) ac_try_echo=$ac_try;;
22092 esac
22093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22094 (eval "$ac_try") 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; }; then
22098 emacs_cv_localtime_cache=no
22099 else
22100 echo "$as_me: program exited with status $ac_status" >&5
22101 echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22104 ( exit $ac_status )
22105 emacs_cv_localtime_cache=yes
22107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22111 else
22112 # If we lack tzset, report that localtime does not cache TZ,
22113 # since we can't invalidate the cache if we don't have tzset.
22114 emacs_cv_localtime_cache=no
22117 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22118 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22119 if test $emacs_cv_localtime_cache = yes; then
22121 cat >>confdefs.h <<\_ACEOF
22122 #define LOCALTIME_CACHE 1
22123 _ACEOF
22127 if test "x$HAVE_TIMEVAL" = xyes; then
22129 for ac_func in gettimeofday
22131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137 cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h. */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22145 #define $ac_func innocuous_$ac_func
22147 /* System header to define __stub macros and hopefully few prototypes,
22148 which can conflict with char $ac_func (); below.
22149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22150 <limits.h> exists even on freestanding compilers. */
22152 #ifdef __STDC__
22153 # include <limits.h>
22154 #else
22155 # include <assert.h>
22156 #endif
22158 #undef $ac_func
22160 /* Override any GCC internal prototype to avoid an error.
22161 Use char because int might match the return type of a GCC
22162 builtin and then its argument prototype would still apply. */
22163 #ifdef __cplusplus
22164 extern "C"
22165 #endif
22166 char $ac_func ();
22167 /* The GNU C library defines this for functions which it implements
22168 to always fail with ENOSYS. Some functions are actually named
22169 something starting with __ and the normal name is an alias. */
22170 #if defined __stub_$ac_func || defined __stub___$ac_func
22171 choke me
22172 #endif
22175 main ()
22177 return $ac_func ();
22179 return 0;
22181 _ACEOF
22182 rm -f conftest.$ac_objext conftest$ac_exeext
22183 if { (ac_try="$ac_link"
22184 case "(($ac_try" in
22185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186 *) ac_try_echo=$ac_try;;
22187 esac
22188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189 (eval "$ac_link") 2>conftest.er1
22190 ac_status=$?
22191 grep -v '^ *+' conftest.er1 >conftest.err
22192 rm -f conftest.er1
22193 cat conftest.err >&5
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } && {
22196 test -z "$ac_c_werror_flag" ||
22197 test ! -s conftest.err
22198 } && test -s conftest$ac_exeext &&
22199 $as_test_x conftest$ac_exeext; then
22200 eval "$as_ac_var=yes"
22201 else
22202 echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.$ac_ext >&5
22205 eval "$as_ac_var=no"
22208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22209 conftest$ac_exeext conftest.$ac_ext
22211 ac_res=`eval echo '${'$as_ac_var'}'`
22212 { echo "$as_me:$LINENO: result: $ac_res" >&5
22213 echo "${ECHO_T}$ac_res" >&6; }
22214 if test `eval echo '${'$as_ac_var'}'` = yes; then
22215 cat >>confdefs.h <<_ACEOF
22216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22217 _ACEOF
22220 done
22222 if test $ac_cv_func_gettimeofday = yes; then
22223 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22224 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22225 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22226 echo $ECHO_N "(cached) $ECHO_C" >&6
22227 else
22228 cat >conftest.$ac_ext <<_ACEOF
22229 /* confdefs.h. */
22230 _ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22235 #ifdef TIME_WITH_SYS_TIME
22236 #include <sys/time.h>
22237 #include <time.h>
22238 #else
22239 #ifdef HAVE_SYS_TIME_H
22240 #include <sys/time.h>
22241 #else
22242 #include <time.h>
22243 #endif
22244 #endif
22246 main ()
22248 struct timeval time;
22249 gettimeofday (&time, 0);
22251 return 0;
22253 _ACEOF
22254 rm -f conftest.$ac_objext
22255 if { (ac_try="$ac_compile"
22256 case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22259 esac
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_compile") 2>conftest.er1
22262 ac_status=$?
22263 grep -v '^ *+' conftest.er1 >conftest.err
22264 rm -f conftest.er1
22265 cat conftest.err >&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); } && {
22268 test -z "$ac_c_werror_flag" ||
22269 test ! -s conftest.err
22270 } && test -s conftest.$ac_objext; then
22271 emacs_cv_gettimeofday_two_arguments=yes
22272 else
22273 echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22276 emacs_cv_gettimeofday_two_arguments=no
22279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22281 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22282 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22283 if test $emacs_cv_gettimeofday_two_arguments = no; then
22285 cat >>confdefs.h <<\_ACEOF
22286 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22287 _ACEOF
22293 ok_so_far=yes
22294 { echo "$as_me:$LINENO: checking for socket" >&5
22295 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22296 if test "${ac_cv_func_socket+set}" = set; then
22297 echo $ECHO_N "(cached) $ECHO_C" >&6
22298 else
22299 cat >conftest.$ac_ext <<_ACEOF
22300 /* confdefs.h. */
22301 _ACEOF
22302 cat confdefs.h >>conftest.$ac_ext
22303 cat >>conftest.$ac_ext <<_ACEOF
22304 /* end confdefs.h. */
22305 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22307 #define socket innocuous_socket
22309 /* System header to define __stub macros and hopefully few prototypes,
22310 which can conflict with char socket (); below.
22311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22312 <limits.h> exists even on freestanding compilers. */
22314 #ifdef __STDC__
22315 # include <limits.h>
22316 #else
22317 # include <assert.h>
22318 #endif
22320 #undef socket
22322 /* Override any GCC internal prototype to avoid an error.
22323 Use char because int might match the return type of a GCC
22324 builtin and then its argument prototype would still apply. */
22325 #ifdef __cplusplus
22326 extern "C"
22327 #endif
22328 char socket ();
22329 /* The GNU C library defines this for functions which it implements
22330 to always fail with ENOSYS. Some functions are actually named
22331 something starting with __ and the normal name is an alias. */
22332 #if defined __stub_socket || defined __stub___socket
22333 choke me
22334 #endif
22337 main ()
22339 return socket ();
22341 return 0;
22343 _ACEOF
22344 rm -f conftest.$ac_objext conftest$ac_exeext
22345 if { (ac_try="$ac_link"
22346 case "(($ac_try" in
22347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22348 *) ac_try_echo=$ac_try;;
22349 esac
22350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22351 (eval "$ac_link") 2>conftest.er1
22352 ac_status=$?
22353 grep -v '^ *+' conftest.er1 >conftest.err
22354 rm -f conftest.er1
22355 cat conftest.err >&5
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } && {
22358 test -z "$ac_c_werror_flag" ||
22359 test ! -s conftest.err
22360 } && test -s conftest$ac_exeext &&
22361 $as_test_x conftest$ac_exeext; then
22362 ac_cv_func_socket=yes
22363 else
22364 echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22367 ac_cv_func_socket=no
22370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22371 conftest$ac_exeext conftest.$ac_ext
22373 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22374 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22375 if test $ac_cv_func_socket = yes; then
22377 else
22378 ok_so_far=no
22381 if test $ok_so_far = yes; then
22382 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22383 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22384 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22385 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22386 echo $ECHO_N "(cached) $ECHO_C" >&6
22388 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22389 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22390 else
22391 # Is the header compilable?
22392 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22393 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22394 cat >conftest.$ac_ext <<_ACEOF
22395 /* confdefs.h. */
22396 _ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 $ac_includes_default
22401 #include <netinet/in.h>
22402 _ACEOF
22403 rm -f conftest.$ac_objext
22404 if { (ac_try="$ac_compile"
22405 case "(($ac_try" in
22406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407 *) ac_try_echo=$ac_try;;
22408 esac
22409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22410 (eval "$ac_compile") 2>conftest.er1
22411 ac_status=$?
22412 grep -v '^ *+' conftest.er1 >conftest.err
22413 rm -f conftest.er1
22414 cat conftest.err >&5
22415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); } && {
22417 test -z "$ac_c_werror_flag" ||
22418 test ! -s conftest.err
22419 } && test -s conftest.$ac_objext; then
22420 ac_header_compiler=yes
22421 else
22422 echo "$as_me: failed program was:" >&5
22423 sed 's/^/| /' conftest.$ac_ext >&5
22425 ac_header_compiler=no
22428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22430 echo "${ECHO_T}$ac_header_compiler" >&6; }
22432 # Is the header present?
22433 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22434 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22435 cat >conftest.$ac_ext <<_ACEOF
22436 /* confdefs.h. */
22437 _ACEOF
22438 cat confdefs.h >>conftest.$ac_ext
22439 cat >>conftest.$ac_ext <<_ACEOF
22440 /* end confdefs.h. */
22441 #include <netinet/in.h>
22442 _ACEOF
22443 if { (ac_try="$ac_cpp conftest.$ac_ext"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22450 ac_status=$?
22451 grep -v '^ *+' conftest.er1 >conftest.err
22452 rm -f conftest.er1
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } >/dev/null && {
22456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 }; then
22459 ac_header_preproc=yes
22460 else
22461 echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22464 ac_header_preproc=no
22467 rm -f conftest.err conftest.$ac_ext
22468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22469 echo "${ECHO_T}$ac_header_preproc" >&6; }
22471 # So? What about this header?
22472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22473 yes:no: )
22474 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22475 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22476 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22477 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22478 ac_header_preproc=yes
22480 no:yes:* )
22481 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22482 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22483 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22484 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22485 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22486 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22487 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22488 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22489 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22490 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22491 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22492 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22495 esac
22496 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22497 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22498 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22499 echo $ECHO_N "(cached) $ECHO_C" >&6
22500 else
22501 ac_cv_header_netinet_in_h=$ac_header_preproc
22503 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22504 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22507 if test $ac_cv_header_netinet_in_h = yes; then
22509 else
22510 ok_so_far=no
22515 if test $ok_so_far = yes; then
22516 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22517 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22518 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22519 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22520 echo $ECHO_N "(cached) $ECHO_C" >&6
22522 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22523 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22524 else
22525 # Is the header compilable?
22526 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22527 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22528 cat >conftest.$ac_ext <<_ACEOF
22529 /* confdefs.h. */
22530 _ACEOF
22531 cat confdefs.h >>conftest.$ac_ext
22532 cat >>conftest.$ac_ext <<_ACEOF
22533 /* end confdefs.h. */
22534 $ac_includes_default
22535 #include <arpa/inet.h>
22536 _ACEOF
22537 rm -f conftest.$ac_objext
22538 if { (ac_try="$ac_compile"
22539 case "(($ac_try" in
22540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22541 *) ac_try_echo=$ac_try;;
22542 esac
22543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22544 (eval "$ac_compile") 2>conftest.er1
22545 ac_status=$?
22546 grep -v '^ *+' conftest.er1 >conftest.err
22547 rm -f conftest.er1
22548 cat conftest.err >&5
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); } && {
22551 test -z "$ac_c_werror_flag" ||
22552 test ! -s conftest.err
22553 } && test -s conftest.$ac_objext; then
22554 ac_header_compiler=yes
22555 else
22556 echo "$as_me: failed program was:" >&5
22557 sed 's/^/| /' conftest.$ac_ext >&5
22559 ac_header_compiler=no
22562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22564 echo "${ECHO_T}$ac_header_compiler" >&6; }
22566 # Is the header present?
22567 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22568 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22569 cat >conftest.$ac_ext <<_ACEOF
22570 /* confdefs.h. */
22571 _ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22575 #include <arpa/inet.h>
22576 _ACEOF
22577 if { (ac_try="$ac_cpp conftest.$ac_ext"
22578 case "(($ac_try" in
22579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22580 *) ac_try_echo=$ac_try;;
22581 esac
22582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22584 ac_status=$?
22585 grep -v '^ *+' conftest.er1 >conftest.err
22586 rm -f conftest.er1
22587 cat conftest.err >&5
22588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589 (exit $ac_status); } >/dev/null && {
22590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22591 test ! -s conftest.err
22592 }; then
22593 ac_header_preproc=yes
22594 else
22595 echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22598 ac_header_preproc=no
22601 rm -f conftest.err conftest.$ac_ext
22602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22603 echo "${ECHO_T}$ac_header_preproc" >&6; }
22605 # So? What about this header?
22606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22607 yes:no: )
22608 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22609 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22610 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22611 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22612 ac_header_preproc=yes
22614 no:yes:* )
22615 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22616 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22617 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22618 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22619 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22620 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22621 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22622 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22623 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22624 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22625 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22626 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22629 esac
22630 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22631 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22632 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22633 echo $ECHO_N "(cached) $ECHO_C" >&6
22634 else
22635 ac_cv_header_arpa_inet_h=$ac_header_preproc
22637 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22638 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22641 if test $ac_cv_header_arpa_inet_h = yes; then
22643 else
22644 ok_so_far=no
22649 if test $ok_so_far = yes; then
22651 cat >>confdefs.h <<\_ACEOF
22652 #define HAVE_INET_SOCKETS 1
22653 _ACEOF
22658 for ac_header in sys/ioctl.h
22660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22667 ac_res=`eval echo '${'$as_ac_Header'}'`
22668 { echo "$as_me:$LINENO: result: $ac_res" >&5
22669 echo "${ECHO_T}$ac_res" >&6; }
22670 else
22671 # Is the header compilable?
22672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22674 cat >conftest.$ac_ext <<_ACEOF
22675 /* confdefs.h. */
22676 _ACEOF
22677 cat confdefs.h >>conftest.$ac_ext
22678 cat >>conftest.$ac_ext <<_ACEOF
22679 /* end confdefs.h. */
22680 $ac_includes_default
22681 #include <$ac_header>
22682 _ACEOF
22683 rm -f conftest.$ac_objext
22684 if { (ac_try="$ac_compile"
22685 case "(($ac_try" in
22686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22687 *) ac_try_echo=$ac_try;;
22688 esac
22689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22690 (eval "$ac_compile") 2>conftest.er1
22691 ac_status=$?
22692 grep -v '^ *+' conftest.er1 >conftest.err
22693 rm -f conftest.er1
22694 cat conftest.err >&5
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); } && {
22697 test -z "$ac_c_werror_flag" ||
22698 test ! -s conftest.err
22699 } && test -s conftest.$ac_objext; then
22700 ac_header_compiler=yes
22701 else
22702 echo "$as_me: failed program was:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 ac_header_compiler=no
22708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22710 echo "${ECHO_T}$ac_header_compiler" >&6; }
22712 # Is the header present?
22713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22715 cat >conftest.$ac_ext <<_ACEOF
22716 /* confdefs.h. */
22717 _ACEOF
22718 cat confdefs.h >>conftest.$ac_ext
22719 cat >>conftest.$ac_ext <<_ACEOF
22720 /* end confdefs.h. */
22721 #include <$ac_header>
22722 _ACEOF
22723 if { (ac_try="$ac_cpp conftest.$ac_ext"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22727 esac
22728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22730 ac_status=$?
22731 grep -v '^ *+' conftest.er1 >conftest.err
22732 rm -f conftest.er1
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735 (exit $ac_status); } >/dev/null && {
22736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22738 }; then
22739 ac_header_preproc=yes
22740 else
22741 echo "$as_me: failed program was:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22744 ac_header_preproc=no
22747 rm -f conftest.err conftest.$ac_ext
22748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22749 echo "${ECHO_T}$ac_header_preproc" >&6; }
22751 # So? What about this header?
22752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22753 yes:no: )
22754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22758 ac_header_preproc=yes
22760 no:yes:* )
22761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22775 esac
22776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22779 echo $ECHO_N "(cached) $ECHO_C" >&6
22780 else
22781 eval "$as_ac_Header=\$ac_header_preproc"
22783 ac_res=`eval echo '${'$as_ac_Header'}'`
22784 { echo "$as_me:$LINENO: result: $ac_res" >&5
22785 echo "${ECHO_T}$ac_res" >&6; }
22788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22789 cat >>confdefs.h <<_ACEOF
22790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22791 _ACEOF
22795 done
22798 if test -f /usr/lpp/X11/bin/smt.exp; then
22800 cat >>confdefs.h <<\_ACEOF
22801 #define HAVE_AIX_SMT_EXP 1
22802 _ACEOF
22806 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22807 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22808 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22809 { echo "$as_me:$LINENO: result: yes" >&5
22810 echo "${ECHO_T}yes" >&6; }
22812 cat >>confdefs.h <<\_ACEOF
22813 #define HAVE_DEV_PTMX 1
22814 _ACEOF
22816 else
22817 { echo "$as_me:$LINENO: result: no" >&5
22818 echo "${ECHO_T}no" >&6; }
22821 { echo "$as_me:$LINENO: checking for pid_t" >&5
22822 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22823 if test "${ac_cv_type_pid_t+set}" = set; then
22824 echo $ECHO_N "(cached) $ECHO_C" >&6
22825 else
22826 cat >conftest.$ac_ext <<_ACEOF
22827 /* confdefs.h. */
22828 _ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h. */
22832 $ac_includes_default
22833 typedef pid_t ac__type_new_;
22835 main ()
22837 if ((ac__type_new_ *) 0)
22838 return 0;
22839 if (sizeof (ac__type_new_))
22840 return 0;
22842 return 0;
22844 _ACEOF
22845 rm -f conftest.$ac_objext
22846 if { (ac_try="$ac_compile"
22847 case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22850 esac
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852 (eval "$ac_compile") 2>conftest.er1
22853 ac_status=$?
22854 grep -v '^ *+' conftest.er1 >conftest.err
22855 rm -f conftest.er1
22856 cat conftest.err >&5
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); } && {
22859 test -z "$ac_c_werror_flag" ||
22860 test ! -s conftest.err
22861 } && test -s conftest.$ac_objext; then
22862 ac_cv_type_pid_t=yes
22863 else
22864 echo "$as_me: failed program was:" >&5
22865 sed 's/^/| /' conftest.$ac_ext >&5
22867 ac_cv_type_pid_t=no
22870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22872 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22873 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22874 if test $ac_cv_type_pid_t = yes; then
22876 else
22878 cat >>confdefs.h <<_ACEOF
22879 #define pid_t int
22880 _ACEOF
22885 for ac_header in vfork.h
22887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22892 echo $ECHO_N "(cached) $ECHO_C" >&6
22894 ac_res=`eval echo '${'$as_ac_Header'}'`
22895 { echo "$as_me:$LINENO: result: $ac_res" >&5
22896 echo "${ECHO_T}$ac_res" >&6; }
22897 else
22898 # Is the header compilable?
22899 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22901 cat >conftest.$ac_ext <<_ACEOF
22902 /* confdefs.h. */
22903 _ACEOF
22904 cat confdefs.h >>conftest.$ac_ext
22905 cat >>conftest.$ac_ext <<_ACEOF
22906 /* end confdefs.h. */
22907 $ac_includes_default
22908 #include <$ac_header>
22909 _ACEOF
22910 rm -f conftest.$ac_objext
22911 if { (ac_try="$ac_compile"
22912 case "(($ac_try" in
22913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22914 *) ac_try_echo=$ac_try;;
22915 esac
22916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22917 (eval "$ac_compile") 2>conftest.er1
22918 ac_status=$?
22919 grep -v '^ *+' conftest.er1 >conftest.err
22920 rm -f conftest.er1
22921 cat conftest.err >&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); } && {
22924 test -z "$ac_c_werror_flag" ||
22925 test ! -s conftest.err
22926 } && test -s conftest.$ac_objext; then
22927 ac_header_compiler=yes
22928 else
22929 echo "$as_me: failed program was:" >&5
22930 sed 's/^/| /' conftest.$ac_ext >&5
22932 ac_header_compiler=no
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22937 echo "${ECHO_T}$ac_header_compiler" >&6; }
22939 # Is the header present?
22940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22942 cat >conftest.$ac_ext <<_ACEOF
22943 /* confdefs.h. */
22944 _ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22948 #include <$ac_header>
22949 _ACEOF
22950 if { (ac_try="$ac_cpp conftest.$ac_ext"
22951 case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22954 esac
22955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22957 ac_status=$?
22958 grep -v '^ *+' conftest.er1 >conftest.err
22959 rm -f conftest.er1
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } >/dev/null && {
22963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22964 test ! -s conftest.err
22965 }; then
22966 ac_header_preproc=yes
22967 else
22968 echo "$as_me: failed program was:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22971 ac_header_preproc=no
22974 rm -f conftest.err conftest.$ac_ext
22975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22976 echo "${ECHO_T}$ac_header_preproc" >&6; }
22978 # So? What about this header?
22979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22980 yes:no: )
22981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22985 ac_header_preproc=yes
22987 no:yes:* )
22988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23002 esac
23003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23006 echo $ECHO_N "(cached) $ECHO_C" >&6
23007 else
23008 eval "$as_ac_Header=\$ac_header_preproc"
23010 ac_res=`eval echo '${'$as_ac_Header'}'`
23011 { echo "$as_me:$LINENO: result: $ac_res" >&5
23012 echo "${ECHO_T}$ac_res" >&6; }
23015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23016 cat >>confdefs.h <<_ACEOF
23017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23018 _ACEOF
23022 done
23026 for ac_func in fork vfork
23028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
23033 else
23034 cat >conftest.$ac_ext <<_ACEOF
23035 /* confdefs.h. */
23036 _ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h. */
23040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23042 #define $ac_func innocuous_$ac_func
23044 /* System header to define __stub macros and hopefully few prototypes,
23045 which can conflict with char $ac_func (); below.
23046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23047 <limits.h> exists even on freestanding compilers. */
23049 #ifdef __STDC__
23050 # include <limits.h>
23051 #else
23052 # include <assert.h>
23053 #endif
23055 #undef $ac_func
23057 /* Override any GCC internal prototype to avoid an error.
23058 Use char because int might match the return type of a GCC
23059 builtin and then its argument prototype would still apply. */
23060 #ifdef __cplusplus
23061 extern "C"
23062 #endif
23063 char $ac_func ();
23064 /* The GNU C library defines this for functions which it implements
23065 to always fail with ENOSYS. Some functions are actually named
23066 something starting with __ and the normal name is an alias. */
23067 #if defined __stub_$ac_func || defined __stub___$ac_func
23068 choke me
23069 #endif
23072 main ()
23074 return $ac_func ();
23076 return 0;
23078 _ACEOF
23079 rm -f conftest.$ac_objext conftest$ac_exeext
23080 if { (ac_try="$ac_link"
23081 case "(($ac_try" in
23082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23083 *) ac_try_echo=$ac_try;;
23084 esac
23085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23086 (eval "$ac_link") 2>conftest.er1
23087 ac_status=$?
23088 grep -v '^ *+' conftest.er1 >conftest.err
23089 rm -f conftest.er1
23090 cat conftest.err >&5
23091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092 (exit $ac_status); } && {
23093 test -z "$ac_c_werror_flag" ||
23094 test ! -s conftest.err
23095 } && test -s conftest$ac_exeext &&
23096 $as_test_x conftest$ac_exeext; then
23097 eval "$as_ac_var=yes"
23098 else
23099 echo "$as_me: failed program was:" >&5
23100 sed 's/^/| /' conftest.$ac_ext >&5
23102 eval "$as_ac_var=no"
23105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23106 conftest$ac_exeext conftest.$ac_ext
23108 ac_res=`eval echo '${'$as_ac_var'}'`
23109 { echo "$as_me:$LINENO: result: $ac_res" >&5
23110 echo "${ECHO_T}$ac_res" >&6; }
23111 if test `eval echo '${'$as_ac_var'}'` = yes; then
23112 cat >>confdefs.h <<_ACEOF
23113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23114 _ACEOF
23117 done
23119 if test "x$ac_cv_func_fork" = xyes; then
23120 { echo "$as_me:$LINENO: checking for working fork" >&5
23121 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23122 if test "${ac_cv_func_fork_works+set}" = set; then
23123 echo $ECHO_N "(cached) $ECHO_C" >&6
23124 else
23125 if test "$cross_compiling" = yes; then
23126 ac_cv_func_fork_works=cross
23127 else
23128 cat >conftest.$ac_ext <<_ACEOF
23129 /* confdefs.h. */
23130 _ACEOF
23131 cat confdefs.h >>conftest.$ac_ext
23132 cat >>conftest.$ac_ext <<_ACEOF
23133 /* end confdefs.h. */
23134 $ac_includes_default
23136 main ()
23139 /* By Ruediger Kuhlmann. */
23140 return fork () < 0;
23143 return 0;
23145 _ACEOF
23146 rm -f conftest$ac_exeext
23147 if { (ac_try="$ac_link"
23148 case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23151 esac
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_link") 2>&5
23154 ac_status=$?
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23157 { (case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23160 esac
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_try") 2>&5
23163 ac_status=$?
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 ac_cv_func_fork_works=yes
23167 else
23168 echo "$as_me: program exited with status $ac_status" >&5
23169 echo "$as_me: failed program was:" >&5
23170 sed 's/^/| /' conftest.$ac_ext >&5
23172 ( exit $ac_status )
23173 ac_cv_func_fork_works=no
23175 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23180 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23181 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23183 else
23184 ac_cv_func_fork_works=$ac_cv_func_fork
23186 if test "x$ac_cv_func_fork_works" = xcross; then
23187 case $host in
23188 *-*-amigaos* | *-*-msdosdjgpp*)
23189 # Override, as these systems have only a dummy fork() stub
23190 ac_cv_func_fork_works=no
23193 ac_cv_func_fork_works=yes
23195 esac
23196 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23197 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23199 ac_cv_func_vfork_works=$ac_cv_func_vfork
23200 if test "x$ac_cv_func_vfork" = xyes; then
23201 { echo "$as_me:$LINENO: checking for working vfork" >&5
23202 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23203 if test "${ac_cv_func_vfork_works+set}" = set; then
23204 echo $ECHO_N "(cached) $ECHO_C" >&6
23205 else
23206 if test "$cross_compiling" = yes; then
23207 ac_cv_func_vfork_works=cross
23208 else
23209 cat >conftest.$ac_ext <<_ACEOF
23210 /* confdefs.h. */
23211 _ACEOF
23212 cat confdefs.h >>conftest.$ac_ext
23213 cat >>conftest.$ac_ext <<_ACEOF
23214 /* end confdefs.h. */
23215 /* Thanks to Paul Eggert for this test. */
23216 $ac_includes_default
23217 #include <sys/wait.h>
23218 #ifdef HAVE_VFORK_H
23219 # include <vfork.h>
23220 #endif
23221 /* On some sparc systems, changes by the child to local and incoming
23222 argument registers are propagated back to the parent. The compiler
23223 is told about this with #include <vfork.h>, but some compilers
23224 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23225 static variable whose address is put into a register that is
23226 clobbered by the vfork. */
23227 static void
23228 #ifdef __cplusplus
23229 sparc_address_test (int arg)
23230 # else
23231 sparc_address_test (arg) int arg;
23232 #endif
23234 static pid_t child;
23235 if (!child) {
23236 child = vfork ();
23237 if (child < 0) {
23238 perror ("vfork");
23239 _exit(2);
23241 if (!child) {
23242 arg = getpid();
23243 write(-1, "", 0);
23244 _exit (arg);
23250 main ()
23252 pid_t parent = getpid ();
23253 pid_t child;
23255 sparc_address_test (0);
23257 child = vfork ();
23259 if (child == 0) {
23260 /* Here is another test for sparc vfork register problems. This
23261 test uses lots of local variables, at least as many local
23262 variables as main has allocated so far including compiler
23263 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23264 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23265 reuse the register of parent for one of the local variables,
23266 since it will think that parent can't possibly be used any more
23267 in this routine. Assigning to the local variable will thus
23268 munge parent in the parent process. */
23269 pid_t
23270 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23271 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23272 /* Convince the compiler that p..p7 are live; otherwise, it might
23273 use the same hardware register for all 8 local variables. */
23274 if (p != p1 || p != p2 || p != p3 || p != p4
23275 || p != p5 || p != p6 || p != p7)
23276 _exit(1);
23278 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23279 from child file descriptors. If the child closes a descriptor
23280 before it execs or exits, this munges the parent's descriptor
23281 as well. Test for this by closing stdout in the child. */
23282 _exit(close(fileno(stdout)) != 0);
23283 } else {
23284 int status;
23285 struct stat st;
23287 while (wait(&status) != child)
23289 return (
23290 /* Was there some problem with vforking? */
23291 child < 0
23293 /* Did the child fail? (This shouldn't happen.) */
23294 || status
23296 /* Did the vfork/compiler bug occur? */
23297 || parent != getpid()
23299 /* Did the file descriptor bug occur? */
23300 || fstat(fileno(stdout), &st) != 0
23304 _ACEOF
23305 rm -f conftest$ac_exeext
23306 if { (ac_try="$ac_link"
23307 case "(($ac_try" in
23308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309 *) ac_try_echo=$ac_try;;
23310 esac
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312 (eval "$ac_link") 2>&5
23313 ac_status=$?
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23316 { (case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23319 esac
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321 (eval "$ac_try") 2>&5
23322 ac_status=$?
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); }; }; then
23325 ac_cv_func_vfork_works=yes
23326 else
23327 echo "$as_me: program exited with status $ac_status" >&5
23328 echo "$as_me: failed program was:" >&5
23329 sed 's/^/| /' conftest.$ac_ext >&5
23331 ( exit $ac_status )
23332 ac_cv_func_vfork_works=no
23334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23339 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23340 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23343 if test "x$ac_cv_func_fork_works" = xcross; then
23344 ac_cv_func_vfork_works=$ac_cv_func_vfork
23345 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23346 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23349 if test "x$ac_cv_func_vfork_works" = xyes; then
23351 cat >>confdefs.h <<\_ACEOF
23352 #define HAVE_WORKING_VFORK 1
23353 _ACEOF
23355 else
23357 cat >>confdefs.h <<\_ACEOF
23358 #define vfork fork
23359 _ACEOF
23362 if test "x$ac_cv_func_fork_works" = xyes; then
23364 cat >>confdefs.h <<\_ACEOF
23365 #define HAVE_WORKING_FORK 1
23366 _ACEOF
23371 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23372 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23373 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23374 echo $ECHO_N "(cached) $ECHO_C" >&6
23375 else
23376 cat >conftest.$ac_ext <<_ACEOF
23377 /* confdefs.h. */
23378 _ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h. */
23382 #include <langinfo.h>
23384 main ()
23386 char* cs = nl_langinfo(CODESET);
23388 return 0;
23390 _ACEOF
23391 rm -f conftest.$ac_objext conftest$ac_exeext
23392 if { (ac_try="$ac_link"
23393 case "(($ac_try" in
23394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23395 *) ac_try_echo=$ac_try;;
23396 esac
23397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23398 (eval "$ac_link") 2>conftest.er1
23399 ac_status=$?
23400 grep -v '^ *+' conftest.er1 >conftest.err
23401 rm -f conftest.er1
23402 cat conftest.err >&5
23403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23404 (exit $ac_status); } && {
23405 test -z "$ac_c_werror_flag" ||
23406 test ! -s conftest.err
23407 } && test -s conftest$ac_exeext &&
23408 $as_test_x conftest$ac_exeext; then
23409 emacs_cv_langinfo_codeset=yes
23410 else
23411 echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23414 emacs_cv_langinfo_codeset=no
23417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23418 conftest$ac_exeext conftest.$ac_ext
23421 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23422 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23423 if test $emacs_cv_langinfo_codeset = yes; then
23425 cat >>confdefs.h <<\_ACEOF
23426 #define HAVE_LANGINFO_CODESET 1
23427 _ACEOF
23431 { echo "$as_me:$LINENO: checking for size_t" >&5
23432 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23433 if test "${ac_cv_type_size_t+set}" = set; then
23434 echo $ECHO_N "(cached) $ECHO_C" >&6
23435 else
23436 cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h. */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h. */
23442 $ac_includes_default
23443 typedef size_t ac__type_new_;
23445 main ()
23447 if ((ac__type_new_ *) 0)
23448 return 0;
23449 if (sizeof (ac__type_new_))
23450 return 0;
23452 return 0;
23454 _ACEOF
23455 rm -f conftest.$ac_objext
23456 if { (ac_try="$ac_compile"
23457 case "(($ac_try" in
23458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23459 *) ac_try_echo=$ac_try;;
23460 esac
23461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23462 (eval "$ac_compile") 2>conftest.er1
23463 ac_status=$?
23464 grep -v '^ *+' conftest.er1 >conftest.err
23465 rm -f conftest.er1
23466 cat conftest.err >&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } && {
23469 test -z "$ac_c_werror_flag" ||
23470 test ! -s conftest.err
23471 } && test -s conftest.$ac_objext; then
23472 ac_cv_type_size_t=yes
23473 else
23474 echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23477 ac_cv_type_size_t=no
23480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23482 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23483 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23484 if test $ac_cv_type_size_t = yes; then
23486 cat >>confdefs.h <<_ACEOF
23487 #define HAVE_SIZE_T 1
23488 _ACEOF
23494 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23495 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23496 if test "${ac_cv_type_mbstate_t+set}" = set; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23498 else
23499 cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h. */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h. */
23505 $ac_includes_default
23506 # include <wchar.h>
23508 main ()
23510 mbstate_t x; return sizeof x;
23512 return 0;
23514 _ACEOF
23515 rm -f conftest.$ac_objext
23516 if { (ac_try="$ac_compile"
23517 case "(($ac_try" in
23518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23519 *) ac_try_echo=$ac_try;;
23520 esac
23521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23522 (eval "$ac_compile") 2>conftest.er1
23523 ac_status=$?
23524 grep -v '^ *+' conftest.er1 >conftest.err
23525 rm -f conftest.er1
23526 cat conftest.err >&5
23527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23528 (exit $ac_status); } && {
23529 test -z "$ac_c_werror_flag" ||
23530 test ! -s conftest.err
23531 } && test -s conftest.$ac_objext; then
23532 ac_cv_type_mbstate_t=yes
23533 else
23534 echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23537 ac_cv_type_mbstate_t=no
23540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23542 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23543 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23544 if test $ac_cv_type_mbstate_t = yes; then
23546 cat >>confdefs.h <<\_ACEOF
23547 #define HAVE_MBSTATE_T 1
23548 _ACEOF
23550 else
23552 cat >>confdefs.h <<\_ACEOF
23553 #define mbstate_t int
23554 _ACEOF
23558 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23559 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23560 if test "${emacs_cv_c_restrict+set}" = set; then
23561 echo $ECHO_N "(cached) $ECHO_C" >&6
23562 else
23563 cat >conftest.$ac_ext <<_ACEOF
23564 /* confdefs.h. */
23565 _ACEOF
23566 cat confdefs.h >>conftest.$ac_ext
23567 cat >>conftest.$ac_ext <<_ACEOF
23568 /* end confdefs.h. */
23569 void fred (int *restrict x);
23571 main ()
23575 return 0;
23577 _ACEOF
23578 rm -f conftest.$ac_objext
23579 if { (ac_try="$ac_compile"
23580 case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23583 esac
23584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_compile") 2>conftest.er1
23586 ac_status=$?
23587 grep -v '^ *+' conftest.er1 >conftest.err
23588 rm -f conftest.er1
23589 cat conftest.err >&5
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); } && {
23592 test -z "$ac_c_werror_flag" ||
23593 test ! -s conftest.err
23594 } && test -s conftest.$ac_objext; then
23595 emacs_cv_c_restrict=yes
23596 else
23597 echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23600 cat >conftest.$ac_ext <<_ACEOF
23601 /* confdefs.h. */
23602 _ACEOF
23603 cat confdefs.h >>conftest.$ac_ext
23604 cat >>conftest.$ac_ext <<_ACEOF
23605 /* end confdefs.h. */
23606 void fred (int *__restrict x);
23608 main ()
23612 return 0;
23614 _ACEOF
23615 rm -f conftest.$ac_objext
23616 if { (ac_try="$ac_compile"
23617 case "(($ac_try" in
23618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23619 *) ac_try_echo=$ac_try;;
23620 esac
23621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23622 (eval "$ac_compile") 2>conftest.er1
23623 ac_status=$?
23624 grep -v '^ *+' conftest.er1 >conftest.err
23625 rm -f conftest.er1
23626 cat conftest.err >&5
23627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628 (exit $ac_status); } && {
23629 test -z "$ac_c_werror_flag" ||
23630 test ! -s conftest.err
23631 } && test -s conftest.$ac_objext; then
23632 emacs_cv_c_restrict=__restrict
23633 else
23634 echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23637 emacs_cv_c_restrict=no
23640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23646 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23647 case "$emacs_cv_c_restrict" in
23648 yes) emacs_restrict=restrict;;
23649 no) emacs_restrict="";;
23650 *) emacs_restrict="$emacs_cv_c_restrict";;
23651 esac
23652 if test "$emacs_restrict" != __restrict; then
23654 cat >>confdefs.h <<_ACEOF
23655 #define __restrict $emacs_restrict
23656 _ACEOF
23660 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23661 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23662 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23663 echo $ECHO_N "(cached) $ECHO_C" >&6
23664 else
23665 cat >conftest.$ac_ext <<_ACEOF
23666 /* confdefs.h. */
23667 _ACEOF
23668 cat confdefs.h >>conftest.$ac_ext
23669 cat >>conftest.$ac_ext <<_ACEOF
23670 /* end confdefs.h. */
23671 void fred (int x[__restrict]);
23673 main ()
23677 return 0;
23679 _ACEOF
23680 rm -f conftest.$ac_objext
23681 if { (ac_try="$ac_compile"
23682 case "(($ac_try" in
23683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23684 *) ac_try_echo=$ac_try;;
23685 esac
23686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23687 (eval "$ac_compile") 2>conftest.er1
23688 ac_status=$?
23689 grep -v '^ *+' conftest.er1 >conftest.err
23690 rm -f conftest.er1
23691 cat conftest.err >&5
23692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693 (exit $ac_status); } && {
23694 test -z "$ac_c_werror_flag" ||
23695 test ! -s conftest.err
23696 } && test -s conftest.$ac_objext; then
23697 emacs_cv_c_restrict_arr=yes
23698 else
23699 echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23702 emacs_cv_c_restrict_arr=no
23705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23707 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23708 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23709 if test "$emacs_cv_c_restrict_arr" = yes; then
23711 cat >>confdefs.h <<\_ACEOF
23712 #define __restrict_arr __restrict
23713 _ACEOF
23719 # Set up the CFLAGS for real compilation, so we can substitute it.
23720 CFLAGS="$REAL_CFLAGS"
23721 CPPFLAGS="$REAL_CPPFLAGS"
23723 #### Find out which version of Emacs this is.
23724 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23725 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23726 if test x"${version}" = x; then
23727 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23728 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23729 { (exit 1); exit 1; }; }
23732 ### Specify what sort of things we'll be editing into Makefile and config.h.
23733 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23769 cat >>confdefs.h <<_ACEOF
23770 #define EMACS_CONFIGURATION "${canonical}"
23771 _ACEOF
23774 cat >>confdefs.h <<_ACEOF
23775 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23776 _ACEOF
23779 cat >>confdefs.h <<_ACEOF
23780 #define config_machfile "${machfile}"
23781 _ACEOF
23784 cat >>confdefs.h <<_ACEOF
23785 #define config_opsysfile "${opsysfile}"
23786 _ACEOF
23789 cat >>confdefs.h <<_ACEOF
23790 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23791 _ACEOF
23794 cat >>confdefs.h <<_ACEOF
23795 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23796 _ACEOF
23799 cat >>confdefs.h <<_ACEOF
23800 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23801 _ACEOF
23804 cat >>confdefs.h <<_ACEOF
23805 #define UNEXEC_SRC ${UNEXEC_SRC}
23806 _ACEOF
23809 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23811 cat >>confdefs.h <<\_ACEOF
23812 #define HAVE_X_WINDOWS 1
23813 _ACEOF
23816 if test "${USE_X_TOOLKIT}" != "none" ; then
23818 cat >>confdefs.h <<\_ACEOF
23819 #define USE_X_TOOLKIT 1
23820 _ACEOF
23823 if test "${HAVE_X11}" = "yes" ; then
23825 cat >>confdefs.h <<\_ACEOF
23826 #define HAVE_X11 1
23827 _ACEOF
23830 if test "${HAVE_MENUS}" = "yes" ; then
23832 cat >>confdefs.h <<\_ACEOF
23833 #define HAVE_MENUS 1
23834 _ACEOF
23837 if test "${GNU_MALLOC}" = "yes" ; then
23839 cat >>confdefs.h <<\_ACEOF
23840 #define GNU_MALLOC 1
23841 _ACEOF
23844 if test "${REL_ALLOC}" = "yes" ; then
23846 cat >>confdefs.h <<\_ACEOF
23847 #define REL_ALLOC 1
23848 _ACEOF
23857 #### Report on what we decided to do.
23858 #### Report GTK as a toolkit, even if it doesn't use Xt.
23859 #### It makes printing result more understandable as using GTK sets
23860 #### toolkit_scroll_bars to yes by default.
23861 if test "${HAVE_GTK}" = "yes"; then
23862 USE_X_TOOLKIT=GTK
23865 echo "
23866 Configured for \`${canonical}'.
23868 Where should the build process find the source code? ${srcdir}
23869 What operating system and machine description files should Emacs use?
23870 \`${opsysfile}' and \`${machfile}'
23871 What compiler should emacs be built with? ${CC} ${CFLAGS}
23872 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23873 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23874 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23875 What window system should Emacs use? ${window_system}
23876 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23878 if test -n "${x_includes}"; then
23879 echo " Where do we find X Windows header files? ${x_includes}"
23880 else
23881 echo " Where do we find X Windows header files? Standard dirs"
23883 if test -n "${x_libraries}"; then
23884 echo " Where do we find X Windows libraries? ${x_libraries}"
23885 else
23886 echo " Where do we find X Windows libraries? Standard dirs"
23889 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23890 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23891 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23892 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23893 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23894 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23895 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23896 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23897 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23898 echo " Does Emacs use a font backend? ${USE_FONT_BACKEND}"
23900 if test "${USE_FONT_BACKEND}" = "yes"; then
23901 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
23902 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
23903 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
23904 echo " Does Emacs use -lxft? ${HAVE_XFT}"
23906 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23907 echo
23909 if test $USE_XASSERTS = yes; then
23910 echo " Compiling with asserts turned on."
23911 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23914 if test $USE_SYNC_INPUT = yes; then
23915 echo " Compiling with sync input."
23916 CPPFLAGS="$CPPFLAGS -DSYNC_INPUT=1"
23919 echo
23921 if test "$USE_X_TOOLKIT" = GTK; then
23922 case "$canonical" in
23923 *cygwin*)
23924 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23925 will probably get a crash on startup. If this happens, please use another
23926 toolkit for Emacs. See etc/PROBLEMS for more information."
23928 esac
23932 if test "$HAVE_CARBON" = "yes"; then
23933 echo
23934 echo "Warning: The Mac Carbon port is currently unsupported and has
23935 known problems. It is not recommended for use by non-developers.
23936 Read the emacs-devel archives for more information."
23937 echo
23940 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23941 echo "D-Bus integration has been tested for GNU/Linux only."
23942 echo
23946 # Remove any trailing slashes in these variables.
23947 test "${prefix}" != NONE &&
23948 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23949 test "${exec_prefix}" != NONE &&
23950 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23952 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23953 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23954 ## from Makefile.c can correctly provide the arg `-traditional' to the
23955 ## C preprocessor.
23957 cat >conftest.$ac_ext <<_ACEOF
23958 /* confdefs.h. */
23959 _ACEOF
23960 cat confdefs.h >>conftest.$ac_ext
23961 cat >>conftest.$ac_ext <<_ACEOF
23962 /* end confdefs.h. */
23963 yes..yes
23964 _ACEOF
23965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23966 $EGREP "yes..yes" >/dev/null 2>&1; then
23967 CPP_NEED_TRADITIONAL=no
23968 else
23969 CPP_NEED_TRADITIONAL=yes
23971 rm -f conftest*
23974 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"
23976 ac_config_commands="$ac_config_commands default"
23978 cat >confcache <<\_ACEOF
23979 # This file is a shell script that caches the results of configure
23980 # tests run on this system so they can be shared between configure
23981 # scripts and configure runs, see configure's option --config-cache.
23982 # It is not useful on other systems. If it contains results you don't
23983 # want to keep, you may remove or edit it.
23985 # config.status only pays attention to the cache file if you give it
23986 # the --recheck option to rerun configure.
23988 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23989 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23990 # following values.
23992 _ACEOF
23994 # The following way of writing the cache mishandles newlines in values,
23995 # but we know of no workaround that is simple, portable, and efficient.
23996 # So, we kill variables containing newlines.
23997 # Ultrix sh set writes to stderr and can't be redirected directly,
23998 # and sets the high bit in the cache file unless we assign to the vars.
24000 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24001 eval ac_val=\$$ac_var
24002 case $ac_val in #(
24003 *${as_nl}*)
24004 case $ac_var in #(
24005 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24006 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24007 esac
24008 case $ac_var in #(
24009 _ | IFS | as_nl) ;; #(
24010 *) $as_unset $ac_var ;;
24011 esac ;;
24012 esac
24013 done
24015 (set) 2>&1 |
24016 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24017 *${as_nl}ac_space=\ *)
24018 # `set' does not quote correctly, so add quotes (double-quote
24019 # substitution turns \\\\ into \\, and sed turns \\ into \).
24020 sed -n \
24021 "s/'/'\\\\''/g;
24022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24023 ;; #(
24025 # `set' quotes correctly as required by POSIX, so do not add quotes.
24026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24028 esac |
24029 sort
24031 sed '
24032 /^ac_cv_env_/b end
24033 t clear
24034 :clear
24035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24036 t end
24037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24038 :end' >>confcache
24039 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24040 if test -w "$cache_file"; then
24041 test "x$cache_file" != "x/dev/null" &&
24042 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24043 echo "$as_me: updating cache $cache_file" >&6;}
24044 cat confcache >$cache_file
24045 else
24046 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24047 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24050 rm -f confcache
24052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24053 # Let make expand exec_prefix.
24054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24056 DEFS=-DHAVE_CONFIG_H
24058 ac_libobjs=
24059 ac_ltlibobjs=
24060 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24061 # 1. Remove the extension, and $U if already installed.
24062 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24063 ac_i=`echo "$ac_i" | sed "$ac_script"`
24064 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24065 # will be set to the directory where LIBOBJS objects are built.
24066 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24067 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24068 done
24069 LIBOBJS=$ac_libobjs
24071 LTLIBOBJS=$ac_ltlibobjs
24075 : ${CONFIG_STATUS=./config.status}
24076 ac_clean_files_save=$ac_clean_files
24077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24078 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24079 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24080 cat >$CONFIG_STATUS <<_ACEOF
24081 #! $SHELL
24082 # Generated by $as_me.
24083 # Run this file to recreate the current configuration.
24084 # Compiler output produced by configure, useful for debugging
24085 # configure, is in config.log if it exists.
24087 debug=false
24088 ac_cs_recheck=false
24089 ac_cs_silent=false
24090 SHELL=\${CONFIG_SHELL-$SHELL}
24091 _ACEOF
24093 cat >>$CONFIG_STATUS <<\_ACEOF
24094 ## --------------------- ##
24095 ## M4sh Initialization. ##
24096 ## --------------------- ##
24098 # Be more Bourne compatible
24099 DUALCASE=1; export DUALCASE # for MKS sh
24100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24101 emulate sh
24102 NULLCMD=:
24103 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24104 # is contrary to our usage. Disable this feature.
24105 alias -g '${1+"$@"}'='"$@"'
24106 setopt NO_GLOB_SUBST
24107 else
24108 case `(set -o) 2>/dev/null` in
24109 *posix*) set -o posix ;;
24110 esac
24117 # PATH needs CR
24118 # Avoid depending upon Character Ranges.
24119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24122 as_cr_digits='0123456789'
24123 as_cr_alnum=$as_cr_Letters$as_cr_digits
24125 # The user is always right.
24126 if test "${PATH_SEPARATOR+set}" != set; then
24127 echo "#! /bin/sh" >conf$$.sh
24128 echo "exit 0" >>conf$$.sh
24129 chmod +x conf$$.sh
24130 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24131 PATH_SEPARATOR=';'
24132 else
24133 PATH_SEPARATOR=:
24135 rm -f conf$$.sh
24138 # Support unset when possible.
24139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24140 as_unset=unset
24141 else
24142 as_unset=false
24146 # IFS
24147 # We need space, tab and new line, in precisely that order. Quoting is
24148 # there to prevent editors from complaining about space-tab.
24149 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24150 # splitting by setting IFS to empty value.)
24151 as_nl='
24153 IFS=" "" $as_nl"
24155 # Find who we are. Look in the path if we contain no directory separator.
24156 case $0 in
24157 *[\\/]* ) as_myself=$0 ;;
24158 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24159 for as_dir in $PATH
24161 IFS=$as_save_IFS
24162 test -z "$as_dir" && as_dir=.
24163 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24164 done
24165 IFS=$as_save_IFS
24168 esac
24169 # We did not find ourselves, most probably we were run as `sh COMMAND'
24170 # in which case we are not to be found in the path.
24171 if test "x$as_myself" = x; then
24172 as_myself=$0
24174 if test ! -f "$as_myself"; then
24175 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24176 { (exit 1); exit 1; }
24179 # Work around bugs in pre-3.0 UWIN ksh.
24180 for as_var in ENV MAIL MAILPATH
24181 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24182 done
24183 PS1='$ '
24184 PS2='> '
24185 PS4='+ '
24187 # NLS nuisances.
24188 for as_var in \
24189 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24190 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24191 LC_TELEPHONE LC_TIME
24193 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24194 eval $as_var=C; export $as_var
24195 else
24196 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24198 done
24200 # Required to use basename.
24201 if expr a : '\(a\)' >/dev/null 2>&1 &&
24202 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24203 as_expr=expr
24204 else
24205 as_expr=false
24208 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24209 as_basename=basename
24210 else
24211 as_basename=false
24215 # Name of the executable.
24216 as_me=`$as_basename -- "$0" ||
24217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24218 X"$0" : 'X\(//\)$' \| \
24219 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24220 echo X/"$0" |
24221 sed '/^.*\/\([^/][^/]*\)\/*$/{
24222 s//\1/
24225 /^X\/\(\/\/\)$/{
24226 s//\1/
24229 /^X\/\(\/\).*/{
24230 s//\1/
24233 s/.*/./; q'`
24235 # CDPATH.
24236 $as_unset CDPATH
24240 as_lineno_1=$LINENO
24241 as_lineno_2=$LINENO
24242 test "x$as_lineno_1" != "x$as_lineno_2" &&
24243 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24245 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24246 # uniformly replaced by the line number. The first 'sed' inserts a
24247 # line-number line after each line using $LINENO; the second 'sed'
24248 # does the real work. The second script uses 'N' to pair each
24249 # line-number line with the line containing $LINENO, and appends
24250 # trailing '-' during substitution so that $LINENO is not a special
24251 # case at line end.
24252 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24253 # scripts with optimization help from Paolo Bonzini. Blame Lee
24254 # E. McMahon (1931-1989) for sed's syntax. :-)
24255 sed -n '
24257 /[$]LINENO/=
24258 ' <$as_myself |
24259 sed '
24260 s/[$]LINENO.*/&-/
24261 t lineno
24263 :lineno
24265 :loop
24266 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24267 t loop
24268 s/-\n.*//
24269 ' >$as_me.lineno &&
24270 chmod +x "$as_me.lineno" ||
24271 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24272 { (exit 1); exit 1; }; }
24274 # Don't try to exec as it changes $[0], causing all sort of problems
24275 # (the dirname of $[0] is not the place where we might find the
24276 # original and so on. Autoconf is especially sensitive to this).
24277 . "./$as_me.lineno"
24278 # Exit status is that of the last command.
24279 exit
24283 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24284 as_dirname=dirname
24285 else
24286 as_dirname=false
24289 ECHO_C= ECHO_N= ECHO_T=
24290 case `echo -n x` in
24291 -n*)
24292 case `echo 'x\c'` in
24293 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24294 *) ECHO_C='\c';;
24295 esac;;
24297 ECHO_N='-n';;
24298 esac
24300 if expr a : '\(a\)' >/dev/null 2>&1 &&
24301 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24302 as_expr=expr
24303 else
24304 as_expr=false
24307 rm -f conf$$ conf$$.exe conf$$.file
24308 if test -d conf$$.dir; then
24309 rm -f conf$$.dir/conf$$.file
24310 else
24311 rm -f conf$$.dir
24312 mkdir conf$$.dir
24314 echo >conf$$.file
24315 if ln -s conf$$.file conf$$ 2>/dev/null; then
24316 as_ln_s='ln -s'
24317 # ... but there are two gotchas:
24318 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24319 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24320 # In both cases, we have to default to `cp -p'.
24321 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24322 as_ln_s='cp -p'
24323 elif ln conf$$.file conf$$ 2>/dev/null; then
24324 as_ln_s=ln
24325 else
24326 as_ln_s='cp -p'
24328 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24329 rmdir conf$$.dir 2>/dev/null
24331 if mkdir -p . 2>/dev/null; then
24332 as_mkdir_p=:
24333 else
24334 test -d ./-p && rmdir ./-p
24335 as_mkdir_p=false
24338 if test -x / >/dev/null 2>&1; then
24339 as_test_x='test -x'
24340 else
24341 if ls -dL / >/dev/null 2>&1; then
24342 as_ls_L_option=L
24343 else
24344 as_ls_L_option=
24346 as_test_x='
24347 eval sh -c '\''
24348 if test -d "$1"; then
24349 test -d "$1/.";
24350 else
24351 case $1 in
24352 -*)set "./$1";;
24353 esac;
24354 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24355 ???[sx]*):;;*)false;;esac;fi
24356 '\'' sh
24359 as_executable_p=$as_test_x
24361 # Sed expression to map a string onto a valid CPP name.
24362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24364 # Sed expression to map a string onto a valid variable name.
24365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24368 exec 6>&1
24370 # Save the log message, to keep $[0] and so on meaningful, and to
24371 # report actual input values of CONFIG_FILES etc. instead of their
24372 # values after options handling.
24373 ac_log="
24374 This file was extended by emacs $as_me 23.0.50, which was
24375 generated by GNU Autoconf 2.61. Invocation command line was
24377 CONFIG_FILES = $CONFIG_FILES
24378 CONFIG_HEADERS = $CONFIG_HEADERS
24379 CONFIG_LINKS = $CONFIG_LINKS
24380 CONFIG_COMMANDS = $CONFIG_COMMANDS
24381 $ $0 $@
24383 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24386 _ACEOF
24388 cat >>$CONFIG_STATUS <<_ACEOF
24389 # Files that config.status was made for.
24390 config_files="$ac_config_files"
24391 config_headers="$ac_config_headers"
24392 config_commands="$ac_config_commands"
24394 _ACEOF
24396 cat >>$CONFIG_STATUS <<\_ACEOF
24397 ac_cs_usage="\
24398 \`$as_me' instantiates files from templates according to the
24399 current configuration.
24401 Usage: $0 [OPTIONS] [FILE]...
24403 -h, --help print this help, then exit
24404 -V, --version print version number and configuration settings, then exit
24405 -q, --quiet do not print progress messages
24406 -d, --debug don't remove temporary files
24407 --recheck update $as_me by reconfiguring in the same conditions
24408 --file=FILE[:TEMPLATE]
24409 instantiate the configuration file FILE
24410 --header=FILE[:TEMPLATE]
24411 instantiate the configuration header FILE
24413 Configuration files:
24414 $config_files
24416 Configuration headers:
24417 $config_headers
24419 Configuration commands:
24420 $config_commands
24422 Report bugs to <bug-autoconf@gnu.org>."
24424 _ACEOF
24425 cat >>$CONFIG_STATUS <<_ACEOF
24426 ac_cs_version="\\
24427 emacs config.status 23.0.50
24428 configured by $0, generated by GNU Autoconf 2.61,
24429 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24431 Copyright (C) 2006 Free Software Foundation, Inc.
24432 This config.status script is free software; the Free Software Foundation
24433 gives unlimited permission to copy, distribute and modify it."
24435 ac_pwd='$ac_pwd'
24436 srcdir='$srcdir'
24437 INSTALL='$INSTALL'
24438 _ACEOF
24440 cat >>$CONFIG_STATUS <<\_ACEOF
24441 # If no file are specified by the user, then we need to provide default
24442 # value. By we need to know if files were specified by the user.
24443 ac_need_defaults=:
24444 while test $# != 0
24446 case $1 in
24447 --*=*)
24448 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24449 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24450 ac_shift=:
24453 ac_option=$1
24454 ac_optarg=$2
24455 ac_shift=shift
24457 esac
24459 case $ac_option in
24460 # Handling of the options.
24461 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24462 ac_cs_recheck=: ;;
24463 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24464 echo "$ac_cs_version"; exit ;;
24465 --debug | --debu | --deb | --de | --d | -d )
24466 debug=: ;;
24467 --file | --fil | --fi | --f )
24468 $ac_shift
24469 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24470 ac_need_defaults=false;;
24471 --header | --heade | --head | --hea )
24472 $ac_shift
24473 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24474 ac_need_defaults=false;;
24475 --he | --h)
24476 # Conflict between --help and --header
24477 { echo "$as_me: error: ambiguous option: $1
24478 Try \`$0 --help' for more information." >&2
24479 { (exit 1); exit 1; }; };;
24480 --help | --hel | -h )
24481 echo "$ac_cs_usage"; exit ;;
24482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24483 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24484 ac_cs_silent=: ;;
24486 # This is an error.
24487 -*) { echo "$as_me: error: unrecognized option: $1
24488 Try \`$0 --help' for more information." >&2
24489 { (exit 1); exit 1; }; } ;;
24491 *) ac_config_targets="$ac_config_targets $1"
24492 ac_need_defaults=false ;;
24494 esac
24495 shift
24496 done
24498 ac_configure_extra_args=
24500 if $ac_cs_silent; then
24501 exec 6>/dev/null
24502 ac_configure_extra_args="$ac_configure_extra_args --silent"
24505 _ACEOF
24506 cat >>$CONFIG_STATUS <<_ACEOF
24507 if \$ac_cs_recheck; then
24508 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24509 CONFIG_SHELL=$SHELL
24510 export CONFIG_SHELL
24511 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24514 _ACEOF
24515 cat >>$CONFIG_STATUS <<\_ACEOF
24516 exec 5>>config.log
24518 echo
24519 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24520 ## Running $as_me. ##
24521 _ASBOX
24522 echo "$ac_log"
24523 } >&5
24525 _ACEOF
24526 cat >>$CONFIG_STATUS <<_ACEOF
24528 # INIT-COMMANDS
24530 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24532 _ACEOF
24534 cat >>$CONFIG_STATUS <<\_ACEOF
24536 # Handling of arguments.
24537 for ac_config_target in $ac_config_targets
24539 case $ac_config_target in
24540 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24541 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24542 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24543 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24544 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24545 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24546 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24547 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24548 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24549 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24550 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24551 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24552 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24554 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24555 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24556 { (exit 1); exit 1; }; };;
24557 esac
24558 done
24561 # If the user did not use the arguments to specify the items to instantiate,
24562 # then the envvar interface is used. Set only those that are not.
24563 # We use the long form for the default assignment because of an extremely
24564 # bizarre bug on SunOS 4.1.3.
24565 if $ac_need_defaults; then
24566 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24567 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24568 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24571 # Have a temporary directory for convenience. Make it in the build tree
24572 # simply because there is no reason against having it here, and in addition,
24573 # creating and moving files from /tmp can sometimes cause problems.
24574 # Hook for its removal unless debugging.
24575 # Note that there is a small window in which the directory will not be cleaned:
24576 # after its creation but before its name has been assigned to `$tmp'.
24577 $debug ||
24579 tmp=
24580 trap 'exit_status=$?
24581 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24583 trap '{ (exit 1); exit 1; }' 1 2 13 15
24585 # Create a (secure) tmp directory for tmp files.
24588 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24589 test -n "$tmp" && test -d "$tmp"
24590 } ||
24592 tmp=./conf$$-$RANDOM
24593 (umask 077 && mkdir "$tmp")
24594 } ||
24596 echo "$me: cannot create a temporary directory in ." >&2
24597 { (exit 1); exit 1; }
24601 # Set up the sed scripts for CONFIG_FILES section.
24604 # No need to generate the scripts if there are no CONFIG_FILES.
24605 # This happens for instance when ./config.status config.h
24606 if test -n "$CONFIG_FILES"; then
24608 _ACEOF
24612 ac_delim='%!_!# '
24613 for ac_last_try in false false false false false :; do
24614 cat >conf$$subs.sed <<_ACEOF
24615 SHELL!$SHELL$ac_delim
24616 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24617 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24618 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24619 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24620 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24621 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24622 exec_prefix!$exec_prefix$ac_delim
24623 prefix!$prefix$ac_delim
24624 program_transform_name!$program_transform_name$ac_delim
24625 bindir!$bindir$ac_delim
24626 sbindir!$sbindir$ac_delim
24627 libexecdir!$libexecdir$ac_delim
24628 datarootdir!$datarootdir$ac_delim
24629 datadir!$datadir$ac_delim
24630 sysconfdir!$sysconfdir$ac_delim
24631 sharedstatedir!$sharedstatedir$ac_delim
24632 localstatedir!$localstatedir$ac_delim
24633 includedir!$includedir$ac_delim
24634 oldincludedir!$oldincludedir$ac_delim
24635 docdir!$docdir$ac_delim
24636 infodir!$infodir$ac_delim
24637 htmldir!$htmldir$ac_delim
24638 dvidir!$dvidir$ac_delim
24639 pdfdir!$pdfdir$ac_delim
24640 psdir!$psdir$ac_delim
24641 libdir!$libdir$ac_delim
24642 localedir!$localedir$ac_delim
24643 mandir!$mandir$ac_delim
24644 DEFS!$DEFS$ac_delim
24645 ECHO_C!$ECHO_C$ac_delim
24646 ECHO_N!$ECHO_N$ac_delim
24647 ECHO_T!$ECHO_T$ac_delim
24648 LIBS!$LIBS$ac_delim
24649 build_alias!$build_alias$ac_delim
24650 host_alias!$host_alias$ac_delim
24651 target_alias!$target_alias$ac_delim
24652 MAINT!$MAINT$ac_delim
24653 build!$build$ac_delim
24654 build_cpu!$build_cpu$ac_delim
24655 build_vendor!$build_vendor$ac_delim
24656 build_os!$build_os$ac_delim
24657 host!$host$ac_delim
24658 host_cpu!$host_cpu$ac_delim
24659 host_vendor!$host_vendor$ac_delim
24660 host_os!$host_os$ac_delim
24661 CC!$CC$ac_delim
24662 CFLAGS!$CFLAGS$ac_delim
24663 LDFLAGS!$LDFLAGS$ac_delim
24664 CPPFLAGS!$CPPFLAGS$ac_delim
24665 ac_ct_CC!$ac_ct_CC$ac_delim
24666 EXEEXT!$EXEEXT$ac_delim
24667 OBJEXT!$OBJEXT$ac_delim
24668 CPP!$CPP$ac_delim
24669 GREP!$GREP$ac_delim
24670 EGREP!$EGREP$ac_delim
24671 LN_S!$LN_S$ac_delim
24672 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24673 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24674 INSTALL_DATA!$INSTALL_DATA$ac_delim
24675 RANLIB!$RANLIB$ac_delim
24676 INSTALL_INFO!$INSTALL_INFO$ac_delim
24677 GZIP_PROG!$GZIP_PROG$ac_delim
24678 MAKEINFO!$MAKEINFO$ac_delim
24679 LIBSOUND!$LIBSOUND$ac_delim
24680 PKG_CONFIG!$PKG_CONFIG$ac_delim
24681 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24682 ALSA_LIBS!$ALSA_LIBS$ac_delim
24683 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24684 SET_MAKE!$SET_MAKE$ac_delim
24685 XMKMF!$XMKMF$ac_delim
24686 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24687 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24688 RSVG_LIBS!$RSVG_LIBS$ac_delim
24689 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24690 GTK_LIBS!$GTK_LIBS$ac_delim
24691 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24692 DBUS_LIBS!$DBUS_LIBS$ac_delim
24693 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24694 XFT_LIBS!$XFT_LIBS$ac_delim
24695 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24696 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24697 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24698 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24699 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24700 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24701 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24702 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24703 ALLOCA!$ALLOCA$ac_delim
24704 liblockfile!$liblockfile$ac_delim
24705 LIBOBJS!$LIBOBJS$ac_delim
24706 NEED_SETGID!$NEED_SETGID$ac_delim
24707 KMEM_GROUP!$KMEM_GROUP$ac_delim
24708 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24709 GETOPT_H!$GETOPT_H$ac_delim
24710 GETOPTOBJS!$GETOPTOBJS$ac_delim
24711 version!$version$ac_delim
24712 _ACEOF
24714 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24715 break
24716 elif $ac_last_try; then
24717 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24718 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24719 { (exit 1); exit 1; }; }
24720 else
24721 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24723 done
24725 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24726 if test -n "$ac_eof"; then
24727 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24728 ac_eof=`expr $ac_eof + 1`
24731 cat >>$CONFIG_STATUS <<_ACEOF
24732 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24734 _ACEOF
24735 sed '
24736 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24737 s/^/s,@/; s/!/@,|#_!!_#|/
24740 s/'"$ac_delim"'$/,g/; t
24741 s/$/\\/; p
24742 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24743 ' >>$CONFIG_STATUS <conf$$subs.sed
24744 rm -f conf$$subs.sed
24745 cat >>$CONFIG_STATUS <<_ACEOF
24746 CEOF$ac_eof
24747 _ACEOF
24750 ac_delim='%!_!# '
24751 for ac_last_try in false false false false false :; do
24752 cat >conf$$subs.sed <<_ACEOF
24753 configuration!$configuration$ac_delim
24754 canonical!$canonical$ac_delim
24755 srcdir!$srcdir$ac_delim
24756 lispdir!$lispdir$ac_delim
24757 locallisppath!$locallisppath$ac_delim
24758 lisppath!$lisppath$ac_delim
24759 x_default_search_path!$x_default_search_path$ac_delim
24760 etcdir!$etcdir$ac_delim
24761 archlibdir!$archlibdir$ac_delim
24762 bitmapdir!$bitmapdir$ac_delim
24763 gamedir!$gamedir$ac_delim
24764 gameuser!$gameuser$ac_delim
24765 c_switch_system!$c_switch_system$ac_delim
24766 c_switch_machine!$c_switch_machine$ac_delim
24767 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24768 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24769 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24770 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24771 machfile!$machfile$ac_delim
24772 opsysfile!$opsysfile$ac_delim
24773 carbon_appdir!$carbon_appdir$ac_delim
24774 LTLIBOBJS!$LTLIBOBJS$ac_delim
24775 _ACEOF
24777 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24778 break
24779 elif $ac_last_try; then
24780 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24781 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24782 { (exit 1); exit 1; }; }
24783 else
24784 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24786 done
24788 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24789 if test -n "$ac_eof"; then
24790 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24791 ac_eof=`expr $ac_eof + 1`
24794 cat >>$CONFIG_STATUS <<_ACEOF
24795 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24796 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24797 _ACEOF
24798 sed '
24799 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24800 s/^/s,@/; s/!/@,|#_!!_#|/
24803 s/'"$ac_delim"'$/,g/; t
24804 s/$/\\/; p
24805 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24806 ' >>$CONFIG_STATUS <conf$$subs.sed
24807 rm -f conf$$subs.sed
24808 cat >>$CONFIG_STATUS <<_ACEOF
24809 :end
24810 s/|#_!!_#|//g
24811 CEOF$ac_eof
24812 _ACEOF
24815 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24816 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24817 # trailing colons and then remove the whole line if VPATH becomes empty
24818 # (actually we leave an empty line to preserve line numbers).
24819 if test "x$srcdir" = x.; then
24820 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24821 s/:*\$(srcdir):*/:/
24822 s/:*\${srcdir}:*/:/
24823 s/:*@srcdir@:*/:/
24824 s/^\([^=]*=[ ]*\):*/\1/
24825 s/:*$//
24826 s/^[^=]*=[ ]*$//
24830 cat >>$CONFIG_STATUS <<\_ACEOF
24831 fi # test -n "$CONFIG_FILES"
24834 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24836 case $ac_tag in
24837 :[FHLC]) ac_mode=$ac_tag; continue;;
24838 esac
24839 case $ac_mode$ac_tag in
24840 :[FHL]*:*);;
24841 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24842 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24843 { (exit 1); exit 1; }; };;
24844 :[FH]-) ac_tag=-:-;;
24845 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24846 esac
24847 ac_save_IFS=$IFS
24848 IFS=:
24849 set x $ac_tag
24850 IFS=$ac_save_IFS
24851 shift
24852 ac_file=$1
24853 shift
24855 case $ac_mode in
24856 :L) ac_source=$1;;
24857 :[FH])
24858 ac_file_inputs=
24859 for ac_f
24861 case $ac_f in
24862 -) ac_f="$tmp/stdin";;
24863 *) # Look for the file first in the build tree, then in the source tree
24864 # (if the path is not absolute). The absolute path cannot be DOS-style,
24865 # because $ac_f cannot contain `:'.
24866 test -f "$ac_f" ||
24867 case $ac_f in
24868 [\\/$]*) false;;
24869 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24870 esac ||
24871 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24872 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24873 { (exit 1); exit 1; }; };;
24874 esac
24875 ac_file_inputs="$ac_file_inputs $ac_f"
24876 done
24878 # Let's still pretend it is `configure' which instantiates (i.e., don't
24879 # use $as_me), people would be surprised to read:
24880 # /* config.h. Generated by config.status. */
24881 configure_input="Generated from "`IFS=:
24882 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24883 if test x"$ac_file" != x-; then
24884 configure_input="$ac_file. $configure_input"
24885 { echo "$as_me:$LINENO: creating $ac_file" >&5
24886 echo "$as_me: creating $ac_file" >&6;}
24889 case $ac_tag in
24890 *:-:* | *:-) cat >"$tmp/stdin";;
24891 esac
24893 esac
24895 ac_dir=`$as_dirname -- "$ac_file" ||
24896 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24897 X"$ac_file" : 'X\(//\)[^/]' \| \
24898 X"$ac_file" : 'X\(//\)$' \| \
24899 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24900 echo X"$ac_file" |
24901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24902 s//\1/
24905 /^X\(\/\/\)[^/].*/{
24906 s//\1/
24909 /^X\(\/\/\)$/{
24910 s//\1/
24913 /^X\(\/\).*/{
24914 s//\1/
24917 s/.*/./; q'`
24918 { as_dir="$ac_dir"
24919 case $as_dir in #(
24920 -*) as_dir=./$as_dir;;
24921 esac
24922 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24923 as_dirs=
24924 while :; do
24925 case $as_dir in #(
24926 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24927 *) as_qdir=$as_dir;;
24928 esac
24929 as_dirs="'$as_qdir' $as_dirs"
24930 as_dir=`$as_dirname -- "$as_dir" ||
24931 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24932 X"$as_dir" : 'X\(//\)[^/]' \| \
24933 X"$as_dir" : 'X\(//\)$' \| \
24934 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24935 echo X"$as_dir" |
24936 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24937 s//\1/
24940 /^X\(\/\/\)[^/].*/{
24941 s//\1/
24944 /^X\(\/\/\)$/{
24945 s//\1/
24948 /^X\(\/\).*/{
24949 s//\1/
24952 s/.*/./; q'`
24953 test -d "$as_dir" && break
24954 done
24955 test -z "$as_dirs" || eval "mkdir $as_dirs"
24956 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24957 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24958 { (exit 1); exit 1; }; }; }
24959 ac_builddir=.
24961 case "$ac_dir" in
24962 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24964 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24965 # A ".." for each directory in $ac_dir_suffix.
24966 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24967 case $ac_top_builddir_sub in
24968 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24969 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24970 esac ;;
24971 esac
24972 ac_abs_top_builddir=$ac_pwd
24973 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24974 # for backward compatibility:
24975 ac_top_builddir=$ac_top_build_prefix
24977 case $srcdir in
24978 .) # We are building in place.
24979 ac_srcdir=.
24980 ac_top_srcdir=$ac_top_builddir_sub
24981 ac_abs_top_srcdir=$ac_pwd ;;
24982 [\\/]* | ?:[\\/]* ) # Absolute name.
24983 ac_srcdir=$srcdir$ac_dir_suffix;
24984 ac_top_srcdir=$srcdir
24985 ac_abs_top_srcdir=$srcdir ;;
24986 *) # Relative name.
24987 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24988 ac_top_srcdir=$ac_top_build_prefix$srcdir
24989 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24990 esac
24991 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24994 case $ac_mode in
24997 # CONFIG_FILE
25000 case $INSTALL in
25001 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25002 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25003 esac
25004 _ACEOF
25006 cat >>$CONFIG_STATUS <<\_ACEOF
25007 # If the template does not know about datarootdir, expand it.
25008 # FIXME: This hack should be removed a few years after 2.60.
25009 ac_datarootdir_hack=; ac_datarootdir_seen=
25011 case `sed -n '/datarootdir/ {
25015 /@datadir@/p
25016 /@docdir@/p
25017 /@infodir@/p
25018 /@localedir@/p
25019 /@mandir@/p
25020 ' $ac_file_inputs` in
25021 *datarootdir*) ac_datarootdir_seen=yes;;
25022 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25023 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25024 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25025 _ACEOF
25026 cat >>$CONFIG_STATUS <<_ACEOF
25027 ac_datarootdir_hack='
25028 s&@datadir@&$datadir&g
25029 s&@docdir@&$docdir&g
25030 s&@infodir@&$infodir&g
25031 s&@localedir@&$localedir&g
25032 s&@mandir@&$mandir&g
25033 s&\\\${datarootdir}&$datarootdir&g' ;;
25034 esac
25035 _ACEOF
25037 # Neutralize VPATH when `$srcdir' = `.'.
25038 # Shell code in configure.ac might set extrasub.
25039 # FIXME: do we really want to maintain this feature?
25040 cat >>$CONFIG_STATUS <<_ACEOF
25041 sed "$ac_vpsub
25042 $extrasub
25043 _ACEOF
25044 cat >>$CONFIG_STATUS <<\_ACEOF
25046 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25047 s&@configure_input@&$configure_input&;t t
25048 s&@top_builddir@&$ac_top_builddir_sub&;t t
25049 s&@srcdir@&$ac_srcdir&;t t
25050 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25051 s&@top_srcdir@&$ac_top_srcdir&;t t
25052 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25053 s&@builddir@&$ac_builddir&;t t
25054 s&@abs_builddir@&$ac_abs_builddir&;t t
25055 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25056 s&@INSTALL@&$ac_INSTALL&;t t
25057 $ac_datarootdir_hack
25058 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25061 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25063 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25064 which seems to be undefined. Please make sure it is defined." >&5
25065 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25066 which seems to be undefined. Please make sure it is defined." >&2;}
25068 rm -f "$tmp/stdin"
25069 case $ac_file in
25070 -) cat "$tmp/out"; rm -f "$tmp/out";;
25071 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25072 esac
25076 # CONFIG_HEADER
25078 _ACEOF
25080 # Transform confdefs.h into a sed script `conftest.defines', that
25081 # substitutes the proper values into config.h.in to produce config.h.
25082 rm -f conftest.defines conftest.tail
25083 # First, append a space to every undef/define line, to ease matching.
25084 echo 's/$/ /' >conftest.defines
25085 # Then, protect against being on the right side of a sed subst, or in
25086 # an unquoted here document, in config.status. If some macros were
25087 # called several times there might be several #defines for the same
25088 # symbol, which is useless. But do not sort them, since the last
25089 # AC_DEFINE must be honored.
25090 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25091 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25092 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25093 # PARAMS is the parameter list in the macro definition--in most cases, it's
25094 # just an empty string.
25095 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25096 ac_dB='\\)[ (].*,\\1define\\2'
25097 ac_dC=' '
25098 ac_dD=' ,'
25100 uniq confdefs.h |
25101 sed -n '
25102 t rset
25103 :rset
25104 s/^[ ]*#[ ]*define[ ][ ]*//
25105 t ok
25108 s/[\\&,]/\\&/g
25109 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25110 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25111 ' >>conftest.defines
25113 # Remove the space that was appended to ease matching.
25114 # Then replace #undef with comments. This is necessary, for
25115 # example, in the case of _POSIX_SOURCE, which is predefined and required
25116 # on some systems where configure will not decide to define it.
25117 # (The regexp can be short, since the line contains either #define or #undef.)
25118 echo 's/ $//
25119 s,^[ #]*u.*,/* & */,' >>conftest.defines
25121 # Break up conftest.defines:
25122 ac_max_sed_lines=50
25124 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25125 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25126 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25127 # et cetera.
25128 ac_in='$ac_file_inputs'
25129 ac_out='"$tmp/out1"'
25130 ac_nxt='"$tmp/out2"'
25132 while :
25134 # Write a here document:
25135 cat >>$CONFIG_STATUS <<_ACEOF
25136 # First, check the format of the line:
25137 cat >"\$tmp/defines.sed" <<\\CEOF
25138 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25139 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25141 :def
25142 _ACEOF
25143 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25144 echo 'CEOF
25145 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25146 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25147 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25148 grep . conftest.tail >/dev/null || break
25149 rm -f conftest.defines
25150 mv conftest.tail conftest.defines
25151 done
25152 rm -f conftest.defines conftest.tail
25154 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25155 cat >>$CONFIG_STATUS <<\_ACEOF
25156 if test x"$ac_file" != x-; then
25157 echo "/* $configure_input */" >"$tmp/config.h"
25158 cat "$ac_result" >>"$tmp/config.h"
25159 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25160 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25161 echo "$as_me: $ac_file is unchanged" >&6;}
25162 else
25163 rm -f $ac_file
25164 mv "$tmp/config.h" $ac_file
25166 else
25167 echo "/* $configure_input */"
25168 cat "$ac_result"
25170 rm -f "$tmp/out12"
25173 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25174 echo "$as_me: executing $ac_file commands" >&6;}
25176 esac
25179 case $ac_file$ac_mode in
25180 "default":C)
25182 ### Make the necessary directories, if they don't exist.
25183 for dir in etc lisp ; do
25184 test -d ${dir} || mkdir ${dir}
25185 done
25187 # Build src/Makefile from ${srcdir}/src/Makefile.c
25188 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25189 # This must be done after src/config.h is built, since we rely on that file.
25191 # Now get this: Some word that is part of the ${srcdir} directory name
25192 # or the ${configuration} value might, just might, happen to be an
25193 # identifier like `sun4' or `i386' or something, and be predefined by
25194 # the C preprocessor to some helpful value like 1, or maybe the empty
25195 # string. Needless to say consequent macro substitutions are less
25196 # than conducive to the makefile finding the correct directory.
25197 undefs="`echo $top_srcdir $configuration $canonical |
25198 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25199 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25202 echo creating src/epaths.h
25203 ${MAKE-make} epaths-force
25205 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25206 # `..' to `. .' unless invoked with -traditional
25208 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25209 CPPFLAGS="$CPPFLAGS -traditional"
25212 echo creating lib-src/Makefile
25213 ( cd lib-src
25214 rm -f junk.c junk1.c junk2.c
25215 sed -e '/start of cpp stuff/q' \
25216 < Makefile.c > junk1.c
25217 sed -e '1,/start of cpp stuff/d'\
25218 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25219 < Makefile.c > junk.c
25220 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25221 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25222 cat junk1.c junk2.c > Makefile.new
25223 rm -f junk.c junk1.c junk2.c
25224 chmod 444 Makefile.new
25225 mv -f Makefile.new Makefile
25228 echo creating src/Makefile
25229 ( cd src
25230 rm -f junk.c junk1.c junk2.c
25231 sed -e '/start of cpp stuff/q' \
25232 < Makefile.c > junk1.c
25233 sed -e '1,/start of cpp stuff/d'\
25234 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25235 < Makefile.c > junk.c
25236 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25237 echo creating ${srcdir}/admin/unidata/Makefile
25238 cp ${srcdir}/admin/unidata/Makefile.in ${srcdir}/admin/unidata/Makefile
25239 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25241 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25242 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25243 cat junk1.c junk2.c > Makefile.new
25244 rm -f junk.c junk1.c junk2.c
25245 chmod 444 Makefile.new
25246 mv -f Makefile.new Makefile
25249 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25250 echo creating src/.gdbinit
25251 echo source $srcdir/src/.gdbinit > src/.gdbinit
25254 # This is how we know whether to re-run configure in certain cases.
25255 touch src/config.stamp
25259 esac
25260 done # for ac_tag
25263 { (exit 0); exit 0; }
25264 _ACEOF
25265 chmod +x $CONFIG_STATUS
25266 ac_clean_files=$ac_clean_files_save
25269 # configure is writing to config.log, and then calls config.status.
25270 # config.status does its own redirection, appending to config.log.
25271 # Unfortunately, on DOS this fails, as config.log is still kept open
25272 # by configure, so config.status won't be able to write to it; its
25273 # output is simply discarded. So we exec the FD to /dev/null,
25274 # effectively closing config.log, so it can be properly (re)opened and
25275 # appended to by config.status. When coming back to configure, we
25276 # need to make the FD available again.
25277 if test "$no_create" != yes; then
25278 ac_cs_success=:
25279 ac_config_status_args=
25280 test "$silent" = yes &&
25281 ac_config_status_args="$ac_config_status_args --quiet"
25282 exec 5>/dev/null
25283 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25284 exec 5>>config.log
25285 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25286 # would make configure fail if this is the last instruction.
25287 $ac_cs_success || { (exit 1); exit 1; }