Add a big "this branch is obsolete" error message to configure
[emacs.git] / configure
bloba4b603848b444370700a28014783a1671f2c87b8
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 --enable-font-backend compile code of font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1345 Optional Packages:
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-gcc don't use GCC to compile Emacs even if GCC is found
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 --with-gtk use GTK toolkit
1367 --without-toolkit-scroll-bars
1368 don't use Motif or Xaw3d scroll bars
1369 --without-xaw3d don't use Xaw3d
1370 --without-xim don't use X11 XIM
1371 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1372 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1373 console
1374 --with-dbus 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 cat 1>&2 <<EOF
1828 ******************************************************************
1830 * The Emacs "emacs-unicode-2" branch has been merged into *
1831 * the CVS trunk, and is now obsolete. You should probably *
1832 * use the CVS trunk instead. *
1834 * To switch a CVS checkout to the trunk, use the command: *
1836 * cvs update -A *
1838 ******************************************************************
1840 exit 1
1842 test "$program_prefix" != NONE &&
1843 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1844 # Use a double $ so make ignores it.
1845 test "$program_suffix" != NONE &&
1846 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1847 # Double any \ or $. echo might interpret backslashes.
1848 # By default was `s,x,x', remove it if useless.
1849 cat <<\_ACEOF >conftest.sed
1850 s/[\\$]/&&/g;s/;s,x,x,$//
1851 _ACEOF
1852 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1853 rm -f conftest.sed
1856 lispdir='${datadir}/emacs/${version}/lisp'
1857 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1858 '${datadir}/emacs/site-lisp'
1859 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1860 etcdir='${datadir}/emacs/${version}/etc'
1861 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1862 docdir='${datadir}/emacs/${version}/etc'
1863 gamedir='${localstatedir}/games/emacs'
1865 gameuser=games
1870 # Check whether --with-gcc was given.
1871 if test "${with_gcc+set}" = set; then
1872 withval=$with_gcc;
1877 # Check whether --with-pop was given.
1878 if test "${with_pop+set}" = set; then
1879 withval=$with_pop;
1880 else
1881 with_pop=yes
1884 if test "$with_pop" = yes; then
1885 cat >>confdefs.h <<\_ACEOF
1886 #define MAIL_USE_POP 1
1887 _ACEOF
1893 # Check whether --with-kerberos was given.
1894 if test "${with_kerberos+set}" = set; then
1895 withval=$with_kerberos;
1896 else
1897 with_kerberos=no
1900 if test "$with_kerberos" = yes; then
1901 cat >>confdefs.h <<\_ACEOF
1902 #define KERBEROS 1
1903 _ACEOF
1909 # Check whether --with-kerberos5 was given.
1910 if test "${with_kerberos5+set}" = set; then
1911 withval=$with_kerberos5;
1912 else
1913 with_kerberos5=no
1916 if test "${with_kerberos5}" = yes; then
1917 if test "${with_kerberos}" != yes; then
1918 with_kerberos=yes
1919 cat >>confdefs.h <<\_ACEOF
1920 #define KERBEROS 1
1921 _ACEOF
1925 cat >>confdefs.h <<\_ACEOF
1926 #define KERBEROS5 1
1927 _ACEOF
1932 # Check whether --with-hesiod was given.
1933 if test "${with_hesiod+set}" = set; then
1934 withval=$with_hesiod;
1935 else
1936 with_hesiod=no
1939 if test "$with_hesiod" = yes; then
1941 cat >>confdefs.h <<\_ACEOF
1942 #define HESIOD 1
1943 _ACEOF
1948 # Check whether --with-sound was given.
1949 if test "${with_sound+set}" = set; then
1950 withval=$with_sound;
1951 else
1952 with_sound=yes
1957 # Check whether --with-x-toolkit was given.
1958 if test "${with_x_toolkit+set}" = set; then
1959 withval=$with_x_toolkit; case "${withval}" in
1960 y | ye | yes ) val=gtk ;;
1961 n | no ) val=no ;;
1962 l | lu | luc | luci | lucid ) val=lucid ;;
1963 a | at | ath | athe | athen | athena ) val=athena ;;
1964 m | mo | mot | moti | motif ) val=motif ;;
1965 g | gt | gtk ) val=gtk ;;
1967 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1968 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1969 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1970 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1971 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1972 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1973 { (exit 1); exit 1; }; }
1975 esac
1976 with_x_toolkit=$val
1982 # Check whether --with-xpm was given.
1983 if test "${with_xpm+set}" = set; then
1984 withval=$with_xpm;
1985 else
1986 with_xpm=yes
1990 # Check whether --with-jpeg was given.
1991 if test "${with_jpeg+set}" = set; then
1992 withval=$with_jpeg;
1993 else
1994 with_jpeg=yes
1998 # Check whether --with-tiff was given.
1999 if test "${with_tiff+set}" = set; then
2000 withval=$with_tiff;
2001 else
2002 with_tiff=yes
2006 # Check whether --with-gif was given.
2007 if test "${with_gif+set}" = set; then
2008 withval=$with_gif;
2009 else
2010 with_gif=yes
2014 # Check whether --with-png was given.
2015 if test "${with_png+set}" = set; then
2016 withval=$with_png;
2017 else
2018 with_png=yes
2022 # Check whether --with-rsvg was given.
2023 if test "${with_rsvg+set}" = set; then
2024 withval=$with_rsvg;
2025 else
2026 with_rsvg=yes
2031 # Check whether --with-freetype was given.
2032 if test "${with_freetype+set}" = set; then
2033 withval=$with_freetype;
2034 else
2035 with_freetype=yes
2039 # Check whether --with-xft was given.
2040 if test "${with_xft+set}" = set; then
2041 withval=$with_xft;
2042 else
2043 with_xft=yes
2047 # Check whether --with-libotf was given.
2048 if test "${with_libotf+set}" = set; then
2049 withval=$with_libotf;
2050 else
2051 with_libotf=yes
2055 # Check whether --with-m17n-flt was given.
2056 if test "${with_m17n_flt+set}" = set; then
2057 withval=$with_m17n_flt;
2058 else
2059 with_m17n_flt=yes
2064 # Check whether --with-gtk was given.
2065 if test "${with_gtk+set}" = set; then
2066 withval=$with_gtk;
2067 else
2068 with_gtk=no
2072 # Check whether --with-toolkit-scroll-bars was given.
2073 if test "${with_toolkit_scroll_bars+set}" = set; then
2074 withval=$with_toolkit_scroll_bars;
2075 else
2076 with_toolkit_scroll_bars=yes
2080 # Check whether --with-xaw3d was given.
2081 if test "${with_xaw3d+set}" = set; then
2082 withval=$with_xaw3d;
2083 else
2084 with_xaw3d=yes
2088 # Check whether --with-xim was given.
2089 if test "${with_xim+set}" = set; then
2090 withval=$with_xim;
2091 else
2092 with_xim=yes
2096 # Check whether --with-carbon was given.
2097 if test "${with_carbon+set}" = set; then
2098 withval=$with_carbon;
2099 else
2100 with_carbon=no
2105 # Check whether --with-gpm was given.
2106 if test "${with_gpm+set}" = set; then
2107 withval=$with_gpm;
2108 else
2109 with_gpm=yes
2113 # Check whether --with-dbus was given.
2114 if test "${with_dbus+set}" = set; then
2115 withval=$with_dbus;
2116 else
2117 with_dbus=no
2122 # Check whether --with-pkg-config-prog was given.
2123 if test "${with_pkg_config_prog+set}" = set; then
2124 withval=$with_pkg_config_prog;
2127 if test "X${with_pkg_config_prog}" != X; then
2128 if test "${with_pkg_config_prog}" != yes; then
2129 PKG_CONFIG="${with_pkg_config_prog}"
2133 # Check whether --enable-carbon-app was given.
2134 if test "${enable_carbon_app+set}" = set; then
2135 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2139 # Check whether --enable-font-backend was given.
2140 if test "${enable_font_backend+set}" = set; then
2141 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2142 else
2143 USE_FONT_BACKEND=no
2147 # Check whether --enable-asserts was given.
2148 if test "${enable_asserts+set}" = set; then
2149 enableval=$enable_asserts; USE_XASSERTS=$enableval
2150 else
2151 USE_XASSERTS=no
2155 # Check whether --enable-maintainer-mode was given.
2156 if test "${enable_maintainer_mode+set}" = set; then
2157 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2158 else
2159 USE_MAINTAINER_MODE=no
2162 if test $USE_MAINTAINER_MODE = yes; then
2163 MAINT=
2164 else
2165 MAINT=#
2169 # Check whether --enable-locallisppath was given.
2170 if test "${enable_locallisppath+set}" = set; then
2171 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2172 locallisppath=
2173 elif test "${enableval}" != "yes"; then
2174 locallisppath=${enableval}
2179 #### Make srcdir absolute, if it isn't already. It's important to
2180 #### avoid running the path through pwd unnecessarily, since pwd can
2181 #### give you automounter prefixes, which can go away. We do all this
2182 #### so Emacs can find its files when run uninstalled.
2183 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2184 unset CDPATH
2185 case "${srcdir}" in
2186 /* ) ;;
2188 ## We may be able to use the $PWD environment variable to make this
2189 ## absolute. But sometimes PWD is inaccurate.
2190 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2191 ## but that tested only for a well-formed and valid PWD,
2192 ## it did not object when PWD was well-formed and valid but just wrong.
2193 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2194 then
2195 srcdir="$PWD"
2196 else
2197 srcdir="`(cd ${srcdir}; pwd)`"
2200 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2201 esac
2203 #### Check if the source directory already has a configured system in it.
2204 if test `pwd` != `(cd ${srcdir} && pwd)` \
2205 && test -f "${srcdir}/src/config.h" ; then
2206 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2207 as a build directory right now; it has been configured in its own
2208 right. To configure in another directory as well, you MUST
2209 use GNU make. If you do not have GNU make, then you must
2210 now do \`make distclean' in ${srcdir},
2211 and then run $0 again." >&5
2212 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2213 as a build directory right now; it has been configured in its own
2214 right. To configure in another directory as well, you MUST
2215 use GNU make. If you do not have GNU make, then you must
2216 now do \`make distclean' in ${srcdir},
2217 and then run $0 again." >&2;}
2220 #### Given the configuration name, set machfile and opsysfile to the
2221 #### names of the m/*.h and s/*.h files we should use.
2223 ### Canonicalize the configuration name.
2225 ac_aux_dir=
2226 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2227 if test -f "$ac_dir/install-sh"; then
2228 ac_aux_dir=$ac_dir
2229 ac_install_sh="$ac_aux_dir/install-sh -c"
2230 break
2231 elif test -f "$ac_dir/install.sh"; then
2232 ac_aux_dir=$ac_dir
2233 ac_install_sh="$ac_aux_dir/install.sh -c"
2234 break
2235 elif test -f "$ac_dir/shtool"; then
2236 ac_aux_dir=$ac_dir
2237 ac_install_sh="$ac_aux_dir/shtool install -c"
2238 break
2240 done
2241 if test -z "$ac_aux_dir"; then
2242 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2243 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2244 { (exit 1); exit 1; }; }
2247 # These three variables are undocumented and unsupported,
2248 # and are intended to be withdrawn in a future Autoconf release.
2249 # They can cause serious problems if a builder's source tree is in a directory
2250 # whose full name contains unusual characters.
2251 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2252 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2253 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2256 # Make sure we can run config.sub.
2257 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2258 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2259 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2260 { (exit 1); exit 1; }; }
2262 { echo "$as_me:$LINENO: checking build system type" >&5
2263 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2264 if test "${ac_cv_build+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267 ac_build_alias=$build_alias
2268 test "x$ac_build_alias" = x &&
2269 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2270 test "x$ac_build_alias" = x &&
2271 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2272 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2273 { (exit 1); exit 1; }; }
2274 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2275 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2276 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2277 { (exit 1); exit 1; }; }
2280 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2281 echo "${ECHO_T}$ac_cv_build" >&6; }
2282 case $ac_cv_build in
2283 *-*-*) ;;
2284 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2285 echo "$as_me: error: invalid value of canonical build" >&2;}
2286 { (exit 1); exit 1; }; };;
2287 esac
2288 build=$ac_cv_build
2289 ac_save_IFS=$IFS; IFS='-'
2290 set x $ac_cv_build
2291 shift
2292 build_cpu=$1
2293 build_vendor=$2
2294 shift; shift
2295 # Remember, the first character of IFS is used to create $*,
2296 # except with old shells:
2297 build_os=$*
2298 IFS=$ac_save_IFS
2299 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2302 { echo "$as_me:$LINENO: checking host system type" >&5
2303 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2304 if test "${ac_cv_host+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 if test "x$host_alias" = x; then
2308 ac_cv_host=$ac_cv_build
2309 else
2310 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2311 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2312 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2313 { (exit 1); exit 1; }; }
2317 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2318 echo "${ECHO_T}$ac_cv_host" >&6; }
2319 case $ac_cv_host in
2320 *-*-*) ;;
2321 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2322 echo "$as_me: error: invalid value of canonical host" >&2;}
2323 { (exit 1); exit 1; }; };;
2324 esac
2325 host=$ac_cv_host
2326 ac_save_IFS=$IFS; IFS='-'
2327 set x $ac_cv_host
2328 shift
2329 host_cpu=$1
2330 host_vendor=$2
2331 shift; shift
2332 # Remember, the first character of IFS is used to create $*,
2333 # except with old shells:
2334 host_os=$*
2335 IFS=$ac_save_IFS
2336 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2339 canonical=$host
2340 configuration=${host_alias-${build_alias-$host}}
2344 ### If you add support for a new configuration, add code to this
2345 ### switch statement to recognize your configuration name and select
2346 ### the appropriate operating system and machine description files.
2348 ### You would hope that you could choose an m/*.h file pretty much
2349 ### based on the machine portion of the configuration name, and an s-
2350 ### file based on the operating system portion. However, it turns out
2351 ### that each m/*.h file is pretty manufacturer-specific - for
2352 ### example hp9000s300.h is a 68000 machine;
2353 ### mips.h, pmax.h are all MIPS
2354 ### machines. So we basically have to have a special case for each
2355 ### configuration name.
2357 ### As far as handling version numbers on operating systems is
2358 ### concerned, make sure things will fail in a fixable way. If
2359 ### /etc/MACHINES doesn't say anything about version numbers, be
2360 ### prepared to handle anything reasonably. If version numbers
2361 ### matter, be sure /etc/MACHINES says something about it.
2363 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2364 ### "System V Release 4"; he writes, "The old convention encouraged
2365 ### confusion between `system' and `release' levels'."
2367 machine='' opsys='' unported=no
2368 case "${canonical}" in
2370 ## FreeBSD ports
2371 *-*-freebsd* )
2372 opsys=freebsd
2373 case "${canonical}" in
2374 alpha*-*-freebsd*) machine=alpha ;;
2375 ia64-*-freebsd*) machine=ia64 ;;
2376 sparc64-*-freebsd*) machine=sparc ;;
2377 powerpc-*-freebsd*) machine=macppc ;;
2378 i[3456]86-*-freebsd*) machine=intel386 ;;
2379 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2380 esac
2383 ## FreeBSD kernel + glibc based userland
2384 *-*-kfreebsd*gnu* )
2385 opsys=gnu-kfreebsd
2386 case "${canonical}" in
2387 alpha*-*-kfreebsd*) machine=alpha ;;
2388 ia64-*-kfreebsd*) machine=ia64 ;;
2389 sparc64-*-kfreebsd*) machine=sparc ;;
2390 powerpc-*-kfreebsd*) machine=macppc ;;
2391 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2392 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2393 esac
2396 ## NetBSD ports
2397 *-*-netbsd* )
2398 opsys=netbsd
2399 if test -f /usr/lib/crti.o; then
2401 cat >>confdefs.h <<\_ACEOF
2402 #define HAVE_CRTIN
2403 _ACEOF
2407 case "${canonical}" in
2408 alpha*-*-netbsd*) machine=alpha ;;
2409 i[3456]86-*-netbsd*) machine=intel386 ;;
2410 m68k-*-netbsd*)
2411 # This is somewhat bogus.
2412 machine=hp9000s300 ;;
2413 mips-*-netbsd*) machine=pmax ;;
2414 mipsel-*-netbsd*) machine=pmax ;;
2415 mipseb-*-netbsd*) machine=pmax ;;
2416 powerpc-*-netbsd*) machine=macppc ;;
2417 sparc*-*-netbsd*) machine=sparc ;;
2418 vax-*-netbsd*) machine=vax ;;
2419 arm-*-netbsd*) machine=arm ;;
2420 x86_64-*-netbsd*) machine=amdx86-64 ;;
2421 hppa-*-netbsd*) machine=hp800 ;;
2422 esac
2425 ## OpenBSD ports
2426 *-*-openbsd* )
2427 opsys=openbsd
2428 case "${canonical}" in
2429 alpha*-*-openbsd*) machine=alpha ;;
2430 arm-*-openbsd*) machine=arm ;;
2431 hppa-*-openbsd*) machine=hp9000s300 ;;
2432 i386-*-openbsd*) machine=intel386 ;;
2433 m68k-*-openbsd*) machine=hp9000s300 ;;
2434 mips64-*-openbsd*) machine=mips64 ;;
2435 powerpc-*-openbsd*) machine=macppc ;;
2436 sparc*-*-openbsd*) machine=sparc ;;
2437 vax-*-openbsd*) machine=vax ;;
2438 x86_64-*-openbsd*) machine=amdx86-64 ;;
2439 esac
2442 ## LynxOS ports
2443 *-*-lynxos* )
2444 opsys=lynxos
2445 case "${canonical}" in
2446 i[3456]86-*-lynxos*) machine=intel386 ;;
2447 powerpc-*-lynxos*) machine=powerpc ;;
2448 esac
2451 ## BSDI ports
2452 *-*-bsdi* )
2453 opsys=bsdi
2454 case "${canonical}" in
2455 i[345]86-*-bsdi*) machine=intel386 ;;
2456 sparc-*-bsdi*) machine=sparc ;;
2457 powerpc-*-bsdi*) machine=macppc ;;
2458 esac
2459 case "${canonical}" in
2460 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2461 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2462 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2463 *-*-bsdi3* ) opsys=bsdos3 ;;
2464 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2465 esac
2468 ## Alpha (DEC) machines.
2469 alpha*-dec-osf* )
2470 machine=alpha opsys=osf1
2471 # This is needed to find X11R6.1 libraries for certain tests.
2472 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2473 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2474 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2475 # due to non-traditional preprocessing with the current compiler
2476 # defaults. OSF 4 can also have that compiler version, and there
2477 # seems always to have been a usable /usr/bin/cpp.
2478 NON_GNU_CPP=/usr/bin/cpp
2479 case "${canonical}" in
2480 alpha*-dec-osf[5-9]*)
2481 opsys=osf5-0 ;;
2482 esac
2485 alpha*-*-linux-gnu* )
2486 machine=alpha opsys=gnu-linux
2489 arm*-*-linux-gnu* )
2490 machine=arm opsys=gnu-linux
2493 ## Apple Darwin / Mac OS X
2494 *-apple-darwin* )
2495 case "${canonical}" in
2496 i[3456]86-* ) machine=intel386 ;;
2497 powerpc-* ) machine=powermac ;;
2498 * ) unported=yes ;;
2499 esac
2500 opsys=darwin
2501 # Define CPP as follows to make autoconf work correctly.
2502 CPP="${CC-cc} -E -no-cpp-precomp"
2503 # Use fink packages if available.
2504 if test -d /sw/include && test -d /sw/lib; then
2505 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2506 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2507 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2511 ## Compaq Nonstop
2512 mips-compaq-nonstopux* )
2513 machine=nonstopux opsys=nonstopux
2516 ## Cubix QBx/386
2517 i[3456]86-cubix-sysv* )
2518 machine=intel386 opsys=usg5-3
2521 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2522 machine=pmax opsys=bsd4-2
2524 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2525 machine=pmax opsys=bsd4-3
2527 mips-dec-ultrix* )
2528 machine=pmax opsys=ultrix4-3
2530 mips-dec-osf* )
2531 machine=pmax opsys=osf1
2533 mips-dec-mach_bsd4.3* )
2534 machine=pmax opsys=mach-bsd4-3
2537 ## HP 9000 series 200 or 300
2538 m68*-hp-bsd* )
2539 machine=hp9000s300 opsys=bsd4-3
2541 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2542 m68*-hp-hpux* )
2543 case "`uname -r`" in
2544 ## Someone's system reports A.B8.05 for this.
2545 ## I wonder what other possibilities there are.
2546 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2547 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2548 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2549 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2550 *) machine=hp9000s300 opsys=hpux ;;
2551 esac
2554 ## HP 9000 series 700 and 800, running HP/UX
2555 hppa*-hp-hpux7* )
2556 machine=hp800 opsys=hpux
2558 hppa*-hp-hpux8* )
2559 machine=hp800 opsys=hpux8
2561 hppa*-hp-hpux9shr* )
2562 machine=hp800 opsys=hpux9shr
2564 hppa*-hp-hpux9* )
2565 machine=hp800 opsys=hpux9
2567 hppa*-hp-hpux10.2* )
2568 machine=hp800 opsys=hpux10-20
2570 hppa*-hp-hpux10* )
2571 machine=hp800 opsys=hpux10
2573 hppa*-hp-hpux1[1-9]* )
2574 machine=hp800 opsys=hpux11
2575 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2578 hppa*-*-linux-gnu* )
2579 machine=hp800 opsys=gnu-linux
2582 ## HP 9000 series 700 and 800, running HP/UX
2583 hppa*-hp-hpux* )
2584 ## Cross-compilation? Nah!
2585 case "`uname -r`" in
2586 ## Someone's system reports A.B8.05 for this.
2587 ## I wonder what other possibilities there are.
2588 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2589 *.08.* ) machine=hp800 opsys=hpux8 ;;
2590 *.09.* ) machine=hp800 opsys=hpux9 ;;
2591 *) machine=hp800 opsys=hpux10 ;;
2592 esac
2594 hppa*-*-nextstep* )
2595 machine=hp800 opsys=nextstep
2598 ## IBM machines
2599 i370-ibm-aix*)
2600 machine=ibm370aix opsys=usg5-3
2602 s390-*-linux-gnu* )
2603 machine=ibms390 opsys=gnu-linux
2605 s390x-*-linux-gnu* )
2606 machine=ibms390x opsys=gnu-linux
2608 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2609 machine=ibmrs6000 opsys=aix3-1
2611 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2612 machine=ibmrs6000 opsys=aix3-2-5
2614 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2615 machine=ibmrs6000 opsys=aix4-1
2617 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2618 machine=ibmrs6000 opsys=aix4-2
2620 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2621 machine=ibmrs6000 opsys=aix4-2
2623 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2624 machine=ibmrs6000 opsys=aix4-2
2626 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2627 machine=ibmrs6000 opsys=aix4
2629 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2630 machine=ibmrs6000 opsys=aix4-1
2632 rs6000-ibm-aix* | powerpc-ibm-aix* )
2633 machine=ibmrs6000 opsys=aix3-2
2636 ## Prime EXL
2637 i[3456]86-prime-sysv* )
2638 machine=i386 opsys=usg5-3
2641 ## ncr machine running svr4.3.
2642 i[3456]86-ncr-sysv4.3 )
2643 machine=ncr386 opsys=usg5-4-3
2646 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2647 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2648 i[3456]86-ncr-sysv* )
2649 machine=ncr386 opsys=usg5-4-2
2652 ## Macintosh PowerPC
2653 powerpc*-*-linux-gnu* )
2654 machine=macppc opsys=gnu-linux
2657 ## Workstations sold by MIPS
2658 ## This is not necessarily all workstations using the MIPS processor -
2659 ## Irises are produced by SGI, and DECstations by DEC.
2661 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2662 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2663 ## it gives for choosing between the alternatives seems to be "Use
2664 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2665 ## the BSD world." I'll assume that these are instructions for
2666 ## handling two odd situations, and that every other situation
2667 ## should use mips.h and usg5-2-2, they being listed first.
2668 mips-mips-usg* )
2669 machine=mips4
2670 ## Fall through to the general code at the bottom to decide on the OS.
2672 mips-mips-riscos4* )
2673 machine=mips4 opsys=bsd4-3
2674 NON_GNU_CC="cc -systype bsd43"
2675 NON_GNU_CPP="cc -systype bsd43 -E"
2677 mips-mips-riscos5* )
2678 machine=mips4 opsys=riscos5
2679 NON_GNU_CC="cc -systype bsd43"
2680 NON_GNU_CPP="cc -systype bsd43 -E"
2682 mips-mips-bsd* )
2683 machine=mips opsys=bsd4-3
2685 mips-mips-* )
2686 machine=mips opsys=usg5-2-2
2689 ## NeXT
2690 m68*-next-* | m68k-*-nextstep* )
2691 machine=m68k opsys=nextstep
2694 ## NEC EWS4800
2695 mips-nec-sysv4*)
2696 machine=ews4800 opsys=ux4800
2699 ## Siemens Nixdorf
2700 mips-siemens-sysv* | mips-sni-sysv*)
2701 machine=mips-siemens opsys=usg5-4
2702 NON_GNU_CC=/usr/ccs/bin/cc
2703 NON_GNU_CPP=/usr/ccs/lib/cpp
2706 ## Silicon Graphics machines
2707 ## Iris 4D
2708 mips-sgi-irix6.5 )
2709 machine=iris4d opsys=irix6-5
2710 # Without defining _LANGUAGE_C, things get masked out in the headers
2711 # so that, for instance, grepping for `free' in stdlib.h fails and
2712 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2713 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2714 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2716 mips-sgi-irix6* )
2717 machine=iris4d opsys=irix6-0
2718 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2719 # but presumably it does no harm.
2720 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2721 # -32 probably isn't necessary in later v.6s -- anyone know which?
2722 NON_GCC_TEST_OPTIONS=-32
2724 mips-sgi-irix5.[01]* )
2725 machine=iris4d opsys=irix5-0
2727 mips-sgi-irix5* | mips-sgi-irix* )
2728 machine=iris4d opsys=irix5-2
2731 ## Suns
2732 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2733 machine=sparc opsys=gnu-linux
2736 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2737 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2738 | rs6000-*-solaris2*)
2739 case "${canonical}" in
2740 i[3456]86-*-* ) machine=intel386 ;;
2741 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2742 powerpcle* ) machine=powerpcle ;;
2743 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2744 sparc* ) machine=sparc ;;
2745 * ) unported=yes ;;
2746 esac
2747 case "${canonical}" in
2748 *-sunos5.3* | *-solaris2.3* )
2749 opsys=sol2-3
2750 NON_GNU_CPP=/usr/ccs/lib/cpp
2752 *-sunos5.4* | *-solaris2.4* )
2753 opsys=sol2-4
2754 NON_GNU_CPP=/usr/ccs/lib/cpp
2755 RANLIB="ar -ts"
2757 *-sunos5.5* | *-solaris2.5* )
2758 opsys=sol2-5
2759 NON_GNU_CPP=/usr/ccs/lib/cpp
2760 RANLIB="ar -ts"
2762 *-sunos5.6* | *-solaris2.6* )
2763 opsys=sol2-6
2764 NON_GNU_CPP=/usr/ccs/lib/cpp
2765 RANLIB="ar -ts"
2767 *-sunos5* | *-solaris* )
2768 opsys=sol2-6
2769 emacs_check_sunpro_c=yes
2770 NON_GNU_CPP=/usr/ccs/lib/cpp
2772 * ) opsys=bsd4-2 ;;
2773 esac
2774 ## Watch out for a compiler that we know will not work.
2775 case "${canonical}" in
2776 *-solaris* | *-sunos5* )
2777 if [ "x$CC" = x/usr/ucb/cc ]; then
2778 ## /usr/ucb/cc doesn't work;
2779 ## we should find some other compiler that does work.
2780 unset CC
2783 *) ;;
2784 esac
2786 sparc-*-nextstep* )
2787 machine=sparc opsys=nextstep
2790 ## Tandem Integrity S2
2791 mips-tandem-sysv* )
2792 machine=tandem-s2 opsys=usg5-3
2795 ## Vaxen.
2796 vax-dec-* )
2797 machine=vax
2798 case "${canonical}" in
2799 *-bsd4.1* ) opsys=bsd4-1 ;;
2800 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2801 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2802 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2803 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2804 *-vms* ) opsys=vms ;;
2805 * ) unported=yes
2806 esac
2809 ## IA-64
2810 ia64*-*-linux* )
2811 machine=ia64 opsys=gnu-linux
2814 ## Intel 386 machines where we don't care about the manufacturer
2815 i[3456]86-*-* )
2816 machine=intel386
2817 case "${canonical}" in
2818 *-cygwin ) opsys=cygwin ;;
2819 *-darwin* ) opsys=darwin
2820 CPP="${CC-cc} -E -no-cpp-precomp"
2822 *-xenix* ) opsys=xenix ;;
2823 *-linux-gnu* ) opsys=gnu-linux ;;
2824 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2825 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2826 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2827 *-386bsd* ) opsys=386bsd ;;
2828 *-nextstep* ) opsys=nextstep ;;
2829 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2830 esac
2833 ## m68k Linux-based GNU system
2834 m68k-*-linux-gnu* )
2835 machine=m68k opsys=gnu-linux
2838 ## Mips Linux-based GNU system
2839 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2840 machine=mips opsys=gnu-linux
2843 ## UXP/DS
2844 sparc-fujitsu-sysv4* )
2845 machine=sparc opsys=uxpds
2846 NON_GNU_CPP=/usr/ccs/lib/cpp
2847 RANLIB="ar -ts"
2850 ## AMD x86-64 Linux-based GNU system
2851 x86_64-*-linux-gnu* )
2852 machine=amdx86-64 opsys=gnu-linux
2855 ## Tensilica Xtensa Linux-based GNU system
2856 xtensa*-*-linux-gnu* )
2857 machine=xtensa opsys=gnu-linux
2861 unported=yes
2863 esac
2865 ### If the code above didn't choose an operating system, just choose
2866 ### an operating system based on the configuration name. You really
2867 ### only want to use this when you have no idea what the right
2868 ### operating system is; if you know what operating systems a machine
2869 ### runs, it's cleaner to make it explicit in the case statement
2870 ### above.
2871 if test x"${opsys}" = x; then
2872 case "${canonical}" in
2873 *-gnu* ) opsys=gnu ;;
2874 *-bsd4.[01] ) opsys=bsd4-1 ;;
2875 *-bsd4.2 ) opsys=bsd4-2 ;;
2876 *-bsd4.3 ) opsys=bsd4-3 ;;
2877 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2878 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2879 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2880 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2881 *-sysv4.2uw* ) opsys=unixware ;;
2882 *-sysv5uw* ) opsys=unixware ;;
2883 *-sysv5OpenUNIX* ) opsys=unixware ;;
2884 *-sysv4.1* | *-sysvr4.1* )
2885 NON_GNU_CPP=/usr/lib/cpp
2886 opsys=usg5-4 ;;
2887 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2888 if [ x$NON_GNU_CPP = x ]; then
2889 if [ -f /usr/ccs/lib/cpp ]; then
2890 NON_GNU_CPP=/usr/ccs/lib/cpp
2891 else
2892 NON_GNU_CPP=/lib/cpp
2895 opsys=usg5-4-2 ;;
2896 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2898 unported=yes
2900 esac
2905 if test $unported = yes; then
2906 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2907 Check \`etc/MACHINES' for recognized configuration names." >&5
2908 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2909 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2910 { (exit 1); exit 1; }; }
2913 machfile="m/${machine}.h"
2914 opsysfile="s/${opsys}.h"
2917 #### Choose a compiler.
2918 test -n "$CC" && cc_specified=yes
2920 # Save the value of CFLAGS that the user specified.
2921 SPECIFIED_CFLAGS="$CFLAGS"
2923 case ${with_gcc} in
2924 "yes" ) CC="gcc" GCC=yes ;;
2925 "no" ) : ${CC=cc} ;;
2927 esac
2928 ac_ext=c
2929 ac_cpp='$CPP $CPPFLAGS'
2930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933 if test -n "$ac_tool_prefix"; then
2934 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2935 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2938 if test "${ac_cv_prog_CC+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 else
2941 if test -n "$CC"; then
2942 ac_cv_prog_CC="$CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2955 done
2956 done
2957 IFS=$as_save_IFS
2961 CC=$ac_cv_prog_CC
2962 if test -n "$CC"; then
2963 { echo "$as_me:$LINENO: result: $CC" >&5
2964 echo "${ECHO_T}$CC" >&6; }
2965 else
2966 { echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6; }
2972 if test -z "$ac_cv_prog_CC"; then
2973 ac_ct_CC=$CC
2974 # Extract the first word of "gcc", so it can be a program name with args.
2975 set dummy gcc; ac_word=$2
2976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2978 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2979 echo $ECHO_N "(cached) $ECHO_C" >&6
2980 else
2981 if test -n "$ac_ct_CC"; then
2982 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
2989 for ac_exec_ext in '' $ac_executable_extensions; do
2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991 ac_cv_prog_ac_ct_CC="gcc"
2992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 break 2
2995 done
2996 done
2997 IFS=$as_save_IFS
3001 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3002 if test -n "$ac_ct_CC"; then
3003 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3004 echo "${ECHO_T}$ac_ct_CC" >&6; }
3005 else
3006 { echo "$as_me:$LINENO: result: no" >&5
3007 echo "${ECHO_T}no" >&6; }
3010 if test "x$ac_ct_CC" = x; then
3011 CC=""
3012 else
3013 case $cross_compiling:$ac_tool_warned in
3014 yes:)
3015 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3016 whose name does not start with the host triplet. If you think this
3017 configuration is useful to you, please write to autoconf@gnu.org." >&5
3018 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3019 whose name does not start with the host triplet. If you think this
3020 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3021 ac_tool_warned=yes ;;
3022 esac
3023 CC=$ac_ct_CC
3025 else
3026 CC="$ac_cv_prog_CC"
3029 if test -z "$CC"; then
3030 if test -n "$ac_tool_prefix"; then
3031 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3032 set dummy ${ac_tool_prefix}cc; ac_word=$2
3033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038 if test -n "$CC"; then
3039 ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048 ac_cv_prog_CC="${ac_tool_prefix}cc"
3049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3052 done
3053 done
3054 IFS=$as_save_IFS
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060 { echo "$as_me:$LINENO: result: $CC" >&5
3061 echo "${ECHO_T}$CC" >&6; }
3062 else
3063 { echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6; }
3070 if test -z "$CC"; then
3071 # Extract the first word of "cc", so it can be a program name with args.
3072 set dummy cc; ac_word=$2
3073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_CC+set}" = set; then
3076 echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078 if test -n "$CC"; then
3079 ac_cv_prog_CC="$CC" # Let the user override the test.
3080 else
3081 ac_prog_rejected=no
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3090 ac_prog_rejected=yes
3091 continue
3093 ac_cv_prog_CC="cc"
3094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3097 done
3098 done
3099 IFS=$as_save_IFS
3101 if test $ac_prog_rejected = yes; then
3102 # We found a bogon in the path, so make sure we never use it.
3103 set dummy $ac_cv_prog_CC
3104 shift
3105 if test $# != 0; then
3106 # We chose a different compiler from the bogus one.
3107 # However, it has the same basename, so the bogon will be chosen
3108 # first if we set CC to just the basename; use the full file name.
3109 shift
3110 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
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; }
3126 if test -z "$CC"; then
3127 if test -n "$ac_tool_prefix"; then
3128 for ac_prog in cl.exe
3130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 else
3137 if test -n "$CC"; then
3138 ac_cv_prog_CC="$CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3151 done
3152 done
3153 IFS=$as_save_IFS
3157 CC=$ac_cv_prog_CC
3158 if test -n "$CC"; then
3159 { echo "$as_me:$LINENO: result: $CC" >&5
3160 echo "${ECHO_T}$CC" >&6; }
3161 else
3162 { echo "$as_me:$LINENO: result: no" >&5
3163 echo "${ECHO_T}no" >&6; }
3167 test -n "$CC" && break
3168 done
3170 if test -z "$CC"; then
3171 ac_ct_CC=$CC
3172 for ac_prog in cl.exe
3174 # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3180 else
3181 if test -n "$ac_ct_CC"; then
3182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_ac_ct_CC="$ac_prog"
3192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3195 done
3196 done
3197 IFS=$as_save_IFS
3201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3204 echo "${ECHO_T}$ac_ct_CC" >&6; }
3205 else
3206 { echo "$as_me:$LINENO: result: no" >&5
3207 echo "${ECHO_T}no" >&6; }
3211 test -n "$ac_ct_CC" && break
3212 done
3214 if test "x$ac_ct_CC" = x; then
3215 CC=""
3216 else
3217 case $cross_compiling:$ac_tool_warned in
3218 yes:)
3219 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3220 whose name does not start with the host triplet. If you think this
3221 configuration is useful to you, please write to autoconf@gnu.org." >&5
3222 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3223 whose name does not start with the host triplet. If you think this
3224 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3225 ac_tool_warned=yes ;;
3226 esac
3227 CC=$ac_ct_CC
3234 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details." >&5
3236 echo "$as_me: error: no acceptable C compiler found in \$PATH
3237 See \`config.log' for more details." >&2;}
3238 { (exit 1); exit 1; }; }
3240 # Provide some information about the compiler.
3241 echo "$as_me:$LINENO: checking for C compiler version" >&5
3242 ac_compiler=`set X $ac_compile; echo $2`
3243 { (ac_try="$ac_compiler --version >&5"
3244 case "(($ac_try" in
3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246 *) ac_try_echo=$ac_try;;
3247 esac
3248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3249 (eval "$ac_compiler --version >&5") 2>&5
3250 ac_status=$?
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); }
3253 { (ac_try="$ac_compiler -v >&5"
3254 case "(($ac_try" in
3255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256 *) ac_try_echo=$ac_try;;
3257 esac
3258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3259 (eval "$ac_compiler -v >&5") 2>&5
3260 ac_status=$?
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); }
3263 { (ac_try="$ac_compiler -V >&5"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compiler -V >&5") 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }
3274 cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h. */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3282 main ()
3286 return 0;
3288 _ACEOF
3289 ac_clean_files_save=$ac_clean_files
3290 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3291 # Try to create an executable without -o first, disregard a.out.
3292 # It will help us diagnose broken compilers, and finding out an intuition
3293 # of exeext.
3294 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3295 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3296 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3298 # List of possible output files, starting from the most likely.
3299 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3300 # only as a last resort. b.out is created by i960 compilers.
3301 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3303 # The IRIX 6 linker writes into existing files which may not be
3304 # executable, retaining their permissions. Remove them first so a
3305 # subsequent execution test works.
3306 ac_rmfiles=
3307 for ac_file in $ac_files
3309 case $ac_file in
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3311 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3312 esac
3313 done
3314 rm -f $ac_rmfiles
3316 if { (ac_try="$ac_link_default"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_link_default") 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; then
3326 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3327 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3328 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3329 # so that the user can short-circuit this test for compilers unknown to
3330 # Autoconf.
3331 for ac_file in $ac_files ''
3333 test -f "$ac_file" || continue
3334 case $ac_file in
3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3337 [ab].out )
3338 # We found the default executable, but exeext='' is most
3339 # certainly right.
3340 break;;
3341 *.* )
3342 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3343 then :; else
3344 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3346 # We set ac_cv_exeext here because the later test for it is not
3347 # safe: cross compilers may not add the suffix if given an `-o'
3348 # argument, so we may need to know it at that point already.
3349 # Even if this section looks crufty: it has the advantage of
3350 # actually working.
3351 break;;
3353 break;;
3354 esac
3355 done
3356 test "$ac_cv_exeext" = no && ac_cv_exeext=
3358 else
3359 ac_file=''
3362 { echo "$as_me:$LINENO: result: $ac_file" >&5
3363 echo "${ECHO_T}$ac_file" >&6; }
3364 if test -z "$ac_file"; then
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3369 See \`config.log' for more details." >&5
3370 echo "$as_me: error: C compiler cannot create executables
3371 See \`config.log' for more details." >&2;}
3372 { (exit 77); exit 77; }; }
3375 ac_exeext=$ac_cv_exeext
3377 # Check that the compiler produces executables we can run. If not, either
3378 # the compiler is broken, or we cross compile.
3379 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3380 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3381 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3382 # If not cross compiling, check that we can run a simple program.
3383 if test "$cross_compiling" != yes; then
3384 if { ac_try='./$ac_file'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3388 esac
3389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 cross_compiling=no
3395 else
3396 if test "$cross_compiling" = maybe; then
3397 cross_compiling=yes
3398 else
3399 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3400 If you meant to cross compile, use \`--host'.
3401 See \`config.log' for more details." >&5
3402 echo "$as_me: error: cannot run C compiled programs.
3403 If you meant to cross compile, use \`--host'.
3404 See \`config.log' for more details." >&2;}
3405 { (exit 1); exit 1; }; }
3409 { echo "$as_me:$LINENO: result: yes" >&5
3410 echo "${ECHO_T}yes" >&6; }
3412 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3413 ac_clean_files=$ac_clean_files_save
3414 # Check that the compiler produces executables we can run. If not, either
3415 # the compiler is broken, or we cross compile.
3416 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3417 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3418 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3419 echo "${ECHO_T}$cross_compiling" >&6; }
3421 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3422 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3423 if { (ac_try="$ac_link"
3424 case "(($ac_try" in
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3427 esac
3428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_link") 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; then
3433 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3434 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3435 # work properly (i.e., refer to `conftest.exe'), while it won't with
3436 # `rm'.
3437 for ac_file in conftest.exe conftest conftest.*; do
3438 test -f "$ac_file" || continue
3439 case $ac_file in
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3441 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3442 break;;
3443 * ) break;;
3444 esac
3445 done
3446 else
3447 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3448 See \`config.log' for more details." >&5
3449 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3450 See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
3454 rm -f conftest$ac_cv_exeext
3455 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3456 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3458 rm -f conftest.$ac_ext
3459 EXEEXT=$ac_cv_exeext
3460 ac_exeext=$EXEEXT
3461 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3462 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3463 if test "${ac_cv_objext+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465 else
3466 cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h. */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3474 main ()
3478 return 0;
3480 _ACEOF
3481 rm -f conftest.o conftest.obj
3482 if { (ac_try="$ac_compile"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_compile") 2>&5
3489 ac_status=$?
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); }; then
3492 for ac_file in conftest.o conftest.obj conftest.*; do
3493 test -f "$ac_file" || continue;
3494 case $ac_file in
3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3496 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3497 break;;
3498 esac
3499 done
3500 else
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3505 See \`config.log' for more details." >&5
3506 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3507 See \`config.log' for more details." >&2;}
3508 { (exit 1); exit 1; }; }
3511 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3513 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3514 echo "${ECHO_T}$ac_cv_objext" >&6; }
3515 OBJEXT=$ac_cv_objext
3516 ac_objext=$OBJEXT
3517 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3518 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3519 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3520 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 else
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3530 main ()
3532 #ifndef __GNUC__
3533 choke me
3534 #endif
3537 return 0;
3539 _ACEOF
3540 rm -f conftest.$ac_objext
3541 if { (ac_try="$ac_compile"
3542 case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545 esac
3546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3547 (eval "$ac_compile") 2>conftest.er1
3548 ac_status=$?
3549 grep -v '^ *+' conftest.er1 >conftest.err
3550 rm -f conftest.er1
3551 cat conftest.err >&5
3552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3553 (exit $ac_status); } && {
3554 test -z "$ac_c_werror_flag" ||
3555 test ! -s conftest.err
3556 } && test -s conftest.$ac_objext; then
3557 ac_compiler_gnu=yes
3558 else
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 ac_compiler_gnu=no
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3569 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3571 GCC=`test $ac_compiler_gnu = yes && echo yes`
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3574 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3575 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_cc_g+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579 ac_save_c_werror_flag=$ac_c_werror_flag
3580 ac_c_werror_flag=yes
3581 ac_cv_prog_cc_g=no
3582 CFLAGS="-g"
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3591 main ()
3595 return 0;
3597 _ACEOF
3598 rm -f conftest.$ac_objext
3599 if { (ac_try="$ac_compile"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_compile") 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } && {
3612 test -z "$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3614 } && test -s conftest.$ac_objext; then
3615 ac_cv_prog_cc_g=yes
3616 else
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 CFLAGS=""
3621 cat >conftest.$ac_ext <<_ACEOF
3622 /* confdefs.h. */
3623 _ACEOF
3624 cat confdefs.h >>conftest.$ac_ext
3625 cat >>conftest.$ac_ext <<_ACEOF
3626 /* end confdefs.h. */
3629 main ()
3633 return 0;
3635 _ACEOF
3636 rm -f conftest.$ac_objext
3637 if { (ac_try="$ac_compile"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3643 (eval "$ac_compile") 2>conftest.er1
3644 ac_status=$?
3645 grep -v '^ *+' conftest.er1 >conftest.err
3646 rm -f conftest.er1
3647 cat conftest.err >&5
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && {
3650 test -z "$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3652 } && test -s conftest.$ac_objext; then
3654 else
3655 echo "$as_me: failed program was:" >&5
3656 sed 's/^/| /' conftest.$ac_ext >&5
3658 ac_c_werror_flag=$ac_save_c_werror_flag
3659 CFLAGS="-g"
3660 cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h. */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h. */
3668 main ()
3672 return 0;
3674 _ACEOF
3675 rm -f conftest.$ac_objext
3676 if { (ac_try="$ac_compile"
3677 case "(($ac_try" in
3678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679 *) ac_try_echo=$ac_try;;
3680 esac
3681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682 (eval "$ac_compile") 2>conftest.er1
3683 ac_status=$?
3684 grep -v '^ *+' conftest.er1 >conftest.err
3685 rm -f conftest.er1
3686 cat conftest.err >&5
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); } && {
3689 test -z "$ac_c_werror_flag" ||
3690 test ! -s conftest.err
3691 } && test -s conftest.$ac_objext; then
3692 ac_cv_prog_cc_g=yes
3693 else
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3707 ac_c_werror_flag=$ac_save_c_werror_flag
3709 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3710 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3711 if test "$ac_test_CFLAGS" = set; then
3712 CFLAGS=$ac_save_CFLAGS
3713 elif test $ac_cv_prog_cc_g = yes; then
3714 if test "$GCC" = yes; then
3715 CFLAGS="-g -O2"
3716 else
3717 CFLAGS="-g"
3719 else
3720 if test "$GCC" = yes; then
3721 CFLAGS="-O2"
3722 else
3723 CFLAGS=
3726 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3727 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3728 if test "${ac_cv_prog_cc_c89+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731 ac_cv_prog_cc_c89=no
3732 ac_save_CC=$CC
3733 cat >conftest.$ac_ext <<_ACEOF
3734 /* confdefs.h. */
3735 _ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3739 #include <stdarg.h>
3740 #include <stdio.h>
3741 #include <sys/types.h>
3742 #include <sys/stat.h>
3743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3744 struct buf { int x; };
3745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3746 static char *e (p, i)
3747 char **p;
3748 int i;
3750 return p[i];
3752 static char *f (char * (*g) (char **, int), char **p, ...)
3754 char *s;
3755 va_list v;
3756 va_start (v,p);
3757 s = g (p, va_arg (v,int));
3758 va_end (v);
3759 return s;
3762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3763 function prototypes and stuff, but not '\xHH' hex character constants.
3764 These don't provoke an error unfortunately, instead are silently treated
3765 as 'x'. The following induces an error, until -std is added to get
3766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3767 array size at least. It's necessary to write '\x00'==0 to get something
3768 that's true only with -std. */
3769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3771 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3772 inside strings and character constants. */
3773 #define FOO(x) 'x'
3774 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3776 int test (int i, double x);
3777 struct s1 {int (*f) (int a);};
3778 struct s2 {int (*f) (double a);};
3779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3780 int argc;
3781 char **argv;
3783 main ()
3785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3787 return 0;
3789 _ACEOF
3790 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3791 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3793 CC="$ac_save_CC $ac_arg"
3794 rm -f conftest.$ac_objext
3795 if { (ac_try="$ac_compile"
3796 case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3801 (eval "$ac_compile") 2>conftest.er1
3802 ac_status=$?
3803 grep -v '^ *+' conftest.er1 >conftest.err
3804 rm -f conftest.er1
3805 cat conftest.err >&5
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); } && {
3808 test -z "$ac_c_werror_flag" ||
3809 test ! -s conftest.err
3810 } && test -s conftest.$ac_objext; then
3811 ac_cv_prog_cc_c89=$ac_arg
3812 else
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3819 rm -f core conftest.err conftest.$ac_objext
3820 test "x$ac_cv_prog_cc_c89" != "xno" && break
3821 done
3822 rm -f conftest.$ac_ext
3823 CC=$ac_save_CC
3826 # AC_CACHE_VAL
3827 case "x$ac_cv_prog_cc_c89" in
3829 { echo "$as_me:$LINENO: result: none needed" >&5
3830 echo "${ECHO_T}none needed" >&6; } ;;
3831 xno)
3832 { echo "$as_me:$LINENO: result: unsupported" >&5
3833 echo "${ECHO_T}unsupported" >&6; } ;;
3835 CC="$CC $ac_cv_prog_cc_c89"
3836 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3837 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3838 esac
3841 ac_ext=c
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3848 # On Suns, sometimes $CPP names a directory.
3849 if test -n "$CPP" && test -d "$CPP"; then
3850 CPP=
3853 ## If not using gcc, and on Solaris, and no CPP specified, see if
3854 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3855 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3856 test x"$CPP" = x; then
3857 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3858 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3860 if test "${emacs_cv_sunpro_c+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863 cat >conftest.$ac_ext <<_ACEOF
3864 /* confdefs.h. */
3865 _ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3871 main ()
3873 #ifndef __SUNPRO_C
3874 fail;
3875 #endif
3878 return 0;
3880 _ACEOF
3881 rm -f conftest.$ac_objext conftest$ac_exeext
3882 if { (ac_try="$ac_link"
3883 case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3886 esac
3887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3888 (eval "$ac_link") 2>conftest.er1
3889 ac_status=$?
3890 grep -v '^ *+' conftest.er1 >conftest.err
3891 rm -f conftest.er1
3892 cat conftest.err >&5
3893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894 (exit $ac_status); } && {
3895 test -z "$ac_c_werror_flag" ||
3896 test ! -s conftest.err
3897 } && test -s conftest$ac_exeext &&
3898 $as_test_x conftest$ac_exeext; then
3899 emacs_cv_sunpro_c=yes
3900 else
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3904 emacs_cv_sunpro_c=no
3907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3908 conftest$ac_exeext conftest.$ac_ext
3911 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3912 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3914 if test x"$emacs_cv_sunpro_c" = xyes; then
3915 NON_GNU_CPP="$CC -E -Xs"
3919 #### Some systems specify a CPP to use unless we are using GCC.
3920 #### Now that we know whether we are using GCC, we can decide whether
3921 #### to use that one.
3922 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3923 then
3924 CPP="$NON_GNU_CPP"
3927 #### Some systems specify a CC to use unless we are using GCC.
3928 #### Now that we know whether we are using GCC, we can decide whether
3929 #### to use that one.
3930 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3931 test x$cc_specified != xyes
3932 then
3933 CC="$NON_GNU_CC"
3936 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3937 then
3938 CC="$CC $GCC_TEST_OPTIONS"
3941 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3942 then
3943 CC="$CC $NON_GCC_TEST_OPTIONS"
3946 ac_ext=c
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3951 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3952 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3953 # On Suns, sometimes $CPP names a directory.
3954 if test -n "$CPP" && test -d "$CPP"; then
3955 CPP=
3957 if test -z "$CPP"; then
3958 if test "${ac_cv_prog_CPP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 # Double quotes because CPP needs to be expanded
3962 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3964 ac_preproc_ok=false
3965 for ac_c_preproc_warn_flag in '' yes
3967 # Use a header file that comes with gcc, so configuring glibc
3968 # with a fresh cross-compiler works.
3969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3970 # <limits.h> exists even on freestanding compilers.
3971 # On the NeXT, cc -E runs the code through the compiler's parser,
3972 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
3980 # include <limits.h>
3981 #else
3982 # include <assert.h>
3983 #endif
3984 Syntax error
3985 _ACEOF
3986 if { (ac_try="$ac_cpp conftest.$ac_ext"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3993 ac_status=$?
3994 grep -v '^ *+' conftest.er1 >conftest.err
3995 rm -f conftest.er1
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3998 (exit $ac_status); } >/dev/null && {
3999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 }; then
4003 else
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4007 # Broken: fails on valid input.
4008 continue
4011 rm -f conftest.err conftest.$ac_ext
4013 # OK, works on sane cases. Now check whether nonexistent headers
4014 # can be detected and how.
4015 cat >conftest.$ac_ext <<_ACEOF
4016 /* confdefs.h. */
4017 _ACEOF
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4021 #include <ac_nonexistent.h>
4022 _ACEOF
4023 if { (ac_try="$ac_cpp conftest.$ac_ext"
4024 case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null && {
4036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4038 }; then
4039 # Broken: success on invalid input.
4040 continue
4041 else
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 # Passes both tests.
4046 ac_preproc_ok=:
4047 break
4050 rm -f conftest.err conftest.$ac_ext
4052 done
4053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4054 rm -f conftest.err conftest.$ac_ext
4055 if $ac_preproc_ok; then
4056 break
4059 done
4060 ac_cv_prog_CPP=$CPP
4063 CPP=$ac_cv_prog_CPP
4064 else
4065 ac_cv_prog_CPP=$CPP
4067 { echo "$as_me:$LINENO: result: $CPP" >&5
4068 echo "${ECHO_T}$CPP" >&6; }
4069 ac_preproc_ok=false
4070 for ac_c_preproc_warn_flag in '' yes
4072 # Use a header file that comes with gcc, so configuring glibc
4073 # with a fresh cross-compiler works.
4074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4075 # <limits.h> exists even on freestanding compilers.
4076 # On the NeXT, cc -E runs the code through the compiler's parser,
4077 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4085 # include <limits.h>
4086 #else
4087 # include <assert.h>
4088 #endif
4089 Syntax error
4090 _ACEOF
4091 if { (ac_try="$ac_cpp conftest.$ac_ext"
4092 case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095 esac
4096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev/null && {
4104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4106 }; then
4108 else
4109 echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4112 # Broken: fails on valid input.
4113 continue
4116 rm -f conftest.err conftest.$ac_ext
4118 # OK, works on sane cases. Now check whether nonexistent headers
4119 # can be detected and how.
4120 cat >conftest.$ac_ext <<_ACEOF
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */
4126 #include <ac_nonexistent.h>
4127 _ACEOF
4128 if { (ac_try="$ac_cpp conftest.$ac_ext"
4129 case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4135 ac_status=$?
4136 grep -v '^ *+' conftest.er1 >conftest.err
4137 rm -f conftest.er1
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } >/dev/null && {
4141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4142 test ! -s conftest.err
4143 }; then
4144 # Broken: success on invalid input.
4145 continue
4146 else
4147 echo "$as_me: failed program was:" >&5
4148 sed 's/^/| /' conftest.$ac_ext >&5
4150 # Passes both tests.
4151 ac_preproc_ok=:
4152 break
4155 rm -f conftest.err conftest.$ac_ext
4157 done
4158 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4159 rm -f conftest.err conftest.$ac_ext
4160 if $ac_preproc_ok; then
4162 else
4163 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4164 See \`config.log' for more details." >&5
4165 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4166 See \`config.log' for more details." >&2;}
4167 { (exit 1); exit 1; }; }
4170 ac_ext=c
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4178 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4179 if test "${ac_cv_path_GREP+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182 # Extract the first word of "grep ggrep" to use in msg output
4183 if test -z "$GREP"; then
4184 set dummy grep ggrep; ac_prog_name=$2
4185 if test "${ac_cv_path_GREP+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 else
4188 ac_path_GREP_found=false
4189 # Loop through the user's path and test for each of PROGNAME-LIST
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_prog in grep ggrep; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4198 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4199 # Check for GNU ac_path_GREP and select it if it is found.
4200 # Check for GNU $ac_path_GREP
4201 case `"$ac_path_GREP" --version 2>&1` in
4202 *GNU*)
4203 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4205 ac_count=0
4206 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4207 while :
4209 cat "conftest.in" "conftest.in" >"conftest.tmp"
4210 mv "conftest.tmp" "conftest.in"
4211 cp "conftest.in" "conftest.nl"
4212 echo 'GREP' >> "conftest.nl"
4213 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215 ac_count=`expr $ac_count + 1`
4216 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4217 # Best one so far, save it but keep looking for a better one
4218 ac_cv_path_GREP="$ac_path_GREP"
4219 ac_path_GREP_max=$ac_count
4221 # 10*(2^10) chars as input seems more than enough
4222 test $ac_count -gt 10 && break
4223 done
4224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4225 esac
4228 $ac_path_GREP_found && break 3
4229 done
4230 done
4232 done
4233 IFS=$as_save_IFS
4238 GREP="$ac_cv_path_GREP"
4239 if test -z "$GREP"; then
4240 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4241 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4242 { (exit 1); exit 1; }; }
4245 else
4246 ac_cv_path_GREP=$GREP
4251 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4252 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4253 GREP="$ac_cv_path_GREP"
4256 { echo "$as_me:$LINENO: checking for egrep" >&5
4257 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4258 if test "${ac_cv_path_EGREP+set}" = set; then
4259 echo $ECHO_N "(cached) $ECHO_C" >&6
4260 else
4261 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4262 then ac_cv_path_EGREP="$GREP -E"
4263 else
4264 # Extract the first word of "egrep" to use in msg output
4265 if test -z "$EGREP"; then
4266 set dummy egrep; ac_prog_name=$2
4267 if test "${ac_cv_path_EGREP+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 ac_path_EGREP_found=false
4271 # Loop through the user's path and test for each of PROGNAME-LIST
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275 IFS=$as_save_IFS
4276 test -z "$as_dir" && as_dir=.
4277 for ac_prog in egrep; do
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4280 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4281 # Check for GNU ac_path_EGREP and select it if it is found.
4282 # Check for GNU $ac_path_EGREP
4283 case `"$ac_path_EGREP" --version 2>&1` in
4284 *GNU*)
4285 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4287 ac_count=0
4288 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4289 while :
4291 cat "conftest.in" "conftest.in" >"conftest.tmp"
4292 mv "conftest.tmp" "conftest.in"
4293 cp "conftest.in" "conftest.nl"
4294 echo 'EGREP' >> "conftest.nl"
4295 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4296 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4297 ac_count=`expr $ac_count + 1`
4298 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4299 # Best one so far, save it but keep looking for a better one
4300 ac_cv_path_EGREP="$ac_path_EGREP"
4301 ac_path_EGREP_max=$ac_count
4303 # 10*(2^10) chars as input seems more than enough
4304 test $ac_count -gt 10 && break
4305 done
4306 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4307 esac
4310 $ac_path_EGREP_found && break 3
4311 done
4312 done
4314 done
4315 IFS=$as_save_IFS
4320 EGREP="$ac_cv_path_EGREP"
4321 if test -z "$EGREP"; then
4322 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4323 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4324 { (exit 1); exit 1; }; }
4327 else
4328 ac_cv_path_EGREP=$EGREP
4334 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4335 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4336 EGREP="$ac_cv_path_EGREP"
4340 { echo "$as_me:$LINENO: checking for AIX" >&5
4341 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4342 cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h. */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 #ifdef _AIX
4350 #endif
4352 _ACEOF
4353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4354 $EGREP "yes" >/dev/null 2>&1; then
4355 { echo "$as_me:$LINENO: result: yes" >&5
4356 echo "${ECHO_T}yes" >&6; }
4357 cat >>confdefs.h <<\_ACEOF
4358 #define _ALL_SOURCE 1
4359 _ACEOF
4361 else
4362 { echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6; }
4365 rm -f conftest*
4369 cat >>confdefs.h <<\_ACEOF
4370 #define _GNU_SOURCE 1
4371 _ACEOF
4375 ### Use -Wno-pointer-sign if the compiler supports it
4376 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4377 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4378 SAVE_CFLAGS="$CFLAGS"
4379 CFLAGS="$CFLAGS -Wno-pointer-sign"
4380 cat >conftest.$ac_ext <<_ACEOF
4381 /* confdefs.h. */
4382 _ACEOF
4383 cat confdefs.h >>conftest.$ac_ext
4384 cat >>conftest.$ac_ext <<_ACEOF
4385 /* end confdefs.h. */
4388 main ()
4392 return 0;
4394 _ACEOF
4395 rm -f conftest.$ac_objext
4396 if { (ac_try="$ac_compile"
4397 case "(($ac_try" in
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_compile") 2>conftest.er1
4403 ac_status=$?
4404 grep -v '^ *+' conftest.er1 >conftest.err
4405 rm -f conftest.er1
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && {
4409 test -z "$ac_c_werror_flag" ||
4410 test ! -s conftest.err
4411 } && test -s conftest.$ac_objext; then
4412 has_option=yes
4413 else
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4417 has_option=no
4420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 if test $has_option = yes; then
4422 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4424 { echo "$as_me:$LINENO: result: $has_option" >&5
4425 echo "${ECHO_T}$has_option" >&6; }
4426 CFLAGS="$SAVE_CFLAGS"
4427 unset has_option
4428 unset SAVE_CFLAGS
4430 #### Some other nice autoconf tests.
4432 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4433 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4434 LN_S=$as_ln_s
4435 if test "$LN_S" = "ln -s"; then
4436 { echo "$as_me:$LINENO: result: yes" >&5
4437 echo "${ECHO_T}yes" >&6; }
4438 else
4439 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4440 echo "${ECHO_T}no, using $LN_S" >&6; }
4443 ac_ext=c
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4449 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4450 # On Suns, sometimes $CPP names a directory.
4451 if test -n "$CPP" && test -d "$CPP"; then
4452 CPP=
4454 if test -z "$CPP"; then
4455 if test "${ac_cv_prog_CPP+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 # Double quotes because CPP needs to be expanded
4459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4461 ac_preproc_ok=false
4462 for ac_c_preproc_warn_flag in '' yes
4464 # Use a header file that comes with gcc, so configuring glibc
4465 # with a fresh cross-compiler works.
4466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467 # <limits.h> exists even on freestanding compilers.
4468 # On the NeXT, cc -E runs the code through the compiler's parser,
4469 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4477 # include <limits.h>
4478 #else
4479 # include <assert.h>
4480 #endif
4481 Syntax error
4482 _ACEOF
4483 if { (ac_try="$ac_cpp conftest.$ac_ext"
4484 case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487 esac
4488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4490 ac_status=$?
4491 grep -v '^ *+' conftest.er1 >conftest.err
4492 rm -f conftest.er1
4493 cat conftest.err >&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); } >/dev/null && {
4496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4497 test ! -s conftest.err
4498 }; then
4500 else
4501 echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 # Broken: fails on valid input.
4505 continue
4508 rm -f conftest.err conftest.$ac_ext
4510 # OK, works on sane cases. Now check whether nonexistent headers
4511 # can be detected and how.
4512 cat >conftest.$ac_ext <<_ACEOF
4513 /* confdefs.h. */
4514 _ACEOF
4515 cat confdefs.h >>conftest.$ac_ext
4516 cat >>conftest.$ac_ext <<_ACEOF
4517 /* end confdefs.h. */
4518 #include <ac_nonexistent.h>
4519 _ACEOF
4520 if { (ac_try="$ac_cpp conftest.$ac_ext"
4521 case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524 esac
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4527 ac_status=$?
4528 grep -v '^ *+' conftest.er1 >conftest.err
4529 rm -f conftest.er1
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } >/dev/null && {
4533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4534 test ! -s conftest.err
4535 }; then
4536 # Broken: success on invalid input.
4537 continue
4538 else
4539 echo "$as_me: failed program was:" >&5
4540 sed 's/^/| /' conftest.$ac_ext >&5
4542 # Passes both tests.
4543 ac_preproc_ok=:
4544 break
4547 rm -f conftest.err conftest.$ac_ext
4549 done
4550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551 rm -f conftest.err conftest.$ac_ext
4552 if $ac_preproc_ok; then
4553 break
4556 done
4557 ac_cv_prog_CPP=$CPP
4560 CPP=$ac_cv_prog_CPP
4561 else
4562 ac_cv_prog_CPP=$CPP
4564 { echo "$as_me:$LINENO: result: $CPP" >&5
4565 echo "${ECHO_T}$CPP" >&6; }
4566 ac_preproc_ok=false
4567 for ac_c_preproc_warn_flag in '' yes
4569 # Use a header file that comes with gcc, so configuring glibc
4570 # with a fresh cross-compiler works.
4571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4572 # <limits.h> exists even on freestanding compilers.
4573 # On the NeXT, cc -E runs the code through the compiler's parser,
4574 # not just through cpp. "Syntax error" is here to catch this case.
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 #ifdef __STDC__
4582 # include <limits.h>
4583 #else
4584 # include <assert.h>
4585 #endif
4586 Syntax error
4587 _ACEOF
4588 if { (ac_try="$ac_cpp conftest.$ac_ext"
4589 case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4592 esac
4593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4595 ac_status=$?
4596 grep -v '^ *+' conftest.er1 >conftest.err
4597 rm -f conftest.er1
4598 cat conftest.err >&5
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } >/dev/null && {
4601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4602 test ! -s conftest.err
4603 }; then
4605 else
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4609 # Broken: fails on valid input.
4610 continue
4613 rm -f conftest.err conftest.$ac_ext
4615 # OK, works on sane cases. Now check whether nonexistent headers
4616 # can be detected and how.
4617 cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h. */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */
4623 #include <ac_nonexistent.h>
4624 _ACEOF
4625 if { (ac_try="$ac_cpp conftest.$ac_ext"
4626 case "(($ac_try" in
4627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628 *) ac_try_echo=$ac_try;;
4629 esac
4630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } >/dev/null && {
4638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4639 test ! -s conftest.err
4640 }; then
4641 # Broken: success on invalid input.
4642 continue
4643 else
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4647 # Passes both tests.
4648 ac_preproc_ok=:
4649 break
4652 rm -f conftest.err conftest.$ac_ext
4654 done
4655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4656 rm -f conftest.err conftest.$ac_ext
4657 if $ac_preproc_ok; then
4659 else
4660 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4661 See \`config.log' for more details." >&5
4662 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4663 See \`config.log' for more details." >&2;}
4664 { (exit 1); exit 1; }; }
4667 ac_ext=c
4668 ac_cpp='$CPP $CPPFLAGS'
4669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4673 # Find a good install program. We prefer a C program (faster),
4674 # so one script is as good as another. But avoid the broken or
4675 # incompatible versions:
4676 # SysV /etc/install, /usr/sbin/install
4677 # SunOS /usr/etc/install
4678 # IRIX /sbin/install
4679 # AIX /bin/install
4680 # AmigaOS /C/install, which installs bootblocks on floppy discs
4681 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4682 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4683 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4684 # OS/2's system install, which has a completely different semantic
4685 # ./install, which can be erroneously created by make from ./install.sh.
4686 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4687 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4688 if test -z "$INSTALL"; then
4689 if test "${ac_cv_path_install+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693 for as_dir in $PATH
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
4697 # Account for people who put trailing slashes in PATH elements.
4698 case $as_dir/ in
4699 ./ | .// | /cC/* | \
4700 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4701 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4702 /usr/ucb/* ) ;;
4704 # OSF1 and SCO ODT 3.0 have their own names for install.
4705 # Don't use installbsd from OSF since it installs stuff as root
4706 # by default.
4707 for ac_prog in ginstall scoinst install; do
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4710 if test $ac_prog = install &&
4711 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4712 # AIX install. It has an incompatible calling convention.
4714 elif test $ac_prog = install &&
4715 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4716 # program-specific install script used by HP pwplus--don't use.
4718 else
4719 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4720 break 3
4723 done
4724 done
4726 esac
4727 done
4728 IFS=$as_save_IFS
4732 if test "${ac_cv_path_install+set}" = set; then
4733 INSTALL=$ac_cv_path_install
4734 else
4735 # As a last resort, use the slow shell script. Don't cache a
4736 # value for INSTALL within a source directory, because that will
4737 # break other packages using the cache if that directory is
4738 # removed, or if the value is a relative name.
4739 INSTALL=$ac_install_sh
4742 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4743 echo "${ECHO_T}$INSTALL" >&6; }
4745 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4746 # It thinks the first close brace ends the variable substitution.
4747 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4749 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4751 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4753 if test "x$RANLIB" = x; then
4754 if test -n "$ac_tool_prefix"; then
4755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4756 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4759 if test "${ac_cv_prog_RANLIB+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 if test -n "$RANLIB"; then
4763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4764 else
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4772 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 break 2
4776 done
4777 done
4778 IFS=$as_save_IFS
4782 RANLIB=$ac_cv_prog_RANLIB
4783 if test -n "$RANLIB"; then
4784 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4785 echo "${ECHO_T}$RANLIB" >&6; }
4786 else
4787 { echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6; }
4793 if test -z "$ac_cv_prog_RANLIB"; then
4794 ac_ct_RANLIB=$RANLIB
4795 # Extract the first word of "ranlib", so it can be a program name with args.
4796 set dummy ranlib; ac_word=$2
4797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4799 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4800 echo $ECHO_N "(cached) $ECHO_C" >&6
4801 else
4802 if test -n "$ac_ct_RANLIB"; then
4803 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4808 IFS=$as_save_IFS
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_prog_ac_ct_RANLIB="ranlib"
4813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814 break 2
4816 done
4817 done
4818 IFS=$as_save_IFS
4822 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4823 if test -n "$ac_ct_RANLIB"; then
4824 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4825 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4826 else
4827 { echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6; }
4831 if test "x$ac_ct_RANLIB" = x; then
4832 RANLIB=":"
4833 else
4834 case $cross_compiling:$ac_tool_warned in
4835 yes:)
4836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4837 whose name does not start with the host triplet. If you think this
4838 configuration is useful to you, please write to autoconf@gnu.org." >&5
4839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4840 whose name does not start with the host triplet. If you think this
4841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4842 ac_tool_warned=yes ;;
4843 esac
4844 RANLIB=$ac_ct_RANLIB
4846 else
4847 RANLIB="$ac_cv_prog_RANLIB"
4851 # Extract the first word of "install-info", so it can be a program name with args.
4852 set dummy install-info; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 case $INSTALL_INFO in
4859 [\\/]* | ?:[\\/]*)
4860 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH
4866 IFS=$as_save_IFS
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4872 break 2
4874 done
4875 done
4876 IFS=$as_save_IFS
4879 esac
4881 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4882 if test -n "$INSTALL_INFO"; then
4883 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4884 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4885 else
4886 { echo "$as_me:$LINENO: result: no" >&5
4887 echo "${ECHO_T}no" >&6; }
4891 # Extract the first word of "install-info", so it can be a program name with args.
4892 set dummy install-info; ac_word=$2
4893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4895 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898 case $INSTALL_INFO in
4899 [\\/]* | ?:[\\/]*)
4900 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in /usr/sbin
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4914 done
4915 done
4916 IFS=$as_save_IFS
4919 esac
4921 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4922 if test -n "$INSTALL_INFO"; then
4923 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4924 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4925 else
4926 { echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6; }
4931 # Extract the first word of "install-info", so it can be a program name with args.
4932 set dummy install-info; ac_word=$2
4933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4935 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 else
4938 case $INSTALL_INFO in
4939 [\\/]* | ?:[\\/]*)
4940 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in /sbin
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4954 done
4955 done
4956 IFS=$as_save_IFS
4958 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4960 esac
4962 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4963 if test -n "$INSTALL_INFO"; then
4964 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4965 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4966 else
4967 { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4972 # Extract the first word of "gzip", so it can be a program name with args.
4973 set dummy gzip; ac_word=$2
4974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4976 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 else
4979 case $GZIP_PROG in
4980 [\\/]* | ?:[\\/]*)
4981 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4987 IFS=$as_save_IFS
4988 test -z "$as_dir" && as_dir=.
4989 for ac_exec_ext in '' $ac_executable_extensions; do
4990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4991 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 break 2
4995 done
4996 done
4997 IFS=$as_save_IFS
5000 esac
5002 GZIP_PROG=$ac_cv_path_GZIP_PROG
5003 if test -n "$GZIP_PROG"; then
5004 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5005 echo "${ECHO_T}$GZIP_PROG" >&6; }
5006 else
5007 { echo "$as_me:$LINENO: result: no" >&5
5008 echo "${ECHO_T}no" >&6; }
5014 ## Need makeinfo >= 4.6 (?) to build the manuals.
5015 # Extract the first word of "makeinfo", so it can be a program name with args.
5016 set dummy makeinfo; ac_word=$2
5017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5019 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5021 else
5022 case $MAKEINFO in
5023 [\\/]* | ?:[\\/]*)
5024 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5038 done
5039 done
5040 IFS=$as_save_IFS
5042 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5044 esac
5046 MAKEINFO=$ac_cv_path_MAKEINFO
5047 if test -n "$MAKEINFO"; then
5048 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5049 echo "${ECHO_T}$MAKEINFO" >&6; }
5050 else
5051 { echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6; }
5056 if test "$MAKEINFO" != "no" && \
5057 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
5058 MAKEINFO=no
5061 if test "$MAKEINFO" = "no"; then
5062 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5063 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5064 { (exit 1); exit 1; }; }
5069 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5070 then
5071 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5074 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5075 then
5076 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5080 late_LDFLAGS=$LDFLAGS
5081 if test "$GCC" = yes; then
5082 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5083 else
5084 LDFLAGS="$LDFLAGS -znocombreloc"
5087 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5088 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5089 cat >conftest.$ac_ext <<_ACEOF
5090 main(){return 0;}
5091 _ACEOF
5092 rm -f conftest.$ac_objext conftest$ac_exeext
5093 if { (ac_try="$ac_link"
5094 case "(($ac_try" in
5095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096 *) ac_try_echo=$ac_try;;
5097 esac
5098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099 (eval "$ac_link") 2>conftest.er1
5100 ac_status=$?
5101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
5104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } && {
5106 test -z "$ac_c_werror_flag" ||
5107 test ! -s conftest.err
5108 } && test -s conftest$ac_exeext &&
5109 $as_test_x conftest$ac_exeext; then
5110 { echo "$as_me:$LINENO: result: yes" >&5
5111 echo "${ECHO_T}yes" >&6; }
5112 else
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5116 LDFLAGS=$late_LDFLAGS
5117 { echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6; }
5121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5122 conftest$ac_exeext conftest.$ac_ext
5124 #### Extract some information from the operating system and machine files.
5126 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5127 - which libraries the lib-src programs will want, and
5128 - whether the GNU malloc routines are usable..." >&5
5129 echo "$as_me: checking the machine- and system-dependent files to find out
5130 - which libraries the lib-src programs will want, and
5131 - whether the GNU malloc routines are usable..." >&6;}
5133 ### First figure out CFLAGS (which we use for running the compiler here)
5134 ### and REAL_CFLAGS (which we use for real compilation).
5135 ### The two are the same except on a few systems, where they are made
5136 ### different to work around various lossages. For example,
5137 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5138 ### as implying static linking.
5140 ### If the CFLAGS env var is specified, we use that value
5141 ### instead of the default.
5143 ### It's not important that this name contain the PID; you can't run
5144 ### two configures in the same directory and have anything work
5145 ### anyway.
5146 tempcname="conftest.c"
5148 echo '
5149 #include "'${srcdir}'/src/'${opsysfile}'"
5150 #include "'${srcdir}'/src/'${machfile}'"
5151 #ifndef LIBS_MACHINE
5152 #define LIBS_MACHINE
5153 #endif
5154 #ifndef LIBS_SYSTEM
5155 #define LIBS_SYSTEM
5156 #endif
5157 #ifndef C_SWITCH_SYSTEM
5158 #define C_SWITCH_SYSTEM
5159 #endif
5160 #ifndef C_SWITCH_MACHINE
5161 #define C_SWITCH_MACHINE
5162 #endif
5163 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5164 configure___ c_switch_system=C_SWITCH_SYSTEM
5165 configure___ c_switch_machine=C_SWITCH_MACHINE
5167 #ifndef LIB_X11_LIB
5168 #define LIB_X11_LIB -lX11
5169 #endif
5171 #ifndef LIBX11_MACHINE
5172 #define LIBX11_MACHINE
5173 #endif
5175 #ifndef LIBX11_SYSTEM
5176 #define LIBX11_SYSTEM
5177 #endif
5178 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5180 #ifdef UNEXEC
5181 configure___ unexec=UNEXEC
5182 #else
5183 configure___ unexec=unexec.o
5184 #endif
5186 #ifdef SYSTEM_MALLOC
5187 configure___ system_malloc=yes
5188 #else
5189 configure___ system_malloc=no
5190 #endif
5192 #ifdef USE_MMAP_FOR_BUFFERS
5193 configure___ use_mmap_for_buffers=yes
5194 #else
5195 configure___ use_mmap_for_buffers=no
5196 #endif
5198 #ifndef C_DEBUG_SWITCH
5199 #define C_DEBUG_SWITCH -g
5200 #endif
5202 #ifndef C_OPTIMIZE_SWITCH
5203 #ifdef __GNUC__
5204 #define C_OPTIMIZE_SWITCH -O2
5205 #else
5206 #define C_OPTIMIZE_SWITCH -O
5207 #endif
5208 #endif
5210 #ifndef C_WARNINGS_SWITCH
5211 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5212 #endif
5214 #ifndef LD_SWITCH_MACHINE
5215 #define LD_SWITCH_MACHINE
5216 #endif
5218 #ifndef LD_SWITCH_SYSTEM
5219 #define LD_SWITCH_SYSTEM
5220 #endif
5222 #ifndef LD_SWITCH_X_SITE_AUX
5223 #define LD_SWITCH_X_SITE_AUX
5224 #endif
5226 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5227 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5229 #ifdef THIS_IS_CONFIGURE
5231 /* Get the CFLAGS for tests in configure. */
5232 #ifdef __GNUC__
5233 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5234 #else
5235 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5236 #endif
5238 #else /* not THIS_IS_CONFIGURE */
5240 /* Get the CFLAGS for real compilation. */
5241 #ifdef __GNUC__
5242 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5243 #else
5244 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5245 #endif
5247 #endif /* not THIS_IS_CONFIGURE */
5248 ' > ${tempcname}
5250 # The value of CPP is a quoted variable reference, so we need to do this
5251 # to get its actual value...
5252 CPP=`eval "echo $CPP"`
5253 eval `${CPP} -Isrc ${tempcname} \
5254 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5255 if test "x$SPECIFIED_CFLAGS" = x; then
5256 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5257 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5258 else
5259 REAL_CFLAGS="$CFLAGS"
5261 rm ${tempcname}
5263 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5265 ### Make sure subsequent tests use flags consistent with the build flags.
5267 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5268 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5269 else
5270 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5275 # Check whether --enable-largefile was given.
5276 if test "${enable_largefile+set}" = set; then
5277 enableval=$enable_largefile;
5280 if test "$enable_largefile" != no; then
5282 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5283 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5284 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5286 else
5287 ac_cv_sys_largefile_CC=no
5288 if test "$GCC" != yes; then
5289 ac_save_CC=$CC
5290 while :; do
5291 # IRIX 6.2 and later do not support large files by default,
5292 # so use the C compiler's -n32 option if that helps.
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #include <sys/types.h>
5300 /* Check that off_t can represent 2**63 - 1 correctly.
5301 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5302 since some C++ compilers masquerading as C compilers
5303 incorrectly reject 9223372036854775807. */
5304 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5305 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5306 && LARGE_OFF_T % 2147483647 == 1)
5307 ? 1 : -1];
5309 main ()
5313 return 0;
5315 _ACEOF
5316 rm -f conftest.$ac_objext
5317 if { (ac_try="$ac_compile"
5318 case "(($ac_try" in
5319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5320 *) ac_try_echo=$ac_try;;
5321 esac
5322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5323 (eval "$ac_compile") 2>conftest.er1
5324 ac_status=$?
5325 grep -v '^ *+' conftest.er1 >conftest.err
5326 rm -f conftest.er1
5327 cat conftest.err >&5
5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5329 (exit $ac_status); } && {
5330 test -z "$ac_c_werror_flag" ||
5331 test ! -s conftest.err
5332 } && test -s conftest.$ac_objext; then
5333 break
5334 else
5335 echo "$as_me: failed program was:" >&5
5336 sed 's/^/| /' conftest.$ac_ext >&5
5341 rm -f core conftest.err conftest.$ac_objext
5342 CC="$CC -n32"
5343 rm -f conftest.$ac_objext
5344 if { (ac_try="$ac_compile"
5345 case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348 esac
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_compile") 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } && {
5357 test -z "$ac_c_werror_flag" ||
5358 test ! -s conftest.err
5359 } && test -s conftest.$ac_objext; then
5360 ac_cv_sys_largefile_CC=' -n32'; break
5361 else
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5368 rm -f core conftest.err conftest.$ac_objext
5369 break
5370 done
5371 CC=$ac_save_CC
5372 rm -f conftest.$ac_ext
5375 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5376 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5377 if test "$ac_cv_sys_largefile_CC" != no; then
5378 CC=$CC$ac_cv_sys_largefile_CC
5381 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5382 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5383 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5385 else
5386 while :; do
5387 cat >conftest.$ac_ext <<_ACEOF
5388 /* confdefs.h. */
5389 _ACEOF
5390 cat confdefs.h >>conftest.$ac_ext
5391 cat >>conftest.$ac_ext <<_ACEOF
5392 /* end confdefs.h. */
5393 #include <sys/types.h>
5394 /* Check that off_t can represent 2**63 - 1 correctly.
5395 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5396 since some C++ compilers masquerading as C compilers
5397 incorrectly reject 9223372036854775807. */
5398 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5399 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5400 && LARGE_OFF_T % 2147483647 == 1)
5401 ? 1 : -1];
5403 main ()
5407 return 0;
5409 _ACEOF
5410 rm -f conftest.$ac_objext
5411 if { (ac_try="$ac_compile"
5412 case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_compile") 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } && {
5424 test -z "$ac_c_werror_flag" ||
5425 test ! -s conftest.err
5426 } && test -s conftest.$ac_objext; then
5427 ac_cv_sys_file_offset_bits=no; break
5428 else
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #define _FILE_OFFSET_BITS 64
5443 #include <sys/types.h>
5444 /* Check that off_t can represent 2**63 - 1 correctly.
5445 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5446 since some C++ compilers masquerading as C compilers
5447 incorrectly reject 9223372036854775807. */
5448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5449 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5450 && LARGE_OFF_T % 2147483647 == 1)
5451 ? 1 : -1];
5453 main ()
5457 return 0;
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (ac_try="$ac_compile"
5462 case "(($ac_try" in
5463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464 *) ac_try_echo=$ac_try;;
5465 esac
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467 (eval "$ac_compile") 2>conftest.er1
5468 ac_status=$?
5469 grep -v '^ *+' conftest.er1 >conftest.err
5470 rm -f conftest.er1
5471 cat conftest.err >&5
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && {
5474 test -z "$ac_c_werror_flag" ||
5475 test ! -s conftest.err
5476 } && test -s conftest.$ac_objext; then
5477 ac_cv_sys_file_offset_bits=64; break
5478 else
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 ac_cv_sys_file_offset_bits=unknown
5487 break
5488 done
5490 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5491 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5492 case $ac_cv_sys_file_offset_bits in #(
5493 no | unknown) ;;
5495 cat >>confdefs.h <<_ACEOF
5496 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5497 _ACEOF
5499 esac
5500 rm -f conftest*
5501 if test $ac_cv_sys_file_offset_bits = unknown; then
5502 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5503 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5504 if test "${ac_cv_sys_large_files+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 else
5507 while :; do
5508 cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h. */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5514 #include <sys/types.h>
5515 /* Check that off_t can represent 2**63 - 1 correctly.
5516 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5517 since some C++ compilers masquerading as C compilers
5518 incorrectly reject 9223372036854775807. */
5519 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5520 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5521 && LARGE_OFF_T % 2147483647 == 1)
5522 ? 1 : -1];
5524 main ()
5528 return 0;
5530 _ACEOF
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5533 case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536 esac
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5539 ac_status=$?
5540 grep -v '^ *+' conftest.er1 >conftest.err
5541 rm -f conftest.er1
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.$ac_objext; then
5548 ac_cv_sys_large_files=no; break
5549 else
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 #define _LARGE_FILES 1
5564 #include <sys/types.h>
5565 /* Check that off_t can represent 2**63 - 1 correctly.
5566 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5567 since some C++ compilers masquerading as C compilers
5568 incorrectly reject 9223372036854775807. */
5569 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5570 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5571 && LARGE_OFF_T % 2147483647 == 1)
5572 ? 1 : -1];
5574 main ()
5578 return 0;
5580 _ACEOF
5581 rm -f conftest.$ac_objext
5582 if { (ac_try="$ac_compile"
5583 case "(($ac_try" in
5584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585 *) ac_try_echo=$ac_try;;
5586 esac
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588 (eval "$ac_compile") 2>conftest.er1
5589 ac_status=$?
5590 grep -v '^ *+' conftest.er1 >conftest.err
5591 rm -f conftest.er1
5592 cat conftest.err >&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && {
5595 test -z "$ac_c_werror_flag" ||
5596 test ! -s conftest.err
5597 } && test -s conftest.$ac_objext; then
5598 ac_cv_sys_large_files=1; break
5599 else
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5607 ac_cv_sys_large_files=unknown
5608 break
5609 done
5611 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5612 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5613 case $ac_cv_sys_large_files in #(
5614 no | unknown) ;;
5616 cat >>confdefs.h <<_ACEOF
5617 #define _LARGE_FILES $ac_cv_sys_large_files
5618 _ACEOF
5620 esac
5621 rm -f conftest*
5627 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5628 ### be located in either /usr/lib64 or /usr/lib.
5629 case "${canonical}" in
5630 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5631 if test -d /usr/lib64; then
5633 cat >>confdefs.h <<\_ACEOF
5634 #define HAVE_LIB64_DIR 1
5635 _ACEOF
5638 esac
5643 if test "${with_sound}" != "no"; then
5644 # Sound support for GNU/Linux and the free BSDs.
5645 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5646 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5647 if test "${ac_cv_header_stdc+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 cat >conftest.$ac_ext <<_ACEOF
5651 /* confdefs.h. */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 #include <stdlib.h>
5657 #include <stdarg.h>
5658 #include <string.h>
5659 #include <float.h>
5662 main ()
5666 return 0;
5668 _ACEOF
5669 rm -f conftest.$ac_objext
5670 if { (ac_try="$ac_compile"
5671 case "(($ac_try" in
5672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5673 *) ac_try_echo=$ac_try;;
5674 esac
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_compile") 2>conftest.er1
5677 ac_status=$?
5678 grep -v '^ *+' conftest.er1 >conftest.err
5679 rm -f conftest.er1
5680 cat conftest.err >&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } && {
5683 test -z "$ac_c_werror_flag" ||
5684 test ! -s conftest.err
5685 } && test -s conftest.$ac_objext; then
5686 ac_cv_header_stdc=yes
5687 else
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.$ac_ext >&5
5691 ac_cv_header_stdc=no
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5696 if test $ac_cv_header_stdc = yes; then
5697 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5698 cat >conftest.$ac_ext <<_ACEOF
5699 /* confdefs.h. */
5700 _ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <string.h>
5706 _ACEOF
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "memchr" >/dev/null 2>&1; then
5710 else
5711 ac_cv_header_stdc=no
5713 rm -f conftest*
5717 if test $ac_cv_header_stdc = yes; then
5718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5719 cat >conftest.$ac_ext <<_ACEOF
5720 /* confdefs.h. */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5725 #include <stdlib.h>
5727 _ACEOF
5728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5729 $EGREP "free" >/dev/null 2>&1; then
5731 else
5732 ac_cv_header_stdc=no
5734 rm -f conftest*
5738 if test $ac_cv_header_stdc = yes; then
5739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5740 if test "$cross_compiling" = yes; then
5742 else
5743 cat >conftest.$ac_ext <<_ACEOF
5744 /* confdefs.h. */
5745 _ACEOF
5746 cat confdefs.h >>conftest.$ac_ext
5747 cat >>conftest.$ac_ext <<_ACEOF
5748 /* end confdefs.h. */
5749 #include <ctype.h>
5750 #include <stdlib.h>
5751 #if ((' ' & 0x0FF) == 0x020)
5752 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5753 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5754 #else
5755 # define ISLOWER(c) \
5756 (('a' <= (c) && (c) <= 'i') \
5757 || ('j' <= (c) && (c) <= 'r') \
5758 || ('s' <= (c) && (c) <= 'z'))
5759 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5760 #endif
5762 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5764 main ()
5766 int i;
5767 for (i = 0; i < 256; i++)
5768 if (XOR (islower (i), ISLOWER (i))
5769 || toupper (i) != TOUPPER (i))
5770 return 2;
5771 return 0;
5773 _ACEOF
5774 rm -f conftest$ac_exeext
5775 if { (ac_try="$ac_link"
5776 case "(($ac_try" in
5777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5779 esac
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_link") 2>&5
5782 ac_status=$?
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5785 { (case "(($ac_try" in
5786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5788 esac
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_try") 2>&5
5791 ac_status=$?
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }; }; then
5795 else
5796 echo "$as_me: program exited with status $ac_status" >&5
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 ( exit $ac_status )
5801 ac_cv_header_stdc=no
5803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5809 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5810 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5811 if test $ac_cv_header_stdc = yes; then
5813 cat >>confdefs.h <<\_ACEOF
5814 #define STDC_HEADERS 1
5815 _ACEOF
5819 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5829 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5830 inttypes.h stdint.h unistd.h
5832 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5844 $ac_includes_default
5846 #include <$ac_header>
5847 _ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5850 case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853 esac
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } && {
5862 test -z "$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 } && test -s conftest.$ac_objext; then
5865 eval "$as_ac_Header=yes"
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5870 eval "$as_ac_Header=no"
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 ac_res=`eval echo '${'$as_ac_Header'}'`
5876 { echo "$as_me:$LINENO: result: $ac_res" >&5
5877 echo "${ECHO_T}$ac_res" >&6; }
5878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5879 cat >>confdefs.h <<_ACEOF
5880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5881 _ACEOF
5885 done
5891 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 ac_res=`eval echo '${'$as_ac_Header'}'`
5901 { echo "$as_me:$LINENO: result: $ac_res" >&5
5902 echo "${ECHO_T}$ac_res" >&6; }
5903 else
5904 # Is the header compilable?
5905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5907 cat >conftest.$ac_ext <<_ACEOF
5908 /* confdefs.h. */
5909 _ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 $ac_includes_default
5914 #include <$ac_header>
5915 _ACEOF
5916 rm -f conftest.$ac_objext
5917 if { (ac_try="$ac_compile"
5918 case "(($ac_try" in
5919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5921 esac
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_compile") 2>conftest.er1
5924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
5928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest.$ac_objext; then
5933 ac_header_compiler=yes
5934 else
5935 echo "$as_me: failed program was:" >&5
5936 sed 's/^/| /' conftest.$ac_ext >&5
5938 ac_header_compiler=no
5941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5943 echo "${ECHO_T}$ac_header_compiler" >&6; }
5945 # Is the header present?
5946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h. */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h. */
5954 #include <$ac_header>
5955 _ACEOF
5956 if { (ac_try="$ac_cpp conftest.$ac_ext"
5957 case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5960 esac
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5963 ac_status=$?
5964 grep -v '^ *+' conftest.er1 >conftest.err
5965 rm -f conftest.er1
5966 cat conftest.err >&5
5967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968 (exit $ac_status); } >/dev/null && {
5969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5970 test ! -s conftest.err
5971 }; then
5972 ac_header_preproc=yes
5973 else
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5977 ac_header_preproc=no
5980 rm -f conftest.err conftest.$ac_ext
5981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5982 echo "${ECHO_T}$ac_header_preproc" >&6; }
5984 # So? What about this header?
5985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5986 yes:no: )
5987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5991 ac_header_preproc=yes
5993 no:yes:* )
5994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6008 esac
6009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014 eval "$as_ac_Header=\$ac_header_preproc"
6016 ac_res=`eval echo '${'$as_ac_Header'}'`
6017 { echo "$as_me:$LINENO: result: $ac_res" >&5
6018 echo "${ECHO_T}$ac_res" >&6; }
6021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6022 cat >>confdefs.h <<_ACEOF
6023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6024 _ACEOF
6028 done
6030 # Emulation library used on NetBSD.
6031 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6032 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6033 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 else
6036 ac_check_lib_save_LIBS=$LIBS
6037 LIBS="-lossaudio $LIBS"
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h. */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6045 /* Override any GCC internal prototype to avoid an error.
6046 Use char because int might match the return type of a GCC
6047 builtin and then its argument prototype would still apply. */
6048 #ifdef __cplusplus
6049 extern "C"
6050 #endif
6051 char _oss_ioctl ();
6053 main ()
6055 return _oss_ioctl ();
6057 return 0;
6059 _ACEOF
6060 rm -f conftest.$ac_objext conftest$ac_exeext
6061 if { (ac_try="$ac_link"
6062 case "(($ac_try" in
6063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6064 *) ac_try_echo=$ac_try;;
6065 esac
6066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6067 (eval "$ac_link") 2>conftest.er1
6068 ac_status=$?
6069 grep -v '^ *+' conftest.er1 >conftest.err
6070 rm -f conftest.er1
6071 cat conftest.err >&5
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); } && {
6074 test -z "$ac_c_werror_flag" ||
6075 test ! -s conftest.err
6076 } && test -s conftest$ac_exeext &&
6077 $as_test_x conftest$ac_exeext; then
6078 ac_cv_lib_ossaudio__oss_ioctl=yes
6079 else
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 ac_cv_lib_ossaudio__oss_ioctl=no
6086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6087 conftest$ac_exeext conftest.$ac_ext
6088 LIBS=$ac_check_lib_save_LIBS
6090 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6091 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6092 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6093 LIBSOUND=-lossaudio
6094 else
6095 LIBSOUND=
6100 ALSA_REQUIRED=1.0.0
6101 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6103 succeeded=no
6105 # Extract the first word of "pkg-config", so it can be a program name with args.
6106 set dummy pkg-config; ac_word=$2
6107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6109 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6110 echo $ECHO_N "(cached) $ECHO_C" >&6
6111 else
6112 case $PKG_CONFIG in
6113 [\\/]* | ?:[\\/]*)
6114 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 for as_dir in $PATH
6120 IFS=$as_save_IFS
6121 test -z "$as_dir" && as_dir=.
6122 for ac_exec_ext in '' $ac_executable_extensions; do
6123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6124 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6126 break 2
6128 done
6129 done
6130 IFS=$as_save_IFS
6132 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6134 esac
6136 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6137 if test -n "$PKG_CONFIG"; then
6138 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6139 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6140 else
6141 { echo "$as_me:$LINENO: result: no" >&5
6142 echo "${ECHO_T}no" >&6; }
6147 if test "$PKG_CONFIG" = "no" ; then
6148 HAVE_ALSA=no
6149 else
6150 PKG_CONFIG_MIN_VERSION=0.9.0
6151 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6152 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6153 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6155 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6156 { echo "$as_me:$LINENO: result: yes" >&5
6157 echo "${ECHO_T}yes" >&6; }
6158 succeeded=yes
6160 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6161 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6162 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6163 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6164 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6166 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6167 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6168 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6169 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6170 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6171 else
6172 { echo "$as_me:$LINENO: result: no" >&5
6173 echo "${ECHO_T}no" >&6; }
6174 ALSA_CFLAGS=""
6175 ALSA_LIBS=""
6176 ## If we have a custom action on failure, don't print errors, but
6177 ## do set a variable so people can do so.
6178 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6184 else
6185 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6186 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6190 if test $succeeded = yes; then
6191 HAVE_ALSA=yes
6192 else
6193 HAVE_ALSA=no
6196 if test $HAVE_ALSA = yes; then
6197 SAVE_CFLAGS="$CFLAGS"
6198 SAVE_LDFLAGS="$LDFLAGS"
6199 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6200 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6201 cat >conftest.$ac_ext <<_ACEOF
6202 /* confdefs.h. */
6203 _ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6207 #include <asoundlib.h>
6209 main ()
6211 snd_lib_error_set_handler (0);
6213 return 0;
6215 _ACEOF
6216 rm -f conftest.$ac_objext
6217 if { (ac_try="$ac_compile"
6218 case "(($ac_try" in
6219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6220 *) ac_try_echo=$ac_try;;
6221 esac
6222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6223 (eval "$ac_compile") 2>conftest.er1
6224 ac_status=$?
6225 grep -v '^ *+' conftest.er1 >conftest.err
6226 rm -f conftest.er1
6227 cat conftest.err >&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } && {
6230 test -z "$ac_c_werror_flag" ||
6231 test ! -s conftest.err
6232 } && test -s conftest.$ac_objext; then
6233 emacs_alsa_normal=yes
6234 else
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6238 emacs_alsa_normal=no
6241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242 if test "$emacs_alsa_normal" != yes; then
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 #include <alsa/asoundlib.h>
6251 main ()
6253 snd_lib_error_set_handler (0);
6255 return 0;
6257 _ACEOF
6258 rm -f conftest.$ac_objext
6259 if { (ac_try="$ac_compile"
6260 case "(($ac_try" in
6261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6262 *) ac_try_echo=$ac_try;;
6263 esac
6264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6265 (eval "$ac_compile") 2>conftest.er1
6266 ac_status=$?
6267 grep -v '^ *+' conftest.er1 >conftest.err
6268 rm -f conftest.er1
6269 cat conftest.err >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); } && {
6272 test -z "$ac_c_werror_flag" ||
6273 test ! -s conftest.err
6274 } && test -s conftest.$ac_objext; then
6275 emacs_alsa_subdir=yes
6276 else
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 emacs_alsa_subdir=no
6283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6284 if test "$emacs_alsa_subdir" != yes; then
6285 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6286 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6287 { (exit 1); exit 1; }; }
6289 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6292 CFLAGS="$SAVE_CFLAGS"
6293 LDFLAGS="$SAVE_LDFLAGS"
6294 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6295 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6297 cat >>confdefs.h <<\_ACEOF
6298 #define HAVE_ALSA 1
6299 _ACEOF
6330 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6331 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6332 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6333 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6334 sys/utsname.h pwd.h
6336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6341 echo $ECHO_N "(cached) $ECHO_C" >&6
6343 ac_res=`eval echo '${'$as_ac_Header'}'`
6344 { echo "$as_me:$LINENO: result: $ac_res" >&5
6345 echo "${ECHO_T}$ac_res" >&6; }
6346 else
6347 # Is the header compilable?
6348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6350 cat >conftest.$ac_ext <<_ACEOF
6351 /* confdefs.h. */
6352 _ACEOF
6353 cat confdefs.h >>conftest.$ac_ext
6354 cat >>conftest.$ac_ext <<_ACEOF
6355 /* end confdefs.h. */
6356 $ac_includes_default
6357 #include <$ac_header>
6358 _ACEOF
6359 rm -f conftest.$ac_objext
6360 if { (ac_try="$ac_compile"
6361 case "(($ac_try" in
6362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363 *) ac_try_echo=$ac_try;;
6364 esac
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_compile") 2>conftest.er1
6367 ac_status=$?
6368 grep -v '^ *+' conftest.er1 >conftest.err
6369 rm -f conftest.er1
6370 cat conftest.err >&5
6371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } && {
6373 test -z "$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6375 } && test -s conftest.$ac_objext; then
6376 ac_header_compiler=yes
6377 else
6378 echo "$as_me: failed program was:" >&5
6379 sed 's/^/| /' conftest.$ac_ext >&5
6381 ac_header_compiler=no
6384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6385 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6386 echo "${ECHO_T}$ac_header_compiler" >&6; }
6388 # Is the header present?
6389 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6391 cat >conftest.$ac_ext <<_ACEOF
6392 /* confdefs.h. */
6393 _ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 #include <$ac_header>
6398 _ACEOF
6399 if { (ac_try="$ac_cpp conftest.$ac_ext"
6400 case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6403 esac
6404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6406 ac_status=$?
6407 grep -v '^ *+' conftest.er1 >conftest.err
6408 rm -f conftest.er1
6409 cat conftest.err >&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); } >/dev/null && {
6412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6413 test ! -s conftest.err
6414 }; then
6415 ac_header_preproc=yes
6416 else
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6420 ac_header_preproc=no
6423 rm -f conftest.err conftest.$ac_ext
6424 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6425 echo "${ECHO_T}$ac_header_preproc" >&6; }
6427 # So? What about this header?
6428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6429 yes:no: )
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6431 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6433 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6434 ac_header_preproc=yes
6436 no:yes:* )
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6438 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6440 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6442 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6444 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6446 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6448 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6451 esac
6452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6455 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 else
6457 eval "$as_ac_Header=\$ac_header_preproc"
6459 ac_res=`eval echo '${'$as_ac_Header'}'`
6460 { echo "$as_me:$LINENO: result: $ac_res" >&5
6461 echo "${ECHO_T}$ac_res" >&6; }
6464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6465 cat >>confdefs.h <<_ACEOF
6466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6467 _ACEOF
6471 done
6474 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6475 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6476 cat >conftest.$ac_ext <<_ACEOF
6477 /* confdefs.h. */
6478 _ACEOF
6479 cat confdefs.h >>conftest.$ac_ext
6480 cat >>conftest.$ac_ext <<_ACEOF
6481 /* end confdefs.h. */
6482 #include <sys/personality.h>
6484 main ()
6486 personality (PER_LINUX32)
6488 return 0;
6490 _ACEOF
6491 rm -f conftest.$ac_objext
6492 if { (ac_try="$ac_compile"
6493 case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496 esac
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_compile") 2>conftest.er1
6499 ac_status=$?
6500 grep -v '^ *+' conftest.er1 >conftest.err
6501 rm -f conftest.er1
6502 cat conftest.err >&5
6503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6504 (exit $ac_status); } && {
6505 test -z "$ac_c_werror_flag" ||
6506 test ! -s conftest.err
6507 } && test -s conftest.$ac_objext; then
6508 emacs_cv_personality_linux32=yes
6509 else
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6513 emacs_cv_personality_linux32=no
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6518 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6520 if test $emacs_cv_personality_linux32 = yes; then
6522 cat >>confdefs.h <<\_ACEOF
6523 #define HAVE_PERSONALITY_LINUX32 1
6524 _ACEOF
6529 for ac_header in term.h
6531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 else
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h. */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 #include <$ac_header>
6544 _ACEOF
6545 if { (ac_try="$ac_cpp conftest.$ac_ext"
6546 case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } >/dev/null && {
6558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 }; then
6561 eval "$as_ac_Header=yes"
6562 else
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 eval "$as_ac_Header=no"
6569 rm -f conftest.err conftest.$ac_ext
6571 ac_res=`eval echo '${'$as_ac_Header'}'`
6572 { echo "$as_me:$LINENO: result: $ac_res" >&5
6573 echo "${ECHO_T}$ac_res" >&6; }
6574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6575 cat >>confdefs.h <<_ACEOF
6576 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6577 _ACEOF
6581 done
6583 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6584 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6585 if test "${ac_cv_header_stdc+set}" = set; then
6586 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 else
6588 cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h. */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 #include <stdlib.h>
6595 #include <stdarg.h>
6596 #include <string.h>
6597 #include <float.h>
6600 main ()
6604 return 0;
6606 _ACEOF
6607 rm -f conftest.$ac_objext
6608 if { (ac_try="$ac_compile"
6609 case "(($ac_try" in
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6612 esac
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_compile") 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } && {
6621 test -z "$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 } && test -s conftest.$ac_objext; then
6624 ac_cv_header_stdc=yes
6625 else
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6629 ac_cv_header_stdc=no
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6634 if test $ac_cv_header_stdc = yes; then
6635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6636 cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h. */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 #include <string.h>
6644 _ACEOF
6645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6646 $EGREP "memchr" >/dev/null 2>&1; then
6648 else
6649 ac_cv_header_stdc=no
6651 rm -f conftest*
6655 if test $ac_cv_header_stdc = yes; then
6656 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6657 cat >conftest.$ac_ext <<_ACEOF
6658 /* confdefs.h. */
6659 _ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 #include <stdlib.h>
6665 _ACEOF
6666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6667 $EGREP "free" >/dev/null 2>&1; then
6669 else
6670 ac_cv_header_stdc=no
6672 rm -f conftest*
6676 if test $ac_cv_header_stdc = yes; then
6677 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6678 if test "$cross_compiling" = yes; then
6680 else
6681 cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h. */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 #include <ctype.h>
6688 #include <stdlib.h>
6689 #if ((' ' & 0x0FF) == 0x020)
6690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6692 #else
6693 # define ISLOWER(c) \
6694 (('a' <= (c) && (c) <= 'i') \
6695 || ('j' <= (c) && (c) <= 'r') \
6696 || ('s' <= (c) && (c) <= 'z'))
6697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6698 #endif
6700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6702 main ()
6704 int i;
6705 for (i = 0; i < 256; i++)
6706 if (XOR (islower (i), ISLOWER (i))
6707 || toupper (i) != TOUPPER (i))
6708 return 2;
6709 return 0;
6711 _ACEOF
6712 rm -f conftest$ac_exeext
6713 if { (ac_try="$ac_link"
6714 case "(($ac_try" in
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6717 esac
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719 (eval "$ac_link") 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6723 { (case "(($ac_try" in
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6726 esac
6727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6728 (eval "$ac_try") 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; }; then
6733 else
6734 echo "$as_me: program exited with status $ac_status" >&5
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6738 ( exit $ac_status )
6739 ac_cv_header_stdc=no
6741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6747 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6748 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6749 if test $ac_cv_header_stdc = yes; then
6751 cat >>confdefs.h <<\_ACEOF
6752 #define STDC_HEADERS 1
6753 _ACEOF
6757 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6758 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6759 if test "${ac_cv_header_time+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762 cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h. */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 #include <sys/types.h>
6769 #include <sys/time.h>
6770 #include <time.h>
6773 main ()
6775 if ((struct tm *) 0)
6776 return 0;
6778 return 0;
6780 _ACEOF
6781 rm -f conftest.$ac_objext
6782 if { (ac_try="$ac_compile"
6783 case "(($ac_try" in
6784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6786 esac
6787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_compile") 2>conftest.er1
6789 ac_status=$?
6790 grep -v '^ *+' conftest.er1 >conftest.err
6791 rm -f conftest.er1
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest.$ac_objext; then
6798 ac_cv_header_time=yes
6799 else
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 ac_cv_header_time=no
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6809 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6810 if test $ac_cv_header_time = yes; then
6812 cat >>confdefs.h <<\_ACEOF
6813 #define TIME_WITH_SYS_TIME 1
6814 _ACEOF
6818 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6819 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6820 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 $ac_includes_default
6831 main ()
6833 #ifndef sys_siglist
6834 (void) sys_siglist;
6835 #endif
6838 return 0;
6840 _ACEOF
6841 rm -f conftest.$ac_objext
6842 if { (ac_try="$ac_compile"
6843 case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_compile") 2>conftest.er1
6849 ac_status=$?
6850 grep -v '^ *+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } && {
6855 test -z "$ac_c_werror_flag" ||
6856 test ! -s conftest.err
6857 } && test -s conftest.$ac_objext; then
6858 ac_cv_have_decl_sys_siglist=yes
6859 else
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6863 ac_cv_have_decl_sys_siglist=no
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6868 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6869 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6870 if test $ac_cv_have_decl_sys_siglist = yes; then
6872 cat >>confdefs.h <<_ACEOF
6873 #define HAVE_DECL_SYS_SIGLIST 1
6874 _ACEOF
6877 else
6878 cat >>confdefs.h <<_ACEOF
6879 #define HAVE_DECL_SYS_SIGLIST 0
6880 _ACEOF
6886 if test $ac_cv_have_decl_sys_siglist != yes; then
6887 # For Tru64, at least:
6888 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6889 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6890 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 else
6893 cat >conftest.$ac_ext <<_ACEOF
6894 /* confdefs.h. */
6895 _ACEOF
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 $ac_includes_default
6901 main ()
6903 #ifndef __sys_siglist
6904 (void) __sys_siglist;
6905 #endif
6908 return 0;
6910 _ACEOF
6911 rm -f conftest.$ac_objext
6912 if { (ac_try="$ac_compile"
6913 case "(($ac_try" in
6914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915 *) ac_try_echo=$ac_try;;
6916 esac
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918 (eval "$ac_compile") 2>conftest.er1
6919 ac_status=$?
6920 grep -v '^ *+' conftest.er1 >conftest.err
6921 rm -f conftest.er1
6922 cat conftest.err >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && {
6925 test -z "$ac_c_werror_flag" ||
6926 test ! -s conftest.err
6927 } && test -s conftest.$ac_objext; then
6928 ac_cv_have_decl___sys_siglist=yes
6929 else
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6933 ac_cv_have_decl___sys_siglist=no
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6938 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6939 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6940 if test $ac_cv_have_decl___sys_siglist = yes; then
6942 cat >>confdefs.h <<_ACEOF
6943 #define HAVE_DECL___SYS_SIGLIST 1
6944 _ACEOF
6947 else
6948 cat >>confdefs.h <<_ACEOF
6949 #define HAVE_DECL___SYS_SIGLIST 0
6950 _ACEOF
6956 if test $ac_cv_have_decl___sys_siglist = yes; then
6958 cat >>confdefs.h <<\_ACEOF
6959 #define sys_siglist __sys_siglist
6960 _ACEOF
6964 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6965 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6966 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #include <sys/types.h>
6976 #include <sys/wait.h>
6977 #ifndef WEXITSTATUS
6978 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6979 #endif
6980 #ifndef WIFEXITED
6981 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6982 #endif
6985 main ()
6987 int s;
6988 wait (&s);
6989 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6991 return 0;
6993 _ACEOF
6994 rm -f conftest.$ac_objext
6995 if { (ac_try="$ac_compile"
6996 case "(($ac_try" in
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
6999 esac
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_compile") 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest.$ac_objext; then
7011 ac_cv_header_sys_wait_h=yes
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 ac_cv_header_sys_wait_h=no
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7021 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7022 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7023 if test $ac_cv_header_sys_wait_h = yes; then
7025 cat >>confdefs.h <<\_ACEOF
7026 #define HAVE_SYS_WAIT_H 1
7027 _ACEOF
7032 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7033 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7034 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 else
7037 cat >conftest.$ac_ext <<_ACEOF
7038 /* confdefs.h. */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */
7043 #ifdef TIME_WITH_SYS_TIME
7044 #include <sys/time.h>
7045 #include <time.h>
7046 #else
7047 #ifdef HAVE_SYS_TIME_H
7048 #include <sys/time.h>
7049 #else
7050 #include <time.h>
7051 #endif
7052 #endif
7053 #ifdef HAVE_UTIME_H
7054 #include <utime.h>
7055 #endif
7057 main ()
7059 static struct utimbuf x; x.actime = x.modtime;
7061 return 0;
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7066 case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069 esac
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_compile") 2>conftest.er1
7072 ac_status=$?
7073 grep -v '^ *+' conftest.er1 >conftest.err
7074 rm -f conftest.er1
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && {
7078 test -z "$ac_c_werror_flag" ||
7079 test ! -s conftest.err
7080 } && test -s conftest.$ac_objext; then
7081 emacs_cv_struct_utimbuf=yes
7082 else
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 emacs_cv_struct_utimbuf=no
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7092 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7093 if test $emacs_cv_struct_utimbuf = yes; then
7095 cat >>confdefs.h <<\_ACEOF
7096 #define HAVE_STRUCT_UTIMBUF 1
7097 _ACEOF
7101 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7102 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7103 if test "${ac_cv_type_signal+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 else
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 #include <sys/types.h>
7113 #include <signal.h>
7116 main ()
7118 return *(signal (0, 0)) (0) == 1;
7120 return 0;
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7125 case "(($ac_try" in
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7128 esac
7129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_compile") 2>conftest.er1
7131 ac_status=$?
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.$ac_objext; then
7140 ac_cv_type_signal=int
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_type_signal=void
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7151 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7153 cat >>confdefs.h <<_ACEOF
7154 #define RETSIGTYPE $ac_cv_type_signal
7155 _ACEOF
7159 { echo "$as_me:$LINENO: checking for speed_t" >&5
7160 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7161 if test "${emacs_cv_speed_t+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 else
7164 cat >conftest.$ac_ext <<_ACEOF
7165 /* confdefs.h. */
7166 _ACEOF
7167 cat confdefs.h >>conftest.$ac_ext
7168 cat >>conftest.$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 #include <termios.h>
7172 main ()
7174 speed_t x = 1;
7176 return 0;
7178 _ACEOF
7179 rm -f conftest.$ac_objext
7180 if { (ac_try="$ac_compile"
7181 case "(($ac_try" in
7182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183 *) ac_try_echo=$ac_try;;
7184 esac
7185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7186 (eval "$ac_compile") 2>conftest.er1
7187 ac_status=$?
7188 grep -v '^ *+' conftest.er1 >conftest.err
7189 rm -f conftest.er1
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } && {
7193 test -z "$ac_c_werror_flag" ||
7194 test ! -s conftest.err
7195 } && test -s conftest.$ac_objext; then
7196 emacs_cv_speed_t=yes
7197 else
7198 echo "$as_me: failed program was:" >&5
7199 sed 's/^/| /' conftest.$ac_ext >&5
7201 emacs_cv_speed_t=no
7204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7207 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7208 if test $emacs_cv_speed_t = yes; then
7210 cat >>confdefs.h <<\_ACEOF
7211 #define HAVE_SPEED_T 1
7212 _ACEOF
7216 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7217 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7218 if test "${emacs_cv_struct_timeval+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221 cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h. */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7227 #ifdef TIME_WITH_SYS_TIME
7228 #include <sys/time.h>
7229 #include <time.h>
7230 #else
7231 #ifdef HAVE_SYS_TIME_H
7232 #include <sys/time.h>
7233 #else
7234 #include <time.h>
7235 #endif
7236 #endif
7238 main ()
7240 static struct timeval x; x.tv_sec = x.tv_usec;
7242 return 0;
7244 _ACEOF
7245 rm -f conftest.$ac_objext
7246 if { (ac_try="$ac_compile"
7247 case "(($ac_try" in
7248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7249 *) ac_try_echo=$ac_try;;
7250 esac
7251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7252 (eval "$ac_compile") 2>conftest.er1
7253 ac_status=$?
7254 grep -v '^ *+' conftest.er1 >conftest.err
7255 rm -f conftest.er1
7256 cat conftest.err >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } && {
7259 test -z "$ac_c_werror_flag" ||
7260 test ! -s conftest.err
7261 } && test -s conftest.$ac_objext; then
7262 emacs_cv_struct_timeval=yes
7263 else
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 emacs_cv_struct_timeval=no
7270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7272 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7273 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7274 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7275 if test $emacs_cv_struct_timeval = yes; then
7277 cat >>confdefs.h <<\_ACEOF
7278 #define HAVE_TIMEVAL 1
7279 _ACEOF
7283 { echo "$as_me:$LINENO: checking for struct exception" >&5
7284 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7285 if test "${emacs_cv_struct_exception+set}" = set; then
7286 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 else
7288 cat >conftest.$ac_ext <<_ACEOF
7289 /* confdefs.h. */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7294 #include <math.h>
7296 main ()
7298 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7300 return 0;
7302 _ACEOF
7303 rm -f conftest.$ac_objext
7304 if { (ac_try="$ac_compile"
7305 case "(($ac_try" in
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7308 esac
7309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310 (eval "$ac_compile") 2>conftest.er1
7311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); } && {
7317 test -z "$ac_c_werror_flag" ||
7318 test ! -s conftest.err
7319 } && test -s conftest.$ac_objext; then
7320 emacs_cv_struct_exception=yes
7321 else
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7325 emacs_cv_struct_exception=no
7328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7330 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7331 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7332 HAVE_EXCEPTION=$emacs_cv_struct_exception
7333 if test $emacs_cv_struct_exception != yes; then
7335 cat >>confdefs.h <<\_ACEOF
7336 #define NO_MATHERR 1
7337 _ACEOF
7342 for ac_header in sys/socket.h
7344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 ac_res=`eval echo '${'$as_ac_Header'}'`
7352 { echo "$as_me:$LINENO: result: $ac_res" >&5
7353 echo "${ECHO_T}$ac_res" >&6; }
7354 else
7355 # Is the header compilable?
7356 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7357 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7358 cat >conftest.$ac_ext <<_ACEOF
7359 /* confdefs.h. */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 $ac_includes_default
7365 #include <$ac_header>
7366 _ACEOF
7367 rm -f conftest.$ac_objext
7368 if { (ac_try="$ac_compile"
7369 case "(($ac_try" in
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7372 esac
7373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7374 (eval "$ac_compile") 2>conftest.er1
7375 ac_status=$?
7376 grep -v '^ *+' conftest.er1 >conftest.err
7377 rm -f conftest.er1
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } && {
7381 test -z "$ac_c_werror_flag" ||
7382 test ! -s conftest.err
7383 } && test -s conftest.$ac_objext; then
7384 ac_header_compiler=yes
7385 else
7386 echo "$as_me: failed program was:" >&5
7387 sed 's/^/| /' conftest.$ac_ext >&5
7389 ac_header_compiler=no
7392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7394 echo "${ECHO_T}$ac_header_compiler" >&6; }
7396 # Is the header present?
7397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7399 cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h. */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7405 #include <$ac_header>
7406 _ACEOF
7407 if { (ac_try="$ac_cpp conftest.$ac_ext"
7408 case "(($ac_try" in
7409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7410 *) ac_try_echo=$ac_try;;
7411 esac
7412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } >/dev/null && {
7420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7421 test ! -s conftest.err
7422 }; then
7423 ac_header_preproc=yes
7424 else
7425 echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7428 ac_header_preproc=no
7431 rm -f conftest.err conftest.$ac_ext
7432 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7433 echo "${ECHO_T}$ac_header_preproc" >&6; }
7435 # So? What about this header?
7436 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7437 yes:no: )
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7441 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7442 ac_header_preproc=yes
7444 no:yes:* )
7445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7449 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7450 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7451 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7452 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7454 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7455 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7456 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7459 esac
7460 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7463 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 else
7465 eval "$as_ac_Header=\$ac_header_preproc"
7467 ac_res=`eval echo '${'$as_ac_Header'}'`
7468 { echo "$as_me:$LINENO: result: $ac_res" >&5
7469 echo "${ECHO_T}$ac_res" >&6; }
7472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7473 cat >>confdefs.h <<_ACEOF
7474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7475 _ACEOF
7479 done
7482 for ac_header in net/if.h
7484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490 cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h. */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 $ac_includes_default
7497 #if HAVE_SYS_SOCKET_H
7498 #include <sys/socket.h>
7499 #endif
7501 #include <$ac_header>
7502 _ACEOF
7503 rm -f conftest.$ac_objext
7504 if { (ac_try="$ac_compile"
7505 case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508 esac
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510 (eval "$ac_compile") 2>conftest.er1
7511 ac_status=$?
7512 grep -v '^ *+' conftest.er1 >conftest.err
7513 rm -f conftest.er1
7514 cat conftest.err >&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } && {
7517 test -z "$ac_c_werror_flag" ||
7518 test ! -s conftest.err
7519 } && test -s conftest.$ac_objext; then
7520 eval "$as_ac_Header=yes"
7521 else
7522 echo "$as_me: failed program was:" >&5
7523 sed 's/^/| /' conftest.$ac_ext >&5
7525 eval "$as_ac_Header=no"
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 ac_res=`eval echo '${'$as_ac_Header'}'`
7531 { echo "$as_me:$LINENO: result: $ac_res" >&5
7532 echo "${ECHO_T}$ac_res" >&6; }
7533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7534 cat >>confdefs.h <<_ACEOF
7535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7536 _ACEOF
7540 done
7543 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7544 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7545 if test "${ac_cv_struct_tm+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 else
7548 cat >conftest.$ac_ext <<_ACEOF
7549 /* confdefs.h. */
7550 _ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <sys/types.h>
7555 #include <time.h>
7558 main ()
7560 struct tm tm;
7561 int *p = &tm.tm_sec;
7562 return !p;
7564 return 0;
7566 _ACEOF
7567 rm -f conftest.$ac_objext
7568 if { (ac_try="$ac_compile"
7569 case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572 esac
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_compile") 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } && {
7581 test -z "$ac_c_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest.$ac_objext; then
7584 ac_cv_struct_tm=time.h
7585 else
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7589 ac_cv_struct_tm=sys/time.h
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7595 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7596 if test $ac_cv_struct_tm = sys/time.h; then
7598 cat >>confdefs.h <<\_ACEOF
7599 #define TM_IN_SYS_TIME 1
7600 _ACEOF
7604 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7605 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7606 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7607 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 else
7609 cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h. */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 #include <sys/types.h>
7616 #include <$ac_cv_struct_tm>
7620 main ()
7622 static struct tm ac_aggr;
7623 if (ac_aggr.tm_zone)
7624 return 0;
7626 return 0;
7628 _ACEOF
7629 rm -f conftest.$ac_objext
7630 if { (ac_try="$ac_compile"
7631 case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_compile") 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } && {
7643 test -z "$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 } && test -s conftest.$ac_objext; then
7646 ac_cv_member_struct_tm_tm_zone=yes
7647 else
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h. */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 #include <sys/types.h>
7658 #include <$ac_cv_struct_tm>
7662 main ()
7664 static struct tm ac_aggr;
7665 if (sizeof ac_aggr.tm_zone)
7666 return 0;
7668 return 0;
7670 _ACEOF
7671 rm -f conftest.$ac_objext
7672 if { (ac_try="$ac_compile"
7673 case "(($ac_try" in
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7676 esac
7677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7678 (eval "$ac_compile") 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } && {
7685 test -z "$ac_c_werror_flag" ||
7686 test ! -s conftest.err
7687 } && test -s conftest.$ac_objext; then
7688 ac_cv_member_struct_tm_tm_zone=yes
7689 else
7690 echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7693 ac_cv_member_struct_tm_tm_zone=no
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7702 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7703 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7705 cat >>confdefs.h <<_ACEOF
7706 #define HAVE_STRUCT_TM_TM_ZONE 1
7707 _ACEOF
7712 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7714 cat >>confdefs.h <<\_ACEOF
7715 #define HAVE_TM_ZONE 1
7716 _ACEOF
7718 else
7719 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7720 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7721 if test "${ac_cv_have_decl_tzname+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 else
7724 cat >conftest.$ac_ext <<_ACEOF
7725 /* confdefs.h. */
7726 _ACEOF
7727 cat confdefs.h >>conftest.$ac_ext
7728 cat >>conftest.$ac_ext <<_ACEOF
7729 /* end confdefs.h. */
7730 #include <time.h>
7733 main ()
7735 #ifndef tzname
7736 (void) tzname;
7737 #endif
7740 return 0;
7742 _ACEOF
7743 rm -f conftest.$ac_objext
7744 if { (ac_try="$ac_compile"
7745 case "(($ac_try" in
7746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7747 *) ac_try_echo=$ac_try;;
7748 esac
7749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7750 (eval "$ac_compile") 2>conftest.er1
7751 ac_status=$?
7752 grep -v '^ *+' conftest.er1 >conftest.err
7753 rm -f conftest.er1
7754 cat conftest.err >&5
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); } && {
7757 test -z "$ac_c_werror_flag" ||
7758 test ! -s conftest.err
7759 } && test -s conftest.$ac_objext; then
7760 ac_cv_have_decl_tzname=yes
7761 else
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7765 ac_cv_have_decl_tzname=no
7768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7771 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7772 if test $ac_cv_have_decl_tzname = yes; then
7774 cat >>confdefs.h <<_ACEOF
7775 #define HAVE_DECL_TZNAME 1
7776 _ACEOF
7779 else
7780 cat >>confdefs.h <<_ACEOF
7781 #define HAVE_DECL_TZNAME 0
7782 _ACEOF
7788 { echo "$as_me:$LINENO: checking for tzname" >&5
7789 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7790 if test "${ac_cv_var_tzname+set}" = set; then
7791 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 else
7793 cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h. */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 #include <time.h>
7800 #if !HAVE_DECL_TZNAME
7801 extern char *tzname[];
7802 #endif
7805 main ()
7807 return tzname[0][0];
7809 return 0;
7811 _ACEOF
7812 rm -f conftest.$ac_objext conftest$ac_exeext
7813 if { (ac_try="$ac_link"
7814 case "(($ac_try" in
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7817 esac
7818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7819 (eval "$ac_link") 2>conftest.er1
7820 ac_status=$?
7821 grep -v '^ *+' conftest.er1 >conftest.err
7822 rm -f conftest.er1
7823 cat conftest.err >&5
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && {
7826 test -z "$ac_c_werror_flag" ||
7827 test ! -s conftest.err
7828 } && test -s conftest$ac_exeext &&
7829 $as_test_x conftest$ac_exeext; then
7830 ac_cv_var_tzname=yes
7831 else
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7835 ac_cv_var_tzname=no
7838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7839 conftest$ac_exeext conftest.$ac_ext
7841 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7842 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7843 if test $ac_cv_var_tzname = yes; then
7845 cat >>confdefs.h <<\_ACEOF
7846 #define HAVE_TZNAME 1
7847 _ACEOF
7852 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7853 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7854 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 else
7857 cat >conftest.$ac_ext <<_ACEOF
7858 /* confdefs.h. */
7859 _ACEOF
7860 cat confdefs.h >>conftest.$ac_ext
7861 cat >>conftest.$ac_ext <<_ACEOF
7862 /* end confdefs.h. */
7863 #include <time.h>
7866 main ()
7868 static struct tm ac_aggr;
7869 if (ac_aggr.tm_gmtoff)
7870 return 0;
7872 return 0;
7874 _ACEOF
7875 rm -f conftest.$ac_objext
7876 if { (ac_try="$ac_compile"
7877 case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_compile") 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest.$ac_objext; then
7892 ac_cv_member_struct_tm_tm_gmtoff=yes
7893 else
7894 echo "$as_me: failed program was:" >&5
7895 sed 's/^/| /' conftest.$ac_ext >&5
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #include <time.h>
7906 main ()
7908 static struct tm ac_aggr;
7909 if (sizeof ac_aggr.tm_gmtoff)
7910 return 0;
7912 return 0;
7914 _ACEOF
7915 rm -f conftest.$ac_objext
7916 if { (ac_try="$ac_compile"
7917 case "(($ac_try" in
7918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7919 *) ac_try_echo=$ac_try;;
7920 esac
7921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
7932 ac_cv_member_struct_tm_tm_gmtoff=yes
7933 else
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 ac_cv_member_struct_tm_tm_gmtoff=no
7940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7946 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7947 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7949 cat >>confdefs.h <<\_ACEOF
7950 #define HAVE_TM_GMTOFF 1
7951 _ACEOF
7955 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7956 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7957 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7958 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 else
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 (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 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 $ac_includes_default
8013 #if HAVE_SYS_SOCKET_H
8014 #include <sys/socket.h>
8015 #endif
8016 #if HAVE_NET_IF_H
8017 #include <net/if.h>
8018 #endif
8021 main ()
8023 static struct ifreq ac_aggr;
8024 if (sizeof ac_aggr.ifr_flags)
8025 return 0;
8027 return 0;
8029 _ACEOF
8030 rm -f conftest.$ac_objext
8031 if { (ac_try="$ac_compile"
8032 case "(($ac_try" in
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8035 esac
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 (eval "$ac_compile") 2>conftest.er1
8038 ac_status=$?
8039 grep -v '^ *+' conftest.er1 >conftest.err
8040 rm -f conftest.er1
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && {
8044 test -z "$ac_c_werror_flag" ||
8045 test ! -s conftest.err
8046 } && test -s conftest.$ac_objext; then
8047 ac_cv_member_struct_ifreq_ifr_flags=yes
8048 else
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 ac_cv_member_struct_ifreq_ifr_flags=no
8055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8061 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8062 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8064 cat >>confdefs.h <<_ACEOF
8065 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8066 _ACEOF
8070 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8071 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8072 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 else
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 (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 cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h. */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h. */
8127 $ac_includes_default
8128 #if HAVE_SYS_SOCKET_H
8129 #include <sys/socket.h>
8130 #endif
8131 #if HAVE_NET_IF_H
8132 #include <net/if.h>
8133 #endif
8136 main ()
8138 static struct ifreq ac_aggr;
8139 if (sizeof ac_aggr.ifr_hwaddr)
8140 return 0;
8142 return 0;
8144 _ACEOF
8145 rm -f conftest.$ac_objext
8146 if { (ac_try="$ac_compile"
8147 case "(($ac_try" in
8148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8149 *) ac_try_echo=$ac_try;;
8150 esac
8151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8152 (eval "$ac_compile") 2>conftest.er1
8153 ac_status=$?
8154 grep -v '^ *+' conftest.er1 >conftest.err
8155 rm -f conftest.er1
8156 cat conftest.err >&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); } && {
8159 test -z "$ac_c_werror_flag" ||
8160 test ! -s conftest.err
8161 } && test -s conftest.$ac_objext; then
8162 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8163 else
8164 echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8167 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8175 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8176 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8177 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8179 cat >>confdefs.h <<_ACEOF
8180 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8181 _ACEOF
8185 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8186 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8187 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
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 (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 cat >conftest.$ac_ext <<_ACEOF
8237 /* confdefs.h. */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 $ac_includes_default
8243 #if HAVE_SYS_SOCKET_H
8244 #include <sys/socket.h>
8245 #endif
8246 #if HAVE_NET_IF_H
8247 #include <net/if.h>
8248 #endif
8251 main ()
8253 static struct ifreq ac_aggr;
8254 if (sizeof ac_aggr.ifr_netmask)
8255 return 0;
8257 return 0;
8259 _ACEOF
8260 rm -f conftest.$ac_objext
8261 if { (ac_try="$ac_compile"
8262 case "(($ac_try" in
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8265 esac
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_compile") 2>conftest.er1
8268 ac_status=$?
8269 grep -v '^ *+' conftest.er1 >conftest.err
8270 rm -f conftest.er1
8271 cat conftest.err >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } && {
8274 test -z "$ac_c_werror_flag" ||
8275 test ! -s conftest.err
8276 } && test -s conftest.$ac_objext; then
8277 ac_cv_member_struct_ifreq_ifr_netmask=yes
8278 else
8279 echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8282 ac_cv_member_struct_ifreq_ifr_netmask=no
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8291 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8292 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8294 cat >>confdefs.h <<_ACEOF
8295 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8296 _ACEOF
8300 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8301 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8302 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8303 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 else
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 (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 cat >conftest.$ac_ext <<_ACEOF
8352 /* confdefs.h. */
8353 _ACEOF
8354 cat confdefs.h >>conftest.$ac_ext
8355 cat >>conftest.$ac_ext <<_ACEOF
8356 /* end confdefs.h. */
8357 $ac_includes_default
8358 #if HAVE_SYS_SOCKET_H
8359 #include <sys/socket.h>
8360 #endif
8361 #if HAVE_NET_IF_H
8362 #include <net/if.h>
8363 #endif
8366 main ()
8368 static struct ifreq ac_aggr;
8369 if (sizeof ac_aggr.ifr_broadaddr)
8370 return 0;
8372 return 0;
8374 _ACEOF
8375 rm -f conftest.$ac_objext
8376 if { (ac_try="$ac_compile"
8377 case "(($ac_try" in
8378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8379 *) ac_try_echo=$ac_try;;
8380 esac
8381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8382 (eval "$ac_compile") 2>conftest.er1
8383 ac_status=$?
8384 grep -v '^ *+' conftest.er1 >conftest.err
8385 rm -f conftest.er1
8386 cat conftest.err >&5
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); } && {
8389 test -z "$ac_c_werror_flag" ||
8390 test ! -s conftest.err
8391 } && test -s conftest.$ac_objext; then
8392 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8393 else
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8397 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8406 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8407 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8409 cat >>confdefs.h <<_ACEOF
8410 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8411 _ACEOF
8415 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8416 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8417 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 else
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 (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 cat >conftest.$ac_ext <<_ACEOF
8467 /* confdefs.h. */
8468 _ACEOF
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8472 $ac_includes_default
8473 #if HAVE_SYS_SOCKET_H
8474 #include <sys/socket.h>
8475 #endif
8476 #if HAVE_NET_IF_H
8477 #include <net/if.h>
8478 #endif
8481 main ()
8483 static struct ifreq ac_aggr;
8484 if (sizeof ac_aggr.ifr_addr)
8485 return 0;
8487 return 0;
8489 _ACEOF
8490 rm -f conftest.$ac_objext
8491 if { (ac_try="$ac_compile"
8492 case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8495 esac
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_compile") 2>conftest.er1
8498 ac_status=$?
8499 grep -v '^ *+' conftest.er1 >conftest.err
8500 rm -f conftest.er1
8501 cat conftest.err >&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } && {
8504 test -z "$ac_c_werror_flag" ||
8505 test ! -s conftest.err
8506 } && test -s conftest.$ac_objext; then
8507 ac_cv_member_struct_ifreq_ifr_addr=yes
8508 else
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8512 ac_cv_member_struct_ifreq_ifr_addr=no
8515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8521 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8522 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8524 cat >>confdefs.h <<_ACEOF
8525 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8526 _ACEOF
8533 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8534 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8535 if test "$ac_cv_prog_cc_c89" != no; then
8536 { echo "$as_me:$LINENO: result: yes" >&5
8537 echo "${ECHO_T}yes" >&6; }
8539 cat >>confdefs.h <<\_ACEOF
8540 #define PROTOTYPES 1
8541 _ACEOF
8544 cat >>confdefs.h <<\_ACEOF
8545 #define __PROTOTYPES 1
8546 _ACEOF
8548 else
8549 { echo "$as_me:$LINENO: result: no" >&5
8550 echo "${ECHO_T}no" >&6; }
8553 { echo "$as_me:$LINENO: checking for working volatile" >&5
8554 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8555 if test "${ac_cv_c_volatile+set}" = set; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 else
8558 cat >conftest.$ac_ext <<_ACEOF
8559 /* confdefs.h. */
8560 _ACEOF
8561 cat confdefs.h >>conftest.$ac_ext
8562 cat >>conftest.$ac_ext <<_ACEOF
8563 /* end confdefs.h. */
8566 main ()
8569 volatile int x;
8570 int * volatile y = (int *) 0;
8571 return !x && !y;
8573 return 0;
8575 _ACEOF
8576 rm -f conftest.$ac_objext
8577 if { (ac_try="$ac_compile"
8578 case "(($ac_try" in
8579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8580 *) ac_try_echo=$ac_try;;
8581 esac
8582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8583 (eval "$ac_compile") 2>conftest.er1
8584 ac_status=$?
8585 grep -v '^ *+' conftest.er1 >conftest.err
8586 rm -f conftest.er1
8587 cat conftest.err >&5
8588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589 (exit $ac_status); } && {
8590 test -z "$ac_c_werror_flag" ||
8591 test ! -s conftest.err
8592 } && test -s conftest.$ac_objext; then
8593 ac_cv_c_volatile=yes
8594 else
8595 echo "$as_me: failed program was:" >&5
8596 sed 's/^/| /' conftest.$ac_ext >&5
8598 ac_cv_c_volatile=no
8601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8604 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8605 if test $ac_cv_c_volatile = no; then
8607 cat >>confdefs.h <<\_ACEOF
8608 #define volatile
8609 _ACEOF
8613 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8614 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8615 if test "${ac_cv_c_const+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 else
8618 cat >conftest.$ac_ext <<_ACEOF
8619 /* confdefs.h. */
8620 _ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8626 main ()
8628 /* FIXME: Include the comments suggested by Paul. */
8629 #ifndef __cplusplus
8630 /* Ultrix mips cc rejects this. */
8631 typedef int charset[2];
8632 const charset cs;
8633 /* SunOS 4.1.1 cc rejects this. */
8634 char const *const *pcpcc;
8635 char **ppc;
8636 /* NEC SVR4.0.2 mips cc rejects this. */
8637 struct point {int x, y;};
8638 static struct point const zero = {0,0};
8639 /* AIX XL C 1.02.0.0 rejects this.
8640 It does not let you subtract one const X* pointer from another in
8641 an arm of an if-expression whose if-part is not a constant
8642 expression */
8643 const char *g = "string";
8644 pcpcc = &g + (g ? g-g : 0);
8645 /* HPUX 7.0 cc rejects these. */
8646 ++pcpcc;
8647 ppc = (char**) pcpcc;
8648 pcpcc = (char const *const *) ppc;
8649 { /* SCO 3.2v4 cc rejects this. */
8650 char *t;
8651 char const *s = 0 ? (char *) 0 : (char const *) 0;
8653 *t++ = 0;
8654 if (s) return 0;
8656 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8657 int x[] = {25, 17};
8658 const int *foo = &x[0];
8659 ++foo;
8661 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8662 typedef const int *iptr;
8663 iptr p = 0;
8664 ++p;
8666 { /* AIX XL C 1.02.0.0 rejects this saying
8667 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8668 struct s { int j; const int *ap[3]; };
8669 struct s *b; b->j = 5;
8671 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8672 const int foo = 10;
8673 if (!foo) return 0;
8675 return !cs[0] && !zero.x;
8676 #endif
8679 return 0;
8681 _ACEOF
8682 rm -f conftest.$ac_objext
8683 if { (ac_try="$ac_compile"
8684 case "(($ac_try" in
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8687 esac
8688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8689 (eval "$ac_compile") 2>conftest.er1
8690 ac_status=$?
8691 grep -v '^ *+' conftest.er1 >conftest.err
8692 rm -f conftest.er1
8693 cat conftest.err >&5
8694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } && {
8696 test -z "$ac_c_werror_flag" ||
8697 test ! -s conftest.err
8698 } && test -s conftest.$ac_objext; then
8699 ac_cv_c_const=yes
8700 else
8701 echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8704 ac_cv_c_const=no
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8710 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8711 if test $ac_cv_c_const = no; then
8713 cat >>confdefs.h <<\_ACEOF
8714 #define const
8715 _ACEOF
8719 { echo "$as_me:$LINENO: checking for void * support" >&5
8720 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8721 if test "${emacs_cv_void_star+set}" = set; then
8722 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 else
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h. */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8732 main ()
8734 void * foo;
8736 return 0;
8738 _ACEOF
8739 rm -f conftest.$ac_objext
8740 if { (ac_try="$ac_compile"
8741 case "(($ac_try" in
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8744 esac
8745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_compile") 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } && {
8753 test -z "$ac_c_werror_flag" ||
8754 test ! -s conftest.err
8755 } && test -s conftest.$ac_objext; then
8756 emacs_cv_void_star=yes
8757 else
8758 echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.$ac_ext >&5
8761 emacs_cv_void_star=no
8764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8766 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8767 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8768 if test $emacs_cv_void_star = yes; then
8769 cat >>confdefs.h <<\_ACEOF
8770 #define POINTER_TYPE void
8771 _ACEOF
8773 else
8774 cat >>confdefs.h <<\_ACEOF
8775 #define POINTER_TYPE char
8776 _ACEOF
8784 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8785 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8786 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8787 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8788 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790 cat >conftest.make <<\_ACEOF
8791 SHELL = /bin/sh
8792 all:
8793 @echo '@@@%%%=$(MAKE)=@@@%%%'
8794 _ACEOF
8795 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8796 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8797 *@@@%%%=?*=@@@%%%*)
8798 eval ac_cv_prog_make_${ac_make}_set=yes;;
8800 eval ac_cv_prog_make_${ac_make}_set=no;;
8801 esac
8802 rm -f conftest.make
8804 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8805 { echo "$as_me:$LINENO: result: yes" >&5
8806 echo "${ECHO_T}yes" >&6; }
8807 SET_MAKE=
8808 else
8809 { echo "$as_me:$LINENO: result: no" >&5
8810 echo "${ECHO_T}no" >&6; }
8811 SET_MAKE="MAKE=${MAKE-make}"
8815 { echo "$as_me:$LINENO: checking for long file names" >&5
8816 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8817 if test "${ac_cv_sys_long_file_names+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820 ac_cv_sys_long_file_names=yes
8821 # Test for long file names in all the places we know might matter:
8822 # . the current directory, where building will happen
8823 # $prefix/lib where we will be installing things
8824 # $exec_prefix/lib likewise
8825 # $TMPDIR if set, where it might want to write temporary files
8826 # /tmp where it might want to write temporary files
8827 # /var/tmp likewise
8828 # /usr/tmp likewise
8829 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8830 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8831 # in the usual case where exec_prefix is '${prefix}'.
8832 case $ac_dir in #(
8833 . | /* | ?:[\\/]*) ;; #(
8834 *) continue;;
8835 esac
8836 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8837 ac_xdir=$ac_dir/cf$$
8838 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8839 ac_tf1=$ac_xdir/conftest9012345
8840 ac_tf2=$ac_xdir/conftest9012346
8841 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8842 ac_cv_sys_long_file_names=no
8843 rm -f -r "$ac_xdir" 2>/dev/null
8844 test $ac_cv_sys_long_file_names = no && break
8845 done
8847 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8848 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8849 if test $ac_cv_sys_long_file_names = yes; then
8851 cat >>confdefs.h <<\_ACEOF
8852 #define HAVE_LONG_FILE_NAMES 1
8853 _ACEOF
8858 #### Choose a window system.
8860 { echo "$as_me:$LINENO: checking for X" >&5
8861 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8864 # Check whether --with-x was given.
8865 if test "${with_x+set}" = set; then
8866 withval=$with_x;
8869 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8870 if test "x$with_x" = xno; then
8871 # The user explicitly disabled X.
8872 have_x=disabled
8873 else
8874 case $x_includes,$x_libraries in #(
8875 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8876 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8877 { (exit 1); exit 1; }; };; #(
8878 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881 # One or both of the vars are not set, and there is no cached value.
8882 ac_x_includes=no ac_x_libraries=no
8883 rm -f -r conftest.dir
8884 if mkdir conftest.dir; then
8885 cd conftest.dir
8886 cat >Imakefile <<'_ACEOF'
8887 incroot:
8888 @echo incroot='${INCROOT}'
8889 usrlibdir:
8890 @echo usrlibdir='${USRLIBDIR}'
8891 libdir:
8892 @echo libdir='${LIBDIR}'
8893 _ACEOF
8894 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8895 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8896 for ac_var in incroot usrlibdir libdir; do
8897 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8898 done
8899 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8900 for ac_extension in a so sl; do
8901 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8902 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8903 ac_im_usrlibdir=$ac_im_libdir; break
8905 done
8906 # Screen out bogus values from the imake configuration. They are
8907 # bogus both because they are the default anyway, and because
8908 # using them would break gcc on systems where it needs fixed includes.
8909 case $ac_im_incroot in
8910 /usr/include) ac_x_includes= ;;
8911 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8912 esac
8913 case $ac_im_usrlibdir in
8914 /usr/lib | /lib) ;;
8915 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8916 esac
8918 cd ..
8919 rm -f -r conftest.dir
8922 # Standard set of common directories for X headers.
8923 # Check X11 before X11Rn because it is often a symlink to the current release.
8924 ac_x_header_dirs='
8925 /usr/X11/include
8926 /usr/X11R6/include
8927 /usr/X11R5/include
8928 /usr/X11R4/include
8930 /usr/include/X11
8931 /usr/include/X11R6
8932 /usr/include/X11R5
8933 /usr/include/X11R4
8935 /usr/local/X11/include
8936 /usr/local/X11R6/include
8937 /usr/local/X11R5/include
8938 /usr/local/X11R4/include
8940 /usr/local/include/X11
8941 /usr/local/include/X11R6
8942 /usr/local/include/X11R5
8943 /usr/local/include/X11R4
8945 /usr/X386/include
8946 /usr/x386/include
8947 /usr/XFree86/include/X11
8949 /usr/include
8950 /usr/local/include
8951 /usr/unsupported/include
8952 /usr/athena/include
8953 /usr/local/x11r5/include
8954 /usr/lpp/Xamples/include
8956 /usr/openwin/include
8957 /usr/openwin/share/include'
8959 if test "$ac_x_includes" = no; then
8960 # Guess where to find include files, by looking for Xlib.h.
8961 # First, try using that file with no special directory specified.
8962 cat >conftest.$ac_ext <<_ACEOF
8963 /* confdefs.h. */
8964 _ACEOF
8965 cat confdefs.h >>conftest.$ac_ext
8966 cat >>conftest.$ac_ext <<_ACEOF
8967 /* end confdefs.h. */
8968 #include <X11/Xlib.h>
8969 _ACEOF
8970 if { (ac_try="$ac_cpp conftest.$ac_ext"
8971 case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974 esac
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8977 ac_status=$?
8978 grep -v '^ *+' conftest.er1 >conftest.err
8979 rm -f conftest.er1
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } >/dev/null && {
8983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 }; then
8986 # We can compile using X headers with no special include directory.
8987 ac_x_includes=
8988 else
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 for ac_dir in $ac_x_header_dirs; do
8993 if test -r "$ac_dir/X11/Xlib.h"; then
8994 ac_x_includes=$ac_dir
8995 break
8997 done
9000 rm -f conftest.err conftest.$ac_ext
9001 fi # $ac_x_includes = no
9003 if test "$ac_x_libraries" = no; then
9004 # Check for the libraries.
9005 # See if we find them without any special options.
9006 # Don't add to $LIBS permanently.
9007 ac_save_LIBS=$LIBS
9008 LIBS="-lX11 $LIBS"
9009 cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h. */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015 #include <X11/Xlib.h>
9017 main ()
9019 XrmInitialize ()
9021 return 0;
9023 _ACEOF
9024 rm -f conftest.$ac_objext conftest$ac_exeext
9025 if { (ac_try="$ac_link"
9026 case "(($ac_try" in
9027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9028 *) ac_try_echo=$ac_try;;
9029 esac
9030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9031 (eval "$ac_link") 2>conftest.er1
9032 ac_status=$?
9033 grep -v '^ *+' conftest.er1 >conftest.err
9034 rm -f conftest.er1
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } && {
9038 test -z "$ac_c_werror_flag" ||
9039 test ! -s conftest.err
9040 } && test -s conftest$ac_exeext &&
9041 $as_test_x conftest$ac_exeext; then
9042 LIBS=$ac_save_LIBS
9043 # We can link X programs with no special library path.
9044 ac_x_libraries=
9045 else
9046 echo "$as_me: failed program was:" >&5
9047 sed 's/^/| /' conftest.$ac_ext >&5
9049 LIBS=$ac_save_LIBS
9050 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9052 # Don't even attempt the hair of trying to link an X program!
9053 for ac_extension in a so sl; do
9054 if test -r "$ac_dir/libX11.$ac_extension"; then
9055 ac_x_libraries=$ac_dir
9056 break 2
9058 done
9059 done
9062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9063 conftest$ac_exeext conftest.$ac_ext
9064 fi # $ac_x_libraries = no
9066 case $ac_x_includes,$ac_x_libraries in #(
9067 no,* | *,no | *\'*)
9068 # Didn't find X, or a directory has "'" in its name.
9069 ac_cv_have_x="have_x=no";; #(
9071 # Record where we found X for the cache.
9072 ac_cv_have_x="have_x=yes\
9073 ac_x_includes='$ac_x_includes'\
9074 ac_x_libraries='$ac_x_libraries'"
9075 esac
9077 ;; #(
9078 *) have_x=yes;;
9079 esac
9080 eval "$ac_cv_have_x"
9081 fi # $with_x != no
9083 if test "$have_x" != yes; then
9084 { echo "$as_me:$LINENO: result: $have_x" >&5
9085 echo "${ECHO_T}$have_x" >&6; }
9086 no_x=yes
9087 else
9088 # If each of the values was on the command line, it overrides each guess.
9089 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9090 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9091 # Update the cache value to reflect the command line values.
9092 ac_cv_have_x="have_x=yes\
9093 ac_x_includes='$x_includes'\
9094 ac_x_libraries='$x_libraries'"
9095 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9096 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9099 if test "$no_x" = yes; then
9100 window_system=none
9101 else
9102 window_system=x11
9105 if test "${x_libraries}" != NONE; then
9106 if test -n "${x_libraries}"; then
9107 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9108 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9110 x_default_search_path=""
9111 x_search_path=${x_libraries}
9112 if test -z "${x_search_path}"; then
9113 x_search_path=/usr/lib
9115 for x_library in `echo ${x_search_path}: | \
9116 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9117 x_search_path="\
9118 ${x_library}/X11/%L/%T/%N%C%S:\
9119 ${x_library}/X11/%l/%T/%N%C%S:\
9120 ${x_library}/X11/%T/%N%C%S:\
9121 ${x_library}/X11/%L/%T/%N%S:\
9122 ${x_library}/X11/%l/%T/%N%S:\
9123 ${x_library}/X11/%T/%N%S"
9124 if test x"${x_default_search_path}" = x; then
9125 x_default_search_path=${x_search_path}
9126 else
9127 x_default_search_path="${x_search_path}:${x_default_search_path}"
9129 done
9131 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9132 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9135 if test x"${x_includes}" = x; then
9136 bitmapdir=/usr/include/X11/bitmaps
9137 else
9138 # accumulate include directories that have X11 bitmap subdirectories
9139 bmd_acc="dummyval"
9140 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9141 if test -d "${bmd}/X11/bitmaps"; then
9142 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9144 if test -d "${bmd}/bitmaps"; then
9145 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9147 done
9148 if test ${bmd_acc} != "dummyval"; then
9149 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9153 HAVE_CARBON=no
9154 if test "${with_carbon}" != no; then
9155 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9156 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9157 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9158 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9162 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9163 else
9164 # Is the header compilable?
9165 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9166 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9167 cat >conftest.$ac_ext <<_ACEOF
9168 /* confdefs.h. */
9169 _ACEOF
9170 cat confdefs.h >>conftest.$ac_ext
9171 cat >>conftest.$ac_ext <<_ACEOF
9172 /* end confdefs.h. */
9173 $ac_includes_default
9174 #include <Carbon/Carbon.h>
9175 _ACEOF
9176 rm -f conftest.$ac_objext
9177 if { (ac_try="$ac_compile"
9178 case "(($ac_try" in
9179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9180 *) ac_try_echo=$ac_try;;
9181 esac
9182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9183 (eval "$ac_compile") 2>conftest.er1
9184 ac_status=$?
9185 grep -v '^ *+' conftest.er1 >conftest.err
9186 rm -f conftest.er1
9187 cat conftest.err >&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } && {
9190 test -z "$ac_c_werror_flag" ||
9191 test ! -s conftest.err
9192 } && test -s conftest.$ac_objext; then
9193 ac_header_compiler=yes
9194 else
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9198 ac_header_compiler=no
9201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9202 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9203 echo "${ECHO_T}$ac_header_compiler" >&6; }
9205 # Is the header present?
9206 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9207 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9208 cat >conftest.$ac_ext <<_ACEOF
9209 /* confdefs.h. */
9210 _ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h. */
9214 #include <Carbon/Carbon.h>
9215 _ACEOF
9216 if { (ac_try="$ac_cpp conftest.$ac_ext"
9217 case "(($ac_try" in
9218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9219 *) ac_try_echo=$ac_try;;
9220 esac
9221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9222 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9223 ac_status=$?
9224 grep -v '^ *+' conftest.er1 >conftest.err
9225 rm -f conftest.er1
9226 cat conftest.err >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); } >/dev/null && {
9229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9230 test ! -s conftest.err
9231 }; then
9232 ac_header_preproc=yes
9233 else
9234 echo "$as_me: failed program was:" >&5
9235 sed 's/^/| /' conftest.$ac_ext >&5
9237 ac_header_preproc=no
9240 rm -f conftest.err conftest.$ac_ext
9241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9242 echo "${ECHO_T}$ac_header_preproc" >&6; }
9244 # So? What about this header?
9245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9246 yes:no: )
9247 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9248 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9250 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9251 ac_header_preproc=yes
9253 no:yes:* )
9254 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9255 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9256 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9257 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9259 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9260 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9261 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9262 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9263 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9265 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9268 esac
9269 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9270 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9271 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9273 else
9274 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9276 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9277 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9280 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9281 HAVE_CARBON=yes
9286 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9287 if test "${with_carbon+set}" != set \
9288 && test "${carbon_appdir_x+set}" != set; then
9289 for var in with_x with_x_toolkit with_gtk with_xim \
9290 with_xpm with_jpeg with_tiff with_gif with_png; do
9291 if eval test \"\${$var+set}\" = set; then
9292 HAVE_CARBON=no
9293 break
9295 done
9298 if test "${HAVE_CARBON}" = yes; then
9299 window_system=mac
9302 case "${window_system}" in
9303 x11 )
9304 HAVE_X_WINDOWS=yes
9305 HAVE_X11=yes
9306 case "${with_x_toolkit}" in
9307 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9308 motif ) USE_X_TOOLKIT=MOTIF ;;
9309 gtk ) with_gtk=yes
9310 USE_X_TOOLKIT=none ;;
9311 no ) USE_X_TOOLKIT=none ;;
9313 if test x"$with_gtk" = xyes; then
9314 USE_X_TOOLKIT=none
9315 else
9316 USE_X_TOOLKIT=maybe
9319 esac
9321 mac | none )
9322 HAVE_X_WINDOWS=no
9323 HAVE_X11=no
9324 USE_X_TOOLKIT=none
9326 esac
9328 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9329 # Extract the first word of "X", so it can be a program name with args.
9330 set dummy X; ac_word=$2
9331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9333 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9334 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 else
9336 if test -n "$HAVE_XSERVER"; then
9337 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9338 else
9339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340 for as_dir in $PATH
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9346 ac_cv_prog_HAVE_XSERVER="true"
9347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9348 break 2
9350 done
9351 done
9352 IFS=$as_save_IFS
9354 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9357 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9358 if test -n "$HAVE_XSERVER"; then
9359 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9360 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9361 else
9362 { echo "$as_me:$LINENO: result: no" >&5
9363 echo "${ECHO_T}no" >&6; }
9367 if test "$HAVE_XSERVER" = true ||
9368 test -n "$DISPLAY" ||
9369 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9370 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9371 were found. You should install the relevant development files for X
9372 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9373 sure you have development files for image handling, i.e.
9374 tiff, gif, jpeg, png and xpm.
9375 If you are sure you want Emacs compiled without X window support, pass
9376 --without-x
9377 to configure." >&5
9378 echo "$as_me: error: You seem to be running X, but no X development libraries
9379 were found. You should install the relevant development files for X
9380 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9381 sure you have development files for image handling, i.e.
9382 tiff, gif, jpeg, png and xpm.
9383 If you are sure you want Emacs compiled without X window support, pass
9384 --without-x
9385 to configure." >&2;}
9386 { (exit 1); exit 1; }; }
9390 ### If we're using X11, we should use the X menu package.
9391 HAVE_MENUS=no
9392 case ${HAVE_X11} in
9393 yes ) HAVE_MENUS=yes ;;
9394 esac
9396 ### Compute the unexec source name from the object name.
9397 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9399 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9400 # Assume not, until told otherwise.
9401 GNU_MALLOC=yes
9402 doug_lea_malloc=yes
9403 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9404 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9405 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 else
9408 cat >conftest.$ac_ext <<_ACEOF
9409 /* confdefs.h. */
9410 _ACEOF
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9416 #define malloc_get_state innocuous_malloc_get_state
9418 /* System header to define __stub macros and hopefully few prototypes,
9419 which can conflict with char malloc_get_state (); below.
9420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9421 <limits.h> exists even on freestanding compilers. */
9423 #ifdef __STDC__
9424 # include <limits.h>
9425 #else
9426 # include <assert.h>
9427 #endif
9429 #undef malloc_get_state
9431 /* Override any GCC internal prototype to avoid an error.
9432 Use char because int might match the return type of a GCC
9433 builtin and then its argument prototype would still apply. */
9434 #ifdef __cplusplus
9435 extern "C"
9436 #endif
9437 char malloc_get_state ();
9438 /* The GNU C library defines this for functions which it implements
9439 to always fail with ENOSYS. Some functions are actually named
9440 something starting with __ and the normal name is an alias. */
9441 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9442 choke me
9443 #endif
9446 main ()
9448 return malloc_get_state ();
9450 return 0;
9452 _ACEOF
9453 rm -f conftest.$ac_objext conftest$ac_exeext
9454 if { (ac_try="$ac_link"
9455 case "(($ac_try" in
9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 *) ac_try_echo=$ac_try;;
9458 esac
9459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460 (eval "$ac_link") 2>conftest.er1
9461 ac_status=$?
9462 grep -v '^ *+' conftest.er1 >conftest.err
9463 rm -f conftest.er1
9464 cat conftest.err >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } && {
9467 test -z "$ac_c_werror_flag" ||
9468 test ! -s conftest.err
9469 } && test -s conftest$ac_exeext &&
9470 $as_test_x conftest$ac_exeext; then
9471 ac_cv_func_malloc_get_state=yes
9472 else
9473 echo "$as_me: failed program was:" >&5
9474 sed 's/^/| /' conftest.$ac_ext >&5
9476 ac_cv_func_malloc_get_state=no
9479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9480 conftest$ac_exeext conftest.$ac_ext
9482 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9483 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9484 if test $ac_cv_func_malloc_get_state = yes; then
9486 else
9487 doug_lea_malloc=no
9490 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9491 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9492 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 else
9495 cat >conftest.$ac_ext <<_ACEOF
9496 /* confdefs.h. */
9497 _ACEOF
9498 cat confdefs.h >>conftest.$ac_ext
9499 cat >>conftest.$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9501 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9503 #define malloc_set_state innocuous_malloc_set_state
9505 /* System header to define __stub macros and hopefully few prototypes,
9506 which can conflict with char malloc_set_state (); below.
9507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9508 <limits.h> exists even on freestanding compilers. */
9510 #ifdef __STDC__
9511 # include <limits.h>
9512 #else
9513 # include <assert.h>
9514 #endif
9516 #undef malloc_set_state
9518 /* Override any GCC internal prototype to avoid an error.
9519 Use char because int might match the return type of a GCC
9520 builtin and then its argument prototype would still apply. */
9521 #ifdef __cplusplus
9522 extern "C"
9523 #endif
9524 char malloc_set_state ();
9525 /* The GNU C library defines this for functions which it implements
9526 to always fail with ENOSYS. Some functions are actually named
9527 something starting with __ and the normal name is an alias. */
9528 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9529 choke me
9530 #endif
9533 main ()
9535 return malloc_set_state ();
9537 return 0;
9539 _ACEOF
9540 rm -f conftest.$ac_objext conftest$ac_exeext
9541 if { (ac_try="$ac_link"
9542 case "(($ac_try" in
9543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544 *) ac_try_echo=$ac_try;;
9545 esac
9546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9547 (eval "$ac_link") 2>conftest.er1
9548 ac_status=$?
9549 grep -v '^ *+' conftest.er1 >conftest.err
9550 rm -f conftest.er1
9551 cat conftest.err >&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } && {
9554 test -z "$ac_c_werror_flag" ||
9555 test ! -s conftest.err
9556 } && test -s conftest$ac_exeext &&
9557 $as_test_x conftest$ac_exeext; then
9558 ac_cv_func_malloc_set_state=yes
9559 else
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 ac_cv_func_malloc_set_state=no
9566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9567 conftest$ac_exeext conftest.$ac_ext
9569 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9570 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9571 if test $ac_cv_func_malloc_set_state = yes; then
9573 else
9574 doug_lea_malloc=no
9577 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9578 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9579 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9580 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582 cat >conftest.$ac_ext <<_ACEOF
9583 /* confdefs.h. */
9584 _ACEOF
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 extern void (* __after_morecore_hook)();
9590 main ()
9592 __after_morecore_hook = 0
9594 return 0;
9596 _ACEOF
9597 rm -f conftest.$ac_objext conftest$ac_exeext
9598 if { (ac_try="$ac_link"
9599 case "(($ac_try" in
9600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9601 *) ac_try_echo=$ac_try;;
9602 esac
9603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9604 (eval "$ac_link") 2>conftest.er1
9605 ac_status=$?
9606 grep -v '^ *+' conftest.er1 >conftest.err
9607 rm -f conftest.er1
9608 cat conftest.err >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); } && {
9611 test -z "$ac_c_werror_flag" ||
9612 test ! -s conftest.err
9613 } && test -s conftest$ac_exeext &&
9614 $as_test_x conftest$ac_exeext; then
9615 emacs_cv_var___after_morecore_hook=yes
9616 else
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9620 emacs_cv_var___after_morecore_hook=no
9623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9624 conftest$ac_exeext conftest.$ac_ext
9626 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9627 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9628 if test $emacs_cv_var___after_morecore_hook = no; then
9629 doug_lea_malloc=no
9631 if test "${system_malloc}" = "yes"; then
9632 GNU_MALLOC=no
9633 GNU_MALLOC_reason="
9634 (The GNU allocators don't work with this system configuration.)"
9636 if test "$doug_lea_malloc" = "yes" ; then
9637 if test "$GNU_MALLOC" = yes ; then
9638 GNU_MALLOC_reason="
9639 (Using Doug Lea's new malloc from the GNU C Library.)"
9642 cat >>confdefs.h <<\_ACEOF
9643 #define DOUG_LEA_MALLOC 1
9644 _ACEOF
9648 if test x"${REL_ALLOC}" = x; then
9649 REL_ALLOC=${GNU_MALLOC}
9655 for ac_header in stdlib.h unistd.h
9657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9664 ac_res=`eval echo '${'$as_ac_Header'}'`
9665 { echo "$as_me:$LINENO: result: $ac_res" >&5
9666 echo "${ECHO_T}$ac_res" >&6; }
9667 else
9668 # Is the header compilable?
9669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9671 cat >conftest.$ac_ext <<_ACEOF
9672 /* confdefs.h. */
9673 _ACEOF
9674 cat confdefs.h >>conftest.$ac_ext
9675 cat >>conftest.$ac_ext <<_ACEOF
9676 /* end confdefs.h. */
9677 $ac_includes_default
9678 #include <$ac_header>
9679 _ACEOF
9680 rm -f conftest.$ac_objext
9681 if { (ac_try="$ac_compile"
9682 case "(($ac_try" in
9683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9684 *) ac_try_echo=$ac_try;;
9685 esac
9686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9687 (eval "$ac_compile") 2>conftest.er1
9688 ac_status=$?
9689 grep -v '^ *+' conftest.er1 >conftest.err
9690 rm -f conftest.er1
9691 cat conftest.err >&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && {
9694 test -z "$ac_c_werror_flag" ||
9695 test ! -s conftest.err
9696 } && test -s conftest.$ac_objext; then
9697 ac_header_compiler=yes
9698 else
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9702 ac_header_compiler=no
9705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9707 echo "${ECHO_T}$ac_header_compiler" >&6; }
9709 # Is the header present?
9710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9712 cat >conftest.$ac_ext <<_ACEOF
9713 /* confdefs.h. */
9714 _ACEOF
9715 cat confdefs.h >>conftest.$ac_ext
9716 cat >>conftest.$ac_ext <<_ACEOF
9717 /* end confdefs.h. */
9718 #include <$ac_header>
9719 _ACEOF
9720 if { (ac_try="$ac_cpp conftest.$ac_ext"
9721 case "(($ac_try" in
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9724 esac
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9727 ac_status=$?
9728 grep -v '^ *+' conftest.er1 >conftest.err
9729 rm -f conftest.er1
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } >/dev/null && {
9733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 }; then
9736 ac_header_preproc=yes
9737 else
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_header_preproc=no
9744 rm -f conftest.err conftest.$ac_ext
9745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9746 echo "${ECHO_T}$ac_header_preproc" >&6; }
9748 # So? What about this header?
9749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9750 yes:no: )
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9755 ac_header_preproc=yes
9757 no:yes:* )
9758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9772 esac
9773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778 eval "$as_ac_Header=\$ac_header_preproc"
9780 ac_res=`eval echo '${'$as_ac_Header'}'`
9781 { echo "$as_me:$LINENO: result: $ac_res" >&5
9782 echo "${ECHO_T}$ac_res" >&6; }
9785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9786 cat >>confdefs.h <<_ACEOF
9787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9788 _ACEOF
9792 done
9795 for ac_func in getpagesize
9797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h. */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h. */
9809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9811 #define $ac_func innocuous_$ac_func
9813 /* System header to define __stub macros and hopefully few prototypes,
9814 which can conflict with char $ac_func (); below.
9815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9816 <limits.h> exists even on freestanding compilers. */
9818 #ifdef __STDC__
9819 # include <limits.h>
9820 #else
9821 # include <assert.h>
9822 #endif
9824 #undef $ac_func
9826 /* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
9829 #ifdef __cplusplus
9830 extern "C"
9831 #endif
9832 char $ac_func ();
9833 /* The GNU C library defines this for functions which it implements
9834 to always fail with ENOSYS. Some functions are actually named
9835 something starting with __ and the normal name is an alias. */
9836 #if defined __stub_$ac_func || defined __stub___$ac_func
9837 choke me
9838 #endif
9841 main ()
9843 return $ac_func ();
9845 return 0;
9847 _ACEOF
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (ac_try="$ac_link"
9850 case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853 esac
9854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9855 (eval "$ac_link") 2>conftest.er1
9856 ac_status=$?
9857 grep -v '^ *+' conftest.er1 >conftest.err
9858 rm -f conftest.er1
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } && {
9862 test -z "$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9864 } && test -s conftest$ac_exeext &&
9865 $as_test_x conftest$ac_exeext; then
9866 eval "$as_ac_var=yes"
9867 else
9868 echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9871 eval "$as_ac_var=no"
9874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9875 conftest$ac_exeext conftest.$ac_ext
9877 ac_res=`eval echo '${'$as_ac_var'}'`
9878 { echo "$as_me:$LINENO: result: $ac_res" >&5
9879 echo "${ECHO_T}$ac_res" >&6; }
9880 if test `eval echo '${'$as_ac_var'}'` = yes; then
9881 cat >>confdefs.h <<_ACEOF
9882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9883 _ACEOF
9886 done
9888 { echo "$as_me:$LINENO: checking for working mmap" >&5
9889 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9890 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893 if test "$cross_compiling" = yes; then
9894 ac_cv_func_mmap_fixed_mapped=no
9895 else
9896 cat >conftest.$ac_ext <<_ACEOF
9897 /* confdefs.h. */
9898 _ACEOF
9899 cat confdefs.h >>conftest.$ac_ext
9900 cat >>conftest.$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 $ac_includes_default
9903 /* malloc might have been renamed as rpl_malloc. */
9904 #undef malloc
9906 /* Thanks to Mike Haertel and Jim Avera for this test.
9907 Here is a matrix of mmap possibilities:
9908 mmap private not fixed
9909 mmap private fixed at somewhere currently unmapped
9910 mmap private fixed at somewhere already mapped
9911 mmap shared not fixed
9912 mmap shared fixed at somewhere currently unmapped
9913 mmap shared fixed at somewhere already mapped
9914 For private mappings, we should verify that changes cannot be read()
9915 back from the file, nor mmap's back from the file at a different
9916 address. (There have been systems where private was not correctly
9917 implemented like the infamous i386 svr4.0, and systems where the
9918 VM page cache was not coherent with the file system buffer cache
9919 like early versions of FreeBSD and possibly contemporary NetBSD.)
9920 For shared mappings, we should conversely verify that changes get
9921 propagated back to all the places they're supposed to be.
9923 Grep wants private fixed already mapped.
9924 The main things grep needs to know about mmap are:
9925 * does it exist and is it safe to write into the mmap'd area
9926 * how to use it (BSD variants) */
9928 #include <fcntl.h>
9929 #include <sys/mman.h>
9931 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9932 char *malloc ();
9933 #endif
9935 /* This mess was copied from the GNU getpagesize.h. */
9936 #ifndef HAVE_GETPAGESIZE
9937 /* Assume that all systems that can run configure have sys/param.h. */
9938 # ifndef HAVE_SYS_PARAM_H
9939 # define HAVE_SYS_PARAM_H 1
9940 # endif
9942 # ifdef _SC_PAGESIZE
9943 # define getpagesize() sysconf(_SC_PAGESIZE)
9944 # else /* no _SC_PAGESIZE */
9945 # ifdef HAVE_SYS_PARAM_H
9946 # include <sys/param.h>
9947 # ifdef EXEC_PAGESIZE
9948 # define getpagesize() EXEC_PAGESIZE
9949 # else /* no EXEC_PAGESIZE */
9950 # ifdef NBPG
9951 # define getpagesize() NBPG * CLSIZE
9952 # ifndef CLSIZE
9953 # define CLSIZE 1
9954 # endif /* no CLSIZE */
9955 # else /* no NBPG */
9956 # ifdef NBPC
9957 # define getpagesize() NBPC
9958 # else /* no NBPC */
9959 # ifdef PAGESIZE
9960 # define getpagesize() PAGESIZE
9961 # endif /* PAGESIZE */
9962 # endif /* no NBPC */
9963 # endif /* no NBPG */
9964 # endif /* no EXEC_PAGESIZE */
9965 # else /* no HAVE_SYS_PARAM_H */
9966 # define getpagesize() 8192 /* punt totally */
9967 # endif /* no HAVE_SYS_PARAM_H */
9968 # endif /* no _SC_PAGESIZE */
9970 #endif /* no HAVE_GETPAGESIZE */
9973 main ()
9975 char *data, *data2, *data3;
9976 int i, pagesize;
9977 int fd;
9979 pagesize = getpagesize ();
9981 /* First, make a file with some known garbage in it. */
9982 data = (char *) malloc (pagesize);
9983 if (!data)
9984 return 1;
9985 for (i = 0; i < pagesize; ++i)
9986 *(data + i) = rand ();
9987 umask (0);
9988 fd = creat ("conftest.mmap", 0600);
9989 if (fd < 0)
9990 return 1;
9991 if (write (fd, data, pagesize) != pagesize)
9992 return 1;
9993 close (fd);
9995 /* Next, try to mmap the file at a fixed address which already has
9996 something else allocated at it. If we can, also make sure that
9997 we see the same garbage. */
9998 fd = open ("conftest.mmap", O_RDWR);
9999 if (fd < 0)
10000 return 1;
10001 data2 = (char *) malloc (2 * pagesize);
10002 if (!data2)
10003 return 1;
10004 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10005 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10006 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10007 return 1;
10008 for (i = 0; i < pagesize; ++i)
10009 if (*(data + i) != *(data2 + i))
10010 return 1;
10012 /* Finally, make sure that changes to the mapped area do not
10013 percolate back to the file as seen by read(). (This is a bug on
10014 some variants of i386 svr4.0.) */
10015 for (i = 0; i < pagesize; ++i)
10016 *(data2 + i) = *(data2 + i) + 1;
10017 data3 = (char *) malloc (pagesize);
10018 if (!data3)
10019 return 1;
10020 if (read (fd, data3, pagesize) != pagesize)
10021 return 1;
10022 for (i = 0; i < pagesize; ++i)
10023 if (*(data + i) != *(data3 + i))
10024 return 1;
10025 close (fd);
10026 return 0;
10028 _ACEOF
10029 rm -f conftest$ac_exeext
10030 if { (ac_try="$ac_link"
10031 case "(($ac_try" in
10032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10034 esac
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>&5
10037 ac_status=$?
10038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10040 { (case "(($ac_try" in
10041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10042 *) ac_try_echo=$ac_try;;
10043 esac
10044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10045 (eval "$ac_try") 2>&5
10046 ac_status=$?
10047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); }; }; then
10049 ac_cv_func_mmap_fixed_mapped=yes
10050 else
10051 echo "$as_me: program exited with status $ac_status" >&5
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10055 ( exit $ac_status )
10056 ac_cv_func_mmap_fixed_mapped=no
10058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10063 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10064 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10065 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_MMAP 1
10069 _ACEOF
10072 rm -f conftest.mmap
10074 if test $use_mmap_for_buffers = yes; then
10075 REL_ALLOC=no
10078 LIBS="$libsrc_libs $LIBS"
10081 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10082 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10083 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086 ac_check_lib_save_LIBS=$LIBS
10087 LIBS="-ldnet $LIBS"
10088 cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h. */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10095 /* Override any GCC internal prototype to avoid an error.
10096 Use char because int might match the return type of a GCC
10097 builtin and then its argument prototype would still apply. */
10098 #ifdef __cplusplus
10099 extern "C"
10100 #endif
10101 char dnet_ntoa ();
10103 main ()
10105 return dnet_ntoa ();
10107 return 0;
10109 _ACEOF
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (ac_try="$ac_link"
10112 case "(($ac_try" in
10113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114 *) ac_try_echo=$ac_try;;
10115 esac
10116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10117 (eval "$ac_link") 2>conftest.er1
10118 ac_status=$?
10119 grep -v '^ *+' conftest.er1 >conftest.err
10120 rm -f conftest.er1
10121 cat conftest.err >&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && {
10124 test -z "$ac_c_werror_flag" ||
10125 test ! -s conftest.err
10126 } && test -s conftest$ac_exeext &&
10127 $as_test_x conftest$ac_exeext; then
10128 ac_cv_lib_dnet_dnet_ntoa=yes
10129 else
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133 ac_cv_lib_dnet_dnet_ntoa=no
10136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10140 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10141 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10142 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10143 cat >>confdefs.h <<_ACEOF
10144 #define HAVE_LIBDNET 1
10145 _ACEOF
10147 LIBS="-ldnet $LIBS"
10152 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10153 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10154 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 ac_check_lib_save_LIBS=$LIBS
10158 LIBS="-lXbsd $LIBS"
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h. */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10168 main ()
10170 return main ();
10172 return 0;
10174 _ACEOF
10175 rm -f conftest.$ac_objext conftest$ac_exeext
10176 if { (ac_try="$ac_link"
10177 case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10180 esac
10181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_link") 2>conftest.er1
10183 ac_status=$?
10184 grep -v '^ *+' conftest.er1 >conftest.err
10185 rm -f conftest.er1
10186 cat conftest.err >&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && {
10189 test -z "$ac_c_werror_flag" ||
10190 test ! -s conftest.err
10191 } && test -s conftest$ac_exeext &&
10192 $as_test_x conftest$ac_exeext; then
10193 ac_cv_lib_Xbsd_main=yes
10194 else
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10198 ac_cv_lib_Xbsd_main=no
10201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10202 conftest$ac_exeext conftest.$ac_ext
10203 LIBS=$ac_check_lib_save_LIBS
10205 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10206 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10207 if test $ac_cv_lib_Xbsd_main = yes; then
10208 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10213 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10214 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10215 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10216 echo $ECHO_N "(cached) $ECHO_C" >&6
10217 else
10218 ac_check_lib_save_LIBS=$LIBS
10219 LIBS="-lpthreads $LIBS"
10220 cat >conftest.$ac_ext <<_ACEOF
10221 /* confdefs.h. */
10222 _ACEOF
10223 cat confdefs.h >>conftest.$ac_ext
10224 cat >>conftest.$ac_ext <<_ACEOF
10225 /* end confdefs.h. */
10227 /* Override any GCC internal prototype to avoid an error.
10228 Use char because int might match the return type of a GCC
10229 builtin and then its argument prototype would still apply. */
10230 #ifdef __cplusplus
10231 extern "C"
10232 #endif
10233 char cma_open ();
10235 main ()
10237 return cma_open ();
10239 return 0;
10241 _ACEOF
10242 rm -f conftest.$ac_objext conftest$ac_exeext
10243 if { (ac_try="$ac_link"
10244 case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247 esac
10248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10249 (eval "$ac_link") 2>conftest.er1
10250 ac_status=$?
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && {
10256 test -z "$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10258 } && test -s conftest$ac_exeext &&
10259 $as_test_x conftest$ac_exeext; then
10260 ac_cv_lib_pthreads_cma_open=yes
10261 else
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_cv_lib_pthreads_cma_open=no
10268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10269 conftest$ac_exeext conftest.$ac_ext
10270 LIBS=$ac_check_lib_save_LIBS
10272 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10273 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10274 if test $ac_cv_lib_pthreads_cma_open = yes; then
10275 cat >>confdefs.h <<_ACEOF
10276 #define HAVE_LIBPTHREADS 1
10277 _ACEOF
10279 LIBS="-lpthreads $LIBS"
10284 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10285 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10286 if test -d /usr/X386/include; then
10287 HAVE_XFREE386=yes
10288 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10289 else
10290 HAVE_XFREE386=no
10292 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10293 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10296 case ${host_os} in
10297 aix*)
10298 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10299 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10300 if test "${gdb_cv_bigtoc+set}" = set; then
10301 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 else
10304 case $GCC in
10305 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10306 *) gdb_cv_bigtoc=-bbigtoc ;;
10307 esac
10309 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h. */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10318 main ()
10320 int i;
10322 return 0;
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (ac_try="$ac_link"
10327 case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_link") 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest$ac_exeext &&
10342 $as_test_x conftest$ac_exeext; then
10344 else
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10348 gdb_cv_bigtoc=
10351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10352 conftest$ac_exeext conftest.$ac_ext
10355 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10356 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10358 esac
10360 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10361 # used for the tests that follow. We set them back to REAL_CFLAGS and
10362 # REAL_CPPFLAGS later on.
10364 REAL_CPPFLAGS="$CPPFLAGS"
10366 if test "${HAVE_X11}" = "yes"; then
10367 DEFS="$C_SWITCH_X_SITE $DEFS"
10368 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10369 LIBS="$LIBX $LIBS"
10370 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10371 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10373 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10374 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10375 # but it's more convenient here to set LD_RUN_PATH
10376 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10377 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10378 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10379 export LD_RUN_PATH
10382 if test "${opsys}" = "gnu-linux"; then
10383 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10384 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10385 cat >conftest.$ac_ext <<_ACEOF
10386 /* confdefs.h. */
10387 _ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10393 main ()
10395 XOpenDisplay ("foo");
10397 return 0;
10399 _ACEOF
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405 esac
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_link") 2>conftest.er1
10408 ac_status=$?
10409 grep -v '^ *+' conftest.er1 >conftest.err
10410 rm -f conftest.er1
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && {
10414 test -z "$ac_c_werror_flag" ||
10415 test ! -s conftest.err
10416 } && test -s conftest$ac_exeext &&
10417 $as_test_x conftest$ac_exeext; then
10418 xlinux_first_failure=no
10419 else
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 xlinux_first_failure=yes
10426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10427 conftest$ac_exeext conftest.$ac_ext
10428 if test "${xlinux_first_failure}" = "yes"; then
10429 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10430 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10431 OLD_CPPFLAGS="$CPPFLAGS"
10432 OLD_LIBS="$LIBS"
10433 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10434 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10435 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10436 LIBS="$LIBS -b i486-linuxaout"
10437 cat >conftest.$ac_ext <<_ACEOF
10438 /* confdefs.h. */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h. */
10445 main ()
10447 XOpenDisplay ("foo");
10449 return 0;
10451 _ACEOF
10452 rm -f conftest.$ac_objext conftest$ac_exeext
10453 if { (ac_try="$ac_link"
10454 case "(($ac_try" in
10455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10456 *) ac_try_echo=$ac_try;;
10457 esac
10458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10459 (eval "$ac_link") 2>conftest.er1
10460 ac_status=$?
10461 grep -v '^ *+' conftest.er1 >conftest.err
10462 rm -f conftest.er1
10463 cat conftest.err >&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); } && {
10466 test -z "$ac_c_werror_flag" ||
10467 test ! -s conftest.err
10468 } && test -s conftest$ac_exeext &&
10469 $as_test_x conftest$ac_exeext; then
10470 xlinux_second_failure=no
10471 else
10472 echo "$as_me: failed program was:" >&5
10473 sed 's/^/| /' conftest.$ac_ext >&5
10475 xlinux_second_failure=yes
10478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10479 conftest$ac_exeext conftest.$ac_ext
10480 if test "${xlinux_second_failure}" = "yes"; then
10481 # If we get the same failure with -b, there is no use adding -b.
10482 # So take it out. This plays safe.
10483 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10484 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10485 CPPFLAGS="$OLD_CPPFLAGS"
10486 LIBS="$OLD_LIBS"
10487 { echo "$as_me:$LINENO: result: no" >&5
10488 echo "${ECHO_T}no" >&6; }
10489 else
10490 { echo "$as_me:$LINENO: result: yes" >&5
10491 echo "${ECHO_T}yes" >&6; }
10493 else
10494 { echo "$as_me:$LINENO: result: no" >&5
10495 echo "${ECHO_T}no" >&6; }
10499 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10500 # header files included from there.
10501 { echo "$as_me:$LINENO: checking for Xkb" >&5
10502 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10503 cat >conftest.$ac_ext <<_ACEOF
10504 /* confdefs.h. */
10505 _ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 #include <X11/Xlib.h>
10510 #include <X11/XKBlib.h>
10512 main ()
10514 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10516 return 0;
10518 _ACEOF
10519 rm -f conftest.$ac_objext conftest$ac_exeext
10520 if { (ac_try="$ac_link"
10521 case "(($ac_try" in
10522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10523 *) ac_try_echo=$ac_try;;
10524 esac
10525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10526 (eval "$ac_link") 2>conftest.er1
10527 ac_status=$?
10528 grep -v '^ *+' conftest.er1 >conftest.err
10529 rm -f conftest.er1
10530 cat conftest.err >&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); } && {
10533 test -z "$ac_c_werror_flag" ||
10534 test ! -s conftest.err
10535 } && test -s conftest$ac_exeext &&
10536 $as_test_x conftest$ac_exeext; then
10537 emacs_xkb=yes
10538 else
10539 echo "$as_me: failed program was:" >&5
10540 sed 's/^/| /' conftest.$ac_ext >&5
10542 emacs_xkb=no
10545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10546 conftest$ac_exeext conftest.$ac_ext
10547 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10548 echo "${ECHO_T}$emacs_xkb" >&6; }
10549 if test $emacs_xkb = yes; then
10551 cat >>confdefs.h <<\_ACEOF
10552 #define HAVE_XKBGETKEYBOARD 1
10553 _ACEOF
10561 for ac_func in XrmSetDatabase XScreenResourceString \
10562 XScreenNumberOfScreen XSetWMProtocols
10564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10568 echo $ECHO_N "(cached) $ECHO_C" >&6
10569 else
10570 cat >conftest.$ac_ext <<_ACEOF
10571 /* confdefs.h. */
10572 _ACEOF
10573 cat confdefs.h >>conftest.$ac_ext
10574 cat >>conftest.$ac_ext <<_ACEOF
10575 /* end confdefs.h. */
10576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10578 #define $ac_func innocuous_$ac_func
10580 /* System header to define __stub macros and hopefully few prototypes,
10581 which can conflict with char $ac_func (); below.
10582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10583 <limits.h> exists even on freestanding compilers. */
10585 #ifdef __STDC__
10586 # include <limits.h>
10587 #else
10588 # include <assert.h>
10589 #endif
10591 #undef $ac_func
10593 /* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10596 #ifdef __cplusplus
10597 extern "C"
10598 #endif
10599 char $ac_func ();
10600 /* The GNU C library defines this for functions which it implements
10601 to always fail with ENOSYS. Some functions are actually named
10602 something starting with __ and the normal name is an alias. */
10603 #if defined __stub_$ac_func || defined __stub___$ac_func
10604 choke me
10605 #endif
10608 main ()
10610 return $ac_func ();
10612 return 0;
10614 _ACEOF
10615 rm -f conftest.$ac_objext conftest$ac_exeext
10616 if { (ac_try="$ac_link"
10617 case "(($ac_try" in
10618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619 *) ac_try_echo=$ac_try;;
10620 esac
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622 (eval "$ac_link") 2>conftest.er1
10623 ac_status=$?
10624 grep -v '^ *+' conftest.er1 >conftest.err
10625 rm -f conftest.er1
10626 cat conftest.err >&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); } && {
10629 test -z "$ac_c_werror_flag" ||
10630 test ! -s conftest.err
10631 } && test -s conftest$ac_exeext &&
10632 $as_test_x conftest$ac_exeext; then
10633 eval "$as_ac_var=yes"
10634 else
10635 echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10638 eval "$as_ac_var=no"
10641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10642 conftest$ac_exeext conftest.$ac_ext
10644 ac_res=`eval echo '${'$as_ac_var'}'`
10645 { echo "$as_me:$LINENO: result: $ac_res" >&5
10646 echo "${ECHO_T}$ac_res" >&6; }
10647 if test `eval echo '${'$as_ac_var'}'` = yes; then
10648 cat >>confdefs.h <<_ACEOF
10649 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10650 _ACEOF
10653 done
10657 if test "${window_system}" = "x11"; then
10658 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10659 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10660 if test "${emacs_cv_x11_version_6+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 #include <X11/Xlib.h>
10671 main ()
10673 #if XlibSpecificationRelease < 6
10674 fail;
10675 #endif
10678 return 0;
10680 _ACEOF
10681 rm -f conftest.$ac_objext conftest$ac_exeext
10682 if { (ac_try="$ac_link"
10683 case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686 esac
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_link") 2>conftest.er1
10689 ac_status=$?
10690 grep -v '^ *+' conftest.er1 >conftest.err
10691 rm -f conftest.er1
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } && {
10695 test -z "$ac_c_werror_flag" ||
10696 test ! -s conftest.err
10697 } && test -s conftest$ac_exeext &&
10698 $as_test_x conftest$ac_exeext; then
10699 emacs_cv_x11_version_6=yes
10700 else
10701 echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10704 emacs_cv_x11_version_6=no
10707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10708 conftest$ac_exeext conftest.$ac_ext
10711 if test $emacs_cv_x11_version_6 = yes; then
10712 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10713 echo "${ECHO_T}6 or newer" >&6; }
10715 cat >>confdefs.h <<\_ACEOF
10716 #define HAVE_X11R6 1
10717 _ACEOF
10719 else
10720 { echo "$as_me:$LINENO: result: before 6" >&5
10721 echo "${ECHO_T}before 6" >&6; }
10726 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10727 HAVE_RSVG=no
10728 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10729 if test "${with_rsvg}" != "no"; then
10730 RSVG_REQUIRED=2.0.0
10731 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10734 succeeded=no
10736 # Extract the first word of "pkg-config", so it can be a program name with args.
10737 set dummy pkg-config; ac_word=$2
10738 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10740 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 else
10743 case $PKG_CONFIG in
10744 [\\/]* | ?:[\\/]*)
10745 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749 for as_dir in $PATH
10751 IFS=$as_save_IFS
10752 test -z "$as_dir" && as_dir=.
10753 for ac_exec_ext in '' $ac_executable_extensions; do
10754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10755 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 break 2
10759 done
10760 done
10761 IFS=$as_save_IFS
10763 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10765 esac
10767 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10768 if test -n "$PKG_CONFIG"; then
10769 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10770 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10771 else
10772 { echo "$as_me:$LINENO: result: no" >&5
10773 echo "${ECHO_T}no" >&6; }
10778 if test "$PKG_CONFIG" = "no" ; then
10780 else
10781 PKG_CONFIG_MIN_VERSION=0.9.0
10782 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10783 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10784 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10786 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10787 { echo "$as_me:$LINENO: result: yes" >&5
10788 echo "${ECHO_T}yes" >&6; }
10789 succeeded=yes
10791 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10792 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10793 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10794 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10795 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10797 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10798 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10799 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10800 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10801 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10802 else
10803 { echo "$as_me:$LINENO: result: no" >&5
10804 echo "${ECHO_T}no" >&6; }
10805 RSVG_CFLAGS=""
10806 RSVG_LIBS=""
10807 ## If we have a custom action on failure, don't print errors, but
10808 ## do set a variable so people can do so.
10809 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10815 else
10816 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10817 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10821 if test $succeeded = yes; then
10823 else
10830 if test ".${RSVG_CFLAGS}" != "."; then
10831 HAVE_RSVG=yes
10833 cat >>confdefs.h <<\_ACEOF
10834 #define HAVE_RSVG 1
10835 _ACEOF
10837 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10838 LIBS="$RSVG_LIBS $LIBS"
10844 HAVE_GTK=no
10845 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10846 USE_X_TOOLKIT=none
10848 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
10849 test "$USE_X_TOOLKIT" = "maybe"; then
10850 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10851 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10852 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10853 { (exit 1); exit 1; }; };
10855 GLIB_REQUIRED=2.6
10856 GTK_REQUIRED=2.6
10857 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10860 succeeded=no
10862 # Extract the first word of "pkg-config", so it can be a program name with args.
10863 set dummy pkg-config; ac_word=$2
10864 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10866 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10867 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 else
10869 case $PKG_CONFIG in
10870 [\\/]* | ?:[\\/]*)
10871 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875 for as_dir in $PATH
10877 IFS=$as_save_IFS
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10881 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10883 break 2
10885 done
10886 done
10887 IFS=$as_save_IFS
10889 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10891 esac
10893 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10894 if test -n "$PKG_CONFIG"; then
10895 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10896 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10897 else
10898 { echo "$as_me:$LINENO: result: no" >&5
10899 echo "${ECHO_T}no" >&6; }
10904 if test "$PKG_CONFIG" = "no" ; then
10905 pkg_check_gtk=no
10906 else
10907 PKG_CONFIG_MIN_VERSION=0.9.0
10908 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10909 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10910 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10912 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10913 { echo "$as_me:$LINENO: result: yes" >&5
10914 echo "${ECHO_T}yes" >&6; }
10915 succeeded=yes
10917 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10918 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10919 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10920 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10921 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10923 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10924 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10925 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10926 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10927 echo "${ECHO_T}$GTK_LIBS" >&6; }
10928 else
10929 { echo "$as_me:$LINENO: result: no" >&5
10930 echo "${ECHO_T}no" >&6; }
10931 GTK_CFLAGS=""
10932 GTK_LIBS=""
10933 ## If we have a custom action on failure, don't print errors, but
10934 ## do set a variable so people can do so.
10935 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10941 else
10942 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10943 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10947 if test $succeeded = yes; then
10948 pkg_check_gtk=yes
10949 else
10950 pkg_check_gtk=no
10953 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10954 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10955 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10956 { (exit 1); exit 1; }; }
10961 if test x"$pkg_check_gtk" = xyes; then
10965 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10966 CFLAGS="$CFLAGS $GTK_CFLAGS"
10967 LIBS="$GTK_LIBS $LIBS"
10968 GTK_COMPILES=no
10970 for ac_func in gtk_main
10972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10973 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10975 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 else
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h. */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h. */
10984 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10986 #define $ac_func innocuous_$ac_func
10988 /* System header to define __stub macros and hopefully few prototypes,
10989 which can conflict with char $ac_func (); below.
10990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10991 <limits.h> exists even on freestanding compilers. */
10993 #ifdef __STDC__
10994 # include <limits.h>
10995 #else
10996 # include <assert.h>
10997 #endif
10999 #undef $ac_func
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char $ac_func ();
11008 /* The GNU C library defines this for functions which it implements
11009 to always fail with ENOSYS. Some functions are actually named
11010 something starting with __ and the normal name is an alias. */
11011 #if defined __stub_$ac_func || defined __stub___$ac_func
11012 choke me
11013 #endif
11016 main ()
11018 return $ac_func ();
11020 return 0;
11022 _ACEOF
11023 rm -f conftest.$ac_objext conftest$ac_exeext
11024 if { (ac_try="$ac_link"
11025 case "(($ac_try" in
11026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027 *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_link") 2>conftest.er1
11031 ac_status=$?
11032 grep -v '^ *+' conftest.er1 >conftest.err
11033 rm -f conftest.er1
11034 cat conftest.err >&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } && {
11037 test -z "$ac_c_werror_flag" ||
11038 test ! -s conftest.err
11039 } && test -s conftest$ac_exeext &&
11040 $as_test_x conftest$ac_exeext; then
11041 eval "$as_ac_var=yes"
11042 else
11043 echo "$as_me: failed program was:" >&5
11044 sed 's/^/| /' conftest.$ac_ext >&5
11046 eval "$as_ac_var=no"
11049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11050 conftest$ac_exeext conftest.$ac_ext
11052 ac_res=`eval echo '${'$as_ac_var'}'`
11053 { echo "$as_me:$LINENO: result: $ac_res" >&5
11054 echo "${ECHO_T}$ac_res" >&6; }
11055 if test `eval echo '${'$as_ac_var'}'` = yes; then
11056 cat >>confdefs.h <<_ACEOF
11057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11058 _ACEOF
11059 GTK_COMPILES=yes
11061 done
11063 if test "${GTK_COMPILES}" != "yes"; then
11064 if test "$USE_X_TOOLKIT" != "maybe"; then
11065 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11066 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11067 { (exit 1); exit 1; }; };
11069 else
11070 HAVE_GTK=yes
11072 cat >>confdefs.h <<\_ACEOF
11073 #define HAVE_GTK 1
11074 _ACEOF
11076 USE_X_TOOLKIT=none
11082 if test "${HAVE_GTK}" = "yes"; then
11084 if test "$with_toolkit_scroll_bars" != no; then
11085 with_toolkit_scroll_bars=yes
11088 HAVE_GTK_MULTIDISPLAY=no
11090 for ac_func in gdk_display_open
11092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 cat >conftest.$ac_ext <<_ACEOF
11099 /* confdefs.h. */
11100 _ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11106 #define $ac_func innocuous_$ac_func
11108 /* System header to define __stub macros and hopefully few prototypes,
11109 which can conflict with char $ac_func (); below.
11110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11111 <limits.h> exists even on freestanding compilers. */
11113 #ifdef __STDC__
11114 # include <limits.h>
11115 #else
11116 # include <assert.h>
11117 #endif
11119 #undef $ac_func
11121 /* Override any GCC internal prototype to avoid an error.
11122 Use char because int might match the return type of a GCC
11123 builtin and then its argument prototype would still apply. */
11124 #ifdef __cplusplus
11125 extern "C"
11126 #endif
11127 char $ac_func ();
11128 /* The GNU C library defines this for functions which it implements
11129 to always fail with ENOSYS. Some functions are actually named
11130 something starting with __ and the normal name is an alias. */
11131 #if defined __stub_$ac_func || defined __stub___$ac_func
11132 choke me
11133 #endif
11136 main ()
11138 return $ac_func ();
11140 return 0;
11142 _ACEOF
11143 rm -f conftest.$ac_objext conftest$ac_exeext
11144 if { (ac_try="$ac_link"
11145 case "(($ac_try" in
11146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147 *) ac_try_echo=$ac_try;;
11148 esac
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150 (eval "$ac_link") 2>conftest.er1
11151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } && {
11157 test -z "$ac_c_werror_flag" ||
11158 test ! -s conftest.err
11159 } && test -s conftest$ac_exeext &&
11160 $as_test_x conftest$ac_exeext; then
11161 eval "$as_ac_var=yes"
11162 else
11163 echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11166 eval "$as_ac_var=no"
11169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170 conftest$ac_exeext conftest.$ac_ext
11172 ac_res=`eval echo '${'$as_ac_var'}'`
11173 { echo "$as_me:$LINENO: result: $ac_res" >&5
11174 echo "${ECHO_T}$ac_res" >&6; }
11175 if test `eval echo '${'$as_ac_var'}'` = yes; then
11176 cat >>confdefs.h <<_ACEOF
11177 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11178 _ACEOF
11179 HAVE_GTK_MULTIDISPLAY=yes
11181 done
11183 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11185 cat >>confdefs.h <<\_ACEOF
11186 #define HAVE_GTK_MULTIDISPLAY 1
11187 _ACEOF
11191 HAVE_GTK_FILE_SELECTION=no
11193 for ac_func in gtk_file_selection_new
11195 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11196 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11197 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11198 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11199 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 else
11201 cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h. */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11207 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11208 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11209 #define $ac_func innocuous_$ac_func
11211 /* System header to define __stub macros and hopefully few prototypes,
11212 which can conflict with char $ac_func (); below.
11213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11214 <limits.h> exists even on freestanding compilers. */
11216 #ifdef __STDC__
11217 # include <limits.h>
11218 #else
11219 # include <assert.h>
11220 #endif
11222 #undef $ac_func
11224 /* Override any GCC internal prototype to avoid an error.
11225 Use char because int might match the return type of a GCC
11226 builtin and then its argument prototype would still apply. */
11227 #ifdef __cplusplus
11228 extern "C"
11229 #endif
11230 char $ac_func ();
11231 /* The GNU C library defines this for functions which it implements
11232 to always fail with ENOSYS. Some functions are actually named
11233 something starting with __ and the normal name is an alias. */
11234 #if defined __stub_$ac_func || defined __stub___$ac_func
11235 choke me
11236 #endif
11239 main ()
11241 return $ac_func ();
11243 return 0;
11245 _ACEOF
11246 rm -f conftest.$ac_objext conftest$ac_exeext
11247 if { (ac_try="$ac_link"
11248 case "(($ac_try" in
11249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11250 *) ac_try_echo=$ac_try;;
11251 esac
11252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11253 (eval "$ac_link") 2>conftest.er1
11254 ac_status=$?
11255 grep -v '^ *+' conftest.er1 >conftest.err
11256 rm -f conftest.er1
11257 cat conftest.err >&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && {
11260 test -z "$ac_c_werror_flag" ||
11261 test ! -s conftest.err
11262 } && test -s conftest$ac_exeext &&
11263 $as_test_x conftest$ac_exeext; then
11264 eval "$as_ac_var=yes"
11265 else
11266 echo "$as_me: failed program was:" >&5
11267 sed 's/^/| /' conftest.$ac_ext >&5
11269 eval "$as_ac_var=no"
11272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11273 conftest$ac_exeext conftest.$ac_ext
11275 ac_res=`eval echo '${'$as_ac_var'}'`
11276 { echo "$as_me:$LINENO: result: $ac_res" >&5
11277 echo "${ECHO_T}$ac_res" >&6; }
11278 if test `eval echo '${'$as_ac_var'}'` = yes; then
11279 cat >>confdefs.h <<_ACEOF
11280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11281 _ACEOF
11282 HAVE_GTK_FILE_SELECTION=yes
11284 done
11287 HAVE_GTK_FILE_CHOOSER=no
11289 for ac_func in gtk_file_chooser_dialog_new
11291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297 cat >conftest.$ac_ext <<_ACEOF
11298 /* confdefs.h. */
11299 _ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11304 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11305 #define $ac_func innocuous_$ac_func
11307 /* System header to define __stub macros and hopefully few prototypes,
11308 which can conflict with char $ac_func (); below.
11309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11310 <limits.h> exists even on freestanding compilers. */
11312 #ifdef __STDC__
11313 # include <limits.h>
11314 #else
11315 # include <assert.h>
11316 #endif
11318 #undef $ac_func
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 char $ac_func ();
11327 /* The GNU C library defines this for functions which it implements
11328 to always fail with ENOSYS. Some functions are actually named
11329 something starting with __ and the normal name is an alias. */
11330 #if defined __stub_$ac_func || defined __stub___$ac_func
11331 choke me
11332 #endif
11335 main ()
11337 return $ac_func ();
11339 return 0;
11341 _ACEOF
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (ac_try="$ac_link"
11344 case "(($ac_try" in
11345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11346 *) ac_try_echo=$ac_try;;
11347 esac
11348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11349 (eval "$ac_link") 2>conftest.er1
11350 ac_status=$?
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } && {
11356 test -z "$ac_c_werror_flag" ||
11357 test ! -s conftest.err
11358 } && test -s conftest$ac_exeext &&
11359 $as_test_x conftest$ac_exeext; then
11360 eval "$as_ac_var=yes"
11361 else
11362 echo "$as_me: failed program was:" >&5
11363 sed 's/^/| /' conftest.$ac_ext >&5
11365 eval "$as_ac_var=no"
11368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11369 conftest$ac_exeext conftest.$ac_ext
11371 ac_res=`eval echo '${'$as_ac_var'}'`
11372 { echo "$as_me:$LINENO: result: $ac_res" >&5
11373 echo "${ECHO_T}$ac_res" >&6; }
11374 if test `eval echo '${'$as_ac_var'}'` = yes; then
11375 cat >>confdefs.h <<_ACEOF
11376 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11377 _ACEOF
11378 HAVE_GTK_FILE_CHOOSER=yes
11380 done
11383 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11384 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11386 cat >>confdefs.h <<\_ACEOF
11387 #define HAVE_GTK_FILE_BOTH 1
11388 _ACEOF
11392 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11393 HAVE_GTK_AND_PTHREAD=no
11395 for ac_header in pthread.h
11397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11399 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 ac_res=`eval echo '${'$as_ac_Header'}'`
11405 { echo "$as_me:$LINENO: result: $ac_res" >&5
11406 echo "${ECHO_T}$ac_res" >&6; }
11407 else
11408 # Is the header compilable?
11409 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11410 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11411 cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h. */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 $ac_includes_default
11418 #include <$ac_header>
11419 _ACEOF
11420 rm -f conftest.$ac_objext
11421 if { (ac_try="$ac_compile"
11422 case "(($ac_try" in
11423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11425 esac
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_compile") 2>conftest.er1
11428 ac_status=$?
11429 grep -v '^ *+' conftest.er1 >conftest.err
11430 rm -f conftest.er1
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } && {
11434 test -z "$ac_c_werror_flag" ||
11435 test ! -s conftest.err
11436 } && test -s conftest.$ac_objext; then
11437 ac_header_compiler=yes
11438 else
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11442 ac_header_compiler=no
11445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11447 echo "${ECHO_T}$ac_header_compiler" >&6; }
11449 # Is the header present?
11450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11452 cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h. */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 #include <$ac_header>
11459 _ACEOF
11460 if { (ac_try="$ac_cpp conftest.$ac_ext"
11461 case "(($ac_try" in
11462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11467 ac_status=$?
11468 grep -v '^ *+' conftest.er1 >conftest.err
11469 rm -f conftest.er1
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } >/dev/null && {
11473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11475 }; then
11476 ac_header_preproc=yes
11477 else
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 ac_header_preproc=no
11484 rm -f conftest.err conftest.$ac_ext
11485 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11486 echo "${ECHO_T}$ac_header_preproc" >&6; }
11488 # So? What about this header?
11489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11490 yes:no: )
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11492 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11494 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11495 ac_header_preproc=yes
11497 no:yes:* )
11498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11499 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11501 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11503 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11505 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11509 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11512 esac
11513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518 eval "$as_ac_Header=\$ac_header_preproc"
11520 ac_res=`eval echo '${'$as_ac_Header'}'`
11521 { echo "$as_me:$LINENO: result: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11526 cat >>confdefs.h <<_ACEOF
11527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11528 _ACEOF
11532 done
11534 if test "$ac_cv_header_pthread_h"; then
11535 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11536 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11537 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 else
11540 ac_check_lib_save_LIBS=$LIBS
11541 LIBS="-lpthread $LIBS"
11542 cat >conftest.$ac_ext <<_ACEOF
11543 /* confdefs.h. */
11544 _ACEOF
11545 cat confdefs.h >>conftest.$ac_ext
11546 cat >>conftest.$ac_ext <<_ACEOF
11547 /* end confdefs.h. */
11549 /* Override any GCC internal prototype to avoid an error.
11550 Use char because int might match the return type of a GCC
11551 builtin and then its argument prototype would still apply. */
11552 #ifdef __cplusplus
11553 extern "C"
11554 #endif
11555 char pthread_self ();
11557 main ()
11559 return pthread_self ();
11561 return 0;
11563 _ACEOF
11564 rm -f conftest.$ac_objext conftest$ac_exeext
11565 if { (ac_try="$ac_link"
11566 case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569 esac
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_link") 2>conftest.er1
11572 ac_status=$?
11573 grep -v '^ *+' conftest.er1 >conftest.err
11574 rm -f conftest.er1
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } && {
11578 test -z "$ac_c_werror_flag" ||
11579 test ! -s conftest.err
11580 } && test -s conftest$ac_exeext &&
11581 $as_test_x conftest$ac_exeext; then
11582 ac_cv_lib_pthread_pthread_self=yes
11583 else
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11587 ac_cv_lib_pthread_pthread_self=no
11590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11591 conftest$ac_exeext conftest.$ac_ext
11592 LIBS=$ac_check_lib_save_LIBS
11594 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11595 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11596 if test $ac_cv_lib_pthread_pthread_self = yes; then
11597 HAVE_GTK_AND_PTHREAD=yes
11601 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11602 case "${canonical}" in
11603 *-hpux*) ;;
11604 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11605 esac
11607 cat >>confdefs.h <<\_ACEOF
11608 #define HAVE_GTK_AND_PTHREAD 1
11609 _ACEOF
11615 HAVE_DBUS=no
11616 if test "${with_dbus}" = "yes"; then
11618 succeeded=no
11620 # Extract the first word of "pkg-config", so it can be a program name with args.
11621 set dummy pkg-config; ac_word=$2
11622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11624 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 else
11627 case $PKG_CONFIG in
11628 [\\/]* | ?:[\\/]*)
11629 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11639 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11641 break 2
11643 done
11644 done
11645 IFS=$as_save_IFS
11647 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11649 esac
11651 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11652 if test -n "$PKG_CONFIG"; then
11653 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11654 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11655 else
11656 { echo "$as_me:$LINENO: result: no" >&5
11657 echo "${ECHO_T}no" >&6; }
11662 if test "$PKG_CONFIG" = "no" ; then
11663 HAVE_DBUS=no
11664 else
11665 PKG_CONFIG_MIN_VERSION=0.9.0
11666 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11667 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11668 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11670 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11671 { echo "$as_me:$LINENO: result: yes" >&5
11672 echo "${ECHO_T}yes" >&6; }
11673 succeeded=yes
11675 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11676 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11677 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11678 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11679 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11681 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11682 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11683 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11684 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11685 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11686 else
11687 { echo "$as_me:$LINENO: result: no" >&5
11688 echo "${ECHO_T}no" >&6; }
11689 DBUS_CFLAGS=""
11690 DBUS_LIBS=""
11691 ## If we have a custom action on failure, don't print errors, but
11692 ## do set a variable so people can do so.
11693 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11699 else
11700 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11701 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11705 if test $succeeded = yes; then
11706 HAVE_DBUS=yes
11707 else
11708 HAVE_DBUS=no
11711 if test "$HAVE_DBUS" = yes; then
11713 cat >>confdefs.h <<\_ACEOF
11714 #define HAVE_DBUS 1
11715 _ACEOF
11720 HAVE_XAW3D=no
11721 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11722 if test "$with_xaw3d" != no; then
11723 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11724 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11725 if test "${emacs_cv_xaw3d+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11727 else
11728 cat >conftest.$ac_ext <<_ACEOF
11729 /* confdefs.h. */
11730 _ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11735 #include <X11/Intrinsic.h>
11736 #include <X11/Xaw3d/Simple.h>
11738 main ()
11742 return 0;
11744 _ACEOF
11745 rm -f conftest.$ac_objext conftest$ac_exeext
11746 if { (ac_try="$ac_link"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_link") 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } && {
11759 test -z "$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 } && test -s conftest$ac_exeext &&
11762 $as_test_x conftest$ac_exeext; then
11763 emacs_cv_xaw3d=yes
11764 else
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11768 emacs_cv_xaw3d=no
11771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11772 conftest$ac_exeext conftest.$ac_ext
11775 else
11776 emacs_cv_xaw3d=no
11778 if test $emacs_cv_xaw3d = yes; then
11779 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11780 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11781 USE_X_TOOLKIT=LUCID
11782 HAVE_XAW3D=yes
11784 cat >>confdefs.h <<\_ACEOF
11785 #define HAVE_XAW3D 1
11786 _ACEOF
11788 else
11789 { echo "$as_me:$LINENO: result: no" >&5
11790 echo "${ECHO_T}no" >&6; }
11791 { echo "$as_me:$LINENO: checking for libXaw" >&5
11792 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11793 if test "${emacs_cv_xaw+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796 cat >conftest.$ac_ext <<_ACEOF
11797 /* confdefs.h. */
11798 _ACEOF
11799 cat confdefs.h >>conftest.$ac_ext
11800 cat >>conftest.$ac_ext <<_ACEOF
11801 /* end confdefs.h. */
11803 #include <X11/Intrinsic.h>
11804 #include <X11/Xaw/Simple.h>
11806 main ()
11810 return 0;
11812 _ACEOF
11813 rm -f conftest.$ac_objext conftest$ac_exeext
11814 if { (ac_try="$ac_link"
11815 case "(($ac_try" in
11816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11817 *) ac_try_echo=$ac_try;;
11818 esac
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_link") 2>conftest.er1
11821 ac_status=$?
11822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } && {
11827 test -z "$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 } && test -s conftest$ac_exeext &&
11830 $as_test_x conftest$ac_exeext; then
11831 emacs_cv_xaw=yes
11832 else
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11836 emacs_cv_xaw=no
11839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11840 conftest$ac_exeext conftest.$ac_ext
11843 if test $emacs_cv_xaw = yes; then
11844 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11845 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11846 USE_X_TOOLKIT=LUCID
11847 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11848 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11849 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11850 { (exit 1); exit 1; }; }
11851 else
11852 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11853 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11854 USE_X_TOOLKIT=none
11859 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11861 if test "${USE_X_TOOLKIT}" != "none"; then
11862 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11863 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11864 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11865 echo $ECHO_N "(cached) $ECHO_C" >&6
11866 else
11867 cat >conftest.$ac_ext <<_ACEOF
11868 /* confdefs.h. */
11869 _ACEOF
11870 cat confdefs.h >>conftest.$ac_ext
11871 cat >>conftest.$ac_ext <<_ACEOF
11872 /* end confdefs.h. */
11873 #include <X11/Intrinsic.h>
11875 main ()
11877 #if XtSpecificationRelease < 6
11878 fail;
11879 #endif
11882 return 0;
11884 _ACEOF
11885 rm -f conftest.$ac_objext conftest$ac_exeext
11886 if { (ac_try="$ac_link"
11887 case "(($ac_try" in
11888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11889 *) ac_try_echo=$ac_try;;
11890 esac
11891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11892 (eval "$ac_link") 2>conftest.er1
11893 ac_status=$?
11894 grep -v '^ *+' conftest.er1 >conftest.err
11895 rm -f conftest.er1
11896 cat conftest.err >&5
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); } && {
11899 test -z "$ac_c_werror_flag" ||
11900 test ! -s conftest.err
11901 } && test -s conftest$ac_exeext &&
11902 $as_test_x conftest$ac_exeext; then
11903 emacs_cv_x11_toolkit_version_6=yes
11904 else
11905 echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11908 emacs_cv_x11_toolkit_version_6=no
11911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11912 conftest$ac_exeext conftest.$ac_ext
11915 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11916 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11917 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11918 echo "${ECHO_T}6 or newer" >&6; }
11920 cat >>confdefs.h <<\_ACEOF
11921 #define HAVE_X11XTR6 1
11922 _ACEOF
11924 else
11925 { echo "$as_me:$LINENO: result: before 6" >&5
11926 echo "${ECHO_T}before 6" >&6; }
11929 OLDLIBS="$LIBS"
11930 if test x$HAVE_X11XTR6 = xyes; then
11931 LIBS="-lXt -lSM -lICE $LIBS"
11932 else
11933 LIBS="-lXt $LIBS"
11936 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11937 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11938 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941 ac_check_lib_save_LIBS=$LIBS
11942 LIBS="-lXmu $LIBS"
11943 cat >conftest.$ac_ext <<_ACEOF
11944 /* confdefs.h. */
11945 _ACEOF
11946 cat confdefs.h >>conftest.$ac_ext
11947 cat >>conftest.$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char XmuConvertStandardSelection ();
11958 main ()
11960 return XmuConvertStandardSelection ();
11962 return 0;
11964 _ACEOF
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (ac_try="$ac_link"
11967 case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11970 esac
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_link") 2>conftest.er1
11973 ac_status=$?
11974 grep -v '^ *+' conftest.er1 >conftest.err
11975 rm -f conftest.er1
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest$ac_exeext &&
11982 $as_test_x conftest$ac_exeext; then
11983 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11984 else
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992 conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11995 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11996 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11997 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11998 cat >>confdefs.h <<_ACEOF
11999 #define HAVE_LIBXMU 1
12000 _ACEOF
12002 LIBS="-lXmu $LIBS"
12006 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12009 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12010 if test "${HAVE_X11}" = "yes"; then
12011 if test "${USE_X_TOOLKIT}" != "none"; then
12013 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12014 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12015 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018 ac_check_lib_save_LIBS=$LIBS
12019 LIBS="-lXext $LIBS"
12020 cat >conftest.$ac_ext <<_ACEOF
12021 /* confdefs.h. */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12030 #ifdef __cplusplus
12031 extern "C"
12032 #endif
12033 char XShapeQueryExtension ();
12035 main ()
12037 return XShapeQueryExtension ();
12039 return 0;
12041 _ACEOF
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (ac_try="$ac_link"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_link") 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && {
12056 test -z "$ac_c_werror_flag" ||
12057 test ! -s conftest.err
12058 } && test -s conftest$ac_exeext &&
12059 $as_test_x conftest$ac_exeext; then
12060 ac_cv_lib_Xext_XShapeQueryExtension=yes
12061 else
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 ac_cv_lib_Xext_XShapeQueryExtension=no
12068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12072 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12073 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12074 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12075 cat >>confdefs.h <<_ACEOF
12076 #define HAVE_LIBXEXT 1
12077 _ACEOF
12079 LIBS="-lXext $LIBS"
12086 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12087 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12088 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12089 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 else
12092 cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h. */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12098 #include <Xm/Xm.h>
12100 main ()
12102 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12103 int x = 5;
12104 #else
12105 Motif version prior to 2.1.
12106 #endif
12108 return 0;
12110 _ACEOF
12111 rm -f conftest.$ac_objext
12112 if { (ac_try="$ac_compile"
12113 case "(($ac_try" in
12114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12115 *) ac_try_echo=$ac_try;;
12116 esac
12117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12118 (eval "$ac_compile") 2>conftest.er1
12119 ac_status=$?
12120 grep -v '^ *+' conftest.er1 >conftest.err
12121 rm -f conftest.er1
12122 cat conftest.err >&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); } && {
12125 test -z "$ac_c_werror_flag" ||
12126 test ! -s conftest.err
12127 } && test -s conftest.$ac_objext; then
12128 emacs_cv_motif_version_2_1=yes
12129 else
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.$ac_ext >&5
12133 emacs_cv_motif_version_2_1=no
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12138 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12139 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12140 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12141 if test $emacs_cv_motif_version_2_1 = yes; then
12142 HAVE_LIBXP=no
12144 cat >>confdefs.h <<\_ACEOF
12145 #define HAVE_MOTIF_2_1 1
12146 _ACEOF
12148 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12149 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12150 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12152 else
12153 ac_check_lib_save_LIBS=$LIBS
12154 LIBS="-lXp $LIBS"
12155 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h. */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12162 /* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
12165 #ifdef __cplusplus
12166 extern "C"
12167 #endif
12168 char XpCreateContext ();
12170 main ()
12172 return XpCreateContext ();
12174 return 0;
12176 _ACEOF
12177 rm -f conftest.$ac_objext conftest$ac_exeext
12178 if { (ac_try="$ac_link"
12179 case "(($ac_try" in
12180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12181 *) ac_try_echo=$ac_try;;
12182 esac
12183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12184 (eval "$ac_link") 2>conftest.er1
12185 ac_status=$?
12186 grep -v '^ *+' conftest.er1 >conftest.err
12187 rm -f conftest.er1
12188 cat conftest.err >&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } && {
12191 test -z "$ac_c_werror_flag" ||
12192 test ! -s conftest.err
12193 } && test -s conftest$ac_exeext &&
12194 $as_test_x conftest$ac_exeext; then
12195 ac_cv_lib_Xp_XpCreateContext=yes
12196 else
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12200 ac_cv_lib_Xp_XpCreateContext=no
12203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12204 conftest$ac_exeext conftest.$ac_ext
12205 LIBS=$ac_check_lib_save_LIBS
12207 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12208 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12209 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12210 HAVE_LIBXP=yes
12213 if test ${HAVE_LIBXP} = yes; then
12215 cat >>confdefs.h <<\_ACEOF
12216 #define HAVE_LIBXP 1
12217 _ACEOF
12220 else
12221 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12222 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12223 if test "${emacs_cv_lesstif+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 else
12226 # We put this in CFLAGS temporarily to precede other -I options
12227 # that might be in CFLAGS temporarily.
12228 # We put this in CPPFLAGS where it precedes the other -I options.
12229 OLD_CPPFLAGS=$CPPFLAGS
12230 OLD_CFLAGS=$CFLAGS
12231 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12232 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12233 cat >conftest.$ac_ext <<_ACEOF
12234 /* confdefs.h. */
12235 _ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12241 main ()
12243 int x = 5;
12245 return 0;
12247 _ACEOF
12248 rm -f conftest.$ac_objext
12249 if { (ac_try="$ac_compile"
12250 case "(($ac_try" in
12251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12252 *) ac_try_echo=$ac_try;;
12253 esac
12254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12255 (eval "$ac_compile") 2>conftest.er1
12256 ac_status=$?
12257 grep -v '^ *+' conftest.er1 >conftest.err
12258 rm -f conftest.er1
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } && {
12262 test -z "$ac_c_werror_flag" ||
12263 test ! -s conftest.err
12264 } && test -s conftest.$ac_objext; then
12265 emacs_cv_lesstif=yes
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12270 emacs_cv_lesstif=no
12273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12275 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12276 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12277 if test $emacs_cv_lesstif = yes; then
12278 # Make sure this -I option remains in CPPFLAGS after it is set
12279 # back to REAL_CPPFLAGS.
12280 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12281 # have those other -I options anyway. Ultimately, having this
12282 # directory ultimately in CPPFLAGS will be enough.
12283 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12284 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12285 else
12286 CFLAGS=$OLD_CFLAGS
12287 CPPFLAGS=$OLD_CPPFLAGS
12294 USE_TOOLKIT_SCROLL_BARS=no
12295 if test "${with_toolkit_scroll_bars}" != "no"; then
12296 if test "${USE_X_TOOLKIT}" != "none"; then
12297 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12298 cat >>confdefs.h <<\_ACEOF
12299 #define USE_TOOLKIT_SCROLL_BARS 1
12300 _ACEOF
12302 HAVE_XAW3D=no
12303 USE_TOOLKIT_SCROLL_BARS=yes
12304 elif test "${HAVE_XAW3D}" = "yes"; then
12305 cat >>confdefs.h <<\_ACEOF
12306 #define USE_TOOLKIT_SCROLL_BARS 1
12307 _ACEOF
12309 USE_TOOLKIT_SCROLL_BARS=yes
12311 elif test "${HAVE_GTK}" = "yes"; then
12312 cat >>confdefs.h <<\_ACEOF
12313 #define USE_TOOLKIT_SCROLL_BARS 1
12314 _ACEOF
12316 USE_TOOLKIT_SCROLL_BARS=yes
12317 elif test "${HAVE_CARBON}" = "yes"; then
12318 cat >>confdefs.h <<\_ACEOF
12319 #define USE_TOOLKIT_SCROLL_BARS 1
12320 _ACEOF
12322 USE_TOOLKIT_SCROLL_BARS=yes
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12333 #include <X11/Xlib.h>
12334 #include <X11/Xresource.h>
12336 main ()
12338 XIMProc callback;
12340 return 0;
12342 _ACEOF
12343 rm -f conftest.$ac_objext
12344 if { (ac_try="$ac_compile"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12348 esac
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_compile") 2>conftest.er1
12351 ac_status=$?
12352 grep -v '^ *+' conftest.er1 >conftest.err
12353 rm -f conftest.er1
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } && {
12357 test -z "$ac_c_werror_flag" ||
12358 test ! -s conftest.err
12359 } && test -s conftest.$ac_objext; then
12360 HAVE_XIM=yes
12362 cat >>confdefs.h <<\_ACEOF
12363 #define HAVE_XIM 1
12364 _ACEOF
12366 else
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 HAVE_XIM=no
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 if test "${with_xim}" != "no"; then
12378 cat >>confdefs.h <<\_ACEOF
12379 #define USE_XIM 1
12380 _ACEOF
12385 if test "${HAVE_XIM}" != "no"; then
12386 late_CFLAGS=$CFLAGS
12387 if test "$GCC" = yes; then
12388 CFLAGS="$CFLAGS --pedantic-errors"
12390 cat >conftest.$ac_ext <<_ACEOF
12391 /* confdefs.h. */
12392 _ACEOF
12393 cat confdefs.h >>conftest.$ac_ext
12394 cat >>conftest.$ac_ext <<_ACEOF
12395 /* end confdefs.h. */
12397 #include <X11/Xlib.h>
12398 #include <X11/Xresource.h>
12400 main ()
12402 Display *display;
12403 XrmDatabase db;
12404 char *res_name;
12405 char *res_class;
12406 XIMProc callback;
12407 XPointer *client_data;
12408 #ifndef __GNUC__
12409 /* If we're not using GCC, it's probably not XFree86, and this is
12410 probably right, but we can't use something like --pedantic-errors. */
12411 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12412 char*, XIMProc, XPointer*);
12413 #endif
12414 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12415 client_data);
12417 return 0;
12419 _ACEOF
12420 rm -f conftest.$ac_objext
12421 if { (ac_try="$ac_compile"
12422 case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12425 esac
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_compile") 2>conftest.er1
12428 ac_status=$?
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } && {
12434 test -z "$ac_c_werror_flag" ||
12435 test ! -s conftest.err
12436 } && test -s conftest.$ac_objext; then
12437 emacs_cv_arg6_star=yes
12438 else
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12447 if test "$emacs_cv_arg6_star" = yes; then
12448 cat >>confdefs.h <<\_ACEOF
12449 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12450 _ACEOF
12452 else
12453 cat >>confdefs.h <<\_ACEOF
12454 #define XRegisterIMInstantiateCallback_arg6 XPointer
12455 _ACEOF
12458 CFLAGS=$late_CFLAGS
12461 #### For font-backend
12462 if test "${USE_FONT_BACKEND}" = "yes"; then
12465 cat >>confdefs.h <<\_ACEOF
12466 #define USE_FONT_BACKEND 1
12467 _ACEOF
12470 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12471 HAVE_XFT=maybe
12472 if test "${HAVE_X11}" = "yes"; then
12473 if test "x${with_freetype}" = "xno"; then
12474 with_xft="no";
12476 if test "x${with_xft}" != "xno"; then
12478 if test "X${with_pkg_config_prog}" != X; then
12479 PKG_CONFIG="${with_pkg_config_prog}"
12483 succeeded=no
12485 # Extract the first word of "pkg-config", so it can be a program name with args.
12486 set dummy pkg-config; ac_word=$2
12487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12489 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12490 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 else
12492 case $PKG_CONFIG in
12493 [\\/]* | ?:[\\/]*)
12494 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498 for as_dir in $PATH
12500 IFS=$as_save_IFS
12501 test -z "$as_dir" && as_dir=.
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12504 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12506 break 2
12508 done
12509 done
12510 IFS=$as_save_IFS
12512 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12514 esac
12516 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12517 if test -n "$PKG_CONFIG"; then
12518 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12519 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12520 else
12521 { echo "$as_me:$LINENO: result: no" >&5
12522 echo "${ECHO_T}no" >&6; }
12527 if test "$PKG_CONFIG" = "no" ; then
12528 HAVE_XFT=no
12529 else
12530 PKG_CONFIG_MIN_VERSION=0.9.0
12531 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12532 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12533 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12535 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12536 { echo "$as_me:$LINENO: result: yes" >&5
12537 echo "${ECHO_T}yes" >&6; }
12538 succeeded=yes
12540 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12541 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12542 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12543 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12544 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12546 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12547 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12548 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12549 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12550 echo "${ECHO_T}$XFT_LIBS" >&6; }
12551 else
12552 { echo "$as_me:$LINENO: result: no" >&5
12553 echo "${ECHO_T}no" >&6; }
12554 XFT_CFLAGS=""
12555 XFT_LIBS=""
12556 ## If we have a custom action on failure, don't print errors, but
12557 ## do set a variable so people can do so.
12558 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12564 else
12565 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12566 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12570 if test $succeeded = yes; then
12572 else
12573 HAVE_XFT=no
12576 if test "$HAVE_XFT" != no; then
12577 OLD_CPPFLAGS="$CPPFLAGS"
12578 OLD_CFLAGS="$CFLAGS"
12579 OLD_LIBS="$LIBS"
12580 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12581 CFLAGS="$CFLAGS $XFT_CFLAGS"
12582 LIBS="$XFT_LIBS $LIBS"
12583 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12584 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12585 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12586 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12590 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12591 else
12592 # Is the header compilable?
12593 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12594 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12595 cat >conftest.$ac_ext <<_ACEOF
12596 /* confdefs.h. */
12597 _ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 $ac_includes_default
12602 #include <X11/Xft/Xft.h>
12603 _ACEOF
12604 rm -f conftest.$ac_objext
12605 if { (ac_try="$ac_compile"
12606 case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12609 esac
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_compile") 2>conftest.er1
12612 ac_status=$?
12613 grep -v '^ *+' conftest.er1 >conftest.err
12614 rm -f conftest.er1
12615 cat conftest.err >&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } && {
12618 test -z "$ac_c_werror_flag" ||
12619 test ! -s conftest.err
12620 } && test -s conftest.$ac_objext; then
12621 ac_header_compiler=yes
12622 else
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.$ac_ext >&5
12626 ac_header_compiler=no
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12631 echo "${ECHO_T}$ac_header_compiler" >&6; }
12633 # Is the header present?
12634 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12635 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12636 cat >conftest.$ac_ext <<_ACEOF
12637 /* confdefs.h. */
12638 _ACEOF
12639 cat confdefs.h >>conftest.$ac_ext
12640 cat >>conftest.$ac_ext <<_ACEOF
12641 /* end confdefs.h. */
12642 #include <X11/Xft/Xft.h>
12643 _ACEOF
12644 if { (ac_try="$ac_cpp conftest.$ac_ext"
12645 case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12648 esac
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12651 ac_status=$?
12652 grep -v '^ *+' conftest.er1 >conftest.err
12653 rm -f conftest.er1
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } >/dev/null && {
12657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 }; then
12660 ac_header_preproc=yes
12661 else
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ac_header_preproc=no
12668 rm -f conftest.err conftest.$ac_ext
12669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12670 echo "${ECHO_T}$ac_header_preproc" >&6; }
12672 # So? What about this header?
12673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12674 yes:no: )
12675 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12676 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12678 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12679 ac_header_preproc=yes
12681 no:yes:* )
12682 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12683 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12685 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12686 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12687 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12688 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12689 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12690 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12691 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12692 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12693 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12696 esac
12697 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12698 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12699 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12700 echo $ECHO_N "(cached) $ECHO_C" >&6
12701 else
12702 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12704 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12705 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12708 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12709 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12710 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12711 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12712 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714 ac_check_lib_save_LIBS=$LIBS
12715 LIBS="-lXft $XFT_LIBS $LIBS"
12716 cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h. */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h. */
12723 /* Override any GCC internal prototype to avoid an error.
12724 Use char because int might match the return type of a GCC
12725 builtin and then its argument prototype would still apply. */
12726 #ifdef __cplusplus
12727 extern "C"
12728 #endif
12729 char XftFontOpen ();
12731 main ()
12733 return XftFontOpen ();
12735 return 0;
12737 _ACEOF
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (ac_try="$ac_link"
12740 case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_link") 2>conftest.er1
12746 ac_status=$?
12747 grep -v '^ *+' conftest.er1 >conftest.err
12748 rm -f conftest.er1
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && {
12752 test -z "$ac_c_werror_flag" ||
12753 test ! -s conftest.err
12754 } && test -s conftest$ac_exeext &&
12755 $as_test_x conftest$ac_exeext; then
12756 ac_cv_lib_Xft_XftFontOpen=yes
12757 else
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 ac_cv_lib_Xft_XftFontOpen=no
12764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12765 conftest$ac_exeext conftest.$ac_ext
12766 LIBS=$ac_check_lib_save_LIBS
12768 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12769 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12770 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12771 HAVE_XFT=yes
12778 if test "${HAVE_XFT}" = "yes"; then
12780 cat >>confdefs.h <<\_ACEOF
12781 #define HAVE_XFT 1
12782 _ACEOF
12785 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12786 else
12787 CPPFLAGS="$OLD_CPPFLAGS"
12788 CFLAGS="$OLD_CFLAGS"
12789 LIBS="$OLD_LIBS"
12795 HAVE_FREETYPE=no
12796 ### Use -lfreetype if available, unless `--with-freetype=no'.
12797 if test "${HAVE_XFT}" = "yes"; then
12798 HAVE_FREETYPE=yes
12799 elif test "x${with_freetype}" != "xno"; then
12800 if test "X${with_pkg_config_prog}" != X; then
12801 PKG_CONFIG="${with_pkg_config_prog}"
12805 succeeded=no
12807 # Extract the first word of "pkg-config", so it can be a program name with args.
12808 set dummy pkg-config; ac_word=$2
12809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12811 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12812 echo $ECHO_N "(cached) $ECHO_C" >&6
12813 else
12814 case $PKG_CONFIG in
12815 [\\/]* | ?:[\\/]*)
12816 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12820 for as_dir in $PATH
12822 IFS=$as_save_IFS
12823 test -z "$as_dir" && as_dir=.
12824 for ac_exec_ext in '' $ac_executable_extensions; do
12825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12826 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12828 break 2
12830 done
12831 done
12832 IFS=$as_save_IFS
12834 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12836 esac
12838 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12839 if test -n "$PKG_CONFIG"; then
12840 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12841 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12842 else
12843 { echo "$as_me:$LINENO: result: no" >&5
12844 echo "${ECHO_T}no" >&6; }
12849 if test "$PKG_CONFIG" = "no" ; then
12850 HAVE_FREETYPE=no
12851 else
12852 PKG_CONFIG_MIN_VERSION=0.9.0
12853 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12854 { echo "$as_me:$LINENO: checking for freetype2" >&5
12855 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12857 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12858 { echo "$as_me:$LINENO: result: yes" >&5
12859 echo "${ECHO_T}yes" >&6; }
12860 succeeded=yes
12862 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12863 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12864 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12865 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12866 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12868 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12869 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12870 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12871 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12872 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12873 else
12874 { echo "$as_me:$LINENO: result: no" >&5
12875 echo "${ECHO_T}no" >&6; }
12876 FREETYPE_CFLAGS=""
12877 FREETYPE_LIBS=""
12878 ## If we have a custom action on failure, don't print errors, but
12879 ## do set a variable so people can do so.
12880 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12886 else
12887 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12888 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12892 if test $succeeded = yes; then
12893 HAVE_FREETYPE=yes
12894 else
12895 HAVE_FREETYPE=no
12898 if test "${HAVE_FREETYPE}" = "yes"; then
12900 succeeded=no
12902 # Extract the first word of "pkg-config", so it can be a program name with args.
12903 set dummy pkg-config; ac_word=$2
12904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12906 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12908 else
12909 case $PKG_CONFIG in
12910 [\\/]* | ?:[\\/]*)
12911 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12915 for as_dir in $PATH
12917 IFS=$as_save_IFS
12918 test -z "$as_dir" && as_dir=.
12919 for ac_exec_ext in '' $ac_executable_extensions; do
12920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12921 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12923 break 2
12925 done
12926 done
12927 IFS=$as_save_IFS
12929 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12931 esac
12933 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12934 if test -n "$PKG_CONFIG"; then
12935 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12936 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12937 else
12938 { echo "$as_me:$LINENO: result: no" >&5
12939 echo "${ECHO_T}no" >&6; }
12944 if test "$PKG_CONFIG" = "no" ; then
12945 HAVE_FC=no
12946 else
12947 PKG_CONFIG_MIN_VERSION=0.9.0
12948 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12949 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12950 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12952 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12953 { echo "$as_me:$LINENO: result: yes" >&5
12954 echo "${ECHO_T}yes" >&6; }
12955 succeeded=yes
12957 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12958 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12959 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12960 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12961 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12963 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12964 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12965 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12966 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12967 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12968 else
12969 { echo "$as_me:$LINENO: result: no" >&5
12970 echo "${ECHO_T}no" >&6; }
12971 FONTCONFIG_CFLAGS=""
12972 FONTCONFIG_LIBS=""
12973 ## If we have a custom action on failure, don't print errors, but
12974 ## do set a variable so people can do so.
12975 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12981 else
12982 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12983 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12987 if test $succeeded = yes; then
12988 HAVE_FC=yes
12989 else
12990 HAVE_FC=no
12993 if test "${HAVE_FC}" = "no"; then
12994 HAVE_FREETYPE=no
12999 HAVE_LIBOTF=no
13000 if test "${HAVE_FREETYPE}" = "yes"; then
13002 cat >>confdefs.h <<\_ACEOF
13003 #define HAVE_FREETYPE 1
13004 _ACEOF
13006 if test "${with_libotf}" != "no"; then
13007 if test "X${with_pkg_config_prog}" != X; then
13008 PKG_CONFIG="${with_pkg_config_prog}"
13011 succeeded=no
13013 # Extract the first word of "pkg-config", so it can be a program name with args.
13014 set dummy pkg-config; ac_word=$2
13015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13017 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13018 echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020 case $PKG_CONFIG in
13021 [\\/]* | ?:[\\/]*)
13022 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13028 IFS=$as_save_IFS
13029 test -z "$as_dir" && as_dir=.
13030 for ac_exec_ext in '' $ac_executable_extensions; do
13031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13032 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13034 break 2
13036 done
13037 done
13038 IFS=$as_save_IFS
13040 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13042 esac
13044 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13045 if test -n "$PKG_CONFIG"; then
13046 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13047 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13048 else
13049 { echo "$as_me:$LINENO: result: no" >&5
13050 echo "${ECHO_T}no" >&6; }
13055 if test "$PKG_CONFIG" = "no" ; then
13056 pkg_check_libotf=no
13057 else
13058 PKG_CONFIG_MIN_VERSION=0.9.0
13059 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13060 { echo "$as_me:$LINENO: checking for libotf" >&5
13061 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13063 if $PKG_CONFIG --exists "libotf" 2>&5; then
13064 { echo "$as_me:$LINENO: result: yes" >&5
13065 echo "${ECHO_T}yes" >&6; }
13066 succeeded=yes
13068 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13069 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13070 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13071 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13072 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13074 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13075 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13076 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13077 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13078 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13079 else
13080 { echo "$as_me:$LINENO: result: no" >&5
13081 echo "${ECHO_T}no" >&6; }
13082 LIBOTF_CFLAGS=""
13083 LIBOTF_LIBS=""
13084 ## If we have a custom action on failure, don't print errors, but
13085 ## do set a variable so people can do so.
13086 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13092 else
13093 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13094 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13098 if test $succeeded = yes; then
13099 pkg_check_libotf=yes
13100 else
13101 pkg_check_libotf=no
13104 if test "$pkg_check_libotf" = "yes"; then
13106 cat >>confdefs.h <<\_ACEOF
13107 #define HAVE_LIBOTF 1
13108 _ACEOF
13114 HAVE_M17N_FLT=no
13115 if test "${with_m17n_flt}" != "no"; then
13116 if test "X${with_pkg_config_prog}" != X; then
13117 PKG_CONFIG="${with_pkg_config_prog}"
13120 succeeded=no
13122 # Extract the first word of "pkg-config", so it can be a program name with args.
13123 set dummy pkg-config; ac_word=$2
13124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13126 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13127 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 else
13129 case $PKG_CONFIG in
13130 [\\/]* | ?:[\\/]*)
13131 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13141 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13143 break 2
13145 done
13146 done
13147 IFS=$as_save_IFS
13149 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13151 esac
13153 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13154 if test -n "$PKG_CONFIG"; then
13155 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13156 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13157 else
13158 { echo "$as_me:$LINENO: result: no" >&5
13159 echo "${ECHO_T}no" >&6; }
13164 if test "$PKG_CONFIG" = "no" ; then
13165 pkg_check_m17n_flt=no
13166 else
13167 PKG_CONFIG_MIN_VERSION=0.9.0
13168 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13169 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13170 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13172 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13173 { echo "$as_me:$LINENO: result: yes" >&5
13174 echo "${ECHO_T}yes" >&6; }
13175 succeeded=yes
13177 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13178 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13179 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13180 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13181 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13183 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13184 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13185 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13186 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13187 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13188 else
13189 { echo "$as_me:$LINENO: result: no" >&5
13190 echo "${ECHO_T}no" >&6; }
13191 M17N_FLT_CFLAGS=""
13192 M17N_FLT_LIBS=""
13193 ## If we have a custom action on failure, don't print errors, but
13194 ## do set a variable so people can do so.
13195 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13201 else
13202 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13203 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13207 if test $succeeded = yes; then
13208 pkg_check_m17n_flt=yes
13209 else
13210 pkg_check_m17n_flt=no
13213 if test "$pkg_check_m17n_flt" = "yes"; then
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_M17N_FLT 1
13217 _ACEOF
13232 #### End for font-backend
13234 ### Use -lXpm if available, unless `--with-xpm=no'.
13235 HAVE_XPM=no
13236 if test "${HAVE_X11}" = "yes"; then
13237 if test "${with_xpm}" != "no"; then
13238 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13239 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13240 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13241 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13245 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13246 else
13247 # Is the header compilable?
13248 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13249 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13250 cat >conftest.$ac_ext <<_ACEOF
13251 /* confdefs.h. */
13252 _ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13256 $ac_includes_default
13257 #include <X11/xpm.h>
13258 _ACEOF
13259 rm -f conftest.$ac_objext
13260 if { (ac_try="$ac_compile"
13261 case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264 esac
13265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_compile") 2>conftest.er1
13267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && {
13273 test -z "$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest.$ac_objext; then
13276 ac_header_compiler=yes
13277 else
13278 echo "$as_me: failed program was:" >&5
13279 sed 's/^/| /' conftest.$ac_ext >&5
13281 ac_header_compiler=no
13284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13286 echo "${ECHO_T}$ac_header_compiler" >&6; }
13288 # Is the header present?
13289 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13290 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13291 cat >conftest.$ac_ext <<_ACEOF
13292 /* confdefs.h. */
13293 _ACEOF
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 #include <X11/xpm.h>
13298 _ACEOF
13299 if { (ac_try="$ac_cpp conftest.$ac_ext"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303 esac
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } >/dev/null && {
13312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 }; then
13315 ac_header_preproc=yes
13316 else
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_header_preproc=no
13323 rm -f conftest.err conftest.$ac_ext
13324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13325 echo "${ECHO_T}$ac_header_preproc" >&6; }
13327 # So? What about this header?
13328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13329 yes:no: )
13330 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13331 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13333 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13334 ac_header_preproc=yes
13336 no:yes:* )
13337 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13338 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13340 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13342 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13344 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13345 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13346 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13347 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13348 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13351 esac
13352 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13353 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13354 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13355 echo $ECHO_N "(cached) $ECHO_C" >&6
13356 else
13357 ac_cv_header_X11_xpm_h=$ac_header_preproc
13359 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13360 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13363 if test $ac_cv_header_X11_xpm_h = yes; then
13364 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13365 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13366 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13367 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 else
13369 ac_check_lib_save_LIBS=$LIBS
13370 LIBS="-lXpm -lX11 $LIBS"
13371 cat >conftest.$ac_ext <<_ACEOF
13372 /* confdefs.h. */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13378 /* Override any GCC internal prototype to avoid an error.
13379 Use char because int might match the return type of a GCC
13380 builtin and then its argument prototype would still apply. */
13381 #ifdef __cplusplus
13382 extern "C"
13383 #endif
13384 char XpmReadFileToPixmap ();
13386 main ()
13388 return XpmReadFileToPixmap ();
13390 return 0;
13392 _ACEOF
13393 rm -f conftest.$ac_objext conftest$ac_exeext
13394 if { (ac_try="$ac_link"
13395 case "(($ac_try" in
13396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397 *) ac_try_echo=$ac_try;;
13398 esac
13399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13400 (eval "$ac_link") 2>conftest.er1
13401 ac_status=$?
13402 grep -v '^ *+' conftest.er1 >conftest.err
13403 rm -f conftest.er1
13404 cat conftest.err >&5
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); } && {
13407 test -z "$ac_c_werror_flag" ||
13408 test ! -s conftest.err
13409 } && test -s conftest$ac_exeext &&
13410 $as_test_x conftest$ac_exeext; then
13411 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13412 else
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13416 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13420 conftest$ac_exeext conftest.$ac_ext
13421 LIBS=$ac_check_lib_save_LIBS
13423 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13424 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13425 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13426 HAVE_XPM=yes
13432 if test "${HAVE_XPM}" = "yes"; then
13433 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13434 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13435 cat >conftest.$ac_ext <<_ACEOF
13436 /* confdefs.h. */
13437 _ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13441 #include "X11/xpm.h"
13442 #ifndef XpmReturnAllocPixels
13443 no_return_alloc_pixels
13444 #endif
13446 _ACEOF
13447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13448 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13449 HAVE_XPM=no
13450 else
13451 HAVE_XPM=yes
13453 rm -f conftest*
13456 if test "${HAVE_XPM}" = "yes"; then
13457 { echo "$as_me:$LINENO: result: yes" >&5
13458 echo "${ECHO_T}yes" >&6; }
13459 else
13460 { echo "$as_me:$LINENO: result: no" >&5
13461 echo "${ECHO_T}no" >&6; }
13466 if test "${HAVE_XPM}" = "yes"; then
13468 cat >>confdefs.h <<\_ACEOF
13469 #define HAVE_XPM 1
13470 _ACEOF
13475 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13476 HAVE_JPEG=no
13477 if test "${HAVE_X11}" = "yes"; then
13478 if test "${with_jpeg}" != "no"; then
13479 if test "${ac_cv_header_jerror_h+set}" = set; then
13480 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13481 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13482 if test "${ac_cv_header_jerror_h+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13486 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13487 else
13488 # Is the header compilable?
13489 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13490 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13491 cat >conftest.$ac_ext <<_ACEOF
13492 /* confdefs.h. */
13493 _ACEOF
13494 cat confdefs.h >>conftest.$ac_ext
13495 cat >>conftest.$ac_ext <<_ACEOF
13496 /* end confdefs.h. */
13497 $ac_includes_default
13498 #include <jerror.h>
13499 _ACEOF
13500 rm -f conftest.$ac_objext
13501 if { (ac_try="$ac_compile"
13502 case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13505 esac
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_compile") 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } && {
13514 test -z "$ac_c_werror_flag" ||
13515 test ! -s conftest.err
13516 } && test -s conftest.$ac_objext; then
13517 ac_header_compiler=yes
13518 else
13519 echo "$as_me: failed program was:" >&5
13520 sed 's/^/| /' conftest.$ac_ext >&5
13522 ac_header_compiler=no
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13527 echo "${ECHO_T}$ac_header_compiler" >&6; }
13529 # Is the header present?
13530 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13531 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13532 cat >conftest.$ac_ext <<_ACEOF
13533 /* confdefs.h. */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13538 #include <jerror.h>
13539 _ACEOF
13540 if { (ac_try="$ac_cpp conftest.$ac_ext"
13541 case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544 esac
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } >/dev/null && {
13553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13554 test ! -s conftest.err
13555 }; then
13556 ac_header_preproc=yes
13557 else
13558 echo "$as_me: failed program was:" >&5
13559 sed 's/^/| /' conftest.$ac_ext >&5
13561 ac_header_preproc=no
13564 rm -f conftest.err conftest.$ac_ext
13565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13566 echo "${ECHO_T}$ac_header_preproc" >&6; }
13568 # So? What about this header?
13569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13570 yes:no: )
13571 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13572 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13573 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13574 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13575 ac_header_preproc=yes
13577 no:yes:* )
13578 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13579 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13580 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13581 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13582 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13583 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13584 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13585 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13586 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13587 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13588 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13589 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13592 esac
13593 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13594 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13595 if test "${ac_cv_header_jerror_h+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13597 else
13598 ac_cv_header_jerror_h=$ac_header_preproc
13600 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13601 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13604 if test $ac_cv_header_jerror_h = yes; then
13605 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13606 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13607 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13608 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 else
13610 ac_check_lib_save_LIBS=$LIBS
13611 LIBS="-ljpeg $LIBS"
13612 cat >conftest.$ac_ext <<_ACEOF
13613 /* confdefs.h. */
13614 _ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13619 /* Override any GCC internal prototype to avoid an error.
13620 Use char because int might match the return type of a GCC
13621 builtin and then its argument prototype would still apply. */
13622 #ifdef __cplusplus
13623 extern "C"
13624 #endif
13625 char jpeg_destroy_compress ();
13627 main ()
13629 return jpeg_destroy_compress ();
13631 return 0;
13633 _ACEOF
13634 rm -f conftest.$ac_objext conftest$ac_exeext
13635 if { (ac_try="$ac_link"
13636 case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13639 esac
13640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13641 (eval "$ac_link") 2>conftest.er1
13642 ac_status=$?
13643 grep -v '^ *+' conftest.er1 >conftest.err
13644 rm -f conftest.er1
13645 cat conftest.err >&5
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); } && {
13648 test -z "$ac_c_werror_flag" ||
13649 test ! -s conftest.err
13650 } && test -s conftest$ac_exeext &&
13651 $as_test_x conftest$ac_exeext; then
13652 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13653 else
13654 echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13657 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13661 conftest$ac_exeext conftest.$ac_ext
13662 LIBS=$ac_check_lib_save_LIBS
13664 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13665 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13666 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13667 HAVE_JPEG=yes
13676 if test "${HAVE_JPEG}" = "yes"; then
13677 cat >>confdefs.h <<\_ACEOF
13678 #define HAVE_JPEG 1
13679 _ACEOF
13681 cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h. */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687 #include <jpeglib.h>
13688 version=JPEG_LIB_VERSION
13690 _ACEOF
13691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13692 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13693 cat >>confdefs.h <<\_ACEOF
13694 #define HAVE_JPEG 1
13695 _ACEOF
13697 else
13698 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13699 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13700 HAVE_JPEG=no
13702 rm -f conftest*
13707 ### Use -lpng if available, unless `--with-png=no'.
13708 HAVE_PNG=no
13709 if test "${HAVE_X11}" = "yes"; then
13710 if test "${with_png}" != "no"; then
13711 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13712 # in /usr/include/libpng.
13715 for ac_header in png.h libpng/png.h
13717 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 ac_res=`eval echo '${'$as_ac_Header'}'`
13725 { echo "$as_me:$LINENO: result: $ac_res" >&5
13726 echo "${ECHO_T}$ac_res" >&6; }
13727 else
13728 # Is the header compilable?
13729 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13730 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13731 cat >conftest.$ac_ext <<_ACEOF
13732 /* confdefs.h. */
13733 _ACEOF
13734 cat confdefs.h >>conftest.$ac_ext
13735 cat >>conftest.$ac_ext <<_ACEOF
13736 /* end confdefs.h. */
13737 $ac_includes_default
13738 #include <$ac_header>
13739 _ACEOF
13740 rm -f conftest.$ac_objext
13741 if { (ac_try="$ac_compile"
13742 case "(($ac_try" in
13743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13744 *) ac_try_echo=$ac_try;;
13745 esac
13746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13747 (eval "$ac_compile") 2>conftest.er1
13748 ac_status=$?
13749 grep -v '^ *+' conftest.er1 >conftest.err
13750 rm -f conftest.er1
13751 cat conftest.err >&5
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } && {
13754 test -z "$ac_c_werror_flag" ||
13755 test ! -s conftest.err
13756 } && test -s conftest.$ac_objext; then
13757 ac_header_compiler=yes
13758 else
13759 echo "$as_me: failed program was:" >&5
13760 sed 's/^/| /' conftest.$ac_ext >&5
13762 ac_header_compiler=no
13765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13766 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13767 echo "${ECHO_T}$ac_header_compiler" >&6; }
13769 # Is the header present?
13770 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13771 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13772 cat >conftest.$ac_ext <<_ACEOF
13773 /* confdefs.h. */
13774 _ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 #include <$ac_header>
13779 _ACEOF
13780 if { (ac_try="$ac_cpp conftest.$ac_ext"
13781 case "(($ac_try" in
13782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783 *) ac_try_echo=$ac_try;;
13784 esac
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13787 ac_status=$?
13788 grep -v '^ *+' conftest.er1 >conftest.err
13789 rm -f conftest.er1
13790 cat conftest.err >&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } >/dev/null && {
13793 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13794 test ! -s conftest.err
13795 }; then
13796 ac_header_preproc=yes
13797 else
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13801 ac_header_preproc=no
13804 rm -f conftest.err conftest.$ac_ext
13805 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13806 echo "${ECHO_T}$ac_header_preproc" >&6; }
13808 # So? What about this header?
13809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13810 yes:no: )
13811 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13815 ac_header_preproc=yes
13817 no:yes:* )
13818 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13820 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13821 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13822 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13824 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13825 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13828 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13832 esac
13833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13837 else
13838 eval "$as_ac_Header=\$ac_header_preproc"
13840 ac_res=`eval echo '${'$as_ac_Header'}'`
13841 { echo "$as_me:$LINENO: result: $ac_res" >&5
13842 echo "${ECHO_T}$ac_res" >&6; }
13845 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13846 cat >>confdefs.h <<_ACEOF
13847 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13848 _ACEOF
13852 done
13854 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13855 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13856 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13857 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860 ac_check_lib_save_LIBS=$LIBS
13861 LIBS="-lpng -lz -lm $LIBS"
13862 cat >conftest.$ac_ext <<_ACEOF
13863 /* confdefs.h. */
13864 _ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13869 /* Override any GCC internal prototype to avoid an error.
13870 Use char because int might match the return type of a GCC
13871 builtin and then its argument prototype would still apply. */
13872 #ifdef __cplusplus
13873 extern "C"
13874 #endif
13875 char png_get_channels ();
13877 main ()
13879 return png_get_channels ();
13881 return 0;
13883 _ACEOF
13884 rm -f conftest.$ac_objext conftest$ac_exeext
13885 if { (ac_try="$ac_link"
13886 case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889 esac
13890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13891 (eval "$ac_link") 2>conftest.er1
13892 ac_status=$?
13893 grep -v '^ *+' conftest.er1 >conftest.err
13894 rm -f conftest.er1
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } && {
13898 test -z "$ac_c_werror_flag" ||
13899 test ! -s conftest.err
13900 } && test -s conftest$ac_exeext &&
13901 $as_test_x conftest$ac_exeext; then
13902 ac_cv_lib_png_png_get_channels=yes
13903 else
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ac_cv_lib_png_png_get_channels=no
13910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13911 conftest$ac_exeext conftest.$ac_ext
13912 LIBS=$ac_check_lib_save_LIBS
13914 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13915 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13916 if test $ac_cv_lib_png_png_get_channels = yes; then
13917 HAVE_PNG=yes
13923 if test "${HAVE_PNG}" = "yes"; then
13925 cat >>confdefs.h <<\_ACEOF
13926 #define HAVE_PNG 1
13927 _ACEOF
13932 ### Use -ltiff if available, unless `--with-tiff=no'.
13933 HAVE_TIFF=no
13934 if test "${HAVE_X11}" = "yes"; then
13935 if test "${with_tiff}" != "no"; then
13936 if test "${ac_cv_header_tiffio_h+set}" = set; then
13937 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13938 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13939 if test "${ac_cv_header_tiffio_h+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13943 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13944 else
13945 # Is the header compilable?
13946 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13947 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13948 cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h. */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13954 $ac_includes_default
13955 #include <tiffio.h>
13956 _ACEOF
13957 rm -f conftest.$ac_objext
13958 if { (ac_try="$ac_compile"
13959 case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13962 esac
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_compile") 2>conftest.er1
13965 ac_status=$?
13966 grep -v '^ *+' conftest.er1 >conftest.err
13967 rm -f conftest.er1
13968 cat conftest.err >&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); } && {
13971 test -z "$ac_c_werror_flag" ||
13972 test ! -s conftest.err
13973 } && test -s conftest.$ac_objext; then
13974 ac_header_compiler=yes
13975 else
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_header_compiler=no
13982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13983 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13984 echo "${ECHO_T}$ac_header_compiler" >&6; }
13986 # Is the header present?
13987 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13988 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13989 cat >conftest.$ac_ext <<_ACEOF
13990 /* confdefs.h. */
13991 _ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13995 #include <tiffio.h>
13996 _ACEOF
13997 if { (ac_try="$ac_cpp conftest.$ac_ext"
13998 case "(($ac_try" in
13999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14000 *) ac_try_echo=$ac_try;;
14001 esac
14002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14004 ac_status=$?
14005 grep -v '^ *+' conftest.er1 >conftest.err
14006 rm -f conftest.er1
14007 cat conftest.err >&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); } >/dev/null && {
14010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14011 test ! -s conftest.err
14012 }; then
14013 ac_header_preproc=yes
14014 else
14015 echo "$as_me: failed program was:" >&5
14016 sed 's/^/| /' conftest.$ac_ext >&5
14018 ac_header_preproc=no
14021 rm -f conftest.err conftest.$ac_ext
14022 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14023 echo "${ECHO_T}$ac_header_preproc" >&6; }
14025 # So? What about this header?
14026 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14027 yes:no: )
14028 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14029 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14031 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14032 ac_header_preproc=yes
14034 no:yes:* )
14035 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14036 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14038 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14040 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14042 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14044 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14046 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14049 esac
14050 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14051 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14052 if test "${ac_cv_header_tiffio_h+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 else
14055 ac_cv_header_tiffio_h=$ac_header_preproc
14057 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14058 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14061 if test $ac_cv_header_tiffio_h = yes; then
14062 tifflibs="-lz -lm"
14063 # At least one tiff package requires the jpeg library.
14064 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14065 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14066 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14067 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070 ac_check_lib_save_LIBS=$LIBS
14071 LIBS="-ltiff $tifflibs $LIBS"
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h. */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply. */
14082 #ifdef __cplusplus
14083 extern "C"
14084 #endif
14085 char TIFFGetVersion ();
14087 main ()
14089 return TIFFGetVersion ();
14091 return 0;
14093 _ACEOF
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_link") 2>conftest.er1
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest$ac_exeext &&
14111 $as_test_x conftest$ac_exeext; then
14112 ac_cv_lib_tiff_TIFFGetVersion=yes
14113 else
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 ac_cv_lib_tiff_TIFFGetVersion=no
14120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14121 conftest$ac_exeext conftest.$ac_ext
14122 LIBS=$ac_check_lib_save_LIBS
14124 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14125 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14126 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14127 HAVE_TIFF=yes
14135 if test "${HAVE_TIFF}" = "yes"; then
14137 cat >>confdefs.h <<\_ACEOF
14138 #define HAVE_TIFF 1
14139 _ACEOF
14144 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14145 HAVE_GIF=no
14146 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14147 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14148 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14149 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14150 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14153 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14154 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14155 else
14156 # Is the header compilable?
14157 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14158 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14159 cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h. */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 $ac_includes_default
14166 #include <gif_lib.h>
14167 _ACEOF
14168 rm -f conftest.$ac_objext
14169 if { (ac_try="$ac_compile"
14170 case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14173 esac
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_compile") 2>conftest.er1
14176 ac_status=$?
14177 grep -v '^ *+' conftest.er1 >conftest.err
14178 rm -f conftest.er1
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } && {
14182 test -z "$ac_c_werror_flag" ||
14183 test ! -s conftest.err
14184 } && test -s conftest.$ac_objext; then
14185 ac_header_compiler=yes
14186 else
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14190 ac_header_compiler=no
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14195 echo "${ECHO_T}$ac_header_compiler" >&6; }
14197 # Is the header present?
14198 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14199 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14200 cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h. */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 #include <gif_lib.h>
14207 _ACEOF
14208 if { (ac_try="$ac_cpp conftest.$ac_ext"
14209 case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14212 esac
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } >/dev/null && {
14221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14222 test ! -s conftest.err
14223 }; then
14224 ac_header_preproc=yes
14225 else
14226 echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.$ac_ext >&5
14229 ac_header_preproc=no
14232 rm -f conftest.err conftest.$ac_ext
14233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14234 echo "${ECHO_T}$ac_header_preproc" >&6; }
14236 # So? What about this header?
14237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14238 yes:no: )
14239 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14240 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14241 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14242 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14243 ac_header_preproc=yes
14245 no:yes:* )
14246 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14247 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14249 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14251 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14253 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14255 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14257 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14260 esac
14261 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14262 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14263 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14266 ac_cv_header_gif_lib_h=$ac_header_preproc
14268 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14269 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14272 if test $ac_cv_header_gif_lib_h = yes; then
14273 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14274 # Earlier versions can crash Emacs.
14275 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14276 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14277 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 else
14280 ac_check_lib_save_LIBS=$LIBS
14281 LIBS="-lgif $LIBS"
14282 cat >conftest.$ac_ext <<_ACEOF
14283 /* confdefs.h. */
14284 _ACEOF
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14289 /* Override any GCC internal prototype to avoid an error.
14290 Use char because int might match the return type of a GCC
14291 builtin and then its argument prototype would still apply. */
14292 #ifdef __cplusplus
14293 extern "C"
14294 #endif
14295 char EGifPutExtensionLast ();
14297 main ()
14299 return EGifPutExtensionLast ();
14301 return 0;
14303 _ACEOF
14304 rm -f conftest.$ac_objext conftest$ac_exeext
14305 if { (ac_try="$ac_link"
14306 case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14309 esac
14310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14311 (eval "$ac_link") 2>conftest.er1
14312 ac_status=$?
14313 grep -v '^ *+' conftest.er1 >conftest.err
14314 rm -f conftest.er1
14315 cat conftest.err >&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); } && {
14318 test -z "$ac_c_werror_flag" ||
14319 test ! -s conftest.err
14320 } && test -s conftest$ac_exeext &&
14321 $as_test_x conftest$ac_exeext; then
14322 ac_cv_lib_gif_EGifPutExtensionLast=yes
14323 else
14324 echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14327 ac_cv_lib_gif_EGifPutExtensionLast=no
14330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14331 conftest$ac_exeext conftest.$ac_ext
14332 LIBS=$ac_check_lib_save_LIBS
14334 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14335 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14336 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14337 HAVE_GIF=yes
14338 else
14339 try_libungif=yes
14346 if test "$HAVE_GIF" = yes; then
14347 ac_gif_lib_name="-lgif"
14350 # If gif_lib.h but no libgif, try libungif.
14351 if test x"$try_libungif" = xyes; then
14352 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14353 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14354 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356 else
14357 ac_check_lib_save_LIBS=$LIBS
14358 LIBS="-lungif $LIBS"
14359 cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h. */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14366 /* Override any GCC internal prototype to avoid an error.
14367 Use char because int might match the return type of a GCC
14368 builtin and then its argument prototype would still apply. */
14369 #ifdef __cplusplus
14370 extern "C"
14371 #endif
14372 char EGifPutExtensionLast ();
14374 main ()
14376 return EGifPutExtensionLast ();
14378 return 0;
14380 _ACEOF
14381 rm -f conftest.$ac_objext conftest$ac_exeext
14382 if { (ac_try="$ac_link"
14383 case "(($ac_try" in
14384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385 *) ac_try_echo=$ac_try;;
14386 esac
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388 (eval "$ac_link") 2>conftest.er1
14389 ac_status=$?
14390 grep -v '^ *+' conftest.er1 >conftest.err
14391 rm -f conftest.er1
14392 cat conftest.err >&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } && {
14395 test -z "$ac_c_werror_flag" ||
14396 test ! -s conftest.err
14397 } && test -s conftest$ac_exeext &&
14398 $as_test_x conftest$ac_exeext; then
14399 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14400 else
14401 echo "$as_me: failed program was:" >&5
14402 sed 's/^/| /' conftest.$ac_ext >&5
14404 ac_cv_lib_ungif_EGifPutExtensionLast=no
14407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14408 conftest$ac_exeext conftest.$ac_ext
14409 LIBS=$ac_check_lib_save_LIBS
14411 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14412 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14413 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14414 HAVE_GIF=yes
14418 if test "$HAVE_GIF" = yes; then
14420 cat >>confdefs.h <<\_ACEOF
14421 #define LIBGIF -lungif
14422 _ACEOF
14424 ac_gif_lib_name="-lungif"
14428 if test "${HAVE_GIF}" = "yes"; then
14430 cat >>confdefs.h <<\_ACEOF
14431 #define HAVE_GIF 1
14432 _ACEOF
14437 if test "${HAVE_X11}" = "yes"; then
14438 MISSING=""
14439 WITH_NO=""
14440 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14441 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14442 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14443 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14444 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14445 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14446 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14447 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14448 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14449 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14451 if test "X${MISSING}" != X; then
14452 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14453 $MISSING
14454 Maybe some development libraries/packages are missing?
14455 If you don't want to link with them give
14456 $WITH_NO
14457 as options to configure" >&5
14458 echo "$as_me: error: The following required libraries were not found:
14459 $MISSING
14460 Maybe some development libraries/packages are missing?
14461 If you don't want to link with them give
14462 $WITH_NO
14463 as options to configure" >&2;}
14464 { (exit 1); exit 1; }; }
14468 ### Use -lgpm if available, unless `--with-gpm=no'.
14469 HAVE_GPM=no
14470 if test "${with_gpm}" != "no"; then
14471 if test "${ac_cv_header_gpm_h+set}" = set; then
14472 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14473 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14474 if test "${ac_cv_header_gpm_h+set}" = set; then
14475 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14478 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14479 else
14480 # Is the header compilable?
14481 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14482 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14483 cat >conftest.$ac_ext <<_ACEOF
14484 /* confdefs.h. */
14485 _ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14489 $ac_includes_default
14490 #include <gpm.h>
14491 _ACEOF
14492 rm -f conftest.$ac_objext
14493 if { (ac_try="$ac_compile"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497 esac
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_compile") 2>conftest.er1
14500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } && {
14506 test -z "$ac_c_werror_flag" ||
14507 test ! -s conftest.err
14508 } && test -s conftest.$ac_objext; then
14509 ac_header_compiler=yes
14510 else
14511 echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.$ac_ext >&5
14514 ac_header_compiler=no
14517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14519 echo "${ECHO_T}$ac_header_compiler" >&6; }
14521 # Is the header present?
14522 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14523 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14524 cat >conftest.$ac_ext <<_ACEOF
14525 /* confdefs.h. */
14526 _ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530 #include <gpm.h>
14531 _ACEOF
14532 if { (ac_try="$ac_cpp conftest.$ac_ext"
14533 case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536 esac
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14539 ac_status=$?
14540 grep -v '^ *+' conftest.er1 >conftest.err
14541 rm -f conftest.er1
14542 cat conftest.err >&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } >/dev/null && {
14545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14546 test ! -s conftest.err
14547 }; then
14548 ac_header_preproc=yes
14549 else
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14553 ac_header_preproc=no
14556 rm -f conftest.err conftest.$ac_ext
14557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14558 echo "${ECHO_T}$ac_header_preproc" >&6; }
14560 # So? What about this header?
14561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14562 yes:no: )
14563 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14564 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14566 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14567 ac_header_preproc=yes
14569 no:yes:* )
14570 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14571 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14572 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14573 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14574 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14575 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14577 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14578 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14579 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14581 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14584 esac
14585 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14586 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14587 if test "${ac_cv_header_gpm_h+set}" = set; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
14589 else
14590 ac_cv_header_gpm_h=$ac_header_preproc
14592 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14593 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14596 if test $ac_cv_header_gpm_h = yes; then
14597 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14598 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14599 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14601 else
14602 ac_check_lib_save_LIBS=$LIBS
14603 LIBS="-lgpm $LIBS"
14604 cat >conftest.$ac_ext <<_ACEOF
14605 /* confdefs.h. */
14606 _ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14611 /* Override any GCC internal prototype to avoid an error.
14612 Use char because int might match the return type of a GCC
14613 builtin and then its argument prototype would still apply. */
14614 #ifdef __cplusplus
14615 extern "C"
14616 #endif
14617 char Gpm_Open ();
14619 main ()
14621 return Gpm_Open ();
14623 return 0;
14625 _ACEOF
14626 rm -f conftest.$ac_objext conftest$ac_exeext
14627 if { (ac_try="$ac_link"
14628 case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14631 esac
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_link") 2>conftest.er1
14634 ac_status=$?
14635 grep -v '^ *+' conftest.er1 >conftest.err
14636 rm -f conftest.er1
14637 cat conftest.err >&5
14638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14639 (exit $ac_status); } && {
14640 test -z "$ac_c_werror_flag" ||
14641 test ! -s conftest.err
14642 } && test -s conftest$ac_exeext &&
14643 $as_test_x conftest$ac_exeext; then
14644 ac_cv_lib_gpm_Gpm_Open=yes
14645 else
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 ac_cv_lib_gpm_Gpm_Open=no
14652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14653 conftest$ac_exeext conftest.$ac_ext
14654 LIBS=$ac_check_lib_save_LIBS
14656 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14657 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14658 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14659 HAVE_GPM=yes
14667 if test "${HAVE_GPM}" = "yes"; then
14669 cat >>confdefs.h <<\_ACEOF
14670 #define HAVE_GPM 1
14671 _ACEOF
14675 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14676 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14677 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14678 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14679 echo $ECHO_N "(cached) $ECHO_C" >&6
14681 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14682 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14683 else
14684 # Is the header compilable?
14685 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14686 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14687 cat >conftest.$ac_ext <<_ACEOF
14688 /* confdefs.h. */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 $ac_includes_default
14694 #include <malloc/malloc.h>
14695 _ACEOF
14696 rm -f conftest.$ac_objext
14697 if { (ac_try="$ac_compile"
14698 case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_compile") 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } && {
14710 test -z "$ac_c_werror_flag" ||
14711 test ! -s conftest.err
14712 } && test -s conftest.$ac_objext; then
14713 ac_header_compiler=yes
14714 else
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14718 ac_header_compiler=no
14721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14722 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14723 echo "${ECHO_T}$ac_header_compiler" >&6; }
14725 # Is the header present?
14726 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14727 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14728 cat >conftest.$ac_ext <<_ACEOF
14729 /* confdefs.h. */
14730 _ACEOF
14731 cat confdefs.h >>conftest.$ac_ext
14732 cat >>conftest.$ac_ext <<_ACEOF
14733 /* end confdefs.h. */
14734 #include <malloc/malloc.h>
14735 _ACEOF
14736 if { (ac_try="$ac_cpp conftest.$ac_ext"
14737 case "(($ac_try" in
14738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14739 *) ac_try_echo=$ac_try;;
14740 esac
14741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14743 ac_status=$?
14744 grep -v '^ *+' conftest.er1 >conftest.err
14745 rm -f conftest.er1
14746 cat conftest.err >&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } >/dev/null && {
14749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14750 test ! -s conftest.err
14751 }; then
14752 ac_header_preproc=yes
14753 else
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14757 ac_header_preproc=no
14760 rm -f conftest.err conftest.$ac_ext
14761 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14762 echo "${ECHO_T}$ac_header_preproc" >&6; }
14764 # So? What about this header?
14765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14766 yes:no: )
14767 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14768 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14770 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14771 ac_header_preproc=yes
14773 no:yes:* )
14774 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14775 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14776 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14777 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14779 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14781 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14783 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14785 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14788 esac
14789 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14790 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14791 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14796 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14797 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14800 if test $ac_cv_header_malloc_malloc_h = yes; then
14802 cat >>confdefs.h <<\_ACEOF
14803 #define HAVE_MALLOC_MALLOC_H 1
14804 _ACEOF
14810 ### Use Mac OS X Carbon API to implement GUI.
14811 if test "${HAVE_CARBON}" = "yes"; then
14813 cat >>confdefs.h <<\_ACEOF
14814 #define HAVE_CARBON 1
14815 _ACEOF
14817 ## Specify the install directory
14818 carbon_appdir=
14819 if test "${carbon_appdir_x}" != ""; then
14820 case ${carbon_appdir_x} in
14821 y | ye | yes) carbon_appdir=/Applications ;;
14822 * ) carbon_appdir=${carbon_appdir_x} ;;
14823 esac
14825 # We also have mouse menus.
14826 HAVE_MENUS=yes
14829 ### Use session management (-lSM -lICE) if available
14830 HAVE_X_SM=no
14831 if test "${HAVE_X11}" = "yes"; then
14832 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14833 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14834 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14835 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14839 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14840 else
14841 # Is the header compilable?
14842 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14843 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14844 cat >conftest.$ac_ext <<_ACEOF
14845 /* confdefs.h. */
14846 _ACEOF
14847 cat confdefs.h >>conftest.$ac_ext
14848 cat >>conftest.$ac_ext <<_ACEOF
14849 /* end confdefs.h. */
14850 $ac_includes_default
14851 #include <X11/SM/SMlib.h>
14852 _ACEOF
14853 rm -f conftest.$ac_objext
14854 if { (ac_try="$ac_compile"
14855 case "(($ac_try" in
14856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14857 *) ac_try_echo=$ac_try;;
14858 esac
14859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14860 (eval "$ac_compile") 2>conftest.er1
14861 ac_status=$?
14862 grep -v '^ *+' conftest.er1 >conftest.err
14863 rm -f conftest.er1
14864 cat conftest.err >&5
14865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14866 (exit $ac_status); } && {
14867 test -z "$ac_c_werror_flag" ||
14868 test ! -s conftest.err
14869 } && test -s conftest.$ac_objext; then
14870 ac_header_compiler=yes
14871 else
14872 echo "$as_me: failed program was:" >&5
14873 sed 's/^/| /' conftest.$ac_ext >&5
14875 ac_header_compiler=no
14878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14880 echo "${ECHO_T}$ac_header_compiler" >&6; }
14882 # Is the header present?
14883 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14884 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14885 cat >conftest.$ac_ext <<_ACEOF
14886 /* confdefs.h. */
14887 _ACEOF
14888 cat confdefs.h >>conftest.$ac_ext
14889 cat >>conftest.$ac_ext <<_ACEOF
14890 /* end confdefs.h. */
14891 #include <X11/SM/SMlib.h>
14892 _ACEOF
14893 if { (ac_try="$ac_cpp conftest.$ac_ext"
14894 case "(($ac_try" in
14895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14896 *) ac_try_echo=$ac_try;;
14897 esac
14898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14900 ac_status=$?
14901 grep -v '^ *+' conftest.er1 >conftest.err
14902 rm -f conftest.er1
14903 cat conftest.err >&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); } >/dev/null && {
14906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14907 test ! -s conftest.err
14908 }; then
14909 ac_header_preproc=yes
14910 else
14911 echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14914 ac_header_preproc=no
14917 rm -f conftest.err conftest.$ac_ext
14918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14919 echo "${ECHO_T}$ac_header_preproc" >&6; }
14921 # So? What about this header?
14922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14923 yes:no: )
14924 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14925 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14927 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14928 ac_header_preproc=yes
14930 no:yes:* )
14931 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14932 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14933 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14934 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14935 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14936 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14937 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14938 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14939 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14940 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14941 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14942 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14945 esac
14946 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14947 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14948 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14949 echo $ECHO_N "(cached) $ECHO_C" >&6
14950 else
14951 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14953 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14954 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14957 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14958 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14959 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14960 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 else
14963 ac_check_lib_save_LIBS=$LIBS
14964 LIBS="-lSM -lICE $LIBS"
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14972 /* Override any GCC internal prototype to avoid an error.
14973 Use char because int might match the return type of a GCC
14974 builtin and then its argument prototype would still apply. */
14975 #ifdef __cplusplus
14976 extern "C"
14977 #endif
14978 char SmcOpenConnection ();
14980 main ()
14982 return SmcOpenConnection ();
14984 return 0;
14986 _ACEOF
14987 rm -f conftest.$ac_objext conftest$ac_exeext
14988 if { (ac_try="$ac_link"
14989 case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14992 esac
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_link") 2>conftest.er1
14995 ac_status=$?
14996 grep -v '^ *+' conftest.er1 >conftest.err
14997 rm -f conftest.er1
14998 cat conftest.err >&5
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } && {
15001 test -z "$ac_c_werror_flag" ||
15002 test ! -s conftest.err
15003 } && test -s conftest$ac_exeext &&
15004 $as_test_x conftest$ac_exeext; then
15005 ac_cv_lib_SM_SmcOpenConnection=yes
15006 else
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 ac_cv_lib_SM_SmcOpenConnection=no
15013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15014 conftest$ac_exeext conftest.$ac_ext
15015 LIBS=$ac_check_lib_save_LIBS
15017 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15018 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15019 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15020 HAVE_X_SM=yes
15027 if test "${HAVE_X_SM}" = "yes"; then
15029 cat >>confdefs.h <<\_ACEOF
15030 #define HAVE_X_SM 1
15031 _ACEOF
15033 case "$LIBS" in
15034 *-lSM*) ;;
15035 *) LIBS="-lSM -lICE $LIBS" ;;
15036 esac
15040 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15041 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15042 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15043 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 else
15046 cat >conftest.$ac_ext <<_ACEOF
15047 /* confdefs.h. */
15048 _ACEOF
15049 cat confdefs.h >>conftest.$ac_ext
15050 cat >>conftest.$ac_ext <<_ACEOF
15051 /* end confdefs.h. */
15052 #include <netdb.h>
15054 main ()
15056 return h_errno;
15058 return 0;
15060 _ACEOF
15061 rm -f conftest.$ac_objext conftest$ac_exeext
15062 if { (ac_try="$ac_link"
15063 case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066 esac
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_link") 2>conftest.er1
15069 ac_status=$?
15070 grep -v '^ *+' conftest.er1 >conftest.err
15071 rm -f conftest.er1
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest$ac_exeext &&
15078 $as_test_x conftest$ac_exeext; then
15079 emacs_cv_netdb_declares_h_errno=yes
15080 else
15081 echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15084 emacs_cv_netdb_declares_h_errno=no
15087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15088 conftest$ac_exeext conftest.$ac_ext
15090 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15091 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15092 if test $emacs_cv_netdb_declares_h_errno = yes; then
15094 cat >>confdefs.h <<\_ACEOF
15095 #define HAVE_H_ERRNO 1
15096 _ACEOF
15100 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15101 # for constant arguments. Useless!
15102 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15103 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15104 if test "${ac_cv_working_alloca_h+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h. */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 #include <alloca.h>
15115 main ()
15117 char *p = (char *) alloca (2 * sizeof (int));
15118 if (p) return 0;
15120 return 0;
15122 _ACEOF
15123 rm -f conftest.$ac_objext conftest$ac_exeext
15124 if { (ac_try="$ac_link"
15125 case "(($ac_try" in
15126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15128 esac
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130 (eval "$ac_link") 2>conftest.er1
15131 ac_status=$?
15132 grep -v '^ *+' conftest.er1 >conftest.err
15133 rm -f conftest.er1
15134 cat conftest.err >&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); } && {
15137 test -z "$ac_c_werror_flag" ||
15138 test ! -s conftest.err
15139 } && test -s conftest$ac_exeext &&
15140 $as_test_x conftest$ac_exeext; then
15141 ac_cv_working_alloca_h=yes
15142 else
15143 echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15146 ac_cv_working_alloca_h=no
15149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15150 conftest$ac_exeext conftest.$ac_ext
15152 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15153 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15154 if test $ac_cv_working_alloca_h = yes; then
15156 cat >>confdefs.h <<\_ACEOF
15157 #define HAVE_ALLOCA_H 1
15158 _ACEOF
15162 { echo "$as_me:$LINENO: checking for alloca" >&5
15163 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15164 if test "${ac_cv_func_alloca_works+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167 cat >conftest.$ac_ext <<_ACEOF
15168 /* confdefs.h. */
15169 _ACEOF
15170 cat confdefs.h >>conftest.$ac_ext
15171 cat >>conftest.$ac_ext <<_ACEOF
15172 /* end confdefs.h. */
15173 #ifdef __GNUC__
15174 # define alloca __builtin_alloca
15175 #else
15176 # ifdef _MSC_VER
15177 # include <malloc.h>
15178 # define alloca _alloca
15179 # else
15180 # ifdef HAVE_ALLOCA_H
15181 # include <alloca.h>
15182 # else
15183 # ifdef _AIX
15184 #pragma alloca
15185 # else
15186 # ifndef alloca /* predefined by HP cc +Olibcalls */
15187 char *alloca ();
15188 # endif
15189 # endif
15190 # endif
15191 # endif
15192 #endif
15195 main ()
15197 char *p = (char *) alloca (1);
15198 if (p) return 0;
15200 return 0;
15202 _ACEOF
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15208 esac
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15211 ac_status=$?
15212 grep -v '^ *+' conftest.er1 >conftest.err
15213 rm -f conftest.er1
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } && {
15217 test -z "$ac_c_werror_flag" ||
15218 test ! -s conftest.err
15219 } && test -s conftest$ac_exeext &&
15220 $as_test_x conftest$ac_exeext; then
15221 ac_cv_func_alloca_works=yes
15222 else
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15226 ac_cv_func_alloca_works=no
15229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15230 conftest$ac_exeext conftest.$ac_ext
15232 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15233 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15235 if test $ac_cv_func_alloca_works = yes; then
15237 cat >>confdefs.h <<\_ACEOF
15238 #define HAVE_ALLOCA 1
15239 _ACEOF
15241 else
15242 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15243 # that cause trouble. Some versions do not even contain alloca or
15244 # contain a buggy version. If you still want to use their alloca,
15245 # use ar to extract alloca.o from them instead of compiling alloca.c.
15247 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15249 cat >>confdefs.h <<\_ACEOF
15250 #define C_ALLOCA 1
15251 _ACEOF
15254 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15255 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15256 if test "${ac_cv_os_cray+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 else
15259 cat >conftest.$ac_ext <<_ACEOF
15260 /* confdefs.h. */
15261 _ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 #if defined CRAY && ! defined CRAY2
15266 webecray
15267 #else
15268 wenotbecray
15269 #endif
15271 _ACEOF
15272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15273 $EGREP "webecray" >/dev/null 2>&1; then
15274 ac_cv_os_cray=yes
15275 else
15276 ac_cv_os_cray=no
15278 rm -f conftest*
15281 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15282 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15283 if test $ac_cv_os_cray = yes; then
15284 for ac_func in _getb67 GETB67 getb67; do
15285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291 cat >conftest.$ac_ext <<_ACEOF
15292 /* confdefs.h. */
15293 _ACEOF
15294 cat confdefs.h >>conftest.$ac_ext
15295 cat >>conftest.$ac_ext <<_ACEOF
15296 /* end confdefs.h. */
15297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15299 #define $ac_func innocuous_$ac_func
15301 /* System header to define __stub macros and hopefully few prototypes,
15302 which can conflict with char $ac_func (); below.
15303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15304 <limits.h> exists even on freestanding compilers. */
15306 #ifdef __STDC__
15307 # include <limits.h>
15308 #else
15309 # include <assert.h>
15310 #endif
15312 #undef $ac_func
15314 /* Override any GCC internal prototype to avoid an error.
15315 Use char because int might match the return type of a GCC
15316 builtin and then its argument prototype would still apply. */
15317 #ifdef __cplusplus
15318 extern "C"
15319 #endif
15320 char $ac_func ();
15321 /* The GNU C library defines this for functions which it implements
15322 to always fail with ENOSYS. Some functions are actually named
15323 something starting with __ and the normal name is an alias. */
15324 #if defined __stub_$ac_func || defined __stub___$ac_func
15325 choke me
15326 #endif
15329 main ()
15331 return $ac_func ();
15333 return 0;
15335 _ACEOF
15336 rm -f conftest.$ac_objext conftest$ac_exeext
15337 if { (ac_try="$ac_link"
15338 case "(($ac_try" in
15339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15340 *) ac_try_echo=$ac_try;;
15341 esac
15342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15343 (eval "$ac_link") 2>conftest.er1
15344 ac_status=$?
15345 grep -v '^ *+' conftest.er1 >conftest.err
15346 rm -f conftest.er1
15347 cat conftest.err >&5
15348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15349 (exit $ac_status); } && {
15350 test -z "$ac_c_werror_flag" ||
15351 test ! -s conftest.err
15352 } && test -s conftest$ac_exeext &&
15353 $as_test_x conftest$ac_exeext; then
15354 eval "$as_ac_var=yes"
15355 else
15356 echo "$as_me: failed program was:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 eval "$as_ac_var=no"
15362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15363 conftest$ac_exeext conftest.$ac_ext
15365 ac_res=`eval echo '${'$as_ac_var'}'`
15366 { echo "$as_me:$LINENO: result: $ac_res" >&5
15367 echo "${ECHO_T}$ac_res" >&6; }
15368 if test `eval echo '${'$as_ac_var'}'` = yes; then
15370 cat >>confdefs.h <<_ACEOF
15371 #define CRAY_STACKSEG_END $ac_func
15372 _ACEOF
15374 break
15377 done
15380 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15381 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15382 if test "${ac_cv_c_stack_direction+set}" = set; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 else
15385 if test "$cross_compiling" = yes; then
15386 ac_cv_c_stack_direction=0
15387 else
15388 cat >conftest.$ac_ext <<_ACEOF
15389 /* confdefs.h. */
15390 _ACEOF
15391 cat confdefs.h >>conftest.$ac_ext
15392 cat >>conftest.$ac_ext <<_ACEOF
15393 /* end confdefs.h. */
15394 $ac_includes_default
15396 find_stack_direction ()
15398 static char *addr = 0;
15399 auto char dummy;
15400 if (addr == 0)
15402 addr = &dummy;
15403 return find_stack_direction ();
15405 else
15406 return (&dummy > addr) ? 1 : -1;
15410 main ()
15412 return find_stack_direction () < 0;
15414 _ACEOF
15415 rm -f conftest$ac_exeext
15416 if { (ac_try="$ac_link"
15417 case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15420 esac
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_link") 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15426 { (case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_try") 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
15435 ac_cv_c_stack_direction=1
15436 else
15437 echo "$as_me: program exited with status $ac_status" >&5
15438 echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 ( exit $ac_status )
15442 ac_cv_c_stack_direction=-1
15444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15449 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15450 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15452 cat >>confdefs.h <<_ACEOF
15453 #define STACK_DIRECTION $ac_cv_c_stack_direction
15454 _ACEOF
15460 if test x"$ac_cv_func_alloca_works" != xyes; then
15461 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15462 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15463 { (exit 1); exit 1; }; }
15466 # fmod, logb, and frexp are found in -lm on most systems.
15467 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15469 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15470 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15471 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474 ac_check_lib_save_LIBS=$LIBS
15475 LIBS="-lm $LIBS"
15476 cat >conftest.$ac_ext <<_ACEOF
15477 /* confdefs.h. */
15478 _ACEOF
15479 cat confdefs.h >>conftest.$ac_ext
15480 cat >>conftest.$ac_ext <<_ACEOF
15481 /* end confdefs.h. */
15483 /* Override any GCC internal prototype to avoid an error.
15484 Use char because int might match the return type of a GCC
15485 builtin and then its argument prototype would still apply. */
15486 #ifdef __cplusplus
15487 extern "C"
15488 #endif
15489 char sqrt ();
15491 main ()
15493 return sqrt ();
15495 return 0;
15497 _ACEOF
15498 rm -f conftest.$ac_objext conftest$ac_exeext
15499 if { (ac_try="$ac_link"
15500 case "(($ac_try" in
15501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15502 *) ac_try_echo=$ac_try;;
15503 esac
15504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15505 (eval "$ac_link") 2>conftest.er1
15506 ac_status=$?
15507 grep -v '^ *+' conftest.er1 >conftest.err
15508 rm -f conftest.er1
15509 cat conftest.err >&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); } && {
15512 test -z "$ac_c_werror_flag" ||
15513 test ! -s conftest.err
15514 } && test -s conftest$ac_exeext &&
15515 $as_test_x conftest$ac_exeext; then
15516 ac_cv_lib_m_sqrt=yes
15517 else
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15521 ac_cv_lib_m_sqrt=no
15524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15525 conftest$ac_exeext conftest.$ac_ext
15526 LIBS=$ac_check_lib_save_LIBS
15528 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15529 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15530 if test $ac_cv_lib_m_sqrt = yes; then
15531 cat >>confdefs.h <<_ACEOF
15532 #define HAVE_LIBM 1
15533 _ACEOF
15535 LIBS="-lm $LIBS"
15540 # Check for mail-locking functions in a "mail" library. Probably this should
15541 # have the same check as for liblockfile below.
15543 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15544 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15545 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15546 echo $ECHO_N "(cached) $ECHO_C" >&6
15547 else
15548 ac_check_lib_save_LIBS=$LIBS
15549 LIBS="-lmail $LIBS"
15550 cat >conftest.$ac_ext <<_ACEOF
15551 /* confdefs.h. */
15552 _ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h. */
15557 /* Override any GCC internal prototype to avoid an error.
15558 Use char because int might match the return type of a GCC
15559 builtin and then its argument prototype would still apply. */
15560 #ifdef __cplusplus
15561 extern "C"
15562 #endif
15563 char maillock ();
15565 main ()
15567 return maillock ();
15569 return 0;
15571 _ACEOF
15572 rm -f conftest.$ac_objext conftest$ac_exeext
15573 if { (ac_try="$ac_link"
15574 case "(($ac_try" in
15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576 *) ac_try_echo=$ac_try;;
15577 esac
15578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15579 (eval "$ac_link") 2>conftest.er1
15580 ac_status=$?
15581 grep -v '^ *+' conftest.er1 >conftest.err
15582 rm -f conftest.er1
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } && {
15586 test -z "$ac_c_werror_flag" ||
15587 test ! -s conftest.err
15588 } && test -s conftest$ac_exeext &&
15589 $as_test_x conftest$ac_exeext; then
15590 ac_cv_lib_mail_maillock=yes
15591 else
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ac_cv_lib_mail_maillock=no
15598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15599 conftest$ac_exeext conftest.$ac_ext
15600 LIBS=$ac_check_lib_save_LIBS
15602 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15603 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15604 if test $ac_cv_lib_mail_maillock = yes; then
15605 cat >>confdefs.h <<_ACEOF
15606 #define HAVE_LIBMAIL 1
15607 _ACEOF
15609 LIBS="-lmail $LIBS"
15614 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15615 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15616 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15618 else
15619 ac_check_lib_save_LIBS=$LIBS
15620 LIBS="-llockfile $LIBS"
15621 cat >conftest.$ac_ext <<_ACEOF
15622 /* confdefs.h. */
15623 _ACEOF
15624 cat confdefs.h >>conftest.$ac_ext
15625 cat >>conftest.$ac_ext <<_ACEOF
15626 /* end confdefs.h. */
15628 /* Override any GCC internal prototype to avoid an error.
15629 Use char because int might match the return type of a GCC
15630 builtin and then its argument prototype would still apply. */
15631 #ifdef __cplusplus
15632 extern "C"
15633 #endif
15634 char maillock ();
15636 main ()
15638 return maillock ();
15640 return 0;
15642 _ACEOF
15643 rm -f conftest.$ac_objext conftest$ac_exeext
15644 if { (ac_try="$ac_link"
15645 case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15648 esac
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_link") 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest$ac_exeext &&
15660 $as_test_x conftest$ac_exeext; then
15661 ac_cv_lib_lockfile_maillock=yes
15662 else
15663 echo "$as_me: failed program was:" >&5
15664 sed 's/^/| /' conftest.$ac_ext >&5
15666 ac_cv_lib_lockfile_maillock=no
15669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15670 conftest$ac_exeext conftest.$ac_ext
15671 LIBS=$ac_check_lib_save_LIBS
15673 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15674 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15675 if test $ac_cv_lib_lockfile_maillock = yes; then
15676 cat >>confdefs.h <<_ACEOF
15677 #define HAVE_LIBLOCKFILE 1
15678 _ACEOF
15680 LIBS="-llockfile $LIBS"
15684 # If we have the shared liblockfile, assume we must use it for mail
15685 # locking (e.g. Debian). If we couldn't link against liblockfile
15686 # (no liblockfile.a installed), ensure that we don't need to.
15687 if test "$ac_cv_lib_lockfile_maillock" = no; then
15688 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15689 set dummy liblockfile.so; ac_word=$2
15690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15692 if test "${ac_cv_prog_liblockfile+set}" = set; then
15693 echo $ECHO_N "(cached) $ECHO_C" >&6
15694 else
15695 if test -n "$liblockfile"; then
15696 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15697 else
15698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15699 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15700 for as_dir in $as_dummy
15702 IFS=$as_save_IFS
15703 test -z "$as_dir" && as_dir=.
15704 for ac_exec_ext in '' $ac_executable_extensions; do
15705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15706 ac_cv_prog_liblockfile="yes"
15707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15708 break 2
15710 done
15711 done
15712 IFS=$as_save_IFS
15714 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15717 liblockfile=$ac_cv_prog_liblockfile
15718 if test -n "$liblockfile"; then
15719 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15720 echo "${ECHO_T}$liblockfile" >&6; }
15721 else
15722 { echo "$as_me:$LINENO: result: no" >&5
15723 echo "${ECHO_T}no" >&6; }
15727 if test $ac_cv_prog_liblockfile = yes; then
15728 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15729 This probably means that movemail could lose mail.
15730 There may be a \`development' package to install containing liblockfile." >&5
15731 echo "$as_me: error: Shared liblockfile found but can't link against it.
15732 This probably means that movemail could lose mail.
15733 There may be a \`development' package to install containing liblockfile." >&2;}
15734 { (exit 1); exit 1; }; }
15735 else :
15739 for ac_func in touchlock
15741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15745 echo $ECHO_N "(cached) $ECHO_C" >&6
15746 else
15747 cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h. */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15755 #define $ac_func innocuous_$ac_func
15757 /* System header to define __stub macros and hopefully few prototypes,
15758 which can conflict with char $ac_func (); below.
15759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15760 <limits.h> exists even on freestanding compilers. */
15762 #ifdef __STDC__
15763 # include <limits.h>
15764 #else
15765 # include <assert.h>
15766 #endif
15768 #undef $ac_func
15770 /* Override any GCC internal prototype to avoid an error.
15771 Use char because int might match the return type of a GCC
15772 builtin and then its argument prototype would still apply. */
15773 #ifdef __cplusplus
15774 extern "C"
15775 #endif
15776 char $ac_func ();
15777 /* The GNU C library defines this for functions which it implements
15778 to always fail with ENOSYS. Some functions are actually named
15779 something starting with __ and the normal name is an alias. */
15780 #if defined __stub_$ac_func || defined __stub___$ac_func
15781 choke me
15782 #endif
15785 main ()
15787 return $ac_func ();
15789 return 0;
15791 _ACEOF
15792 rm -f conftest.$ac_objext conftest$ac_exeext
15793 if { (ac_try="$ac_link"
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_link") 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_exeext &&
15809 $as_test_x conftest$ac_exeext; then
15810 eval "$as_ac_var=yes"
15811 else
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15815 eval "$as_ac_var=no"
15818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15819 conftest$ac_exeext conftest.$ac_ext
15821 ac_res=`eval echo '${'$as_ac_var'}'`
15822 { echo "$as_me:$LINENO: result: $ac_res" >&5
15823 echo "${ECHO_T}$ac_res" >&6; }
15824 if test `eval echo '${'$as_ac_var'}'` = yes; then
15825 cat >>confdefs.h <<_ACEOF
15826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15827 _ACEOF
15830 done
15833 for ac_header in maillock.h
15835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15840 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 ac_res=`eval echo '${'$as_ac_Header'}'`
15843 { echo "$as_me:$LINENO: result: $ac_res" >&5
15844 echo "${ECHO_T}$ac_res" >&6; }
15845 else
15846 # Is the header compilable?
15847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15849 cat >conftest.$ac_ext <<_ACEOF
15850 /* confdefs.h. */
15851 _ACEOF
15852 cat confdefs.h >>conftest.$ac_ext
15853 cat >>conftest.$ac_ext <<_ACEOF
15854 /* end confdefs.h. */
15855 $ac_includes_default
15856 #include <$ac_header>
15857 _ACEOF
15858 rm -f conftest.$ac_objext
15859 if { (ac_try="$ac_compile"
15860 case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15863 esac
15864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_compile") 2>conftest.er1
15866 ac_status=$?
15867 grep -v '^ *+' conftest.er1 >conftest.err
15868 rm -f conftest.er1
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15871 (exit $ac_status); } && {
15872 test -z "$ac_c_werror_flag" ||
15873 test ! -s conftest.err
15874 } && test -s conftest.$ac_objext; then
15875 ac_header_compiler=yes
15876 else
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_header_compiler=no
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15885 echo "${ECHO_T}$ac_header_compiler" >&6; }
15887 # Is the header present?
15888 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15889 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15890 cat >conftest.$ac_ext <<_ACEOF
15891 /* confdefs.h. */
15892 _ACEOF
15893 cat confdefs.h >>conftest.$ac_ext
15894 cat >>conftest.$ac_ext <<_ACEOF
15895 /* end confdefs.h. */
15896 #include <$ac_header>
15897 _ACEOF
15898 if { (ac_try="$ac_cpp conftest.$ac_ext"
15899 case "(($ac_try" in
15900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15901 *) ac_try_echo=$ac_try;;
15902 esac
15903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15905 ac_status=$?
15906 grep -v '^ *+' conftest.er1 >conftest.err
15907 rm -f conftest.er1
15908 cat conftest.err >&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } >/dev/null && {
15911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15912 test ! -s conftest.err
15913 }; then
15914 ac_header_preproc=yes
15915 else
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 ac_header_preproc=no
15922 rm -f conftest.err conftest.$ac_ext
15923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15924 echo "${ECHO_T}$ac_header_preproc" >&6; }
15926 # So? What about this header?
15927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15928 yes:no: )
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15933 ac_header_preproc=yes
15935 no:yes:* )
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15950 esac
15951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15954 echo $ECHO_N "(cached) $ECHO_C" >&6
15955 else
15956 eval "$as_ac_Header=\$ac_header_preproc"
15958 ac_res=`eval echo '${'$as_ac_Header'}'`
15959 { echo "$as_me:$LINENO: result: $ac_res" >&5
15960 echo "${ECHO_T}$ac_res" >&6; }
15963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15964 cat >>confdefs.h <<_ACEOF
15965 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15966 _ACEOF
15970 done
16041 for ac_func in gethostname getdomainname dup2 \
16042 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16043 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16044 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16045 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16046 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16047 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16048 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16049 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057 cat >conftest.$ac_ext <<_ACEOF
16058 /* confdefs.h. */
16059 _ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16065 #define $ac_func innocuous_$ac_func
16067 /* System header to define __stub macros and hopefully few prototypes,
16068 which can conflict with char $ac_func (); below.
16069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16070 <limits.h> exists even on freestanding compilers. */
16072 #ifdef __STDC__
16073 # include <limits.h>
16074 #else
16075 # include <assert.h>
16076 #endif
16078 #undef $ac_func
16080 /* Override any GCC internal prototype to avoid an error.
16081 Use char because int might match the return type of a GCC
16082 builtin and then its argument prototype would still apply. */
16083 #ifdef __cplusplus
16084 extern "C"
16085 #endif
16086 char $ac_func ();
16087 /* The GNU C library defines this for functions which it implements
16088 to always fail with ENOSYS. Some functions are actually named
16089 something starting with __ and the normal name is an alias. */
16090 #if defined __stub_$ac_func || defined __stub___$ac_func
16091 choke me
16092 #endif
16095 main ()
16097 return $ac_func ();
16099 return 0;
16101 _ACEOF
16102 rm -f conftest.$ac_objext conftest$ac_exeext
16103 if { (ac_try="$ac_link"
16104 case "(($ac_try" in
16105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106 *) ac_try_echo=$ac_try;;
16107 esac
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109 (eval "$ac_link") 2>conftest.er1
16110 ac_status=$?
16111 grep -v '^ *+' conftest.er1 >conftest.err
16112 rm -f conftest.er1
16113 cat conftest.err >&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } && {
16116 test -z "$ac_c_werror_flag" ||
16117 test ! -s conftest.err
16118 } && test -s conftest$ac_exeext &&
16119 $as_test_x conftest$ac_exeext; then
16120 eval "$as_ac_var=yes"
16121 else
16122 echo "$as_me: failed program was:" >&5
16123 sed 's/^/| /' conftest.$ac_ext >&5
16125 eval "$as_ac_var=no"
16128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16129 conftest$ac_exeext conftest.$ac_ext
16131 ac_res=`eval echo '${'$as_ac_var'}'`
16132 { echo "$as_me:$LINENO: result: $ac_res" >&5
16133 echo "${ECHO_T}$ac_res" >&6; }
16134 if test `eval echo '${'$as_ac_var'}'` = yes; then
16135 cat >>confdefs.h <<_ACEOF
16136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16137 _ACEOF
16140 done
16144 for ac_header in sys/un.h
16146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 ac_res=`eval echo '${'$as_ac_Header'}'`
16154 { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16156 else
16157 # Is the header compilable?
16158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16160 cat >conftest.$ac_ext <<_ACEOF
16161 /* confdefs.h. */
16162 _ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h. */
16166 $ac_includes_default
16167 #include <$ac_header>
16168 _ACEOF
16169 rm -f conftest.$ac_objext
16170 if { (ac_try="$ac_compile"
16171 case "(($ac_try" in
16172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16173 *) ac_try_echo=$ac_try;;
16174 esac
16175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16176 (eval "$ac_compile") 2>conftest.er1
16177 ac_status=$?
16178 grep -v '^ *+' conftest.er1 >conftest.err
16179 rm -f conftest.er1
16180 cat conftest.err >&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } && {
16183 test -z "$ac_c_werror_flag" ||
16184 test ! -s conftest.err
16185 } && test -s conftest.$ac_objext; then
16186 ac_header_compiler=yes
16187 else
16188 echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16191 ac_header_compiler=no
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16196 echo "${ECHO_T}$ac_header_compiler" >&6; }
16198 # Is the header present?
16199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16201 cat >conftest.$ac_ext <<_ACEOF
16202 /* confdefs.h. */
16203 _ACEOF
16204 cat confdefs.h >>conftest.$ac_ext
16205 cat >>conftest.$ac_ext <<_ACEOF
16206 /* end confdefs.h. */
16207 #include <$ac_header>
16208 _ACEOF
16209 if { (ac_try="$ac_cpp conftest.$ac_ext"
16210 case "(($ac_try" in
16211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16213 esac
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16216 ac_status=$?
16217 grep -v '^ *+' conftest.er1 >conftest.err
16218 rm -f conftest.er1
16219 cat conftest.err >&5
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); } >/dev/null && {
16222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16223 test ! -s conftest.err
16224 }; then
16225 ac_header_preproc=yes
16226 else
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16230 ac_header_preproc=no
16233 rm -f conftest.err conftest.$ac_ext
16234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16235 echo "${ECHO_T}$ac_header_preproc" >&6; }
16237 # So? What about this header?
16238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16239 yes:no: )
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16244 ac_header_preproc=yes
16246 no:yes:* )
16247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16250 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16254 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16261 esac
16262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16265 echo $ECHO_N "(cached) $ECHO_C" >&6
16266 else
16267 eval "$as_ac_Header=\$ac_header_preproc"
16269 ac_res=`eval echo '${'$as_ac_Header'}'`
16270 { echo "$as_me:$LINENO: result: $ac_res" >&5
16271 echo "${ECHO_T}$ac_res" >&6; }
16274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16275 cat >>confdefs.h <<_ACEOF
16276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16277 _ACEOF
16281 done
16288 for ac_header in $ac_header_list
16290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16295 echo $ECHO_N "(cached) $ECHO_C" >&6
16297 ac_res=`eval echo '${'$as_ac_Header'}'`
16298 { echo "$as_me:$LINENO: result: $ac_res" >&5
16299 echo "${ECHO_T}$ac_res" >&6; }
16300 else
16301 # Is the header compilable?
16302 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16303 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16304 cat >conftest.$ac_ext <<_ACEOF
16305 /* confdefs.h. */
16306 _ACEOF
16307 cat confdefs.h >>conftest.$ac_ext
16308 cat >>conftest.$ac_ext <<_ACEOF
16309 /* end confdefs.h. */
16310 $ac_includes_default
16311 #include <$ac_header>
16312 _ACEOF
16313 rm -f conftest.$ac_objext
16314 if { (ac_try="$ac_compile"
16315 case "(($ac_try" in
16316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16318 esac
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_compile") 2>conftest.er1
16321 ac_status=$?
16322 grep -v '^ *+' conftest.er1 >conftest.err
16323 rm -f conftest.er1
16324 cat conftest.err >&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } && {
16327 test -z "$ac_c_werror_flag" ||
16328 test ! -s conftest.err
16329 } && test -s conftest.$ac_objext; then
16330 ac_header_compiler=yes
16331 else
16332 echo "$as_me: failed program was:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 ac_header_compiler=no
16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16340 echo "${ECHO_T}$ac_header_compiler" >&6; }
16342 # Is the header present?
16343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16345 cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h. */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h. */
16351 #include <$ac_header>
16352 _ACEOF
16353 if { (ac_try="$ac_cpp conftest.$ac_ext"
16354 case "(($ac_try" in
16355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16356 *) ac_try_echo=$ac_try;;
16357 esac
16358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16360 ac_status=$?
16361 grep -v '^ *+' conftest.er1 >conftest.err
16362 rm -f conftest.er1
16363 cat conftest.err >&5
16364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16365 (exit $ac_status); } >/dev/null && {
16366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16367 test ! -s conftest.err
16368 }; then
16369 ac_header_preproc=yes
16370 else
16371 echo "$as_me: failed program was:" >&5
16372 sed 's/^/| /' conftest.$ac_ext >&5
16374 ac_header_preproc=no
16377 rm -f conftest.err conftest.$ac_ext
16378 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16379 echo "${ECHO_T}$ac_header_preproc" >&6; }
16381 # So? What about this header?
16382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16383 yes:no: )
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16387 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16388 ac_header_preproc=yes
16390 no:yes:* )
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16392 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16393 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16394 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16395 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16396 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16397 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16398 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16401 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16402 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16405 esac
16406 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410 else
16411 eval "$as_ac_Header=\$ac_header_preproc"
16413 ac_res=`eval echo '${'$as_ac_Header'}'`
16414 { echo "$as_me:$LINENO: result: $ac_res" >&5
16415 echo "${ECHO_T}$ac_res" >&6; }
16418 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16419 cat >>confdefs.h <<_ACEOF
16420 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16421 _ACEOF
16425 done
16435 for ac_func in $ac_func_list
16437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16441 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 else
16443 cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h. */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h. */
16449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16451 #define $ac_func innocuous_$ac_func
16453 /* System header to define __stub macros and hopefully few prototypes,
16454 which can conflict with char $ac_func (); below.
16455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16456 <limits.h> exists even on freestanding compilers. */
16458 #ifdef __STDC__
16459 # include <limits.h>
16460 #else
16461 # include <assert.h>
16462 #endif
16464 #undef $ac_func
16466 /* Override any GCC internal prototype to avoid an error.
16467 Use char because int might match the return type of a GCC
16468 builtin and then its argument prototype would still apply. */
16469 #ifdef __cplusplus
16470 extern "C"
16471 #endif
16472 char $ac_func ();
16473 /* The GNU C library defines this for functions which it implements
16474 to always fail with ENOSYS. Some functions are actually named
16475 something starting with __ and the normal name is an alias. */
16476 #if defined __stub_$ac_func || defined __stub___$ac_func
16477 choke me
16478 #endif
16481 main ()
16483 return $ac_func ();
16485 return 0;
16487 _ACEOF
16488 rm -f conftest.$ac_objext conftest$ac_exeext
16489 if { (ac_try="$ac_link"
16490 case "(($ac_try" in
16491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492 *) ac_try_echo=$ac_try;;
16493 esac
16494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495 (eval "$ac_link") 2>conftest.er1
16496 ac_status=$?
16497 grep -v '^ *+' conftest.er1 >conftest.err
16498 rm -f conftest.er1
16499 cat conftest.err >&5
16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501 (exit $ac_status); } && {
16502 test -z "$ac_c_werror_flag" ||
16503 test ! -s conftest.err
16504 } && test -s conftest$ac_exeext &&
16505 $as_test_x conftest$ac_exeext; then
16506 eval "$as_ac_var=yes"
16507 else
16508 echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16511 eval "$as_ac_var=no"
16514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16515 conftest$ac_exeext conftest.$ac_ext
16517 ac_res=`eval echo '${'$as_ac_var'}'`
16518 { echo "$as_me:$LINENO: result: $ac_res" >&5
16519 echo "${ECHO_T}$ac_res" >&6; }
16520 if test `eval echo '${'$as_ac_var'}'` = yes; then
16521 cat >>confdefs.h <<_ACEOF
16522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16523 _ACEOF
16526 done
16544 { echo "$as_me:$LINENO: checking for working mktime" >&5
16545 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16546 if test "${ac_cv_func_working_mktime+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 else
16549 if test "$cross_compiling" = yes; then
16550 ac_cv_func_working_mktime=no
16551 else
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h. */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 /* Test program from Paul Eggert and Tony Leneis. */
16559 #ifdef TIME_WITH_SYS_TIME
16560 # include <sys/time.h>
16561 # include <time.h>
16562 #else
16563 # ifdef HAVE_SYS_TIME_H
16564 # include <sys/time.h>
16565 # else
16566 # include <time.h>
16567 # endif
16568 #endif
16570 #include <stdlib.h>
16572 #ifdef HAVE_UNISTD_H
16573 # include <unistd.h>
16574 #endif
16576 #ifndef HAVE_ALARM
16577 # define alarm(X) /* empty */
16578 #endif
16580 /* Work around redefinition to rpl_putenv by other config tests. */
16581 #undef putenv
16583 static time_t time_t_max;
16584 static time_t time_t_min;
16586 /* Values we'll use to set the TZ environment variable. */
16587 static char *tz_strings[] = {
16588 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16589 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16591 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16593 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16594 Based on a problem report from Andreas Jaeger. */
16595 static int
16596 spring_forward_gap ()
16598 /* glibc (up to about 1998-10-07) failed this test. */
16599 struct tm tm;
16601 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16602 instead of "TZ=America/Vancouver" in order to detect the bug even
16603 on systems that don't support the Olson extension, or don't have the
16604 full zoneinfo tables installed. */
16605 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16607 tm.tm_year = 98;
16608 tm.tm_mon = 3;
16609 tm.tm_mday = 5;
16610 tm.tm_hour = 2;
16611 tm.tm_min = 0;
16612 tm.tm_sec = 0;
16613 tm.tm_isdst = -1;
16614 return mktime (&tm) != (time_t) -1;
16617 static int
16618 mktime_test1 (now)
16619 time_t now;
16621 struct tm *lt;
16622 return ! (lt = localtime (&now)) || mktime (lt) == now;
16625 static int
16626 mktime_test (now)
16627 time_t now;
16629 return (mktime_test1 (now)
16630 && mktime_test1 ((time_t) (time_t_max - now))
16631 && mktime_test1 ((time_t) (time_t_min + now)));
16634 static int
16635 irix_6_4_bug ()
16637 /* Based on code from Ariel Faigon. */
16638 struct tm tm;
16639 tm.tm_year = 96;
16640 tm.tm_mon = 3;
16641 tm.tm_mday = 0;
16642 tm.tm_hour = 0;
16643 tm.tm_min = 0;
16644 tm.tm_sec = 0;
16645 tm.tm_isdst = -1;
16646 mktime (&tm);
16647 return tm.tm_mon == 2 && tm.tm_mday == 31;
16650 static int
16651 bigtime_test (j)
16652 int j;
16654 struct tm tm;
16655 time_t now;
16656 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16657 now = mktime (&tm);
16658 if (now != (time_t) -1)
16660 struct tm *lt = localtime (&now);
16661 if (! (lt
16662 && lt->tm_year == tm.tm_year
16663 && lt->tm_mon == tm.tm_mon
16664 && lt->tm_mday == tm.tm_mday
16665 && lt->tm_hour == tm.tm_hour
16666 && lt->tm_min == tm.tm_min
16667 && lt->tm_sec == tm.tm_sec
16668 && lt->tm_yday == tm.tm_yday
16669 && lt->tm_wday == tm.tm_wday
16670 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16671 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16672 return 0;
16674 return 1;
16677 static int
16678 year_2050_test ()
16680 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16681 ignoring leap seconds. */
16682 unsigned long int answer = 2527315200UL;
16684 struct tm tm;
16685 time_t t;
16686 tm.tm_year = 2050 - 1900;
16687 tm.tm_mon = 2 - 1;
16688 tm.tm_mday = 1;
16689 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16690 tm.tm_isdst = -1;
16692 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16693 instead of "TZ=America/Vancouver" in order to detect the bug even
16694 on systems that don't support the Olson extension, or don't have the
16695 full zoneinfo tables installed. */
16696 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16698 t = mktime (&tm);
16700 /* Check that the result is either a failure, or close enough
16701 to the correct answer that we can assume the discrepancy is
16702 due to leap seconds. */
16703 return (t == (time_t) -1
16704 || (0 < t && answer - 120 <= t && t <= answer + 120));
16708 main ()
16710 time_t t, delta;
16711 int i, j;
16713 /* This test makes some buggy mktime implementations loop.
16714 Give up after 60 seconds; a mktime slower than that
16715 isn't worth using anyway. */
16716 alarm (60);
16718 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16719 continue;
16720 time_t_max--;
16721 if ((time_t) -1 < 0)
16722 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16723 continue;
16724 delta = time_t_max / 997; /* a suitable prime number */
16725 for (i = 0; i < N_STRINGS; i++)
16727 if (tz_strings[i])
16728 putenv (tz_strings[i]);
16730 for (t = 0; t <= time_t_max - delta; t += delta)
16731 if (! mktime_test (t))
16732 return 1;
16733 if (! (mktime_test ((time_t) 1)
16734 && mktime_test ((time_t) (60 * 60))
16735 && mktime_test ((time_t) (60 * 60 * 24))))
16736 return 1;
16738 for (j = 1; 0 < j; j *= 2)
16739 if (! bigtime_test (j))
16740 return 1;
16741 if (! bigtime_test (j - 1))
16742 return 1;
16744 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16746 _ACEOF
16747 rm -f conftest$ac_exeext
16748 if { (ac_try="$ac_link"
16749 case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16752 esac
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_link") 2>&5
16755 ac_status=$?
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16758 { (case "(($ac_try" in
16759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16760 *) ac_try_echo=$ac_try;;
16761 esac
16762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16763 (eval "$ac_try") 2>&5
16764 ac_status=$?
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); }; }; then
16767 ac_cv_func_working_mktime=yes
16768 else
16769 echo "$as_me: program exited with status $ac_status" >&5
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ( exit $ac_status )
16774 ac_cv_func_working_mktime=no
16776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16781 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16782 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16783 if test $ac_cv_func_working_mktime = no; then
16784 case " $LIBOBJS " in
16785 *" mktime.$ac_objext "* ) ;;
16786 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16788 esac
16792 if test "$ac_cv_func_working_mktime" = no; then
16794 cat >>confdefs.h <<\_ACEOF
16795 #define BROKEN_MKTIME 1
16796 _ACEOF
16800 ac_have_func=no # yes means we've found a way to get the load average.
16802 # Make sure getloadavg.c is where it belongs, at configure-time.
16803 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16804 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16805 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16806 { (exit 1); exit 1; }; }
16808 ac_save_LIBS=$LIBS
16810 # Check for getloadavg, but be sure not to touch the cache variable.
16811 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16812 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16813 if test "${ac_cv_func_getloadavg+set}" = set; then
16814 echo $ECHO_N "(cached) $ECHO_C" >&6
16815 else
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h. */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16824 #define getloadavg innocuous_getloadavg
16826 /* System header to define __stub macros and hopefully few prototypes,
16827 which can conflict with char getloadavg (); below.
16828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16829 <limits.h> exists even on freestanding compilers. */
16831 #ifdef __STDC__
16832 # include <limits.h>
16833 #else
16834 # include <assert.h>
16835 #endif
16837 #undef getloadavg
16839 /* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
16842 #ifdef __cplusplus
16843 extern "C"
16844 #endif
16845 char getloadavg ();
16846 /* The GNU C library defines this for functions which it implements
16847 to always fail with ENOSYS. Some functions are actually named
16848 something starting with __ and the normal name is an alias. */
16849 #if defined __stub_getloadavg || defined __stub___getloadavg
16850 choke me
16851 #endif
16854 main ()
16856 return getloadavg ();
16858 return 0;
16860 _ACEOF
16861 rm -f conftest.$ac_objext conftest$ac_exeext
16862 if { (ac_try="$ac_link"
16863 case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866 esac
16867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16868 (eval "$ac_link") 2>conftest.er1
16869 ac_status=$?
16870 grep -v '^ *+' conftest.er1 >conftest.err
16871 rm -f conftest.er1
16872 cat conftest.err >&5
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); } && {
16875 test -z "$ac_c_werror_flag" ||
16876 test ! -s conftest.err
16877 } && test -s conftest$ac_exeext &&
16878 $as_test_x conftest$ac_exeext; then
16879 ac_cv_func_getloadavg=yes
16880 else
16881 echo "$as_me: failed program was:" >&5
16882 sed 's/^/| /' conftest.$ac_ext >&5
16884 ac_cv_func_getloadavg=no
16887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16888 conftest$ac_exeext conftest.$ac_ext
16890 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16891 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16892 if test $ac_cv_func_getloadavg = yes; then
16893 exit 0
16894 else
16895 exit 1
16897 ) && ac_have_func=yes
16899 # On HPUX9, an unprivileged user can get load averages through this function.
16901 for ac_func in pstat_getdynamic
16903 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16904 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16905 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 else
16909 cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h. */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16917 #define $ac_func innocuous_$ac_func
16919 /* System header to define __stub macros and hopefully few prototypes,
16920 which can conflict with char $ac_func (); below.
16921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16922 <limits.h> exists even on freestanding compilers. */
16924 #ifdef __STDC__
16925 # include <limits.h>
16926 #else
16927 # include <assert.h>
16928 #endif
16930 #undef $ac_func
16932 /* Override any GCC internal prototype to avoid an error.
16933 Use char because int might match the return type of a GCC
16934 builtin and then its argument prototype would still apply. */
16935 #ifdef __cplusplus
16936 extern "C"
16937 #endif
16938 char $ac_func ();
16939 /* The GNU C library defines this for functions which it implements
16940 to always fail with ENOSYS. Some functions are actually named
16941 something starting with __ and the normal name is an alias. */
16942 #if defined __stub_$ac_func || defined __stub___$ac_func
16943 choke me
16944 #endif
16947 main ()
16949 return $ac_func ();
16951 return 0;
16953 _ACEOF
16954 rm -f conftest.$ac_objext conftest$ac_exeext
16955 if { (ac_try="$ac_link"
16956 case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_link") 2>conftest.er1
16962 ac_status=$?
16963 grep -v '^ *+' conftest.er1 >conftest.err
16964 rm -f conftest.er1
16965 cat conftest.err >&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } && {
16968 test -z "$ac_c_werror_flag" ||
16969 test ! -s conftest.err
16970 } && test -s conftest$ac_exeext &&
16971 $as_test_x conftest$ac_exeext; then
16972 eval "$as_ac_var=yes"
16973 else
16974 echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16977 eval "$as_ac_var=no"
16980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16981 conftest$ac_exeext conftest.$ac_ext
16983 ac_res=`eval echo '${'$as_ac_var'}'`
16984 { echo "$as_me:$LINENO: result: $ac_res" >&5
16985 echo "${ECHO_T}$ac_res" >&6; }
16986 if test `eval echo '${'$as_ac_var'}'` = yes; then
16987 cat >>confdefs.h <<_ACEOF
16988 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16989 _ACEOF
16992 done
16995 # Solaris has libkstat which does not require root.
16997 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16998 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16999 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002 ac_check_lib_save_LIBS=$LIBS
17003 LIBS="-lkstat $LIBS"
17004 cat >conftest.$ac_ext <<_ACEOF
17005 /* confdefs.h. */
17006 _ACEOF
17007 cat confdefs.h >>conftest.$ac_ext
17008 cat >>conftest.$ac_ext <<_ACEOF
17009 /* end confdefs.h. */
17011 /* Override any GCC internal prototype to avoid an error.
17012 Use char because int might match the return type of a GCC
17013 builtin and then its argument prototype would still apply. */
17014 #ifdef __cplusplus
17015 extern "C"
17016 #endif
17017 char kstat_open ();
17019 main ()
17021 return kstat_open ();
17023 return 0;
17025 _ACEOF
17026 rm -f conftest.$ac_objext conftest$ac_exeext
17027 if { (ac_try="$ac_link"
17028 case "(($ac_try" in
17029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030 *) ac_try_echo=$ac_try;;
17031 esac
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_link") 2>conftest.er1
17034 ac_status=$?
17035 grep -v '^ *+' conftest.er1 >conftest.err
17036 rm -f conftest.er1
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } && {
17040 test -z "$ac_c_werror_flag" ||
17041 test ! -s conftest.err
17042 } && test -s conftest$ac_exeext &&
17043 $as_test_x conftest$ac_exeext; then
17044 ac_cv_lib_kstat_kstat_open=yes
17045 else
17046 echo "$as_me: failed program was:" >&5
17047 sed 's/^/| /' conftest.$ac_ext >&5
17049 ac_cv_lib_kstat_kstat_open=no
17052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17053 conftest$ac_exeext conftest.$ac_ext
17054 LIBS=$ac_check_lib_save_LIBS
17056 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17057 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17058 if test $ac_cv_lib_kstat_kstat_open = yes; then
17059 cat >>confdefs.h <<_ACEOF
17060 #define HAVE_LIBKSTAT 1
17061 _ACEOF
17063 LIBS="-lkstat $LIBS"
17067 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17069 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17070 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17071 # to get the right answer into the cache.
17072 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17073 if test $ac_have_func = no; then
17074 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17075 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17076 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17078 else
17079 ac_check_lib_save_LIBS=$LIBS
17080 LIBS="-lelf $LIBS"
17081 cat >conftest.$ac_ext <<_ACEOF
17082 /* confdefs.h. */
17083 _ACEOF
17084 cat confdefs.h >>conftest.$ac_ext
17085 cat >>conftest.$ac_ext <<_ACEOF
17086 /* end confdefs.h. */
17088 /* Override any GCC internal prototype to avoid an error.
17089 Use char because int might match the return type of a GCC
17090 builtin and then its argument prototype would still apply. */
17091 #ifdef __cplusplus
17092 extern "C"
17093 #endif
17094 char elf_begin ();
17096 main ()
17098 return elf_begin ();
17100 return 0;
17102 _ACEOF
17103 rm -f conftest.$ac_objext conftest$ac_exeext
17104 if { (ac_try="$ac_link"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17108 esac
17109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_link") 2>conftest.er1
17111 ac_status=$?
17112 grep -v '^ *+' conftest.er1 >conftest.err
17113 rm -f conftest.er1
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } && {
17117 test -z "$ac_c_werror_flag" ||
17118 test ! -s conftest.err
17119 } && test -s conftest$ac_exeext &&
17120 $as_test_x conftest$ac_exeext; then
17121 ac_cv_lib_elf_elf_begin=yes
17122 else
17123 echo "$as_me: failed program was:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17126 ac_cv_lib_elf_elf_begin=no
17129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17130 conftest$ac_exeext conftest.$ac_ext
17131 LIBS=$ac_check_lib_save_LIBS
17133 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17134 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17135 if test $ac_cv_lib_elf_elf_begin = yes; then
17136 LIBS="-lelf $LIBS"
17140 if test $ac_have_func = no; then
17141 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17142 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17143 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17144 echo $ECHO_N "(cached) $ECHO_C" >&6
17145 else
17146 ac_check_lib_save_LIBS=$LIBS
17147 LIBS="-lkvm $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 kvm_open ();
17163 main ()
17165 return kvm_open ();
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_kvm_kvm_open=yes
17189 else
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 ac_cv_lib_kvm_kvm_open=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_kvm_kvm_open" >&5
17201 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17202 if test $ac_cv_lib_kvm_kvm_open = yes; then
17203 LIBS="-lkvm $LIBS"
17206 # Check for the 4.4BSD definition of getloadavg.
17207 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17208 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17209 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17210 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 else
17212 ac_check_lib_save_LIBS=$LIBS
17213 LIBS="-lutil $LIBS"
17214 cat >conftest.$ac_ext <<_ACEOF
17215 /* confdefs.h. */
17216 _ACEOF
17217 cat confdefs.h >>conftest.$ac_ext
17218 cat >>conftest.$ac_ext <<_ACEOF
17219 /* end confdefs.h. */
17221 /* Override any GCC internal prototype to avoid an error.
17222 Use char because int might match the return type of a GCC
17223 builtin and then its argument prototype would still apply. */
17224 #ifdef __cplusplus
17225 extern "C"
17226 #endif
17227 char getloadavg ();
17229 main ()
17231 return getloadavg ();
17233 return 0;
17235 _ACEOF
17236 rm -f conftest.$ac_objext conftest$ac_exeext
17237 if { (ac_try="$ac_link"
17238 case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17241 esac
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_link") 2>conftest.er1
17244 ac_status=$?
17245 grep -v '^ *+' conftest.er1 >conftest.err
17246 rm -f conftest.er1
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } && {
17250 test -z "$ac_c_werror_flag" ||
17251 test ! -s conftest.err
17252 } && test -s conftest$ac_exeext &&
17253 $as_test_x conftest$ac_exeext; then
17254 ac_cv_lib_util_getloadavg=yes
17255 else
17256 echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17259 ac_cv_lib_util_getloadavg=no
17262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17263 conftest$ac_exeext conftest.$ac_ext
17264 LIBS=$ac_check_lib_save_LIBS
17266 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17267 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17268 if test $ac_cv_lib_util_getloadavg = yes; then
17269 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17274 if test $ac_have_func = no; then
17275 # There is a commonly available library for RS/6000 AIX.
17276 # Since it is not a standard part of AIX, it might be installed locally.
17277 ac_getloadavg_LIBS=$LIBS
17278 LIBS="-L/usr/local/lib $LIBS"
17279 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17280 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17281 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 else
17284 ac_check_lib_save_LIBS=$LIBS
17285 LIBS="-lgetloadavg $LIBS"
17286 cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h. */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17293 /* Override any GCC internal prototype to avoid an error.
17294 Use char because int might match the return type of a GCC
17295 builtin and then its argument prototype would still apply. */
17296 #ifdef __cplusplus
17297 extern "C"
17298 #endif
17299 char getloadavg ();
17301 main ()
17303 return getloadavg ();
17305 return 0;
17307 _ACEOF
17308 rm -f conftest.$ac_objext conftest$ac_exeext
17309 if { (ac_try="$ac_link"
17310 case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17313 esac
17314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17315 (eval "$ac_link") 2>conftest.er1
17316 ac_status=$?
17317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } && {
17322 test -z "$ac_c_werror_flag" ||
17323 test ! -s conftest.err
17324 } && test -s conftest$ac_exeext &&
17325 $as_test_x conftest$ac_exeext; then
17326 ac_cv_lib_getloadavg_getloadavg=yes
17327 else
17328 echo "$as_me: failed program was:" >&5
17329 sed 's/^/| /' conftest.$ac_ext >&5
17331 ac_cv_lib_getloadavg_getloadavg=no
17334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17335 conftest$ac_exeext conftest.$ac_ext
17336 LIBS=$ac_check_lib_save_LIBS
17338 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17339 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17340 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17341 LIBS="-lgetloadavg $LIBS"
17342 else
17343 LIBS=$ac_getloadavg_LIBS
17348 # Make sure it is really in the library, if we think we found it,
17349 # otherwise set up the replacement function.
17351 for ac_func in getloadavg
17353 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17356 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17357 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 else
17359 cat >conftest.$ac_ext <<_ACEOF
17360 /* confdefs.h. */
17361 _ACEOF
17362 cat confdefs.h >>conftest.$ac_ext
17363 cat >>conftest.$ac_ext <<_ACEOF
17364 /* end confdefs.h. */
17365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17367 #define $ac_func innocuous_$ac_func
17369 /* System header to define __stub macros and hopefully few prototypes,
17370 which can conflict with char $ac_func (); below.
17371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17372 <limits.h> exists even on freestanding compilers. */
17374 #ifdef __STDC__
17375 # include <limits.h>
17376 #else
17377 # include <assert.h>
17378 #endif
17380 #undef $ac_func
17382 /* Override any GCC internal prototype to avoid an error.
17383 Use char because int might match the return type of a GCC
17384 builtin and then its argument prototype would still apply. */
17385 #ifdef __cplusplus
17386 extern "C"
17387 #endif
17388 char $ac_func ();
17389 /* The GNU C library defines this for functions which it implements
17390 to always fail with ENOSYS. Some functions are actually named
17391 something starting with __ and the normal name is an alias. */
17392 #if defined __stub_$ac_func || defined __stub___$ac_func
17393 choke me
17394 #endif
17397 main ()
17399 return $ac_func ();
17401 return 0;
17403 _ACEOF
17404 rm -f conftest.$ac_objext conftest$ac_exeext
17405 if { (ac_try="$ac_link"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_link") 2>conftest.er1
17412 ac_status=$?
17413 grep -v '^ *+' conftest.er1 >conftest.err
17414 rm -f conftest.er1
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } && {
17418 test -z "$ac_c_werror_flag" ||
17419 test ! -s conftest.err
17420 } && test -s conftest$ac_exeext &&
17421 $as_test_x conftest$ac_exeext; then
17422 eval "$as_ac_var=yes"
17423 else
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17427 eval "$as_ac_var=no"
17430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17431 conftest$ac_exeext conftest.$ac_ext
17433 ac_res=`eval echo '${'$as_ac_var'}'`
17434 { echo "$as_me:$LINENO: result: $ac_res" >&5
17435 echo "${ECHO_T}$ac_res" >&6; }
17436 if test `eval echo '${'$as_ac_var'}'` = yes; then
17437 cat >>confdefs.h <<_ACEOF
17438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17439 _ACEOF
17441 else
17442 case " $LIBOBJS " in
17443 *" getloadavg.$ac_objext "* ) ;;
17444 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17446 esac
17449 cat >>confdefs.h <<\_ACEOF
17450 #define C_GETLOADAVG 1
17451 _ACEOF
17453 # Figure out what our getloadavg.c needs.
17454 ac_have_func=no
17455 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17456 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17457 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17458 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17459 echo $ECHO_N "(cached) $ECHO_C" >&6
17461 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17462 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17463 else
17464 # Is the header compilable?
17465 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17466 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17467 cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h. */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 $ac_includes_default
17474 #include <sys/dg_sys_info.h>
17475 _ACEOF
17476 rm -f conftest.$ac_objext
17477 if { (ac_try="$ac_compile"
17478 case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17481 esac
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_compile") 2>conftest.er1
17484 ac_status=$?
17485 grep -v '^ *+' conftest.er1 >conftest.err
17486 rm -f conftest.er1
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } && {
17490 test -z "$ac_c_werror_flag" ||
17491 test ! -s conftest.err
17492 } && test -s conftest.$ac_objext; then
17493 ac_header_compiler=yes
17494 else
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_header_compiler=no
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17503 echo "${ECHO_T}$ac_header_compiler" >&6; }
17505 # Is the header present?
17506 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17507 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17508 cat >conftest.$ac_ext <<_ACEOF
17509 /* confdefs.h. */
17510 _ACEOF
17511 cat confdefs.h >>conftest.$ac_ext
17512 cat >>conftest.$ac_ext <<_ACEOF
17513 /* end confdefs.h. */
17514 #include <sys/dg_sys_info.h>
17515 _ACEOF
17516 if { (ac_try="$ac_cpp conftest.$ac_ext"
17517 case "(($ac_try" in
17518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17519 *) ac_try_echo=$ac_try;;
17520 esac
17521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17523 ac_status=$?
17524 grep -v '^ *+' conftest.er1 >conftest.err
17525 rm -f conftest.er1
17526 cat conftest.err >&5
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } >/dev/null && {
17529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17530 test ! -s conftest.err
17531 }; then
17532 ac_header_preproc=yes
17533 else
17534 echo "$as_me: failed program was:" >&5
17535 sed 's/^/| /' conftest.$ac_ext >&5
17537 ac_header_preproc=no
17540 rm -f conftest.err conftest.$ac_ext
17541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17542 echo "${ECHO_T}$ac_header_preproc" >&6; }
17544 # So? What about this header?
17545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17546 yes:no: )
17547 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17548 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17549 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17550 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17551 ac_header_preproc=yes
17553 no:yes:* )
17554 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17555 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17556 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17557 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17558 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17559 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17560 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17561 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17562 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17563 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17564 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17565 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17568 esac
17569 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17570 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17571 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 else
17574 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17576 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17577 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17580 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17581 ac_have_func=yes
17583 cat >>confdefs.h <<\_ACEOF
17584 #define DGUX 1
17585 _ACEOF
17588 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17589 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17590 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593 ac_check_lib_save_LIBS=$LIBS
17594 LIBS="-ldgc $LIBS"
17595 cat >conftest.$ac_ext <<_ACEOF
17596 /* confdefs.h. */
17597 _ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17602 /* Override any GCC internal prototype to avoid an error.
17603 Use char because int might match the return type of a GCC
17604 builtin and then its argument prototype would still apply. */
17605 #ifdef __cplusplus
17606 extern "C"
17607 #endif
17608 char dg_sys_info ();
17610 main ()
17612 return dg_sys_info ();
17614 return 0;
17616 _ACEOF
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (ac_try="$ac_link"
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_link") 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_exeext &&
17634 $as_test_x conftest$ac_exeext; then
17635 ac_cv_lib_dgc_dg_sys_info=yes
17636 else
17637 echo "$as_me: failed program was:" >&5
17638 sed 's/^/| /' conftest.$ac_ext >&5
17640 ac_cv_lib_dgc_dg_sys_info=no
17643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17644 conftest$ac_exeext conftest.$ac_ext
17645 LIBS=$ac_check_lib_save_LIBS
17647 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17648 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17649 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17650 cat >>confdefs.h <<_ACEOF
17651 #define HAVE_LIBDGC 1
17652 _ACEOF
17654 LIBS="-ldgc $LIBS"
17662 if test "${ac_cv_header_locale_h+set}" = set; then
17663 { echo "$as_me:$LINENO: checking for locale.h" >&5
17664 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17665 if test "${ac_cv_header_locale_h+set}" = set; then
17666 echo $ECHO_N "(cached) $ECHO_C" >&6
17668 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17669 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17670 else
17671 # Is the header compilable?
17672 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17673 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17674 cat >conftest.$ac_ext <<_ACEOF
17675 /* confdefs.h. */
17676 _ACEOF
17677 cat confdefs.h >>conftest.$ac_ext
17678 cat >>conftest.$ac_ext <<_ACEOF
17679 /* end confdefs.h. */
17680 $ac_includes_default
17681 #include <locale.h>
17682 _ACEOF
17683 rm -f conftest.$ac_objext
17684 if { (ac_try="$ac_compile"
17685 case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17688 esac
17689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_compile") 2>conftest.er1
17691 ac_status=$?
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } && {
17697 test -z "$ac_c_werror_flag" ||
17698 test ! -s conftest.err
17699 } && test -s conftest.$ac_objext; then
17700 ac_header_compiler=yes
17701 else
17702 echo "$as_me: failed program was:" >&5
17703 sed 's/^/| /' conftest.$ac_ext >&5
17705 ac_header_compiler=no
17708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17710 echo "${ECHO_T}$ac_header_compiler" >&6; }
17712 # Is the header present?
17713 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17714 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17715 cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h. */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 #include <locale.h>
17722 _ACEOF
17723 if { (ac_try="$ac_cpp conftest.$ac_ext"
17724 case "(($ac_try" in
17725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726 *) ac_try_echo=$ac_try;;
17727 esac
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17730 ac_status=$?
17731 grep -v '^ *+' conftest.er1 >conftest.err
17732 rm -f conftest.er1
17733 cat conftest.err >&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); } >/dev/null && {
17736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17737 test ! -s conftest.err
17738 }; then
17739 ac_header_preproc=yes
17740 else
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17744 ac_header_preproc=no
17747 rm -f conftest.err conftest.$ac_ext
17748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17749 echo "${ECHO_T}$ac_header_preproc" >&6; }
17751 # So? What about this header?
17752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17753 yes:no: )
17754 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17755 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17757 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17758 ac_header_preproc=yes
17760 no:yes:* )
17761 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17762 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17763 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17764 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17765 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17766 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17767 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17768 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17769 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17770 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17771 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17772 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17775 esac
17776 { echo "$as_me:$LINENO: checking for locale.h" >&5
17777 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17778 if test "${ac_cv_header_locale_h+set}" = set; then
17779 echo $ECHO_N "(cached) $ECHO_C" >&6
17780 else
17781 ac_cv_header_locale_h=$ac_header_preproc
17783 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17784 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17790 for ac_func in setlocale
17792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17793 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17795 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17797 else
17798 cat >conftest.$ac_ext <<_ACEOF
17799 /* confdefs.h. */
17800 _ACEOF
17801 cat confdefs.h >>conftest.$ac_ext
17802 cat >>conftest.$ac_ext <<_ACEOF
17803 /* end confdefs.h. */
17804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17806 #define $ac_func innocuous_$ac_func
17808 /* System header to define __stub macros and hopefully few prototypes,
17809 which can conflict with char $ac_func (); below.
17810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17811 <limits.h> exists even on freestanding compilers. */
17813 #ifdef __STDC__
17814 # include <limits.h>
17815 #else
17816 # include <assert.h>
17817 #endif
17819 #undef $ac_func
17821 /* Override any GCC internal prototype to avoid an error.
17822 Use char because int might match the return type of a GCC
17823 builtin and then its argument prototype would still apply. */
17824 #ifdef __cplusplus
17825 extern "C"
17826 #endif
17827 char $ac_func ();
17828 /* The GNU C library defines this for functions which it implements
17829 to always fail with ENOSYS. Some functions are actually named
17830 something starting with __ and the normal name is an alias. */
17831 #if defined __stub_$ac_func || defined __stub___$ac_func
17832 choke me
17833 #endif
17836 main ()
17838 return $ac_func ();
17840 return 0;
17842 _ACEOF
17843 rm -f conftest.$ac_objext conftest$ac_exeext
17844 if { (ac_try="$ac_link"
17845 case "(($ac_try" in
17846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17847 *) ac_try_echo=$ac_try;;
17848 esac
17849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17850 (eval "$ac_link") 2>conftest.er1
17851 ac_status=$?
17852 grep -v '^ *+' conftest.er1 >conftest.err
17853 rm -f conftest.er1
17854 cat conftest.err >&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } && {
17857 test -z "$ac_c_werror_flag" ||
17858 test ! -s conftest.err
17859 } && test -s conftest$ac_exeext &&
17860 $as_test_x conftest$ac_exeext; then
17861 eval "$as_ac_var=yes"
17862 else
17863 echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17866 eval "$as_ac_var=no"
17869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17870 conftest$ac_exeext conftest.$ac_ext
17872 ac_res=`eval echo '${'$as_ac_var'}'`
17873 { echo "$as_me:$LINENO: result: $ac_res" >&5
17874 echo "${ECHO_T}$ac_res" >&6; }
17875 if test `eval echo '${'$as_ac_var'}'` = yes; then
17876 cat >>confdefs.h <<_ACEOF
17877 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17878 _ACEOF
17881 done
17884 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17885 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17886 # Irix 4.0.5F has the header but not the library.
17887 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17888 ac_have_func=yes
17890 cat >>confdefs.h <<\_ACEOF
17891 #define SVR4 1
17892 _ACEOF
17896 if test $ac_have_func = no; then
17897 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17898 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17899 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17900 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17901 echo $ECHO_N "(cached) $ECHO_C" >&6
17903 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17904 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17905 else
17906 # Is the header compilable?
17907 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17908 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17909 cat >conftest.$ac_ext <<_ACEOF
17910 /* confdefs.h. */
17911 _ACEOF
17912 cat confdefs.h >>conftest.$ac_ext
17913 cat >>conftest.$ac_ext <<_ACEOF
17914 /* end confdefs.h. */
17915 $ac_includes_default
17916 #include <inq_stats/cpustats.h>
17917 _ACEOF
17918 rm -f conftest.$ac_objext
17919 if { (ac_try="$ac_compile"
17920 case "(($ac_try" in
17921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17922 *) ac_try_echo=$ac_try;;
17923 esac
17924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17925 (eval "$ac_compile") 2>conftest.er1
17926 ac_status=$?
17927 grep -v '^ *+' conftest.er1 >conftest.err
17928 rm -f conftest.er1
17929 cat conftest.err >&5
17930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17931 (exit $ac_status); } && {
17932 test -z "$ac_c_werror_flag" ||
17933 test ! -s conftest.err
17934 } && test -s conftest.$ac_objext; then
17935 ac_header_compiler=yes
17936 else
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 ac_header_compiler=no
17943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17944 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17945 echo "${ECHO_T}$ac_header_compiler" >&6; }
17947 # Is the header present?
17948 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17949 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17950 cat >conftest.$ac_ext <<_ACEOF
17951 /* confdefs.h. */
17952 _ACEOF
17953 cat confdefs.h >>conftest.$ac_ext
17954 cat >>conftest.$ac_ext <<_ACEOF
17955 /* end confdefs.h. */
17956 #include <inq_stats/cpustats.h>
17957 _ACEOF
17958 if { (ac_try="$ac_cpp conftest.$ac_ext"
17959 case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17962 esac
17963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17964 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17965 ac_status=$?
17966 grep -v '^ *+' conftest.er1 >conftest.err
17967 rm -f conftest.er1
17968 cat conftest.err >&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); } >/dev/null && {
17971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17972 test ! -s conftest.err
17973 }; then
17974 ac_header_preproc=yes
17975 else
17976 echo "$as_me: failed program was:" >&5
17977 sed 's/^/| /' conftest.$ac_ext >&5
17979 ac_header_preproc=no
17982 rm -f conftest.err conftest.$ac_ext
17983 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17984 echo "${ECHO_T}$ac_header_preproc" >&6; }
17986 # So? What about this header?
17987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17988 yes:no: )
17989 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17990 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17991 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17992 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17993 ac_header_preproc=yes
17995 no:yes:* )
17996 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17997 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17998 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17999 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18000 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18001 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18002 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18003 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18004 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18005 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18006 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18007 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18010 esac
18011 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18012 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18013 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18015 else
18016 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18018 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18019 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18022 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18023 ac_have_func=yes
18025 cat >>confdefs.h <<\_ACEOF
18026 #define UMAX 1
18027 _ACEOF
18030 cat >>confdefs.h <<\_ACEOF
18031 #define UMAX4_3 1
18032 _ACEOF
18039 if test $ac_have_func = no; then
18040 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18041 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18042 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18043 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18047 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18048 else
18049 # Is the header compilable?
18050 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18051 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18052 cat >conftest.$ac_ext <<_ACEOF
18053 /* confdefs.h. */
18054 _ACEOF
18055 cat confdefs.h >>conftest.$ac_ext
18056 cat >>conftest.$ac_ext <<_ACEOF
18057 /* end confdefs.h. */
18058 $ac_includes_default
18059 #include <sys/cpustats.h>
18060 _ACEOF
18061 rm -f conftest.$ac_objext
18062 if { (ac_try="$ac_compile"
18063 case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18066 esac
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_compile") 2>conftest.er1
18069 ac_status=$?
18070 grep -v '^ *+' conftest.er1 >conftest.err
18071 rm -f conftest.er1
18072 cat conftest.err >&5
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); } && {
18075 test -z "$ac_c_werror_flag" ||
18076 test ! -s conftest.err
18077 } && test -s conftest.$ac_objext; then
18078 ac_header_compiler=yes
18079 else
18080 echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.$ac_ext >&5
18083 ac_header_compiler=no
18086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18088 echo "${ECHO_T}$ac_header_compiler" >&6; }
18090 # Is the header present?
18091 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18092 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18093 cat >conftest.$ac_ext <<_ACEOF
18094 /* confdefs.h. */
18095 _ACEOF
18096 cat confdefs.h >>conftest.$ac_ext
18097 cat >>conftest.$ac_ext <<_ACEOF
18098 /* end confdefs.h. */
18099 #include <sys/cpustats.h>
18100 _ACEOF
18101 if { (ac_try="$ac_cpp conftest.$ac_ext"
18102 case "(($ac_try" in
18103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18104 *) ac_try_echo=$ac_try;;
18105 esac
18106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18108 ac_status=$?
18109 grep -v '^ *+' conftest.er1 >conftest.err
18110 rm -f conftest.er1
18111 cat conftest.err >&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); } >/dev/null && {
18114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18115 test ! -s conftest.err
18116 }; then
18117 ac_header_preproc=yes
18118 else
18119 echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18122 ac_header_preproc=no
18125 rm -f conftest.err conftest.$ac_ext
18126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18127 echo "${ECHO_T}$ac_header_preproc" >&6; }
18129 # So? What about this header?
18130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18131 yes:no: )
18132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18133 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18135 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18136 ac_header_preproc=yes
18138 no:yes:* )
18139 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18140 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18141 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18142 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18143 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18144 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18145 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18146 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18147 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18148 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18149 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18150 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18153 esac
18154 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18155 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18156 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18157 echo $ECHO_N "(cached) $ECHO_C" >&6
18158 else
18159 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18161 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18162 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18165 if test $ac_cv_header_sys_cpustats_h = yes; then
18166 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18167 #define UMAX 1
18168 _ACEOF
18175 if test $ac_have_func = no; then
18177 for ac_header in mach/mach.h
18179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18184 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 ac_res=`eval echo '${'$as_ac_Header'}'`
18187 { echo "$as_me:$LINENO: result: $ac_res" >&5
18188 echo "${ECHO_T}$ac_res" >&6; }
18189 else
18190 # Is the header compilable?
18191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18193 cat >conftest.$ac_ext <<_ACEOF
18194 /* confdefs.h. */
18195 _ACEOF
18196 cat confdefs.h >>conftest.$ac_ext
18197 cat >>conftest.$ac_ext <<_ACEOF
18198 /* end confdefs.h. */
18199 $ac_includes_default
18200 #include <$ac_header>
18201 _ACEOF
18202 rm -f conftest.$ac_objext
18203 if { (ac_try="$ac_compile"
18204 case "(($ac_try" in
18205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18206 *) ac_try_echo=$ac_try;;
18207 esac
18208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18209 (eval "$ac_compile") 2>conftest.er1
18210 ac_status=$?
18211 grep -v '^ *+' conftest.er1 >conftest.err
18212 rm -f conftest.er1
18213 cat conftest.err >&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } && {
18216 test -z "$ac_c_werror_flag" ||
18217 test ! -s conftest.err
18218 } && test -s conftest.$ac_objext; then
18219 ac_header_compiler=yes
18220 else
18221 echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.$ac_ext >&5
18224 ac_header_compiler=no
18227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18229 echo "${ECHO_T}$ac_header_compiler" >&6; }
18231 # Is the header present?
18232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18234 cat >conftest.$ac_ext <<_ACEOF
18235 /* confdefs.h. */
18236 _ACEOF
18237 cat confdefs.h >>conftest.$ac_ext
18238 cat >>conftest.$ac_ext <<_ACEOF
18239 /* end confdefs.h. */
18240 #include <$ac_header>
18241 _ACEOF
18242 if { (ac_try="$ac_cpp conftest.$ac_ext"
18243 case "(($ac_try" in
18244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245 *) ac_try_echo=$ac_try;;
18246 esac
18247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18249 ac_status=$?
18250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -f conftest.er1
18252 cat conftest.err >&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } >/dev/null && {
18255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18256 test ! -s conftest.err
18257 }; then
18258 ac_header_preproc=yes
18259 else
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18263 ac_header_preproc=no
18266 rm -f conftest.err conftest.$ac_ext
18267 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18268 echo "${ECHO_T}$ac_header_preproc" >&6; }
18270 # So? What about this header?
18271 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18272 yes:no: )
18273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18274 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18276 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18277 ac_header_preproc=yes
18279 no:yes:* )
18280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18281 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18283 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18285 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18287 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18289 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18291 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18294 esac
18295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18298 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 else
18300 eval "$as_ac_Header=\$ac_header_preproc"
18302 ac_res=`eval echo '${'$as_ac_Header'}'`
18303 { echo "$as_me:$LINENO: result: $ac_res" >&5
18304 echo "${ECHO_T}$ac_res" >&6; }
18307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18308 cat >>confdefs.h <<_ACEOF
18309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18310 _ACEOF
18314 done
18319 for ac_header in nlist.h
18321 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18322 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18326 echo $ECHO_N "(cached) $ECHO_C" >&6
18328 ac_res=`eval echo '${'$as_ac_Header'}'`
18329 { echo "$as_me:$LINENO: result: $ac_res" >&5
18330 echo "${ECHO_T}$ac_res" >&6; }
18331 else
18332 # Is the header compilable?
18333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18335 cat >conftest.$ac_ext <<_ACEOF
18336 /* confdefs.h. */
18337 _ACEOF
18338 cat confdefs.h >>conftest.$ac_ext
18339 cat >>conftest.$ac_ext <<_ACEOF
18340 /* end confdefs.h. */
18341 $ac_includes_default
18342 #include <$ac_header>
18343 _ACEOF
18344 rm -f conftest.$ac_objext
18345 if { (ac_try="$ac_compile"
18346 case "(($ac_try" in
18347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18348 *) ac_try_echo=$ac_try;;
18349 esac
18350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18351 (eval "$ac_compile") 2>conftest.er1
18352 ac_status=$?
18353 grep -v '^ *+' conftest.er1 >conftest.err
18354 rm -f conftest.er1
18355 cat conftest.err >&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); } && {
18358 test -z "$ac_c_werror_flag" ||
18359 test ! -s conftest.err
18360 } && test -s conftest.$ac_objext; then
18361 ac_header_compiler=yes
18362 else
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18366 ac_header_compiler=no
18369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18371 echo "${ECHO_T}$ac_header_compiler" >&6; }
18373 # Is the header present?
18374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18376 cat >conftest.$ac_ext <<_ACEOF
18377 /* confdefs.h. */
18378 _ACEOF
18379 cat confdefs.h >>conftest.$ac_ext
18380 cat >>conftest.$ac_ext <<_ACEOF
18381 /* end confdefs.h. */
18382 #include <$ac_header>
18383 _ACEOF
18384 if { (ac_try="$ac_cpp conftest.$ac_ext"
18385 case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18388 esac
18389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18391 ac_status=$?
18392 grep -v '^ *+' conftest.er1 >conftest.err
18393 rm -f conftest.er1
18394 cat conftest.err >&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); } >/dev/null && {
18397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18398 test ! -s conftest.err
18399 }; then
18400 ac_header_preproc=yes
18401 else
18402 echo "$as_me: failed program was:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18405 ac_header_preproc=no
18408 rm -f conftest.err conftest.$ac_ext
18409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18410 echo "${ECHO_T}$ac_header_preproc" >&6; }
18412 # So? What about this header?
18413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18414 yes:no: )
18415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18419 ac_header_preproc=yes
18421 no:yes:* )
18422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18436 esac
18437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18439 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18441 else
18442 eval "$as_ac_Header=\$ac_header_preproc"
18444 ac_res=`eval echo '${'$as_ac_Header'}'`
18445 { echo "$as_me:$LINENO: result: $ac_res" >&5
18446 echo "${ECHO_T}$ac_res" >&6; }
18449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18450 cat >>confdefs.h <<_ACEOF
18451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18452 _ACEOF
18453 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18454 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18455 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18456 echo $ECHO_N "(cached) $ECHO_C" >&6
18457 else
18458 cat >conftest.$ac_ext <<_ACEOF
18459 /* confdefs.h. */
18460 _ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 #include <nlist.h>
18467 main ()
18469 static struct nlist ac_aggr;
18470 if (ac_aggr.n_un.n_name)
18471 return 0;
18473 return 0;
18475 _ACEOF
18476 rm -f conftest.$ac_objext
18477 if { (ac_try="$ac_compile"
18478 case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18481 esac
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483 (eval "$ac_compile") 2>conftest.er1
18484 ac_status=$?
18485 grep -v '^ *+' conftest.er1 >conftest.err
18486 rm -f conftest.er1
18487 cat conftest.err >&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } && {
18490 test -z "$ac_c_werror_flag" ||
18491 test ! -s conftest.err
18492 } && test -s conftest.$ac_objext; then
18493 ac_cv_member_struct_nlist_n_un_n_name=yes
18494 else
18495 echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18498 cat >conftest.$ac_ext <<_ACEOF
18499 /* confdefs.h. */
18500 _ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18504 #include <nlist.h>
18507 main ()
18509 static struct nlist ac_aggr;
18510 if (sizeof ac_aggr.n_un.n_name)
18511 return 0;
18513 return 0;
18515 _ACEOF
18516 rm -f conftest.$ac_objext
18517 if { (ac_try="$ac_compile"
18518 case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18521 esac
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_compile") 2>conftest.er1
18524 ac_status=$?
18525 grep -v '^ *+' conftest.er1 >conftest.err
18526 rm -f conftest.er1
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); } && {
18530 test -z "$ac_c_werror_flag" ||
18531 test ! -s conftest.err
18532 } && test -s conftest.$ac_objext; then
18533 ac_cv_member_struct_nlist_n_un_n_name=yes
18534 else
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18538 ac_cv_member_struct_nlist_n_un_n_name=no
18541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18546 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18547 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18548 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18550 cat >>confdefs.h <<_ACEOF
18551 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18552 _ACEOF
18555 cat >>confdefs.h <<\_ACEOF
18556 #define NLIST_NAME_UNION 1
18557 _ACEOF
18564 done
18567 done
18570 # Some definitions of getloadavg require that the program be installed setgid.
18571 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18572 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18573 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18574 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576 cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h. */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18582 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18583 #ifdef LDAV_PRIVILEGED
18584 Yowza Am I SETGID yet
18585 #endif
18586 _ACEOF
18587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18588 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18589 ac_cv_func_getloadavg_setgid=yes
18590 else
18591 ac_cv_func_getloadavg_setgid=no
18593 rm -f conftest*
18596 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18597 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18598 if test $ac_cv_func_getloadavg_setgid = yes; then
18599 NEED_SETGID=true
18601 cat >>confdefs.h <<\_ACEOF
18602 #define GETLOADAVG_PRIVILEGED 1
18603 _ACEOF
18605 else
18606 NEED_SETGID=false
18609 if test $ac_cv_func_getloadavg_setgid = yes; then
18610 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18611 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18612 if test "${ac_cv_group_kmem+set}" = set; then
18613 echo $ECHO_N "(cached) $ECHO_C" >&6
18614 else
18615 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18616 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18617 # If we got an error (system does not support symlinks), try without -L.
18618 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18619 ac_cv_group_kmem=`echo $ac_ls_output \
18620 | sed -ne 's/[ ][ ]*/ /g;
18621 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18622 / /s/.* //;p;'`
18625 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18626 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18627 KMEM_GROUP=$ac_cv_group_kmem
18629 if test "x$ac_save_LIBS" = x; then
18630 GETLOADAVG_LIBS=$LIBS
18631 else
18632 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18634 LIBS=$ac_save_LIBS
18638 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18639 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18640 if test "${ac_cv_sys_largefile_source+set}" = set; then
18641 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 else
18643 while :; do
18644 cat >conftest.$ac_ext <<_ACEOF
18645 /* confdefs.h. */
18646 _ACEOF
18647 cat confdefs.h >>conftest.$ac_ext
18648 cat >>conftest.$ac_ext <<_ACEOF
18649 /* end confdefs.h. */
18650 #include <stdio.h>
18652 main ()
18654 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18656 return 0;
18658 _ACEOF
18659 rm -f conftest.$ac_objext conftest$ac_exeext
18660 if { (ac_try="$ac_link"
18661 case "(($ac_try" in
18662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18663 *) ac_try_echo=$ac_try;;
18664 esac
18665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18666 (eval "$ac_link") 2>conftest.er1
18667 ac_status=$?
18668 grep -v '^ *+' conftest.er1 >conftest.err
18669 rm -f conftest.er1
18670 cat conftest.err >&5
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); } && {
18673 test -z "$ac_c_werror_flag" ||
18674 test ! -s conftest.err
18675 } && test -s conftest$ac_exeext &&
18676 $as_test_x conftest$ac_exeext; then
18677 ac_cv_sys_largefile_source=no; break
18678 else
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18686 conftest$ac_exeext conftest.$ac_ext
18687 cat >conftest.$ac_ext <<_ACEOF
18688 /* confdefs.h. */
18689 _ACEOF
18690 cat confdefs.h >>conftest.$ac_ext
18691 cat >>conftest.$ac_ext <<_ACEOF
18692 /* end confdefs.h. */
18693 #define _LARGEFILE_SOURCE 1
18694 #include <stdio.h>
18696 main ()
18698 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18700 return 0;
18702 _ACEOF
18703 rm -f conftest.$ac_objext conftest$ac_exeext
18704 if { (ac_try="$ac_link"
18705 case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18708 esac
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_link") 2>conftest.er1
18711 ac_status=$?
18712 grep -v '^ *+' conftest.er1 >conftest.err
18713 rm -f conftest.er1
18714 cat conftest.err >&5
18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18716 (exit $ac_status); } && {
18717 test -z "$ac_c_werror_flag" ||
18718 test ! -s conftest.err
18719 } && test -s conftest$ac_exeext &&
18720 $as_test_x conftest$ac_exeext; then
18721 ac_cv_sys_largefile_source=1; break
18722 else
18723 echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18730 conftest$ac_exeext conftest.$ac_ext
18731 ac_cv_sys_largefile_source=unknown
18732 break
18733 done
18735 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18736 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18737 case $ac_cv_sys_largefile_source in #(
18738 no | unknown) ;;
18740 cat >>confdefs.h <<_ACEOF
18741 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18742 _ACEOF
18744 esac
18745 rm -f conftest*
18747 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18748 # in glibc 2.1.3, but that breaks too many other things.
18749 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18750 if test $ac_cv_sys_largefile_source != unknown; then
18752 cat >>confdefs.h <<\_ACEOF
18753 #define HAVE_FSEEKO 1
18754 _ACEOF
18759 # Configure getopt.
18760 # getopt.m4 serial 10
18762 # The getopt module assume you want GNU getopt, with getopt_long etc,
18763 # rather than vanilla POSIX getopt. This means your your code should
18764 # always include <getopt.h> for the getopt prototypes.
18776 # Prerequisites of lib/getopt*.
18781 GETOPT_H=
18783 for ac_header in getopt.h
18785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18790 echo $ECHO_N "(cached) $ECHO_C" >&6
18792 ac_res=`eval echo '${'$as_ac_Header'}'`
18793 { echo "$as_me:$LINENO: result: $ac_res" >&5
18794 echo "${ECHO_T}$ac_res" >&6; }
18795 else
18796 # Is the header compilable?
18797 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18798 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18799 cat >conftest.$ac_ext <<_ACEOF
18800 /* confdefs.h. */
18801 _ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18805 $ac_includes_default
18806 #include <$ac_header>
18807 _ACEOF
18808 rm -f conftest.$ac_objext
18809 if { (ac_try="$ac_compile"
18810 case "(($ac_try" in
18811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18813 esac
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815 (eval "$ac_compile") 2>conftest.er1
18816 ac_status=$?
18817 grep -v '^ *+' conftest.er1 >conftest.err
18818 rm -f conftest.er1
18819 cat conftest.err >&5
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); } && {
18822 test -z "$ac_c_werror_flag" ||
18823 test ! -s conftest.err
18824 } && test -s conftest.$ac_objext; then
18825 ac_header_compiler=yes
18826 else
18827 echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.$ac_ext >&5
18830 ac_header_compiler=no
18833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18835 echo "${ECHO_T}$ac_header_compiler" >&6; }
18837 # Is the header present?
18838 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18840 cat >conftest.$ac_ext <<_ACEOF
18841 /* confdefs.h. */
18842 _ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h. */
18846 #include <$ac_header>
18847 _ACEOF
18848 if { (ac_try="$ac_cpp conftest.$ac_ext"
18849 case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18852 esac
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18855 ac_status=$?
18856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } >/dev/null && {
18861 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18862 test ! -s conftest.err
18863 }; then
18864 ac_header_preproc=yes
18865 else
18866 echo "$as_me: failed program was:" >&5
18867 sed 's/^/| /' conftest.$ac_ext >&5
18869 ac_header_preproc=no
18872 rm -f conftest.err conftest.$ac_ext
18873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18874 echo "${ECHO_T}$ac_header_preproc" >&6; }
18876 # So? What about this header?
18877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18878 yes:no: )
18879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18880 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18882 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18883 ac_header_preproc=yes
18885 no:yes:* )
18886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18887 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18889 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18891 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18893 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18895 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18897 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18900 esac
18901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18904 echo $ECHO_N "(cached) $ECHO_C" >&6
18905 else
18906 eval "$as_ac_Header=\$ac_header_preproc"
18908 ac_res=`eval echo '${'$as_ac_Header'}'`
18909 { echo "$as_me:$LINENO: result: $ac_res" >&5
18910 echo "${ECHO_T}$ac_res" >&6; }
18913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18914 cat >>confdefs.h <<_ACEOF
18915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18916 _ACEOF
18918 else
18919 GETOPT_H=getopt.h
18922 done
18924 if test -z "$GETOPT_H"; then
18926 for ac_func in getopt_long_only
18928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18932 echo $ECHO_N "(cached) $ECHO_C" >&6
18933 else
18934 cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h. */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h. */
18940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18942 #define $ac_func innocuous_$ac_func
18944 /* System header to define __stub macros and hopefully few prototypes,
18945 which can conflict with char $ac_func (); below.
18946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18947 <limits.h> exists even on freestanding compilers. */
18949 #ifdef __STDC__
18950 # include <limits.h>
18951 #else
18952 # include <assert.h>
18953 #endif
18955 #undef $ac_func
18957 /* Override any GCC internal prototype to avoid an error.
18958 Use char because int might match the return type of a GCC
18959 builtin and then its argument prototype would still apply. */
18960 #ifdef __cplusplus
18961 extern "C"
18962 #endif
18963 char $ac_func ();
18964 /* The GNU C library defines this for functions which it implements
18965 to always fail with ENOSYS. Some functions are actually named
18966 something starting with __ and the normal name is an alias. */
18967 #if defined __stub_$ac_func || defined __stub___$ac_func
18968 choke me
18969 #endif
18972 main ()
18974 return $ac_func ();
18976 return 0;
18978 _ACEOF
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983 *) ac_try_echo=$ac_try;;
18984 esac
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986 (eval "$ac_link") 2>conftest.er1
18987 ac_status=$?
18988 grep -v '^ *+' conftest.er1 >conftest.err
18989 rm -f conftest.er1
18990 cat conftest.err >&5
18991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992 (exit $ac_status); } && {
18993 test -z "$ac_c_werror_flag" ||
18994 test ! -s conftest.err
18995 } && test -s conftest$ac_exeext &&
18996 $as_test_x conftest$ac_exeext; then
18997 eval "$as_ac_var=yes"
18998 else
18999 echo "$as_me: failed program was:" >&5
19000 sed 's/^/| /' conftest.$ac_ext >&5
19002 eval "$as_ac_var=no"
19005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19006 conftest$ac_exeext conftest.$ac_ext
19008 ac_res=`eval echo '${'$as_ac_var'}'`
19009 { echo "$as_me:$LINENO: result: $ac_res" >&5
19010 echo "${ECHO_T}$ac_res" >&6; }
19011 if test `eval echo '${'$as_ac_var'}'` = yes; then
19012 cat >>confdefs.h <<_ACEOF
19013 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19014 _ACEOF
19016 else
19017 GETOPT_H=getopt.h
19019 done
19023 if test -z "$GETOPT_H"; then
19024 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19025 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19026 if test "${ac_cv_have_decl_optreset+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 optreset
19041 (void) optreset;
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_optreset=yes
19066 else
19067 echo "$as_me: failed program was:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19070 ac_cv_have_decl_optreset=no
19073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19076 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19077 if test $ac_cv_have_decl_optreset = yes; then
19078 GETOPT_H=getopt.h
19083 if test -z "$GETOPT_H"; then
19084 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19085 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19086 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19087 echo $ECHO_N "(cached) $ECHO_C" >&6
19088 else
19089 if test "$cross_compiling" = yes; then
19090 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19091 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19092 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19093 echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095 cat >conftest.$ac_ext <<_ACEOF
19096 /* confdefs.h. */
19097 _ACEOF
19098 cat confdefs.h >>conftest.$ac_ext
19099 cat >>conftest.$ac_ext <<_ACEOF
19100 /* end confdefs.h. */
19101 #include <getopt.h>
19104 main ()
19106 #ifndef getopt_clip
19107 (void) getopt_clip;
19108 #endif
19111 return 0;
19113 _ACEOF
19114 rm -f conftest.$ac_objext
19115 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19122 ac_status=$?
19123 grep -v '^ *+' conftest.er1 >conftest.err
19124 rm -f conftest.er1
19125 cat conftest.err >&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); } && {
19128 test -z "$ac_c_werror_flag" ||
19129 test ! -s conftest.err
19130 } && test -s conftest.$ac_objext; then
19131 ac_cv_have_decl_getopt_clip=yes
19132 else
19133 echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19136 ac_cv_have_decl_getopt_clip=no
19139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19141 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19142 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19143 if test $ac_cv_have_decl_getopt_clip = yes; then
19144 gl_cv_func_gnu_getopt=no
19145 else
19146 gl_cv_func_gnu_getopt=yes
19149 else
19150 cat >conftest.$ac_ext <<_ACEOF
19151 /* confdefs.h. */
19152 _ACEOF
19153 cat confdefs.h >>conftest.$ac_ext
19154 cat >>conftest.$ac_ext <<_ACEOF
19155 /* end confdefs.h. */
19156 #include <getopt.h>
19158 main ()
19161 char *myargv[3];
19162 myargv[0] = "conftest";
19163 myargv[1] = "-+";
19164 myargv[2] = 0;
19165 return getopt (2, myargv, "+a") != '?';
19168 return 0;
19170 _ACEOF
19171 rm -f conftest$ac_exeext
19172 if { (ac_try="$ac_link"
19173 case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19176 esac
19177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_link") 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19182 { (case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185 esac
19186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_try") 2>&5
19188 ac_status=$?
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); }; }; then
19191 gl_cv_func_gnu_getopt=yes
19192 else
19193 echo "$as_me: program exited with status $ac_status" >&5
19194 echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19197 ( exit $ac_status )
19198 gl_cv_func_gnu_getopt=no
19200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19205 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19206 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19207 if test "$gl_cv_func_gnu_getopt" = "no"; then
19208 GETOPT_H=getopt.h
19214 if test -n "$GETOPT_H"; then
19217 GETOPT_H=getopt.h
19219 cat >>confdefs.h <<\_ACEOF
19220 #define __GETOPT_PREFIX rpl_
19221 _ACEOF
19226 GETOPTOBJS='getopt.o getopt1.o'
19233 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19234 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19235 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19236 echo $ECHO_N "(cached) $ECHO_C" >&6
19237 else
19238 # Use it with a single arg.
19239 cat >conftest.$ac_ext <<_ACEOF
19240 /* confdefs.h. */
19241 _ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 $ac_includes_default
19247 main ()
19249 getpgrp (0);
19251 return 0;
19253 _ACEOF
19254 rm -f conftest.$ac_objext
19255 if { (ac_try="$ac_compile"
19256 case "(($ac_try" in
19257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19258 *) ac_try_echo=$ac_try;;
19259 esac
19260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19261 (eval "$ac_compile") 2>conftest.er1
19262 ac_status=$?
19263 grep -v '^ *+' conftest.er1 >conftest.err
19264 rm -f conftest.er1
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } && {
19268 test -z "$ac_c_werror_flag" ||
19269 test ! -s conftest.err
19270 } && test -s conftest.$ac_objext; then
19271 ac_cv_func_getpgrp_void=no
19272 else
19273 echo "$as_me: failed program was:" >&5
19274 sed 's/^/| /' conftest.$ac_ext >&5
19276 ac_cv_func_getpgrp_void=yes
19279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19283 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19284 if test $ac_cv_func_getpgrp_void = yes; then
19286 cat >>confdefs.h <<\_ACEOF
19287 #define GETPGRP_VOID 1
19288 _ACEOF
19294 for ac_func in strftime
19296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19300 echo $ECHO_N "(cached) $ECHO_C" >&6
19301 else
19302 cat >conftest.$ac_ext <<_ACEOF
19303 /* confdefs.h. */
19304 _ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19310 #define $ac_func innocuous_$ac_func
19312 /* System header to define __stub macros and hopefully few prototypes,
19313 which can conflict with char $ac_func (); below.
19314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19315 <limits.h> exists even on freestanding compilers. */
19317 #ifdef __STDC__
19318 # include <limits.h>
19319 #else
19320 # include <assert.h>
19321 #endif
19323 #undef $ac_func
19325 /* Override any GCC internal prototype to avoid an error.
19326 Use char because int might match the return type of a GCC
19327 builtin and then its argument prototype would still apply. */
19328 #ifdef __cplusplus
19329 extern "C"
19330 #endif
19331 char $ac_func ();
19332 /* The GNU C library defines this for functions which it implements
19333 to always fail with ENOSYS. Some functions are actually named
19334 something starting with __ and the normal name is an alias. */
19335 #if defined __stub_$ac_func || defined __stub___$ac_func
19336 choke me
19337 #endif
19340 main ()
19342 return $ac_func ();
19344 return 0;
19346 _ACEOF
19347 rm -f conftest.$ac_objext conftest$ac_exeext
19348 if { (ac_try="$ac_link"
19349 case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19352 esac
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_link") 2>conftest.er1
19355 ac_status=$?
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } && {
19361 test -z "$ac_c_werror_flag" ||
19362 test ! -s conftest.err
19363 } && test -s conftest$ac_exeext &&
19364 $as_test_x conftest$ac_exeext; then
19365 eval "$as_ac_var=yes"
19366 else
19367 echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19370 eval "$as_ac_var=no"
19373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19374 conftest$ac_exeext conftest.$ac_ext
19376 ac_res=`eval echo '${'$as_ac_var'}'`
19377 { echo "$as_me:$LINENO: result: $ac_res" >&5
19378 echo "${ECHO_T}$ac_res" >&6; }
19379 if test `eval echo '${'$as_ac_var'}'` = yes; then
19380 cat >>confdefs.h <<_ACEOF
19381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19382 _ACEOF
19384 else
19385 # strftime is in -lintl on SCO UNIX.
19386 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19387 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19388 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19390 else
19391 ac_check_lib_save_LIBS=$LIBS
19392 LIBS="-lintl $LIBS"
19393 cat >conftest.$ac_ext <<_ACEOF
19394 /* confdefs.h. */
19395 _ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19400 /* Override any GCC internal prototype to avoid an error.
19401 Use char because int might match the return type of a GCC
19402 builtin and then its argument prototype would still apply. */
19403 #ifdef __cplusplus
19404 extern "C"
19405 #endif
19406 char strftime ();
19408 main ()
19410 return strftime ();
19412 return 0;
19414 _ACEOF
19415 rm -f conftest.$ac_objext conftest$ac_exeext
19416 if { (ac_try="$ac_link"
19417 case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19420 esac
19421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_link") 2>conftest.er1
19423 ac_status=$?
19424 grep -v '^ *+' conftest.er1 >conftest.err
19425 rm -f conftest.er1
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } && {
19429 test -z "$ac_c_werror_flag" ||
19430 test ! -s conftest.err
19431 } && test -s conftest$ac_exeext &&
19432 $as_test_x conftest$ac_exeext; then
19433 ac_cv_lib_intl_strftime=yes
19434 else
19435 echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 ac_cv_lib_intl_strftime=no
19441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19442 conftest$ac_exeext conftest.$ac_ext
19443 LIBS=$ac_check_lib_save_LIBS
19445 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19446 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19447 if test $ac_cv_lib_intl_strftime = yes; then
19448 cat >>confdefs.h <<\_ACEOF
19449 #define HAVE_STRFTIME 1
19450 _ACEOF
19452 LIBS="-lintl $LIBS"
19456 done
19459 # UNIX98 PTYs.
19461 for ac_func in grantpt
19463 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19464 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19465 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19466 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 else
19469 cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h. */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h. */
19475 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19476 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19477 #define $ac_func innocuous_$ac_func
19479 /* System header to define __stub macros and hopefully few prototypes,
19480 which can conflict with char $ac_func (); below.
19481 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19482 <limits.h> exists even on freestanding compilers. */
19484 #ifdef __STDC__
19485 # include <limits.h>
19486 #else
19487 # include <assert.h>
19488 #endif
19490 #undef $ac_func
19492 /* Override any GCC internal prototype to avoid an error.
19493 Use char because int might match the return type of a GCC
19494 builtin and then its argument prototype would still apply. */
19495 #ifdef __cplusplus
19496 extern "C"
19497 #endif
19498 char $ac_func ();
19499 /* The GNU C library defines this for functions which it implements
19500 to always fail with ENOSYS. Some functions are actually named
19501 something starting with __ and the normal name is an alias. */
19502 #if defined __stub_$ac_func || defined __stub___$ac_func
19503 choke me
19504 #endif
19507 main ()
19509 return $ac_func ();
19511 return 0;
19513 _ACEOF
19514 rm -f conftest.$ac_objext conftest$ac_exeext
19515 if { (ac_try="$ac_link"
19516 case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19519 esac
19520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_link") 2>conftest.er1
19522 ac_status=$?
19523 grep -v '^ *+' conftest.er1 >conftest.err
19524 rm -f conftest.er1
19525 cat conftest.err >&5
19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527 (exit $ac_status); } && {
19528 test -z "$ac_c_werror_flag" ||
19529 test ! -s conftest.err
19530 } && test -s conftest$ac_exeext &&
19531 $as_test_x conftest$ac_exeext; then
19532 eval "$as_ac_var=yes"
19533 else
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 eval "$as_ac_var=no"
19540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19541 conftest$ac_exeext conftest.$ac_ext
19543 ac_res=`eval echo '${'$as_ac_var'}'`
19544 { echo "$as_me:$LINENO: result: $ac_res" >&5
19545 echo "${ECHO_T}$ac_res" >&6; }
19546 if test `eval echo '${'$as_ac_var'}'` = yes; then
19547 cat >>confdefs.h <<_ACEOF
19548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19549 _ACEOF
19552 done
19555 # PTY-related GNU extensions.
19557 for ac_func in getpt
19559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19564 else
19565 cat >conftest.$ac_ext <<_ACEOF
19566 /* confdefs.h. */
19567 _ACEOF
19568 cat confdefs.h >>conftest.$ac_ext
19569 cat >>conftest.$ac_ext <<_ACEOF
19570 /* end confdefs.h. */
19571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19573 #define $ac_func innocuous_$ac_func
19575 /* System header to define __stub macros and hopefully few prototypes,
19576 which can conflict with char $ac_func (); below.
19577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19578 <limits.h> exists even on freestanding compilers. */
19580 #ifdef __STDC__
19581 # include <limits.h>
19582 #else
19583 # include <assert.h>
19584 #endif
19586 #undef $ac_func
19588 /* Override any GCC internal prototype to avoid an error.
19589 Use char because int might match the return type of a GCC
19590 builtin and then its argument prototype would still apply. */
19591 #ifdef __cplusplus
19592 extern "C"
19593 #endif
19594 char $ac_func ();
19595 /* The GNU C library defines this for functions which it implements
19596 to always fail with ENOSYS. Some functions are actually named
19597 something starting with __ and the normal name is an alias. */
19598 #if defined __stub_$ac_func || defined __stub___$ac_func
19599 choke me
19600 #endif
19603 main ()
19605 return $ac_func ();
19607 return 0;
19609 _ACEOF
19610 rm -f conftest.$ac_objext conftest$ac_exeext
19611 if { (ac_try="$ac_link"
19612 case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19615 esac
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_link") 2>conftest.er1
19618 ac_status=$?
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } && {
19624 test -z "$ac_c_werror_flag" ||
19625 test ! -s conftest.err
19626 } && test -s conftest$ac_exeext &&
19627 $as_test_x conftest$ac_exeext; then
19628 eval "$as_ac_var=yes"
19629 else
19630 echo "$as_me: failed program was:" >&5
19631 sed 's/^/| /' conftest.$ac_ext >&5
19633 eval "$as_ac_var=no"
19636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19637 conftest$ac_exeext conftest.$ac_ext
19639 ac_res=`eval echo '${'$as_ac_var'}'`
19640 { echo "$as_me:$LINENO: result: $ac_res" >&5
19641 echo "${ECHO_T}$ac_res" >&6; }
19642 if test `eval echo '${'$as_ac_var'}'` = yes; then
19643 cat >>confdefs.h <<_ACEOF
19644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19645 _ACEOF
19648 done
19651 # Check this now, so that we will NOT find the above functions in ncurses.
19652 # That is because we have not set up to link ncurses in lib-src.
19653 # It's better to believe a function is not available
19654 # than to expect to find it in ncurses.
19656 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19657 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19658 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19659 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 else
19661 ac_check_lib_save_LIBS=$LIBS
19662 LIBS="-lncurses $LIBS"
19663 cat >conftest.$ac_ext <<_ACEOF
19664 /* confdefs.h. */
19665 _ACEOF
19666 cat confdefs.h >>conftest.$ac_ext
19667 cat >>conftest.$ac_ext <<_ACEOF
19668 /* end confdefs.h. */
19670 /* Override any GCC internal prototype to avoid an error.
19671 Use char because int might match the return type of a GCC
19672 builtin and then its argument prototype would still apply. */
19673 #ifdef __cplusplus
19674 extern "C"
19675 #endif
19676 char tparm ();
19678 main ()
19680 return tparm ();
19682 return 0;
19684 _ACEOF
19685 rm -f conftest.$ac_objext conftest$ac_exeext
19686 if { (ac_try="$ac_link"
19687 case "(($ac_try" in
19688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689 *) ac_try_echo=$ac_try;;
19690 esac
19691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19692 (eval "$ac_link") 2>conftest.er1
19693 ac_status=$?
19694 grep -v '^ *+' conftest.er1 >conftest.err
19695 rm -f conftest.er1
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); } && {
19699 test -z "$ac_c_werror_flag" ||
19700 test ! -s conftest.err
19701 } && test -s conftest$ac_exeext &&
19702 $as_test_x conftest$ac_exeext; then
19703 ac_cv_lib_ncurses_tparm=yes
19704 else
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19708 ac_cv_lib_ncurses_tparm=no
19711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19712 conftest$ac_exeext conftest.$ac_ext
19713 LIBS=$ac_check_lib_save_LIBS
19715 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19716 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19717 if test $ac_cv_lib_ncurses_tparm = yes; then
19718 cat >>confdefs.h <<_ACEOF
19719 #define HAVE_LIBNCURSES 1
19720 _ACEOF
19722 LIBS="-lncurses $LIBS"
19727 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19729 resolv=no
19730 cat >conftest.$ac_ext <<_ACEOF
19731 /* confdefs.h. */
19732 _ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19736 #include <netinet/in.h>
19737 #include <arpa/nameser.h>
19738 #include <resolv.h>
19740 main ()
19742 return res_init();
19744 return 0;
19746 _ACEOF
19747 rm -f conftest.$ac_objext conftest$ac_exeext
19748 if { (ac_try="$ac_link"
19749 case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19752 esac
19753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_link") 2>conftest.er1
19755 ac_status=$?
19756 grep -v '^ *+' conftest.er1 >conftest.err
19757 rm -f conftest.er1
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } && {
19761 test -z "$ac_c_werror_flag" ||
19762 test ! -s conftest.err
19763 } && test -s conftest$ac_exeext &&
19764 $as_test_x conftest$ac_exeext; then
19765 have_res_init=yes
19766 else
19767 echo "$as_me: failed program was:" >&5
19768 sed 's/^/| /' conftest.$ac_ext >&5
19770 have_res_init=no
19773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19774 conftest$ac_exeext conftest.$ac_ext
19775 if test "$have_res_init" = no; then
19776 OLIBS="$LIBS"
19777 LIBS="$LIBS -lresolv"
19778 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19779 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19780 cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h. */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19786 #include <netinet/in.h>
19787 #include <arpa/nameser.h>
19788 #include <resolv.h>
19790 main ()
19792 return res_init();
19794 return 0;
19796 _ACEOF
19797 rm -f conftest.$ac_objext conftest$ac_exeext
19798 if { (ac_try="$ac_link"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19802 esac
19803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19804 (eval "$ac_link") 2>conftest.er1
19805 ac_status=$?
19806 grep -v '^ *+' conftest.er1 >conftest.err
19807 rm -f conftest.er1
19808 cat conftest.err >&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); } && {
19811 test -z "$ac_c_werror_flag" ||
19812 test ! -s conftest.err
19813 } && test -s conftest$ac_exeext &&
19814 $as_test_x conftest$ac_exeext; then
19815 have_res_init=yes
19816 else
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 have_res_init=no
19823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19824 conftest$ac_exeext conftest.$ac_ext
19825 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19826 echo "${ECHO_T}$have_res_init" >&6; }
19827 if test "$have_res_init" = yes ; then
19828 resolv=yes
19830 LIBS="$OLIBS"
19833 if test "$have_res_init" = yes; then
19835 cat >>confdefs.h <<\_ACEOF
19836 #define HAVE_RES_INIT 1
19837 _ACEOF
19841 # Do we need the Hesiod library to provide the support routines?
19842 if test "$with_hesiod" = yes ; then
19843 # Don't set $LIBS here -- see comments above.
19844 { echo "$as_me:$LINENO: checking for res_send" >&5
19845 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19846 if test "${ac_cv_func_res_send+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 else
19849 cat >conftest.$ac_ext <<_ACEOF
19850 /* confdefs.h. */
19851 _ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19855 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19857 #define res_send innocuous_res_send
19859 /* System header to define __stub macros and hopefully few prototypes,
19860 which can conflict with char res_send (); below.
19861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19862 <limits.h> exists even on freestanding compilers. */
19864 #ifdef __STDC__
19865 # include <limits.h>
19866 #else
19867 # include <assert.h>
19868 #endif
19870 #undef res_send
19872 /* Override any GCC internal prototype to avoid an error.
19873 Use char because int might match the return type of a GCC
19874 builtin and then its argument prototype would still apply. */
19875 #ifdef __cplusplus
19876 extern "C"
19877 #endif
19878 char res_send ();
19879 /* The GNU C library defines this for functions which it implements
19880 to always fail with ENOSYS. Some functions are actually named
19881 something starting with __ and the normal name is an alias. */
19882 #if defined __stub_res_send || defined __stub___res_send
19883 choke me
19884 #endif
19887 main ()
19889 return res_send ();
19891 return 0;
19893 _ACEOF
19894 rm -f conftest.$ac_objext conftest$ac_exeext
19895 if { (ac_try="$ac_link"
19896 case "(($ac_try" in
19897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898 *) ac_try_echo=$ac_try;;
19899 esac
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901 (eval "$ac_link") 2>conftest.er1
19902 ac_status=$?
19903 grep -v '^ *+' conftest.er1 >conftest.err
19904 rm -f conftest.er1
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } && {
19908 test -z "$ac_c_werror_flag" ||
19909 test ! -s conftest.err
19910 } && test -s conftest$ac_exeext &&
19911 $as_test_x conftest$ac_exeext; then
19912 ac_cv_func_res_send=yes
19913 else
19914 echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19917 ac_cv_func_res_send=no
19920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19921 conftest$ac_exeext conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19924 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19925 if test $ac_cv_func_res_send = yes; then
19927 else
19928 { echo "$as_me:$LINENO: checking for __res_send" >&5
19929 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19930 if test "${ac_cv_func___res_send+set}" = set; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 else
19933 cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h. */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19941 #define __res_send innocuous___res_send
19943 /* System header to define __stub macros and hopefully few prototypes,
19944 which can conflict with char __res_send (); below.
19945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19946 <limits.h> exists even on freestanding compilers. */
19948 #ifdef __STDC__
19949 # include <limits.h>
19950 #else
19951 # include <assert.h>
19952 #endif
19954 #undef __res_send
19956 /* Override any GCC internal prototype to avoid an error.
19957 Use char because int might match the return type of a GCC
19958 builtin and then its argument prototype would still apply. */
19959 #ifdef __cplusplus
19960 extern "C"
19961 #endif
19962 char __res_send ();
19963 /* The GNU C library defines this for functions which it implements
19964 to always fail with ENOSYS. Some functions are actually named
19965 something starting with __ and the normal name is an alias. */
19966 #if defined __stub___res_send || defined __stub_____res_send
19967 choke me
19968 #endif
19971 main ()
19973 return __res_send ();
19975 return 0;
19977 _ACEOF
19978 rm -f conftest.$ac_objext conftest$ac_exeext
19979 if { (ac_try="$ac_link"
19980 case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_link") 2>conftest.er1
19986 ac_status=$?
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } && {
19992 test -z "$ac_c_werror_flag" ||
19993 test ! -s conftest.err
19994 } && test -s conftest$ac_exeext &&
19995 $as_test_x conftest$ac_exeext; then
19996 ac_cv_func___res_send=yes
19997 else
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20001 ac_cv_func___res_send=no
20004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20005 conftest$ac_exeext conftest.$ac_ext
20007 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20008 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20009 if test $ac_cv_func___res_send = yes; then
20011 else
20012 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20013 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20014 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 else
20017 ac_check_lib_save_LIBS=$LIBS
20018 LIBS="-lresolv $LIBS"
20019 cat >conftest.$ac_ext <<_ACEOF
20020 /* confdefs.h. */
20021 _ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20026 /* Override any GCC internal prototype to avoid an error.
20027 Use char because int might match the return type of a GCC
20028 builtin and then its argument prototype would still apply. */
20029 #ifdef __cplusplus
20030 extern "C"
20031 #endif
20032 char res_send ();
20034 main ()
20036 return res_send ();
20038 return 0;
20040 _ACEOF
20041 rm -f conftest.$ac_objext conftest$ac_exeext
20042 if { (ac_try="$ac_link"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_link") 2>conftest.er1
20049 ac_status=$?
20050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest$ac_exeext &&
20058 $as_test_x conftest$ac_exeext; then
20059 ac_cv_lib_resolv_res_send=yes
20060 else
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_cv_lib_resolv_res_send=no
20067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20068 conftest$ac_exeext conftest.$ac_ext
20069 LIBS=$ac_check_lib_save_LIBS
20071 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20072 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20073 if test $ac_cv_lib_resolv_res_send = yes; then
20074 resolv=yes
20075 else
20076 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20077 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20078 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20079 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 else
20081 ac_check_lib_save_LIBS=$LIBS
20082 LIBS="-lresolv $LIBS"
20083 cat >conftest.$ac_ext <<_ACEOF
20084 /* confdefs.h. */
20085 _ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20090 /* Override any GCC internal prototype to avoid an error.
20091 Use char because int might match the return type of a GCC
20092 builtin and then its argument prototype would still apply. */
20093 #ifdef __cplusplus
20094 extern "C"
20095 #endif
20096 char __res_send ();
20098 main ()
20100 return __res_send ();
20102 return 0;
20104 _ACEOF
20105 rm -f conftest.$ac_objext conftest$ac_exeext
20106 if { (ac_try="$ac_link"
20107 case "(($ac_try" in
20108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109 *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112 (eval "$ac_link") 2>conftest.er1
20113 ac_status=$?
20114 grep -v '^ *+' conftest.er1 >conftest.err
20115 rm -f conftest.er1
20116 cat conftest.err >&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); } && {
20119 test -z "$ac_c_werror_flag" ||
20120 test ! -s conftest.err
20121 } && test -s conftest$ac_exeext &&
20122 $as_test_x conftest$ac_exeext; then
20123 ac_cv_lib_resolv___res_send=yes
20124 else
20125 echo "$as_me: failed program was:" >&5
20126 sed 's/^/| /' conftest.$ac_ext >&5
20128 ac_cv_lib_resolv___res_send=no
20131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20132 conftest$ac_exeext conftest.$ac_ext
20133 LIBS=$ac_check_lib_save_LIBS
20135 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20136 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20137 if test $ac_cv_lib_resolv___res_send = yes; then
20138 resolv=yes
20147 if test "$resolv" = yes ; then
20148 RESOLVLIB=-lresolv
20149 else
20150 RESOLVLIB=
20152 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20153 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20154 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20155 echo $ECHO_N "(cached) $ECHO_C" >&6
20156 else
20157 cat >conftest.$ac_ext <<_ACEOF
20158 /* confdefs.h. */
20159 _ACEOF
20160 cat confdefs.h >>conftest.$ac_ext
20161 cat >>conftest.$ac_ext <<_ACEOF
20162 /* end confdefs.h. */
20163 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20165 #define hes_getmailhost innocuous_hes_getmailhost
20167 /* System header to define __stub macros and hopefully few prototypes,
20168 which can conflict with char hes_getmailhost (); below.
20169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20170 <limits.h> exists even on freestanding compilers. */
20172 #ifdef __STDC__
20173 # include <limits.h>
20174 #else
20175 # include <assert.h>
20176 #endif
20178 #undef hes_getmailhost
20180 /* Override any GCC internal prototype to avoid an error.
20181 Use char because int might match the return type of a GCC
20182 builtin and then its argument prototype would still apply. */
20183 #ifdef __cplusplus
20184 extern "C"
20185 #endif
20186 char hes_getmailhost ();
20187 /* The GNU C library defines this for functions which it implements
20188 to always fail with ENOSYS. Some functions are actually named
20189 something starting with __ and the normal name is an alias. */
20190 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20191 choke me
20192 #endif
20195 main ()
20197 return hes_getmailhost ();
20199 return 0;
20201 _ACEOF
20202 rm -f conftest.$ac_objext conftest$ac_exeext
20203 if { (ac_try="$ac_link"
20204 case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20207 esac
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_link") 2>conftest.er1
20210 ac_status=$?
20211 grep -v '^ *+' conftest.er1 >conftest.err
20212 rm -f conftest.er1
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } && {
20216 test -z "$ac_c_werror_flag" ||
20217 test ! -s conftest.err
20218 } && test -s conftest$ac_exeext &&
20219 $as_test_x conftest$ac_exeext; then
20220 ac_cv_func_hes_getmailhost=yes
20221 else
20222 echo "$as_me: failed program was:" >&5
20223 sed 's/^/| /' conftest.$ac_ext >&5
20225 ac_cv_func_hes_getmailhost=no
20228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20229 conftest$ac_exeext conftest.$ac_ext
20231 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20232 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20233 if test $ac_cv_func_hes_getmailhost = yes; then
20235 else
20236 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20237 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20238 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 else
20241 ac_check_lib_save_LIBS=$LIBS
20242 LIBS="-lhesiod $RESOLVLIB $LIBS"
20243 cat >conftest.$ac_ext <<_ACEOF
20244 /* confdefs.h. */
20245 _ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20250 /* Override any GCC internal prototype to avoid an error.
20251 Use char because int might match the return type of a GCC
20252 builtin and then its argument prototype would still apply. */
20253 #ifdef __cplusplus
20254 extern "C"
20255 #endif
20256 char hes_getmailhost ();
20258 main ()
20260 return hes_getmailhost ();
20262 return 0;
20264 _ACEOF
20265 rm -f conftest.$ac_objext conftest$ac_exeext
20266 if { (ac_try="$ac_link"
20267 case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20270 esac
20271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272 (eval "$ac_link") 2>conftest.er1
20273 ac_status=$?
20274 grep -v '^ *+' conftest.er1 >conftest.err
20275 rm -f conftest.er1
20276 cat conftest.err >&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } && {
20279 test -z "$ac_c_werror_flag" ||
20280 test ! -s conftest.err
20281 } && test -s conftest$ac_exeext &&
20282 $as_test_x conftest$ac_exeext; then
20283 ac_cv_lib_hesiod_hes_getmailhost=yes
20284 else
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ac_cv_lib_hesiod_hes_getmailhost=no
20291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20292 conftest$ac_exeext conftest.$ac_ext
20293 LIBS=$ac_check_lib_save_LIBS
20295 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20296 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20297 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_LIBHESIOD 1
20301 _ACEOF
20303 else
20311 # Do we need libresolv (due to res_init or Hesiod)?
20312 if test "$resolv" = yes ; then
20314 cat >>confdefs.h <<\_ACEOF
20315 #define HAVE_LIBRESOLV 1
20316 _ACEOF
20320 # These tell us which Kerberos-related libraries to use.
20321 if test "${with_kerberos+set}" = set; then
20323 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20324 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20325 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20327 else
20328 ac_check_lib_save_LIBS=$LIBS
20329 LIBS="-lcom_err $LIBS"
20330 cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h. */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h. */
20337 /* Override any GCC internal prototype to avoid an error.
20338 Use char because int might match the return type of a GCC
20339 builtin and then its argument prototype would still apply. */
20340 #ifdef __cplusplus
20341 extern "C"
20342 #endif
20343 char com_err ();
20345 main ()
20347 return com_err ();
20349 return 0;
20351 _ACEOF
20352 rm -f conftest.$ac_objext conftest$ac_exeext
20353 if { (ac_try="$ac_link"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_link") 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest$ac_exeext &&
20369 $as_test_x conftest$ac_exeext; then
20370 ac_cv_lib_com_err_com_err=yes
20371 else
20372 echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20375 ac_cv_lib_com_err_com_err=no
20378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20379 conftest$ac_exeext conftest.$ac_ext
20380 LIBS=$ac_check_lib_save_LIBS
20382 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20383 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20384 if test $ac_cv_lib_com_err_com_err = yes; then
20385 cat >>confdefs.h <<_ACEOF
20386 #define HAVE_LIBCOM_ERR 1
20387 _ACEOF
20389 LIBS="-lcom_err $LIBS"
20394 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20395 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20396 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20397 echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399 ac_check_lib_save_LIBS=$LIBS
20400 LIBS="-lk5crypto $LIBS"
20401 cat >conftest.$ac_ext <<_ACEOF
20402 /* confdefs.h. */
20403 _ACEOF
20404 cat confdefs.h >>conftest.$ac_ext
20405 cat >>conftest.$ac_ext <<_ACEOF
20406 /* end confdefs.h. */
20408 /* Override any GCC internal prototype to avoid an error.
20409 Use char because int might match the return type of a GCC
20410 builtin and then its argument prototype would still apply. */
20411 #ifdef __cplusplus
20412 extern "C"
20413 #endif
20414 char mit_des_cbc_encrypt ();
20416 main ()
20418 return mit_des_cbc_encrypt ();
20420 return 0;
20422 _ACEOF
20423 rm -f conftest.$ac_objext conftest$ac_exeext
20424 if { (ac_try="$ac_link"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20428 esac
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_link") 2>conftest.er1
20431 ac_status=$?
20432 grep -v '^ *+' conftest.er1 >conftest.err
20433 rm -f conftest.er1
20434 cat conftest.err >&5
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); } && {
20437 test -z "$ac_c_werror_flag" ||
20438 test ! -s conftest.err
20439 } && test -s conftest$ac_exeext &&
20440 $as_test_x conftest$ac_exeext; then
20441 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20442 else
20443 echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20450 conftest$ac_exeext conftest.$ac_ext
20451 LIBS=$ac_check_lib_save_LIBS
20453 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20454 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20455 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20456 cat >>confdefs.h <<_ACEOF
20457 #define HAVE_LIBK5CRYPTO 1
20458 _ACEOF
20460 LIBS="-lk5crypto $LIBS"
20465 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20466 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20467 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470 ac_check_lib_save_LIBS=$LIBS
20471 LIBS="-lcrypto $LIBS"
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h. */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h. */
20479 /* Override any GCC internal prototype to avoid an error.
20480 Use char because int might match the return type of a GCC
20481 builtin and then its argument prototype would still apply. */
20482 #ifdef __cplusplus
20483 extern "C"
20484 #endif
20485 char mit_des_cbc_encrypt ();
20487 main ()
20489 return mit_des_cbc_encrypt ();
20491 return 0;
20493 _ACEOF
20494 rm -f conftest.$ac_objext conftest$ac_exeext
20495 if { (ac_try="$ac_link"
20496 case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20499 esac
20500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_link") 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } && {
20508 test -z "$ac_c_werror_flag" ||
20509 test ! -s conftest.err
20510 } && test -s conftest$ac_exeext &&
20511 $as_test_x conftest$ac_exeext; then
20512 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20513 else
20514 echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20517 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20521 conftest$ac_exeext conftest.$ac_ext
20522 LIBS=$ac_check_lib_save_LIBS
20524 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20525 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20526 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20527 cat >>confdefs.h <<_ACEOF
20528 #define HAVE_LIBCRYPTO 1
20529 _ACEOF
20531 LIBS="-lcrypto $LIBS"
20536 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20537 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20538 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20539 echo $ECHO_N "(cached) $ECHO_C" >&6
20540 else
20541 ac_check_lib_save_LIBS=$LIBS
20542 LIBS="-lkrb5 $LIBS"
20543 cat >conftest.$ac_ext <<_ACEOF
20544 /* confdefs.h. */
20545 _ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h. */
20550 /* Override any GCC internal prototype to avoid an error.
20551 Use char because int might match the return type of a GCC
20552 builtin and then its argument prototype would still apply. */
20553 #ifdef __cplusplus
20554 extern "C"
20555 #endif
20556 char krb5_init_context ();
20558 main ()
20560 return krb5_init_context ();
20562 return 0;
20564 _ACEOF
20565 rm -f conftest.$ac_objext conftest$ac_exeext
20566 if { (ac_try="$ac_link"
20567 case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20570 esac
20571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20572 (eval "$ac_link") 2>conftest.er1
20573 ac_status=$?
20574 grep -v '^ *+' conftest.er1 >conftest.err
20575 rm -f conftest.er1
20576 cat conftest.err >&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); } && {
20579 test -z "$ac_c_werror_flag" ||
20580 test ! -s conftest.err
20581 } && test -s conftest$ac_exeext &&
20582 $as_test_x conftest$ac_exeext; then
20583 ac_cv_lib_krb5_krb5_init_context=yes
20584 else
20585 echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 ac_cv_lib_krb5_krb5_init_context=no
20591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20592 conftest$ac_exeext conftest.$ac_ext
20593 LIBS=$ac_check_lib_save_LIBS
20595 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20596 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20597 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20598 cat >>confdefs.h <<_ACEOF
20599 #define HAVE_LIBKRB5 1
20600 _ACEOF
20602 LIBS="-lkrb5 $LIBS"
20606 if test "${with_kerberos5+set}" != set; then
20608 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20609 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20610 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 else
20613 ac_check_lib_save_LIBS=$LIBS
20614 LIBS="-ldes425 $LIBS"
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h. */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20622 /* Override any GCC internal prototype to avoid an error.
20623 Use char because int might match the return type of a GCC
20624 builtin and then its argument prototype would still apply. */
20625 #ifdef __cplusplus
20626 extern "C"
20627 #endif
20628 char des_cbc_encrypt ();
20630 main ()
20632 return des_cbc_encrypt ();
20634 return 0;
20636 _ACEOF
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (ac_try="$ac_link"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_link") 2>conftest.er1
20645 ac_status=$?
20646 grep -v '^ *+' conftest.er1 >conftest.err
20647 rm -f conftest.er1
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest$ac_exeext &&
20654 $as_test_x conftest$ac_exeext; then
20655 ac_cv_lib_des425_des_cbc_encrypt=yes
20656 else
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_cv_lib_des425_des_cbc_encrypt=no
20663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20664 conftest$ac_exeext conftest.$ac_ext
20665 LIBS=$ac_check_lib_save_LIBS
20667 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20668 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20669 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20670 cat >>confdefs.h <<_ACEOF
20671 #define HAVE_LIBDES425 1
20672 _ACEOF
20674 LIBS="-ldes425 $LIBS"
20676 else
20678 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20679 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20680 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20682 else
20683 ac_check_lib_save_LIBS=$LIBS
20684 LIBS="-ldes $LIBS"
20685 cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h. */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20692 /* Override any GCC internal prototype to avoid an error.
20693 Use char because int might match the return type of a GCC
20694 builtin and then its argument prototype would still apply. */
20695 #ifdef __cplusplus
20696 extern "C"
20697 #endif
20698 char des_cbc_encrypt ();
20700 main ()
20702 return des_cbc_encrypt ();
20704 return 0;
20706 _ACEOF
20707 rm -f conftest.$ac_objext conftest$ac_exeext
20708 if { (ac_try="$ac_link"
20709 case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20712 esac
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_link") 2>conftest.er1
20715 ac_status=$?
20716 grep -v '^ *+' conftest.er1 >conftest.err
20717 rm -f conftest.er1
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } && {
20721 test -z "$ac_c_werror_flag" ||
20722 test ! -s conftest.err
20723 } && test -s conftest$ac_exeext &&
20724 $as_test_x conftest$ac_exeext; then
20725 ac_cv_lib_des_des_cbc_encrypt=yes
20726 else
20727 echo "$as_me: failed program was:" >&5
20728 sed 's/^/| /' conftest.$ac_ext >&5
20730 ac_cv_lib_des_des_cbc_encrypt=no
20733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20734 conftest$ac_exeext conftest.$ac_ext
20735 LIBS=$ac_check_lib_save_LIBS
20737 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20738 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20739 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20740 cat >>confdefs.h <<_ACEOF
20741 #define HAVE_LIBDES 1
20742 _ACEOF
20744 LIBS="-ldes $LIBS"
20751 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20752 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20753 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20754 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 else
20756 ac_check_lib_save_LIBS=$LIBS
20757 LIBS="-lkrb4 $LIBS"
20758 cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h. */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h. */
20765 /* Override any GCC internal prototype to avoid an error.
20766 Use char because int might match the return type of a GCC
20767 builtin and then its argument prototype would still apply. */
20768 #ifdef __cplusplus
20769 extern "C"
20770 #endif
20771 char krb_get_cred ();
20773 main ()
20775 return krb_get_cred ();
20777 return 0;
20779 _ACEOF
20780 rm -f conftest.$ac_objext conftest$ac_exeext
20781 if { (ac_try="$ac_link"
20782 case "(($ac_try" in
20783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20784 *) ac_try_echo=$ac_try;;
20785 esac
20786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20787 (eval "$ac_link") 2>conftest.er1
20788 ac_status=$?
20789 grep -v '^ *+' conftest.er1 >conftest.err
20790 rm -f conftest.er1
20791 cat conftest.err >&5
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); } && {
20794 test -z "$ac_c_werror_flag" ||
20795 test ! -s conftest.err
20796 } && test -s conftest$ac_exeext &&
20797 $as_test_x conftest$ac_exeext; then
20798 ac_cv_lib_krb4_krb_get_cred=yes
20799 else
20800 echo "$as_me: failed program was:" >&5
20801 sed 's/^/| /' conftest.$ac_ext >&5
20803 ac_cv_lib_krb4_krb_get_cred=no
20806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20807 conftest$ac_exeext conftest.$ac_ext
20808 LIBS=$ac_check_lib_save_LIBS
20810 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20811 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20812 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20813 cat >>confdefs.h <<_ACEOF
20814 #define HAVE_LIBKRB4 1
20815 _ACEOF
20817 LIBS="-lkrb4 $LIBS"
20819 else
20821 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20822 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20823 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 else
20826 ac_check_lib_save_LIBS=$LIBS
20827 LIBS="-lkrb $LIBS"
20828 cat >conftest.$ac_ext <<_ACEOF
20829 /* confdefs.h. */
20830 _ACEOF
20831 cat confdefs.h >>conftest.$ac_ext
20832 cat >>conftest.$ac_ext <<_ACEOF
20833 /* end confdefs.h. */
20835 /* Override any GCC internal prototype to avoid an error.
20836 Use char because int might match the return type of a GCC
20837 builtin and then its argument prototype would still apply. */
20838 #ifdef __cplusplus
20839 extern "C"
20840 #endif
20841 char krb_get_cred ();
20843 main ()
20845 return krb_get_cred ();
20847 return 0;
20849 _ACEOF
20850 rm -f conftest.$ac_objext conftest$ac_exeext
20851 if { (ac_try="$ac_link"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_link") 2>conftest.er1
20858 ac_status=$?
20859 grep -v '^ *+' conftest.er1 >conftest.err
20860 rm -f conftest.er1
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest$ac_exeext &&
20867 $as_test_x conftest$ac_exeext; then
20868 ac_cv_lib_krb_krb_get_cred=yes
20869 else
20870 echo "$as_me: failed program was:" >&5
20871 sed 's/^/| /' conftest.$ac_ext >&5
20873 ac_cv_lib_krb_krb_get_cred=no
20876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20877 conftest$ac_exeext conftest.$ac_ext
20878 LIBS=$ac_check_lib_save_LIBS
20880 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20881 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20882 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20883 cat >>confdefs.h <<_ACEOF
20884 #define HAVE_LIBKRB 1
20885 _ACEOF
20887 LIBS="-lkrb $LIBS"
20895 if test "${with_kerberos5+set}" = set; then
20897 for ac_header in krb5.h
20899 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20901 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20902 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20904 echo $ECHO_N "(cached) $ECHO_C" >&6
20906 ac_res=`eval echo '${'$as_ac_Header'}'`
20907 { echo "$as_me:$LINENO: result: $ac_res" >&5
20908 echo "${ECHO_T}$ac_res" >&6; }
20909 else
20910 # Is the header compilable?
20911 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20913 cat >conftest.$ac_ext <<_ACEOF
20914 /* confdefs.h. */
20915 _ACEOF
20916 cat confdefs.h >>conftest.$ac_ext
20917 cat >>conftest.$ac_ext <<_ACEOF
20918 /* end confdefs.h. */
20919 $ac_includes_default
20920 #include <$ac_header>
20921 _ACEOF
20922 rm -f conftest.$ac_objext
20923 if { (ac_try="$ac_compile"
20924 case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20927 esac
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_compile") 2>conftest.er1
20930 ac_status=$?
20931 grep -v '^ *+' conftest.er1 >conftest.err
20932 rm -f conftest.er1
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } && {
20936 test -z "$ac_c_werror_flag" ||
20937 test ! -s conftest.err
20938 } && test -s conftest.$ac_objext; then
20939 ac_header_compiler=yes
20940 else
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20944 ac_header_compiler=no
20947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20949 echo "${ECHO_T}$ac_header_compiler" >&6; }
20951 # Is the header present?
20952 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20953 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20954 cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h. */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h. */
20960 #include <$ac_header>
20961 _ACEOF
20962 if { (ac_try="$ac_cpp conftest.$ac_ext"
20963 case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20969 ac_status=$?
20970 grep -v '^ *+' conftest.er1 >conftest.err
20971 rm -f conftest.er1
20972 cat conftest.err >&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } >/dev/null && {
20975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20976 test ! -s conftest.err
20977 }; then
20978 ac_header_preproc=yes
20979 else
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20983 ac_header_preproc=no
20986 rm -f conftest.err conftest.$ac_ext
20987 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20988 echo "${ECHO_T}$ac_header_preproc" >&6; }
20990 # So? What about this header?
20991 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20992 yes:no: )
20993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20994 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20996 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20997 ac_header_preproc=yes
20999 no:yes:* )
21000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21005 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21007 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21009 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21011 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21014 esac
21015 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21018 echo $ECHO_N "(cached) $ECHO_C" >&6
21019 else
21020 eval "$as_ac_Header=\$ac_header_preproc"
21022 ac_res=`eval echo '${'$as_ac_Header'}'`
21023 { echo "$as_me:$LINENO: result: $ac_res" >&5
21024 echo "${ECHO_T}$ac_res" >&6; }
21027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21028 cat >>confdefs.h <<_ACEOF
21029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21030 _ACEOF
21034 done
21036 else
21038 for ac_header in des.h
21040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21042 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21047 ac_res=`eval echo '${'$as_ac_Header'}'`
21048 { echo "$as_me:$LINENO: result: $ac_res" >&5
21049 echo "${ECHO_T}$ac_res" >&6; }
21050 else
21051 # Is the header compilable?
21052 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21053 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h. */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 $ac_includes_default
21061 #include <$ac_header>
21062 _ACEOF
21063 rm -f conftest.$ac_objext
21064 if { (ac_try="$ac_compile"
21065 case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21068 esac
21069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_compile") 2>conftest.er1
21071 ac_status=$?
21072 grep -v '^ *+' conftest.er1 >conftest.err
21073 rm -f conftest.er1
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); } && {
21077 test -z "$ac_c_werror_flag" ||
21078 test ! -s conftest.err
21079 } && test -s conftest.$ac_objext; then
21080 ac_header_compiler=yes
21081 else
21082 echo "$as_me: failed program was:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21085 ac_header_compiler=no
21088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21090 echo "${ECHO_T}$ac_header_compiler" >&6; }
21092 # Is the header present?
21093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21095 cat >conftest.$ac_ext <<_ACEOF
21096 /* confdefs.h. */
21097 _ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21101 #include <$ac_header>
21102 _ACEOF
21103 if { (ac_try="$ac_cpp conftest.$ac_ext"
21104 case "(($ac_try" in
21105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106 *) ac_try_echo=$ac_try;;
21107 esac
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21110 ac_status=$?
21111 grep -v '^ *+' conftest.er1 >conftest.err
21112 rm -f conftest.er1
21113 cat conftest.err >&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); } >/dev/null && {
21116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21117 test ! -s conftest.err
21118 }; then
21119 ac_header_preproc=yes
21120 else
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 ac_header_preproc=no
21127 rm -f conftest.err conftest.$ac_ext
21128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21129 echo "${ECHO_T}$ac_header_preproc" >&6; }
21131 # So? What about this header?
21132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21133 yes:no: )
21134 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21138 ac_header_preproc=yes
21140 no:yes:* )
21141 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21144 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21147 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21148 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21151 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21155 esac
21156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21159 echo $ECHO_N "(cached) $ECHO_C" >&6
21160 else
21161 eval "$as_ac_Header=\$ac_header_preproc"
21163 ac_res=`eval echo '${'$as_ac_Header'}'`
21164 { echo "$as_me:$LINENO: result: $ac_res" >&5
21165 echo "${ECHO_T}$ac_res" >&6; }
21168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21169 cat >>confdefs.h <<_ACEOF
21170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21171 _ACEOF
21173 else
21175 for ac_header in kerberosIV/des.h
21177 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21182 echo $ECHO_N "(cached) $ECHO_C" >&6
21184 ac_res=`eval echo '${'$as_ac_Header'}'`
21185 { echo "$as_me:$LINENO: result: $ac_res" >&5
21186 echo "${ECHO_T}$ac_res" >&6; }
21187 else
21188 # Is the header compilable?
21189 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21190 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21191 cat >conftest.$ac_ext <<_ACEOF
21192 /* confdefs.h. */
21193 _ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21197 $ac_includes_default
21198 #include <$ac_header>
21199 _ACEOF
21200 rm -f conftest.$ac_objext
21201 if { (ac_try="$ac_compile"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21205 esac
21206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_compile") 2>conftest.er1
21208 ac_status=$?
21209 grep -v '^ *+' conftest.er1 >conftest.err
21210 rm -f conftest.er1
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); } && {
21214 test -z "$ac_c_werror_flag" ||
21215 test ! -s conftest.err
21216 } && test -s conftest.$ac_objext; then
21217 ac_header_compiler=yes
21218 else
21219 echo "$as_me: failed program was:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21222 ac_header_compiler=no
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21227 echo "${ECHO_T}$ac_header_compiler" >&6; }
21229 # Is the header present?
21230 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21232 cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h. */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 #include <$ac_header>
21239 _ACEOF
21240 if { (ac_try="$ac_cpp conftest.$ac_ext"
21241 case "(($ac_try" in
21242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21243 *) ac_try_echo=$ac_try;;
21244 esac
21245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21247 ac_status=$?
21248 grep -v '^ *+' conftest.er1 >conftest.err
21249 rm -f conftest.er1
21250 cat conftest.err >&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); } >/dev/null && {
21253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21254 test ! -s conftest.err
21255 }; then
21256 ac_header_preproc=yes
21257 else
21258 echo "$as_me: failed program was:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21261 ac_header_preproc=no
21264 rm -f conftest.err conftest.$ac_ext
21265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21266 echo "${ECHO_T}$ac_header_preproc" >&6; }
21268 # So? What about this header?
21269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21270 yes:no: )
21271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21275 ac_header_preproc=yes
21277 no:yes:* )
21278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21292 esac
21293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21296 echo $ECHO_N "(cached) $ECHO_C" >&6
21297 else
21298 eval "$as_ac_Header=\$ac_header_preproc"
21300 ac_res=`eval echo '${'$as_ac_Header'}'`
21301 { echo "$as_me:$LINENO: result: $ac_res" >&5
21302 echo "${ECHO_T}$ac_res" >&6; }
21305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21306 cat >>confdefs.h <<_ACEOF
21307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21308 _ACEOF
21310 else
21312 for ac_header in kerberos/des.h
21314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21321 ac_res=`eval echo '${'$as_ac_Header'}'`
21322 { echo "$as_me:$LINENO: result: $ac_res" >&5
21323 echo "${ECHO_T}$ac_res" >&6; }
21324 else
21325 # Is the header compilable?
21326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21328 cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h. */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 $ac_includes_default
21335 #include <$ac_header>
21336 _ACEOF
21337 rm -f conftest.$ac_objext
21338 if { (ac_try="$ac_compile"
21339 case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21342 esac
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_compile") 2>conftest.er1
21345 ac_status=$?
21346 grep -v '^ *+' conftest.er1 >conftest.err
21347 rm -f conftest.er1
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } && {
21351 test -z "$ac_c_werror_flag" ||
21352 test ! -s conftest.err
21353 } && test -s conftest.$ac_objext; then
21354 ac_header_compiler=yes
21355 else
21356 echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21359 ac_header_compiler=no
21362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21364 echo "${ECHO_T}$ac_header_compiler" >&6; }
21366 # Is the header present?
21367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21369 cat >conftest.$ac_ext <<_ACEOF
21370 /* confdefs.h. */
21371 _ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h. */
21375 #include <$ac_header>
21376 _ACEOF
21377 if { (ac_try="$ac_cpp conftest.$ac_ext"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21381 esac
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21384 ac_status=$?
21385 grep -v '^ *+' conftest.er1 >conftest.err
21386 rm -f conftest.er1
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } >/dev/null && {
21390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21392 }; then
21393 ac_header_preproc=yes
21394 else
21395 echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21398 ac_header_preproc=no
21401 rm -f conftest.err conftest.$ac_ext
21402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21403 echo "${ECHO_T}$ac_header_preproc" >&6; }
21405 # So? What about this header?
21406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21407 yes:no: )
21408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21412 ac_header_preproc=yes
21414 no:yes:* )
21415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21422 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21429 esac
21430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21433 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 else
21435 eval "$as_ac_Header=\$ac_header_preproc"
21437 ac_res=`eval echo '${'$as_ac_Header'}'`
21438 { echo "$as_me:$LINENO: result: $ac_res" >&5
21439 echo "${ECHO_T}$ac_res" >&6; }
21442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21443 cat >>confdefs.h <<_ACEOF
21444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21445 _ACEOF
21449 done
21453 done
21457 done
21460 for ac_header in krb.h
21462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21467 echo $ECHO_N "(cached) $ECHO_C" >&6
21469 ac_res=`eval echo '${'$as_ac_Header'}'`
21470 { echo "$as_me:$LINENO: result: $ac_res" >&5
21471 echo "${ECHO_T}$ac_res" >&6; }
21472 else
21473 # Is the header compilable?
21474 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21476 cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h. */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 $ac_includes_default
21483 #include <$ac_header>
21484 _ACEOF
21485 rm -f conftest.$ac_objext
21486 if { (ac_try="$ac_compile"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21490 esac
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_compile") 2>conftest.er1
21493 ac_status=$?
21494 grep -v '^ *+' conftest.er1 >conftest.err
21495 rm -f conftest.er1
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } && {
21499 test -z "$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21501 } && test -s conftest.$ac_objext; then
21502 ac_header_compiler=yes
21503 else
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ac_header_compiler=no
21510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21512 echo "${ECHO_T}$ac_header_compiler" >&6; }
21514 # Is the header present?
21515 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21517 cat >conftest.$ac_ext <<_ACEOF
21518 /* confdefs.h. */
21519 _ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21523 #include <$ac_header>
21524 _ACEOF
21525 if { (ac_try="$ac_cpp conftest.$ac_ext"
21526 case "(($ac_try" in
21527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21528 *) ac_try_echo=$ac_try;;
21529 esac
21530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21532 ac_status=$?
21533 grep -v '^ *+' conftest.er1 >conftest.err
21534 rm -f conftest.er1
21535 cat conftest.err >&5
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); } >/dev/null && {
21538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21539 test ! -s conftest.err
21540 }; then
21541 ac_header_preproc=yes
21542 else
21543 echo "$as_me: failed program was:" >&5
21544 sed 's/^/| /' conftest.$ac_ext >&5
21546 ac_header_preproc=no
21549 rm -f conftest.err conftest.$ac_ext
21550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21551 echo "${ECHO_T}$ac_header_preproc" >&6; }
21553 # So? What about this header?
21554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21555 yes:no: )
21556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21560 ac_header_preproc=yes
21562 no:yes:* )
21563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21577 esac
21578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21581 echo $ECHO_N "(cached) $ECHO_C" >&6
21582 else
21583 eval "$as_ac_Header=\$ac_header_preproc"
21585 ac_res=`eval echo '${'$as_ac_Header'}'`
21586 { echo "$as_me:$LINENO: result: $ac_res" >&5
21587 echo "${ECHO_T}$ac_res" >&6; }
21590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21591 cat >>confdefs.h <<_ACEOF
21592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21593 _ACEOF
21595 else
21597 for ac_header in kerberosIV/krb.h
21599 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21604 echo $ECHO_N "(cached) $ECHO_C" >&6
21606 ac_res=`eval echo '${'$as_ac_Header'}'`
21607 { echo "$as_me:$LINENO: result: $ac_res" >&5
21608 echo "${ECHO_T}$ac_res" >&6; }
21609 else
21610 # Is the header compilable?
21611 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21612 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21613 cat >conftest.$ac_ext <<_ACEOF
21614 /* confdefs.h. */
21615 _ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21619 $ac_includes_default
21620 #include <$ac_header>
21621 _ACEOF
21622 rm -f conftest.$ac_objext
21623 if { (ac_try="$ac_compile"
21624 case "(($ac_try" in
21625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21626 *) ac_try_echo=$ac_try;;
21627 esac
21628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21629 (eval "$ac_compile") 2>conftest.er1
21630 ac_status=$?
21631 grep -v '^ *+' conftest.er1 >conftest.err
21632 rm -f conftest.er1
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635 (exit $ac_status); } && {
21636 test -z "$ac_c_werror_flag" ||
21637 test ! -s conftest.err
21638 } && test -s conftest.$ac_objext; then
21639 ac_header_compiler=yes
21640 else
21641 echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21644 ac_header_compiler=no
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21649 echo "${ECHO_T}$ac_header_compiler" >&6; }
21651 # Is the header present?
21652 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21654 cat >conftest.$ac_ext <<_ACEOF
21655 /* confdefs.h. */
21656 _ACEOF
21657 cat confdefs.h >>conftest.$ac_ext
21658 cat >>conftest.$ac_ext <<_ACEOF
21659 /* end confdefs.h. */
21660 #include <$ac_header>
21661 _ACEOF
21662 if { (ac_try="$ac_cpp conftest.$ac_ext"
21663 case "(($ac_try" in
21664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21665 *) ac_try_echo=$ac_try;;
21666 esac
21667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21669 ac_status=$?
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } >/dev/null && {
21675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21676 test ! -s conftest.err
21677 }; then
21678 ac_header_preproc=yes
21679 else
21680 echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21683 ac_header_preproc=no
21686 rm -f conftest.err conftest.$ac_ext
21687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21688 echo "${ECHO_T}$ac_header_preproc" >&6; }
21690 # So? What about this header?
21691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21692 yes:no: )
21693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21697 ac_header_preproc=yes
21699 no:yes:* )
21700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21714 esac
21715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21718 echo $ECHO_N "(cached) $ECHO_C" >&6
21719 else
21720 eval "$as_ac_Header=\$ac_header_preproc"
21722 ac_res=`eval echo '${'$as_ac_Header'}'`
21723 { echo "$as_me:$LINENO: result: $ac_res" >&5
21724 echo "${ECHO_T}$ac_res" >&6; }
21727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21728 cat >>confdefs.h <<_ACEOF
21729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21730 _ACEOF
21732 else
21734 for ac_header in kerberos/krb.h
21736 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 ac_res=`eval echo '${'$as_ac_Header'}'`
21744 { echo "$as_me:$LINENO: result: $ac_res" >&5
21745 echo "${ECHO_T}$ac_res" >&6; }
21746 else
21747 # Is the header compilable?
21748 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21749 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21750 cat >conftest.$ac_ext <<_ACEOF
21751 /* confdefs.h. */
21752 _ACEOF
21753 cat confdefs.h >>conftest.$ac_ext
21754 cat >>conftest.$ac_ext <<_ACEOF
21755 /* end confdefs.h. */
21756 $ac_includes_default
21757 #include <$ac_header>
21758 _ACEOF
21759 rm -f conftest.$ac_objext
21760 if { (ac_try="$ac_compile"
21761 case "(($ac_try" in
21762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763 *) ac_try_echo=$ac_try;;
21764 esac
21765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21766 (eval "$ac_compile") 2>conftest.er1
21767 ac_status=$?
21768 grep -v '^ *+' conftest.er1 >conftest.err
21769 rm -f conftest.er1
21770 cat conftest.err >&5
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); } && {
21773 test -z "$ac_c_werror_flag" ||
21774 test ! -s conftest.err
21775 } && test -s conftest.$ac_objext; then
21776 ac_header_compiler=yes
21777 else
21778 echo "$as_me: failed program was:" >&5
21779 sed 's/^/| /' conftest.$ac_ext >&5
21781 ac_header_compiler=no
21784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21786 echo "${ECHO_T}$ac_header_compiler" >&6; }
21788 # Is the header present?
21789 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21791 cat >conftest.$ac_ext <<_ACEOF
21792 /* confdefs.h. */
21793 _ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h. */
21797 #include <$ac_header>
21798 _ACEOF
21799 if { (ac_try="$ac_cpp conftest.$ac_ext"
21800 case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21806 ac_status=$?
21807 grep -v '^ *+' conftest.er1 >conftest.err
21808 rm -f conftest.er1
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } >/dev/null && {
21812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 }; then
21815 ac_header_preproc=yes
21816 else
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21820 ac_header_preproc=no
21823 rm -f conftest.err conftest.$ac_ext
21824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21825 echo "${ECHO_T}$ac_header_preproc" >&6; }
21827 # So? What about this header?
21828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21829 yes:no: )
21830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21831 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21833 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21834 ac_header_preproc=yes
21836 no:yes:* )
21837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21838 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21840 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21842 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21844 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21846 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21848 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21851 esac
21852 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21853 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21856 else
21857 eval "$as_ac_Header=\$ac_header_preproc"
21859 ac_res=`eval echo '${'$as_ac_Header'}'`
21860 { echo "$as_me:$LINENO: result: $ac_res" >&5
21861 echo "${ECHO_T}$ac_res" >&6; }
21864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21865 cat >>confdefs.h <<_ACEOF
21866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21867 _ACEOF
21871 done
21875 done
21879 done
21883 for ac_header in com_err.h
21885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21886 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21890 echo $ECHO_N "(cached) $ECHO_C" >&6
21892 ac_res=`eval echo '${'$as_ac_Header'}'`
21893 { echo "$as_me:$LINENO: result: $ac_res" >&5
21894 echo "${ECHO_T}$ac_res" >&6; }
21895 else
21896 # Is the header compilable?
21897 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21899 cat >conftest.$ac_ext <<_ACEOF
21900 /* confdefs.h. */
21901 _ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h. */
21905 $ac_includes_default
21906 #include <$ac_header>
21907 _ACEOF
21908 rm -f conftest.$ac_objext
21909 if { (ac_try="$ac_compile"
21910 case "(($ac_try" in
21911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912 *) ac_try_echo=$ac_try;;
21913 esac
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915 (eval "$ac_compile") 2>conftest.er1
21916 ac_status=$?
21917 grep -v '^ *+' conftest.er1 >conftest.err
21918 rm -f conftest.er1
21919 cat conftest.err >&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } && {
21922 test -z "$ac_c_werror_flag" ||
21923 test ! -s conftest.err
21924 } && test -s conftest.$ac_objext; then
21925 ac_header_compiler=yes
21926 else
21927 echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21930 ac_header_compiler=no
21933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21934 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21935 echo "${ECHO_T}$ac_header_compiler" >&6; }
21937 # Is the header present?
21938 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21939 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21940 cat >conftest.$ac_ext <<_ACEOF
21941 /* confdefs.h. */
21942 _ACEOF
21943 cat confdefs.h >>conftest.$ac_ext
21944 cat >>conftest.$ac_ext <<_ACEOF
21945 /* end confdefs.h. */
21946 #include <$ac_header>
21947 _ACEOF
21948 if { (ac_try="$ac_cpp conftest.$ac_ext"
21949 case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21952 esac
21953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21955 ac_status=$?
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } >/dev/null && {
21961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21962 test ! -s conftest.err
21963 }; then
21964 ac_header_preproc=yes
21965 else
21966 echo "$as_me: failed program was:" >&5
21967 sed 's/^/| /' conftest.$ac_ext >&5
21969 ac_header_preproc=no
21972 rm -f conftest.err conftest.$ac_ext
21973 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21974 echo "${ECHO_T}$ac_header_preproc" >&6; }
21976 # So? What about this header?
21977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21978 yes:no: )
21979 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21980 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21981 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21983 ac_header_preproc=yes
21985 no:yes:* )
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21987 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21989 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21990 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21991 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21992 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21993 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21996 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21997 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22000 esac
22001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22004 echo $ECHO_N "(cached) $ECHO_C" >&6
22005 else
22006 eval "$as_ac_Header=\$ac_header_preproc"
22008 ac_res=`eval echo '${'$as_ac_Header'}'`
22009 { echo "$as_me:$LINENO: result: $ac_res" >&5
22010 echo "${ECHO_T}$ac_res" >&6; }
22013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22014 cat >>confdefs.h <<_ACEOF
22015 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22016 _ACEOF
22020 done
22024 # Solaris requires -lintl if you want strerror (which calls dgettext)
22025 # to return localized messages.
22027 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22028 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22029 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22031 else
22032 ac_check_lib_save_LIBS=$LIBS
22033 LIBS="-lintl $LIBS"
22034 cat >conftest.$ac_ext <<_ACEOF
22035 /* confdefs.h. */
22036 _ACEOF
22037 cat confdefs.h >>conftest.$ac_ext
22038 cat >>conftest.$ac_ext <<_ACEOF
22039 /* end confdefs.h. */
22041 /* Override any GCC internal prototype to avoid an error.
22042 Use char because int might match the return type of a GCC
22043 builtin and then its argument prototype would still apply. */
22044 #ifdef __cplusplus
22045 extern "C"
22046 #endif
22047 char dgettext ();
22049 main ()
22051 return dgettext ();
22053 return 0;
22055 _ACEOF
22056 rm -f conftest.$ac_objext conftest$ac_exeext
22057 if { (ac_try="$ac_link"
22058 case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22061 esac
22062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_link") 2>conftest.er1
22064 ac_status=$?
22065 grep -v '^ *+' conftest.er1 >conftest.err
22066 rm -f conftest.er1
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069 (exit $ac_status); } && {
22070 test -z "$ac_c_werror_flag" ||
22071 test ! -s conftest.err
22072 } && test -s conftest$ac_exeext &&
22073 $as_test_x conftest$ac_exeext; then
22074 ac_cv_lib_intl_dgettext=yes
22075 else
22076 echo "$as_me: failed program was:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22079 ac_cv_lib_intl_dgettext=no
22082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22083 conftest$ac_exeext conftest.$ac_ext
22084 LIBS=$ac_check_lib_save_LIBS
22086 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22087 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22088 if test $ac_cv_lib_intl_dgettext = yes; then
22089 cat >>confdefs.h <<_ACEOF
22090 #define HAVE_LIBINTL 1
22091 _ACEOF
22093 LIBS="-lintl $LIBS"
22098 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22099 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22100 if test "${emacs_cv_localtime_cache+set}" = set; then
22101 echo $ECHO_N "(cached) $ECHO_C" >&6
22102 else
22103 if test x$ac_cv_func_tzset = xyes; then
22104 if test "$cross_compiling" = yes; then
22105 # If we have tzset, assume the worst when cross-compiling.
22106 emacs_cv_localtime_cache=yes
22107 else
22108 cat >conftest.$ac_ext <<_ACEOF
22109 /* confdefs.h. */
22110 _ACEOF
22111 cat confdefs.h >>conftest.$ac_ext
22112 cat >>conftest.$ac_ext <<_ACEOF
22113 /* end confdefs.h. */
22114 #include <time.h>
22115 extern char **environ;
22116 unset_TZ ()
22118 char **from, **to;
22119 for (to = from = environ; (*to = *from); from++)
22120 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22121 to++;
22123 char TZ_GMT0[] = "TZ=GMT0";
22124 char TZ_PST8[] = "TZ=PST8";
22125 main()
22127 time_t now = time ((time_t *) 0);
22128 int hour_GMT0, hour_unset;
22129 if (putenv (TZ_GMT0) != 0)
22130 exit (1);
22131 hour_GMT0 = localtime (&now)->tm_hour;
22132 unset_TZ ();
22133 hour_unset = localtime (&now)->tm_hour;
22134 if (putenv (TZ_PST8) != 0)
22135 exit (1);
22136 if (localtime (&now)->tm_hour == hour_GMT0)
22137 exit (1);
22138 unset_TZ ();
22139 if (localtime (&now)->tm_hour != hour_unset)
22140 exit (1);
22141 exit (0);
22143 _ACEOF
22144 rm -f conftest$ac_exeext
22145 if { (ac_try="$ac_link"
22146 case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22149 esac
22150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_link") 2>&5
22152 ac_status=$?
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22155 { (case "(($ac_try" in
22156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22157 *) ac_try_echo=$ac_try;;
22158 esac
22159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22160 (eval "$ac_try") 2>&5
22161 ac_status=$?
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; }; then
22164 emacs_cv_localtime_cache=no
22165 else
22166 echo "$as_me: program exited with status $ac_status" >&5
22167 echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22170 ( exit $ac_status )
22171 emacs_cv_localtime_cache=yes
22173 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22177 else
22178 # If we lack tzset, report that localtime does not cache TZ,
22179 # since we can't invalidate the cache if we don't have tzset.
22180 emacs_cv_localtime_cache=no
22183 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22184 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22185 if test $emacs_cv_localtime_cache = yes; then
22187 cat >>confdefs.h <<\_ACEOF
22188 #define LOCALTIME_CACHE 1
22189 _ACEOF
22193 if test "x$HAVE_TIMEVAL" = xyes; then
22195 for ac_func in gettimeofday
22197 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22198 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22199 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22201 echo $ECHO_N "(cached) $ECHO_C" >&6
22202 else
22203 cat >conftest.$ac_ext <<_ACEOF
22204 /* confdefs.h. */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h. */
22209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22211 #define $ac_func innocuous_$ac_func
22213 /* System header to define __stub macros and hopefully few prototypes,
22214 which can conflict with char $ac_func (); below.
22215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22216 <limits.h> exists even on freestanding compilers. */
22218 #ifdef __STDC__
22219 # include <limits.h>
22220 #else
22221 # include <assert.h>
22222 #endif
22224 #undef $ac_func
22226 /* Override any GCC internal prototype to avoid an error.
22227 Use char because int might match the return type of a GCC
22228 builtin and then its argument prototype would still apply. */
22229 #ifdef __cplusplus
22230 extern "C"
22231 #endif
22232 char $ac_func ();
22233 /* The GNU C library defines this for functions which it implements
22234 to always fail with ENOSYS. Some functions are actually named
22235 something starting with __ and the normal name is an alias. */
22236 #if defined __stub_$ac_func || defined __stub___$ac_func
22237 choke me
22238 #endif
22241 main ()
22243 return $ac_func ();
22245 return 0;
22247 _ACEOF
22248 rm -f conftest.$ac_objext conftest$ac_exeext
22249 if { (ac_try="$ac_link"
22250 case "(($ac_try" in
22251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22252 *) ac_try_echo=$ac_try;;
22253 esac
22254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22255 (eval "$ac_link") 2>conftest.er1
22256 ac_status=$?
22257 grep -v '^ *+' conftest.er1 >conftest.err
22258 rm -f conftest.er1
22259 cat conftest.err >&5
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); } && {
22262 test -z "$ac_c_werror_flag" ||
22263 test ! -s conftest.err
22264 } && test -s conftest$ac_exeext &&
22265 $as_test_x conftest$ac_exeext; then
22266 eval "$as_ac_var=yes"
22267 else
22268 echo "$as_me: failed program was:" >&5
22269 sed 's/^/| /' conftest.$ac_ext >&5
22271 eval "$as_ac_var=no"
22274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22275 conftest$ac_exeext conftest.$ac_ext
22277 ac_res=`eval echo '${'$as_ac_var'}'`
22278 { echo "$as_me:$LINENO: result: $ac_res" >&5
22279 echo "${ECHO_T}$ac_res" >&6; }
22280 if test `eval echo '${'$as_ac_var'}'` = yes; then
22281 cat >>confdefs.h <<_ACEOF
22282 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22283 _ACEOF
22286 done
22288 if test $ac_cv_func_gettimeofday = yes; then
22289 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22290 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22291 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
22293 else
22294 cat >conftest.$ac_ext <<_ACEOF
22295 /* confdefs.h. */
22296 _ACEOF
22297 cat confdefs.h >>conftest.$ac_ext
22298 cat >>conftest.$ac_ext <<_ACEOF
22299 /* end confdefs.h. */
22301 #ifdef TIME_WITH_SYS_TIME
22302 #include <sys/time.h>
22303 #include <time.h>
22304 #else
22305 #ifdef HAVE_SYS_TIME_H
22306 #include <sys/time.h>
22307 #else
22308 #include <time.h>
22309 #endif
22310 #endif
22312 main ()
22314 struct timeval time;
22315 gettimeofday (&time, 0);
22317 return 0;
22319 _ACEOF
22320 rm -f conftest.$ac_objext
22321 if { (ac_try="$ac_compile"
22322 case "(($ac_try" in
22323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324 *) ac_try_echo=$ac_try;;
22325 esac
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327 (eval "$ac_compile") 2>conftest.er1
22328 ac_status=$?
22329 grep -v '^ *+' conftest.er1 >conftest.err
22330 rm -f conftest.er1
22331 cat conftest.err >&5
22332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333 (exit $ac_status); } && {
22334 test -z "$ac_c_werror_flag" ||
22335 test ! -s conftest.err
22336 } && test -s conftest.$ac_objext; then
22337 emacs_cv_gettimeofday_two_arguments=yes
22338 else
22339 echo "$as_me: failed program was:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22342 emacs_cv_gettimeofday_two_arguments=no
22345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22347 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22348 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22349 if test $emacs_cv_gettimeofday_two_arguments = no; then
22351 cat >>confdefs.h <<\_ACEOF
22352 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22353 _ACEOF
22359 ok_so_far=yes
22360 { echo "$as_me:$LINENO: checking for socket" >&5
22361 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22362 if test "${ac_cv_func_socket+set}" = set; then
22363 echo $ECHO_N "(cached) $ECHO_C" >&6
22364 else
22365 cat >conftest.$ac_ext <<_ACEOF
22366 /* confdefs.h. */
22367 _ACEOF
22368 cat confdefs.h >>conftest.$ac_ext
22369 cat >>conftest.$ac_ext <<_ACEOF
22370 /* end confdefs.h. */
22371 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22373 #define socket innocuous_socket
22375 /* System header to define __stub macros and hopefully few prototypes,
22376 which can conflict with char socket (); below.
22377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22378 <limits.h> exists even on freestanding compilers. */
22380 #ifdef __STDC__
22381 # include <limits.h>
22382 #else
22383 # include <assert.h>
22384 #endif
22386 #undef socket
22388 /* Override any GCC internal prototype to avoid an error.
22389 Use char because int might match the return type of a GCC
22390 builtin and then its argument prototype would still apply. */
22391 #ifdef __cplusplus
22392 extern "C"
22393 #endif
22394 char socket ();
22395 /* The GNU C library defines this for functions which it implements
22396 to always fail with ENOSYS. Some functions are actually named
22397 something starting with __ and the normal name is an alias. */
22398 #if defined __stub_socket || defined __stub___socket
22399 choke me
22400 #endif
22403 main ()
22405 return socket ();
22407 return 0;
22409 _ACEOF
22410 rm -f conftest.$ac_objext conftest$ac_exeext
22411 if { (ac_try="$ac_link"
22412 case "(($ac_try" in
22413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22414 *) ac_try_echo=$ac_try;;
22415 esac
22416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22417 (eval "$ac_link") 2>conftest.er1
22418 ac_status=$?
22419 grep -v '^ *+' conftest.er1 >conftest.err
22420 rm -f conftest.er1
22421 cat conftest.err >&5
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); } && {
22424 test -z "$ac_c_werror_flag" ||
22425 test ! -s conftest.err
22426 } && test -s conftest$ac_exeext &&
22427 $as_test_x conftest$ac_exeext; then
22428 ac_cv_func_socket=yes
22429 else
22430 echo "$as_me: failed program was:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22433 ac_cv_func_socket=no
22436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22437 conftest$ac_exeext conftest.$ac_ext
22439 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22440 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22441 if test $ac_cv_func_socket = yes; then
22443 else
22444 ok_so_far=no
22447 if test $ok_so_far = yes; then
22448 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22449 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22450 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22451 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22452 echo $ECHO_N "(cached) $ECHO_C" >&6
22454 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22455 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22456 else
22457 # Is the header compilable?
22458 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22459 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22460 cat >conftest.$ac_ext <<_ACEOF
22461 /* confdefs.h. */
22462 _ACEOF
22463 cat confdefs.h >>conftest.$ac_ext
22464 cat >>conftest.$ac_ext <<_ACEOF
22465 /* end confdefs.h. */
22466 $ac_includes_default
22467 #include <netinet/in.h>
22468 _ACEOF
22469 rm -f conftest.$ac_objext
22470 if { (ac_try="$ac_compile"
22471 case "(($ac_try" in
22472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22473 *) ac_try_echo=$ac_try;;
22474 esac
22475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22476 (eval "$ac_compile") 2>conftest.er1
22477 ac_status=$?
22478 grep -v '^ *+' conftest.er1 >conftest.err
22479 rm -f conftest.er1
22480 cat conftest.err >&5
22481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22482 (exit $ac_status); } && {
22483 test -z "$ac_c_werror_flag" ||
22484 test ! -s conftest.err
22485 } && test -s conftest.$ac_objext; then
22486 ac_header_compiler=yes
22487 else
22488 echo "$as_me: failed program was:" >&5
22489 sed 's/^/| /' conftest.$ac_ext >&5
22491 ac_header_compiler=no
22494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22496 echo "${ECHO_T}$ac_header_compiler" >&6; }
22498 # Is the header present?
22499 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22500 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22501 cat >conftest.$ac_ext <<_ACEOF
22502 /* confdefs.h. */
22503 _ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22507 #include <netinet/in.h>
22508 _ACEOF
22509 if { (ac_try="$ac_cpp conftest.$ac_ext"
22510 case "(($ac_try" in
22511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22512 *) ac_try_echo=$ac_try;;
22513 esac
22514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22516 ac_status=$?
22517 grep -v '^ *+' conftest.er1 >conftest.err
22518 rm -f conftest.er1
22519 cat conftest.err >&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); } >/dev/null && {
22522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22523 test ! -s conftest.err
22524 }; then
22525 ac_header_preproc=yes
22526 else
22527 echo "$as_me: failed program was:" >&5
22528 sed 's/^/| /' conftest.$ac_ext >&5
22530 ac_header_preproc=no
22533 rm -f conftest.err conftest.$ac_ext
22534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22535 echo "${ECHO_T}$ac_header_preproc" >&6; }
22537 # So? What about this header?
22538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22539 yes:no: )
22540 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22541 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22542 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22543 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22544 ac_header_preproc=yes
22546 no:yes:* )
22547 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22548 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22549 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22550 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22551 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22552 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22553 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22554 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22555 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22556 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22557 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22558 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22561 esac
22562 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22563 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22564 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22565 echo $ECHO_N "(cached) $ECHO_C" >&6
22566 else
22567 ac_cv_header_netinet_in_h=$ac_header_preproc
22569 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22570 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22573 if test $ac_cv_header_netinet_in_h = yes; then
22575 else
22576 ok_so_far=no
22581 if test $ok_so_far = yes; then
22582 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22583 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22584 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22585 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22586 echo $ECHO_N "(cached) $ECHO_C" >&6
22588 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22589 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22590 else
22591 # Is the header compilable?
22592 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22593 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22594 cat >conftest.$ac_ext <<_ACEOF
22595 /* confdefs.h. */
22596 _ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22600 $ac_includes_default
22601 #include <arpa/inet.h>
22602 _ACEOF
22603 rm -f conftest.$ac_objext
22604 if { (ac_try="$ac_compile"
22605 case "(($ac_try" in
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22608 esac
22609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22610 (eval "$ac_compile") 2>conftest.er1
22611 ac_status=$?
22612 grep -v '^ *+' conftest.er1 >conftest.err
22613 rm -f conftest.er1
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } && {
22617 test -z "$ac_c_werror_flag" ||
22618 test ! -s conftest.err
22619 } && test -s conftest.$ac_objext; then
22620 ac_header_compiler=yes
22621 else
22622 echo "$as_me: failed program was:" >&5
22623 sed 's/^/| /' conftest.$ac_ext >&5
22625 ac_header_compiler=no
22628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22630 echo "${ECHO_T}$ac_header_compiler" >&6; }
22632 # Is the header present?
22633 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22634 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22635 cat >conftest.$ac_ext <<_ACEOF
22636 /* confdefs.h. */
22637 _ACEOF
22638 cat confdefs.h >>conftest.$ac_ext
22639 cat >>conftest.$ac_ext <<_ACEOF
22640 /* end confdefs.h. */
22641 #include <arpa/inet.h>
22642 _ACEOF
22643 if { (ac_try="$ac_cpp conftest.$ac_ext"
22644 case "(($ac_try" in
22645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646 *) ac_try_echo=$ac_try;;
22647 esac
22648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22650 ac_status=$?
22651 grep -v '^ *+' conftest.er1 >conftest.err
22652 rm -f conftest.er1
22653 cat conftest.err >&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } >/dev/null && {
22656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22657 test ! -s conftest.err
22658 }; then
22659 ac_header_preproc=yes
22660 else
22661 echo "$as_me: failed program was:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22664 ac_header_preproc=no
22667 rm -f conftest.err conftest.$ac_ext
22668 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22669 echo "${ECHO_T}$ac_header_preproc" >&6; }
22671 # So? What about this header?
22672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22673 yes:no: )
22674 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22675 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22676 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22677 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22678 ac_header_preproc=yes
22680 no:yes:* )
22681 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22682 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22683 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22684 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22685 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22686 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22687 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22688 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22689 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22690 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22691 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22692 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22695 esac
22696 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22697 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22698 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22701 ac_cv_header_arpa_inet_h=$ac_header_preproc
22703 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22704 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22707 if test $ac_cv_header_arpa_inet_h = yes; then
22709 else
22710 ok_so_far=no
22715 if test $ok_so_far = yes; then
22717 cat >>confdefs.h <<\_ACEOF
22718 #define HAVE_INET_SOCKETS 1
22719 _ACEOF
22724 for ac_header in sys/ioctl.h
22726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22731 echo $ECHO_N "(cached) $ECHO_C" >&6
22733 ac_res=`eval echo '${'$as_ac_Header'}'`
22734 { echo "$as_me:$LINENO: result: $ac_res" >&5
22735 echo "${ECHO_T}$ac_res" >&6; }
22736 else
22737 # Is the header compilable?
22738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22740 cat >conftest.$ac_ext <<_ACEOF
22741 /* confdefs.h. */
22742 _ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h. */
22746 $ac_includes_default
22747 #include <$ac_header>
22748 _ACEOF
22749 rm -f conftest.$ac_objext
22750 if { (ac_try="$ac_compile"
22751 case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22754 esac
22755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_compile") 2>conftest.er1
22757 ac_status=$?
22758 grep -v '^ *+' conftest.er1 >conftest.err
22759 rm -f conftest.er1
22760 cat conftest.err >&5
22761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22762 (exit $ac_status); } && {
22763 test -z "$ac_c_werror_flag" ||
22764 test ! -s conftest.err
22765 } && test -s conftest.$ac_objext; then
22766 ac_header_compiler=yes
22767 else
22768 echo "$as_me: failed program was:" >&5
22769 sed 's/^/| /' conftest.$ac_ext >&5
22771 ac_header_compiler=no
22774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22776 echo "${ECHO_T}$ac_header_compiler" >&6; }
22778 # Is the header present?
22779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22781 cat >conftest.$ac_ext <<_ACEOF
22782 /* confdefs.h. */
22783 _ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h. */
22787 #include <$ac_header>
22788 _ACEOF
22789 if { (ac_try="$ac_cpp conftest.$ac_ext"
22790 case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22793 esac
22794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22796 ac_status=$?
22797 grep -v '^ *+' conftest.er1 >conftest.err
22798 rm -f conftest.er1
22799 cat conftest.err >&5
22800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } >/dev/null && {
22802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22803 test ! -s conftest.err
22804 }; then
22805 ac_header_preproc=yes
22806 else
22807 echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22810 ac_header_preproc=no
22813 rm -f conftest.err conftest.$ac_ext
22814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22815 echo "${ECHO_T}$ac_header_preproc" >&6; }
22817 # So? What about this header?
22818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22819 yes:no: )
22820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22824 ac_header_preproc=yes
22826 no:yes:* )
22827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22841 esac
22842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22845 echo $ECHO_N "(cached) $ECHO_C" >&6
22846 else
22847 eval "$as_ac_Header=\$ac_header_preproc"
22849 ac_res=`eval echo '${'$as_ac_Header'}'`
22850 { echo "$as_me:$LINENO: result: $ac_res" >&5
22851 echo "${ECHO_T}$ac_res" >&6; }
22854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22855 cat >>confdefs.h <<_ACEOF
22856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22857 _ACEOF
22861 done
22864 if test -f /usr/lpp/X11/bin/smt.exp; then
22866 cat >>confdefs.h <<\_ACEOF
22867 #define HAVE_AIX_SMT_EXP 1
22868 _ACEOF
22872 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22873 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22874 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22875 { echo "$as_me:$LINENO: result: yes" >&5
22876 echo "${ECHO_T}yes" >&6; }
22878 cat >>confdefs.h <<\_ACEOF
22879 #define HAVE_DEV_PTMX 1
22880 _ACEOF
22882 else
22883 { echo "$as_me:$LINENO: result: no" >&5
22884 echo "${ECHO_T}no" >&6; }
22887 { echo "$as_me:$LINENO: checking for pid_t" >&5
22888 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22889 if test "${ac_cv_type_pid_t+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h. */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 $ac_includes_default
22899 typedef pid_t ac__type_new_;
22901 main ()
22903 if ((ac__type_new_ *) 0)
22904 return 0;
22905 if (sizeof (ac__type_new_))
22906 return 0;
22908 return 0;
22910 _ACEOF
22911 rm -f conftest.$ac_objext
22912 if { (ac_try="$ac_compile"
22913 case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22916 esac
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_compile") 2>conftest.er1
22919 ac_status=$?
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } && {
22925 test -z "$ac_c_werror_flag" ||
22926 test ! -s conftest.err
22927 } && test -s conftest.$ac_objext; then
22928 ac_cv_type_pid_t=yes
22929 else
22930 echo "$as_me: failed program was:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22933 ac_cv_type_pid_t=no
22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22938 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22939 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22940 if test $ac_cv_type_pid_t = yes; then
22942 else
22944 cat >>confdefs.h <<_ACEOF
22945 #define pid_t int
22946 _ACEOF
22951 for ac_header in vfork.h
22953 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22960 ac_res=`eval echo '${'$as_ac_Header'}'`
22961 { echo "$as_me:$LINENO: result: $ac_res" >&5
22962 echo "${ECHO_T}$ac_res" >&6; }
22963 else
22964 # Is the header compilable?
22965 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22966 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22967 cat >conftest.$ac_ext <<_ACEOF
22968 /* confdefs.h. */
22969 _ACEOF
22970 cat confdefs.h >>conftest.$ac_ext
22971 cat >>conftest.$ac_ext <<_ACEOF
22972 /* end confdefs.h. */
22973 $ac_includes_default
22974 #include <$ac_header>
22975 _ACEOF
22976 rm -f conftest.$ac_objext
22977 if { (ac_try="$ac_compile"
22978 case "(($ac_try" in
22979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980 *) ac_try_echo=$ac_try;;
22981 esac
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983 (eval "$ac_compile") 2>conftest.er1
22984 ac_status=$?
22985 grep -v '^ *+' conftest.er1 >conftest.err
22986 rm -f conftest.er1
22987 cat conftest.err >&5
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); } && {
22990 test -z "$ac_c_werror_flag" ||
22991 test ! -s conftest.err
22992 } && test -s conftest.$ac_objext; then
22993 ac_header_compiler=yes
22994 else
22995 echo "$as_me: failed program was:" >&5
22996 sed 's/^/| /' conftest.$ac_ext >&5
22998 ac_header_compiler=no
23001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23002 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23003 echo "${ECHO_T}$ac_header_compiler" >&6; }
23005 # Is the header present?
23006 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23007 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23008 cat >conftest.$ac_ext <<_ACEOF
23009 /* confdefs.h. */
23010 _ACEOF
23011 cat confdefs.h >>conftest.$ac_ext
23012 cat >>conftest.$ac_ext <<_ACEOF
23013 /* end confdefs.h. */
23014 #include <$ac_header>
23015 _ACEOF
23016 if { (ac_try="$ac_cpp conftest.$ac_ext"
23017 case "(($ac_try" in
23018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23019 *) ac_try_echo=$ac_try;;
23020 esac
23021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23023 ac_status=$?
23024 grep -v '^ *+' conftest.er1 >conftest.err
23025 rm -f conftest.er1
23026 cat conftest.err >&5
23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028 (exit $ac_status); } >/dev/null && {
23029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23030 test ! -s conftest.err
23031 }; then
23032 ac_header_preproc=yes
23033 else
23034 echo "$as_me: failed program was:" >&5
23035 sed 's/^/| /' conftest.$ac_ext >&5
23037 ac_header_preproc=no
23040 rm -f conftest.err conftest.$ac_ext
23041 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23042 echo "${ECHO_T}$ac_header_preproc" >&6; }
23044 # So? What about this header?
23045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23046 yes:no: )
23047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23048 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23051 ac_header_preproc=yes
23053 no:yes:* )
23054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23055 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23057 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23059 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23061 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23065 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23068 esac
23069 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23072 echo $ECHO_N "(cached) $ECHO_C" >&6
23073 else
23074 eval "$as_ac_Header=\$ac_header_preproc"
23076 ac_res=`eval echo '${'$as_ac_Header'}'`
23077 { echo "$as_me:$LINENO: result: $ac_res" >&5
23078 echo "${ECHO_T}$ac_res" >&6; }
23081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23082 cat >>confdefs.h <<_ACEOF
23083 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23084 _ACEOF
23088 done
23092 for ac_func in fork vfork
23094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23098 echo $ECHO_N "(cached) $ECHO_C" >&6
23099 else
23100 cat >conftest.$ac_ext <<_ACEOF
23101 /* confdefs.h. */
23102 _ACEOF
23103 cat confdefs.h >>conftest.$ac_ext
23104 cat >>conftest.$ac_ext <<_ACEOF
23105 /* end confdefs.h. */
23106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23108 #define $ac_func innocuous_$ac_func
23110 /* System header to define __stub macros and hopefully few prototypes,
23111 which can conflict with char $ac_func (); below.
23112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23113 <limits.h> exists even on freestanding compilers. */
23115 #ifdef __STDC__
23116 # include <limits.h>
23117 #else
23118 # include <assert.h>
23119 #endif
23121 #undef $ac_func
23123 /* Override any GCC internal prototype to avoid an error.
23124 Use char because int might match the return type of a GCC
23125 builtin and then its argument prototype would still apply. */
23126 #ifdef __cplusplus
23127 extern "C"
23128 #endif
23129 char $ac_func ();
23130 /* The GNU C library defines this for functions which it implements
23131 to always fail with ENOSYS. Some functions are actually named
23132 something starting with __ and the normal name is an alias. */
23133 #if defined __stub_$ac_func || defined __stub___$ac_func
23134 choke me
23135 #endif
23138 main ()
23140 return $ac_func ();
23142 return 0;
23144 _ACEOF
23145 rm -f conftest.$ac_objext conftest$ac_exeext
23146 if { (ac_try="$ac_link"
23147 case "(($ac_try" in
23148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23149 *) ac_try_echo=$ac_try;;
23150 esac
23151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23152 (eval "$ac_link") 2>conftest.er1
23153 ac_status=$?
23154 grep -v '^ *+' conftest.er1 >conftest.err
23155 rm -f conftest.er1
23156 cat conftest.err >&5
23157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); } && {
23159 test -z "$ac_c_werror_flag" ||
23160 test ! -s conftest.err
23161 } && test -s conftest$ac_exeext &&
23162 $as_test_x conftest$ac_exeext; then
23163 eval "$as_ac_var=yes"
23164 else
23165 echo "$as_me: failed program was:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23168 eval "$as_ac_var=no"
23171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23172 conftest$ac_exeext conftest.$ac_ext
23174 ac_res=`eval echo '${'$as_ac_var'}'`
23175 { echo "$as_me:$LINENO: result: $ac_res" >&5
23176 echo "${ECHO_T}$ac_res" >&6; }
23177 if test `eval echo '${'$as_ac_var'}'` = yes; then
23178 cat >>confdefs.h <<_ACEOF
23179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23180 _ACEOF
23183 done
23185 if test "x$ac_cv_func_fork" = xyes; then
23186 { echo "$as_me:$LINENO: checking for working fork" >&5
23187 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23188 if test "${ac_cv_func_fork_works+set}" = set; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23190 else
23191 if test "$cross_compiling" = yes; then
23192 ac_cv_func_fork_works=cross
23193 else
23194 cat >conftest.$ac_ext <<_ACEOF
23195 /* confdefs.h. */
23196 _ACEOF
23197 cat confdefs.h >>conftest.$ac_ext
23198 cat >>conftest.$ac_ext <<_ACEOF
23199 /* end confdefs.h. */
23200 $ac_includes_default
23202 main ()
23205 /* By Ruediger Kuhlmann. */
23206 return fork () < 0;
23209 return 0;
23211 _ACEOF
23212 rm -f conftest$ac_exeext
23213 if { (ac_try="$ac_link"
23214 case "(($ac_try" in
23215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216 *) ac_try_echo=$ac_try;;
23217 esac
23218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219 (eval "$ac_link") 2>&5
23220 ac_status=$?
23221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23222 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23223 { (case "(($ac_try" in
23224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23225 *) ac_try_echo=$ac_try;;
23226 esac
23227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23228 (eval "$ac_try") 2>&5
23229 ac_status=$?
23230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231 (exit $ac_status); }; }; then
23232 ac_cv_func_fork_works=yes
23233 else
23234 echo "$as_me: program exited with status $ac_status" >&5
23235 echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23238 ( exit $ac_status )
23239 ac_cv_func_fork_works=no
23241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23246 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23247 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23249 else
23250 ac_cv_func_fork_works=$ac_cv_func_fork
23252 if test "x$ac_cv_func_fork_works" = xcross; then
23253 case $host in
23254 *-*-amigaos* | *-*-msdosdjgpp*)
23255 # Override, as these systems have only a dummy fork() stub
23256 ac_cv_func_fork_works=no
23259 ac_cv_func_fork_works=yes
23261 esac
23262 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23263 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23265 ac_cv_func_vfork_works=$ac_cv_func_vfork
23266 if test "x$ac_cv_func_vfork" = xyes; then
23267 { echo "$as_me:$LINENO: checking for working vfork" >&5
23268 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23269 if test "${ac_cv_func_vfork_works+set}" = set; then
23270 echo $ECHO_N "(cached) $ECHO_C" >&6
23271 else
23272 if test "$cross_compiling" = yes; then
23273 ac_cv_func_vfork_works=cross
23274 else
23275 cat >conftest.$ac_ext <<_ACEOF
23276 /* confdefs.h. */
23277 _ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h. */
23281 /* Thanks to Paul Eggert for this test. */
23282 $ac_includes_default
23283 #include <sys/wait.h>
23284 #ifdef HAVE_VFORK_H
23285 # include <vfork.h>
23286 #endif
23287 /* On some sparc systems, changes by the child to local and incoming
23288 argument registers are propagated back to the parent. The compiler
23289 is told about this with #include <vfork.h>, but some compilers
23290 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23291 static variable whose address is put into a register that is
23292 clobbered by the vfork. */
23293 static void
23294 #ifdef __cplusplus
23295 sparc_address_test (int arg)
23296 # else
23297 sparc_address_test (arg) int arg;
23298 #endif
23300 static pid_t child;
23301 if (!child) {
23302 child = vfork ();
23303 if (child < 0) {
23304 perror ("vfork");
23305 _exit(2);
23307 if (!child) {
23308 arg = getpid();
23309 write(-1, "", 0);
23310 _exit (arg);
23316 main ()
23318 pid_t parent = getpid ();
23319 pid_t child;
23321 sparc_address_test (0);
23323 child = vfork ();
23325 if (child == 0) {
23326 /* Here is another test for sparc vfork register problems. This
23327 test uses lots of local variables, at least as many local
23328 variables as main has allocated so far including compiler
23329 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23330 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23331 reuse the register of parent for one of the local variables,
23332 since it will think that parent can't possibly be used any more
23333 in this routine. Assigning to the local variable will thus
23334 munge parent in the parent process. */
23335 pid_t
23336 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23337 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23338 /* Convince the compiler that p..p7 are live; otherwise, it might
23339 use the same hardware register for all 8 local variables. */
23340 if (p != p1 || p != p2 || p != p3 || p != p4
23341 || p != p5 || p != p6 || p != p7)
23342 _exit(1);
23344 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23345 from child file descriptors. If the child closes a descriptor
23346 before it execs or exits, this munges the parent's descriptor
23347 as well. Test for this by closing stdout in the child. */
23348 _exit(close(fileno(stdout)) != 0);
23349 } else {
23350 int status;
23351 struct stat st;
23353 while (wait(&status) != child)
23355 return (
23356 /* Was there some problem with vforking? */
23357 child < 0
23359 /* Did the child fail? (This shouldn't happen.) */
23360 || status
23362 /* Did the vfork/compiler bug occur? */
23363 || parent != getpid()
23365 /* Did the file descriptor bug occur? */
23366 || fstat(fileno(stdout), &st) != 0
23370 _ACEOF
23371 rm -f conftest$ac_exeext
23372 if { (ac_try="$ac_link"
23373 case "(($ac_try" in
23374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23376 esac
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378 (eval "$ac_link") 2>&5
23379 ac_status=$?
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23382 { (case "(($ac_try" in
23383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384 *) ac_try_echo=$ac_try;;
23385 esac
23386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23387 (eval "$ac_try") 2>&5
23388 ac_status=$?
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); }; }; then
23391 ac_cv_func_vfork_works=yes
23392 else
23393 echo "$as_me: program exited with status $ac_status" >&5
23394 echo "$as_me: failed program was:" >&5
23395 sed 's/^/| /' conftest.$ac_ext >&5
23397 ( exit $ac_status )
23398 ac_cv_func_vfork_works=no
23400 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23405 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23406 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23409 if test "x$ac_cv_func_fork_works" = xcross; then
23410 ac_cv_func_vfork_works=$ac_cv_func_vfork
23411 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23412 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23415 if test "x$ac_cv_func_vfork_works" = xyes; then
23417 cat >>confdefs.h <<\_ACEOF
23418 #define HAVE_WORKING_VFORK 1
23419 _ACEOF
23421 else
23423 cat >>confdefs.h <<\_ACEOF
23424 #define vfork fork
23425 _ACEOF
23428 if test "x$ac_cv_func_fork_works" = xyes; then
23430 cat >>confdefs.h <<\_ACEOF
23431 #define HAVE_WORKING_FORK 1
23432 _ACEOF
23437 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23438 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23439 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23440 echo $ECHO_N "(cached) $ECHO_C" >&6
23441 else
23442 cat >conftest.$ac_ext <<_ACEOF
23443 /* confdefs.h. */
23444 _ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23448 #include <langinfo.h>
23450 main ()
23452 char* cs = nl_langinfo(CODESET);
23454 return 0;
23456 _ACEOF
23457 rm -f conftest.$ac_objext conftest$ac_exeext
23458 if { (ac_try="$ac_link"
23459 case "(($ac_try" in
23460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461 *) ac_try_echo=$ac_try;;
23462 esac
23463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23464 (eval "$ac_link") 2>conftest.er1
23465 ac_status=$?
23466 grep -v '^ *+' conftest.er1 >conftest.err
23467 rm -f conftest.er1
23468 cat conftest.err >&5
23469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470 (exit $ac_status); } && {
23471 test -z "$ac_c_werror_flag" ||
23472 test ! -s conftest.err
23473 } && test -s conftest$ac_exeext &&
23474 $as_test_x conftest$ac_exeext; then
23475 emacs_cv_langinfo_codeset=yes
23476 else
23477 echo "$as_me: failed program was:" >&5
23478 sed 's/^/| /' conftest.$ac_ext >&5
23480 emacs_cv_langinfo_codeset=no
23483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23484 conftest$ac_exeext conftest.$ac_ext
23487 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23488 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23489 if test $emacs_cv_langinfo_codeset = yes; then
23491 cat >>confdefs.h <<\_ACEOF
23492 #define HAVE_LANGINFO_CODESET 1
23493 _ACEOF
23497 { echo "$as_me:$LINENO: checking for size_t" >&5
23498 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23499 if test "${ac_cv_type_size_t+set}" = set; then
23500 echo $ECHO_N "(cached) $ECHO_C" >&6
23501 else
23502 cat >conftest.$ac_ext <<_ACEOF
23503 /* confdefs.h. */
23504 _ACEOF
23505 cat confdefs.h >>conftest.$ac_ext
23506 cat >>conftest.$ac_ext <<_ACEOF
23507 /* end confdefs.h. */
23508 $ac_includes_default
23509 typedef size_t ac__type_new_;
23511 main ()
23513 if ((ac__type_new_ *) 0)
23514 return 0;
23515 if (sizeof (ac__type_new_))
23516 return 0;
23518 return 0;
23520 _ACEOF
23521 rm -f conftest.$ac_objext
23522 if { (ac_try="$ac_compile"
23523 case "(($ac_try" in
23524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525 *) ac_try_echo=$ac_try;;
23526 esac
23527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528 (eval "$ac_compile") 2>conftest.er1
23529 ac_status=$?
23530 grep -v '^ *+' conftest.er1 >conftest.err
23531 rm -f conftest.er1
23532 cat conftest.err >&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && {
23535 test -z "$ac_c_werror_flag" ||
23536 test ! -s conftest.err
23537 } && test -s conftest.$ac_objext; then
23538 ac_cv_type_size_t=yes
23539 else
23540 echo "$as_me: failed program was:" >&5
23541 sed 's/^/| /' conftest.$ac_ext >&5
23543 ac_cv_type_size_t=no
23546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23548 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23549 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23550 if test $ac_cv_type_size_t = yes; then
23552 cat >>confdefs.h <<_ACEOF
23553 #define HAVE_SIZE_T 1
23554 _ACEOF
23560 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23561 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23562 if test "${ac_cv_type_mbstate_t+set}" = set; then
23563 echo $ECHO_N "(cached) $ECHO_C" >&6
23564 else
23565 cat >conftest.$ac_ext <<_ACEOF
23566 /* confdefs.h. */
23567 _ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23571 $ac_includes_default
23572 # include <wchar.h>
23574 main ()
23576 mbstate_t x; return sizeof x;
23578 return 0;
23580 _ACEOF
23581 rm -f conftest.$ac_objext
23582 if { (ac_try="$ac_compile"
23583 case "(($ac_try" in
23584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23585 *) ac_try_echo=$ac_try;;
23586 esac
23587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23588 (eval "$ac_compile") 2>conftest.er1
23589 ac_status=$?
23590 grep -v '^ *+' conftest.er1 >conftest.err
23591 rm -f conftest.er1
23592 cat conftest.err >&5
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } && {
23595 test -z "$ac_c_werror_flag" ||
23596 test ! -s conftest.err
23597 } && test -s conftest.$ac_objext; then
23598 ac_cv_type_mbstate_t=yes
23599 else
23600 echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.$ac_ext >&5
23603 ac_cv_type_mbstate_t=no
23606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23608 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23609 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23610 if test $ac_cv_type_mbstate_t = yes; then
23612 cat >>confdefs.h <<\_ACEOF
23613 #define HAVE_MBSTATE_T 1
23614 _ACEOF
23616 else
23618 cat >>confdefs.h <<\_ACEOF
23619 #define mbstate_t int
23620 _ACEOF
23624 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23625 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23626 if test "${emacs_cv_c_restrict+set}" = set; then
23627 echo $ECHO_N "(cached) $ECHO_C" >&6
23628 else
23629 cat >conftest.$ac_ext <<_ACEOF
23630 /* confdefs.h. */
23631 _ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h. */
23635 void fred (int *restrict x);
23637 main ()
23641 return 0;
23643 _ACEOF
23644 rm -f conftest.$ac_objext
23645 if { (ac_try="$ac_compile"
23646 case "(($ac_try" in
23647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23648 *) ac_try_echo=$ac_try;;
23649 esac
23650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23651 (eval "$ac_compile") 2>conftest.er1
23652 ac_status=$?
23653 grep -v '^ *+' conftest.er1 >conftest.err
23654 rm -f conftest.er1
23655 cat conftest.err >&5
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); } && {
23658 test -z "$ac_c_werror_flag" ||
23659 test ! -s conftest.err
23660 } && test -s conftest.$ac_objext; then
23661 emacs_cv_c_restrict=yes
23662 else
23663 echo "$as_me: failed program was:" >&5
23664 sed 's/^/| /' conftest.$ac_ext >&5
23666 cat >conftest.$ac_ext <<_ACEOF
23667 /* confdefs.h. */
23668 _ACEOF
23669 cat confdefs.h >>conftest.$ac_ext
23670 cat >>conftest.$ac_ext <<_ACEOF
23671 /* end confdefs.h. */
23672 void fred (int *__restrict x);
23674 main ()
23678 return 0;
23680 _ACEOF
23681 rm -f conftest.$ac_objext
23682 if { (ac_try="$ac_compile"
23683 case "(($ac_try" in
23684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685 *) ac_try_echo=$ac_try;;
23686 esac
23687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23688 (eval "$ac_compile") 2>conftest.er1
23689 ac_status=$?
23690 grep -v '^ *+' conftest.er1 >conftest.err
23691 rm -f conftest.er1
23692 cat conftest.err >&5
23693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694 (exit $ac_status); } && {
23695 test -z "$ac_c_werror_flag" ||
23696 test ! -s conftest.err
23697 } && test -s conftest.$ac_objext; then
23698 emacs_cv_c_restrict=__restrict
23699 else
23700 echo "$as_me: failed program was:" >&5
23701 sed 's/^/| /' conftest.$ac_ext >&5
23703 emacs_cv_c_restrict=no
23706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23711 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23712 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23713 case "$emacs_cv_c_restrict" in
23714 yes) emacs_restrict=restrict;;
23715 no) emacs_restrict="";;
23716 *) emacs_restrict="$emacs_cv_c_restrict";;
23717 esac
23718 if test "$emacs_restrict" != __restrict; then
23720 cat >>confdefs.h <<_ACEOF
23721 #define __restrict $emacs_restrict
23722 _ACEOF
23726 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23727 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23728 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23729 echo $ECHO_N "(cached) $ECHO_C" >&6
23730 else
23731 cat >conftest.$ac_ext <<_ACEOF
23732 /* confdefs.h. */
23733 _ACEOF
23734 cat confdefs.h >>conftest.$ac_ext
23735 cat >>conftest.$ac_ext <<_ACEOF
23736 /* end confdefs.h. */
23737 void fred (int x[__restrict]);
23739 main ()
23743 return 0;
23745 _ACEOF
23746 rm -f conftest.$ac_objext
23747 if { (ac_try="$ac_compile"
23748 case "(($ac_try" in
23749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750 *) ac_try_echo=$ac_try;;
23751 esac
23752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23753 (eval "$ac_compile") 2>conftest.er1
23754 ac_status=$?
23755 grep -v '^ *+' conftest.er1 >conftest.err
23756 rm -f conftest.er1
23757 cat conftest.err >&5
23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759 (exit $ac_status); } && {
23760 test -z "$ac_c_werror_flag" ||
23761 test ! -s conftest.err
23762 } && test -s conftest.$ac_objext; then
23763 emacs_cv_c_restrict_arr=yes
23764 else
23765 echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23768 emacs_cv_c_restrict_arr=no
23771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23774 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23775 if test "$emacs_cv_c_restrict_arr" = yes; then
23777 cat >>confdefs.h <<\_ACEOF
23778 #define __restrict_arr __restrict
23779 _ACEOF
23785 # Set up the CFLAGS for real compilation, so we can substitute it.
23786 CFLAGS="$REAL_CFLAGS"
23787 CPPFLAGS="$REAL_CPPFLAGS"
23789 #### Find out which version of Emacs this is.
23790 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23791 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23792 if test x"${version}" = x; then
23793 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23794 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23795 { (exit 1); exit 1; }; }
23798 ### Specify what sort of things we'll be editing into Makefile and config.h.
23799 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23835 cat >>confdefs.h <<_ACEOF
23836 #define EMACS_CONFIGURATION "${canonical}"
23837 _ACEOF
23840 cat >>confdefs.h <<_ACEOF
23841 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23842 _ACEOF
23845 cat >>confdefs.h <<_ACEOF
23846 #define config_machfile "${machfile}"
23847 _ACEOF
23850 cat >>confdefs.h <<_ACEOF
23851 #define config_opsysfile "${opsysfile}"
23852 _ACEOF
23855 cat >>confdefs.h <<_ACEOF
23856 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23857 _ACEOF
23860 cat >>confdefs.h <<_ACEOF
23861 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23862 _ACEOF
23865 cat >>confdefs.h <<_ACEOF
23866 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23867 _ACEOF
23870 cat >>confdefs.h <<_ACEOF
23871 #define UNEXEC_SRC ${UNEXEC_SRC}
23872 _ACEOF
23875 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23877 cat >>confdefs.h <<\_ACEOF
23878 #define HAVE_X_WINDOWS 1
23879 _ACEOF
23882 if test "${USE_X_TOOLKIT}" != "none" ; then
23884 cat >>confdefs.h <<\_ACEOF
23885 #define USE_X_TOOLKIT 1
23886 _ACEOF
23889 if test "${HAVE_X11}" = "yes" ; then
23891 cat >>confdefs.h <<\_ACEOF
23892 #define HAVE_X11 1
23893 _ACEOF
23896 if test "${HAVE_XFREE386}" = "yes" ; then
23898 cat >>confdefs.h <<\_ACEOF
23899 #define HAVE_XFREE386 1
23900 _ACEOF
23903 if test "${HAVE_MENUS}" = "yes" ; then
23905 cat >>confdefs.h <<\_ACEOF
23906 #define HAVE_MENUS 1
23907 _ACEOF
23910 if test "${GNU_MALLOC}" = "yes" ; then
23912 cat >>confdefs.h <<\_ACEOF
23913 #define GNU_MALLOC 1
23914 _ACEOF
23917 if test "${REL_ALLOC}" = "yes" ; then
23919 cat >>confdefs.h <<\_ACEOF
23920 #define REL_ALLOC 1
23921 _ACEOF
23930 #### Report on what we decided to do.
23931 #### Report GTK as a toolkit, even if it doesn't use Xt.
23932 #### It makes printing result more understandable as using GTK sets
23933 #### toolkit_scroll_bars to yes by default.
23934 if test "${HAVE_GTK}" = "yes"; then
23935 USE_X_TOOLKIT=GTK
23938 echo "
23939 Configured for \`${canonical}'.
23941 Where should the build process find the source code? ${srcdir}
23942 What operating system and machine description files should Emacs use?
23943 \`${opsysfile}' and \`${machfile}'
23944 What compiler should emacs be built with? ${CC} ${CFLAGS}
23945 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23946 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23947 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23948 What window system should Emacs use? ${window_system}
23949 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23951 if test -n "${x_includes}"; then
23952 echo " Where do we find X Windows header files? ${x_includes}"
23953 else
23954 echo " Where do we find X Windows header files? Standard dirs"
23956 if test -n "${x_libraries}"; then
23957 echo " Where do we find X Windows libraries? ${x_libraries}"
23958 else
23959 echo " Where do we find X Windows libraries? Standard dirs"
23962 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23963 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23964 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23965 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23966 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23967 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23968 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23969 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23970 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23971 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23972 echo
23974 if test $USE_XASSERTS = yes; then
23975 echo " Compiling with asserts turned on."
23976 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23977 echo
23980 if test "$USE_X_TOOLKIT" = GTK; then
23981 case "$canonical" in
23982 *cygwin*)
23983 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23984 will probably get a crash on startup. If this happens, please use another
23985 toolkit for Emacs. See etc/PROBLEMS for more information."
23987 esac
23991 if test "$HAVE_CARBON" = "yes"; then
23992 echo
23993 echo "Warning: The Mac Carbon port is currently unsupported and has
23994 known problems. It is not recommended for use by non-developers.
23995 Read the emacs-devel archives for more information."
23996 echo
23999 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24000 echo "D-Bus integration has been tested for GNU/Linux only."
24001 echo
24005 # Remove any trailing slashes in these variables.
24006 test "${prefix}" != NONE &&
24007 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24008 test "${exec_prefix}" != NONE &&
24009 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24011 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24012 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24013 ## from Makefile.c can correctly provide the arg `-traditional' to the
24014 ## C preprocessor.
24016 cat >conftest.$ac_ext <<_ACEOF
24017 /* confdefs.h. */
24018 _ACEOF
24019 cat confdefs.h >>conftest.$ac_ext
24020 cat >>conftest.$ac_ext <<_ACEOF
24021 /* end confdefs.h. */
24022 yes..yes
24023 _ACEOF
24024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24025 $EGREP "yes..yes" >/dev/null 2>&1; then
24026 CPP_NEED_TRADITIONAL=no
24027 else
24028 CPP_NEED_TRADITIONAL=yes
24030 rm -f conftest*
24033 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"
24035 ac_config_commands="$ac_config_commands default"
24037 cat >confcache <<\_ACEOF
24038 # This file is a shell script that caches the results of configure
24039 # tests run on this system so they can be shared between configure
24040 # scripts and configure runs, see configure's option --config-cache.
24041 # It is not useful on other systems. If it contains results you don't
24042 # want to keep, you may remove or edit it.
24044 # config.status only pays attention to the cache file if you give it
24045 # the --recheck option to rerun configure.
24047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24049 # following values.
24051 _ACEOF
24053 # The following way of writing the cache mishandles newlines in values,
24054 # but we know of no workaround that is simple, portable, and efficient.
24055 # So, we kill variables containing newlines.
24056 # Ultrix sh set writes to stderr and can't be redirected directly,
24057 # and sets the high bit in the cache file unless we assign to the vars.
24059 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24060 eval ac_val=\$$ac_var
24061 case $ac_val in #(
24062 *${as_nl}*)
24063 case $ac_var in #(
24064 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24065 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24066 esac
24067 case $ac_var in #(
24068 _ | IFS | as_nl) ;; #(
24069 *) $as_unset $ac_var ;;
24070 esac ;;
24071 esac
24072 done
24074 (set) 2>&1 |
24075 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24076 *${as_nl}ac_space=\ *)
24077 # `set' does not quote correctly, so add quotes (double-quote
24078 # substitution turns \\\\ into \\, and sed turns \\ into \).
24079 sed -n \
24080 "s/'/'\\\\''/g;
24081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24082 ;; #(
24084 # `set' quotes correctly as required by POSIX, so do not add quotes.
24085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24087 esac |
24088 sort
24090 sed '
24091 /^ac_cv_env_/b end
24092 t clear
24093 :clear
24094 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24095 t end
24096 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24097 :end' >>confcache
24098 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24099 if test -w "$cache_file"; then
24100 test "x$cache_file" != "x/dev/null" &&
24101 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24102 echo "$as_me: updating cache $cache_file" >&6;}
24103 cat confcache >$cache_file
24104 else
24105 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24106 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24109 rm -f confcache
24111 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24112 # Let make expand exec_prefix.
24113 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24115 DEFS=-DHAVE_CONFIG_H
24117 ac_libobjs=
24118 ac_ltlibobjs=
24119 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24120 # 1. Remove the extension, and $U if already installed.
24121 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24122 ac_i=`echo "$ac_i" | sed "$ac_script"`
24123 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24124 # will be set to the directory where LIBOBJS objects are built.
24125 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24126 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24127 done
24128 LIBOBJS=$ac_libobjs
24130 LTLIBOBJS=$ac_ltlibobjs
24134 : ${CONFIG_STATUS=./config.status}
24135 ac_clean_files_save=$ac_clean_files
24136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24137 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24138 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24139 cat >$CONFIG_STATUS <<_ACEOF
24140 #! $SHELL
24141 # Generated by $as_me.
24142 # Run this file to recreate the current configuration.
24143 # Compiler output produced by configure, useful for debugging
24144 # configure, is in config.log if it exists.
24146 debug=false
24147 ac_cs_recheck=false
24148 ac_cs_silent=false
24149 SHELL=\${CONFIG_SHELL-$SHELL}
24150 _ACEOF
24152 cat >>$CONFIG_STATUS <<\_ACEOF
24153 ## --------------------- ##
24154 ## M4sh Initialization. ##
24155 ## --------------------- ##
24157 # Be more Bourne compatible
24158 DUALCASE=1; export DUALCASE # for MKS sh
24159 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24160 emulate sh
24161 NULLCMD=:
24162 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24163 # is contrary to our usage. Disable this feature.
24164 alias -g '${1+"$@"}'='"$@"'
24165 setopt NO_GLOB_SUBST
24166 else
24167 case `(set -o) 2>/dev/null` in
24168 *posix*) set -o posix ;;
24169 esac
24176 # PATH needs CR
24177 # Avoid depending upon Character Ranges.
24178 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24179 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24180 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24181 as_cr_digits='0123456789'
24182 as_cr_alnum=$as_cr_Letters$as_cr_digits
24184 # The user is always right.
24185 if test "${PATH_SEPARATOR+set}" != set; then
24186 echo "#! /bin/sh" >conf$$.sh
24187 echo "exit 0" >>conf$$.sh
24188 chmod +x conf$$.sh
24189 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24190 PATH_SEPARATOR=';'
24191 else
24192 PATH_SEPARATOR=:
24194 rm -f conf$$.sh
24197 # Support unset when possible.
24198 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24199 as_unset=unset
24200 else
24201 as_unset=false
24205 # IFS
24206 # We need space, tab and new line, in precisely that order. Quoting is
24207 # there to prevent editors from complaining about space-tab.
24208 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24209 # splitting by setting IFS to empty value.)
24210 as_nl='
24212 IFS=" "" $as_nl"
24214 # Find who we are. Look in the path if we contain no directory separator.
24215 case $0 in
24216 *[\\/]* ) as_myself=$0 ;;
24217 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24218 for as_dir in $PATH
24220 IFS=$as_save_IFS
24221 test -z "$as_dir" && as_dir=.
24222 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24223 done
24224 IFS=$as_save_IFS
24227 esac
24228 # We did not find ourselves, most probably we were run as `sh COMMAND'
24229 # in which case we are not to be found in the path.
24230 if test "x$as_myself" = x; then
24231 as_myself=$0
24233 if test ! -f "$as_myself"; then
24234 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24235 { (exit 1); exit 1; }
24238 # Work around bugs in pre-3.0 UWIN ksh.
24239 for as_var in ENV MAIL MAILPATH
24240 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24241 done
24242 PS1='$ '
24243 PS2='> '
24244 PS4='+ '
24246 # NLS nuisances.
24247 for as_var in \
24248 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24249 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24250 LC_TELEPHONE LC_TIME
24252 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24253 eval $as_var=C; export $as_var
24254 else
24255 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24257 done
24259 # Required to use basename.
24260 if expr a : '\(a\)' >/dev/null 2>&1 &&
24261 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24262 as_expr=expr
24263 else
24264 as_expr=false
24267 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24268 as_basename=basename
24269 else
24270 as_basename=false
24274 # Name of the executable.
24275 as_me=`$as_basename -- "$0" ||
24276 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24277 X"$0" : 'X\(//\)$' \| \
24278 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24279 echo X/"$0" |
24280 sed '/^.*\/\([^/][^/]*\)\/*$/{
24281 s//\1/
24284 /^X\/\(\/\/\)$/{
24285 s//\1/
24288 /^X\/\(\/\).*/{
24289 s//\1/
24292 s/.*/./; q'`
24294 # CDPATH.
24295 $as_unset CDPATH
24299 as_lineno_1=$LINENO
24300 as_lineno_2=$LINENO
24301 test "x$as_lineno_1" != "x$as_lineno_2" &&
24302 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24304 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24305 # uniformly replaced by the line number. The first 'sed' inserts a
24306 # line-number line after each line using $LINENO; the second 'sed'
24307 # does the real work. The second script uses 'N' to pair each
24308 # line-number line with the line containing $LINENO, and appends
24309 # trailing '-' during substitution so that $LINENO is not a special
24310 # case at line end.
24311 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24312 # scripts with optimization help from Paolo Bonzini. Blame Lee
24313 # E. McMahon (1931-1989) for sed's syntax. :-)
24314 sed -n '
24316 /[$]LINENO/=
24317 ' <$as_myself |
24318 sed '
24319 s/[$]LINENO.*/&-/
24320 t lineno
24322 :lineno
24324 :loop
24325 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24326 t loop
24327 s/-\n.*//
24328 ' >$as_me.lineno &&
24329 chmod +x "$as_me.lineno" ||
24330 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24331 { (exit 1); exit 1; }; }
24333 # Don't try to exec as it changes $[0], causing all sort of problems
24334 # (the dirname of $[0] is not the place where we might find the
24335 # original and so on. Autoconf is especially sensitive to this).
24336 . "./$as_me.lineno"
24337 # Exit status is that of the last command.
24338 exit
24342 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24343 as_dirname=dirname
24344 else
24345 as_dirname=false
24348 ECHO_C= ECHO_N= ECHO_T=
24349 case `echo -n x` in
24350 -n*)
24351 case `echo 'x\c'` in
24352 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24353 *) ECHO_C='\c';;
24354 esac;;
24356 ECHO_N='-n';;
24357 esac
24359 if expr a : '\(a\)' >/dev/null 2>&1 &&
24360 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24361 as_expr=expr
24362 else
24363 as_expr=false
24366 rm -f conf$$ conf$$.exe conf$$.file
24367 if test -d conf$$.dir; then
24368 rm -f conf$$.dir/conf$$.file
24369 else
24370 rm -f conf$$.dir
24371 mkdir conf$$.dir
24373 echo >conf$$.file
24374 if ln -s conf$$.file conf$$ 2>/dev/null; then
24375 as_ln_s='ln -s'
24376 # ... but there are two gotchas:
24377 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24378 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24379 # In both cases, we have to default to `cp -p'.
24380 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24381 as_ln_s='cp -p'
24382 elif ln conf$$.file conf$$ 2>/dev/null; then
24383 as_ln_s=ln
24384 else
24385 as_ln_s='cp -p'
24387 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24388 rmdir conf$$.dir 2>/dev/null
24390 if mkdir -p . 2>/dev/null; then
24391 as_mkdir_p=:
24392 else
24393 test -d ./-p && rmdir ./-p
24394 as_mkdir_p=false
24397 if test -x / >/dev/null 2>&1; then
24398 as_test_x='test -x'
24399 else
24400 if ls -dL / >/dev/null 2>&1; then
24401 as_ls_L_option=L
24402 else
24403 as_ls_L_option=
24405 as_test_x='
24406 eval sh -c '\''
24407 if test -d "$1"; then
24408 test -d "$1/.";
24409 else
24410 case $1 in
24411 -*)set "./$1";;
24412 esac;
24413 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24414 ???[sx]*):;;*)false;;esac;fi
24415 '\'' sh
24418 as_executable_p=$as_test_x
24420 # Sed expression to map a string onto a valid CPP name.
24421 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24423 # Sed expression to map a string onto a valid variable name.
24424 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24427 exec 6>&1
24429 # Save the log message, to keep $[0] and so on meaningful, and to
24430 # report actual input values of CONFIG_FILES etc. instead of their
24431 # values after options handling.
24432 ac_log="
24433 This file was extended by emacs $as_me 23.0.50, which was
24434 generated by GNU Autoconf 2.61. Invocation command line was
24436 CONFIG_FILES = $CONFIG_FILES
24437 CONFIG_HEADERS = $CONFIG_HEADERS
24438 CONFIG_LINKS = $CONFIG_LINKS
24439 CONFIG_COMMANDS = $CONFIG_COMMANDS
24440 $ $0 $@
24442 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24445 _ACEOF
24447 cat >>$CONFIG_STATUS <<_ACEOF
24448 # Files that config.status was made for.
24449 config_files="$ac_config_files"
24450 config_headers="$ac_config_headers"
24451 config_commands="$ac_config_commands"
24453 _ACEOF
24455 cat >>$CONFIG_STATUS <<\_ACEOF
24456 ac_cs_usage="\
24457 \`$as_me' instantiates files from templates according to the
24458 current configuration.
24460 Usage: $0 [OPTIONS] [FILE]...
24462 -h, --help print this help, then exit
24463 -V, --version print version number and configuration settings, then exit
24464 -q, --quiet do not print progress messages
24465 -d, --debug don't remove temporary files
24466 --recheck update $as_me by reconfiguring in the same conditions
24467 --file=FILE[:TEMPLATE]
24468 instantiate the configuration file FILE
24469 --header=FILE[:TEMPLATE]
24470 instantiate the configuration header FILE
24472 Configuration files:
24473 $config_files
24475 Configuration headers:
24476 $config_headers
24478 Configuration commands:
24479 $config_commands
24481 Report bugs to <bug-autoconf@gnu.org>."
24483 _ACEOF
24484 cat >>$CONFIG_STATUS <<_ACEOF
24485 ac_cs_version="\\
24486 emacs config.status 23.0.50
24487 configured by $0, generated by GNU Autoconf 2.61,
24488 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24490 Copyright (C) 2006 Free Software Foundation, Inc.
24491 This config.status script is free software; the Free Software Foundation
24492 gives unlimited permission to copy, distribute and modify it."
24494 ac_pwd='$ac_pwd'
24495 srcdir='$srcdir'
24496 INSTALL='$INSTALL'
24497 _ACEOF
24499 cat >>$CONFIG_STATUS <<\_ACEOF
24500 # If no file are specified by the user, then we need to provide default
24501 # value. By we need to know if files were specified by the user.
24502 ac_need_defaults=:
24503 while test $# != 0
24505 case $1 in
24506 --*=*)
24507 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24508 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24509 ac_shift=:
24512 ac_option=$1
24513 ac_optarg=$2
24514 ac_shift=shift
24516 esac
24518 case $ac_option in
24519 # Handling of the options.
24520 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24521 ac_cs_recheck=: ;;
24522 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24523 echo "$ac_cs_version"; exit ;;
24524 --debug | --debu | --deb | --de | --d | -d )
24525 debug=: ;;
24526 --file | --fil | --fi | --f )
24527 $ac_shift
24528 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24529 ac_need_defaults=false;;
24530 --header | --heade | --head | --hea )
24531 $ac_shift
24532 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24533 ac_need_defaults=false;;
24534 --he | --h)
24535 # Conflict between --help and --header
24536 { echo "$as_me: error: ambiguous option: $1
24537 Try \`$0 --help' for more information." >&2
24538 { (exit 1); exit 1; }; };;
24539 --help | --hel | -h )
24540 echo "$ac_cs_usage"; exit ;;
24541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24542 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24543 ac_cs_silent=: ;;
24545 # This is an error.
24546 -*) { echo "$as_me: error: unrecognized option: $1
24547 Try \`$0 --help' for more information." >&2
24548 { (exit 1); exit 1; }; } ;;
24550 *) ac_config_targets="$ac_config_targets $1"
24551 ac_need_defaults=false ;;
24553 esac
24554 shift
24555 done
24557 ac_configure_extra_args=
24559 if $ac_cs_silent; then
24560 exec 6>/dev/null
24561 ac_configure_extra_args="$ac_configure_extra_args --silent"
24564 _ACEOF
24565 cat >>$CONFIG_STATUS <<_ACEOF
24566 if \$ac_cs_recheck; then
24567 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24568 CONFIG_SHELL=$SHELL
24569 export CONFIG_SHELL
24570 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24573 _ACEOF
24574 cat >>$CONFIG_STATUS <<\_ACEOF
24575 exec 5>>config.log
24577 echo
24578 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24579 ## Running $as_me. ##
24580 _ASBOX
24581 echo "$ac_log"
24582 } >&5
24584 _ACEOF
24585 cat >>$CONFIG_STATUS <<_ACEOF
24587 # INIT-COMMANDS
24589 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24591 _ACEOF
24593 cat >>$CONFIG_STATUS <<\_ACEOF
24595 # Handling of arguments.
24596 for ac_config_target in $ac_config_targets
24598 case $ac_config_target in
24599 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24600 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24601 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24602 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24603 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24604 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24605 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24606 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24607 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24608 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24609 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24610 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24611 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24613 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24614 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24615 { (exit 1); exit 1; }; };;
24616 esac
24617 done
24620 # If the user did not use the arguments to specify the items to instantiate,
24621 # then the envvar interface is used. Set only those that are not.
24622 # We use the long form for the default assignment because of an extremely
24623 # bizarre bug on SunOS 4.1.3.
24624 if $ac_need_defaults; then
24625 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24626 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24627 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24630 # Have a temporary directory for convenience. Make it in the build tree
24631 # simply because there is no reason against having it here, and in addition,
24632 # creating and moving files from /tmp can sometimes cause problems.
24633 # Hook for its removal unless debugging.
24634 # Note that there is a small window in which the directory will not be cleaned:
24635 # after its creation but before its name has been assigned to `$tmp'.
24636 $debug ||
24638 tmp=
24639 trap 'exit_status=$?
24640 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24642 trap '{ (exit 1); exit 1; }' 1 2 13 15
24644 # Create a (secure) tmp directory for tmp files.
24647 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24648 test -n "$tmp" && test -d "$tmp"
24649 } ||
24651 tmp=./conf$$-$RANDOM
24652 (umask 077 && mkdir "$tmp")
24653 } ||
24655 echo "$me: cannot create a temporary directory in ." >&2
24656 { (exit 1); exit 1; }
24660 # Set up the sed scripts for CONFIG_FILES section.
24663 # No need to generate the scripts if there are no CONFIG_FILES.
24664 # This happens for instance when ./config.status config.h
24665 if test -n "$CONFIG_FILES"; then
24667 _ACEOF
24671 ac_delim='%!_!# '
24672 for ac_last_try in false false false false false :; do
24673 cat >conf$$subs.sed <<_ACEOF
24674 SHELL!$SHELL$ac_delim
24675 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24676 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24677 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24678 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24679 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24680 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24681 exec_prefix!$exec_prefix$ac_delim
24682 prefix!$prefix$ac_delim
24683 program_transform_name!$program_transform_name$ac_delim
24684 bindir!$bindir$ac_delim
24685 sbindir!$sbindir$ac_delim
24686 libexecdir!$libexecdir$ac_delim
24687 datarootdir!$datarootdir$ac_delim
24688 datadir!$datadir$ac_delim
24689 sysconfdir!$sysconfdir$ac_delim
24690 sharedstatedir!$sharedstatedir$ac_delim
24691 localstatedir!$localstatedir$ac_delim
24692 includedir!$includedir$ac_delim
24693 oldincludedir!$oldincludedir$ac_delim
24694 docdir!$docdir$ac_delim
24695 infodir!$infodir$ac_delim
24696 htmldir!$htmldir$ac_delim
24697 dvidir!$dvidir$ac_delim
24698 pdfdir!$pdfdir$ac_delim
24699 psdir!$psdir$ac_delim
24700 libdir!$libdir$ac_delim
24701 localedir!$localedir$ac_delim
24702 mandir!$mandir$ac_delim
24703 DEFS!$DEFS$ac_delim
24704 ECHO_C!$ECHO_C$ac_delim
24705 ECHO_N!$ECHO_N$ac_delim
24706 ECHO_T!$ECHO_T$ac_delim
24707 LIBS!$LIBS$ac_delim
24708 build_alias!$build_alias$ac_delim
24709 host_alias!$host_alias$ac_delim
24710 target_alias!$target_alias$ac_delim
24711 MAINT!$MAINT$ac_delim
24712 build!$build$ac_delim
24713 build_cpu!$build_cpu$ac_delim
24714 build_vendor!$build_vendor$ac_delim
24715 build_os!$build_os$ac_delim
24716 host!$host$ac_delim
24717 host_cpu!$host_cpu$ac_delim
24718 host_vendor!$host_vendor$ac_delim
24719 host_os!$host_os$ac_delim
24720 CC!$CC$ac_delim
24721 CFLAGS!$CFLAGS$ac_delim
24722 LDFLAGS!$LDFLAGS$ac_delim
24723 CPPFLAGS!$CPPFLAGS$ac_delim
24724 ac_ct_CC!$ac_ct_CC$ac_delim
24725 EXEEXT!$EXEEXT$ac_delim
24726 OBJEXT!$OBJEXT$ac_delim
24727 CPP!$CPP$ac_delim
24728 GREP!$GREP$ac_delim
24729 EGREP!$EGREP$ac_delim
24730 LN_S!$LN_S$ac_delim
24731 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24732 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24733 INSTALL_DATA!$INSTALL_DATA$ac_delim
24734 RANLIB!$RANLIB$ac_delim
24735 INSTALL_INFO!$INSTALL_INFO$ac_delim
24736 GZIP_PROG!$GZIP_PROG$ac_delim
24737 MAKEINFO!$MAKEINFO$ac_delim
24738 LIBSOUND!$LIBSOUND$ac_delim
24739 PKG_CONFIG!$PKG_CONFIG$ac_delim
24740 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24741 ALSA_LIBS!$ALSA_LIBS$ac_delim
24742 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24743 SET_MAKE!$SET_MAKE$ac_delim
24744 XMKMF!$XMKMF$ac_delim
24745 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24746 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24747 RSVG_LIBS!$RSVG_LIBS$ac_delim
24748 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24749 GTK_LIBS!$GTK_LIBS$ac_delim
24750 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24751 DBUS_LIBS!$DBUS_LIBS$ac_delim
24752 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24753 XFT_LIBS!$XFT_LIBS$ac_delim
24754 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24755 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24756 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24757 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24758 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24759 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24760 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24761 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24762 ALLOCA!$ALLOCA$ac_delim
24763 liblockfile!$liblockfile$ac_delim
24764 LIBOBJS!$LIBOBJS$ac_delim
24765 NEED_SETGID!$NEED_SETGID$ac_delim
24766 KMEM_GROUP!$KMEM_GROUP$ac_delim
24767 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24768 GETOPT_H!$GETOPT_H$ac_delim
24769 GETOPTOBJS!$GETOPTOBJS$ac_delim
24770 version!$version$ac_delim
24771 _ACEOF
24773 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24774 break
24775 elif $ac_last_try; then
24776 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24777 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24778 { (exit 1); exit 1; }; }
24779 else
24780 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24782 done
24784 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24785 if test -n "$ac_eof"; then
24786 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24787 ac_eof=`expr $ac_eof + 1`
24790 cat >>$CONFIG_STATUS <<_ACEOF
24791 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24793 _ACEOF
24794 sed '
24795 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24796 s/^/s,@/; s/!/@,|#_!!_#|/
24799 s/'"$ac_delim"'$/,g/; t
24800 s/$/\\/; p
24801 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24802 ' >>$CONFIG_STATUS <conf$$subs.sed
24803 rm -f conf$$subs.sed
24804 cat >>$CONFIG_STATUS <<_ACEOF
24805 CEOF$ac_eof
24806 _ACEOF
24809 ac_delim='%!_!# '
24810 for ac_last_try in false false false false false :; do
24811 cat >conf$$subs.sed <<_ACEOF
24812 configuration!$configuration$ac_delim
24813 canonical!$canonical$ac_delim
24814 srcdir!$srcdir$ac_delim
24815 lispdir!$lispdir$ac_delim
24816 locallisppath!$locallisppath$ac_delim
24817 lisppath!$lisppath$ac_delim
24818 x_default_search_path!$x_default_search_path$ac_delim
24819 etcdir!$etcdir$ac_delim
24820 archlibdir!$archlibdir$ac_delim
24821 bitmapdir!$bitmapdir$ac_delim
24822 gamedir!$gamedir$ac_delim
24823 gameuser!$gameuser$ac_delim
24824 c_switch_system!$c_switch_system$ac_delim
24825 c_switch_machine!$c_switch_machine$ac_delim
24826 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24827 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24828 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24829 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24830 machfile!$machfile$ac_delim
24831 opsysfile!$opsysfile$ac_delim
24832 carbon_appdir!$carbon_appdir$ac_delim
24833 LTLIBOBJS!$LTLIBOBJS$ac_delim
24834 _ACEOF
24836 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24837 break
24838 elif $ac_last_try; then
24839 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24840 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24841 { (exit 1); exit 1; }; }
24842 else
24843 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24845 done
24847 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24848 if test -n "$ac_eof"; then
24849 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24850 ac_eof=`expr $ac_eof + 1`
24853 cat >>$CONFIG_STATUS <<_ACEOF
24854 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24856 _ACEOF
24857 sed '
24858 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24859 s/^/s,@/; s/!/@,|#_!!_#|/
24862 s/'"$ac_delim"'$/,g/; t
24863 s/$/\\/; p
24864 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24865 ' >>$CONFIG_STATUS <conf$$subs.sed
24866 rm -f conf$$subs.sed
24867 cat >>$CONFIG_STATUS <<_ACEOF
24868 :end
24869 s/|#_!!_#|//g
24870 CEOF$ac_eof
24871 _ACEOF
24874 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24875 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24876 # trailing colons and then remove the whole line if VPATH becomes empty
24877 # (actually we leave an empty line to preserve line numbers).
24878 if test "x$srcdir" = x.; then
24879 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24880 s/:*\$(srcdir):*/:/
24881 s/:*\${srcdir}:*/:/
24882 s/:*@srcdir@:*/:/
24883 s/^\([^=]*=[ ]*\):*/\1/
24884 s/:*$//
24885 s/^[^=]*=[ ]*$//
24889 cat >>$CONFIG_STATUS <<\_ACEOF
24890 fi # test -n "$CONFIG_FILES"
24893 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24895 case $ac_tag in
24896 :[FHLC]) ac_mode=$ac_tag; continue;;
24897 esac
24898 case $ac_mode$ac_tag in
24899 :[FHL]*:*);;
24900 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24901 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24902 { (exit 1); exit 1; }; };;
24903 :[FH]-) ac_tag=-:-;;
24904 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24905 esac
24906 ac_save_IFS=$IFS
24907 IFS=:
24908 set x $ac_tag
24909 IFS=$ac_save_IFS
24910 shift
24911 ac_file=$1
24912 shift
24914 case $ac_mode in
24915 :L) ac_source=$1;;
24916 :[FH])
24917 ac_file_inputs=
24918 for ac_f
24920 case $ac_f in
24921 -) ac_f="$tmp/stdin";;
24922 *) # Look for the file first in the build tree, then in the source tree
24923 # (if the path is not absolute). The absolute path cannot be DOS-style,
24924 # because $ac_f cannot contain `:'.
24925 test -f "$ac_f" ||
24926 case $ac_f in
24927 [\\/$]*) false;;
24928 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24929 esac ||
24930 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24931 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24932 { (exit 1); exit 1; }; };;
24933 esac
24934 ac_file_inputs="$ac_file_inputs $ac_f"
24935 done
24937 # Let's still pretend it is `configure' which instantiates (i.e., don't
24938 # use $as_me), people would be surprised to read:
24939 # /* config.h. Generated by config.status. */
24940 configure_input="Generated from "`IFS=:
24941 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24942 if test x"$ac_file" != x-; then
24943 configure_input="$ac_file. $configure_input"
24944 { echo "$as_me:$LINENO: creating $ac_file" >&5
24945 echo "$as_me: creating $ac_file" >&6;}
24948 case $ac_tag in
24949 *:-:* | *:-) cat >"$tmp/stdin";;
24950 esac
24952 esac
24954 ac_dir=`$as_dirname -- "$ac_file" ||
24955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24956 X"$ac_file" : 'X\(//\)[^/]' \| \
24957 X"$ac_file" : 'X\(//\)$' \| \
24958 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24959 echo X"$ac_file" |
24960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24961 s//\1/
24964 /^X\(\/\/\)[^/].*/{
24965 s//\1/
24968 /^X\(\/\/\)$/{
24969 s//\1/
24972 /^X\(\/\).*/{
24973 s//\1/
24976 s/.*/./; q'`
24977 { as_dir="$ac_dir"
24978 case $as_dir in #(
24979 -*) as_dir=./$as_dir;;
24980 esac
24981 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24982 as_dirs=
24983 while :; do
24984 case $as_dir in #(
24985 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24986 *) as_qdir=$as_dir;;
24987 esac
24988 as_dirs="'$as_qdir' $as_dirs"
24989 as_dir=`$as_dirname -- "$as_dir" ||
24990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24991 X"$as_dir" : 'X\(//\)[^/]' \| \
24992 X"$as_dir" : 'X\(//\)$' \| \
24993 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24994 echo X"$as_dir" |
24995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24996 s//\1/
24999 /^X\(\/\/\)[^/].*/{
25000 s//\1/
25003 /^X\(\/\/\)$/{
25004 s//\1/
25007 /^X\(\/\).*/{
25008 s//\1/
25011 s/.*/./; q'`
25012 test -d "$as_dir" && break
25013 done
25014 test -z "$as_dirs" || eval "mkdir $as_dirs"
25015 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25016 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25017 { (exit 1); exit 1; }; }; }
25018 ac_builddir=.
25020 case "$ac_dir" in
25021 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25023 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25024 # A ".." for each directory in $ac_dir_suffix.
25025 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25026 case $ac_top_builddir_sub in
25027 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25028 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25029 esac ;;
25030 esac
25031 ac_abs_top_builddir=$ac_pwd
25032 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25033 # for backward compatibility:
25034 ac_top_builddir=$ac_top_build_prefix
25036 case $srcdir in
25037 .) # We are building in place.
25038 ac_srcdir=.
25039 ac_top_srcdir=$ac_top_builddir_sub
25040 ac_abs_top_srcdir=$ac_pwd ;;
25041 [\\/]* | ?:[\\/]* ) # Absolute name.
25042 ac_srcdir=$srcdir$ac_dir_suffix;
25043 ac_top_srcdir=$srcdir
25044 ac_abs_top_srcdir=$srcdir ;;
25045 *) # Relative name.
25046 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25047 ac_top_srcdir=$ac_top_build_prefix$srcdir
25048 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25049 esac
25050 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25053 case $ac_mode in
25056 # CONFIG_FILE
25059 case $INSTALL in
25060 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25061 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25062 esac
25063 _ACEOF
25065 cat >>$CONFIG_STATUS <<\_ACEOF
25066 # If the template does not know about datarootdir, expand it.
25067 # FIXME: This hack should be removed a few years after 2.60.
25068 ac_datarootdir_hack=; ac_datarootdir_seen=
25070 case `sed -n '/datarootdir/ {
25074 /@datadir@/p
25075 /@docdir@/p
25076 /@infodir@/p
25077 /@localedir@/p
25078 /@mandir@/p
25079 ' $ac_file_inputs` in
25080 *datarootdir*) ac_datarootdir_seen=yes;;
25081 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25082 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25083 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25084 _ACEOF
25085 cat >>$CONFIG_STATUS <<_ACEOF
25086 ac_datarootdir_hack='
25087 s&@datadir@&$datadir&g
25088 s&@docdir@&$docdir&g
25089 s&@infodir@&$infodir&g
25090 s&@localedir@&$localedir&g
25091 s&@mandir@&$mandir&g
25092 s&\\\${datarootdir}&$datarootdir&g' ;;
25093 esac
25094 _ACEOF
25096 # Neutralize VPATH when `$srcdir' = `.'.
25097 # Shell code in configure.ac might set extrasub.
25098 # FIXME: do we really want to maintain this feature?
25099 cat >>$CONFIG_STATUS <<_ACEOF
25100 sed "$ac_vpsub
25101 $extrasub
25102 _ACEOF
25103 cat >>$CONFIG_STATUS <<\_ACEOF
25105 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25106 s&@configure_input@&$configure_input&;t t
25107 s&@top_builddir@&$ac_top_builddir_sub&;t t
25108 s&@srcdir@&$ac_srcdir&;t t
25109 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25110 s&@top_srcdir@&$ac_top_srcdir&;t t
25111 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25112 s&@builddir@&$ac_builddir&;t t
25113 s&@abs_builddir@&$ac_abs_builddir&;t t
25114 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25115 s&@INSTALL@&$ac_INSTALL&;t t
25116 $ac_datarootdir_hack
25117 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25119 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25120 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25121 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25122 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25123 which seems to be undefined. Please make sure it is defined." >&5
25124 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25125 which seems to be undefined. Please make sure it is defined." >&2;}
25127 rm -f "$tmp/stdin"
25128 case $ac_file in
25129 -) cat "$tmp/out"; rm -f "$tmp/out";;
25130 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25131 esac
25135 # CONFIG_HEADER
25137 _ACEOF
25139 # Transform confdefs.h into a sed script `conftest.defines', that
25140 # substitutes the proper values into config.h.in to produce config.h.
25141 rm -f conftest.defines conftest.tail
25142 # First, append a space to every undef/define line, to ease matching.
25143 echo 's/$/ /' >conftest.defines
25144 # Then, protect against being on the right side of a sed subst, or in
25145 # an unquoted here document, in config.status. If some macros were
25146 # called several times there might be several #defines for the same
25147 # symbol, which is useless. But do not sort them, since the last
25148 # AC_DEFINE must be honored.
25149 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25150 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25151 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25152 # PARAMS is the parameter list in the macro definition--in most cases, it's
25153 # just an empty string.
25154 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25155 ac_dB='\\)[ (].*,\\1define\\2'
25156 ac_dC=' '
25157 ac_dD=' ,'
25159 uniq confdefs.h |
25160 sed -n '
25161 t rset
25162 :rset
25163 s/^[ ]*#[ ]*define[ ][ ]*//
25164 t ok
25167 s/[\\&,]/\\&/g
25168 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25169 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25170 ' >>conftest.defines
25172 # Remove the space that was appended to ease matching.
25173 # Then replace #undef with comments. This is necessary, for
25174 # example, in the case of _POSIX_SOURCE, which is predefined and required
25175 # on some systems where configure will not decide to define it.
25176 # (The regexp can be short, since the line contains either #define or #undef.)
25177 echo 's/ $//
25178 s,^[ #]*u.*,/* & */,' >>conftest.defines
25180 # Break up conftest.defines:
25181 ac_max_sed_lines=50
25183 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25184 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25185 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25186 # et cetera.
25187 ac_in='$ac_file_inputs'
25188 ac_out='"$tmp/out1"'
25189 ac_nxt='"$tmp/out2"'
25191 while :
25193 # Write a here document:
25194 cat >>$CONFIG_STATUS <<_ACEOF
25195 # First, check the format of the line:
25196 cat >"\$tmp/defines.sed" <<\\CEOF
25197 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25198 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25200 :def
25201 _ACEOF
25202 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25203 echo 'CEOF
25204 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25205 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25206 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25207 grep . conftest.tail >/dev/null || break
25208 rm -f conftest.defines
25209 mv conftest.tail conftest.defines
25210 done
25211 rm -f conftest.defines conftest.tail
25213 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25214 cat >>$CONFIG_STATUS <<\_ACEOF
25215 if test x"$ac_file" != x-; then
25216 echo "/* $configure_input */" >"$tmp/config.h"
25217 cat "$ac_result" >>"$tmp/config.h"
25218 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25219 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25220 echo "$as_me: $ac_file is unchanged" >&6;}
25221 else
25222 rm -f $ac_file
25223 mv "$tmp/config.h" $ac_file
25225 else
25226 echo "/* $configure_input */"
25227 cat "$ac_result"
25229 rm -f "$tmp/out12"
25232 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25233 echo "$as_me: executing $ac_file commands" >&6;}
25235 esac
25238 case $ac_file$ac_mode in
25239 "default":C)
25241 ### Make the necessary directories, if they don't exist.
25242 for dir in etc lisp ; do
25243 test -d ${dir} || mkdir ${dir}
25244 done
25246 # Build src/Makefile from ${srcdir}/src/Makefile.c
25247 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25248 # This must be done after src/config.h is built, since we rely on that file.
25250 # Now get this: Some word that is part of the ${srcdir} directory name
25251 # or the ${configuration} value might, just might, happen to be an
25252 # identifier like `sun4' or `i386' or something, and be predefined by
25253 # the C preprocessor to some helpful value like 1, or maybe the empty
25254 # string. Needless to say consequent macro substitutions are less
25255 # than conducive to the makefile finding the correct directory.
25256 undefs="`echo $top_srcdir $configuration $canonical |
25257 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25258 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25261 echo creating src/epaths.h
25262 ${MAKE-make} epaths-force
25264 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25265 # `..' to `. .' unless invoked with -traditional
25267 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25268 CPPFLAGS="$CPPFLAGS -traditional"
25271 echo creating lib-src/Makefile
25272 ( cd lib-src
25273 rm -f junk.c junk1.c junk2.c
25274 sed -e '/start of cpp stuff/q' \
25275 < Makefile.c > junk1.c
25276 sed -e '1,/start of cpp stuff/d'\
25277 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25278 < Makefile.c > junk.c
25279 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25280 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25281 cat junk1.c junk2.c > Makefile.new
25282 rm -f junk.c junk1.c junk2.c
25283 chmod 444 Makefile.new
25284 mv -f Makefile.new Makefile
25287 echo creating src/Makefile
25288 ( cd src
25289 rm -f junk.c junk1.c junk2.c
25290 sed -e '/start of cpp stuff/q' \
25291 < Makefile.c > junk1.c
25292 sed -e '1,/start of cpp stuff/d'\
25293 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25294 < Makefile.c > junk.c
25295 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
25296 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
25298 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25299 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25300 cat junk1.c junk2.c > Makefile.new
25301 rm -f junk.c junk1.c junk2.c
25302 chmod 444 Makefile.new
25303 mv -f Makefile.new Makefile
25306 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25307 echo creating src/.gdbinit
25308 echo source $srcdir/src/.gdbinit > src/.gdbinit
25311 # This is how we know whether to re-run configure in certain cases.
25312 touch src/config.stamp
25316 esac
25317 done # for ac_tag
25320 { (exit 0); exit 0; }
25321 _ACEOF
25322 chmod +x $CONFIG_STATUS
25323 ac_clean_files=$ac_clean_files_save
25326 # configure is writing to config.log, and then calls config.status.
25327 # config.status does its own redirection, appending to config.log.
25328 # Unfortunately, on DOS this fails, as config.log is still kept open
25329 # by configure, so config.status won't be able to write to it; its
25330 # output is simply discarded. So we exec the FD to /dev/null,
25331 # effectively closing config.log, so it can be properly (re)opened and
25332 # appended to by config.status. When coming back to configure, we
25333 # need to make the FD available again.
25334 if test "$no_create" != yes; then
25335 ac_cs_success=:
25336 ac_config_status_args=
25337 test "$silent" = yes &&
25338 ac_config_status_args="$ac_config_status_args --quiet"
25339 exec 5>/dev/null
25340 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25341 exec 5>>config.log
25342 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25343 # would make configure fail if this is the last instruction.
25344 $ac_cs_success || { (exit 1); exit 1; }