merge and fixes
[emacs.git] / configure
blobae6f82662115ab8d1a1bd34d5eceac1bc42a7f4d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT=''
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='LTLIBOBJS
642 LIB_GCC
643 LD_SWITCH_SYSTEM_EXTRA
644 LD_SWITCH_SYSTEM_TEMACS
645 POST_ALLOC_OBJ
646 PRE_ALLOC_OBJ
647 CYGWIN_OBJ
648 LIBX_OTHER
649 LIBXMENU
650 OLDXMENU
651 LIBXT_OTHER
652 TOOLKIT_LIBW
653 WIDGET_OBJ
654 XOBJ
655 XMENU_OBJ
656 OTHER_FILES
657 GNU_OBJC_CFLAGS
658 GNUSTEP_SYSTEM_LIBRARIES
659 GNUSTEP_SYSTEM_HEADERS
660 GNUSTEP_MAKEFILES
661 ns_appsrc
662 ns_appresdir
663 ns_appbindir
664 ns_appdir
665 opsysfile
666 machfile
667 X_TOOLKIT_TYPE
668 C_SWITCH_X_SYSTEM
669 C_SWITCH_X_SITE
670 LD_SWITCH_X_SITE
671 unexec
672 gameuser
673 gamedir
674 bitmapdir
675 archlibdir
676 etcdir
677 x_default_search_path
678 lisppath
679 locallisppath
680 lispdir
681 srcdir
682 canonical
683 configuration
684 version
685 KRB4LIB
686 DESLIB
687 KRB5LIB
688 CRYPTOLIB
689 COM_ERRLIB
690 LIBRESOLV
691 LIBHESIOD
692 TERMCAP_OBJ
693 LIBS_TERMCAP
694 GETOPTOBJS
695 GETOPT_H
696 GETLOADAVG_LIBS
697 KMEM_GROUP
698 NEED_SETGID
699 LIBOBJS
700 BLESSMAIL_TARGET
701 LIBS_MAIL
702 liblockfile
703 ALLOCA
704 LIBXSM
705 GPM_MOUSE_SUPPORT
706 LIBGPM
707 LIBGIF
708 LIBTIFF
709 LIBPNG
710 LIBJPEG
711 LIBXPM
712 FREETYPE_LIBS
713 FREETYPE_CFLAGS
714 FONT_OBJ
715 M17N_FLT_LIBS
716 M17N_FLT_CFLAGS
717 LIBOTF_LIBS
718 LIBOTF_CFLAGS
719 XFT_LIBS
720 XFT_CFLAGS
721 FONTCONFIG_LIBS
722 FONTCONFIG_CFLAGS
723 LIBXMU
724 LIBXTR6
725 LIBSELINUX_LIBS
726 GCONF_LIBS
727 GCONF_CFLAGS
728 DBUS_OBJ
729 DBUS_LIBS
730 DBUS_CFLAGS
731 GTK_OBJ
732 GTK_LIBS
733 GTK_CFLAGS
734 IMAGEMAGICK_LIBS
735 IMAGEMAGICK_CFLAGS
736 RSVG_LIBS
737 RSVG_CFLAGS
738 HAVE_XSERVER
739 LIB_STANDARD
740 NS_SUPPORT
741 NS_OBJ
742 LD_SWITCH_X_SITE_AUX_RPATH
743 LD_SWITCH_X_SITE_AUX
744 XMKMF
745 SET_MAKE
746 CFLAGS_SOUND
747 ALSA_LIBS
748 ALSA_CFLAGS
749 PKG_CONFIG
750 LIBSOUND
751 START_FILES
752 LIB_MATH
753 CRT_DIR
754 LIBS_SYSTEM
755 C_SWITCH_SYSTEM
756 C_SWITCH_MACHINE
757 LD_SWITCH_SYSTEM
758 MAKEINFO
759 GZIP_PROG
760 INSTALL_INFO
761 RANLIB
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 EGREP
766 GREP
768 OBJEXT
769 EXEEXT
770 ac_ct_CC
771 CPPFLAGS
772 LDFLAGS
773 CFLAGS
775 host_os
776 host_vendor
777 host_cpu
778 host
779 build_os
780 build_vendor
781 build_cpu
782 build
783 MAINT
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_BUGREPORT
815 PACKAGE_STRING
816 PACKAGE_VERSION
817 PACKAGE_TARNAME
818 PACKAGE_NAME
819 PATH_SEPARATOR
820 SHELL'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 with_pop
825 with_kerberos
826 with_kerberos5
827 with_hesiod
828 with_mmdf
829 with_mail_unlink
830 with_mailhost
831 with_sound
832 with_sync_input
833 with_x_toolkit
834 with_xpm
835 with_jpeg
836 with_tiff
837 with_gif
838 with_png
839 with_rsvg
840 with_imagemagick
841 with_xft
842 with_libotf
843 with_m17n_flt
844 with_toolkit_scroll_bars
845 with_xaw3d
846 with_xim
847 with_ns
848 with_gpm
849 with_dbus
850 with_gconf
851 with_selinux
852 with_makeinfo
853 with_gtk
854 with_gcc
855 with_pkg_config_prog
856 with_crt_dir
857 with_gnustep_conf
858 enable_ns_self_contained
859 enable_asserts
860 enable_maintainer_mode
861 enable_locallisppath
862 enable_checking
863 enable_profiling
864 enable_autodepend
865 enable_largefile
866 with_x
868 ac_precious_vars='build_alias
869 host_alias
870 target_alias
872 CFLAGS
873 LDFLAGS
874 LIBS
875 CPPFLAGS
877 XMKMF'
880 # Initialize some variables set by options.
881 ac_init_help=
882 ac_init_version=false
883 ac_unrecognized_opts=
884 ac_unrecognized_sep=
885 # The variables have the same names as the options, with
886 # dashes changed to underlines.
887 cache_file=/dev/null
888 exec_prefix=NONE
889 no_create=
890 no_recursion=
891 prefix=NONE
892 program_prefix=NONE
893 program_suffix=NONE
894 program_transform_name=s,x,x,
895 silent=
896 site=
897 srcdir=
898 verbose=
899 x_includes=NONE
900 x_libraries=NONE
902 # Installation directory options.
903 # These are left unexpanded so users can "make install exec_prefix=/foo"
904 # and all the variables that are supposed to be based on exec_prefix
905 # by default will actually change.
906 # Use braces instead of parens because sh, perl, etc. also accept them.
907 # (The list follows the same order as the GNU Coding Standards.)
908 bindir='${exec_prefix}/bin'
909 sbindir='${exec_prefix}/sbin'
910 libexecdir='${exec_prefix}/libexec'
911 datarootdir='${prefix}/share'
912 datadir='${datarootdir}'
913 sysconfdir='${prefix}/etc'
914 sharedstatedir='${prefix}/com'
915 localstatedir='${prefix}/var'
916 includedir='${prefix}/include'
917 oldincludedir='/usr/include'
918 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
919 infodir='${datarootdir}/info'
920 htmldir='${docdir}'
921 dvidir='${docdir}'
922 pdfdir='${docdir}'
923 psdir='${docdir}'
924 libdir='${exec_prefix}/lib'
925 localedir='${datarootdir}/locale'
926 mandir='${datarootdir}/man'
928 ac_prev=
929 ac_dashdash=
930 for ac_option
932 # If the previous option needs an argument, assign it.
933 if test -n "$ac_prev"; then
934 eval $ac_prev=\$ac_option
935 ac_prev=
936 continue
939 case $ac_option in
940 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
941 *) ac_optarg=yes ;;
942 esac
944 # Accept the important Cygnus configure options, so we can diagnose typos.
946 case $ac_dashdash$ac_option in
948 ac_dashdash=yes ;;
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
967 --config-cache | -C)
968 cache_file=config.cache ;;
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
987 { (exit 1); exit 1; }; }
988 ac_useropt_orig=$ac_useropt
989 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
992 "enable_$ac_useropt"
993 "*) ;;
994 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep=', ';;
996 esac
997 eval enable_$ac_useropt=no ;;
999 -docdir | --docdir | --docdi | --doc | --do)
1000 ac_prev=docdir ;;
1001 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1002 docdir=$ac_optarg ;;
1004 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1005 ac_prev=dvidir ;;
1006 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1007 dvidir=$ac_optarg ;;
1009 -enable-* | --enable-*)
1010 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1014 { (exit 1); exit 1; }; }
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=\$ac_optarg ;;
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=\$ac_optarg ;;
1231 -without-* | --without-*)
1232 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1236 { (exit 1); exit 1; }; }
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=no ;;
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1267 Try \`$0 --help' for more information." >&2
1268 { (exit 1); exit 1; }; }
1271 *=*)
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1275 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1276 { (exit 1); exit 1; }; }
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 esac
1289 done
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1294 { (exit 1); exit 1; }; }
1297 if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1299 no) ;;
1300 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1301 { (exit 1); exit 1; }; } ;;
1302 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303 esac
1306 # Check all directory arguments for consistency.
1307 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308 datadir sysconfdir sharedstatedir localstatedir includedir \
1309 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310 libdir localedir mandir
1312 eval ac_val=\$$ac_var
1313 # Remove trailing slashes.
1314 case $ac_val in
1315 */ )
1316 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317 eval $ac_var=\$ac_val;;
1318 esac
1319 # Be sure to have absolute directory names.
1320 case $ac_val in
1321 [\\/$]* | ?:[\\/]* ) continue;;
1322 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323 esac
1324 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1325 { (exit 1); exit 1; }; }
1326 done
1328 # There might be people who depend on the old broken behavior: `$host'
1329 # used to hold the argument of --host etc.
1330 # FIXME: To remove some day.
1331 build=$build_alias
1332 host=$host_alias
1333 target=$target_alias
1335 # FIXME: To remove some day.
1336 if test "x$host_alias" != x; then
1337 if test "x$build_alias" = x; then
1338 cross_compiling=maybe
1339 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1340 If a cross compiler is detected then cross compile mode will be used." >&2
1341 elif test "x$build_alias" != "x$host_alias"; then
1342 cross_compiling=yes
1346 ac_tool_prefix=
1347 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1349 test "$silent" = yes && exec 6>/dev/null
1352 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1353 ac_ls_di=`ls -di .` &&
1354 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1355 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1356 { (exit 1); exit 1; }; }
1357 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1358 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1359 { (exit 1); exit 1; }; }
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373 s//\1/
1376 /^X\(\/\/\)[^/].*/{
1377 s//\1/
1380 /^X\(\/\/\)$/{
1381 s//\1/
1384 /^X\(\/\).*/{
1385 s//\1/
1388 s/.*/./; q'`
1389 srcdir=$ac_confdir
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 srcdir=..
1393 else
1394 ac_srcdir_defaulted=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1399 { (exit 1); exit 1; }; }
1401 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 ac_abs_confdir=`(
1403 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1404 { (exit 1); exit 1; }; }
1405 pwd)`
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 srcdir=.
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1413 case $srcdir in
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 esac
1416 for ac_var in $ac_precious_vars; do
1417 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_env_${ac_var}_value=\$${ac_var}
1419 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421 done
1424 # Report the --help message.
1426 if test "$ac_init_help" = "long"; then
1427 # Omit some internal or obsolete options to make the list less imposing.
1428 # This message is too long to be a string in the A/UX 3.1 sh.
1429 cat <<_ACEOF
1430 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE. See below for descriptions of some of the useful variables.
1437 Defaults for the options are specified in brackets.
1439 Configuration:
1440 -h, --help display this help and exit
1441 --help=short display options specific to this package
1442 --help=recursive display the short help of all the included packages
1443 -V, --version display version information and exit
1444 -q, --quiet, --silent do not print \`checking...' messages
1445 --cache-file=FILE cache test results in FILE [disabled]
1446 -C, --config-cache alias for \`--cache-file=config.cache'
1447 -n, --no-create do not create output files
1448 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450 Installation directories:
1451 --prefix=PREFIX install architecture-independent files in PREFIX
1452 [$ac_default_prefix]
1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454 [PREFIX]
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1461 For better control, use the options below.
1463 Fine tuning of the installation directories:
1464 --bindir=DIR user executables [EPREFIX/bin]
1465 --sbindir=DIR system admin executables [EPREFIX/sbin]
1466 --libexecdir=DIR program executables [EPREFIX/libexec]
1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1483 _ACEOF
1485 cat <<\_ACEOF
1487 Program names:
1488 --program-prefix=PREFIX prepend PREFIX to installed program names
1489 --program-suffix=SUFFIX append SUFFIX to installed program names
1490 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1492 X features:
1493 --x-includes=DIR X include files are in DIR
1494 --x-libraries=DIR X library files are in DIR
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 _ACEOF
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1505 esac
1506 cat <<\_ACEOF
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --disable-ns-self-contained
1513 disable self contained build under NeXTstep
1514 --enable-asserts compile code with asserts enabled
1515 --enable-maintainer-mode
1516 enable make rules and dependencies not useful (and
1517 sometimes confusing) to the casual installer
1518 --enable-locallisppath=PATH
1519 directories Emacs should search for lisp files
1520 specific to this site
1521 --enable-checking[=LIST]
1522 enable expensive run-time checks. With LIST, enable
1523 only specific categories of checks. Categories are:
1524 all,yes,no. Flags are: stringbytes, stringoverrun,
1525 stringfreelist, xmallocoverrun, conslist
1526 --enable-profiling build emacs with profiling support. This might not
1527 work on all platforms
1528 --enable-autodepend automatically generate dependencies to .h-files.
1529 Requires GNU Make and Gcc. Enabled if GNU Make and
1530 Gcc is found
1531 --disable-largefile omit support for large files
1533 Optional Packages:
1534 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1535 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1536 --without-pop don't support POP mail retrieval with movemail
1537 --with-kerberos support Kerberos-authenticated POP
1538 --with-kerberos5 support Kerberos version 5 authenticated POP
1539 --with-hesiod support Hesiod to get the POP server host
1540 --with-mmdf support MMDF mailboxes
1541 --with-mail-unlink unlink, rather than empty, mail spool after reading
1542 --with-mailhost=HOSTNAME
1543 string giving default POP mail host
1544 --without-sound don't compile with sound support
1545 --without-sync-input process async input synchronously
1546 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1547 athena, motif, no)
1548 --without-xpm don't compile with XPM image support
1549 --without-jpeg don't compile with JPEG image support
1550 --without-tiff don't compile with TIFF image support
1551 --without-gif don't compile with GIF image support
1552 --without-png don't compile with PNG image support
1553 --without-rsvg don't compile with SVG image support
1554 --with-imagemagick compile with ImageMagick image support
1555 --without-xft don't use XFT for anti aliased fonts
1556 --without-libotf don't use libotf for OpenType font support
1557 --without-m17n-flt don't use m17n-flt for text shaping
1558 --without-toolkit-scroll-bars
1559 don't use Motif or Xaw3d scroll bars
1560 --without-xaw3d don't use Xaw3d
1561 --without-xim don't use X11 XIM
1562 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1563 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1564 console
1565 --without-dbus don't compile with D-Bus support
1566 --without-gconf don't compile with GConf support
1567 --without-selinux don't compile with SELinux support
1568 --without-makeinfo don't require makeinfo for building manuals
1570 --with-pkg-config-prog=PATH
1571 path to pkg-config for finding GTK and librsvg
1572 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1573 /usr/lib, or /usr/lib64 on some platforms.
1574 --with-gnustep-conf=PATH
1575 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1576 or /etc/GNUstep/GNUstep.conf
1577 --with-x use the X Window System
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 LIBS libraries to pass to the linker, e.g. -l<library>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1587 CPP C preprocessor
1588 XMKMF Path to xmkmf, Makefile generator for X Window System
1590 Use these variables to override the choices made by `configure' or to help
1591 it to find libraries and programs with nonstandard names/locations.
1593 _ACEOF
1594 ac_status=$?
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
1603 ac_builddir=.
1605 case "$ac_dir" in
1606 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615 esac
1616 ac_abs_top_builddir=$ac_pwd
1617 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir=$ac_top_build_prefix
1621 case $srcdir in
1622 .) # We are building in place.
1623 ac_srcdir=.
1624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
1627 ac_srcdir=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1634 esac
1635 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1645 else
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 emacs configure 24.0.50
1656 generated by GNU Autoconf 2.63
1658 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1660 This configure script is free software; the Free Software Foundation
1661 gives unlimited permission to copy, distribute and modify it.
1662 _ACEOF
1663 exit
1665 cat >config.log <<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1669 It was created by emacs $as_me 24.0.50, which was
1670 generated by GNU Autoconf 2.63. Invocation command line was
1672 $ $0 $@
1674 _ACEOF
1675 exec 5>>config.log
1677 cat <<_ASUNAME
1678 ## --------- ##
1679 ## Platform. ##
1680 ## --------- ##
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1691 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1695 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1699 _ASUNAME
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 for as_dir in $PATH
1704 IFS=$as_save_IFS
1705 test -z "$as_dir" && as_dir=.
1706 $as_echo "PATH: $as_dir"
1707 done
1708 IFS=$as_save_IFS
1710 } >&5
1712 cat >&5 <<_ACEOF
1715 ## ----------- ##
1716 ## Core tests. ##
1717 ## ----------- ##
1719 _ACEOF
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1727 ac_configure_args=
1728 ac_configure_args0=
1729 ac_configure_args1=
1730 ac_must_keep_next=false
1731 for ac_pass in 1 2
1733 for ac_arg
1735 case $ac_arg in
1736 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1738 | -silent | --silent | --silen | --sile | --sil)
1739 continue ;;
1740 *\'*)
1741 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1742 esac
1743 case $ac_pass in
1744 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1746 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true; then
1748 ac_must_keep_next=false # Got value, back to normal.
1749 else
1750 case $ac_arg in
1751 *=* | --config-cache | -C | -disable-* | --disable-* \
1752 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1753 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1754 | -with-* | --with-* | -without-* | --without-* | --x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1757 esac
1759 -* ) ac_must_keep_next=true ;;
1760 esac
1762 ac_configure_args="$ac_configure_args '$ac_arg'"
1764 esac
1765 done
1766 done
1767 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1768 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log. We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1778 echo
1780 cat <<\_ASBOX
1781 ## ---------------- ##
1782 ## Cache variables. ##
1783 ## ---------------- ##
1784 _ASBOX
1785 echo
1786 # The following way of writing the cache mishandles newlines in values,
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1790 case $ac_val in #(
1791 *${as_nl}*)
1792 case $ac_var in #(
1793 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1794 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1795 esac
1796 case $ac_var in #(
1797 _ | IFS | as_nl) ;; #(
1798 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1799 *) $as_unset $ac_var ;;
1800 esac ;;
1801 esac
1802 done
1803 (set) 2>&1 |
1804 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1805 *${as_nl}ac_space=\ *)
1806 sed -n \
1807 "s/'\''/'\''\\\\'\'''\''/g;
1808 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1809 ;; #(
1811 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1813 esac |
1814 sort
1816 echo
1818 cat <<\_ASBOX
1819 ## ----------------- ##
1820 ## Output variables. ##
1821 ## ----------------- ##
1822 _ASBOX
1823 echo
1824 for ac_var in $ac_subst_vars
1826 eval ac_val=\$$ac_var
1827 case $ac_val in
1828 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 esac
1830 $as_echo "$ac_var='\''$ac_val'\''"
1831 done | sort
1832 echo
1834 if test -n "$ac_subst_files"; then
1835 cat <<\_ASBOX
1836 ## ------------------- ##
1837 ## File substitutions. ##
1838 ## ------------------- ##
1839 _ASBOX
1840 echo
1841 for ac_var in $ac_subst_files
1843 eval ac_val=\$$ac_var
1844 case $ac_val in
1845 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 esac
1847 $as_echo "$ac_var='\''$ac_val'\''"
1848 done | sort
1849 echo
1852 if test -s confdefs.h; then
1853 cat <<\_ASBOX
1854 ## ----------- ##
1855 ## confdefs.h. ##
1856 ## ----------- ##
1857 _ASBOX
1858 echo
1859 cat confdefs.h
1860 echo
1862 test "$ac_signal" != 0 &&
1863 $as_echo "$as_me: caught signal $ac_signal"
1864 $as_echo "$as_me: exit $exit_status"
1865 } >&5
1866 rm -f core *.core core.conftest.* &&
1867 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1868 exit $exit_status
1870 for ac_signal in 1 2 13 15; do
1871 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1872 done
1873 ac_signal=0
1875 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1876 rm -f -r conftest* confdefs.h
1878 # Predefined preprocessor variables.
1880 cat >>confdefs.h <<_ACEOF
1881 #define PACKAGE_NAME "$PACKAGE_NAME"
1882 _ACEOF
1885 cat >>confdefs.h <<_ACEOF
1886 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1887 _ACEOF
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1892 _ACEOF
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_STRING "$PACKAGE_STRING"
1897 _ACEOF
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1902 _ACEOF
1905 # Let the site file select an alternate cache file if it wants to.
1906 # Prefer an explicitly selected file to automatically selected ones.
1907 ac_site_file1=NONE
1908 ac_site_file2=NONE
1909 if test -n "$CONFIG_SITE"; then
1910 ac_site_file1=$CONFIG_SITE
1911 elif test "x$prefix" != xNONE; then
1912 ac_site_file1=$prefix/share/config.site
1913 ac_site_file2=$prefix/etc/config.site
1914 else
1915 ac_site_file1=$ac_default_prefix/share/config.site
1916 ac_site_file2=$ac_default_prefix/etc/config.site
1918 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1920 test "x$ac_site_file" = xNONE && continue
1921 if test -r "$ac_site_file"; then
1922 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1923 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1924 sed 's/^/| /' "$ac_site_file" >&5
1925 . "$ac_site_file"
1927 done
1929 if test -r "$cache_file"; then
1930 # Some versions of bash will fail to source /dev/null (special
1931 # files actually), so we avoid doing that.
1932 if test -f "$cache_file"; then
1933 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1934 $as_echo "$as_me: loading cache $cache_file" >&6;}
1935 case $cache_file in
1936 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1937 *) . "./$cache_file";;
1938 esac
1940 else
1941 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1942 $as_echo "$as_me: creating cache $cache_file" >&6;}
1943 >$cache_file
1946 ac_header_list="$ac_header_list sys/time.h"
1947 ac_header_list="$ac_header_list unistd.h"
1948 ac_func_list="$ac_func_list alarm"
1949 # Check that the precious variables saved in the cache have kept the same
1950 # value.
1951 ac_cache_corrupted=false
1952 for ac_var in $ac_precious_vars; do
1953 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1954 eval ac_new_set=\$ac_env_${ac_var}_set
1955 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1956 eval ac_new_val=\$ac_env_${ac_var}_value
1957 case $ac_old_set,$ac_new_set in
1958 set,)
1959 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1960 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1961 ac_cache_corrupted=: ;;
1962 ,set)
1963 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1964 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1965 ac_cache_corrupted=: ;;
1966 ,);;
1968 if test "x$ac_old_val" != "x$ac_new_val"; then
1969 # differences in whitespace do not lead to failure.
1970 ac_old_val_w=`echo x $ac_old_val`
1971 ac_new_val_w=`echo x $ac_new_val`
1972 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1973 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1974 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1975 ac_cache_corrupted=:
1976 else
1977 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1978 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1979 eval $ac_var=\$ac_old_val
1981 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1982 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1983 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1984 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1985 fi;;
1986 esac
1987 # Pass precious variables to config.status.
1988 if test "$ac_new_set" = set; then
1989 case $ac_new_val in
1990 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 *) ac_arg=$ac_var=$ac_new_val ;;
1992 esac
1993 case " $ac_configure_args " in
1994 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1995 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1996 esac
1998 done
1999 if $ac_cache_corrupted; then
2000 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2002 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2003 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2004 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2005 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2006 { (exit 1); exit 1; }; }
2033 ac_ext=c
2034 ac_cpp='$CPP $CPPFLAGS'
2035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2044 test "$program_prefix" != NONE &&
2045 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2046 # Use a double $ so make ignores it.
2047 test "$program_suffix" != NONE &&
2048 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2049 # Double any \ or $.
2050 # By default was `s,x,x', remove it if useless.
2051 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2052 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2055 lispdir='${datadir}/emacs/${version}/lisp'
2056 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2057 '${datadir}/emacs/site-lisp'
2058 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2059 etcdir='${datadir}/emacs/${version}/etc'
2060 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2061 docdir='${datadir}/emacs/${version}/etc'
2062 gamedir='${localstatedir}/games/emacs'
2064 gameuser=games
2069 # Check whether --with-pop was given.
2070 if test "${with_pop+set}" = set; then
2071 withval=$with_pop;
2072 else
2073 with_pop=yes
2076 if test "$with_pop" = yes; then
2077 cat >>confdefs.h <<\_ACEOF
2078 #define MAIL_USE_POP 1
2079 _ACEOF
2085 # Check whether --with-kerberos was given.
2086 if test "${with_kerberos+set}" = set; then
2087 withval=$with_kerberos;
2088 else
2089 with_kerberos=no
2092 if test "$with_kerberos" != no; then
2093 cat >>confdefs.h <<\_ACEOF
2094 #define KERBEROS 1
2095 _ACEOF
2101 # Check whether --with-kerberos5 was given.
2102 if test "${with_kerberos5+set}" = set; then
2103 withval=$with_kerberos5;
2104 else
2105 with_kerberos5=no
2108 if test "${with_kerberos5}" != no; then
2109 if test "${with_kerberos}" = no; then
2110 with_kerberos=yes
2111 cat >>confdefs.h <<\_ACEOF
2112 #define KERBEROS 1
2113 _ACEOF
2117 cat >>confdefs.h <<\_ACEOF
2118 #define KERBEROS5 1
2119 _ACEOF
2124 # Check whether --with-hesiod was given.
2125 if test "${with_hesiod+set}" = set; then
2126 withval=$with_hesiod;
2127 else
2128 with_hesiod=no
2131 if test "$with_hesiod" != no; then
2133 cat >>confdefs.h <<\_ACEOF
2134 #define HESIOD 1
2135 _ACEOF
2140 # Check whether --with-mmdf was given.
2141 if test "${with_mmdf+set}" = set; then
2142 withval=$with_mmdf;
2143 else
2144 with_mmdf=no
2147 if test "$with_mmdf" != no; then
2149 cat >>confdefs.h <<\_ACEOF
2150 #define MAIL_USE_MMDF 1
2151 _ACEOF
2156 # Check whether --with-mail-unlink was given.
2157 if test "${with_mail_unlink+set}" = set; then
2158 withval=$with_mail_unlink;
2159 else
2160 with_mail_unlink=no
2163 if test "$with_mail_unlink" != no; then
2165 cat >>confdefs.h <<\_ACEOF
2166 #define MAIL_UNLINK_SPOOL 1
2167 _ACEOF
2172 # Check whether --with-mailhost was given.
2173 if test "${with_mailhost+set}" = set; then
2174 withval=$with_mailhost;
2175 cat >>confdefs.h <<_ACEOF
2176 #define MAILHOST "$withval"
2177 _ACEOF
2183 # Check whether --with-sound was given.
2184 if test "${with_sound+set}" = set; then
2185 withval=$with_sound;
2186 else
2187 with_sound=yes
2192 # Check whether --with-sync-input was given.
2193 if test "${with_sync_input+set}" = set; then
2194 withval=$with_sync_input;
2195 else
2196 with_sync_input=yes
2199 if test "$with_sync_input" = yes; then
2201 cat >>confdefs.h <<\_ACEOF
2202 #define SYNC_INPUT 1
2203 _ACEOF
2208 # Check whether --with-x-toolkit was given.
2209 if test "${with_x_toolkit+set}" = set; then
2210 withval=$with_x_toolkit; case "${withval}" in
2211 y | ye | yes ) val=gtk ;;
2212 n | no ) val=no ;;
2213 l | lu | luc | luci | lucid ) val=lucid ;;
2214 a | at | ath | athe | athen | athena ) val=athena ;;
2215 m | mo | mot | moti | motif ) val=motif ;;
2216 g | gt | gtk ) val=gtk ;;
2218 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2219 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2220 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2221 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2222 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2223 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2224 { (exit 1); exit 1; }; }
2226 esac
2227 with_x_toolkit=$val
2233 # Check whether --with-xpm was given.
2234 if test "${with_xpm+set}" = set; then
2235 withval=$with_xpm;
2236 else
2237 with_xpm=yes
2241 # Check whether --with-jpeg was given.
2242 if test "${with_jpeg+set}" = set; then
2243 withval=$with_jpeg;
2244 else
2245 with_jpeg=yes
2249 # Check whether --with-tiff was given.
2250 if test "${with_tiff+set}" = set; then
2251 withval=$with_tiff;
2252 else
2253 with_tiff=yes
2257 # Check whether --with-gif was given.
2258 if test "${with_gif+set}" = set; then
2259 withval=$with_gif;
2260 else
2261 with_gif=yes
2265 # Check whether --with-png was given.
2266 if test "${with_png+set}" = set; then
2267 withval=$with_png;
2268 else
2269 with_png=yes
2273 # Check whether --with-rsvg was given.
2274 if test "${with_rsvg+set}" = set; then
2275 withval=$with_rsvg;
2276 else
2277 with_rsvg=yes
2281 # Check whether --with-imagemagick was given.
2282 if test "${with_imagemagick+set}" = set; then
2283 withval=$with_imagemagick;
2284 else
2285 with_imagemagick=no
2290 # Check whether --with-xft was given.
2291 if test "${with_xft+set}" = set; then
2292 withval=$with_xft;
2293 else
2294 with_xft=yes
2298 # Check whether --with-libotf was given.
2299 if test "${with_libotf+set}" = set; then
2300 withval=$with_libotf;
2301 else
2302 with_libotf=yes
2306 # Check whether --with-m17n-flt was given.
2307 if test "${with_m17n_flt+set}" = set; then
2308 withval=$with_m17n_flt;
2309 else
2310 with_m17n_flt=yes
2315 # Check whether --with-toolkit-scroll-bars was given.
2316 if test "${with_toolkit_scroll_bars+set}" = set; then
2317 withval=$with_toolkit_scroll_bars;
2318 else
2319 with_toolkit_scroll_bars=yes
2323 # Check whether --with-xaw3d was given.
2324 if test "${with_xaw3d+set}" = set; then
2325 withval=$with_xaw3d;
2326 else
2327 with_xaw3d=yes
2331 # Check whether --with-xim was given.
2332 if test "${with_xim+set}" = set; then
2333 withval=$with_xim;
2334 else
2335 with_xim=yes
2339 # Check whether --with-ns was given.
2340 if test "${with_ns+set}" = set; then
2341 withval=$with_ns;
2342 else
2343 with_ns=no
2348 # Check whether --with-gpm was given.
2349 if test "${with_gpm+set}" = set; then
2350 withval=$with_gpm;
2351 else
2352 with_gpm=yes
2356 # Check whether --with-dbus was given.
2357 if test "${with_dbus+set}" = set; then
2358 withval=$with_dbus;
2359 else
2360 with_dbus=yes
2364 # Check whether --with-gconf was given.
2365 if test "${with_gconf+set}" = set; then
2366 withval=$with_gconf;
2367 else
2368 with_gconf=yes
2372 # Check whether --with-selinux was given.
2373 if test "${with_selinux+set}" = set; then
2374 withval=$with_selinux;
2375 else
2376 with_selinux=yes
2380 ## For the times when you want to build Emacs but don't have
2381 ## a suitable makeinfo, and can live without the manuals.
2383 # Check whether --with-makeinfo was given.
2384 if test "${with_makeinfo+set}" = set; then
2385 withval=$with_makeinfo;
2386 else
2387 with_makeinfo=yes
2392 # Check whether --with-gtk was given.
2393 if test "${with_gtk+set}" = set; then
2394 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2395 specify a toolkit." >&5
2396 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2397 specify a toolkit." >&2;}
2398 { (exit 1); exit 1; }; }
2403 # Check whether --with-gcc was given.
2404 if test "${with_gcc+set}" = set; then
2405 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2406 variable to specify a compiler." >&5
2407 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2408 variable to specify a compiler." >&2;}
2409 { (exit 1); exit 1; }; }
2414 # Check whether --with-pkg-config-prog was given.
2415 if test "${with_pkg_config_prog+set}" = set; then
2416 withval=$with_pkg_config_prog;
2419 if test "X${with_pkg_config_prog}" != X; then
2420 if test "${with_pkg_config_prog}" != yes; then
2421 PKG_CONFIG="${with_pkg_config_prog}"
2425 CRT_DIR=
2427 # Check whether --with-crt-dir was given.
2428 if test "${with_crt_dir+set}" = set; then
2429 withval=$with_crt_dir;
2432 CRT_DIR="${with_crt_dir}"
2435 # Check whether --with-gnustep-conf was given.
2436 if test "${with_gnustep_conf+set}" = set; then
2437 withval=$with_gnustep_conf;
2440 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2441 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2442 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2443 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2445 # Check whether --enable-ns-self-contained was given.
2446 if test "${enable_ns_self_contained+set}" = set; then
2447 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2448 else
2449 EN_NS_SELF_CONTAINED=yes
2453 # Check whether --enable-asserts was given.
2454 if test "${enable_asserts+set}" = set; then
2455 enableval=$enable_asserts; USE_XASSERTS=$enableval
2456 else
2457 USE_XASSERTS=no
2461 # Check whether --enable-maintainer-mode was given.
2462 if test "${enable_maintainer_mode+set}" = set; then
2463 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2464 else
2465 USE_MAINTAINER_MODE=no
2468 if test $USE_MAINTAINER_MODE = yes; then
2469 MAINT=
2470 else
2471 MAINT=#
2475 # Check whether --enable-locallisppath was given.
2476 if test "${enable_locallisppath+set}" = set; then
2477 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2478 locallisppath=
2479 elif test "${enableval}" != "yes"; then
2480 locallisppath=${enableval}
2485 # Check whether --enable-checking was given.
2486 if test "${enable_checking+set}" = set; then
2487 enableval=$enable_checking; ac_checking_flags="${enableval}"
2490 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2491 for check in $ac_checking_flags
2493 case $check in
2494 # these set all the flags to specific states
2495 yes) ac_enable_checking=1 ;;
2496 no) ac_enable_checking= ;
2497 ac_gc_check_stringbytes= ;
2498 ac_gc_check_string_overrun= ;
2499 ac_gc_check_string_free_list= ;
2500 ac_xmalloc_overrun= ;
2501 ac_gc_check_cons_list= ;;
2502 all) ac_enable_checking=1 ;
2503 ac_gc_check_stringbytes=1 ;
2504 ac_gc_check_string_overrun=1 ;
2505 ac_gc_check_string_free_list=1 ;
2506 ac_xmalloc_overrun=1 ;
2507 ac_gc_check_cons_list=1 ;;
2508 # these enable particular checks
2509 stringbytes) ac_gc_check_stringbytes=1 ;;
2510 stringoverrun) ac_gc_check_string_overrun=1 ;;
2511 stringfreelist) ac_gc_check_string_free_list=1 ;;
2512 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2513 conslist) ac_gc_check_cons_list=1 ;;
2514 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2515 $as_echo "$as_me: error: unknown check category $check" >&2;}
2516 { (exit 1); exit 1; }; } ;;
2517 esac
2518 done
2519 IFS="$ac_save_IFS"
2521 if test x$ac_enable_checking != x ; then
2523 cat >>confdefs.h <<\_ACEOF
2524 #define ENABLE_CHECKING 1
2525 _ACEOF
2528 if test x$ac_gc_check_stringbytes != x ; then
2530 cat >>confdefs.h <<\_ACEOF
2531 #define GC_CHECK_STRING_BYTES 1
2532 _ACEOF
2535 if test x$ac_gc_check_stringoverrun != x ; then
2537 cat >>confdefs.h <<\_ACEOF
2538 #define GC_CHECK_STRING_OVERRUN 1
2539 _ACEOF
2542 if test x$ac_gc_check_string_free_list != x ; then
2544 cat >>confdefs.h <<\_ACEOF
2545 #define GC_CHECK_STRING_FREE_LIST 1
2546 _ACEOF
2549 if test x$ac_xmalloc_overrun != x ; then
2551 cat >>confdefs.h <<\_ACEOF
2552 #define XMALLOC_OVERRUN_CHECK 1
2553 _ACEOF
2556 if test x$ac_gc_check_cons_list != x ; then
2558 cat >>confdefs.h <<\_ACEOF
2559 #define GC_CHECK_CONS_LIST 1
2560 _ACEOF
2564 # Check whether --enable-profiling was given.
2565 if test "${enable_profiling+set}" = set; then
2566 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2569 if test x$ac_enable_profiling != x ; then
2570 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2571 PROFILING_LDFLAGS="-pg"
2572 else
2573 PROFILING_CFLAGS=
2574 PROFILING_LDFLAGS=
2577 # Check whether --enable-autodepend was given.
2578 if test "${enable_autodepend+set}" = set; then
2579 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2580 else
2581 ac_enable_autodepend=yes
2585 #### Make srcdir absolute, if it isn't already. It's important to
2586 #### avoid running the path through pwd unnecessarily, since pwd can
2587 #### give you automounter prefixes, which can go away. We do all this
2588 #### so Emacs can find its files when run uninstalled.
2589 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2590 unset CDPATH
2591 case "${srcdir}" in
2592 /* ) ;;
2594 ## We may be able to use the $PWD environment variable to make this
2595 ## absolute. But sometimes PWD is inaccurate.
2596 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2597 ## but that tested only for a well-formed and valid PWD,
2598 ## it did not object when PWD was well-formed and valid but just wrong.
2599 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2600 then
2601 srcdir="$PWD"
2602 else
2603 srcdir="`(cd ${srcdir}; pwd)`"
2606 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2607 esac
2609 #### Check if the source directory already has a configured system in it.
2610 if test `pwd` != `(cd ${srcdir} && pwd)` \
2611 && test -f "${srcdir}/src/config.h" ; then
2612 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2613 as a build directory right now; it has been configured in its own
2614 right. To configure in another directory as well, you MUST
2615 use GNU make. If you do not have GNU make, then you must
2616 now do \`make distclean' in ${srcdir},
2617 and then run $0 again." >&5
2618 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2619 as a build directory right now; it has been configured in its own
2620 right. To configure in another directory as well, you MUST
2621 use GNU make. If you do not have GNU make, then you must
2622 now do \`make distclean' in ${srcdir},
2623 and then run $0 again." >&2;}
2626 #### Given the configuration name, set machfile and opsysfile to the
2627 #### names of the m/*.h and s/*.h files we should use.
2629 ### Canonicalize the configuration name.
2631 ac_aux_dir=
2632 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2633 if test -f "$ac_dir/install-sh"; then
2634 ac_aux_dir=$ac_dir
2635 ac_install_sh="$ac_aux_dir/install-sh -c"
2636 break
2637 elif test -f "$ac_dir/install.sh"; then
2638 ac_aux_dir=$ac_dir
2639 ac_install_sh="$ac_aux_dir/install.sh -c"
2640 break
2641 elif test -f "$ac_dir/shtool"; then
2642 ac_aux_dir=$ac_dir
2643 ac_install_sh="$ac_aux_dir/shtool install -c"
2644 break
2646 done
2647 if test -z "$ac_aux_dir"; then
2648 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2649 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2650 { (exit 1); exit 1; }; }
2653 # These three variables are undocumented and unsupported,
2654 # and are intended to be withdrawn in a future Autoconf release.
2655 # They can cause serious problems if a builder's source tree is in a directory
2656 # whose full name contains unusual characters.
2657 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2658 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2659 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2662 # Make sure we can run config.sub.
2663 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2664 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2665 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2666 { (exit 1); exit 1; }; }
2668 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2669 $as_echo_n "checking build system type... " >&6; }
2670 if test "${ac_cv_build+set}" = set; then
2671 $as_echo_n "(cached) " >&6
2672 else
2673 ac_build_alias=$build_alias
2674 test "x$ac_build_alias" = x &&
2675 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2676 test "x$ac_build_alias" = x &&
2677 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2678 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2679 { (exit 1); exit 1; }; }
2680 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2681 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2682 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2683 { (exit 1); exit 1; }; }
2686 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2687 $as_echo "$ac_cv_build" >&6; }
2688 case $ac_cv_build in
2689 *-*-*) ;;
2690 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2691 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2692 { (exit 1); exit 1; }; };;
2693 esac
2694 build=$ac_cv_build
2695 ac_save_IFS=$IFS; IFS='-'
2696 set x $ac_cv_build
2697 shift
2698 build_cpu=$1
2699 build_vendor=$2
2700 shift; shift
2701 # Remember, the first character of IFS is used to create $*,
2702 # except with old shells:
2703 build_os=$*
2704 IFS=$ac_save_IFS
2705 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2708 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2709 $as_echo_n "checking host system type... " >&6; }
2710 if test "${ac_cv_host+set}" = set; then
2711 $as_echo_n "(cached) " >&6
2712 else
2713 if test "x$host_alias" = x; then
2714 ac_cv_host=$ac_cv_build
2715 else
2716 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2717 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2718 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2719 { (exit 1); exit 1; }; }
2723 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2724 $as_echo "$ac_cv_host" >&6; }
2725 case $ac_cv_host in
2726 *-*-*) ;;
2727 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2728 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2729 { (exit 1); exit 1; }; };;
2730 esac
2731 host=$ac_cv_host
2732 ac_save_IFS=$IFS; IFS='-'
2733 set x $ac_cv_host
2734 shift
2735 host_cpu=$1
2736 host_vendor=$2
2737 shift; shift
2738 # Remember, the first character of IFS is used to create $*,
2739 # except with old shells:
2740 host_os=$*
2741 IFS=$ac_save_IFS
2742 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2745 canonical=$host
2746 configuration=${host_alias-${build_alias-$host}}
2750 ### If you add support for a new configuration, add code to this
2751 ### switch statement to recognize your configuration name and select
2752 ### the appropriate operating system and machine description files.
2754 ### You would hope that you could choose an m/*.h file pretty much
2755 ### based on the machine portion of the configuration name, and an s-
2756 ### file based on the operating system portion. However, it turns out
2757 ### that each m/*.h file is pretty manufacturer-specific - for
2758 ### example mips.h is MIPS
2759 ### So we basically have to have a special case for each
2760 ### configuration name.
2762 ### As far as handling version numbers on operating systems is
2763 ### concerned, make sure things will fail in a fixable way. If
2764 ### /etc/MACHINES doesn't say anything about version numbers, be
2765 ### prepared to handle anything reasonably. If version numbers
2766 ### matter, be sure /etc/MACHINES says something about it.
2768 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2769 ### "System V Release 4"; he writes, "The old convention encouraged
2770 ### confusion between `system' and `release' levels'."
2772 machine='' opsys='' unported=no
2773 case "${canonical}" in
2775 ## FreeBSD ports
2776 *-*-freebsd* )
2777 opsys=freebsd
2778 case "${canonical}" in
2779 alpha*-*-freebsd*) machine=alpha ;;
2780 arm*-*-freebsd*) machine=arm ;;
2781 ia64-*-freebsd*) machine=ia64 ;;
2782 sparc-*-freebsd*) machine=sparc ;;
2783 sparc64-*-freebsd*) machine=sparc ;;
2784 powerpc-*-freebsd*) machine=macppc ;;
2785 i[3456]86-*-freebsd*) machine=intel386 ;;
2786 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2787 esac
2790 ## FreeBSD kernel + glibc based userland
2791 *-*-kfreebsd*gnu* )
2792 opsys=gnu-kfreebsd
2793 case "${canonical}" in
2794 alpha*-*-kfreebsd*) machine=alpha ;;
2795 ia64-*-kfreebsd*) machine=ia64 ;;
2796 sparc-*-kfreebsd*) machine=sparc ;;
2797 sparc64-*-kfreebsd*) machine=sparc ;;
2798 powerpc-*-kfreebsd*) machine=macppc ;;
2799 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2800 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2801 esac
2804 ## NetBSD ports
2805 *-*-netbsd* )
2806 opsys=netbsd
2807 case "${canonical}" in
2808 alpha*-*-netbsd*) machine=alpha ;;
2809 i[3456]86-*-netbsd*) machine=intel386 ;;
2810 mips-*-netbsd*) machine=mips ;;
2811 mipsel-*-netbsd*) machine=mips ;;
2812 mipseb-*-netbsd*) machine=mips ;;
2813 powerpc-*-netbsd*) machine=macppc ;;
2814 sparc*-*-netbsd*) machine=sparc ;;
2815 vax-*-netbsd*) machine=vax ;;
2816 arm-*-netbsd*) machine=arm ;;
2817 x86_64-*-netbsd*) machine=amdx86-64 ;;
2818 hppa-*-netbsd*) machine=hp800 ;;
2819 m68k-*-netbsd*) machine=m68k ;;
2820 esac
2823 ## OpenBSD ports
2824 *-*-openbsd* )
2825 opsys=openbsd
2826 case "${canonical}" in
2827 alpha*-*-openbsd*) machine=alpha ;;
2828 arm-*-openbsd*) machine=arm ;;
2829 i386-*-openbsd*) machine=intel386 ;;
2830 powerpc-*-openbsd*) machine=macppc ;;
2831 sparc*-*-openbsd*) machine=sparc ;;
2832 vax-*-openbsd*) machine=vax ;;
2833 x86_64-*-openbsd*) machine=amdx86-64 ;;
2834 hppa-*-openbsd*) machine=hp800 ;;
2835 esac
2838 alpha*-*-linux-gnu* )
2839 machine=alpha opsys=gnu-linux
2842 arm*-*-linux-gnu* )
2843 machine=arm opsys=gnu-linux
2846 ## Apple Darwin / Mac OS X
2847 *-apple-darwin* )
2848 case "${canonical}" in
2849 i[3456]86-* ) machine=intel386 ;;
2850 powerpc-* ) machine=macppc ;;
2851 x86_64-* ) machine=amdx86-64 ;;
2852 * ) unported=yes ;;
2853 esac
2854 opsys=darwin
2855 # Define CPP as follows to make autoconf work correctly.
2856 CPP="${CC-cc} -E -no-cpp-precomp"
2857 # Use fink packages if available.
2858 if test -d /sw/include && test -d /sw/lib; then
2859 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2860 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2861 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2865 ## HP 9000 series 700 and 800, running HP/UX
2866 hppa*-hp-hpux10.2* )
2867 machine=hp800 opsys=hpux10-20
2869 hppa*-hp-hpux1[1-9]* )
2870 machine=hp800 opsys=hpux11
2871 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2874 hppa*-*-linux-gnu* )
2875 machine=hp800 opsys=gnu-linux
2878 ## IBM machines
2879 s390-*-linux-gnu* )
2880 machine=ibms390 opsys=gnu-linux
2882 s390x-*-linux-gnu* )
2883 machine=ibms390x opsys=gnu-linux
2885 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2886 machine=ibmrs6000 opsys=aix4-2
2888 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2889 machine=ibmrs6000 opsys=aix4-2
2891 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2892 machine=ibmrs6000 opsys=aix4-2
2894 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2895 machine=ibmrs6000 opsys=aix4-2
2898 ## Macintosh PowerPC
2899 powerpc*-*-linux-gnu* )
2900 machine=macppc opsys=gnu-linux
2903 ## Silicon Graphics machines
2904 ## Iris 4D
2905 mips-sgi-irix6.5 )
2906 machine=iris4d opsys=irix6-5
2907 # Without defining _LANGUAGE_C, things get masked out in the headers
2908 # so that, for instance, grepping for `free' in stdlib.h fails and
2909 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2910 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2911 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2914 ## Suns
2915 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2916 machine=sparc opsys=gnu-linux
2919 *-sun-solaris* \
2920 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2921 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2922 case "${canonical}" in
2923 i[3456]86-*-* ) machine=intel386 ;;
2924 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2925 sparc* ) machine=sparc ;;
2926 * ) unported=yes ;;
2927 esac
2928 case "${canonical}" in
2929 *-sunos5.6* | *-solaris2.6* )
2930 opsys=sol2-6
2931 NON_GNU_CPP=/usr/ccs/lib/cpp
2932 RANLIB="ar -ts"
2934 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2935 opsys=sol2-6
2936 emacs_check_sunpro_c=yes
2937 NON_GNU_CPP=/usr/ccs/lib/cpp
2939 *-sunos5* | *-solaris* )
2940 opsys=sol2-10
2941 emacs_check_sunpro_c=yes
2942 NON_GNU_CPP=/usr/ccs/lib/cpp
2944 esac
2945 ## Watch out for a compiler that we know will not work.
2946 case "${canonical}" in
2947 *-solaris* | *-sunos5* )
2948 if [ "x$CC" = x/usr/ucb/cc ]; then
2949 ## /usr/ucb/cc doesn't work;
2950 ## we should find some other compiler that does work.
2951 unset CC
2954 *) ;;
2955 esac
2958 ## IA-64
2959 ia64*-*-linux* )
2960 machine=ia64 opsys=gnu-linux
2963 ## Intel 386 machines where we don't care about the manufacturer
2964 i[3456]86-*-* )
2965 machine=intel386
2966 case "${canonical}" in
2967 *-cygwin ) opsys=cygwin ;;
2968 *-darwin* ) opsys=darwin
2969 CPP="${CC-cc} -E -no-cpp-precomp"
2971 *-linux-gnu* ) opsys=gnu-linux ;;
2972 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2973 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2974 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2975 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2976 esac
2979 ## m68k Linux-based GNU system
2980 m68k-*-linux-gnu* )
2981 machine=m68k opsys=gnu-linux
2984 ## Mips Linux-based GNU system
2985 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2986 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2987 machine=mips opsys=gnu-linux
2990 ## AMD x86-64 Linux-based GNU system
2991 x86_64-*-linux-gnu* )
2992 machine=amdx86-64 opsys=gnu-linux
2995 ## Tensilica Xtensa Linux-based GNU system
2996 xtensa*-*-linux-gnu* )
2997 machine=xtensa opsys=gnu-linux
3000 ## SuperH Linux-based GNU system
3001 sh[34]*-*-linux-gnu* )
3002 machine=sh3 opsys=gnu-linux
3006 unported=yes
3008 esac
3010 ### If the code above didn't choose an operating system, just choose
3011 ### an operating system based on the configuration name. You really
3012 ### only want to use this when you have no idea what the right
3013 ### operating system is; if you know what operating systems a machine
3014 ### runs, it's cleaner to make it explicit in the case statement
3015 ### above.
3016 if test x"${opsys}" = x; then
3017 case "${canonical}" in
3018 *-gnu* ) opsys=gnu ;;
3020 unported=yes
3022 esac
3027 if test $unported = yes; then
3028 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3029 Check \`etc/MACHINES' for recognized configuration names." >&5
3030 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3031 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3032 { (exit 1); exit 1; }; }
3035 machfile="m/${machine}.h"
3036 opsysfile="s/${opsys}.h"
3039 #### Choose a compiler.
3040 test -n "$CC" && cc_specified=yes
3042 # Save the value of CFLAGS that the user specified.
3043 SPECIFIED_CFLAGS="$CFLAGS"
3045 ac_ext=c
3046 ac_cpp='$CPP $CPPFLAGS'
3047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3050 if test -n "$ac_tool_prefix"; then
3051 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3052 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if test "${ac_cv_prog_CC+set}" = set; then
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$CC"; then
3059 ac_cv_prog_CC="$CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3072 done
3073 done
3074 IFS=$as_save_IFS
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3081 $as_echo "$CC" >&6; }
3082 else
3083 { $as_echo "$as_me:$LINENO: result: no" >&5
3084 $as_echo "no" >&6; }
3089 if test -z "$ac_cv_prog_CC"; then
3090 ac_ct_CC=$CC
3091 # Extract the first word of "gcc", so it can be a program name with args.
3092 set dummy gcc; ac_word=$2
3093 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3094 $as_echo_n "checking for $ac_word... " >&6; }
3095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3096 $as_echo_n "(cached) " >&6
3097 else
3098 if test -n "$ac_ct_CC"; then
3099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3100 else
3101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102 for as_dir in $PATH
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 ac_cv_prog_ac_ct_CC="gcc"
3109 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 break 2
3112 done
3113 done
3114 IFS=$as_save_IFS
3118 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3119 if test -n "$ac_ct_CC"; then
3120 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3121 $as_echo "$ac_ct_CC" >&6; }
3122 else
3123 { $as_echo "$as_me:$LINENO: result: no" >&5
3124 $as_echo "no" >&6; }
3127 if test "x$ac_ct_CC" = x; then
3128 CC=""
3129 else
3130 case $cross_compiling:$ac_tool_warned in
3131 yes:)
3132 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3133 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3134 ac_tool_warned=yes ;;
3135 esac
3136 CC=$ac_ct_CC
3138 else
3139 CC="$ac_cv_prog_CC"
3142 if test -z "$CC"; then
3143 if test -n "$ac_tool_prefix"; then
3144 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3145 set dummy ${ac_tool_prefix}cc; ac_word=$2
3146 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if test "${ac_cv_prog_CC+set}" = set; then
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3161 ac_cv_prog_CC="${ac_tool_prefix}cc"
3162 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3165 done
3166 done
3167 IFS=$as_save_IFS
3171 CC=$ac_cv_prog_CC
3172 if test -n "$CC"; then
3173 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3174 $as_echo "$CC" >&6; }
3175 else
3176 { $as_echo "$as_me:$LINENO: result: no" >&5
3177 $as_echo "no" >&6; }
3183 if test -z "$CC"; then
3184 # Extract the first word of "cc", so it can be a program name with args.
3185 set dummy cc; ac_word=$2
3186 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if test "${ac_cv_prog_CC+set}" = set; then
3189 $as_echo_n "(cached) " >&6
3190 else
3191 if test -n "$CC"; then
3192 ac_cv_prog_CC="$CC" # Let the user override the test.
3193 else
3194 ac_prog_rejected=no
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3203 ac_prog_rejected=yes
3204 continue
3206 ac_cv_prog_CC="cc"
3207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208 break 2
3210 done
3211 done
3212 IFS=$as_save_IFS
3214 if test $ac_prog_rejected = yes; then
3215 # We found a bogon in the path, so make sure we never use it.
3216 set dummy $ac_cv_prog_CC
3217 shift
3218 if test $# != 0; then
3219 # We chose a different compiler from the bogus one.
3220 # However, it has the same basename, so the bogon will be chosen
3221 # first if we set CC to just the basename; use the full file name.
3222 shift
3223 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3231 $as_echo "$CC" >&6; }
3232 else
3233 { $as_echo "$as_me:$LINENO: result: no" >&5
3234 $as_echo "no" >&6; }
3239 if test -z "$CC"; then
3240 if test -n "$ac_tool_prefix"; then
3241 for ac_prog in cl.exe
3243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3245 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC="$CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3264 done
3265 done
3266 IFS=$as_save_IFS
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275 { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3280 test -n "$CC" && break
3281 done
3283 if test -z "$CC"; then
3284 ac_ct_CC=$CC
3285 for ac_prog in cl.exe
3287 # Extract the first word of "$ac_prog", so it can be a program name with args.
3288 set dummy $ac_prog; ac_word=$2
3289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3290 $as_echo_n "checking for $ac_word... " >&6; }
3291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3292 $as_echo_n "(cached) " >&6
3293 else
3294 if test -n "$ac_ct_CC"; then
3295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3296 else
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3300 IFS=$as_save_IFS
3301 test -z "$as_dir" && as_dir=.
3302 for ac_exec_ext in '' $ac_executable_extensions; do
3303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3304 ac_cv_prog_ac_ct_CC="$ac_prog"
3305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306 break 2
3308 done
3309 done
3310 IFS=$as_save_IFS
3314 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315 if test -n "$ac_ct_CC"; then
3316 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3317 $as_echo "$ac_ct_CC" >&6; }
3318 else
3319 { $as_echo "$as_me:$LINENO: result: no" >&5
3320 $as_echo "no" >&6; }
3324 test -n "$ac_ct_CC" && break
3325 done
3327 if test "x$ac_ct_CC" = x; then
3328 CC=""
3329 else
3330 case $cross_compiling:$ac_tool_warned in
3331 yes:)
3332 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3334 ac_tool_warned=yes ;;
3335 esac
3336 CC=$ac_ct_CC
3343 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3346 See \`config.log' for more details." >&5
3347 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3348 See \`config.log' for more details." >&2;}
3349 { (exit 1); exit 1; }; }; }
3351 # Provide some information about the compiler.
3352 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3353 set X $ac_compile
3354 ac_compiler=$2
3355 { (ac_try="$ac_compiler --version >&5"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3361 $as_echo "$ac_try_echo") >&5
3362 (eval "$ac_compiler --version >&5") 2>&5
3363 ac_status=$?
3364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }
3366 { (ac_try="$ac_compiler -v >&5"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372 $as_echo "$ac_try_echo") >&5
3373 (eval "$ac_compiler -v >&5") 2>&5
3374 ac_status=$?
3375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }
3377 { (ac_try="$ac_compiler -V >&5"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3383 $as_echo "$ac_try_echo") >&5
3384 (eval "$ac_compiler -V >&5") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); }
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3397 main ()
3401 return 0;
3403 _ACEOF
3404 ac_clean_files_save=$ac_clean_files
3405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3406 # Try to create an executable without -o first, disregard a.out.
3407 # It will help us diagnose broken compilers, and finding out an intuition
3408 # of exeext.
3409 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3410 $as_echo_n "checking for C compiler default output file name... " >&6; }
3411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3413 # The possible output files:
3414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3416 ac_rmfiles=
3417 for ac_file in $ac_files
3419 case $ac_file in
3420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3422 esac
3423 done
3424 rm -f $ac_rmfiles
3426 if { (ac_try="$ac_link_default"
3427 case "(($ac_try" in
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3430 esac
3431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3432 $as_echo "$ac_try_echo") >&5
3433 (eval "$ac_link_default") 2>&5
3434 ac_status=$?
3435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; then
3437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3440 # so that the user can short-circuit this test for compilers unknown to
3441 # Autoconf.
3442 for ac_file in $ac_files ''
3444 test -f "$ac_file" || continue
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3448 [ab].out )
3449 # We found the default executable, but exeext='' is most
3450 # certainly right.
3451 break;;
3452 *.* )
3453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3454 then :; else
3455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3457 # We set ac_cv_exeext here because the later test for it is not
3458 # safe: cross compilers may not add the suffix if given an `-o'
3459 # argument, so we may need to know it at that point already.
3460 # Even if this section looks crufty: it has the advantage of
3461 # actually working.
3462 break;;
3464 break;;
3465 esac
3466 done
3467 test "$ac_cv_exeext" = no && ac_cv_exeext=
3469 else
3470 ac_file=''
3473 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3474 $as_echo "$ac_file" >&6; }
3475 if test -z "$ac_file"; then
3476 $as_echo "$as_me: failed program was:" >&5
3477 sed 's/^/| /' conftest.$ac_ext >&5
3479 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3482 See \`config.log' for more details." >&5
3483 $as_echo "$as_me: error: C compiler cannot create executables
3484 See \`config.log' for more details." >&2;}
3485 { (exit 77); exit 77; }; }; }
3488 ac_exeext=$ac_cv_exeext
3490 # Check that the compiler produces executables we can run. If not, either
3491 # the compiler is broken, or we cross compile.
3492 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3493 $as_echo_n "checking whether the C compiler works... " >&6; }
3494 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3495 # If not cross compiling, check that we can run a simple program.
3496 if test "$cross_compiling" != yes; then
3497 if { ac_try='./$ac_file'
3498 { (case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3503 $as_echo "$ac_try_echo") >&5
3504 (eval "$ac_try") 2>&5
3505 ac_status=$?
3506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); }; }; then
3508 cross_compiling=no
3509 else
3510 if test "$cross_compiling" = maybe; then
3511 cross_compiling=yes
3512 else
3513 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3515 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3516 If you meant to cross compile, use \`--host'.
3517 See \`config.log' for more details." >&5
3518 $as_echo "$as_me: error: cannot run C compiled programs.
3519 If you meant to cross compile, use \`--host'.
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }; }
3525 { $as_echo "$as_me:$LINENO: result: yes" >&5
3526 $as_echo "yes" >&6; }
3528 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3529 ac_clean_files=$ac_clean_files_save
3530 # Check that the compiler produces executables we can run. If not, either
3531 # the compiler is broken, or we cross compile.
3532 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3533 $as_echo_n "checking whether we are cross compiling... " >&6; }
3534 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3535 $as_echo "$cross_compiling" >&6; }
3537 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3538 $as_echo_n "checking for suffix of executables... " >&6; }
3539 if { (ac_try="$ac_link"
3540 case "(($ac_try" in
3541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3543 esac
3544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3545 $as_echo "$ac_try_echo") >&5
3546 (eval "$ac_link") 2>&5
3547 ac_status=$?
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; then
3550 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3551 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3552 # work properly (i.e., refer to `conftest.exe'), while it won't with
3553 # `rm'.
3554 for ac_file in conftest.exe conftest conftest.*; do
3555 test -f "$ac_file" || continue
3556 case $ac_file in
3557 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3558 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3559 break;;
3560 * ) break;;
3561 esac
3562 done
3563 else
3564 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3566 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3567 See \`config.log' for more details." >&5
3568 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3569 See \`config.log' for more details." >&2;}
3570 { (exit 1); exit 1; }; }; }
3573 rm -f conftest$ac_cv_exeext
3574 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3575 $as_echo "$ac_cv_exeext" >&6; }
3577 rm -f conftest.$ac_ext
3578 EXEEXT=$ac_cv_exeext
3579 ac_exeext=$EXEEXT
3580 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3581 $as_echo_n "checking for suffix of object files... " >&6; }
3582 if test "${ac_cv_objext+set}" = set; then
3583 $as_echo_n "(cached) " >&6
3584 else
3585 cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h. */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3593 main ()
3597 return 0;
3599 _ACEOF
3600 rm -f conftest.o conftest.obj
3601 if { (ac_try="$ac_compile"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3607 $as_echo "$ac_try_echo") >&5
3608 (eval "$ac_compile") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; then
3612 for ac_file in conftest.o conftest.obj conftest.*; do
3613 test -f "$ac_file" || continue;
3614 case $ac_file in
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3617 break;;
3618 esac
3619 done
3620 else
3621 $as_echo "$as_me: failed program was:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3627 See \`config.log' for more details." >&5
3628 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3629 See \`config.log' for more details." >&2;}
3630 { (exit 1); exit 1; }; }; }
3633 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3635 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3636 $as_echo "$ac_cv_objext" >&6; }
3637 OBJEXT=$ac_cv_objext
3638 ac_objext=$OBJEXT
3639 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3640 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3641 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3642 $as_echo_n "(cached) " >&6
3643 else
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3652 main ()
3654 #ifndef __GNUC__
3655 choke me
3656 #endif
3659 return 0;
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (ac_try="$ac_compile"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3669 $as_echo "$ac_try_echo") >&5
3670 (eval "$ac_compile") 2>conftest.er1
3671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && {
3677 test -z "$ac_c_werror_flag" ||
3678 test ! -s conftest.err
3679 } && test -s conftest.$ac_objext; then
3680 ac_compiler_gnu=yes
3681 else
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3685 ac_compiler_gnu=no
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3692 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3693 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3694 if test $ac_compiler_gnu = yes; then
3695 GCC=yes
3696 else
3697 GCC=
3699 ac_test_CFLAGS=${CFLAGS+set}
3700 ac_save_CFLAGS=$CFLAGS
3701 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3702 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3703 if test "${ac_cv_prog_cc_g+set}" = set; then
3704 $as_echo_n "(cached) " >&6
3705 else
3706 ac_save_c_werror_flag=$ac_c_werror_flag
3707 ac_c_werror_flag=yes
3708 ac_cv_prog_cc_g=no
3709 CFLAGS="-g"
3710 cat >conftest.$ac_ext <<_ACEOF
3711 /* confdefs.h. */
3712 _ACEOF
3713 cat confdefs.h >>conftest.$ac_ext
3714 cat >>conftest.$ac_ext <<_ACEOF
3715 /* end confdefs.h. */
3718 main ()
3722 return 0;
3724 _ACEOF
3725 rm -f conftest.$ac_objext
3726 if { (ac_try="$ac_compile"
3727 case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730 esac
3731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3732 $as_echo "$ac_try_echo") >&5
3733 (eval "$ac_compile") 2>conftest.er1
3734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } && {
3740 test -z "$ac_c_werror_flag" ||
3741 test ! -s conftest.err
3742 } && test -s conftest.$ac_objext; then
3743 ac_cv_prog_cc_g=yes
3744 else
3745 $as_echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3748 CFLAGS=""
3749 cat >conftest.$ac_ext <<_ACEOF
3750 /* confdefs.h. */
3751 _ACEOF
3752 cat confdefs.h >>conftest.$ac_ext
3753 cat >>conftest.$ac_ext <<_ACEOF
3754 /* end confdefs.h. */
3757 main ()
3761 return 0;
3763 _ACEOF
3764 rm -f conftest.$ac_objext
3765 if { (ac_try="$ac_compile"
3766 case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3771 $as_echo "$ac_try_echo") >&5
3772 (eval "$ac_compile") 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest.$ac_objext; then
3783 else
3784 $as_echo "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3787 ac_c_werror_flag=$ac_save_c_werror_flag
3788 CFLAGS="-g"
3789 cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h. */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h. */
3797 main ()
3801 return 0;
3803 _ACEOF
3804 rm -f conftest.$ac_objext
3805 if { (ac_try="$ac_compile"
3806 case "(($ac_try" in
3807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808 *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3811 $as_echo "$ac_try_echo") >&5
3812 (eval "$ac_compile") 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } && {
3819 test -z "$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 } && test -s conftest.$ac_objext; then
3822 ac_cv_prog_cc_g=yes
3823 else
3824 $as_echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
3839 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3840 $as_echo "$ac_cv_prog_cc_g" >&6; }
3841 if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843 elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
3846 else
3847 CFLAGS="-g"
3849 else
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
3852 else
3853 CFLAGS=
3856 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858 if test "${ac_cv_prog_cc_c89+set}" = set; then
3859 $as_echo_n "(cached) " >&6
3860 else
3861 ac_cv_prog_cc_c89=no
3862 ac_save_CC=$CC
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. */
3869 #include <stdarg.h>
3870 #include <stdio.h>
3871 #include <sys/types.h>
3872 #include <sys/stat.h>
3873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3874 struct buf { int x; };
3875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3876 static char *e (p, i)
3877 char **p;
3878 int i;
3880 return p[i];
3882 static char *f (char * (*g) (char **, int), char **p, ...)
3884 char *s;
3885 va_list v;
3886 va_start (v,p);
3887 s = g (p, va_arg (v,int));
3888 va_end (v);
3889 return s;
3892 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3893 function prototypes and stuff, but not '\xHH' hex character constants.
3894 These don't provoke an error unfortunately, instead are silently treated
3895 as 'x'. The following induces an error, until -std is added to get
3896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3897 array size at least. It's necessary to write '\x00'==0 to get something
3898 that's true only with -std. */
3899 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3901 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3902 inside strings and character constants. */
3903 #define FOO(x) 'x'
3904 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3906 int test (int i, double x);
3907 struct s1 {int (*f) (int a);};
3908 struct s2 {int (*f) (double a);};
3909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3910 int argc;
3911 char **argv;
3913 main ()
3915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3917 return 0;
3919 _ACEOF
3920 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3921 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3923 CC="$ac_save_CC $ac_arg"
3924 rm -f conftest.$ac_objext
3925 if { (ac_try="$ac_compile"
3926 case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929 esac
3930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3931 $as_echo "$ac_try_echo") >&5
3932 (eval "$ac_compile") 2>conftest.er1
3933 ac_status=$?
3934 grep -v '^ *+' conftest.er1 >conftest.err
3935 rm -f conftest.er1
3936 cat conftest.err >&5
3937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); } && {
3939 test -z "$ac_c_werror_flag" ||
3940 test ! -s conftest.err
3941 } && test -s conftest.$ac_objext; then
3942 ac_cv_prog_cc_c89=$ac_arg
3943 else
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3950 rm -f core conftest.err conftest.$ac_objext
3951 test "x$ac_cv_prog_cc_c89" != "xno" && break
3952 done
3953 rm -f conftest.$ac_ext
3954 CC=$ac_save_CC
3957 # AC_CACHE_VAL
3958 case "x$ac_cv_prog_cc_c89" in
3960 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3961 $as_echo "none needed" >&6; } ;;
3962 xno)
3963 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3964 $as_echo "unsupported" >&6; } ;;
3966 CC="$CC $ac_cv_prog_cc_c89"
3967 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3968 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3969 esac
3972 ac_ext=c
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3979 # On Suns, sometimes $CPP names a directory.
3980 if test -n "$CPP" && test -d "$CPP"; then
3981 CPP=
3984 ## If not using gcc, and on Solaris, and no CPP specified, see if
3985 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3986 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3987 test x"$CPP" = x; then
3988 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3989 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3991 if test "${emacs_cv_sunpro_c+set}" = set; then
3992 $as_echo_n "(cached) " >&6
3993 else
3994 cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h. */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h. */
4002 main ()
4004 #ifndef __SUNPRO_C
4005 fail;
4006 #endif
4009 return 0;
4011 _ACEOF
4012 rm -f conftest.$ac_objext conftest$ac_exeext
4013 if { (ac_try="$ac_link"
4014 case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017 esac
4018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4019 $as_echo "$ac_try_echo") >&5
4020 (eval "$ac_link") 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest$ac_exeext && {
4030 test "$cross_compiling" = yes ||
4031 $as_test_x conftest$ac_exeext
4032 }; then
4033 emacs_cv_sunpro_c=yes
4034 else
4035 $as_echo "$as_me: failed program was:" >&5
4036 sed 's/^/| /' conftest.$ac_ext >&5
4038 emacs_cv_sunpro_c=no
4041 rm -rf conftest.dSYM
4042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4043 conftest$ac_exeext conftest.$ac_ext
4046 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4047 $as_echo "$emacs_cv_sunpro_c" >&6; }
4049 if test x"$emacs_cv_sunpro_c" = xyes; then
4050 NON_GNU_CPP="$CC -E -Xs"
4054 #### Some systems specify a CPP to use unless we are using GCC.
4055 #### Now that we know whether we are using GCC, we can decide whether
4056 #### to use that one.
4057 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4058 then
4059 CPP="$NON_GNU_CPP"
4062 #### Some systems specify a CC to use unless we are using GCC.
4063 #### Now that we know whether we are using GCC, we can decide whether
4064 #### to use that one.
4065 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4066 test x$cc_specified != xyes
4067 then
4068 CC="$NON_GNU_CC"
4071 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4072 then
4073 CC="$CC $GCC_TEST_OPTIONS"
4076 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4077 then
4078 CC="$CC $NON_GCC_TEST_OPTIONS"
4081 ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4087 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4088 # On Suns, sometimes $CPP names a directory.
4089 if test -n "$CPP" && test -d "$CPP"; then
4090 CPP=
4092 if test -z "$CPP"; then
4093 if test "${ac_cv_prog_CPP+set}" = set; then
4094 $as_echo_n "(cached) " >&6
4095 else
4096 # Double quotes because CPP needs to be expanded
4097 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4099 ac_preproc_ok=false
4100 for ac_c_preproc_warn_flag in '' yes
4102 # Use a header file that comes with gcc, so configuring glibc
4103 # with a fresh cross-compiler works.
4104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4105 # <limits.h> exists even on freestanding compilers.
4106 # On the NeXT, cc -E runs the code through the compiler's parser,
4107 # not just through cpp. "Syntax error" is here to catch this case.
4108 cat >conftest.$ac_ext <<_ACEOF
4109 /* confdefs.h. */
4110 _ACEOF
4111 cat confdefs.h >>conftest.$ac_ext
4112 cat >>conftest.$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4114 #ifdef __STDC__
4115 # include <limits.h>
4116 #else
4117 # include <assert.h>
4118 #endif
4119 Syntax error
4120 _ACEOF
4121 if { (ac_try="$ac_cpp conftest.$ac_ext"
4122 case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4125 esac
4126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4127 $as_echo "$ac_try_echo") >&5
4128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4129 ac_status=$?
4130 grep -v '^ *+' conftest.er1 >conftest.err
4131 rm -f conftest.er1
4132 cat conftest.err >&5
4133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } >/dev/null && {
4135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4136 test ! -s conftest.err
4137 }; then
4139 else
4140 $as_echo "$as_me: failed program was:" >&5
4141 sed 's/^/| /' conftest.$ac_ext >&5
4143 # Broken: fails on valid input.
4144 continue
4147 rm -f conftest.err conftest.$ac_ext
4149 # OK, works on sane cases. Now check whether nonexistent headers
4150 # can be detected and how.
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #include <ac_nonexistent.h>
4158 _ACEOF
4159 if { (ac_try="$ac_cpp conftest.$ac_ext"
4160 case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163 esac
4164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4165 $as_echo "$ac_try_echo") >&5
4166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4167 ac_status=$?
4168 grep -v '^ *+' conftest.er1 >conftest.err
4169 rm -f conftest.er1
4170 cat conftest.err >&5
4171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); } >/dev/null && {
4173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4174 test ! -s conftest.err
4175 }; then
4176 # Broken: success on invalid input.
4177 continue
4178 else
4179 $as_echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 # Passes both tests.
4183 ac_preproc_ok=:
4184 break
4187 rm -f conftest.err conftest.$ac_ext
4189 done
4190 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4191 rm -f conftest.err conftest.$ac_ext
4192 if $ac_preproc_ok; then
4193 break
4196 done
4197 ac_cv_prog_CPP=$CPP
4200 CPP=$ac_cv_prog_CPP
4201 else
4202 ac_cv_prog_CPP=$CPP
4204 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4205 $as_echo "$CPP" >&6; }
4206 ac_preproc_ok=false
4207 for ac_c_preproc_warn_flag in '' yes
4209 # Use a header file that comes with gcc, so configuring glibc
4210 # with a fresh cross-compiler works.
4211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212 # <limits.h> exists even on freestanding compilers.
4213 # On the NeXT, cc -E runs the code through the compiler's parser,
4214 # not just through cpp. "Syntax error" is here to catch this case.
4215 cat >conftest.$ac_ext <<_ACEOF
4216 /* confdefs.h. */
4217 _ACEOF
4218 cat confdefs.h >>conftest.$ac_ext
4219 cat >>conftest.$ac_ext <<_ACEOF
4220 /* end confdefs.h. */
4221 #ifdef __STDC__
4222 # include <limits.h>
4223 #else
4224 # include <assert.h>
4225 #endif
4226 Syntax error
4227 _ACEOF
4228 if { (ac_try="$ac_cpp conftest.$ac_ext"
4229 case "(($ac_try" in
4230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4231 *) ac_try_echo=$ac_try;;
4232 esac
4233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4234 $as_echo "$ac_try_echo") >&5
4235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4236 ac_status=$?
4237 grep -v '^ *+' conftest.er1 >conftest.err
4238 rm -f conftest.er1
4239 cat conftest.err >&5
4240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); } >/dev/null && {
4242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4243 test ! -s conftest.err
4244 }; then
4246 else
4247 $as_echo "$as_me: failed program was:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 # Broken: fails on valid input.
4251 continue
4254 rm -f conftest.err conftest.$ac_ext
4256 # OK, works on sane cases. Now check whether nonexistent headers
4257 # can be detected and how.
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h. */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 #include <ac_nonexistent.h>
4265 _ACEOF
4266 if { (ac_try="$ac_cpp conftest.$ac_ext"
4267 case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4272 $as_echo "$ac_try_echo") >&5
4273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4274 ac_status=$?
4275 grep -v '^ *+' conftest.er1 >conftest.err
4276 rm -f conftest.er1
4277 cat conftest.err >&5
4278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); } >/dev/null && {
4280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4281 test ! -s conftest.err
4282 }; then
4283 # Broken: success on invalid input.
4284 continue
4285 else
4286 $as_echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 # Passes both tests.
4290 ac_preproc_ok=:
4291 break
4294 rm -f conftest.err conftest.$ac_ext
4296 done
4297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4298 rm -f conftest.err conftest.$ac_ext
4299 if $ac_preproc_ok; then
4301 else
4302 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4304 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4305 See \`config.log' for more details." >&5
4306 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4307 See \`config.log' for more details." >&2;}
4308 { (exit 1); exit 1; }; }; }
4311 ac_ext=c
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4318 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4319 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4320 if test "${ac_cv_path_GREP+set}" = set; then
4321 $as_echo_n "(cached) " >&6
4322 else
4323 if test -z "$GREP"; then
4324 ac_path_GREP_found=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_prog in grep ggrep; do
4332 for ac_exec_ext in '' $ac_executable_extensions; do
4333 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4334 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4335 # Check for GNU ac_path_GREP and select it if it is found.
4336 # Check for GNU $ac_path_GREP
4337 case `"$ac_path_GREP" --version 2>&1` in
4338 *GNU*)
4339 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4341 ac_count=0
4342 $as_echo_n 0123456789 >"conftest.in"
4343 while :
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'GREP' >> "conftest.nl"
4349 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4350 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4351 ac_count=`expr $ac_count + 1`
4352 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_GREP="$ac_path_GREP"
4355 ac_path_GREP_max=$ac_count
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4359 done
4360 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4361 esac
4363 $ac_path_GREP_found && break 3
4364 done
4365 done
4366 done
4367 IFS=$as_save_IFS
4368 if test -z "$ac_cv_path_GREP"; then
4369 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4370 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4371 { (exit 1); exit 1; }; }
4373 else
4374 ac_cv_path_GREP=$GREP
4378 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4379 $as_echo "$ac_cv_path_GREP" >&6; }
4380 GREP="$ac_cv_path_GREP"
4383 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4384 $as_echo_n "checking for egrep... " >&6; }
4385 if test "${ac_cv_path_EGREP+set}" = set; then
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4389 then ac_cv_path_EGREP="$GREP -E"
4390 else
4391 if test -z "$EGREP"; then
4392 ac_path_EGREP_found=false
4393 # Loop through the user's path and test for each of PROGNAME-LIST
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397 IFS=$as_save_IFS
4398 test -z "$as_dir" && as_dir=.
4399 for ac_prog in egrep; do
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4402 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4403 # Check for GNU ac_path_EGREP and select it if it is found.
4404 # Check for GNU $ac_path_EGREP
4405 case `"$ac_path_EGREP" --version 2>&1` in
4406 *GNU*)
4407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4409 ac_count=0
4410 $as_echo_n 0123456789 >"conftest.in"
4411 while :
4413 cat "conftest.in" "conftest.in" >"conftest.tmp"
4414 mv "conftest.tmp" "conftest.in"
4415 cp "conftest.in" "conftest.nl"
4416 $as_echo 'EGREP' >> "conftest.nl"
4417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4419 ac_count=`expr $ac_count + 1`
4420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4421 # Best one so far, save it but keep looking for a better one
4422 ac_cv_path_EGREP="$ac_path_EGREP"
4423 ac_path_EGREP_max=$ac_count
4425 # 10*(2^10) chars as input seems more than enough
4426 test $ac_count -gt 10 && break
4427 done
4428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4429 esac
4431 $ac_path_EGREP_found && break 3
4432 done
4433 done
4434 done
4435 IFS=$as_save_IFS
4436 if test -z "$ac_cv_path_EGREP"; then
4437 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4438 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4439 { (exit 1); exit 1; }; }
4441 else
4442 ac_cv_path_EGREP=$EGREP
4447 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4448 $as_echo "$ac_cv_path_EGREP" >&6; }
4449 EGREP="$ac_cv_path_EGREP"
4452 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4453 $as_echo_n "checking for ANSI C header files... " >&6; }
4454 if test "${ac_cv_header_stdc+set}" = set; then
4455 $as_echo_n "(cached) " >&6
4456 else
4457 cat >conftest.$ac_ext <<_ACEOF
4458 /* confdefs.h. */
4459 _ACEOF
4460 cat confdefs.h >>conftest.$ac_ext
4461 cat >>conftest.$ac_ext <<_ACEOF
4462 /* end confdefs.h. */
4463 #include <stdlib.h>
4464 #include <stdarg.h>
4465 #include <string.h>
4466 #include <float.h>
4469 main ()
4473 return 0;
4475 _ACEOF
4476 rm -f conftest.$ac_objext
4477 if { (ac_try="$ac_compile"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484 (eval "$ac_compile") 2>conftest.er1
4485 ac_status=$?
4486 grep -v '^ *+' conftest.er1 >conftest.err
4487 rm -f conftest.er1
4488 cat conftest.err >&5
4489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && {
4491 test -z "$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4493 } && test -s conftest.$ac_objext; then
4494 ac_cv_header_stdc=yes
4495 else
4496 $as_echo "$as_me: failed program was:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4499 ac_cv_header_stdc=no
4502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4504 if test $ac_cv_header_stdc = yes; then
4505 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4506 cat >conftest.$ac_ext <<_ACEOF
4507 /* confdefs.h. */
4508 _ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4512 #include <string.h>
4514 _ACEOF
4515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4516 $EGREP "memchr" >/dev/null 2>&1; then
4518 else
4519 ac_cv_header_stdc=no
4521 rm -f conftest*
4525 if test $ac_cv_header_stdc = yes; then
4526 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4527 cat >conftest.$ac_ext <<_ACEOF
4528 /* confdefs.h. */
4529 _ACEOF
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 #include <stdlib.h>
4535 _ACEOF
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537 $EGREP "free" >/dev/null 2>&1; then
4539 else
4540 ac_cv_header_stdc=no
4542 rm -f conftest*
4546 if test $ac_cv_header_stdc = yes; then
4547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4548 if test "$cross_compiling" = yes; then
4550 else
4551 cat >conftest.$ac_ext <<_ACEOF
4552 /* confdefs.h. */
4553 _ACEOF
4554 cat confdefs.h >>conftest.$ac_ext
4555 cat >>conftest.$ac_ext <<_ACEOF
4556 /* end confdefs.h. */
4557 #include <ctype.h>
4558 #include <stdlib.h>
4559 #if ((' ' & 0x0FF) == 0x020)
4560 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4561 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4562 #else
4563 # define ISLOWER(c) \
4564 (('a' <= (c) && (c) <= 'i') \
4565 || ('j' <= (c) && (c) <= 'r') \
4566 || ('s' <= (c) && (c) <= 'z'))
4567 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4568 #endif
4570 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4572 main ()
4574 int i;
4575 for (i = 0; i < 256; i++)
4576 if (XOR (islower (i), ISLOWER (i))
4577 || toupper (i) != TOUPPER (i))
4578 return 2;
4579 return 0;
4581 _ACEOF
4582 rm -f conftest$ac_exeext
4583 if { (ac_try="$ac_link"
4584 case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587 esac
4588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4589 $as_echo "$ac_try_echo") >&5
4590 (eval "$ac_link") 2>&5
4591 ac_status=$?
4592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4594 { (case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597 esac
4598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599 $as_echo "$ac_try_echo") >&5
4600 (eval "$ac_try") 2>&5
4601 ac_status=$?
4602 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4605 else
4606 $as_echo "$as_me: program exited with status $ac_status" >&5
4607 $as_echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 ( exit $ac_status )
4611 ac_cv_header_stdc=no
4613 rm -rf conftest.dSYM
4614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4621 $as_echo "$ac_cv_header_stdc" >&6; }
4622 if test $ac_cv_header_stdc = yes; then
4624 cat >>confdefs.h <<\_ACEOF
4625 #define STDC_HEADERS 1
4626 _ACEOF
4630 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4640 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4641 inttypes.h stdint.h unistd.h
4643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4644 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4645 $as_echo_n "checking for $ac_header... " >&6; }
4646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4647 $as_echo_n "(cached) " >&6
4648 else
4649 cat >conftest.$ac_ext <<_ACEOF
4650 /* confdefs.h. */
4651 _ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4655 $ac_includes_default
4657 #include <$ac_header>
4658 _ACEOF
4659 rm -f conftest.$ac_objext
4660 if { (ac_try="$ac_compile"
4661 case "(($ac_try" in
4662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4663 *) ac_try_echo=$ac_try;;
4664 esac
4665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4666 $as_echo "$ac_try_echo") >&5
4667 (eval "$ac_compile") 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } && {
4674 test -z "$ac_c_werror_flag" ||
4675 test ! -s conftest.err
4676 } && test -s conftest.$ac_objext; then
4677 eval "$as_ac_Header=yes"
4678 else
4679 $as_echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 eval "$as_ac_Header=no"
4685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4687 ac_res=`eval 'as_val=${'$as_ac_Header'}
4688 $as_echo "$as_val"'`
4689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4690 $as_echo "$ac_res" >&6; }
4691 as_val=`eval 'as_val=${'$as_ac_Header'}
4692 $as_echo "$as_val"'`
4693 if test "x$as_val" = x""yes; then
4694 cat >>confdefs.h <<_ACEOF
4695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4696 _ACEOF
4700 done
4704 if test "${ac_cv_header_minix_config_h+set}" = set; then
4705 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4706 $as_echo_n "checking for minix/config.h... " >&6; }
4707 if test "${ac_cv_header_minix_config_h+set}" = set; then
4708 $as_echo_n "(cached) " >&6
4710 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4711 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4712 else
4713 # Is the header compilable?
4714 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4715 $as_echo_n "checking minix/config.h usability... " >&6; }
4716 cat >conftest.$ac_ext <<_ACEOF
4717 /* confdefs.h. */
4718 _ACEOF
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4722 $ac_includes_default
4723 #include <minix/config.h>
4724 _ACEOF
4725 rm -f conftest.$ac_objext
4726 if { (ac_try="$ac_compile"
4727 case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730 esac
4731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4732 $as_echo "$ac_try_echo") >&5
4733 (eval "$ac_compile") 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
4738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } && {
4740 test -z "$ac_c_werror_flag" ||
4741 test ! -s conftest.err
4742 } && test -s conftest.$ac_objext; then
4743 ac_header_compiler=yes
4744 else
4745 $as_echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ac_header_compiler=no
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4753 $as_echo "$ac_header_compiler" >&6; }
4755 # Is the header present?
4756 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4757 $as_echo_n "checking minix/config.h presence... " >&6; }
4758 cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h. */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 #include <minix/config.h>
4765 _ACEOF
4766 if { (ac_try="$ac_cpp conftest.$ac_ext"
4767 case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4772 $as_echo "$ac_try_echo") >&5
4773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4774 ac_status=$?
4775 grep -v '^ *+' conftest.er1 >conftest.err
4776 rm -f conftest.er1
4777 cat conftest.err >&5
4778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } >/dev/null && {
4780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4781 test ! -s conftest.err
4782 }; then
4783 ac_header_preproc=yes
4784 else
4785 $as_echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4788 ac_header_preproc=no
4791 rm -f conftest.err conftest.$ac_ext
4792 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4793 $as_echo "$ac_header_preproc" >&6; }
4795 # So? What about this header?
4796 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4797 yes:no: )
4798 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4799 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4800 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4801 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4802 ac_header_preproc=yes
4804 no:yes:* )
4805 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4806 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4807 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4808 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4809 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4810 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4811 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4812 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4813 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4814 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4815 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4816 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4819 esac
4820 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4821 $as_echo_n "checking for minix/config.h... " >&6; }
4822 if test "${ac_cv_header_minix_config_h+set}" = set; then
4823 $as_echo_n "(cached) " >&6
4824 else
4825 ac_cv_header_minix_config_h=$ac_header_preproc
4827 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4828 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4831 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4832 MINIX=yes
4833 else
4834 MINIX=
4838 if test "$MINIX" = yes; then
4840 cat >>confdefs.h <<\_ACEOF
4841 #define _POSIX_SOURCE 1
4842 _ACEOF
4845 cat >>confdefs.h <<\_ACEOF
4846 #define _POSIX_1_SOURCE 2
4847 _ACEOF
4850 cat >>confdefs.h <<\_ACEOF
4851 #define _MINIX 1
4852 _ACEOF
4858 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4859 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4860 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4861 $as_echo_n "(cached) " >&6
4862 else
4863 cat >conftest.$ac_ext <<_ACEOF
4864 /* confdefs.h. */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h. */
4870 # define __EXTENSIONS__ 1
4871 $ac_includes_default
4873 main ()
4877 return 0;
4879 _ACEOF
4880 rm -f conftest.$ac_objext
4881 if { (ac_try="$ac_compile"
4882 case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885 esac
4886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4887 $as_echo "$ac_try_echo") >&5
4888 (eval "$ac_compile") 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && {
4895 test -z "$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 } && test -s conftest.$ac_objext; then
4898 ac_cv_safe_to_define___extensions__=yes
4899 else
4900 $as_echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4903 ac_cv_safe_to_define___extensions__=no
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4908 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4909 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4910 test $ac_cv_safe_to_define___extensions__ = yes &&
4911 cat >>confdefs.h <<\_ACEOF
4912 #define __EXTENSIONS__ 1
4913 _ACEOF
4915 cat >>confdefs.h <<\_ACEOF
4916 #define _ALL_SOURCE 1
4917 _ACEOF
4919 cat >>confdefs.h <<\_ACEOF
4920 #define _GNU_SOURCE 1
4921 _ACEOF
4923 cat >>confdefs.h <<\_ACEOF
4924 #define _POSIX_PTHREAD_SEMANTICS 1
4925 _ACEOF
4927 cat >>confdefs.h <<\_ACEOF
4928 #define _TANDEM_SOURCE 1
4929 _ACEOF
4933 ### Use -Wno-pointer-sign if the compiler supports it
4934 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4935 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4936 SAVE_CFLAGS="$CFLAGS"
4937 CFLAGS="$CFLAGS -Wno-pointer-sign"
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h. */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h. */
4946 main ()
4950 return 0;
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4955 case "(($ac_try" in
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4958 esac
4959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4960 $as_echo "$ac_try_echo") >&5
4961 (eval "$ac_compile") 2>conftest.er1
4962 ac_status=$?
4963 grep -v '^ *+' conftest.er1 >conftest.err
4964 rm -f conftest.er1
4965 cat conftest.err >&5
4966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4967 (exit $ac_status); } && {
4968 test -z "$ac_c_werror_flag" ||
4969 test ! -s conftest.err
4970 } && test -s conftest.$ac_objext; then
4971 has_option=yes
4972 else
4973 $as_echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4976 has_option=no
4979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4980 if test $has_option = yes; then
4981 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4983 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4984 $as_echo "$has_option" >&6; }
4985 CFLAGS="$SAVE_CFLAGS"
4986 unset has_option
4987 unset SAVE_CFLAGS
4989 ### Use -Wdeclaration-after-statement if the compiler supports it
4990 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4991 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4992 SAVE_CFLAGS="$CFLAGS"
4993 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4994 cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h. */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h. */
5002 main ()
5006 return 0;
5008 _ACEOF
5009 rm -f conftest.$ac_objext
5010 if { (ac_try="$ac_compile"
5011 case "(($ac_try" in
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5014 esac
5015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5016 $as_echo "$ac_try_echo") >&5
5017 (eval "$ac_compile") 2>conftest.er1
5018 ac_status=$?
5019 grep -v '^ *+' conftest.er1 >conftest.err
5020 rm -f conftest.er1
5021 cat conftest.err >&5
5022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); } && {
5024 test -z "$ac_c_werror_flag" ||
5025 test ! -s conftest.err
5026 } && test -s conftest.$ac_objext; then
5027 has_option=yes
5028 else
5029 $as_echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5032 has_option=no
5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036 if test $has_option = yes; then
5037 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5039 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5040 $as_echo "$has_option" >&6; }
5041 CFLAGS="$SAVE_CFLAGS"
5042 unset has_option
5043 unset SAVE_CFLAGS
5045 #### Some other nice autoconf tests.
5047 ac_ext=c
5048 ac_cpp='$CPP $CPPFLAGS'
5049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5052 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5053 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5054 # On Suns, sometimes $CPP names a directory.
5055 if test -n "$CPP" && test -d "$CPP"; then
5056 CPP=
5058 if test -z "$CPP"; then
5059 if test "${ac_cv_prog_CPP+set}" = set; then
5060 $as_echo_n "(cached) " >&6
5061 else
5062 # Double quotes because CPP needs to be expanded
5063 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5065 ac_preproc_ok=false
5066 for ac_c_preproc_warn_flag in '' yes
5068 # Use a header file that comes with gcc, so configuring glibc
5069 # with a fresh cross-compiler works.
5070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5071 # <limits.h> exists even on freestanding compilers.
5072 # On the NeXT, cc -E runs the code through the compiler's parser,
5073 # not just through cpp. "Syntax error" is here to catch this case.
5074 cat >conftest.$ac_ext <<_ACEOF
5075 /* confdefs.h. */
5076 _ACEOF
5077 cat confdefs.h >>conftest.$ac_ext
5078 cat >>conftest.$ac_ext <<_ACEOF
5079 /* end confdefs.h. */
5080 #ifdef __STDC__
5081 # include <limits.h>
5082 #else
5083 # include <assert.h>
5084 #endif
5085 Syntax error
5086 _ACEOF
5087 if { (ac_try="$ac_cpp conftest.$ac_ext"
5088 case "(($ac_try" in
5089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5090 *) ac_try_echo=$ac_try;;
5091 esac
5092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5093 $as_echo "$ac_try_echo") >&5
5094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null && {
5101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5102 test ! -s conftest.err
5103 }; then
5105 else
5106 $as_echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 # Broken: fails on valid input.
5110 continue
5113 rm -f conftest.err conftest.$ac_ext
5115 # OK, works on sane cases. Now check whether nonexistent headers
5116 # can be detected and how.
5117 cat >conftest.$ac_ext <<_ACEOF
5118 /* confdefs.h. */
5119 _ACEOF
5120 cat confdefs.h >>conftest.$ac_ext
5121 cat >>conftest.$ac_ext <<_ACEOF
5122 /* end confdefs.h. */
5123 #include <ac_nonexistent.h>
5124 _ACEOF
5125 if { (ac_try="$ac_cpp conftest.$ac_ext"
5126 case "(($ac_try" in
5127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128 *) ac_try_echo=$ac_try;;
5129 esac
5130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5131 $as_echo "$ac_try_echo") >&5
5132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5133 ac_status=$?
5134 grep -v '^ *+' conftest.er1 >conftest.err
5135 rm -f conftest.er1
5136 cat conftest.err >&5
5137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } >/dev/null && {
5139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5140 test ! -s conftest.err
5141 }; then
5142 # Broken: success on invalid input.
5143 continue
5144 else
5145 $as_echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5148 # Passes both tests.
5149 ac_preproc_ok=:
5150 break
5153 rm -f conftest.err conftest.$ac_ext
5155 done
5156 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5157 rm -f conftest.err conftest.$ac_ext
5158 if $ac_preproc_ok; then
5159 break
5162 done
5163 ac_cv_prog_CPP=$CPP
5166 CPP=$ac_cv_prog_CPP
5167 else
5168 ac_cv_prog_CPP=$CPP
5170 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5171 $as_echo "$CPP" >&6; }
5172 ac_preproc_ok=false
5173 for ac_c_preproc_warn_flag in '' yes
5175 # Use a header file that comes with gcc, so configuring glibc
5176 # with a fresh cross-compiler works.
5177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5178 # <limits.h> exists even on freestanding compilers.
5179 # On the NeXT, cc -E runs the code through the compiler's parser,
5180 # not just through cpp. "Syntax error" is here to catch this case.
5181 cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h. */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 #ifdef __STDC__
5188 # include <limits.h>
5189 #else
5190 # include <assert.h>
5191 #endif
5192 Syntax error
5193 _ACEOF
5194 if { (ac_try="$ac_cpp conftest.$ac_ext"
5195 case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198 esac
5199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5200 $as_echo "$ac_try_echo") >&5
5201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5202 ac_status=$?
5203 grep -v '^ *+' conftest.er1 >conftest.err
5204 rm -f conftest.er1
5205 cat conftest.err >&5
5206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); } >/dev/null && {
5208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5209 test ! -s conftest.err
5210 }; then
5212 else
5213 $as_echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5216 # Broken: fails on valid input.
5217 continue
5220 rm -f conftest.err conftest.$ac_ext
5222 # OK, works on sane cases. Now check whether nonexistent headers
5223 # can be detected and how.
5224 cat >conftest.$ac_ext <<_ACEOF
5225 /* confdefs.h. */
5226 _ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5230 #include <ac_nonexistent.h>
5231 _ACEOF
5232 if { (ac_try="$ac_cpp conftest.$ac_ext"
5233 case "(($ac_try" in
5234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5236 esac
5237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5238 $as_echo "$ac_try_echo") >&5
5239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5240 ac_status=$?
5241 grep -v '^ *+' conftest.er1 >conftest.err
5242 rm -f conftest.er1
5243 cat conftest.err >&5
5244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); } >/dev/null && {
5246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5247 test ! -s conftest.err
5248 }; then
5249 # Broken: success on invalid input.
5250 continue
5251 else
5252 $as_echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5255 # Passes both tests.
5256 ac_preproc_ok=:
5257 break
5260 rm -f conftest.err conftest.$ac_ext
5262 done
5263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5264 rm -f conftest.err conftest.$ac_ext
5265 if $ac_preproc_ok; then
5267 else
5268 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5270 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5271 See \`config.log' for more details." >&5
5272 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5273 See \`config.log' for more details." >&2;}
5274 { (exit 1); exit 1; }; }; }
5277 ac_ext=c
5278 ac_cpp='$CPP $CPPFLAGS'
5279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5283 # Find a good install program. We prefer a C program (faster),
5284 # so one script is as good as another. But avoid the broken or
5285 # incompatible versions:
5286 # SysV /etc/install, /usr/sbin/install
5287 # SunOS /usr/etc/install
5288 # IRIX /sbin/install
5289 # AIX /bin/install
5290 # AmigaOS /C/install, which installs bootblocks on floppy discs
5291 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5292 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5293 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5294 # OS/2's system install, which has a completely different semantic
5295 # ./install, which can be erroneously created by make from ./install.sh.
5296 # Reject install programs that cannot install multiple files.
5297 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5298 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5299 if test -z "$INSTALL"; then
5300 if test "${ac_cv_path_install+set}" = set; then
5301 $as_echo_n "(cached) " >&6
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 # Account for people who put trailing slashes in PATH elements.
5309 case $as_dir/ in
5310 ./ | .// | /cC/* | \
5311 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5312 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5313 /usr/ucb/* ) ;;
5315 # OSF1 and SCO ODT 3.0 have their own names for install.
5316 # Don't use installbsd from OSF since it installs stuff as root
5317 # by default.
5318 for ac_prog in ginstall scoinst install; do
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5321 if test $ac_prog = install &&
5322 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5323 # AIX install. It has an incompatible calling convention.
5325 elif test $ac_prog = install &&
5326 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5327 # program-specific install script used by HP pwplus--don't use.
5329 else
5330 rm -rf conftest.one conftest.two conftest.dir
5331 echo one > conftest.one
5332 echo two > conftest.two
5333 mkdir conftest.dir
5334 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5335 test -s conftest.one && test -s conftest.two &&
5336 test -s conftest.dir/conftest.one &&
5337 test -s conftest.dir/conftest.two
5338 then
5339 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5340 break 3
5344 done
5345 done
5347 esac
5349 done
5350 IFS=$as_save_IFS
5352 rm -rf conftest.one conftest.two conftest.dir
5355 if test "${ac_cv_path_install+set}" = set; then
5356 INSTALL=$ac_cv_path_install
5357 else
5358 # As a last resort, use the slow shell script. Don't cache a
5359 # value for INSTALL within a source directory, because that will
5360 # break other packages using the cache if that directory is
5361 # removed, or if the value is a relative name.
5362 INSTALL=$ac_install_sh
5365 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5366 $as_echo "$INSTALL" >&6; }
5368 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5369 # It thinks the first close brace ends the variable substitution.
5370 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5372 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5374 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5376 if test "x$RANLIB" = x; then
5377 if test -n "$ac_tool_prefix"; then
5378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5379 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if test "${ac_cv_prog_RANLIB+set}" = set; then
5383 $as_echo_n "(cached) " >&6
5384 else
5385 if test -n "$RANLIB"; then
5386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5391 IFS=$as_save_IFS
5392 test -z "$as_dir" && as_dir=.
5393 for ac_exec_ext in '' $ac_executable_extensions; do
5394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5397 break 2
5399 done
5400 done
5401 IFS=$as_save_IFS
5405 RANLIB=$ac_cv_prog_RANLIB
5406 if test -n "$RANLIB"; then
5407 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5408 $as_echo "$RANLIB" >&6; }
5409 else
5410 { $as_echo "$as_me:$LINENO: result: no" >&5
5411 $as_echo "no" >&6; }
5416 if test -z "$ac_cv_prog_RANLIB"; then
5417 ac_ct_RANLIB=$RANLIB
5418 # Extract the first word of "ranlib", so it can be a program name with args.
5419 set dummy ranlib; ac_word=$2
5420 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test -n "$ac_ct_RANLIB"; then
5426 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435 ac_cv_prog_ac_ct_RANLIB="ranlib"
5436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5439 done
5440 done
5441 IFS=$as_save_IFS
5445 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5446 if test -n "$ac_ct_RANLIB"; then
5447 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5448 $as_echo "$ac_ct_RANLIB" >&6; }
5449 else
5450 { $as_echo "$as_me:$LINENO: result: no" >&5
5451 $as_echo "no" >&6; }
5454 if test "x$ac_ct_RANLIB" = x; then
5455 RANLIB=":"
5456 else
5457 case $cross_compiling:$ac_tool_warned in
5458 yes:)
5459 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5461 ac_tool_warned=yes ;;
5462 esac
5463 RANLIB=$ac_ct_RANLIB
5465 else
5466 RANLIB="$ac_cv_prog_RANLIB"
5471 ## Although we're running on an amd64 kernel, we're actually compiling for
5472 ## the x86 architecture. The user should probably have provided an
5473 ## explicit --build to `configure', but if everything else than the kernel
5474 ## is running in i386 mode, we can help them out.
5475 if test "$machine" = "amdx86-64"; then
5476 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5477 $as_echo_n "checking whether i386 is declared... " >&6; }
5478 if test "${ac_cv_have_decl_i386+set}" = set; then
5479 $as_echo_n "(cached) " >&6
5480 else
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5489 main ()
5491 #ifndef i386
5492 (void) i386;
5493 #endif
5496 return 0;
5498 _ACEOF
5499 rm -f conftest.$ac_objext
5500 if { (ac_try="$ac_compile"
5501 case "(($ac_try" in
5502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5503 *) ac_try_echo=$ac_try;;
5504 esac
5505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5506 $as_echo "$ac_try_echo") >&5
5507 (eval "$ac_compile") 2>conftest.er1
5508 ac_status=$?
5509 grep -v '^ *+' conftest.er1 >conftest.err
5510 rm -f conftest.er1
5511 cat conftest.err >&5
5512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); } && {
5514 test -z "$ac_c_werror_flag" ||
5515 test ! -s conftest.err
5516 } && test -s conftest.$ac_objext; then
5517 ac_cv_have_decl_i386=yes
5518 else
5519 $as_echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 ac_cv_have_decl_i386=no
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5528 $as_echo "$ac_cv_have_decl_i386" >&6; }
5530 if test "$ac_cv_have_decl_i386" = "yes"; then
5531 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5532 machine=intel386
5533 machfile="m/${machine}.h"
5537 # Extract the first word of "install-info", so it can be a program name with args.
5538 set dummy install-info; ac_word=$2
5539 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5542 $as_echo_n "(cached) " >&6
5543 else
5544 case $INSTALL_INFO in
5545 [\\/]* | ?:[\\/]*)
5546 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5560 done
5561 done
5562 IFS=$as_save_IFS
5565 esac
5567 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5568 if test -n "$INSTALL_INFO"; then
5569 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5570 $as_echo "$INSTALL_INFO" >&6; }
5571 else
5572 { $as_echo "$as_me:$LINENO: result: no" >&5
5573 $as_echo "no" >&6; }
5577 # Extract the first word of "install-info", so it can be a program name with args.
5578 set dummy install-info; ac_word=$2
5579 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5582 $as_echo_n "(cached) " >&6
5583 else
5584 case $INSTALL_INFO in
5585 [\\/]* | ?:[\\/]*)
5586 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in /usr/sbin
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5597 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5600 done
5601 done
5602 IFS=$as_save_IFS
5605 esac
5607 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5608 if test -n "$INSTALL_INFO"; then
5609 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5610 $as_echo "$INSTALL_INFO" >&6; }
5611 else
5612 { $as_echo "$as_me:$LINENO: result: no" >&5
5613 $as_echo "no" >&6; }
5617 # Extract the first word of "install-info", so it can be a program name with args.
5618 set dummy install-info; ac_word=$2
5619 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5622 $as_echo_n "(cached) " >&6
5623 else
5624 case $INSTALL_INFO in
5625 [\\/]* | ?:[\\/]*)
5626 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in /sbin
5632 IFS=$as_save_IFS
5633 test -z "$as_dir" && as_dir=.
5634 for ac_exec_ext in '' $ac_executable_extensions; do
5635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5636 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 break 2
5640 done
5641 done
5642 IFS=$as_save_IFS
5644 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5646 esac
5648 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5649 if test -n "$INSTALL_INFO"; then
5650 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5651 $as_echo "$INSTALL_INFO" >&6; }
5652 else
5653 { $as_echo "$as_me:$LINENO: result: no" >&5
5654 $as_echo "no" >&6; }
5658 # Extract the first word of "gzip", so it can be a program name with args.
5659 set dummy gzip; ac_word=$2
5660 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 $as_echo_n "checking for $ac_word... " >&6; }
5662 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5663 $as_echo_n "(cached) " >&6
5664 else
5665 case $GZIP_PROG in
5666 [\\/]* | ?:[\\/]*)
5667 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5677 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5681 done
5682 done
5683 IFS=$as_save_IFS
5686 esac
5688 GZIP_PROG=$ac_cv_path_GZIP_PROG
5689 if test -n "$GZIP_PROG"; then
5690 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5691 $as_echo "$GZIP_PROG" >&6; }
5692 else
5693 { $as_echo "$as_me:$LINENO: result: no" >&5
5694 $as_echo "no" >&6; }
5700 ## Need makeinfo >= 4.6 (?) to build the manuals.
5701 # Extract the first word of "makeinfo", so it can be a program name with args.
5702 set dummy makeinfo; ac_word=$2
5703 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5706 $as_echo_n "(cached) " >&6
5707 else
5708 case $MAKEINFO in
5709 [\\/]* | ?:[\\/]*)
5710 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5716 IFS=$as_save_IFS
5717 test -z "$as_dir" && as_dir=.
5718 for ac_exec_ext in '' $ac_executable_extensions; do
5719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5720 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5722 break 2
5724 done
5725 done
5726 IFS=$as_save_IFS
5728 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5730 esac
5732 MAKEINFO=$ac_cv_path_MAKEINFO
5733 if test -n "$MAKEINFO"; then
5734 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5735 $as_echo "$MAKEINFO" >&6; }
5736 else
5737 { $as_echo "$as_me:$LINENO: result: no" >&5
5738 $as_echo "no" >&6; }
5742 if test "$MAKEINFO" != "no" && \
5743 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
5744 MAKEINFO=no
5747 ## Makeinfo is unusual. For a released Emacs, the manuals are
5748 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5749 ## therefore in the category of "special tools" not normally required, which
5750 ## configure does not have to check for (eg autoconf itself).
5751 ## In a Bazaar checkout on the other hand, the manuals are not included.
5752 ## So makeinfo is a requirement to build from Bazaar, and configure
5753 ## should test for it as it does for any other build requirement.
5754 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5755 ## with pre-built manuals, from a Bazaar checkout.
5756 if test "$MAKEINFO" = "no"; then
5757 if test "x${with_makeinfo}" = "xno"; then
5758 MAKEINFO=off
5759 elif test ! -e $srcdir/info/emacs; then
5760 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5761 source tree does not seem to have pre-built manuals in the \`info' directory.
5762 Either install a suitable version of makeinfo, or re-run configure
5763 with the \`--without-makeinfo' option to build without the manuals. " >&5
5764 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5765 source tree does not seem to have pre-built manuals in the \`info' directory.
5766 Either install a suitable version of makeinfo, or re-run configure
5767 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5768 { (exit 1); exit 1; }; }
5773 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5774 then
5775 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5778 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5779 then
5780 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5784 late_LDFLAGS=$LDFLAGS
5785 if test "$GCC" = yes; then
5786 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5787 else
5788 LDFLAGS="$LDFLAGS -znocombreloc"
5791 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5792 $as_echo_n "checking for -znocombreloc... " >&6; }
5793 cat >conftest.$ac_ext <<_ACEOF
5794 main(){return 0;}
5795 _ACEOF
5796 rm -f conftest.$ac_objext conftest$ac_exeext
5797 if { (ac_try="$ac_link"
5798 case "(($ac_try" in
5799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5800 *) ac_try_echo=$ac_try;;
5801 esac
5802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5803 $as_echo "$ac_try_echo") >&5
5804 (eval "$ac_link") 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_c_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest$ac_exeext && {
5814 test "$cross_compiling" = yes ||
5815 $as_test_x conftest$ac_exeext
5816 }; then
5817 { $as_echo "$as_me:$LINENO: result: yes" >&5
5818 $as_echo "yes" >&6; }
5819 else
5820 $as_echo "$as_me: failed program was:" >&5
5821 sed 's/^/| /' conftest.$ac_ext >&5
5823 LDFLAGS=$late_LDFLAGS
5824 { $as_echo "$as_me:$LINENO: result: no" >&5
5825 $as_echo "no" >&6; }
5828 rm -rf conftest.dSYM
5829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5830 conftest$ac_exeext conftest.$ac_ext
5832 #### Extract some information from the operating system and machine files.
5834 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5835 - which libraries the lib-src programs will want, and
5836 - whether the GNU malloc routines are usable..." >&5
5837 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5838 - which libraries the lib-src programs will want, and
5839 - whether the GNU malloc routines are usable..." >&6;}
5841 ### First figure out CFLAGS (which we use for running the compiler here)
5842 ### and REAL_CFLAGS (which we use for real compilation).
5843 ### The two are the same except on a few systems, where they are made
5844 ### different to work around various lossages. For example,
5845 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5846 ### as implying static linking.
5848 ### If the CFLAGS env var is specified, we use that value
5849 ### instead of the default.
5851 ### It's not important that this name contain the PID; you can't run
5852 ### two configures in the same directory and have anything work
5853 ### anyway.
5854 tempcname="conftest.c"
5856 echo '
5857 #include "'${srcdir}'/src/'${opsysfile}'"
5858 #include "'${srcdir}'/src/'${machfile}'"
5860 configure___ LIBX=-lX11
5862 configure___ unexec=UNEXEC
5864 #ifdef SYSTEM_MALLOC
5865 configure___ system_malloc=yes
5866 #else
5867 configure___ system_malloc=no
5868 #endif
5870 #ifdef USE_MMAP_FOR_BUFFERS
5871 configure___ use_mmap_for_buffers=yes
5872 #else
5873 configure___ use_mmap_for_buffers=no
5874 #endif
5876 #ifndef C_OPTIMIZE_SWITCH
5877 #ifdef __GNUC__
5878 #define C_OPTIMIZE_SWITCH -O2
5879 #else
5880 #define C_OPTIMIZE_SWITCH -O
5881 #endif
5882 #endif
5884 #ifndef C_WARNINGS_SWITCH
5885 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5886 #endif
5888 #ifdef THIS_IS_CONFIGURE
5890 /* Get the CFLAGS for tests in configure. */
5891 #ifdef __GNUC__
5892 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5893 #else
5894 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5895 #endif
5897 #else /* not THIS_IS_CONFIGURE */
5899 /* Get the CFLAGS for real compilation. */
5900 #ifdef __GNUC__
5901 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5902 #else
5903 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5904 #endif
5906 #endif /* not THIS_IS_CONFIGURE */
5907 ' > ${tempcname}
5909 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5911 # The value of CPP is a quoted variable reference, so we need to do this
5912 # to get its actual value...
5913 CPP=`eval "echo $CPP"`
5914 eval `${CPP} -Isrc ${tempcname} \
5915 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5916 if test "x$SPECIFIED_CFLAGS" = x; then
5917 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5918 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5919 else
5920 REAL_CFLAGS="$CFLAGS"
5922 rm ${tempcname}
5925 LD_SWITCH_SYSTEM=
5926 case "$opsys" in
5927 freebsd)
5928 ## Let `ld' find image libs and similar things in /usr/local/lib.
5929 ## The system compiler, GCC, has apparently been modified to not
5930 ## look there, contrary to what a stock GCC would do.
5931 LD_SWITCH_SYSTEM=-L/usr/local/lib
5934 gnu-linux)
5935 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5936 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5939 netbsd)
5940 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5943 openbsd)
5944 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5945 ## otherwise Emacs dumps core on elf systems.
5946 LD_SWITCH_SYSTEM="-Z"
5948 esac
5951 ac_link="$ac_link $LD_SWITCH_SYSTEM"
5953 ## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5954 ## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5955 ## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5956 ## values in configure and the Makefiles. How helpful.
5957 ## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5958 case "$opsys" in
5959 gnu-linux)
5960 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5961 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5963 netbsd|openbsd)
5964 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5965 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5966 esac
5969 C_SWITCH_MACHINE=
5970 if test "$machine" = "alpha"; then
5971 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5972 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5973 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5974 $as_echo_n "(cached) " >&6
5975 else
5976 cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h. */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 $ac_includes_default
5984 main ()
5986 #ifndef __ELF__
5987 (void) __ELF__;
5988 #endif
5991 return 0;
5993 _ACEOF
5994 rm -f conftest.$ac_objext
5995 if { (ac_try="$ac_compile"
5996 case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999 esac
6000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6001 $as_echo "$ac_try_echo") >&5
6002 (eval "$ac_compile") 2>conftest.er1
6003 ac_status=$?
6004 grep -v '^ *+' conftest.er1 >conftest.err
6005 rm -f conftest.er1
6006 cat conftest.err >&5
6007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008 (exit $ac_status); } && {
6009 test -z "$ac_c_werror_flag" ||
6010 test ! -s conftest.err
6011 } && test -s conftest.$ac_objext; then
6012 ac_cv_have_decl___ELF__=yes
6013 else
6014 $as_echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6017 ac_cv_have_decl___ELF__=no
6020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6022 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6023 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
6025 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6026 ## With ELF, make sure that all common symbols get allocated to in the
6027 ## data section. Otherwise, the dump of temacs may miss variables in
6028 ## the shared library that have been initialized. For example, with
6029 ## GNU libc, __malloc_initialized would normally be resolved to the
6030 ## shared library's .bss section, which is fatal.
6031 if test "x$GCC" = "xyes"; then
6032 C_SWITCH_MACHINE="-fno-common"
6033 else
6034 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6035 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6036 { (exit 1); exit 1; }; }
6043 C_SWITCH_SYSTEM=
6044 ## Some programs in src produce warnings saying certain subprograms
6045 ## are too complex and need a MAXMEM value greater than 2000 for
6046 ## additional optimization. --nils@exp-math.uni-essen.de
6047 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6048 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6049 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6050 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6054 LIBS_SYSTEM=
6055 case "$opsys" in
6056 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6057 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6059 freebsd) LIBS_SYSTEM="-lutil" ;;
6061 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6063 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6065 ## Motif needs -lgen.
6066 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6067 esac
6071 ### Make sure subsequent tests use flags consistent with the build flags.
6073 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6074 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6075 else
6076 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6081 # Check whether --enable-largefile was given.
6082 if test "${enable_largefile+set}" = set; then
6083 enableval=$enable_largefile;
6086 if test "$enable_largefile" != no; then
6088 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6089 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6090 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6091 $as_echo_n "(cached) " >&6
6092 else
6093 ac_cv_sys_largefile_CC=no
6094 if test "$GCC" != yes; then
6095 ac_save_CC=$CC
6096 while :; do
6097 # IRIX 6.2 and later do not support large files by default,
6098 # so use the C compiler's -n32 option if that helps.
6099 cat >conftest.$ac_ext <<_ACEOF
6100 /* confdefs.h. */
6101 _ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 #include <sys/types.h>
6106 /* Check that off_t can represent 2**63 - 1 correctly.
6107 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6108 since some C++ compilers masquerading as C compilers
6109 incorrectly reject 9223372036854775807. */
6110 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6111 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6112 && LARGE_OFF_T % 2147483647 == 1)
6113 ? 1 : -1];
6115 main ()
6119 return 0;
6121 _ACEOF
6122 rm -f conftest.$ac_objext
6123 if { (ac_try="$ac_compile"
6124 case "(($ac_try" in
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6127 esac
6128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6129 $as_echo "$ac_try_echo") >&5
6130 (eval "$ac_compile") 2>conftest.er1
6131 ac_status=$?
6132 grep -v '^ *+' conftest.er1 >conftest.err
6133 rm -f conftest.er1
6134 cat conftest.err >&5
6135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && {
6137 test -z "$ac_c_werror_flag" ||
6138 test ! -s conftest.err
6139 } && test -s conftest.$ac_objext; then
6140 break
6141 else
6142 $as_echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6148 rm -f core conftest.err conftest.$ac_objext
6149 CC="$CC -n32"
6150 rm -f conftest.$ac_objext
6151 if { (ac_try="$ac_compile"
6152 case "(($ac_try" in
6153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6154 *) ac_try_echo=$ac_try;;
6155 esac
6156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6157 $as_echo "$ac_try_echo") >&5
6158 (eval "$ac_compile") 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } && {
6165 test -z "$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 } && test -s conftest.$ac_objext; then
6168 ac_cv_sys_largefile_CC=' -n32'; break
6169 else
6170 $as_echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6176 rm -f core conftest.err conftest.$ac_objext
6177 break
6178 done
6179 CC=$ac_save_CC
6180 rm -f conftest.$ac_ext
6183 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6184 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6185 if test "$ac_cv_sys_largefile_CC" != no; then
6186 CC=$CC$ac_cv_sys_largefile_CC
6189 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6190 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6191 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6192 $as_echo_n "(cached) " >&6
6193 else
6194 while :; do
6195 cat >conftest.$ac_ext <<_ACEOF
6196 /* confdefs.h. */
6197 _ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6201 #include <sys/types.h>
6202 /* Check that off_t can represent 2**63 - 1 correctly.
6203 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6204 since some C++ compilers masquerading as C compilers
6205 incorrectly reject 9223372036854775807. */
6206 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6207 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6208 && LARGE_OFF_T % 2147483647 == 1)
6209 ? 1 : -1];
6211 main ()
6215 return 0;
6217 _ACEOF
6218 rm -f conftest.$ac_objext
6219 if { (ac_try="$ac_compile"
6220 case "(($ac_try" in
6221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6222 *) ac_try_echo=$ac_try;;
6223 esac
6224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6225 $as_echo "$ac_try_echo") >&5
6226 (eval "$ac_compile") 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } && {
6233 test -z "$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6235 } && test -s conftest.$ac_objext; then
6236 ac_cv_sys_file_offset_bits=no; break
6237 else
6238 $as_echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h. */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6251 #define _FILE_OFFSET_BITS 64
6252 #include <sys/types.h>
6253 /* Check that off_t can represent 2**63 - 1 correctly.
6254 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6255 since some C++ compilers masquerading as C compilers
6256 incorrectly reject 9223372036854775807. */
6257 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6258 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6259 && LARGE_OFF_T % 2147483647 == 1)
6260 ? 1 : -1];
6262 main ()
6266 return 0;
6268 _ACEOF
6269 rm -f conftest.$ac_objext
6270 if { (ac_try="$ac_compile"
6271 case "(($ac_try" in
6272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6274 esac
6275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6276 $as_echo "$ac_try_echo") >&5
6277 (eval "$ac_compile") 2>conftest.er1
6278 ac_status=$?
6279 grep -v '^ *+' conftest.er1 >conftest.err
6280 rm -f conftest.er1
6281 cat conftest.err >&5
6282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && {
6284 test -z "$ac_c_werror_flag" ||
6285 test ! -s conftest.err
6286 } && test -s conftest.$ac_objext; then
6287 ac_cv_sys_file_offset_bits=64; break
6288 else
6289 $as_echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 ac_cv_sys_file_offset_bits=unknown
6297 break
6298 done
6300 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6301 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6302 case $ac_cv_sys_file_offset_bits in #(
6303 no | unknown) ;;
6305 cat >>confdefs.h <<_ACEOF
6306 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6307 _ACEOF
6309 esac
6310 rm -rf conftest*
6311 if test $ac_cv_sys_file_offset_bits = unknown; then
6312 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6313 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6314 if test "${ac_cv_sys_large_files+set}" = set; then
6315 $as_echo_n "(cached) " >&6
6316 else
6317 while :; do
6318 cat >conftest.$ac_ext <<_ACEOF
6319 /* confdefs.h. */
6320 _ACEOF
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 #include <sys/types.h>
6325 /* Check that off_t can represent 2**63 - 1 correctly.
6326 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6327 since some C++ compilers masquerading as C compilers
6328 incorrectly reject 9223372036854775807. */
6329 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6330 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6331 && LARGE_OFF_T % 2147483647 == 1)
6332 ? 1 : -1];
6334 main ()
6338 return 0;
6340 _ACEOF
6341 rm -f conftest.$ac_objext
6342 if { (ac_try="$ac_compile"
6343 case "(($ac_try" in
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6346 esac
6347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6348 $as_echo "$ac_try_echo") >&5
6349 (eval "$ac_compile") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } && {
6356 test -z "$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6358 } && test -s conftest.$ac_objext; then
6359 ac_cv_sys_large_files=no; break
6360 else
6361 $as_echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.$ac_ext >&5
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h. */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 #define _LARGE_FILES 1
6375 #include <sys/types.h>
6376 /* Check that off_t can represent 2**63 - 1 correctly.
6377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6378 since some C++ compilers masquerading as C compilers
6379 incorrectly reject 9223372036854775807. */
6380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6382 && LARGE_OFF_T % 2147483647 == 1)
6383 ? 1 : -1];
6385 main ()
6389 return 0;
6391 _ACEOF
6392 rm -f conftest.$ac_objext
6393 if { (ac_try="$ac_compile"
6394 case "(($ac_try" in
6395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6396 *) ac_try_echo=$ac_try;;
6397 esac
6398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6399 $as_echo "$ac_try_echo") >&5
6400 (eval "$ac_compile") 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } && {
6407 test -z "$ac_c_werror_flag" ||
6408 test ! -s conftest.err
6409 } && test -s conftest.$ac_objext; then
6410 ac_cv_sys_large_files=1; break
6411 else
6412 $as_echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 ac_cv_sys_large_files=unknown
6420 break
6421 done
6423 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6424 $as_echo "$ac_cv_sys_large_files" >&6; }
6425 case $ac_cv_sys_large_files in #(
6426 no | unknown) ;;
6428 cat >>confdefs.h <<_ACEOF
6429 #define _LARGE_FILES $ac_cv_sys_large_files
6430 _ACEOF
6432 esac
6433 rm -rf conftest*
6439 ## If user specified a crt-dir, use that unconditionally.
6440 if test "X$CRT_DIR" = "X"; then
6442 case "$canonical" in
6443 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6444 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6445 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6446 ## For anything else (eg /usr/lib32), it is up the user to specify
6447 ## the location (bug#5655).
6448 ## Test for crtn.o, not just the directory, because sometimes the
6449 ## directory exists but does not have the relevant files (bug#1287).
6450 ## FIXME better to test for binary compatibility somehow.
6451 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6454 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6455 esac
6457 case "$opsys" in
6458 hpux10-20) CRT_DIR=/lib ;;
6459 esac
6461 ## Default is /usr/lib.
6462 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6464 else
6466 ## Some platforms don't use any of these files, so it is not
6467 ## appropriate to put this test outside the if block.
6468 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6469 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6470 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6471 { (exit 1); exit 1; }; }
6477 LIB_MATH=-lm
6478 LIB_STANDARD=
6479 START_FILES=
6481 case $opsys in
6482 cygwin )
6483 LIB_MATH=
6484 START_FILES='ecrt0.o'
6486 darwin )
6487 ## Adding -lm confuses the dynamic linker, so omit it.
6488 LIB_MATH=
6489 START_FILES='pre-crt0.o'
6491 freebsd )
6492 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6493 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6495 gnu-linux | gnu-kfreebsd )
6496 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6497 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6499 hpux10-20 | hpux11 )
6500 LIB_STANDARD=-lc
6501 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6503 netbsd | openbsd )
6504 if test -f $(CRT_DIR)/crti.o; then
6505 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6506 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6507 else
6508 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6509 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6512 esac
6520 if test "${with_sound}" != "no"; then
6521 # Sound support for GNU/Linux and the free BSDs.
6525 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6527 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6529 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6530 $as_echo_n "checking for $ac_header... " >&6; }
6531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6532 $as_echo_n "(cached) " >&6
6534 ac_res=`eval 'as_val=${'$as_ac_Header'}
6535 $as_echo "$as_val"'`
6536 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6537 $as_echo "$ac_res" >&6; }
6538 else
6539 # Is the header compilable?
6540 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6541 $as_echo_n "checking $ac_header usability... " >&6; }
6542 cat >conftest.$ac_ext <<_ACEOF
6543 /* confdefs.h. */
6544 _ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6548 $ac_includes_default
6549 #include <$ac_header>
6550 _ACEOF
6551 rm -f conftest.$ac_objext
6552 if { (ac_try="$ac_compile"
6553 case "(($ac_try" in
6554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6556 esac
6557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6558 $as_echo "$ac_try_echo") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6560 ac_status=$?
6561 grep -v '^ *+' conftest.er1 >conftest.err
6562 rm -f conftest.er1
6563 cat conftest.err >&5
6564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.$ac_objext; then
6569 ac_header_compiler=yes
6570 else
6571 $as_echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_header_compiler=no
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6579 $as_echo "$ac_header_compiler" >&6; }
6581 # Is the header present?
6582 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6583 $as_echo_n "checking $ac_header presence... " >&6; }
6584 cat >conftest.$ac_ext <<_ACEOF
6585 /* confdefs.h. */
6586 _ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <$ac_header>
6591 _ACEOF
6592 if { (ac_try="$ac_cpp conftest.$ac_ext"
6593 case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596 esac
6597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6598 $as_echo "$ac_try_echo") >&5
6599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6600 ac_status=$?
6601 grep -v '^ *+' conftest.er1 >conftest.err
6602 rm -f conftest.er1
6603 cat conftest.err >&5
6604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } >/dev/null && {
6606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 }; then
6609 ac_header_preproc=yes
6610 else
6611 $as_echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_header_preproc=no
6617 rm -f conftest.err conftest.$ac_ext
6618 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6619 $as_echo "$ac_header_preproc" >&6; }
6621 # So? What about this header?
6622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6623 yes:no: )
6624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6625 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6627 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6628 ac_header_preproc=yes
6630 no:yes:* )
6631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6632 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6634 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6636 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6638 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6640 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6642 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6645 esac
6646 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6647 $as_echo_n "checking for $ac_header... " >&6; }
6648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6649 $as_echo_n "(cached) " >&6
6650 else
6651 eval "$as_ac_Header=\$ac_header_preproc"
6653 ac_res=`eval 'as_val=${'$as_ac_Header'}
6654 $as_echo "$as_val"'`
6655 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6656 $as_echo "$ac_res" >&6; }
6659 as_val=`eval 'as_val=${'$as_ac_Header'}
6660 $as_echo "$as_val"'`
6661 if test "x$as_val" = x""yes; then
6662 cat >>confdefs.h <<_ACEOF
6663 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6664 _ACEOF
6668 done
6670 # Emulation library used on NetBSD.
6671 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6672 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6673 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6674 $as_echo_n "(cached) " >&6
6675 else
6676 ac_check_lib_save_LIBS=$LIBS
6677 LIBS="-lossaudio $LIBS"
6678 cat >conftest.$ac_ext <<_ACEOF
6679 /* confdefs.h. */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6685 /* Override any GCC internal prototype to avoid an error.
6686 Use char because int might match the return type of a GCC
6687 builtin and then its argument prototype would still apply. */
6688 #ifdef __cplusplus
6689 extern "C"
6690 #endif
6691 char _oss_ioctl ();
6693 main ()
6695 return _oss_ioctl ();
6697 return 0;
6699 _ACEOF
6700 rm -f conftest.$ac_objext conftest$ac_exeext
6701 if { (ac_try="$ac_link"
6702 case "(($ac_try" in
6703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6704 *) ac_try_echo=$ac_try;;
6705 esac
6706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6707 $as_echo "$ac_try_echo") >&5
6708 (eval "$ac_link") 2>conftest.er1
6709 ac_status=$?
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
6713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } && {
6715 test -z "$ac_c_werror_flag" ||
6716 test ! -s conftest.err
6717 } && test -s conftest$ac_exeext && {
6718 test "$cross_compiling" = yes ||
6719 $as_test_x conftest$ac_exeext
6720 }; then
6721 ac_cv_lib_ossaudio__oss_ioctl=yes
6722 else
6723 $as_echo "$as_me: failed program was:" >&5
6724 sed 's/^/| /' conftest.$ac_ext >&5
6726 ac_cv_lib_ossaudio__oss_ioctl=no
6729 rm -rf conftest.dSYM
6730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6731 conftest$ac_exeext conftest.$ac_ext
6732 LIBS=$ac_check_lib_save_LIBS
6734 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6735 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6736 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then
6737 LIBSOUND=-lossaudio
6738 else
6739 LIBSOUND=
6744 ALSA_REQUIRED=1.0.0
6745 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6747 succeeded=no
6749 # Extract the first word of "pkg-config", so it can be a program name with args.
6750 set dummy pkg-config; ac_word=$2
6751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6752 $as_echo_n "checking for $ac_word... " >&6; }
6753 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6754 $as_echo_n "(cached) " >&6
6755 else
6756 case $PKG_CONFIG in
6757 [\\/]* | ?:[\\/]*)
6758 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6764 IFS=$as_save_IFS
6765 test -z "$as_dir" && as_dir=.
6766 for ac_exec_ext in '' $ac_executable_extensions; do
6767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6768 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6770 break 2
6772 done
6773 done
6774 IFS=$as_save_IFS
6776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6778 esac
6780 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6781 if test -n "$PKG_CONFIG"; then
6782 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6783 $as_echo "$PKG_CONFIG" >&6; }
6784 else
6785 { $as_echo "$as_me:$LINENO: result: no" >&5
6786 $as_echo "no" >&6; }
6791 if test "$PKG_CONFIG" = "no" ; then
6792 HAVE_ALSA=no
6793 else
6794 PKG_CONFIG_MIN_VERSION=0.9.0
6795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6796 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6797 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6799 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6800 { $as_echo "$as_me:$LINENO: result: yes" >&5
6801 $as_echo "yes" >&6; }
6802 succeeded=yes
6804 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6805 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6806 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6807 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6808 $as_echo "$ALSA_CFLAGS" >&6; }
6810 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6811 $as_echo_n "checking ALSA_LIBS... " >&6; }
6812 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6813 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6814 $as_echo "$ALSA_LIBS" >&6; }
6815 else
6816 { $as_echo "$as_me:$LINENO: result: no" >&5
6817 $as_echo "no" >&6; }
6818 ALSA_CFLAGS=""
6819 ALSA_LIBS=""
6820 ## If we have a custom action on failure, don't print errors, but
6821 ## do set a variable so people can do so.
6822 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6828 else
6829 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6830 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6834 if test $succeeded = yes; then
6835 HAVE_ALSA=yes
6836 else
6837 HAVE_ALSA=no
6840 if test $HAVE_ALSA = yes; then
6841 SAVE_CFLAGS="$CFLAGS"
6842 SAVE_LDFLAGS="$LDFLAGS"
6843 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6844 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6845 cat >conftest.$ac_ext <<_ACEOF
6846 /* confdefs.h. */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 #include <asoundlib.h>
6853 main ()
6855 snd_lib_error_set_handler (0);
6857 return 0;
6859 _ACEOF
6860 rm -f conftest.$ac_objext
6861 if { (ac_try="$ac_compile"
6862 case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865 esac
6866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6867 $as_echo "$ac_try_echo") >&5
6868 (eval "$ac_compile") 2>conftest.er1
6869 ac_status=$?
6870 grep -v '^ *+' conftest.er1 >conftest.err
6871 rm -f conftest.er1
6872 cat conftest.err >&5
6873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } && {
6875 test -z "$ac_c_werror_flag" ||
6876 test ! -s conftest.err
6877 } && test -s conftest.$ac_objext; then
6878 emacs_alsa_normal=yes
6879 else
6880 $as_echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6883 emacs_alsa_normal=no
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 if test "$emacs_alsa_normal" != yes; then
6888 cat >conftest.$ac_ext <<_ACEOF
6889 /* confdefs.h. */
6890 _ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 #include <alsa/asoundlib.h>
6896 main ()
6898 snd_lib_error_set_handler (0);
6900 return 0;
6902 _ACEOF
6903 rm -f conftest.$ac_objext
6904 if { (ac_try="$ac_compile"
6905 case "(($ac_try" in
6906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907 *) ac_try_echo=$ac_try;;
6908 esac
6909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6910 $as_echo "$ac_try_echo") >&5
6911 (eval "$ac_compile") 2>conftest.er1
6912 ac_status=$?
6913 grep -v '^ *+' conftest.er1 >conftest.err
6914 rm -f conftest.er1
6915 cat conftest.err >&5
6916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && {
6918 test -z "$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6920 } && test -s conftest.$ac_objext; then
6921 emacs_alsa_subdir=yes
6922 else
6923 $as_echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 emacs_alsa_subdir=no
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930 if test "$emacs_alsa_subdir" != yes; then
6931 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6932 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6933 { (exit 1); exit 1; }; }
6935 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6938 CFLAGS="$SAVE_CFLAGS"
6939 LDFLAGS="$SAVE_LDFLAGS"
6940 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6941 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6943 cat >>confdefs.h <<\_ACEOF
6944 #define HAVE_ALSA 1
6945 _ACEOF
6976 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6977 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6978 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6979 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6980 sys/utsname.h pwd.h utmp.h
6982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6984 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6985 $as_echo_n "checking for $ac_header... " >&6; }
6986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6987 $as_echo_n "(cached) " >&6
6989 ac_res=`eval 'as_val=${'$as_ac_Header'}
6990 $as_echo "$as_val"'`
6991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6992 $as_echo "$ac_res" >&6; }
6993 else
6994 # Is the header compilable?
6995 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6996 $as_echo_n "checking $ac_header usability... " >&6; }
6997 cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h. */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 $ac_includes_default
7004 #include <$ac_header>
7005 _ACEOF
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7008 case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7013 $as_echo "$ac_try_echo") >&5
7014 (eval "$ac_compile") 2>conftest.er1
7015 ac_status=$?
7016 grep -v '^ *+' conftest.er1 >conftest.err
7017 rm -f conftest.er1
7018 cat conftest.err >&5
7019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020 (exit $ac_status); } && {
7021 test -z "$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 } && test -s conftest.$ac_objext; then
7024 ac_header_compiler=yes
7025 else
7026 $as_echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_header_compiler=no
7032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7034 $as_echo "$ac_header_compiler" >&6; }
7036 # Is the header present?
7037 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7038 $as_echo_n "checking $ac_header presence... " >&6; }
7039 cat >conftest.$ac_ext <<_ACEOF
7040 /* confdefs.h. */
7041 _ACEOF
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 #include <$ac_header>
7046 _ACEOF
7047 if { (ac_try="$ac_cpp conftest.$ac_ext"
7048 case "(($ac_try" in
7049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050 *) ac_try_echo=$ac_try;;
7051 esac
7052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7053 $as_echo "$ac_try_echo") >&5
7054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } >/dev/null && {
7061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7062 test ! -s conftest.err
7063 }; then
7064 ac_header_preproc=yes
7065 else
7066 $as_echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 ac_header_preproc=no
7072 rm -f conftest.err conftest.$ac_ext
7073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7074 $as_echo "$ac_header_preproc" >&6; }
7076 # So? What about this header?
7077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7078 yes:no: )
7079 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7080 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7083 ac_header_preproc=yes
7085 no:yes:* )
7086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7087 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7089 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7091 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7093 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7097 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7100 esac
7101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7102 $as_echo_n "checking for $ac_header... " >&6; }
7103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7104 $as_echo_n "(cached) " >&6
7105 else
7106 eval "$as_ac_Header=\$ac_header_preproc"
7108 ac_res=`eval 'as_val=${'$as_ac_Header'}
7109 $as_echo "$as_val"'`
7110 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7111 $as_echo "$ac_res" >&6; }
7114 as_val=`eval 'as_val=${'$as_ac_Header'}
7115 $as_echo "$as_val"'`
7116 if test "x$as_val" = x""yes; then
7117 cat >>confdefs.h <<_ACEOF
7118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7119 _ACEOF
7123 done
7126 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
7127 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7128 cat >conftest.$ac_ext <<_ACEOF
7129 /* confdefs.h. */
7130 _ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 #include <sys/personality.h>
7136 main ()
7138 personality (PER_LINUX32)
7140 return 0;
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7145 case "(($ac_try" in
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7148 esac
7149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7150 $as_echo "$ac_try_echo") >&5
7151 (eval "$ac_compile") 2>conftest.er1
7152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } && {
7158 test -z "$ac_c_werror_flag" ||
7159 test ! -s conftest.err
7160 } && test -s conftest.$ac_objext; then
7161 emacs_cv_personality_linux32=yes
7162 else
7163 $as_echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7166 emacs_cv_personality_linux32=no
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7171 $as_echo "$emacs_cv_personality_linux32" >&6; }
7173 if test $emacs_cv_personality_linux32 = yes; then
7175 cat >>confdefs.h <<\_ACEOF
7176 #define HAVE_PERSONALITY_LINUX32 1
7177 _ACEOF
7182 for ac_header in term.h
7184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7185 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7186 $as_echo_n "checking for $ac_header... " >&6; }
7187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7188 $as_echo_n "(cached) " >&6
7189 else
7190 cat >conftest.$ac_ext <<_ACEOF
7191 /* confdefs.h. */
7192 _ACEOF
7193 cat confdefs.h >>conftest.$ac_ext
7194 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */
7196 #include <$ac_header>
7197 _ACEOF
7198 if { (ac_try="$ac_cpp conftest.$ac_ext"
7199 case "(($ac_try" in
7200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7201 *) ac_try_echo=$ac_try;;
7202 esac
7203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7204 $as_echo "$ac_try_echo") >&5
7205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7206 ac_status=$?
7207 grep -v '^ *+' conftest.er1 >conftest.err
7208 rm -f conftest.er1
7209 cat conftest.err >&5
7210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } >/dev/null && {
7212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 }; then
7215 eval "$as_ac_Header=yes"
7216 else
7217 $as_echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7220 eval "$as_ac_Header=no"
7223 rm -f conftest.err conftest.$ac_ext
7225 ac_res=`eval 'as_val=${'$as_ac_Header'}
7226 $as_echo "$as_val"'`
7227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7228 $as_echo "$ac_res" >&6; }
7229 as_val=`eval 'as_val=${'$as_ac_Header'}
7230 $as_echo "$as_val"'`
7231 if test "x$as_val" = x""yes; then
7232 cat >>confdefs.h <<_ACEOF
7233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7234 _ACEOF
7238 done
7240 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7241 $as_echo_n "checking for ANSI C header files... " >&6; }
7242 if test "${ac_cv_header_stdc+set}" = set; then
7243 $as_echo_n "(cached) " >&6
7244 else
7245 cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h. */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 #include <stdlib.h>
7252 #include <stdarg.h>
7253 #include <string.h>
7254 #include <float.h>
7257 main ()
7261 return 0;
7263 _ACEOF
7264 rm -f conftest.$ac_objext
7265 if { (ac_try="$ac_compile"
7266 case "(($ac_try" in
7267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268 *) ac_try_echo=$ac_try;;
7269 esac
7270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7271 $as_echo "$ac_try_echo") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7282 ac_cv_header_stdc=yes
7283 else
7284 $as_echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_cv_header_stdc=no
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 if test $ac_cv_header_stdc = yes; then
7293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h. */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 #include <string.h>
7302 _ACEOF
7303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7304 $EGREP "memchr" >/dev/null 2>&1; then
7306 else
7307 ac_cv_header_stdc=no
7309 rm -f conftest*
7313 if test $ac_cv_header_stdc = yes; then
7314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 #include <stdlib.h>
7323 _ACEOF
7324 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7325 $EGREP "free" >/dev/null 2>&1; then
7327 else
7328 ac_cv_header_stdc=no
7330 rm -f conftest*
7334 if test $ac_cv_header_stdc = yes; then
7335 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7336 if test "$cross_compiling" = yes; then
7338 else
7339 cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h. */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 #include <ctype.h>
7346 #include <stdlib.h>
7347 #if ((' ' & 0x0FF) == 0x020)
7348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7350 #else
7351 # define ISLOWER(c) \
7352 (('a' <= (c) && (c) <= 'i') \
7353 || ('j' <= (c) && (c) <= 'r') \
7354 || ('s' <= (c) && (c) <= 'z'))
7355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7356 #endif
7358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7360 main ()
7362 int i;
7363 for (i = 0; i < 256; i++)
7364 if (XOR (islower (i), ISLOWER (i))
7365 || toupper (i) != TOUPPER (i))
7366 return 2;
7367 return 0;
7369 _ACEOF
7370 rm -f conftest$ac_exeext
7371 if { (ac_try="$ac_link"
7372 case "(($ac_try" in
7373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7374 *) ac_try_echo=$ac_try;;
7375 esac
7376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7377 $as_echo "$ac_try_echo") >&5
7378 (eval "$ac_link") 2>&5
7379 ac_status=$?
7380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7382 { (case "(($ac_try" in
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7385 esac
7386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7387 $as_echo "$ac_try_echo") >&5
7388 (eval "$ac_try") 2>&5
7389 ac_status=$?
7390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391 (exit $ac_status); }; }; then
7393 else
7394 $as_echo "$as_me: program exited with status $ac_status" >&5
7395 $as_echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7398 ( exit $ac_status )
7399 ac_cv_header_stdc=no
7401 rm -rf conftest.dSYM
7402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7408 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7409 $as_echo "$ac_cv_header_stdc" >&6; }
7410 if test $ac_cv_header_stdc = yes; then
7412 cat >>confdefs.h <<\_ACEOF
7413 #define STDC_HEADERS 1
7414 _ACEOF
7418 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7419 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7420 if test "${ac_cv_header_time+set}" = set; then
7421 $as_echo_n "(cached) " >&6
7422 else
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h. */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 #include <sys/types.h>
7430 #include <sys/time.h>
7431 #include <time.h>
7434 main ()
7436 if ((struct tm *) 0)
7437 return 0;
7439 return 0;
7441 _ACEOF
7442 rm -f conftest.$ac_objext
7443 if { (ac_try="$ac_compile"
7444 case "(($ac_try" in
7445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7447 esac
7448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7449 $as_echo "$ac_try_echo") >&5
7450 (eval "$ac_compile") 2>conftest.er1
7451 ac_status=$?
7452 grep -v '^ *+' conftest.er1 >conftest.err
7453 rm -f conftest.er1
7454 cat conftest.err >&5
7455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && {
7457 test -z "$ac_c_werror_flag" ||
7458 test ! -s conftest.err
7459 } && test -s conftest.$ac_objext; then
7460 ac_cv_header_time=yes
7461 else
7462 $as_echo "$as_me: failed program was:" >&5
7463 sed 's/^/| /' conftest.$ac_ext >&5
7465 ac_cv_header_time=no
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7470 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7471 $as_echo "$ac_cv_header_time" >&6; }
7472 if test $ac_cv_header_time = yes; then
7474 cat >>confdefs.h <<\_ACEOF
7475 #define TIME_WITH_SYS_TIME 1
7476 _ACEOF
7480 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7481 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7482 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7483 $as_echo_n "(cached) " >&6
7484 else
7485 cat >conftest.$ac_ext <<_ACEOF
7486 /* confdefs.h. */
7487 _ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7491 $ac_includes_default
7493 main ()
7495 #ifndef sys_siglist
7496 (void) sys_siglist;
7497 #endif
7500 return 0;
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7510 $as_echo "$ac_try_echo") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7521 ac_cv_have_decl_sys_siglist=yes
7522 else
7523 $as_echo "$as_me: failed program was:" >&5
7524 sed 's/^/| /' conftest.$ac_ext >&5
7526 ac_cv_have_decl_sys_siglist=no
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7532 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7533 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then
7535 cat >>confdefs.h <<_ACEOF
7536 #define HAVE_DECL_SYS_SIGLIST 1
7537 _ACEOF
7540 else
7541 cat >>confdefs.h <<_ACEOF
7542 #define HAVE_DECL_SYS_SIGLIST 0
7543 _ACEOF
7549 if test $ac_cv_have_decl_sys_siglist != yes; then
7550 # For Tru64, at least:
7551 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7552 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7553 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7554 $as_echo_n "(cached) " >&6
7555 else
7556 cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h. */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 $ac_includes_default
7564 main ()
7566 #ifndef __sys_siglist
7567 (void) __sys_siglist;
7568 #endif
7571 return 0;
7573 _ACEOF
7574 rm -f conftest.$ac_objext
7575 if { (ac_try="$ac_compile"
7576 case "(($ac_try" in
7577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7579 esac
7580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7581 $as_echo "$ac_try_echo") >&5
7582 (eval "$ac_compile") 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest.$ac_objext; then
7592 ac_cv_have_decl___sys_siglist=yes
7593 else
7594 $as_echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 ac_cv_have_decl___sys_siglist=no
7600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7603 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7604 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then
7606 cat >>confdefs.h <<_ACEOF
7607 #define HAVE_DECL___SYS_SIGLIST 1
7608 _ACEOF
7611 else
7612 cat >>confdefs.h <<_ACEOF
7613 #define HAVE_DECL___SYS_SIGLIST 0
7614 _ACEOF
7620 if test $ac_cv_have_decl___sys_siglist = yes; then
7622 cat >>confdefs.h <<\_ACEOF
7623 #define sys_siglist __sys_siglist
7624 _ACEOF
7628 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7629 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7630 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7631 $as_echo_n "(cached) " >&6
7632 else
7633 cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h. */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 #include <sys/types.h>
7640 #include <sys/wait.h>
7641 #ifndef WEXITSTATUS
7642 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7643 #endif
7644 #ifndef WIFEXITED
7645 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7646 #endif
7649 main ()
7651 int s;
7652 wait (&s);
7653 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7655 return 0;
7657 _ACEOF
7658 rm -f conftest.$ac_objext
7659 if { (ac_try="$ac_compile"
7660 case "(($ac_try" in
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7663 esac
7664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7665 $as_echo "$ac_try_echo") >&5
7666 (eval "$ac_compile") 2>conftest.er1
7667 ac_status=$?
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
7671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } && {
7673 test -z "$ac_c_werror_flag" ||
7674 test ! -s conftest.err
7675 } && test -s conftest.$ac_objext; then
7676 ac_cv_header_sys_wait_h=yes
7677 else
7678 $as_echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7681 ac_cv_header_sys_wait_h=no
7684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7686 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7687 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7688 if test $ac_cv_header_sys_wait_h = yes; then
7690 cat >>confdefs.h <<\_ACEOF
7691 #define HAVE_SYS_WAIT_H 1
7692 _ACEOF
7697 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7698 $as_echo_n "checking for struct utimbuf... " >&6; }
7699 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7700 $as_echo_n "(cached) " >&6
7701 else
7702 cat >conftest.$ac_ext <<_ACEOF
7703 /* confdefs.h. */
7704 _ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7708 #ifdef TIME_WITH_SYS_TIME
7709 #include <sys/time.h>
7710 #include <time.h>
7711 #else
7712 #ifdef HAVE_SYS_TIME_H
7713 #include <sys/time.h>
7714 #else
7715 #include <time.h>
7716 #endif
7717 #endif
7718 #ifdef HAVE_UTIME_H
7719 #include <utime.h>
7720 #endif
7722 main ()
7724 static struct utimbuf x; x.actime = x.modtime;
7726 return 0;
7728 _ACEOF
7729 rm -f conftest.$ac_objext
7730 if { (ac_try="$ac_compile"
7731 case "(($ac_try" in
7732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7733 *) ac_try_echo=$ac_try;;
7734 esac
7735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7736 $as_echo "$ac_try_echo") >&5
7737 (eval "$ac_compile") 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest.$ac_objext; then
7747 emacs_cv_struct_utimbuf=yes
7748 else
7749 $as_echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7752 emacs_cv_struct_utimbuf=no
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7758 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7759 if test $emacs_cv_struct_utimbuf = yes; then
7761 cat >>confdefs.h <<\_ACEOF
7762 #define HAVE_STRUCT_UTIMBUF 1
7763 _ACEOF
7767 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7768 $as_echo_n "checking return type of signal handlers... " >&6; }
7769 if test "${ac_cv_type_signal+set}" = set; then
7770 $as_echo_n "(cached) " >&6
7771 else
7772 cat >conftest.$ac_ext <<_ACEOF
7773 /* confdefs.h. */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7778 #include <sys/types.h>
7779 #include <signal.h>
7782 main ()
7784 return *(signal (0, 0)) (0) == 1;
7786 return 0;
7788 _ACEOF
7789 rm -f conftest.$ac_objext
7790 if { (ac_try="$ac_compile"
7791 case "(($ac_try" in
7792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7793 *) ac_try_echo=$ac_try;;
7794 esac
7795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7796 $as_echo "$ac_try_echo") >&5
7797 (eval "$ac_compile") 2>conftest.er1
7798 ac_status=$?
7799 grep -v '^ *+' conftest.er1 >conftest.err
7800 rm -f conftest.er1
7801 cat conftest.err >&5
7802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.$ac_objext; then
7807 ac_cv_type_signal=int
7808 else
7809 $as_echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7812 ac_cv_type_signal=void
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7818 $as_echo "$ac_cv_type_signal" >&6; }
7820 cat >>confdefs.h <<_ACEOF
7821 #define RETSIGTYPE $ac_cv_type_signal
7822 _ACEOF
7826 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7827 $as_echo_n "checking for speed_t... " >&6; }
7828 if test "${emacs_cv_speed_t+set}" = set; then
7829 $as_echo_n "(cached) " >&6
7830 else
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h. */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h. */
7837 #include <termios.h>
7839 main ()
7841 speed_t x = 1;
7843 return 0;
7845 _ACEOF
7846 rm -f conftest.$ac_objext
7847 if { (ac_try="$ac_compile"
7848 case "(($ac_try" in
7849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7850 *) ac_try_echo=$ac_try;;
7851 esac
7852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7853 $as_echo "$ac_try_echo") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest.$ac_objext; then
7864 emacs_cv_speed_t=yes
7865 else
7866 $as_echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7869 emacs_cv_speed_t=no
7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7875 $as_echo "$emacs_cv_speed_t" >&6; }
7876 if test $emacs_cv_speed_t = yes; then
7878 cat >>confdefs.h <<\_ACEOF
7879 #define HAVE_SPEED_T 1
7880 _ACEOF
7884 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7885 $as_echo_n "checking for struct timeval... " >&6; }
7886 if test "${emacs_cv_struct_timeval+set}" = set; then
7887 $as_echo_n "(cached) " >&6
7888 else
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h. */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7895 #ifdef TIME_WITH_SYS_TIME
7896 #include <sys/time.h>
7897 #include <time.h>
7898 #else
7899 #ifdef HAVE_SYS_TIME_H
7900 #include <sys/time.h>
7901 #else
7902 #include <time.h>
7903 #endif
7904 #endif
7906 main ()
7908 static struct timeval x; x.tv_sec = x.tv_usec;
7910 return 0;
7912 _ACEOF
7913 rm -f conftest.$ac_objext
7914 if { (ac_try="$ac_compile"
7915 case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7918 esac
7919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7920 $as_echo "$ac_try_echo") >&5
7921 (eval "$ac_compile") 2>conftest.er1
7922 ac_status=$?
7923 grep -v '^ *+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
7926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && {
7928 test -z "$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7930 } && test -s conftest.$ac_objext; then
7931 emacs_cv_struct_timeval=yes
7932 else
7933 $as_echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 emacs_cv_struct_timeval=no
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7941 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7942 $as_echo "$emacs_cv_struct_timeval" >&6; }
7943 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7944 if test $emacs_cv_struct_timeval = yes; then
7946 cat >>confdefs.h <<\_ACEOF
7947 #define HAVE_TIMEVAL 1
7948 _ACEOF
7952 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7953 $as_echo_n "checking for struct exception... " >&6; }
7954 if test "${emacs_cv_struct_exception+set}" = set; then
7955 $as_echo_n "(cached) " >&6
7956 else
7957 cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h. */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 #include <math.h>
7965 main ()
7967 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7969 return 0;
7971 _ACEOF
7972 rm -f conftest.$ac_objext
7973 if { (ac_try="$ac_compile"
7974 case "(($ac_try" in
7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7977 esac
7978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7979 $as_echo "$ac_try_echo") >&5
7980 (eval "$ac_compile") 2>conftest.er1
7981 ac_status=$?
7982 grep -v '^ *+' conftest.er1 >conftest.err
7983 rm -f conftest.er1
7984 cat conftest.err >&5
7985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest.$ac_objext; then
7990 emacs_cv_struct_exception=yes
7991 else
7992 $as_echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 emacs_cv_struct_exception=no
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
8001 $as_echo "$emacs_cv_struct_exception" >&6; }
8002 HAVE_EXCEPTION=$emacs_cv_struct_exception
8003 if test $emacs_cv_struct_exception != yes; then
8005 cat >>confdefs.h <<\_ACEOF
8006 #define NO_MATHERR 1
8007 _ACEOF
8012 for ac_header in sys/socket.h
8014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8016 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8017 $as_echo_n "checking for $ac_header... " >&6; }
8018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8019 $as_echo_n "(cached) " >&6
8021 ac_res=`eval 'as_val=${'$as_ac_Header'}
8022 $as_echo "$as_val"'`
8023 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8024 $as_echo "$ac_res" >&6; }
8025 else
8026 # Is the header compilable?
8027 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8028 $as_echo_n "checking $ac_header usability... " >&6; }
8029 cat >conftest.$ac_ext <<_ACEOF
8030 /* confdefs.h. */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 $ac_includes_default
8036 #include <$ac_header>
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (ac_try="$ac_compile"
8040 case "(($ac_try" in
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8043 esac
8044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8045 $as_echo "$ac_try_echo") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8047 ac_status=$?
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
8051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
8056 ac_header_compiler=yes
8057 else
8058 $as_echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 ac_header_compiler=no
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8066 $as_echo "$ac_header_compiler" >&6; }
8068 # Is the header present?
8069 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8070 $as_echo_n "checking $ac_header presence... " >&6; }
8071 cat >conftest.$ac_ext <<_ACEOF
8072 /* confdefs.h. */
8073 _ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8077 #include <$ac_header>
8078 _ACEOF
8079 if { (ac_try="$ac_cpp conftest.$ac_ext"
8080 case "(($ac_try" in
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8083 esac
8084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8085 $as_echo "$ac_try_echo") >&5
8086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8087 ac_status=$?
8088 grep -v '^ *+' conftest.er1 >conftest.err
8089 rm -f conftest.er1
8090 cat conftest.err >&5
8091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); } >/dev/null && {
8093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8094 test ! -s conftest.err
8095 }; then
8096 ac_header_preproc=yes
8097 else
8098 $as_echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8101 ac_header_preproc=no
8104 rm -f conftest.err conftest.$ac_ext
8105 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8106 $as_echo "$ac_header_preproc" >&6; }
8108 # So? What about this header?
8109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8110 yes:no: )
8111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8112 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8114 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8115 ac_header_preproc=yes
8117 no:yes:* )
8118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8119 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8121 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8123 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8125 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8127 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8129 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8132 esac
8133 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8134 $as_echo_n "checking for $ac_header... " >&6; }
8135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8136 $as_echo_n "(cached) " >&6
8137 else
8138 eval "$as_ac_Header=\$ac_header_preproc"
8140 ac_res=`eval 'as_val=${'$as_ac_Header'}
8141 $as_echo "$as_val"'`
8142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8143 $as_echo "$ac_res" >&6; }
8146 as_val=`eval 'as_val=${'$as_ac_Header'}
8147 $as_echo "$as_val"'`
8148 if test "x$as_val" = x""yes; then
8149 cat >>confdefs.h <<_ACEOF
8150 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8151 _ACEOF
8155 done
8158 for ac_header in net/if.h
8160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8161 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8162 $as_echo_n "checking for $ac_header... " >&6; }
8163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8164 $as_echo_n "(cached) " >&6
8165 else
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h. */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 $ac_includes_default
8173 #if HAVE_SYS_SOCKET_H
8174 #include <sys/socket.h>
8175 #endif
8177 #include <$ac_header>
8178 _ACEOF
8179 rm -f conftest.$ac_objext
8180 if { (ac_try="$ac_compile"
8181 case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184 esac
8185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8186 $as_echo "$ac_try_echo") >&5
8187 (eval "$ac_compile") 2>conftest.er1
8188 ac_status=$?
8189 grep -v '^ *+' conftest.er1 >conftest.err
8190 rm -f conftest.er1
8191 cat conftest.err >&5
8192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } && {
8194 test -z "$ac_c_werror_flag" ||
8195 test ! -s conftest.err
8196 } && test -s conftest.$ac_objext; then
8197 eval "$as_ac_Header=yes"
8198 else
8199 $as_echo "$as_me: failed program was:" >&5
8200 sed 's/^/| /' conftest.$ac_ext >&5
8202 eval "$as_ac_Header=no"
8205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8207 ac_res=`eval 'as_val=${'$as_ac_Header'}
8208 $as_echo "$as_val"'`
8209 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8210 $as_echo "$ac_res" >&6; }
8211 as_val=`eval 'as_val=${'$as_ac_Header'}
8212 $as_echo "$as_val"'`
8213 if test "x$as_val" = x""yes; then
8214 cat >>confdefs.h <<_ACEOF
8215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8216 _ACEOF
8220 done
8223 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8224 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8225 if test "${ac_cv_struct_tm+set}" = set; then
8226 $as_echo_n "(cached) " >&6
8227 else
8228 cat >conftest.$ac_ext <<_ACEOF
8229 /* confdefs.h. */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 #include <sys/types.h>
8235 #include <time.h>
8238 main ()
8240 struct tm tm;
8241 int *p = &tm.tm_sec;
8242 return !p;
8244 return 0;
8246 _ACEOF
8247 rm -f conftest.$ac_objext
8248 if { (ac_try="$ac_compile"
8249 case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8252 esac
8253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8254 $as_echo "$ac_try_echo") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8256 ac_status=$?
8257 grep -v '^ *+' conftest.er1 >conftest.err
8258 rm -f conftest.er1
8259 cat conftest.err >&5
8260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_c_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest.$ac_objext; then
8265 ac_cv_struct_tm=time.h
8266 else
8267 $as_echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8270 ac_cv_struct_tm=sys/time.h
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8276 $as_echo "$ac_cv_struct_tm" >&6; }
8277 if test $ac_cv_struct_tm = sys/time.h; then
8279 cat >>confdefs.h <<\_ACEOF
8280 #define TM_IN_SYS_TIME 1
8281 _ACEOF
8285 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8286 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8287 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8288 $as_echo_n "(cached) " >&6
8289 else
8290 cat >conftest.$ac_ext <<_ACEOF
8291 /* confdefs.h. */
8292 _ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 #include <sys/types.h>
8297 #include <$ac_cv_struct_tm>
8301 main ()
8303 static struct tm ac_aggr;
8304 if (ac_aggr.tm_zone)
8305 return 0;
8307 return 0;
8309 _ACEOF
8310 rm -f conftest.$ac_objext
8311 if { (ac_try="$ac_compile"
8312 case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315 esac
8316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8317 $as_echo "$ac_try_echo") >&5
8318 (eval "$ac_compile") 2>conftest.er1
8319 ac_status=$?
8320 grep -v '^ *+' conftest.er1 >conftest.err
8321 rm -f conftest.er1
8322 cat conftest.err >&5
8323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); } && {
8325 test -z "$ac_c_werror_flag" ||
8326 test ! -s conftest.err
8327 } && test -s conftest.$ac_objext; then
8328 ac_cv_member_struct_tm_tm_zone=yes
8329 else
8330 $as_echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 cat >conftest.$ac_ext <<_ACEOF
8334 /* confdefs.h. */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 #include <sys/types.h>
8340 #include <$ac_cv_struct_tm>
8344 main ()
8346 static struct tm ac_aggr;
8347 if (sizeof ac_aggr.tm_zone)
8348 return 0;
8350 return 0;
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8355 case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358 esac
8359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8360 $as_echo "$ac_try_echo") >&5
8361 (eval "$ac_compile") 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } && {
8368 test -z "$ac_c_werror_flag" ||
8369 test ! -s conftest.err
8370 } && test -s conftest.$ac_objext; then
8371 ac_cv_member_struct_tm_tm_zone=yes
8372 else
8373 $as_echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 ac_cv_member_struct_tm_tm_zone=no
8379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8384 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8385 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8386 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
8388 cat >>confdefs.h <<_ACEOF
8389 #define HAVE_STRUCT_TM_TM_ZONE 1
8390 _ACEOF
8395 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8397 cat >>confdefs.h <<\_ACEOF
8398 #define HAVE_TM_ZONE 1
8399 _ACEOF
8401 else
8402 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8403 $as_echo_n "checking whether tzname is declared... " >&6; }
8404 if test "${ac_cv_have_decl_tzname+set}" = set; then
8405 $as_echo_n "(cached) " >&6
8406 else
8407 cat >conftest.$ac_ext <<_ACEOF
8408 /* confdefs.h. */
8409 _ACEOF
8410 cat confdefs.h >>conftest.$ac_ext
8411 cat >>conftest.$ac_ext <<_ACEOF
8412 /* end confdefs.h. */
8413 #include <time.h>
8416 main ()
8418 #ifndef tzname
8419 (void) tzname;
8420 #endif
8423 return 0;
8425 _ACEOF
8426 rm -f conftest.$ac_objext
8427 if { (ac_try="$ac_compile"
8428 case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431 esac
8432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433 $as_echo "$ac_try_echo") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8444 ac_cv_have_decl_tzname=yes
8445 else
8446 $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_cv_have_decl_tzname=no
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8454 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8455 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8456 if test "x$ac_cv_have_decl_tzname" = x""yes; then
8458 cat >>confdefs.h <<_ACEOF
8459 #define HAVE_DECL_TZNAME 1
8460 _ACEOF
8463 else
8464 cat >>confdefs.h <<_ACEOF
8465 #define HAVE_DECL_TZNAME 0
8466 _ACEOF
8472 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8473 $as_echo_n "checking for tzname... " >&6; }
8474 if test "${ac_cv_var_tzname+set}" = set; then
8475 $as_echo_n "(cached) " >&6
8476 else
8477 cat >conftest.$ac_ext <<_ACEOF
8478 /* confdefs.h. */
8479 _ACEOF
8480 cat confdefs.h >>conftest.$ac_ext
8481 cat >>conftest.$ac_ext <<_ACEOF
8482 /* end confdefs.h. */
8483 #include <time.h>
8484 #if !HAVE_DECL_TZNAME
8485 extern char *tzname[];
8486 #endif
8489 main ()
8491 return tzname[0][0];
8493 return 0;
8495 _ACEOF
8496 rm -f conftest.$ac_objext conftest$ac_exeext
8497 if { (ac_try="$ac_link"
8498 case "(($ac_try" in
8499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8500 *) ac_try_echo=$ac_try;;
8501 esac
8502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8503 $as_echo "$ac_try_echo") >&5
8504 (eval "$ac_link") 2>conftest.er1
8505 ac_status=$?
8506 grep -v '^ *+' conftest.er1 >conftest.err
8507 rm -f conftest.er1
8508 cat conftest.err >&5
8509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } && {
8511 test -z "$ac_c_werror_flag" ||
8512 test ! -s conftest.err
8513 } && test -s conftest$ac_exeext && {
8514 test "$cross_compiling" = yes ||
8515 $as_test_x conftest$ac_exeext
8516 }; then
8517 ac_cv_var_tzname=yes
8518 else
8519 $as_echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8522 ac_cv_var_tzname=no
8525 rm -rf conftest.dSYM
8526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8527 conftest$ac_exeext conftest.$ac_ext
8529 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8530 $as_echo "$ac_cv_var_tzname" >&6; }
8531 if test $ac_cv_var_tzname = yes; then
8533 cat >>confdefs.h <<\_ACEOF
8534 #define HAVE_TZNAME 1
8535 _ACEOF
8540 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8541 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8542 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8543 $as_echo_n "(cached) " >&6
8544 else
8545 cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h. */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h. */
8551 #include <time.h>
8554 main ()
8556 static struct tm ac_aggr;
8557 if (ac_aggr.tm_gmtoff)
8558 return 0;
8560 return 0;
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8565 case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568 esac
8569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8570 $as_echo "$ac_try_echo") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest.$ac_objext; then
8581 ac_cv_member_struct_tm_tm_gmtoff=yes
8582 else
8583 $as_echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592 #include <time.h>
8595 main ()
8597 static struct tm ac_aggr;
8598 if (sizeof ac_aggr.tm_gmtoff)
8599 return 0;
8601 return 0;
8603 _ACEOF
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8606 case "(($ac_try" in
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8609 esac
8610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8611 $as_echo "$ac_try_echo") >&5
8612 (eval "$ac_compile") 2>conftest.er1
8613 ac_status=$?
8614 grep -v '^ *+' conftest.er1 >conftest.err
8615 rm -f conftest.er1
8616 cat conftest.err >&5
8617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); } && {
8619 test -z "$ac_c_werror_flag" ||
8620 test ! -s conftest.err
8621 } && test -s conftest.$ac_objext; then
8622 ac_cv_member_struct_tm_tm_gmtoff=yes
8623 else
8624 $as_echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8627 ac_cv_member_struct_tm_tm_gmtoff=no
8630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8635 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8636 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8637 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
8639 cat >>confdefs.h <<\_ACEOF
8640 #define HAVE_TM_GMTOFF 1
8641 _ACEOF
8645 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8646 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8647 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8648 $as_echo_n "(cached) " >&6
8649 else
8650 cat >conftest.$ac_ext <<_ACEOF
8651 /* confdefs.h. */
8652 _ACEOF
8653 cat confdefs.h >>conftest.$ac_ext
8654 cat >>conftest.$ac_ext <<_ACEOF
8655 /* end confdefs.h. */
8656 $ac_includes_default
8657 #if HAVE_SYS_SOCKET_H
8658 #include <sys/socket.h>
8659 #endif
8660 #if HAVE_NET_IF_H
8661 #include <net/if.h>
8662 #endif
8665 main ()
8667 static struct ifreq ac_aggr;
8668 if (ac_aggr.ifr_flags)
8669 return 0;
8671 return 0;
8673 _ACEOF
8674 rm -f conftest.$ac_objext
8675 if { (ac_try="$ac_compile"
8676 case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8679 esac
8680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8681 $as_echo "$ac_try_echo") >&5
8682 (eval "$ac_compile") 2>conftest.er1
8683 ac_status=$?
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } && {
8689 test -z "$ac_c_werror_flag" ||
8690 test ! -s conftest.err
8691 } && test -s conftest.$ac_objext; then
8692 ac_cv_member_struct_ifreq_ifr_flags=yes
8693 else
8694 $as_echo "$as_me: failed program was:" >&5
8695 sed 's/^/| /' conftest.$ac_ext >&5
8697 cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h. */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h. */
8703 $ac_includes_default
8704 #if HAVE_SYS_SOCKET_H
8705 #include <sys/socket.h>
8706 #endif
8707 #if HAVE_NET_IF_H
8708 #include <net/if.h>
8709 #endif
8712 main ()
8714 static struct ifreq ac_aggr;
8715 if (sizeof ac_aggr.ifr_flags)
8716 return 0;
8718 return 0;
8720 _ACEOF
8721 rm -f conftest.$ac_objext
8722 if { (ac_try="$ac_compile"
8723 case "(($ac_try" in
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8726 esac
8727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8728 $as_echo "$ac_try_echo") >&5
8729 (eval "$ac_compile") 2>conftest.er1
8730 ac_status=$?
8731 grep -v '^ *+' conftest.er1 >conftest.err
8732 rm -f conftest.er1
8733 cat conftest.err >&5
8734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } && {
8736 test -z "$ac_c_werror_flag" ||
8737 test ! -s conftest.err
8738 } && test -s conftest.$ac_objext; then
8739 ac_cv_member_struct_ifreq_ifr_flags=yes
8740 else
8741 $as_echo "$as_me: failed program was:" >&5
8742 sed 's/^/| /' conftest.$ac_ext >&5
8744 ac_cv_member_struct_ifreq_ifr_flags=no
8747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8753 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8754 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then
8756 cat >>confdefs.h <<_ACEOF
8757 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8758 _ACEOF
8762 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8763 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8764 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8765 $as_echo_n "(cached) " >&6
8766 else
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h. */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8773 $ac_includes_default
8774 #if HAVE_SYS_SOCKET_H
8775 #include <sys/socket.h>
8776 #endif
8777 #if HAVE_NET_IF_H
8778 #include <net/if.h>
8779 #endif
8782 main ()
8784 static struct ifreq ac_aggr;
8785 if (ac_aggr.ifr_hwaddr)
8786 return 0;
8788 return 0;
8790 _ACEOF
8791 rm -f conftest.$ac_objext
8792 if { (ac_try="$ac_compile"
8793 case "(($ac_try" in
8794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8795 *) ac_try_echo=$ac_try;;
8796 esac
8797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8798 $as_echo "$ac_try_echo") >&5
8799 (eval "$ac_compile") 2>conftest.er1
8800 ac_status=$?
8801 grep -v '^ *+' conftest.er1 >conftest.err
8802 rm -f conftest.er1
8803 cat conftest.err >&5
8804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest.$ac_objext; then
8809 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8810 else
8811 $as_echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8814 cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h. */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8820 $ac_includes_default
8821 #if HAVE_SYS_SOCKET_H
8822 #include <sys/socket.h>
8823 #endif
8824 #if HAVE_NET_IF_H
8825 #include <net/if.h>
8826 #endif
8829 main ()
8831 static struct ifreq ac_aggr;
8832 if (sizeof ac_aggr.ifr_hwaddr)
8833 return 0;
8835 return 0;
8837 _ACEOF
8838 rm -f conftest.$ac_objext
8839 if { (ac_try="$ac_compile"
8840 case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843 esac
8844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8845 $as_echo "$ac_try_echo") >&5
8846 (eval "$ac_compile") 2>conftest.er1
8847 ac_status=$?
8848 grep -v '^ *+' conftest.er1 >conftest.err
8849 rm -f conftest.er1
8850 cat conftest.err >&5
8851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } && {
8853 test -z "$ac_c_werror_flag" ||
8854 test ! -s conftest.err
8855 } && test -s conftest.$ac_objext; then
8856 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8857 else
8858 $as_echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8869 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8870 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8871 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then
8873 cat >>confdefs.h <<_ACEOF
8874 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8875 _ACEOF
8879 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8880 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8881 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8882 $as_echo_n "(cached) " >&6
8883 else
8884 cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h. */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h. */
8890 $ac_includes_default
8891 #if HAVE_SYS_SOCKET_H
8892 #include <sys/socket.h>
8893 #endif
8894 #if HAVE_NET_IF_H
8895 #include <net/if.h>
8896 #endif
8899 main ()
8901 static struct ifreq ac_aggr;
8902 if (ac_aggr.ifr_netmask)
8903 return 0;
8905 return 0;
8907 _ACEOF
8908 rm -f conftest.$ac_objext
8909 if { (ac_try="$ac_compile"
8910 case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913 esac
8914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8915 $as_echo "$ac_try_echo") >&5
8916 (eval "$ac_compile") 2>conftest.er1
8917 ac_status=$?
8918 grep -v '^ *+' conftest.er1 >conftest.err
8919 rm -f conftest.er1
8920 cat conftest.err >&5
8921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } && {
8923 test -z "$ac_c_werror_flag" ||
8924 test ! -s conftest.err
8925 } && test -s conftest.$ac_objext; then
8926 ac_cv_member_struct_ifreq_ifr_netmask=yes
8927 else
8928 $as_echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 cat >conftest.$ac_ext <<_ACEOF
8932 /* confdefs.h. */
8933 _ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 $ac_includes_default
8938 #if HAVE_SYS_SOCKET_H
8939 #include <sys/socket.h>
8940 #endif
8941 #if HAVE_NET_IF_H
8942 #include <net/if.h>
8943 #endif
8946 main ()
8948 static struct ifreq ac_aggr;
8949 if (sizeof ac_aggr.ifr_netmask)
8950 return 0;
8952 return 0;
8954 _ACEOF
8955 rm -f conftest.$ac_objext
8956 if { (ac_try="$ac_compile"
8957 case "(($ac_try" in
8958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8960 esac
8961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8962 $as_echo "$ac_try_echo") >&5
8963 (eval "$ac_compile") 2>conftest.er1
8964 ac_status=$?
8965 grep -v '^ *+' conftest.er1 >conftest.err
8966 rm -f conftest.er1
8967 cat conftest.err >&5
8968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } && {
8970 test -z "$ac_c_werror_flag" ||
8971 test ! -s conftest.err
8972 } && test -s conftest.$ac_objext; then
8973 ac_cv_member_struct_ifreq_ifr_netmask=yes
8974 else
8975 $as_echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8978 ac_cv_member_struct_ifreq_ifr_netmask=no
8981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8986 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8987 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8988 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then
8990 cat >>confdefs.h <<_ACEOF
8991 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8992 _ACEOF
8996 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8997 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8998 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8999 $as_echo_n "(cached) " >&6
9000 else
9001 cat >conftest.$ac_ext <<_ACEOF
9002 /* confdefs.h. */
9003 _ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h. */
9007 $ac_includes_default
9008 #if HAVE_SYS_SOCKET_H
9009 #include <sys/socket.h>
9010 #endif
9011 #if HAVE_NET_IF_H
9012 #include <net/if.h>
9013 #endif
9016 main ()
9018 static struct ifreq ac_aggr;
9019 if (ac_aggr.ifr_broadaddr)
9020 return 0;
9022 return 0;
9024 _ACEOF
9025 rm -f conftest.$ac_objext
9026 if { (ac_try="$ac_compile"
9027 case "(($ac_try" in
9028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9029 *) ac_try_echo=$ac_try;;
9030 esac
9031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9032 $as_echo "$ac_try_echo") >&5
9033 (eval "$ac_compile") 2>conftest.er1
9034 ac_status=$?
9035 grep -v '^ *+' conftest.er1 >conftest.err
9036 rm -f conftest.er1
9037 cat conftest.err >&5
9038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039 (exit $ac_status); } && {
9040 test -z "$ac_c_werror_flag" ||
9041 test ! -s conftest.err
9042 } && test -s conftest.$ac_objext; then
9043 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9044 else
9045 $as_echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9048 cat >conftest.$ac_ext <<_ACEOF
9049 /* confdefs.h. */
9050 _ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h. */
9054 $ac_includes_default
9055 #if HAVE_SYS_SOCKET_H
9056 #include <sys/socket.h>
9057 #endif
9058 #if HAVE_NET_IF_H
9059 #include <net/if.h>
9060 #endif
9063 main ()
9065 static struct ifreq ac_aggr;
9066 if (sizeof ac_aggr.ifr_broadaddr)
9067 return 0;
9069 return 0;
9071 _ACEOF
9072 rm -f conftest.$ac_objext
9073 if { (ac_try="$ac_compile"
9074 case "(($ac_try" in
9075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9076 *) ac_try_echo=$ac_try;;
9077 esac
9078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9079 $as_echo "$ac_try_echo") >&5
9080 (eval "$ac_compile") 2>conftest.er1
9081 ac_status=$?
9082 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -f conftest.er1
9084 cat conftest.err >&5
9085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } && {
9087 test -z "$ac_c_werror_flag" ||
9088 test ! -s conftest.err
9089 } && test -s conftest.$ac_objext; then
9090 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9091 else
9092 $as_echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9095 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9104 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9105 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then
9107 cat >>confdefs.h <<_ACEOF
9108 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9109 _ACEOF
9113 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9114 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9115 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9116 $as_echo_n "(cached) " >&6
9117 else
9118 cat >conftest.$ac_ext <<_ACEOF
9119 /* confdefs.h. */
9120 _ACEOF
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9124 $ac_includes_default
9125 #if HAVE_SYS_SOCKET_H
9126 #include <sys/socket.h>
9127 #endif
9128 #if HAVE_NET_IF_H
9129 #include <net/if.h>
9130 #endif
9133 main ()
9135 static struct ifreq ac_aggr;
9136 if (ac_aggr.ifr_addr)
9137 return 0;
9139 return 0;
9141 _ACEOF
9142 rm -f conftest.$ac_objext
9143 if { (ac_try="$ac_compile"
9144 case "(($ac_try" in
9145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146 *) ac_try_echo=$ac_try;;
9147 esac
9148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9149 $as_echo "$ac_try_echo") >&5
9150 (eval "$ac_compile") 2>conftest.er1
9151 ac_status=$?
9152 grep -v '^ *+' conftest.er1 >conftest.err
9153 rm -f conftest.er1
9154 cat conftest.err >&5
9155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); } && {
9157 test -z "$ac_c_werror_flag" ||
9158 test ! -s conftest.err
9159 } && test -s conftest.$ac_objext; then
9160 ac_cv_member_struct_ifreq_ifr_addr=yes
9161 else
9162 $as_echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9165 cat >conftest.$ac_ext <<_ACEOF
9166 /* confdefs.h. */
9167 _ACEOF
9168 cat confdefs.h >>conftest.$ac_ext
9169 cat >>conftest.$ac_ext <<_ACEOF
9170 /* end confdefs.h. */
9171 $ac_includes_default
9172 #if HAVE_SYS_SOCKET_H
9173 #include <sys/socket.h>
9174 #endif
9175 #if HAVE_NET_IF_H
9176 #include <net/if.h>
9177 #endif
9180 main ()
9182 static struct ifreq ac_aggr;
9183 if (sizeof ac_aggr.ifr_addr)
9184 return 0;
9186 return 0;
9188 _ACEOF
9189 rm -f conftest.$ac_objext
9190 if { (ac_try="$ac_compile"
9191 case "(($ac_try" in
9192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9194 esac
9195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9196 $as_echo "$ac_try_echo") >&5
9197 (eval "$ac_compile") 2>conftest.er1
9198 ac_status=$?
9199 grep -v '^ *+' conftest.er1 >conftest.err
9200 rm -f conftest.er1
9201 cat conftest.err >&5
9202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); } && {
9204 test -z "$ac_c_werror_flag" ||
9205 test ! -s conftest.err
9206 } && test -s conftest.$ac_objext; then
9207 ac_cv_member_struct_ifreq_ifr_addr=yes
9208 else
9209 $as_echo "$as_me: failed program was:" >&5
9210 sed 's/^/| /' conftest.$ac_ext >&5
9212 ac_cv_member_struct_ifreq_ifr_addr=no
9215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9220 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9221 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9222 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then
9224 cat >>confdefs.h <<_ACEOF
9225 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9226 _ACEOF
9233 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9234 $as_echo_n "checking for function prototypes... " >&6; }
9235 if test "$ac_cv_prog_cc_c89" != no; then
9236 { $as_echo "$as_me:$LINENO: result: yes" >&5
9237 $as_echo "yes" >&6; }
9239 cat >>confdefs.h <<\_ACEOF
9240 #define PROTOTYPES 1
9241 _ACEOF
9244 cat >>confdefs.h <<\_ACEOF
9245 #define __PROTOTYPES 1
9246 _ACEOF
9248 else
9249 { $as_echo "$as_me:$LINENO: result: no" >&5
9250 $as_echo "no" >&6; }
9253 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9254 $as_echo_n "checking for working volatile... " >&6; }
9255 if test "${ac_cv_c_volatile+set}" = set; then
9256 $as_echo_n "(cached) " >&6
9257 else
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h. */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9266 main ()
9269 volatile int x;
9270 int * volatile y = (int *) 0;
9271 return !x && !y;
9273 return 0;
9275 _ACEOF
9276 rm -f conftest.$ac_objext
9277 if { (ac_try="$ac_compile"
9278 case "(($ac_try" in
9279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9280 *) ac_try_echo=$ac_try;;
9281 esac
9282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9283 $as_echo "$ac_try_echo") >&5
9284 (eval "$ac_compile") 2>conftest.er1
9285 ac_status=$?
9286 grep -v '^ *+' conftest.er1 >conftest.err
9287 rm -f conftest.er1
9288 cat conftest.err >&5
9289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); } && {
9291 test -z "$ac_c_werror_flag" ||
9292 test ! -s conftest.err
9293 } && test -s conftest.$ac_objext; then
9294 ac_cv_c_volatile=yes
9295 else
9296 $as_echo "$as_me: failed program was:" >&5
9297 sed 's/^/| /' conftest.$ac_ext >&5
9299 ac_cv_c_volatile=no
9302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9305 $as_echo "$ac_cv_c_volatile" >&6; }
9306 if test $ac_cv_c_volatile = no; then
9308 cat >>confdefs.h <<\_ACEOF
9309 #define volatile /**/
9310 _ACEOF
9314 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9315 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9316 if test "${ac_cv_c_const+set}" = set; then
9317 $as_echo_n "(cached) " >&6
9318 else
9319 cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h. */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h. */
9327 main ()
9329 /* FIXME: Include the comments suggested by Paul. */
9330 #ifndef __cplusplus
9331 /* Ultrix mips cc rejects this. */
9332 typedef int charset[2];
9333 const charset cs;
9334 /* SunOS 4.1.1 cc rejects this. */
9335 char const *const *pcpcc;
9336 char **ppc;
9337 /* NEC SVR4.0.2 mips cc rejects this. */
9338 struct point {int x, y;};
9339 static struct point const zero = {0,0};
9340 /* AIX XL C 1.02.0.0 rejects this.
9341 It does not let you subtract one const X* pointer from another in
9342 an arm of an if-expression whose if-part is not a constant
9343 expression */
9344 const char *g = "string";
9345 pcpcc = &g + (g ? g-g : 0);
9346 /* HPUX 7.0 cc rejects these. */
9347 ++pcpcc;
9348 ppc = (char**) pcpcc;
9349 pcpcc = (char const *const *) ppc;
9350 { /* SCO 3.2v4 cc rejects this. */
9351 char *t;
9352 char const *s = 0 ? (char *) 0 : (char const *) 0;
9354 *t++ = 0;
9355 if (s) return 0;
9357 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9358 int x[] = {25, 17};
9359 const int *foo = &x[0];
9360 ++foo;
9362 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9363 typedef const int *iptr;
9364 iptr p = 0;
9365 ++p;
9367 { /* AIX XL C 1.02.0.0 rejects this saying
9368 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9369 struct s { int j; const int *ap[3]; };
9370 struct s *b; b->j = 5;
9372 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9373 const int foo = 10;
9374 if (!foo) return 0;
9376 return !cs[0] && !zero.x;
9377 #endif
9380 return 0;
9382 _ACEOF
9383 rm -f conftest.$ac_objext
9384 if { (ac_try="$ac_compile"
9385 case "(($ac_try" in
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9388 esac
9389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9390 $as_echo "$ac_try_echo") >&5
9391 (eval "$ac_compile") 2>conftest.er1
9392 ac_status=$?
9393 grep -v '^ *+' conftest.er1 >conftest.err
9394 rm -f conftest.er1
9395 cat conftest.err >&5
9396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397 (exit $ac_status); } && {
9398 test -z "$ac_c_werror_flag" ||
9399 test ! -s conftest.err
9400 } && test -s conftest.$ac_objext; then
9401 ac_cv_c_const=yes
9402 else
9403 $as_echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9406 ac_cv_c_const=no
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9411 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9412 $as_echo "$ac_cv_c_const" >&6; }
9413 if test $ac_cv_c_const = no; then
9415 cat >>confdefs.h <<\_ACEOF
9416 #define const /**/
9417 _ACEOF
9421 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9422 $as_echo_n "checking for void * support... " >&6; }
9423 if test "${emacs_cv_void_star+set}" = set; then
9424 $as_echo_n "(cached) " >&6
9425 else
9426 cat >conftest.$ac_ext <<_ACEOF
9427 /* confdefs.h. */
9428 _ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9434 main ()
9436 void * foo;
9438 return 0;
9440 _ACEOF
9441 rm -f conftest.$ac_objext
9442 if { (ac_try="$ac_compile"
9443 case "(($ac_try" in
9444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445 *) ac_try_echo=$ac_try;;
9446 esac
9447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9448 $as_echo "$ac_try_echo") >&5
9449 (eval "$ac_compile") 2>conftest.er1
9450 ac_status=$?
9451 grep -v '^ *+' conftest.er1 >conftest.err
9452 rm -f conftest.er1
9453 cat conftest.err >&5
9454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); } && {
9456 test -z "$ac_c_werror_flag" ||
9457 test ! -s conftest.err
9458 } && test -s conftest.$ac_objext; then
9459 emacs_cv_void_star=yes
9460 else
9461 $as_echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9464 emacs_cv_void_star=no
9467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9470 $as_echo "$emacs_cv_void_star" >&6; }
9471 if test $emacs_cv_void_star = yes; then
9472 cat >>confdefs.h <<\_ACEOF
9473 #define POINTER_TYPE void
9474 _ACEOF
9476 else
9477 cat >>confdefs.h <<\_ACEOF
9478 #define POINTER_TYPE char
9479 _ACEOF
9487 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9488 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9489 set x ${MAKE-make}
9490 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9491 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9492 $as_echo_n "(cached) " >&6
9493 else
9494 cat >conftest.make <<\_ACEOF
9495 SHELL = /bin/sh
9496 all:
9497 @echo '@@@%%%=$(MAKE)=@@@%%%'
9498 _ACEOF
9499 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9500 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9501 *@@@%%%=?*=@@@%%%*)
9502 eval ac_cv_prog_make_${ac_make}_set=yes;;
9504 eval ac_cv_prog_make_${ac_make}_set=no;;
9505 esac
9506 rm -f conftest.make
9508 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9509 { $as_echo "$as_me:$LINENO: result: yes" >&5
9510 $as_echo "yes" >&6; }
9511 SET_MAKE=
9512 else
9513 { $as_echo "$as_me:$LINENO: result: no" >&5
9514 $as_echo "no" >&6; }
9515 SET_MAKE="MAKE=${MAKE-make}"
9519 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9520 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9521 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9522 HAVE_GNU_MAKE=no
9523 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9524 if test "x$testval" != x; then
9525 HAVE_GNU_MAKE=yes
9526 else
9527 ac_enable_autodepend=no
9529 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9530 $as_echo "$HAVE_GNU_MAKE" >&6; }
9531 if test $HAVE_GNU_MAKE = yes; then
9532 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9533 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9534 SAVE_CFLAGS="$CFLAGS"
9535 CFLAGS="$CFLAGS -MMD -MF deps.d"
9536 cat >conftest.$ac_ext <<_ACEOF
9537 /* confdefs.h. */
9538 _ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h. */
9544 main ()
9548 return 0;
9550 _ACEOF
9551 rm -f conftest.$ac_objext
9552 if { (ac_try="$ac_compile"
9553 case "(($ac_try" in
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9556 esac
9557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9558 $as_echo "$ac_try_echo") >&5
9559 (eval "$ac_compile") 2>conftest.er1
9560 ac_status=$?
9561 grep -v '^ *+' conftest.er1 >conftest.err
9562 rm -f conftest.er1
9563 cat conftest.err >&5
9564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } && {
9566 test -z "$ac_c_werror_flag" ||
9567 test ! -s conftest.err
9568 } && test -s conftest.$ac_objext; then
9570 else
9571 $as_echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9574 ac_enable_autodepend=no
9577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9578 CFLAGS="$SAVE_CFLAGS"
9579 test -f deps.d || ac_enable_autodepend=no
9580 rm -rf deps.d
9581 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9582 $as_echo "$ac_enable_autodepend" >&6; }
9584 if test $ac_enable_autodepend = yes; then
9586 cat >>confdefs.h <<\_ACEOF
9587 #define AUTO_DEPEND 1
9588 _ACEOF
9593 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9594 $as_echo_n "checking for long file names... " >&6; }
9595 if test "${ac_cv_sys_long_file_names+set}" = set; then
9596 $as_echo_n "(cached) " >&6
9597 else
9598 ac_cv_sys_long_file_names=yes
9599 # Test for long file names in all the places we know might matter:
9600 # . the current directory, where building will happen
9601 # $prefix/lib where we will be installing things
9602 # $exec_prefix/lib likewise
9603 # $TMPDIR if set, where it might want to write temporary files
9604 # /tmp where it might want to write temporary files
9605 # /var/tmp likewise
9606 # /usr/tmp likewise
9607 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9608 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9609 # in the usual case where exec_prefix is '${prefix}'.
9610 case $ac_dir in #(
9611 . | /* | ?:[\\/]*) ;; #(
9612 *) continue;;
9613 esac
9614 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9615 ac_xdir=$ac_dir/cf$$
9616 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9617 ac_tf1=$ac_xdir/conftest9012345
9618 ac_tf2=$ac_xdir/conftest9012346
9619 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9620 ac_cv_sys_long_file_names=no
9621 rm -f -r "$ac_xdir" 2>/dev/null
9622 test $ac_cv_sys_long_file_names = no && break
9623 done
9625 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9626 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9627 if test $ac_cv_sys_long_file_names = yes; then
9629 cat >>confdefs.h <<\_ACEOF
9630 #define HAVE_LONG_FILE_NAMES 1
9631 _ACEOF
9636 #### Choose a window system.
9638 { $as_echo "$as_me:$LINENO: checking for X" >&5
9639 $as_echo_n "checking for X... " >&6; }
9642 # Check whether --with-x was given.
9643 if test "${with_x+set}" = set; then
9644 withval=$with_x;
9647 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9648 if test "x$with_x" = xno; then
9649 # The user explicitly disabled X.
9650 have_x=disabled
9651 else
9652 case $x_includes,$x_libraries in #(
9653 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
9654 $as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
9655 { (exit 1); exit 1; }; };; #(
9656 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9657 $as_echo_n "(cached) " >&6
9658 else
9659 # One or both of the vars are not set, and there is no cached value.
9660 ac_x_includes=no ac_x_libraries=no
9661 rm -f -r conftest.dir
9662 if mkdir conftest.dir; then
9663 cd conftest.dir
9664 cat >Imakefile <<'_ACEOF'
9665 incroot:
9666 @echo incroot='${INCROOT}'
9667 usrlibdir:
9668 @echo usrlibdir='${USRLIBDIR}'
9669 libdir:
9670 @echo libdir='${LIBDIR}'
9671 _ACEOF
9672 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9673 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9674 for ac_var in incroot usrlibdir libdir; do
9675 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9676 done
9677 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9678 for ac_extension in a so sl dylib la dll; do
9679 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9680 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9681 ac_im_usrlibdir=$ac_im_libdir; break
9683 done
9684 # Screen out bogus values from the imake configuration. They are
9685 # bogus both because they are the default anyway, and because
9686 # using them would break gcc on systems where it needs fixed includes.
9687 case $ac_im_incroot in
9688 /usr/include) ac_x_includes= ;;
9689 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9690 esac
9691 case $ac_im_usrlibdir in
9692 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9693 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9694 esac
9696 cd ..
9697 rm -f -r conftest.dir
9700 # Standard set of common directories for X headers.
9701 # Check X11 before X11Rn because it is often a symlink to the current release.
9702 ac_x_header_dirs='
9703 /usr/X11/include
9704 /usr/X11R6/include
9705 /usr/X11R5/include
9706 /usr/X11R4/include
9708 /usr/include/X11
9709 /usr/include/X11R6
9710 /usr/include/X11R5
9711 /usr/include/X11R4
9713 /usr/local/X11/include
9714 /usr/local/X11R6/include
9715 /usr/local/X11R5/include
9716 /usr/local/X11R4/include
9718 /usr/local/include/X11
9719 /usr/local/include/X11R6
9720 /usr/local/include/X11R5
9721 /usr/local/include/X11R4
9723 /usr/X386/include
9724 /usr/x386/include
9725 /usr/XFree86/include/X11
9727 /usr/include
9728 /usr/local/include
9729 /usr/unsupported/include
9730 /usr/athena/include
9731 /usr/local/x11r5/include
9732 /usr/lpp/Xamples/include
9734 /usr/openwin/include
9735 /usr/openwin/share/include'
9737 if test "$ac_x_includes" = no; then
9738 # Guess where to find include files, by looking for Xlib.h.
9739 # First, try using that file with no special directory specified.
9740 cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h. */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h. */
9746 #include <X11/Xlib.h>
9747 _ACEOF
9748 if { (ac_try="$ac_cpp conftest.$ac_ext"
9749 case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752 esac
9753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754 $as_echo "$ac_try_echo") >&5
9755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } >/dev/null && {
9762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9764 }; then
9765 # We can compile using X headers with no special include directory.
9766 ac_x_includes=
9767 else
9768 $as_echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9771 for ac_dir in $ac_x_header_dirs; do
9772 if test -r "$ac_dir/X11/Xlib.h"; then
9773 ac_x_includes=$ac_dir
9774 break
9776 done
9779 rm -f conftest.err conftest.$ac_ext
9780 fi # $ac_x_includes = no
9782 if test "$ac_x_libraries" = no; then
9783 # Check for the libraries.
9784 # See if we find them without any special options.
9785 # Don't add to $LIBS permanently.
9786 ac_save_LIBS=$LIBS
9787 LIBS="-lX11 $LIBS"
9788 cat >conftest.$ac_ext <<_ACEOF
9789 /* confdefs.h. */
9790 _ACEOF
9791 cat confdefs.h >>conftest.$ac_ext
9792 cat >>conftest.$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 #include <X11/Xlib.h>
9796 main ()
9798 XrmInitialize ()
9800 return 0;
9802 _ACEOF
9803 rm -f conftest.$ac_objext conftest$ac_exeext
9804 if { (ac_try="$ac_link"
9805 case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808 esac
9809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9810 $as_echo "$ac_try_echo") >&5
9811 (eval "$ac_link") 2>conftest.er1
9812 ac_status=$?
9813 grep -v '^ *+' conftest.er1 >conftest.err
9814 rm -f conftest.er1
9815 cat conftest.err >&5
9816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } && {
9818 test -z "$ac_c_werror_flag" ||
9819 test ! -s conftest.err
9820 } && test -s conftest$ac_exeext && {
9821 test "$cross_compiling" = yes ||
9822 $as_test_x conftest$ac_exeext
9823 }; then
9824 LIBS=$ac_save_LIBS
9825 # We can link X programs with no special library path.
9826 ac_x_libraries=
9827 else
9828 $as_echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9831 LIBS=$ac_save_LIBS
9832 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9834 # Don't even attempt the hair of trying to link an X program!
9835 for ac_extension in a so sl dylib la dll; do
9836 if test -r "$ac_dir/libX11.$ac_extension"; then
9837 ac_x_libraries=$ac_dir
9838 break 2
9840 done
9841 done
9844 rm -rf conftest.dSYM
9845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9846 conftest$ac_exeext conftest.$ac_ext
9847 fi # $ac_x_libraries = no
9849 case $ac_x_includes,$ac_x_libraries in #(
9850 no,* | *,no | *\'*)
9851 # Didn't find X, or a directory has "'" in its name.
9852 ac_cv_have_x="have_x=no";; #(
9854 # Record where we found X for the cache.
9855 ac_cv_have_x="have_x=yes\
9856 ac_x_includes='$ac_x_includes'\
9857 ac_x_libraries='$ac_x_libraries'"
9858 esac
9860 ;; #(
9861 *) have_x=yes;;
9862 esac
9863 eval "$ac_cv_have_x"
9864 fi # $with_x != no
9866 if test "$have_x" != yes; then
9867 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9868 $as_echo "$have_x" >&6; }
9869 no_x=yes
9870 else
9871 # If each of the values was on the command line, it overrides each guess.
9872 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9873 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9874 # Update the cache value to reflect the command line values.
9875 ac_cv_have_x="have_x=yes\
9876 ac_x_includes='$x_includes'\
9877 ac_x_libraries='$x_libraries'"
9878 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9879 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9882 if test "$no_x" = yes; then
9883 window_system=none
9884 else
9885 window_system=x11
9888 ## Workaround for bug in autoconf <= 2.62.
9889 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9890 ## No need to do anything special for these standard directories.
9891 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9893 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9897 LD_SWITCH_X_SITE_AUX=
9898 LD_SWITCH_X_SITE_AUX_RPATH=
9899 if test "${x_libraries}" != NONE; then
9900 if test -n "${x_libraries}"; then
9901 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9902 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9903 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
9905 x_default_search_path=""
9906 x_search_path=${x_libraries}
9907 if test -z "${x_search_path}"; then
9908 x_search_path=/usr/lib
9910 for x_library in `echo ${x_search_path}: | \
9911 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9912 x_search_path="\
9913 ${x_library}/X11/%L/%T/%N%C%S:\
9914 ${x_library}/X11/%l/%T/%N%C%S:\
9915 ${x_library}/X11/%T/%N%C%S:\
9916 ${x_library}/X11/%L/%T/%N%S:\
9917 ${x_library}/X11/%l/%T/%N%S:\
9918 ${x_library}/X11/%T/%N%S"
9919 if test x"${x_default_search_path}" = x; then
9920 x_default_search_path=${x_search_path}
9921 else
9922 x_default_search_path="${x_search_path}:${x_default_search_path}"
9924 done
9929 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9930 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9933 if test x"${x_includes}" = x; then
9934 bitmapdir=/usr/include/X11/bitmaps
9935 else
9936 # accumulate include directories that have X11 bitmap subdirectories
9937 bmd_acc="dummyval"
9938 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9939 if test -d "${bmd}/X11/bitmaps"; then
9940 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9942 if test -d "${bmd}/bitmaps"; then
9943 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9945 done
9946 if test ${bmd_acc} != "dummyval"; then
9947 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9951 HAVE_NS=no
9952 NS_IMPL_COCOA=no
9953 NS_IMPL_GNUSTEP=no
9954 tmp_CPPFLAGS="$CPPFLAGS"
9955 tmp_CFLAGS="$CFLAGS"
9956 CPPFLAGS="$CPPFLAGS -x objective-c"
9957 CFLAGS="$CFLAGS -x objective-c"
9958 if test "${with_ns}" != no; then
9959 if test "${opsys}" = darwin; then
9960 NS_IMPL_COCOA=yes
9961 ns_appdir=`pwd`/nextstep/Emacs.app
9962 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9963 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9964 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9965 elif test -f $GNUSTEP_CONFIG_FILE; then
9966 NS_IMPL_GNUSTEP=yes
9967 ns_appdir=`pwd`/nextstep/Emacs.app
9968 ns_appbindir=`pwd`/nextstep/Emacs.app
9969 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9970 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9971 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9972 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9973 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9974 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9975 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9976 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9977 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9978 LIB_STANDARD=
9980 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9981 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9982 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9983 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9984 $as_echo_n "(cached) " >&6
9986 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9987 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9988 else
9989 # Is the header compilable?
9990 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9991 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9992 cat >conftest.$ac_ext <<_ACEOF
9993 /* confdefs.h. */
9994 _ACEOF
9995 cat confdefs.h >>conftest.$ac_ext
9996 cat >>conftest.$ac_ext <<_ACEOF
9997 /* end confdefs.h. */
9998 $ac_includes_default
9999 #include <AppKit/AppKit.h>
10000 _ACEOF
10001 rm -f conftest.$ac_objext
10002 if { (ac_try="$ac_compile"
10003 case "(($ac_try" in
10004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005 *) ac_try_echo=$ac_try;;
10006 esac
10007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10008 $as_echo "$ac_try_echo") >&5
10009 (eval "$ac_compile") 2>conftest.er1
10010 ac_status=$?
10011 grep -v '^ *+' conftest.er1 >conftest.err
10012 rm -f conftest.er1
10013 cat conftest.err >&5
10014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } && {
10016 test -z "$ac_c_werror_flag" ||
10017 test ! -s conftest.err
10018 } && test -s conftest.$ac_objext; then
10019 ac_header_compiler=yes
10020 else
10021 $as_echo "$as_me: failed program was:" >&5
10022 sed 's/^/| /' conftest.$ac_ext >&5
10024 ac_header_compiler=no
10027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10028 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10029 $as_echo "$ac_header_compiler" >&6; }
10031 # Is the header present?
10032 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
10033 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
10034 cat >conftest.$ac_ext <<_ACEOF
10035 /* confdefs.h. */
10036 _ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h. */
10040 #include <AppKit/AppKit.h>
10041 _ACEOF
10042 if { (ac_try="$ac_cpp conftest.$ac_ext"
10043 case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10046 esac
10047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10048 $as_echo "$ac_try_echo") >&5
10049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } >/dev/null && {
10056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 }; then
10059 ac_header_preproc=yes
10060 else
10061 $as_echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 ac_header_preproc=no
10067 rm -f conftest.err conftest.$ac_ext
10068 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10069 $as_echo "$ac_header_preproc" >&6; }
10071 # So? What about this header?
10072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10073 yes:no: )
10074 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10075 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10076 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10077 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10078 ac_header_preproc=yes
10080 no:yes:* )
10081 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10082 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10083 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10084 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10085 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10086 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10087 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10088 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10089 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10090 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10091 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10092 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10095 esac
10096 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10097 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10098 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10099 $as_echo_n "(cached) " >&6
10100 else
10101 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10103 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10104 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10107 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then
10108 HAVE_NS=yes
10109 else
10110 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
10111 files are missing or cannot be compiled." >&5
10112 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10113 files are missing or cannot be compiled." >&2;}
10114 { (exit 1); exit 1; }; }
10118 NS_HAVE_NSINTEGER=yes
10119 cat >conftest.$ac_ext <<_ACEOF
10120 /* confdefs.h. */
10121 _ACEOF
10122 cat confdefs.h >>conftest.$ac_ext
10123 cat >>conftest.$ac_ext <<_ACEOF
10124 /* end confdefs.h. */
10125 #include <Foundation/NSObjCRuntime.h>
10127 main ()
10129 NSInteger i;
10131 return 0;
10133 _ACEOF
10134 rm -f conftest.$ac_objext
10135 if { (ac_try="$ac_compile"
10136 case "(($ac_try" in
10137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10138 *) ac_try_echo=$ac_try;;
10139 esac
10140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10141 $as_echo "$ac_try_echo") >&5
10142 (eval "$ac_compile") 2>conftest.er1
10143 ac_status=$?
10144 grep -v '^ *+' conftest.er1 >conftest.err
10145 rm -f conftest.er1
10146 cat conftest.err >&5
10147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); } && {
10149 test -z "$ac_c_werror_flag" ||
10150 test ! -s conftest.err
10151 } && test -s conftest.$ac_objext; then
10152 ns_have_nsinteger=yes
10153 else
10154 $as_echo "$as_me: failed program was:" >&5
10155 sed 's/^/| /' conftest.$ac_ext >&5
10157 ns_have_nsinteger=no
10160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10161 if test $ns_have_nsinteger = no; then
10162 NS_HAVE_NSINTEGER=no
10166 NS_OBJ=
10167 NS_SUPPORT=
10168 if test "${HAVE_NS}" = yes; then
10169 window_system=nextstep
10170 with_xft=no
10171 # set up packaging dirs
10172 exec_prefix=${ns_appbindir}
10173 libexecdir=${ns_appbindir}/libexec
10174 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10175 prefix=${ns_appresdir}
10177 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10178 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10180 CFLAGS="$tmp_CFLAGS"
10181 CPPFLAGS="$tmp_CPPFLAGS"
10186 case "${window_system}" in
10187 x11 )
10188 HAVE_X_WINDOWS=yes
10189 HAVE_X11=yes
10190 case "${with_x_toolkit}" in
10191 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10192 motif ) USE_X_TOOLKIT=MOTIF ;;
10193 gtk ) with_gtk=yes
10194 USE_X_TOOLKIT=none ;;
10195 no ) USE_X_TOOLKIT=none ;;
10196 * ) USE_X_TOOLKIT=maybe ;;
10197 esac
10199 nextstep | none )
10200 HAVE_X_WINDOWS=no
10201 HAVE_X11=no
10202 USE_X_TOOLKIT=none
10204 esac
10206 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10207 # Extract the first word of "X", so it can be a program name with args.
10208 set dummy X; ac_word=$2
10209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10210 $as_echo_n "checking for $ac_word... " >&6; }
10211 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10212 $as_echo_n "(cached) " >&6
10213 else
10214 if test -n "$HAVE_XSERVER"; then
10215 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10216 else
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10224 ac_cv_prog_HAVE_XSERVER="true"
10225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10228 done
10229 done
10230 IFS=$as_save_IFS
10232 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10235 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10236 if test -n "$HAVE_XSERVER"; then
10237 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10238 $as_echo "$HAVE_XSERVER" >&6; }
10239 else
10240 { $as_echo "$as_me:$LINENO: result: no" >&5
10241 $as_echo "no" >&6; }
10245 if test "$HAVE_XSERVER" = true ||
10246 test -n "$DISPLAY" ||
10247 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10248 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10249 were found. You should install the relevant development files for X
10250 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10251 sure you have development files for image handling, i.e.
10252 tiff, gif, jpeg, png and xpm.
10253 If you are sure you want Emacs compiled without X window support, pass
10254 --without-x
10255 to configure." >&5
10256 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10257 were found. You should install the relevant development files for X
10258 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10259 sure you have development files for image handling, i.e.
10260 tiff, gif, jpeg, png and xpm.
10261 If you are sure you want Emacs compiled without X window support, pass
10262 --without-x
10263 to configure." >&2;}
10264 { (exit 1); exit 1; }; }
10268 ### If we're using X11, we should use the X menu package.
10269 HAVE_MENUS=no
10270 case ${HAVE_X11} in
10271 yes ) HAVE_MENUS=yes ;;
10272 esac
10274 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10275 # Assume not, until told otherwise.
10276 GNU_MALLOC=yes
10277 doug_lea_malloc=yes
10278 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10279 $as_echo_n "checking for malloc_get_state... " >&6; }
10280 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10281 $as_echo_n "(cached) " >&6
10282 else
10283 cat >conftest.$ac_ext <<_ACEOF
10284 /* confdefs.h. */
10285 _ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10290 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10291 #define malloc_get_state innocuous_malloc_get_state
10293 /* System header to define __stub macros and hopefully few prototypes,
10294 which can conflict with char malloc_get_state (); below.
10295 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10296 <limits.h> exists even on freestanding compilers. */
10298 #ifdef __STDC__
10299 # include <limits.h>
10300 #else
10301 # include <assert.h>
10302 #endif
10304 #undef malloc_get_state
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10309 #ifdef __cplusplus
10310 extern "C"
10311 #endif
10312 char malloc_get_state ();
10313 /* The GNU C library defines this for functions which it implements
10314 to always fail with ENOSYS. Some functions are actually named
10315 something starting with __ and the normal name is an alias. */
10316 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10317 choke me
10318 #endif
10321 main ()
10323 return malloc_get_state ();
10325 return 0;
10327 _ACEOF
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (ac_try="$ac_link"
10330 case "(($ac_try" in
10331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10333 esac
10334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10335 $as_echo "$ac_try_echo") >&5
10336 (eval "$ac_link") 2>conftest.er1
10337 ac_status=$?
10338 grep -v '^ *+' conftest.er1 >conftest.err
10339 rm -f conftest.er1
10340 cat conftest.err >&5
10341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342 (exit $ac_status); } && {
10343 test -z "$ac_c_werror_flag" ||
10344 test ! -s conftest.err
10345 } && test -s conftest$ac_exeext && {
10346 test "$cross_compiling" = yes ||
10347 $as_test_x conftest$ac_exeext
10348 }; then
10349 ac_cv_func_malloc_get_state=yes
10350 else
10351 $as_echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10354 ac_cv_func_malloc_get_state=no
10357 rm -rf conftest.dSYM
10358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10359 conftest$ac_exeext conftest.$ac_ext
10361 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10362 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10363 if test "x$ac_cv_func_malloc_get_state" = x""yes; then
10365 else
10366 doug_lea_malloc=no
10369 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10370 $as_echo_n "checking for malloc_set_state... " >&6; }
10371 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10372 $as_echo_n "(cached) " >&6
10373 else
10374 cat >conftest.$ac_ext <<_ACEOF
10375 /* confdefs.h. */
10376 _ACEOF
10377 cat confdefs.h >>conftest.$ac_ext
10378 cat >>conftest.$ac_ext <<_ACEOF
10379 /* end confdefs.h. */
10380 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10382 #define malloc_set_state innocuous_malloc_set_state
10384 /* System header to define __stub macros and hopefully few prototypes,
10385 which can conflict with char malloc_set_state (); below.
10386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10387 <limits.h> exists even on freestanding compilers. */
10389 #ifdef __STDC__
10390 # include <limits.h>
10391 #else
10392 # include <assert.h>
10393 #endif
10395 #undef malloc_set_state
10397 /* Override any GCC internal prototype to avoid an error.
10398 Use char because int might match the return type of a GCC
10399 builtin and then its argument prototype would still apply. */
10400 #ifdef __cplusplus
10401 extern "C"
10402 #endif
10403 char malloc_set_state ();
10404 /* The GNU C library defines this for functions which it implements
10405 to always fail with ENOSYS. Some functions are actually named
10406 something starting with __ and the normal name is an alias. */
10407 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10408 choke me
10409 #endif
10412 main ()
10414 return malloc_set_state ();
10416 return 0;
10418 _ACEOF
10419 rm -f conftest.$ac_objext conftest$ac_exeext
10420 if { (ac_try="$ac_link"
10421 case "(($ac_try" in
10422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10423 *) ac_try_echo=$ac_try;;
10424 esac
10425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10426 $as_echo "$ac_try_echo") >&5
10427 (eval "$ac_link") 2>conftest.er1
10428 ac_status=$?
10429 grep -v '^ *+' conftest.er1 >conftest.err
10430 rm -f conftest.er1
10431 cat conftest.err >&5
10432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); } && {
10434 test -z "$ac_c_werror_flag" ||
10435 test ! -s conftest.err
10436 } && test -s conftest$ac_exeext && {
10437 test "$cross_compiling" = yes ||
10438 $as_test_x conftest$ac_exeext
10439 }; then
10440 ac_cv_func_malloc_set_state=yes
10441 else
10442 $as_echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10445 ac_cv_func_malloc_set_state=no
10448 rm -rf conftest.dSYM
10449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10450 conftest$ac_exeext conftest.$ac_ext
10452 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10453 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10454 if test "x$ac_cv_func_malloc_set_state" = x""yes; then
10456 else
10457 doug_lea_malloc=no
10460 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10461 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10462 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10463 $as_echo_n "(cached) " >&6
10464 else
10465 cat >conftest.$ac_ext <<_ACEOF
10466 /* confdefs.h. */
10467 _ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 extern void (* __after_morecore_hook)();
10473 main ()
10475 __after_morecore_hook = 0
10477 return 0;
10479 _ACEOF
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (ac_try="$ac_link"
10482 case "(($ac_try" in
10483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10485 esac
10486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10487 $as_echo "$ac_try_echo") >&5
10488 (eval "$ac_link") 2>conftest.er1
10489 ac_status=$?
10490 grep -v '^ *+' conftest.er1 >conftest.err
10491 rm -f conftest.er1
10492 cat conftest.err >&5
10493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest$ac_exeext && {
10498 test "$cross_compiling" = yes ||
10499 $as_test_x conftest$ac_exeext
10500 }; then
10501 emacs_cv_var___after_morecore_hook=yes
10502 else
10503 $as_echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10506 emacs_cv_var___after_morecore_hook=no
10509 rm -rf conftest.dSYM
10510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511 conftest$ac_exeext conftest.$ac_ext
10513 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10514 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10515 if test $emacs_cv_var___after_morecore_hook = no; then
10516 doug_lea_malloc=no
10518 if test "${system_malloc}" = "yes"; then
10519 GNU_MALLOC=no
10520 GNU_MALLOC_reason="
10521 (The GNU allocators don't work with this system configuration.)"
10523 if test "$doug_lea_malloc" = "yes" ; then
10524 if test "$GNU_MALLOC" = yes ; then
10525 GNU_MALLOC_reason="
10526 (Using Doug Lea's new malloc from the GNU C Library.)"
10529 cat >>confdefs.h <<\_ACEOF
10530 #define DOUG_LEA_MALLOC 1
10531 _ACEOF
10535 if test x"${REL_ALLOC}" = x; then
10536 REL_ALLOC=${GNU_MALLOC}
10542 for ac_header in stdlib.h unistd.h
10544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10546 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10547 $as_echo_n "checking for $ac_header... " >&6; }
10548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10549 $as_echo_n "(cached) " >&6
10551 ac_res=`eval 'as_val=${'$as_ac_Header'}
10552 $as_echo "$as_val"'`
10553 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10554 $as_echo "$ac_res" >&6; }
10555 else
10556 # Is the header compilable?
10557 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10558 $as_echo_n "checking $ac_header usability... " >&6; }
10559 cat >conftest.$ac_ext <<_ACEOF
10560 /* confdefs.h. */
10561 _ACEOF
10562 cat confdefs.h >>conftest.$ac_ext
10563 cat >>conftest.$ac_ext <<_ACEOF
10564 /* end confdefs.h. */
10565 $ac_includes_default
10566 #include <$ac_header>
10567 _ACEOF
10568 rm -f conftest.$ac_objext
10569 if { (ac_try="$ac_compile"
10570 case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10573 esac
10574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10575 $as_echo "$ac_try_echo") >&5
10576 (eval "$ac_compile") 2>conftest.er1
10577 ac_status=$?
10578 grep -v '^ *+' conftest.er1 >conftest.err
10579 rm -f conftest.er1
10580 cat conftest.err >&5
10581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } && {
10583 test -z "$ac_c_werror_flag" ||
10584 test ! -s conftest.err
10585 } && test -s conftest.$ac_objext; then
10586 ac_header_compiler=yes
10587 else
10588 $as_echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 ac_header_compiler=no
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10596 $as_echo "$ac_header_compiler" >&6; }
10598 # Is the header present?
10599 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10600 $as_echo_n "checking $ac_header presence... " >&6; }
10601 cat >conftest.$ac_ext <<_ACEOF
10602 /* confdefs.h. */
10603 _ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 #include <$ac_header>
10608 _ACEOF
10609 if { (ac_try="$ac_cpp conftest.$ac_ext"
10610 case "(($ac_try" in
10611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612 *) ac_try_echo=$ac_try;;
10613 esac
10614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10615 $as_echo "$ac_try_echo") >&5
10616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } >/dev/null && {
10623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 }; then
10626 ac_header_preproc=yes
10627 else
10628 $as_echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_header_preproc=no
10634 rm -f conftest.err conftest.$ac_ext
10635 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10636 $as_echo "$ac_header_preproc" >&6; }
10638 # So? What about this header?
10639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10640 yes:no: )
10641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10642 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10644 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10645 ac_header_preproc=yes
10647 no:yes:* )
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10649 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10651 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10653 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10655 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10657 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10659 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10662 esac
10663 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10664 $as_echo_n "checking for $ac_header... " >&6; }
10665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10666 $as_echo_n "(cached) " >&6
10667 else
10668 eval "$as_ac_Header=\$ac_header_preproc"
10670 ac_res=`eval 'as_val=${'$as_ac_Header'}
10671 $as_echo "$as_val"'`
10672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10673 $as_echo "$ac_res" >&6; }
10676 as_val=`eval 'as_val=${'$as_ac_Header'}
10677 $as_echo "$as_val"'`
10678 if test "x$as_val" = x""yes; then
10679 cat >>confdefs.h <<_ACEOF
10680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10681 _ACEOF
10685 done
10688 for ac_func in getpagesize
10690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10691 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10692 $as_echo_n "checking for $ac_func... " >&6; }
10693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10694 $as_echo_n "(cached) " >&6
10695 else
10696 cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h. */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h. */
10702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10704 #define $ac_func innocuous_$ac_func
10706 /* System header to define __stub macros and hopefully few prototypes,
10707 which can conflict with char $ac_func (); below.
10708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10709 <limits.h> exists even on freestanding compilers. */
10711 #ifdef __STDC__
10712 # include <limits.h>
10713 #else
10714 # include <assert.h>
10715 #endif
10717 #undef $ac_func
10719 /* Override any GCC internal prototype to avoid an error.
10720 Use char because int might match the return type of a GCC
10721 builtin and then its argument prototype would still apply. */
10722 #ifdef __cplusplus
10723 extern "C"
10724 #endif
10725 char $ac_func ();
10726 /* The GNU C library defines this for functions which it implements
10727 to always fail with ENOSYS. Some functions are actually named
10728 something starting with __ and the normal name is an alias. */
10729 #if defined __stub_$ac_func || defined __stub___$ac_func
10730 choke me
10731 #endif
10734 main ()
10736 return $ac_func ();
10738 return 0;
10740 _ACEOF
10741 rm -f conftest.$ac_objext conftest$ac_exeext
10742 if { (ac_try="$ac_link"
10743 case "(($ac_try" in
10744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745 *) ac_try_echo=$ac_try;;
10746 esac
10747 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10748 $as_echo "$ac_try_echo") >&5
10749 (eval "$ac_link") 2>conftest.er1
10750 ac_status=$?
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
10754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } && {
10756 test -z "$ac_c_werror_flag" ||
10757 test ! -s conftest.err
10758 } && test -s conftest$ac_exeext && {
10759 test "$cross_compiling" = yes ||
10760 $as_test_x conftest$ac_exeext
10761 }; then
10762 eval "$as_ac_var=yes"
10763 else
10764 $as_echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10767 eval "$as_ac_var=no"
10770 rm -rf conftest.dSYM
10771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10772 conftest$ac_exeext conftest.$ac_ext
10774 ac_res=`eval 'as_val=${'$as_ac_var'}
10775 $as_echo "$as_val"'`
10776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10777 $as_echo "$ac_res" >&6; }
10778 as_val=`eval 'as_val=${'$as_ac_var'}
10779 $as_echo "$as_val"'`
10780 if test "x$as_val" = x""yes; then
10781 cat >>confdefs.h <<_ACEOF
10782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10783 _ACEOF
10786 done
10788 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10789 $as_echo_n "checking for working mmap... " >&6; }
10790 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10791 $as_echo_n "(cached) " >&6
10792 else
10793 if test "$cross_compiling" = yes; then
10794 ac_cv_func_mmap_fixed_mapped=no
10795 else
10796 cat >conftest.$ac_ext <<_ACEOF
10797 /* confdefs.h. */
10798 _ACEOF
10799 cat confdefs.h >>conftest.$ac_ext
10800 cat >>conftest.$ac_ext <<_ACEOF
10801 /* end confdefs.h. */
10802 $ac_includes_default
10803 /* malloc might have been renamed as rpl_malloc. */
10804 #undef malloc
10806 /* Thanks to Mike Haertel and Jim Avera for this test.
10807 Here is a matrix of mmap possibilities:
10808 mmap private not fixed
10809 mmap private fixed at somewhere currently unmapped
10810 mmap private fixed at somewhere already mapped
10811 mmap shared not fixed
10812 mmap shared fixed at somewhere currently unmapped
10813 mmap shared fixed at somewhere already mapped
10814 For private mappings, we should verify that changes cannot be read()
10815 back from the file, nor mmap's back from the file at a different
10816 address. (There have been systems where private was not correctly
10817 implemented like the infamous i386 svr4.0, and systems where the
10818 VM page cache was not coherent with the file system buffer cache
10819 like early versions of FreeBSD and possibly contemporary NetBSD.)
10820 For shared mappings, we should conversely verify that changes get
10821 propagated back to all the places they're supposed to be.
10823 Grep wants private fixed already mapped.
10824 The main things grep needs to know about mmap are:
10825 * does it exist and is it safe to write into the mmap'd area
10826 * how to use it (BSD variants) */
10828 #include <fcntl.h>
10829 #include <sys/mman.h>
10831 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10832 char *malloc ();
10833 #endif
10835 /* This mess was copied from the GNU getpagesize.h. */
10836 #ifndef HAVE_GETPAGESIZE
10837 /* Assume that all systems that can run configure have sys/param.h. */
10838 # ifndef HAVE_SYS_PARAM_H
10839 # define HAVE_SYS_PARAM_H 1
10840 # endif
10842 # ifdef _SC_PAGESIZE
10843 # define getpagesize() sysconf(_SC_PAGESIZE)
10844 # else /* no _SC_PAGESIZE */
10845 # ifdef HAVE_SYS_PARAM_H
10846 # include <sys/param.h>
10847 # ifdef EXEC_PAGESIZE
10848 # define getpagesize() EXEC_PAGESIZE
10849 # else /* no EXEC_PAGESIZE */
10850 # ifdef NBPG
10851 # define getpagesize() NBPG * CLSIZE
10852 # ifndef CLSIZE
10853 # define CLSIZE 1
10854 # endif /* no CLSIZE */
10855 # else /* no NBPG */
10856 # ifdef NBPC
10857 # define getpagesize() NBPC
10858 # else /* no NBPC */
10859 # ifdef PAGESIZE
10860 # define getpagesize() PAGESIZE
10861 # endif /* PAGESIZE */
10862 # endif /* no NBPC */
10863 # endif /* no NBPG */
10864 # endif /* no EXEC_PAGESIZE */
10865 # else /* no HAVE_SYS_PARAM_H */
10866 # define getpagesize() 8192 /* punt totally */
10867 # endif /* no HAVE_SYS_PARAM_H */
10868 # endif /* no _SC_PAGESIZE */
10870 #endif /* no HAVE_GETPAGESIZE */
10873 main ()
10875 char *data, *data2, *data3;
10876 int i, pagesize;
10877 int fd;
10879 pagesize = getpagesize ();
10881 /* First, make a file with some known garbage in it. */
10882 data = (char *) malloc (pagesize);
10883 if (!data)
10884 return 1;
10885 for (i = 0; i < pagesize; ++i)
10886 *(data + i) = rand ();
10887 umask (0);
10888 fd = creat ("conftest.mmap", 0600);
10889 if (fd < 0)
10890 return 1;
10891 if (write (fd, data, pagesize) != pagesize)
10892 return 1;
10893 close (fd);
10895 /* Next, try to mmap the file at a fixed address which already has
10896 something else allocated at it. If we can, also make sure that
10897 we see the same garbage. */
10898 fd = open ("conftest.mmap", O_RDWR);
10899 if (fd < 0)
10900 return 1;
10901 data2 = (char *) malloc (2 * pagesize);
10902 if (!data2)
10903 return 1;
10904 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10905 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10906 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10907 return 1;
10908 for (i = 0; i < pagesize; ++i)
10909 if (*(data + i) != *(data2 + i))
10910 return 1;
10912 /* Finally, make sure that changes to the mapped area do not
10913 percolate back to the file as seen by read(). (This is a bug on
10914 some variants of i386 svr4.0.) */
10915 for (i = 0; i < pagesize; ++i)
10916 *(data2 + i) = *(data2 + i) + 1;
10917 data3 = (char *) malloc (pagesize);
10918 if (!data3)
10919 return 1;
10920 if (read (fd, data3, pagesize) != pagesize)
10921 return 1;
10922 for (i = 0; i < pagesize; ++i)
10923 if (*(data + i) != *(data3 + i))
10924 return 1;
10925 close (fd);
10926 return 0;
10928 _ACEOF
10929 rm -f conftest$ac_exeext
10930 if { (ac_try="$ac_link"
10931 case "(($ac_try" in
10932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933 *) ac_try_echo=$ac_try;;
10934 esac
10935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10936 $as_echo "$ac_try_echo") >&5
10937 (eval "$ac_link") 2>&5
10938 ac_status=$?
10939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10941 { (case "(($ac_try" in
10942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10943 *) ac_try_echo=$ac_try;;
10944 esac
10945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10946 $as_echo "$ac_try_echo") >&5
10947 (eval "$ac_try") 2>&5
10948 ac_status=$?
10949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; }; then
10951 ac_cv_func_mmap_fixed_mapped=yes
10952 else
10953 $as_echo "$as_me: program exited with status $ac_status" >&5
10954 $as_echo "$as_me: failed program was:" >&5
10955 sed 's/^/| /' conftest.$ac_ext >&5
10957 ( exit $ac_status )
10958 ac_cv_func_mmap_fixed_mapped=no
10960 rm -rf conftest.dSYM
10961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10966 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10967 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10968 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10970 cat >>confdefs.h <<\_ACEOF
10971 #define HAVE_MMAP 1
10972 _ACEOF
10975 rm -f conftest.mmap
10977 if test $use_mmap_for_buffers = yes; then
10978 REL_ALLOC=no
10981 LIBS="$LIBS_SYSTEM $LIBS"
10984 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10985 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10986 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10987 $as_echo_n "(cached) " >&6
10988 else
10989 ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-ldnet $LIBS"
10991 cat >conftest.$ac_ext <<_ACEOF
10992 /* confdefs.h. */
10993 _ACEOF
10994 cat confdefs.h >>conftest.$ac_ext
10995 cat >>conftest.$ac_ext <<_ACEOF
10996 /* end confdefs.h. */
10998 /* Override any GCC internal prototype to avoid an error.
10999 Use char because int might match the return type of a GCC
11000 builtin and then its argument prototype would still apply. */
11001 #ifdef __cplusplus
11002 extern "C"
11003 #endif
11004 char dnet_ntoa ();
11006 main ()
11008 return dnet_ntoa ();
11010 return 0;
11012 _ACEOF
11013 rm -f conftest.$ac_objext conftest$ac_exeext
11014 if { (ac_try="$ac_link"
11015 case "(($ac_try" in
11016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11017 *) ac_try_echo=$ac_try;;
11018 esac
11019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11020 $as_echo "$ac_try_echo") >&5
11021 (eval "$ac_link") 2>conftest.er1
11022 ac_status=$?
11023 grep -v '^ *+' conftest.er1 >conftest.err
11024 rm -f conftest.er1
11025 cat conftest.err >&5
11026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); } && {
11028 test -z "$ac_c_werror_flag" ||
11029 test ! -s conftest.err
11030 } && test -s conftest$ac_exeext && {
11031 test "$cross_compiling" = yes ||
11032 $as_test_x conftest$ac_exeext
11033 }; then
11034 ac_cv_lib_dnet_dnet_ntoa=yes
11035 else
11036 $as_echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_cv_lib_dnet_dnet_ntoa=no
11042 rm -rf conftest.dSYM
11043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11044 conftest$ac_exeext conftest.$ac_ext
11045 LIBS=$ac_check_lib_save_LIBS
11047 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11048 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11049 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
11050 cat >>confdefs.h <<_ACEOF
11051 #define HAVE_LIBDNET 1
11052 _ACEOF
11054 LIBS="-ldnet $LIBS"
11059 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11060 $as_echo_n "checking for main in -lXbsd... " >&6; }
11061 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11062 $as_echo_n "(cached) " >&6
11063 else
11064 ac_check_lib_save_LIBS=$LIBS
11065 LIBS="-lXbsd $LIBS"
11066 cat >conftest.$ac_ext <<_ACEOF
11067 /* confdefs.h. */
11068 _ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11075 main ()
11077 return main ();
11079 return 0;
11081 _ACEOF
11082 rm -f conftest.$ac_objext conftest$ac_exeext
11083 if { (ac_try="$ac_link"
11084 case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11087 esac
11088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11089 $as_echo "$ac_try_echo") >&5
11090 (eval "$ac_link") 2>conftest.er1
11091 ac_status=$?
11092 grep -v '^ *+' conftest.er1 >conftest.err
11093 rm -f conftest.er1
11094 cat conftest.err >&5
11095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } && {
11097 test -z "$ac_c_werror_flag" ||
11098 test ! -s conftest.err
11099 } && test -s conftest$ac_exeext && {
11100 test "$cross_compiling" = yes ||
11101 $as_test_x conftest$ac_exeext
11102 }; then
11103 ac_cv_lib_Xbsd_main=yes
11104 else
11105 $as_echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11108 ac_cv_lib_Xbsd_main=no
11111 rm -rf conftest.dSYM
11112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11113 conftest$ac_exeext conftest.$ac_ext
11114 LIBS=$ac_check_lib_save_LIBS
11116 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11117 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
11118 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then
11119 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11124 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11125 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
11126 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11127 $as_echo_n "(cached) " >&6
11128 else
11129 ac_check_lib_save_LIBS=$LIBS
11130 LIBS="-lpthreads $LIBS"
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h. */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11138 /* Override any GCC internal prototype to avoid an error.
11139 Use char because int might match the return type of a GCC
11140 builtin and then its argument prototype would still apply. */
11141 #ifdef __cplusplus
11142 extern "C"
11143 #endif
11144 char cma_open ();
11146 main ()
11148 return cma_open ();
11150 return 0;
11152 _ACEOF
11153 rm -f conftest.$ac_objext conftest$ac_exeext
11154 if { (ac_try="$ac_link"
11155 case "(($ac_try" in
11156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157 *) ac_try_echo=$ac_try;;
11158 esac
11159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11160 $as_echo "$ac_try_echo") >&5
11161 (eval "$ac_link") 2>conftest.er1
11162 ac_status=$?
11163 grep -v '^ *+' conftest.er1 >conftest.err
11164 rm -f conftest.er1
11165 cat conftest.err >&5
11166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } && {
11168 test -z "$ac_c_werror_flag" ||
11169 test ! -s conftest.err
11170 } && test -s conftest$ac_exeext && {
11171 test "$cross_compiling" = yes ||
11172 $as_test_x conftest$ac_exeext
11173 }; then
11174 ac_cv_lib_pthreads_cma_open=yes
11175 else
11176 $as_echo "$as_me: failed program was:" >&5
11177 sed 's/^/| /' conftest.$ac_ext >&5
11179 ac_cv_lib_pthreads_cma_open=no
11182 rm -rf conftest.dSYM
11183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11184 conftest$ac_exeext conftest.$ac_ext
11185 LIBS=$ac_check_lib_save_LIBS
11187 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11188 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11189 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then
11190 cat >>confdefs.h <<_ACEOF
11191 #define HAVE_LIBPTHREADS 1
11192 _ACEOF
11194 LIBS="-lpthreads $LIBS"
11199 ## Note: when using cpp in s/aix4.2.h, this definition depended on
11200 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
11201 ## the system file was sourced. Hence the value of LIBS_SYSTEM
11202 ## added to LIBS in configure would never contain the pthreads part,
11203 ## but the value used in Makefiles might. FIXME?
11205 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
11206 ## be harmless on older versions of X where it happens to exist.
11207 test "$opsys" = "aix4-2" && \
11208 test $ac_cv_lib_pthreads_cma_open = yes && \
11209 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
11212 case ${host_os} in
11213 aix*)
11214 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11215 $as_echo_n "checking for -bbigtoc option... " >&6; }
11216 if test "${gdb_cv_bigtoc+set}" = set; then
11217 $as_echo_n "(cached) " >&6
11218 else
11220 case $GCC in
11221 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11222 *) gdb_cv_bigtoc=-bbigtoc ;;
11223 esac
11225 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11226 cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h. */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11234 main ()
11236 int i;
11238 return 0;
11240 _ACEOF
11241 rm -f conftest.$ac_objext conftest$ac_exeext
11242 if { (ac_try="$ac_link"
11243 case "(($ac_try" in
11244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11245 *) ac_try_echo=$ac_try;;
11246 esac
11247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11248 $as_echo "$ac_try_echo") >&5
11249 (eval "$ac_link") 2>conftest.er1
11250 ac_status=$?
11251 grep -v '^ *+' conftest.er1 >conftest.err
11252 rm -f conftest.er1
11253 cat conftest.err >&5
11254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } && {
11256 test -z "$ac_c_werror_flag" ||
11257 test ! -s conftest.err
11258 } && test -s conftest$ac_exeext && {
11259 test "$cross_compiling" = yes ||
11260 $as_test_x conftest$ac_exeext
11261 }; then
11263 else
11264 $as_echo "$as_me: failed program was:" >&5
11265 sed 's/^/| /' conftest.$ac_ext >&5
11267 gdb_cv_bigtoc=
11270 rm -rf conftest.dSYM
11271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11272 conftest$ac_exeext conftest.$ac_ext
11275 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11276 $as_echo "$gdb_cv_bigtoc" >&6; }
11278 esac
11280 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11281 # used for the tests that follow. We set them back to REAL_CFLAGS and
11282 # REAL_CPPFLAGS later on.
11284 REAL_CPPFLAGS="$CPPFLAGS"
11286 if test "${HAVE_X11}" = "yes"; then
11287 DEFS="$C_SWITCH_X_SITE $DEFS"
11288 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11289 LIBS="$LIBX $LIBS"
11290 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11291 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11293 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11294 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11295 # but it's more convenient here to set LD_RUN_PATH
11296 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11297 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11298 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11299 export LD_RUN_PATH
11302 if test "${opsys}" = "gnu-linux"; then
11303 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11304 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11305 cat >conftest.$ac_ext <<_ACEOF
11306 /* confdefs.h. */
11307 _ACEOF
11308 cat confdefs.h >>conftest.$ac_ext
11309 cat >>conftest.$ac_ext <<_ACEOF
11310 /* end confdefs.h. */
11313 main ()
11315 XOpenDisplay ("foo");
11317 return 0;
11319 _ACEOF
11320 rm -f conftest.$ac_objext conftest$ac_exeext
11321 if { (ac_try="$ac_link"
11322 case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11325 esac
11326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11327 $as_echo "$ac_try_echo") >&5
11328 (eval "$ac_link") 2>conftest.er1
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } && {
11335 test -z "$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11337 } && test -s conftest$ac_exeext && {
11338 test "$cross_compiling" = yes ||
11339 $as_test_x conftest$ac_exeext
11340 }; then
11341 xlinux_first_failure=no
11342 else
11343 $as_echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11346 xlinux_first_failure=yes
11349 rm -rf conftest.dSYM
11350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11351 conftest$ac_exeext conftest.$ac_ext
11352 if test "${xlinux_first_failure}" = "yes"; then
11353 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11354 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11355 OLD_CPPFLAGS="$CPPFLAGS"
11356 OLD_LIBS="$LIBS"
11357 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11358 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11359 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11360 LIBS="$LIBS -b i486-linuxaout"
11361 cat >conftest.$ac_ext <<_ACEOF
11362 /* confdefs.h. */
11363 _ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11369 main ()
11371 XOpenDisplay ("foo");
11373 return 0;
11375 _ACEOF
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (ac_try="$ac_link"
11378 case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11381 esac
11382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11383 $as_echo "$ac_try_echo") >&5
11384 (eval "$ac_link") 2>conftest.er1
11385 ac_status=$?
11386 grep -v '^ *+' conftest.er1 >conftest.err
11387 rm -f conftest.er1
11388 cat conftest.err >&5
11389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } && {
11391 test -z "$ac_c_werror_flag" ||
11392 test ! -s conftest.err
11393 } && test -s conftest$ac_exeext && {
11394 test "$cross_compiling" = yes ||
11395 $as_test_x conftest$ac_exeext
11396 }; then
11397 xlinux_second_failure=no
11398 else
11399 $as_echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 xlinux_second_failure=yes
11405 rm -rf conftest.dSYM
11406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11407 conftest$ac_exeext conftest.$ac_ext
11408 if test "${xlinux_second_failure}" = "yes"; then
11409 # If we get the same failure with -b, there is no use adding -b.
11410 # So take it out. This plays safe.
11411 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11412 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11413 CPPFLAGS="$OLD_CPPFLAGS"
11414 LIBS="$OLD_LIBS"
11415 { $as_echo "$as_me:$LINENO: result: no" >&5
11416 $as_echo "no" >&6; }
11417 else
11418 { $as_echo "$as_me:$LINENO: result: yes" >&5
11419 $as_echo "yes" >&6; }
11421 else
11422 { $as_echo "$as_me:$LINENO: result: no" >&5
11423 $as_echo "no" >&6; }
11427 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11428 # header files included from there.
11429 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11430 $as_echo_n "checking for Xkb... " >&6; }
11431 cat >conftest.$ac_ext <<_ACEOF
11432 /* confdefs.h. */
11433 _ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 #include <X11/Xlib.h>
11438 #include <X11/XKBlib.h>
11440 main ()
11442 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11444 return 0;
11446 _ACEOF
11447 rm -f conftest.$ac_objext conftest$ac_exeext
11448 if { (ac_try="$ac_link"
11449 case "(($ac_try" in
11450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451 *) ac_try_echo=$ac_try;;
11452 esac
11453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11454 $as_echo "$ac_try_echo") >&5
11455 (eval "$ac_link") 2>conftest.er1
11456 ac_status=$?
11457 grep -v '^ *+' conftest.er1 >conftest.err
11458 rm -f conftest.er1
11459 cat conftest.err >&5
11460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); } && {
11462 test -z "$ac_c_werror_flag" ||
11463 test ! -s conftest.err
11464 } && test -s conftest$ac_exeext && {
11465 test "$cross_compiling" = yes ||
11466 $as_test_x conftest$ac_exeext
11467 }; then
11468 emacs_xkb=yes
11469 else
11470 $as_echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11473 emacs_xkb=no
11476 rm -rf conftest.dSYM
11477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11478 conftest$ac_exeext conftest.$ac_ext
11479 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11480 $as_echo "$emacs_xkb" >&6; }
11481 if test $emacs_xkb = yes; then
11483 cat >>confdefs.h <<\_ACEOF
11484 #define HAVE_XKBGETKEYBOARD 1
11485 _ACEOF
11493 for ac_func in XrmSetDatabase XScreenResourceString \
11494 XScreenNumberOfScreen XSetWMProtocols
11496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11497 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11498 $as_echo_n "checking for $ac_func... " >&6; }
11499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11500 $as_echo_n "(cached) " >&6
11501 else
11502 cat >conftest.$ac_ext <<_ACEOF
11503 /* confdefs.h. */
11504 _ACEOF
11505 cat confdefs.h >>conftest.$ac_ext
11506 cat >>conftest.$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11510 #define $ac_func innocuous_$ac_func
11512 /* System header to define __stub macros and hopefully few prototypes,
11513 which can conflict with char $ac_func (); below.
11514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11515 <limits.h> exists even on freestanding compilers. */
11517 #ifdef __STDC__
11518 # include <limits.h>
11519 #else
11520 # include <assert.h>
11521 #endif
11523 #undef $ac_func
11525 /* Override any GCC internal prototype to avoid an error.
11526 Use char because int might match the return type of a GCC
11527 builtin and then its argument prototype would still apply. */
11528 #ifdef __cplusplus
11529 extern "C"
11530 #endif
11531 char $ac_func ();
11532 /* The GNU C library defines this for functions which it implements
11533 to always fail with ENOSYS. Some functions are actually named
11534 something starting with __ and the normal name is an alias. */
11535 #if defined __stub_$ac_func || defined __stub___$ac_func
11536 choke me
11537 #endif
11540 main ()
11542 return $ac_func ();
11544 return 0;
11546 _ACEOF
11547 rm -f conftest.$ac_objext conftest$ac_exeext
11548 if { (ac_try="$ac_link"
11549 case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11552 esac
11553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11554 $as_echo "$ac_try_echo") >&5
11555 (eval "$ac_link") 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && {
11562 test -z "$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest$ac_exeext && {
11565 test "$cross_compiling" = yes ||
11566 $as_test_x conftest$ac_exeext
11567 }; then
11568 eval "$as_ac_var=yes"
11569 else
11570 $as_echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 eval "$as_ac_var=no"
11576 rm -rf conftest.dSYM
11577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11578 conftest$ac_exeext conftest.$ac_ext
11580 ac_res=`eval 'as_val=${'$as_ac_var'}
11581 $as_echo "$as_val"'`
11582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11583 $as_echo "$ac_res" >&6; }
11584 as_val=`eval 'as_val=${'$as_ac_var'}
11585 $as_echo "$as_val"'`
11586 if test "x$as_val" = x""yes; then
11587 cat >>confdefs.h <<_ACEOF
11588 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11589 _ACEOF
11592 done
11596 if test "${window_system}" = "x11"; then
11597 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11598 $as_echo_n "checking X11 version 6... " >&6; }
11599 if test "${emacs_cv_x11_version_6+set}" = set; then
11600 $as_echo_n "(cached) " >&6
11601 else
11602 cat >conftest.$ac_ext <<_ACEOF
11603 /* confdefs.h. */
11604 _ACEOF
11605 cat confdefs.h >>conftest.$ac_ext
11606 cat >>conftest.$ac_ext <<_ACEOF
11607 /* end confdefs.h. */
11608 #include <X11/Xlib.h>
11610 main ()
11612 #if XlibSpecificationRelease < 6
11613 fail;
11614 #endif
11617 return 0;
11619 _ACEOF
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (ac_try="$ac_link"
11622 case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11625 esac
11626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11627 $as_echo "$ac_try_echo") >&5
11628 (eval "$ac_link") 2>conftest.er1
11629 ac_status=$?
11630 grep -v '^ *+' conftest.er1 >conftest.err
11631 rm -f conftest.er1
11632 cat conftest.err >&5
11633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); } && {
11635 test -z "$ac_c_werror_flag" ||
11636 test ! -s conftest.err
11637 } && test -s conftest$ac_exeext && {
11638 test "$cross_compiling" = yes ||
11639 $as_test_x conftest$ac_exeext
11640 }; then
11641 emacs_cv_x11_version_6=yes
11642 else
11643 $as_echo "$as_me: failed program was:" >&5
11644 sed 's/^/| /' conftest.$ac_ext >&5
11646 emacs_cv_x11_version_6=no
11649 rm -rf conftest.dSYM
11650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11651 conftest$ac_exeext conftest.$ac_ext
11654 if test $emacs_cv_x11_version_6 = yes; then
11655 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11656 $as_echo "6 or newer" >&6; }
11658 cat >>confdefs.h <<\_ACEOF
11659 #define HAVE_X11R6 1
11660 _ACEOF
11662 else
11663 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11664 $as_echo "before 6" >&6; }
11669 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11670 HAVE_RSVG=no
11671 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11672 if test "${with_rsvg}" != "no"; then
11673 RSVG_REQUIRED=2.11.0
11674 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11677 succeeded=no
11679 # Extract the first word of "pkg-config", so it can be a program name with args.
11680 set dummy pkg-config; ac_word=$2
11681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11682 $as_echo_n "checking for $ac_word... " >&6; }
11683 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11684 $as_echo_n "(cached) " >&6
11685 else
11686 case $PKG_CONFIG in
11687 [\\/]* | ?:[\\/]*)
11688 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11692 for as_dir in $PATH
11694 IFS=$as_save_IFS
11695 test -z "$as_dir" && as_dir=.
11696 for ac_exec_ext in '' $ac_executable_extensions; do
11697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11698 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11699 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11700 break 2
11702 done
11703 done
11704 IFS=$as_save_IFS
11706 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11708 esac
11710 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11711 if test -n "$PKG_CONFIG"; then
11712 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11713 $as_echo "$PKG_CONFIG" >&6; }
11714 else
11715 { $as_echo "$as_me:$LINENO: result: no" >&5
11716 $as_echo "no" >&6; }
11721 if test "$PKG_CONFIG" = "no" ; then
11723 else
11724 PKG_CONFIG_MIN_VERSION=0.9.0
11725 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11726 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11727 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11729 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11730 { $as_echo "$as_me:$LINENO: result: yes" >&5
11731 $as_echo "yes" >&6; }
11732 succeeded=yes
11734 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11735 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11736 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11737 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11738 $as_echo "$RSVG_CFLAGS" >&6; }
11740 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11741 $as_echo_n "checking RSVG_LIBS... " >&6; }
11742 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11743 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11744 $as_echo "$RSVG_LIBS" >&6; }
11745 else
11746 { $as_echo "$as_me:$LINENO: result: no" >&5
11747 $as_echo "no" >&6; }
11748 RSVG_CFLAGS=""
11749 RSVG_LIBS=""
11750 ## If we have a custom action on failure, don't print errors, but
11751 ## do set a variable so people can do so.
11752 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11758 else
11759 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11760 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11764 if test $succeeded = yes; then
11766 else
11773 if test ".${RSVG_CFLAGS}" != "."; then
11774 HAVE_RSVG=yes
11776 cat >>confdefs.h <<\_ACEOF
11777 #define HAVE_RSVG 1
11778 _ACEOF
11780 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11781 LIBS="$RSVG_LIBS $LIBS"
11786 HAVE_IMAGEMAGICK=no
11787 if test "${with_imagemagick}" != "no"; then
11788 IMAGEMAGICK_REQUIRED=1
11789 IMAGEMAGICK_MODULE="MagickWand >= $IMAGEMAGICK_REQUIRED"
11791 succeeded=no
11793 # Extract the first word of "pkg-config", so it can be a program name with args.
11794 set dummy pkg-config; ac_word=$2
11795 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11798 $as_echo_n "(cached) " >&6
11799 else
11800 case $PKG_CONFIG in
11801 [\\/]* | ?:[\\/]*)
11802 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11812 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11813 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11814 break 2
11816 done
11817 done
11818 IFS=$as_save_IFS
11820 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11822 esac
11824 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11825 if test -n "$PKG_CONFIG"; then
11826 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11827 $as_echo "$PKG_CONFIG" >&6; }
11828 else
11829 { $as_echo "$as_me:$LINENO: result: no" >&5
11830 $as_echo "no" >&6; }
11835 if test "$PKG_CONFIG" = "no" ; then
11837 else
11838 PKG_CONFIG_MIN_VERSION=0.9.0
11839 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11840 { $as_echo "$as_me:$LINENO: checking for $IMAGEMAGICK_MODULE" >&5
11841 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
11843 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
11844 { $as_echo "$as_me:$LINENO: result: yes" >&5
11845 $as_echo "yes" >&6; }
11846 succeeded=yes
11848 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_CFLAGS" >&5
11849 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
11850 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11851 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_CFLAGS" >&5
11852 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
11854 { $as_echo "$as_me:$LINENO: checking IMAGEMAGICK_LIBS" >&5
11855 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
11856 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
11857 { $as_echo "$as_me:$LINENO: result: $IMAGEMAGICK_LIBS" >&5
11858 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
11859 else
11860 { $as_echo "$as_me:$LINENO: result: no" >&5
11861 $as_echo "no" >&6; }
11862 IMAGEMAGICK_CFLAGS=""
11863 IMAGEMAGICK_LIBS=""
11864 ## If we have a custom action on failure, don't print errors, but
11865 ## do set a variable so people can do so.
11866 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
11872 else
11873 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11874 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11878 if test $succeeded = yes; then
11880 else
11887 if test ".${IMAGEMAGICK_CFLAGS}" != "."; then
11888 HAVE_IMAGEMAGICK=yes
11890 cat >>confdefs.h <<\_ACEOF
11891 #define HAVE_IMAGEMAGICK 1
11892 _ACEOF
11894 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
11895 LIBS="$IMAGEMAGICK_LIBS $LIBS"
11900 HAVE_GTK=no
11901 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11902 GLIB_REQUIRED=2.6
11903 GTK_REQUIRED=2.6
11904 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11907 succeeded=no
11909 # Extract the first word of "pkg-config", so it can be a program name with args.
11910 set dummy pkg-config; ac_word=$2
11911 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11912 $as_echo_n "checking for $ac_word... " >&6; }
11913 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11914 $as_echo_n "(cached) " >&6
11915 else
11916 case $PKG_CONFIG in
11917 [\\/]* | ?:[\\/]*)
11918 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922 for as_dir in $PATH
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
11926 for ac_exec_ext in '' $ac_executable_extensions; do
11927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11928 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11930 break 2
11932 done
11933 done
11934 IFS=$as_save_IFS
11936 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11938 esac
11940 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11941 if test -n "$PKG_CONFIG"; then
11942 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11943 $as_echo "$PKG_CONFIG" >&6; }
11944 else
11945 { $as_echo "$as_me:$LINENO: result: no" >&5
11946 $as_echo "no" >&6; }
11951 if test "$PKG_CONFIG" = "no" ; then
11952 pkg_check_gtk=no
11953 else
11954 PKG_CONFIG_MIN_VERSION=0.9.0
11955 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11956 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11957 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11959 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11960 { $as_echo "$as_me:$LINENO: result: yes" >&5
11961 $as_echo "yes" >&6; }
11962 succeeded=yes
11964 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11965 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11966 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11967 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11968 $as_echo "$GTK_CFLAGS" >&6; }
11970 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11971 $as_echo_n "checking GTK_LIBS... " >&6; }
11972 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11973 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11974 $as_echo "$GTK_LIBS" >&6; }
11975 else
11976 { $as_echo "$as_me:$LINENO: result: no" >&5
11977 $as_echo "no" >&6; }
11978 GTK_CFLAGS=""
11979 GTK_LIBS=""
11980 ## If we have a custom action on failure, don't print errors, but
11981 ## do set a variable so people can do so.
11982 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11988 else
11989 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11990 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11994 if test $succeeded = yes; then
11995 pkg_check_gtk=yes
11996 else
11997 pkg_check_gtk=no
12000 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
12001 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
12002 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
12003 { (exit 1); exit 1; }; }
12008 GTK_OBJ=
12009 if test x"$pkg_check_gtk" = xyes; then
12013 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
12014 CFLAGS="$CFLAGS $GTK_CFLAGS"
12015 LIBS="$GTK_LIBS $LIBS"
12016 GTK_COMPILES=no
12018 for ac_func in gtk_main
12020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12021 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12022 $as_echo_n "checking for $ac_func... " >&6; }
12023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12024 $as_echo_n "(cached) " >&6
12025 else
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h. */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12034 #define $ac_func innocuous_$ac_func
12036 /* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char $ac_func (); below.
12038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12039 <limits.h> exists even on freestanding compilers. */
12041 #ifdef __STDC__
12042 # include <limits.h>
12043 #else
12044 # include <assert.h>
12045 #endif
12047 #undef $ac_func
12049 /* Override any GCC internal prototype to avoid an error.
12050 Use char because int might match the return type of a GCC
12051 builtin and then its argument prototype would still apply. */
12052 #ifdef __cplusplus
12053 extern "C"
12054 #endif
12055 char $ac_func ();
12056 /* The GNU C library defines this for functions which it implements
12057 to always fail with ENOSYS. Some functions are actually named
12058 something starting with __ and the normal name is an alias. */
12059 #if defined __stub_$ac_func || defined __stub___$ac_func
12060 choke me
12061 #endif
12064 main ()
12066 return $ac_func ();
12068 return 0;
12070 _ACEOF
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (ac_try="$ac_link"
12073 case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076 esac
12077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12078 $as_echo "$ac_try_echo") >&5
12079 (eval "$ac_link") 2>conftest.er1
12080 ac_status=$?
12081 grep -v '^ *+' conftest.er1 >conftest.err
12082 rm -f conftest.er1
12083 cat conftest.err >&5
12084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } && {
12086 test -z "$ac_c_werror_flag" ||
12087 test ! -s conftest.err
12088 } && test -s conftest$ac_exeext && {
12089 test "$cross_compiling" = yes ||
12090 $as_test_x conftest$ac_exeext
12091 }; then
12092 eval "$as_ac_var=yes"
12093 else
12094 $as_echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 eval "$as_ac_var=no"
12100 rm -rf conftest.dSYM
12101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12102 conftest$ac_exeext conftest.$ac_ext
12104 ac_res=`eval 'as_val=${'$as_ac_var'}
12105 $as_echo "$as_val"'`
12106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12107 $as_echo "$ac_res" >&6; }
12108 as_val=`eval 'as_val=${'$as_ac_var'}
12109 $as_echo "$as_val"'`
12110 if test "x$as_val" = x""yes; then
12111 cat >>confdefs.h <<_ACEOF
12112 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12113 _ACEOF
12114 GTK_COMPILES=yes
12116 done
12118 if test "${GTK_COMPILES}" != "yes"; then
12119 if test "$USE_X_TOOLKIT" != "maybe"; then
12120 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12121 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12122 { (exit 1); exit 1; }; };
12124 else
12125 HAVE_GTK=yes
12127 cat >>confdefs.h <<\_ACEOF
12128 #define USE_GTK 1
12129 _ACEOF
12131 GTK_OBJ=gtkutil.o
12132 USE_X_TOOLKIT=none
12133 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
12135 else
12136 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
12137 closing open displays. This is no problem if you just use
12138 one display, but if you use more than one and close one of them
12139 Emacs may crash." >&5
12140 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
12141 closing open displays. This is no problem if you just use
12142 one display, but if you use more than one and close one of them
12143 Emacs may crash." >&2;}
12144 sleep 3
12152 if test "${HAVE_GTK}" = "yes"; then
12154 if test "$with_toolkit_scroll_bars" != no; then
12155 with_toolkit_scroll_bars=yes
12158 HAVE_GTK_MULTIDISPLAY=no
12160 for ac_func in gdk_display_open
12162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12163 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12164 $as_echo_n "checking for $ac_func... " >&6; }
12165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12166 $as_echo_n "(cached) " >&6
12167 else
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h. */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12176 #define $ac_func innocuous_$ac_func
12178 /* System header to define __stub macros and hopefully few prototypes,
12179 which can conflict with char $ac_func (); below.
12180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12181 <limits.h> exists even on freestanding compilers. */
12183 #ifdef __STDC__
12184 # include <limits.h>
12185 #else
12186 # include <assert.h>
12187 #endif
12189 #undef $ac_func
12191 /* Override any GCC internal prototype to avoid an error.
12192 Use char because int might match the return type of a GCC
12193 builtin and then its argument prototype would still apply. */
12194 #ifdef __cplusplus
12195 extern "C"
12196 #endif
12197 char $ac_func ();
12198 /* The GNU C library defines this for functions which it implements
12199 to always fail with ENOSYS. Some functions are actually named
12200 something starting with __ and the normal name is an alias. */
12201 #if defined __stub_$ac_func || defined __stub___$ac_func
12202 choke me
12203 #endif
12206 main ()
12208 return $ac_func ();
12210 return 0;
12212 _ACEOF
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (ac_try="$ac_link"
12215 case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218 esac
12219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12220 $as_echo "$ac_try_echo") >&5
12221 (eval "$ac_link") 2>conftest.er1
12222 ac_status=$?
12223 grep -v '^ *+' conftest.er1 >conftest.err
12224 rm -f conftest.er1
12225 cat conftest.err >&5
12226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && {
12228 test -z "$ac_c_werror_flag" ||
12229 test ! -s conftest.err
12230 } && test -s conftest$ac_exeext && {
12231 test "$cross_compiling" = yes ||
12232 $as_test_x conftest$ac_exeext
12233 }; then
12234 eval "$as_ac_var=yes"
12235 else
12236 $as_echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 eval "$as_ac_var=no"
12242 rm -rf conftest.dSYM
12243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12244 conftest$ac_exeext conftest.$ac_ext
12246 ac_res=`eval 'as_val=${'$as_ac_var'}
12247 $as_echo "$as_val"'`
12248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12249 $as_echo "$ac_res" >&6; }
12250 as_val=`eval 'as_val=${'$as_ac_var'}
12251 $as_echo "$as_val"'`
12252 if test "x$as_val" = x""yes; then
12253 cat >>confdefs.h <<_ACEOF
12254 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12255 _ACEOF
12256 HAVE_GTK_MULTIDISPLAY=yes
12258 done
12260 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12262 cat >>confdefs.h <<\_ACEOF
12263 #define HAVE_GTK_MULTIDISPLAY 1
12264 _ACEOF
12268 HAVE_GTK_FILE_SELECTION=no
12269 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12270 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12271 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12272 $as_echo_n "(cached) " >&6
12273 else
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 $ac_includes_default
12281 #include <gtk/gtk.h>
12284 main ()
12286 #ifndef GTK_TYPE_FILE_SELECTION
12287 (void) GTK_TYPE_FILE_SELECTION;
12288 #endif
12291 return 0;
12293 _ACEOF
12294 rm -f conftest.$ac_objext
12295 if { (ac_try="$ac_compile"
12296 case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299 esac
12300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12301 $as_echo "$ac_try_echo") >&5
12302 (eval "$ac_compile") 2>conftest.er1
12303 ac_status=$?
12304 grep -v '^ *+' conftest.er1 >conftest.err
12305 rm -f conftest.er1
12306 cat conftest.err >&5
12307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } && {
12309 test -z "$ac_c_werror_flag" ||
12310 test ! -s conftest.err
12311 } && test -s conftest.$ac_objext; then
12312 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12313 else
12314 $as_echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12322 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12323 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12324 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then
12325 HAVE_GTK_FILE_SELECTION=yes
12326 else
12327 HAVE_GTK_FILE_SELECTION=no
12330 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12332 for ac_func in gtk_file_selection_new
12334 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12335 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12336 $as_echo_n "checking for $ac_func... " >&6; }
12337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12338 $as_echo_n "(cached) " >&6
12339 else
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h. */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12348 #define $ac_func innocuous_$ac_func
12350 /* System header to define __stub macros and hopefully few prototypes,
12351 which can conflict with char $ac_func (); below.
12352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12353 <limits.h> exists even on freestanding compilers. */
12355 #ifdef __STDC__
12356 # include <limits.h>
12357 #else
12358 # include <assert.h>
12359 #endif
12361 #undef $ac_func
12363 /* Override any GCC internal prototype to avoid an error.
12364 Use char because int might match the return type of a GCC
12365 builtin and then its argument prototype would still apply. */
12366 #ifdef __cplusplus
12367 extern "C"
12368 #endif
12369 char $ac_func ();
12370 /* The GNU C library defines this for functions which it implements
12371 to always fail with ENOSYS. Some functions are actually named
12372 something starting with __ and the normal name is an alias. */
12373 #if defined __stub_$ac_func || defined __stub___$ac_func
12374 choke me
12375 #endif
12378 main ()
12380 return $ac_func ();
12382 return 0;
12384 _ACEOF
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (ac_try="$ac_link"
12387 case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12390 esac
12391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12392 $as_echo "$ac_try_echo") >&5
12393 (eval "$ac_link") 2>conftest.er1
12394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } && {
12400 test -z "$ac_c_werror_flag" ||
12401 test ! -s conftest.err
12402 } && test -s conftest$ac_exeext && {
12403 test "$cross_compiling" = yes ||
12404 $as_test_x conftest$ac_exeext
12405 }; then
12406 eval "$as_ac_var=yes"
12407 else
12408 $as_echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12411 eval "$as_ac_var=no"
12414 rm -rf conftest.dSYM
12415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12416 conftest$ac_exeext conftest.$ac_ext
12418 ac_res=`eval 'as_val=${'$as_ac_var'}
12419 $as_echo "$as_val"'`
12420 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12421 $as_echo "$ac_res" >&6; }
12422 as_val=`eval 'as_val=${'$as_ac_var'}
12423 $as_echo "$as_val"'`
12424 if test "x$as_val" = x""yes; then
12425 cat >>confdefs.h <<_ACEOF
12426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12427 _ACEOF
12428 HAVE_GTK_FILE_SELECTION=yes
12429 else
12430 HAVE_GTK_FILE_SELECTION=no
12432 done
12436 HAVE_GTK_FILE_CHOOSER=no
12437 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12438 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12439 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12440 $as_echo_n "(cached) " >&6
12441 else
12442 cat >conftest.$ac_ext <<_ACEOF
12443 /* confdefs.h. */
12444 _ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 $ac_includes_default
12449 #include <gtk/gtk.h>
12452 main ()
12454 #ifndef GTK_TYPE_FILE_CHOOSER
12455 (void) GTK_TYPE_FILE_CHOOSER;
12456 #endif
12459 return 0;
12461 _ACEOF
12462 rm -f conftest.$ac_objext
12463 if { (ac_try="$ac_compile"
12464 case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467 esac
12468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12469 $as_echo "$ac_try_echo") >&5
12470 (eval "$ac_compile") 2>conftest.er1
12471 ac_status=$?
12472 grep -v '^ *+' conftest.er1 >conftest.err
12473 rm -f conftest.er1
12474 cat conftest.err >&5
12475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } && {
12477 test -z "$ac_c_werror_flag" ||
12478 test ! -s conftest.err
12479 } && test -s conftest.$ac_objext; then
12480 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12481 else
12482 $as_echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12491 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12492 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then
12493 HAVE_GTK_FILE_CHOOSER=yes
12494 else
12495 HAVE_GTK_FILE_CHOOSER=no
12498 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12500 for ac_func in gtk_file_chooser_dialog_new
12502 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12503 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12504 $as_echo_n "checking for $ac_func... " >&6; }
12505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12506 $as_echo_n "(cached) " >&6
12507 else
12508 cat >conftest.$ac_ext <<_ACEOF
12509 /* confdefs.h. */
12510 _ACEOF
12511 cat confdefs.h >>conftest.$ac_ext
12512 cat >>conftest.$ac_ext <<_ACEOF
12513 /* end confdefs.h. */
12514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12516 #define $ac_func innocuous_$ac_func
12518 /* System header to define __stub macros and hopefully few prototypes,
12519 which can conflict with char $ac_func (); below.
12520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12521 <limits.h> exists even on freestanding compilers. */
12523 #ifdef __STDC__
12524 # include <limits.h>
12525 #else
12526 # include <assert.h>
12527 #endif
12529 #undef $ac_func
12531 /* Override any GCC internal prototype to avoid an error.
12532 Use char because int might match the return type of a GCC
12533 builtin and then its argument prototype would still apply. */
12534 #ifdef __cplusplus
12535 extern "C"
12536 #endif
12537 char $ac_func ();
12538 /* The GNU C library defines this for functions which it implements
12539 to always fail with ENOSYS. Some functions are actually named
12540 something starting with __ and the normal name is an alias. */
12541 #if defined __stub_$ac_func || defined __stub___$ac_func
12542 choke me
12543 #endif
12546 main ()
12548 return $ac_func ();
12550 return 0;
12552 _ACEOF
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557 *) ac_try_echo=$ac_try;;
12558 esac
12559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12560 $as_echo "$ac_try_echo") >&5
12561 (eval "$ac_link") 2>conftest.er1
12562 ac_status=$?
12563 grep -v '^ *+' conftest.er1 >conftest.err
12564 rm -f conftest.er1
12565 cat conftest.err >&5
12566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567 (exit $ac_status); } && {
12568 test -z "$ac_c_werror_flag" ||
12569 test ! -s conftest.err
12570 } && test -s conftest$ac_exeext && {
12571 test "$cross_compiling" = yes ||
12572 $as_test_x conftest$ac_exeext
12573 }; then
12574 eval "$as_ac_var=yes"
12575 else
12576 $as_echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12579 eval "$as_ac_var=no"
12582 rm -rf conftest.dSYM
12583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12584 conftest$ac_exeext conftest.$ac_ext
12586 ac_res=`eval 'as_val=${'$as_ac_var'}
12587 $as_echo "$as_val"'`
12588 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12589 $as_echo "$ac_res" >&6; }
12590 as_val=`eval 'as_val=${'$as_ac_var'}
12591 $as_echo "$as_val"'`
12592 if test "x$as_val" = x""yes; then
12593 cat >>confdefs.h <<_ACEOF
12594 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12595 _ACEOF
12596 HAVE_GTK_FILE_CHOOSER=yes
12597 else
12598 HAVE_GTK_FILE_CHOOSER=no
12600 done
12604 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12605 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12607 cat >>confdefs.h <<\_ACEOF
12608 #define HAVE_GTK_FILE_BOTH 1
12609 _ACEOF
12613 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12614 HAVE_GTK_AND_PTHREAD=no
12616 for ac_header in pthread.h
12618 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12621 $as_echo_n "checking for $ac_header... " >&6; }
12622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12623 $as_echo_n "(cached) " >&6
12625 ac_res=`eval 'as_val=${'$as_ac_Header'}
12626 $as_echo "$as_val"'`
12627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12628 $as_echo "$ac_res" >&6; }
12629 else
12630 # Is the header compilable?
12631 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12632 $as_echo_n "checking $ac_header usability... " >&6; }
12633 cat >conftest.$ac_ext <<_ACEOF
12634 /* confdefs.h. */
12635 _ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 $ac_includes_default
12640 #include <$ac_header>
12641 _ACEOF
12642 rm -f conftest.$ac_objext
12643 if { (ac_try="$ac_compile"
12644 case "(($ac_try" in
12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12647 esac
12648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12649 $as_echo "$ac_try_echo") >&5
12650 (eval "$ac_compile") 2>conftest.er1
12651 ac_status=$?
12652 grep -v '^ *+' conftest.er1 >conftest.err
12653 rm -f conftest.er1
12654 cat conftest.err >&5
12655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
12660 ac_header_compiler=yes
12661 else
12662 $as_echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ac_header_compiler=no
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12670 $as_echo "$ac_header_compiler" >&6; }
12672 # Is the header present?
12673 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12674 $as_echo_n "checking $ac_header presence... " >&6; }
12675 cat >conftest.$ac_ext <<_ACEOF
12676 /* confdefs.h. */
12677 _ACEOF
12678 cat confdefs.h >>conftest.$ac_ext
12679 cat >>conftest.$ac_ext <<_ACEOF
12680 /* end confdefs.h. */
12681 #include <$ac_header>
12682 _ACEOF
12683 if { (ac_try="$ac_cpp conftest.$ac_ext"
12684 case "(($ac_try" in
12685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12686 *) ac_try_echo=$ac_try;;
12687 esac
12688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12689 $as_echo "$ac_try_echo") >&5
12690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12691 ac_status=$?
12692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
12695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } >/dev/null && {
12697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12698 test ! -s conftest.err
12699 }; then
12700 ac_header_preproc=yes
12701 else
12702 $as_echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12705 ac_header_preproc=no
12708 rm -f conftest.err conftest.$ac_ext
12709 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12710 $as_echo "$ac_header_preproc" >&6; }
12712 # So? What about this header?
12713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12714 yes:no: )
12715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12716 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12718 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12719 ac_header_preproc=yes
12721 no:yes:* )
12722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12723 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12725 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12727 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12729 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12730 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12731 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12733 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12736 esac
12737 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12738 $as_echo_n "checking for $ac_header... " >&6; }
12739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12740 $as_echo_n "(cached) " >&6
12741 else
12742 eval "$as_ac_Header=\$ac_header_preproc"
12744 ac_res=`eval 'as_val=${'$as_ac_Header'}
12745 $as_echo "$as_val"'`
12746 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12747 $as_echo "$ac_res" >&6; }
12750 as_val=`eval 'as_val=${'$as_ac_Header'}
12751 $as_echo "$as_val"'`
12752 if test "x$as_val" = x""yes; then
12753 cat >>confdefs.h <<_ACEOF
12754 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12755 _ACEOF
12759 done
12761 if test "$ac_cv_header_pthread_h"; then
12762 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12763 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12764 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12766 else
12767 ac_check_lib_save_LIBS=$LIBS
12768 LIBS="-lpthread $LIBS"
12769 cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h. */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h. */
12776 /* Override any GCC internal prototype to avoid an error.
12777 Use char because int might match the return type of a GCC
12778 builtin and then its argument prototype would still apply. */
12779 #ifdef __cplusplus
12780 extern "C"
12781 #endif
12782 char pthread_self ();
12784 main ()
12786 return pthread_self ();
12788 return 0;
12790 _ACEOF
12791 rm -f conftest.$ac_objext conftest$ac_exeext
12792 if { (ac_try="$ac_link"
12793 case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12796 esac
12797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12798 $as_echo "$ac_try_echo") >&5
12799 (eval "$ac_link") 2>conftest.er1
12800 ac_status=$?
12801 grep -v '^ *+' conftest.er1 >conftest.err
12802 rm -f conftest.er1
12803 cat conftest.err >&5
12804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest$ac_exeext && {
12809 test "$cross_compiling" = yes ||
12810 $as_test_x conftest$ac_exeext
12811 }; then
12812 ac_cv_lib_pthread_pthread_self=yes
12813 else
12814 $as_echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 ac_cv_lib_pthread_pthread_self=no
12820 rm -rf conftest.dSYM
12821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12822 conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12826 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12827 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then
12828 HAVE_GTK_AND_PTHREAD=yes
12832 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12833 case "${canonical}" in
12834 *-hpux*) ;;
12835 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12836 esac
12838 cat >>confdefs.h <<\_ACEOF
12839 #define HAVE_GTK_AND_PTHREAD 1
12840 _ACEOF
12846 HAVE_DBUS=no
12847 DBUS_OBJ=
12848 if test "${with_dbus}" = "yes"; then
12850 succeeded=no
12852 # Extract the first word of "pkg-config", so it can be a program name with args.
12853 set dummy pkg-config; ac_word=$2
12854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12855 $as_echo_n "checking for $ac_word... " >&6; }
12856 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12857 $as_echo_n "(cached) " >&6
12858 else
12859 case $PKG_CONFIG in
12860 [\\/]* | ?:[\\/]*)
12861 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865 for as_dir in $PATH
12867 IFS=$as_save_IFS
12868 test -z "$as_dir" && as_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12871 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12872 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12873 break 2
12875 done
12876 done
12877 IFS=$as_save_IFS
12879 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12881 esac
12883 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12884 if test -n "$PKG_CONFIG"; then
12885 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12886 $as_echo "$PKG_CONFIG" >&6; }
12887 else
12888 { $as_echo "$as_me:$LINENO: result: no" >&5
12889 $as_echo "no" >&6; }
12894 if test "$PKG_CONFIG" = "no" ; then
12895 HAVE_DBUS=no
12896 else
12897 PKG_CONFIG_MIN_VERSION=0.9.0
12898 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12899 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12900 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12902 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12903 { $as_echo "$as_me:$LINENO: result: yes" >&5
12904 $as_echo "yes" >&6; }
12905 succeeded=yes
12907 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12908 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12909 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12910 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12911 $as_echo "$DBUS_CFLAGS" >&6; }
12913 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12914 $as_echo_n "checking DBUS_LIBS... " >&6; }
12915 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12916 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12917 $as_echo "$DBUS_LIBS" >&6; }
12918 else
12919 { $as_echo "$as_me:$LINENO: result: no" >&5
12920 $as_echo "no" >&6; }
12921 DBUS_CFLAGS=""
12922 DBUS_LIBS=""
12923 ## If we have a custom action on failure, don't print errors, but
12924 ## do set a variable so people can do so.
12925 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12931 else
12932 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12933 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12937 if test $succeeded = yes; then
12938 HAVE_DBUS=yes
12939 else
12940 HAVE_DBUS=no
12943 if test "$HAVE_DBUS" = yes; then
12944 LIBS="$LIBS $DBUS_LIBS"
12946 cat >>confdefs.h <<\_ACEOF
12947 #define HAVE_DBUS 1
12948 _ACEOF
12951 for ac_func in dbus_watch_get_unix_fd
12953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12954 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12955 $as_echo_n "checking for $ac_func... " >&6; }
12956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12957 $as_echo_n "(cached) " >&6
12958 else
12959 cat >conftest.$ac_ext <<_ACEOF
12960 /* confdefs.h. */
12961 _ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12967 #define $ac_func innocuous_$ac_func
12969 /* System header to define __stub macros and hopefully few prototypes,
12970 which can conflict with char $ac_func (); below.
12971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12972 <limits.h> exists even on freestanding compilers. */
12974 #ifdef __STDC__
12975 # include <limits.h>
12976 #else
12977 # include <assert.h>
12978 #endif
12980 #undef $ac_func
12982 /* Override any GCC internal prototype to avoid an error.
12983 Use char because int might match the return type of a GCC
12984 builtin and then its argument prototype would still apply. */
12985 #ifdef __cplusplus
12986 extern "C"
12987 #endif
12988 char $ac_func ();
12989 /* The GNU C library defines this for functions which it implements
12990 to always fail with ENOSYS. Some functions are actually named
12991 something starting with __ and the normal name is an alias. */
12992 #if defined __stub_$ac_func || defined __stub___$ac_func
12993 choke me
12994 #endif
12997 main ()
12999 return $ac_func ();
13001 return 0;
13003 _ACEOF
13004 rm -f conftest.$ac_objext conftest$ac_exeext
13005 if { (ac_try="$ac_link"
13006 case "(($ac_try" in
13007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13008 *) ac_try_echo=$ac_try;;
13009 esac
13010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13011 $as_echo "$ac_try_echo") >&5
13012 (eval "$ac_link") 2>conftest.er1
13013 ac_status=$?
13014 grep -v '^ *+' conftest.er1 >conftest.err
13015 rm -f conftest.er1
13016 cat conftest.err >&5
13017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } && {
13019 test -z "$ac_c_werror_flag" ||
13020 test ! -s conftest.err
13021 } && test -s conftest$ac_exeext && {
13022 test "$cross_compiling" = yes ||
13023 $as_test_x conftest$ac_exeext
13024 }; then
13025 eval "$as_ac_var=yes"
13026 else
13027 $as_echo "$as_me: failed program was:" >&5
13028 sed 's/^/| /' conftest.$ac_ext >&5
13030 eval "$as_ac_var=no"
13033 rm -rf conftest.dSYM
13034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13035 conftest$ac_exeext conftest.$ac_ext
13037 ac_res=`eval 'as_val=${'$as_ac_var'}
13038 $as_echo "$as_val"'`
13039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13040 $as_echo "$ac_res" >&6; }
13041 as_val=`eval 'as_val=${'$as_ac_var'}
13042 $as_echo "$as_val"'`
13043 if test "x$as_val" = x""yes; then
13044 cat >>confdefs.h <<_ACEOF
13045 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13046 _ACEOF
13049 done
13051 DBUS_OBJ=dbusbind.o
13056 HAVE_GCONF=no
13057 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
13059 succeeded=no
13061 # Extract the first word of "pkg-config", so it can be a program name with args.
13062 set dummy pkg-config; ac_word=$2
13063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13064 $as_echo_n "checking for $ac_word... " >&6; }
13065 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13066 $as_echo_n "(cached) " >&6
13067 else
13068 case $PKG_CONFIG in
13069 [\\/]* | ?:[\\/]*)
13070 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13080 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13082 break 2
13084 done
13085 done
13086 IFS=$as_save_IFS
13088 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13090 esac
13092 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13093 if test -n "$PKG_CONFIG"; then
13094 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13095 $as_echo "$PKG_CONFIG" >&6; }
13096 else
13097 { $as_echo "$as_me:$LINENO: result: no" >&5
13098 $as_echo "no" >&6; }
13103 if test "$PKG_CONFIG" = "no" ; then
13104 HAVE_GCONF=no
13105 else
13106 PKG_CONFIG_MIN_VERSION=0.9.0
13107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13108 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
13109 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
13111 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
13112 { $as_echo "$as_me:$LINENO: result: yes" >&5
13113 $as_echo "yes" >&6; }
13114 succeeded=yes
13116 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
13117 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
13118 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13119 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
13120 $as_echo "$GCONF_CFLAGS" >&6; }
13122 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
13123 $as_echo_n "checking GCONF_LIBS... " >&6; }
13124 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
13125 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
13126 $as_echo "$GCONF_LIBS" >&6; }
13127 else
13128 { $as_echo "$as_me:$LINENO: result: no" >&5
13129 $as_echo "no" >&6; }
13130 GCONF_CFLAGS=""
13131 GCONF_LIBS=""
13132 ## If we have a custom action on failure, don't print errors, but
13133 ## do set a variable so people can do so.
13134 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
13140 else
13141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13146 if test $succeeded = yes; then
13147 HAVE_GCONF=yes
13148 else
13149 HAVE_GCONF=no
13152 if test "$HAVE_GCONF" = yes; then
13154 cat >>confdefs.h <<\_ACEOF
13155 #define HAVE_GCONF 1
13156 _ACEOF
13161 HAVE_LIBSELINUX=no
13162 LIBSELINUX_LIBS=
13163 if test "${with_selinux}" = "yes"; then
13164 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
13165 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
13166 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
13167 $as_echo_n "(cached) " >&6
13168 else
13169 ac_check_lib_save_LIBS=$LIBS
13170 LIBS="-lselinux $LIBS"
13171 cat >conftest.$ac_ext <<_ACEOF
13172 /* confdefs.h. */
13173 _ACEOF
13174 cat confdefs.h >>conftest.$ac_ext
13175 cat >>conftest.$ac_ext <<_ACEOF
13176 /* end confdefs.h. */
13178 /* Override any GCC internal prototype to avoid an error.
13179 Use char because int might match the return type of a GCC
13180 builtin and then its argument prototype would still apply. */
13181 #ifdef __cplusplus
13182 extern "C"
13183 #endif
13184 char lgetfilecon ();
13186 main ()
13188 return lgetfilecon ();
13190 return 0;
13192 _ACEOF
13193 rm -f conftest.$ac_objext conftest$ac_exeext
13194 if { (ac_try="$ac_link"
13195 case "(($ac_try" in
13196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13197 *) ac_try_echo=$ac_try;;
13198 esac
13199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13200 $as_echo "$ac_try_echo") >&5
13201 (eval "$ac_link") 2>conftest.er1
13202 ac_status=$?
13203 grep -v '^ *+' conftest.er1 >conftest.err
13204 rm -f conftest.er1
13205 cat conftest.err >&5
13206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } && {
13208 test -z "$ac_c_werror_flag" ||
13209 test ! -s conftest.err
13210 } && test -s conftest$ac_exeext && {
13211 test "$cross_compiling" = yes ||
13212 $as_test_x conftest$ac_exeext
13213 }; then
13214 ac_cv_lib_selinux_lgetfilecon=yes
13215 else
13216 $as_echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13219 ac_cv_lib_selinux_lgetfilecon=no
13222 rm -rf conftest.dSYM
13223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13224 conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS
13227 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
13228 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
13229 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then
13230 HAVE_LIBSELINUX=yes
13231 else
13232 HAVE_LIBSELINUX=no
13235 if test "$HAVE_LIBSELINUX" = yes; then
13237 cat >>confdefs.h <<\_ACEOF
13238 #define HAVE_LIBSELINUX 1
13239 _ACEOF
13241 LIBSELINUX_LIBS=-lselinux
13246 HAVE_XAW3D=no
13247 LUCID_LIBW=
13248 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
13249 if test "$with_xaw3d" != no; then
13250 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
13251 $as_echo_n "checking for xaw3d... " >&6; }
13252 if test "${emacs_cv_xaw3d+set}" = set; then
13253 $as_echo_n "(cached) " >&6
13254 else
13255 cat >conftest.$ac_ext <<_ACEOF
13256 /* confdefs.h. */
13257 _ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h. */
13262 #include <X11/Intrinsic.h>
13263 #include <X11/Xaw3d/Simple.h>
13265 main ()
13269 return 0;
13271 _ACEOF
13272 rm -f conftest.$ac_objext conftest$ac_exeext
13273 if { (ac_try="$ac_link"
13274 case "(($ac_try" in
13275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276 *) ac_try_echo=$ac_try;;
13277 esac
13278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13279 $as_echo "$ac_try_echo") >&5
13280 (eval "$ac_link") 2>conftest.er1
13281 ac_status=$?
13282 grep -v '^ *+' conftest.er1 >conftest.err
13283 rm -f conftest.er1
13284 cat conftest.err >&5
13285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } && {
13287 test -z "$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13289 } && test -s conftest$ac_exeext && {
13290 test "$cross_compiling" = yes ||
13291 $as_test_x conftest$ac_exeext
13292 }; then
13293 emacs_cv_xaw3d=yes
13294 else
13295 $as_echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 emacs_cv_xaw3d=no
13301 rm -rf conftest.dSYM
13302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13303 conftest$ac_exeext conftest.$ac_ext
13306 else
13307 emacs_cv_xaw3d=no
13309 if test $emacs_cv_xaw3d = yes; then
13310 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13311 $as_echo "yes; using Lucid toolkit" >&6; }
13312 USE_X_TOOLKIT=LUCID
13313 HAVE_XAW3D=yes
13314 LUCID_LIBW=-lXaw3d
13316 cat >>confdefs.h <<\_ACEOF
13317 #define HAVE_XAW3D 1
13318 _ACEOF
13320 else
13321 { $as_echo "$as_me:$LINENO: result: no" >&5
13322 $as_echo "no" >&6; }
13323 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13324 $as_echo_n "checking for libXaw... " >&6; }
13325 if test "${emacs_cv_xaw+set}" = set; then
13326 $as_echo_n "(cached) " >&6
13327 else
13328 cat >conftest.$ac_ext <<_ACEOF
13329 /* confdefs.h. */
13330 _ACEOF
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13335 #include <X11/Intrinsic.h>
13336 #include <X11/Xaw/Simple.h>
13338 main ()
13342 return 0;
13344 _ACEOF
13345 rm -f conftest.$ac_objext conftest$ac_exeext
13346 if { (ac_try="$ac_link"
13347 case "(($ac_try" in
13348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13349 *) ac_try_echo=$ac_try;;
13350 esac
13351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13352 $as_echo "$ac_try_echo") >&5
13353 (eval "$ac_link") 2>conftest.er1
13354 ac_status=$?
13355 grep -v '^ *+' conftest.er1 >conftest.err
13356 rm -f conftest.er1
13357 cat conftest.err >&5
13358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } && {
13360 test -z "$ac_c_werror_flag" ||
13361 test ! -s conftest.err
13362 } && test -s conftest$ac_exeext && {
13363 test "$cross_compiling" = yes ||
13364 $as_test_x conftest$ac_exeext
13365 }; then
13366 emacs_cv_xaw=yes
13367 else
13368 $as_echo "$as_me: failed program was:" >&5
13369 sed 's/^/| /' conftest.$ac_ext >&5
13371 emacs_cv_xaw=no
13374 rm -rf conftest.dSYM
13375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13376 conftest$ac_exeext conftest.$ac_ext
13379 if test $emacs_cv_xaw = yes; then
13380 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13381 $as_echo "yes; using Lucid toolkit" >&6; }
13382 USE_X_TOOLKIT=LUCID
13383 LUCID_LIBW=-lXaw
13384 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13385 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13386 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13387 { (exit 1); exit 1; }; }
13388 else
13389 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13390 $as_echo "no; do not use toolkit by default" >&6; }
13391 USE_X_TOOLKIT=none
13396 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13398 LIBXTR6=
13399 if test "${USE_X_TOOLKIT}" != "none"; then
13400 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13401 $as_echo_n "checking X11 toolkit version... " >&6; }
13402 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13403 $as_echo_n "(cached) " >&6
13404 else
13405 cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h. */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 #include <X11/Intrinsic.h>
13413 main ()
13415 #if XtSpecificationRelease < 6
13416 fail;
13417 #endif
13420 return 0;
13422 _ACEOF
13423 rm -f conftest.$ac_objext conftest$ac_exeext
13424 if { (ac_try="$ac_link"
13425 case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13428 esac
13429 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13430 $as_echo "$ac_try_echo") >&5
13431 (eval "$ac_link") 2>conftest.er1
13432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
13436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } && {
13438 test -z "$ac_c_werror_flag" ||
13439 test ! -s conftest.err
13440 } && test -s conftest$ac_exeext && {
13441 test "$cross_compiling" = yes ||
13442 $as_test_x conftest$ac_exeext
13443 }; then
13444 emacs_cv_x11_toolkit_version_6=yes
13445 else
13446 $as_echo "$as_me: failed program was:" >&5
13447 sed 's/^/| /' conftest.$ac_ext >&5
13449 emacs_cv_x11_toolkit_version_6=no
13452 rm -rf conftest.dSYM
13453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13454 conftest$ac_exeext conftest.$ac_ext
13457 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13458 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13459 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13460 $as_echo "6 or newer" >&6; }
13462 cat >>confdefs.h <<\_ACEOF
13463 #define HAVE_X11XTR6 1
13464 _ACEOF
13466 LIBXTR6="-lSM -lICE"
13467 case "$opsys" in
13468 ## Use libw.a along with X11R6 Xt.
13469 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13470 esac
13471 else
13472 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13473 $as_echo "before 6" >&6; }
13476 OLDLIBS="$LIBS"
13477 if test x$HAVE_X11XTR6 = xyes; then
13478 LIBS="-lXt -lSM -lICE $LIBS"
13479 else
13480 LIBS="-lXt $LIBS"
13483 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13484 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13485 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13486 $as_echo_n "(cached) " >&6
13487 else
13488 ac_check_lib_save_LIBS=$LIBS
13489 LIBS="-lXmu $LIBS"
13490 cat >conftest.$ac_ext <<_ACEOF
13491 /* confdefs.h. */
13492 _ACEOF
13493 cat confdefs.h >>conftest.$ac_ext
13494 cat >>conftest.$ac_ext <<_ACEOF
13495 /* end confdefs.h. */
13497 /* Override any GCC internal prototype to avoid an error.
13498 Use char because int might match the return type of a GCC
13499 builtin and then its argument prototype would still apply. */
13500 #ifdef __cplusplus
13501 extern "C"
13502 #endif
13503 char XmuConvertStandardSelection ();
13505 main ()
13507 return XmuConvertStandardSelection ();
13509 return 0;
13511 _ACEOF
13512 rm -f conftest.$ac_objext conftest$ac_exeext
13513 if { (ac_try="$ac_link"
13514 case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13517 esac
13518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13519 $as_echo "$ac_try_echo") >&5
13520 (eval "$ac_link") 2>conftest.er1
13521 ac_status=$?
13522 grep -v '^ *+' conftest.er1 >conftest.err
13523 rm -f conftest.er1
13524 cat conftest.err >&5
13525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } && {
13527 test -z "$ac_c_werror_flag" ||
13528 test ! -s conftest.err
13529 } && test -s conftest$ac_exeext && {
13530 test "$cross_compiling" = yes ||
13531 $as_test_x conftest$ac_exeext
13532 }; then
13533 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13534 else
13535 $as_echo "$as_me: failed program was:" >&5
13536 sed 's/^/| /' conftest.$ac_ext >&5
13538 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13541 rm -rf conftest.dSYM
13542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13543 conftest$ac_exeext conftest.$ac_ext
13544 LIBS=$ac_check_lib_save_LIBS
13546 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13547 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13548 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then
13549 cat >>confdefs.h <<_ACEOF
13550 #define HAVE_LIBXMU 1
13551 _ACEOF
13553 LIBS="-lXmu $LIBS"
13557 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13561 LIBXMU=-lXmu
13562 case "$machine" in
13563 ## These machines don't supply Xmu.
13564 hpux* | aix4-2 )
13565 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13567 esac
13570 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13571 if test "${HAVE_X11}" = "yes"; then
13572 if test "${USE_X_TOOLKIT}" != "none"; then
13574 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13575 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13576 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13577 $as_echo_n "(cached) " >&6
13578 else
13579 ac_check_lib_save_LIBS=$LIBS
13580 LIBS="-lXext $LIBS"
13581 cat >conftest.$ac_ext <<_ACEOF
13582 /* confdefs.h. */
13583 _ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13588 /* Override any GCC internal prototype to avoid an error.
13589 Use char because int might match the return type of a GCC
13590 builtin and then its argument prototype would still apply. */
13591 #ifdef __cplusplus
13592 extern "C"
13593 #endif
13594 char XShapeQueryExtension ();
13596 main ()
13598 return XShapeQueryExtension ();
13600 return 0;
13602 _ACEOF
13603 rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (ac_try="$ac_link"
13605 case "(($ac_try" in
13606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607 *) ac_try_echo=$ac_try;;
13608 esac
13609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13610 $as_echo "$ac_try_echo") >&5
13611 (eval "$ac_link") 2>conftest.er1
13612 ac_status=$?
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
13616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } && {
13618 test -z "$ac_c_werror_flag" ||
13619 test ! -s conftest.err
13620 } && test -s conftest$ac_exeext && {
13621 test "$cross_compiling" = yes ||
13622 $as_test_x conftest$ac_exeext
13623 }; then
13624 ac_cv_lib_Xext_XShapeQueryExtension=yes
13625 else
13626 $as_echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13629 ac_cv_lib_Xext_XShapeQueryExtension=no
13632 rm -rf conftest.dSYM
13633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13638 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13639 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then
13640 cat >>confdefs.h <<_ACEOF
13641 #define HAVE_LIBXEXT 1
13642 _ACEOF
13644 LIBS="-lXext $LIBS"
13651 LIBXP=
13652 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13653 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13654 $as_echo_n "checking for Motif version 2.1... " >&6; }
13655 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13656 $as_echo_n "(cached) " >&6
13657 else
13658 cat >conftest.$ac_ext <<_ACEOF
13659 /* confdefs.h. */
13660 _ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 #include <Xm/Xm.h>
13666 main ()
13668 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13669 int x = 5;
13670 #else
13671 Motif version prior to 2.1.
13672 #endif
13674 return 0;
13676 _ACEOF
13677 rm -f conftest.$ac_objext
13678 if { (ac_try="$ac_compile"
13679 case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13682 esac
13683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13684 $as_echo "$ac_try_echo") >&5
13685 (eval "$ac_compile") 2>conftest.er1
13686 ac_status=$?
13687 grep -v '^ *+' conftest.er1 >conftest.err
13688 rm -f conftest.er1
13689 cat conftest.err >&5
13690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691 (exit $ac_status); } && {
13692 test -z "$ac_c_werror_flag" ||
13693 test ! -s conftest.err
13694 } && test -s conftest.$ac_objext; then
13695 emacs_cv_motif_version_2_1=yes
13696 else
13697 $as_echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13700 emacs_cv_motif_version_2_1=no
13703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13706 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13707 if test $emacs_cv_motif_version_2_1 = yes; then
13708 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13709 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13710 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13711 $as_echo_n "(cached) " >&6
13712 else
13713 ac_check_lib_save_LIBS=$LIBS
13714 LIBS="-lXp $LIBS"
13715 cat >conftest.$ac_ext <<_ACEOF
13716 /* confdefs.h. */
13717 _ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13722 /* Override any GCC internal prototype to avoid an error.
13723 Use char because int might match the return type of a GCC
13724 builtin and then its argument prototype would still apply. */
13725 #ifdef __cplusplus
13726 extern "C"
13727 #endif
13728 char XpCreateContext ();
13730 main ()
13732 return XpCreateContext ();
13734 return 0;
13736 _ACEOF
13737 rm -f conftest.$ac_objext conftest$ac_exeext
13738 if { (ac_try="$ac_link"
13739 case "(($ac_try" in
13740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741 *) ac_try_echo=$ac_try;;
13742 esac
13743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13744 $as_echo "$ac_try_echo") >&5
13745 (eval "$ac_link") 2>conftest.er1
13746 ac_status=$?
13747 grep -v '^ *+' conftest.er1 >conftest.err
13748 rm -f conftest.er1
13749 cat conftest.err >&5
13750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } && {
13752 test -z "$ac_c_werror_flag" ||
13753 test ! -s conftest.err
13754 } && test -s conftest$ac_exeext && {
13755 test "$cross_compiling" = yes ||
13756 $as_test_x conftest$ac_exeext
13757 }; then
13758 ac_cv_lib_Xp_XpCreateContext=yes
13759 else
13760 $as_echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ac_cv_lib_Xp_XpCreateContext=no
13766 rm -rf conftest.dSYM
13767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13768 conftest$ac_exeext conftest.$ac_ext
13769 LIBS=$ac_check_lib_save_LIBS
13771 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13772 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13773 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then
13774 LIBXP=-lXp
13777 else
13778 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13779 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13780 if test "${emacs_cv_lesstif+set}" = set; then
13781 $as_echo_n "(cached) " >&6
13782 else
13783 # We put this in CFLAGS temporarily to precede other -I options
13784 # that might be in CFLAGS temporarily.
13785 # We put this in CPPFLAGS where it precedes the other -I options.
13786 OLD_CPPFLAGS=$CPPFLAGS
13787 OLD_CFLAGS=$CFLAGS
13788 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13789 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h. */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13798 main ()
13800 int x = 5;
13802 return 0;
13804 _ACEOF
13805 rm -f conftest.$ac_objext
13806 if { (ac_try="$ac_compile"
13807 case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810 esac
13811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13812 $as_echo "$ac_try_echo") >&5
13813 (eval "$ac_compile") 2>conftest.er1
13814 ac_status=$?
13815 grep -v '^ *+' conftest.er1 >conftest.err
13816 rm -f conftest.er1
13817 cat conftest.err >&5
13818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } && {
13820 test -z "$ac_c_werror_flag" ||
13821 test ! -s conftest.err
13822 } && test -s conftest.$ac_objext; then
13823 emacs_cv_lesstif=yes
13824 else
13825 $as_echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 emacs_cv_lesstif=no
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13833 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13834 $as_echo "$emacs_cv_lesstif" >&6; }
13835 if test $emacs_cv_lesstif = yes; then
13836 # Make sure this -I option remains in CPPFLAGS after it is set
13837 # back to REAL_CPPFLAGS.
13838 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13839 # have those other -I options anyway. Ultimately, having this
13840 # directory ultimately in CPPFLAGS will be enough.
13841 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13842 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13843 else
13844 CFLAGS=$OLD_CFLAGS
13845 CPPFLAGS=$OLD_CPPFLAGS
13852 USE_TOOLKIT_SCROLL_BARS=no
13853 if test "${with_toolkit_scroll_bars}" != "no"; then
13854 if test "${USE_X_TOOLKIT}" != "none"; then
13855 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13856 cat >>confdefs.h <<\_ACEOF
13857 #define USE_TOOLKIT_SCROLL_BARS 1
13858 _ACEOF
13860 HAVE_XAW3D=no
13861 USE_TOOLKIT_SCROLL_BARS=yes
13862 elif test "${HAVE_XAW3D}" = "yes"; then
13863 cat >>confdefs.h <<\_ACEOF
13864 #define USE_TOOLKIT_SCROLL_BARS 1
13865 _ACEOF
13867 USE_TOOLKIT_SCROLL_BARS=yes
13869 elif test "${HAVE_GTK}" = "yes"; then
13870 cat >>confdefs.h <<\_ACEOF
13871 #define USE_TOOLKIT_SCROLL_BARS 1
13872 _ACEOF
13874 USE_TOOLKIT_SCROLL_BARS=yes
13875 elif test "${HAVE_NS}" = "yes"; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define USE_TOOLKIT_SCROLL_BARS 1
13878 _ACEOF
13880 USE_TOOLKIT_SCROLL_BARS=yes
13884 cat >conftest.$ac_ext <<_ACEOF
13885 /* confdefs.h. */
13886 _ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13891 #include <X11/Xlib.h>
13892 #include <X11/Xresource.h>
13894 main ()
13896 XIMProc callback;
13898 return 0;
13900 _ACEOF
13901 rm -f conftest.$ac_objext
13902 if { (ac_try="$ac_compile"
13903 case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13906 esac
13907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13908 $as_echo "$ac_try_echo") >&5
13909 (eval "$ac_compile") 2>conftest.er1
13910 ac_status=$?
13911 grep -v '^ *+' conftest.er1 >conftest.err
13912 rm -f conftest.er1
13913 cat conftest.err >&5
13914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); } && {
13916 test -z "$ac_c_werror_flag" ||
13917 test ! -s conftest.err
13918 } && test -s conftest.$ac_objext; then
13919 HAVE_XIM=yes
13921 cat >>confdefs.h <<\_ACEOF
13922 #define HAVE_XIM 1
13923 _ACEOF
13925 else
13926 $as_echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 HAVE_XIM=no
13932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13935 if test "${with_xim}" != "no"; then
13937 cat >>confdefs.h <<\_ACEOF
13938 #define USE_XIM 1
13939 _ACEOF
13944 if test "${HAVE_XIM}" != "no"; then
13945 late_CFLAGS=$CFLAGS
13946 if test "$GCC" = yes; then
13947 CFLAGS="$CFLAGS --pedantic-errors"
13949 cat >conftest.$ac_ext <<_ACEOF
13950 /* confdefs.h. */
13951 _ACEOF
13952 cat confdefs.h >>conftest.$ac_ext
13953 cat >>conftest.$ac_ext <<_ACEOF
13954 /* end confdefs.h. */
13956 #include <X11/Xlib.h>
13957 #include <X11/Xresource.h>
13959 main ()
13961 Display *display;
13962 XrmDatabase db;
13963 char *res_name;
13964 char *res_class;
13965 XIMProc callback;
13966 XPointer *client_data;
13967 #ifndef __GNUC__
13968 /* If we're not using GCC, it's probably not XFree86, and this is
13969 probably right, but we can't use something like --pedantic-errors. */
13970 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13971 char*, XIMProc, XPointer*);
13972 #endif
13973 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13974 client_data);
13976 return 0;
13978 _ACEOF
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13983 *) ac_try_echo=$ac_try;;
13984 esac
13985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13986 $as_echo "$ac_try_echo") >&5
13987 (eval "$ac_compile") 2>conftest.er1
13988 ac_status=$?
13989 grep -v '^ *+' conftest.er1 >conftest.err
13990 rm -f conftest.er1
13991 cat conftest.err >&5
13992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } && {
13994 test -z "$ac_c_werror_flag" ||
13995 test ! -s conftest.err
13996 } && test -s conftest.$ac_objext; then
13997 emacs_cv_arg6_star=yes
13998 else
13999 $as_echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14007 if test "$emacs_cv_arg6_star" = yes; then
14008 cat >>confdefs.h <<\_ACEOF
14009 #define XRegisterIMInstantiateCallback_arg6 XPointer*
14010 _ACEOF
14012 else
14013 cat >>confdefs.h <<\_ACEOF
14014 #define XRegisterIMInstantiateCallback_arg6 XPointer
14015 _ACEOF
14018 CFLAGS=$late_CFLAGS
14021 ### Start of font-backend (under any platform) section.
14022 # (nothing here yet -- this is a placeholder)
14023 ### End of font-backend (under any platform) section.
14025 ### Start of font-backend (under X11) section.
14026 if test "${HAVE_X11}" = "yes"; then
14028 succeeded=no
14030 # Extract the first word of "pkg-config", so it can be a program name with args.
14031 set dummy pkg-config; ac_word=$2
14032 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14033 $as_echo_n "checking for $ac_word... " >&6; }
14034 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14035 $as_echo_n "(cached) " >&6
14036 else
14037 case $PKG_CONFIG in
14038 [\\/]* | ?:[\\/]*)
14039 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043 for as_dir in $PATH
14045 IFS=$as_save_IFS
14046 test -z "$as_dir" && as_dir=.
14047 for ac_exec_ext in '' $ac_executable_extensions; do
14048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14049 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14051 break 2
14053 done
14054 done
14055 IFS=$as_save_IFS
14057 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14059 esac
14061 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14062 if test -n "$PKG_CONFIG"; then
14063 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14064 $as_echo "$PKG_CONFIG" >&6; }
14065 else
14066 { $as_echo "$as_me:$LINENO: result: no" >&5
14067 $as_echo "no" >&6; }
14072 if test "$PKG_CONFIG" = "no" ; then
14073 HAVE_FC=no
14074 else
14075 PKG_CONFIG_MIN_VERSION=0.9.0
14076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14077 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
14078 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
14080 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
14081 { $as_echo "$as_me:$LINENO: result: yes" >&5
14082 $as_echo "yes" >&6; }
14083 succeeded=yes
14085 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
14086 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
14087 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
14088 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
14089 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
14091 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
14092 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
14093 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
14094 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
14095 $as_echo "$FONTCONFIG_LIBS" >&6; }
14096 else
14097 { $as_echo "$as_me:$LINENO: result: no" >&5
14098 $as_echo "no" >&6; }
14099 FONTCONFIG_CFLAGS=""
14100 FONTCONFIG_LIBS=""
14101 ## If we have a custom action on failure, don't print errors, but
14102 ## do set a variable so people can do so.
14103 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
14109 else
14110 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14111 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14115 if test $succeeded = yes; then
14116 HAVE_FC=yes
14117 else
14118 HAVE_FC=no
14122 ## Use -lXft if available, unless `--with-xft=no'.
14123 HAVE_XFT=maybe
14124 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
14125 with_xft="no";
14127 if test "x${with_xft}" != "xno"; then
14130 succeeded=no
14132 # Extract the first word of "pkg-config", so it can be a program name with args.
14133 set dummy pkg-config; ac_word=$2
14134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14135 $as_echo_n "checking for $ac_word... " >&6; }
14136 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14137 $as_echo_n "(cached) " >&6
14138 else
14139 case $PKG_CONFIG in
14140 [\\/]* | ?:[\\/]*)
14141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14145 for as_dir in $PATH
14147 IFS=$as_save_IFS
14148 test -z "$as_dir" && as_dir=.
14149 for ac_exec_ext in '' $ac_executable_extensions; do
14150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14152 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14153 break 2
14155 done
14156 done
14157 IFS=$as_save_IFS
14159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14161 esac
14163 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14164 if test -n "$PKG_CONFIG"; then
14165 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14166 $as_echo "$PKG_CONFIG" >&6; }
14167 else
14168 { $as_echo "$as_me:$LINENO: result: no" >&5
14169 $as_echo "no" >&6; }
14174 if test "$PKG_CONFIG" = "no" ; then
14175 HAVE_XFT=no
14176 else
14177 PKG_CONFIG_MIN_VERSION=0.9.0
14178 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14179 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
14180 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
14182 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
14183 { $as_echo "$as_me:$LINENO: result: yes" >&5
14184 $as_echo "yes" >&6; }
14185 succeeded=yes
14187 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
14188 $as_echo_n "checking XFT_CFLAGS... " >&6; }
14189 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14190 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
14191 $as_echo "$XFT_CFLAGS" >&6; }
14193 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
14194 $as_echo_n "checking XFT_LIBS... " >&6; }
14195 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
14196 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
14197 $as_echo "$XFT_LIBS" >&6; }
14198 else
14199 { $as_echo "$as_me:$LINENO: result: no" >&5
14200 $as_echo "no" >&6; }
14201 XFT_CFLAGS=""
14202 XFT_LIBS=""
14203 ## If we have a custom action on failure, don't print errors, but
14204 ## do set a variable so people can do so.
14205 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
14211 else
14212 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14213 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14217 if test $succeeded = yes; then
14219 else
14220 HAVE_XFT=no
14223 ## Because xftfont.c uses XRenderQueryExtension, we also
14224 ## need to link to -lXrender.
14225 HAVE_XRENDER=no
14226 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
14227 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
14228 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
14229 $as_echo_n "(cached) " >&6
14230 else
14231 ac_check_lib_save_LIBS=$LIBS
14232 LIBS="-lXrender $LIBS"
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h. */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h. */
14240 /* Override any GCC internal prototype to avoid an error.
14241 Use char because int might match the return type of a GCC
14242 builtin and then its argument prototype would still apply. */
14243 #ifdef __cplusplus
14244 extern "C"
14245 #endif
14246 char XRenderQueryExtension ();
14248 main ()
14250 return XRenderQueryExtension ();
14252 return 0;
14254 _ACEOF
14255 rm -f conftest.$ac_objext conftest$ac_exeext
14256 if { (ac_try="$ac_link"
14257 case "(($ac_try" in
14258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14259 *) ac_try_echo=$ac_try;;
14260 esac
14261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14262 $as_echo "$ac_try_echo") >&5
14263 (eval "$ac_link") 2>conftest.er1
14264 ac_status=$?
14265 grep -v '^ *+' conftest.er1 >conftest.err
14266 rm -f conftest.er1
14267 cat conftest.err >&5
14268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } && {
14270 test -z "$ac_c_werror_flag" ||
14271 test ! -s conftest.err
14272 } && test -s conftest$ac_exeext && {
14273 test "$cross_compiling" = yes ||
14274 $as_test_x conftest$ac_exeext
14275 }; then
14276 ac_cv_lib_Xrender_XRenderQueryExtension=yes
14277 else
14278 $as_echo "$as_me: failed program was:" >&5
14279 sed 's/^/| /' conftest.$ac_ext >&5
14281 ac_cv_lib_Xrender_XRenderQueryExtension=no
14284 rm -rf conftest.dSYM
14285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14286 conftest$ac_exeext conftest.$ac_ext
14287 LIBS=$ac_check_lib_save_LIBS
14289 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
14290 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
14291 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then
14292 HAVE_XRENDER=yes
14295 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
14296 OLD_CPPFLAGS="$CPPFLAGS"
14297 OLD_CFLAGS="$CFLAGS"
14298 OLD_LIBS="$LIBS"
14299 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
14300 CFLAGS="$CFLAGS $XFT_CFLAGS"
14301 XFT_LIBS="-lXrender $XFT_LIBS"
14302 LIBS="$XFT_LIBS $LIBS"
14303 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14304 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14305 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14306 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14307 $as_echo_n "(cached) " >&6
14309 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14310 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14311 else
14312 # Is the header compilable?
14313 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14314 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14315 cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h. */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h. */
14321 $ac_includes_default
14322 #include <X11/Xft/Xft.h>
14323 _ACEOF
14324 rm -f conftest.$ac_objext
14325 if { (ac_try="$ac_compile"
14326 case "(($ac_try" in
14327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14329 esac
14330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14331 $as_echo "$ac_try_echo") >&5
14332 (eval "$ac_compile") 2>conftest.er1
14333 ac_status=$?
14334 grep -v '^ *+' conftest.er1 >conftest.err
14335 rm -f conftest.er1
14336 cat conftest.err >&5
14337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest.$ac_objext; then
14342 ac_header_compiler=yes
14343 else
14344 $as_echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 ac_header_compiler=no
14350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14352 $as_echo "$ac_header_compiler" >&6; }
14354 # Is the header present?
14355 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14356 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14357 cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h. */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 #include <X11/Xft/Xft.h>
14364 _ACEOF
14365 if { (ac_try="$ac_cpp conftest.$ac_ext"
14366 case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14369 esac
14370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14371 $as_echo "$ac_try_echo") >&5
14372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14373 ac_status=$?
14374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
14377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } >/dev/null && {
14379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14380 test ! -s conftest.err
14381 }; then
14382 ac_header_preproc=yes
14383 else
14384 $as_echo "$as_me: failed program was:" >&5
14385 sed 's/^/| /' conftest.$ac_ext >&5
14387 ac_header_preproc=no
14390 rm -f conftest.err conftest.$ac_ext
14391 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14392 $as_echo "$ac_header_preproc" >&6; }
14394 # So? What about this header?
14395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14396 yes:no: )
14397 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14398 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14399 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14400 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14401 ac_header_preproc=yes
14403 no:yes:* )
14404 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14405 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14406 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14407 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14408 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14409 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14410 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14411 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14412 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14413 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14414 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14415 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14418 esac
14419 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14420 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14421 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14422 $as_echo_n "(cached) " >&6
14423 else
14424 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14426 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14427 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14430 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then
14431 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14432 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14433 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14434 $as_echo_n "(cached) " >&6
14435 else
14436 ac_check_lib_save_LIBS=$LIBS
14437 LIBS="-lXft $XFT_LIBS $LIBS"
14438 cat >conftest.$ac_ext <<_ACEOF
14439 /* confdefs.h. */
14440 _ACEOF
14441 cat confdefs.h >>conftest.$ac_ext
14442 cat >>conftest.$ac_ext <<_ACEOF
14443 /* end confdefs.h. */
14445 /* Override any GCC internal prototype to avoid an error.
14446 Use char because int might match the return type of a GCC
14447 builtin and then its argument prototype would still apply. */
14448 #ifdef __cplusplus
14449 extern "C"
14450 #endif
14451 char XftFontOpen ();
14453 main ()
14455 return XftFontOpen ();
14457 return 0;
14459 _ACEOF
14460 rm -f conftest.$ac_objext conftest$ac_exeext
14461 if { (ac_try="$ac_link"
14462 case "(($ac_try" in
14463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14464 *) ac_try_echo=$ac_try;;
14465 esac
14466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14467 $as_echo "$ac_try_echo") >&5
14468 (eval "$ac_link") 2>conftest.er1
14469 ac_status=$?
14470 grep -v '^ *+' conftest.er1 >conftest.err
14471 rm -f conftest.er1
14472 cat conftest.err >&5
14473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } && {
14475 test -z "$ac_c_werror_flag" ||
14476 test ! -s conftest.err
14477 } && test -s conftest$ac_exeext && {
14478 test "$cross_compiling" = yes ||
14479 $as_test_x conftest$ac_exeext
14480 }; then
14481 ac_cv_lib_Xft_XftFontOpen=yes
14482 else
14483 $as_echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 ac_cv_lib_Xft_XftFontOpen=no
14489 rm -rf conftest.dSYM
14490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14491 conftest$ac_exeext conftest.$ac_ext
14492 LIBS=$ac_check_lib_save_LIBS
14494 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14495 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14496 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then
14497 HAVE_XFT=yes
14504 if test "${HAVE_XFT}" = "yes"; then
14506 cat >>confdefs.h <<\_ACEOF
14507 #define HAVE_XFT 1
14508 _ACEOF
14511 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14512 else
14513 CPPFLAGS="$OLD_CPPFLAGS"
14514 CFLAGS="$OLD_CFLAGS"
14515 LIBS="$OLD_LIBS"
14516 fi # "${HAVE_XFT}" = "yes"
14517 fi # "$HAVE_XFT" != no
14518 fi # "x${with_xft}" != "xno"
14520 if test "$HAVE_XFT" != "yes"; then
14521 HAVE_XFT=no
14525 HAVE_FREETYPE=no
14526 ## We used to allow building with FreeType and without Xft.
14527 ## However, the ftx font backend driver is not in good shape.
14528 if test "${HAVE_XFT}" = "yes"; then
14529 HAVE_FREETYPE=yes
14530 FONTCONFIG_CFLAGS=
14531 FONTCONFIG_LIBS=
14534 HAVE_LIBOTF=no
14535 if test "${HAVE_FREETYPE}" = "yes"; then
14537 cat >>confdefs.h <<\_ACEOF
14538 #define HAVE_FREETYPE 1
14539 _ACEOF
14541 if test "${with_libotf}" != "no"; then
14543 succeeded=no
14545 # Extract the first word of "pkg-config", so it can be a program name with args.
14546 set dummy pkg-config; ac_word=$2
14547 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14548 $as_echo_n "checking for $ac_word... " >&6; }
14549 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14550 $as_echo_n "(cached) " >&6
14551 else
14552 case $PKG_CONFIG in
14553 [\\/]* | ?:[\\/]*)
14554 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14558 for as_dir in $PATH
14560 IFS=$as_save_IFS
14561 test -z "$as_dir" && as_dir=.
14562 for ac_exec_ext in '' $ac_executable_extensions; do
14563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14564 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14566 break 2
14568 done
14569 done
14570 IFS=$as_save_IFS
14572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14574 esac
14576 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14577 if test -n "$PKG_CONFIG"; then
14578 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14579 $as_echo "$PKG_CONFIG" >&6; }
14580 else
14581 { $as_echo "$as_me:$LINENO: result: no" >&5
14582 $as_echo "no" >&6; }
14587 if test "$PKG_CONFIG" = "no" ; then
14588 HAVE_LIBOTF=no
14589 else
14590 PKG_CONFIG_MIN_VERSION=0.9.0
14591 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14592 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14593 $as_echo_n "checking for libotf... " >&6; }
14595 if $PKG_CONFIG --exists "libotf" 2>&5; then
14596 { $as_echo "$as_me:$LINENO: result: yes" >&5
14597 $as_echo "yes" >&6; }
14598 succeeded=yes
14600 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14601 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14602 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14603 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14604 $as_echo "$LIBOTF_CFLAGS" >&6; }
14606 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14607 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14608 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14609 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14610 $as_echo "$LIBOTF_LIBS" >&6; }
14611 else
14612 { $as_echo "$as_me:$LINENO: result: no" >&5
14613 $as_echo "no" >&6; }
14614 LIBOTF_CFLAGS=""
14615 LIBOTF_LIBS=""
14616 ## If we have a custom action on failure, don't print errors, but
14617 ## do set a variable so people can do so.
14618 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14624 else
14625 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14626 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14630 if test $succeeded = yes; then
14631 HAVE_LIBOTF=yes
14632 else
14633 HAVE_LIBOTF=no
14636 if test "$HAVE_LIBOTF" = "yes"; then
14638 cat >>confdefs.h <<\_ACEOF
14639 #define HAVE_LIBOTF 1
14640 _ACEOF
14642 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14643 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14644 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14645 $as_echo_n "(cached) " >&6
14646 else
14647 ac_check_lib_save_LIBS=$LIBS
14648 LIBS="-lotf $LIBS"
14649 cat >conftest.$ac_ext <<_ACEOF
14650 /* confdefs.h. */
14651 _ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14656 /* Override any GCC internal prototype to avoid an error.
14657 Use char because int might match the return type of a GCC
14658 builtin and then its argument prototype would still apply. */
14659 #ifdef __cplusplus
14660 extern "C"
14661 #endif
14662 char OTF_get_variation_glyphs ();
14664 main ()
14666 return OTF_get_variation_glyphs ();
14668 return 0;
14670 _ACEOF
14671 rm -f conftest.$ac_objext conftest$ac_exeext
14672 if { (ac_try="$ac_link"
14673 case "(($ac_try" in
14674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14676 esac
14677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14678 $as_echo "$ac_try_echo") >&5
14679 (eval "$ac_link") 2>conftest.er1
14680 ac_status=$?
14681 grep -v '^ *+' conftest.er1 >conftest.err
14682 rm -f conftest.er1
14683 cat conftest.err >&5
14684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14685 (exit $ac_status); } && {
14686 test -z "$ac_c_werror_flag" ||
14687 test ! -s conftest.err
14688 } && test -s conftest$ac_exeext && {
14689 test "$cross_compiling" = yes ||
14690 $as_test_x conftest$ac_exeext
14691 }; then
14692 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14693 else
14694 $as_echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14697 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14700 rm -rf conftest.dSYM
14701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14702 conftest$ac_exeext conftest.$ac_ext
14703 LIBS=$ac_check_lib_save_LIBS
14705 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14706 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14707 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then
14708 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14709 else
14710 HAVE_OTF_GET_VARIATION_GLYPHS=no
14713 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14715 cat >>confdefs.h <<\_ACEOF
14716 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14717 _ACEOF
14724 HAVE_M17N_FLT=no
14725 if test "${HAVE_LIBOTF}" = yes; then
14726 if test "${with_m17n_flt}" != "no"; then
14728 succeeded=no
14730 # Extract the first word of "pkg-config", so it can be a program name with args.
14731 set dummy pkg-config; ac_word=$2
14732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14733 $as_echo_n "checking for $ac_word... " >&6; }
14734 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14735 $as_echo_n "(cached) " >&6
14736 else
14737 case $PKG_CONFIG in
14738 [\\/]* | ?:[\\/]*)
14739 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14743 for as_dir in $PATH
14745 IFS=$as_save_IFS
14746 test -z "$as_dir" && as_dir=.
14747 for ac_exec_ext in '' $ac_executable_extensions; do
14748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14749 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14750 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14751 break 2
14753 done
14754 done
14755 IFS=$as_save_IFS
14757 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14759 esac
14761 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14762 if test -n "$PKG_CONFIG"; then
14763 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14764 $as_echo "$PKG_CONFIG" >&6; }
14765 else
14766 { $as_echo "$as_me:$LINENO: result: no" >&5
14767 $as_echo "no" >&6; }
14772 if test "$PKG_CONFIG" = "no" ; then
14773 HAVE_M17N_FLT=no
14774 else
14775 PKG_CONFIG_MIN_VERSION=0.9.0
14776 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14777 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14778 $as_echo_n "checking for m17n-flt... " >&6; }
14780 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14781 { $as_echo "$as_me:$LINENO: result: yes" >&5
14782 $as_echo "yes" >&6; }
14783 succeeded=yes
14785 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14786 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14787 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14788 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14789 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14791 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14792 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14793 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14794 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14795 $as_echo "$M17N_FLT_LIBS" >&6; }
14796 else
14797 { $as_echo "$as_me:$LINENO: result: no" >&5
14798 $as_echo "no" >&6; }
14799 M17N_FLT_CFLAGS=""
14800 M17N_FLT_LIBS=""
14801 ## If we have a custom action on failure, don't print errors, but
14802 ## do set a variable so people can do so.
14803 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14809 else
14810 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14811 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14815 if test $succeeded = yes; then
14816 HAVE_M17N_FLT=yes
14817 else
14818 HAVE_M17N_FLT=no
14821 if test "$HAVE_M17N_FLT" = "yes"; then
14823 cat >>confdefs.h <<\_ACEOF
14824 #define HAVE_M17N_FLT 1
14825 _ACEOF
14830 else
14831 HAVE_XFT=no
14832 HAVE_FREETYPE=no
14833 HAVE_LIBOTF=no
14834 HAVE_M17N_FLT=no
14837 FONT_OBJ=xfont.o
14838 if test "$HAVE_XFT" = "yes"; then
14839 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14840 elif test "$HAVE_FREETYPE" = "yes"; then
14841 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14845 ### End of font-backend (under X11) section.
14856 ### Use -lXpm if available, unless `--with-xpm=no'.
14857 HAVE_XPM=no
14858 LIBXPM=
14859 if test "${HAVE_X11}" = "yes"; then
14860 if test "${with_xpm}" != "no"; then
14861 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14862 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14863 $as_echo_n "checking for X11/xpm.h... " >&6; }
14864 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14865 $as_echo_n "(cached) " >&6
14867 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14868 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14869 else
14870 # Is the header compilable?
14871 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14872 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14873 cat >conftest.$ac_ext <<_ACEOF
14874 /* confdefs.h. */
14875 _ACEOF
14876 cat confdefs.h >>conftest.$ac_ext
14877 cat >>conftest.$ac_ext <<_ACEOF
14878 /* end confdefs.h. */
14879 $ac_includes_default
14880 #include <X11/xpm.h>
14881 _ACEOF
14882 rm -f conftest.$ac_objext
14883 if { (ac_try="$ac_compile"
14884 case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887 esac
14888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14889 $as_echo "$ac_try_echo") >&5
14890 (eval "$ac_compile") 2>conftest.er1
14891 ac_status=$?
14892 grep -v '^ *+' conftest.er1 >conftest.err
14893 rm -f conftest.er1
14894 cat conftest.err >&5
14895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } && {
14897 test -z "$ac_c_werror_flag" ||
14898 test ! -s conftest.err
14899 } && test -s conftest.$ac_objext; then
14900 ac_header_compiler=yes
14901 else
14902 $as_echo "$as_me: failed program was:" >&5
14903 sed 's/^/| /' conftest.$ac_ext >&5
14905 ac_header_compiler=no
14908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14910 $as_echo "$ac_header_compiler" >&6; }
14912 # Is the header present?
14913 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14914 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14915 cat >conftest.$ac_ext <<_ACEOF
14916 /* confdefs.h. */
14917 _ACEOF
14918 cat confdefs.h >>conftest.$ac_ext
14919 cat >>conftest.$ac_ext <<_ACEOF
14920 /* end confdefs.h. */
14921 #include <X11/xpm.h>
14922 _ACEOF
14923 if { (ac_try="$ac_cpp conftest.$ac_ext"
14924 case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927 esac
14928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14929 $as_echo "$ac_try_echo") >&5
14930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } >/dev/null && {
14937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14938 test ! -s conftest.err
14939 }; then
14940 ac_header_preproc=yes
14941 else
14942 $as_echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.$ac_ext >&5
14945 ac_header_preproc=no
14948 rm -f conftest.err conftest.$ac_ext
14949 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14950 $as_echo "$ac_header_preproc" >&6; }
14952 # So? What about this header?
14953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14954 yes:no: )
14955 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14956 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14957 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14958 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14959 ac_header_preproc=yes
14961 no:yes:* )
14962 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14963 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14964 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14965 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14966 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14967 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14968 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14969 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14970 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14971 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14972 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14973 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14976 esac
14977 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14978 $as_echo_n "checking for X11/xpm.h... " >&6; }
14979 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14980 $as_echo_n "(cached) " >&6
14981 else
14982 ac_cv_header_X11_xpm_h=$ac_header_preproc
14984 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14985 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14988 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then
14989 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14990 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14991 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14992 $as_echo_n "(cached) " >&6
14993 else
14994 ac_check_lib_save_LIBS=$LIBS
14995 LIBS="-lXpm -lX11 $LIBS"
14996 cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h. */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15003 /* Override any GCC internal prototype to avoid an error.
15004 Use char because int might match the return type of a GCC
15005 builtin and then its argument prototype would still apply. */
15006 #ifdef __cplusplus
15007 extern "C"
15008 #endif
15009 char XpmReadFileToPixmap ();
15011 main ()
15013 return XpmReadFileToPixmap ();
15015 return 0;
15017 _ACEOF
15018 rm -f conftest.$ac_objext conftest$ac_exeext
15019 if { (ac_try="$ac_link"
15020 case "(($ac_try" in
15021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15022 *) ac_try_echo=$ac_try;;
15023 esac
15024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15025 $as_echo "$ac_try_echo") >&5
15026 (eval "$ac_link") 2>conftest.er1
15027 ac_status=$?
15028 grep -v '^ *+' conftest.er1 >conftest.err
15029 rm -f conftest.er1
15030 cat conftest.err >&5
15031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } && {
15033 test -z "$ac_c_werror_flag" ||
15034 test ! -s conftest.err
15035 } && test -s conftest$ac_exeext && {
15036 test "$cross_compiling" = yes ||
15037 $as_test_x conftest$ac_exeext
15038 }; then
15039 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
15040 else
15041 $as_echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15044 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
15047 rm -rf conftest.dSYM
15048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15049 conftest$ac_exeext conftest.$ac_ext
15050 LIBS=$ac_check_lib_save_LIBS
15052 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
15053 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
15054 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then
15055 HAVE_XPM=yes
15061 if test "${HAVE_XPM}" = "yes"; then
15062 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
15063 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
15064 cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h. */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h. */
15070 #include "X11/xpm.h"
15071 #ifndef XpmReturnAllocPixels
15072 no_return_alloc_pixels
15073 #endif
15075 _ACEOF
15076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15077 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
15078 HAVE_XPM=no
15079 else
15080 HAVE_XPM=yes
15082 rm -f conftest*
15085 if test "${HAVE_XPM}" = "yes"; then
15086 { $as_echo "$as_me:$LINENO: result: yes" >&5
15087 $as_echo "yes" >&6; }
15088 else
15089 { $as_echo "$as_me:$LINENO: result: no" >&5
15090 $as_echo "no" >&6; }
15095 if test "${HAVE_XPM}" = "yes"; then
15097 cat >>confdefs.h <<\_ACEOF
15098 #define HAVE_XPM 1
15099 _ACEOF
15101 LIBXPM=-lXpm
15106 ### Use -ljpeg if available, unless `--with-jpeg=no'.
15107 HAVE_JPEG=no
15108 LIBJPEG=
15109 if test "${HAVE_X11}" = "yes"; then
15110 if test "${with_jpeg}" != "no"; then
15111 if test "${ac_cv_header_jerror_h+set}" = set; then
15112 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15113 $as_echo_n "checking for jerror.h... " >&6; }
15114 if test "${ac_cv_header_jerror_h+set}" = set; then
15115 $as_echo_n "(cached) " >&6
15117 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15118 $as_echo "$ac_cv_header_jerror_h" >&6; }
15119 else
15120 # Is the header compilable?
15121 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
15122 $as_echo_n "checking jerror.h usability... " >&6; }
15123 cat >conftest.$ac_ext <<_ACEOF
15124 /* confdefs.h. */
15125 _ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15129 $ac_includes_default
15130 #include <jerror.h>
15131 _ACEOF
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136 *) ac_try_echo=$ac_try;;
15137 esac
15138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15139 $as_echo "$ac_try_echo") >&5
15140 (eval "$ac_compile") 2>conftest.er1
15141 ac_status=$?
15142 grep -v '^ *+' conftest.er1 >conftest.err
15143 rm -f conftest.er1
15144 cat conftest.err >&5
15145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); } && {
15147 test -z "$ac_c_werror_flag" ||
15148 test ! -s conftest.err
15149 } && test -s conftest.$ac_objext; then
15150 ac_header_compiler=yes
15151 else
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15155 ac_header_compiler=no
15158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15160 $as_echo "$ac_header_compiler" >&6; }
15162 # Is the header present?
15163 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
15164 $as_echo_n "checking jerror.h presence... " >&6; }
15165 cat >conftest.$ac_ext <<_ACEOF
15166 /* confdefs.h. */
15167 _ACEOF
15168 cat confdefs.h >>conftest.$ac_ext
15169 cat >>conftest.$ac_ext <<_ACEOF
15170 /* end confdefs.h. */
15171 #include <jerror.h>
15172 _ACEOF
15173 if { (ac_try="$ac_cpp conftest.$ac_ext"
15174 case "(($ac_try" in
15175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176 *) ac_try_echo=$ac_try;;
15177 esac
15178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15179 $as_echo "$ac_try_echo") >&5
15180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15181 ac_status=$?
15182 grep -v '^ *+' conftest.er1 >conftest.err
15183 rm -f conftest.er1
15184 cat conftest.err >&5
15185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } >/dev/null && {
15187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15188 test ! -s conftest.err
15189 }; then
15190 ac_header_preproc=yes
15191 else
15192 $as_echo "$as_me: failed program was:" >&5
15193 sed 's/^/| /' conftest.$ac_ext >&5
15195 ac_header_preproc=no
15198 rm -f conftest.err conftest.$ac_ext
15199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15200 $as_echo "$ac_header_preproc" >&6; }
15202 # So? What about this header?
15203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15204 yes:no: )
15205 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15206 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15207 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15208 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15209 ac_header_preproc=yes
15211 no:yes:* )
15212 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15213 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15214 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15215 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15216 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15217 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15218 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15219 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15220 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15221 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15222 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15223 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15226 esac
15227 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15228 $as_echo_n "checking for jerror.h... " >&6; }
15229 if test "${ac_cv_header_jerror_h+set}" = set; then
15230 $as_echo_n "(cached) " >&6
15231 else
15232 ac_cv_header_jerror_h=$ac_header_preproc
15234 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15235 $as_echo "$ac_cv_header_jerror_h" >&6; }
15238 if test "x$ac_cv_header_jerror_h" = x""yes; then
15239 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
15240 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
15241 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
15242 $as_echo_n "(cached) " >&6
15243 else
15244 ac_check_lib_save_LIBS=$LIBS
15245 LIBS="-ljpeg $LIBS"
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h. */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15253 /* Override any GCC internal prototype to avoid an error.
15254 Use char because int might match the return type of a GCC
15255 builtin and then its argument prototype would still apply. */
15256 #ifdef __cplusplus
15257 extern "C"
15258 #endif
15259 char jpeg_destroy_compress ();
15261 main ()
15263 return jpeg_destroy_compress ();
15265 return 0;
15267 _ACEOF
15268 rm -f conftest.$ac_objext conftest$ac_exeext
15269 if { (ac_try="$ac_link"
15270 case "(($ac_try" in
15271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15272 *) ac_try_echo=$ac_try;;
15273 esac
15274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15275 $as_echo "$ac_try_echo") >&5
15276 (eval "$ac_link") 2>conftest.er1
15277 ac_status=$?
15278 grep -v '^ *+' conftest.er1 >conftest.err
15279 rm -f conftest.er1
15280 cat conftest.err >&5
15281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282 (exit $ac_status); } && {
15283 test -z "$ac_c_werror_flag" ||
15284 test ! -s conftest.err
15285 } && test -s conftest$ac_exeext && {
15286 test "$cross_compiling" = yes ||
15287 $as_test_x conftest$ac_exeext
15288 }; then
15289 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
15290 else
15291 $as_echo "$as_me: failed program was:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15294 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15297 rm -rf conftest.dSYM
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299 conftest$ac_exeext conftest.$ac_ext
15300 LIBS=$ac_check_lib_save_LIBS
15302 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15303 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15304 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then
15305 HAVE_JPEG=yes
15314 if test "${HAVE_JPEG}" = "yes"; then
15315 cat >>confdefs.h <<\_ACEOF
15316 #define HAVE_JPEG 1
15317 _ACEOF
15319 cat >conftest.$ac_ext <<_ACEOF
15320 /* confdefs.h. */
15321 _ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 #include <jpeglib.h>
15326 version=JPEG_LIB_VERSION
15328 _ACEOF
15329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15330 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15331 cat >>confdefs.h <<\_ACEOF
15332 #define HAVE_JPEG 1
15333 _ACEOF
15335 else
15336 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15337 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15338 HAVE_JPEG=no
15340 rm -f conftest*
15343 if test "${HAVE_JPEG}" = "yes"; then
15344 LIBJPEG=-ljpeg
15349 ### Use -lpng if available, unless `--with-png=no'.
15350 HAVE_PNG=no
15351 LIBPNG=
15352 if test "${HAVE_X11}" = "yes"; then
15353 if test "${with_png}" != "no"; then
15354 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15355 # in /usr/include/libpng.
15358 for ac_header in png.h libpng/png.h
15360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15362 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15363 $as_echo_n "checking for $ac_header... " >&6; }
15364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15365 $as_echo_n "(cached) " >&6
15367 ac_res=`eval 'as_val=${'$as_ac_Header'}
15368 $as_echo "$as_val"'`
15369 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15370 $as_echo "$ac_res" >&6; }
15371 else
15372 # Is the header compilable?
15373 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15374 $as_echo_n "checking $ac_header usability... " >&6; }
15375 cat >conftest.$ac_ext <<_ACEOF
15376 /* confdefs.h. */
15377 _ACEOF
15378 cat confdefs.h >>conftest.$ac_ext
15379 cat >>conftest.$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 $ac_includes_default
15382 #include <$ac_header>
15383 _ACEOF
15384 rm -f conftest.$ac_objext
15385 if { (ac_try="$ac_compile"
15386 case "(($ac_try" in
15387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388 *) ac_try_echo=$ac_try;;
15389 esac
15390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15391 $as_echo "$ac_try_echo") >&5
15392 (eval "$ac_compile") 2>conftest.er1
15393 ac_status=$?
15394 grep -v '^ *+' conftest.er1 >conftest.err
15395 rm -f conftest.er1
15396 cat conftest.err >&5
15397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398 (exit $ac_status); } && {
15399 test -z "$ac_c_werror_flag" ||
15400 test ! -s conftest.err
15401 } && test -s conftest.$ac_objext; then
15402 ac_header_compiler=yes
15403 else
15404 $as_echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.$ac_ext >&5
15407 ac_header_compiler=no
15410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15411 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15412 $as_echo "$ac_header_compiler" >&6; }
15414 # Is the header present?
15415 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15416 $as_echo_n "checking $ac_header presence... " >&6; }
15417 cat >conftest.$ac_ext <<_ACEOF
15418 /* confdefs.h. */
15419 _ACEOF
15420 cat confdefs.h >>conftest.$ac_ext
15421 cat >>conftest.$ac_ext <<_ACEOF
15422 /* end confdefs.h. */
15423 #include <$ac_header>
15424 _ACEOF
15425 if { (ac_try="$ac_cpp conftest.$ac_ext"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429 esac
15430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15431 $as_echo "$ac_try_echo") >&5
15432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15433 ac_status=$?
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
15437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } >/dev/null && {
15439 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15440 test ! -s conftest.err
15441 }; then
15442 ac_header_preproc=yes
15443 else
15444 $as_echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 ac_header_preproc=no
15450 rm -f conftest.err conftest.$ac_ext
15451 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15452 $as_echo "$ac_header_preproc" >&6; }
15454 # So? What about this header?
15455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15456 yes:no: )
15457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15458 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15460 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15461 ac_header_preproc=yes
15463 no:yes:* )
15464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15465 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15466 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15467 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15469 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15471 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15473 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15475 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15478 esac
15479 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15480 $as_echo_n "checking for $ac_header... " >&6; }
15481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15482 $as_echo_n "(cached) " >&6
15483 else
15484 eval "$as_ac_Header=\$ac_header_preproc"
15486 ac_res=`eval 'as_val=${'$as_ac_Header'}
15487 $as_echo "$as_val"'`
15488 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15489 $as_echo "$ac_res" >&6; }
15492 as_val=`eval 'as_val=${'$as_ac_Header'}
15493 $as_echo "$as_val"'`
15494 if test "x$as_val" = x""yes; then
15495 cat >>confdefs.h <<_ACEOF
15496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15497 _ACEOF
15501 done
15503 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15504 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15505 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15506 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15507 $as_echo_n "(cached) " >&6
15508 else
15509 ac_check_lib_save_LIBS=$LIBS
15510 LIBS="-lpng -lz -lm $LIBS"
15511 cat >conftest.$ac_ext <<_ACEOF
15512 /* confdefs.h. */
15513 _ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15518 /* Override any GCC internal prototype to avoid an error.
15519 Use char because int might match the return type of a GCC
15520 builtin and then its argument prototype would still apply. */
15521 #ifdef __cplusplus
15522 extern "C"
15523 #endif
15524 char png_get_channels ();
15526 main ()
15528 return png_get_channels ();
15530 return 0;
15532 _ACEOF
15533 rm -f conftest.$ac_objext conftest$ac_exeext
15534 if { (ac_try="$ac_link"
15535 case "(($ac_try" in
15536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15537 *) ac_try_echo=$ac_try;;
15538 esac
15539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15540 $as_echo "$ac_try_echo") >&5
15541 (eval "$ac_link") 2>conftest.er1
15542 ac_status=$?
15543 grep -v '^ *+' conftest.er1 >conftest.err
15544 rm -f conftest.er1
15545 cat conftest.err >&5
15546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } && {
15548 test -z "$ac_c_werror_flag" ||
15549 test ! -s conftest.err
15550 } && test -s conftest$ac_exeext && {
15551 test "$cross_compiling" = yes ||
15552 $as_test_x conftest$ac_exeext
15553 }; then
15554 ac_cv_lib_png_png_get_channels=yes
15555 else
15556 $as_echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 ac_cv_lib_png_png_get_channels=no
15562 rm -rf conftest.dSYM
15563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15564 conftest$ac_exeext conftest.$ac_ext
15565 LIBS=$ac_check_lib_save_LIBS
15567 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15568 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15569 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then
15570 HAVE_PNG=yes
15576 if test "${HAVE_PNG}" = "yes"; then
15578 cat >>confdefs.h <<\_ACEOF
15579 #define HAVE_PNG 1
15580 _ACEOF
15582 LIBPNG="-lpng -lz -lm"
15587 ### Use -ltiff if available, unless `--with-tiff=no'.
15588 HAVE_TIFF=no
15589 LIBTIFF=
15590 if test "${HAVE_X11}" = "yes"; then
15591 if test "${with_tiff}" != "no"; then
15592 if test "${ac_cv_header_tiffio_h+set}" = set; then
15593 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15594 $as_echo_n "checking for tiffio.h... " >&6; }
15595 if test "${ac_cv_header_tiffio_h+set}" = set; then
15596 $as_echo_n "(cached) " >&6
15598 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15599 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15600 else
15601 # Is the header compilable?
15602 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15603 $as_echo_n "checking tiffio.h usability... " >&6; }
15604 cat >conftest.$ac_ext <<_ACEOF
15605 /* confdefs.h. */
15606 _ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h. */
15610 $ac_includes_default
15611 #include <tiffio.h>
15612 _ACEOF
15613 rm -f conftest.$ac_objext
15614 if { (ac_try="$ac_compile"
15615 case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15618 esac
15619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15620 $as_echo "$ac_try_echo") >&5
15621 (eval "$ac_compile") 2>conftest.er1
15622 ac_status=$?
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
15626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } && {
15628 test -z "$ac_c_werror_flag" ||
15629 test ! -s conftest.err
15630 } && test -s conftest.$ac_objext; then
15631 ac_header_compiler=yes
15632 else
15633 $as_echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 ac_header_compiler=no
15639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15640 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15641 $as_echo "$ac_header_compiler" >&6; }
15643 # Is the header present?
15644 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15645 $as_echo_n "checking tiffio.h presence... " >&6; }
15646 cat >conftest.$ac_ext <<_ACEOF
15647 /* confdefs.h. */
15648 _ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15652 #include <tiffio.h>
15653 _ACEOF
15654 if { (ac_try="$ac_cpp conftest.$ac_ext"
15655 case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15658 esac
15659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15660 $as_echo "$ac_try_echo") >&5
15661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15662 ac_status=$?
15663 grep -v '^ *+' conftest.er1 >conftest.err
15664 rm -f conftest.er1
15665 cat conftest.err >&5
15666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); } >/dev/null && {
15668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15669 test ! -s conftest.err
15670 }; then
15671 ac_header_preproc=yes
15672 else
15673 $as_echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ac_header_preproc=no
15679 rm -f conftest.err conftest.$ac_ext
15680 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15681 $as_echo "$ac_header_preproc" >&6; }
15683 # So? What about this header?
15684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15685 yes:no: )
15686 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15687 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15688 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15689 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15690 ac_header_preproc=yes
15692 no:yes:* )
15693 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15694 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15695 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15696 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15697 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15698 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15699 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15700 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15701 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15702 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15703 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15704 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15707 esac
15708 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15709 $as_echo_n "checking for tiffio.h... " >&6; }
15710 if test "${ac_cv_header_tiffio_h+set}" = set; then
15711 $as_echo_n "(cached) " >&6
15712 else
15713 ac_cv_header_tiffio_h=$ac_header_preproc
15715 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15716 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15719 if test "x$ac_cv_header_tiffio_h" = x""yes; then
15720 tifflibs="-lz -lm"
15721 # At least one tiff package requires the jpeg library.
15722 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15723 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15724 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15725 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15726 $as_echo_n "(cached) " >&6
15727 else
15728 ac_check_lib_save_LIBS=$LIBS
15729 LIBS="-ltiff $tifflibs $LIBS"
15730 cat >conftest.$ac_ext <<_ACEOF
15731 /* confdefs.h. */
15732 _ACEOF
15733 cat confdefs.h >>conftest.$ac_ext
15734 cat >>conftest.$ac_ext <<_ACEOF
15735 /* end confdefs.h. */
15737 /* Override any GCC internal prototype to avoid an error.
15738 Use char because int might match the return type of a GCC
15739 builtin and then its argument prototype would still apply. */
15740 #ifdef __cplusplus
15741 extern "C"
15742 #endif
15743 char TIFFGetVersion ();
15745 main ()
15747 return TIFFGetVersion ();
15749 return 0;
15751 _ACEOF
15752 rm -f conftest.$ac_objext conftest$ac_exeext
15753 if { (ac_try="$ac_link"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15757 esac
15758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15759 $as_echo "$ac_try_echo") >&5
15760 (eval "$ac_link") 2>conftest.er1
15761 ac_status=$?
15762 grep -v '^ *+' conftest.er1 >conftest.err
15763 rm -f conftest.er1
15764 cat conftest.err >&5
15765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } && {
15767 test -z "$ac_c_werror_flag" ||
15768 test ! -s conftest.err
15769 } && test -s conftest$ac_exeext && {
15770 test "$cross_compiling" = yes ||
15771 $as_test_x conftest$ac_exeext
15772 }; then
15773 ac_cv_lib_tiff_TIFFGetVersion=yes
15774 else
15775 $as_echo "$as_me: failed program was:" >&5
15776 sed 's/^/| /' conftest.$ac_ext >&5
15778 ac_cv_lib_tiff_TIFFGetVersion=no
15781 rm -rf conftest.dSYM
15782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15783 conftest$ac_exeext conftest.$ac_ext
15784 LIBS=$ac_check_lib_save_LIBS
15786 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15787 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15788 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then
15789 HAVE_TIFF=yes
15797 if test "${HAVE_TIFF}" = "yes"; then
15799 cat >>confdefs.h <<\_ACEOF
15800 #define HAVE_TIFF 1
15801 _ACEOF
15803 LIBTIFF=-ltiff
15808 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15809 HAVE_GIF=no
15810 LIBGIF=
15811 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15812 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15813 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15814 $as_echo_n "checking for gif_lib.h... " >&6; }
15815 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15816 $as_echo_n "(cached) " >&6
15818 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15819 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15820 else
15821 # Is the header compilable?
15822 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15823 $as_echo_n "checking gif_lib.h usability... " >&6; }
15824 cat >conftest.$ac_ext <<_ACEOF
15825 /* confdefs.h. */
15826 _ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h. */
15830 $ac_includes_default
15831 #include <gif_lib.h>
15832 _ACEOF
15833 rm -f conftest.$ac_objext
15834 if { (ac_try="$ac_compile"
15835 case "(($ac_try" in
15836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837 *) ac_try_echo=$ac_try;;
15838 esac
15839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15840 $as_echo "$ac_try_echo") >&5
15841 (eval "$ac_compile") 2>conftest.er1
15842 ac_status=$?
15843 grep -v '^ *+' conftest.er1 >conftest.err
15844 rm -f conftest.er1
15845 cat conftest.err >&5
15846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } && {
15848 test -z "$ac_c_werror_flag" ||
15849 test ! -s conftest.err
15850 } && test -s conftest.$ac_objext; then
15851 ac_header_compiler=yes
15852 else
15853 $as_echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15856 ac_header_compiler=no
15859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15860 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15861 $as_echo "$ac_header_compiler" >&6; }
15863 # Is the header present?
15864 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15865 $as_echo_n "checking gif_lib.h presence... " >&6; }
15866 cat >conftest.$ac_ext <<_ACEOF
15867 /* confdefs.h. */
15868 _ACEOF
15869 cat confdefs.h >>conftest.$ac_ext
15870 cat >>conftest.$ac_ext <<_ACEOF
15871 /* end confdefs.h. */
15872 #include <gif_lib.h>
15873 _ACEOF
15874 if { (ac_try="$ac_cpp conftest.$ac_ext"
15875 case "(($ac_try" in
15876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15877 *) ac_try_echo=$ac_try;;
15878 esac
15879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15880 $as_echo "$ac_try_echo") >&5
15881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15882 ac_status=$?
15883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
15886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } >/dev/null && {
15888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15889 test ! -s conftest.err
15890 }; then
15891 ac_header_preproc=yes
15892 else
15893 $as_echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15896 ac_header_preproc=no
15899 rm -f conftest.err conftest.$ac_ext
15900 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15901 $as_echo "$ac_header_preproc" >&6; }
15903 # So? What about this header?
15904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15905 yes:no: )
15906 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15907 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15908 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15909 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15910 ac_header_preproc=yes
15912 no:yes:* )
15913 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15914 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15915 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15916 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15917 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15918 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15919 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15920 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15921 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15922 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15923 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15924 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15927 esac
15928 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15929 $as_echo_n "checking for gif_lib.h... " >&6; }
15930 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15931 $as_echo_n "(cached) " >&6
15932 else
15933 ac_cv_header_gif_lib_h=$ac_header_preproc
15935 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15936 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15939 if test "x$ac_cv_header_gif_lib_h" = x""yes; then
15940 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15941 # Earlier versions can crash Emacs.
15942 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15943 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15944 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15945 $as_echo_n "(cached) " >&6
15946 else
15947 ac_check_lib_save_LIBS=$LIBS
15948 LIBS="-lgif $LIBS"
15949 cat >conftest.$ac_ext <<_ACEOF
15950 /* confdefs.h. */
15951 _ACEOF
15952 cat confdefs.h >>conftest.$ac_ext
15953 cat >>conftest.$ac_ext <<_ACEOF
15954 /* end confdefs.h. */
15956 /* Override any GCC internal prototype to avoid an error.
15957 Use char because int might match the return type of a GCC
15958 builtin and then its argument prototype would still apply. */
15959 #ifdef __cplusplus
15960 extern "C"
15961 #endif
15962 char EGifPutExtensionLast ();
15964 main ()
15966 return EGifPutExtensionLast ();
15968 return 0;
15970 _ACEOF
15971 rm -f conftest.$ac_objext conftest$ac_exeext
15972 if { (ac_try="$ac_link"
15973 case "(($ac_try" in
15974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15976 esac
15977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15978 $as_echo "$ac_try_echo") >&5
15979 (eval "$ac_link") 2>conftest.er1
15980 ac_status=$?
15981 grep -v '^ *+' conftest.er1 >conftest.err
15982 rm -f conftest.er1
15983 cat conftest.err >&5
15984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } && {
15986 test -z "$ac_c_werror_flag" ||
15987 test ! -s conftest.err
15988 } && test -s conftest$ac_exeext && {
15989 test "$cross_compiling" = yes ||
15990 $as_test_x conftest$ac_exeext
15991 }; then
15992 ac_cv_lib_gif_EGifPutExtensionLast=yes
15993 else
15994 $as_echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15997 ac_cv_lib_gif_EGifPutExtensionLast=no
16000 rm -rf conftest.dSYM
16001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16002 conftest$ac_exeext conftest.$ac_ext
16003 LIBS=$ac_check_lib_save_LIBS
16005 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
16006 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
16007 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then
16008 HAVE_GIF=yes
16009 else
16010 HAVE_GIF=maybe
16017 if test "$HAVE_GIF" = yes; then
16018 LIBGIF=-lgif
16019 elif test "$HAVE_GIF" = maybe; then
16020 # If gif_lib.h but no libgif, try libungif.
16021 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
16022 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
16023 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
16024 $as_echo_n "(cached) " >&6
16025 else
16026 ac_check_lib_save_LIBS=$LIBS
16027 LIBS="-lungif $LIBS"
16028 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h. */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16035 /* Override any GCC internal prototype to avoid an error.
16036 Use char because int might match the return type of a GCC
16037 builtin and then its argument prototype would still apply. */
16038 #ifdef __cplusplus
16039 extern "C"
16040 #endif
16041 char EGifPutExtensionLast ();
16043 main ()
16045 return EGifPutExtensionLast ();
16047 return 0;
16049 _ACEOF
16050 rm -f conftest.$ac_objext conftest$ac_exeext
16051 if { (ac_try="$ac_link"
16052 case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16055 esac
16056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16057 $as_echo "$ac_try_echo") >&5
16058 (eval "$ac_link") 2>conftest.er1
16059 ac_status=$?
16060 grep -v '^ *+' conftest.er1 >conftest.err
16061 rm -f conftest.er1
16062 cat conftest.err >&5
16063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } && {
16065 test -z "$ac_c_werror_flag" ||
16066 test ! -s conftest.err
16067 } && test -s conftest$ac_exeext && {
16068 test "$cross_compiling" = yes ||
16069 $as_test_x conftest$ac_exeext
16070 }; then
16071 ac_cv_lib_ungif_EGifPutExtensionLast=yes
16072 else
16073 $as_echo "$as_me: failed program was:" >&5
16074 sed 's/^/| /' conftest.$ac_ext >&5
16076 ac_cv_lib_ungif_EGifPutExtensionLast=no
16079 rm -rf conftest.dSYM
16080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16081 conftest$ac_exeext conftest.$ac_ext
16082 LIBS=$ac_check_lib_save_LIBS
16084 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
16085 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
16086 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then
16087 HAVE_GIF=yes
16088 else
16089 HAVE_GIF=no
16092 test "$HAVE_GIF" = yes && LIBGIF=-lungif
16095 if test "${HAVE_GIF}" = "yes"; then
16097 cat >>confdefs.h <<\_ACEOF
16098 #define HAVE_GIF 1
16099 _ACEOF
16105 if test "${HAVE_X11}" = "yes"; then
16106 MISSING=""
16107 WITH_NO=""
16108 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
16109 MISSING="libXpm" && WITH_NO="--with-xpm=no"
16110 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
16111 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
16112 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
16113 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
16114 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
16115 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
16116 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
16117 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
16119 if test "X${MISSING}" != X; then
16120 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
16121 $MISSING
16122 Maybe some development libraries/packages are missing?
16123 If you don't want to link with them give
16124 $WITH_NO
16125 as options to configure" >&5
16126 $as_echo "$as_me: error: The following required libraries were not found:
16127 $MISSING
16128 Maybe some development libraries/packages are missing?
16129 If you don't want to link with them give
16130 $WITH_NO
16131 as options to configure" >&2;}
16132 { (exit 1); exit 1; }; }
16136 ### Use -lgpm if available, unless `--with-gpm=no'.
16137 HAVE_GPM=no
16138 LIBGPM=
16139 GPM_MOUSE_SUPPORT=
16140 if test "${with_gpm}" != "no"; then
16141 if test "${ac_cv_header_gpm_h+set}" = set; then
16142 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16143 $as_echo_n "checking for gpm.h... " >&6; }
16144 if test "${ac_cv_header_gpm_h+set}" = set; then
16145 $as_echo_n "(cached) " >&6
16147 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16148 $as_echo "$ac_cv_header_gpm_h" >&6; }
16149 else
16150 # Is the header compilable?
16151 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
16152 $as_echo_n "checking gpm.h usability... " >&6; }
16153 cat >conftest.$ac_ext <<_ACEOF
16154 /* confdefs.h. */
16155 _ACEOF
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16159 $ac_includes_default
16160 #include <gpm.h>
16161 _ACEOF
16162 rm -f conftest.$ac_objext
16163 if { (ac_try="$ac_compile"
16164 case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16167 esac
16168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16169 $as_echo "$ac_try_echo") >&5
16170 (eval "$ac_compile") 2>conftest.er1
16171 ac_status=$?
16172 grep -v '^ *+' conftest.er1 >conftest.err
16173 rm -f conftest.er1
16174 cat conftest.err >&5
16175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } && {
16177 test -z "$ac_c_werror_flag" ||
16178 test ! -s conftest.err
16179 } && test -s conftest.$ac_objext; then
16180 ac_header_compiler=yes
16181 else
16182 $as_echo "$as_me: failed program was:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 ac_header_compiler=no
16188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16189 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16190 $as_echo "$ac_header_compiler" >&6; }
16192 # Is the header present?
16193 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16194 $as_echo_n "checking gpm.h presence... " >&6; }
16195 cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h. */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 #include <gpm.h>
16202 _ACEOF
16203 if { (ac_try="$ac_cpp conftest.$ac_ext"
16204 case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16207 esac
16208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16209 $as_echo "$ac_try_echo") >&5
16210 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16211 ac_status=$?
16212 grep -v '^ *+' conftest.er1 >conftest.err
16213 rm -f conftest.er1
16214 cat conftest.err >&5
16215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } >/dev/null && {
16217 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16218 test ! -s conftest.err
16219 }; then
16220 ac_header_preproc=yes
16221 else
16222 $as_echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 ac_header_preproc=no
16228 rm -f conftest.err conftest.$ac_ext
16229 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16230 $as_echo "$ac_header_preproc" >&6; }
16232 # So? What about this header?
16233 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16234 yes:no: )
16235 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16236 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16237 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16238 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16239 ac_header_preproc=yes
16241 no:yes:* )
16242 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16243 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16244 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16245 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16246 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16247 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16248 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16249 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16250 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16251 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16252 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16253 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16256 esac
16257 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16258 $as_echo_n "checking for gpm.h... " >&6; }
16259 if test "${ac_cv_header_gpm_h+set}" = set; then
16260 $as_echo_n "(cached) " >&6
16261 else
16262 ac_cv_header_gpm_h=$ac_header_preproc
16264 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16265 $as_echo "$ac_cv_header_gpm_h" >&6; }
16268 if test "x$ac_cv_header_gpm_h" = x""yes; then
16269 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
16270 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
16271 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
16272 $as_echo_n "(cached) " >&6
16273 else
16274 ac_check_lib_save_LIBS=$LIBS
16275 LIBS="-lgpm $LIBS"
16276 cat >conftest.$ac_ext <<_ACEOF
16277 /* confdefs.h. */
16278 _ACEOF
16279 cat confdefs.h >>conftest.$ac_ext
16280 cat >>conftest.$ac_ext <<_ACEOF
16281 /* end confdefs.h. */
16283 /* Override any GCC internal prototype to avoid an error.
16284 Use char because int might match the return type of a GCC
16285 builtin and then its argument prototype would still apply. */
16286 #ifdef __cplusplus
16287 extern "C"
16288 #endif
16289 char Gpm_Open ();
16291 main ()
16293 return Gpm_Open ();
16295 return 0;
16297 _ACEOF
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (ac_try="$ac_link"
16300 case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16303 esac
16304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16305 $as_echo "$ac_try_echo") >&5
16306 (eval "$ac_link") 2>conftest.er1
16307 ac_status=$?
16308 grep -v '^ *+' conftest.er1 >conftest.err
16309 rm -f conftest.er1
16310 cat conftest.err >&5
16311 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } && {
16313 test -z "$ac_c_werror_flag" ||
16314 test ! -s conftest.err
16315 } && test -s conftest$ac_exeext && {
16316 test "$cross_compiling" = yes ||
16317 $as_test_x conftest$ac_exeext
16318 }; then
16319 ac_cv_lib_gpm_Gpm_Open=yes
16320 else
16321 $as_echo "$as_me: failed program was:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16324 ac_cv_lib_gpm_Gpm_Open=no
16327 rm -rf conftest.dSYM
16328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16329 conftest$ac_exeext conftest.$ac_ext
16330 LIBS=$ac_check_lib_save_LIBS
16332 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16333 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16334 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then
16335 HAVE_GPM=yes
16342 if test "${HAVE_GPM}" = "yes"; then
16344 cat >>confdefs.h <<\_ACEOF
16345 #define HAVE_GPM 1
16346 _ACEOF
16348 LIBGPM=-lgpm
16349 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
16355 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16356 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16357 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16358 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16359 $as_echo_n "(cached) " >&6
16361 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16362 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16363 else
16364 # Is the header compilable?
16365 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16366 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16367 cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h. */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h. */
16373 $ac_includes_default
16374 #include <malloc/malloc.h>
16375 _ACEOF
16376 rm -f conftest.$ac_objext
16377 if { (ac_try="$ac_compile"
16378 case "(($ac_try" in
16379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380 *) ac_try_echo=$ac_try;;
16381 esac
16382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16383 $as_echo "$ac_try_echo") >&5
16384 (eval "$ac_compile") 2>conftest.er1
16385 ac_status=$?
16386 grep -v '^ *+' conftest.er1 >conftest.err
16387 rm -f conftest.er1
16388 cat conftest.err >&5
16389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); } && {
16391 test -z "$ac_c_werror_flag" ||
16392 test ! -s conftest.err
16393 } && test -s conftest.$ac_objext; then
16394 ac_header_compiler=yes
16395 else
16396 $as_echo "$as_me: failed program was:" >&5
16397 sed 's/^/| /' conftest.$ac_ext >&5
16399 ac_header_compiler=no
16402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16403 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16404 $as_echo "$ac_header_compiler" >&6; }
16406 # Is the header present?
16407 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16408 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16409 cat >conftest.$ac_ext <<_ACEOF
16410 /* confdefs.h. */
16411 _ACEOF
16412 cat confdefs.h >>conftest.$ac_ext
16413 cat >>conftest.$ac_ext <<_ACEOF
16414 /* end confdefs.h. */
16415 #include <malloc/malloc.h>
16416 _ACEOF
16417 if { (ac_try="$ac_cpp conftest.$ac_ext"
16418 case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16421 esac
16422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16423 $as_echo "$ac_try_echo") >&5
16424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16425 ac_status=$?
16426 grep -v '^ *+' conftest.er1 >conftest.err
16427 rm -f conftest.er1
16428 cat conftest.err >&5
16429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430 (exit $ac_status); } >/dev/null && {
16431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16432 test ! -s conftest.err
16433 }; then
16434 ac_header_preproc=yes
16435 else
16436 $as_echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16439 ac_header_preproc=no
16442 rm -f conftest.err conftest.$ac_ext
16443 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16444 $as_echo "$ac_header_preproc" >&6; }
16446 # So? What about this header?
16447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16448 yes:no: )
16449 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16450 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16451 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16452 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16453 ac_header_preproc=yes
16455 no:yes:* )
16456 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16457 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16458 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16459 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16460 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16461 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16462 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16463 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16464 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16465 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16466 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16467 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16470 esac
16471 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16472 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16473 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16474 $as_echo_n "(cached) " >&6
16475 else
16476 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16478 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16479 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16482 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then
16484 cat >>confdefs.h <<\_ACEOF
16485 #define HAVE_MALLOC_MALLOC_H 1
16486 _ACEOF
16492 C_SWITCH_X_SYSTEM=
16493 ### Use NeXTstep API to implement GUI.
16494 if test "${HAVE_NS}" = "yes"; then
16496 cat >>confdefs.h <<\_ACEOF
16497 #define HAVE_NS 1
16498 _ACEOF
16500 if test "${NS_IMPL_COCOA}" = "yes"; then
16502 cat >>confdefs.h <<\_ACEOF
16503 #define NS_IMPL_COCOA 1
16504 _ACEOF
16506 GNU_OBJC_CFLAGS=
16508 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16510 cat >>confdefs.h <<\_ACEOF
16511 #define NS_IMPL_GNUSTEP 1
16512 _ACEOF
16514 # See also .m.o rule in Makefile.in */
16515 # FIXME: are all these flags really needed? Document here why. */
16516 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16517 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16519 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16521 cat >>confdefs.h <<\_ACEOF
16522 #define NS_HAVE_NSINTEGER 1
16523 _ACEOF
16526 # We also have mouse menus.
16527 HAVE_MENUS=yes
16528 OTHER_FILES=ns-app
16532 ### Use session management (-lSM -lICE) if available
16533 HAVE_X_SM=no
16534 LIBXSM=
16535 if test "${HAVE_X11}" = "yes"; then
16536 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16537 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16538 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16539 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16540 $as_echo_n "(cached) " >&6
16542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16543 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16544 else
16545 # Is the header compilable?
16546 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16547 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16548 cat >conftest.$ac_ext <<_ACEOF
16549 /* confdefs.h. */
16550 _ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16554 $ac_includes_default
16555 #include <X11/SM/SMlib.h>
16556 _ACEOF
16557 rm -f conftest.$ac_objext
16558 if { (ac_try="$ac_compile"
16559 case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16562 esac
16563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16564 $as_echo "$ac_try_echo") >&5
16565 (eval "$ac_compile") 2>conftest.er1
16566 ac_status=$?
16567 grep -v '^ *+' conftest.er1 >conftest.err
16568 rm -f conftest.er1
16569 cat conftest.err >&5
16570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); } && {
16572 test -z "$ac_c_werror_flag" ||
16573 test ! -s conftest.err
16574 } && test -s conftest.$ac_objext; then
16575 ac_header_compiler=yes
16576 else
16577 $as_echo "$as_me: failed program was:" >&5
16578 sed 's/^/| /' conftest.$ac_ext >&5
16580 ac_header_compiler=no
16583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16584 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16585 $as_echo "$ac_header_compiler" >&6; }
16587 # Is the header present?
16588 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16589 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16590 cat >conftest.$ac_ext <<_ACEOF
16591 /* confdefs.h. */
16592 _ACEOF
16593 cat confdefs.h >>conftest.$ac_ext
16594 cat >>conftest.$ac_ext <<_ACEOF
16595 /* end confdefs.h. */
16596 #include <X11/SM/SMlib.h>
16597 _ACEOF
16598 if { (ac_try="$ac_cpp conftest.$ac_ext"
16599 case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16602 esac
16603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16604 $as_echo "$ac_try_echo") >&5
16605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16606 ac_status=$?
16607 grep -v '^ *+' conftest.er1 >conftest.err
16608 rm -f conftest.er1
16609 cat conftest.err >&5
16610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); } >/dev/null && {
16612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16613 test ! -s conftest.err
16614 }; then
16615 ac_header_preproc=yes
16616 else
16617 $as_echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16620 ac_header_preproc=no
16623 rm -f conftest.err conftest.$ac_ext
16624 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16625 $as_echo "$ac_header_preproc" >&6; }
16627 # So? What about this header?
16628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16629 yes:no: )
16630 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16631 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16632 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16633 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16634 ac_header_preproc=yes
16636 no:yes:* )
16637 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16638 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16639 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16640 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16641 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16642 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16643 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16644 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16645 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16646 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16647 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16648 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16651 esac
16652 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16653 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16654 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16655 $as_echo_n "(cached) " >&6
16656 else
16657 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16659 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16660 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16663 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then
16664 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16665 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16666 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16667 $as_echo_n "(cached) " >&6
16668 else
16669 ac_check_lib_save_LIBS=$LIBS
16670 LIBS="-lSM -lICE $LIBS"
16671 cat >conftest.$ac_ext <<_ACEOF
16672 /* confdefs.h. */
16673 _ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16678 /* Override any GCC internal prototype to avoid an error.
16679 Use char because int might match the return type of a GCC
16680 builtin and then its argument prototype would still apply. */
16681 #ifdef __cplusplus
16682 extern "C"
16683 #endif
16684 char SmcOpenConnection ();
16686 main ()
16688 return SmcOpenConnection ();
16690 return 0;
16692 _ACEOF
16693 rm -f conftest.$ac_objext conftest$ac_exeext
16694 if { (ac_try="$ac_link"
16695 case "(($ac_try" in
16696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697 *) ac_try_echo=$ac_try;;
16698 esac
16699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16700 $as_echo "$ac_try_echo") >&5
16701 (eval "$ac_link") 2>conftest.er1
16702 ac_status=$?
16703 grep -v '^ *+' conftest.er1 >conftest.err
16704 rm -f conftest.er1
16705 cat conftest.err >&5
16706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } && {
16708 test -z "$ac_c_werror_flag" ||
16709 test ! -s conftest.err
16710 } && test -s conftest$ac_exeext && {
16711 test "$cross_compiling" = yes ||
16712 $as_test_x conftest$ac_exeext
16713 }; then
16714 ac_cv_lib_SM_SmcOpenConnection=yes
16715 else
16716 $as_echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 ac_cv_lib_SM_SmcOpenConnection=no
16722 rm -rf conftest.dSYM
16723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16724 conftest$ac_exeext conftest.$ac_ext
16725 LIBS=$ac_check_lib_save_LIBS
16727 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16728 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16729 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then
16730 HAVE_X_SM=yes
16737 if test "${HAVE_X_SM}" = "yes"; then
16739 cat >>confdefs.h <<\_ACEOF
16740 #define HAVE_X_SM 1
16741 _ACEOF
16743 LIBXSM="-lSM -lICE"
16744 case "$LIBS" in
16745 *-lSM*) ;;
16746 *) LIBS="$LIBXSM $LIBS" ;;
16747 esac
16752 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16753 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16754 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16755 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16756 $as_echo_n "(cached) " >&6
16757 else
16758 cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764 #include <netdb.h>
16766 main ()
16768 return h_errno;
16770 return 0;
16772 _ACEOF
16773 rm -f conftest.$ac_objext conftest$ac_exeext
16774 if { (ac_try="$ac_link"
16775 case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16778 esac
16779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16780 $as_echo "$ac_try_echo") >&5
16781 (eval "$ac_link") 2>conftest.er1
16782 ac_status=$?
16783 grep -v '^ *+' conftest.er1 >conftest.err
16784 rm -f conftest.er1
16785 cat conftest.err >&5
16786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787 (exit $ac_status); } && {
16788 test -z "$ac_c_werror_flag" ||
16789 test ! -s conftest.err
16790 } && test -s conftest$ac_exeext && {
16791 test "$cross_compiling" = yes ||
16792 $as_test_x conftest$ac_exeext
16793 }; then
16794 emacs_cv_netdb_declares_h_errno=yes
16795 else
16796 $as_echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16799 emacs_cv_netdb_declares_h_errno=no
16802 rm -rf conftest.dSYM
16803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16804 conftest$ac_exeext conftest.$ac_ext
16806 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16807 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16808 if test $emacs_cv_netdb_declares_h_errno = yes; then
16810 cat >>confdefs.h <<\_ACEOF
16811 #define HAVE_H_ERRNO 1
16812 _ACEOF
16816 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16817 # for constant arguments. Useless!
16818 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16819 $as_echo_n "checking for working alloca.h... " >&6; }
16820 if test "${ac_cv_working_alloca_h+set}" = set; then
16821 $as_echo_n "(cached) " >&6
16822 else
16823 cat >conftest.$ac_ext <<_ACEOF
16824 /* confdefs.h. */
16825 _ACEOF
16826 cat confdefs.h >>conftest.$ac_ext
16827 cat >>conftest.$ac_ext <<_ACEOF
16828 /* end confdefs.h. */
16829 #include <alloca.h>
16831 main ()
16833 char *p = (char *) alloca (2 * sizeof (int));
16834 if (p) return 0;
16836 return 0;
16838 _ACEOF
16839 rm -f conftest.$ac_objext conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16844 esac
16845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16846 $as_echo "$ac_try_echo") >&5
16847 (eval "$ac_link") 2>conftest.er1
16848 ac_status=$?
16849 grep -v '^ *+' conftest.er1 >conftest.err
16850 rm -f conftest.er1
16851 cat conftest.err >&5
16852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } && {
16854 test -z "$ac_c_werror_flag" ||
16855 test ! -s conftest.err
16856 } && test -s conftest$ac_exeext && {
16857 test "$cross_compiling" = yes ||
16858 $as_test_x conftest$ac_exeext
16859 }; then
16860 ac_cv_working_alloca_h=yes
16861 else
16862 $as_echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16865 ac_cv_working_alloca_h=no
16868 rm -rf conftest.dSYM
16869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16870 conftest$ac_exeext conftest.$ac_ext
16872 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16873 $as_echo "$ac_cv_working_alloca_h" >&6; }
16874 if test $ac_cv_working_alloca_h = yes; then
16876 cat >>confdefs.h <<\_ACEOF
16877 #define HAVE_ALLOCA_H 1
16878 _ACEOF
16882 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16883 $as_echo_n "checking for alloca... " >&6; }
16884 if test "${ac_cv_func_alloca_works+set}" = set; then
16885 $as_echo_n "(cached) " >&6
16886 else
16887 cat >conftest.$ac_ext <<_ACEOF
16888 /* confdefs.h. */
16889 _ACEOF
16890 cat confdefs.h >>conftest.$ac_ext
16891 cat >>conftest.$ac_ext <<_ACEOF
16892 /* end confdefs.h. */
16893 #ifdef __GNUC__
16894 # define alloca __builtin_alloca
16895 #else
16896 # ifdef _MSC_VER
16897 # include <malloc.h>
16898 # define alloca _alloca
16899 # else
16900 # ifdef HAVE_ALLOCA_H
16901 # include <alloca.h>
16902 # else
16903 # ifdef _AIX
16904 #pragma alloca
16905 # else
16906 # ifndef alloca /* predefined by HP cc +Olibcalls */
16907 char *alloca ();
16908 # endif
16909 # endif
16910 # endif
16911 # endif
16912 #endif
16915 main ()
16917 char *p = (char *) alloca (1);
16918 if (p) return 0;
16920 return 0;
16922 _ACEOF
16923 rm -f conftest.$ac_objext conftest$ac_exeext
16924 if { (ac_try="$ac_link"
16925 case "(($ac_try" in
16926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16927 *) ac_try_echo=$ac_try;;
16928 esac
16929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16930 $as_echo "$ac_try_echo") >&5
16931 (eval "$ac_link") 2>conftest.er1
16932 ac_status=$?
16933 grep -v '^ *+' conftest.er1 >conftest.err
16934 rm -f conftest.er1
16935 cat conftest.err >&5
16936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); } && {
16938 test -z "$ac_c_werror_flag" ||
16939 test ! -s conftest.err
16940 } && test -s conftest$ac_exeext && {
16941 test "$cross_compiling" = yes ||
16942 $as_test_x conftest$ac_exeext
16943 }; then
16944 ac_cv_func_alloca_works=yes
16945 else
16946 $as_echo "$as_me: failed program was:" >&5
16947 sed 's/^/| /' conftest.$ac_ext >&5
16949 ac_cv_func_alloca_works=no
16952 rm -rf conftest.dSYM
16953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16954 conftest$ac_exeext conftest.$ac_ext
16956 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16957 $as_echo "$ac_cv_func_alloca_works" >&6; }
16959 if test $ac_cv_func_alloca_works = yes; then
16961 cat >>confdefs.h <<\_ACEOF
16962 #define HAVE_ALLOCA 1
16963 _ACEOF
16965 else
16966 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16967 # that cause trouble. Some versions do not even contain alloca or
16968 # contain a buggy version. If you still want to use their alloca,
16969 # use ar to extract alloca.o from them instead of compiling alloca.c.
16971 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16973 cat >>confdefs.h <<\_ACEOF
16974 #define C_ALLOCA 1
16975 _ACEOF
16978 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16979 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16980 if test "${ac_cv_os_cray+set}" = set; then
16981 $as_echo_n "(cached) " >&6
16982 else
16983 cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h. */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h. */
16989 #if defined CRAY && ! defined CRAY2
16990 webecray
16991 #else
16992 wenotbecray
16993 #endif
16995 _ACEOF
16996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16997 $EGREP "webecray" >/dev/null 2>&1; then
16998 ac_cv_os_cray=yes
16999 else
17000 ac_cv_os_cray=no
17002 rm -f conftest*
17005 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17006 $as_echo "$ac_cv_os_cray" >&6; }
17007 if test $ac_cv_os_cray = yes; then
17008 for ac_func in _getb67 GETB67 getb67; do
17009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17010 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17011 $as_echo_n "checking for $ac_func... " >&6; }
17012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17013 $as_echo_n "(cached) " >&6
17014 else
17015 cat >conftest.$ac_ext <<_ACEOF
17016 /* confdefs.h. */
17017 _ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17023 #define $ac_func innocuous_$ac_func
17025 /* System header to define __stub macros and hopefully few prototypes,
17026 which can conflict with char $ac_func (); below.
17027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17028 <limits.h> exists even on freestanding compilers. */
17030 #ifdef __STDC__
17031 # include <limits.h>
17032 #else
17033 # include <assert.h>
17034 #endif
17036 #undef $ac_func
17038 /* Override any GCC internal prototype to avoid an error.
17039 Use char because int might match the return type of a GCC
17040 builtin and then its argument prototype would still apply. */
17041 #ifdef __cplusplus
17042 extern "C"
17043 #endif
17044 char $ac_func ();
17045 /* The GNU C library defines this for functions which it implements
17046 to always fail with ENOSYS. Some functions are actually named
17047 something starting with __ and the normal name is an alias. */
17048 #if defined __stub_$ac_func || defined __stub___$ac_func
17049 choke me
17050 #endif
17053 main ()
17055 return $ac_func ();
17057 return 0;
17059 _ACEOF
17060 rm -f conftest.$ac_objext conftest$ac_exeext
17061 if { (ac_try="$ac_link"
17062 case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17065 esac
17066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17067 $as_echo "$ac_try_echo") >&5
17068 (eval "$ac_link") 2>conftest.er1
17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } && {
17075 test -z "$ac_c_werror_flag" ||
17076 test ! -s conftest.err
17077 } && test -s conftest$ac_exeext && {
17078 test "$cross_compiling" = yes ||
17079 $as_test_x conftest$ac_exeext
17080 }; then
17081 eval "$as_ac_var=yes"
17082 else
17083 $as_echo "$as_me: failed program was:" >&5
17084 sed 's/^/| /' conftest.$ac_ext >&5
17086 eval "$as_ac_var=no"
17089 rm -rf conftest.dSYM
17090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17091 conftest$ac_exeext conftest.$ac_ext
17093 ac_res=`eval 'as_val=${'$as_ac_var'}
17094 $as_echo "$as_val"'`
17095 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17096 $as_echo "$ac_res" >&6; }
17097 as_val=`eval 'as_val=${'$as_ac_var'}
17098 $as_echo "$as_val"'`
17099 if test "x$as_val" = x""yes; then
17101 cat >>confdefs.h <<_ACEOF
17102 #define CRAY_STACKSEG_END $ac_func
17103 _ACEOF
17105 break
17108 done
17111 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17112 $as_echo_n "checking stack direction for C alloca... " >&6; }
17113 if test "${ac_cv_c_stack_direction+set}" = set; then
17114 $as_echo_n "(cached) " >&6
17115 else
17116 if test "$cross_compiling" = yes; then
17117 ac_cv_c_stack_direction=0
17118 else
17119 cat >conftest.$ac_ext <<_ACEOF
17120 /* confdefs.h. */
17121 _ACEOF
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17125 $ac_includes_default
17127 find_stack_direction ()
17129 static char *addr = 0;
17130 auto char dummy;
17131 if (addr == 0)
17133 addr = &dummy;
17134 return find_stack_direction ();
17136 else
17137 return (&dummy > addr) ? 1 : -1;
17141 main ()
17143 return find_stack_direction () < 0;
17145 _ACEOF
17146 rm -f conftest$ac_exeext
17147 if { (ac_try="$ac_link"
17148 case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17151 esac
17152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17153 $as_echo "$ac_try_echo") >&5
17154 (eval "$ac_link") 2>&5
17155 ac_status=$?
17156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17158 { (case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17161 esac
17162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17163 $as_echo "$ac_try_echo") >&5
17164 (eval "$ac_try") 2>&5
17165 ac_status=$?
17166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_cv_c_stack_direction=1
17169 else
17170 $as_echo "$as_me: program exited with status $ac_status" >&5
17171 $as_echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ( exit $ac_status )
17175 ac_cv_c_stack_direction=-1
17177 rm -rf conftest.dSYM
17178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17183 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17184 $as_echo "$ac_cv_c_stack_direction" >&6; }
17186 cat >>confdefs.h <<_ACEOF
17187 #define STACK_DIRECTION $ac_cv_c_stack_direction
17188 _ACEOF
17194 if test x"$ac_cv_func_alloca_works" != xyes; then
17195 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17196 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17197 { (exit 1); exit 1; }; }
17200 # fmod, logb, and frexp are found in -lm on most systems.
17201 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
17203 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
17204 $as_echo_n "checking for sqrt in -lm... " >&6; }
17205 if test "${ac_cv_lib_m_sqrt+set}" = set; then
17206 $as_echo_n "(cached) " >&6
17207 else
17208 ac_check_lib_save_LIBS=$LIBS
17209 LIBS="-lm $LIBS"
17210 cat >conftest.$ac_ext <<_ACEOF
17211 /* confdefs.h. */
17212 _ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17217 /* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17220 #ifdef __cplusplus
17221 extern "C"
17222 #endif
17223 char sqrt ();
17225 main ()
17227 return sqrt ();
17229 return 0;
17231 _ACEOF
17232 rm -f conftest.$ac_objext conftest$ac_exeext
17233 if { (ac_try="$ac_link"
17234 case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17237 esac
17238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17239 $as_echo "$ac_try_echo") >&5
17240 (eval "$ac_link") 2>conftest.er1
17241 ac_status=$?
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
17245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } && {
17247 test -z "$ac_c_werror_flag" ||
17248 test ! -s conftest.err
17249 } && test -s conftest$ac_exeext && {
17250 test "$cross_compiling" = yes ||
17251 $as_test_x conftest$ac_exeext
17252 }; then
17253 ac_cv_lib_m_sqrt=yes
17254 else
17255 $as_echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17258 ac_cv_lib_m_sqrt=no
17261 rm -rf conftest.dSYM
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 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
17267 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
17268 if test "x$ac_cv_lib_m_sqrt" = x""yes; then
17269 cat >>confdefs.h <<_ACEOF
17270 #define HAVE_LIBM 1
17271 _ACEOF
17273 LIBS="-lm $LIBS"
17278 # Check for mail-locking functions in a "mail" library. Probably this should
17279 # have the same check as for liblockfile below.
17280 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
17281 $as_echo_n "checking for maillock in -lmail... " >&6; }
17282 if test "${ac_cv_lib_mail_maillock+set}" = set; then
17283 $as_echo_n "(cached) " >&6
17284 else
17285 ac_check_lib_save_LIBS=$LIBS
17286 LIBS="-lmail $LIBS"
17287 cat >conftest.$ac_ext <<_ACEOF
17288 /* confdefs.h. */
17289 _ACEOF
17290 cat confdefs.h >>conftest.$ac_ext
17291 cat >>conftest.$ac_ext <<_ACEOF
17292 /* end confdefs.h. */
17294 /* Override any GCC internal prototype to avoid an error.
17295 Use char because int might match the return type of a GCC
17296 builtin and then its argument prototype would still apply. */
17297 #ifdef __cplusplus
17298 extern "C"
17299 #endif
17300 char maillock ();
17302 main ()
17304 return maillock ();
17306 return 0;
17308 _ACEOF
17309 rm -f conftest.$ac_objext conftest$ac_exeext
17310 if { (ac_try="$ac_link"
17311 case "(($ac_try" in
17312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17313 *) ac_try_echo=$ac_try;;
17314 esac
17315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17316 $as_echo "$ac_try_echo") >&5
17317 (eval "$ac_link") 2>conftest.er1
17318 ac_status=$?
17319 grep -v '^ *+' conftest.er1 >conftest.err
17320 rm -f conftest.er1
17321 cat conftest.err >&5
17322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } && {
17324 test -z "$ac_c_werror_flag" ||
17325 test ! -s conftest.err
17326 } && test -s conftest$ac_exeext && {
17327 test "$cross_compiling" = yes ||
17328 $as_test_x conftest$ac_exeext
17329 }; then
17330 ac_cv_lib_mail_maillock=yes
17331 else
17332 $as_echo "$as_me: failed program was:" >&5
17333 sed 's/^/| /' conftest.$ac_ext >&5
17335 ac_cv_lib_mail_maillock=no
17338 rm -rf conftest.dSYM
17339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17340 conftest$ac_exeext conftest.$ac_ext
17341 LIBS=$ac_check_lib_save_LIBS
17343 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17344 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17345 if test "x$ac_cv_lib_mail_maillock" = x""yes; then
17346 have_mail=yes
17347 else
17348 have_mail=no
17351 if test $have_mail = yes; then
17352 LIBS_MAIL=-lmail
17353 LIBS="$LIBS_MAIL $LIBS"
17355 cat >>confdefs.h <<\_ACEOF
17356 #define HAVE_LIBMAIL 1
17357 _ACEOF
17359 else
17360 LIBS_MAIL=
17362 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17363 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17364 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17365 $as_echo_n "(cached) " >&6
17366 else
17367 ac_check_lib_save_LIBS=$LIBS
17368 LIBS="-llockfile $LIBS"
17369 cat >conftest.$ac_ext <<_ACEOF
17370 /* confdefs.h. */
17371 _ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h. */
17376 /* Override any GCC internal prototype to avoid an error.
17377 Use char because int might match the return type of a GCC
17378 builtin and then its argument prototype would still apply. */
17379 #ifdef __cplusplus
17380 extern "C"
17381 #endif
17382 char maillock ();
17384 main ()
17386 return maillock ();
17388 return 0;
17390 _ACEOF
17391 rm -f conftest.$ac_objext conftest$ac_exeext
17392 if { (ac_try="$ac_link"
17393 case "(($ac_try" in
17394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17395 *) ac_try_echo=$ac_try;;
17396 esac
17397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17398 $as_echo "$ac_try_echo") >&5
17399 (eval "$ac_link") 2>conftest.er1
17400 ac_status=$?
17401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
17404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } && {
17406 test -z "$ac_c_werror_flag" ||
17407 test ! -s conftest.err
17408 } && test -s conftest$ac_exeext && {
17409 test "$cross_compiling" = yes ||
17410 $as_test_x conftest$ac_exeext
17411 }; then
17412 ac_cv_lib_lockfile_maillock=yes
17413 else
17414 $as_echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17417 ac_cv_lib_lockfile_maillock=no
17420 rm -rf conftest.dSYM
17421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17422 conftest$ac_exeext conftest.$ac_ext
17423 LIBS=$ac_check_lib_save_LIBS
17425 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17426 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17427 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then
17428 have_lockfile=yes
17429 else
17430 have_lockfile=no
17433 if test $have_lockfile = yes; then
17434 LIBS_MAIL=-llockfile
17435 LIBS="$LIBS_MAIL $LIBS"
17437 cat >>confdefs.h <<\_ACEOF
17438 #define HAVE_LIBLOCKFILE 1
17439 _ACEOF
17441 else
17442 # If we have the shared liblockfile, assume we must use it for mail
17443 # locking (e.g. Debian). If we couldn't link against liblockfile
17444 # (no liblockfile.a installed), ensure that we don't need to.
17445 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17446 set dummy liblockfile.so; ac_word=$2
17447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17448 $as_echo_n "checking for $ac_word... " >&6; }
17449 if test "${ac_cv_prog_liblockfile+set}" = set; then
17450 $as_echo_n "(cached) " >&6
17451 else
17452 if test -n "$liblockfile"; then
17453 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17454 else
17455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17456 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17457 for as_dir in $as_dummy
17459 IFS=$as_save_IFS
17460 test -z "$as_dir" && as_dir=.
17461 for ac_exec_ext in '' $ac_executable_extensions; do
17462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17463 ac_cv_prog_liblockfile="yes"
17464 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17465 break 2
17467 done
17468 done
17469 IFS=$as_save_IFS
17471 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17474 liblockfile=$ac_cv_prog_liblockfile
17475 if test -n "$liblockfile"; then
17476 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17477 $as_echo "$liblockfile" >&6; }
17478 else
17479 { $as_echo "$as_me:$LINENO: result: no" >&5
17480 $as_echo "no" >&6; }
17484 if test $ac_cv_prog_liblockfile = yes; then
17485 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17486 This probably means that movemail could lose mail.
17487 There may be a \`development' package to install containing liblockfile." >&5
17488 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17489 This probably means that movemail could lose mail.
17490 There may be a \`development' package to install containing liblockfile." >&2;}
17491 { (exit 1); exit 1; }; }
17495 for ac_func in touchlock
17497 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17498 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17499 $as_echo_n "checking for $ac_func... " >&6; }
17500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17501 $as_echo_n "(cached) " >&6
17502 else
17503 cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h. */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17511 #define $ac_func innocuous_$ac_func
17513 /* System header to define __stub macros and hopefully few prototypes,
17514 which can conflict with char $ac_func (); below.
17515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17516 <limits.h> exists even on freestanding compilers. */
17518 #ifdef __STDC__
17519 # include <limits.h>
17520 #else
17521 # include <assert.h>
17522 #endif
17524 #undef $ac_func
17526 /* Override any GCC internal prototype to avoid an error.
17527 Use char because int might match the return type of a GCC
17528 builtin and then its argument prototype would still apply. */
17529 #ifdef __cplusplus
17530 extern "C"
17531 #endif
17532 char $ac_func ();
17533 /* The GNU C library defines this for functions which it implements
17534 to always fail with ENOSYS. Some functions are actually named
17535 something starting with __ and the normal name is an alias. */
17536 #if defined __stub_$ac_func || defined __stub___$ac_func
17537 choke me
17538 #endif
17541 main ()
17543 return $ac_func ();
17545 return 0;
17547 _ACEOF
17548 rm -f conftest.$ac_objext conftest$ac_exeext
17549 if { (ac_try="$ac_link"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17553 esac
17554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17555 $as_echo "$ac_try_echo") >&5
17556 (eval "$ac_link") 2>conftest.er1
17557 ac_status=$?
17558 grep -v '^ *+' conftest.er1 >conftest.err
17559 rm -f conftest.er1
17560 cat conftest.err >&5
17561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } && {
17563 test -z "$ac_c_werror_flag" ||
17564 test ! -s conftest.err
17565 } && test -s conftest$ac_exeext && {
17566 test "$cross_compiling" = yes ||
17567 $as_test_x conftest$ac_exeext
17568 }; then
17569 eval "$as_ac_var=yes"
17570 else
17571 $as_echo "$as_me: failed program was:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 eval "$as_ac_var=no"
17577 rm -rf conftest.dSYM
17578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17579 conftest$ac_exeext conftest.$ac_ext
17581 ac_res=`eval 'as_val=${'$as_ac_var'}
17582 $as_echo "$as_val"'`
17583 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17584 $as_echo "$ac_res" >&6; }
17585 as_val=`eval 'as_val=${'$as_ac_var'}
17586 $as_echo "$as_val"'`
17587 if test "x$as_val" = x""yes; then
17588 cat >>confdefs.h <<_ACEOF
17589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17590 _ACEOF
17593 done
17596 for ac_header in maillock.h
17598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17600 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17601 $as_echo_n "checking for $ac_header... " >&6; }
17602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17603 $as_echo_n "(cached) " >&6
17605 ac_res=`eval 'as_val=${'$as_ac_Header'}
17606 $as_echo "$as_val"'`
17607 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17608 $as_echo "$ac_res" >&6; }
17609 else
17610 # Is the header compilable?
17611 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17612 $as_echo_n "checking $ac_header usability... " >&6; }
17613 cat >conftest.$ac_ext <<_ACEOF
17614 /* confdefs.h. */
17615 _ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 $ac_includes_default
17620 #include <$ac_header>
17621 _ACEOF
17622 rm -f conftest.$ac_objext
17623 if { (ac_try="$ac_compile"
17624 case "(($ac_try" in
17625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17626 *) ac_try_echo=$ac_try;;
17627 esac
17628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17629 $as_echo "$ac_try_echo") >&5
17630 (eval "$ac_compile") 2>conftest.er1
17631 ac_status=$?
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
17635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } && {
17637 test -z "$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17639 } && test -s conftest.$ac_objext; then
17640 ac_header_compiler=yes
17641 else
17642 $as_echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17645 ac_header_compiler=no
17648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17649 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17650 $as_echo "$ac_header_compiler" >&6; }
17652 # Is the header present?
17653 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17654 $as_echo_n "checking $ac_header presence... " >&6; }
17655 cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h. */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17661 #include <$ac_header>
17662 _ACEOF
17663 if { (ac_try="$ac_cpp conftest.$ac_ext"
17664 case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17667 esac
17668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17669 $as_echo "$ac_try_echo") >&5
17670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17671 ac_status=$?
17672 grep -v '^ *+' conftest.er1 >conftest.err
17673 rm -f conftest.er1
17674 cat conftest.err >&5
17675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); } >/dev/null && {
17677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17678 test ! -s conftest.err
17679 }; then
17680 ac_header_preproc=yes
17681 else
17682 $as_echo "$as_me: failed program was:" >&5
17683 sed 's/^/| /' conftest.$ac_ext >&5
17685 ac_header_preproc=no
17688 rm -f conftest.err conftest.$ac_ext
17689 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17690 $as_echo "$ac_header_preproc" >&6; }
17692 # So? What about this header?
17693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17694 yes:no: )
17695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17696 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17698 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17699 ac_header_preproc=yes
17701 no:yes:* )
17702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17703 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17705 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17707 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17709 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17711 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17713 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17716 esac
17717 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17718 $as_echo_n "checking for $ac_header... " >&6; }
17719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17720 $as_echo_n "(cached) " >&6
17721 else
17722 eval "$as_ac_Header=\$ac_header_preproc"
17724 ac_res=`eval 'as_val=${'$as_ac_Header'}
17725 $as_echo "$as_val"'`
17726 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17727 $as_echo "$ac_res" >&6; }
17730 as_val=`eval 'as_val=${'$as_ac_Header'}
17731 $as_echo "$as_val"'`
17732 if test "x$as_val" = x""yes; then
17733 cat >>confdefs.h <<_ACEOF
17734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17735 _ACEOF
17739 done
17743 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
17744 ## interlock access to the mail spool. The alternative is a lock file named
17745 ## /usr/spool/mail/$USER.lock.
17746 mail_lock=no
17747 case "$opsys" in
17748 aix4-2) mail_lock="lockf" ;;
17750 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
17752 ## On GNU/Linux systems, both methods are used by various mail programs.
17753 ## I assume most people are using newer mailers that have heard of flock.
17754 ## Change this if you need to.
17755 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
17756 ## configure gets the right answers, and that means *NOT* using flock.
17757 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
17758 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
17759 ## Debian maintainer hasn't provided a clean fix for Emacs.
17760 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
17761 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
17762 ## correct logic. -- fx
17763 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
17764 ## liblockfile is a Free Software replacement for libmail, used on
17765 ## Debian systems and elsewhere. -rfr.
17766 gnu-*)
17767 mail_lock="flock"
17768 if test $have_mail = yes || test $have_lockfile = yes; then
17769 test $ac_cv_header_maillock_h = yes && mail_lock=no
17772 esac
17774 BLESSMAIL_TARGET=
17775 case "$mail_lock" in
17776 flock)
17777 cat >>confdefs.h <<\_ACEOF
17778 #define MAIL_USE_FLOCK 1
17779 _ACEOF
17782 lockf)
17783 cat >>confdefs.h <<\_ACEOF
17784 #define MAIL_USE_LOCKF 1
17785 _ACEOF
17788 *) BLESSMAIL_TARGET="need-blessmail" ;;
17789 esac
17866 for ac_func in gethostname getdomainname dup2 \
17867 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17868 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17869 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17870 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17871 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17872 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17873 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17874 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17875 cfmakeraw cfsetspeed isnan copysign
17877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17878 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17879 $as_echo_n "checking for $ac_func... " >&6; }
17880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17881 $as_echo_n "(cached) " >&6
17882 else
17883 cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h. */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h. */
17889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17891 #define $ac_func innocuous_$ac_func
17893 /* System header to define __stub macros and hopefully few prototypes,
17894 which can conflict with char $ac_func (); below.
17895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17896 <limits.h> exists even on freestanding compilers. */
17898 #ifdef __STDC__
17899 # include <limits.h>
17900 #else
17901 # include <assert.h>
17902 #endif
17904 #undef $ac_func
17906 /* Override any GCC internal prototype to avoid an error.
17907 Use char because int might match the return type of a GCC
17908 builtin and then its argument prototype would still apply. */
17909 #ifdef __cplusplus
17910 extern "C"
17911 #endif
17912 char $ac_func ();
17913 /* The GNU C library defines this for functions which it implements
17914 to always fail with ENOSYS. Some functions are actually named
17915 something starting with __ and the normal name is an alias. */
17916 #if defined __stub_$ac_func || defined __stub___$ac_func
17917 choke me
17918 #endif
17921 main ()
17923 return $ac_func ();
17925 return 0;
17927 _ACEOF
17928 rm -f conftest.$ac_objext conftest$ac_exeext
17929 if { (ac_try="$ac_link"
17930 case "(($ac_try" in
17931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17932 *) ac_try_echo=$ac_try;;
17933 esac
17934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17935 $as_echo "$ac_try_echo") >&5
17936 (eval "$ac_link") 2>conftest.er1
17937 ac_status=$?
17938 grep -v '^ *+' conftest.er1 >conftest.err
17939 rm -f conftest.er1
17940 cat conftest.err >&5
17941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } && {
17943 test -z "$ac_c_werror_flag" ||
17944 test ! -s conftest.err
17945 } && test -s conftest$ac_exeext && {
17946 test "$cross_compiling" = yes ||
17947 $as_test_x conftest$ac_exeext
17948 }; then
17949 eval "$as_ac_var=yes"
17950 else
17951 $as_echo "$as_me: failed program was:" >&5
17952 sed 's/^/| /' conftest.$ac_ext >&5
17954 eval "$as_ac_var=no"
17957 rm -rf conftest.dSYM
17958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17959 conftest$ac_exeext conftest.$ac_ext
17961 ac_res=`eval 'as_val=${'$as_ac_var'}
17962 $as_echo "$as_val"'`
17963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17964 $as_echo "$ac_res" >&6; }
17965 as_val=`eval 'as_val=${'$as_ac_var'}
17966 $as_echo "$as_val"'`
17967 if test "x$as_val" = x""yes; then
17968 cat >>confdefs.h <<_ACEOF
17969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17970 _ACEOF
17973 done
17977 for ac_header in sys/un.h
17979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17982 $as_echo_n "checking for $ac_header... " >&6; }
17983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17984 $as_echo_n "(cached) " >&6
17986 ac_res=`eval 'as_val=${'$as_ac_Header'}
17987 $as_echo "$as_val"'`
17988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17989 $as_echo "$ac_res" >&6; }
17990 else
17991 # Is the header compilable?
17992 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17993 $as_echo_n "checking $ac_header usability... " >&6; }
17994 cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h. */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h. */
18000 $ac_includes_default
18001 #include <$ac_header>
18002 _ACEOF
18003 rm -f conftest.$ac_objext
18004 if { (ac_try="$ac_compile"
18005 case "(($ac_try" in
18006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18007 *) ac_try_echo=$ac_try;;
18008 esac
18009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18010 $as_echo "$ac_try_echo") >&5
18011 (eval "$ac_compile") 2>conftest.er1
18012 ac_status=$?
18013 grep -v '^ *+' conftest.er1 >conftest.err
18014 rm -f conftest.er1
18015 cat conftest.err >&5
18016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); } && {
18018 test -z "$ac_c_werror_flag" ||
18019 test ! -s conftest.err
18020 } && test -s conftest.$ac_objext; then
18021 ac_header_compiler=yes
18022 else
18023 $as_echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_header_compiler=no
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18031 $as_echo "$ac_header_compiler" >&6; }
18033 # Is the header present?
18034 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18035 $as_echo_n "checking $ac_header presence... " >&6; }
18036 cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h. */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18042 #include <$ac_header>
18043 _ACEOF
18044 if { (ac_try="$ac_cpp conftest.$ac_ext"
18045 case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18048 esac
18049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18050 $as_echo "$ac_try_echo") >&5
18051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18052 ac_status=$?
18053 grep -v '^ *+' conftest.er1 >conftest.err
18054 rm -f conftest.er1
18055 cat conftest.err >&5
18056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18057 (exit $ac_status); } >/dev/null && {
18058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18059 test ! -s conftest.err
18060 }; then
18061 ac_header_preproc=yes
18062 else
18063 $as_echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18066 ac_header_preproc=no
18069 rm -f conftest.err conftest.$ac_ext
18070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18071 $as_echo "$ac_header_preproc" >&6; }
18073 # So? What about this header?
18074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18075 yes:no: )
18076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18077 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18080 ac_header_preproc=yes
18082 no:yes:* )
18083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18084 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18086 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18088 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18090 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18094 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18097 esac
18098 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18099 $as_echo_n "checking for $ac_header... " >&6; }
18100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18101 $as_echo_n "(cached) " >&6
18102 else
18103 eval "$as_ac_Header=\$ac_header_preproc"
18105 ac_res=`eval 'as_val=${'$as_ac_Header'}
18106 $as_echo "$as_val"'`
18107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18108 $as_echo "$ac_res" >&6; }
18111 as_val=`eval 'as_val=${'$as_ac_Header'}
18112 $as_echo "$as_val"'`
18113 if test "x$as_val" = x""yes; then
18114 cat >>confdefs.h <<_ACEOF
18115 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18116 _ACEOF
18120 done
18127 for ac_header in $ac_header_list
18129 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18131 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18132 $as_echo_n "checking for $ac_header... " >&6; }
18133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18134 $as_echo_n "(cached) " >&6
18136 ac_res=`eval 'as_val=${'$as_ac_Header'}
18137 $as_echo "$as_val"'`
18138 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18139 $as_echo "$ac_res" >&6; }
18140 else
18141 # Is the header compilable?
18142 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18143 $as_echo_n "checking $ac_header usability... " >&6; }
18144 cat >conftest.$ac_ext <<_ACEOF
18145 /* confdefs.h. */
18146 _ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 $ac_includes_default
18151 #include <$ac_header>
18152 _ACEOF
18153 rm -f conftest.$ac_objext
18154 if { (ac_try="$ac_compile"
18155 case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18158 esac
18159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18160 $as_echo "$ac_try_echo") >&5
18161 (eval "$ac_compile") 2>conftest.er1
18162 ac_status=$?
18163 grep -v '^ *+' conftest.er1 >conftest.err
18164 rm -f conftest.er1
18165 cat conftest.err >&5
18166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } && {
18168 test -z "$ac_c_werror_flag" ||
18169 test ! -s conftest.err
18170 } && test -s conftest.$ac_objext; then
18171 ac_header_compiler=yes
18172 else
18173 $as_echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18176 ac_header_compiler=no
18179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18180 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18181 $as_echo "$ac_header_compiler" >&6; }
18183 # Is the header present?
18184 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18185 $as_echo_n "checking $ac_header presence... " >&6; }
18186 cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h. */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h. */
18192 #include <$ac_header>
18193 _ACEOF
18194 if { (ac_try="$ac_cpp conftest.$ac_ext"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198 esac
18199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18200 $as_echo "$ac_try_echo") >&5
18201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18202 ac_status=$?
18203 grep -v '^ *+' conftest.er1 >conftest.err
18204 rm -f conftest.er1
18205 cat conftest.err >&5
18206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18207 (exit $ac_status); } >/dev/null && {
18208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18209 test ! -s conftest.err
18210 }; then
18211 ac_header_preproc=yes
18212 else
18213 $as_echo "$as_me: failed program was:" >&5
18214 sed 's/^/| /' conftest.$ac_ext >&5
18216 ac_header_preproc=no
18219 rm -f conftest.err conftest.$ac_ext
18220 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18221 $as_echo "$ac_header_preproc" >&6; }
18223 # So? What about this header?
18224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18225 yes:no: )
18226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18227 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18229 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18230 ac_header_preproc=yes
18232 no:yes:* )
18233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18234 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18236 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18237 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18238 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18239 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18240 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18242 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18244 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18247 esac
18248 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18249 $as_echo_n "checking for $ac_header... " >&6; }
18250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18251 $as_echo_n "(cached) " >&6
18252 else
18253 eval "$as_ac_Header=\$ac_header_preproc"
18255 ac_res=`eval 'as_val=${'$as_ac_Header'}
18256 $as_echo "$as_val"'`
18257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18258 $as_echo "$ac_res" >&6; }
18261 as_val=`eval 'as_val=${'$as_ac_Header'}
18262 $as_echo "$as_val"'`
18263 if test "x$as_val" = x""yes; then
18264 cat >>confdefs.h <<_ACEOF
18265 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18266 _ACEOF
18270 done
18280 for ac_func in $ac_func_list
18282 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18283 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18284 $as_echo_n "checking for $ac_func... " >&6; }
18285 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18286 $as_echo_n "(cached) " >&6
18287 else
18288 cat >conftest.$ac_ext <<_ACEOF
18289 /* confdefs.h. */
18290 _ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18294 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18296 #define $ac_func innocuous_$ac_func
18298 /* System header to define __stub macros and hopefully few prototypes,
18299 which can conflict with char $ac_func (); below.
18300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18301 <limits.h> exists even on freestanding compilers. */
18303 #ifdef __STDC__
18304 # include <limits.h>
18305 #else
18306 # include <assert.h>
18307 #endif
18309 #undef $ac_func
18311 /* Override any GCC internal prototype to avoid an error.
18312 Use char because int might match the return type of a GCC
18313 builtin and then its argument prototype would still apply. */
18314 #ifdef __cplusplus
18315 extern "C"
18316 #endif
18317 char $ac_func ();
18318 /* The GNU C library defines this for functions which it implements
18319 to always fail with ENOSYS. Some functions are actually named
18320 something starting with __ and the normal name is an alias. */
18321 #if defined __stub_$ac_func || defined __stub___$ac_func
18322 choke me
18323 #endif
18326 main ()
18328 return $ac_func ();
18330 return 0;
18332 _ACEOF
18333 rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18338 esac
18339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18340 $as_echo "$ac_try_echo") >&5
18341 (eval "$ac_link") 2>conftest.er1
18342 ac_status=$?
18343 grep -v '^ *+' conftest.er1 >conftest.err
18344 rm -f conftest.er1
18345 cat conftest.err >&5
18346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } && {
18348 test -z "$ac_c_werror_flag" ||
18349 test ! -s conftest.err
18350 } && test -s conftest$ac_exeext && {
18351 test "$cross_compiling" = yes ||
18352 $as_test_x conftest$ac_exeext
18353 }; then
18354 eval "$as_ac_var=yes"
18355 else
18356 $as_echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18359 eval "$as_ac_var=no"
18362 rm -rf conftest.dSYM
18363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18364 conftest$ac_exeext conftest.$ac_ext
18366 ac_res=`eval 'as_val=${'$as_ac_var'}
18367 $as_echo "$as_val"'`
18368 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18369 $as_echo "$ac_res" >&6; }
18370 as_val=`eval 'as_val=${'$as_ac_var'}
18371 $as_echo "$as_val"'`
18372 if test "x$as_val" = x""yes; then
18373 cat >>confdefs.h <<_ACEOF
18374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18375 _ACEOF
18378 done
18396 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18397 $as_echo_n "checking for working mktime... " >&6; }
18398 if test "${ac_cv_func_working_mktime+set}" = set; then
18399 $as_echo_n "(cached) " >&6
18400 else
18401 if test "$cross_compiling" = yes; then
18402 ac_cv_func_working_mktime=no
18403 else
18404 cat >conftest.$ac_ext <<_ACEOF
18405 /* confdefs.h. */
18406 _ACEOF
18407 cat confdefs.h >>conftest.$ac_ext
18408 cat >>conftest.$ac_ext <<_ACEOF
18409 /* end confdefs.h. */
18410 /* Test program from Paul Eggert and Tony Leneis. */
18411 #ifdef TIME_WITH_SYS_TIME
18412 # include <sys/time.h>
18413 # include <time.h>
18414 #else
18415 # ifdef HAVE_SYS_TIME_H
18416 # include <sys/time.h>
18417 # else
18418 # include <time.h>
18419 # endif
18420 #endif
18422 #include <limits.h>
18423 #include <stdlib.h>
18425 #ifdef HAVE_UNISTD_H
18426 # include <unistd.h>
18427 #endif
18429 #ifndef HAVE_ALARM
18430 # define alarm(X) /* empty */
18431 #endif
18433 /* Work around redefinition to rpl_putenv by other config tests. */
18434 #undef putenv
18436 static time_t time_t_max;
18437 static time_t time_t_min;
18439 /* Values we'll use to set the TZ environment variable. */
18440 static char *tz_strings[] = {
18441 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18442 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18444 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18446 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18447 Based on a problem report from Andreas Jaeger. */
18448 static int
18449 spring_forward_gap ()
18451 /* glibc (up to about 1998-10-07) failed this test. */
18452 struct tm tm;
18454 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18455 instead of "TZ=America/Vancouver" in order to detect the bug even
18456 on systems that don't support the Olson extension, or don't have the
18457 full zoneinfo tables installed. */
18458 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18460 tm.tm_year = 98;
18461 tm.tm_mon = 3;
18462 tm.tm_mday = 5;
18463 tm.tm_hour = 2;
18464 tm.tm_min = 0;
18465 tm.tm_sec = 0;
18466 tm.tm_isdst = -1;
18467 return mktime (&tm) != (time_t) -1;
18470 static int
18471 mktime_test1 (now)
18472 time_t now;
18474 struct tm *lt;
18475 return ! (lt = localtime (&now)) || mktime (lt) == now;
18478 static int
18479 mktime_test (now)
18480 time_t now;
18482 return (mktime_test1 (now)
18483 && mktime_test1 ((time_t) (time_t_max - now))
18484 && mktime_test1 ((time_t) (time_t_min + now)));
18487 static int
18488 irix_6_4_bug ()
18490 /* Based on code from Ariel Faigon. */
18491 struct tm tm;
18492 tm.tm_year = 96;
18493 tm.tm_mon = 3;
18494 tm.tm_mday = 0;
18495 tm.tm_hour = 0;
18496 tm.tm_min = 0;
18497 tm.tm_sec = 0;
18498 tm.tm_isdst = -1;
18499 mktime (&tm);
18500 return tm.tm_mon == 2 && tm.tm_mday == 31;
18503 static int
18504 bigtime_test (j)
18505 int j;
18507 struct tm tm;
18508 time_t now;
18509 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18510 now = mktime (&tm);
18511 if (now != (time_t) -1)
18513 struct tm *lt = localtime (&now);
18514 if (! (lt
18515 && lt->tm_year == tm.tm_year
18516 && lt->tm_mon == tm.tm_mon
18517 && lt->tm_mday == tm.tm_mday
18518 && lt->tm_hour == tm.tm_hour
18519 && lt->tm_min == tm.tm_min
18520 && lt->tm_sec == tm.tm_sec
18521 && lt->tm_yday == tm.tm_yday
18522 && lt->tm_wday == tm.tm_wday
18523 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18524 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18525 return 0;
18527 return 1;
18530 static int
18531 year_2050_test ()
18533 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18534 ignoring leap seconds. */
18535 unsigned long int answer = 2527315200UL;
18537 struct tm tm;
18538 time_t t;
18539 tm.tm_year = 2050 - 1900;
18540 tm.tm_mon = 2 - 1;
18541 tm.tm_mday = 1;
18542 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18543 tm.tm_isdst = -1;
18545 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18546 instead of "TZ=America/Vancouver" in order to detect the bug even
18547 on systems that don't support the Olson extension, or don't have the
18548 full zoneinfo tables installed. */
18549 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18551 t = mktime (&tm);
18553 /* Check that the result is either a failure, or close enough
18554 to the correct answer that we can assume the discrepancy is
18555 due to leap seconds. */
18556 return (t == (time_t) -1
18557 || (0 < t && answer - 120 <= t && t <= answer + 120));
18561 main ()
18563 time_t t, delta;
18564 int i, j;
18566 /* This test makes some buggy mktime implementations loop.
18567 Give up after 60 seconds; a mktime slower than that
18568 isn't worth using anyway. */
18569 alarm (60);
18571 for (;;)
18573 t = (time_t_max << 1) + 1;
18574 if (t <= time_t_max)
18575 break;
18576 time_t_max = t;
18578 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18580 delta = time_t_max / 997; /* a suitable prime number */
18581 for (i = 0; i < N_STRINGS; i++)
18583 if (tz_strings[i])
18584 putenv (tz_strings[i]);
18586 for (t = 0; t <= time_t_max - delta; t += delta)
18587 if (! mktime_test (t))
18588 return 1;
18589 if (! (mktime_test ((time_t) 1)
18590 && mktime_test ((time_t) (60 * 60))
18591 && mktime_test ((time_t) (60 * 60 * 24))))
18592 return 1;
18594 for (j = 1; ; j <<= 1)
18595 if (! bigtime_test (j))
18596 return 1;
18597 else if (INT_MAX / 2 < j)
18598 break;
18599 if (! bigtime_test (INT_MAX))
18600 return 1;
18602 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18604 _ACEOF
18605 rm -f conftest$ac_exeext
18606 if { (ac_try="$ac_link"
18607 case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18610 esac
18611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18612 $as_echo "$ac_try_echo") >&5
18613 (eval "$ac_link") 2>&5
18614 ac_status=$?
18615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18617 { (case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18620 esac
18621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18622 $as_echo "$ac_try_echo") >&5
18623 (eval "$ac_try") 2>&5
18624 ac_status=$?
18625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; }; then
18627 ac_cv_func_working_mktime=yes
18628 else
18629 $as_echo "$as_me: program exited with status $ac_status" >&5
18630 $as_echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18633 ( exit $ac_status )
18634 ac_cv_func_working_mktime=no
18636 rm -rf conftest.dSYM
18637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18642 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18643 $as_echo "$ac_cv_func_working_mktime" >&6; }
18644 if test $ac_cv_func_working_mktime = no; then
18645 case " $LIBOBJS " in
18646 *" mktime.$ac_objext "* ) ;;
18647 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18649 esac
18653 if test "$ac_cv_func_working_mktime" = no; then
18655 cat >>confdefs.h <<\_ACEOF
18656 #define BROKEN_MKTIME 1
18657 _ACEOF
18661 ac_have_func=no # yes means we've found a way to get the load average.
18663 # Make sure getloadavg.c is where it belongs, at configure-time.
18664 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18665 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18666 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18667 { (exit 1); exit 1; }; }
18669 ac_save_LIBS=$LIBS
18671 # Check for getloadavg, but be sure not to touch the cache variable.
18672 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18673 $as_echo_n "checking for getloadavg... " >&6; }
18674 if test "${ac_cv_func_getloadavg+set}" = set; then
18675 $as_echo_n "(cached) " >&6
18676 else
18677 cat >conftest.$ac_ext <<_ACEOF
18678 /* confdefs.h. */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18685 #define getloadavg innocuous_getloadavg
18687 /* System header to define __stub macros and hopefully few prototypes,
18688 which can conflict with char getloadavg (); below.
18689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18690 <limits.h> exists even on freestanding compilers. */
18692 #ifdef __STDC__
18693 # include <limits.h>
18694 #else
18695 # include <assert.h>
18696 #endif
18698 #undef getloadavg
18700 /* Override any GCC internal prototype to avoid an error.
18701 Use char because int might match the return type of a GCC
18702 builtin and then its argument prototype would still apply. */
18703 #ifdef __cplusplus
18704 extern "C"
18705 #endif
18706 char getloadavg ();
18707 /* The GNU C library defines this for functions which it implements
18708 to always fail with ENOSYS. Some functions are actually named
18709 something starting with __ and the normal name is an alias. */
18710 #if defined __stub_getloadavg || defined __stub___getloadavg
18711 choke me
18712 #endif
18715 main ()
18717 return getloadavg ();
18719 return 0;
18721 _ACEOF
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (ac_try="$ac_link"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18727 esac
18728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18729 $as_echo "$ac_try_echo") >&5
18730 (eval "$ac_link") 2>conftest.er1
18731 ac_status=$?
18732 grep -v '^ *+' conftest.er1 >conftest.err
18733 rm -f conftest.er1
18734 cat conftest.err >&5
18735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); } && {
18737 test -z "$ac_c_werror_flag" ||
18738 test ! -s conftest.err
18739 } && test -s conftest$ac_exeext && {
18740 test "$cross_compiling" = yes ||
18741 $as_test_x conftest$ac_exeext
18742 }; then
18743 ac_cv_func_getloadavg=yes
18744 else
18745 $as_echo "$as_me: failed program was:" >&5
18746 sed 's/^/| /' conftest.$ac_ext >&5
18748 ac_cv_func_getloadavg=no
18751 rm -rf conftest.dSYM
18752 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18753 conftest$ac_exeext conftest.$ac_ext
18755 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18756 $as_echo "$ac_cv_func_getloadavg" >&6; }
18757 if test "x$ac_cv_func_getloadavg" = x""yes; then
18758 exit 0
18759 else
18760 exit 1
18762 ) && ac_have_func=yes
18764 # On HPUX9, an unprivileged user can get load averages through this function.
18766 for ac_func in pstat_getdynamic
18768 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18769 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18770 $as_echo_n "checking for $ac_func... " >&6; }
18771 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18772 $as_echo_n "(cached) " >&6
18773 else
18774 cat >conftest.$ac_ext <<_ACEOF
18775 /* confdefs.h. */
18776 _ACEOF
18777 cat confdefs.h >>conftest.$ac_ext
18778 cat >>conftest.$ac_ext <<_ACEOF
18779 /* end confdefs.h. */
18780 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18782 #define $ac_func innocuous_$ac_func
18784 /* System header to define __stub macros and hopefully few prototypes,
18785 which can conflict with char $ac_func (); below.
18786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18787 <limits.h> exists even on freestanding compilers. */
18789 #ifdef __STDC__
18790 # include <limits.h>
18791 #else
18792 # include <assert.h>
18793 #endif
18795 #undef $ac_func
18797 /* Override any GCC internal prototype to avoid an error.
18798 Use char because int might match the return type of a GCC
18799 builtin and then its argument prototype would still apply. */
18800 #ifdef __cplusplus
18801 extern "C"
18802 #endif
18803 char $ac_func ();
18804 /* The GNU C library defines this for functions which it implements
18805 to always fail with ENOSYS. Some functions are actually named
18806 something starting with __ and the normal name is an alias. */
18807 #if defined __stub_$ac_func || defined __stub___$ac_func
18808 choke me
18809 #endif
18812 main ()
18814 return $ac_func ();
18816 return 0;
18818 _ACEOF
18819 rm -f conftest.$ac_objext conftest$ac_exeext
18820 if { (ac_try="$ac_link"
18821 case "(($ac_try" in
18822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18823 *) ac_try_echo=$ac_try;;
18824 esac
18825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18826 $as_echo "$ac_try_echo") >&5
18827 (eval "$ac_link") 2>conftest.er1
18828 ac_status=$?
18829 grep -v '^ *+' conftest.er1 >conftest.err
18830 rm -f conftest.er1
18831 cat conftest.err >&5
18832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } && {
18834 test -z "$ac_c_werror_flag" ||
18835 test ! -s conftest.err
18836 } && test -s conftest$ac_exeext && {
18837 test "$cross_compiling" = yes ||
18838 $as_test_x conftest$ac_exeext
18839 }; then
18840 eval "$as_ac_var=yes"
18841 else
18842 $as_echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 eval "$as_ac_var=no"
18848 rm -rf conftest.dSYM
18849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18850 conftest$ac_exeext conftest.$ac_ext
18852 ac_res=`eval 'as_val=${'$as_ac_var'}
18853 $as_echo "$as_val"'`
18854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18855 $as_echo "$ac_res" >&6; }
18856 as_val=`eval 'as_val=${'$as_ac_var'}
18857 $as_echo "$as_val"'`
18858 if test "x$as_val" = x""yes; then
18859 cat >>confdefs.h <<_ACEOF
18860 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18861 _ACEOF
18864 done
18867 # Solaris has libkstat which does not require root.
18869 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18870 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18871 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18872 $as_echo_n "(cached) " >&6
18873 else
18874 ac_check_lib_save_LIBS=$LIBS
18875 LIBS="-lkstat $LIBS"
18876 cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h. */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18883 /* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18886 #ifdef __cplusplus
18887 extern "C"
18888 #endif
18889 char kstat_open ();
18891 main ()
18893 return kstat_open ();
18895 return 0;
18897 _ACEOF
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18903 esac
18904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18905 $as_echo "$ac_try_echo") >&5
18906 (eval "$ac_link") 2>conftest.er1
18907 ac_status=$?
18908 grep -v '^ *+' conftest.er1 >conftest.err
18909 rm -f conftest.er1
18910 cat conftest.err >&5
18911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } && {
18913 test -z "$ac_c_werror_flag" ||
18914 test ! -s conftest.err
18915 } && test -s conftest$ac_exeext && {
18916 test "$cross_compiling" = yes ||
18917 $as_test_x conftest$ac_exeext
18918 }; then
18919 ac_cv_lib_kstat_kstat_open=yes
18920 else
18921 $as_echo "$as_me: failed program was:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18924 ac_cv_lib_kstat_kstat_open=no
18927 rm -rf conftest.dSYM
18928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18929 conftest$ac_exeext conftest.$ac_ext
18930 LIBS=$ac_check_lib_save_LIBS
18932 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18933 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18934 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_LIBKSTAT 1
18937 _ACEOF
18939 LIBS="-lkstat $LIBS"
18943 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18945 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18946 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18947 # to get the right answer into the cache.
18948 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18949 if test $ac_have_func = no; then
18950 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18951 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18952 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18953 $as_echo_n "(cached) " >&6
18954 else
18955 ac_check_lib_save_LIBS=$LIBS
18956 LIBS="-lelf $LIBS"
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h. */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18964 /* Override any GCC internal prototype to avoid an error.
18965 Use char because int might match the return type of a GCC
18966 builtin and then its argument prototype would still apply. */
18967 #ifdef __cplusplus
18968 extern "C"
18969 #endif
18970 char elf_begin ();
18972 main ()
18974 return elf_begin ();
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18986 $as_echo "$ac_try_echo") >&5
18987 (eval "$ac_link") 2>conftest.er1
18988 ac_status=$?
18989 grep -v '^ *+' conftest.er1 >conftest.err
18990 rm -f conftest.er1
18991 cat conftest.err >&5
18992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } && {
18994 test -z "$ac_c_werror_flag" ||
18995 test ! -s conftest.err
18996 } && test -s conftest$ac_exeext && {
18997 test "$cross_compiling" = yes ||
18998 $as_test_x conftest$ac_exeext
18999 }; then
19000 ac_cv_lib_elf_elf_begin=yes
19001 else
19002 $as_echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 ac_cv_lib_elf_elf_begin=no
19008 rm -rf conftest.dSYM
19009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19010 conftest$ac_exeext conftest.$ac_ext
19011 LIBS=$ac_check_lib_save_LIBS
19013 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19014 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
19015 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then
19016 LIBS="-lelf $LIBS"
19020 if test $ac_have_func = no; then
19021 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
19022 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
19023 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
19024 $as_echo_n "(cached) " >&6
19025 else
19026 ac_check_lib_save_LIBS=$LIBS
19027 LIBS="-lkvm $LIBS"
19028 cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h. */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19035 /* Override any GCC internal prototype to avoid an error.
19036 Use char because int might match the return type of a GCC
19037 builtin and then its argument prototype would still apply. */
19038 #ifdef __cplusplus
19039 extern "C"
19040 #endif
19041 char kvm_open ();
19043 main ()
19045 return kvm_open ();
19047 return 0;
19049 _ACEOF
19050 rm -f conftest.$ac_objext conftest$ac_exeext
19051 if { (ac_try="$ac_link"
19052 case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19055 esac
19056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19057 $as_echo "$ac_try_echo") >&5
19058 (eval "$ac_link") 2>conftest.er1
19059 ac_status=$?
19060 grep -v '^ *+' conftest.er1 >conftest.err
19061 rm -f conftest.er1
19062 cat conftest.err >&5
19063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); } && {
19065 test -z "$ac_c_werror_flag" ||
19066 test ! -s conftest.err
19067 } && test -s conftest$ac_exeext && {
19068 test "$cross_compiling" = yes ||
19069 $as_test_x conftest$ac_exeext
19070 }; then
19071 ac_cv_lib_kvm_kvm_open=yes
19072 else
19073 $as_echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19076 ac_cv_lib_kvm_kvm_open=no
19079 rm -rf conftest.dSYM
19080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19081 conftest$ac_exeext conftest.$ac_ext
19082 LIBS=$ac_check_lib_save_LIBS
19084 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
19085 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
19086 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then
19087 LIBS="-lkvm $LIBS"
19090 # Check for the 4.4BSD definition of getloadavg.
19091 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
19092 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
19093 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
19094 $as_echo_n "(cached) " >&6
19095 else
19096 ac_check_lib_save_LIBS=$LIBS
19097 LIBS="-lutil $LIBS"
19098 cat >conftest.$ac_ext <<_ACEOF
19099 /* confdefs.h. */
19100 _ACEOF
19101 cat confdefs.h >>conftest.$ac_ext
19102 cat >>conftest.$ac_ext <<_ACEOF
19103 /* end confdefs.h. */
19105 /* Override any GCC internal prototype to avoid an error.
19106 Use char because int might match the return type of a GCC
19107 builtin and then its argument prototype would still apply. */
19108 #ifdef __cplusplus
19109 extern "C"
19110 #endif
19111 char getloadavg ();
19113 main ()
19115 return getloadavg ();
19117 return 0;
19119 _ACEOF
19120 rm -f conftest.$ac_objext conftest$ac_exeext
19121 if { (ac_try="$ac_link"
19122 case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19125 esac
19126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19127 $as_echo "$ac_try_echo") >&5
19128 (eval "$ac_link") 2>conftest.er1
19129 ac_status=$?
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
19133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } && {
19135 test -z "$ac_c_werror_flag" ||
19136 test ! -s conftest.err
19137 } && test -s conftest$ac_exeext && {
19138 test "$cross_compiling" = yes ||
19139 $as_test_x conftest$ac_exeext
19140 }; then
19141 ac_cv_lib_util_getloadavg=yes
19142 else
19143 $as_echo "$as_me: failed program was:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_cv_lib_util_getloadavg=no
19149 rm -rf conftest.dSYM
19150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19151 conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19154 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
19155 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
19156 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then
19157 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
19162 if test $ac_have_func = no; then
19163 # There is a commonly available library for RS/6000 AIX.
19164 # Since it is not a standard part of AIX, it might be installed locally.
19165 ac_getloadavg_LIBS=$LIBS
19166 LIBS="-L/usr/local/lib $LIBS"
19167 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
19168 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
19169 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
19170 $as_echo_n "(cached) " >&6
19171 else
19172 ac_check_lib_save_LIBS=$LIBS
19173 LIBS="-lgetloadavg $LIBS"
19174 cat >conftest.$ac_ext <<_ACEOF
19175 /* confdefs.h. */
19176 _ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19181 /* Override any GCC internal prototype to avoid an error.
19182 Use char because int might match the return type of a GCC
19183 builtin and then its argument prototype would still apply. */
19184 #ifdef __cplusplus
19185 extern "C"
19186 #endif
19187 char getloadavg ();
19189 main ()
19191 return getloadavg ();
19193 return 0;
19195 _ACEOF
19196 rm -f conftest.$ac_objext conftest$ac_exeext
19197 if { (ac_try="$ac_link"
19198 case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19201 esac
19202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19203 $as_echo "$ac_try_echo") >&5
19204 (eval "$ac_link") 2>conftest.er1
19205 ac_status=$?
19206 grep -v '^ *+' conftest.er1 >conftest.err
19207 rm -f conftest.er1
19208 cat conftest.err >&5
19209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210 (exit $ac_status); } && {
19211 test -z "$ac_c_werror_flag" ||
19212 test ! -s conftest.err
19213 } && test -s conftest$ac_exeext && {
19214 test "$cross_compiling" = yes ||
19215 $as_test_x conftest$ac_exeext
19216 }; then
19217 ac_cv_lib_getloadavg_getloadavg=yes
19218 else
19219 $as_echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19222 ac_cv_lib_getloadavg_getloadavg=no
19225 rm -rf conftest.dSYM
19226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19227 conftest$ac_exeext conftest.$ac_ext
19228 LIBS=$ac_check_lib_save_LIBS
19230 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
19231 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
19232 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then
19233 LIBS="-lgetloadavg $LIBS"
19234 else
19235 LIBS=$ac_getloadavg_LIBS
19240 # Make sure it is really in the library, if we think we found it,
19241 # otherwise set up the replacement function.
19243 for ac_func in getloadavg
19245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19246 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19247 $as_echo_n "checking for $ac_func... " >&6; }
19248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19249 $as_echo_n "(cached) " >&6
19250 else
19251 cat >conftest.$ac_ext <<_ACEOF
19252 /* confdefs.h. */
19253 _ACEOF
19254 cat confdefs.h >>conftest.$ac_ext
19255 cat >>conftest.$ac_ext <<_ACEOF
19256 /* end confdefs.h. */
19257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19259 #define $ac_func innocuous_$ac_func
19261 /* System header to define __stub macros and hopefully few prototypes,
19262 which can conflict with char $ac_func (); below.
19263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19264 <limits.h> exists even on freestanding compilers. */
19266 #ifdef __STDC__
19267 # include <limits.h>
19268 #else
19269 # include <assert.h>
19270 #endif
19272 #undef $ac_func
19274 /* Override any GCC internal prototype to avoid an error.
19275 Use char because int might match the return type of a GCC
19276 builtin and then its argument prototype would still apply. */
19277 #ifdef __cplusplus
19278 extern "C"
19279 #endif
19280 char $ac_func ();
19281 /* The GNU C library defines this for functions which it implements
19282 to always fail with ENOSYS. Some functions are actually named
19283 something starting with __ and the normal name is an alias. */
19284 #if defined __stub_$ac_func || defined __stub___$ac_func
19285 choke me
19286 #endif
19289 main ()
19291 return $ac_func ();
19293 return 0;
19295 _ACEOF
19296 rm -f conftest.$ac_objext conftest$ac_exeext
19297 if { (ac_try="$ac_link"
19298 case "(($ac_try" in
19299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19300 *) ac_try_echo=$ac_try;;
19301 esac
19302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19303 $as_echo "$ac_try_echo") >&5
19304 (eval "$ac_link") 2>conftest.er1
19305 ac_status=$?
19306 grep -v '^ *+' conftest.er1 >conftest.err
19307 rm -f conftest.er1
19308 cat conftest.err >&5
19309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310 (exit $ac_status); } && {
19311 test -z "$ac_c_werror_flag" ||
19312 test ! -s conftest.err
19313 } && test -s conftest$ac_exeext && {
19314 test "$cross_compiling" = yes ||
19315 $as_test_x conftest$ac_exeext
19316 }; then
19317 eval "$as_ac_var=yes"
19318 else
19319 $as_echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19322 eval "$as_ac_var=no"
19325 rm -rf conftest.dSYM
19326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19327 conftest$ac_exeext conftest.$ac_ext
19329 ac_res=`eval 'as_val=${'$as_ac_var'}
19330 $as_echo "$as_val"'`
19331 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19332 $as_echo "$ac_res" >&6; }
19333 as_val=`eval 'as_val=${'$as_ac_var'}
19334 $as_echo "$as_val"'`
19335 if test "x$as_val" = x""yes; then
19336 cat >>confdefs.h <<_ACEOF
19337 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19338 _ACEOF
19340 else
19341 case " $LIBOBJS " in
19342 *" getloadavg.$ac_objext "* ) ;;
19343 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
19345 esac
19348 cat >>confdefs.h <<\_ACEOF
19349 #define C_GETLOADAVG 1
19350 _ACEOF
19352 # Figure out what our getloadavg.c needs.
19353 ac_have_func=no
19354 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19355 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19356 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19357 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19358 $as_echo_n "(cached) " >&6
19360 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19361 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19362 else
19363 # Is the header compilable?
19364 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19365 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19366 cat >conftest.$ac_ext <<_ACEOF
19367 /* confdefs.h. */
19368 _ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h. */
19372 $ac_includes_default
19373 #include <sys/dg_sys_info.h>
19374 _ACEOF
19375 rm -f conftest.$ac_objext
19376 if { (ac_try="$ac_compile"
19377 case "(($ac_try" in
19378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19379 *) ac_try_echo=$ac_try;;
19380 esac
19381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19382 $as_echo "$ac_try_echo") >&5
19383 (eval "$ac_compile") 2>conftest.er1
19384 ac_status=$?
19385 grep -v '^ *+' conftest.er1 >conftest.err
19386 rm -f conftest.er1
19387 cat conftest.err >&5
19388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); } && {
19390 test -z "$ac_c_werror_flag" ||
19391 test ! -s conftest.err
19392 } && test -s conftest.$ac_objext; then
19393 ac_header_compiler=yes
19394 else
19395 $as_echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19398 ac_header_compiler=no
19401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19403 $as_echo "$ac_header_compiler" >&6; }
19405 # Is the header present?
19406 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19407 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19408 cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h. */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 #include <sys/dg_sys_info.h>
19415 _ACEOF
19416 if { (ac_try="$ac_cpp conftest.$ac_ext"
19417 case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19420 esac
19421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19422 $as_echo "$ac_try_echo") >&5
19423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19424 ac_status=$?
19425 grep -v '^ *+' conftest.er1 >conftest.err
19426 rm -f conftest.er1
19427 cat conftest.err >&5
19428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); } >/dev/null && {
19430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19431 test ! -s conftest.err
19432 }; then
19433 ac_header_preproc=yes
19434 else
19435 $as_echo "$as_me: failed program was:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 ac_header_preproc=no
19441 rm -f conftest.err conftest.$ac_ext
19442 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19443 $as_echo "$ac_header_preproc" >&6; }
19445 # So? What about this header?
19446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19447 yes:no: )
19448 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19449 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19450 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19451 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19452 ac_header_preproc=yes
19454 no:yes:* )
19455 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19456 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19457 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19458 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19459 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19460 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19461 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19462 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19463 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19464 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19465 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19466 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19469 esac
19470 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19471 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19472 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19473 $as_echo_n "(cached) " >&6
19474 else
19475 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19477 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19478 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19481 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then
19482 ac_have_func=yes
19484 cat >>confdefs.h <<\_ACEOF
19485 #define DGUX 1
19486 _ACEOF
19489 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19490 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19491 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19492 $as_echo_n "(cached) " >&6
19493 else
19494 ac_check_lib_save_LIBS=$LIBS
19495 LIBS="-ldgc $LIBS"
19496 cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h. */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19503 /* Override any GCC internal prototype to avoid an error.
19504 Use char because int might match the return type of a GCC
19505 builtin and then its argument prototype would still apply. */
19506 #ifdef __cplusplus
19507 extern "C"
19508 #endif
19509 char dg_sys_info ();
19511 main ()
19513 return dg_sys_info ();
19515 return 0;
19517 _ACEOF
19518 rm -f conftest.$ac_objext conftest$ac_exeext
19519 if { (ac_try="$ac_link"
19520 case "(($ac_try" in
19521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522 *) ac_try_echo=$ac_try;;
19523 esac
19524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19525 $as_echo "$ac_try_echo") >&5
19526 (eval "$ac_link") 2>conftest.er1
19527 ac_status=$?
19528 grep -v '^ *+' conftest.er1 >conftest.err
19529 rm -f conftest.er1
19530 cat conftest.err >&5
19531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); } && {
19533 test -z "$ac_c_werror_flag" ||
19534 test ! -s conftest.err
19535 } && test -s conftest$ac_exeext && {
19536 test "$cross_compiling" = yes ||
19537 $as_test_x conftest$ac_exeext
19538 }; then
19539 ac_cv_lib_dgc_dg_sys_info=yes
19540 else
19541 $as_echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ac_cv_lib_dgc_dg_sys_info=no
19547 rm -rf conftest.dSYM
19548 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19549 conftest$ac_exeext conftest.$ac_ext
19550 LIBS=$ac_check_lib_save_LIBS
19552 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19553 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19554 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then
19555 cat >>confdefs.h <<_ACEOF
19556 #define HAVE_LIBDGC 1
19557 _ACEOF
19559 LIBS="-ldgc $LIBS"
19567 if test "${ac_cv_header_locale_h+set}" = set; then
19568 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19569 $as_echo_n "checking for locale.h... " >&6; }
19570 if test "${ac_cv_header_locale_h+set}" = set; then
19571 $as_echo_n "(cached) " >&6
19573 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19574 $as_echo "$ac_cv_header_locale_h" >&6; }
19575 else
19576 # Is the header compilable?
19577 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19578 $as_echo_n "checking locale.h usability... " >&6; }
19579 cat >conftest.$ac_ext <<_ACEOF
19580 /* confdefs.h. */
19581 _ACEOF
19582 cat confdefs.h >>conftest.$ac_ext
19583 cat >>conftest.$ac_ext <<_ACEOF
19584 /* end confdefs.h. */
19585 $ac_includes_default
19586 #include <locale.h>
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (ac_try="$ac_compile"
19590 case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19593 esac
19594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19595 $as_echo "$ac_try_echo") >&5
19596 (eval "$ac_compile") 2>conftest.er1
19597 ac_status=$?
19598 grep -v '^ *+' conftest.er1 >conftest.err
19599 rm -f conftest.er1
19600 cat conftest.err >&5
19601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } && {
19603 test -z "$ac_c_werror_flag" ||
19604 test ! -s conftest.err
19605 } && test -s conftest.$ac_objext; then
19606 ac_header_compiler=yes
19607 else
19608 $as_echo "$as_me: failed program was:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19611 ac_header_compiler=no
19614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19615 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19616 $as_echo "$ac_header_compiler" >&6; }
19618 # Is the header present?
19619 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19620 $as_echo_n "checking locale.h presence... " >&6; }
19621 cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h. */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 #include <locale.h>
19628 _ACEOF
19629 if { (ac_try="$ac_cpp conftest.$ac_ext"
19630 case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19633 esac
19634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19635 $as_echo "$ac_try_echo") >&5
19636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19637 ac_status=$?
19638 grep -v '^ *+' conftest.er1 >conftest.err
19639 rm -f conftest.er1
19640 cat conftest.err >&5
19641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } >/dev/null && {
19643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19644 test ! -s conftest.err
19645 }; then
19646 ac_header_preproc=yes
19647 else
19648 $as_echo "$as_me: failed program was:" >&5
19649 sed 's/^/| /' conftest.$ac_ext >&5
19651 ac_header_preproc=no
19654 rm -f conftest.err conftest.$ac_ext
19655 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19656 $as_echo "$ac_header_preproc" >&6; }
19658 # So? What about this header?
19659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19660 yes:no: )
19661 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19662 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19663 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19664 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19665 ac_header_preproc=yes
19667 no:yes:* )
19668 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19669 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19670 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19671 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19672 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19673 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19674 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19675 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19676 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19677 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19678 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19679 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19682 esac
19683 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19684 $as_echo_n "checking for locale.h... " >&6; }
19685 if test "${ac_cv_header_locale_h+set}" = set; then
19686 $as_echo_n "(cached) " >&6
19687 else
19688 ac_cv_header_locale_h=$ac_header_preproc
19690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19691 $as_echo "$ac_cv_header_locale_h" >&6; }
19697 for ac_func in setlocale
19699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19700 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19701 $as_echo_n "checking for $ac_func... " >&6; }
19702 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19703 $as_echo_n "(cached) " >&6
19704 else
19705 cat >conftest.$ac_ext <<_ACEOF
19706 /* confdefs.h. */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h. */
19711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19713 #define $ac_func innocuous_$ac_func
19715 /* System header to define __stub macros and hopefully few prototypes,
19716 which can conflict with char $ac_func (); below.
19717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19718 <limits.h> exists even on freestanding compilers. */
19720 #ifdef __STDC__
19721 # include <limits.h>
19722 #else
19723 # include <assert.h>
19724 #endif
19726 #undef $ac_func
19728 /* Override any GCC internal prototype to avoid an error.
19729 Use char because int might match the return type of a GCC
19730 builtin and then its argument prototype would still apply. */
19731 #ifdef __cplusplus
19732 extern "C"
19733 #endif
19734 char $ac_func ();
19735 /* The GNU C library defines this for functions which it implements
19736 to always fail with ENOSYS. Some functions are actually named
19737 something starting with __ and the normal name is an alias. */
19738 #if defined __stub_$ac_func || defined __stub___$ac_func
19739 choke me
19740 #endif
19743 main ()
19745 return $ac_func ();
19747 return 0;
19749 _ACEOF
19750 rm -f conftest.$ac_objext conftest$ac_exeext
19751 if { (ac_try="$ac_link"
19752 case "(($ac_try" in
19753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19754 *) ac_try_echo=$ac_try;;
19755 esac
19756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19757 $as_echo "$ac_try_echo") >&5
19758 (eval "$ac_link") 2>conftest.er1
19759 ac_status=$?
19760 grep -v '^ *+' conftest.er1 >conftest.err
19761 rm -f conftest.er1
19762 cat conftest.err >&5
19763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } && {
19765 test -z "$ac_c_werror_flag" ||
19766 test ! -s conftest.err
19767 } && test -s conftest$ac_exeext && {
19768 test "$cross_compiling" = yes ||
19769 $as_test_x conftest$ac_exeext
19770 }; then
19771 eval "$as_ac_var=yes"
19772 else
19773 $as_echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19776 eval "$as_ac_var=no"
19779 rm -rf conftest.dSYM
19780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19781 conftest$ac_exeext conftest.$ac_ext
19783 ac_res=`eval 'as_val=${'$as_ac_var'}
19784 $as_echo "$as_val"'`
19785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19786 $as_echo "$ac_res" >&6; }
19787 as_val=`eval 'as_val=${'$as_ac_var'}
19788 $as_echo "$as_val"'`
19789 if test "x$as_val" = x""yes; then
19790 cat >>confdefs.h <<_ACEOF
19791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19792 _ACEOF
19795 done
19798 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19799 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19800 # Irix 4.0.5F has the header but not the library.
19801 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19802 ac_have_func=yes
19804 cat >>confdefs.h <<\_ACEOF
19805 #define SVR4 1
19806 _ACEOF
19810 if test $ac_have_func = no; then
19811 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19812 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19813 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19814 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19815 $as_echo_n "(cached) " >&6
19817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19818 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19819 else
19820 # Is the header compilable?
19821 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19822 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19823 cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h. */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19829 $ac_includes_default
19830 #include <inq_stats/cpustats.h>
19831 _ACEOF
19832 rm -f conftest.$ac_objext
19833 if { (ac_try="$ac_compile"
19834 case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19837 esac
19838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19839 $as_echo "$ac_try_echo") >&5
19840 (eval "$ac_compile") 2>conftest.er1
19841 ac_status=$?
19842 grep -v '^ *+' conftest.er1 >conftest.err
19843 rm -f conftest.er1
19844 cat conftest.err >&5
19845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); } && {
19847 test -z "$ac_c_werror_flag" ||
19848 test ! -s conftest.err
19849 } && test -s conftest.$ac_objext; then
19850 ac_header_compiler=yes
19851 else
19852 $as_echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19855 ac_header_compiler=no
19858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19859 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19860 $as_echo "$ac_header_compiler" >&6; }
19862 # Is the header present?
19863 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19864 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19865 cat >conftest.$ac_ext <<_ACEOF
19866 /* confdefs.h. */
19867 _ACEOF
19868 cat confdefs.h >>conftest.$ac_ext
19869 cat >>conftest.$ac_ext <<_ACEOF
19870 /* end confdefs.h. */
19871 #include <inq_stats/cpustats.h>
19872 _ACEOF
19873 if { (ac_try="$ac_cpp conftest.$ac_ext"
19874 case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19877 esac
19878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19879 $as_echo "$ac_try_echo") >&5
19880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19881 ac_status=$?
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
19885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } >/dev/null && {
19887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19889 }; then
19890 ac_header_preproc=yes
19891 else
19892 $as_echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19895 ac_header_preproc=no
19898 rm -f conftest.err conftest.$ac_ext
19899 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19900 $as_echo "$ac_header_preproc" >&6; }
19902 # So? What about this header?
19903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19904 yes:no: )
19905 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19906 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19907 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19908 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19909 ac_header_preproc=yes
19911 no:yes:* )
19912 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19913 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19914 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19915 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19916 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19917 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19918 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19919 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19920 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19921 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19922 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19923 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19926 esac
19927 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19928 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19929 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19930 $as_echo_n "(cached) " >&6
19931 else
19932 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19934 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19935 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19938 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then
19939 ac_have_func=yes
19941 cat >>confdefs.h <<\_ACEOF
19942 #define UMAX 1
19943 _ACEOF
19946 cat >>confdefs.h <<\_ACEOF
19947 #define UMAX4_3 1
19948 _ACEOF
19955 if test $ac_have_func = no; then
19956 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19957 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19958 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19959 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19960 $as_echo_n "(cached) " >&6
19962 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19963 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19964 else
19965 # Is the header compilable?
19966 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19967 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19968 cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h. */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 $ac_includes_default
19975 #include <sys/cpustats.h>
19976 _ACEOF
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19982 esac
19983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19984 $as_echo "$ac_try_echo") >&5
19985 (eval "$ac_compile") 2>conftest.er1
19986 ac_status=$?
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
19990 $as_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_objext; then
19995 ac_header_compiler=yes
19996 else
19997 $as_echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_header_compiler=no
20003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20005 $as_echo "$ac_header_compiler" >&6; }
20007 # Is the header present?
20008 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
20009 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
20010 cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h. */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 #include <sys/cpustats.h>
20017 _ACEOF
20018 if { (ac_try="$ac_cpp conftest.$ac_ext"
20019 case "(($ac_try" in
20020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021 *) ac_try_echo=$ac_try;;
20022 esac
20023 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20024 $as_echo "$ac_try_echo") >&5
20025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20026 ac_status=$?
20027 grep -v '^ *+' conftest.er1 >conftest.err
20028 rm -f conftest.er1
20029 cat conftest.err >&5
20030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } >/dev/null && {
20032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20033 test ! -s conftest.err
20034 }; then
20035 ac_header_preproc=yes
20036 else
20037 $as_echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_header_preproc=no
20043 rm -f conftest.err conftest.$ac_ext
20044 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20045 $as_echo "$ac_header_preproc" >&6; }
20047 # So? What about this header?
20048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20049 yes:no: )
20050 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
20051 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20052 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
20053 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
20054 ac_header_preproc=yes
20056 no:yes:* )
20057 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
20058 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
20059 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
20060 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
20061 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
20062 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
20063 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
20064 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
20065 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
20066 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
20067 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
20068 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
20071 esac
20072 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
20073 $as_echo_n "checking for sys/cpustats.h... " >&6; }
20074 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
20075 $as_echo_n "(cached) " >&6
20076 else
20077 ac_cv_header_sys_cpustats_h=$ac_header_preproc
20079 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
20080 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
20083 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then
20084 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
20085 #define UMAX 1
20086 _ACEOF
20093 if test $ac_have_func = no; then
20095 for ac_header in mach/mach.h
20097 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20099 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20100 $as_echo_n "checking for $ac_header... " >&6; }
20101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20102 $as_echo_n "(cached) " >&6
20104 ac_res=`eval 'as_val=${'$as_ac_Header'}
20105 $as_echo "$as_val"'`
20106 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20107 $as_echo "$ac_res" >&6; }
20108 else
20109 # Is the header compilable?
20110 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20111 $as_echo_n "checking $ac_header usability... " >&6; }
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h. */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118 $ac_includes_default
20119 #include <$ac_header>
20120 _ACEOF
20121 rm -f conftest.$ac_objext
20122 if { (ac_try="$ac_compile"
20123 case "(($ac_try" in
20124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20125 *) ac_try_echo=$ac_try;;
20126 esac
20127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20128 $as_echo "$ac_try_echo") >&5
20129 (eval "$ac_compile") 2>conftest.er1
20130 ac_status=$?
20131 grep -v '^ *+' conftest.er1 >conftest.err
20132 rm -f conftest.er1
20133 cat conftest.err >&5
20134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); } && {
20136 test -z "$ac_c_werror_flag" ||
20137 test ! -s conftest.err
20138 } && test -s conftest.$ac_objext; then
20139 ac_header_compiler=yes
20140 else
20141 $as_echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ac_header_compiler=no
20147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20148 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20149 $as_echo "$ac_header_compiler" >&6; }
20151 # Is the header present?
20152 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20153 $as_echo_n "checking $ac_header presence... " >&6; }
20154 cat >conftest.$ac_ext <<_ACEOF
20155 /* confdefs.h. */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20160 #include <$ac_header>
20161 _ACEOF
20162 if { (ac_try="$ac_cpp conftest.$ac_ext"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20166 esac
20167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20168 $as_echo "$ac_try_echo") >&5
20169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } >/dev/null && {
20176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 }; then
20179 ac_header_preproc=yes
20180 else
20181 $as_echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ac_header_preproc=no
20187 rm -f conftest.err conftest.$ac_ext
20188 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20189 $as_echo "$ac_header_preproc" >&6; }
20191 # So? What about this header?
20192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20193 yes:no: )
20194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20195 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20196 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20197 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20198 ac_header_preproc=yes
20200 no:yes:* )
20201 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20202 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20203 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20204 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20205 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20206 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20208 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20212 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20215 esac
20216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20217 $as_echo_n "checking for $ac_header... " >&6; }
20218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20219 $as_echo_n "(cached) " >&6
20220 else
20221 eval "$as_ac_Header=\$ac_header_preproc"
20223 ac_res=`eval 'as_val=${'$as_ac_Header'}
20224 $as_echo "$as_val"'`
20225 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20226 $as_echo "$ac_res" >&6; }
20229 as_val=`eval 'as_val=${'$as_ac_Header'}
20230 $as_echo "$as_val"'`
20231 if test "x$as_val" = x""yes; then
20232 cat >>confdefs.h <<_ACEOF
20233 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20234 _ACEOF
20238 done
20243 for ac_header in nlist.h
20245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20247 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20248 $as_echo_n "checking for $ac_header... " >&6; }
20249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20250 $as_echo_n "(cached) " >&6
20252 ac_res=`eval 'as_val=${'$as_ac_Header'}
20253 $as_echo "$as_val"'`
20254 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20255 $as_echo "$ac_res" >&6; }
20256 else
20257 # Is the header compilable?
20258 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20259 $as_echo_n "checking $ac_header usability... " >&6; }
20260 cat >conftest.$ac_ext <<_ACEOF
20261 /* confdefs.h. */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20266 $ac_includes_default
20267 #include <$ac_header>
20268 _ACEOF
20269 rm -f conftest.$ac_objext
20270 if { (ac_try="$ac_compile"
20271 case "(($ac_try" in
20272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20273 *) ac_try_echo=$ac_try;;
20274 esac
20275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20276 $as_echo "$ac_try_echo") >&5
20277 (eval "$ac_compile") 2>conftest.er1
20278 ac_status=$?
20279 grep -v '^ *+' conftest.er1 >conftest.err
20280 rm -f conftest.er1
20281 cat conftest.err >&5
20282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20283 (exit $ac_status); } && {
20284 test -z "$ac_c_werror_flag" ||
20285 test ! -s conftest.err
20286 } && test -s conftest.$ac_objext; then
20287 ac_header_compiler=yes
20288 else
20289 $as_echo "$as_me: failed program was:" >&5
20290 sed 's/^/| /' conftest.$ac_ext >&5
20292 ac_header_compiler=no
20295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20296 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20297 $as_echo "$ac_header_compiler" >&6; }
20299 # Is the header present?
20300 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20301 $as_echo_n "checking $ac_header presence... " >&6; }
20302 cat >conftest.$ac_ext <<_ACEOF
20303 /* confdefs.h. */
20304 _ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h. */
20308 #include <$ac_header>
20309 _ACEOF
20310 if { (ac_try="$ac_cpp conftest.$ac_ext"
20311 case "(($ac_try" in
20312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20313 *) ac_try_echo=$ac_try;;
20314 esac
20315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20316 $as_echo "$ac_try_echo") >&5
20317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20318 ac_status=$?
20319 grep -v '^ *+' conftest.er1 >conftest.err
20320 rm -f conftest.er1
20321 cat conftest.err >&5
20322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } >/dev/null && {
20324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20325 test ! -s conftest.err
20326 }; then
20327 ac_header_preproc=yes
20328 else
20329 $as_echo "$as_me: failed program was:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20332 ac_header_preproc=no
20335 rm -f conftest.err conftest.$ac_ext
20336 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20337 $as_echo "$ac_header_preproc" >&6; }
20339 # So? What about this header?
20340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20341 yes:no: )
20342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20343 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20346 ac_header_preproc=yes
20348 no:yes:* )
20349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20350 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20352 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20354 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20355 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20356 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20357 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20359 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20360 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20363 esac
20364 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20365 $as_echo_n "checking for $ac_header... " >&6; }
20366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20367 $as_echo_n "(cached) " >&6
20368 else
20369 eval "$as_ac_Header=\$ac_header_preproc"
20371 ac_res=`eval 'as_val=${'$as_ac_Header'}
20372 $as_echo "$as_val"'`
20373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20374 $as_echo "$ac_res" >&6; }
20377 as_val=`eval 'as_val=${'$as_ac_Header'}
20378 $as_echo "$as_val"'`
20379 if test "x$as_val" = x""yes; then
20380 cat >>confdefs.h <<_ACEOF
20381 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20382 _ACEOF
20383 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20384 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20385 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20386 $as_echo_n "(cached) " >&6
20387 else
20388 cat >conftest.$ac_ext <<_ACEOF
20389 /* confdefs.h. */
20390 _ACEOF
20391 cat confdefs.h >>conftest.$ac_ext
20392 cat >>conftest.$ac_ext <<_ACEOF
20393 /* end confdefs.h. */
20394 #include <nlist.h>
20397 main ()
20399 static struct nlist ac_aggr;
20400 if (ac_aggr.n_un.n_name)
20401 return 0;
20403 return 0;
20405 _ACEOF
20406 rm -f conftest.$ac_objext
20407 if { (ac_try="$ac_compile"
20408 case "(($ac_try" in
20409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20410 *) ac_try_echo=$ac_try;;
20411 esac
20412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20413 $as_echo "$ac_try_echo") >&5
20414 (eval "$ac_compile") 2>conftest.er1
20415 ac_status=$?
20416 grep -v '^ *+' conftest.er1 >conftest.err
20417 rm -f conftest.er1
20418 cat conftest.err >&5
20419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } && {
20421 test -z "$ac_c_werror_flag" ||
20422 test ! -s conftest.err
20423 } && test -s conftest.$ac_objext; then
20424 ac_cv_member_struct_nlist_n_un_n_name=yes
20425 else
20426 $as_echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20429 cat >conftest.$ac_ext <<_ACEOF
20430 /* confdefs.h. */
20431 _ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20435 #include <nlist.h>
20438 main ()
20440 static struct nlist ac_aggr;
20441 if (sizeof ac_aggr.n_un.n_name)
20442 return 0;
20444 return 0;
20446 _ACEOF
20447 rm -f conftest.$ac_objext
20448 if { (ac_try="$ac_compile"
20449 case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20452 esac
20453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20454 $as_echo "$ac_try_echo") >&5
20455 (eval "$ac_compile") 2>conftest.er1
20456 ac_status=$?
20457 grep -v '^ *+' conftest.er1 >conftest.err
20458 rm -f conftest.er1
20459 cat conftest.err >&5
20460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest.$ac_objext; then
20465 ac_cv_member_struct_nlist_n_un_n_name=yes
20466 else
20467 $as_echo "$as_me: failed program was:" >&5
20468 sed 's/^/| /' conftest.$ac_ext >&5
20470 ac_cv_member_struct_nlist_n_un_n_name=no
20473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20478 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20479 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20480 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then
20482 cat >>confdefs.h <<_ACEOF
20483 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20484 _ACEOF
20487 cat >>confdefs.h <<\_ACEOF
20488 #define NLIST_NAME_UNION 1
20489 _ACEOF
20496 done
20499 done
20502 # Some definitions of getloadavg require that the program be installed setgid.
20503 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20504 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20505 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20506 $as_echo_n "(cached) " >&6
20507 else
20508 cat >conftest.$ac_ext <<_ACEOF
20509 /* confdefs.h. */
20510 _ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20514 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20515 #ifdef LDAV_PRIVILEGED
20516 Yowza Am I SETGID yet
20517 #endif
20518 _ACEOF
20519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20520 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20521 ac_cv_func_getloadavg_setgid=yes
20522 else
20523 ac_cv_func_getloadavg_setgid=no
20525 rm -f conftest*
20528 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20529 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20530 if test $ac_cv_func_getloadavg_setgid = yes; then
20531 NEED_SETGID=true
20533 cat >>confdefs.h <<\_ACEOF
20534 #define GETLOADAVG_PRIVILEGED 1
20535 _ACEOF
20537 else
20538 NEED_SETGID=false
20541 if test $ac_cv_func_getloadavg_setgid = yes; then
20542 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20543 $as_echo_n "checking group of /dev/kmem... " >&6; }
20544 if test "${ac_cv_group_kmem+set}" = set; then
20545 $as_echo_n "(cached) " >&6
20546 else
20547 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20548 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20549 # If we got an error (system does not support symlinks), try without -L.
20550 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20551 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20552 | sed -ne 's/[ ][ ]*/ /g;
20553 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20554 / /s/.* //;p;'`
20557 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20558 $as_echo "$ac_cv_group_kmem" >&6; }
20559 KMEM_GROUP=$ac_cv_group_kmem
20561 if test "x$ac_save_LIBS" = x; then
20562 GETLOADAVG_LIBS=$LIBS
20563 else
20564 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20566 LIBS=$ac_save_LIBS
20570 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20571 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20572 if test "${ac_cv_sys_largefile_source+set}" = set; then
20573 $as_echo_n "(cached) " >&6
20574 else
20575 while :; do
20576 cat >conftest.$ac_ext <<_ACEOF
20577 /* confdefs.h. */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h. */
20582 #include <sys/types.h> /* for off_t */
20583 #include <stdio.h>
20585 main ()
20587 int (*fp) (FILE *, off_t, int) = fseeko;
20588 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20590 return 0;
20592 _ACEOF
20593 rm -f conftest.$ac_objext conftest$ac_exeext
20594 if { (ac_try="$ac_link"
20595 case "(($ac_try" in
20596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20597 *) ac_try_echo=$ac_try;;
20598 esac
20599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20600 $as_echo "$ac_try_echo") >&5
20601 (eval "$ac_link") 2>conftest.er1
20602 ac_status=$?
20603 grep -v '^ *+' conftest.er1 >conftest.err
20604 rm -f conftest.er1
20605 cat conftest.err >&5
20606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607 (exit $ac_status); } && {
20608 test -z "$ac_c_werror_flag" ||
20609 test ! -s conftest.err
20610 } && test -s conftest$ac_exeext && {
20611 test "$cross_compiling" = yes ||
20612 $as_test_x conftest$ac_exeext
20613 }; then
20614 ac_cv_sys_largefile_source=no; break
20615 else
20616 $as_echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20622 rm -rf conftest.dSYM
20623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20624 conftest$ac_exeext conftest.$ac_ext
20625 cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h. */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20631 #define _LARGEFILE_SOURCE 1
20632 #include <sys/types.h> /* for off_t */
20633 #include <stdio.h>
20635 main ()
20637 int (*fp) (FILE *, off_t, int) = fseeko;
20638 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20640 return 0;
20642 _ACEOF
20643 rm -f conftest.$ac_objext conftest$ac_exeext
20644 if { (ac_try="$ac_link"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20648 esac
20649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20650 $as_echo "$ac_try_echo") >&5
20651 (eval "$ac_link") 2>conftest.er1
20652 ac_status=$?
20653 grep -v '^ *+' conftest.er1 >conftest.err
20654 rm -f conftest.er1
20655 cat conftest.err >&5
20656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } && {
20658 test -z "$ac_c_werror_flag" ||
20659 test ! -s conftest.err
20660 } && test -s conftest$ac_exeext && {
20661 test "$cross_compiling" = yes ||
20662 $as_test_x conftest$ac_exeext
20663 }; then
20664 ac_cv_sys_largefile_source=1; break
20665 else
20666 $as_echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20672 rm -rf conftest.dSYM
20673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20674 conftest$ac_exeext conftest.$ac_ext
20675 ac_cv_sys_largefile_source=unknown
20676 break
20677 done
20679 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20680 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20681 case $ac_cv_sys_largefile_source in #(
20682 no | unknown) ;;
20684 cat >>confdefs.h <<_ACEOF
20685 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20686 _ACEOF
20688 esac
20689 rm -rf conftest*
20691 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20692 # in glibc 2.1.3, but that breaks too many other things.
20693 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20694 if test $ac_cv_sys_largefile_source != unknown; then
20696 cat >>confdefs.h <<\_ACEOF
20697 #define HAVE_FSEEKO 1
20698 _ACEOF
20703 # Configure getopt.
20704 # getopt.m4 serial 10
20706 # The getopt module assume you want GNU getopt, with getopt_long etc,
20707 # rather than vanilla POSIX getopt. This means your your code should
20708 # always include <getopt.h> for the getopt prototypes.
20720 # Prerequisites of lib/getopt*.
20725 GETOPT_H=
20727 for ac_header in getopt.h
20729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20731 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20732 $as_echo_n "checking for $ac_header... " >&6; }
20733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20734 $as_echo_n "(cached) " >&6
20736 ac_res=`eval 'as_val=${'$as_ac_Header'}
20737 $as_echo "$as_val"'`
20738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20739 $as_echo "$ac_res" >&6; }
20740 else
20741 # Is the header compilable?
20742 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20743 $as_echo_n "checking $ac_header usability... " >&6; }
20744 cat >conftest.$ac_ext <<_ACEOF
20745 /* confdefs.h. */
20746 _ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20750 $ac_includes_default
20751 #include <$ac_header>
20752 _ACEOF
20753 rm -f conftest.$ac_objext
20754 if { (ac_try="$ac_compile"
20755 case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758 esac
20759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20760 $as_echo "$ac_try_echo") >&5
20761 (eval "$ac_compile") 2>conftest.er1
20762 ac_status=$?
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
20766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } && {
20768 test -z "$ac_c_werror_flag" ||
20769 test ! -s conftest.err
20770 } && test -s conftest.$ac_objext; then
20771 ac_header_compiler=yes
20772 else
20773 $as_echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 ac_header_compiler=no
20779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20780 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20781 $as_echo "$ac_header_compiler" >&6; }
20783 # Is the header present?
20784 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20785 $as_echo_n "checking $ac_header presence... " >&6; }
20786 cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h. */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20792 #include <$ac_header>
20793 _ACEOF
20794 if { (ac_try="$ac_cpp conftest.$ac_ext"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20798 esac
20799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20802 ac_status=$?
20803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
20806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } >/dev/null && {
20808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20809 test ! -s conftest.err
20810 }; then
20811 ac_header_preproc=yes
20812 else
20813 $as_echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20816 ac_header_preproc=no
20819 rm -f conftest.err conftest.$ac_ext
20820 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20821 $as_echo "$ac_header_preproc" >&6; }
20823 # So? What about this header?
20824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20825 yes:no: )
20826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20827 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20830 ac_header_preproc=yes
20832 no:yes:* )
20833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20834 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20836 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20838 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20840 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20842 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20844 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20847 esac
20848 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20849 $as_echo_n "checking for $ac_header... " >&6; }
20850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20851 $as_echo_n "(cached) " >&6
20852 else
20853 eval "$as_ac_Header=\$ac_header_preproc"
20855 ac_res=`eval 'as_val=${'$as_ac_Header'}
20856 $as_echo "$as_val"'`
20857 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20858 $as_echo "$ac_res" >&6; }
20861 as_val=`eval 'as_val=${'$as_ac_Header'}
20862 $as_echo "$as_val"'`
20863 if test "x$as_val" = x""yes; then
20864 cat >>confdefs.h <<_ACEOF
20865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20866 _ACEOF
20868 else
20869 GETOPT_H=getopt.h
20872 done
20874 if test -z "$GETOPT_H"; then
20876 for ac_func in getopt_long_only
20878 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20879 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20880 $as_echo_n "checking for $ac_func... " >&6; }
20881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20882 $as_echo_n "(cached) " >&6
20883 else
20884 cat >conftest.$ac_ext <<_ACEOF
20885 /* confdefs.h. */
20886 _ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20892 #define $ac_func innocuous_$ac_func
20894 /* System header to define __stub macros and hopefully few prototypes,
20895 which can conflict with char $ac_func (); below.
20896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20897 <limits.h> exists even on freestanding compilers. */
20899 #ifdef __STDC__
20900 # include <limits.h>
20901 #else
20902 # include <assert.h>
20903 #endif
20905 #undef $ac_func
20907 /* Override any GCC internal prototype to avoid an error.
20908 Use char because int might match the return type of a GCC
20909 builtin and then its argument prototype would still apply. */
20910 #ifdef __cplusplus
20911 extern "C"
20912 #endif
20913 char $ac_func ();
20914 /* The GNU C library defines this for functions which it implements
20915 to always fail with ENOSYS. Some functions are actually named
20916 something starting with __ and the normal name is an alias. */
20917 #if defined __stub_$ac_func || defined __stub___$ac_func
20918 choke me
20919 #endif
20922 main ()
20924 return $ac_func ();
20926 return 0;
20928 _ACEOF
20929 rm -f conftest.$ac_objext conftest$ac_exeext
20930 if { (ac_try="$ac_link"
20931 case "(($ac_try" in
20932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20933 *) ac_try_echo=$ac_try;;
20934 esac
20935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20936 $as_echo "$ac_try_echo") >&5
20937 (eval "$ac_link") 2>conftest.er1
20938 ac_status=$?
20939 grep -v '^ *+' conftest.er1 >conftest.err
20940 rm -f conftest.er1
20941 cat conftest.err >&5
20942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); } && {
20944 test -z "$ac_c_werror_flag" ||
20945 test ! -s conftest.err
20946 } && test -s conftest$ac_exeext && {
20947 test "$cross_compiling" = yes ||
20948 $as_test_x conftest$ac_exeext
20949 }; then
20950 eval "$as_ac_var=yes"
20951 else
20952 $as_echo "$as_me: failed program was:" >&5
20953 sed 's/^/| /' conftest.$ac_ext >&5
20955 eval "$as_ac_var=no"
20958 rm -rf conftest.dSYM
20959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20960 conftest$ac_exeext conftest.$ac_ext
20962 ac_res=`eval 'as_val=${'$as_ac_var'}
20963 $as_echo "$as_val"'`
20964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20965 $as_echo "$ac_res" >&6; }
20966 as_val=`eval 'as_val=${'$as_ac_var'}
20967 $as_echo "$as_val"'`
20968 if test "x$as_val" = x""yes; then
20969 cat >>confdefs.h <<_ACEOF
20970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20971 _ACEOF
20973 else
20974 GETOPT_H=getopt.h
20976 done
20980 if test -z "$GETOPT_H"; then
20981 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20982 $as_echo_n "checking whether optreset is declared... " >&6; }
20983 if test "${ac_cv_have_decl_optreset+set}" = set; then
20984 $as_echo_n "(cached) " >&6
20985 else
20986 cat >conftest.$ac_ext <<_ACEOF
20987 /* confdefs.h. */
20988 _ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992 #include <getopt.h>
20995 main ()
20997 #ifndef optreset
20998 (void) optreset;
20999 #endif
21002 return 0;
21004 _ACEOF
21005 rm -f conftest.$ac_objext
21006 if { (ac_try="$ac_compile"
21007 case "(($ac_try" in
21008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009 *) ac_try_echo=$ac_try;;
21010 esac
21011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21012 $as_echo "$ac_try_echo") >&5
21013 (eval "$ac_compile") 2>conftest.er1
21014 ac_status=$?
21015 grep -v '^ *+' conftest.er1 >conftest.err
21016 rm -f conftest.er1
21017 cat conftest.err >&5
21018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } && {
21020 test -z "$ac_c_werror_flag" ||
21021 test ! -s conftest.err
21022 } && test -s conftest.$ac_objext; then
21023 ac_cv_have_decl_optreset=yes
21024 else
21025 $as_echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028 ac_cv_have_decl_optreset=no
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
21034 $as_echo "$ac_cv_have_decl_optreset" >&6; }
21035 if test "x$ac_cv_have_decl_optreset" = x""yes; then
21036 GETOPT_H=getopt.h
21041 if test -z "$GETOPT_H"; then
21042 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
21043 $as_echo_n "checking for working GNU getopt function... " >&6; }
21044 if test "${gl_cv_func_gnu_getopt+set}" = set; then
21045 $as_echo_n "(cached) " >&6
21046 else
21047 if test "$cross_compiling" = yes; then
21048 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
21049 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
21050 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
21051 $as_echo_n "(cached) " >&6
21052 else
21053 cat >conftest.$ac_ext <<_ACEOF
21054 /* confdefs.h. */
21055 _ACEOF
21056 cat confdefs.h >>conftest.$ac_ext
21057 cat >>conftest.$ac_ext <<_ACEOF
21058 /* end confdefs.h. */
21059 #include <getopt.h>
21062 main ()
21064 #ifndef getopt_clip
21065 (void) getopt_clip;
21066 #endif
21069 return 0;
21071 _ACEOF
21072 rm -f conftest.$ac_objext
21073 if { (ac_try="$ac_compile"
21074 case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21077 esac
21078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21079 $as_echo "$ac_try_echo") >&5
21080 (eval "$ac_compile") 2>conftest.er1
21081 ac_status=$?
21082 grep -v '^ *+' conftest.er1 >conftest.err
21083 rm -f conftest.er1
21084 cat conftest.err >&5
21085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest.$ac_objext; then
21090 ac_cv_have_decl_getopt_clip=yes
21091 else
21092 $as_echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21095 ac_cv_have_decl_getopt_clip=no
21098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
21101 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
21102 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then
21103 gl_cv_func_gnu_getopt=no
21104 else
21105 gl_cv_func_gnu_getopt=yes
21108 else
21109 cat >conftest.$ac_ext <<_ACEOF
21110 /* confdefs.h. */
21111 _ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21115 #include <getopt.h>
21117 main ()
21120 char *myargv[3];
21121 myargv[0] = "conftest";
21122 myargv[1] = "-+";
21123 myargv[2] = 0;
21124 return getopt (2, myargv, "+a") != '?';
21127 return 0;
21129 _ACEOF
21130 rm -f conftest$ac_exeext
21131 if { (ac_try="$ac_link"
21132 case "(($ac_try" in
21133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21134 *) ac_try_echo=$ac_try;;
21135 esac
21136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21137 $as_echo "$ac_try_echo") >&5
21138 (eval "$ac_link") 2>&5
21139 ac_status=$?
21140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21142 { (case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21145 esac
21146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21147 $as_echo "$ac_try_echo") >&5
21148 (eval "$ac_try") 2>&5
21149 ac_status=$?
21150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); }; }; then
21152 gl_cv_func_gnu_getopt=yes
21153 else
21154 $as_echo "$as_me: program exited with status $ac_status" >&5
21155 $as_echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ( exit $ac_status )
21159 gl_cv_func_gnu_getopt=no
21161 rm -rf conftest.dSYM
21162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21167 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
21168 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
21169 if test "$gl_cv_func_gnu_getopt" = "no"; then
21170 GETOPT_H=getopt.h
21176 if test -n "$GETOPT_H"; then
21179 GETOPT_H=getopt.h
21181 cat >>confdefs.h <<\_ACEOF
21182 #define __GETOPT_PREFIX rpl_
21183 _ACEOF
21188 GETOPTOBJS='getopt.o getopt1.o'
21195 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
21196 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
21197 if test "${ac_cv_func_getpgrp_void+set}" = set; then
21198 $as_echo_n "(cached) " >&6
21199 else
21200 # Use it with a single arg.
21201 cat >conftest.$ac_ext <<_ACEOF
21202 /* confdefs.h. */
21203 _ACEOF
21204 cat confdefs.h >>conftest.$ac_ext
21205 cat >>conftest.$ac_ext <<_ACEOF
21206 /* end confdefs.h. */
21207 $ac_includes_default
21209 main ()
21211 getpgrp (0);
21213 return 0;
21215 _ACEOF
21216 rm -f conftest.$ac_objext
21217 if { (ac_try="$ac_compile"
21218 case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21221 esac
21222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21223 $as_echo "$ac_try_echo") >&5
21224 (eval "$ac_compile") 2>conftest.er1
21225 ac_status=$?
21226 grep -v '^ *+' conftest.er1 >conftest.err
21227 rm -f conftest.er1
21228 cat conftest.err >&5
21229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } && {
21231 test -z "$ac_c_werror_flag" ||
21232 test ! -s conftest.err
21233 } && test -s conftest.$ac_objext; then
21234 ac_cv_func_getpgrp_void=no
21235 else
21236 $as_echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ac_cv_func_getpgrp_void=yes
21242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
21246 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
21247 if test $ac_cv_func_getpgrp_void = yes; then
21249 cat >>confdefs.h <<\_ACEOF
21250 #define GETPGRP_VOID 1
21251 _ACEOF
21257 for ac_func in strftime
21259 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21260 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21261 $as_echo_n "checking for $ac_func... " >&6; }
21262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21263 $as_echo_n "(cached) " >&6
21264 else
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h. */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21273 #define $ac_func innocuous_$ac_func
21275 /* System header to define __stub macros and hopefully few prototypes,
21276 which can conflict with char $ac_func (); below.
21277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21278 <limits.h> exists even on freestanding compilers. */
21280 #ifdef __STDC__
21281 # include <limits.h>
21282 #else
21283 # include <assert.h>
21284 #endif
21286 #undef $ac_func
21288 /* Override any GCC internal prototype to avoid an error.
21289 Use char because int might match the return type of a GCC
21290 builtin and then its argument prototype would still apply. */
21291 #ifdef __cplusplus
21292 extern "C"
21293 #endif
21294 char $ac_func ();
21295 /* The GNU C library defines this for functions which it implements
21296 to always fail with ENOSYS. Some functions are actually named
21297 something starting with __ and the normal name is an alias. */
21298 #if defined __stub_$ac_func || defined __stub___$ac_func
21299 choke me
21300 #endif
21303 main ()
21305 return $ac_func ();
21307 return 0;
21309 _ACEOF
21310 rm -f conftest.$ac_objext conftest$ac_exeext
21311 if { (ac_try="$ac_link"
21312 case "(($ac_try" in
21313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21314 *) ac_try_echo=$ac_try;;
21315 esac
21316 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21317 $as_echo "$ac_try_echo") >&5
21318 (eval "$ac_link") 2>conftest.er1
21319 ac_status=$?
21320 grep -v '^ *+' conftest.er1 >conftest.err
21321 rm -f conftest.er1
21322 cat conftest.err >&5
21323 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); } && {
21325 test -z "$ac_c_werror_flag" ||
21326 test ! -s conftest.err
21327 } && test -s conftest$ac_exeext && {
21328 test "$cross_compiling" = yes ||
21329 $as_test_x conftest$ac_exeext
21330 }; then
21331 eval "$as_ac_var=yes"
21332 else
21333 $as_echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.$ac_ext >&5
21336 eval "$as_ac_var=no"
21339 rm -rf conftest.dSYM
21340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21341 conftest$ac_exeext conftest.$ac_ext
21343 ac_res=`eval 'as_val=${'$as_ac_var'}
21344 $as_echo "$as_val"'`
21345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21346 $as_echo "$ac_res" >&6; }
21347 as_val=`eval 'as_val=${'$as_ac_var'}
21348 $as_echo "$as_val"'`
21349 if test "x$as_val" = x""yes; then
21350 cat >>confdefs.h <<_ACEOF
21351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21352 _ACEOF
21354 else
21355 # strftime is in -lintl on SCO UNIX.
21356 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21357 $as_echo_n "checking for strftime in -lintl... " >&6; }
21358 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21359 $as_echo_n "(cached) " >&6
21360 else
21361 ac_check_lib_save_LIBS=$LIBS
21362 LIBS="-lintl $LIBS"
21363 cat >conftest.$ac_ext <<_ACEOF
21364 /* confdefs.h. */
21365 _ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21370 /* Override any GCC internal prototype to avoid an error.
21371 Use char because int might match the return type of a GCC
21372 builtin and then its argument prototype would still apply. */
21373 #ifdef __cplusplus
21374 extern "C"
21375 #endif
21376 char strftime ();
21378 main ()
21380 return strftime ();
21382 return 0;
21384 _ACEOF
21385 rm -f conftest.$ac_objext conftest$ac_exeext
21386 if { (ac_try="$ac_link"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21390 esac
21391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21392 $as_echo "$ac_try_echo") >&5
21393 (eval "$ac_link") 2>conftest.er1
21394 ac_status=$?
21395 grep -v '^ *+' conftest.er1 >conftest.err
21396 rm -f conftest.er1
21397 cat conftest.err >&5
21398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } && {
21400 test -z "$ac_c_werror_flag" ||
21401 test ! -s conftest.err
21402 } && test -s conftest$ac_exeext && {
21403 test "$cross_compiling" = yes ||
21404 $as_test_x conftest$ac_exeext
21405 }; then
21406 ac_cv_lib_intl_strftime=yes
21407 else
21408 $as_echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21411 ac_cv_lib_intl_strftime=no
21414 rm -rf conftest.dSYM
21415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21416 conftest$ac_exeext conftest.$ac_ext
21417 LIBS=$ac_check_lib_save_LIBS
21419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21420 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21421 if test "x$ac_cv_lib_intl_strftime" = x""yes; then
21422 cat >>confdefs.h <<\_ACEOF
21423 #define HAVE_STRFTIME 1
21424 _ACEOF
21426 LIBS="-lintl $LIBS"
21430 done
21433 # UNIX98 PTYs.
21435 for ac_func in grantpt
21437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21438 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21439 $as_echo_n "checking for $ac_func... " >&6; }
21440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21441 $as_echo_n "(cached) " >&6
21442 else
21443 cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h. */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21451 #define $ac_func innocuous_$ac_func
21453 /* System header to define __stub macros and hopefully few prototypes,
21454 which can conflict with char $ac_func (); below.
21455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21456 <limits.h> exists even on freestanding compilers. */
21458 #ifdef __STDC__
21459 # include <limits.h>
21460 #else
21461 # include <assert.h>
21462 #endif
21464 #undef $ac_func
21466 /* Override any GCC internal prototype to avoid an error.
21467 Use char because int might match the return type of a GCC
21468 builtin and then its argument prototype would still apply. */
21469 #ifdef __cplusplus
21470 extern "C"
21471 #endif
21472 char $ac_func ();
21473 /* The GNU C library defines this for functions which it implements
21474 to always fail with ENOSYS. Some functions are actually named
21475 something starting with __ and the normal name is an alias. */
21476 #if defined __stub_$ac_func || defined __stub___$ac_func
21477 choke me
21478 #endif
21481 main ()
21483 return $ac_func ();
21485 return 0;
21487 _ACEOF
21488 rm -f conftest.$ac_objext conftest$ac_exeext
21489 if { (ac_try="$ac_link"
21490 case "(($ac_try" in
21491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21492 *) ac_try_echo=$ac_try;;
21493 esac
21494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21495 $as_echo "$ac_try_echo") >&5
21496 (eval "$ac_link") 2>conftest.er1
21497 ac_status=$?
21498 grep -v '^ *+' conftest.er1 >conftest.err
21499 rm -f conftest.er1
21500 cat conftest.err >&5
21501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } && {
21503 test -z "$ac_c_werror_flag" ||
21504 test ! -s conftest.err
21505 } && test -s conftest$ac_exeext && {
21506 test "$cross_compiling" = yes ||
21507 $as_test_x conftest$ac_exeext
21508 }; then
21509 eval "$as_ac_var=yes"
21510 else
21511 $as_echo "$as_me: failed program was:" >&5
21512 sed 's/^/| /' conftest.$ac_ext >&5
21514 eval "$as_ac_var=no"
21517 rm -rf conftest.dSYM
21518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21519 conftest$ac_exeext conftest.$ac_ext
21521 ac_res=`eval 'as_val=${'$as_ac_var'}
21522 $as_echo "$as_val"'`
21523 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21524 $as_echo "$ac_res" >&6; }
21525 as_val=`eval 'as_val=${'$as_ac_var'}
21526 $as_echo "$as_val"'`
21527 if test "x$as_val" = x""yes; then
21528 cat >>confdefs.h <<_ACEOF
21529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21530 _ACEOF
21533 done
21536 # PTY-related GNU extensions.
21538 for ac_func in getpt
21540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21541 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21542 $as_echo_n "checking for $ac_func... " >&6; }
21543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21544 $as_echo_n "(cached) " >&6
21545 else
21546 cat >conftest.$ac_ext <<_ACEOF
21547 /* confdefs.h. */
21548 _ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21554 #define $ac_func innocuous_$ac_func
21556 /* System header to define __stub macros and hopefully few prototypes,
21557 which can conflict with char $ac_func (); below.
21558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21559 <limits.h> exists even on freestanding compilers. */
21561 #ifdef __STDC__
21562 # include <limits.h>
21563 #else
21564 # include <assert.h>
21565 #endif
21567 #undef $ac_func
21569 /* Override any GCC internal prototype to avoid an error.
21570 Use char because int might match the return type of a GCC
21571 builtin and then its argument prototype would still apply. */
21572 #ifdef __cplusplus
21573 extern "C"
21574 #endif
21575 char $ac_func ();
21576 /* The GNU C library defines this for functions which it implements
21577 to always fail with ENOSYS. Some functions are actually named
21578 something starting with __ and the normal name is an alias. */
21579 #if defined __stub_$ac_func || defined __stub___$ac_func
21580 choke me
21581 #endif
21584 main ()
21586 return $ac_func ();
21588 return 0;
21590 _ACEOF
21591 rm -f conftest.$ac_objext conftest$ac_exeext
21592 if { (ac_try="$ac_link"
21593 case "(($ac_try" in
21594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21595 *) ac_try_echo=$ac_try;;
21596 esac
21597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21598 $as_echo "$ac_try_echo") >&5
21599 (eval "$ac_link") 2>conftest.er1
21600 ac_status=$?
21601 grep -v '^ *+' conftest.er1 >conftest.err
21602 rm -f conftest.er1
21603 cat conftest.err >&5
21604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605 (exit $ac_status); } && {
21606 test -z "$ac_c_werror_flag" ||
21607 test ! -s conftest.err
21608 } && test -s conftest$ac_exeext && {
21609 test "$cross_compiling" = yes ||
21610 $as_test_x conftest$ac_exeext
21611 }; then
21612 eval "$as_ac_var=yes"
21613 else
21614 $as_echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 eval "$as_ac_var=no"
21620 rm -rf conftest.dSYM
21621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21622 conftest$ac_exeext conftest.$ac_ext
21624 ac_res=`eval 'as_val=${'$as_ac_var'}
21625 $as_echo "$as_val"'`
21626 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21627 $as_echo "$ac_res" >&6; }
21628 as_val=`eval 'as_val=${'$as_ac_var'}
21629 $as_echo "$as_val"'`
21630 if test "x$as_val" = x""yes; then
21631 cat >>confdefs.h <<_ACEOF
21632 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21633 _ACEOF
21636 done
21639 # Check this now, so that we will NOT find the above functions in ncurses.
21640 # That is because we have not set up to link ncurses in lib-src.
21641 # It's better to believe a function is not available
21642 # than to expect to find it in ncurses.
21643 # Also we need tputs and friends to be able to build at all.
21644 have_tputs_et_al=true
21645 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21646 $as_echo_n "checking for library containing tputs... " >&6; }
21647 if test "${ac_cv_search_tputs+set}" = set; then
21648 $as_echo_n "(cached) " >&6
21649 else
21650 ac_func_search_save_LIBS=$LIBS
21651 cat >conftest.$ac_ext <<_ACEOF
21652 /* confdefs.h. */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21658 /* Override any GCC internal prototype to avoid an error.
21659 Use char because int might match the return type of a GCC
21660 builtin and then its argument prototype would still apply. */
21661 #ifdef __cplusplus
21662 extern "C"
21663 #endif
21664 char tputs ();
21666 main ()
21668 return tputs ();
21670 return 0;
21672 _ACEOF
21673 for ac_lib in '' ncurses terminfo termcap; do
21674 if test -z "$ac_lib"; then
21675 ac_res="none required"
21676 else
21677 ac_res=-l$ac_lib
21678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21680 rm -f conftest.$ac_objext conftest$ac_exeext
21681 if { (ac_try="$ac_link"
21682 case "(($ac_try" in
21683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21684 *) ac_try_echo=$ac_try;;
21685 esac
21686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21687 $as_echo "$ac_try_echo") >&5
21688 (eval "$ac_link") 2>conftest.er1
21689 ac_status=$?
21690 grep -v '^ *+' conftest.er1 >conftest.err
21691 rm -f conftest.er1
21692 cat conftest.err >&5
21693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694 (exit $ac_status); } && {
21695 test -z "$ac_c_werror_flag" ||
21696 test ! -s conftest.err
21697 } && test -s conftest$ac_exeext && {
21698 test "$cross_compiling" = yes ||
21699 $as_test_x conftest$ac_exeext
21700 }; then
21701 ac_cv_search_tputs=$ac_res
21702 else
21703 $as_echo "$as_me: failed program was:" >&5
21704 sed 's/^/| /' conftest.$ac_ext >&5
21709 rm -rf conftest.dSYM
21710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21711 conftest$ac_exeext
21712 if test "${ac_cv_search_tputs+set}" = set; then
21713 break
21715 done
21716 if test "${ac_cv_search_tputs+set}" = set; then
21718 else
21719 ac_cv_search_tputs=no
21721 rm conftest.$ac_ext
21722 LIBS=$ac_func_search_save_LIBS
21724 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21725 $as_echo "$ac_cv_search_tputs" >&6; }
21726 ac_res=$ac_cv_search_tputs
21727 if test "$ac_res" != no; then
21728 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21730 else
21731 have_tputs_et_al=false
21734 if test "$have_tputs_et_al" != true; then
21735 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21736 Maybe some development libraries/packages are missing? Try installing
21737 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21738 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21739 Maybe some development libraries/packages are missing? Try installing
21740 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21741 { (exit 1); exit 1; }; }
21743 # Must define this when any termcap library is found.
21745 cat >>confdefs.h <<\_ACEOF
21746 #define HAVE_LIBNCURSES 1
21747 _ACEOF
21749 ## FIXME This was the cpp logic, but I am not sure it is right.
21750 ## The above test has not necessarily found libncurses.
21751 HAVE_LIBNCURSES=yes
21753 ## Use terminfo instead of termcap?
21754 ## Note only system files NOT using terminfo are:
21755 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
21756 ## darwin|gnu without ncurses.
21757 TERMINFO=no
21758 LIBS_TERMCAP=
21759 case "$opsys" in
21760 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21761 ## hpux10-20: Use the system provided termcap(3) library.
21762 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21763 ## is necessary. Otherwise Emacs dumps core when run -nw.
21764 aix4-2|cygwin|hpux*|irix6-5|openbsd|usg5-4|sol2*|unixware) TERMINFO=yes ;;
21766 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21767 ## The ncurses library has been moved out of the System framework in
21768 ## Mac OS X 10.2. So if configure detects it, set the command-line
21769 ## option to use it.
21770 darwin|gnu*)
21771 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21772 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21773 TERMINFO=yes
21774 LIBS_TERMCAP="-lncurses"
21778 freebsd)
21779 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
21780 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21781 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21782 $as_echo_n "(cached) " >&6
21783 else
21784 cat >conftest.$ac_ext <<_ACEOF
21785 /* confdefs.h. */
21786 _ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 #include <osreldate.h>
21792 main ()
21794 #if __FreeBSD_version < 400000
21795 fail;
21796 #endif
21799 return 0;
21801 _ACEOF
21802 rm -f conftest.$ac_objext conftest$ac_exeext
21803 if { (ac_try="$ac_link"
21804 case "(($ac_try" in
21805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21806 *) ac_try_echo=$ac_try;;
21807 esac
21808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21809 $as_echo "$ac_try_echo") >&5
21810 (eval "$ac_link") 2>conftest.er1
21811 ac_status=$?
21812 grep -v '^ *+' conftest.er1 >conftest.err
21813 rm -f conftest.er1
21814 cat conftest.err >&5
21815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } && {
21817 test -z "$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21819 } && test -s conftest$ac_exeext && {
21820 test "$cross_compiling" = yes ||
21821 $as_test_x conftest$ac_exeext
21822 }; then
21823 emacs_cv_freebsd_terminfo=yes
21824 else
21825 $as_echo "$as_me: failed program was:" >&5
21826 sed 's/^/| /' conftest.$ac_ext >&5
21828 emacs_cv_freebsd_terminfo=no
21831 rm -rf conftest.dSYM
21832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21833 conftest$ac_exeext conftest.$ac_ext
21837 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
21838 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21840 if test $emacs_cv_freebsd_terminfo = yes; then
21841 TERMINFO=yes
21842 LIBS_TERMCAP="-lncurses"
21843 else
21844 LIBS_TERMCAP="-ltermcap"
21848 esac
21850 case "$opsys" in
21851 ## hpux: Make sure we get select from libc rather than from libcurses
21852 ## because libcurses on HPUX 10.10 has a broken version of select.
21853 ## We used to use -lc -lcurses, but this may be cleaner.
21854 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21856 openbsd) LIBS_TERMCAP="-lncurses" ;;
21858 ## Must use system termcap, if we use any termcap. It does special things.
21859 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21860 esac
21862 TERMCAP_OBJ=tparam.o
21863 if test $TERMINFO = yes; then
21865 cat >>confdefs.h <<\_ACEOF
21866 #define TERMINFO 1
21867 _ACEOF
21870 ## Default used to be -ltermcap. Add a case above if need something else.
21871 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
21873 TERMCAP_OBJ=terminfo.o
21879 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21880 resolv=no
21881 cat >conftest.$ac_ext <<_ACEOF
21882 /* confdefs.h. */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 #include <netinet/in.h>
21888 #include <arpa/nameser.h>
21889 #include <resolv.h>
21891 main ()
21893 return res_init();
21895 return 0;
21897 _ACEOF
21898 rm -f conftest.$ac_objext conftest$ac_exeext
21899 if { (ac_try="$ac_link"
21900 case "(($ac_try" in
21901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21903 esac
21904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21905 $as_echo "$ac_try_echo") >&5
21906 (eval "$ac_link") 2>conftest.er1
21907 ac_status=$?
21908 grep -v '^ *+' conftest.er1 >conftest.err
21909 rm -f conftest.er1
21910 cat conftest.err >&5
21911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); } && {
21913 test -z "$ac_c_werror_flag" ||
21914 test ! -s conftest.err
21915 } && test -s conftest$ac_exeext && {
21916 test "$cross_compiling" = yes ||
21917 $as_test_x conftest$ac_exeext
21918 }; then
21919 have_res_init=yes
21920 else
21921 $as_echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21924 have_res_init=no
21927 rm -rf conftest.dSYM
21928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21929 conftest$ac_exeext conftest.$ac_ext
21930 if test "$have_res_init" = no; then
21931 OLIBS="$LIBS"
21932 LIBS="$LIBS -lresolv"
21933 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21934 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21935 cat >conftest.$ac_ext <<_ACEOF
21936 /* confdefs.h. */
21937 _ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 #include <netinet/in.h>
21942 #include <arpa/nameser.h>
21943 #include <resolv.h>
21945 main ()
21947 return res_init();
21949 return 0;
21951 _ACEOF
21952 rm -f conftest.$ac_objext conftest$ac_exeext
21953 if { (ac_try="$ac_link"
21954 case "(($ac_try" in
21955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956 *) ac_try_echo=$ac_try;;
21957 esac
21958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21959 $as_echo "$ac_try_echo") >&5
21960 (eval "$ac_link") 2>conftest.er1
21961 ac_status=$?
21962 grep -v '^ *+' conftest.er1 >conftest.err
21963 rm -f conftest.er1
21964 cat conftest.err >&5
21965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } && {
21967 test -z "$ac_c_werror_flag" ||
21968 test ! -s conftest.err
21969 } && test -s conftest$ac_exeext && {
21970 test "$cross_compiling" = yes ||
21971 $as_test_x conftest$ac_exeext
21972 }; then
21973 have_res_init=yes
21974 else
21975 $as_echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21978 have_res_init=no
21981 rm -rf conftest.dSYM
21982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21983 conftest$ac_exeext conftest.$ac_ext
21984 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21985 $as_echo "$have_res_init" >&6; }
21986 if test "$have_res_init" = yes ; then
21987 resolv=yes
21989 LIBS="$OLIBS"
21992 if test "$have_res_init" = yes; then
21994 cat >>confdefs.h <<\_ACEOF
21995 #define HAVE_RES_INIT 1
21996 _ACEOF
22000 # Do we need the Hesiod library to provide the support routines?
22001 LIBHESIOD=
22002 if test "$with_hesiod" != no ; then
22003 # Don't set $LIBS here -- see comments above. FIXME which comments?
22004 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
22005 $as_echo_n "checking for res_send... " >&6; }
22006 if test "${ac_cv_func_res_send+set}" = set; then
22007 $as_echo_n "(cached) " >&6
22008 else
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
22016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22017 #define res_send innocuous_res_send
22019 /* System header to define __stub macros and hopefully few prototypes,
22020 which can conflict with char res_send (); below.
22021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22022 <limits.h> exists even on freestanding compilers. */
22024 #ifdef __STDC__
22025 # include <limits.h>
22026 #else
22027 # include <assert.h>
22028 #endif
22030 #undef res_send
22032 /* Override any GCC internal prototype to avoid an error.
22033 Use char because int might match the return type of a GCC
22034 builtin and then its argument prototype would still apply. */
22035 #ifdef __cplusplus
22036 extern "C"
22037 #endif
22038 char res_send ();
22039 /* The GNU C library defines this for functions which it implements
22040 to always fail with ENOSYS. Some functions are actually named
22041 something starting with __ and the normal name is an alias. */
22042 #if defined __stub_res_send || defined __stub___res_send
22043 choke me
22044 #endif
22047 main ()
22049 return res_send ();
22051 return 0;
22053 _ACEOF
22054 rm -f conftest.$ac_objext conftest$ac_exeext
22055 if { (ac_try="$ac_link"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22059 esac
22060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22061 $as_echo "$ac_try_echo") >&5
22062 (eval "$ac_link") 2>conftest.er1
22063 ac_status=$?
22064 grep -v '^ *+' conftest.er1 >conftest.err
22065 rm -f conftest.er1
22066 cat conftest.err >&5
22067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } && {
22069 test -z "$ac_c_werror_flag" ||
22070 test ! -s conftest.err
22071 } && test -s conftest$ac_exeext && {
22072 test "$cross_compiling" = yes ||
22073 $as_test_x conftest$ac_exeext
22074 }; then
22075 ac_cv_func_res_send=yes
22076 else
22077 $as_echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22080 ac_cv_func_res_send=no
22083 rm -rf conftest.dSYM
22084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22085 conftest$ac_exeext conftest.$ac_ext
22087 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
22088 $as_echo "$ac_cv_func_res_send" >&6; }
22089 if test "x$ac_cv_func_res_send" = x""yes; then
22091 else
22092 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
22093 $as_echo_n "checking for __res_send... " >&6; }
22094 if test "${ac_cv_func___res_send+set}" = set; then
22095 $as_echo_n "(cached) " >&6
22096 else
22097 cat >conftest.$ac_ext <<_ACEOF
22098 /* confdefs.h. */
22099 _ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22103 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
22104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22105 #define __res_send innocuous___res_send
22107 /* System header to define __stub macros and hopefully few prototypes,
22108 which can conflict with char __res_send (); below.
22109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22110 <limits.h> exists even on freestanding compilers. */
22112 #ifdef __STDC__
22113 # include <limits.h>
22114 #else
22115 # include <assert.h>
22116 #endif
22118 #undef __res_send
22120 /* Override any GCC internal prototype to avoid an error.
22121 Use char because int might match the return type of a GCC
22122 builtin and then its argument prototype would still apply. */
22123 #ifdef __cplusplus
22124 extern "C"
22125 #endif
22126 char __res_send ();
22127 /* The GNU C library defines this for functions which it implements
22128 to always fail with ENOSYS. Some functions are actually named
22129 something starting with __ and the normal name is an alias. */
22130 #if defined __stub___res_send || defined __stub_____res_send
22131 choke me
22132 #endif
22135 main ()
22137 return __res_send ();
22139 return 0;
22141 _ACEOF
22142 rm -f conftest.$ac_objext conftest$ac_exeext
22143 if { (ac_try="$ac_link"
22144 case "(($ac_try" in
22145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146 *) ac_try_echo=$ac_try;;
22147 esac
22148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22149 $as_echo "$ac_try_echo") >&5
22150 (eval "$ac_link") 2>conftest.er1
22151 ac_status=$?
22152 grep -v '^ *+' conftest.er1 >conftest.err
22153 rm -f conftest.er1
22154 cat conftest.err >&5
22155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } && {
22157 test -z "$ac_c_werror_flag" ||
22158 test ! -s conftest.err
22159 } && test -s conftest$ac_exeext && {
22160 test "$cross_compiling" = yes ||
22161 $as_test_x conftest$ac_exeext
22162 }; then
22163 ac_cv_func___res_send=yes
22164 else
22165 $as_echo "$as_me: failed program was:" >&5
22166 sed 's/^/| /' conftest.$ac_ext >&5
22168 ac_cv_func___res_send=no
22171 rm -rf conftest.dSYM
22172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22173 conftest$ac_exeext conftest.$ac_ext
22175 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
22176 $as_echo "$ac_cv_func___res_send" >&6; }
22177 if test "x$ac_cv_func___res_send" = x""yes; then
22179 else
22180 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
22181 $as_echo_n "checking for res_send in -lresolv... " >&6; }
22182 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
22183 $as_echo_n "(cached) " >&6
22184 else
22185 ac_check_lib_save_LIBS=$LIBS
22186 LIBS="-lresolv $LIBS"
22187 cat >conftest.$ac_ext <<_ACEOF
22188 /* confdefs.h. */
22189 _ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22194 /* Override any GCC internal prototype to avoid an error.
22195 Use char because int might match the return type of a GCC
22196 builtin and then its argument prototype would still apply. */
22197 #ifdef __cplusplus
22198 extern "C"
22199 #endif
22200 char res_send ();
22202 main ()
22204 return res_send ();
22206 return 0;
22208 _ACEOF
22209 rm -f conftest.$ac_objext conftest$ac_exeext
22210 if { (ac_try="$ac_link"
22211 case "(($ac_try" in
22212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213 *) ac_try_echo=$ac_try;;
22214 esac
22215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22216 $as_echo "$ac_try_echo") >&5
22217 (eval "$ac_link") 2>conftest.er1
22218 ac_status=$?
22219 grep -v '^ *+' conftest.er1 >conftest.err
22220 rm -f conftest.er1
22221 cat conftest.err >&5
22222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } && {
22224 test -z "$ac_c_werror_flag" ||
22225 test ! -s conftest.err
22226 } && test -s conftest$ac_exeext && {
22227 test "$cross_compiling" = yes ||
22228 $as_test_x conftest$ac_exeext
22229 }; then
22230 ac_cv_lib_resolv_res_send=yes
22231 else
22232 $as_echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22235 ac_cv_lib_resolv_res_send=no
22238 rm -rf conftest.dSYM
22239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22240 conftest$ac_exeext conftest.$ac_ext
22241 LIBS=$ac_check_lib_save_LIBS
22243 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
22244 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
22245 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then
22246 resolv=yes
22247 else
22248 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
22249 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
22250 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
22251 $as_echo_n "(cached) " >&6
22252 else
22253 ac_check_lib_save_LIBS=$LIBS
22254 LIBS="-lresolv $LIBS"
22255 cat >conftest.$ac_ext <<_ACEOF
22256 /* confdefs.h. */
22257 _ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h. */
22262 /* Override any GCC internal prototype to avoid an error.
22263 Use char because int might match the return type of a GCC
22264 builtin and then its argument prototype would still apply. */
22265 #ifdef __cplusplus
22266 extern "C"
22267 #endif
22268 char __res_send ();
22270 main ()
22272 return __res_send ();
22274 return 0;
22276 _ACEOF
22277 rm -f conftest.$ac_objext conftest$ac_exeext
22278 if { (ac_try="$ac_link"
22279 case "(($ac_try" in
22280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22281 *) ac_try_echo=$ac_try;;
22282 esac
22283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22284 $as_echo "$ac_try_echo") >&5
22285 (eval "$ac_link") 2>conftest.er1
22286 ac_status=$?
22287 grep -v '^ *+' conftest.er1 >conftest.err
22288 rm -f conftest.er1
22289 cat conftest.err >&5
22290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22291 (exit $ac_status); } && {
22292 test -z "$ac_c_werror_flag" ||
22293 test ! -s conftest.err
22294 } && test -s conftest$ac_exeext && {
22295 test "$cross_compiling" = yes ||
22296 $as_test_x conftest$ac_exeext
22297 }; then
22298 ac_cv_lib_resolv___res_send=yes
22299 else
22300 $as_echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22303 ac_cv_lib_resolv___res_send=no
22306 rm -rf conftest.dSYM
22307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22308 conftest$ac_exeext conftest.$ac_ext
22309 LIBS=$ac_check_lib_save_LIBS
22311 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
22312 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
22313 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then
22314 resolv=yes
22323 if test "$resolv" = yes ; then
22324 RESOLVLIB=-lresolv
22325 else
22326 RESOLVLIB=
22328 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
22329 $as_echo_n "checking for hes_getmailhost... " >&6; }
22330 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
22331 $as_echo_n "(cached) " >&6
22332 else
22333 cat >conftest.$ac_ext <<_ACEOF
22334 /* confdefs.h. */
22335 _ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h. */
22339 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22341 #define hes_getmailhost innocuous_hes_getmailhost
22343 /* System header to define __stub macros and hopefully few prototypes,
22344 which can conflict with char hes_getmailhost (); below.
22345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22346 <limits.h> exists even on freestanding compilers. */
22348 #ifdef __STDC__
22349 # include <limits.h>
22350 #else
22351 # include <assert.h>
22352 #endif
22354 #undef hes_getmailhost
22356 /* Override any GCC internal prototype to avoid an error.
22357 Use char because int might match the return type of a GCC
22358 builtin and then its argument prototype would still apply. */
22359 #ifdef __cplusplus
22360 extern "C"
22361 #endif
22362 char hes_getmailhost ();
22363 /* The GNU C library defines this for functions which it implements
22364 to always fail with ENOSYS. Some functions are actually named
22365 something starting with __ and the normal name is an alias. */
22366 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22367 choke me
22368 #endif
22371 main ()
22373 return hes_getmailhost ();
22375 return 0;
22377 _ACEOF
22378 rm -f conftest.$ac_objext conftest$ac_exeext
22379 if { (ac_try="$ac_link"
22380 case "(($ac_try" in
22381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22382 *) ac_try_echo=$ac_try;;
22383 esac
22384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22385 $as_echo "$ac_try_echo") >&5
22386 (eval "$ac_link") 2>conftest.er1
22387 ac_status=$?
22388 grep -v '^ *+' conftest.er1 >conftest.err
22389 rm -f conftest.er1
22390 cat conftest.err >&5
22391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } && {
22393 test -z "$ac_c_werror_flag" ||
22394 test ! -s conftest.err
22395 } && test -s conftest$ac_exeext && {
22396 test "$cross_compiling" = yes ||
22397 $as_test_x conftest$ac_exeext
22398 }; then
22399 ac_cv_func_hes_getmailhost=yes
22400 else
22401 $as_echo "$as_me: failed program was:" >&5
22402 sed 's/^/| /' conftest.$ac_ext >&5
22404 ac_cv_func_hes_getmailhost=no
22407 rm -rf conftest.dSYM
22408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22409 conftest$ac_exeext conftest.$ac_ext
22411 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22412 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22413 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then
22415 else
22416 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
22417 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
22418 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
22419 $as_echo_n "(cached) " >&6
22420 else
22421 ac_check_lib_save_LIBS=$LIBS
22422 LIBS="-lhesiod $RESOLVLIB $LIBS"
22423 cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h. */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22430 /* Override any GCC internal prototype to avoid an error.
22431 Use char because int might match the return type of a GCC
22432 builtin and then its argument prototype would still apply. */
22433 #ifdef __cplusplus
22434 extern "C"
22435 #endif
22436 char hes_getmailhost ();
22438 main ()
22440 return hes_getmailhost ();
22442 return 0;
22444 _ACEOF
22445 rm -f conftest.$ac_objext conftest$ac_exeext
22446 if { (ac_try="$ac_link"
22447 case "(($ac_try" in
22448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22449 *) ac_try_echo=$ac_try;;
22450 esac
22451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22452 $as_echo "$ac_try_echo") >&5
22453 (eval "$ac_link") 2>conftest.er1
22454 ac_status=$?
22455 grep -v '^ *+' conftest.er1 >conftest.err
22456 rm -f conftest.er1
22457 cat conftest.err >&5
22458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459 (exit $ac_status); } && {
22460 test -z "$ac_c_werror_flag" ||
22461 test ! -s conftest.err
22462 } && test -s conftest$ac_exeext && {
22463 test "$cross_compiling" = yes ||
22464 $as_test_x conftest$ac_exeext
22465 }; then
22466 ac_cv_lib_hesiod_hes_getmailhost=yes
22467 else
22468 $as_echo "$as_me: failed program was:" >&5
22469 sed 's/^/| /' conftest.$ac_ext >&5
22471 ac_cv_lib_hesiod_hes_getmailhost=no
22474 rm -rf conftest.dSYM
22475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22476 conftest$ac_exeext conftest.$ac_ext
22477 LIBS=$ac_check_lib_save_LIBS
22479 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
22480 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
22481 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then
22482 hesiod=yes
22483 else
22490 if test x"$hesiod" = xyes; then
22492 cat >>confdefs.h <<\_ACEOF
22493 #define HAVE_LIBHESIOD 1
22494 _ACEOF
22496 LIBHESIOD=-lhesiod
22501 # Do we need libresolv (due to res_init or Hesiod)?
22502 if test "$resolv" = yes ; then
22504 cat >>confdefs.h <<\_ACEOF
22505 #define HAVE_LIBRESOLV 1
22506 _ACEOF
22508 LIBRESOLV=-lresolv
22509 else
22510 LIBRESOLV=
22514 # These tell us which Kerberos-related libraries to use.
22515 COM_ERRLIB=
22516 CRYPTOLIB=
22517 KRB5LIB=
22518 DESLIB=
22519 KRB4LIB=
22521 if test "${with_kerberos}" != no; then
22522 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22523 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22524 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22525 $as_echo_n "(cached) " >&6
22526 else
22527 ac_check_lib_save_LIBS=$LIBS
22528 LIBS="-lcom_err $LIBS"
22529 cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h. */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22536 /* Override any GCC internal prototype to avoid an error.
22537 Use char because int might match the return type of a GCC
22538 builtin and then its argument prototype would still apply. */
22539 #ifdef __cplusplus
22540 extern "C"
22541 #endif
22542 char com_err ();
22544 main ()
22546 return com_err ();
22548 return 0;
22550 _ACEOF
22551 rm -f conftest.$ac_objext conftest$ac_exeext
22552 if { (ac_try="$ac_link"
22553 case "(($ac_try" in
22554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555 *) ac_try_echo=$ac_try;;
22556 esac
22557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22558 $as_echo "$ac_try_echo") >&5
22559 (eval "$ac_link") 2>conftest.er1
22560 ac_status=$?
22561 grep -v '^ *+' conftest.er1 >conftest.err
22562 rm -f conftest.er1
22563 cat conftest.err >&5
22564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } && {
22566 test -z "$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22568 } && test -s conftest$ac_exeext && {
22569 test "$cross_compiling" = yes ||
22570 $as_test_x conftest$ac_exeext
22571 }; then
22572 ac_cv_lib_com_err_com_err=yes
22573 else
22574 $as_echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22577 ac_cv_lib_com_err_com_err=no
22580 rm -rf conftest.dSYM
22581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22582 conftest$ac_exeext conftest.$ac_ext
22583 LIBS=$ac_check_lib_save_LIBS
22585 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22586 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22587 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then
22588 have_com_err=yes
22589 else
22590 have_com_err=no
22593 if test $have_com_err = yes; then
22594 COM_ERRLIB=-lcom_err
22595 LIBS="$COM_ERRLIB $LIBS"
22597 cat >>confdefs.h <<\_ACEOF
22598 #define HAVE_LIBCOM_ERR 1
22599 _ACEOF
22602 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22603 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22604 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22605 $as_echo_n "(cached) " >&6
22606 else
22607 ac_check_lib_save_LIBS=$LIBS
22608 LIBS="-lcrypto $LIBS"
22609 cat >conftest.$ac_ext <<_ACEOF
22610 /* confdefs.h. */
22611 _ACEOF
22612 cat confdefs.h >>conftest.$ac_ext
22613 cat >>conftest.$ac_ext <<_ACEOF
22614 /* end confdefs.h. */
22616 /* Override any GCC internal prototype to avoid an error.
22617 Use char because int might match the return type of a GCC
22618 builtin and then its argument prototype would still apply. */
22619 #ifdef __cplusplus
22620 extern "C"
22621 #endif
22622 char mit_des_cbc_encrypt ();
22624 main ()
22626 return mit_des_cbc_encrypt ();
22628 return 0;
22630 _ACEOF
22631 rm -f conftest.$ac_objext conftest$ac_exeext
22632 if { (ac_try="$ac_link"
22633 case "(($ac_try" in
22634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635 *) ac_try_echo=$ac_try;;
22636 esac
22637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22638 $as_echo "$ac_try_echo") >&5
22639 (eval "$ac_link") 2>conftest.er1
22640 ac_status=$?
22641 grep -v '^ *+' conftest.er1 >conftest.err
22642 rm -f conftest.er1
22643 cat conftest.err >&5
22644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } && {
22646 test -z "$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22648 } && test -s conftest$ac_exeext && {
22649 test "$cross_compiling" = yes ||
22650 $as_test_x conftest$ac_exeext
22651 }; then
22652 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22653 else
22654 $as_echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22660 rm -rf conftest.dSYM
22661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22662 conftest$ac_exeext conftest.$ac_ext
22663 LIBS=$ac_check_lib_save_LIBS
22665 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22666 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22667 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then
22668 have_crypto=yes
22669 else
22670 have_crypto=no
22673 if test $have_crypto = yes; then
22674 CRYPTOLIB=-lcrypto
22675 LIBS="$CRYPTOLIB $LIBS"
22677 cat >>confdefs.h <<\_ACEOF
22678 #define HAVE_LIBCRYPTO 1
22679 _ACEOF
22682 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22683 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22684 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22685 $as_echo_n "(cached) " >&6
22686 else
22687 ac_check_lib_save_LIBS=$LIBS
22688 LIBS="-lk5crypto $LIBS"
22689 cat >conftest.$ac_ext <<_ACEOF
22690 /* confdefs.h. */
22691 _ACEOF
22692 cat confdefs.h >>conftest.$ac_ext
22693 cat >>conftest.$ac_ext <<_ACEOF
22694 /* end confdefs.h. */
22696 /* Override any GCC internal prototype to avoid an error.
22697 Use char because int might match the return type of a GCC
22698 builtin and then its argument prototype would still apply. */
22699 #ifdef __cplusplus
22700 extern "C"
22701 #endif
22702 char mit_des_cbc_encrypt ();
22704 main ()
22706 return mit_des_cbc_encrypt ();
22708 return 0;
22710 _ACEOF
22711 rm -f conftest.$ac_objext conftest$ac_exeext
22712 if { (ac_try="$ac_link"
22713 case "(($ac_try" in
22714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715 *) ac_try_echo=$ac_try;;
22716 esac
22717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22718 $as_echo "$ac_try_echo") >&5
22719 (eval "$ac_link") 2>conftest.er1
22720 ac_status=$?
22721 grep -v '^ *+' conftest.er1 >conftest.err
22722 rm -f conftest.er1
22723 cat conftest.err >&5
22724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22725 (exit $ac_status); } && {
22726 test -z "$ac_c_werror_flag" ||
22727 test ! -s conftest.err
22728 } && test -s conftest$ac_exeext && {
22729 test "$cross_compiling" = yes ||
22730 $as_test_x conftest$ac_exeext
22731 }; then
22732 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22733 else
22734 $as_echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22737 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22740 rm -rf conftest.dSYM
22741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22742 conftest$ac_exeext conftest.$ac_ext
22743 LIBS=$ac_check_lib_save_LIBS
22745 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22746 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22747 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then
22748 have_k5crypto=yes
22749 else
22750 have_k5crypto=no
22753 if test $have_k5crypto = yes; then
22754 CRYPTOLIB=-lk5crypto
22755 LIBS="$CRYPTOLIB $LIBS"
22757 cat >>confdefs.h <<\_ACEOF
22758 #define HAVE_LIBK5CRYPTO 1
22759 _ACEOF
22762 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22763 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22764 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22765 $as_echo_n "(cached) " >&6
22766 else
22767 ac_check_lib_save_LIBS=$LIBS
22768 LIBS="-lkrb5 $LIBS"
22769 cat >conftest.$ac_ext <<_ACEOF
22770 /* confdefs.h. */
22771 _ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h. */
22776 /* Override any GCC internal prototype to avoid an error.
22777 Use char because int might match the return type of a GCC
22778 builtin and then its argument prototype would still apply. */
22779 #ifdef __cplusplus
22780 extern "C"
22781 #endif
22782 char krb5_init_context ();
22784 main ()
22786 return krb5_init_context ();
22788 return 0;
22790 _ACEOF
22791 rm -f conftest.$ac_objext conftest$ac_exeext
22792 if { (ac_try="$ac_link"
22793 case "(($ac_try" in
22794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22795 *) ac_try_echo=$ac_try;;
22796 esac
22797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22798 $as_echo "$ac_try_echo") >&5
22799 (eval "$ac_link") 2>conftest.er1
22800 ac_status=$?
22801 grep -v '^ *+' conftest.er1 >conftest.err
22802 rm -f conftest.er1
22803 cat conftest.err >&5
22804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); } && {
22806 test -z "$ac_c_werror_flag" ||
22807 test ! -s conftest.err
22808 } && test -s conftest$ac_exeext && {
22809 test "$cross_compiling" = yes ||
22810 $as_test_x conftest$ac_exeext
22811 }; then
22812 ac_cv_lib_krb5_krb5_init_context=yes
22813 else
22814 $as_echo "$as_me: failed program was:" >&5
22815 sed 's/^/| /' conftest.$ac_ext >&5
22817 ac_cv_lib_krb5_krb5_init_context=no
22820 rm -rf conftest.dSYM
22821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22822 conftest$ac_exeext conftest.$ac_ext
22823 LIBS=$ac_check_lib_save_LIBS
22825 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22826 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22827 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then
22828 have_krb5=yes
22829 else
22830 have_krb5=no
22833 if test $have_krb5=yes; then
22834 KRB5LIB=-lkrb5
22835 LIBS="$KRB5LIB $LIBS"
22837 cat >>confdefs.h <<\_ACEOF
22838 #define HAVE_LIBKRB5 1
22839 _ACEOF
22842 if test "${with_kerberos5}" = no; then
22843 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22844 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22845 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22846 $as_echo_n "(cached) " >&6
22847 else
22848 ac_check_lib_save_LIBS=$LIBS
22849 LIBS="-ldes425 $LIBS"
22850 cat >conftest.$ac_ext <<_ACEOF
22851 /* confdefs.h. */
22852 _ACEOF
22853 cat confdefs.h >>conftest.$ac_ext
22854 cat >>conftest.$ac_ext <<_ACEOF
22855 /* end confdefs.h. */
22857 /* Override any GCC internal prototype to avoid an error.
22858 Use char because int might match the return type of a GCC
22859 builtin and then its argument prototype would still apply. */
22860 #ifdef __cplusplus
22861 extern "C"
22862 #endif
22863 char des_cbc_encrypt ();
22865 main ()
22867 return des_cbc_encrypt ();
22869 return 0;
22871 _ACEOF
22872 rm -f conftest.$ac_objext conftest$ac_exeext
22873 if { (ac_try="$ac_link"
22874 case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22877 esac
22878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22879 $as_echo "$ac_try_echo") >&5
22880 (eval "$ac_link") 2>conftest.er1
22881 ac_status=$?
22882 grep -v '^ *+' conftest.er1 >conftest.err
22883 rm -f conftest.er1
22884 cat conftest.err >&5
22885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } && {
22887 test -z "$ac_c_werror_flag" ||
22888 test ! -s conftest.err
22889 } && test -s conftest$ac_exeext && {
22890 test "$cross_compiling" = yes ||
22891 $as_test_x conftest$ac_exeext
22892 }; then
22893 ac_cv_lib_des425_des_cbc_encrypt=yes
22894 else
22895 $as_echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22898 ac_cv_lib_des425_des_cbc_encrypt=no
22901 rm -rf conftest.dSYM
22902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22903 conftest$ac_exeext conftest.$ac_ext
22904 LIBS=$ac_check_lib_save_LIBS
22906 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22907 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22908 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then
22909 have_des425=yes
22910 else
22911 have_des425=no
22914 if test $have_des425 = yes; then
22915 DESLIB=-ldes425
22916 LIBS="$DESLIB $LIBS"
22918 cat >>confdefs.h <<\_ACEOF
22919 #define HAVE_LIBDES425 1
22920 _ACEOF
22922 else
22923 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22924 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22925 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22926 $as_echo_n "(cached) " >&6
22927 else
22928 ac_check_lib_save_LIBS=$LIBS
22929 LIBS="-ldes $LIBS"
22930 cat >conftest.$ac_ext <<_ACEOF
22931 /* confdefs.h. */
22932 _ACEOF
22933 cat confdefs.h >>conftest.$ac_ext
22934 cat >>conftest.$ac_ext <<_ACEOF
22935 /* end confdefs.h. */
22937 /* Override any GCC internal prototype to avoid an error.
22938 Use char because int might match the return type of a GCC
22939 builtin and then its argument prototype would still apply. */
22940 #ifdef __cplusplus
22941 extern "C"
22942 #endif
22943 char des_cbc_encrypt ();
22945 main ()
22947 return des_cbc_encrypt ();
22949 return 0;
22951 _ACEOF
22952 rm -f conftest.$ac_objext conftest$ac_exeext
22953 if { (ac_try="$ac_link"
22954 case "(($ac_try" in
22955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956 *) ac_try_echo=$ac_try;;
22957 esac
22958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22959 $as_echo "$ac_try_echo") >&5
22960 (eval "$ac_link") 2>conftest.er1
22961 ac_status=$?
22962 grep -v '^ *+' conftest.er1 >conftest.err
22963 rm -f conftest.er1
22964 cat conftest.err >&5
22965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); } && {
22967 test -z "$ac_c_werror_flag" ||
22968 test ! -s conftest.err
22969 } && test -s conftest$ac_exeext && {
22970 test "$cross_compiling" = yes ||
22971 $as_test_x conftest$ac_exeext
22972 }; then
22973 ac_cv_lib_des_des_cbc_encrypt=yes
22974 else
22975 $as_echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22978 ac_cv_lib_des_des_cbc_encrypt=no
22981 rm -rf conftest.dSYM
22982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22983 conftest$ac_exeext conftest.$ac_ext
22984 LIBS=$ac_check_lib_save_LIBS
22986 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22987 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22988 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then
22989 have_des=yes
22990 else
22991 have_des=no
22994 if test $have_des = yes; then
22995 DESLIB=-ldes
22996 LIBS="$DESLIB $LIBS"
22998 cat >>confdefs.h <<\_ACEOF
22999 #define HAVE_LIBDES 1
23000 _ACEOF
23004 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
23005 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
23006 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
23007 $as_echo_n "(cached) " >&6
23008 else
23009 ac_check_lib_save_LIBS=$LIBS
23010 LIBS="-lkrb4 $LIBS"
23011 cat >conftest.$ac_ext <<_ACEOF
23012 /* confdefs.h. */
23013 _ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h. */
23018 /* Override any GCC internal prototype to avoid an error.
23019 Use char because int might match the return type of a GCC
23020 builtin and then its argument prototype would still apply. */
23021 #ifdef __cplusplus
23022 extern "C"
23023 #endif
23024 char krb_get_cred ();
23026 main ()
23028 return krb_get_cred ();
23030 return 0;
23032 _ACEOF
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (ac_try="$ac_link"
23035 case "(($ac_try" in
23036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037 *) ac_try_echo=$ac_try;;
23038 esac
23039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23040 $as_echo "$ac_try_echo") >&5
23041 (eval "$ac_link") 2>conftest.er1
23042 ac_status=$?
23043 grep -v '^ *+' conftest.er1 >conftest.err
23044 rm -f conftest.er1
23045 cat conftest.err >&5
23046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); } && {
23048 test -z "$ac_c_werror_flag" ||
23049 test ! -s conftest.err
23050 } && test -s conftest$ac_exeext && {
23051 test "$cross_compiling" = yes ||
23052 $as_test_x conftest$ac_exeext
23053 }; then
23054 ac_cv_lib_krb4_krb_get_cred=yes
23055 else
23056 $as_echo "$as_me: failed program was:" >&5
23057 sed 's/^/| /' conftest.$ac_ext >&5
23059 ac_cv_lib_krb4_krb_get_cred=no
23062 rm -rf conftest.dSYM
23063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23064 conftest$ac_exeext conftest.$ac_ext
23065 LIBS=$ac_check_lib_save_LIBS
23067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
23068 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
23069 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then
23070 have_krb4=yes
23071 else
23072 have_krb4=no
23075 if test $have_krb4 = yes; then
23076 KRB4LIB=-lkrb4
23077 LIBS="$KRB4LIB $LIBS"
23079 cat >>confdefs.h <<\_ACEOF
23080 #define HAVE_LIBKRB4 1
23081 _ACEOF
23083 else
23084 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
23085 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
23086 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
23087 $as_echo_n "(cached) " >&6
23088 else
23089 ac_check_lib_save_LIBS=$LIBS
23090 LIBS="-lkrb $LIBS"
23091 cat >conftest.$ac_ext <<_ACEOF
23092 /* confdefs.h. */
23093 _ACEOF
23094 cat confdefs.h >>conftest.$ac_ext
23095 cat >>conftest.$ac_ext <<_ACEOF
23096 /* end confdefs.h. */
23098 /* Override any GCC internal prototype to avoid an error.
23099 Use char because int might match the return type of a GCC
23100 builtin and then its argument prototype would still apply. */
23101 #ifdef __cplusplus
23102 extern "C"
23103 #endif
23104 char krb_get_cred ();
23106 main ()
23108 return krb_get_cred ();
23110 return 0;
23112 _ACEOF
23113 rm -f conftest.$ac_objext conftest$ac_exeext
23114 if { (ac_try="$ac_link"
23115 case "(($ac_try" in
23116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23117 *) ac_try_echo=$ac_try;;
23118 esac
23119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23120 $as_echo "$ac_try_echo") >&5
23121 (eval "$ac_link") 2>conftest.er1
23122 ac_status=$?
23123 grep -v '^ *+' conftest.er1 >conftest.err
23124 rm -f conftest.er1
23125 cat conftest.err >&5
23126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); } && {
23128 test -z "$ac_c_werror_flag" ||
23129 test ! -s conftest.err
23130 } && test -s conftest$ac_exeext && {
23131 test "$cross_compiling" = yes ||
23132 $as_test_x conftest$ac_exeext
23133 }; then
23134 ac_cv_lib_krb_krb_get_cred=yes
23135 else
23136 $as_echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23139 ac_cv_lib_krb_krb_get_cred=no
23142 rm -rf conftest.dSYM
23143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23144 conftest$ac_exeext conftest.$ac_ext
23145 LIBS=$ac_check_lib_save_LIBS
23147 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
23148 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
23149 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then
23150 have_krb=yes
23151 else
23152 have_krb=no
23155 if test $have_krb = yes; then
23156 KRB4LIB=-lkrb
23157 LIBS="$KRB4LIB $LIBS"
23159 cat >>confdefs.h <<\_ACEOF
23160 #define HAVE_LIBKRB 1
23161 _ACEOF
23167 if test "${with_kerberos5}" != no; then
23169 for ac_header in krb5.h
23171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23174 $as_echo_n "checking for $ac_header... " >&6; }
23175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23176 $as_echo_n "(cached) " >&6
23178 ac_res=`eval 'as_val=${'$as_ac_Header'}
23179 $as_echo "$as_val"'`
23180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23181 $as_echo "$ac_res" >&6; }
23182 else
23183 # Is the header compilable?
23184 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23185 $as_echo_n "checking $ac_header usability... " >&6; }
23186 cat >conftest.$ac_ext <<_ACEOF
23187 /* confdefs.h. */
23188 _ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h. */
23192 $ac_includes_default
23193 #include <$ac_header>
23194 _ACEOF
23195 rm -f conftest.$ac_objext
23196 if { (ac_try="$ac_compile"
23197 case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23200 esac
23201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23202 $as_echo "$ac_try_echo") >&5
23203 (eval "$ac_compile") 2>conftest.er1
23204 ac_status=$?
23205 grep -v '^ *+' conftest.er1 >conftest.err
23206 rm -f conftest.er1
23207 cat conftest.err >&5
23208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); } && {
23210 test -z "$ac_c_werror_flag" ||
23211 test ! -s conftest.err
23212 } && test -s conftest.$ac_objext; then
23213 ac_header_compiler=yes
23214 else
23215 $as_echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23218 ac_header_compiler=no
23221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23223 $as_echo "$ac_header_compiler" >&6; }
23225 # Is the header present?
23226 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23227 $as_echo_n "checking $ac_header presence... " >&6; }
23228 cat >conftest.$ac_ext <<_ACEOF
23229 /* confdefs.h. */
23230 _ACEOF
23231 cat confdefs.h >>conftest.$ac_ext
23232 cat >>conftest.$ac_ext <<_ACEOF
23233 /* end confdefs.h. */
23234 #include <$ac_header>
23235 _ACEOF
23236 if { (ac_try="$ac_cpp conftest.$ac_ext"
23237 case "(($ac_try" in
23238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23239 *) ac_try_echo=$ac_try;;
23240 esac
23241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23242 $as_echo "$ac_try_echo") >&5
23243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23244 ac_status=$?
23245 grep -v '^ *+' conftest.er1 >conftest.err
23246 rm -f conftest.er1
23247 cat conftest.err >&5
23248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); } >/dev/null && {
23250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23251 test ! -s conftest.err
23252 }; then
23253 ac_header_preproc=yes
23254 else
23255 $as_echo "$as_me: failed program was:" >&5
23256 sed 's/^/| /' conftest.$ac_ext >&5
23258 ac_header_preproc=no
23261 rm -f conftest.err conftest.$ac_ext
23262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23263 $as_echo "$ac_header_preproc" >&6; }
23265 # So? What about this header?
23266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23267 yes:no: )
23268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23269 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23272 ac_header_preproc=yes
23274 no:yes:* )
23275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23276 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23278 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23280 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23282 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23286 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23289 esac
23290 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23291 $as_echo_n "checking for $ac_header... " >&6; }
23292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23293 $as_echo_n "(cached) " >&6
23294 else
23295 eval "$as_ac_Header=\$ac_header_preproc"
23297 ac_res=`eval 'as_val=${'$as_ac_Header'}
23298 $as_echo "$as_val"'`
23299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23300 $as_echo "$ac_res" >&6; }
23303 as_val=`eval 'as_val=${'$as_ac_Header'}
23304 $as_echo "$as_val"'`
23305 if test "x$as_val" = x""yes; then
23306 cat >>confdefs.h <<_ACEOF
23307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23308 _ACEOF
23309 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
23310 $as_echo_n "checking for krb5_error.text... " >&6; }
23311 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23312 $as_echo_n "(cached) " >&6
23313 else
23314 cat >conftest.$ac_ext <<_ACEOF
23315 /* confdefs.h. */
23316 _ACEOF
23317 cat confdefs.h >>conftest.$ac_ext
23318 cat >>conftest.$ac_ext <<_ACEOF
23319 /* end confdefs.h. */
23320 #include <krb5.h>
23323 main ()
23325 static krb5_error ac_aggr;
23326 if (ac_aggr.text)
23327 return 0;
23329 return 0;
23331 _ACEOF
23332 rm -f conftest.$ac_objext
23333 if { (ac_try="$ac_compile"
23334 case "(($ac_try" in
23335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23336 *) ac_try_echo=$ac_try;;
23337 esac
23338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23339 $as_echo "$ac_try_echo") >&5
23340 (eval "$ac_compile") 2>conftest.er1
23341 ac_status=$?
23342 grep -v '^ *+' conftest.er1 >conftest.err
23343 rm -f conftest.er1
23344 cat conftest.err >&5
23345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); } && {
23347 test -z "$ac_c_werror_flag" ||
23348 test ! -s conftest.err
23349 } && test -s conftest.$ac_objext; then
23350 ac_cv_member_krb5_error_text=yes
23351 else
23352 $as_echo "$as_me: failed program was:" >&5
23353 sed 's/^/| /' conftest.$ac_ext >&5
23355 cat >conftest.$ac_ext <<_ACEOF
23356 /* confdefs.h. */
23357 _ACEOF
23358 cat confdefs.h >>conftest.$ac_ext
23359 cat >>conftest.$ac_ext <<_ACEOF
23360 /* end confdefs.h. */
23361 #include <krb5.h>
23364 main ()
23366 static krb5_error ac_aggr;
23367 if (sizeof ac_aggr.text)
23368 return 0;
23370 return 0;
23372 _ACEOF
23373 rm -f conftest.$ac_objext
23374 if { (ac_try="$ac_compile"
23375 case "(($ac_try" in
23376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23377 *) ac_try_echo=$ac_try;;
23378 esac
23379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23380 $as_echo "$ac_try_echo") >&5
23381 (eval "$ac_compile") 2>conftest.er1
23382 ac_status=$?
23383 grep -v '^ *+' conftest.er1 >conftest.err
23384 rm -f conftest.er1
23385 cat conftest.err >&5
23386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); } && {
23388 test -z "$ac_c_werror_flag" ||
23389 test ! -s conftest.err
23390 } && test -s conftest.$ac_objext; then
23391 ac_cv_member_krb5_error_text=yes
23392 else
23393 $as_echo "$as_me: failed program was:" >&5
23394 sed 's/^/| /' conftest.$ac_ext >&5
23396 ac_cv_member_krb5_error_text=no
23399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23404 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23405 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23406 if test "x$ac_cv_member_krb5_error_text" = x""yes; then
23408 cat >>confdefs.h <<_ACEOF
23409 #define HAVE_KRB5_ERROR_TEXT 1
23410 _ACEOF
23414 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
23415 $as_echo_n "checking for krb5_error.e_text... " >&6; }
23416 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23417 $as_echo_n "(cached) " >&6
23418 else
23419 cat >conftest.$ac_ext <<_ACEOF
23420 /* confdefs.h. */
23421 _ACEOF
23422 cat confdefs.h >>conftest.$ac_ext
23423 cat >>conftest.$ac_ext <<_ACEOF
23424 /* end confdefs.h. */
23425 #include <krb5.h>
23428 main ()
23430 static krb5_error ac_aggr;
23431 if (ac_aggr.e_text)
23432 return 0;
23434 return 0;
23436 _ACEOF
23437 rm -f conftest.$ac_objext
23438 if { (ac_try="$ac_compile"
23439 case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23442 esac
23443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23444 $as_echo "$ac_try_echo") >&5
23445 (eval "$ac_compile") 2>conftest.er1
23446 ac_status=$?
23447 grep -v '^ *+' conftest.er1 >conftest.err
23448 rm -f conftest.er1
23449 cat conftest.err >&5
23450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); } && {
23452 test -z "$ac_c_werror_flag" ||
23453 test ! -s conftest.err
23454 } && test -s conftest.$ac_objext; then
23455 ac_cv_member_krb5_error_e_text=yes
23456 else
23457 $as_echo "$as_me: failed program was:" >&5
23458 sed 's/^/| /' conftest.$ac_ext >&5
23460 cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h. */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23466 #include <krb5.h>
23469 main ()
23471 static krb5_error ac_aggr;
23472 if (sizeof ac_aggr.e_text)
23473 return 0;
23475 return 0;
23477 _ACEOF
23478 rm -f conftest.$ac_objext
23479 if { (ac_try="$ac_compile"
23480 case "(($ac_try" in
23481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23482 *) ac_try_echo=$ac_try;;
23483 esac
23484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23485 $as_echo "$ac_try_echo") >&5
23486 (eval "$ac_compile") 2>conftest.er1
23487 ac_status=$?
23488 grep -v '^ *+' conftest.er1 >conftest.err
23489 rm -f conftest.er1
23490 cat conftest.err >&5
23491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); } && {
23493 test -z "$ac_c_werror_flag" ||
23494 test ! -s conftest.err
23495 } && test -s conftest.$ac_objext; then
23496 ac_cv_member_krb5_error_e_text=yes
23497 else
23498 $as_echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.$ac_ext >&5
23501 ac_cv_member_krb5_error_e_text=no
23504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23509 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23510 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23511 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then
23513 cat >>confdefs.h <<_ACEOF
23514 #define HAVE_KRB5_ERROR_E_TEXT 1
23515 _ACEOF
23522 done
23524 else
23526 for ac_header in des.h
23528 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23529 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23530 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23531 $as_echo_n "checking for $ac_header... " >&6; }
23532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23533 $as_echo_n "(cached) " >&6
23535 ac_res=`eval 'as_val=${'$as_ac_Header'}
23536 $as_echo "$as_val"'`
23537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23538 $as_echo "$ac_res" >&6; }
23539 else
23540 # Is the header compilable?
23541 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23542 $as_echo_n "checking $ac_header usability... " >&6; }
23543 cat >conftest.$ac_ext <<_ACEOF
23544 /* confdefs.h. */
23545 _ACEOF
23546 cat confdefs.h >>conftest.$ac_ext
23547 cat >>conftest.$ac_ext <<_ACEOF
23548 /* end confdefs.h. */
23549 $ac_includes_default
23550 #include <$ac_header>
23551 _ACEOF
23552 rm -f conftest.$ac_objext
23553 if { (ac_try="$ac_compile"
23554 case "(($ac_try" in
23555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23556 *) ac_try_echo=$ac_try;;
23557 esac
23558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23559 $as_echo "$ac_try_echo") >&5
23560 (eval "$ac_compile") 2>conftest.er1
23561 ac_status=$?
23562 grep -v '^ *+' conftest.er1 >conftest.err
23563 rm -f conftest.er1
23564 cat conftest.err >&5
23565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); } && {
23567 test -z "$ac_c_werror_flag" ||
23568 test ! -s conftest.err
23569 } && test -s conftest.$ac_objext; then
23570 ac_header_compiler=yes
23571 else
23572 $as_echo "$as_me: failed program was:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23575 ac_header_compiler=no
23578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23579 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23580 $as_echo "$ac_header_compiler" >&6; }
23582 # Is the header present?
23583 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23584 $as_echo_n "checking $ac_header presence... " >&6; }
23585 cat >conftest.$ac_ext <<_ACEOF
23586 /* confdefs.h. */
23587 _ACEOF
23588 cat confdefs.h >>conftest.$ac_ext
23589 cat >>conftest.$ac_ext <<_ACEOF
23590 /* end confdefs.h. */
23591 #include <$ac_header>
23592 _ACEOF
23593 if { (ac_try="$ac_cpp conftest.$ac_ext"
23594 case "(($ac_try" in
23595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23596 *) ac_try_echo=$ac_try;;
23597 esac
23598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23599 $as_echo "$ac_try_echo") >&5
23600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23601 ac_status=$?
23602 grep -v '^ *+' conftest.er1 >conftest.err
23603 rm -f conftest.er1
23604 cat conftest.err >&5
23605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } >/dev/null && {
23607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23608 test ! -s conftest.err
23609 }; then
23610 ac_header_preproc=yes
23611 else
23612 $as_echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23615 ac_header_preproc=no
23618 rm -f conftest.err conftest.$ac_ext
23619 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23620 $as_echo "$ac_header_preproc" >&6; }
23622 # So? What about this header?
23623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23624 yes:no: )
23625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23626 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23629 ac_header_preproc=yes
23631 no:yes:* )
23632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23633 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23635 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23637 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23638 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23639 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23640 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23641 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23643 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23646 esac
23647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23648 $as_echo_n "checking for $ac_header... " >&6; }
23649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23650 $as_echo_n "(cached) " >&6
23651 else
23652 eval "$as_ac_Header=\$ac_header_preproc"
23654 ac_res=`eval 'as_val=${'$as_ac_Header'}
23655 $as_echo "$as_val"'`
23656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23657 $as_echo "$ac_res" >&6; }
23660 as_val=`eval 'as_val=${'$as_ac_Header'}
23661 $as_echo "$as_val"'`
23662 if test "x$as_val" = x""yes; then
23663 cat >>confdefs.h <<_ACEOF
23664 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23665 _ACEOF
23667 else
23669 for ac_header in kerberosIV/des.h
23671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23673 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23674 $as_echo_n "checking for $ac_header... " >&6; }
23675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23676 $as_echo_n "(cached) " >&6
23678 ac_res=`eval 'as_val=${'$as_ac_Header'}
23679 $as_echo "$as_val"'`
23680 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23681 $as_echo "$ac_res" >&6; }
23682 else
23683 # Is the header compilable?
23684 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23685 $as_echo_n "checking $ac_header usability... " >&6; }
23686 cat >conftest.$ac_ext <<_ACEOF
23687 /* confdefs.h. */
23688 _ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h. */
23692 $ac_includes_default
23693 #include <$ac_header>
23694 _ACEOF
23695 rm -f conftest.$ac_objext
23696 if { (ac_try="$ac_compile"
23697 case "(($ac_try" in
23698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23699 *) ac_try_echo=$ac_try;;
23700 esac
23701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23702 $as_echo "$ac_try_echo") >&5
23703 (eval "$ac_compile") 2>conftest.er1
23704 ac_status=$?
23705 grep -v '^ *+' conftest.er1 >conftest.err
23706 rm -f conftest.er1
23707 cat conftest.err >&5
23708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23709 (exit $ac_status); } && {
23710 test -z "$ac_c_werror_flag" ||
23711 test ! -s conftest.err
23712 } && test -s conftest.$ac_objext; then
23713 ac_header_compiler=yes
23714 else
23715 $as_echo "$as_me: failed program was:" >&5
23716 sed 's/^/| /' conftest.$ac_ext >&5
23718 ac_header_compiler=no
23721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23722 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23723 $as_echo "$ac_header_compiler" >&6; }
23725 # Is the header present?
23726 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23727 $as_echo_n "checking $ac_header presence... " >&6; }
23728 cat >conftest.$ac_ext <<_ACEOF
23729 /* confdefs.h. */
23730 _ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h. */
23734 #include <$ac_header>
23735 _ACEOF
23736 if { (ac_try="$ac_cpp conftest.$ac_ext"
23737 case "(($ac_try" in
23738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739 *) ac_try_echo=$ac_try;;
23740 esac
23741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23742 $as_echo "$ac_try_echo") >&5
23743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23744 ac_status=$?
23745 grep -v '^ *+' conftest.er1 >conftest.err
23746 rm -f conftest.er1
23747 cat conftest.err >&5
23748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749 (exit $ac_status); } >/dev/null && {
23750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23751 test ! -s conftest.err
23752 }; then
23753 ac_header_preproc=yes
23754 else
23755 $as_echo "$as_me: failed program was:" >&5
23756 sed 's/^/| /' conftest.$ac_ext >&5
23758 ac_header_preproc=no
23761 rm -f conftest.err conftest.$ac_ext
23762 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23763 $as_echo "$ac_header_preproc" >&6; }
23765 # So? What about this header?
23766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23767 yes:no: )
23768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23769 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23771 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23772 ac_header_preproc=yes
23774 no:yes:* )
23775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23776 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23778 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23780 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23782 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23784 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23786 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23789 esac
23790 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23791 $as_echo_n "checking for $ac_header... " >&6; }
23792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23793 $as_echo_n "(cached) " >&6
23794 else
23795 eval "$as_ac_Header=\$ac_header_preproc"
23797 ac_res=`eval 'as_val=${'$as_ac_Header'}
23798 $as_echo "$as_val"'`
23799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23800 $as_echo "$ac_res" >&6; }
23803 as_val=`eval 'as_val=${'$as_ac_Header'}
23804 $as_echo "$as_val"'`
23805 if test "x$as_val" = x""yes; then
23806 cat >>confdefs.h <<_ACEOF
23807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23808 _ACEOF
23810 else
23812 for ac_header in kerberos/des.h
23814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23816 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23817 $as_echo_n "checking for $ac_header... " >&6; }
23818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23819 $as_echo_n "(cached) " >&6
23821 ac_res=`eval 'as_val=${'$as_ac_Header'}
23822 $as_echo "$as_val"'`
23823 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23824 $as_echo "$ac_res" >&6; }
23825 else
23826 # Is the header compilable?
23827 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23828 $as_echo_n "checking $ac_header usability... " >&6; }
23829 cat >conftest.$ac_ext <<_ACEOF
23830 /* confdefs.h. */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h. */
23835 $ac_includes_default
23836 #include <$ac_header>
23837 _ACEOF
23838 rm -f conftest.$ac_objext
23839 if { (ac_try="$ac_compile"
23840 case "(($ac_try" in
23841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23842 *) ac_try_echo=$ac_try;;
23843 esac
23844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23845 $as_echo "$ac_try_echo") >&5
23846 (eval "$ac_compile") 2>conftest.er1
23847 ac_status=$?
23848 grep -v '^ *+' conftest.er1 >conftest.err
23849 rm -f conftest.er1
23850 cat conftest.err >&5
23851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23852 (exit $ac_status); } && {
23853 test -z "$ac_c_werror_flag" ||
23854 test ! -s conftest.err
23855 } && test -s conftest.$ac_objext; then
23856 ac_header_compiler=yes
23857 else
23858 $as_echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23861 ac_header_compiler=no
23864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23865 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23866 $as_echo "$ac_header_compiler" >&6; }
23868 # Is the header present?
23869 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23870 $as_echo_n "checking $ac_header presence... " >&6; }
23871 cat >conftest.$ac_ext <<_ACEOF
23872 /* confdefs.h. */
23873 _ACEOF
23874 cat confdefs.h >>conftest.$ac_ext
23875 cat >>conftest.$ac_ext <<_ACEOF
23876 /* end confdefs.h. */
23877 #include <$ac_header>
23878 _ACEOF
23879 if { (ac_try="$ac_cpp conftest.$ac_ext"
23880 case "(($ac_try" in
23881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882 *) ac_try_echo=$ac_try;;
23883 esac
23884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23885 $as_echo "$ac_try_echo") >&5
23886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23887 ac_status=$?
23888 grep -v '^ *+' conftest.er1 >conftest.err
23889 rm -f conftest.er1
23890 cat conftest.err >&5
23891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892 (exit $ac_status); } >/dev/null && {
23893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23894 test ! -s conftest.err
23895 }; then
23896 ac_header_preproc=yes
23897 else
23898 $as_echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23901 ac_header_preproc=no
23904 rm -f conftest.err conftest.$ac_ext
23905 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23906 $as_echo "$ac_header_preproc" >&6; }
23908 # So? What about this header?
23909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23910 yes:no: )
23911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23912 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23915 ac_header_preproc=yes
23917 no:yes:* )
23918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23919 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23921 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23923 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23925 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23927 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23929 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23932 esac
23933 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23934 $as_echo_n "checking for $ac_header... " >&6; }
23935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23936 $as_echo_n "(cached) " >&6
23937 else
23938 eval "$as_ac_Header=\$ac_header_preproc"
23940 ac_res=`eval 'as_val=${'$as_ac_Header'}
23941 $as_echo "$as_val"'`
23942 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23943 $as_echo "$ac_res" >&6; }
23946 as_val=`eval 'as_val=${'$as_ac_Header'}
23947 $as_echo "$as_val"'`
23948 if test "x$as_val" = x""yes; then
23949 cat >>confdefs.h <<_ACEOF
23950 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23951 _ACEOF
23955 done
23959 done
23963 done
23966 for ac_header in krb.h
23968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23970 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23971 $as_echo_n "checking for $ac_header... " >&6; }
23972 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23973 $as_echo_n "(cached) " >&6
23975 ac_res=`eval 'as_val=${'$as_ac_Header'}
23976 $as_echo "$as_val"'`
23977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23978 $as_echo "$ac_res" >&6; }
23979 else
23980 # Is the header compilable?
23981 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23982 $as_echo_n "checking $ac_header usability... " >&6; }
23983 cat >conftest.$ac_ext <<_ACEOF
23984 /* confdefs.h. */
23985 _ACEOF
23986 cat confdefs.h >>conftest.$ac_ext
23987 cat >>conftest.$ac_ext <<_ACEOF
23988 /* end confdefs.h. */
23989 $ac_includes_default
23990 #include <$ac_header>
23991 _ACEOF
23992 rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23997 esac
23998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23999 $as_echo "$ac_try_echo") >&5
24000 (eval "$ac_compile") 2>conftest.er1
24001 ac_status=$?
24002 grep -v '^ *+' conftest.er1 >conftest.err
24003 rm -f conftest.er1
24004 cat conftest.err >&5
24005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); } && {
24007 test -z "$ac_c_werror_flag" ||
24008 test ! -s conftest.err
24009 } && test -s conftest.$ac_objext; then
24010 ac_header_compiler=yes
24011 else
24012 $as_echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24015 ac_header_compiler=no
24018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24019 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24020 $as_echo "$ac_header_compiler" >&6; }
24022 # Is the header present?
24023 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24024 $as_echo_n "checking $ac_header presence... " >&6; }
24025 cat >conftest.$ac_ext <<_ACEOF
24026 /* confdefs.h. */
24027 _ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h. */
24031 #include <$ac_header>
24032 _ACEOF
24033 if { (ac_try="$ac_cpp conftest.$ac_ext"
24034 case "(($ac_try" in
24035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036 *) ac_try_echo=$ac_try;;
24037 esac
24038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24039 $as_echo "$ac_try_echo") >&5
24040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24041 ac_status=$?
24042 grep -v '^ *+' conftest.er1 >conftest.err
24043 rm -f conftest.er1
24044 cat conftest.err >&5
24045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046 (exit $ac_status); } >/dev/null && {
24047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24048 test ! -s conftest.err
24049 }; then
24050 ac_header_preproc=yes
24051 else
24052 $as_echo "$as_me: failed program was:" >&5
24053 sed 's/^/| /' conftest.$ac_ext >&5
24055 ac_header_preproc=no
24058 rm -f conftest.err conftest.$ac_ext
24059 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24060 $as_echo "$ac_header_preproc" >&6; }
24062 # So? What about this header?
24063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24064 yes:no: )
24065 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24066 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24067 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24068 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24069 ac_header_preproc=yes
24071 no:yes:* )
24072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24073 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24075 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24077 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24079 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24081 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24083 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24086 esac
24087 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24088 $as_echo_n "checking for $ac_header... " >&6; }
24089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24090 $as_echo_n "(cached) " >&6
24091 else
24092 eval "$as_ac_Header=\$ac_header_preproc"
24094 ac_res=`eval 'as_val=${'$as_ac_Header'}
24095 $as_echo "$as_val"'`
24096 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24097 $as_echo "$ac_res" >&6; }
24100 as_val=`eval 'as_val=${'$as_ac_Header'}
24101 $as_echo "$as_val"'`
24102 if test "x$as_val" = x""yes; then
24103 cat >>confdefs.h <<_ACEOF
24104 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24105 _ACEOF
24107 else
24109 for ac_header in kerberosIV/krb.h
24111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24113 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24114 $as_echo_n "checking for $ac_header... " >&6; }
24115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24116 $as_echo_n "(cached) " >&6
24118 ac_res=`eval 'as_val=${'$as_ac_Header'}
24119 $as_echo "$as_val"'`
24120 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24121 $as_echo "$ac_res" >&6; }
24122 else
24123 # Is the header compilable?
24124 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24125 $as_echo_n "checking $ac_header usability... " >&6; }
24126 cat >conftest.$ac_ext <<_ACEOF
24127 /* confdefs.h. */
24128 _ACEOF
24129 cat confdefs.h >>conftest.$ac_ext
24130 cat >>conftest.$ac_ext <<_ACEOF
24131 /* end confdefs.h. */
24132 $ac_includes_default
24133 #include <$ac_header>
24134 _ACEOF
24135 rm -f conftest.$ac_objext
24136 if { (ac_try="$ac_compile"
24137 case "(($ac_try" in
24138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139 *) ac_try_echo=$ac_try;;
24140 esac
24141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24142 $as_echo "$ac_try_echo") >&5
24143 (eval "$ac_compile") 2>conftest.er1
24144 ac_status=$?
24145 grep -v '^ *+' conftest.er1 >conftest.err
24146 rm -f conftest.er1
24147 cat conftest.err >&5
24148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } && {
24150 test -z "$ac_c_werror_flag" ||
24151 test ! -s conftest.err
24152 } && test -s conftest.$ac_objext; then
24153 ac_header_compiler=yes
24154 else
24155 $as_echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24158 ac_header_compiler=no
24161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24162 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24163 $as_echo "$ac_header_compiler" >&6; }
24165 # Is the header present?
24166 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24167 $as_echo_n "checking $ac_header presence... " >&6; }
24168 cat >conftest.$ac_ext <<_ACEOF
24169 /* confdefs.h. */
24170 _ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h. */
24174 #include <$ac_header>
24175 _ACEOF
24176 if { (ac_try="$ac_cpp conftest.$ac_ext"
24177 case "(($ac_try" in
24178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179 *) ac_try_echo=$ac_try;;
24180 esac
24181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24182 $as_echo "$ac_try_echo") >&5
24183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24184 ac_status=$?
24185 grep -v '^ *+' conftest.er1 >conftest.err
24186 rm -f conftest.er1
24187 cat conftest.err >&5
24188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } >/dev/null && {
24190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24191 test ! -s conftest.err
24192 }; then
24193 ac_header_preproc=yes
24194 else
24195 $as_echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24198 ac_header_preproc=no
24201 rm -f conftest.err conftest.$ac_ext
24202 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24203 $as_echo "$ac_header_preproc" >&6; }
24205 # So? What about this header?
24206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24207 yes:no: )
24208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24209 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24211 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24212 ac_header_preproc=yes
24214 no:yes:* )
24215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24216 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24218 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24219 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24220 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24221 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24222 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24223 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24224 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24225 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24226 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24229 esac
24230 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24231 $as_echo_n "checking for $ac_header... " >&6; }
24232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24233 $as_echo_n "(cached) " >&6
24234 else
24235 eval "$as_ac_Header=\$ac_header_preproc"
24237 ac_res=`eval 'as_val=${'$as_ac_Header'}
24238 $as_echo "$as_val"'`
24239 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24240 $as_echo "$ac_res" >&6; }
24243 as_val=`eval 'as_val=${'$as_ac_Header'}
24244 $as_echo "$as_val"'`
24245 if test "x$as_val" = x""yes; then
24246 cat >>confdefs.h <<_ACEOF
24247 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24248 _ACEOF
24250 else
24252 for ac_header in kerberos/krb.h
24254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24256 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24257 $as_echo_n "checking for $ac_header... " >&6; }
24258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24259 $as_echo_n "(cached) " >&6
24261 ac_res=`eval 'as_val=${'$as_ac_Header'}
24262 $as_echo "$as_val"'`
24263 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24264 $as_echo "$ac_res" >&6; }
24265 else
24266 # Is the header compilable?
24267 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24268 $as_echo_n "checking $ac_header usability... " >&6; }
24269 cat >conftest.$ac_ext <<_ACEOF
24270 /* confdefs.h. */
24271 _ACEOF
24272 cat confdefs.h >>conftest.$ac_ext
24273 cat >>conftest.$ac_ext <<_ACEOF
24274 /* end confdefs.h. */
24275 $ac_includes_default
24276 #include <$ac_header>
24277 _ACEOF
24278 rm -f conftest.$ac_objext
24279 if { (ac_try="$ac_compile"
24280 case "(($ac_try" in
24281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24282 *) ac_try_echo=$ac_try;;
24283 esac
24284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24285 $as_echo "$ac_try_echo") >&5
24286 (eval "$ac_compile") 2>conftest.er1
24287 ac_status=$?
24288 grep -v '^ *+' conftest.er1 >conftest.err
24289 rm -f conftest.er1
24290 cat conftest.err >&5
24291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); } && {
24293 test -z "$ac_c_werror_flag" ||
24294 test ! -s conftest.err
24295 } && test -s conftest.$ac_objext; then
24296 ac_header_compiler=yes
24297 else
24298 $as_echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24301 ac_header_compiler=no
24304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24305 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24306 $as_echo "$ac_header_compiler" >&6; }
24308 # Is the header present?
24309 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24310 $as_echo_n "checking $ac_header presence... " >&6; }
24311 cat >conftest.$ac_ext <<_ACEOF
24312 /* confdefs.h. */
24313 _ACEOF
24314 cat confdefs.h >>conftest.$ac_ext
24315 cat >>conftest.$ac_ext <<_ACEOF
24316 /* end confdefs.h. */
24317 #include <$ac_header>
24318 _ACEOF
24319 if { (ac_try="$ac_cpp conftest.$ac_ext"
24320 case "(($ac_try" in
24321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24322 *) ac_try_echo=$ac_try;;
24323 esac
24324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24325 $as_echo "$ac_try_echo") >&5
24326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24327 ac_status=$?
24328 grep -v '^ *+' conftest.er1 >conftest.err
24329 rm -f conftest.er1
24330 cat conftest.err >&5
24331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } >/dev/null && {
24333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24334 test ! -s conftest.err
24335 }; then
24336 ac_header_preproc=yes
24337 else
24338 $as_echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24341 ac_header_preproc=no
24344 rm -f conftest.err conftest.$ac_ext
24345 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24346 $as_echo "$ac_header_preproc" >&6; }
24348 # So? What about this header?
24349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24350 yes:no: )
24351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24352 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24354 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24355 ac_header_preproc=yes
24357 no:yes:* )
24358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24359 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24361 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24363 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24365 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24367 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24369 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24372 esac
24373 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24374 $as_echo_n "checking for $ac_header... " >&6; }
24375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24376 $as_echo_n "(cached) " >&6
24377 else
24378 eval "$as_ac_Header=\$ac_header_preproc"
24380 ac_res=`eval 'as_val=${'$as_ac_Header'}
24381 $as_echo "$as_val"'`
24382 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24383 $as_echo "$ac_res" >&6; }
24386 as_val=`eval 'as_val=${'$as_ac_Header'}
24387 $as_echo "$as_val"'`
24388 if test "x$as_val" = x""yes; then
24389 cat >>confdefs.h <<_ACEOF
24390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24391 _ACEOF
24395 done
24399 done
24403 done
24407 for ac_header in com_err.h
24409 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24411 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24412 $as_echo_n "checking for $ac_header... " >&6; }
24413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24414 $as_echo_n "(cached) " >&6
24416 ac_res=`eval 'as_val=${'$as_ac_Header'}
24417 $as_echo "$as_val"'`
24418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24419 $as_echo "$ac_res" >&6; }
24420 else
24421 # Is the header compilable?
24422 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24423 $as_echo_n "checking $ac_header usability... " >&6; }
24424 cat >conftest.$ac_ext <<_ACEOF
24425 /* confdefs.h. */
24426 _ACEOF
24427 cat confdefs.h >>conftest.$ac_ext
24428 cat >>conftest.$ac_ext <<_ACEOF
24429 /* end confdefs.h. */
24430 $ac_includes_default
24431 #include <$ac_header>
24432 _ACEOF
24433 rm -f conftest.$ac_objext
24434 if { (ac_try="$ac_compile"
24435 case "(($ac_try" in
24436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24437 *) ac_try_echo=$ac_try;;
24438 esac
24439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24440 $as_echo "$ac_try_echo") >&5
24441 (eval "$ac_compile") 2>conftest.er1
24442 ac_status=$?
24443 grep -v '^ *+' conftest.er1 >conftest.err
24444 rm -f conftest.er1
24445 cat conftest.err >&5
24446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); } && {
24448 test -z "$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24450 } && test -s conftest.$ac_objext; then
24451 ac_header_compiler=yes
24452 else
24453 $as_echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24456 ac_header_compiler=no
24459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24460 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24461 $as_echo "$ac_header_compiler" >&6; }
24463 # Is the header present?
24464 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24465 $as_echo_n "checking $ac_header presence... " >&6; }
24466 cat >conftest.$ac_ext <<_ACEOF
24467 /* confdefs.h. */
24468 _ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h. */
24472 #include <$ac_header>
24473 _ACEOF
24474 if { (ac_try="$ac_cpp conftest.$ac_ext"
24475 case "(($ac_try" in
24476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24477 *) ac_try_echo=$ac_try;;
24478 esac
24479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24480 $as_echo "$ac_try_echo") >&5
24481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24482 ac_status=$?
24483 grep -v '^ *+' conftest.er1 >conftest.err
24484 rm -f conftest.er1
24485 cat conftest.err >&5
24486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487 (exit $ac_status); } >/dev/null && {
24488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24489 test ! -s conftest.err
24490 }; then
24491 ac_header_preproc=yes
24492 else
24493 $as_echo "$as_me: failed program was:" >&5
24494 sed 's/^/| /' conftest.$ac_ext >&5
24496 ac_header_preproc=no
24499 rm -f conftest.err conftest.$ac_ext
24500 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24501 $as_echo "$ac_header_preproc" >&6; }
24503 # So? What about this header?
24504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24505 yes:no: )
24506 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24507 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24508 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24509 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24510 ac_header_preproc=yes
24512 no:yes:* )
24513 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24514 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24515 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24516 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24517 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24518 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24520 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24522 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24524 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24527 esac
24528 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24529 $as_echo_n "checking for $ac_header... " >&6; }
24530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24531 $as_echo_n "(cached) " >&6
24532 else
24533 eval "$as_ac_Header=\$ac_header_preproc"
24535 ac_res=`eval 'as_val=${'$as_ac_Header'}
24536 $as_echo "$as_val"'`
24537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24538 $as_echo "$ac_res" >&6; }
24541 as_val=`eval 'as_val=${'$as_ac_Header'}
24542 $as_echo "$as_val"'`
24543 if test "x$as_val" = x""yes; then
24544 cat >>confdefs.h <<_ACEOF
24545 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24546 _ACEOF
24550 done
24560 # Solaris requires -lintl if you want strerror (which calls dgettext)
24561 # to return localized messages.
24563 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24564 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24565 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24566 $as_echo_n "(cached) " >&6
24567 else
24568 ac_check_lib_save_LIBS=$LIBS
24569 LIBS="-lintl $LIBS"
24570 cat >conftest.$ac_ext <<_ACEOF
24571 /* confdefs.h. */
24572 _ACEOF
24573 cat confdefs.h >>conftest.$ac_ext
24574 cat >>conftest.$ac_ext <<_ACEOF
24575 /* end confdefs.h. */
24577 /* Override any GCC internal prototype to avoid an error.
24578 Use char because int might match the return type of a GCC
24579 builtin and then its argument prototype would still apply. */
24580 #ifdef __cplusplus
24581 extern "C"
24582 #endif
24583 char dgettext ();
24585 main ()
24587 return dgettext ();
24589 return 0;
24591 _ACEOF
24592 rm -f conftest.$ac_objext conftest$ac_exeext
24593 if { (ac_try="$ac_link"
24594 case "(($ac_try" in
24595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596 *) ac_try_echo=$ac_try;;
24597 esac
24598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24599 $as_echo "$ac_try_echo") >&5
24600 (eval "$ac_link") 2>conftest.er1
24601 ac_status=$?
24602 grep -v '^ *+' conftest.er1 >conftest.err
24603 rm -f conftest.er1
24604 cat conftest.err >&5
24605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } && {
24607 test -z "$ac_c_werror_flag" ||
24608 test ! -s conftest.err
24609 } && test -s conftest$ac_exeext && {
24610 test "$cross_compiling" = yes ||
24611 $as_test_x conftest$ac_exeext
24612 }; then
24613 ac_cv_lib_intl_dgettext=yes
24614 else
24615 $as_echo "$as_me: failed program was:" >&5
24616 sed 's/^/| /' conftest.$ac_ext >&5
24618 ac_cv_lib_intl_dgettext=no
24621 rm -rf conftest.dSYM
24622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24623 conftest$ac_exeext conftest.$ac_ext
24624 LIBS=$ac_check_lib_save_LIBS
24626 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24627 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24628 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then
24629 cat >>confdefs.h <<_ACEOF
24630 #define HAVE_LIBINTL 1
24631 _ACEOF
24633 LIBS="-lintl $LIBS"
24638 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24639 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24640 if test "${emacs_cv_localtime_cache+set}" = set; then
24641 $as_echo_n "(cached) " >&6
24642 else
24643 if test x$ac_cv_func_tzset = xyes; then
24644 if test "$cross_compiling" = yes; then
24645 # If we have tzset, assume the worst when cross-compiling.
24646 emacs_cv_localtime_cache=yes
24647 else
24648 cat >conftest.$ac_ext <<_ACEOF
24649 /* confdefs.h. */
24650 _ACEOF
24651 cat confdefs.h >>conftest.$ac_ext
24652 cat >>conftest.$ac_ext <<_ACEOF
24653 /* end confdefs.h. */
24654 #include <time.h>
24655 extern char **environ;
24656 unset_TZ ()
24658 char **from, **to;
24659 for (to = from = environ; (*to = *from); from++)
24660 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24661 to++;
24663 char TZ_GMT0[] = "TZ=GMT0";
24664 char TZ_PST8[] = "TZ=PST8";
24665 main()
24667 time_t now = time ((time_t *) 0);
24668 int hour_GMT0, hour_unset;
24669 if (putenv (TZ_GMT0) != 0)
24670 exit (1);
24671 hour_GMT0 = localtime (&now)->tm_hour;
24672 unset_TZ ();
24673 hour_unset = localtime (&now)->tm_hour;
24674 if (putenv (TZ_PST8) != 0)
24675 exit (1);
24676 if (localtime (&now)->tm_hour == hour_GMT0)
24677 exit (1);
24678 unset_TZ ();
24679 if (localtime (&now)->tm_hour != hour_unset)
24680 exit (1);
24681 exit (0);
24683 _ACEOF
24684 rm -f conftest$ac_exeext
24685 if { (ac_try="$ac_link"
24686 case "(($ac_try" in
24687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24688 *) ac_try_echo=$ac_try;;
24689 esac
24690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24691 $as_echo "$ac_try_echo") >&5
24692 (eval "$ac_link") 2>&5
24693 ac_status=$?
24694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24696 { (case "(($ac_try" in
24697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698 *) ac_try_echo=$ac_try;;
24699 esac
24700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24701 $as_echo "$ac_try_echo") >&5
24702 (eval "$ac_try") 2>&5
24703 ac_status=$?
24704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); }; }; then
24706 emacs_cv_localtime_cache=no
24707 else
24708 $as_echo "$as_me: program exited with status $ac_status" >&5
24709 $as_echo "$as_me: failed program was:" >&5
24710 sed 's/^/| /' conftest.$ac_ext >&5
24712 ( exit $ac_status )
24713 emacs_cv_localtime_cache=yes
24715 rm -rf conftest.dSYM
24716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24720 else
24721 # If we lack tzset, report that localtime does not cache TZ,
24722 # since we can't invalidate the cache if we don't have tzset.
24723 emacs_cv_localtime_cache=no
24726 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24727 $as_echo "$emacs_cv_localtime_cache" >&6; }
24728 if test $emacs_cv_localtime_cache = yes; then
24730 cat >>confdefs.h <<\_ACEOF
24731 #define LOCALTIME_CACHE 1
24732 _ACEOF
24736 if test "x$HAVE_TIMEVAL" = xyes; then
24738 for ac_func in gettimeofday
24740 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24741 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24742 $as_echo_n "checking for $ac_func... " >&6; }
24743 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24744 $as_echo_n "(cached) " >&6
24745 else
24746 cat >conftest.$ac_ext <<_ACEOF
24747 /* confdefs.h. */
24748 _ACEOF
24749 cat confdefs.h >>conftest.$ac_ext
24750 cat >>conftest.$ac_ext <<_ACEOF
24751 /* end confdefs.h. */
24752 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24754 #define $ac_func innocuous_$ac_func
24756 /* System header to define __stub macros and hopefully few prototypes,
24757 which can conflict with char $ac_func (); below.
24758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24759 <limits.h> exists even on freestanding compilers. */
24761 #ifdef __STDC__
24762 # include <limits.h>
24763 #else
24764 # include <assert.h>
24765 #endif
24767 #undef $ac_func
24769 /* Override any GCC internal prototype to avoid an error.
24770 Use char because int might match the return type of a GCC
24771 builtin and then its argument prototype would still apply. */
24772 #ifdef __cplusplus
24773 extern "C"
24774 #endif
24775 char $ac_func ();
24776 /* The GNU C library defines this for functions which it implements
24777 to always fail with ENOSYS. Some functions are actually named
24778 something starting with __ and the normal name is an alias. */
24779 #if defined __stub_$ac_func || defined __stub___$ac_func
24780 choke me
24781 #endif
24784 main ()
24786 return $ac_func ();
24788 return 0;
24790 _ACEOF
24791 rm -f conftest.$ac_objext conftest$ac_exeext
24792 if { (ac_try="$ac_link"
24793 case "(($ac_try" in
24794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24795 *) ac_try_echo=$ac_try;;
24796 esac
24797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24798 $as_echo "$ac_try_echo") >&5
24799 (eval "$ac_link") 2>conftest.er1
24800 ac_status=$?
24801 grep -v '^ *+' conftest.er1 >conftest.err
24802 rm -f conftest.er1
24803 cat conftest.err >&5
24804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); } && {
24806 test -z "$ac_c_werror_flag" ||
24807 test ! -s conftest.err
24808 } && test -s conftest$ac_exeext && {
24809 test "$cross_compiling" = yes ||
24810 $as_test_x conftest$ac_exeext
24811 }; then
24812 eval "$as_ac_var=yes"
24813 else
24814 $as_echo "$as_me: failed program was:" >&5
24815 sed 's/^/| /' conftest.$ac_ext >&5
24817 eval "$as_ac_var=no"
24820 rm -rf conftest.dSYM
24821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24822 conftest$ac_exeext conftest.$ac_ext
24824 ac_res=`eval 'as_val=${'$as_ac_var'}
24825 $as_echo "$as_val"'`
24826 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24827 $as_echo "$ac_res" >&6; }
24828 as_val=`eval 'as_val=${'$as_ac_var'}
24829 $as_echo "$as_val"'`
24830 if test "x$as_val" = x""yes; then
24831 cat >>confdefs.h <<_ACEOF
24832 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24833 _ACEOF
24836 done
24838 if test $ac_cv_func_gettimeofday = yes; then
24839 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24840 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24841 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24842 $as_echo_n "(cached) " >&6
24843 else
24844 cat >conftest.$ac_ext <<_ACEOF
24845 /* confdefs.h. */
24846 _ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h. */
24851 #ifdef TIME_WITH_SYS_TIME
24852 #include <sys/time.h>
24853 #include <time.h>
24854 #else
24855 #ifdef HAVE_SYS_TIME_H
24856 #include <sys/time.h>
24857 #else
24858 #include <time.h>
24859 #endif
24860 #endif
24862 main ()
24864 struct timeval time;
24865 gettimeofday (&time, 0);
24867 return 0;
24869 _ACEOF
24870 rm -f conftest.$ac_objext
24871 if { (ac_try="$ac_compile"
24872 case "(($ac_try" in
24873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874 *) ac_try_echo=$ac_try;;
24875 esac
24876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24877 $as_echo "$ac_try_echo") >&5
24878 (eval "$ac_compile") 2>conftest.er1
24879 ac_status=$?
24880 grep -v '^ *+' conftest.er1 >conftest.err
24881 rm -f conftest.er1
24882 cat conftest.err >&5
24883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24884 (exit $ac_status); } && {
24885 test -z "$ac_c_werror_flag" ||
24886 test ! -s conftest.err
24887 } && test -s conftest.$ac_objext; then
24888 emacs_cv_gettimeofday_two_arguments=yes
24889 else
24890 $as_echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24893 emacs_cv_gettimeofday_two_arguments=no
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24898 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24899 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24900 if test $emacs_cv_gettimeofday_two_arguments = no; then
24902 cat >>confdefs.h <<\_ACEOF
24903 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24904 _ACEOF
24910 ok_so_far=yes
24911 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24912 $as_echo_n "checking for socket... " >&6; }
24913 if test "${ac_cv_func_socket+set}" = set; then
24914 $as_echo_n "(cached) " >&6
24915 else
24916 cat >conftest.$ac_ext <<_ACEOF
24917 /* confdefs.h. */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24922 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24924 #define socket innocuous_socket
24926 /* System header to define __stub macros and hopefully few prototypes,
24927 which can conflict with char socket (); below.
24928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24929 <limits.h> exists even on freestanding compilers. */
24931 #ifdef __STDC__
24932 # include <limits.h>
24933 #else
24934 # include <assert.h>
24935 #endif
24937 #undef socket
24939 /* Override any GCC internal prototype to avoid an error.
24940 Use char because int might match the return type of a GCC
24941 builtin and then its argument prototype would still apply. */
24942 #ifdef __cplusplus
24943 extern "C"
24944 #endif
24945 char socket ();
24946 /* The GNU C library defines this for functions which it implements
24947 to always fail with ENOSYS. Some functions are actually named
24948 something starting with __ and the normal name is an alias. */
24949 #if defined __stub_socket || defined __stub___socket
24950 choke me
24951 #endif
24954 main ()
24956 return socket ();
24958 return 0;
24960 _ACEOF
24961 rm -f conftest.$ac_objext conftest$ac_exeext
24962 if { (ac_try="$ac_link"
24963 case "(($ac_try" in
24964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965 *) ac_try_echo=$ac_try;;
24966 esac
24967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24968 $as_echo "$ac_try_echo") >&5
24969 (eval "$ac_link") 2>conftest.er1
24970 ac_status=$?
24971 grep -v '^ *+' conftest.er1 >conftest.err
24972 rm -f conftest.er1
24973 cat conftest.err >&5
24974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } && {
24976 test -z "$ac_c_werror_flag" ||
24977 test ! -s conftest.err
24978 } && test -s conftest$ac_exeext && {
24979 test "$cross_compiling" = yes ||
24980 $as_test_x conftest$ac_exeext
24981 }; then
24982 ac_cv_func_socket=yes
24983 else
24984 $as_echo "$as_me: failed program was:" >&5
24985 sed 's/^/| /' conftest.$ac_ext >&5
24987 ac_cv_func_socket=no
24990 rm -rf conftest.dSYM
24991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24992 conftest$ac_exeext conftest.$ac_ext
24994 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24995 $as_echo "$ac_cv_func_socket" >&6; }
24996 if test "x$ac_cv_func_socket" = x""yes; then
24998 else
24999 ok_so_far=no
25002 if test $ok_so_far = yes; then
25003 if test "${ac_cv_header_netinet_in_h+set}" = set; then
25004 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
25005 $as_echo_n "checking for netinet/in.h... " >&6; }
25006 if test "${ac_cv_header_netinet_in_h+set}" = set; then
25007 $as_echo_n "(cached) " >&6
25009 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
25010 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
25011 else
25012 # Is the header compilable?
25013 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
25014 $as_echo_n "checking netinet/in.h usability... " >&6; }
25015 cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h. */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h. */
25021 $ac_includes_default
25022 #include <netinet/in.h>
25023 _ACEOF
25024 rm -f conftest.$ac_objext
25025 if { (ac_try="$ac_compile"
25026 case "(($ac_try" in
25027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028 *) ac_try_echo=$ac_try;;
25029 esac
25030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25031 $as_echo "$ac_try_echo") >&5
25032 (eval "$ac_compile") 2>conftest.er1
25033 ac_status=$?
25034 grep -v '^ *+' conftest.er1 >conftest.err
25035 rm -f conftest.er1
25036 cat conftest.err >&5
25037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25038 (exit $ac_status); } && {
25039 test -z "$ac_c_werror_flag" ||
25040 test ! -s conftest.err
25041 } && test -s conftest.$ac_objext; then
25042 ac_header_compiler=yes
25043 else
25044 $as_echo "$as_me: failed program was:" >&5
25045 sed 's/^/| /' conftest.$ac_ext >&5
25047 ac_header_compiler=no
25050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25051 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25052 $as_echo "$ac_header_compiler" >&6; }
25054 # Is the header present?
25055 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
25056 $as_echo_n "checking netinet/in.h presence... " >&6; }
25057 cat >conftest.$ac_ext <<_ACEOF
25058 /* confdefs.h. */
25059 _ACEOF
25060 cat confdefs.h >>conftest.$ac_ext
25061 cat >>conftest.$ac_ext <<_ACEOF
25062 /* end confdefs.h. */
25063 #include <netinet/in.h>
25064 _ACEOF
25065 if { (ac_try="$ac_cpp conftest.$ac_ext"
25066 case "(($ac_try" in
25067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25068 *) ac_try_echo=$ac_try;;
25069 esac
25070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25071 $as_echo "$ac_try_echo") >&5
25072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25073 ac_status=$?
25074 grep -v '^ *+' conftest.er1 >conftest.err
25075 rm -f conftest.er1
25076 cat conftest.err >&5
25077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25078 (exit $ac_status); } >/dev/null && {
25079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25080 test ! -s conftest.err
25081 }; then
25082 ac_header_preproc=yes
25083 else
25084 $as_echo "$as_me: failed program was:" >&5
25085 sed 's/^/| /' conftest.$ac_ext >&5
25087 ac_header_preproc=no
25090 rm -f conftest.err conftest.$ac_ext
25091 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25092 $as_echo "$ac_header_preproc" >&6; }
25094 # So? What about this header?
25095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25096 yes:no: )
25097 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
25098 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25099 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
25100 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
25101 ac_header_preproc=yes
25103 no:yes:* )
25104 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
25105 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
25106 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
25107 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
25108 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
25109 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
25110 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
25111 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
25112 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
25113 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
25114 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
25115 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
25118 esac
25119 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
25120 $as_echo_n "checking for netinet/in.h... " >&6; }
25121 if test "${ac_cv_header_netinet_in_h+set}" = set; then
25122 $as_echo_n "(cached) " >&6
25123 else
25124 ac_cv_header_netinet_in_h=$ac_header_preproc
25126 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
25127 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
25130 if test "x$ac_cv_header_netinet_in_h" = x""yes; then
25132 else
25133 ok_so_far=no
25138 if test $ok_so_far = yes; then
25139 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25140 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25141 $as_echo_n "checking for arpa/inet.h... " >&6; }
25142 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25143 $as_echo_n "(cached) " >&6
25145 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25146 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25147 else
25148 # Is the header compilable?
25149 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
25150 $as_echo_n "checking arpa/inet.h usability... " >&6; }
25151 cat >conftest.$ac_ext <<_ACEOF
25152 /* confdefs.h. */
25153 _ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h. */
25157 $ac_includes_default
25158 #include <arpa/inet.h>
25159 _ACEOF
25160 rm -f conftest.$ac_objext
25161 if { (ac_try="$ac_compile"
25162 case "(($ac_try" in
25163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164 *) ac_try_echo=$ac_try;;
25165 esac
25166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25167 $as_echo "$ac_try_echo") >&5
25168 (eval "$ac_compile") 2>conftest.er1
25169 ac_status=$?
25170 grep -v '^ *+' conftest.er1 >conftest.err
25171 rm -f conftest.er1
25172 cat conftest.err >&5
25173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174 (exit $ac_status); } && {
25175 test -z "$ac_c_werror_flag" ||
25176 test ! -s conftest.err
25177 } && test -s conftest.$ac_objext; then
25178 ac_header_compiler=yes
25179 else
25180 $as_echo "$as_me: failed program was:" >&5
25181 sed 's/^/| /' conftest.$ac_ext >&5
25183 ac_header_compiler=no
25186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25187 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25188 $as_echo "$ac_header_compiler" >&6; }
25190 # Is the header present?
25191 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
25192 $as_echo_n "checking arpa/inet.h presence... " >&6; }
25193 cat >conftest.$ac_ext <<_ACEOF
25194 /* confdefs.h. */
25195 _ACEOF
25196 cat confdefs.h >>conftest.$ac_ext
25197 cat >>conftest.$ac_ext <<_ACEOF
25198 /* end confdefs.h. */
25199 #include <arpa/inet.h>
25200 _ACEOF
25201 if { (ac_try="$ac_cpp conftest.$ac_ext"
25202 case "(($ac_try" in
25203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25204 *) ac_try_echo=$ac_try;;
25205 esac
25206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25207 $as_echo "$ac_try_echo") >&5
25208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25209 ac_status=$?
25210 grep -v '^ *+' conftest.er1 >conftest.err
25211 rm -f conftest.er1
25212 cat conftest.err >&5
25213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214 (exit $ac_status); } >/dev/null && {
25215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25216 test ! -s conftest.err
25217 }; then
25218 ac_header_preproc=yes
25219 else
25220 $as_echo "$as_me: failed program was:" >&5
25221 sed 's/^/| /' conftest.$ac_ext >&5
25223 ac_header_preproc=no
25226 rm -f conftest.err conftest.$ac_ext
25227 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25228 $as_echo "$ac_header_preproc" >&6; }
25230 # So? What about this header?
25231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25232 yes:no: )
25233 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
25234 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25235 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
25236 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
25237 ac_header_preproc=yes
25239 no:yes:* )
25240 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
25241 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
25242 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
25243 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
25244 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
25245 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
25246 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
25247 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25248 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25249 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25250 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25251 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25254 esac
25255 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25256 $as_echo_n "checking for arpa/inet.h... " >&6; }
25257 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25258 $as_echo_n "(cached) " >&6
25259 else
25260 ac_cv_header_arpa_inet_h=$ac_header_preproc
25262 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25263 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25266 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then
25268 else
25269 ok_so_far=no
25274 if test $ok_so_far = yes; then
25276 cat >>confdefs.h <<\_ACEOF
25277 #define HAVE_INET_SOCKETS 1
25278 _ACEOF
25283 for ac_header in sys/ioctl.h
25285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25287 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25288 $as_echo_n "checking for $ac_header... " >&6; }
25289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25290 $as_echo_n "(cached) " >&6
25292 ac_res=`eval 'as_val=${'$as_ac_Header'}
25293 $as_echo "$as_val"'`
25294 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25295 $as_echo "$ac_res" >&6; }
25296 else
25297 # Is the header compilable?
25298 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25299 $as_echo_n "checking $ac_header usability... " >&6; }
25300 cat >conftest.$ac_ext <<_ACEOF
25301 /* confdefs.h. */
25302 _ACEOF
25303 cat confdefs.h >>conftest.$ac_ext
25304 cat >>conftest.$ac_ext <<_ACEOF
25305 /* end confdefs.h. */
25306 $ac_includes_default
25307 #include <$ac_header>
25308 _ACEOF
25309 rm -f conftest.$ac_objext
25310 if { (ac_try="$ac_compile"
25311 case "(($ac_try" in
25312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25313 *) ac_try_echo=$ac_try;;
25314 esac
25315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25316 $as_echo "$ac_try_echo") >&5
25317 (eval "$ac_compile") 2>conftest.er1
25318 ac_status=$?
25319 grep -v '^ *+' conftest.er1 >conftest.err
25320 rm -f conftest.er1
25321 cat conftest.err >&5
25322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } && {
25324 test -z "$ac_c_werror_flag" ||
25325 test ! -s conftest.err
25326 } && test -s conftest.$ac_objext; then
25327 ac_header_compiler=yes
25328 else
25329 $as_echo "$as_me: failed program was:" >&5
25330 sed 's/^/| /' conftest.$ac_ext >&5
25332 ac_header_compiler=no
25335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25336 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25337 $as_echo "$ac_header_compiler" >&6; }
25339 # Is the header present?
25340 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25341 $as_echo_n "checking $ac_header presence... " >&6; }
25342 cat >conftest.$ac_ext <<_ACEOF
25343 /* confdefs.h. */
25344 _ACEOF
25345 cat confdefs.h >>conftest.$ac_ext
25346 cat >>conftest.$ac_ext <<_ACEOF
25347 /* end confdefs.h. */
25348 #include <$ac_header>
25349 _ACEOF
25350 if { (ac_try="$ac_cpp conftest.$ac_ext"
25351 case "(($ac_try" in
25352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25353 *) ac_try_echo=$ac_try;;
25354 esac
25355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25356 $as_echo "$ac_try_echo") >&5
25357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25358 ac_status=$?
25359 grep -v '^ *+' conftest.er1 >conftest.err
25360 rm -f conftest.er1
25361 cat conftest.err >&5
25362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363 (exit $ac_status); } >/dev/null && {
25364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25365 test ! -s conftest.err
25366 }; then
25367 ac_header_preproc=yes
25368 else
25369 $as_echo "$as_me: failed program was:" >&5
25370 sed 's/^/| /' conftest.$ac_ext >&5
25372 ac_header_preproc=no
25375 rm -f conftest.err conftest.$ac_ext
25376 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25377 $as_echo "$ac_header_preproc" >&6; }
25379 # So? What about this header?
25380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25381 yes:no: )
25382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25383 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25385 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25386 ac_header_preproc=yes
25388 no:yes:* )
25389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25390 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25392 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25394 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25396 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25398 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25400 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25403 esac
25404 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25405 $as_echo_n "checking for $ac_header... " >&6; }
25406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25407 $as_echo_n "(cached) " >&6
25408 else
25409 eval "$as_ac_Header=\$ac_header_preproc"
25411 ac_res=`eval 'as_val=${'$as_ac_Header'}
25412 $as_echo "$as_val"'`
25413 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25414 $as_echo "$ac_res" >&6; }
25417 as_val=`eval 'as_val=${'$as_ac_Header'}
25418 $as_echo "$as_val"'`
25419 if test "x$as_val" = x""yes; then
25420 cat >>confdefs.h <<_ACEOF
25421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25422 _ACEOF
25426 done
25429 if test -f /usr/lpp/X11/bin/smt.exp; then
25431 cat >>confdefs.h <<\_ACEOF
25432 #define HAVE_AIX_SMT_EXP 1
25433 _ACEOF
25437 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
25438 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
25439 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
25440 { $as_echo "$as_me:$LINENO: result: yes" >&5
25441 $as_echo "yes" >&6; }
25443 cat >>confdefs.h <<\_ACEOF
25444 #define HAVE_DEV_PTMX 1
25445 _ACEOF
25447 else
25448 { $as_echo "$as_me:$LINENO: result: no" >&5
25449 $as_echo "no" >&6; }
25452 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
25453 $as_echo_n "checking for pid_t... " >&6; }
25454 if test "${ac_cv_type_pid_t+set}" = set; then
25455 $as_echo_n "(cached) " >&6
25456 else
25457 ac_cv_type_pid_t=no
25458 cat >conftest.$ac_ext <<_ACEOF
25459 /* confdefs.h. */
25460 _ACEOF
25461 cat confdefs.h >>conftest.$ac_ext
25462 cat >>conftest.$ac_ext <<_ACEOF
25463 /* end confdefs.h. */
25464 $ac_includes_default
25466 main ()
25468 if (sizeof (pid_t))
25469 return 0;
25471 return 0;
25473 _ACEOF
25474 rm -f conftest.$ac_objext
25475 if { (ac_try="$ac_compile"
25476 case "(($ac_try" in
25477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25478 *) ac_try_echo=$ac_try;;
25479 esac
25480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25481 $as_echo "$ac_try_echo") >&5
25482 (eval "$ac_compile") 2>conftest.er1
25483 ac_status=$?
25484 grep -v '^ *+' conftest.er1 >conftest.err
25485 rm -f conftest.er1
25486 cat conftest.err >&5
25487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } && {
25489 test -z "$ac_c_werror_flag" ||
25490 test ! -s conftest.err
25491 } && test -s conftest.$ac_objext; then
25492 cat >conftest.$ac_ext <<_ACEOF
25493 /* confdefs.h. */
25494 _ACEOF
25495 cat confdefs.h >>conftest.$ac_ext
25496 cat >>conftest.$ac_ext <<_ACEOF
25497 /* end confdefs.h. */
25498 $ac_includes_default
25500 main ()
25502 if (sizeof ((pid_t)))
25503 return 0;
25505 return 0;
25507 _ACEOF
25508 rm -f conftest.$ac_objext
25509 if { (ac_try="$ac_compile"
25510 case "(($ac_try" in
25511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25512 *) ac_try_echo=$ac_try;;
25513 esac
25514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25515 $as_echo "$ac_try_echo") >&5
25516 (eval "$ac_compile") 2>conftest.er1
25517 ac_status=$?
25518 grep -v '^ *+' conftest.er1 >conftest.err
25519 rm -f conftest.er1
25520 cat conftest.err >&5
25521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); } && {
25523 test -z "$ac_c_werror_flag" ||
25524 test ! -s conftest.err
25525 } && test -s conftest.$ac_objext; then
25527 else
25528 $as_echo "$as_me: failed program was:" >&5
25529 sed 's/^/| /' conftest.$ac_ext >&5
25531 ac_cv_type_pid_t=yes
25534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25535 else
25536 $as_echo "$as_me: failed program was:" >&5
25537 sed 's/^/| /' conftest.$ac_ext >&5
25542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25544 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25545 $as_echo "$ac_cv_type_pid_t" >&6; }
25546 if test "x$ac_cv_type_pid_t" = x""yes; then
25548 else
25550 cat >>confdefs.h <<_ACEOF
25551 #define pid_t int
25552 _ACEOF
25557 for ac_header in vfork.h
25559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25562 $as_echo_n "checking for $ac_header... " >&6; }
25563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25564 $as_echo_n "(cached) " >&6
25566 ac_res=`eval 'as_val=${'$as_ac_Header'}
25567 $as_echo "$as_val"'`
25568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25569 $as_echo "$ac_res" >&6; }
25570 else
25571 # Is the header compilable?
25572 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25573 $as_echo_n "checking $ac_header usability... " >&6; }
25574 cat >conftest.$ac_ext <<_ACEOF
25575 /* confdefs.h. */
25576 _ACEOF
25577 cat confdefs.h >>conftest.$ac_ext
25578 cat >>conftest.$ac_ext <<_ACEOF
25579 /* end confdefs.h. */
25580 $ac_includes_default
25581 #include <$ac_header>
25582 _ACEOF
25583 rm -f conftest.$ac_objext
25584 if { (ac_try="$ac_compile"
25585 case "(($ac_try" in
25586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25587 *) ac_try_echo=$ac_try;;
25588 esac
25589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25590 $as_echo "$ac_try_echo") >&5
25591 (eval "$ac_compile") 2>conftest.er1
25592 ac_status=$?
25593 grep -v '^ *+' conftest.er1 >conftest.err
25594 rm -f conftest.er1
25595 cat conftest.err >&5
25596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); } && {
25598 test -z "$ac_c_werror_flag" ||
25599 test ! -s conftest.err
25600 } && test -s conftest.$ac_objext; then
25601 ac_header_compiler=yes
25602 else
25603 $as_echo "$as_me: failed program was:" >&5
25604 sed 's/^/| /' conftest.$ac_ext >&5
25606 ac_header_compiler=no
25609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25610 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25611 $as_echo "$ac_header_compiler" >&6; }
25613 # Is the header present?
25614 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25615 $as_echo_n "checking $ac_header presence... " >&6; }
25616 cat >conftest.$ac_ext <<_ACEOF
25617 /* confdefs.h. */
25618 _ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h. */
25622 #include <$ac_header>
25623 _ACEOF
25624 if { (ac_try="$ac_cpp conftest.$ac_ext"
25625 case "(($ac_try" in
25626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25627 *) ac_try_echo=$ac_try;;
25628 esac
25629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25630 $as_echo "$ac_try_echo") >&5
25631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25632 ac_status=$?
25633 grep -v '^ *+' conftest.er1 >conftest.err
25634 rm -f conftest.er1
25635 cat conftest.err >&5
25636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); } >/dev/null && {
25638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25639 test ! -s conftest.err
25640 }; then
25641 ac_header_preproc=yes
25642 else
25643 $as_echo "$as_me: failed program was:" >&5
25644 sed 's/^/| /' conftest.$ac_ext >&5
25646 ac_header_preproc=no
25649 rm -f conftest.err conftest.$ac_ext
25650 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25651 $as_echo "$ac_header_preproc" >&6; }
25653 # So? What about this header?
25654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25655 yes:no: )
25656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25657 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25659 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25660 ac_header_preproc=yes
25662 no:yes:* )
25663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25664 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25666 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25668 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25670 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25672 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25674 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25677 esac
25678 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25679 $as_echo_n "checking for $ac_header... " >&6; }
25680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25681 $as_echo_n "(cached) " >&6
25682 else
25683 eval "$as_ac_Header=\$ac_header_preproc"
25685 ac_res=`eval 'as_val=${'$as_ac_Header'}
25686 $as_echo "$as_val"'`
25687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25688 $as_echo "$ac_res" >&6; }
25691 as_val=`eval 'as_val=${'$as_ac_Header'}
25692 $as_echo "$as_val"'`
25693 if test "x$as_val" = x""yes; then
25694 cat >>confdefs.h <<_ACEOF
25695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25696 _ACEOF
25700 done
25704 for ac_func in fork vfork
25706 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25707 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25708 $as_echo_n "checking for $ac_func... " >&6; }
25709 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25710 $as_echo_n "(cached) " >&6
25711 else
25712 cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h. */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h. */
25718 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25720 #define $ac_func innocuous_$ac_func
25722 /* System header to define __stub macros and hopefully few prototypes,
25723 which can conflict with char $ac_func (); below.
25724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25725 <limits.h> exists even on freestanding compilers. */
25727 #ifdef __STDC__
25728 # include <limits.h>
25729 #else
25730 # include <assert.h>
25731 #endif
25733 #undef $ac_func
25735 /* Override any GCC internal prototype to avoid an error.
25736 Use char because int might match the return type of a GCC
25737 builtin and then its argument prototype would still apply. */
25738 #ifdef __cplusplus
25739 extern "C"
25740 #endif
25741 char $ac_func ();
25742 /* The GNU C library defines this for functions which it implements
25743 to always fail with ENOSYS. Some functions are actually named
25744 something starting with __ and the normal name is an alias. */
25745 #if defined __stub_$ac_func || defined __stub___$ac_func
25746 choke me
25747 #endif
25750 main ()
25752 return $ac_func ();
25754 return 0;
25756 _ACEOF
25757 rm -f conftest.$ac_objext conftest$ac_exeext
25758 if { (ac_try="$ac_link"
25759 case "(($ac_try" in
25760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761 *) ac_try_echo=$ac_try;;
25762 esac
25763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25764 $as_echo "$ac_try_echo") >&5
25765 (eval "$ac_link") 2>conftest.er1
25766 ac_status=$?
25767 grep -v '^ *+' conftest.er1 >conftest.err
25768 rm -f conftest.er1
25769 cat conftest.err >&5
25770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25771 (exit $ac_status); } && {
25772 test -z "$ac_c_werror_flag" ||
25773 test ! -s conftest.err
25774 } && test -s conftest$ac_exeext && {
25775 test "$cross_compiling" = yes ||
25776 $as_test_x conftest$ac_exeext
25777 }; then
25778 eval "$as_ac_var=yes"
25779 else
25780 $as_echo "$as_me: failed program was:" >&5
25781 sed 's/^/| /' conftest.$ac_ext >&5
25783 eval "$as_ac_var=no"
25786 rm -rf conftest.dSYM
25787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25788 conftest$ac_exeext conftest.$ac_ext
25790 ac_res=`eval 'as_val=${'$as_ac_var'}
25791 $as_echo "$as_val"'`
25792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25793 $as_echo "$ac_res" >&6; }
25794 as_val=`eval 'as_val=${'$as_ac_var'}
25795 $as_echo "$as_val"'`
25796 if test "x$as_val" = x""yes; then
25797 cat >>confdefs.h <<_ACEOF
25798 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25799 _ACEOF
25802 done
25804 if test "x$ac_cv_func_fork" = xyes; then
25805 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25806 $as_echo_n "checking for working fork... " >&6; }
25807 if test "${ac_cv_func_fork_works+set}" = set; then
25808 $as_echo_n "(cached) " >&6
25809 else
25810 if test "$cross_compiling" = yes; then
25811 ac_cv_func_fork_works=cross
25812 else
25813 cat >conftest.$ac_ext <<_ACEOF
25814 /* confdefs.h. */
25815 _ACEOF
25816 cat confdefs.h >>conftest.$ac_ext
25817 cat >>conftest.$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 $ac_includes_default
25821 main ()
25824 /* By Ruediger Kuhlmann. */
25825 return fork () < 0;
25828 return 0;
25830 _ACEOF
25831 rm -f conftest$ac_exeext
25832 if { (ac_try="$ac_link"
25833 case "(($ac_try" in
25834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835 *) ac_try_echo=$ac_try;;
25836 esac
25837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25838 $as_echo "$ac_try_echo") >&5
25839 (eval "$ac_link") 2>&5
25840 ac_status=$?
25841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25842 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25843 { (case "(($ac_try" in
25844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845 *) ac_try_echo=$ac_try;;
25846 esac
25847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25848 $as_echo "$ac_try_echo") >&5
25849 (eval "$ac_try") 2>&5
25850 ac_status=$?
25851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; }; then
25853 ac_cv_func_fork_works=yes
25854 else
25855 $as_echo "$as_me: program exited with status $ac_status" >&5
25856 $as_echo "$as_me: failed program was:" >&5
25857 sed 's/^/| /' conftest.$ac_ext >&5
25859 ( exit $ac_status )
25860 ac_cv_func_fork_works=no
25862 rm -rf conftest.dSYM
25863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25868 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25869 $as_echo "$ac_cv_func_fork_works" >&6; }
25871 else
25872 ac_cv_func_fork_works=$ac_cv_func_fork
25874 if test "x$ac_cv_func_fork_works" = xcross; then
25875 case $host in
25876 *-*-amigaos* | *-*-msdosdjgpp*)
25877 # Override, as these systems have only a dummy fork() stub
25878 ac_cv_func_fork_works=no
25881 ac_cv_func_fork_works=yes
25883 esac
25884 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25885 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25887 ac_cv_func_vfork_works=$ac_cv_func_vfork
25888 if test "x$ac_cv_func_vfork" = xyes; then
25889 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25890 $as_echo_n "checking for working vfork... " >&6; }
25891 if test "${ac_cv_func_vfork_works+set}" = set; then
25892 $as_echo_n "(cached) " >&6
25893 else
25894 if test "$cross_compiling" = yes; then
25895 ac_cv_func_vfork_works=cross
25896 else
25897 cat >conftest.$ac_ext <<_ACEOF
25898 /* confdefs.h. */
25899 _ACEOF
25900 cat confdefs.h >>conftest.$ac_ext
25901 cat >>conftest.$ac_ext <<_ACEOF
25902 /* end confdefs.h. */
25903 /* Thanks to Paul Eggert for this test. */
25904 $ac_includes_default
25905 #include <sys/wait.h>
25906 #ifdef HAVE_VFORK_H
25907 # include <vfork.h>
25908 #endif
25909 /* On some sparc systems, changes by the child to local and incoming
25910 argument registers are propagated back to the parent. The compiler
25911 is told about this with #include <vfork.h>, but some compilers
25912 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25913 static variable whose address is put into a register that is
25914 clobbered by the vfork. */
25915 static void
25916 #ifdef __cplusplus
25917 sparc_address_test (int arg)
25918 # else
25919 sparc_address_test (arg) int arg;
25920 #endif
25922 static pid_t child;
25923 if (!child) {
25924 child = vfork ();
25925 if (child < 0) {
25926 perror ("vfork");
25927 _exit(2);
25929 if (!child) {
25930 arg = getpid();
25931 write(-1, "", 0);
25932 _exit (arg);
25938 main ()
25940 pid_t parent = getpid ();
25941 pid_t child;
25943 sparc_address_test (0);
25945 child = vfork ();
25947 if (child == 0) {
25948 /* Here is another test for sparc vfork register problems. This
25949 test uses lots of local variables, at least as many local
25950 variables as main has allocated so far including compiler
25951 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25952 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25953 reuse the register of parent for one of the local variables,
25954 since it will think that parent can't possibly be used any more
25955 in this routine. Assigning to the local variable will thus
25956 munge parent in the parent process. */
25957 pid_t
25958 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25959 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25960 /* Convince the compiler that p..p7 are live; otherwise, it might
25961 use the same hardware register for all 8 local variables. */
25962 if (p != p1 || p != p2 || p != p3 || p != p4
25963 || p != p5 || p != p6 || p != p7)
25964 _exit(1);
25966 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25967 from child file descriptors. If the child closes a descriptor
25968 before it execs or exits, this munges the parent's descriptor
25969 as well. Test for this by closing stdout in the child. */
25970 _exit(close(fileno(stdout)) != 0);
25971 } else {
25972 int status;
25973 struct stat st;
25975 while (wait(&status) != child)
25977 return (
25978 /* Was there some problem with vforking? */
25979 child < 0
25981 /* Did the child fail? (This shouldn't happen.) */
25982 || status
25984 /* Did the vfork/compiler bug occur? */
25985 || parent != getpid()
25987 /* Did the file descriptor bug occur? */
25988 || fstat(fileno(stdout), &st) != 0
25992 _ACEOF
25993 rm -f conftest$ac_exeext
25994 if { (ac_try="$ac_link"
25995 case "(($ac_try" in
25996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25997 *) ac_try_echo=$ac_try;;
25998 esac
25999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26000 $as_echo "$ac_try_echo") >&5
26001 (eval "$ac_link") 2>&5
26002 ac_status=$?
26003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26005 { (case "(($ac_try" in
26006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26007 *) ac_try_echo=$ac_try;;
26008 esac
26009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26010 $as_echo "$ac_try_echo") >&5
26011 (eval "$ac_try") 2>&5
26012 ac_status=$?
26013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); }; }; then
26015 ac_cv_func_vfork_works=yes
26016 else
26017 $as_echo "$as_me: program exited with status $ac_status" >&5
26018 $as_echo "$as_me: failed program was:" >&5
26019 sed 's/^/| /' conftest.$ac_ext >&5
26021 ( exit $ac_status )
26022 ac_cv_func_vfork_works=no
26024 rm -rf conftest.dSYM
26025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26030 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
26031 $as_echo "$ac_cv_func_vfork_works" >&6; }
26034 if test "x$ac_cv_func_fork_works" = xcross; then
26035 ac_cv_func_vfork_works=$ac_cv_func_vfork
26036 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26037 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26040 if test "x$ac_cv_func_vfork_works" = xyes; then
26042 cat >>confdefs.h <<\_ACEOF
26043 #define HAVE_WORKING_VFORK 1
26044 _ACEOF
26046 else
26048 cat >>confdefs.h <<\_ACEOF
26049 #define vfork fork
26050 _ACEOF
26053 if test "x$ac_cv_func_fork_works" = xyes; then
26055 cat >>confdefs.h <<\_ACEOF
26056 #define HAVE_WORKING_FORK 1
26057 _ACEOF
26062 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
26063 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
26064 if test "${emacs_cv_langinfo_codeset+set}" = set; then
26065 $as_echo_n "(cached) " >&6
26066 else
26067 cat >conftest.$ac_ext <<_ACEOF
26068 /* confdefs.h. */
26069 _ACEOF
26070 cat confdefs.h >>conftest.$ac_ext
26071 cat >>conftest.$ac_ext <<_ACEOF
26072 /* end confdefs.h. */
26073 #include <langinfo.h>
26075 main ()
26077 char* cs = nl_langinfo(CODESET);
26079 return 0;
26081 _ACEOF
26082 rm -f conftest.$ac_objext conftest$ac_exeext
26083 if { (ac_try="$ac_link"
26084 case "(($ac_try" in
26085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26086 *) ac_try_echo=$ac_try;;
26087 esac
26088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26089 $as_echo "$ac_try_echo") >&5
26090 (eval "$ac_link") 2>conftest.er1
26091 ac_status=$?
26092 grep -v '^ *+' conftest.er1 >conftest.err
26093 rm -f conftest.er1
26094 cat conftest.err >&5
26095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096 (exit $ac_status); } && {
26097 test -z "$ac_c_werror_flag" ||
26098 test ! -s conftest.err
26099 } && test -s conftest$ac_exeext && {
26100 test "$cross_compiling" = yes ||
26101 $as_test_x conftest$ac_exeext
26102 }; then
26103 emacs_cv_langinfo_codeset=yes
26104 else
26105 $as_echo "$as_me: failed program was:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26108 emacs_cv_langinfo_codeset=no
26111 rm -rf conftest.dSYM
26112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26113 conftest$ac_exeext conftest.$ac_ext
26116 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
26117 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
26118 if test $emacs_cv_langinfo_codeset = yes; then
26120 cat >>confdefs.h <<\_ACEOF
26121 #define HAVE_LANGINFO_CODESET 1
26122 _ACEOF
26126 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
26127 $as_echo_n "checking for size_t... " >&6; }
26128 if test "${ac_cv_type_size_t+set}" = set; then
26129 $as_echo_n "(cached) " >&6
26130 else
26131 ac_cv_type_size_t=no
26132 cat >conftest.$ac_ext <<_ACEOF
26133 /* confdefs.h. */
26134 _ACEOF
26135 cat confdefs.h >>conftest.$ac_ext
26136 cat >>conftest.$ac_ext <<_ACEOF
26137 /* end confdefs.h. */
26138 $ac_includes_default
26140 main ()
26142 if (sizeof (size_t))
26143 return 0;
26145 return 0;
26147 _ACEOF
26148 rm -f conftest.$ac_objext
26149 if { (ac_try="$ac_compile"
26150 case "(($ac_try" in
26151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26152 *) ac_try_echo=$ac_try;;
26153 esac
26154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26155 $as_echo "$ac_try_echo") >&5
26156 (eval "$ac_compile") 2>conftest.er1
26157 ac_status=$?
26158 grep -v '^ *+' conftest.er1 >conftest.err
26159 rm -f conftest.er1
26160 cat conftest.err >&5
26161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26162 (exit $ac_status); } && {
26163 test -z "$ac_c_werror_flag" ||
26164 test ! -s conftest.err
26165 } && test -s conftest.$ac_objext; then
26166 cat >conftest.$ac_ext <<_ACEOF
26167 /* confdefs.h. */
26168 _ACEOF
26169 cat confdefs.h >>conftest.$ac_ext
26170 cat >>conftest.$ac_ext <<_ACEOF
26171 /* end confdefs.h. */
26172 $ac_includes_default
26174 main ()
26176 if (sizeof ((size_t)))
26177 return 0;
26179 return 0;
26181 _ACEOF
26182 rm -f conftest.$ac_objext
26183 if { (ac_try="$ac_compile"
26184 case "(($ac_try" in
26185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26186 *) ac_try_echo=$ac_try;;
26187 esac
26188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26189 $as_echo "$ac_try_echo") >&5
26190 (eval "$ac_compile") 2>conftest.er1
26191 ac_status=$?
26192 grep -v '^ *+' conftest.er1 >conftest.err
26193 rm -f conftest.er1
26194 cat conftest.err >&5
26195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196 (exit $ac_status); } && {
26197 test -z "$ac_c_werror_flag" ||
26198 test ! -s conftest.err
26199 } && test -s conftest.$ac_objext; then
26201 else
26202 $as_echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26205 ac_cv_type_size_t=yes
26208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26209 else
26210 $as_echo "$as_me: failed program was:" >&5
26211 sed 's/^/| /' conftest.$ac_ext >&5
26216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26218 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26219 $as_echo "$ac_cv_type_size_t" >&6; }
26220 if test "x$ac_cv_type_size_t" = x""yes; then
26222 cat >>confdefs.h <<_ACEOF
26223 #define HAVE_SIZE_T 1
26224 _ACEOF
26230 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
26231 $as_echo_n "checking for mbstate_t... " >&6; }
26232 if test "${ac_cv_type_mbstate_t+set}" = set; then
26233 $as_echo_n "(cached) " >&6
26234 else
26235 cat >conftest.$ac_ext <<_ACEOF
26236 /* confdefs.h. */
26237 _ACEOF
26238 cat confdefs.h >>conftest.$ac_ext
26239 cat >>conftest.$ac_ext <<_ACEOF
26240 /* end confdefs.h. */
26241 $ac_includes_default
26242 # include <wchar.h>
26244 main ()
26246 mbstate_t x; return sizeof x;
26248 return 0;
26250 _ACEOF
26251 rm -f conftest.$ac_objext
26252 if { (ac_try="$ac_compile"
26253 case "(($ac_try" in
26254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26255 *) ac_try_echo=$ac_try;;
26256 esac
26257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26258 $as_echo "$ac_try_echo") >&5
26259 (eval "$ac_compile") 2>conftest.er1
26260 ac_status=$?
26261 grep -v '^ *+' conftest.er1 >conftest.err
26262 rm -f conftest.er1
26263 cat conftest.err >&5
26264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); } && {
26266 test -z "$ac_c_werror_flag" ||
26267 test ! -s conftest.err
26268 } && test -s conftest.$ac_objext; then
26269 ac_cv_type_mbstate_t=yes
26270 else
26271 $as_echo "$as_me: failed program was:" >&5
26272 sed 's/^/| /' conftest.$ac_ext >&5
26274 ac_cv_type_mbstate_t=no
26277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26279 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
26280 $as_echo "$ac_cv_type_mbstate_t" >&6; }
26281 if test $ac_cv_type_mbstate_t = yes; then
26283 cat >>confdefs.h <<\_ACEOF
26284 #define HAVE_MBSTATE_T 1
26285 _ACEOF
26287 else
26289 cat >>confdefs.h <<\_ACEOF
26290 #define mbstate_t int
26291 _ACEOF
26295 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
26296 $as_echo_n "checking for C restrict keyword... " >&6; }
26297 if test "${emacs_cv_c_restrict+set}" = set; then
26298 $as_echo_n "(cached) " >&6
26299 else
26300 cat >conftest.$ac_ext <<_ACEOF
26301 /* confdefs.h. */
26302 _ACEOF
26303 cat confdefs.h >>conftest.$ac_ext
26304 cat >>conftest.$ac_ext <<_ACEOF
26305 /* end confdefs.h. */
26306 void fred (int *restrict x);
26308 main ()
26312 return 0;
26314 _ACEOF
26315 rm -f conftest.$ac_objext
26316 if { (ac_try="$ac_compile"
26317 case "(($ac_try" in
26318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26319 *) ac_try_echo=$ac_try;;
26320 esac
26321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26322 $as_echo "$ac_try_echo") >&5
26323 (eval "$ac_compile") 2>conftest.er1
26324 ac_status=$?
26325 grep -v '^ *+' conftest.er1 >conftest.err
26326 rm -f conftest.er1
26327 cat conftest.err >&5
26328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26329 (exit $ac_status); } && {
26330 test -z "$ac_c_werror_flag" ||
26331 test ! -s conftest.err
26332 } && test -s conftest.$ac_objext; then
26333 emacs_cv_c_restrict=yes
26334 else
26335 $as_echo "$as_me: failed program was:" >&5
26336 sed 's/^/| /' conftest.$ac_ext >&5
26338 cat >conftest.$ac_ext <<_ACEOF
26339 /* confdefs.h. */
26340 _ACEOF
26341 cat confdefs.h >>conftest.$ac_ext
26342 cat >>conftest.$ac_ext <<_ACEOF
26343 /* end confdefs.h. */
26344 void fred (int *__restrict x);
26346 main ()
26350 return 0;
26352 _ACEOF
26353 rm -f conftest.$ac_objext
26354 if { (ac_try="$ac_compile"
26355 case "(($ac_try" in
26356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26357 *) ac_try_echo=$ac_try;;
26358 esac
26359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26360 $as_echo "$ac_try_echo") >&5
26361 (eval "$ac_compile") 2>conftest.er1
26362 ac_status=$?
26363 grep -v '^ *+' conftest.er1 >conftest.err
26364 rm -f conftest.er1
26365 cat conftest.err >&5
26366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26367 (exit $ac_status); } && {
26368 test -z "$ac_c_werror_flag" ||
26369 test ! -s conftest.err
26370 } && test -s conftest.$ac_objext; then
26371 emacs_cv_c_restrict=__restrict
26372 else
26373 $as_echo "$as_me: failed program was:" >&5
26374 sed 's/^/| /' conftest.$ac_ext >&5
26376 emacs_cv_c_restrict=no
26379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26384 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
26385 $as_echo "$emacs_cv_c_restrict" >&6; }
26386 case "$emacs_cv_c_restrict" in
26387 yes) emacs_restrict=restrict;;
26388 no) emacs_restrict="";;
26389 *) emacs_restrict="$emacs_cv_c_restrict";;
26390 esac
26391 if test "$emacs_restrict" != __restrict; then
26393 cat >>confdefs.h <<_ACEOF
26394 #define __restrict $emacs_restrict
26395 _ACEOF
26399 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
26400 $as_echo_n "checking for C restricted array declarations... " >&6; }
26401 if test "${emacs_cv_c_restrict_arr+set}" = set; then
26402 $as_echo_n "(cached) " >&6
26403 else
26404 cat >conftest.$ac_ext <<_ACEOF
26405 /* confdefs.h. */
26406 _ACEOF
26407 cat confdefs.h >>conftest.$ac_ext
26408 cat >>conftest.$ac_ext <<_ACEOF
26409 /* end confdefs.h. */
26410 void fred (int x[__restrict]);
26412 main ()
26416 return 0;
26418 _ACEOF
26419 rm -f conftest.$ac_objext
26420 if { (ac_try="$ac_compile"
26421 case "(($ac_try" in
26422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423 *) ac_try_echo=$ac_try;;
26424 esac
26425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26426 $as_echo "$ac_try_echo") >&5
26427 (eval "$ac_compile") 2>conftest.er1
26428 ac_status=$?
26429 grep -v '^ *+' conftest.er1 >conftest.err
26430 rm -f conftest.er1
26431 cat conftest.err >&5
26432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433 (exit $ac_status); } && {
26434 test -z "$ac_c_werror_flag" ||
26435 test ! -s conftest.err
26436 } && test -s conftest.$ac_objext; then
26437 emacs_cv_c_restrict_arr=yes
26438 else
26439 $as_echo "$as_me: failed program was:" >&5
26440 sed 's/^/| /' conftest.$ac_ext >&5
26442 emacs_cv_c_restrict_arr=no
26445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26447 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
26448 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
26449 if test "$emacs_cv_c_restrict_arr" = yes; then
26451 cat >>confdefs.h <<\_ACEOF
26452 #define __restrict_arr __restrict
26453 _ACEOF
26459 # Set up the CFLAGS for real compilation, so we can substitute it.
26460 CFLAGS="$REAL_CFLAGS"
26461 CPPFLAGS="$REAL_CPPFLAGS"
26463 ## Hack to detect a buggy GCC version.
26464 if test "x$GCC" = xyes \
26465 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
26466 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
26467 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
26468 { { $as_echo "$as_me:$LINENO: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&5
26469 $as_echo "$as_me: error: GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." >&2;}
26470 { (exit 1); exit 1; }; }
26473 #### Find out which version of Emacs this is.
26474 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
26475 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
26476 if test x"${version}" = x; then
26477 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
26478 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
26479 { (exit 1); exit 1; }; }
26481 if test x"${version}" != x"$PACKAGE_VERSION"; then
26482 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
26483 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
26486 ### Specify what sort of things we'll be editing into Makefile and config.h.
26487 ### Use configuration here uncanonicalized to avoid exceeding size limits.
26515 ## Used in lwlib/Makefile.in.
26531 cat >>confdefs.h <<_ACEOF
26532 #define EMACS_CONFIGURATION "${canonical}"
26533 _ACEOF
26536 cat >>confdefs.h <<_ACEOF
26537 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26538 _ACEOF
26541 cat >>confdefs.h <<_ACEOF
26542 #define config_machfile "${machfile}"
26543 _ACEOF
26546 cat >>confdefs.h <<_ACEOF
26547 #define config_opsysfile "${opsysfile}"
26548 _ACEOF
26551 cat >>confdefs.h <<_ACEOF
26552 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26553 _ACEOF
26556 cat >>confdefs.h <<_ACEOF
26557 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26558 _ACEOF
26561 XMENU_OBJ=
26562 XOBJ=
26563 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26565 cat >>confdefs.h <<\_ACEOF
26566 #define HAVE_X_WINDOWS 1
26567 _ACEOF
26569 XMENU_OBJ=xmenu.o
26570 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26575 WIDGET_OBJ=
26576 MOTIF_LIBW=
26577 if test "${USE_X_TOOLKIT}" != "none" ; then
26578 WIDGET_OBJ=widget.o
26580 cat >>confdefs.h <<\_ACEOF
26581 #define USE_X_TOOLKIT 1
26582 _ACEOF
26584 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26586 cat >>confdefs.h <<\_ACEOF
26587 #define USE_LUCID 1
26588 _ACEOF
26590 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26592 cat >>confdefs.h <<\_ACEOF
26593 #define USE_MOTIF 1
26594 _ACEOF
26596 MOTIF_LIBW=-lXm
26597 case "$opsys" in
26598 gnu-linux)
26599 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26600 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26603 unixware)
26604 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26605 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26606 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26609 aix4-2)
26610 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26611 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26613 esac
26614 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26619 TOOLKIT_LIBW=
26620 case "$USE_X_TOOLKIT" in
26621 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26622 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26623 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26624 esac
26627 if test "$USE_X_TOOLKIT" = "none"; then
26628 LIBXT_OTHER="\$(LIBXSM)"
26629 else
26630 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26634 ## The X Menu stuff is present in the X10 distribution, but missing
26635 ## from X11. If we have X10, just use the installed library;
26636 ## otherwise, use our own copy.
26637 if test "${HAVE_X11}" = "yes" ; then
26639 cat >>confdefs.h <<\_ACEOF
26640 #define HAVE_X11 1
26641 _ACEOF
26644 if test "$USE_X_TOOLKIT" = "none"; then
26645 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26646 else
26647 OLDXMENU="\${lwlibdir}liblw.a"
26649 LIBXMENU="\$(OLDXMENU)"
26650 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26651 else
26652 OLDXMENU=
26653 LIBXMENU="-lXMenu"
26654 LIBX_OTHER=
26657 if test "$HAVE_GTK" = "yes"; then
26658 OLDXMENU=
26659 LIBXMENU=
26666 if test "${HAVE_MENUS}" = "yes" ; then
26668 cat >>confdefs.h <<\_ACEOF
26669 #define HAVE_MENUS 1
26670 _ACEOF
26673 if test "${GNU_MALLOC}" = "yes" ; then
26675 cat >>confdefs.h <<\_ACEOF
26676 #define GNU_MALLOC 1
26677 _ACEOF
26680 if test "${REL_ALLOC}" = "yes" ; then
26682 cat >>confdefs.h <<\_ACEOF
26683 #define REL_ALLOC 1
26684 _ACEOF
26689 if test "$opsys" = "cygwin"; then
26690 CYGWIN_OBJ="sheap.o"
26691 ## Cygwin differs because of its unexec().
26692 PRE_ALLOC_OBJ=
26693 POST_ALLOC_OBJ="lastfile.o vm-limit.o"
26694 else
26695 CYGWIN_OBJ=
26696 PRE_ALLOC_OBJ=lastfile.o
26697 POST_ALLOC_OBJ="\$(vmlimitobj)"
26704 case "$opsys" in
26705 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
26707 darwin)
26708 ## The -headerpad option tells ld (see man page) to leave room at the
26709 ## end of the header for adding load commands. Needed for dumping.
26710 ## 0x690 is the total size of 30 segment load commands (at 56
26711 ## each); under Cocoa 31 commands are required.
26712 if test "$HAVE_NS" = "yes"; then
26713 libs_nsgui="-framework AppKit"
26714 headerpad_extra=6C8
26715 else
26716 libs_nsgui=
26717 headerpad_extra=690
26719 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
26722 *) LD_SWITCH_SYSTEM_TEMACS= ;;
26723 esac
26727 ## This exists because src/Makefile.in did some extra fiddling around
26728 ## with LD_SWITCH_SYSTEM. The cpp logic was:
26729 ## #ifndef LD_SWITCH_SYSTEM
26730 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26731 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26732 ## not using gcc, darwin system not on an alpha (ie darwin, since
26733 ## darwin + alpha does not occur).
26734 ## Note that unlike L_S_S, this is not used in ac_link.
26735 if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26736 test "$opsys" = "darwin"; then
26737 LD_SWITCH_SYSTEM_EXTRA="-X"
26738 else
26739 LD_SWITCH_SYSTEM_EXTRA=
26744 LIB_GCC=
26745 if test "x$GCC" = "xyes"; then
26747 case "$opsys" in
26748 ## cygwin: don't link against static libgcc.
26749 cygwin|freebsd|netbsd|openbsd) LIB_GCC= ;;
26751 gnu-*)
26752 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
26753 ## build on ARM EABI under GNU/Linux. (Bug#5518)
26754 ## Note that m/arm.h never bothered to undefine LIB_GCC first.
26755 if test "$machine" = "arm"; then
26756 LIB_GCC="-lgcc_s"
26757 else
26758 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
26759 ## immediately undefine it again and redefine it to empty.
26760 ## Was the C_SWITCH_X_SITE part really necessary?
26761 ## LIB_GCC=`$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name`
26762 LIB_GCC=
26766 ## Ask GCC where to find libgcc.a.
26767 *) LIB_GCC=`$(CC) -print-libgcc-file-name 2> /dev/null` ;;
26768 esac
26776 #### Report on what we decided to do.
26777 #### Report GTK as a toolkit, even if it doesn't use Xt.
26778 #### It makes printing result more understandable as using GTK sets
26779 #### toolkit_scroll_bars to yes by default.
26780 if test "${HAVE_GTK}" = "yes"; then
26781 USE_X_TOOLKIT=GTK
26784 echo "
26785 Configured for \`${canonical}'.
26787 Where should the build process find the source code? ${srcdir}
26788 What operating system and machine description files should Emacs use?
26789 \`${opsysfile}' and \`${machfile}'
26790 What compiler should emacs be built with? ${CC} ${CFLAGS}
26791 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26792 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26793 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26794 What window system should Emacs use? ${window_system}
26795 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26797 if test -n "${x_includes}"; then
26798 echo " Where do we find X Windows header files? ${x_includes}"
26799 else
26800 echo " Where do we find X Windows header files? Standard dirs"
26802 if test -n "${x_libraries}"; then
26803 echo " Where do we find X Windows libraries? ${x_libraries}"
26804 else
26805 echo " Where do we find X Windows libraries? Standard dirs"
26808 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26809 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26810 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26811 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26812 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26813 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26814 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26815 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
26816 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26817 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26818 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26819 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26821 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26822 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26823 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26824 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26826 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26827 echo
26829 if test $USE_XASSERTS = yes; then
26830 echo " Compiling with asserts turned on."
26831 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26834 echo
26836 if test "$HAVE_NS" = "yes"; then
26837 echo
26838 echo "You must run \"make install\" in order to test the built application.
26839 The installed application will go to nextstep/Emacs.app and can be
26840 run or moved from there."
26841 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26842 echo "The application will be fully self-contained."
26843 else
26844 echo "The lisp resources for the application will be installed under ${prefix}.
26845 You may need to run \"make install\" with sudo. The application will fail
26846 to run if these resources are not installed."
26848 echo
26851 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26852 echo "D-Bus integration has been tested for GNU/Linux only."
26853 echo
26857 # Remove any trailing slashes in these variables.
26858 test "${prefix}" != NONE &&
26859 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26860 test "${exec_prefix}" != NONE &&
26861 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26863 # Now get this: Some word that is part of the ${srcdir} directory name
26864 # or the ${configuration} value might, just might, happen to be an
26865 # identifier like `sun4' or `i386' or something, and be predefined by
26866 # the C preprocessor to some helpful value like 1, or maybe the empty
26867 # string. Needless to say consequent macro substitutions are less
26868 # than conducive to the makefile finding the correct directory.
26869 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26870 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26871 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26873 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26874 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26875 ## from Makefile.c can correctly provide the arg `-traditional' to the
26876 ## C preprocessor.
26878 cat >conftest.$ac_ext <<_ACEOF
26879 /* confdefs.h. */
26880 _ACEOF
26881 cat confdefs.h >>conftest.$ac_ext
26882 cat >>conftest.$ac_ext <<_ACEOF
26883 /* end confdefs.h. */
26884 yes..yes
26885 _ACEOF
26886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26887 $EGREP "yes..yes" >/dev/null 2>&1; then
26888 CPP_NEED_TRADITIONAL=no
26889 else
26890 CPP_NEED_TRADITIONAL=yes
26892 rm -f conftest*
26895 ac_config_files="$ac_config_files Makefile lib-src/Makefile 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"
26897 ac_config_commands="$ac_config_commands default"
26899 cat >confcache <<\_ACEOF
26900 # This file is a shell script that caches the results of configure
26901 # tests run on this system so they can be shared between configure
26902 # scripts and configure runs, see configure's option --config-cache.
26903 # It is not useful on other systems. If it contains results you don't
26904 # want to keep, you may remove or edit it.
26906 # config.status only pays attention to the cache file if you give it
26907 # the --recheck option to rerun configure.
26909 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26910 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26911 # following values.
26913 _ACEOF
26915 # The following way of writing the cache mishandles newlines in values,
26916 # but we know of no workaround that is simple, portable, and efficient.
26917 # So, we kill variables containing newlines.
26918 # Ultrix sh set writes to stderr and can't be redirected directly,
26919 # and sets the high bit in the cache file unless we assign to the vars.
26921 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26922 eval ac_val=\$$ac_var
26923 case $ac_val in #(
26924 *${as_nl}*)
26925 case $ac_var in #(
26926 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
26927 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26928 esac
26929 case $ac_var in #(
26930 _ | IFS | as_nl) ;; #(
26931 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26932 *) $as_unset $ac_var ;;
26933 esac ;;
26934 esac
26935 done
26937 (set) 2>&1 |
26938 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26939 *${as_nl}ac_space=\ *)
26940 # `set' does not quote correctly, so add quotes (double-quote
26941 # substitution turns \\\\ into \\, and sed turns \\ into \).
26942 sed -n \
26943 "s/'/'\\\\''/g;
26944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26945 ;; #(
26947 # `set' quotes correctly as required by POSIX, so do not add quotes.
26948 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26950 esac |
26951 sort
26953 sed '
26954 /^ac_cv_env_/b end
26955 t clear
26956 :clear
26957 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26958 t end
26959 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26960 :end' >>confcache
26961 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26962 if test -w "$cache_file"; then
26963 test "x$cache_file" != "x/dev/null" &&
26964 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26965 $as_echo "$as_me: updating cache $cache_file" >&6;}
26966 cat confcache >$cache_file
26967 else
26968 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26969 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26972 rm -f confcache
26974 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26975 # Let make expand exec_prefix.
26976 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26978 DEFS=-DHAVE_CONFIG_H
26980 ac_libobjs=
26981 ac_ltlibobjs=
26982 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26983 # 1. Remove the extension, and $U if already installed.
26984 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26985 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26986 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26987 # will be set to the directory where LIBOBJS objects are built.
26988 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26989 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26990 done
26991 LIBOBJS=$ac_libobjs
26993 LTLIBOBJS=$ac_ltlibobjs
26997 : ${CONFIG_STATUS=./config.status}
26998 ac_write_fail=0
26999 ac_clean_files_save=$ac_clean_files
27000 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27001 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27002 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
27003 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27004 #! $SHELL
27005 # Generated by $as_me.
27006 # Run this file to recreate the current configuration.
27007 # Compiler output produced by configure, useful for debugging
27008 # configure, is in config.log if it exists.
27010 debug=false
27011 ac_cs_recheck=false
27012 ac_cs_silent=false
27013 SHELL=\${CONFIG_SHELL-$SHELL}
27014 _ACEOF
27016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27017 ## --------------------- ##
27018 ## M4sh Initialization. ##
27019 ## --------------------- ##
27021 # Be more Bourne compatible
27022 DUALCASE=1; export DUALCASE # for MKS sh
27023 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27024 emulate sh
27025 NULLCMD=:
27026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27027 # is contrary to our usage. Disable this feature.
27028 alias -g '${1+"$@"}'='"$@"'
27029 setopt NO_GLOB_SUBST
27030 else
27031 case `(set -o) 2>/dev/null` in
27032 *posix*) set -o posix ;;
27033 esac
27040 # PATH needs CR
27041 # Avoid depending upon Character Ranges.
27042 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27043 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27044 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27045 as_cr_digits='0123456789'
27046 as_cr_alnum=$as_cr_Letters$as_cr_digits
27048 as_nl='
27050 export as_nl
27051 # Printing a long string crashes Solaris 7 /usr/bin/printf.
27052 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
27053 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
27054 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
27055 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
27056 as_echo='printf %s\n'
27057 as_echo_n='printf %s'
27058 else
27059 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
27060 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
27061 as_echo_n='/usr/ucb/echo -n'
27062 else
27063 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
27064 as_echo_n_body='eval
27065 arg=$1;
27066 case $arg in
27067 *"$as_nl"*)
27068 expr "X$arg" : "X\\(.*\\)$as_nl";
27069 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
27070 esac;
27071 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
27073 export as_echo_n_body
27074 as_echo_n='sh -c $as_echo_n_body as_echo'
27076 export as_echo_body
27077 as_echo='sh -c $as_echo_body as_echo'
27080 # The user is always right.
27081 if test "${PATH_SEPARATOR+set}" != set; then
27082 PATH_SEPARATOR=:
27083 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
27084 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
27085 PATH_SEPARATOR=';'
27089 # Support unset when possible.
27090 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27091 as_unset=unset
27092 else
27093 as_unset=false
27097 # IFS
27098 # We need space, tab and new line, in precisely that order. Quoting is
27099 # there to prevent editors from complaining about space-tab.
27100 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
27101 # splitting by setting IFS to empty value.)
27102 IFS=" "" $as_nl"
27104 # Find who we are. Look in the path if we contain no directory separator.
27105 case $0 in
27106 *[\\/]* ) as_myself=$0 ;;
27107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27108 for as_dir in $PATH
27110 IFS=$as_save_IFS
27111 test -z "$as_dir" && as_dir=.
27112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27113 done
27114 IFS=$as_save_IFS
27117 esac
27118 # We did not find ourselves, most probably we were run as `sh COMMAND'
27119 # in which case we are not to be found in the path.
27120 if test "x$as_myself" = x; then
27121 as_myself=$0
27123 if test ! -f "$as_myself"; then
27124 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
27125 { (exit 1); exit 1; }
27128 # Work around bugs in pre-3.0 UWIN ksh.
27129 for as_var in ENV MAIL MAILPATH
27130 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
27131 done
27132 PS1='$ '
27133 PS2='> '
27134 PS4='+ '
27136 # NLS nuisances.
27137 LC_ALL=C
27138 export LC_ALL
27139 LANGUAGE=C
27140 export LANGUAGE
27142 # Required to use basename.
27143 if expr a : '\(a\)' >/dev/null 2>&1 &&
27144 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27145 as_expr=expr
27146 else
27147 as_expr=false
27150 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27151 as_basename=basename
27152 else
27153 as_basename=false
27157 # Name of the executable.
27158 as_me=`$as_basename -- "$0" ||
27159 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27160 X"$0" : 'X\(//\)$' \| \
27161 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27162 $as_echo X/"$0" |
27163 sed '/^.*\/\([^/][^/]*\)\/*$/{
27164 s//\1/
27167 /^X\/\(\/\/\)$/{
27168 s//\1/
27171 /^X\/\(\/\).*/{
27172 s//\1/
27175 s/.*/./; q'`
27177 # CDPATH.
27178 $as_unset CDPATH
27182 as_lineno_1=$LINENO
27183 as_lineno_2=$LINENO
27184 test "x$as_lineno_1" != "x$as_lineno_2" &&
27185 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
27187 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27188 # uniformly replaced by the line number. The first 'sed' inserts a
27189 # line-number line after each line using $LINENO; the second 'sed'
27190 # does the real work. The second script uses 'N' to pair each
27191 # line-number line with the line containing $LINENO, and appends
27192 # trailing '-' during substitution so that $LINENO is not a special
27193 # case at line end.
27194 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27195 # scripts with optimization help from Paolo Bonzini. Blame Lee
27196 # E. McMahon (1931-1989) for sed's syntax. :-)
27197 sed -n '
27199 /[$]LINENO/=
27200 ' <$as_myself |
27201 sed '
27202 s/[$]LINENO.*/&-/
27203 t lineno
27205 :lineno
27207 :loop
27208 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
27209 t loop
27210 s/-\n.*//
27211 ' >$as_me.lineno &&
27212 chmod +x "$as_me.lineno" ||
27213 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
27214 { (exit 1); exit 1; }; }
27216 # Don't try to exec as it changes $[0], causing all sort of problems
27217 # (the dirname of $[0] is not the place where we might find the
27218 # original and so on. Autoconf is especially sensitive to this).
27219 . "./$as_me.lineno"
27220 # Exit status is that of the last command.
27221 exit
27225 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27226 as_dirname=dirname
27227 else
27228 as_dirname=false
27231 ECHO_C= ECHO_N= ECHO_T=
27232 case `echo -n x` in
27233 -n*)
27234 case `echo 'x\c'` in
27235 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27236 *) ECHO_C='\c';;
27237 esac;;
27239 ECHO_N='-n';;
27240 esac
27241 if expr a : '\(a\)' >/dev/null 2>&1 &&
27242 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27243 as_expr=expr
27244 else
27245 as_expr=false
27248 rm -f conf$$ conf$$.exe conf$$.file
27249 if test -d conf$$.dir; then
27250 rm -f conf$$.dir/conf$$.file
27251 else
27252 rm -f conf$$.dir
27253 mkdir conf$$.dir 2>/dev/null
27255 if (echo >conf$$.file) 2>/dev/null; then
27256 if ln -s conf$$.file conf$$ 2>/dev/null; then
27257 as_ln_s='ln -s'
27258 # ... but there are two gotchas:
27259 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27260 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27261 # In both cases, we have to default to `cp -p'.
27262 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27263 as_ln_s='cp -p'
27264 elif ln conf$$.file conf$$ 2>/dev/null; then
27265 as_ln_s=ln
27266 else
27267 as_ln_s='cp -p'
27269 else
27270 as_ln_s='cp -p'
27272 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27273 rmdir conf$$.dir 2>/dev/null
27275 if mkdir -p . 2>/dev/null; then
27276 as_mkdir_p=:
27277 else
27278 test -d ./-p && rmdir ./-p
27279 as_mkdir_p=false
27282 if test -x / >/dev/null 2>&1; then
27283 as_test_x='test -x'
27284 else
27285 if ls -dL / >/dev/null 2>&1; then
27286 as_ls_L_option=L
27287 else
27288 as_ls_L_option=
27290 as_test_x='
27291 eval sh -c '\''
27292 if test -d "$1"; then
27293 test -d "$1/.";
27294 else
27295 case $1 in
27296 -*)set "./$1";;
27297 esac;
27298 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
27299 ???[sx]*):;;*)false;;esac;fi
27300 '\'' sh
27303 as_executable_p=$as_test_x
27305 # Sed expression to map a string onto a valid CPP name.
27306 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27308 # Sed expression to map a string onto a valid variable name.
27309 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27312 exec 6>&1
27314 # Save the log message, to keep $[0] and so on meaningful, and to
27315 # report actual input values of CONFIG_FILES etc. instead of their
27316 # values after options handling.
27317 ac_log="
27318 This file was extended by emacs $as_me 24.0.50, which was
27319 generated by GNU Autoconf 2.63. Invocation command line was
27321 CONFIG_FILES = $CONFIG_FILES
27322 CONFIG_HEADERS = $CONFIG_HEADERS
27323 CONFIG_LINKS = $CONFIG_LINKS
27324 CONFIG_COMMANDS = $CONFIG_COMMANDS
27325 $ $0 $@
27327 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27330 _ACEOF
27332 case $ac_config_files in *"
27333 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27334 esac
27336 case $ac_config_headers in *"
27337 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27338 esac
27341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27342 # Files that config.status was made for.
27343 config_files="$ac_config_files"
27344 config_headers="$ac_config_headers"
27345 config_commands="$ac_config_commands"
27347 _ACEOF
27349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27350 ac_cs_usage="\
27351 \`$as_me' instantiates files from templates according to the
27352 current configuration.
27354 Usage: $0 [OPTION]... [FILE]...
27356 -h, --help print this help, then exit
27357 -V, --version print version number and configuration settings, then exit
27358 -q, --quiet, --silent
27359 do not print progress messages
27360 -d, --debug don't remove temporary files
27361 --recheck update $as_me by reconfiguring in the same conditions
27362 --file=FILE[:TEMPLATE]
27363 instantiate the configuration file FILE
27364 --header=FILE[:TEMPLATE]
27365 instantiate the configuration header FILE
27367 Configuration files:
27368 $config_files
27370 Configuration headers:
27371 $config_headers
27373 Configuration commands:
27374 $config_commands
27376 Report bugs to <bug-autoconf@gnu.org>."
27378 _ACEOF
27379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27380 ac_cs_version="\\
27381 emacs config.status 24.0.50
27382 configured by $0, generated by GNU Autoconf 2.63,
27383 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27385 Copyright (C) 2008 Free Software Foundation, Inc.
27386 This config.status script is free software; the Free Software Foundation
27387 gives unlimited permission to copy, distribute and modify it."
27389 ac_pwd='$ac_pwd'
27390 srcdir='$srcdir'
27391 INSTALL='$INSTALL'
27392 test -n "\$AWK" || AWK=awk
27393 _ACEOF
27395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27396 # The default lists apply if the user does not specify any file.
27397 ac_need_defaults=:
27398 while test $# != 0
27400 case $1 in
27401 --*=*)
27402 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27403 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27404 ac_shift=:
27407 ac_option=$1
27408 ac_optarg=$2
27409 ac_shift=shift
27411 esac
27413 case $ac_option in
27414 # Handling of the options.
27415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27416 ac_cs_recheck=: ;;
27417 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27418 $as_echo "$ac_cs_version"; exit ;;
27419 --debug | --debu | --deb | --de | --d | -d )
27420 debug=: ;;
27421 --file | --fil | --fi | --f )
27422 $ac_shift
27423 case $ac_optarg in
27424 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27425 esac
27426 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
27427 ac_need_defaults=false;;
27428 --header | --heade | --head | --hea )
27429 $ac_shift
27430 case $ac_optarg in
27431 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27432 esac
27433 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
27434 ac_need_defaults=false;;
27435 --he | --h)
27436 # Conflict between --help and --header
27437 { $as_echo "$as_me: error: ambiguous option: $1
27438 Try \`$0 --help' for more information." >&2
27439 { (exit 1); exit 1; }; };;
27440 --help | --hel | -h )
27441 $as_echo "$ac_cs_usage"; exit ;;
27442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27443 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27444 ac_cs_silent=: ;;
27446 # This is an error.
27447 -*) { $as_echo "$as_me: error: unrecognized option: $1
27448 Try \`$0 --help' for more information." >&2
27449 { (exit 1); exit 1; }; } ;;
27451 *) ac_config_targets="$ac_config_targets $1"
27452 ac_need_defaults=false ;;
27454 esac
27455 shift
27456 done
27458 ac_configure_extra_args=
27460 if $ac_cs_silent; then
27461 exec 6>/dev/null
27462 ac_configure_extra_args="$ac_configure_extra_args --silent"
27465 _ACEOF
27466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27467 if \$ac_cs_recheck; then
27468 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27469 shift
27470 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27471 CONFIG_SHELL='$SHELL'
27472 export CONFIG_SHELL
27473 exec "\$@"
27476 _ACEOF
27477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27478 exec 5>>config.log
27480 echo
27481 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27482 ## Running $as_me. ##
27483 _ASBOX
27484 $as_echo "$ac_log"
27485 } >&5
27487 _ACEOF
27488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27490 # INIT-COMMANDS
27492 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
27494 _ACEOF
27496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27498 # Handling of arguments.
27499 for ac_config_target in $ac_config_targets
27501 case $ac_config_target in
27502 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
27503 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27504 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
27505 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
27506 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
27507 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
27508 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
27509 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
27510 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
27511 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
27512 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
27513 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
27514 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
27516 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27517 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27518 { (exit 1); exit 1; }; };;
27519 esac
27520 done
27523 # If the user did not use the arguments to specify the items to instantiate,
27524 # then the envvar interface is used. Set only those that are not.
27525 # We use the long form for the default assignment because of an extremely
27526 # bizarre bug on SunOS 4.1.3.
27527 if $ac_need_defaults; then
27528 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27529 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27530 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27533 # Have a temporary directory for convenience. Make it in the build tree
27534 # simply because there is no reason against having it here, and in addition,
27535 # creating and moving files from /tmp can sometimes cause problems.
27536 # Hook for its removal unless debugging.
27537 # Note that there is a small window in which the directory will not be cleaned:
27538 # after its creation but before its name has been assigned to `$tmp'.
27539 $debug ||
27541 tmp=
27542 trap 'exit_status=$?
27543 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27545 trap '{ (exit 1); exit 1; }' 1 2 13 15
27547 # Create a (secure) tmp directory for tmp files.
27550 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27551 test -n "$tmp" && test -d "$tmp"
27552 } ||
27554 tmp=./conf$$-$RANDOM
27555 (umask 077 && mkdir "$tmp")
27556 } ||
27558 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27559 { (exit 1); exit 1; }
27562 # Set up the scripts for CONFIG_FILES section.
27563 # No need to generate them if there are no CONFIG_FILES.
27564 # This happens for instance with `./config.status config.h'.
27565 if test -n "$CONFIG_FILES"; then
27568 ac_cr=' '
27569 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27570 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27571 ac_cs_awk_cr='\\r'
27572 else
27573 ac_cs_awk_cr=$ac_cr
27576 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27577 _ACEOF
27581 echo "cat >conf$$subs.awk <<_ACEOF" &&
27582 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27583 echo "_ACEOF"
27584 } >conf$$subs.sh ||
27585 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27586 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27587 { (exit 1); exit 1; }; }
27588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27589 ac_delim='%!_!# '
27590 for ac_last_try in false false false false false :; do
27591 . ./conf$$subs.sh ||
27592 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27593 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27594 { (exit 1); exit 1; }; }
27596 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27597 if test $ac_delim_n = $ac_delim_num; then
27598 break
27599 elif $ac_last_try; then
27600 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27601 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27602 { (exit 1); exit 1; }; }
27603 else
27604 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27606 done
27607 rm -f conf$$subs.sh
27609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27610 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27611 _ACEOF
27612 sed -n '
27614 s/^/S["/; s/!.*/"]=/
27617 s/^[^!]*!//
27618 :repl
27619 t repl
27620 s/'"$ac_delim"'$//
27621 t delim
27624 s/\(.\{148\}\).*/\1/
27625 t more1
27626 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27629 b repl
27630 :more1
27631 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27634 s/.\{148\}//
27635 t nl
27636 :delim
27638 s/\(.\{148\}\).*/\1/
27639 t more2
27640 s/["\\]/\\&/g; s/^/"/; s/$/"/
27643 :more2
27644 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27647 s/.\{148\}//
27648 t delim
27649 ' <conf$$subs.awk | sed '
27650 /^[^""]/{
27652 s/\n//
27654 ' >>$CONFIG_STATUS || ac_write_fail=1
27655 rm -f conf$$subs.awk
27656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27657 _ACAWK
27658 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27659 for (key in S) S_is_set[key] = 1
27660 FS = "\a"
27664 line = $ 0
27665 nfields = split(line, field, "@")
27666 substed = 0
27667 len = length(field[1])
27668 for (i = 2; i < nfields; i++) {
27669 key = field[i]
27670 keylen = length(key)
27671 if (S_is_set[key]) {
27672 value = S[key]
27673 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27674 len += length(value) + length(field[++i])
27675 substed = 1
27676 } else
27677 len += 1 + keylen
27680 print line
27683 _ACAWK
27684 _ACEOF
27685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27686 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27687 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27688 else
27690 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27691 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27692 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27693 { (exit 1); exit 1; }; }
27694 _ACEOF
27696 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27697 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27698 # trailing colons and then remove the whole line if VPATH becomes empty
27699 # (actually we leave an empty line to preserve line numbers).
27700 if test "x$srcdir" = x.; then
27701 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27702 s/:*\$(srcdir):*/:/
27703 s/:*\${srcdir}:*/:/
27704 s/:*@srcdir@:*/:/
27705 s/^\([^=]*=[ ]*\):*/\1/
27706 s/:*$//
27707 s/^[^=]*=[ ]*$//
27711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27712 fi # test -n "$CONFIG_FILES"
27714 # Set up the scripts for CONFIG_HEADERS section.
27715 # No need to generate them if there are no CONFIG_HEADERS.
27716 # This happens for instance with `./config.status Makefile'.
27717 if test -n "$CONFIG_HEADERS"; then
27718 cat >"$tmp/defines.awk" <<\_ACAWK ||
27719 BEGIN {
27720 _ACEOF
27722 # Transform confdefs.h into an awk script `defines.awk', embedded as
27723 # here-document in config.status, that substitutes the proper values into
27724 # config.h.in to produce config.h.
27726 # Create a delimiter string that does not exist in confdefs.h, to ease
27727 # handling of long lines.
27728 ac_delim='%!_!# '
27729 for ac_last_try in false false :; do
27730 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27731 if test -z "$ac_t"; then
27732 break
27733 elif $ac_last_try; then
27734 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27735 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27736 { (exit 1); exit 1; }; }
27737 else
27738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27740 done
27742 # For the awk script, D is an array of macro values keyed by name,
27743 # likewise P contains macro parameters if any. Preserve backslash
27744 # newline sequences.
27746 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27747 sed -n '
27748 s/.\{148\}/&'"$ac_delim"'/g
27749 t rset
27750 :rset
27751 s/^[ ]*#[ ]*define[ ][ ]*/ /
27752 t def
27754 :def
27755 s/\\$//
27756 t bsnl
27757 s/["\\]/\\&/g
27758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27759 D["\1"]=" \3"/p
27760 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27762 :bsnl
27763 s/["\\]/\\&/g
27764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27765 D["\1"]=" \3\\\\\\n"\\/p
27766 t cont
27767 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27768 t cont
27770 :cont
27772 s/.\{148\}/&'"$ac_delim"'/g
27773 t clear
27774 :clear
27775 s/\\$//
27776 t bsnlc
27777 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27779 :bsnlc
27780 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27781 b cont
27782 ' <confdefs.h | sed '
27783 s/'"$ac_delim"'/"\\\
27784 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27787 for (key in D) D_is_set[key] = 1
27788 FS = "\a"
27790 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27791 line = \$ 0
27792 split(line, arg, " ")
27793 if (arg[1] == "#") {
27794 defundef = arg[2]
27795 mac1 = arg[3]
27796 } else {
27797 defundef = substr(arg[1], 2)
27798 mac1 = arg[2]
27800 split(mac1, mac2, "(") #)
27801 macro = mac2[1]
27802 prefix = substr(line, 1, index(line, defundef) - 1)
27803 if (D_is_set[macro]) {
27804 # Preserve the white space surrounding the "#".
27805 print prefix "define", macro P[macro] D[macro]
27806 next
27807 } else {
27808 # Replace #undef with comments. This is necessary, for example,
27809 # in the case of _POSIX_SOURCE, which is predefined and required
27810 # on some systems where configure will not decide to define it.
27811 if (defundef == "undef") {
27812 print "/*", prefix defundef, macro, "*/"
27813 next
27817 { print }
27818 _ACAWK
27819 _ACEOF
27820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27821 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27822 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27823 { (exit 1); exit 1; }; }
27824 fi # test -n "$CONFIG_HEADERS"
27827 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27828 shift
27829 for ac_tag
27831 case $ac_tag in
27832 :[FHLC]) ac_mode=$ac_tag; continue;;
27833 esac
27834 case $ac_mode$ac_tag in
27835 :[FHL]*:*);;
27836 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
27837 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
27838 { (exit 1); exit 1; }; };;
27839 :[FH]-) ac_tag=-:-;;
27840 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27841 esac
27842 ac_save_IFS=$IFS
27843 IFS=:
27844 set x $ac_tag
27845 IFS=$ac_save_IFS
27846 shift
27847 ac_file=$1
27848 shift
27850 case $ac_mode in
27851 :L) ac_source=$1;;
27852 :[FH])
27853 ac_file_inputs=
27854 for ac_f
27856 case $ac_f in
27857 -) ac_f="$tmp/stdin";;
27858 *) # Look for the file first in the build tree, then in the source tree
27859 # (if the path is not absolute). The absolute path cannot be DOS-style,
27860 # because $ac_f cannot contain `:'.
27861 test -f "$ac_f" ||
27862 case $ac_f in
27863 [\\/$]*) false;;
27864 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27865 esac ||
27866 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27867 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27868 { (exit 1); exit 1; }; };;
27869 esac
27870 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27871 ac_file_inputs="$ac_file_inputs '$ac_f'"
27872 done
27874 # Let's still pretend it is `configure' which instantiates (i.e., don't
27875 # use $as_me), people would be surprised to read:
27876 # /* config.h. Generated by config.status. */
27877 configure_input='Generated from '`
27878 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27879 `' by configure.'
27880 if test x"$ac_file" != x-; then
27881 configure_input="$ac_file. $configure_input"
27882 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27883 $as_echo "$as_me: creating $ac_file" >&6;}
27885 # Neutralize special characters interpreted by sed in replacement strings.
27886 case $configure_input in #(
27887 *\&* | *\|* | *\\* )
27888 ac_sed_conf_input=`$as_echo "$configure_input" |
27889 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27890 *) ac_sed_conf_input=$configure_input;;
27891 esac
27893 case $ac_tag in
27894 *:-:* | *:-) cat >"$tmp/stdin" \
27895 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27896 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27897 { (exit 1); exit 1; }; } ;;
27898 esac
27900 esac
27902 ac_dir=`$as_dirname -- "$ac_file" ||
27903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27904 X"$ac_file" : 'X\(//\)[^/]' \| \
27905 X"$ac_file" : 'X\(//\)$' \| \
27906 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27907 $as_echo X"$ac_file" |
27908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27909 s//\1/
27912 /^X\(\/\/\)[^/].*/{
27913 s//\1/
27916 /^X\(\/\/\)$/{
27917 s//\1/
27920 /^X\(\/\).*/{
27921 s//\1/
27924 s/.*/./; q'`
27925 { as_dir="$ac_dir"
27926 case $as_dir in #(
27927 -*) as_dir=./$as_dir;;
27928 esac
27929 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27930 as_dirs=
27931 while :; do
27932 case $as_dir in #(
27933 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27934 *) as_qdir=$as_dir;;
27935 esac
27936 as_dirs="'$as_qdir' $as_dirs"
27937 as_dir=`$as_dirname -- "$as_dir" ||
27938 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27939 X"$as_dir" : 'X\(//\)[^/]' \| \
27940 X"$as_dir" : 'X\(//\)$' \| \
27941 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27942 $as_echo X"$as_dir" |
27943 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27944 s//\1/
27947 /^X\(\/\/\)[^/].*/{
27948 s//\1/
27951 /^X\(\/\/\)$/{
27952 s//\1/
27955 /^X\(\/\).*/{
27956 s//\1/
27959 s/.*/./; q'`
27960 test -d "$as_dir" && break
27961 done
27962 test -z "$as_dirs" || eval "mkdir $as_dirs"
27963 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27964 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27965 { (exit 1); exit 1; }; }; }
27966 ac_builddir=.
27968 case "$ac_dir" in
27969 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27972 # A ".." for each directory in $ac_dir_suffix.
27973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27974 case $ac_top_builddir_sub in
27975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27977 esac ;;
27978 esac
27979 ac_abs_top_builddir=$ac_pwd
27980 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27981 # for backward compatibility:
27982 ac_top_builddir=$ac_top_build_prefix
27984 case $srcdir in
27985 .) # We are building in place.
27986 ac_srcdir=.
27987 ac_top_srcdir=$ac_top_builddir_sub
27988 ac_abs_top_srcdir=$ac_pwd ;;
27989 [\\/]* | ?:[\\/]* ) # Absolute name.
27990 ac_srcdir=$srcdir$ac_dir_suffix;
27991 ac_top_srcdir=$srcdir
27992 ac_abs_top_srcdir=$srcdir ;;
27993 *) # Relative name.
27994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27995 ac_top_srcdir=$ac_top_build_prefix$srcdir
27996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27997 esac
27998 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28001 case $ac_mode in
28004 # CONFIG_FILE
28007 case $INSTALL in
28008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28009 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28010 esac
28011 _ACEOF
28013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28014 # If the template does not know about datarootdir, expand it.
28015 # FIXME: This hack should be removed a few years after 2.60.
28016 ac_datarootdir_hack=; ac_datarootdir_seen=
28018 ac_sed_dataroot='
28019 /datarootdir/ {
28023 /@datadir@/p
28024 /@docdir@/p
28025 /@infodir@/p
28026 /@localedir@/p
28027 /@mandir@/p
28029 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28030 *datarootdir*) ac_datarootdir_seen=yes;;
28031 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28032 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28033 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28034 _ACEOF
28035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28036 ac_datarootdir_hack='
28037 s&@datadir@&$datadir&g
28038 s&@docdir@&$docdir&g
28039 s&@infodir@&$infodir&g
28040 s&@localedir@&$localedir&g
28041 s&@mandir@&$mandir&g
28042 s&\\\${datarootdir}&$datarootdir&g' ;;
28043 esac
28044 _ACEOF
28046 # Neutralize VPATH when `$srcdir' = `.'.
28047 # Shell code in configure.ac might set extrasub.
28048 # FIXME: do we really want to maintain this feature?
28049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28050 ac_sed_extra="$ac_vpsub
28051 $extrasub
28052 _ACEOF
28053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28056 s|@configure_input@|$ac_sed_conf_input|;t t
28057 s&@top_builddir@&$ac_top_builddir_sub&;t t
28058 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28059 s&@srcdir@&$ac_srcdir&;t t
28060 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28061 s&@top_srcdir@&$ac_top_srcdir&;t t
28062 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28063 s&@builddir@&$ac_builddir&;t t
28064 s&@abs_builddir@&$ac_abs_builddir&;t t
28065 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28066 s&@INSTALL@&$ac_INSTALL&;t t
28067 $ac_datarootdir_hack
28069 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28070 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28071 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28072 { (exit 1); exit 1; }; }
28074 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28075 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28076 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28077 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28078 which seems to be undefined. Please make sure it is defined." >&5
28079 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28080 which seems to be undefined. Please make sure it is defined." >&2;}
28082 rm -f "$tmp/stdin"
28083 case $ac_file in
28084 -) cat "$tmp/out" && rm -f "$tmp/out";;
28085 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28086 esac \
28087 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28088 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28089 { (exit 1); exit 1; }; }
28093 # CONFIG_HEADER
28095 if test x"$ac_file" != x-; then
28097 $as_echo "/* $configure_input */" \
28098 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28099 } >"$tmp/config.h" \
28100 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28101 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28102 { (exit 1); exit 1; }; }
28103 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28104 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28105 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28106 else
28107 rm -f "$ac_file"
28108 mv "$tmp/config.h" "$ac_file" \
28109 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
28110 $as_echo "$as_me: error: could not create $ac_file" >&2;}
28111 { (exit 1); exit 1; }; }
28113 else
28114 $as_echo "/* $configure_input */" \
28115 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28116 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
28117 $as_echo "$as_me: error: could not create -" >&2;}
28118 { (exit 1); exit 1; }; }
28122 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
28123 $as_echo "$as_me: executing $ac_file commands" >&6;}
28125 esac
28128 case $ac_file$ac_mode in
28129 "default":C)
28131 ### Make the necessary directories, if they don't exist.
28132 for dir in etc lisp ; do
28133 test -d ${dir} || mkdir ${dir}
28134 done
28136 # Build src/Makefile from ${srcdir}/src/Makefile.c
28137 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
28138 # This must be done after src/config.h is built, since we rely on that file.
28140 echo creating src/epaths.h
28141 ${MAKE-make} epaths-force
28143 # As of 2000-11-19, newest development versions of GNU cpp preprocess
28144 # `..' to `. .' unless invoked with -traditional
28146 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
28147 CPPFLAGS="$CPPFLAGS -traditional"
28150 echo creating src/Makefile
28151 ( cd src
28152 rm -f junk.c junk1.c junk2.c
28153 sed -e '/start of cpp stuff/q' \
28154 < Makefile.c > junk1.c
28155 sed -e '1,/start of cpp stuff/d'\
28156 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
28157 < Makefile.c > junk.c
28158 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
28159 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
28160 cat junk1.c junk2.c > Makefile.new
28161 rm -f junk.c junk1.c junk2.c
28162 chmod 444 Makefile.new
28163 mv -f Makefile.new Makefile
28166 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
28167 echo creating src/.gdbinit
28168 echo source $srcdir/src/.gdbinit > src/.gdbinit
28173 esac
28174 done # for ac_tag
28177 { (exit 0); exit 0; }
28178 _ACEOF
28179 chmod +x $CONFIG_STATUS
28180 ac_clean_files=$ac_clean_files_save
28182 test $ac_write_fail = 0 ||
28183 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
28184 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
28185 { (exit 1); exit 1; }; }
28188 # configure is writing to config.log, and then calls config.status.
28189 # config.status does its own redirection, appending to config.log.
28190 # Unfortunately, on DOS this fails, as config.log is still kept open
28191 # by configure, so config.status won't be able to write to it; its
28192 # output is simply discarded. So we exec the FD to /dev/null,
28193 # effectively closing config.log, so it can be properly (re)opened and
28194 # appended to by config.status. When coming back to configure, we
28195 # need to make the FD available again.
28196 if test "$no_create" != yes; then
28197 ac_cs_success=:
28198 ac_config_status_args=
28199 test "$silent" = yes &&
28200 ac_config_status_args="$ac_config_status_args --quiet"
28201 exec 5>/dev/null
28202 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28203 exec 5>>config.log
28204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28205 # would make configure fail if this is the last instruction.
28206 $ac_cs_success || { (exit 1); exit 1; }
28208 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28209 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28210 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}