Update $(lisp) and $(shortlisp) to match changes in loadup.el
[emacs.git] / configure
blob947b8ae9c3ebf1297132f578bab2a3213a9b1bbe
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 23.1.91.
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='23.1.91'
598 PACKAGE_STRING='emacs 23.1.91'
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='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
695 GREP
696 EGREP
697 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 LIBSOUND
706 PKG_CONFIG
707 ALSA_CFLAGS
708 ALSA_LIBS
709 CFLAGS_SOUND
710 SET_MAKE
711 XMKMF
712 HAVE_XSERVER
713 RSVG_CFLAGS
714 RSVG_LIBS
715 GTK_CFLAGS
716 GTK_LIBS
717 DBUS_CFLAGS
718 DBUS_LIBS
719 GCONF_CFLAGS
720 GCONF_LIBS
721 FONTCONFIG_CFLAGS
722 FONTCONFIG_LIBS
723 XFT_CFLAGS
724 XFT_LIBS
725 LIBOTF_CFLAGS
726 LIBOTF_LIBS
727 M17N_FLT_CFLAGS
728 M17N_FLT_LIBS
729 FREETYPE_CFLAGS
730 FREETYPE_LIBS
731 ALLOCA
732 liblockfile
733 LIBOBJS
734 NEED_SETGID
735 KMEM_GROUP
736 GETLOADAVG_LIBS
737 GETOPT_H
738 GETOPTOBJS
739 version
740 configuration
741 canonical
742 srcdir
743 lispdir
744 locallisppath
745 lisppath
746 x_default_search_path
747 etcdir
748 archlibdir
749 bitmapdir
750 gamedir
751 gameuser
752 c_switch_system
753 c_switch_machine
754 LD_SWITCH_X_SITE
755 LD_SWITCH_X_SITE_AUX
756 C_SWITCH_X_SITE
757 X_TOOLKIT_TYPE
758 machfile
759 opsysfile
760 ns_appdir
761 ns_appbindir
762 ns_appresdir
763 ns_appsrc
764 GNUSTEP_MAKEFILES
765 GNUSTEP_SYSTEM_HEADERS
766 GNUSTEP_SYSTEM_LIBRARIES
767 GNU_OBJC_CFLAGS
768 LIB_SRC_EXTRA_INSTALLABLES
769 OTHER_FILES
770 LTLIBOBJS'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 with_pop
775 with_kerberos
776 with_kerberos5
777 with_hesiod
778 with_sound
779 with_sync_input
780 with_x_toolkit
781 with_xpm
782 with_jpeg
783 with_tiff
784 with_gif
785 with_png
786 with_rsvg
787 with_xft
788 with_libotf
789 with_m17n_flt
790 with_toolkit_scroll_bars
791 with_xaw3d
792 with_xim
793 with_ns
794 with_gpm
795 with_dbus
796 with_gconf
797 with_makeinfo
798 with_gtk
799 with_gcc
800 with_pkg_config_prog
801 with_gnustep_conf
802 enable_ns_self_contained
803 enable_asserts
804 enable_maintainer_mode
805 enable_locallisppath
806 enable_checking
807 enable_profiling
808 enable_autodepend
809 enable_largefile
810 with_x
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
821 XMKMF'
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 ac_unrecognized_opts=
828 ac_unrecognized_sep=
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
831 cache_file=/dev/null
832 exec_prefix=NONE
833 no_create=
834 no_recursion=
835 prefix=NONE
836 program_prefix=NONE
837 program_suffix=NONE
838 program_transform_name=s,x,x,
839 silent=
840 site=
841 srcdir=
842 verbose=
843 x_includes=NONE
844 x_libraries=NONE
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
864 htmldir='${docdir}'
865 dvidir='${docdir}'
866 pdfdir='${docdir}'
867 psdir='${docdir}'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
872 ac_prev=
873 ac_dashdash=
874 for ac_option
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
879 ac_prev=
880 continue
883 case $ac_option in
884 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 *) ac_optarg=yes ;;
886 esac
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
892 ac_dashdash=yes ;;
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
911 --config-cache | -C)
912 cache_file=config.cache ;;
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
931 { (exit 1); exit 1; }; }
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=no ;;
943 -docdir | --docdir | --docdi | --doc | --do)
944 ac_prev=docdir ;;
945 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946 docdir=$ac_optarg ;;
948 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
949 ac_prev=dvidir ;;
950 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951 dvidir=$ac_optarg ;;
953 -enable-* | --enable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
958 { (exit 1); exit 1; }; }
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=\$ac_optarg ;;
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1048 no_create=yes ;;
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114 ac_prev=sbindir ;;
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116 | --sbi=* | --sb=*)
1117 sbindir=$ac_optarg ;;
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1122 | --sha | --sh)
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127 | --sha=* | --sh=*)
1128 sharedstatedir=$ac_optarg ;;
1130 -site | --site | --sit)
1131 ac_prev=site ;;
1132 -site=* | --site=* | --sit=*)
1133 site=$ac_optarg ;;
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136 ac_prev=srcdir ;;
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 verbose=yes ;;
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1158 -with-* | --with-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=\$ac_optarg ;;
1175 -without-* | --without-*)
1176 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1177 # Reject names that are not valid shell variable names.
1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1201 x_includes=$ac_optarg ;;
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;;
1210 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1211 Try \`$0 --help' for more information." >&2
1212 { (exit 1); exit 1; }; }
1215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1219 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1220 { (exit 1); exit 1; }; }
1221 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;;
1225 # FIXME: should be removed in autoconf 3.0.
1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1232 esac
1233 done
1235 if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1238 { (exit 1); exit 1; }; }
1241 if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
1244 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1245 { (exit 1); exit 1; }; } ;;
1246 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac
1250 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252 datadir sysconfdir sharedstatedir localstatedir includedir \
1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254 libdir localedir mandir
1256 eval ac_val=\$$ac_var
1257 # Remove trailing slashes.
1258 case $ac_val in
1259 */ )
1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261 eval $ac_var=\$ac_val;;
1262 esac
1263 # Be sure to have absolute directory names.
1264 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac
1268 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1269 { (exit 1); exit 1; }; }
1270 done
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1290 ac_tool_prefix=
1291 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293 test "$silent" = yes && exec 6>/dev/null
1296 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297 ac_ls_di=`ls -di .` &&
1298 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1300 { (exit 1); exit 1; }; }
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1303 { (exit 1); exit 1; }; }
1306 # Find the source files, if location was not specified.
1307 if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315 $as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1324 /^X\(\/\/\)$/{
1325 s//\1/
1328 /^X\(\/\).*/{
1329 s//\1/
1332 s/.*/./; q'`
1333 srcdir=$ac_confdir
1334 if test ! -r "$srcdir/$ac_unique_file"; then
1335 srcdir=..
1337 else
1338 ac_srcdir_defaulted=no
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1343 { (exit 1); exit 1; }; }
1345 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1346 ac_abs_confdir=`(
1347 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1348 { (exit 1); exit 1; }; }
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1368 # Report the --help message.
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures emacs 23.1.91 to adapt to many kinds of systems.
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1381 Defaults for the options are specified in brackets.
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1405 For better control, use the options below.
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1429 cat <<\_ACEOF
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436 X features:
1437 --x-includes=DIR X include files are in DIR
1438 --x-libraries=DIR X library files are in DIR
1440 System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 _ACEOF
1446 if test -n "$ac_init_help"; then
1447 case $ac_init_help in
1448 short | recursive ) echo "Configuration of emacs 23.1.91:";;
1449 esac
1450 cat <<\_ACEOF
1452 Optional Features:
1453 --disable-option-checking ignore unrecognized --enable/--with options
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1456 --disable-ns-self-contained
1457 disable self contained build under NeXTstep
1458 --enable-asserts compile code with asserts enabled
1459 --enable-maintainer-mode
1460 enable make rules and dependencies not useful (and
1461 sometimes confusing) to the casual installer
1462 --enable-locallisppath=PATH
1463 directories Emacs should search for lisp files
1464 specific to this site
1465 --enable-checking[=LIST]
1466 enable expensive run-time checks. With LIST, enable
1467 only specific categories of checks. Categories are:
1468 all,yes,no. Flags are: stringbytes, stringoverrun,
1469 stringfreelist, xmallocoverrun, conslist
1470 --enable-profiling build emacs with profiling support. This might not
1471 work on all platforms
1472 --enable-autodepend automatically generate dependencies to .h-files.
1473 Requires GNU Make and Gcc. Enabled if GNU Make and
1474 Gcc is found
1475 --disable-largefile omit support for large files
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --without-pop don't support POP mail retrieval with movemail
1481 --with-kerberos support Kerberos-authenticated POP
1482 --with-kerberos5 support Kerberos version 5 authenticated POP
1483 --with-hesiod support Hesiod to get the POP server host
1484 --without-sound don't compile with sound support
1485 --without-sync-input process async input synchronously
1486 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1487 motif, gtk, no)
1488 --without-xpm don't compile with XPM image support
1489 --without-jpeg don't compile with JPEG image support
1490 --without-tiff don't compile with TIFF image support
1491 --without-gif don't compile with GIF image support
1492 --without-png don't compile with PNG image support
1493 --without-rsvg don't compile with SVG image support
1494 --without-xft don't use XFT for anti aliased fonts
1495 --without-libotf don't use libotf for OpenType font support
1496 --without-m17n-flt don't use m17n-flt for text shaping
1497 --without-toolkit-scroll-bars
1498 don't use Motif or Xaw3d scroll bars
1499 --without-xaw3d don't use Xaw3d
1500 --without-xim don't use X11 XIM
1501 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1502 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1503 console
1504 --without-dbus don't compile with D-Bus support
1505 --without-gconf don't compile with GConf support
1506 --without-makeinfo don't require makeinfo for building manuals
1508 --with-pkg-config-prog=PATH
1509 path to pkg-config for finding GTK and librsvg
1510 --with-gnustep-conf=PATH
1511 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1512 or /etc/GNUstep/GNUstep.conf
1513 --with-x use the X Window System
1515 Some influential environment variables:
1516 CC C compiler command
1517 CFLAGS C compiler flags
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir>
1523 CPP C preprocessor
1524 XMKMF Path to xmkmf, Makefile generator for X Window System
1526 Use these variables to override the choices made by `configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1529 _ACEOF
1530 ac_status=$?
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
1539 ac_builddir=.
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1557 case $srcdir in
1558 .) # We are building in place.
1559 ac_srcdir=.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1581 else
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1585 done
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590 cat <<\_ACEOF
1591 emacs configure 23.1.91
1592 generated by GNU Autoconf 2.62
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599 exit
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1605 It was created by emacs $as_me 23.1.91, which was
1606 generated by GNU Autoconf 2.62. Invocation command line was
1608 $ $0 $@
1610 _ACEOF
1611 exec 5>>config.log
1613 cat <<_ASUNAME
1614 ## --------- ##
1615 ## Platform. ##
1616 ## --------- ##
1618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1627 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1628 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1631 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1632 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1633 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1635 _ASUNAME
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1640 IFS=$as_save_IFS
1641 test -z "$as_dir" && as_dir=.
1642 $as_echo "PATH: $as_dir"
1643 done
1644 IFS=$as_save_IFS
1646 } >&5
1648 cat >&5 <<_ACEOF
1651 ## ----------- ##
1652 ## Core tests. ##
1653 ## ----------- ##
1655 _ACEOF
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_configure_args=
1664 ac_configure_args0=
1665 ac_configure_args1=
1666 ac_must_keep_next=false
1667 for ac_pass in 1 2
1669 for ac_arg
1671 case $ac_arg in
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1675 continue ;;
1676 *\'*)
1677 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678 esac
1679 case $ac_pass in
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1685 else
1686 case $ac_arg in
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693 esac
1695 -* ) ac_must_keep_next=true ;;
1696 esac
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1700 esac
1701 done
1702 done
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1714 echo
1716 cat <<\_ASBOX
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1720 _ASBOX
1721 echo
1722 # The following way of writing the cache mishandles newlines in values,
1724 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725 eval ac_val=\$$ac_var
1726 case $ac_val in #(
1727 *${as_nl}*)
1728 case $ac_var in #(
1729 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731 esac
1732 case $ac_var in #(
1733 _ | IFS | as_nl) ;; #(
1734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1735 *) $as_unset $ac_var ;;
1736 esac ;;
1737 esac
1738 done
1739 (set) 2>&1 |
1740 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1742 sed -n \
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745 ;; #(
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1749 esac |
1750 sort
1752 echo
1754 cat <<\_ASBOX
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1758 _ASBOX
1759 echo
1760 for ac_var in $ac_subst_vars
1762 eval ac_val=\$$ac_var
1763 case $ac_val in
1764 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 esac
1766 $as_echo "$ac_var='\''$ac_val'\''"
1767 done | sort
1768 echo
1770 if test -n "$ac_subst_files"; then
1771 cat <<\_ASBOX
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1775 _ASBOX
1776 echo
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1780 case $ac_val in
1781 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782 esac
1783 $as_echo "$ac_var='\''$ac_val'\''"
1784 done | sort
1785 echo
1788 if test -s confdefs.h; then
1789 cat <<\_ASBOX
1790 ## ----------- ##
1791 ## confdefs.h. ##
1792 ## ----------- ##
1793 _ASBOX
1794 echo
1795 cat confdefs.h
1796 echo
1798 test "$ac_signal" != 0 &&
1799 $as_echo "$as_me: caught signal $ac_signal"
1800 $as_echo "$as_me: exit $exit_status"
1801 } >&5
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804 exit $exit_status
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808 done
1809 ac_signal=0
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1818 _ACEOF
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 _ACEOF
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 _ACEOF
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 _ACEOF
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 _ACEOF
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer an explicitly selected file to automatically selected ones.
1843 ac_site_file1=NONE
1844 ac_site_file2=NONE
1845 if test -n "$CONFIG_SITE"; then
1846 ac_site_file1=$CONFIG_SITE
1847 elif test "x$prefix" != xNONE; then
1848 ac_site_file1=$prefix/share/config.site
1849 ac_site_file2=$prefix/etc/config.site
1850 else
1851 ac_site_file1=$ac_default_prefix/share/config.site
1852 ac_site_file2=$ac_default_prefix/etc/config.site
1854 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1856 test "x$ac_site_file" = xNONE && continue
1857 if test -r "$ac_site_file"; then
1858 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1861 . "$ac_site_file"
1863 done
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 $as_echo "$as_me: loading cache $cache_file" >&6;}
1871 case $cache_file in
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1874 esac
1876 else
1877 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 $as_echo "$as_me: creating cache $cache_file" >&6;}
1879 >$cache_file
1882 ac_header_list="$ac_header_list sys/time.h"
1883 ac_header_list="$ac_header_list unistd.h"
1884 ac_func_list="$ac_func_list alarm"
1885 # Check that the precious variables saved in the cache have kept the same
1886 # value.
1887 ac_cache_corrupted=false
1888 for ac_var in $ac_precious_vars; do
1889 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1890 eval ac_new_set=\$ac_env_${ac_var}_set
1891 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1892 eval ac_new_val=\$ac_env_${ac_var}_value
1893 case $ac_old_set,$ac_new_set in
1894 set,)
1895 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1896 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1898 ,set)
1899 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1900 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1902 ,);;
1904 if test "x$ac_old_val" != "x$ac_new_val"; then
1905 # differences in whitespace do not lead to failure.
1906 ac_old_val_w=`echo x $ac_old_val`
1907 ac_new_val_w=`echo x $ac_new_val`
1908 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1909 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1910 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1911 ac_cache_corrupted=:
1912 else
1913 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1914 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1915 eval $ac_var=\$ac_old_val
1917 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1918 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1919 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1920 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1921 fi;;
1922 esac
1923 # Pass precious variables to config.status.
1924 if test "$ac_new_set" = set; then
1925 case $ac_new_val in
1926 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1927 *) ac_arg=$ac_var=$ac_new_val ;;
1928 esac
1929 case " $ac_configure_args " in
1930 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1931 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1932 esac
1934 done
1935 if $ac_cache_corrupted; then
1936 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1937 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1938 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1939 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1940 { (exit 1); exit 1; }; }
1967 ac_ext=c
1968 ac_cpp='$CPP $CPPFLAGS'
1969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1974 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1978 test "$program_prefix" != NONE &&
1979 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1980 # Use a double $ so make ignores it.
1981 test "$program_suffix" != NONE &&
1982 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1983 # Double any \ or $.
1984 # By default was `s,x,x', remove it if useless.
1985 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
1986 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
1989 lispdir='${datadir}/emacs/${version}/lisp'
1990 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1991 '${datadir}/emacs/site-lisp'
1992 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1993 etcdir='${datadir}/emacs/${version}/etc'
1994 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1995 docdir='${datadir}/emacs/${version}/etc'
1996 gamedir='${localstatedir}/games/emacs'
1998 gameuser=games
2003 # Check whether --with-pop was given.
2004 if test "${with_pop+set}" = set; then
2005 withval=$with_pop;
2006 else
2007 with_pop=yes
2010 if test "$with_pop" = yes; then
2011 cat >>confdefs.h <<\_ACEOF
2012 #define MAIL_USE_POP 1
2013 _ACEOF
2019 # Check whether --with-kerberos was given.
2020 if test "${with_kerberos+set}" = set; then
2021 withval=$with_kerberos;
2022 else
2023 with_kerberos=no
2026 if test "$with_kerberos" != no; then
2027 cat >>confdefs.h <<\_ACEOF
2028 #define KERBEROS 1
2029 _ACEOF
2035 # Check whether --with-kerberos5 was given.
2036 if test "${with_kerberos5+set}" = set; then
2037 withval=$with_kerberos5;
2038 else
2039 with_kerberos5=no
2042 if test "${with_kerberos5}" != no; then
2043 if test "${with_kerberos}" = no; then
2044 with_kerberos=yes
2045 cat >>confdefs.h <<\_ACEOF
2046 #define KERBEROS 1
2047 _ACEOF
2051 cat >>confdefs.h <<\_ACEOF
2052 #define KERBEROS5 1
2053 _ACEOF
2058 # Check whether --with-hesiod was given.
2059 if test "${with_hesiod+set}" = set; then
2060 withval=$with_hesiod;
2061 else
2062 with_hesiod=no
2065 if test "$with_hesiod" != no; then
2067 cat >>confdefs.h <<\_ACEOF
2068 #define HESIOD 1
2069 _ACEOF
2074 # Check whether --with-sound was given.
2075 if test "${with_sound+set}" = set; then
2076 withval=$with_sound;
2077 else
2078 with_sound=yes
2083 # Check whether --with-sync-input was given.
2084 if test "${with_sync_input+set}" = set; then
2085 withval=$with_sync_input;
2086 else
2087 with_sync_input=yes
2090 if test "$with_sync_input" = yes; then
2092 cat >>confdefs.h <<\_ACEOF
2093 #define SYNC_INPUT 1
2094 _ACEOF
2099 # Check whether --with-x-toolkit was given.
2100 if test "${with_x_toolkit+set}" = set; then
2101 withval=$with_x_toolkit; case "${withval}" in
2102 y | ye | yes ) val=gtk ;;
2103 n | no ) val=no ;;
2104 l | lu | luc | luci | lucid ) val=lucid ;;
2105 a | at | ath | athe | athen | athena ) val=athena ;;
2106 m | mo | mot | moti | motif ) val=motif ;;
2107 g | gt | gtk ) val=gtk ;;
2109 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2110 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2111 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2112 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2113 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2114 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2115 { (exit 1); exit 1; }; }
2117 esac
2118 with_x_toolkit=$val
2124 # Check whether --with-xpm was given.
2125 if test "${with_xpm+set}" = set; then
2126 withval=$with_xpm;
2127 else
2128 with_xpm=yes
2132 # Check whether --with-jpeg was given.
2133 if test "${with_jpeg+set}" = set; then
2134 withval=$with_jpeg;
2135 else
2136 with_jpeg=yes
2140 # Check whether --with-tiff was given.
2141 if test "${with_tiff+set}" = set; then
2142 withval=$with_tiff;
2143 else
2144 with_tiff=yes
2148 # Check whether --with-gif was given.
2149 if test "${with_gif+set}" = set; then
2150 withval=$with_gif;
2151 else
2152 with_gif=yes
2156 # Check whether --with-png was given.
2157 if test "${with_png+set}" = set; then
2158 withval=$with_png;
2159 else
2160 with_png=yes
2164 # Check whether --with-rsvg was given.
2165 if test "${with_rsvg+set}" = set; then
2166 withval=$with_rsvg;
2167 else
2168 with_rsvg=yes
2173 # Check whether --with-xft was given.
2174 if test "${with_xft+set}" = set; then
2175 withval=$with_xft;
2176 else
2177 with_xft=yes
2181 # Check whether --with-libotf was given.
2182 if test "${with_libotf+set}" = set; then
2183 withval=$with_libotf;
2184 else
2185 with_libotf=yes
2189 # Check whether --with-m17n-flt was given.
2190 if test "${with_m17n_flt+set}" = set; then
2191 withval=$with_m17n_flt;
2192 else
2193 with_m17n_flt=yes
2198 # Check whether --with-toolkit-scroll-bars was given.
2199 if test "${with_toolkit_scroll_bars+set}" = set; then
2200 withval=$with_toolkit_scroll_bars;
2201 else
2202 with_toolkit_scroll_bars=yes
2206 # Check whether --with-xaw3d was given.
2207 if test "${with_xaw3d+set}" = set; then
2208 withval=$with_xaw3d;
2209 else
2210 with_xaw3d=yes
2214 # Check whether --with-xim was given.
2215 if test "${with_xim+set}" = set; then
2216 withval=$with_xim;
2217 else
2218 with_xim=yes
2222 # Check whether --with-ns was given.
2223 if test "${with_ns+set}" = set; then
2224 withval=$with_ns;
2225 else
2226 with_ns=no
2231 # Check whether --with-gpm was given.
2232 if test "${with_gpm+set}" = set; then
2233 withval=$with_gpm;
2234 else
2235 with_gpm=yes
2239 # Check whether --with-dbus was given.
2240 if test "${with_dbus+set}" = set; then
2241 withval=$with_dbus;
2242 else
2243 with_dbus=yes
2247 # Check whether --with-gconf was given.
2248 if test "${with_gconf+set}" = set; then
2249 withval=$with_gconf;
2250 else
2251 with_gconf=yes
2255 ## For the times when you want to build Emacs but don't have
2256 ## a suitable makeinfo, and can live without the manuals.
2258 # Check whether --with-makeinfo was given.
2259 if test "${with_makeinfo+set}" = set; then
2260 withval=$with_makeinfo;
2261 else
2262 with_makeinfo=yes
2267 # Check whether --with-gtk was given.
2268 if test "${with_gtk+set}" = set; then
2269 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2270 specify a toolkit." >&5
2271 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2272 specify a toolkit." >&2;}
2273 { (exit 1); exit 1; }; }
2278 # Check whether --with-gcc was given.
2279 if test "${with_gcc+set}" = set; then
2280 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2281 variable to specify a compiler." >&5
2282 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2283 variable to specify a compiler." >&2;}
2284 { (exit 1); exit 1; }; }
2289 # Check whether --with-pkg-config-prog was given.
2290 if test "${with_pkg_config_prog+set}" = set; then
2291 withval=$with_pkg_config_prog;
2294 if test "X${with_pkg_config_prog}" != X; then
2295 if test "${with_pkg_config_prog}" != yes; then
2296 PKG_CONFIG="${with_pkg_config_prog}"
2301 # Check whether --with-gnustep-conf was given.
2302 if test "${with_gnustep_conf+set}" = set; then
2303 withval=$with_gnustep_conf;
2306 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2307 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2308 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2309 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2311 # Check whether --enable-ns-self-contained was given.
2312 if test "${enable_ns_self_contained+set}" = set; then
2313 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2314 else
2315 EN_NS_SELF_CONTAINED=yes
2319 # Check whether --enable-asserts was given.
2320 if test "${enable_asserts+set}" = set; then
2321 enableval=$enable_asserts; USE_XASSERTS=$enableval
2322 else
2323 USE_XASSERTS=no
2327 # Check whether --enable-maintainer-mode was given.
2328 if test "${enable_maintainer_mode+set}" = set; then
2329 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2330 else
2331 USE_MAINTAINER_MODE=no
2334 if test $USE_MAINTAINER_MODE = yes; then
2335 MAINT=
2336 else
2337 MAINT=#
2341 # Check whether --enable-locallisppath was given.
2342 if test "${enable_locallisppath+set}" = set; then
2343 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2344 locallisppath=
2345 elif test "${enableval}" != "yes"; then
2346 locallisppath=${enableval}
2351 # Check whether --enable-checking was given.
2352 if test "${enable_checking+set}" = set; then
2353 enableval=$enable_checking; ac_checking_flags="${enableval}"
2356 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2357 for check in $ac_checking_flags
2359 case $check in
2360 # these set all the flags to specific states
2361 yes) ac_enable_checking=1 ;;
2362 no) ac_enable_checking= ;
2363 ac_gc_check_stringbytes= ;
2364 ac_gc_check_string_overrun= ;
2365 ac_gc_check_string_free_list= ;
2366 ac_xmalloc_overrun= ;
2367 ac_gc_check_cons_list= ;;
2368 all) ac_enable_checking=1 ;
2369 ac_gc_check_stringbytes=1 ;
2370 ac_gc_check_string_overrun=1 ;
2371 ac_gc_check_string_free_list=1 ;
2372 ac_xmalloc_overrun=1 ;
2373 ac_gc_check_cons_list=1 ;;
2374 # these enable particular checks
2375 stringbytes) ac_gc_check_stringbytes=1 ;;
2376 stringoverrun) ac_gc_check_string_overrun=1 ;;
2377 stringfreelist) ac_gc_check_string_free_list=1 ;;
2378 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2379 conslist) ac_gc_check_cons_list=1 ;;
2380 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2381 $as_echo "$as_me: error: unknown check category $check" >&2;}
2382 { (exit 1); exit 1; }; } ;;
2383 esac
2384 done
2385 IFS="$ac_save_IFS"
2387 if test x$ac_enable_checking != x ; then
2389 cat >>confdefs.h <<\_ACEOF
2390 #define ENABLE_CHECKING 1
2391 _ACEOF
2394 if test x$ac_gc_check_stringbytes != x ; then
2396 cat >>confdefs.h <<\_ACEOF
2397 #define GC_CHECK_STRING_BYTES 1
2398 _ACEOF
2401 if test x$ac_gc_check_stringoverrun != x ; then
2403 cat >>confdefs.h <<\_ACEOF
2404 #define GC_CHECK_STRING_OVERRUN 1
2405 _ACEOF
2408 if test x$ac_gc_check_string_free_list != x ; then
2410 cat >>confdefs.h <<\_ACEOF
2411 #define GC_CHECK_STRING_FREE_LIST 1
2412 _ACEOF
2415 if test x$ac_xmalloc_overrun != x ; then
2417 cat >>confdefs.h <<\_ACEOF
2418 #define XMALLOC_OVERRUN_CHECK 1
2419 _ACEOF
2422 if test x$ac_gc_check_cons_list != x ; then
2424 cat >>confdefs.h <<\_ACEOF
2425 #define GC_CHECK_CONS_LIST 1
2426 _ACEOF
2430 # Check whether --enable-profiling was given.
2431 if test "${enable_profiling+set}" = set; then
2432 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2435 if test x$ac_enable_profiling != x ; then
2436 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2437 PROFILING_LDFLAGS="-pg"
2438 else
2439 PROFILING_CFLAGS=
2440 PROFILING_LDFLAGS=
2443 # Check whether --enable-autodepend was given.
2444 if test "${enable_autodepend+set}" = set; then
2445 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2446 else
2447 ac_enable_autodepend=yes
2451 #### Make srcdir absolute, if it isn't already. It's important to
2452 #### avoid running the path through pwd unnecessarily, since pwd can
2453 #### give you automounter prefixes, which can go away. We do all this
2454 #### so Emacs can find its files when run uninstalled.
2455 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2456 unset CDPATH
2457 case "${srcdir}" in
2458 /* ) ;;
2460 ## We may be able to use the $PWD environment variable to make this
2461 ## absolute. But sometimes PWD is inaccurate.
2462 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2463 ## but that tested only for a well-formed and valid PWD,
2464 ## it did not object when PWD was well-formed and valid but just wrong.
2465 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2466 then
2467 srcdir="$PWD"
2468 else
2469 srcdir="`(cd ${srcdir}; pwd)`"
2472 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2473 esac
2475 #### Check if the source directory already has a configured system in it.
2476 if test `pwd` != `(cd ${srcdir} && pwd)` \
2477 && test -f "${srcdir}/src/config.h" ; then
2478 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2479 as a build directory right now; it has been configured in its own
2480 right. To configure in another directory as well, you MUST
2481 use GNU make. If you do not have GNU make, then you must
2482 now do \`make distclean' in ${srcdir},
2483 and then run $0 again." >&5
2484 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2485 as a build directory right now; it has been configured in its own
2486 right. To configure in another directory as well, you MUST
2487 use GNU make. If you do not have GNU make, then you must
2488 now do \`make distclean' in ${srcdir},
2489 and then run $0 again." >&2;}
2492 #### Given the configuration name, set machfile and opsysfile to the
2493 #### names of the m/*.h and s/*.h files we should use.
2495 ### Canonicalize the configuration name.
2497 ac_aux_dir=
2498 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2499 if test -f "$ac_dir/install-sh"; then
2500 ac_aux_dir=$ac_dir
2501 ac_install_sh="$ac_aux_dir/install-sh -c"
2502 break
2503 elif test -f "$ac_dir/install.sh"; then
2504 ac_aux_dir=$ac_dir
2505 ac_install_sh="$ac_aux_dir/install.sh -c"
2506 break
2507 elif test -f "$ac_dir/shtool"; then
2508 ac_aux_dir=$ac_dir
2509 ac_install_sh="$ac_aux_dir/shtool install -c"
2510 break
2512 done
2513 if test -z "$ac_aux_dir"; then
2514 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2515 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2516 { (exit 1); exit 1; }; }
2519 # These three variables are undocumented and unsupported,
2520 # and are intended to be withdrawn in a future Autoconf release.
2521 # They can cause serious problems if a builder's source tree is in a directory
2522 # whose full name contains unusual characters.
2523 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2524 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2525 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2528 # Make sure we can run config.sub.
2529 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2530 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2531 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2532 { (exit 1); exit 1; }; }
2534 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2535 $as_echo_n "checking build system type... " >&6; }
2536 if test "${ac_cv_build+set}" = set; then
2537 $as_echo_n "(cached) " >&6
2538 else
2539 ac_build_alias=$build_alias
2540 test "x$ac_build_alias" = x &&
2541 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2542 test "x$ac_build_alias" = x &&
2543 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2544 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2545 { (exit 1); exit 1; }; }
2546 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2547 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2548 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2549 { (exit 1); exit 1; }; }
2552 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2553 $as_echo "$ac_cv_build" >&6; }
2554 case $ac_cv_build in
2555 *-*-*) ;;
2556 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2557 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2558 { (exit 1); exit 1; }; };;
2559 esac
2560 build=$ac_cv_build
2561 ac_save_IFS=$IFS; IFS='-'
2562 set x $ac_cv_build
2563 shift
2564 build_cpu=$1
2565 build_vendor=$2
2566 shift; shift
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2569 build_os=$*
2570 IFS=$ac_save_IFS
2571 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2574 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2575 $as_echo_n "checking host system type... " >&6; }
2576 if test "${ac_cv_host+set}" = set; then
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test "x$host_alias" = x; then
2580 ac_cv_host=$ac_cv_build
2581 else
2582 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2584 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2585 { (exit 1); exit 1; }; }
2589 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2590 $as_echo "$ac_cv_host" >&6; }
2591 case $ac_cv_host in
2592 *-*-*) ;;
2593 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2594 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2595 { (exit 1); exit 1; }; };;
2596 esac
2597 host=$ac_cv_host
2598 ac_save_IFS=$IFS; IFS='-'
2599 set x $ac_cv_host
2600 shift
2601 host_cpu=$1
2602 host_vendor=$2
2603 shift; shift
2604 # Remember, the first character of IFS is used to create $*,
2605 # except with old shells:
2606 host_os=$*
2607 IFS=$ac_save_IFS
2608 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2611 canonical=$host
2612 configuration=${host_alias-${build_alias-$host}}
2616 ### If you add support for a new configuration, add code to this
2617 ### switch statement to recognize your configuration name and select
2618 ### the appropriate operating system and machine description files.
2620 ### You would hope that you could choose an m/*.h file pretty much
2621 ### based on the machine portion of the configuration name, and an s-
2622 ### file based on the operating system portion. However, it turns out
2623 ### that each m/*.h file is pretty manufacturer-specific - for
2624 ### example mips.h is MIPS
2625 ### So we basically have to have a special case for each
2626 ### configuration name.
2628 ### As far as handling version numbers on operating systems is
2629 ### concerned, make sure things will fail in a fixable way. If
2630 ### /etc/MACHINES doesn't say anything about version numbers, be
2631 ### prepared to handle anything reasonably. If version numbers
2632 ### matter, be sure /etc/MACHINES says something about it.
2634 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2635 ### "System V Release 4"; he writes, "The old convention encouraged
2636 ### confusion between `system' and `release' levels'."
2638 machine='' opsys='' unported=no
2639 case "${canonical}" in
2641 ## FreeBSD ports
2642 *-*-freebsd* )
2643 opsys=freebsd
2644 case "${canonical}" in
2645 alpha*-*-freebsd*) machine=alpha ;;
2646 arm*-*-freebsd*) machine=arm ;;
2647 ia64-*-freebsd*) machine=ia64 ;;
2648 sparc-*-freebsd*) machine=sparc ;;
2649 sparc64-*-freebsd*) machine=sparc ;;
2650 powerpc-*-freebsd*) machine=macppc ;;
2651 i[3456]86-*-freebsd*) machine=intel386 ;;
2652 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2653 esac
2656 ## FreeBSD kernel + glibc based userland
2657 *-*-kfreebsd*gnu* )
2658 opsys=gnu-kfreebsd
2659 case "${canonical}" in
2660 alpha*-*-kfreebsd*) machine=alpha ;;
2661 ia64-*-kfreebsd*) machine=ia64 ;;
2662 sparc-*-kfreebsd*) machine=sparc ;;
2663 sparc64-*-kfreebsd*) machine=sparc ;;
2664 powerpc-*-kfreebsd*) machine=macppc ;;
2665 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2666 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2667 esac
2670 ## NetBSD ports
2671 *-*-netbsd* )
2672 opsys=netbsd
2673 if test -f /usr/lib/crti.o; then
2675 cat >>confdefs.h <<\_ACEOF
2676 #define HAVE_CRTIN /**/
2677 _ACEOF
2681 case "${canonical}" in
2682 alpha*-*-netbsd*) machine=alpha ;;
2683 i[3456]86-*-netbsd*) machine=intel386 ;;
2684 mips-*-netbsd*) machine=mips ;;
2685 mipsel-*-netbsd*) machine=mips ;;
2686 mipseb-*-netbsd*) machine=mips ;;
2687 powerpc-*-netbsd*) machine=macppc ;;
2688 sparc*-*-netbsd*) machine=sparc ;;
2689 vax-*-netbsd*) machine=vax ;;
2690 arm-*-netbsd*) machine=arm ;;
2691 x86_64-*-netbsd*) machine=amdx86-64 ;;
2692 hppa-*-netbsd*) machine=hp800 ;;
2693 m68k-*-netbsd*) machine=m68k ;;
2694 esac
2697 ## OpenBSD ports
2698 *-*-openbsd* )
2699 opsys=openbsd
2700 case "${canonical}" in
2701 alpha*-*-openbsd*) machine=alpha ;;
2702 arm-*-openbsd*) machine=arm ;;
2703 i386-*-openbsd*) machine=intel386 ;;
2704 powerpc-*-openbsd*) machine=macppc ;;
2705 sparc*-*-openbsd*) machine=sparc ;;
2706 vax-*-openbsd*) machine=vax ;;
2707 x86_64-*-openbsd*) machine=amdx86-64 ;;
2708 hppa-*-openbsd*) machine=hp800 ;;
2709 esac
2712 ## LynxOS ports
2713 *-*-lynxos* )
2714 opsys=lynxos
2715 case "${canonical}" in
2716 i[3456]86-*-lynxos*) machine=intel386 ;;
2717 powerpc-*-lynxos*) machine=powerpc ;;
2718 esac
2721 alpha*-*-linux-gnu* )
2722 machine=alpha opsys=gnu-linux
2725 arm*-*-linux-gnu* )
2726 machine=arm opsys=gnu-linux
2729 ## Apple Darwin / Mac OS X
2730 *-apple-darwin* )
2731 case "${canonical}" in
2732 i[3456]86-* ) machine=intel386 ;;
2733 powerpc-* ) machine=macppc ;;
2734 x86_64-* ) machine=amdx86-64 ;;
2735 * ) unported=yes ;;
2736 esac
2737 opsys=darwin
2738 # Define CPP as follows to make autoconf work correctly.
2739 CPP="${CC-cc} -E -no-cpp-precomp"
2740 # Use fink packages if available.
2741 if test -d /sw/include && test -d /sw/lib; then
2742 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2743 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2744 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2748 ## HP 9000 series 700 and 800, running HP/UX
2749 hppa*-hp-hpux10.2* )
2750 machine=hp800 opsys=hpux10-20
2752 hppa*-hp-hpux1[1-9]* )
2753 machine=hp800 opsys=hpux11
2754 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2757 hppa*-*-linux-gnu* )
2758 machine=hp800 opsys=gnu-linux
2761 ## IBM machines
2762 s390-*-linux-gnu* )
2763 machine=ibms390 opsys=gnu-linux
2765 s390x-*-linux-gnu* )
2766 machine=ibms390x opsys=gnu-linux
2768 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2769 machine=ibmrs6000 opsys=aix4-2
2771 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2772 machine=ibmrs6000 opsys=aix4-2
2774 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2775 machine=ibmrs6000 opsys=aix4-2
2777 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2778 machine=ibmrs6000 opsys=aix4-2
2781 ## Macintosh PowerPC
2782 powerpc*-*-linux-gnu* )
2783 machine=macppc opsys=gnu-linux
2786 ## Silicon Graphics machines
2787 ## Iris 4D
2788 mips-sgi-irix6.5 )
2789 machine=iris4d opsys=irix6-5
2790 # Without defining _LANGUAGE_C, things get masked out in the headers
2791 # so that, for instance, grepping for `free' in stdlib.h fails and
2792 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2793 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2794 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2797 ## Suns
2798 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2799 machine=sparc opsys=gnu-linux
2802 *-sun-solaris* \
2803 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2804 | x86_64-*-solaris2* | x86_64-*-sunos5* \
2805 | powerpc*-*-solaris2* | rs6000-*-solaris2*)
2806 case "${canonical}" in
2807 i[3456]86-*-* ) machine=intel386 ;;
2808 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2809 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2810 sparc* ) machine=sparc ;;
2811 * ) unported=yes ;;
2812 esac
2813 case "${canonical}" in
2814 *-sunos5.3* | *-solaris2.3* )
2815 opsys=sol2-3
2816 NON_GNU_CPP=/usr/ccs/lib/cpp
2818 *-sunos5.4* | *-solaris2.4* )
2819 opsys=sol2-4
2820 NON_GNU_CPP=/usr/ccs/lib/cpp
2821 RANLIB="ar -ts"
2823 *-sunos5.5* | *-solaris2.5* )
2824 opsys=sol2-5
2825 NON_GNU_CPP=/usr/ccs/lib/cpp
2826 RANLIB="ar -ts"
2828 *-sunos5.6* | *-solaris2.6* )
2829 opsys=sol2-6
2830 NON_GNU_CPP=/usr/ccs/lib/cpp
2831 RANLIB="ar -ts"
2833 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2834 opsys=sol2-6
2835 emacs_check_sunpro_c=yes
2836 NON_GNU_CPP=/usr/ccs/lib/cpp
2838 *-sunos5* | *-solaris* )
2839 opsys=sol2-10
2840 emacs_check_sunpro_c=yes
2841 NON_GNU_CPP=/usr/ccs/lib/cpp
2843 esac
2844 ## Watch out for a compiler that we know will not work.
2845 case "${canonical}" in
2846 *-solaris* | *-sunos5* )
2847 if [ "x$CC" = x/usr/ucb/cc ]; then
2848 ## /usr/ucb/cc doesn't work;
2849 ## we should find some other compiler that does work.
2850 unset CC
2853 *) ;;
2854 esac
2857 ## IA-64
2858 ia64*-*-linux* )
2859 machine=ia64 opsys=gnu-linux
2862 ## Intel 386 machines where we don't care about the manufacturer
2863 i[3456]86-*-* )
2864 machine=intel386
2865 case "${canonical}" in
2866 *-cygwin ) opsys=cygwin ;;
2867 *-darwin* ) opsys=darwin
2868 CPP="${CC-cc} -E -no-cpp-precomp"
2870 *-linux-gnu* ) opsys=gnu-linux ;;
2871 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2872 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2873 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2874 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2875 esac
2878 ## m68k Linux-based GNU system
2879 m68k-*-linux-gnu* )
2880 machine=m68k opsys=gnu-linux
2883 ## Mips Linux-based GNU system
2884 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2885 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2886 machine=mips opsys=gnu-linux
2889 ## AMD x86-64 Linux-based GNU system
2890 x86_64-*-linux-gnu* )
2891 machine=amdx86-64 opsys=gnu-linux
2894 ## Tensilica Xtensa Linux-based GNU system
2895 xtensa*-*-linux-gnu* )
2896 machine=xtensa opsys=gnu-linux
2899 ## SuperH Linux-based GNU system
2900 sh[34]*-*-linux-gnu* )
2901 machine=sh3 opsys=gnu-linux
2905 unported=yes
2907 esac
2909 ### If the code above didn't choose an operating system, just choose
2910 ### an operating system based on the configuration name. You really
2911 ### only want to use this when you have no idea what the right
2912 ### operating system is; if you know what operating systems a machine
2913 ### runs, it's cleaner to make it explicit in the case statement
2914 ### above.
2915 if test x"${opsys}" = x; then
2916 case "${canonical}" in
2917 *-gnu* ) opsys=gnu ;;
2918 *-sysv4.2uw* ) opsys=unixware ;;
2919 *-sysv5uw* ) opsys=unixware ;;
2920 *-sysv5OpenUNIX* ) opsys=unixware ;;
2921 *-sysv4.1* | *-sysvr4.1* )
2922 NON_GNU_CPP=/usr/lib/cpp
2923 opsys=usg5-4 ;;
2924 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2925 if [ x$NON_GNU_CPP = x ]; then
2926 if [ -f /usr/ccs/lib/cpp ]; then
2927 NON_GNU_CPP=/usr/ccs/lib/cpp
2928 else
2929 NON_GNU_CPP=/lib/cpp
2932 opsys=usg5-4-2 ;;
2933 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2935 unported=yes
2937 esac
2942 if test $unported = yes; then
2943 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2944 Check \`etc/MACHINES' for recognized configuration names." >&5
2945 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2946 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2947 { (exit 1); exit 1; }; }
2950 machfile="m/${machine}.h"
2951 opsysfile="s/${opsys}.h"
2954 #### Choose a compiler.
2955 test -n "$CC" && cc_specified=yes
2957 # Save the value of CFLAGS that the user specified.
2958 SPECIFIED_CFLAGS="$CFLAGS"
2960 ac_ext=c
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2968 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 $as_echo_n "checking for $ac_word... " >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then
2971 $as_echo_n "(cached) " >&6
2972 else
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2975 else
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 for as_dir in $PATH
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2987 done
2988 done
2989 IFS=$as_save_IFS
2993 CC=$ac_cv_prog_CC
2994 if test -n "$CC"; then
2995 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2996 $as_echo "$CC" >&6; }
2997 else
2998 { $as_echo "$as_me:$LINENO: result: no" >&5
2999 $as_echo "no" >&6; }
3004 if test -z "$ac_cv_prog_CC"; then
3005 ac_ct_CC=$CC
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc; ac_word=$2
3008 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 $as_echo_n "(cached) " >&6
3012 else
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3019 IFS=$as_save_IFS
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_ac_ct_CC="gcc"
3024 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3027 done
3028 done
3029 IFS=$as_save_IFS
3033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3036 $as_echo "$ac_ct_CC" >&6; }
3037 else
3038 { $as_echo "$as_me:$LINENO: result: no" >&5
3039 $as_echo "no" >&6; }
3042 if test "x$ac_ct_CC" = x; then
3043 CC=""
3044 else
3045 case $cross_compiling:$ac_tool_warned in
3046 yes:)
3047 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3048 whose name does not start with the host triplet. If you think this
3049 configuration is useful to you, please write to autoconf@gnu.org." >&5
3050 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3051 whose name does not start with the host triplet. If you think this
3052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3053 ac_tool_warned=yes ;;
3054 esac
3055 CC=$ac_ct_CC
3057 else
3058 CC="$ac_cv_prog_CC"
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}cc; ac_word=$2
3065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 $as_echo_n "checking for $ac_word... " >&6; }
3067 if test "${ac_cv_prog_CC+set}" = set; then
3068 $as_echo_n "(cached) " >&6
3069 else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072 else
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074 for as_dir in $PATH
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_CC="${ac_tool_prefix}cc"
3081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 break 2
3084 done
3085 done
3086 IFS=$as_save_IFS
3090 CC=$ac_cv_prog_CC
3091 if test -n "$CC"; then
3092 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3093 $as_echo "$CC" >&6; }
3094 else
3095 { $as_echo "$as_me:$LINENO: result: no" >&5
3096 $as_echo "no" >&6; }
3102 if test -z "$CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc; ac_word=$2
3105 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if test "${ac_cv_prog_CC+set}" = set; then
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 else
3113 ac_prog_rejected=no
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122 ac_prog_rejected=yes
3123 continue
3125 ac_cv_prog_CC="cc"
3126 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 break 2
3129 done
3130 done
3131 IFS=$as_save_IFS
3133 if test $ac_prog_rejected = yes; then
3134 # We found a bogon in the path, so make sure we never use it.
3135 set dummy $ac_cv_prog_CC
3136 shift
3137 if test $# != 0; then
3138 # We chose a different compiler from the bogus one.
3139 # However, it has the same basename, so the bogon will be chosen
3140 # first if we set CC to just the basename; use the full file name.
3141 shift
3142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3147 CC=$ac_cv_prog_CC
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3151 else
3152 { $as_echo "$as_me:$LINENO: result: no" >&5
3153 $as_echo "no" >&6; }
3158 if test -z "$CC"; then
3159 if test -n "$ac_tool_prefix"; then
3160 for ac_prog in cl.exe
3162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3164 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3180 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3183 done
3184 done
3185 IFS=$as_save_IFS
3189 CC=$ac_cv_prog_CC
3190 if test -n "$CC"; then
3191 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3192 $as_echo "$CC" >&6; }
3193 else
3194 { $as_echo "$as_me:$LINENO: result: no" >&5
3195 $as_echo "no" >&6; }
3199 test -n "$CC" && break
3200 done
3202 if test -z "$CC"; then
3203 ac_ct_CC=$CC
3204 for ac_prog in cl.exe
3206 # Extract the first word of "$ac_prog", so it can be a program name with args.
3207 set dummy $ac_prog; ac_word=$2
3208 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3209 $as_echo_n "checking for $ac_word... " >&6; }
3210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3211 $as_echo_n "(cached) " >&6
3212 else
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_CC="$ac_prog"
3224 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 break 2
3227 done
3228 done
3229 IFS=$as_save_IFS
3233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3236 $as_echo "$ac_ct_CC" >&6; }
3237 else
3238 { $as_echo "$as_me:$LINENO: result: no" >&5
3239 $as_echo "no" >&6; }
3243 test -n "$ac_ct_CC" && break
3244 done
3246 if test "x$ac_ct_CC" = x; then
3247 CC=""
3248 else
3249 case $cross_compiling:$ac_tool_warned in
3250 yes:)
3251 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3252 whose name does not start with the host triplet. If you think this
3253 configuration is useful to you, please write to autoconf@gnu.org." >&5
3254 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3255 whose name does not start with the host triplet. If you think this
3256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3257 ac_tool_warned=yes ;;
3258 esac
3259 CC=$ac_ct_CC
3266 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details." >&5
3268 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3272 # Provide some information about the compiler.
3273 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3274 set X $ac_compile
3275 ac_compiler=$2
3276 { (ac_try="$ac_compiler --version >&5"
3277 case "(($ac_try" in
3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3279 *) ac_try_echo=$ac_try;;
3280 esac
3281 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3282 $as_echo "$ac_try_echo") >&5
3283 (eval "$ac_compiler --version >&5") 2>&5
3284 ac_status=$?
3285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }
3287 { (ac_try="$ac_compiler -v >&5"
3288 case "(($ac_try" in
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3291 esac
3292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3293 $as_echo "$ac_try_echo") >&5
3294 (eval "$ac_compiler -v >&5") 2>&5
3295 ac_status=$?
3296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }
3298 { (ac_try="$ac_compiler -V >&5"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_compiler -V >&5") 2>&5
3306 ac_status=$?
3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); }
3310 cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h. */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3318 main ()
3322 return 0;
3324 _ACEOF
3325 ac_clean_files_save=$ac_clean_files
3326 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3327 # Try to create an executable without -o first, disregard a.out.
3328 # It will help us diagnose broken compilers, and finding out an intuition
3329 # of exeext.
3330 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3331 $as_echo_n "checking for C compiler default output file name... " >&6; }
3332 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3334 # The possible output files:
3335 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3337 ac_rmfiles=
3338 for ac_file in $ac_files
3340 case $ac_file in
3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3342 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3343 esac
3344 done
3345 rm -f $ac_rmfiles
3347 if { (ac_try="$ac_link_default"
3348 case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351 esac
3352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3353 $as_echo "$ac_try_echo") >&5
3354 (eval "$ac_link_default") 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; then
3358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3361 # so that the user can short-circuit this test for compilers unknown to
3362 # Autoconf.
3363 for ac_file in $ac_files ''
3365 test -f "$ac_file" || continue
3366 case $ac_file in
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3369 [ab].out )
3370 # We found the default executable, but exeext='' is most
3371 # certainly right.
3372 break;;
3373 *.* )
3374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3375 then :; else
3376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 # We set ac_cv_exeext here because the later test for it is not
3379 # safe: cross compilers may not add the suffix if given an `-o'
3380 # argument, so we may need to know it at that point already.
3381 # Even if this section looks crufty: it has the advantage of
3382 # actually working.
3383 break;;
3385 break;;
3386 esac
3387 done
3388 test "$ac_cv_exeext" = no && ac_cv_exeext=
3390 else
3391 ac_file=''
3394 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3395 $as_echo "$ac_file" >&6; }
3396 if test -z "$ac_file"; then
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3401 See \`config.log' for more details." >&5
3402 $as_echo "$as_me: error: C compiler cannot create executables
3403 See \`config.log' for more details." >&2;}
3404 { (exit 77); exit 77; }; }
3407 ac_exeext=$ac_cv_exeext
3409 # Check that the compiler produces executables we can run. If not, either
3410 # the compiler is broken, or we cross compile.
3411 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3412 $as_echo_n "checking whether the C compiler works... " >&6; }
3413 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3414 # If not cross compiling, check that we can run a simple program.
3415 if test "$cross_compiling" != yes; then
3416 if { ac_try='./$ac_file'
3417 { (case "(($ac_try" in
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3420 esac
3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3422 $as_echo "$ac_try_echo") >&5
3423 (eval "$ac_try") 2>&5
3424 ac_status=$?
3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); }; }; then
3427 cross_compiling=no
3428 else
3429 if test "$cross_compiling" = maybe; then
3430 cross_compiling=yes
3431 else
3432 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3433 If you meant to cross compile, use \`--host'.
3434 See \`config.log' for more details." >&5
3435 $as_echo "$as_me: error: cannot run C compiled programs.
3436 If you meant to cross compile, use \`--host'.
3437 See \`config.log' for more details." >&2;}
3438 { (exit 1); exit 1; }; }
3442 { $as_echo "$as_me:$LINENO: result: yes" >&5
3443 $as_echo "yes" >&6; }
3445 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3446 ac_clean_files=$ac_clean_files_save
3447 # Check that the compiler produces executables we can run. If not, either
3448 # the compiler is broken, or we cross compile.
3449 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3450 $as_echo_n "checking whether we are cross compiling... " >&6; }
3451 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3452 $as_echo "$cross_compiling" >&6; }
3454 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3455 $as_echo_n "checking for suffix of executables... " >&6; }
3456 if { (ac_try="$ac_link"
3457 case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3462 $as_echo "$ac_try_echo") >&5
3463 (eval "$ac_link") 2>&5
3464 ac_status=$?
3465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; then
3467 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3468 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3469 # work properly (i.e., refer to `conftest.exe'), while it won't with
3470 # `rm'.
3471 for ac_file in conftest.exe conftest conftest.*; do
3472 test -f "$ac_file" || continue
3473 case $ac_file in
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3475 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3476 break;;
3477 * ) break;;
3478 esac
3479 done
3480 else
3481 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3482 See \`config.log' for more details." >&5
3483 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3484 See \`config.log' for more details." >&2;}
3485 { (exit 1); exit 1; }; }
3488 rm -f conftest$ac_cv_exeext
3489 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3490 $as_echo "$ac_cv_exeext" >&6; }
3492 rm -f conftest.$ac_ext
3493 EXEEXT=$ac_cv_exeext
3494 ac_exeext=$EXEEXT
3495 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3496 $as_echo_n "checking for suffix of object files... " >&6; }
3497 if test "${ac_cv_objext+set}" = set; then
3498 $as_echo_n "(cached) " >&6
3499 else
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3508 main ()
3512 return 0;
3514 _ACEOF
3515 rm -f conftest.o conftest.obj
3516 if { (ac_try="$ac_compile"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3522 $as_echo "$ac_try_echo") >&5
3523 (eval "$ac_compile") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; then
3527 for ac_file in conftest.o conftest.obj conftest.*; do
3528 test -f "$ac_file" || continue;
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3531 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3532 break;;
3533 esac
3534 done
3535 else
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3540 See \`config.log' for more details." >&5
3541 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3542 See \`config.log' for more details." >&2;}
3543 { (exit 1); exit 1; }; }
3546 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3548 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3549 $as_echo "$ac_cv_objext" >&6; }
3550 OBJEXT=$ac_cv_objext
3551 ac_objext=$OBJEXT
3552 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3553 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3554 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3555 $as_echo_n "(cached) " >&6
3556 else
3557 cat >conftest.$ac_ext <<_ACEOF
3558 /* confdefs.h. */
3559 _ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3565 main ()
3567 #ifndef __GNUC__
3568 choke me
3569 #endif
3572 return 0;
3574 _ACEOF
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3577 case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580 esac
3581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3582 $as_echo "$ac_try_echo") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3584 ac_status=$?
3585 grep -v '^ *+' conftest.er1 >conftest.err
3586 rm -f conftest.er1
3587 cat conftest.err >&5
3588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_compiler_gnu=yes
3594 else
3595 $as_echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3598 ac_compiler_gnu=no
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3605 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3606 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3607 if test $ac_compiler_gnu = yes; then
3608 GCC=yes
3609 else
3610 GCC=
3612 ac_test_CFLAGS=${CFLAGS+set}
3613 ac_save_CFLAGS=$CFLAGS
3614 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3615 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3616 if test "${ac_cv_prog_cc_g+set}" = set; then
3617 $as_echo_n "(cached) " >&6
3618 else
3619 ac_save_c_werror_flag=$ac_c_werror_flag
3620 ac_c_werror_flag=yes
3621 ac_cv_prog_cc_g=no
3622 CFLAGS="-g"
3623 cat >conftest.$ac_ext <<_ACEOF
3624 /* confdefs.h. */
3625 _ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3631 main ()
3635 return 0;
3637 _ACEOF
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3640 case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645 $as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compile") 2>conftest.er1
3647 ac_status=$?
3648 grep -v '^ *+' conftest.er1 >conftest.err
3649 rm -f conftest.er1
3650 cat conftest.err >&5
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); } && {
3653 test -z "$ac_c_werror_flag" ||
3654 test ! -s conftest.err
3655 } && test -s conftest.$ac_objext; then
3656 ac_cv_prog_cc_g=yes
3657 else
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3661 CFLAGS=""
3662 cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3670 main ()
3674 return 0;
3676 _ACEOF
3677 rm -f conftest.$ac_objext
3678 if { (ac_try="$ac_compile"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3696 else
3697 $as_echo "$as_me: failed program was:" >&5
3698 sed 's/^/| /' conftest.$ac_ext >&5
3700 ac_c_werror_flag=$ac_save_c_werror_flag
3701 CFLAGS="-g"
3702 cat >conftest.$ac_ext <<_ACEOF
3703 /* confdefs.h. */
3704 _ACEOF
3705 cat confdefs.h >>conftest.$ac_ext
3706 cat >>conftest.$ac_ext <<_ACEOF
3707 /* end confdefs.h. */
3710 main ()
3714 return 0;
3716 _ACEOF
3717 rm -f conftest.$ac_objext
3718 if { (ac_try="$ac_compile"
3719 case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3724 $as_echo "$ac_try_echo") >&5
3725 (eval "$ac_compile") 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } && {
3732 test -z "$ac_c_werror_flag" ||
3733 test ! -s conftest.err
3734 } && test -s conftest.$ac_objext; then
3735 ac_cv_prog_cc_g=yes
3736 else
3737 $as_echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750 ac_c_werror_flag=$ac_save_c_werror_flag
3752 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3753 $as_echo "$ac_cv_prog_cc_g" >&6; }
3754 if test "$ac_test_CFLAGS" = set; then
3755 CFLAGS=$ac_save_CFLAGS
3756 elif test $ac_cv_prog_cc_g = yes; then
3757 if test "$GCC" = yes; then
3758 CFLAGS="-g -O2"
3759 else
3760 CFLAGS="-g"
3762 else
3763 if test "$GCC" = yes; then
3764 CFLAGS="-O2"
3765 else
3766 CFLAGS=
3769 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3770 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3771 if test "${ac_cv_prog_cc_c89+set}" = set; then
3772 $as_echo_n "(cached) " >&6
3773 else
3774 ac_cv_prog_cc_c89=no
3775 ac_save_CC=$CC
3776 cat >conftest.$ac_ext <<_ACEOF
3777 /* confdefs.h. */
3778 _ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3782 #include <stdarg.h>
3783 #include <stdio.h>
3784 #include <sys/types.h>
3785 #include <sys/stat.h>
3786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787 struct buf { int x; };
3788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789 static char *e (p, i)
3790 char **p;
3791 int i;
3793 return p[i];
3795 static char *f (char * (*g) (char **, int), char **p, ...)
3797 char *s;
3798 va_list v;
3799 va_start (v,p);
3800 s = g (p, va_arg (v,int));
3801 va_end (v);
3802 return s;
3805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
3808 as 'x'. The following induces an error, until -std is added to get
3809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
3811 that's true only with -std. */
3812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3816 #define FOO(x) 'x'
3817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3819 int test (int i, double x);
3820 struct s1 {int (*f) (int a);};
3821 struct s2 {int (*f) (double a);};
3822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3823 int argc;
3824 char **argv;
3826 main ()
3828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3830 return 0;
3832 _ACEOF
3833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3836 CC="$ac_save_CC $ac_arg"
3837 rm -f conftest.$ac_objext
3838 if { (ac_try="$ac_compile"
3839 case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3844 $as_echo "$ac_try_echo") >&5
3845 (eval "$ac_compile") 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } && {
3852 test -z "$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3854 } && test -s conftest.$ac_objext; then
3855 ac_cv_prog_cc_c89=$ac_arg
3856 else
3857 $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3863 rm -f core conftest.err conftest.$ac_objext
3864 test "x$ac_cv_prog_cc_c89" != "xno" && break
3865 done
3866 rm -f conftest.$ac_ext
3867 CC=$ac_save_CC
3870 # AC_CACHE_VAL
3871 case "x$ac_cv_prog_cc_c89" in
3873 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3874 $as_echo "none needed" >&6; } ;;
3875 xno)
3876 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3877 $as_echo "unsupported" >&6; } ;;
3879 CC="$CC $ac_cv_prog_cc_c89"
3880 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3881 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3882 esac
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 # On Suns, sometimes $CPP names a directory.
3893 if test -n "$CPP" && test -d "$CPP"; then
3894 CPP=
3897 ## If not using gcc, and on Solaris, and no CPP specified, see if
3898 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3899 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3900 test x"$CPP" = x; then
3901 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3902 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3904 if test "${emacs_cv_sunpro_c+set}" = set; then
3905 $as_echo_n "(cached) " >&6
3906 else
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3915 main ()
3917 #ifndef __SUNPRO_C
3918 fail;
3919 #endif
3922 return 0;
3924 _ACEOF
3925 rm -f conftest.$ac_objext conftest$ac_exeext
3926 if { (ac_try="$ac_link"
3927 case "(($ac_try" in
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3930 esac
3931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3932 $as_echo "$ac_try_echo") >&5
3933 (eval "$ac_link") 2>conftest.er1
3934 ac_status=$?
3935 grep -v '^ *+' conftest.er1 >conftest.err
3936 rm -f conftest.er1
3937 cat conftest.err >&5
3938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } && {
3940 test -z "$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3942 } && test -s conftest$ac_exeext && {
3943 test "$cross_compiling" = yes ||
3944 $as_test_x conftest$ac_exeext
3945 }; then
3946 emacs_cv_sunpro_c=yes
3947 else
3948 $as_echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3951 emacs_cv_sunpro_c=no
3954 rm -rf conftest.dSYM
3955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3956 conftest$ac_exeext conftest.$ac_ext
3959 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3960 $as_echo "$emacs_cv_sunpro_c" >&6; }
3962 if test x"$emacs_cv_sunpro_c" = xyes; then
3963 NON_GNU_CPP="$CC -E -Xs"
3967 #### Some systems specify a CPP to use unless we are using GCC.
3968 #### Now that we know whether we are using GCC, we can decide whether
3969 #### to use that one.
3970 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3971 then
3972 CPP="$NON_GNU_CPP"
3975 #### Some systems specify a CC to use unless we are using GCC.
3976 #### Now that we know whether we are using GCC, we can decide whether
3977 #### to use that one.
3978 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3979 test x$cc_specified != xyes
3980 then
3981 CC="$NON_GNU_CC"
3984 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3985 then
3986 CC="$CC $GCC_TEST_OPTIONS"
3989 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3990 then
3991 CC="$CC $NON_GCC_TEST_OPTIONS"
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4000 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4001 # On Suns, sometimes $CPP names a directory.
4002 if test -n "$CPP" && test -d "$CPP"; then
4003 CPP=
4005 if test -z "$CPP"; then
4006 if test "${ac_cv_prog_CPP+set}" = set; then
4007 $as_echo_n "(cached) " >&6
4008 else
4009 # Double quotes because CPP needs to be expanded
4010 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4012 ac_preproc_ok=false
4013 for ac_c_preproc_warn_flag in '' yes
4015 # Use a header file that comes with gcc, so configuring glibc
4016 # with a fresh cross-compiler works.
4017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4018 # <limits.h> exists even on freestanding compilers.
4019 # On the NeXT, cc -E runs the code through the compiler's parser,
4020 # not just through cpp. "Syntax error" is here to catch this case.
4021 cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h. */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027 #ifdef __STDC__
4028 # include <limits.h>
4029 #else
4030 # include <assert.h>
4031 #endif
4032 Syntax error
4033 _ACEOF
4034 if { (ac_try="$ac_cpp conftest.$ac_ext"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4040 $as_echo "$ac_try_echo") >&5
4041 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4042 ac_status=$?
4043 grep -v '^ *+' conftest.er1 >conftest.err
4044 rm -f conftest.er1
4045 cat conftest.err >&5
4046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4047 (exit $ac_status); } >/dev/null && {
4048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4049 test ! -s conftest.err
4050 }; then
4052 else
4053 $as_echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 # Broken: fails on valid input.
4057 continue
4060 rm -f conftest.err conftest.$ac_ext
4062 # OK, works on sane cases. Now check whether nonexistent headers
4063 # can be detected and how.
4064 cat >conftest.$ac_ext <<_ACEOF
4065 /* confdefs.h. */
4066 _ACEOF
4067 cat confdefs.h >>conftest.$ac_ext
4068 cat >>conftest.$ac_ext <<_ACEOF
4069 /* end confdefs.h. */
4070 #include <ac_nonexistent.h>
4071 _ACEOF
4072 if { (ac_try="$ac_cpp conftest.$ac_ext"
4073 case "(($ac_try" in
4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075 *) ac_try_echo=$ac_try;;
4076 esac
4077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4078 $as_echo "$ac_try_echo") >&5
4079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4080 ac_status=$?
4081 grep -v '^ *+' conftest.er1 >conftest.err
4082 rm -f conftest.er1
4083 cat conftest.err >&5
4084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } >/dev/null && {
4086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4087 test ! -s conftest.err
4088 }; then
4089 # Broken: success on invalid input.
4090 continue
4091 else
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4095 # Passes both tests.
4096 ac_preproc_ok=:
4097 break
4100 rm -f conftest.err conftest.$ac_ext
4102 done
4103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4104 rm -f conftest.err conftest.$ac_ext
4105 if $ac_preproc_ok; then
4106 break
4109 done
4110 ac_cv_prog_CPP=$CPP
4113 CPP=$ac_cv_prog_CPP
4114 else
4115 ac_cv_prog_CPP=$CPP
4117 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4118 $as_echo "$CPP" >&6; }
4119 ac_preproc_ok=false
4120 for ac_c_preproc_warn_flag in '' yes
4122 # Use a header file that comes with gcc, so configuring glibc
4123 # with a fresh cross-compiler works.
4124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4125 # <limits.h> exists even on freestanding compilers.
4126 # On the NeXT, cc -E runs the code through the compiler's parser,
4127 # not just through cpp. "Syntax error" is here to catch this case.
4128 cat >conftest.$ac_ext <<_ACEOF
4129 /* confdefs.h. */
4130 _ACEOF
4131 cat confdefs.h >>conftest.$ac_ext
4132 cat >>conftest.$ac_ext <<_ACEOF
4133 /* end confdefs.h. */
4134 #ifdef __STDC__
4135 # include <limits.h>
4136 #else
4137 # include <assert.h>
4138 #endif
4139 Syntax error
4140 _ACEOF
4141 if { (ac_try="$ac_cpp conftest.$ac_ext"
4142 case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4147 $as_echo "$ac_try_echo") >&5
4148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } >/dev/null && {
4155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4157 }; then
4159 else
4160 $as_echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4163 # Broken: fails on valid input.
4164 continue
4167 rm -f conftest.err conftest.$ac_ext
4169 # OK, works on sane cases. Now check whether nonexistent headers
4170 # can be detected and how.
4171 cat >conftest.$ac_ext <<_ACEOF
4172 /* confdefs.h. */
4173 _ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4177 #include <ac_nonexistent.h>
4178 _ACEOF
4179 if { (ac_try="$ac_cpp conftest.$ac_ext"
4180 case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183 esac
4184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4185 $as_echo "$ac_try_echo") >&5
4186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } >/dev/null && {
4193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4195 }; then
4196 # Broken: success on invalid input.
4197 continue
4198 else
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4202 # Passes both tests.
4203 ac_preproc_ok=:
4204 break
4207 rm -f conftest.err conftest.$ac_ext
4209 done
4210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4211 rm -f conftest.err conftest.$ac_ext
4212 if $ac_preproc_ok; then
4214 else
4215 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4216 See \`config.log' for more details." >&5
4217 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4218 See \`config.log' for more details." >&2;}
4219 { (exit 1); exit 1; }; }
4222 ac_ext=c
4223 ac_cpp='$CPP $CPPFLAGS'
4224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4229 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4230 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4231 if test "${ac_cv_path_GREP+set}" = set; then
4232 $as_echo_n "(cached) " >&6
4233 else
4234 if test -z "$GREP"; then
4235 ac_path_GREP_found=false
4236 # Loop through the user's path and test for each of PROGNAME-LIST
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_prog in grep ggrep; do
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4245 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4246 # Check for GNU ac_path_GREP and select it if it is found.
4247 # Check for GNU $ac_path_GREP
4248 case `"$ac_path_GREP" --version 2>&1` in
4249 *GNU*)
4250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4252 ac_count=0
4253 $as_echo_n 0123456789 >"conftest.in"
4254 while :
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo 'GREP' >> "conftest.nl"
4260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4262 ac_count=`expr $ac_count + 1`
4263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_GREP="$ac_path_GREP"
4266 ac_path_GREP_max=$ac_count
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4270 done
4271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4272 esac
4274 $ac_path_GREP_found && break 3
4275 done
4276 done
4277 done
4278 IFS=$as_save_IFS
4279 if test -z "$ac_cv_path_GREP"; then
4280 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4281 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4282 { (exit 1); exit 1; }; }
4284 else
4285 ac_cv_path_GREP=$GREP
4289 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4290 $as_echo "$ac_cv_path_GREP" >&6; }
4291 GREP="$ac_cv_path_GREP"
4294 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4295 $as_echo_n "checking for egrep... " >&6; }
4296 if test "${ac_cv_path_EGREP+set}" = set; then
4297 $as_echo_n "(cached) " >&6
4298 else
4299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4300 then ac_cv_path_EGREP="$GREP -E"
4301 else
4302 if test -z "$EGREP"; then
4303 ac_path_EGREP_found=false
4304 # Loop through the user's path and test for each of PROGNAME-LIST
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_prog in egrep; do
4311 for ac_exec_ext in '' $ac_executable_extensions; do
4312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4313 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4314 # Check for GNU ac_path_EGREP and select it if it is found.
4315 # Check for GNU $ac_path_EGREP
4316 case `"$ac_path_EGREP" --version 2>&1` in
4317 *GNU*)
4318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4320 ac_count=0
4321 $as_echo_n 0123456789 >"conftest.in"
4322 while :
4324 cat "conftest.in" "conftest.in" >"conftest.tmp"
4325 mv "conftest.tmp" "conftest.in"
4326 cp "conftest.in" "conftest.nl"
4327 $as_echo 'EGREP' >> "conftest.nl"
4328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4330 ac_count=`expr $ac_count + 1`
4331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4332 # Best one so far, save it but keep looking for a better one
4333 ac_cv_path_EGREP="$ac_path_EGREP"
4334 ac_path_EGREP_max=$ac_count
4336 # 10*(2^10) chars as input seems more than enough
4337 test $ac_count -gt 10 && break
4338 done
4339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4340 esac
4342 $ac_path_EGREP_found && break 3
4343 done
4344 done
4345 done
4346 IFS=$as_save_IFS
4347 if test -z "$ac_cv_path_EGREP"; then
4348 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4349 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4350 { (exit 1); exit 1; }; }
4352 else
4353 ac_cv_path_EGREP=$EGREP
4358 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4359 $as_echo "$ac_cv_path_EGREP" >&6; }
4360 EGREP="$ac_cv_path_EGREP"
4363 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4364 $as_echo_n "checking for ANSI C header files... " >&6; }
4365 if test "${ac_cv_header_stdc+set}" = set; then
4366 $as_echo_n "(cached) " >&6
4367 else
4368 cat >conftest.$ac_ext <<_ACEOF
4369 /* confdefs.h. */
4370 _ACEOF
4371 cat confdefs.h >>conftest.$ac_ext
4372 cat >>conftest.$ac_ext <<_ACEOF
4373 /* end confdefs.h. */
4374 #include <stdlib.h>
4375 #include <stdarg.h>
4376 #include <string.h>
4377 #include <float.h>
4380 main ()
4384 return 0;
4386 _ACEOF
4387 rm -f conftest.$ac_objext
4388 if { (ac_try="$ac_compile"
4389 case "(($ac_try" in
4390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391 *) ac_try_echo=$ac_try;;
4392 esac
4393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4394 $as_echo "$ac_try_echo") >&5
4395 (eval "$ac_compile") 2>conftest.er1
4396 ac_status=$?
4397 grep -v '^ *+' conftest.er1 >conftest.err
4398 rm -f conftest.er1
4399 cat conftest.err >&5
4400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } && {
4402 test -z "$ac_c_werror_flag" ||
4403 test ! -s conftest.err
4404 } && test -s conftest.$ac_objext; then
4405 ac_cv_header_stdc=yes
4406 else
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 ac_cv_header_stdc=no
4413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4415 if test $ac_cv_header_stdc = yes; then
4416 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4417 cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h. */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4423 #include <string.h>
4425 _ACEOF
4426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4427 $EGREP "memchr" >/dev/null 2>&1; then
4429 else
4430 ac_cv_header_stdc=no
4432 rm -f conftest*
4436 if test $ac_cv_header_stdc = yes; then
4437 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4438 cat >conftest.$ac_ext <<_ACEOF
4439 /* confdefs.h. */
4440 _ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4444 #include <stdlib.h>
4446 _ACEOF
4447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4448 $EGREP "free" >/dev/null 2>&1; then
4450 else
4451 ac_cv_header_stdc=no
4453 rm -f conftest*
4457 if test $ac_cv_header_stdc = yes; then
4458 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4459 if test "$cross_compiling" = yes; then
4461 else
4462 cat >conftest.$ac_ext <<_ACEOF
4463 /* confdefs.h. */
4464 _ACEOF
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 #include <ctype.h>
4469 #include <stdlib.h>
4470 #if ((' ' & 0x0FF) == 0x020)
4471 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4472 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4473 #else
4474 # define ISLOWER(c) \
4475 (('a' <= (c) && (c) <= 'i') \
4476 || ('j' <= (c) && (c) <= 'r') \
4477 || ('s' <= (c) && (c) <= 'z'))
4478 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4479 #endif
4481 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4483 main ()
4485 int i;
4486 for (i = 0; i < 256; i++)
4487 if (XOR (islower (i), ISLOWER (i))
4488 || toupper (i) != TOUPPER (i))
4489 return 2;
4490 return 0;
4492 _ACEOF
4493 rm -f conftest$ac_exeext
4494 if { (ac_try="$ac_link"
4495 case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4500 $as_echo "$ac_try_echo") >&5
4501 (eval "$ac_link") 2>&5
4502 ac_status=$?
4503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4505 { (case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4510 $as_echo "$ac_try_echo") >&5
4511 (eval "$ac_try") 2>&5
4512 ac_status=$?
4513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4516 else
4517 $as_echo "$as_me: program exited with status $ac_status" >&5
4518 $as_echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 ( exit $ac_status )
4522 ac_cv_header_stdc=no
4524 rm -rf conftest.dSYM
4525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4531 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4532 $as_echo "$ac_cv_header_stdc" >&6; }
4533 if test $ac_cv_header_stdc = yes; then
4535 cat >>confdefs.h <<\_ACEOF
4536 #define STDC_HEADERS 1
4537 _ACEOF
4541 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4551 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4552 inttypes.h stdint.h unistd.h
4554 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4555 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4556 $as_echo_n "checking for $ac_header... " >&6; }
4557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4558 $as_echo_n "(cached) " >&6
4559 else
4560 cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h. */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 $ac_includes_default
4568 #include <$ac_header>
4569 _ACEOF
4570 rm -f conftest.$ac_objext
4571 if { (ac_try="$ac_compile"
4572 case "(($ac_try" in
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4575 esac
4576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4577 $as_echo "$ac_try_echo") >&5
4578 (eval "$ac_compile") 2>conftest.er1
4579 ac_status=$?
4580 grep -v '^ *+' conftest.er1 >conftest.err
4581 rm -f conftest.er1
4582 cat conftest.err >&5
4583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); } && {
4585 test -z "$ac_c_werror_flag" ||
4586 test ! -s conftest.err
4587 } && test -s conftest.$ac_objext; then
4588 eval "$as_ac_Header=yes"
4589 else
4590 $as_echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 eval "$as_ac_Header=no"
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598 ac_res=`eval 'as_val=${'$as_ac_Header'}
4599 $as_echo "$as_val"'`
4600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4601 $as_echo "$ac_res" >&6; }
4602 if test `eval 'as_val=${'$as_ac_Header'}
4603 $as_echo "$as_val"'` = yes; then
4604 cat >>confdefs.h <<_ACEOF
4605 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4606 _ACEOF
4610 done
4614 if test "${ac_cv_header_minix_config_h+set}" = set; then
4615 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4616 $as_echo_n "checking for minix/config.h... " >&6; }
4617 if test "${ac_cv_header_minix_config_h+set}" = set; then
4618 $as_echo_n "(cached) " >&6
4620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4621 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4622 else
4623 # Is the header compilable?
4624 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4625 $as_echo_n "checking minix/config.h usability... " >&6; }
4626 cat >conftest.$ac_ext <<_ACEOF
4627 /* confdefs.h. */
4628 _ACEOF
4629 cat confdefs.h >>conftest.$ac_ext
4630 cat >>conftest.$ac_ext <<_ACEOF
4631 /* end confdefs.h. */
4632 $ac_includes_default
4633 #include <minix/config.h>
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (ac_try="$ac_compile"
4637 case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640 esac
4641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4642 $as_echo "$ac_try_echo") >&5
4643 (eval "$ac_compile") 2>conftest.er1
4644 ac_status=$?
4645 grep -v '^ *+' conftest.er1 >conftest.err
4646 rm -f conftest.er1
4647 cat conftest.err >&5
4648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } && {
4650 test -z "$ac_c_werror_flag" ||
4651 test ! -s conftest.err
4652 } && test -s conftest.$ac_objext; then
4653 ac_header_compiler=yes
4654 else
4655 $as_echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 ac_header_compiler=no
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4663 $as_echo "$ac_header_compiler" >&6; }
4665 # Is the header present?
4666 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4667 $as_echo_n "checking minix/config.h presence... " >&6; }
4668 cat >conftest.$ac_ext <<_ACEOF
4669 /* confdefs.h. */
4670 _ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4674 #include <minix/config.h>
4675 _ACEOF
4676 if { (ac_try="$ac_cpp conftest.$ac_ext"
4677 case "(($ac_try" in
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4680 esac
4681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4682 $as_echo "$ac_try_echo") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev/null && {
4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 }; then
4693 ac_header_preproc=yes
4694 else
4695 $as_echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 ac_header_preproc=no
4701 rm -f conftest.err conftest.$ac_ext
4702 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4703 $as_echo "$ac_header_preproc" >&6; }
4705 # So? What about this header?
4706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4707 yes:no: )
4708 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4709 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4710 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4711 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4712 ac_header_preproc=yes
4714 no:yes:* )
4715 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4716 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4717 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4718 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4719 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4720 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4721 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4722 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4723 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4724 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4725 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4726 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4729 esac
4730 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4731 $as_echo_n "checking for minix/config.h... " >&6; }
4732 if test "${ac_cv_header_minix_config_h+set}" = set; then
4733 $as_echo_n "(cached) " >&6
4734 else
4735 ac_cv_header_minix_config_h=$ac_header_preproc
4737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4738 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4741 if test $ac_cv_header_minix_config_h = yes; then
4742 MINIX=yes
4743 else
4744 MINIX=
4748 if test "$MINIX" = yes; then
4750 cat >>confdefs.h <<\_ACEOF
4751 #define _POSIX_SOURCE 1
4752 _ACEOF
4755 cat >>confdefs.h <<\_ACEOF
4756 #define _POSIX_1_SOURCE 2
4757 _ACEOF
4760 cat >>confdefs.h <<\_ACEOF
4761 #define _MINIX 1
4762 _ACEOF
4768 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4769 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4770 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4771 $as_echo_n "(cached) " >&6
4772 else
4773 cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h. */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4780 # define __EXTENSIONS__ 1
4781 $ac_includes_default
4783 main ()
4787 return 0;
4789 _ACEOF
4790 rm -f conftest.$ac_objext
4791 if { (ac_try="$ac_compile"
4792 case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4795 esac
4796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4797 $as_echo "$ac_try_echo") >&5
4798 (eval "$ac_compile") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && {
4805 test -z "$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 } && test -s conftest.$ac_objext; then
4808 ac_cv_safe_to_define___extensions__=yes
4809 else
4810 $as_echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 ac_cv_safe_to_define___extensions__=no
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4819 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4820 test $ac_cv_safe_to_define___extensions__ = yes &&
4821 cat >>confdefs.h <<\_ACEOF
4822 #define __EXTENSIONS__ 1
4823 _ACEOF
4825 cat >>confdefs.h <<\_ACEOF
4826 #define _ALL_SOURCE 1
4827 _ACEOF
4829 cat >>confdefs.h <<\_ACEOF
4830 #define _GNU_SOURCE 1
4831 _ACEOF
4833 cat >>confdefs.h <<\_ACEOF
4834 #define _POSIX_PTHREAD_SEMANTICS 1
4835 _ACEOF
4837 cat >>confdefs.h <<\_ACEOF
4838 #define _TANDEM_SOURCE 1
4839 _ACEOF
4843 ### Use -Wno-pointer-sign if the compiler supports it
4844 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4845 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4846 SAVE_CFLAGS="$CFLAGS"
4847 CFLAGS="$CFLAGS -Wno-pointer-sign"
4848 cat >conftest.$ac_ext <<_ACEOF
4849 /* confdefs.h. */
4850 _ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4856 main ()
4860 return 0;
4862 _ACEOF
4863 rm -f conftest.$ac_objext
4864 if { (ac_try="$ac_compile"
4865 case "(($ac_try" in
4866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867 *) ac_try_echo=$ac_try;;
4868 esac
4869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4870 $as_echo "$ac_try_echo") >&5
4871 (eval "$ac_compile") 2>conftest.er1
4872 ac_status=$?
4873 grep -v '^ *+' conftest.er1 >conftest.err
4874 rm -f conftest.er1
4875 cat conftest.err >&5
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } && {
4878 test -z "$ac_c_werror_flag" ||
4879 test ! -s conftest.err
4880 } && test -s conftest.$ac_objext; then
4881 has_option=yes
4882 else
4883 $as_echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 has_option=no
4889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4890 if test $has_option = yes; then
4891 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4893 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4894 $as_echo "$has_option" >&6; }
4895 CFLAGS="$SAVE_CFLAGS"
4896 unset has_option
4897 unset SAVE_CFLAGS
4899 ### Use -Wdeclaration-after-statement if the compiler supports it
4900 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4901 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4902 SAVE_CFLAGS="$CFLAGS"
4903 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4912 main ()
4916 return 0;
4918 _ACEOF
4919 rm -f conftest.$ac_objext
4920 if { (ac_try="$ac_compile"
4921 case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_compile") 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest.$ac_objext; then
4937 has_option=yes
4938 else
4939 $as_echo "$as_me: failed program was:" >&5
4940 sed 's/^/| /' conftest.$ac_ext >&5
4942 has_option=no
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 if test $has_option = yes; then
4947 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4949 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4950 $as_echo "$has_option" >&6; }
4951 CFLAGS="$SAVE_CFLAGS"
4952 unset has_option
4953 unset SAVE_CFLAGS
4955 #### Some other nice autoconf tests.
4957 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4958 $as_echo_n "checking whether ln -s works... " >&6; }
4959 LN_S=$as_ln_s
4960 if test "$LN_S" = "ln -s"; then
4961 { $as_echo "$as_me:$LINENO: result: yes" >&5
4962 $as_echo "yes" >&6; }
4963 else
4964 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4965 $as_echo "no, using $LN_S" >&6; }
4968 ac_ext=c
4969 ac_cpp='$CPP $CPPFLAGS'
4970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4974 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4975 # On Suns, sometimes $CPP names a directory.
4976 if test -n "$CPP" && test -d "$CPP"; then
4977 CPP=
4979 if test -z "$CPP"; then
4980 if test "${ac_cv_prog_CPP+set}" = set; then
4981 $as_echo_n "(cached) " >&6
4982 else
4983 # Double quotes because CPP needs to be expanded
4984 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4986 ac_preproc_ok=false
4987 for ac_c_preproc_warn_flag in '' yes
4989 # Use a header file that comes with gcc, so configuring glibc
4990 # with a fresh cross-compiler works.
4991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4992 # <limits.h> exists even on freestanding compilers.
4993 # On the NeXT, cc -E runs the code through the compiler's parser,
4994 # not just through cpp. "Syntax error" is here to catch this case.
4995 cat >conftest.$ac_ext <<_ACEOF
4996 /* confdefs.h. */
4997 _ACEOF
4998 cat confdefs.h >>conftest.$ac_ext
4999 cat >>conftest.$ac_ext <<_ACEOF
5000 /* end confdefs.h. */
5001 #ifdef __STDC__
5002 # include <limits.h>
5003 #else
5004 # include <assert.h>
5005 #endif
5006 Syntax error
5007 _ACEOF
5008 if { (ac_try="$ac_cpp conftest.$ac_ext"
5009 case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012 esac
5013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5014 $as_echo "$ac_try_echo") >&5
5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5016 ac_status=$?
5017 grep -v '^ *+' conftest.er1 >conftest.err
5018 rm -f conftest.er1
5019 cat conftest.err >&5
5020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } >/dev/null && {
5022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5024 }; then
5026 else
5027 $as_echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5030 # Broken: fails on valid input.
5031 continue
5034 rm -f conftest.err conftest.$ac_ext
5036 # OK, works on sane cases. Now check whether nonexistent headers
5037 # can be detected and how.
5038 cat >conftest.$ac_ext <<_ACEOF
5039 /* confdefs.h. */
5040 _ACEOF
5041 cat confdefs.h >>conftest.$ac_ext
5042 cat >>conftest.$ac_ext <<_ACEOF
5043 /* end confdefs.h. */
5044 #include <ac_nonexistent.h>
5045 _ACEOF
5046 if { (ac_try="$ac_cpp conftest.$ac_ext"
5047 case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050 esac
5051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5052 $as_echo "$ac_try_echo") >&5
5053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5054 ac_status=$?
5055 grep -v '^ *+' conftest.er1 >conftest.err
5056 rm -f conftest.er1
5057 cat conftest.err >&5
5058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev/null && {
5060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5061 test ! -s conftest.err
5062 }; then
5063 # Broken: success on invalid input.
5064 continue
5065 else
5066 $as_echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5069 # Passes both tests.
5070 ac_preproc_ok=:
5071 break
5074 rm -f conftest.err conftest.$ac_ext
5076 done
5077 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5078 rm -f conftest.err conftest.$ac_ext
5079 if $ac_preproc_ok; then
5080 break
5083 done
5084 ac_cv_prog_CPP=$CPP
5087 CPP=$ac_cv_prog_CPP
5088 else
5089 ac_cv_prog_CPP=$CPP
5091 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5092 $as_echo "$CPP" >&6; }
5093 ac_preproc_ok=false
5094 for ac_c_preproc_warn_flag in '' yes
5096 # Use a header file that comes with gcc, so configuring glibc
5097 # with a fresh cross-compiler works.
5098 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5099 # <limits.h> exists even on freestanding compilers.
5100 # On the NeXT, cc -E runs the code through the compiler's parser,
5101 # not just through cpp. "Syntax error" is here to catch this case.
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #ifdef __STDC__
5109 # include <limits.h>
5110 #else
5111 # include <assert.h>
5112 #endif
5113 Syntax error
5114 _ACEOF
5115 if { (ac_try="$ac_cpp conftest.$ac_ext"
5116 case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119 esac
5120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5121 $as_echo "$ac_try_echo") >&5
5122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } >/dev/null && {
5129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5131 }; then
5133 else
5134 $as_echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5137 # Broken: fails on valid input.
5138 continue
5141 rm -f conftest.err conftest.$ac_ext
5143 # OK, works on sane cases. Now check whether nonexistent headers
5144 # can be detected and how.
5145 cat >conftest.$ac_ext <<_ACEOF
5146 /* confdefs.h. */
5147 _ACEOF
5148 cat confdefs.h >>conftest.$ac_ext
5149 cat >>conftest.$ac_ext <<_ACEOF
5150 /* end confdefs.h. */
5151 #include <ac_nonexistent.h>
5152 _ACEOF
5153 if { (ac_try="$ac_cpp conftest.$ac_ext"
5154 case "(($ac_try" in
5155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5156 *) ac_try_echo=$ac_try;;
5157 esac
5158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5159 $as_echo "$ac_try_echo") >&5
5160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5161 ac_status=$?
5162 grep -v '^ *+' conftest.er1 >conftest.err
5163 rm -f conftest.er1
5164 cat conftest.err >&5
5165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } >/dev/null && {
5167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5168 test ! -s conftest.err
5169 }; then
5170 # Broken: success on invalid input.
5171 continue
5172 else
5173 $as_echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5176 # Passes both tests.
5177 ac_preproc_ok=:
5178 break
5181 rm -f conftest.err conftest.$ac_ext
5183 done
5184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5185 rm -f conftest.err conftest.$ac_ext
5186 if $ac_preproc_ok; then
5188 else
5189 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5190 See \`config.log' for more details." >&5
5191 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5192 See \`config.log' for more details." >&2;}
5193 { (exit 1); exit 1; }; }
5196 ac_ext=c
5197 ac_cpp='$CPP $CPPFLAGS'
5198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5202 # Find a good install program. We prefer a C program (faster),
5203 # so one script is as good as another. But avoid the broken or
5204 # incompatible versions:
5205 # SysV /etc/install, /usr/sbin/install
5206 # SunOS /usr/etc/install
5207 # IRIX /sbin/install
5208 # AIX /bin/install
5209 # AmigaOS /C/install, which installs bootblocks on floppy discs
5210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5213 # OS/2's system install, which has a completely different semantic
5214 # ./install, which can be erroneously created by make from ./install.sh.
5215 # Reject install programs that cannot install multiple files.
5216 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5217 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5218 if test -z "$INSTALL"; then
5219 if test "${ac_cv_path_install+set}" = set; then
5220 $as_echo_n "(cached) " >&6
5221 else
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in $PATH
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 # Account for people who put trailing slashes in PATH elements.
5228 case $as_dir/ in
5229 ./ | .// | /cC/* | \
5230 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5231 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5232 /usr/ucb/* ) ;;
5234 # OSF1 and SCO ODT 3.0 have their own names for install.
5235 # Don't use installbsd from OSF since it installs stuff as root
5236 # by default.
5237 for ac_prog in ginstall scoinst install; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5240 if test $ac_prog = install &&
5241 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5242 # AIX install. It has an incompatible calling convention.
5244 elif test $ac_prog = install &&
5245 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5246 # program-specific install script used by HP pwplus--don't use.
5248 else
5249 rm -rf conftest.one conftest.two conftest.dir
5250 echo one > conftest.one
5251 echo two > conftest.two
5252 mkdir conftest.dir
5253 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5254 test -s conftest.one && test -s conftest.two &&
5255 test -s conftest.dir/conftest.one &&
5256 test -s conftest.dir/conftest.two
5257 then
5258 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5259 break 3
5263 done
5264 done
5266 esac
5268 done
5269 IFS=$as_save_IFS
5271 rm -rf conftest.one conftest.two conftest.dir
5274 if test "${ac_cv_path_install+set}" = set; then
5275 INSTALL=$ac_cv_path_install
5276 else
5277 # As a last resort, use the slow shell script. Don't cache a
5278 # value for INSTALL within a source directory, because that will
5279 # break other packages using the cache if that directory is
5280 # removed, or if the value is a relative name.
5281 INSTALL=$ac_install_sh
5284 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5285 $as_echo "$INSTALL" >&6; }
5287 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5288 # It thinks the first close brace ends the variable substitution.
5289 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5291 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5293 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5295 if test "x$RANLIB" = x; then
5296 if test -n "$ac_tool_prefix"; then
5297 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5298 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5299 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if test "${ac_cv_prog_RANLIB+set}" = set; then
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$RANLIB"; then
5305 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5318 done
5319 done
5320 IFS=$as_save_IFS
5324 RANLIB=$ac_cv_prog_RANLIB
5325 if test -n "$RANLIB"; then
5326 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5327 $as_echo "$RANLIB" >&6; }
5328 else
5329 { $as_echo "$as_me:$LINENO: result: no" >&5
5330 $as_echo "no" >&6; }
5335 if test -z "$ac_cv_prog_RANLIB"; then
5336 ac_ct_RANLIB=$RANLIB
5337 # Extract the first word of "ranlib", so it can be a program name with args.
5338 set dummy ranlib; ac_word=$2
5339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$ac_ct_RANLIB"; then
5345 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_ac_ct_RANLIB="ranlib"
5355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5360 IFS=$as_save_IFS
5364 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5365 if test -n "$ac_ct_RANLIB"; then
5366 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5367 $as_echo "$ac_ct_RANLIB" >&6; }
5368 else
5369 { $as_echo "$as_me:$LINENO: result: no" >&5
5370 $as_echo "no" >&6; }
5373 if test "x$ac_ct_RANLIB" = x; then
5374 RANLIB=":"
5375 else
5376 case $cross_compiling:$ac_tool_warned in
5377 yes:)
5378 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5379 whose name does not start with the host triplet. If you think this
5380 configuration is useful to you, please write to autoconf@gnu.org." >&5
5381 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5382 whose name does not start with the host triplet. If you think this
5383 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5384 ac_tool_warned=yes ;;
5385 esac
5386 RANLIB=$ac_ct_RANLIB
5388 else
5389 RANLIB="$ac_cv_prog_RANLIB"
5393 # Extract the first word of "install-info", so it can be a program name with args.
5394 set dummy install-info; ac_word=$2
5395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; }
5397 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5398 $as_echo_n "(cached) " >&6
5399 else
5400 case $INSTALL_INFO in
5401 [\\/]* | ?:[\\/]*)
5402 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406 for as_dir in $PATH
5408 IFS=$as_save_IFS
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5414 break 2
5416 done
5417 done
5418 IFS=$as_save_IFS
5421 esac
5423 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5424 if test -n "$INSTALL_INFO"; then
5425 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5426 $as_echo "$INSTALL_INFO" >&6; }
5427 else
5428 { $as_echo "$as_me:$LINENO: result: no" >&5
5429 $as_echo "no" >&6; }
5433 # Extract the first word of "install-info", so it can be a program name with args.
5434 set dummy install-info; ac_word=$2
5435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5436 $as_echo_n "checking for $ac_word... " >&6; }
5437 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5438 $as_echo_n "(cached) " >&6
5439 else
5440 case $INSTALL_INFO in
5441 [\\/]* | ?:[\\/]*)
5442 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in /usr/sbin
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 break 2
5456 done
5457 done
5458 IFS=$as_save_IFS
5461 esac
5463 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5464 if test -n "$INSTALL_INFO"; then
5465 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5466 $as_echo "$INSTALL_INFO" >&6; }
5467 else
5468 { $as_echo "$as_me:$LINENO: result: no" >&5
5469 $as_echo "no" >&6; }
5473 # Extract the first word of "install-info", so it can be a program name with args.
5474 set dummy install-info; ac_word=$2
5475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5476 $as_echo_n "checking for $ac_word... " >&6; }
5477 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5478 $as_echo_n "(cached) " >&6
5479 else
5480 case $INSTALL_INFO in
5481 [\\/]* | ?:[\\/]*)
5482 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in /sbin
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5496 done
5497 done
5498 IFS=$as_save_IFS
5500 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5502 esac
5504 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5505 if test -n "$INSTALL_INFO"; then
5506 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5507 $as_echo "$INSTALL_INFO" >&6; }
5508 else
5509 { $as_echo "$as_me:$LINENO: result: no" >&5
5510 $as_echo "no" >&6; }
5514 # Extract the first word of "gzip", so it can be a program name with args.
5515 set dummy gzip; ac_word=$2
5516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5517 $as_echo_n "checking for $ac_word... " >&6; }
5518 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5519 $as_echo_n "(cached) " >&6
5520 else
5521 case $GZIP_PROG in
5522 [\\/]* | ?:[\\/]*)
5523 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5529 IFS=$as_save_IFS
5530 test -z "$as_dir" && as_dir=.
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5533 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5534 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5535 break 2
5537 done
5538 done
5539 IFS=$as_save_IFS
5542 esac
5544 GZIP_PROG=$ac_cv_path_GZIP_PROG
5545 if test -n "$GZIP_PROG"; then
5546 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5547 $as_echo "$GZIP_PROG" >&6; }
5548 else
5549 { $as_echo "$as_me:$LINENO: result: no" >&5
5550 $as_echo "no" >&6; }
5556 ## Need makeinfo >= 4.6 (?) to build the manuals.
5557 # Extract the first word of "makeinfo", so it can be a program name with args.
5558 set dummy makeinfo; ac_word=$2
5559 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5560 $as_echo_n "checking for $ac_word... " >&6; }
5561 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5562 $as_echo_n "(cached) " >&6
5563 else
5564 case $MAKEINFO in
5565 [\\/]* | ?:[\\/]*)
5566 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5570 for as_dir in $PATH
5572 IFS=$as_save_IFS
5573 test -z "$as_dir" && as_dir=.
5574 for ac_exec_ext in '' $ac_executable_extensions; do
5575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5576 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5578 break 2
5580 done
5581 done
5582 IFS=$as_save_IFS
5584 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5586 esac
5588 MAKEINFO=$ac_cv_path_MAKEINFO
5589 if test -n "$MAKEINFO"; then
5590 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5591 $as_echo "$MAKEINFO" >&6; }
5592 else
5593 { $as_echo "$as_me:$LINENO: result: no" >&5
5594 $as_echo "no" >&6; }
5598 if test "$MAKEINFO" != "no" && \
5599 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
5600 MAKEINFO=no
5603 ## Makeinfo is unusual. For a released Emacs, the manuals are
5604 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5605 ## therefore in the category of "special tools" not normally required, which
5606 ## configure does not have to check for (eg autoconf itself).
5607 ## In a Bazaar checkout on the other hand, the manuals are not included.
5608 ## So makeinfo is a requirement to build from Bazaar, and configure
5609 ## should test for it as it does for any other build requirement.
5610 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5611 ## with pre-built manuals, from a Bazaar checkout.
5612 if test "$MAKEINFO" = "no"; then
5613 if test "x${with_makeinfo}" = "xno"; then
5614 MAKEINFO=off
5615 elif ! test -e $srcdir/info/emacs; then
5616 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5617 source tree does not seem to have pre-built manuals in the \`info' directory.
5618 Either install a suitable version of makeinfo, or re-run configure
5619 with the \`--without-makeinfo' option to build without the manuals. " >&5
5620 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5621 source tree does not seem to have pre-built manuals in the \`info' directory.
5622 Either install a suitable version of makeinfo, or re-run configure
5623 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5624 { (exit 1); exit 1; }; }
5629 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5630 then
5631 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5634 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5635 then
5636 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5640 late_LDFLAGS=$LDFLAGS
5641 if test "$GCC" = yes; then
5642 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5643 else
5644 LDFLAGS="$LDFLAGS -znocombreloc"
5647 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5648 $as_echo_n "checking for -znocombreloc... " >&6; }
5649 cat >conftest.$ac_ext <<_ACEOF
5650 main(){return 0;}
5651 _ACEOF
5652 rm -f conftest.$ac_objext conftest$ac_exeext
5653 if { (ac_try="$ac_link"
5654 case "(($ac_try" in
5655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5656 *) ac_try_echo=$ac_try;;
5657 esac
5658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5659 $as_echo "$ac_try_echo") >&5
5660 (eval "$ac_link") 2>conftest.er1
5661 ac_status=$?
5662 grep -v '^ *+' conftest.er1 >conftest.err
5663 rm -f conftest.er1
5664 cat conftest.err >&5
5665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } && {
5667 test -z "$ac_c_werror_flag" ||
5668 test ! -s conftest.err
5669 } && test -s conftest$ac_exeext && {
5670 test "$cross_compiling" = yes ||
5671 $as_test_x conftest$ac_exeext
5672 }; then
5673 { $as_echo "$as_me:$LINENO: result: yes" >&5
5674 $as_echo "yes" >&6; }
5675 else
5676 $as_echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 LDFLAGS=$late_LDFLAGS
5680 { $as_echo "$as_me:$LINENO: result: no" >&5
5681 $as_echo "no" >&6; }
5684 rm -rf conftest.dSYM
5685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5686 conftest$ac_exeext conftest.$ac_ext
5688 #### Extract some information from the operating system and machine files.
5690 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5691 - which libraries the lib-src programs will want, and
5692 - whether the GNU malloc routines are usable..." >&5
5693 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5694 - which libraries the lib-src programs will want, and
5695 - whether the GNU malloc routines are usable..." >&6;}
5697 ### First figure out CFLAGS (which we use for running the compiler here)
5698 ### and REAL_CFLAGS (which we use for real compilation).
5699 ### The two are the same except on a few systems, where they are made
5700 ### different to work around various lossages. For example,
5701 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5702 ### as implying static linking.
5704 ### If the CFLAGS env var is specified, we use that value
5705 ### instead of the default.
5707 ### It's not important that this name contain the PID; you can't run
5708 ### two configures in the same directory and have anything work
5709 ### anyway.
5710 tempcname="conftest.c"
5712 echo '
5713 #include "'${srcdir}'/src/'${opsysfile}'"
5714 #include "'${srcdir}'/src/'${machfile}'"
5715 #ifndef LIBS_MACHINE
5716 #define LIBS_MACHINE
5717 #endif
5718 #ifndef LIBS_SYSTEM
5719 #define LIBS_SYSTEM
5720 #endif
5721 #ifndef C_SWITCH_SYSTEM
5722 #define C_SWITCH_SYSTEM
5723 #endif
5724 #ifndef C_SWITCH_MACHINE
5725 #define C_SWITCH_MACHINE
5726 #endif
5727 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5728 configure___ c_switch_system=C_SWITCH_SYSTEM
5729 configure___ c_switch_machine=C_SWITCH_MACHINE
5731 #ifndef LIB_X11_LIB
5732 #define LIB_X11_LIB -lX11
5733 #endif
5735 #ifndef LIBX11_SYSTEM
5736 #define LIBX11_SYSTEM
5737 #endif
5738 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5740 #ifdef UNEXEC
5741 configure___ unexec=UNEXEC
5742 #else
5743 configure___ unexec=unexec.o
5744 #endif
5746 #ifdef SYSTEM_MALLOC
5747 configure___ system_malloc=yes
5748 #else
5749 configure___ system_malloc=no
5750 #endif
5752 #ifdef USE_MMAP_FOR_BUFFERS
5753 configure___ use_mmap_for_buffers=yes
5754 #else
5755 configure___ use_mmap_for_buffers=no
5756 #endif
5758 #ifndef C_DEBUG_SWITCH
5759 #define C_DEBUG_SWITCH -g
5760 #endif
5762 #ifndef C_OPTIMIZE_SWITCH
5763 #ifdef __GNUC__
5764 #define C_OPTIMIZE_SWITCH -O2
5765 #else
5766 #define C_OPTIMIZE_SWITCH -O
5767 #endif
5768 #endif
5770 #ifndef C_WARNINGS_SWITCH
5771 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5772 #endif
5774 #ifndef LD_SWITCH_MACHINE
5775 #define LD_SWITCH_MACHINE
5776 #endif
5778 #ifndef LD_SWITCH_SYSTEM
5779 #define LD_SWITCH_SYSTEM
5780 #endif
5782 #ifndef LD_SWITCH_X_SITE_AUX
5783 #define LD_SWITCH_X_SITE_AUX
5784 #endif
5786 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5787 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5789 #ifdef THIS_IS_CONFIGURE
5791 /* Get the CFLAGS for tests in configure. */
5792 #ifdef __GNUC__
5793 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5794 #else
5795 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5796 #endif
5798 #else /* not THIS_IS_CONFIGURE */
5800 /* Get the CFLAGS for real compilation. */
5801 #ifdef __GNUC__
5802 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5803 #else
5804 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5805 #endif
5807 #endif /* not THIS_IS_CONFIGURE */
5808 ' > ${tempcname}
5810 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5812 # The value of CPP is a quoted variable reference, so we need to do this
5813 # to get its actual value...
5814 CPP=`eval "echo $CPP"`
5815 eval `${CPP} -Isrc ${tempcname} \
5816 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5817 if test "x$SPECIFIED_CFLAGS" = x; then
5818 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5819 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5820 else
5821 REAL_CFLAGS="$CFLAGS"
5823 rm ${tempcname}
5825 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5827 ### Make sure subsequent tests use flags consistent with the build flags.
5829 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5830 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5831 else
5832 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5837 # Check whether --enable-largefile was given.
5838 if test "${enable_largefile+set}" = set; then
5839 enableval=$enable_largefile;
5842 if test "$enable_largefile" != no; then
5844 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5845 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5846 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5847 $as_echo_n "(cached) " >&6
5848 else
5849 ac_cv_sys_largefile_CC=no
5850 if test "$GCC" != yes; then
5851 ac_save_CC=$CC
5852 while :; do
5853 # IRIX 6.2 and later do not support large files by default,
5854 # so use the C compiler's -n32 option if that helps.
5855 cat >conftest.$ac_ext <<_ACEOF
5856 /* confdefs.h. */
5857 _ACEOF
5858 cat confdefs.h >>conftest.$ac_ext
5859 cat >>conftest.$ac_ext <<_ACEOF
5860 /* end confdefs.h. */
5861 #include <sys/types.h>
5862 /* Check that off_t can represent 2**63 - 1 correctly.
5863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5864 since some C++ compilers masquerading as C compilers
5865 incorrectly reject 9223372036854775807. */
5866 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5868 && LARGE_OFF_T % 2147483647 == 1)
5869 ? 1 : -1];
5871 main ()
5875 return 0;
5877 _ACEOF
5878 rm -f conftest.$ac_objext
5879 if { (ac_try="$ac_compile"
5880 case "(($ac_try" in
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5883 esac
5884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5885 $as_echo "$ac_try_echo") >&5
5886 (eval "$ac_compile") 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest.$ac_objext; then
5896 break
5897 else
5898 $as_echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5904 rm -f core conftest.err conftest.$ac_objext
5905 CC="$CC -n32"
5906 rm -f conftest.$ac_objext
5907 if { (ac_try="$ac_compile"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5913 $as_echo "$ac_try_echo") >&5
5914 (eval "$ac_compile") 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } && {
5921 test -z "$ac_c_werror_flag" ||
5922 test ! -s conftest.err
5923 } && test -s conftest.$ac_objext; then
5924 ac_cv_sys_largefile_CC=' -n32'; break
5925 else
5926 $as_echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5932 rm -f core conftest.err conftest.$ac_objext
5933 break
5934 done
5935 CC=$ac_save_CC
5936 rm -f conftest.$ac_ext
5939 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5940 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5941 if test "$ac_cv_sys_largefile_CC" != no; then
5942 CC=$CC$ac_cv_sys_largefile_CC
5945 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5946 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5947 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5948 $as_echo_n "(cached) " >&6
5949 else
5950 while :; do
5951 cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h. */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5957 #include <sys/types.h>
5958 /* Check that off_t can represent 2**63 - 1 correctly.
5959 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5960 since some C++ compilers masquerading as C compilers
5961 incorrectly reject 9223372036854775807. */
5962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5963 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5964 && LARGE_OFF_T % 2147483647 == 1)
5965 ? 1 : -1];
5967 main ()
5971 return 0;
5973 _ACEOF
5974 rm -f conftest.$ac_objext
5975 if { (ac_try="$ac_compile"
5976 case "(($ac_try" in
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5979 esac
5980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5981 $as_echo "$ac_try_echo") >&5
5982 (eval "$ac_compile") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } && {
5989 test -z "$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 } && test -s conftest.$ac_objext; then
5992 ac_cv_sys_file_offset_bits=no; break
5993 else
5994 $as_echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001 cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h. */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 #define _FILE_OFFSET_BITS 64
6008 #include <sys/types.h>
6009 /* Check that off_t can represent 2**63 - 1 correctly.
6010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6011 since some C++ compilers masquerading as C compilers
6012 incorrectly reject 9223372036854775807. */
6013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6015 && LARGE_OFF_T % 2147483647 == 1)
6016 ? 1 : -1];
6018 main ()
6022 return 0;
6024 _ACEOF
6025 rm -f conftest.$ac_objext
6026 if { (ac_try="$ac_compile"
6027 case "(($ac_try" in
6028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6029 *) ac_try_echo=$ac_try;;
6030 esac
6031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6032 $as_echo "$ac_try_echo") >&5
6033 (eval "$ac_compile") 2>conftest.er1
6034 ac_status=$?
6035 grep -v '^ *+' conftest.er1 >conftest.err
6036 rm -f conftest.er1
6037 cat conftest.err >&5
6038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } && {
6040 test -z "$ac_c_werror_flag" ||
6041 test ! -s conftest.err
6042 } && test -s conftest.$ac_objext; then
6043 ac_cv_sys_file_offset_bits=64; break
6044 else
6045 $as_echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 ac_cv_sys_file_offset_bits=unknown
6053 break
6054 done
6056 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6057 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6058 case $ac_cv_sys_file_offset_bits in #(
6059 no | unknown) ;;
6061 cat >>confdefs.h <<_ACEOF
6062 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6063 _ACEOF
6065 esac
6066 rm -rf conftest*
6067 if test $ac_cv_sys_file_offset_bits = unknown; then
6068 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6069 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6070 if test "${ac_cv_sys_large_files+set}" = set; then
6071 $as_echo_n "(cached) " >&6
6072 else
6073 while :; do
6074 cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h. */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6080 #include <sys/types.h>
6081 /* Check that off_t can represent 2**63 - 1 correctly.
6082 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6083 since some C++ compilers masquerading as C compilers
6084 incorrectly reject 9223372036854775807. */
6085 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6086 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6087 && LARGE_OFF_T % 2147483647 == 1)
6088 ? 1 : -1];
6090 main ()
6094 return 0;
6096 _ACEOF
6097 rm -f conftest.$ac_objext
6098 if { (ac_try="$ac_compile"
6099 case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102 esac
6103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6104 $as_echo "$ac_try_echo") >&5
6105 (eval "$ac_compile") 2>conftest.er1
6106 ac_status=$?
6107 grep -v '^ *+' conftest.er1 >conftest.err
6108 rm -f conftest.er1
6109 cat conftest.err >&5
6110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } && {
6112 test -z "$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6114 } && test -s conftest.$ac_objext; then
6115 ac_cv_sys_large_files=no; break
6116 else
6117 $as_echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 #define _LARGE_FILES 1
6131 #include <sys/types.h>
6132 /* Check that off_t can represent 2**63 - 1 correctly.
6133 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6134 since some C++ compilers masquerading as C compilers
6135 incorrectly reject 9223372036854775807. */
6136 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6137 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6138 && LARGE_OFF_T % 2147483647 == 1)
6139 ? 1 : -1];
6141 main ()
6145 return 0;
6147 _ACEOF
6148 rm -f conftest.$ac_objext
6149 if { (ac_try="$ac_compile"
6150 case "(($ac_try" in
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6153 esac
6154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6155 $as_echo "$ac_try_echo") >&5
6156 (eval "$ac_compile") 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && {
6163 test -z "$ac_c_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_objext; then
6166 ac_cv_sys_large_files=1; break
6167 else
6168 $as_echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6175 ac_cv_sys_large_files=unknown
6176 break
6177 done
6179 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6180 $as_echo "$ac_cv_sys_large_files" >&6; }
6181 case $ac_cv_sys_large_files in #(
6182 no | unknown) ;;
6184 cat >>confdefs.h <<_ACEOF
6185 #define _LARGE_FILES $ac_cv_sys_large_files
6186 _ACEOF
6188 esac
6189 rm -rf conftest*
6195 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6196 ### be located in either /usr/lib64 or /usr/lib.
6197 ### In some rare cases, /usr/lib64 exists but does not contain the
6198 ### relevant files (bug#1287). Hence test for crtn.o.
6199 case "${canonical}" in
6200 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6201 if test -e /usr/lib64/crtn.o; then
6203 cat >>confdefs.h <<\_ACEOF
6204 #define HAVE_LIB64_DIR 1
6205 _ACEOF
6208 esac
6213 if test "${with_sound}" != "no"; then
6214 # Sound support for GNU/Linux and the free BSDs.
6218 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6220 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6222 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6223 $as_echo_n "checking for $ac_header... " >&6; }
6224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6225 $as_echo_n "(cached) " >&6
6227 ac_res=`eval 'as_val=${'$as_ac_Header'}
6228 $as_echo "$as_val"'`
6229 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6230 $as_echo "$ac_res" >&6; }
6231 else
6232 # Is the header compilable?
6233 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6234 $as_echo_n "checking $ac_header usability... " >&6; }
6235 cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h. */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h. */
6241 $ac_includes_default
6242 #include <$ac_header>
6243 _ACEOF
6244 rm -f conftest.$ac_objext
6245 if { (ac_try="$ac_compile"
6246 case "(($ac_try" in
6247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6249 esac
6250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6251 $as_echo "$ac_try_echo") >&5
6252 (eval "$ac_compile") 2>conftest.er1
6253 ac_status=$?
6254 grep -v '^ *+' conftest.er1 >conftest.err
6255 rm -f conftest.er1
6256 cat conftest.err >&5
6257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6258 (exit $ac_status); } && {
6259 test -z "$ac_c_werror_flag" ||
6260 test ! -s conftest.err
6261 } && test -s conftest.$ac_objext; then
6262 ac_header_compiler=yes
6263 else
6264 $as_echo "$as_me: failed program was:" >&5
6265 sed 's/^/| /' conftest.$ac_ext >&5
6267 ac_header_compiler=no
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6272 $as_echo "$ac_header_compiler" >&6; }
6274 # Is the header present?
6275 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6276 $as_echo_n "checking $ac_header presence... " >&6; }
6277 cat >conftest.$ac_ext <<_ACEOF
6278 /* confdefs.h. */
6279 _ACEOF
6280 cat confdefs.h >>conftest.$ac_ext
6281 cat >>conftest.$ac_ext <<_ACEOF
6282 /* end confdefs.h. */
6283 #include <$ac_header>
6284 _ACEOF
6285 if { (ac_try="$ac_cpp conftest.$ac_ext"
6286 case "(($ac_try" in
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6289 esac
6290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6291 $as_echo "$ac_try_echo") >&5
6292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6293 ac_status=$?
6294 grep -v '^ *+' conftest.er1 >conftest.err
6295 rm -f conftest.er1
6296 cat conftest.err >&5
6297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298 (exit $ac_status); } >/dev/null && {
6299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6300 test ! -s conftest.err
6301 }; then
6302 ac_header_preproc=yes
6303 else
6304 $as_echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 ac_header_preproc=no
6310 rm -f conftest.err conftest.$ac_ext
6311 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6312 $as_echo "$ac_header_preproc" >&6; }
6314 # So? What about this header?
6315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6316 yes:no: )
6317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6318 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6320 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6321 ac_header_preproc=yes
6323 no:yes:* )
6324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6325 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6327 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6329 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6331 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6335 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6338 esac
6339 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6340 $as_echo_n "checking for $ac_header... " >&6; }
6341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6342 $as_echo_n "(cached) " >&6
6343 else
6344 eval "$as_ac_Header=\$ac_header_preproc"
6346 ac_res=`eval 'as_val=${'$as_ac_Header'}
6347 $as_echo "$as_val"'`
6348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6349 $as_echo "$ac_res" >&6; }
6352 if test `eval 'as_val=${'$as_ac_Header'}
6353 $as_echo "$as_val"'` = yes; then
6354 cat >>confdefs.h <<_ACEOF
6355 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6356 _ACEOF
6360 done
6362 # Emulation library used on NetBSD.
6363 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6364 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6365 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6366 $as_echo_n "(cached) " >&6
6367 else
6368 ac_check_lib_save_LIBS=$LIBS
6369 LIBS="-lossaudio $LIBS"
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6377 /* Override any GCC internal prototype to avoid an error.
6378 Use char because int might match the return type of a GCC
6379 builtin and then its argument prototype would still apply. */
6380 #ifdef __cplusplus
6381 extern "C"
6382 #endif
6383 char _oss_ioctl ();
6385 main ()
6387 return _oss_ioctl ();
6389 return 0;
6391 _ACEOF
6392 rm -f conftest.$ac_objext conftest$ac_exeext
6393 if { (ac_try="$ac_link"
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_link") 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_exeext && {
6410 test "$cross_compiling" = yes ||
6411 $as_test_x conftest$ac_exeext
6412 }; then
6413 ac_cv_lib_ossaudio__oss_ioctl=yes
6414 else
6415 $as_echo "$as_me: failed program was:" >&5
6416 sed 's/^/| /' conftest.$ac_ext >&5
6418 ac_cv_lib_ossaudio__oss_ioctl=no
6421 rm -rf conftest.dSYM
6422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6423 conftest$ac_exeext conftest.$ac_ext
6424 LIBS=$ac_check_lib_save_LIBS
6426 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6427 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6428 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6429 LIBSOUND=-lossaudio
6430 else
6431 LIBSOUND=
6436 ALSA_REQUIRED=1.0.0
6437 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6439 succeeded=no
6441 # Extract the first word of "pkg-config", so it can be a program name with args.
6442 set dummy pkg-config; ac_word=$2
6443 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6446 $as_echo_n "(cached) " >&6
6447 else
6448 case $PKG_CONFIG in
6449 [\\/]* | ?:[\\/]*)
6450 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6456 IFS=$as_save_IFS
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6461 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6462 break 2
6464 done
6465 done
6466 IFS=$as_save_IFS
6468 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6470 esac
6472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6473 if test -n "$PKG_CONFIG"; then
6474 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6475 $as_echo "$PKG_CONFIG" >&6; }
6476 else
6477 { $as_echo "$as_me:$LINENO: result: no" >&5
6478 $as_echo "no" >&6; }
6483 if test "$PKG_CONFIG" = "no" ; then
6484 HAVE_ALSA=no
6485 else
6486 PKG_CONFIG_MIN_VERSION=0.9.0
6487 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6488 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6489 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6491 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6492 { $as_echo "$as_me:$LINENO: result: yes" >&5
6493 $as_echo "yes" >&6; }
6494 succeeded=yes
6496 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6497 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6498 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6499 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6500 $as_echo "$ALSA_CFLAGS" >&6; }
6502 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6503 $as_echo_n "checking ALSA_LIBS... " >&6; }
6504 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6505 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6506 $as_echo "$ALSA_LIBS" >&6; }
6507 else
6508 { $as_echo "$as_me:$LINENO: result: no" >&5
6509 $as_echo "no" >&6; }
6510 ALSA_CFLAGS=""
6511 ALSA_LIBS=""
6512 ## If we have a custom action on failure, don't print errors, but
6513 ## do set a variable so people can do so.
6514 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6520 else
6521 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6522 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6526 if test $succeeded = yes; then
6527 HAVE_ALSA=yes
6528 else
6529 HAVE_ALSA=no
6532 if test $HAVE_ALSA = yes; then
6533 SAVE_CFLAGS="$CFLAGS"
6534 SAVE_LDFLAGS="$LDFLAGS"
6535 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6536 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6537 cat >conftest.$ac_ext <<_ACEOF
6538 /* confdefs.h. */
6539 _ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 #include <asoundlib.h>
6545 main ()
6547 snd_lib_error_set_handler (0);
6549 return 0;
6551 _ACEOF
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6554 case "(($ac_try" in
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6557 esac
6558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559 $as_echo "$ac_try_echo") >&5
6560 (eval "$ac_compile") 2>conftest.er1
6561 ac_status=$?
6562 grep -v '^ *+' conftest.er1 >conftest.err
6563 rm -f conftest.er1
6564 cat conftest.err >&5
6565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest.$ac_objext; then
6570 emacs_alsa_normal=yes
6571 else
6572 $as_echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 emacs_alsa_normal=no
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 if test "$emacs_alsa_normal" != yes; then
6580 cat >conftest.$ac_ext <<_ACEOF
6581 /* confdefs.h. */
6582 _ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 #include <alsa/asoundlib.h>
6588 main ()
6590 snd_lib_error_set_handler (0);
6592 return 0;
6594 _ACEOF
6595 rm -f conftest.$ac_objext
6596 if { (ac_try="$ac_compile"
6597 case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600 esac
6601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6602 $as_echo "$ac_try_echo") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_c_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.$ac_objext; then
6613 emacs_alsa_subdir=yes
6614 else
6615 $as_echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 emacs_alsa_subdir=no
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622 if test "$emacs_alsa_subdir" != yes; then
6623 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6624 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6625 { (exit 1); exit 1; }; }
6627 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6630 CFLAGS="$SAVE_CFLAGS"
6631 LDFLAGS="$SAVE_LDFLAGS"
6632 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6633 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6635 cat >>confdefs.h <<\_ACEOF
6636 #define HAVE_ALSA 1
6637 _ACEOF
6668 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6669 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6670 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6671 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6672 sys/utsname.h pwd.h
6674 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6676 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6677 $as_echo_n "checking for $ac_header... " >&6; }
6678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6679 $as_echo_n "(cached) " >&6
6681 ac_res=`eval 'as_val=${'$as_ac_Header'}
6682 $as_echo "$as_val"'`
6683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6684 $as_echo "$ac_res" >&6; }
6685 else
6686 # Is the header compilable?
6687 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6688 $as_echo_n "checking $ac_header usability... " >&6; }
6689 cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h. */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h. */
6695 $ac_includes_default
6696 #include <$ac_header>
6697 _ACEOF
6698 rm -f conftest.$ac_objext
6699 if { (ac_try="$ac_compile"
6700 case "(($ac_try" in
6701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6703 esac
6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705 $as_echo "$ac_try_echo") >&5
6706 (eval "$ac_compile") 2>conftest.er1
6707 ac_status=$?
6708 grep -v '^ *+' conftest.er1 >conftest.err
6709 rm -f conftest.er1
6710 cat conftest.err >&5
6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest.$ac_objext; then
6716 ac_header_compiler=yes
6717 else
6718 $as_echo "$as_me: failed program was:" >&5
6719 sed 's/^/| /' conftest.$ac_ext >&5
6721 ac_header_compiler=no
6724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6725 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6726 $as_echo "$ac_header_compiler" >&6; }
6728 # Is the header present?
6729 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6730 $as_echo_n "checking $ac_header presence... " >&6; }
6731 cat >conftest.$ac_ext <<_ACEOF
6732 /* confdefs.h. */
6733 _ACEOF
6734 cat confdefs.h >>conftest.$ac_ext
6735 cat >>conftest.$ac_ext <<_ACEOF
6736 /* end confdefs.h. */
6737 #include <$ac_header>
6738 _ACEOF
6739 if { (ac_try="$ac_cpp conftest.$ac_ext"
6740 case "(($ac_try" in
6741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742 *) ac_try_echo=$ac_try;;
6743 esac
6744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6745 $as_echo "$ac_try_echo") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev/null && {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6755 }; then
6756 ac_header_preproc=yes
6757 else
6758 $as_echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.$ac_ext >&5
6761 ac_header_preproc=no
6764 rm -f conftest.err conftest.$ac_ext
6765 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6766 $as_echo "$ac_header_preproc" >&6; }
6768 # So? What about this header?
6769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6770 yes:no: )
6771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6772 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6774 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6775 ac_header_preproc=yes
6777 no:yes:* )
6778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6779 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6781 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6783 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6785 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6787 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6789 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6792 esac
6793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6794 $as_echo_n "checking for $ac_header... " >&6; }
6795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6796 $as_echo_n "(cached) " >&6
6797 else
6798 eval "$as_ac_Header=\$ac_header_preproc"
6800 ac_res=`eval 'as_val=${'$as_ac_Header'}
6801 $as_echo "$as_val"'`
6802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6803 $as_echo "$ac_res" >&6; }
6806 if test `eval 'as_val=${'$as_ac_Header'}
6807 $as_echo "$as_val"'` = yes; then
6808 cat >>confdefs.h <<_ACEOF
6809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6810 _ACEOF
6814 done
6817 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6818 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6819 cat >conftest.$ac_ext <<_ACEOF
6820 /* confdefs.h. */
6821 _ACEOF
6822 cat confdefs.h >>conftest.$ac_ext
6823 cat >>conftest.$ac_ext <<_ACEOF
6824 /* end confdefs.h. */
6825 #include <sys/personality.h>
6827 main ()
6829 personality (PER_LINUX32)
6831 return 0;
6833 _ACEOF
6834 rm -f conftest.$ac_objext
6835 if { (ac_try="$ac_compile"
6836 case "(($ac_try" in
6837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6838 *) ac_try_echo=$ac_try;;
6839 esac
6840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6841 $as_echo "$ac_try_echo") >&5
6842 (eval "$ac_compile") 2>conftest.er1
6843 ac_status=$?
6844 grep -v '^ *+' conftest.er1 >conftest.err
6845 rm -f conftest.er1
6846 cat conftest.err >&5
6847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } && {
6849 test -z "$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6851 } && test -s conftest.$ac_objext; then
6852 emacs_cv_personality_linux32=yes
6853 else
6854 $as_echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 emacs_cv_personality_linux32=no
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6862 $as_echo "$emacs_cv_personality_linux32" >&6; }
6864 if test $emacs_cv_personality_linux32 = yes; then
6866 cat >>confdefs.h <<\_ACEOF
6867 #define HAVE_PERSONALITY_LINUX32 1
6868 _ACEOF
6873 for ac_header in term.h
6875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6877 $as_echo_n "checking for $ac_header... " >&6; }
6878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6879 $as_echo_n "(cached) " >&6
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <$ac_header>
6888 _ACEOF
6889 if { (ac_try="$ac_cpp conftest.$ac_ext"
6890 case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6893 esac
6894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6895 $as_echo "$ac_try_echo") >&5
6896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6897 ac_status=$?
6898 grep -v '^ *+' conftest.er1 >conftest.err
6899 rm -f conftest.er1
6900 cat conftest.err >&5
6901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); } >/dev/null && {
6903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6904 test ! -s conftest.err
6905 }; then
6906 eval "$as_ac_Header=yes"
6907 else
6908 $as_echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6911 eval "$as_ac_Header=no"
6914 rm -f conftest.err conftest.$ac_ext
6916 ac_res=`eval 'as_val=${'$as_ac_Header'}
6917 $as_echo "$as_val"'`
6918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6919 $as_echo "$ac_res" >&6; }
6920 if test `eval 'as_val=${'$as_ac_Header'}
6921 $as_echo "$as_val"'` = yes; then
6922 cat >>confdefs.h <<_ACEOF
6923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6924 _ACEOF
6928 done
6930 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6931 $as_echo_n "checking for ANSI C header files... " >&6; }
6932 if test "${ac_cv_header_stdc+set}" = set; then
6933 $as_echo_n "(cached) " >&6
6934 else
6935 cat >conftest.$ac_ext <<_ACEOF
6936 /* confdefs.h. */
6937 _ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 #include <stdlib.h>
6942 #include <stdarg.h>
6943 #include <string.h>
6944 #include <float.h>
6947 main ()
6951 return 0;
6953 _ACEOF
6954 rm -f conftest.$ac_objext
6955 if { (ac_try="$ac_compile"
6956 case "(($ac_try" in
6957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958 *) ac_try_echo=$ac_try;;
6959 esac
6960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6961 $as_echo "$ac_try_echo") >&5
6962 (eval "$ac_compile") 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
6972 ac_cv_header_stdc=yes
6973 else
6974 $as_echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 ac_cv_header_stdc=no
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 if test $ac_cv_header_stdc = yes; then
6983 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6984 cat >conftest.$ac_ext <<_ACEOF
6985 /* confdefs.h. */
6986 _ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h. */
6990 #include <string.h>
6992 _ACEOF
6993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6994 $EGREP "memchr" >/dev/null 2>&1; then
6996 else
6997 ac_cv_header_stdc=no
6999 rm -f conftest*
7003 if test $ac_cv_header_stdc = yes; then
7004 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7005 cat >conftest.$ac_ext <<_ACEOF
7006 /* confdefs.h. */
7007 _ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7011 #include <stdlib.h>
7013 _ACEOF
7014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7015 $EGREP "free" >/dev/null 2>&1; then
7017 else
7018 ac_cv_header_stdc=no
7020 rm -f conftest*
7024 if test $ac_cv_header_stdc = yes; then
7025 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7026 if test "$cross_compiling" = yes; then
7028 else
7029 cat >conftest.$ac_ext <<_ACEOF
7030 /* confdefs.h. */
7031 _ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7035 #include <ctype.h>
7036 #include <stdlib.h>
7037 #if ((' ' & 0x0FF) == 0x020)
7038 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7039 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7040 #else
7041 # define ISLOWER(c) \
7042 (('a' <= (c) && (c) <= 'i') \
7043 || ('j' <= (c) && (c) <= 'r') \
7044 || ('s' <= (c) && (c) <= 'z'))
7045 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7046 #endif
7048 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7050 main ()
7052 int i;
7053 for (i = 0; i < 256; i++)
7054 if (XOR (islower (i), ISLOWER (i))
7055 || toupper (i) != TOUPPER (i))
7056 return 2;
7057 return 0;
7059 _ACEOF
7060 rm -f conftest$ac_exeext
7061 if { (ac_try="$ac_link"
7062 case "(($ac_try" in
7063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064 *) ac_try_echo=$ac_try;;
7065 esac
7066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7067 $as_echo "$ac_try_echo") >&5
7068 (eval "$ac_link") 2>&5
7069 ac_status=$?
7070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7072 { (case "(($ac_try" in
7073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7074 *) ac_try_echo=$ac_try;;
7075 esac
7076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7077 $as_echo "$ac_try_echo") >&5
7078 (eval "$ac_try") 2>&5
7079 ac_status=$?
7080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; }; then
7083 else
7084 $as_echo "$as_me: program exited with status $ac_status" >&5
7085 $as_echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7088 ( exit $ac_status )
7089 ac_cv_header_stdc=no
7091 rm -rf conftest.dSYM
7092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7098 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7099 $as_echo "$ac_cv_header_stdc" >&6; }
7100 if test $ac_cv_header_stdc = yes; then
7102 cat >>confdefs.h <<\_ACEOF
7103 #define STDC_HEADERS 1
7104 _ACEOF
7108 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7109 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7110 if test "${ac_cv_header_time+set}" = set; then
7111 $as_echo_n "(cached) " >&6
7112 else
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 #include <sys/types.h>
7120 #include <sys/time.h>
7121 #include <time.h>
7124 main ()
7126 if ((struct tm *) 0)
7127 return 0;
7129 return 0;
7131 _ACEOF
7132 rm -f conftest.$ac_objext
7133 if { (ac_try="$ac_compile"
7134 case "(($ac_try" in
7135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7137 esac
7138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7139 $as_echo "$ac_try_echo") >&5
7140 (eval "$ac_compile") 2>conftest.er1
7141 ac_status=$?
7142 grep -v '^ *+' conftest.er1 >conftest.err
7143 rm -f conftest.er1
7144 cat conftest.err >&5
7145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && {
7147 test -z "$ac_c_werror_flag" ||
7148 test ! -s conftest.err
7149 } && test -s conftest.$ac_objext; then
7150 ac_cv_header_time=yes
7151 else
7152 $as_echo "$as_me: failed program was:" >&5
7153 sed 's/^/| /' conftest.$ac_ext >&5
7155 ac_cv_header_time=no
7158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7161 $as_echo "$ac_cv_header_time" >&6; }
7162 if test $ac_cv_header_time = yes; then
7164 cat >>confdefs.h <<\_ACEOF
7165 #define TIME_WITH_SYS_TIME 1
7166 _ACEOF
7170 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7171 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7172 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7173 $as_echo_n "(cached) " >&6
7174 else
7175 cat >conftest.$ac_ext <<_ACEOF
7176 /* confdefs.h. */
7177 _ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 $ac_includes_default
7183 main ()
7185 #ifndef sys_siglist
7186 (void) sys_siglist;
7187 #endif
7190 return 0;
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7195 case "(($ac_try" in
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7198 esac
7199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7200 $as_echo "$ac_try_echo") >&5
7201 (eval "$ac_compile") 2>conftest.er1
7202 ac_status=$?
7203 grep -v '^ *+' conftest.er1 >conftest.err
7204 rm -f conftest.er1
7205 cat conftest.err >&5
7206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); } && {
7208 test -z "$ac_c_werror_flag" ||
7209 test ! -s conftest.err
7210 } && test -s conftest.$ac_objext; then
7211 ac_cv_have_decl_sys_siglist=yes
7212 else
7213 $as_echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7216 ac_cv_have_decl_sys_siglist=no
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7222 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7223 if test $ac_cv_have_decl_sys_siglist = yes; then
7225 cat >>confdefs.h <<_ACEOF
7226 #define HAVE_DECL_SYS_SIGLIST 1
7227 _ACEOF
7230 else
7231 cat >>confdefs.h <<_ACEOF
7232 #define HAVE_DECL_SYS_SIGLIST 0
7233 _ACEOF
7239 if test $ac_cv_have_decl_sys_siglist != yes; then
7240 # For Tru64, at least:
7241 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7242 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7243 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7244 $as_echo_n "(cached) " >&6
7245 else
7246 cat >conftest.$ac_ext <<_ACEOF
7247 /* confdefs.h. */
7248 _ACEOF
7249 cat confdefs.h >>conftest.$ac_ext
7250 cat >>conftest.$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 $ac_includes_default
7254 main ()
7256 #ifndef __sys_siglist
7257 (void) __sys_siglist;
7258 #endif
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_have_decl___sys_siglist=yes
7283 else
7284 $as_echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_cv_have_decl___sys_siglist=no
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7293 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7294 if test $ac_cv_have_decl___sys_siglist = yes; then
7296 cat >>confdefs.h <<_ACEOF
7297 #define HAVE_DECL___SYS_SIGLIST 1
7298 _ACEOF
7301 else
7302 cat >>confdefs.h <<_ACEOF
7303 #define HAVE_DECL___SYS_SIGLIST 0
7304 _ACEOF
7310 if test $ac_cv_have_decl___sys_siglist = yes; then
7312 cat >>confdefs.h <<\_ACEOF
7313 #define sys_siglist __sys_siglist
7314 _ACEOF
7318 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7319 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7320 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7321 $as_echo_n "(cached) " >&6
7322 else
7323 cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h. */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <sys/types.h>
7330 #include <sys/wait.h>
7331 #ifndef WEXITSTATUS
7332 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7333 #endif
7334 #ifndef WIFEXITED
7335 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7336 #endif
7339 main ()
7341 int s;
7342 wait (&s);
7343 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7345 return 0;
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355 $as_echo "$ac_try_echo") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 ac_cv_header_sys_wait_h=yes
7367 else
7368 $as_echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7371 ac_cv_header_sys_wait_h=no
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7377 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7378 if test $ac_cv_header_sys_wait_h = yes; then
7380 cat >>confdefs.h <<\_ACEOF
7381 #define HAVE_SYS_WAIT_H 1
7382 _ACEOF
7387 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7388 $as_echo_n "checking for struct utimbuf... " >&6; }
7389 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7390 $as_echo_n "(cached) " >&6
7391 else
7392 cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h. */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 #ifdef TIME_WITH_SYS_TIME
7399 #include <sys/time.h>
7400 #include <time.h>
7401 #else
7402 #ifdef HAVE_SYS_TIME_H
7403 #include <sys/time.h>
7404 #else
7405 #include <time.h>
7406 #endif
7407 #endif
7408 #ifdef HAVE_UTIME_H
7409 #include <utime.h>
7410 #endif
7412 main ()
7414 static struct utimbuf x; x.actime = x.modtime;
7416 return 0;
7418 _ACEOF
7419 rm -f conftest.$ac_objext
7420 if { (ac_try="$ac_compile"
7421 case "(($ac_try" in
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7424 esac
7425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7426 $as_echo "$ac_try_echo") >&5
7427 (eval "$ac_compile") 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } && {
7434 test -z "$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 } && test -s conftest.$ac_objext; then
7437 emacs_cv_struct_utimbuf=yes
7438 else
7439 $as_echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7442 emacs_cv_struct_utimbuf=no
7445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7448 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7449 if test $emacs_cv_struct_utimbuf = yes; then
7451 cat >>confdefs.h <<\_ACEOF
7452 #define HAVE_STRUCT_UTIMBUF 1
7453 _ACEOF
7457 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7458 $as_echo_n "checking return type of signal handlers... " >&6; }
7459 if test "${ac_cv_type_signal+set}" = set; then
7460 $as_echo_n "(cached) " >&6
7461 else
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 #include <sys/types.h>
7469 #include <signal.h>
7472 main ()
7474 return *(signal (0, 0)) (0) == 1;
7476 return 0;
7478 _ACEOF
7479 rm -f conftest.$ac_objext
7480 if { (ac_try="$ac_compile"
7481 case "(($ac_try" in
7482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7484 esac
7485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7486 $as_echo "$ac_try_echo") >&5
7487 (eval "$ac_compile") 2>conftest.er1
7488 ac_status=$?
7489 grep -v '^ *+' conftest.er1 >conftest.err
7490 rm -f conftest.er1
7491 cat conftest.err >&5
7492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest.$ac_objext; then
7497 ac_cv_type_signal=int
7498 else
7499 $as_echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7502 ac_cv_type_signal=void
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7507 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7508 $as_echo "$ac_cv_type_signal" >&6; }
7510 cat >>confdefs.h <<_ACEOF
7511 #define RETSIGTYPE $ac_cv_type_signal
7512 _ACEOF
7516 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7517 $as_echo_n "checking for speed_t... " >&6; }
7518 if test "${emacs_cv_speed_t+set}" = set; then
7519 $as_echo_n "(cached) " >&6
7520 else
7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 #include <termios.h>
7529 main ()
7531 speed_t x = 1;
7533 return 0;
7535 _ACEOF
7536 rm -f conftest.$ac_objext
7537 if { (ac_try="$ac_compile"
7538 case "(($ac_try" in
7539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7540 *) ac_try_echo=$ac_try;;
7541 esac
7542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7543 $as_echo "$ac_try_echo") >&5
7544 (eval "$ac_compile") 2>conftest.er1
7545 ac_status=$?
7546 grep -v '^ *+' conftest.er1 >conftest.err
7547 rm -f conftest.er1
7548 cat conftest.err >&5
7549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); } && {
7551 test -z "$ac_c_werror_flag" ||
7552 test ! -s conftest.err
7553 } && test -s conftest.$ac_objext; then
7554 emacs_cv_speed_t=yes
7555 else
7556 $as_echo "$as_me: failed program was:" >&5
7557 sed 's/^/| /' conftest.$ac_ext >&5
7559 emacs_cv_speed_t=no
7562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7565 $as_echo "$emacs_cv_speed_t" >&6; }
7566 if test $emacs_cv_speed_t = yes; then
7568 cat >>confdefs.h <<\_ACEOF
7569 #define HAVE_SPEED_T 1
7570 _ACEOF
7574 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7575 $as_echo_n "checking for struct timeval... " >&6; }
7576 if test "${emacs_cv_struct_timeval+set}" = set; then
7577 $as_echo_n "(cached) " >&6
7578 else
7579 cat >conftest.$ac_ext <<_ACEOF
7580 /* confdefs.h. */
7581 _ACEOF
7582 cat confdefs.h >>conftest.$ac_ext
7583 cat >>conftest.$ac_ext <<_ACEOF
7584 /* end confdefs.h. */
7585 #ifdef TIME_WITH_SYS_TIME
7586 #include <sys/time.h>
7587 #include <time.h>
7588 #else
7589 #ifdef HAVE_SYS_TIME_H
7590 #include <sys/time.h>
7591 #else
7592 #include <time.h>
7593 #endif
7594 #endif
7596 main ()
7598 static struct timeval x; x.tv_sec = x.tv_usec;
7600 return 0;
7602 _ACEOF
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7610 $as_echo "$ac_try_echo") >&5
7611 (eval "$ac_compile") 2>conftest.er1
7612 ac_status=$?
7613 grep -v '^ *+' conftest.er1 >conftest.err
7614 rm -f conftest.er1
7615 cat conftest.err >&5
7616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7617 (exit $ac_status); } && {
7618 test -z "$ac_c_werror_flag" ||
7619 test ! -s conftest.err
7620 } && test -s conftest.$ac_objext; then
7621 emacs_cv_struct_timeval=yes
7622 else
7623 $as_echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7626 emacs_cv_struct_timeval=no
7629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7632 $as_echo "$emacs_cv_struct_timeval" >&6; }
7633 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7634 if test $emacs_cv_struct_timeval = yes; then
7636 cat >>confdefs.h <<\_ACEOF
7637 #define HAVE_TIMEVAL 1
7638 _ACEOF
7642 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7643 $as_echo_n "checking for struct exception... " >&6; }
7644 if test "${emacs_cv_struct_exception+set}" = set; then
7645 $as_echo_n "(cached) " >&6
7646 else
7647 cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h. */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 #include <math.h>
7655 main ()
7657 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7659 return 0;
7661 _ACEOF
7662 rm -f conftest.$ac_objext
7663 if { (ac_try="$ac_compile"
7664 case "(($ac_try" in
7665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7667 esac
7668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7669 $as_echo "$ac_try_echo") >&5
7670 (eval "$ac_compile") 2>conftest.er1
7671 ac_status=$?
7672 grep -v '^ *+' conftest.er1 >conftest.err
7673 rm -f conftest.er1
7674 cat conftest.err >&5
7675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676 (exit $ac_status); } && {
7677 test -z "$ac_c_werror_flag" ||
7678 test ! -s conftest.err
7679 } && test -s conftest.$ac_objext; then
7680 emacs_cv_struct_exception=yes
7681 else
7682 $as_echo "$as_me: failed program was:" >&5
7683 sed 's/^/| /' conftest.$ac_ext >&5
7685 emacs_cv_struct_exception=no
7688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7691 $as_echo "$emacs_cv_struct_exception" >&6; }
7692 HAVE_EXCEPTION=$emacs_cv_struct_exception
7693 if test $emacs_cv_struct_exception != yes; then
7695 cat >>confdefs.h <<\_ACEOF
7696 #define NO_MATHERR 1
7697 _ACEOF
7702 for ac_header in sys/socket.h
7704 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7706 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7707 $as_echo_n "checking for $ac_header... " >&6; }
7708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7709 $as_echo_n "(cached) " >&6
7711 ac_res=`eval 'as_val=${'$as_ac_Header'}
7712 $as_echo "$as_val"'`
7713 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7714 $as_echo "$ac_res" >&6; }
7715 else
7716 # Is the header compilable?
7717 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7718 $as_echo_n "checking $ac_header usability... " >&6; }
7719 cat >conftest.$ac_ext <<_ACEOF
7720 /* confdefs.h. */
7721 _ACEOF
7722 cat confdefs.h >>conftest.$ac_ext
7723 cat >>conftest.$ac_ext <<_ACEOF
7724 /* end confdefs.h. */
7725 $ac_includes_default
7726 #include <$ac_header>
7727 _ACEOF
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7730 case "(($ac_try" in
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7733 esac
7734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735 $as_echo "$ac_try_echo") >&5
7736 (eval "$ac_compile") 2>conftest.er1
7737 ac_status=$?
7738 grep -v '^ *+' conftest.er1 >conftest.err
7739 rm -f conftest.er1
7740 cat conftest.err >&5
7741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } && {
7743 test -z "$ac_c_werror_flag" ||
7744 test ! -s conftest.err
7745 } && test -s conftest.$ac_objext; then
7746 ac_header_compiler=yes
7747 else
7748 $as_echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 ac_header_compiler=no
7754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7756 $as_echo "$ac_header_compiler" >&6; }
7758 # Is the header present?
7759 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7760 $as_echo_n "checking $ac_header presence... " >&6; }
7761 cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h. */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7767 #include <$ac_header>
7768 _ACEOF
7769 if { (ac_try="$ac_cpp conftest.$ac_ext"
7770 case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7773 esac
7774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7775 $as_echo "$ac_try_echo") >&5
7776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } >/dev/null && {
7783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 }; then
7786 ac_header_preproc=yes
7787 else
7788 $as_echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7791 ac_header_preproc=no
7794 rm -f conftest.err conftest.$ac_ext
7795 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7796 $as_echo "$ac_header_preproc" >&6; }
7798 # So? What about this header?
7799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7800 yes:no: )
7801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7802 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7804 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7805 ac_header_preproc=yes
7807 no:yes:* )
7808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7809 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7811 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7813 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7815 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7817 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7819 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7822 esac
7823 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7824 $as_echo_n "checking for $ac_header... " >&6; }
7825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7826 $as_echo_n "(cached) " >&6
7827 else
7828 eval "$as_ac_Header=\$ac_header_preproc"
7830 ac_res=`eval 'as_val=${'$as_ac_Header'}
7831 $as_echo "$as_val"'`
7832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7833 $as_echo "$ac_res" >&6; }
7836 if test `eval 'as_val=${'$as_ac_Header'}
7837 $as_echo "$as_val"'` = yes; then
7838 cat >>confdefs.h <<_ACEOF
7839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7840 _ACEOF
7844 done
7847 for ac_header in net/if.h
7849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7850 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7851 $as_echo_n "checking for $ac_header... " >&6; }
7852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7853 $as_echo_n "(cached) " >&6
7854 else
7855 cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h. */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7861 $ac_includes_default
7862 #if HAVE_SYS_SOCKET_H
7863 #include <sys/socket.h>
7864 #endif
7866 #include <$ac_header>
7867 _ACEOF
7868 rm -f conftest.$ac_objext
7869 if { (ac_try="$ac_compile"
7870 case "(($ac_try" in
7871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7872 *) ac_try_echo=$ac_try;;
7873 esac
7874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7875 $as_echo "$ac_try_echo") >&5
7876 (eval "$ac_compile") 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } && {
7883 test -z "$ac_c_werror_flag" ||
7884 test ! -s conftest.err
7885 } && test -s conftest.$ac_objext; then
7886 eval "$as_ac_Header=yes"
7887 else
7888 $as_echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 eval "$as_ac_Header=no"
7894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7896 ac_res=`eval 'as_val=${'$as_ac_Header'}
7897 $as_echo "$as_val"'`
7898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7899 $as_echo "$ac_res" >&6; }
7900 if test `eval 'as_val=${'$as_ac_Header'}
7901 $as_echo "$as_val"'` = yes; then
7902 cat >>confdefs.h <<_ACEOF
7903 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7904 _ACEOF
7908 done
7911 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7912 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7913 if test "${ac_cv_struct_tm+set}" = set; then
7914 $as_echo_n "(cached) " >&6
7915 else
7916 cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h. */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 #include <sys/types.h>
7923 #include <time.h>
7926 main ()
7928 struct tm tm;
7929 int *p = &tm.tm_sec;
7930 return !p;
7932 return 0;
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (ac_try="$ac_compile"
7937 case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940 esac
7941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7953 ac_cv_struct_tm=time.h
7954 else
7955 $as_echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_cv_struct_tm=sys/time.h
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7964 $as_echo "$ac_cv_struct_tm" >&6; }
7965 if test $ac_cv_struct_tm = sys/time.h; then
7967 cat >>confdefs.h <<\_ACEOF
7968 #define TM_IN_SYS_TIME 1
7969 _ACEOF
7973 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7974 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
7975 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7976 $as_echo_n "(cached) " >&6
7977 else
7978 cat >conftest.$ac_ext <<_ACEOF
7979 /* confdefs.h. */
7980 _ACEOF
7981 cat confdefs.h >>conftest.$ac_ext
7982 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 #include <sys/types.h>
7985 #include <$ac_cv_struct_tm>
7989 main ()
7991 static struct tm ac_aggr;
7992 if (ac_aggr.tm_zone)
7993 return 0;
7995 return 0;
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (ac_try="$ac_compile"
8000 case "(($ac_try" in
8001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8003 esac
8004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8005 $as_echo "$ac_try_echo") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8007 ac_status=$?
8008 grep -v '^ *+' conftest.er1 >conftest.err
8009 rm -f conftest.er1
8010 cat conftest.err >&5
8011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
8016 ac_cv_member_struct_tm_tm_zone=yes
8017 else
8018 $as_echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h. */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8027 #include <sys/types.h>
8028 #include <$ac_cv_struct_tm>
8032 main ()
8034 static struct tm ac_aggr;
8035 if (sizeof ac_aggr.tm_zone)
8036 return 0;
8038 return 0;
8040 _ACEOF
8041 rm -f conftest.$ac_objext
8042 if { (ac_try="$ac_compile"
8043 case "(($ac_try" in
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8046 esac
8047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8048 $as_echo "$ac_try_echo") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.$ac_objext; then
8059 ac_cv_member_struct_tm_tm_zone=yes
8060 else
8061 $as_echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8064 ac_cv_member_struct_tm_tm_zone=no
8067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8073 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8074 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8076 cat >>confdefs.h <<_ACEOF
8077 #define HAVE_STRUCT_TM_TM_ZONE 1
8078 _ACEOF
8083 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8085 cat >>confdefs.h <<\_ACEOF
8086 #define HAVE_TM_ZONE 1
8087 _ACEOF
8089 else
8090 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8091 $as_echo_n "checking whether tzname is declared... " >&6; }
8092 if test "${ac_cv_have_decl_tzname+set}" = set; then
8093 $as_echo_n "(cached) " >&6
8094 else
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 #include <time.h>
8104 main ()
8106 #ifndef tzname
8107 (void) tzname;
8108 #endif
8111 return 0;
8113 _ACEOF
8114 rm -f conftest.$ac_objext
8115 if { (ac_try="$ac_compile"
8116 case "(($ac_try" in
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8119 esac
8120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8121 $as_echo "$ac_try_echo") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_cv_have_decl_tzname=yes
8133 else
8134 $as_echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_cv_have_decl_tzname=no
8140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8142 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8143 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8144 if test $ac_cv_have_decl_tzname = yes; then
8146 cat >>confdefs.h <<_ACEOF
8147 #define HAVE_DECL_TZNAME 1
8148 _ACEOF
8151 else
8152 cat >>confdefs.h <<_ACEOF
8153 #define HAVE_DECL_TZNAME 0
8154 _ACEOF
8160 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8161 $as_echo_n "checking for tzname... " >&6; }
8162 if test "${ac_cv_var_tzname+set}" = set; then
8163 $as_echo_n "(cached) " >&6
8164 else
8165 cat >conftest.$ac_ext <<_ACEOF
8166 /* confdefs.h. */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 #include <time.h>
8172 #if !HAVE_DECL_TZNAME
8173 extern char *tzname[];
8174 #endif
8177 main ()
8179 return tzname[0][0];
8181 return 0;
8183 _ACEOF
8184 rm -f conftest.$ac_objext conftest$ac_exeext
8185 if { (ac_try="$ac_link"
8186 case "(($ac_try" in
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8189 esac
8190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8191 $as_echo "$ac_try_echo") >&5
8192 (eval "$ac_link") 2>conftest.er1
8193 ac_status=$?
8194 grep -v '^ *+' conftest.er1 >conftest.err
8195 rm -f conftest.er1
8196 cat conftest.err >&5
8197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); } && {
8199 test -z "$ac_c_werror_flag" ||
8200 test ! -s conftest.err
8201 } && test -s conftest$ac_exeext && {
8202 test "$cross_compiling" = yes ||
8203 $as_test_x conftest$ac_exeext
8204 }; then
8205 ac_cv_var_tzname=yes
8206 else
8207 $as_echo "$as_me: failed program was:" >&5
8208 sed 's/^/| /' conftest.$ac_ext >&5
8210 ac_cv_var_tzname=no
8213 rm -rf conftest.dSYM
8214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8215 conftest$ac_exeext conftest.$ac_ext
8217 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8218 $as_echo "$ac_cv_var_tzname" >&6; }
8219 if test $ac_cv_var_tzname = yes; then
8221 cat >>confdefs.h <<\_ACEOF
8222 #define HAVE_TZNAME 1
8223 _ACEOF
8228 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8229 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8230 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8231 $as_echo_n "(cached) " >&6
8232 else
8233 cat >conftest.$ac_ext <<_ACEOF
8234 /* confdefs.h. */
8235 _ACEOF
8236 cat confdefs.h >>conftest.$ac_ext
8237 cat >>conftest.$ac_ext <<_ACEOF
8238 /* end confdefs.h. */
8239 #include <time.h>
8242 main ()
8244 static struct tm ac_aggr;
8245 if (ac_aggr.tm_gmtoff)
8246 return 0;
8248 return 0;
8250 _ACEOF
8251 rm -f conftest.$ac_objext
8252 if { (ac_try="$ac_compile"
8253 case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8256 esac
8257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8258 $as_echo "$ac_try_echo") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8260 ac_status=$?
8261 grep -v '^ *+' conftest.er1 >conftest.err
8262 rm -f conftest.er1
8263 cat conftest.err >&5
8264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8269 ac_cv_member_struct_tm_tm_gmtoff=yes
8270 else
8271 $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h. */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 #include <time.h>
8283 main ()
8285 static struct tm ac_aggr;
8286 if (sizeof ac_aggr.tm_gmtoff)
8287 return 0;
8289 return 0;
8291 _ACEOF
8292 rm -f conftest.$ac_objext
8293 if { (ac_try="$ac_compile"
8294 case "(($ac_try" in
8295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8297 esac
8298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8299 $as_echo "$ac_try_echo") >&5
8300 (eval "$ac_compile") 2>conftest.er1
8301 ac_status=$?
8302 grep -v '^ *+' conftest.er1 >conftest.err
8303 rm -f conftest.er1
8304 cat conftest.err >&5
8305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); } && {
8307 test -z "$ac_c_werror_flag" ||
8308 test ! -s conftest.err
8309 } && test -s conftest.$ac_objext; then
8310 ac_cv_member_struct_tm_tm_gmtoff=yes
8311 else
8312 $as_echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 ac_cv_member_struct_tm_tm_gmtoff=no
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8323 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8324 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8325 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8327 cat >>confdefs.h <<\_ACEOF
8328 #define HAVE_TM_GMTOFF 1
8329 _ACEOF
8333 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8334 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8335 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8336 $as_echo_n "(cached) " >&6
8337 else
8338 cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h. */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8344 $ac_includes_default
8345 #if HAVE_SYS_SOCKET_H
8346 #include <sys/socket.h>
8347 #endif
8348 #if HAVE_NET_IF_H
8349 #include <net/if.h>
8350 #endif
8353 main ()
8355 static struct ifreq ac_aggr;
8356 if (ac_aggr.ifr_flags)
8357 return 0;
8359 return 0;
8361 _ACEOF
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8364 case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367 esac
8368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8369 $as_echo "$ac_try_echo") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
8380 ac_cv_member_struct_ifreq_ifr_flags=yes
8381 else
8382 $as_echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h. */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8391 $ac_includes_default
8392 #if HAVE_SYS_SOCKET_H
8393 #include <sys/socket.h>
8394 #endif
8395 #if HAVE_NET_IF_H
8396 #include <net/if.h>
8397 #endif
8400 main ()
8402 static struct ifreq ac_aggr;
8403 if (sizeof ac_aggr.ifr_flags)
8404 return 0;
8406 return 0;
8408 _ACEOF
8409 rm -f conftest.$ac_objext
8410 if { (ac_try="$ac_compile"
8411 case "(($ac_try" in
8412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8414 esac
8415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8416 $as_echo "$ac_try_echo") >&5
8417 (eval "$ac_compile") 2>conftest.er1
8418 ac_status=$?
8419 grep -v '^ *+' conftest.er1 >conftest.err
8420 rm -f conftest.er1
8421 cat conftest.err >&5
8422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } && {
8424 test -z "$ac_c_werror_flag" ||
8425 test ! -s conftest.err
8426 } && test -s conftest.$ac_objext; then
8427 ac_cv_member_struct_ifreq_ifr_flags=yes
8428 else
8429 $as_echo "$as_me: failed program was:" >&5
8430 sed 's/^/| /' conftest.$ac_ext >&5
8432 ac_cv_member_struct_ifreq_ifr_flags=no
8435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8441 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8442 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8444 cat >>confdefs.h <<_ACEOF
8445 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8446 _ACEOF
8450 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8451 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8452 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8453 $as_echo_n "(cached) " >&6
8454 else
8455 cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h. */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461 $ac_includes_default
8462 #if HAVE_SYS_SOCKET_H
8463 #include <sys/socket.h>
8464 #endif
8465 #if HAVE_NET_IF_H
8466 #include <net/if.h>
8467 #endif
8470 main ()
8472 static struct ifreq ac_aggr;
8473 if (ac_aggr.ifr_hwaddr)
8474 return 0;
8476 return 0;
8478 _ACEOF
8479 rm -f conftest.$ac_objext
8480 if { (ac_try="$ac_compile"
8481 case "(($ac_try" in
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8484 esac
8485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8486 $as_echo "$ac_try_echo") >&5
8487 (eval "$ac_compile") 2>conftest.er1
8488 ac_status=$?
8489 grep -v '^ *+' conftest.er1 >conftest.err
8490 rm -f conftest.er1
8491 cat conftest.err >&5
8492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } && {
8494 test -z "$ac_c_werror_flag" ||
8495 test ! -s conftest.err
8496 } && test -s conftest.$ac_objext; then
8497 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8498 else
8499 $as_echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h. */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 #if HAVE_SYS_SOCKET_H
8510 #include <sys/socket.h>
8511 #endif
8512 #if HAVE_NET_IF_H
8513 #include <net/if.h>
8514 #endif
8517 main ()
8519 static struct ifreq ac_aggr;
8520 if (sizeof ac_aggr.ifr_hwaddr)
8521 return 0;
8523 return 0;
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8528 case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531 esac
8532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8533 $as_echo "$ac_try_echo") >&5
8534 (eval "$ac_compile") 2>conftest.er1
8535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1
8538 cat conftest.err >&5
8539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } && {
8541 test -z "$ac_c_werror_flag" ||
8542 test ! -s conftest.err
8543 } && test -s conftest.$ac_objext; then
8544 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8545 else
8546 $as_echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8549 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8558 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8559 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8561 cat >>confdefs.h <<_ACEOF
8562 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8563 _ACEOF
8567 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8568 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8569 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8570 $as_echo_n "(cached) " >&6
8571 else
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h. */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8578 $ac_includes_default
8579 #if HAVE_SYS_SOCKET_H
8580 #include <sys/socket.h>
8581 #endif
8582 #if HAVE_NET_IF_H
8583 #include <net/if.h>
8584 #endif
8587 main ()
8589 static struct ifreq ac_aggr;
8590 if (ac_aggr.ifr_netmask)
8591 return 0;
8593 return 0;
8595 _ACEOF
8596 rm -f conftest.$ac_objext
8597 if { (ac_try="$ac_compile"
8598 case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8601 esac
8602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8603 $as_echo "$ac_try_echo") >&5
8604 (eval "$ac_compile") 2>conftest.er1
8605 ac_status=$?
8606 grep -v '^ *+' conftest.er1 >conftest.err
8607 rm -f conftest.er1
8608 cat conftest.err >&5
8609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); } && {
8611 test -z "$ac_c_werror_flag" ||
8612 test ! -s conftest.err
8613 } && test -s conftest.$ac_objext; then
8614 ac_cv_member_struct_ifreq_ifr_netmask=yes
8615 else
8616 $as_echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8619 cat >conftest.$ac_ext <<_ACEOF
8620 /* confdefs.h. */
8621 _ACEOF
8622 cat confdefs.h >>conftest.$ac_ext
8623 cat >>conftest.$ac_ext <<_ACEOF
8624 /* end confdefs.h. */
8625 $ac_includes_default
8626 #if HAVE_SYS_SOCKET_H
8627 #include <sys/socket.h>
8628 #endif
8629 #if HAVE_NET_IF_H
8630 #include <net/if.h>
8631 #endif
8634 main ()
8636 static struct ifreq ac_aggr;
8637 if (sizeof ac_aggr.ifr_netmask)
8638 return 0;
8640 return 0;
8642 _ACEOF
8643 rm -f conftest.$ac_objext
8644 if { (ac_try="$ac_compile"
8645 case "(($ac_try" in
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8648 esac
8649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8650 $as_echo "$ac_try_echo") >&5
8651 (eval "$ac_compile") 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest.$ac_objext; then
8661 ac_cv_member_struct_ifreq_ifr_netmask=yes
8662 else
8663 $as_echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8666 ac_cv_member_struct_ifreq_ifr_netmask=no
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8675 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8676 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8680 _ACEOF
8684 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8685 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8686 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8687 $as_echo_n "(cached) " >&6
8688 else
8689 cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h. */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 $ac_includes_default
8696 #if HAVE_SYS_SOCKET_H
8697 #include <sys/socket.h>
8698 #endif
8699 #if HAVE_NET_IF_H
8700 #include <net/if.h>
8701 #endif
8704 main ()
8706 static struct ifreq ac_aggr;
8707 if (ac_aggr.ifr_broadaddr)
8708 return 0;
8710 return 0;
8712 _ACEOF
8713 rm -f conftest.$ac_objext
8714 if { (ac_try="$ac_compile"
8715 case "(($ac_try" in
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8718 esac
8719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8720 $as_echo "$ac_try_echo") >&5
8721 (eval "$ac_compile") 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } && {
8728 test -z "$ac_c_werror_flag" ||
8729 test ! -s conftest.err
8730 } && test -s conftest.$ac_objext; then
8731 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8732 else
8733 $as_echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8736 cat >conftest.$ac_ext <<_ACEOF
8737 /* confdefs.h. */
8738 _ACEOF
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8742 $ac_includes_default
8743 #if HAVE_SYS_SOCKET_H
8744 #include <sys/socket.h>
8745 #endif
8746 #if HAVE_NET_IF_H
8747 #include <net/if.h>
8748 #endif
8751 main ()
8753 static struct ifreq ac_aggr;
8754 if (sizeof ac_aggr.ifr_broadaddr)
8755 return 0;
8757 return 0;
8759 _ACEOF
8760 rm -f conftest.$ac_objext
8761 if { (ac_try="$ac_compile"
8762 case "(($ac_try" in
8763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8764 *) ac_try_echo=$ac_try;;
8765 esac
8766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8767 $as_echo "$ac_try_echo") >&5
8768 (eval "$ac_compile") 2>conftest.er1
8769 ac_status=$?
8770 grep -v '^ *+' conftest.er1 >conftest.err
8771 rm -f conftest.er1
8772 cat conftest.err >&5
8773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774 (exit $ac_status); } && {
8775 test -z "$ac_c_werror_flag" ||
8776 test ! -s conftest.err
8777 } && test -s conftest.$ac_objext; then
8778 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8779 else
8780 $as_echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8792 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8793 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8795 cat >>confdefs.h <<_ACEOF
8796 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8797 _ACEOF
8801 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8802 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8803 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8804 $as_echo_n "(cached) " >&6
8805 else
8806 cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h. */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8812 $ac_includes_default
8813 #if HAVE_SYS_SOCKET_H
8814 #include <sys/socket.h>
8815 #endif
8816 #if HAVE_NET_IF_H
8817 #include <net/if.h>
8818 #endif
8821 main ()
8823 static struct ifreq ac_aggr;
8824 if (ac_aggr.ifr_addr)
8825 return 0;
8827 return 0;
8829 _ACEOF
8830 rm -f conftest.$ac_objext
8831 if { (ac_try="$ac_compile"
8832 case "(($ac_try" in
8833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834 *) ac_try_echo=$ac_try;;
8835 esac
8836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8837 $as_echo "$ac_try_echo") >&5
8838 (eval "$ac_compile") 2>conftest.er1
8839 ac_status=$?
8840 grep -v '^ *+' conftest.er1 >conftest.err
8841 rm -f conftest.er1
8842 cat conftest.err >&5
8843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && {
8845 test -z "$ac_c_werror_flag" ||
8846 test ! -s conftest.err
8847 } && test -s conftest.$ac_objext; then
8848 ac_cv_member_struct_ifreq_ifr_addr=yes
8849 else
8850 $as_echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.$ac_ext >&5
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 #if HAVE_SYS_SOCKET_H
8861 #include <sys/socket.h>
8862 #endif
8863 #if HAVE_NET_IF_H
8864 #include <net/if.h>
8865 #endif
8868 main ()
8870 static struct ifreq ac_aggr;
8871 if (sizeof ac_aggr.ifr_addr)
8872 return 0;
8874 return 0;
8876 _ACEOF
8877 rm -f conftest.$ac_objext
8878 if { (ac_try="$ac_compile"
8879 case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882 esac
8883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8884 $as_echo "$ac_try_echo") >&5
8885 (eval "$ac_compile") 2>conftest.er1
8886 ac_status=$?
8887 grep -v '^ *+' conftest.er1 >conftest.err
8888 rm -f conftest.er1
8889 cat conftest.err >&5
8890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); } && {
8892 test -z "$ac_c_werror_flag" ||
8893 test ! -s conftest.err
8894 } && test -s conftest.$ac_objext; then
8895 ac_cv_member_struct_ifreq_ifr_addr=yes
8896 else
8897 $as_echo "$as_me: failed program was:" >&5
8898 sed 's/^/| /' conftest.$ac_ext >&5
8900 ac_cv_member_struct_ifreq_ifr_addr=no
8903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8909 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8910 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8912 cat >>confdefs.h <<_ACEOF
8913 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8914 _ACEOF
8921 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
8922 $as_echo_n "checking for function prototypes... " >&6; }
8923 if test "$ac_cv_prog_cc_c89" != no; then
8924 { $as_echo "$as_me:$LINENO: result: yes" >&5
8925 $as_echo "yes" >&6; }
8927 cat >>confdefs.h <<\_ACEOF
8928 #define PROTOTYPES 1
8929 _ACEOF
8932 cat >>confdefs.h <<\_ACEOF
8933 #define __PROTOTYPES 1
8934 _ACEOF
8936 else
8937 { $as_echo "$as_me:$LINENO: result: no" >&5
8938 $as_echo "no" >&6; }
8941 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
8942 $as_echo_n "checking for working volatile... " >&6; }
8943 if test "${ac_cv_c_volatile+set}" = set; then
8944 $as_echo_n "(cached) " >&6
8945 else
8946 cat >conftest.$ac_ext <<_ACEOF
8947 /* confdefs.h. */
8948 _ACEOF
8949 cat confdefs.h >>conftest.$ac_ext
8950 cat >>conftest.$ac_ext <<_ACEOF
8951 /* end confdefs.h. */
8954 main ()
8957 volatile int x;
8958 int * volatile y = (int *) 0;
8959 return !x && !y;
8961 return 0;
8963 _ACEOF
8964 rm -f conftest.$ac_objext
8965 if { (ac_try="$ac_compile"
8966 case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969 esac
8970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8971 $as_echo "$ac_try_echo") >&5
8972 (eval "$ac_compile") 2>conftest.er1
8973 ac_status=$?
8974 grep -v '^ *+' conftest.er1 >conftest.err
8975 rm -f conftest.er1
8976 cat conftest.err >&5
8977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); } && {
8979 test -z "$ac_c_werror_flag" ||
8980 test ! -s conftest.err
8981 } && test -s conftest.$ac_objext; then
8982 ac_cv_c_volatile=yes
8983 else
8984 $as_echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8987 ac_cv_c_volatile=no
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8992 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8993 $as_echo "$ac_cv_c_volatile" >&6; }
8994 if test $ac_cv_c_volatile = no; then
8996 cat >>confdefs.h <<\_ACEOF
8997 #define volatile /**/
8998 _ACEOF
9002 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9003 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9004 if test "${ac_cv_c_const+set}" = set; then
9005 $as_echo_n "(cached) " >&6
9006 else
9007 cat >conftest.$ac_ext <<_ACEOF
9008 /* confdefs.h. */
9009 _ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9015 main ()
9017 /* FIXME: Include the comments suggested by Paul. */
9018 #ifndef __cplusplus
9019 /* Ultrix mips cc rejects this. */
9020 typedef int charset[2];
9021 const charset cs;
9022 /* SunOS 4.1.1 cc rejects this. */
9023 char const *const *pcpcc;
9024 char **ppc;
9025 /* NEC SVR4.0.2 mips cc rejects this. */
9026 struct point {int x, y;};
9027 static struct point const zero = {0,0};
9028 /* AIX XL C 1.02.0.0 rejects this.
9029 It does not let you subtract one const X* pointer from another in
9030 an arm of an if-expression whose if-part is not a constant
9031 expression */
9032 const char *g = "string";
9033 pcpcc = &g + (g ? g-g : 0);
9034 /* HPUX 7.0 cc rejects these. */
9035 ++pcpcc;
9036 ppc = (char**) pcpcc;
9037 pcpcc = (char const *const *) ppc;
9038 { /* SCO 3.2v4 cc rejects this. */
9039 char *t;
9040 char const *s = 0 ? (char *) 0 : (char const *) 0;
9042 *t++ = 0;
9043 if (s) return 0;
9045 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9046 int x[] = {25, 17};
9047 const int *foo = &x[0];
9048 ++foo;
9050 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9051 typedef const int *iptr;
9052 iptr p = 0;
9053 ++p;
9055 { /* AIX XL C 1.02.0.0 rejects this saying
9056 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9057 struct s { int j; const int *ap[3]; };
9058 struct s *b; b->j = 5;
9060 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9061 const int foo = 10;
9062 if (!foo) return 0;
9064 return !cs[0] && !zero.x;
9065 #endif
9068 return 0;
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (ac_try="$ac_compile"
9073 case "(($ac_try" in
9074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075 *) ac_try_echo=$ac_try;;
9076 esac
9077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9078 $as_echo "$ac_try_echo") >&5
9079 (eval "$ac_compile") 2>conftest.er1
9080 ac_status=$?
9081 grep -v '^ *+' conftest.er1 >conftest.err
9082 rm -f conftest.er1
9083 cat conftest.err >&5
9084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); } && {
9086 test -z "$ac_c_werror_flag" ||
9087 test ! -s conftest.err
9088 } && test -s conftest.$ac_objext; then
9089 ac_cv_c_const=yes
9090 else
9091 $as_echo "$as_me: failed program was:" >&5
9092 sed 's/^/| /' conftest.$ac_ext >&5
9094 ac_cv_c_const=no
9097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9100 $as_echo "$ac_cv_c_const" >&6; }
9101 if test $ac_cv_c_const = no; then
9103 cat >>confdefs.h <<\_ACEOF
9104 #define const /**/
9105 _ACEOF
9109 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9110 $as_echo_n "checking for void * support... " >&6; }
9111 if test "${emacs_cv_void_star+set}" = set; then
9112 $as_echo_n "(cached) " >&6
9113 else
9114 cat >conftest.$ac_ext <<_ACEOF
9115 /* confdefs.h. */
9116 _ACEOF
9117 cat confdefs.h >>conftest.$ac_ext
9118 cat >>conftest.$ac_ext <<_ACEOF
9119 /* end confdefs.h. */
9122 main ()
9124 void * foo;
9126 return 0;
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (ac_try="$ac_compile"
9131 case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9134 esac
9135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9136 $as_echo "$ac_try_echo") >&5
9137 (eval "$ac_compile") 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } && {
9144 test -z "$ac_c_werror_flag" ||
9145 test ! -s conftest.err
9146 } && test -s conftest.$ac_objext; then
9147 emacs_cv_void_star=yes
9148 else
9149 $as_echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9152 emacs_cv_void_star=no
9155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9157 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9158 $as_echo "$emacs_cv_void_star" >&6; }
9159 if test $emacs_cv_void_star = yes; then
9160 cat >>confdefs.h <<\_ACEOF
9161 #define POINTER_TYPE void
9162 _ACEOF
9164 else
9165 cat >>confdefs.h <<\_ACEOF
9166 #define POINTER_TYPE char
9167 _ACEOF
9175 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9176 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9177 set x ${MAKE-make}
9178 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9179 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9180 $as_echo_n "(cached) " >&6
9181 else
9182 cat >conftest.make <<\_ACEOF
9183 SHELL = /bin/sh
9184 all:
9185 @echo '@@@%%%=$(MAKE)=@@@%%%'
9186 _ACEOF
9187 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9188 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9189 *@@@%%%=?*=@@@%%%*)
9190 eval ac_cv_prog_make_${ac_make}_set=yes;;
9192 eval ac_cv_prog_make_${ac_make}_set=no;;
9193 esac
9194 rm -f conftest.make
9196 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9197 { $as_echo "$as_me:$LINENO: result: yes" >&5
9198 $as_echo "yes" >&6; }
9199 SET_MAKE=
9200 else
9201 { $as_echo "$as_me:$LINENO: result: no" >&5
9202 $as_echo "no" >&6; }
9203 SET_MAKE="MAKE=${MAKE-make}"
9207 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9208 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9209 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9210 HAVE_GNU_MAKE=no
9211 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9212 if test "x$testval" != x; then
9213 HAVE_GNU_MAKE=yes
9214 else
9215 ac_enable_autodepend=no
9217 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9218 $as_echo "$HAVE_GNU_MAKE" >&6; }
9219 if test $HAVE_GNU_MAKE = yes; then
9220 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9221 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9222 SAVE_CFLAGS="$CFLAGS"
9223 CFLAGS="$CFLAGS -MMD -MF deps.d"
9224 cat >conftest.$ac_ext <<_ACEOF
9225 /* confdefs.h. */
9226 _ACEOF
9227 cat confdefs.h >>conftest.$ac_ext
9228 cat >>conftest.$ac_ext <<_ACEOF
9229 /* end confdefs.h. */
9232 main ()
9236 return 0;
9238 _ACEOF
9239 rm -f conftest.$ac_objext
9240 if { (ac_try="$ac_compile"
9241 case "(($ac_try" in
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9244 esac
9245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9246 $as_echo "$ac_try_echo") >&5
9247 (eval "$ac_compile") 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } && {
9254 test -z "$ac_c_werror_flag" ||
9255 test ! -s conftest.err
9256 } && test -s conftest.$ac_objext; then
9258 else
9259 $as_echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9262 ac_enable_autodepend=no
9265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9266 CFLAGS="$SAVE_CFLAGS"
9267 test -f deps.d || ac_enable_autodepend=no
9268 rm -rf deps.d
9269 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9270 $as_echo "$ac_enable_autodepend" >&6; }
9272 if test $ac_enable_autodepend = yes; then
9274 cat >>confdefs.h <<\_ACEOF
9275 #define AUTO_DEPEND 1
9276 _ACEOF
9281 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9282 $as_echo_n "checking for long file names... " >&6; }
9283 if test "${ac_cv_sys_long_file_names+set}" = set; then
9284 $as_echo_n "(cached) " >&6
9285 else
9286 ac_cv_sys_long_file_names=yes
9287 # Test for long file names in all the places we know might matter:
9288 # . the current directory, where building will happen
9289 # $prefix/lib where we will be installing things
9290 # $exec_prefix/lib likewise
9291 # $TMPDIR if set, where it might want to write temporary files
9292 # /tmp where it might want to write temporary files
9293 # /var/tmp likewise
9294 # /usr/tmp likewise
9295 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9296 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9297 # in the usual case where exec_prefix is '${prefix}'.
9298 case $ac_dir in #(
9299 . | /* | ?:[\\/]*) ;; #(
9300 *) continue;;
9301 esac
9302 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9303 ac_xdir=$ac_dir/cf$$
9304 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9305 ac_tf1=$ac_xdir/conftest9012345
9306 ac_tf2=$ac_xdir/conftest9012346
9307 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9308 ac_cv_sys_long_file_names=no
9309 rm -f -r "$ac_xdir" 2>/dev/null
9310 test $ac_cv_sys_long_file_names = no && break
9311 done
9313 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9314 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9315 if test $ac_cv_sys_long_file_names = yes; then
9317 cat >>confdefs.h <<\_ACEOF
9318 #define HAVE_LONG_FILE_NAMES 1
9319 _ACEOF
9324 #### Choose a window system.
9326 { $as_echo "$as_me:$LINENO: checking for X" >&5
9327 $as_echo_n "checking for X... " >&6; }
9330 # Check whether --with-x was given.
9331 if test "${with_x+set}" = set; then
9332 withval=$with_x;
9335 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9336 if test "x$with_x" = xno; then
9337 # The user explicitly disabled X.
9338 have_x=disabled
9339 else
9340 case $x_includes,$x_libraries in #(
9341 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9342 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9343 { (exit 1); exit 1; }; };; #(
9344 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9345 $as_echo_n "(cached) " >&6
9346 else
9347 # One or both of the vars are not set, and there is no cached value.
9348 ac_x_includes=no ac_x_libraries=no
9349 rm -f -r conftest.dir
9350 if mkdir conftest.dir; then
9351 cd conftest.dir
9352 cat >Imakefile <<'_ACEOF'
9353 incroot:
9354 @echo incroot='${INCROOT}'
9355 usrlibdir:
9356 @echo usrlibdir='${USRLIBDIR}'
9357 libdir:
9358 @echo libdir='${LIBDIR}'
9359 _ACEOF
9360 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9361 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9362 for ac_var in incroot usrlibdir libdir; do
9363 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9364 done
9365 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9366 for ac_extension in a so sl dylib la dll; do
9367 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9368 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9369 ac_im_usrlibdir=$ac_im_libdir; break
9371 done
9372 # Screen out bogus values from the imake configuration. They are
9373 # bogus both because they are the default anyway, and because
9374 # using them would break gcc on systems where it needs fixed includes.
9375 case $ac_im_incroot in
9376 /usr/include) ac_x_includes= ;;
9377 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9378 esac
9379 case $ac_im_usrlibdir in
9380 /usr/lib | /lib) ;;
9381 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9382 esac
9384 cd ..
9385 rm -f -r conftest.dir
9388 # Standard set of common directories for X headers.
9389 # Check X11 before X11Rn because it is often a symlink to the current release.
9390 ac_x_header_dirs='
9391 /usr/X11/include
9392 /usr/X11R6/include
9393 /usr/X11R5/include
9394 /usr/X11R4/include
9396 /usr/include/X11
9397 /usr/include/X11R6
9398 /usr/include/X11R5
9399 /usr/include/X11R4
9401 /usr/local/X11/include
9402 /usr/local/X11R6/include
9403 /usr/local/X11R5/include
9404 /usr/local/X11R4/include
9406 /usr/local/include/X11
9407 /usr/local/include/X11R6
9408 /usr/local/include/X11R5
9409 /usr/local/include/X11R4
9411 /usr/X386/include
9412 /usr/x386/include
9413 /usr/XFree86/include/X11
9415 /usr/include
9416 /usr/local/include
9417 /usr/unsupported/include
9418 /usr/athena/include
9419 /usr/local/x11r5/include
9420 /usr/lpp/Xamples/include
9422 /usr/openwin/include
9423 /usr/openwin/share/include'
9425 if test "$ac_x_includes" = no; then
9426 # Guess where to find include files, by looking for Xlib.h.
9427 # First, try using that file with no special directory specified.
9428 cat >conftest.$ac_ext <<_ACEOF
9429 /* confdefs.h. */
9430 _ACEOF
9431 cat confdefs.h >>conftest.$ac_ext
9432 cat >>conftest.$ac_ext <<_ACEOF
9433 /* end confdefs.h. */
9434 #include <X11/Xlib.h>
9435 _ACEOF
9436 if { (ac_try="$ac_cpp conftest.$ac_ext"
9437 case "(($ac_try" in
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9440 esac
9441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9442 $as_echo "$ac_try_echo") >&5
9443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9444 ac_status=$?
9445 grep -v '^ *+' conftest.er1 >conftest.err
9446 rm -f conftest.er1
9447 cat conftest.err >&5
9448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); } >/dev/null && {
9450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9451 test ! -s conftest.err
9452 }; then
9453 # We can compile using X headers with no special include directory.
9454 ac_x_includes=
9455 else
9456 $as_echo "$as_me: failed program was:" >&5
9457 sed 's/^/| /' conftest.$ac_ext >&5
9459 for ac_dir in $ac_x_header_dirs; do
9460 if test -r "$ac_dir/X11/Xlib.h"; then
9461 ac_x_includes=$ac_dir
9462 break
9464 done
9467 rm -f conftest.err conftest.$ac_ext
9468 fi # $ac_x_includes = no
9470 if test "$ac_x_libraries" = no; then
9471 # Check for the libraries.
9472 # See if we find them without any special options.
9473 # Don't add to $LIBS permanently.
9474 ac_save_LIBS=$LIBS
9475 LIBS="-lX11 $LIBS"
9476 cat >conftest.$ac_ext <<_ACEOF
9477 /* confdefs.h. */
9478 _ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 #include <X11/Xlib.h>
9484 main ()
9486 XrmInitialize ()
9488 return 0;
9490 _ACEOF
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (ac_try="$ac_link"
9493 case "(($ac_try" in
9494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495 *) ac_try_echo=$ac_try;;
9496 esac
9497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9498 $as_echo "$ac_try_echo") >&5
9499 (eval "$ac_link") 2>conftest.er1
9500 ac_status=$?
9501 grep -v '^ *+' conftest.er1 >conftest.err
9502 rm -f conftest.er1
9503 cat conftest.err >&5
9504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest$ac_exeext && {
9509 test "$cross_compiling" = yes ||
9510 $as_test_x conftest$ac_exeext
9511 }; then
9512 LIBS=$ac_save_LIBS
9513 # We can link X programs with no special library path.
9514 ac_x_libraries=
9515 else
9516 $as_echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9519 LIBS=$ac_save_LIBS
9520 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9522 # Don't even attempt the hair of trying to link an X program!
9523 for ac_extension in a so sl dylib la dll; do
9524 if test -r "$ac_dir/libX11.$ac_extension"; then
9525 ac_x_libraries=$ac_dir
9526 break 2
9528 done
9529 done
9532 rm -rf conftest.dSYM
9533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9534 conftest$ac_exeext conftest.$ac_ext
9535 fi # $ac_x_libraries = no
9537 case $ac_x_includes,$ac_x_libraries in #(
9538 no,* | *,no | *\'*)
9539 # Didn't find X, or a directory has "'" in its name.
9540 ac_cv_have_x="have_x=no";; #(
9542 # Record where we found X for the cache.
9543 ac_cv_have_x="have_x=yes\
9544 ac_x_includes='$ac_x_includes'\
9545 ac_x_libraries='$ac_x_libraries'"
9546 esac
9548 ;; #(
9549 *) have_x=yes;;
9550 esac
9551 eval "$ac_cv_have_x"
9552 fi # $with_x != no
9554 if test "$have_x" != yes; then
9555 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9556 $as_echo "$have_x" >&6; }
9557 no_x=yes
9558 else
9559 # If each of the values was on the command line, it overrides each guess.
9560 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9561 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9562 # Update the cache value to reflect the command line values.
9563 ac_cv_have_x="have_x=yes\
9564 ac_x_includes='$x_includes'\
9565 ac_x_libraries='$x_libraries'"
9566 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9567 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9570 if test "$no_x" = yes; then
9571 window_system=none
9572 else
9573 window_system=x11
9576 ## Workaround for bug in autoconf <= 2.62.
9577 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9578 ## No need to do anything special for these standard directories.
9579 ## This is an experiment, take it out if it causes problems.
9580 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9582 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9586 if test "${x_libraries}" != NONE; then
9587 if test -n "${x_libraries}"; then
9588 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9589 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9591 x_default_search_path=""
9592 x_search_path=${x_libraries}
9593 if test -z "${x_search_path}"; then
9594 x_search_path=/usr/lib
9596 for x_library in `echo ${x_search_path}: | \
9597 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9598 x_search_path="\
9599 ${x_library}/X11/%L/%T/%N%C%S:\
9600 ${x_library}/X11/%l/%T/%N%C%S:\
9601 ${x_library}/X11/%T/%N%C%S:\
9602 ${x_library}/X11/%L/%T/%N%S:\
9603 ${x_library}/X11/%l/%T/%N%S:\
9604 ${x_library}/X11/%T/%N%S"
9605 if test x"${x_default_search_path}" = x; then
9606 x_default_search_path=${x_search_path}
9607 else
9608 x_default_search_path="${x_search_path}:${x_default_search_path}"
9610 done
9612 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9613 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9616 if test x"${x_includes}" = x; then
9617 bitmapdir=/usr/include/X11/bitmaps
9618 else
9619 # accumulate include directories that have X11 bitmap subdirectories
9620 bmd_acc="dummyval"
9621 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9622 if test -d "${bmd}/X11/bitmaps"; then
9623 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9625 if test -d "${bmd}/bitmaps"; then
9626 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9628 done
9629 if test ${bmd_acc} != "dummyval"; then
9630 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9634 HAVE_NS=no
9635 NS_IMPL_COCOA=no
9636 NS_IMPL_GNUSTEP=no
9637 tmp_CPPFLAGS="$CPPFLAGS"
9638 tmp_CFLAGS="$CFLAGS"
9639 CPPFLAGS="$CPPFLAGS -x objective-c"
9640 CFLAGS="$CFLAGS -x objective-c"
9641 if test "${with_ns}" != no; then
9642 if test "${opsys}" = darwin; then
9643 NS_IMPL_COCOA=yes
9644 ns_appdir=`pwd`/nextstep/Emacs.app
9645 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9646 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9647 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9648 elif test -f $GNUSTEP_CONFIG_FILE; then
9649 NS_IMPL_GNUSTEP=yes
9650 ns_appdir=`pwd`/nextstep/Emacs.app
9651 ns_appbindir=`pwd`/nextstep/Emacs.app
9652 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9653 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9654 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9655 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9656 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9657 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9658 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9659 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9660 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9662 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9663 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9664 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9665 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9666 $as_echo_n "(cached) " >&6
9668 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9669 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9670 else
9671 # Is the header compilable?
9672 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9673 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9674 cat >conftest.$ac_ext <<_ACEOF
9675 /* confdefs.h. */
9676 _ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 $ac_includes_default
9681 #include <AppKit/AppKit.h>
9682 _ACEOF
9683 rm -f conftest.$ac_objext
9684 if { (ac_try="$ac_compile"
9685 case "(($ac_try" in
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9688 esac
9689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9690 $as_echo "$ac_try_echo") >&5
9691 (eval "$ac_compile") 2>conftest.er1
9692 ac_status=$?
9693 grep -v '^ *+' conftest.er1 >conftest.err
9694 rm -f conftest.er1
9695 cat conftest.err >&5
9696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } && {
9698 test -z "$ac_c_werror_flag" ||
9699 test ! -s conftest.err
9700 } && test -s conftest.$ac_objext; then
9701 ac_header_compiler=yes
9702 else
9703 $as_echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_header_compiler=no
9709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9710 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9711 $as_echo "$ac_header_compiler" >&6; }
9713 # Is the header present?
9714 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9715 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9716 cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h. */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9722 #include <AppKit/AppKit.h>
9723 _ACEOF
9724 if { (ac_try="$ac_cpp conftest.$ac_ext"
9725 case "(($ac_try" in
9726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9727 *) ac_try_echo=$ac_try;;
9728 esac
9729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9730 $as_echo "$ac_try_echo") >&5
9731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9732 ac_status=$?
9733 grep -v '^ *+' conftest.er1 >conftest.err
9734 rm -f conftest.er1
9735 cat conftest.err >&5
9736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); } >/dev/null && {
9738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9739 test ! -s conftest.err
9740 }; then
9741 ac_header_preproc=yes
9742 else
9743 $as_echo "$as_me: failed program was:" >&5
9744 sed 's/^/| /' conftest.$ac_ext >&5
9746 ac_header_preproc=no
9749 rm -f conftest.err conftest.$ac_ext
9750 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9751 $as_echo "$ac_header_preproc" >&6; }
9753 # So? What about this header?
9754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9755 yes:no: )
9756 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9757 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9758 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9759 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9760 ac_header_preproc=yes
9762 no:yes:* )
9763 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9764 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9765 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9766 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9767 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9768 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9769 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9770 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9771 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9772 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9773 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9774 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9777 esac
9778 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9779 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9780 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9781 $as_echo_n "(cached) " >&6
9782 else
9783 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9785 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9786 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9789 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9790 HAVE_NS=yes
9791 else
9792 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9793 files are missing or cannot be compiled." >&5
9794 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9795 files are missing or cannot be compiled." >&2;}
9796 { (exit 1); exit 1; }; }
9800 NS_HAVE_NSINTEGER=yes
9801 cat >conftest.$ac_ext <<_ACEOF
9802 /* confdefs.h. */
9803 _ACEOF
9804 cat confdefs.h >>conftest.$ac_ext
9805 cat >>conftest.$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807 #include <Foundation/NSObjCRuntime.h>
9809 main ()
9811 NSInteger i;
9813 return 0;
9815 _ACEOF
9816 rm -f conftest.$ac_objext
9817 if { (ac_try="$ac_compile"
9818 case "(($ac_try" in
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9821 esac
9822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9823 $as_echo "$ac_try_echo") >&5
9824 (eval "$ac_compile") 2>conftest.er1
9825 ac_status=$?
9826 grep -v '^ *+' conftest.er1 >conftest.err
9827 rm -f conftest.er1
9828 cat conftest.err >&5
9829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest.$ac_objext; then
9834 ns_have_nsinteger=yes
9835 else
9836 $as_echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 ns_have_nsinteger=no
9842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9843 if test $ns_have_nsinteger = no; then
9844 NS_HAVE_NSINTEGER=no
9847 if test "${HAVE_NS}" = yes; then
9848 window_system=nextstep
9849 with_xft=no
9850 # set up packaging dirs
9851 exec_prefix=${ns_appbindir}
9852 libexecdir=${ns_appbindir}/libexec
9853 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9854 prefix=${ns_appresdir}
9857 CFLAGS="$tmp_CFLAGS"
9858 CPPFLAGS="$tmp_CPPFLAGS"
9860 case "${window_system}" in
9861 x11 )
9862 HAVE_X_WINDOWS=yes
9863 HAVE_X11=yes
9864 case "${with_x_toolkit}" in
9865 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9866 motif ) USE_X_TOOLKIT=MOTIF ;;
9867 gtk ) with_gtk=yes
9868 USE_X_TOOLKIT=none ;;
9869 no ) USE_X_TOOLKIT=none ;;
9870 * ) USE_X_TOOLKIT=maybe ;;
9871 esac
9873 nextstep | none )
9874 HAVE_X_WINDOWS=no
9875 HAVE_X11=no
9876 USE_X_TOOLKIT=none
9878 esac
9880 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9881 # Extract the first word of "X", so it can be a program name with args.
9882 set dummy X; ac_word=$2
9883 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9886 $as_echo_n "(cached) " >&6
9887 else
9888 if test -n "$HAVE_XSERVER"; then
9889 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9890 else
9891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892 for as_dir in $PATH
9894 IFS=$as_save_IFS
9895 test -z "$as_dir" && as_dir=.
9896 for ac_exec_ext in '' $ac_executable_extensions; do
9897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9898 ac_cv_prog_HAVE_XSERVER="true"
9899 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9900 break 2
9902 done
9903 done
9904 IFS=$as_save_IFS
9906 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9909 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9910 if test -n "$HAVE_XSERVER"; then
9911 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9912 $as_echo "$HAVE_XSERVER" >&6; }
9913 else
9914 { $as_echo "$as_me:$LINENO: result: no" >&5
9915 $as_echo "no" >&6; }
9919 if test "$HAVE_XSERVER" = true ||
9920 test -n "$DISPLAY" ||
9921 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9922 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9923 were found. You should install the relevant development files for X
9924 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9925 sure you have development files for image handling, i.e.
9926 tiff, gif, jpeg, png and xpm.
9927 If you are sure you want Emacs compiled without X window support, pass
9928 --without-x
9929 to configure." >&5
9930 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9931 were found. You should install the relevant development files for X
9932 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9933 sure you have development files for image handling, i.e.
9934 tiff, gif, jpeg, png and xpm.
9935 If you are sure you want Emacs compiled without X window support, pass
9936 --without-x
9937 to configure." >&2;}
9938 { (exit 1); exit 1; }; }
9942 ### If we're using X11, we should use the X menu package.
9943 HAVE_MENUS=no
9944 case ${HAVE_X11} in
9945 yes ) HAVE_MENUS=yes ;;
9946 esac
9948 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9949 # Assume not, until told otherwise.
9950 GNU_MALLOC=yes
9951 doug_lea_malloc=yes
9952 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9953 $as_echo_n "checking for malloc_get_state... " >&6; }
9954 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9955 $as_echo_n "(cached) " >&6
9956 else
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9965 #define malloc_get_state innocuous_malloc_get_state
9967 /* System header to define __stub macros and hopefully few prototypes,
9968 which can conflict with char malloc_get_state (); below.
9969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9970 <limits.h> exists even on freestanding compilers. */
9972 #ifdef __STDC__
9973 # include <limits.h>
9974 #else
9975 # include <assert.h>
9976 #endif
9978 #undef malloc_get_state
9980 /* Override any GCC internal prototype to avoid an error.
9981 Use char because int might match the return type of a GCC
9982 builtin and then its argument prototype would still apply. */
9983 #ifdef __cplusplus
9984 extern "C"
9985 #endif
9986 char malloc_get_state ();
9987 /* The GNU C library defines this for functions which it implements
9988 to always fail with ENOSYS. Some functions are actually named
9989 something starting with __ and the normal name is an alias. */
9990 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9991 choke me
9992 #endif
9995 main ()
9997 return malloc_get_state ();
9999 return 0;
10001 _ACEOF
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (ac_try="$ac_link"
10004 case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007 esac
10008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10009 $as_echo "$ac_try_echo") >&5
10010 (eval "$ac_link") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } && {
10017 test -z "$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 } && test -s conftest$ac_exeext && {
10020 test "$cross_compiling" = yes ||
10021 $as_test_x conftest$ac_exeext
10022 }; then
10023 ac_cv_func_malloc_get_state=yes
10024 else
10025 $as_echo "$as_me: failed program was:" >&5
10026 sed 's/^/| /' conftest.$ac_ext >&5
10028 ac_cv_func_malloc_get_state=no
10031 rm -rf conftest.dSYM
10032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10033 conftest$ac_exeext conftest.$ac_ext
10035 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10036 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10037 if test $ac_cv_func_malloc_get_state = yes; then
10039 else
10040 doug_lea_malloc=no
10043 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10044 $as_echo_n "checking for malloc_set_state... " >&6; }
10045 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10046 $as_echo_n "(cached) " >&6
10047 else
10048 cat >conftest.$ac_ext <<_ACEOF
10049 /* confdefs.h. */
10050 _ACEOF
10051 cat confdefs.h >>conftest.$ac_ext
10052 cat >>conftest.$ac_ext <<_ACEOF
10053 /* end confdefs.h. */
10054 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10056 #define malloc_set_state innocuous_malloc_set_state
10058 /* System header to define __stub macros and hopefully few prototypes,
10059 which can conflict with char malloc_set_state (); below.
10060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10061 <limits.h> exists even on freestanding compilers. */
10063 #ifdef __STDC__
10064 # include <limits.h>
10065 #else
10066 # include <assert.h>
10067 #endif
10069 #undef malloc_set_state
10071 /* Override any GCC internal prototype to avoid an error.
10072 Use char because int might match the return type of a GCC
10073 builtin and then its argument prototype would still apply. */
10074 #ifdef __cplusplus
10075 extern "C"
10076 #endif
10077 char malloc_set_state ();
10078 /* The GNU C library defines this for functions which it implements
10079 to always fail with ENOSYS. Some functions are actually named
10080 something starting with __ and the normal name is an alias. */
10081 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10082 choke me
10083 #endif
10086 main ()
10088 return malloc_set_state ();
10090 return 0;
10092 _ACEOF
10093 rm -f conftest.$ac_objext conftest$ac_exeext
10094 if { (ac_try="$ac_link"
10095 case "(($ac_try" in
10096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10097 *) ac_try_echo=$ac_try;;
10098 esac
10099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10100 $as_echo "$ac_try_echo") >&5
10101 (eval "$ac_link") 2>conftest.er1
10102 ac_status=$?
10103 grep -v '^ *+' conftest.er1 >conftest.err
10104 rm -f conftest.er1
10105 cat conftest.err >&5
10106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } && {
10108 test -z "$ac_c_werror_flag" ||
10109 test ! -s conftest.err
10110 } && test -s conftest$ac_exeext && {
10111 test "$cross_compiling" = yes ||
10112 $as_test_x conftest$ac_exeext
10113 }; then
10114 ac_cv_func_malloc_set_state=yes
10115 else
10116 $as_echo "$as_me: failed program was:" >&5
10117 sed 's/^/| /' conftest.$ac_ext >&5
10119 ac_cv_func_malloc_set_state=no
10122 rm -rf conftest.dSYM
10123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10124 conftest$ac_exeext conftest.$ac_ext
10126 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10127 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10128 if test $ac_cv_func_malloc_set_state = yes; then
10130 else
10131 doug_lea_malloc=no
10134 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10135 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10136 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10137 $as_echo_n "(cached) " >&6
10138 else
10139 cat >conftest.$ac_ext <<_ACEOF
10140 /* confdefs.h. */
10141 _ACEOF
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10145 extern void (* __after_morecore_hook)();
10147 main ()
10149 __after_morecore_hook = 0
10151 return 0;
10153 _ACEOF
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (ac_try="$ac_link"
10156 case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159 esac
10160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10161 $as_echo "$ac_try_echo") >&5
10162 (eval "$ac_link") 2>conftest.er1
10163 ac_status=$?
10164 grep -v '^ *+' conftest.er1 >conftest.err
10165 rm -f conftest.er1
10166 cat conftest.err >&5
10167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 (exit $ac_status); } && {
10169 test -z "$ac_c_werror_flag" ||
10170 test ! -s conftest.err
10171 } && test -s conftest$ac_exeext && {
10172 test "$cross_compiling" = yes ||
10173 $as_test_x conftest$ac_exeext
10174 }; then
10175 emacs_cv_var___after_morecore_hook=yes
10176 else
10177 $as_echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10180 emacs_cv_var___after_morecore_hook=no
10183 rm -rf conftest.dSYM
10184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10185 conftest$ac_exeext conftest.$ac_ext
10187 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10188 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10189 if test $emacs_cv_var___after_morecore_hook = no; then
10190 doug_lea_malloc=no
10192 if test "${system_malloc}" = "yes"; then
10193 GNU_MALLOC=no
10194 GNU_MALLOC_reason="
10195 (The GNU allocators don't work with this system configuration.)"
10197 if test "$doug_lea_malloc" = "yes" ; then
10198 if test "$GNU_MALLOC" = yes ; then
10199 GNU_MALLOC_reason="
10200 (Using Doug Lea's new malloc from the GNU C Library.)"
10203 cat >>confdefs.h <<\_ACEOF
10204 #define DOUG_LEA_MALLOC 1
10205 _ACEOF
10209 if test x"${REL_ALLOC}" = x; then
10210 REL_ALLOC=${GNU_MALLOC}
10216 for ac_header in stdlib.h unistd.h
10218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10221 $as_echo_n "checking for $ac_header... " >&6; }
10222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10223 $as_echo_n "(cached) " >&6
10225 ac_res=`eval 'as_val=${'$as_ac_Header'}
10226 $as_echo "$as_val"'`
10227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10228 $as_echo "$ac_res" >&6; }
10229 else
10230 # Is the header compilable?
10231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10232 $as_echo_n "checking $ac_header usability... " >&6; }
10233 cat >conftest.$ac_ext <<_ACEOF
10234 /* confdefs.h. */
10235 _ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 $ac_includes_default
10240 #include <$ac_header>
10241 _ACEOF
10242 rm -f conftest.$ac_objext
10243 if { (ac_try="$ac_compile"
10244 case "(($ac_try" in
10245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10246 *) ac_try_echo=$ac_try;;
10247 esac
10248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10249 $as_echo "$ac_try_echo") >&5
10250 (eval "$ac_compile") 2>conftest.er1
10251 ac_status=$?
10252 grep -v '^ *+' conftest.er1 >conftest.err
10253 rm -f conftest.er1
10254 cat conftest.err >&5
10255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && {
10257 test -z "$ac_c_werror_flag" ||
10258 test ! -s conftest.err
10259 } && test -s conftest.$ac_objext; then
10260 ac_header_compiler=yes
10261 else
10262 $as_echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_header_compiler=no
10268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10270 $as_echo "$ac_header_compiler" >&6; }
10272 # Is the header present?
10273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10274 $as_echo_n "checking $ac_header presence... " >&6; }
10275 cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h. */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 #include <$ac_header>
10282 _ACEOF
10283 if { (ac_try="$ac_cpp conftest.$ac_ext"
10284 case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10287 esac
10288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10289 $as_echo "$ac_try_echo") >&5
10290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } >/dev/null && {
10297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 }; then
10300 ac_header_preproc=yes
10301 else
10302 $as_echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305 ac_header_preproc=no
10308 rm -f conftest.err conftest.$ac_ext
10309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10310 $as_echo "$ac_header_preproc" >&6; }
10312 # So? What about this header?
10313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10314 yes:no: )
10315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10319 ac_header_preproc=yes
10321 no:yes:* )
10322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10336 esac
10337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10338 $as_echo_n "checking for $ac_header... " >&6; }
10339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10340 $as_echo_n "(cached) " >&6
10341 else
10342 eval "$as_ac_Header=\$ac_header_preproc"
10344 ac_res=`eval 'as_val=${'$as_ac_Header'}
10345 $as_echo "$as_val"'`
10346 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10347 $as_echo "$ac_res" >&6; }
10350 if test `eval 'as_val=${'$as_ac_Header'}
10351 $as_echo "$as_val"'` = yes; then
10352 cat >>confdefs.h <<_ACEOF
10353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10354 _ACEOF
10358 done
10361 for ac_func in getpagesize
10363 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10364 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10365 $as_echo_n "checking for $ac_func... " >&6; }
10366 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10367 $as_echo_n "(cached) " >&6
10368 else
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10377 #define $ac_func innocuous_$ac_func
10379 /* System header to define __stub macros and hopefully few prototypes,
10380 which can conflict with char $ac_func (); below.
10381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10382 <limits.h> exists even on freestanding compilers. */
10384 #ifdef __STDC__
10385 # include <limits.h>
10386 #else
10387 # include <assert.h>
10388 #endif
10390 #undef $ac_func
10392 /* Override any GCC internal prototype to avoid an error.
10393 Use char because int might match the return type of a GCC
10394 builtin and then its argument prototype would still apply. */
10395 #ifdef __cplusplus
10396 extern "C"
10397 #endif
10398 char $ac_func ();
10399 /* The GNU C library defines this for functions which it implements
10400 to always fail with ENOSYS. Some functions are actually named
10401 something starting with __ and the normal name is an alias. */
10402 #if defined __stub_$ac_func || defined __stub___$ac_func
10403 choke me
10404 #endif
10407 main ()
10409 return $ac_func ();
10411 return 0;
10413 _ACEOF
10414 rm -f conftest.$ac_objext conftest$ac_exeext
10415 if { (ac_try="$ac_link"
10416 case "(($ac_try" in
10417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418 *) ac_try_echo=$ac_try;;
10419 esac
10420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10421 $as_echo "$ac_try_echo") >&5
10422 (eval "$ac_link") 2>conftest.er1
10423 ac_status=$?
10424 grep -v '^ *+' conftest.er1 >conftest.err
10425 rm -f conftest.er1
10426 cat conftest.err >&5
10427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest$ac_exeext && {
10432 test "$cross_compiling" = yes ||
10433 $as_test_x conftest$ac_exeext
10434 }; then
10435 eval "$as_ac_var=yes"
10436 else
10437 $as_echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 eval "$as_ac_var=no"
10443 rm -rf conftest.dSYM
10444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445 conftest$ac_exeext conftest.$ac_ext
10447 ac_res=`eval 'as_val=${'$as_ac_var'}
10448 $as_echo "$as_val"'`
10449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10450 $as_echo "$ac_res" >&6; }
10451 if test `eval 'as_val=${'$as_ac_var'}
10452 $as_echo "$as_val"'` = yes; then
10453 cat >>confdefs.h <<_ACEOF
10454 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10455 _ACEOF
10458 done
10460 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10461 $as_echo_n "checking for working mmap... " >&6; }
10462 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10463 $as_echo_n "(cached) " >&6
10464 else
10465 if test "$cross_compiling" = yes; then
10466 ac_cv_func_mmap_fixed_mapped=no
10467 else
10468 cat >conftest.$ac_ext <<_ACEOF
10469 /* confdefs.h. */
10470 _ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10474 $ac_includes_default
10475 /* malloc might have been renamed as rpl_malloc. */
10476 #undef malloc
10478 /* Thanks to Mike Haertel and Jim Avera for this test.
10479 Here is a matrix of mmap possibilities:
10480 mmap private not fixed
10481 mmap private fixed at somewhere currently unmapped
10482 mmap private fixed at somewhere already mapped
10483 mmap shared not fixed
10484 mmap shared fixed at somewhere currently unmapped
10485 mmap shared fixed at somewhere already mapped
10486 For private mappings, we should verify that changes cannot be read()
10487 back from the file, nor mmap's back from the file at a different
10488 address. (There have been systems where private was not correctly
10489 implemented like the infamous i386 svr4.0, and systems where the
10490 VM page cache was not coherent with the file system buffer cache
10491 like early versions of FreeBSD and possibly contemporary NetBSD.)
10492 For shared mappings, we should conversely verify that changes get
10493 propagated back to all the places they're supposed to be.
10495 Grep wants private fixed already mapped.
10496 The main things grep needs to know about mmap are:
10497 * does it exist and is it safe to write into the mmap'd area
10498 * how to use it (BSD variants) */
10500 #include <fcntl.h>
10501 #include <sys/mman.h>
10503 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10504 char *malloc ();
10505 #endif
10507 /* This mess was copied from the GNU getpagesize.h. */
10508 #ifndef HAVE_GETPAGESIZE
10509 /* Assume that all systems that can run configure have sys/param.h. */
10510 # ifndef HAVE_SYS_PARAM_H
10511 # define HAVE_SYS_PARAM_H 1
10512 # endif
10514 # ifdef _SC_PAGESIZE
10515 # define getpagesize() sysconf(_SC_PAGESIZE)
10516 # else /* no _SC_PAGESIZE */
10517 # ifdef HAVE_SYS_PARAM_H
10518 # include <sys/param.h>
10519 # ifdef EXEC_PAGESIZE
10520 # define getpagesize() EXEC_PAGESIZE
10521 # else /* no EXEC_PAGESIZE */
10522 # ifdef NBPG
10523 # define getpagesize() NBPG * CLSIZE
10524 # ifndef CLSIZE
10525 # define CLSIZE 1
10526 # endif /* no CLSIZE */
10527 # else /* no NBPG */
10528 # ifdef NBPC
10529 # define getpagesize() NBPC
10530 # else /* no NBPC */
10531 # ifdef PAGESIZE
10532 # define getpagesize() PAGESIZE
10533 # endif /* PAGESIZE */
10534 # endif /* no NBPC */
10535 # endif /* no NBPG */
10536 # endif /* no EXEC_PAGESIZE */
10537 # else /* no HAVE_SYS_PARAM_H */
10538 # define getpagesize() 8192 /* punt totally */
10539 # endif /* no HAVE_SYS_PARAM_H */
10540 # endif /* no _SC_PAGESIZE */
10542 #endif /* no HAVE_GETPAGESIZE */
10545 main ()
10547 char *data, *data2, *data3;
10548 int i, pagesize;
10549 int fd;
10551 pagesize = getpagesize ();
10553 /* First, make a file with some known garbage in it. */
10554 data = (char *) malloc (pagesize);
10555 if (!data)
10556 return 1;
10557 for (i = 0; i < pagesize; ++i)
10558 *(data + i) = rand ();
10559 umask (0);
10560 fd = creat ("conftest.mmap", 0600);
10561 if (fd < 0)
10562 return 1;
10563 if (write (fd, data, pagesize) != pagesize)
10564 return 1;
10565 close (fd);
10567 /* Next, try to mmap the file at a fixed address which already has
10568 something else allocated at it. If we can, also make sure that
10569 we see the same garbage. */
10570 fd = open ("conftest.mmap", O_RDWR);
10571 if (fd < 0)
10572 return 1;
10573 data2 = (char *) malloc (2 * pagesize);
10574 if (!data2)
10575 return 1;
10576 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10577 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10578 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10579 return 1;
10580 for (i = 0; i < pagesize; ++i)
10581 if (*(data + i) != *(data2 + i))
10582 return 1;
10584 /* Finally, make sure that changes to the mapped area do not
10585 percolate back to the file as seen by read(). (This is a bug on
10586 some variants of i386 svr4.0.) */
10587 for (i = 0; i < pagesize; ++i)
10588 *(data2 + i) = *(data2 + i) + 1;
10589 data3 = (char *) malloc (pagesize);
10590 if (!data3)
10591 return 1;
10592 if (read (fd, data3, pagesize) != pagesize)
10593 return 1;
10594 for (i = 0; i < pagesize; ++i)
10595 if (*(data + i) != *(data3 + i))
10596 return 1;
10597 close (fd);
10598 return 0;
10600 _ACEOF
10601 rm -f conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10608 $as_echo "$ac_try_echo") >&5
10609 (eval "$ac_link") 2>&5
10610 ac_status=$?
10611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10613 { (case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616 esac
10617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10618 $as_echo "$ac_try_echo") >&5
10619 (eval "$ac_try") 2>&5
10620 ac_status=$?
10621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); }; }; then
10623 ac_cv_func_mmap_fixed_mapped=yes
10624 else
10625 $as_echo "$as_me: program exited with status $ac_status" >&5
10626 $as_echo "$as_me: failed program was:" >&5
10627 sed 's/^/| /' conftest.$ac_ext >&5
10629 ( exit $ac_status )
10630 ac_cv_func_mmap_fixed_mapped=no
10632 rm -rf conftest.dSYM
10633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10638 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10639 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10640 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10642 cat >>confdefs.h <<\_ACEOF
10643 #define HAVE_MMAP 1
10644 _ACEOF
10647 rm -f conftest.mmap
10649 if test $use_mmap_for_buffers = yes; then
10650 REL_ALLOC=no
10653 LIBS="$libsrc_libs $LIBS"
10656 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10657 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10658 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10659 $as_echo_n "(cached) " >&6
10660 else
10661 ac_check_lib_save_LIBS=$LIBS
10662 LIBS="-ldnet $LIBS"
10663 cat >conftest.$ac_ext <<_ACEOF
10664 /* confdefs.h. */
10665 _ACEOF
10666 cat confdefs.h >>conftest.$ac_ext
10667 cat >>conftest.$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 char dnet_ntoa ();
10678 main ()
10680 return dnet_ntoa ();
10682 return 0;
10684 _ACEOF
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690 esac
10691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10692 $as_echo "$ac_try_echo") >&5
10693 (eval "$ac_link") 2>conftest.er1
10694 ac_status=$?
10695 grep -v '^ *+' conftest.er1 >conftest.err
10696 rm -f conftest.er1
10697 cat conftest.err >&5
10698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } && {
10700 test -z "$ac_c_werror_flag" ||
10701 test ! -s conftest.err
10702 } && test -s conftest$ac_exeext && {
10703 test "$cross_compiling" = yes ||
10704 $as_test_x conftest$ac_exeext
10705 }; then
10706 ac_cv_lib_dnet_dnet_ntoa=yes
10707 else
10708 $as_echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10711 ac_cv_lib_dnet_dnet_ntoa=no
10714 rm -rf conftest.dSYM
10715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10716 conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10720 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10721 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10722 cat >>confdefs.h <<_ACEOF
10723 #define HAVE_LIBDNET 1
10724 _ACEOF
10726 LIBS="-ldnet $LIBS"
10731 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10732 $as_echo_n "checking for main in -lXbsd... " >&6; }
10733 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10734 $as_echo_n "(cached) " >&6
10735 else
10736 ac_check_lib_save_LIBS=$LIBS
10737 LIBS="-lXbsd $LIBS"
10738 cat >conftest.$ac_ext <<_ACEOF
10739 /* confdefs.h. */
10740 _ACEOF
10741 cat confdefs.h >>conftest.$ac_ext
10742 cat >>conftest.$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10747 main ()
10749 return main ();
10751 return 0;
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (ac_try="$ac_link"
10756 case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759 esac
10760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10761 $as_echo "$ac_try_echo") >&5
10762 (eval "$ac_link") 2>conftest.er1
10763 ac_status=$?
10764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
10767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext && {
10772 test "$cross_compiling" = yes ||
10773 $as_test_x conftest$ac_exeext
10774 }; then
10775 ac_cv_lib_Xbsd_main=yes
10776 else
10777 $as_echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_lib_Xbsd_main=no
10783 rm -rf conftest.dSYM
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10786 LIBS=$ac_check_lib_save_LIBS
10788 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10789 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10790 if test $ac_cv_lib_Xbsd_main = yes; then
10791 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10796 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10797 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10798 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10799 $as_echo_n "(cached) " >&6
10800 else
10801 ac_check_lib_save_LIBS=$LIBS
10802 LIBS="-lpthreads $LIBS"
10803 cat >conftest.$ac_ext <<_ACEOF
10804 /* confdefs.h. */
10805 _ACEOF
10806 cat confdefs.h >>conftest.$ac_ext
10807 cat >>conftest.$ac_ext <<_ACEOF
10808 /* end confdefs.h. */
10810 /* Override any GCC internal prototype to avoid an error.
10811 Use char because int might match the return type of a GCC
10812 builtin and then its argument prototype would still apply. */
10813 #ifdef __cplusplus
10814 extern "C"
10815 #endif
10816 char cma_open ();
10818 main ()
10820 return cma_open ();
10822 return 0;
10824 _ACEOF
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10829 *) ac_try_echo=$ac_try;;
10830 esac
10831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10832 $as_echo "$ac_try_echo") >&5
10833 (eval "$ac_link") 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext && {
10843 test "$cross_compiling" = yes ||
10844 $as_test_x conftest$ac_exeext
10845 }; then
10846 ac_cv_lib_pthreads_cma_open=yes
10847 else
10848 $as_echo "$as_me: failed program was:" >&5
10849 sed 's/^/| /' conftest.$ac_ext >&5
10851 ac_cv_lib_pthreads_cma_open=no
10854 rm -rf conftest.dSYM
10855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10856 conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10860 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10861 if test $ac_cv_lib_pthreads_cma_open = yes; then
10862 cat >>confdefs.h <<_ACEOF
10863 #define HAVE_LIBPTHREADS 1
10864 _ACEOF
10866 LIBS="-lpthreads $LIBS"
10872 case ${host_os} in
10873 aix*)
10874 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10875 $as_echo_n "checking for -bbigtoc option... " >&6; }
10876 if test "${gdb_cv_bigtoc+set}" = set; then
10877 $as_echo_n "(cached) " >&6
10878 else
10880 case $GCC in
10881 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10882 *) gdb_cv_bigtoc=-bbigtoc ;;
10883 esac
10885 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10886 cat >conftest.$ac_ext <<_ACEOF
10887 /* confdefs.h. */
10888 _ACEOF
10889 cat confdefs.h >>conftest.$ac_ext
10890 cat >>conftest.$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10894 main ()
10896 int i;
10898 return 0;
10900 _ACEOF
10901 rm -f conftest.$ac_objext conftest$ac_exeext
10902 if { (ac_try="$ac_link"
10903 case "(($ac_try" in
10904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10905 *) ac_try_echo=$ac_try;;
10906 esac
10907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10908 $as_echo "$ac_try_echo") >&5
10909 (eval "$ac_link") 2>conftest.er1
10910 ac_status=$?
10911 grep -v '^ *+' conftest.er1 >conftest.err
10912 rm -f conftest.er1
10913 cat conftest.err >&5
10914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); } && {
10916 test -z "$ac_c_werror_flag" ||
10917 test ! -s conftest.err
10918 } && test -s conftest$ac_exeext && {
10919 test "$cross_compiling" = yes ||
10920 $as_test_x conftest$ac_exeext
10921 }; then
10923 else
10924 $as_echo "$as_me: failed program was:" >&5
10925 sed 's/^/| /' conftest.$ac_ext >&5
10927 gdb_cv_bigtoc=
10930 rm -rf conftest.dSYM
10931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932 conftest$ac_exeext conftest.$ac_ext
10935 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10936 $as_echo "$gdb_cv_bigtoc" >&6; }
10938 esac
10940 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10941 # used for the tests that follow. We set them back to REAL_CFLAGS and
10942 # REAL_CPPFLAGS later on.
10944 REAL_CPPFLAGS="$CPPFLAGS"
10946 if test "${HAVE_X11}" = "yes"; then
10947 DEFS="$C_SWITCH_X_SITE $DEFS"
10948 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10949 LIBS="$LIBX $LIBS"
10950 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10951 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10953 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10954 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10955 # but it's more convenient here to set LD_RUN_PATH
10956 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10957 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10958 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10959 export LD_RUN_PATH
10962 if test "${opsys}" = "gnu-linux"; then
10963 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10964 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h. */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h. */
10973 main ()
10975 XOpenDisplay ("foo");
10977 return 0;
10979 _ACEOF
10980 rm -f conftest.$ac_objext conftest$ac_exeext
10981 if { (ac_try="$ac_link"
10982 case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985 esac
10986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10987 $as_echo "$ac_try_echo") >&5
10988 (eval "$ac_link") 2>conftest.er1
10989 ac_status=$?
10990 grep -v '^ *+' conftest.er1 >conftest.err
10991 rm -f conftest.er1
10992 cat conftest.err >&5
10993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && {
10995 test -z "$ac_c_werror_flag" ||
10996 test ! -s conftest.err
10997 } && test -s conftest$ac_exeext && {
10998 test "$cross_compiling" = yes ||
10999 $as_test_x conftest$ac_exeext
11000 }; then
11001 xlinux_first_failure=no
11002 else
11003 $as_echo "$as_me: failed program was:" >&5
11004 sed 's/^/| /' conftest.$ac_ext >&5
11006 xlinux_first_failure=yes
11009 rm -rf conftest.dSYM
11010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11011 conftest$ac_exeext conftest.$ac_ext
11012 if test "${xlinux_first_failure}" = "yes"; then
11013 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11014 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11015 OLD_CPPFLAGS="$CPPFLAGS"
11016 OLD_LIBS="$LIBS"
11017 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11018 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11019 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11020 LIBS="$LIBS -b i486-linuxaout"
11021 cat >conftest.$ac_ext <<_ACEOF
11022 /* confdefs.h. */
11023 _ACEOF
11024 cat confdefs.h >>conftest.$ac_ext
11025 cat >>conftest.$ac_ext <<_ACEOF
11026 /* end confdefs.h. */
11029 main ()
11031 XOpenDisplay ("foo");
11033 return 0;
11035 _ACEOF
11036 rm -f conftest.$ac_objext conftest$ac_exeext
11037 if { (ac_try="$ac_link"
11038 case "(($ac_try" in
11039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11041 esac
11042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11043 $as_echo "$ac_try_echo") >&5
11044 (eval "$ac_link") 2>conftest.er1
11045 ac_status=$?
11046 grep -v '^ *+' conftest.er1 >conftest.err
11047 rm -f conftest.er1
11048 cat conftest.err >&5
11049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } && {
11051 test -z "$ac_c_werror_flag" ||
11052 test ! -s conftest.err
11053 } && test -s conftest$ac_exeext && {
11054 test "$cross_compiling" = yes ||
11055 $as_test_x conftest$ac_exeext
11056 }; then
11057 xlinux_second_failure=no
11058 else
11059 $as_echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.$ac_ext >&5
11062 xlinux_second_failure=yes
11065 rm -rf conftest.dSYM
11066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11067 conftest$ac_exeext conftest.$ac_ext
11068 if test "${xlinux_second_failure}" = "yes"; then
11069 # If we get the same failure with -b, there is no use adding -b.
11070 # So take it out. This plays safe.
11071 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11072 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11073 CPPFLAGS="$OLD_CPPFLAGS"
11074 LIBS="$OLD_LIBS"
11075 { $as_echo "$as_me:$LINENO: result: no" >&5
11076 $as_echo "no" >&6; }
11077 else
11078 { $as_echo "$as_me:$LINENO: result: yes" >&5
11079 $as_echo "yes" >&6; }
11081 else
11082 { $as_echo "$as_me:$LINENO: result: no" >&5
11083 $as_echo "no" >&6; }
11087 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11088 # header files included from there.
11089 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11090 $as_echo_n "checking for Xkb... " >&6; }
11091 cat >conftest.$ac_ext <<_ACEOF
11092 /* confdefs.h. */
11093 _ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 #include <X11/Xlib.h>
11098 #include <X11/XKBlib.h>
11100 main ()
11102 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11104 return 0;
11106 _ACEOF
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (ac_try="$ac_link"
11109 case "(($ac_try" in
11110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111 *) ac_try_echo=$ac_try;;
11112 esac
11113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11114 $as_echo "$ac_try_echo") >&5
11115 (eval "$ac_link") 2>conftest.er1
11116 ac_status=$?
11117 grep -v '^ *+' conftest.er1 >conftest.err
11118 rm -f conftest.er1
11119 cat conftest.err >&5
11120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); } && {
11122 test -z "$ac_c_werror_flag" ||
11123 test ! -s conftest.err
11124 } && test -s conftest$ac_exeext && {
11125 test "$cross_compiling" = yes ||
11126 $as_test_x conftest$ac_exeext
11127 }; then
11128 emacs_xkb=yes
11129 else
11130 $as_echo "$as_me: failed program was:" >&5
11131 sed 's/^/| /' conftest.$ac_ext >&5
11133 emacs_xkb=no
11136 rm -rf conftest.dSYM
11137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11138 conftest$ac_exeext conftest.$ac_ext
11139 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11140 $as_echo "$emacs_xkb" >&6; }
11141 if test $emacs_xkb = yes; then
11143 cat >>confdefs.h <<\_ACEOF
11144 #define HAVE_XKBGETKEYBOARD 1
11145 _ACEOF
11153 for ac_func in XrmSetDatabase XScreenResourceString \
11154 XScreenNumberOfScreen XSetWMProtocols
11156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11157 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11158 $as_echo_n "checking for $ac_func... " >&6; }
11159 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11160 $as_echo_n "(cached) " >&6
11161 else
11162 cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h. */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11170 #define $ac_func innocuous_$ac_func
11172 /* System header to define __stub macros and hopefully few prototypes,
11173 which can conflict with char $ac_func (); below.
11174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175 <limits.h> exists even on freestanding compilers. */
11177 #ifdef __STDC__
11178 # include <limits.h>
11179 #else
11180 # include <assert.h>
11181 #endif
11183 #undef $ac_func
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 char $ac_func ();
11192 /* The GNU C library defines this for functions which it implements
11193 to always fail with ENOSYS. Some functions are actually named
11194 something starting with __ and the normal name is an alias. */
11195 #if defined __stub_$ac_func || defined __stub___$ac_func
11196 choke me
11197 #endif
11200 main ()
11202 return $ac_func ();
11204 return 0;
11206 _ACEOF
11207 rm -f conftest.$ac_objext conftest$ac_exeext
11208 if { (ac_try="$ac_link"
11209 case "(($ac_try" in
11210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11212 esac
11213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11214 $as_echo "$ac_try_echo") >&5
11215 (eval "$ac_link") 2>conftest.er1
11216 ac_status=$?
11217 grep -v '^ *+' conftest.er1 >conftest.err
11218 rm -f conftest.er1
11219 cat conftest.err >&5
11220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && {
11222 test -z "$ac_c_werror_flag" ||
11223 test ! -s conftest.err
11224 } && test -s conftest$ac_exeext && {
11225 test "$cross_compiling" = yes ||
11226 $as_test_x conftest$ac_exeext
11227 }; then
11228 eval "$as_ac_var=yes"
11229 else
11230 $as_echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11233 eval "$as_ac_var=no"
11236 rm -rf conftest.dSYM
11237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11238 conftest$ac_exeext conftest.$ac_ext
11240 ac_res=`eval 'as_val=${'$as_ac_var'}
11241 $as_echo "$as_val"'`
11242 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11243 $as_echo "$ac_res" >&6; }
11244 if test `eval 'as_val=${'$as_ac_var'}
11245 $as_echo "$as_val"'` = yes; then
11246 cat >>confdefs.h <<_ACEOF
11247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11248 _ACEOF
11251 done
11255 if test "${window_system}" = "x11"; then
11256 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11257 $as_echo_n "checking X11 version 6... " >&6; }
11258 if test "${emacs_cv_x11_version_6+set}" = set; then
11259 $as_echo_n "(cached) " >&6
11260 else
11261 cat >conftest.$ac_ext <<_ACEOF
11262 /* confdefs.h. */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h. */
11267 #include <X11/Xlib.h>
11269 main ()
11271 #if XlibSpecificationRelease < 6
11272 fail;
11273 #endif
11276 return 0;
11278 _ACEOF
11279 rm -f conftest.$ac_objext conftest$ac_exeext
11280 if { (ac_try="$ac_link"
11281 case "(($ac_try" in
11282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11283 *) ac_try_echo=$ac_try;;
11284 esac
11285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11286 $as_echo "$ac_try_echo") >&5
11287 (eval "$ac_link") 2>conftest.er1
11288 ac_status=$?
11289 grep -v '^ *+' conftest.er1 >conftest.err
11290 rm -f conftest.er1
11291 cat conftest.err >&5
11292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293 (exit $ac_status); } && {
11294 test -z "$ac_c_werror_flag" ||
11295 test ! -s conftest.err
11296 } && test -s conftest$ac_exeext && {
11297 test "$cross_compiling" = yes ||
11298 $as_test_x conftest$ac_exeext
11299 }; then
11300 emacs_cv_x11_version_6=yes
11301 else
11302 $as_echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.$ac_ext >&5
11305 emacs_cv_x11_version_6=no
11308 rm -rf conftest.dSYM
11309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11310 conftest$ac_exeext conftest.$ac_ext
11313 if test $emacs_cv_x11_version_6 = yes; then
11314 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11315 $as_echo "6 or newer" >&6; }
11317 cat >>confdefs.h <<\_ACEOF
11318 #define HAVE_X11R6 1
11319 _ACEOF
11321 else
11322 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11323 $as_echo "before 6" >&6; }
11328 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11329 HAVE_RSVG=no
11330 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11331 if test "${with_rsvg}" != "no"; then
11332 RSVG_REQUIRED=2.11.0
11333 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11336 succeeded=no
11338 # Extract the first word of "pkg-config", so it can be a program name with args.
11339 set dummy pkg-config; ac_word=$2
11340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11341 $as_echo_n "checking for $ac_word... " >&6; }
11342 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11343 $as_echo_n "(cached) " >&6
11344 else
11345 case $PKG_CONFIG in
11346 [\\/]* | ?:[\\/]*)
11347 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11353 IFS=$as_save_IFS
11354 test -z "$as_dir" && as_dir=.
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11358 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11359 break 2
11361 done
11362 done
11363 IFS=$as_save_IFS
11365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11367 esac
11369 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11370 if test -n "$PKG_CONFIG"; then
11371 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11372 $as_echo "$PKG_CONFIG" >&6; }
11373 else
11374 { $as_echo "$as_me:$LINENO: result: no" >&5
11375 $as_echo "no" >&6; }
11380 if test "$PKG_CONFIG" = "no" ; then
11382 else
11383 PKG_CONFIG_MIN_VERSION=0.9.0
11384 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11385 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11386 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11388 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11389 { $as_echo "$as_me:$LINENO: result: yes" >&5
11390 $as_echo "yes" >&6; }
11391 succeeded=yes
11393 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11394 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11395 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11396 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11397 $as_echo "$RSVG_CFLAGS" >&6; }
11399 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11400 $as_echo_n "checking RSVG_LIBS... " >&6; }
11401 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11402 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11403 $as_echo "$RSVG_LIBS" >&6; }
11404 else
11405 { $as_echo "$as_me:$LINENO: result: no" >&5
11406 $as_echo "no" >&6; }
11407 RSVG_CFLAGS=""
11408 RSVG_LIBS=""
11409 ## If we have a custom action on failure, don't print errors, but
11410 ## do set a variable so people can do so.
11411 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11417 else
11418 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11419 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11423 if test $succeeded = yes; then
11425 else
11432 if test ".${RSVG_CFLAGS}" != "."; then
11433 HAVE_RSVG=yes
11435 cat >>confdefs.h <<\_ACEOF
11436 #define HAVE_RSVG 1
11437 _ACEOF
11439 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11440 LIBS="$RSVG_LIBS $LIBS"
11446 HAVE_GTK=no
11447 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11448 GLIB_REQUIRED=2.6
11449 GTK_REQUIRED=2.6
11450 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11453 succeeded=no
11455 # Extract the first word of "pkg-config", so it can be a program name with args.
11456 set dummy pkg-config; ac_word=$2
11457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11458 $as_echo_n "checking for $ac_word... " >&6; }
11459 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11460 $as_echo_n "(cached) " >&6
11461 else
11462 case $PKG_CONFIG in
11463 [\\/]* | ?:[\\/]*)
11464 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11470 IFS=$as_save_IFS
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11474 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11475 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11476 break 2
11478 done
11479 done
11480 IFS=$as_save_IFS
11482 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11484 esac
11486 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11487 if test -n "$PKG_CONFIG"; then
11488 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11489 $as_echo "$PKG_CONFIG" >&6; }
11490 else
11491 { $as_echo "$as_me:$LINENO: result: no" >&5
11492 $as_echo "no" >&6; }
11497 if test "$PKG_CONFIG" = "no" ; then
11498 pkg_check_gtk=no
11499 else
11500 PKG_CONFIG_MIN_VERSION=0.9.0
11501 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11502 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11503 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11505 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11506 { $as_echo "$as_me:$LINENO: result: yes" >&5
11507 $as_echo "yes" >&6; }
11508 succeeded=yes
11510 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11511 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11512 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11513 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11514 $as_echo "$GTK_CFLAGS" >&6; }
11516 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11517 $as_echo_n "checking GTK_LIBS... " >&6; }
11518 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11519 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11520 $as_echo "$GTK_LIBS" >&6; }
11521 else
11522 { $as_echo "$as_me:$LINENO: result: no" >&5
11523 $as_echo "no" >&6; }
11524 GTK_CFLAGS=""
11525 GTK_LIBS=""
11526 ## If we have a custom action on failure, don't print errors, but
11527 ## do set a variable so people can do so.
11528 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11534 else
11535 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11536 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11540 if test $succeeded = yes; then
11541 pkg_check_gtk=yes
11542 else
11543 pkg_check_gtk=no
11546 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11547 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11548 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11549 { (exit 1); exit 1; }; }
11554 if test x"$pkg_check_gtk" = xyes; then
11558 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11559 CFLAGS="$CFLAGS $GTK_CFLAGS"
11560 LIBS="$GTK_LIBS $LIBS"
11561 GTK_COMPILES=no
11563 for ac_func in gtk_main
11565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11566 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11567 $as_echo_n "checking for $ac_func... " >&6; }
11568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11569 $as_echo_n "(cached) " >&6
11570 else
11571 cat >conftest.$ac_ext <<_ACEOF
11572 /* confdefs.h. */
11573 _ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11579 #define $ac_func innocuous_$ac_func
11581 /* System header to define __stub macros and hopefully few prototypes,
11582 which can conflict with char $ac_func (); below.
11583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11584 <limits.h> exists even on freestanding compilers. */
11586 #ifdef __STDC__
11587 # include <limits.h>
11588 #else
11589 # include <assert.h>
11590 #endif
11592 #undef $ac_func
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 char $ac_func ();
11601 /* The GNU C library defines this for functions which it implements
11602 to always fail with ENOSYS. Some functions are actually named
11603 something starting with __ and the normal name is an alias. */
11604 #if defined __stub_$ac_func || defined __stub___$ac_func
11605 choke me
11606 #endif
11609 main ()
11611 return $ac_func ();
11613 return 0;
11615 _ACEOF
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (ac_try="$ac_link"
11618 case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11621 esac
11622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11623 $as_echo "$ac_try_echo") >&5
11624 (eval "$ac_link") 2>conftest.er1
11625 ac_status=$?
11626 grep -v '^ *+' conftest.er1 >conftest.err
11627 rm -f conftest.er1
11628 cat conftest.err >&5
11629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } && {
11631 test -z "$ac_c_werror_flag" ||
11632 test ! -s conftest.err
11633 } && test -s conftest$ac_exeext && {
11634 test "$cross_compiling" = yes ||
11635 $as_test_x conftest$ac_exeext
11636 }; then
11637 eval "$as_ac_var=yes"
11638 else
11639 $as_echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11642 eval "$as_ac_var=no"
11645 rm -rf conftest.dSYM
11646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11647 conftest$ac_exeext conftest.$ac_ext
11649 ac_res=`eval 'as_val=${'$as_ac_var'}
11650 $as_echo "$as_val"'`
11651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11652 $as_echo "$ac_res" >&6; }
11653 if test `eval 'as_val=${'$as_ac_var'}
11654 $as_echo "$as_val"'` = yes; then
11655 cat >>confdefs.h <<_ACEOF
11656 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11657 _ACEOF
11658 GTK_COMPILES=yes
11660 done
11662 if test "${GTK_COMPILES}" != "yes"; then
11663 if test "$USE_X_TOOLKIT" != "maybe"; then
11664 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11665 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11666 { (exit 1); exit 1; }; };
11668 else
11669 HAVE_GTK=yes
11671 cat >>confdefs.h <<\_ACEOF
11672 #define USE_GTK 1
11673 _ACEOF
11675 USE_X_TOOLKIT=none
11676 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11678 else
11679 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11680 closing open displays. This is no problem if you just use
11681 one display, but if you use more than one and close one of them
11682 Emacs may crash." >&5
11683 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11684 closing open displays. This is no problem if you just use
11685 one display, but if you use more than one and close one of them
11686 Emacs may crash." >&2;}
11687 sleep 3
11694 if test "${HAVE_GTK}" = "yes"; then
11696 if test "$with_toolkit_scroll_bars" != no; then
11697 with_toolkit_scroll_bars=yes
11700 HAVE_GTK_MULTIDISPLAY=no
11702 for ac_func in gdk_display_open
11704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11705 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11706 $as_echo_n "checking for $ac_func... " >&6; }
11707 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11708 $as_echo_n "(cached) " >&6
11709 else
11710 cat >conftest.$ac_ext <<_ACEOF
11711 /* confdefs.h. */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11718 #define $ac_func innocuous_$ac_func
11720 /* System header to define __stub macros and hopefully few prototypes,
11721 which can conflict with char $ac_func (); below.
11722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11723 <limits.h> exists even on freestanding compilers. */
11725 #ifdef __STDC__
11726 # include <limits.h>
11727 #else
11728 # include <assert.h>
11729 #endif
11731 #undef $ac_func
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 char $ac_func ();
11740 /* The GNU C library defines this for functions which it implements
11741 to always fail with ENOSYS. Some functions are actually named
11742 something starting with __ and the normal name is an alias. */
11743 #if defined __stub_$ac_func || defined __stub___$ac_func
11744 choke me
11745 #endif
11748 main ()
11750 return $ac_func ();
11752 return 0;
11754 _ACEOF
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (ac_try="$ac_link"
11757 case "(($ac_try" in
11758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11759 *) ac_try_echo=$ac_try;;
11760 esac
11761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11762 $as_echo "$ac_try_echo") >&5
11763 (eval "$ac_link") 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } && {
11770 test -z "$ac_c_werror_flag" ||
11771 test ! -s conftest.err
11772 } && test -s conftest$ac_exeext && {
11773 test "$cross_compiling" = yes ||
11774 $as_test_x conftest$ac_exeext
11775 }; then
11776 eval "$as_ac_var=yes"
11777 else
11778 $as_echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 eval "$as_ac_var=no"
11784 rm -rf conftest.dSYM
11785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11786 conftest$ac_exeext conftest.$ac_ext
11788 ac_res=`eval 'as_val=${'$as_ac_var'}
11789 $as_echo "$as_val"'`
11790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11791 $as_echo "$ac_res" >&6; }
11792 if test `eval 'as_val=${'$as_ac_var'}
11793 $as_echo "$as_val"'` = yes; then
11794 cat >>confdefs.h <<_ACEOF
11795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11796 _ACEOF
11797 HAVE_GTK_MULTIDISPLAY=yes
11799 done
11801 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11803 cat >>confdefs.h <<\_ACEOF
11804 #define HAVE_GTK_MULTIDISPLAY 1
11805 _ACEOF
11809 HAVE_GTK_FILE_SELECTION=no
11810 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11811 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11812 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11813 $as_echo_n "(cached) " >&6
11814 else
11815 cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h. */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 $ac_includes_default
11822 #include <gtk/gtk.h>
11825 main ()
11827 #ifndef GTK_TYPE_FILE_SELECTION
11828 (void) GTK_TYPE_FILE_SELECTION;
11829 #endif
11832 return 0;
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (ac_try="$ac_compile"
11837 case "(($ac_try" in
11838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839 *) ac_try_echo=$ac_try;;
11840 esac
11841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11842 $as_echo "$ac_try_echo") >&5
11843 (eval "$ac_compile") 2>conftest.er1
11844 ac_status=$?
11845 grep -v '^ *+' conftest.er1 >conftest.err
11846 rm -f conftest.er1
11847 cat conftest.err >&5
11848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && {
11850 test -z "$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11852 } && test -s conftest.$ac_objext; then
11853 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11854 else
11855 $as_echo "$as_me: failed program was:" >&5
11856 sed 's/^/| /' conftest.$ac_ext >&5
11858 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11863 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11864 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11865 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11866 HAVE_GTK_FILE_SELECTION=yes
11867 else
11868 HAVE_GTK_FILE_SELECTION=no
11871 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11873 for ac_func in gtk_file_selection_new
11875 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11876 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11877 $as_echo_n "checking for $ac_func... " >&6; }
11878 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11879 $as_echo_n "(cached) " >&6
11880 else
11881 cat >conftest.$ac_ext <<_ACEOF
11882 /* confdefs.h. */
11883 _ACEOF
11884 cat confdefs.h >>conftest.$ac_ext
11885 cat >>conftest.$ac_ext <<_ACEOF
11886 /* end confdefs.h. */
11887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11889 #define $ac_func innocuous_$ac_func
11891 /* System header to define __stub macros and hopefully few prototypes,
11892 which can conflict with char $ac_func (); below.
11893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11894 <limits.h> exists even on freestanding compilers. */
11896 #ifdef __STDC__
11897 # include <limits.h>
11898 #else
11899 # include <assert.h>
11900 #endif
11902 #undef $ac_func
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11907 #ifdef __cplusplus
11908 extern "C"
11909 #endif
11910 char $ac_func ();
11911 /* The GNU C library defines this for functions which it implements
11912 to always fail with ENOSYS. Some functions are actually named
11913 something starting with __ and the normal name is an alias. */
11914 #if defined __stub_$ac_func || defined __stub___$ac_func
11915 choke me
11916 #endif
11919 main ()
11921 return $ac_func ();
11923 return 0;
11925 _ACEOF
11926 rm -f conftest.$ac_objext conftest$ac_exeext
11927 if { (ac_try="$ac_link"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931 esac
11932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11933 $as_echo "$ac_try_echo") >&5
11934 (eval "$ac_link") 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } && {
11941 test -z "$ac_c_werror_flag" ||
11942 test ! -s conftest.err
11943 } && test -s conftest$ac_exeext && {
11944 test "$cross_compiling" = yes ||
11945 $as_test_x conftest$ac_exeext
11946 }; then
11947 eval "$as_ac_var=yes"
11948 else
11949 $as_echo "$as_me: failed program was:" >&5
11950 sed 's/^/| /' conftest.$ac_ext >&5
11952 eval "$as_ac_var=no"
11955 rm -rf conftest.dSYM
11956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11957 conftest$ac_exeext conftest.$ac_ext
11959 ac_res=`eval 'as_val=${'$as_ac_var'}
11960 $as_echo "$as_val"'`
11961 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11962 $as_echo "$ac_res" >&6; }
11963 if test `eval 'as_val=${'$as_ac_var'}
11964 $as_echo "$as_val"'` = yes; then
11965 cat >>confdefs.h <<_ACEOF
11966 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11967 _ACEOF
11968 HAVE_GTK_FILE_SELECTION=yes
11969 else
11970 HAVE_GTK_FILE_SELECTION=no
11972 done
11976 HAVE_GTK_FILE_CHOOSER=no
11977 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
11978 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
11979 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
11980 $as_echo_n "(cached) " >&6
11981 else
11982 cat >conftest.$ac_ext <<_ACEOF
11983 /* confdefs.h. */
11984 _ACEOF
11985 cat confdefs.h >>conftest.$ac_ext
11986 cat >>conftest.$ac_ext <<_ACEOF
11987 /* end confdefs.h. */
11988 $ac_includes_default
11989 #include <gtk/gtk.h>
11992 main ()
11994 #ifndef GTK_TYPE_FILE_CHOOSER
11995 (void) GTK_TYPE_FILE_CHOOSER;
11996 #endif
11999 return 0;
12001 _ACEOF
12002 rm -f conftest.$ac_objext
12003 if { (ac_try="$ac_compile"
12004 case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007 esac
12008 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12009 $as_echo "$ac_try_echo") >&5
12010 (eval "$ac_compile") 2>conftest.er1
12011 ac_status=$?
12012 grep -v '^ *+' conftest.er1 >conftest.err
12013 rm -f conftest.er1
12014 cat conftest.err >&5
12015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); } && {
12017 test -z "$ac_c_werror_flag" ||
12018 test ! -s conftest.err
12019 } && test -s conftest.$ac_objext; then
12020 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12021 else
12022 $as_echo "$as_me: failed program was:" >&5
12023 sed 's/^/| /' conftest.$ac_ext >&5
12025 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12031 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12032 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12033 HAVE_GTK_FILE_CHOOSER=yes
12034 else
12035 HAVE_GTK_FILE_CHOOSER=no
12038 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12040 for ac_func in gtk_file_chooser_dialog_new
12042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12043 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12044 $as_echo_n "checking for $ac_func... " >&6; }
12045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12046 $as_echo_n "(cached) " >&6
12047 else
12048 cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h. */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12056 #define $ac_func innocuous_$ac_func
12058 /* System header to define __stub macros and hopefully few prototypes,
12059 which can conflict with char $ac_func (); below.
12060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12061 <limits.h> exists even on freestanding compilers. */
12063 #ifdef __STDC__
12064 # include <limits.h>
12065 #else
12066 # include <assert.h>
12067 #endif
12069 #undef $ac_func
12071 /* Override any GCC internal prototype to avoid an error.
12072 Use char because int might match the return type of a GCC
12073 builtin and then its argument prototype would still apply. */
12074 #ifdef __cplusplus
12075 extern "C"
12076 #endif
12077 char $ac_func ();
12078 /* The GNU C library defines this for functions which it implements
12079 to always fail with ENOSYS. Some functions are actually named
12080 something starting with __ and the normal name is an alias. */
12081 #if defined __stub_$ac_func || defined __stub___$ac_func
12082 choke me
12083 #endif
12086 main ()
12088 return $ac_func ();
12090 return 0;
12092 _ACEOF
12093 rm -f conftest.$ac_objext conftest$ac_exeext
12094 if { (ac_try="$ac_link"
12095 case "(($ac_try" in
12096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097 *) ac_try_echo=$ac_try;;
12098 esac
12099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12100 $as_echo "$ac_try_echo") >&5
12101 (eval "$ac_link") 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } && {
12108 test -z "$ac_c_werror_flag" ||
12109 test ! -s conftest.err
12110 } && test -s conftest$ac_exeext && {
12111 test "$cross_compiling" = yes ||
12112 $as_test_x conftest$ac_exeext
12113 }; then
12114 eval "$as_ac_var=yes"
12115 else
12116 $as_echo "$as_me: failed program was:" >&5
12117 sed 's/^/| /' conftest.$ac_ext >&5
12119 eval "$as_ac_var=no"
12122 rm -rf conftest.dSYM
12123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12124 conftest$ac_exeext conftest.$ac_ext
12126 ac_res=`eval 'as_val=${'$as_ac_var'}
12127 $as_echo "$as_val"'`
12128 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12129 $as_echo "$ac_res" >&6; }
12130 if test `eval 'as_val=${'$as_ac_var'}
12131 $as_echo "$as_val"'` = yes; then
12132 cat >>confdefs.h <<_ACEOF
12133 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12134 _ACEOF
12135 HAVE_GTK_FILE_CHOOSER=yes
12136 else
12137 HAVE_GTK_FILE_CHOOSER=no
12139 done
12143 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12144 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12146 cat >>confdefs.h <<\_ACEOF
12147 #define HAVE_GTK_FILE_BOTH 1
12148 _ACEOF
12152 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12153 HAVE_GTK_AND_PTHREAD=no
12155 for ac_header in pthread.h
12157 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12159 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12160 $as_echo_n "checking for $ac_header... " >&6; }
12161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12162 $as_echo_n "(cached) " >&6
12164 ac_res=`eval 'as_val=${'$as_ac_Header'}
12165 $as_echo "$as_val"'`
12166 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12167 $as_echo "$ac_res" >&6; }
12168 else
12169 # Is the header compilable?
12170 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12171 $as_echo_n "checking $ac_header usability... " >&6; }
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h. */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 $ac_includes_default
12179 #include <$ac_header>
12180 _ACEOF
12181 rm -f conftest.$ac_objext
12182 if { (ac_try="$ac_compile"
12183 case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12186 esac
12187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12188 $as_echo "$ac_try_echo") >&5
12189 (eval "$ac_compile") 2>conftest.er1
12190 ac_status=$?
12191 grep -v '^ *+' conftest.er1 >conftest.err
12192 rm -f conftest.er1
12193 cat conftest.err >&5
12194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && {
12196 test -z "$ac_c_werror_flag" ||
12197 test ! -s conftest.err
12198 } && test -s conftest.$ac_objext; then
12199 ac_header_compiler=yes
12200 else
12201 $as_echo "$as_me: failed program was:" >&5
12202 sed 's/^/| /' conftest.$ac_ext >&5
12204 ac_header_compiler=no
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12209 $as_echo "$ac_header_compiler" >&6; }
12211 # Is the header present?
12212 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12213 $as_echo_n "checking $ac_header presence... " >&6; }
12214 cat >conftest.$ac_ext <<_ACEOF
12215 /* confdefs.h. */
12216 _ACEOF
12217 cat confdefs.h >>conftest.$ac_ext
12218 cat >>conftest.$ac_ext <<_ACEOF
12219 /* end confdefs.h. */
12220 #include <$ac_header>
12221 _ACEOF
12222 if { (ac_try="$ac_cpp conftest.$ac_ext"
12223 case "(($ac_try" in
12224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12225 *) ac_try_echo=$ac_try;;
12226 esac
12227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12228 $as_echo "$ac_try_echo") >&5
12229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12230 ac_status=$?
12231 grep -v '^ *+' conftest.er1 >conftest.err
12232 rm -f conftest.er1
12233 cat conftest.err >&5
12234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } >/dev/null && {
12236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12237 test ! -s conftest.err
12238 }; then
12239 ac_header_preproc=yes
12240 else
12241 $as_echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 ac_header_preproc=no
12247 rm -f conftest.err conftest.$ac_ext
12248 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12249 $as_echo "$ac_header_preproc" >&6; }
12251 # So? What about this header?
12252 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12253 yes:no: )
12254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12255 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12257 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12258 ac_header_preproc=yes
12260 no:yes:* )
12261 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12262 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12263 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12264 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12265 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12266 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12268 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12272 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12275 esac
12276 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12277 $as_echo_n "checking for $ac_header... " >&6; }
12278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12279 $as_echo_n "(cached) " >&6
12280 else
12281 eval "$as_ac_Header=\$ac_header_preproc"
12283 ac_res=`eval 'as_val=${'$as_ac_Header'}
12284 $as_echo "$as_val"'`
12285 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12286 $as_echo "$ac_res" >&6; }
12289 if test `eval 'as_val=${'$as_ac_Header'}
12290 $as_echo "$as_val"'` = yes; then
12291 cat >>confdefs.h <<_ACEOF
12292 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12293 _ACEOF
12297 done
12299 if test "$ac_cv_header_pthread_h"; then
12300 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12301 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12302 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12303 $as_echo_n "(cached) " >&6
12304 else
12305 ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-lpthread $LIBS"
12307 cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h. */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12314 /* Override any GCC internal prototype to avoid an error.
12315 Use char because int might match the return type of a GCC
12316 builtin and then its argument prototype would still apply. */
12317 #ifdef __cplusplus
12318 extern "C"
12319 #endif
12320 char pthread_self ();
12322 main ()
12324 return pthread_self ();
12326 return 0;
12328 _ACEOF
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (ac_try="$ac_link"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12336 $as_echo "$ac_try_echo") >&5
12337 (eval "$ac_link") 2>conftest.er1
12338 ac_status=$?
12339 grep -v '^ *+' conftest.er1 >conftest.err
12340 rm -f conftest.er1
12341 cat conftest.err >&5
12342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest$ac_exeext && {
12347 test "$cross_compiling" = yes ||
12348 $as_test_x conftest$ac_exeext
12349 }; then
12350 ac_cv_lib_pthread_pthread_self=yes
12351 else
12352 $as_echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_cv_lib_pthread_pthread_self=no
12358 rm -rf conftest.dSYM
12359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360 conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12363 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12364 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12365 if test $ac_cv_lib_pthread_pthread_self = yes; then
12366 HAVE_GTK_AND_PTHREAD=yes
12370 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12371 case "${canonical}" in
12372 *-hpux*) ;;
12373 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12374 esac
12376 cat >>confdefs.h <<\_ACEOF
12377 #define HAVE_GTK_AND_PTHREAD 1
12378 _ACEOF
12384 HAVE_DBUS=no
12385 if test "${with_dbus}" = "yes"; then
12387 succeeded=no
12389 # Extract the first word of "pkg-config", so it can be a program name with args.
12390 set dummy pkg-config; ac_word=$2
12391 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12392 $as_echo_n "checking for $ac_word... " >&6; }
12393 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12394 $as_echo_n "(cached) " >&6
12395 else
12396 case $PKG_CONFIG in
12397 [\\/]* | ?:[\\/]*)
12398 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12402 for as_dir in $PATH
12404 IFS=$as_save_IFS
12405 test -z "$as_dir" && as_dir=.
12406 for ac_exec_ext in '' $ac_executable_extensions; do
12407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12408 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12409 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12410 break 2
12412 done
12413 done
12414 IFS=$as_save_IFS
12416 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12418 esac
12420 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12421 if test -n "$PKG_CONFIG"; then
12422 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12423 $as_echo "$PKG_CONFIG" >&6; }
12424 else
12425 { $as_echo "$as_me:$LINENO: result: no" >&5
12426 $as_echo "no" >&6; }
12431 if test "$PKG_CONFIG" = "no" ; then
12432 HAVE_DBUS=no
12433 else
12434 PKG_CONFIG_MIN_VERSION=0.9.0
12435 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12436 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12437 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12439 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12440 { $as_echo "$as_me:$LINENO: result: yes" >&5
12441 $as_echo "yes" >&6; }
12442 succeeded=yes
12444 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12445 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12446 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12447 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12448 $as_echo "$DBUS_CFLAGS" >&6; }
12450 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12451 $as_echo_n "checking DBUS_LIBS... " >&6; }
12452 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12453 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12454 $as_echo "$DBUS_LIBS" >&6; }
12455 else
12456 { $as_echo "$as_me:$LINENO: result: no" >&5
12457 $as_echo "no" >&6; }
12458 DBUS_CFLAGS=""
12459 DBUS_LIBS=""
12460 ## If we have a custom action on failure, don't print errors, but
12461 ## do set a variable so people can do so.
12462 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12468 else
12469 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12470 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12474 if test $succeeded = yes; then
12475 HAVE_DBUS=yes
12476 else
12477 HAVE_DBUS=no
12480 if test "$HAVE_DBUS" = yes; then
12481 LIBS="$LIBS $DBUS_LIBS"
12483 cat >>confdefs.h <<\_ACEOF
12484 #define HAVE_DBUS 1
12485 _ACEOF
12488 for ac_func in dbus_watch_get_unix_fd
12490 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12491 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12492 $as_echo_n "checking for $ac_func... " >&6; }
12493 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12494 $as_echo_n "(cached) " >&6
12495 else
12496 cat >conftest.$ac_ext <<_ACEOF
12497 /* confdefs.h. */
12498 _ACEOF
12499 cat confdefs.h >>conftest.$ac_ext
12500 cat >>conftest.$ac_ext <<_ACEOF
12501 /* end confdefs.h. */
12502 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12504 #define $ac_func innocuous_$ac_func
12506 /* System header to define __stub macros and hopefully few prototypes,
12507 which can conflict with char $ac_func (); below.
12508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12509 <limits.h> exists even on freestanding compilers. */
12511 #ifdef __STDC__
12512 # include <limits.h>
12513 #else
12514 # include <assert.h>
12515 #endif
12517 #undef $ac_func
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12522 #ifdef __cplusplus
12523 extern "C"
12524 #endif
12525 char $ac_func ();
12526 /* The GNU C library defines this for functions which it implements
12527 to always fail with ENOSYS. Some functions are actually named
12528 something starting with __ and the normal name is an alias. */
12529 #if defined __stub_$ac_func || defined __stub___$ac_func
12530 choke me
12531 #endif
12534 main ()
12536 return $ac_func ();
12538 return 0;
12540 _ACEOF
12541 rm -f conftest.$ac_objext conftest$ac_exeext
12542 if { (ac_try="$ac_link"
12543 case "(($ac_try" in
12544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12545 *) ac_try_echo=$ac_try;;
12546 esac
12547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12548 $as_echo "$ac_try_echo") >&5
12549 (eval "$ac_link") 2>conftest.er1
12550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest$ac_exeext && {
12559 test "$cross_compiling" = yes ||
12560 $as_test_x conftest$ac_exeext
12561 }; then
12562 eval "$as_ac_var=yes"
12563 else
12564 $as_echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12567 eval "$as_ac_var=no"
12570 rm -rf conftest.dSYM
12571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572 conftest$ac_exeext conftest.$ac_ext
12574 ac_res=`eval 'as_val=${'$as_ac_var'}
12575 $as_echo "$as_val"'`
12576 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12577 $as_echo "$ac_res" >&6; }
12578 if test `eval 'as_val=${'$as_ac_var'}
12579 $as_echo "$as_val"'` = yes; then
12580 cat >>confdefs.h <<_ACEOF
12581 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12582 _ACEOF
12585 done
12590 HAVE_GCONF=no
12591 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12593 succeeded=no
12595 # Extract the first word of "pkg-config", so it can be a program name with args.
12596 set dummy pkg-config; ac_word=$2
12597 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12598 $as_echo_n "checking for $ac_word... " >&6; }
12599 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12600 $as_echo_n "(cached) " >&6
12601 else
12602 case $PKG_CONFIG in
12603 [\\/]* | ?:[\\/]*)
12604 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12614 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12615 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12616 break 2
12618 done
12619 done
12620 IFS=$as_save_IFS
12622 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12624 esac
12626 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12627 if test -n "$PKG_CONFIG"; then
12628 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12629 $as_echo "$PKG_CONFIG" >&6; }
12630 else
12631 { $as_echo "$as_me:$LINENO: result: no" >&5
12632 $as_echo "no" >&6; }
12637 if test "$PKG_CONFIG" = "no" ; then
12638 HAVE_GCONF=no
12639 else
12640 PKG_CONFIG_MIN_VERSION=0.9.0
12641 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12642 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12643 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12645 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12646 { $as_echo "$as_me:$LINENO: result: yes" >&5
12647 $as_echo "yes" >&6; }
12648 succeeded=yes
12650 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12651 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12652 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12653 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12654 $as_echo "$GCONF_CFLAGS" >&6; }
12656 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12657 $as_echo_n "checking GCONF_LIBS... " >&6; }
12658 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12659 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12660 $as_echo "$GCONF_LIBS" >&6; }
12661 else
12662 { $as_echo "$as_me:$LINENO: result: no" >&5
12663 $as_echo "no" >&6; }
12664 GCONF_CFLAGS=""
12665 GCONF_LIBS=""
12666 ## If we have a custom action on failure, don't print errors, but
12667 ## do set a variable so people can do so.
12668 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12674 else
12675 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12676 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12680 if test $succeeded = yes; then
12681 HAVE_GCONF=yes
12682 else
12683 HAVE_GCONF=no
12686 if test "$HAVE_GCONF" = yes; then
12688 cat >>confdefs.h <<\_ACEOF
12689 #define HAVE_GCONF 1
12690 _ACEOF
12695 HAVE_XAW3D=no
12696 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12697 if test "$with_xaw3d" != no; then
12698 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12699 $as_echo_n "checking for xaw3d... " >&6; }
12700 if test "${emacs_cv_xaw3d+set}" = set; then
12701 $as_echo_n "(cached) " >&6
12702 else
12703 cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h. */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12710 #include <X11/Intrinsic.h>
12711 #include <X11/Xaw3d/Simple.h>
12713 main ()
12717 return 0;
12719 _ACEOF
12720 rm -f conftest.$ac_objext conftest$ac_exeext
12721 if { (ac_try="$ac_link"
12722 case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12725 esac
12726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12727 $as_echo "$ac_try_echo") >&5
12728 (eval "$ac_link") 2>conftest.er1
12729 ac_status=$?
12730 grep -v '^ *+' conftest.er1 >conftest.err
12731 rm -f conftest.er1
12732 cat conftest.err >&5
12733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } && {
12735 test -z "$ac_c_werror_flag" ||
12736 test ! -s conftest.err
12737 } && test -s conftest$ac_exeext && {
12738 test "$cross_compiling" = yes ||
12739 $as_test_x conftest$ac_exeext
12740 }; then
12741 emacs_cv_xaw3d=yes
12742 else
12743 $as_echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 emacs_cv_xaw3d=no
12749 rm -rf conftest.dSYM
12750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12751 conftest$ac_exeext conftest.$ac_ext
12754 else
12755 emacs_cv_xaw3d=no
12757 if test $emacs_cv_xaw3d = yes; then
12758 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12759 $as_echo "yes; using Lucid toolkit" >&6; }
12760 USE_X_TOOLKIT=LUCID
12761 HAVE_XAW3D=yes
12763 cat >>confdefs.h <<\_ACEOF
12764 #define HAVE_XAW3D 1
12765 _ACEOF
12767 else
12768 { $as_echo "$as_me:$LINENO: result: no" >&5
12769 $as_echo "no" >&6; }
12770 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
12771 $as_echo_n "checking for libXaw... " >&6; }
12772 if test "${emacs_cv_xaw+set}" = set; then
12773 $as_echo_n "(cached) " >&6
12774 else
12775 cat >conftest.$ac_ext <<_ACEOF
12776 /* confdefs.h. */
12777 _ACEOF
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12782 #include <X11/Intrinsic.h>
12783 #include <X11/Xaw/Simple.h>
12785 main ()
12789 return 0;
12791 _ACEOF
12792 rm -f conftest.$ac_objext conftest$ac_exeext
12793 if { (ac_try="$ac_link"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12797 esac
12798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12799 $as_echo "$ac_try_echo") >&5
12800 (eval "$ac_link") 2>conftest.er1
12801 ac_status=$?
12802 grep -v '^ *+' conftest.er1 >conftest.err
12803 rm -f conftest.er1
12804 cat conftest.err >&5
12805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest$ac_exeext && {
12810 test "$cross_compiling" = yes ||
12811 $as_test_x conftest$ac_exeext
12812 }; then
12813 emacs_cv_xaw=yes
12814 else
12815 $as_echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12818 emacs_cv_xaw=no
12821 rm -rf conftest.dSYM
12822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12823 conftest$ac_exeext conftest.$ac_ext
12826 if test $emacs_cv_xaw = yes; then
12827 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12828 $as_echo "yes; using Lucid toolkit" >&6; }
12829 USE_X_TOOLKIT=LUCID
12830 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12831 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12832 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12833 { (exit 1); exit 1; }; }
12834 else
12835 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12836 $as_echo "no; do not use toolkit by default" >&6; }
12837 USE_X_TOOLKIT=none
12842 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12844 if test "${USE_X_TOOLKIT}" != "none"; then
12845 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12846 $as_echo_n "checking X11 toolkit version... " >&6; }
12847 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12848 $as_echo_n "(cached) " >&6
12849 else
12850 cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h. */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 #include <X11/Intrinsic.h>
12858 main ()
12860 #if XtSpecificationRelease < 6
12861 fail;
12862 #endif
12865 return 0;
12867 _ACEOF
12868 rm -f conftest.$ac_objext conftest$ac_exeext
12869 if { (ac_try="$ac_link"
12870 case "(($ac_try" in
12871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12872 *) ac_try_echo=$ac_try;;
12873 esac
12874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12875 $as_echo "$ac_try_echo") >&5
12876 (eval "$ac_link") 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } && {
12883 test -z "$ac_c_werror_flag" ||
12884 test ! -s conftest.err
12885 } && test -s conftest$ac_exeext && {
12886 test "$cross_compiling" = yes ||
12887 $as_test_x conftest$ac_exeext
12888 }; then
12889 emacs_cv_x11_toolkit_version_6=yes
12890 else
12891 $as_echo "$as_me: failed program was:" >&5
12892 sed 's/^/| /' conftest.$ac_ext >&5
12894 emacs_cv_x11_toolkit_version_6=no
12897 rm -rf conftest.dSYM
12898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12899 conftest$ac_exeext conftest.$ac_ext
12902 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12903 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12904 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
12905 $as_echo "6 or newer" >&6; }
12907 cat >>confdefs.h <<\_ACEOF
12908 #define HAVE_X11XTR6 1
12909 _ACEOF
12911 else
12912 { $as_echo "$as_me:$LINENO: result: before 6" >&5
12913 $as_echo "before 6" >&6; }
12916 OLDLIBS="$LIBS"
12917 if test x$HAVE_X11XTR6 = xyes; then
12918 LIBS="-lXt -lSM -lICE $LIBS"
12919 else
12920 LIBS="-lXt $LIBS"
12923 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12924 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
12925 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12926 $as_echo_n "(cached) " >&6
12927 else
12928 ac_check_lib_save_LIBS=$LIBS
12929 LIBS="-lXmu $LIBS"
12930 cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h. */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12937 /* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12940 #ifdef __cplusplus
12941 extern "C"
12942 #endif
12943 char XmuConvertStandardSelection ();
12945 main ()
12947 return XmuConvertStandardSelection ();
12949 return 0;
12951 _ACEOF
12952 rm -f conftest.$ac_objext conftest$ac_exeext
12953 if { (ac_try="$ac_link"
12954 case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957 esac
12958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12959 $as_echo "$ac_try_echo") >&5
12960 (eval "$ac_link") 2>conftest.er1
12961 ac_status=$?
12962 grep -v '^ *+' conftest.er1 >conftest.err
12963 rm -f conftest.er1
12964 cat conftest.err >&5
12965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); } && {
12967 test -z "$ac_c_werror_flag" ||
12968 test ! -s conftest.err
12969 } && test -s conftest$ac_exeext && {
12970 test "$cross_compiling" = yes ||
12971 $as_test_x conftest$ac_exeext
12972 }; then
12973 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12974 else
12975 $as_echo "$as_me: failed program was:" >&5
12976 sed 's/^/| /' conftest.$ac_ext >&5
12978 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12981 rm -rf conftest.dSYM
12982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12983 conftest$ac_exeext conftest.$ac_ext
12984 LIBS=$ac_check_lib_save_LIBS
12986 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12987 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12988 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12989 cat >>confdefs.h <<_ACEOF
12990 #define HAVE_LIBXMU 1
12991 _ACEOF
12993 LIBS="-lXmu $LIBS"
12997 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13000 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13001 if test "${HAVE_X11}" = "yes"; then
13002 if test "${USE_X_TOOLKIT}" != "none"; then
13004 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13005 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13006 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13007 $as_echo_n "(cached) " >&6
13008 else
13009 ac_check_lib_save_LIBS=$LIBS
13010 LIBS="-lXext $LIBS"
13011 cat >conftest.$ac_ext <<_ACEOF
13012 /* confdefs.h. */
13013 _ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13018 /* Override any GCC internal prototype to avoid an error.
13019 Use char because int might match the return type of a GCC
13020 builtin and then its argument prototype would still apply. */
13021 #ifdef __cplusplus
13022 extern "C"
13023 #endif
13024 char XShapeQueryExtension ();
13026 main ()
13028 return XShapeQueryExtension ();
13030 return 0;
13032 _ACEOF
13033 rm -f conftest.$ac_objext conftest$ac_exeext
13034 if { (ac_try="$ac_link"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13038 esac
13039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13040 $as_echo "$ac_try_echo") >&5
13041 (eval "$ac_link") 2>conftest.er1
13042 ac_status=$?
13043 grep -v '^ *+' conftest.er1 >conftest.err
13044 rm -f conftest.er1
13045 cat conftest.err >&5
13046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } && {
13048 test -z "$ac_c_werror_flag" ||
13049 test ! -s conftest.err
13050 } && test -s conftest$ac_exeext && {
13051 test "$cross_compiling" = yes ||
13052 $as_test_x conftest$ac_exeext
13053 }; then
13054 ac_cv_lib_Xext_XShapeQueryExtension=yes
13055 else
13056 $as_echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 ac_cv_lib_Xext_XShapeQueryExtension=no
13062 rm -rf conftest.dSYM
13063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13064 conftest$ac_exeext conftest.$ac_ext
13065 LIBS=$ac_check_lib_save_LIBS
13067 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13068 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13069 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13070 cat >>confdefs.h <<_ACEOF
13071 #define HAVE_LIBXEXT 1
13072 _ACEOF
13074 LIBS="-lXext $LIBS"
13081 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13082 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13083 $as_echo_n "checking for Motif version 2.1... " >&6; }
13084 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13085 $as_echo_n "(cached) " >&6
13086 else
13087 cat >conftest.$ac_ext <<_ACEOF
13088 /* confdefs.h. */
13089 _ACEOF
13090 cat confdefs.h >>conftest.$ac_ext
13091 cat >>conftest.$ac_ext <<_ACEOF
13092 /* end confdefs.h. */
13093 #include <Xm/Xm.h>
13095 main ()
13097 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13098 int x = 5;
13099 #else
13100 Motif version prior to 2.1.
13101 #endif
13103 return 0;
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (ac_try="$ac_compile"
13108 case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111 esac
13112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13113 $as_echo "$ac_try_echo") >&5
13114 (eval "$ac_compile") 2>conftest.er1
13115 ac_status=$?
13116 grep -v '^ *+' conftest.er1 >conftest.err
13117 rm -f conftest.er1
13118 cat conftest.err >&5
13119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } && {
13121 test -z "$ac_c_werror_flag" ||
13122 test ! -s conftest.err
13123 } && test -s conftest.$ac_objext; then
13124 emacs_cv_motif_version_2_1=yes
13125 else
13126 $as_echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 emacs_cv_motif_version_2_1=no
13132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13134 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13135 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13136 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13137 if test $emacs_cv_motif_version_2_1 = yes; then
13138 HAVE_LIBXP=no
13140 cat >>confdefs.h <<\_ACEOF
13141 #define HAVE_MOTIF_2_1 1
13142 _ACEOF
13144 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13145 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13146 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13147 $as_echo_n "(cached) " >&6
13148 else
13149 ac_check_lib_save_LIBS=$LIBS
13150 LIBS="-lXp $LIBS"
13151 cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h. */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13161 #ifdef __cplusplus
13162 extern "C"
13163 #endif
13164 char XpCreateContext ();
13166 main ()
13168 return XpCreateContext ();
13170 return 0;
13172 _ACEOF
13173 rm -f conftest.$ac_objext conftest$ac_exeext
13174 if { (ac_try="$ac_link"
13175 case "(($ac_try" in
13176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177 *) ac_try_echo=$ac_try;;
13178 esac
13179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13180 $as_echo "$ac_try_echo") >&5
13181 (eval "$ac_link") 2>conftest.er1
13182 ac_status=$?
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
13186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } && {
13188 test -z "$ac_c_werror_flag" ||
13189 test ! -s conftest.err
13190 } && test -s conftest$ac_exeext && {
13191 test "$cross_compiling" = yes ||
13192 $as_test_x conftest$ac_exeext
13193 }; then
13194 ac_cv_lib_Xp_XpCreateContext=yes
13195 else
13196 $as_echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13199 ac_cv_lib_Xp_XpCreateContext=no
13202 rm -rf conftest.dSYM
13203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13204 conftest$ac_exeext conftest.$ac_ext
13205 LIBS=$ac_check_lib_save_LIBS
13207 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13208 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13209 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13210 HAVE_LIBXP=yes
13213 if test ${HAVE_LIBXP} = yes; then
13215 cat >>confdefs.h <<\_ACEOF
13216 #define HAVE_LIBXP 1
13217 _ACEOF
13220 else
13221 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13222 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13223 if test "${emacs_cv_lesstif+set}" = set; then
13224 $as_echo_n "(cached) " >&6
13225 else
13226 # We put this in CFLAGS temporarily to precede other -I options
13227 # that might be in CFLAGS temporarily.
13228 # We put this in CPPFLAGS where it precedes the other -I options.
13229 OLD_CPPFLAGS=$CPPFLAGS
13230 OLD_CFLAGS=$CFLAGS
13231 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13232 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13233 cat >conftest.$ac_ext <<_ACEOF
13234 /* confdefs.h. */
13235 _ACEOF
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13241 main ()
13243 int x = 5;
13245 return 0;
13247 _ACEOF
13248 rm -f conftest.$ac_objext
13249 if { (ac_try="$ac_compile"
13250 case "(($ac_try" in
13251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13253 esac
13254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13255 $as_echo "$ac_try_echo") >&5
13256 (eval "$ac_compile") 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } && {
13263 test -z "$ac_c_werror_flag" ||
13264 test ! -s conftest.err
13265 } && test -s conftest.$ac_objext; then
13266 emacs_cv_lesstif=yes
13267 else
13268 $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13271 emacs_cv_lesstif=no
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13277 $as_echo "$emacs_cv_lesstif" >&6; }
13278 if test $emacs_cv_lesstif = yes; then
13279 # Make sure this -I option remains in CPPFLAGS after it is set
13280 # back to REAL_CPPFLAGS.
13281 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13282 # have those other -I options anyway. Ultimately, having this
13283 # directory ultimately in CPPFLAGS will be enough.
13284 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13285 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13286 else
13287 CFLAGS=$OLD_CFLAGS
13288 CPPFLAGS=$OLD_CPPFLAGS
13295 USE_TOOLKIT_SCROLL_BARS=no
13296 if test "${with_toolkit_scroll_bars}" != "no"; then
13297 if test "${USE_X_TOOLKIT}" != "none"; then
13298 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13299 cat >>confdefs.h <<\_ACEOF
13300 #define USE_TOOLKIT_SCROLL_BARS 1
13301 _ACEOF
13303 HAVE_XAW3D=no
13304 USE_TOOLKIT_SCROLL_BARS=yes
13305 elif test "${HAVE_XAW3D}" = "yes"; then
13306 cat >>confdefs.h <<\_ACEOF
13307 #define USE_TOOLKIT_SCROLL_BARS 1
13308 _ACEOF
13310 USE_TOOLKIT_SCROLL_BARS=yes
13312 elif test "${HAVE_GTK}" = "yes"; then
13313 cat >>confdefs.h <<\_ACEOF
13314 #define USE_TOOLKIT_SCROLL_BARS 1
13315 _ACEOF
13317 USE_TOOLKIT_SCROLL_BARS=yes
13318 elif test "${HAVE_NS}" = "yes"; then
13319 cat >>confdefs.h <<\_ACEOF
13320 #define USE_TOOLKIT_SCROLL_BARS 1
13321 _ACEOF
13323 USE_TOOLKIT_SCROLL_BARS=yes
13327 cat >conftest.$ac_ext <<_ACEOF
13328 /* confdefs.h. */
13329 _ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13334 #include <X11/Xlib.h>
13335 #include <X11/Xresource.h>
13337 main ()
13339 XIMProc callback;
13341 return 0;
13343 _ACEOF
13344 rm -f conftest.$ac_objext
13345 if { (ac_try="$ac_compile"
13346 case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13349 esac
13350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13351 $as_echo "$ac_try_echo") >&5
13352 (eval "$ac_compile") 2>conftest.er1
13353 ac_status=$?
13354 grep -v '^ *+' conftest.er1 >conftest.err
13355 rm -f conftest.er1
13356 cat conftest.err >&5
13357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } && {
13359 test -z "$ac_c_werror_flag" ||
13360 test ! -s conftest.err
13361 } && test -s conftest.$ac_objext; then
13362 HAVE_XIM=yes
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_XIM 1
13366 _ACEOF
13368 else
13369 $as_echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13372 HAVE_XIM=no
13375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 if test "${with_xim}" != "no"; then
13380 cat >>confdefs.h <<\_ACEOF
13381 #define USE_XIM 1
13382 _ACEOF
13387 if test "${HAVE_XIM}" != "no"; then
13388 late_CFLAGS=$CFLAGS
13389 if test "$GCC" = yes; then
13390 CFLAGS="$CFLAGS --pedantic-errors"
13392 cat >conftest.$ac_ext <<_ACEOF
13393 /* confdefs.h. */
13394 _ACEOF
13395 cat confdefs.h >>conftest.$ac_ext
13396 cat >>conftest.$ac_ext <<_ACEOF
13397 /* end confdefs.h. */
13399 #include <X11/Xlib.h>
13400 #include <X11/Xresource.h>
13402 main ()
13404 Display *display;
13405 XrmDatabase db;
13406 char *res_name;
13407 char *res_class;
13408 XIMProc callback;
13409 XPointer *client_data;
13410 #ifndef __GNUC__
13411 /* If we're not using GCC, it's probably not XFree86, and this is
13412 probably right, but we can't use something like --pedantic-errors. */
13413 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13414 char*, XIMProc, XPointer*);
13415 #endif
13416 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13417 client_data);
13419 return 0;
13421 _ACEOF
13422 rm -f conftest.$ac_objext
13423 if { (ac_try="$ac_compile"
13424 case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13427 esac
13428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13429 $as_echo "$ac_try_echo") >&5
13430 (eval "$ac_compile") 2>conftest.er1
13431 ac_status=$?
13432 grep -v '^ *+' conftest.er1 >conftest.err
13433 rm -f conftest.er1
13434 cat conftest.err >&5
13435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } && {
13437 test -z "$ac_c_werror_flag" ||
13438 test ! -s conftest.err
13439 } && test -s conftest.$ac_objext; then
13440 emacs_cv_arg6_star=yes
13441 else
13442 $as_echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 if test "$emacs_cv_arg6_star" = yes; then
13451 cat >>confdefs.h <<\_ACEOF
13452 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13453 _ACEOF
13455 else
13456 cat >>confdefs.h <<\_ACEOF
13457 #define XRegisterIMInstantiateCallback_arg6 XPointer
13458 _ACEOF
13461 CFLAGS=$late_CFLAGS
13464 ### Start of font-backend (under any platform) section.
13465 # (nothing here yet -- this is a placeholder)
13466 ### End of font-backend (under any platform) section.
13468 ### Start of font-backend (under X11) section.
13469 if test "${HAVE_X11}" = "yes"; then
13471 succeeded=no
13473 # Extract the first word of "pkg-config", so it can be a program name with args.
13474 set dummy pkg-config; ac_word=$2
13475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13476 $as_echo_n "checking for $ac_word... " >&6; }
13477 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13478 $as_echo_n "(cached) " >&6
13479 else
13480 case $PKG_CONFIG in
13481 [\\/]* | ?:[\\/]*)
13482 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13486 for as_dir in $PATH
13488 IFS=$as_save_IFS
13489 test -z "$as_dir" && as_dir=.
13490 for ac_exec_ext in '' $ac_executable_extensions; do
13491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13492 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13494 break 2
13496 done
13497 done
13498 IFS=$as_save_IFS
13500 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13502 esac
13504 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13505 if test -n "$PKG_CONFIG"; then
13506 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13507 $as_echo "$PKG_CONFIG" >&6; }
13508 else
13509 { $as_echo "$as_me:$LINENO: result: no" >&5
13510 $as_echo "no" >&6; }
13515 if test "$PKG_CONFIG" = "no" ; then
13516 HAVE_FC=no
13517 else
13518 PKG_CONFIG_MIN_VERSION=0.9.0
13519 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13520 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13521 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13523 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13524 { $as_echo "$as_me:$LINENO: result: yes" >&5
13525 $as_echo "yes" >&6; }
13526 succeeded=yes
13528 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13529 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13530 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13531 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13532 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13534 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13535 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13536 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13537 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13538 $as_echo "$FONTCONFIG_LIBS" >&6; }
13539 else
13540 { $as_echo "$as_me:$LINENO: result: no" >&5
13541 $as_echo "no" >&6; }
13542 FONTCONFIG_CFLAGS=""
13543 FONTCONFIG_LIBS=""
13544 ## If we have a custom action on failure, don't print errors, but
13545 ## do set a variable so people can do so.
13546 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13552 else
13553 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13554 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13558 if test $succeeded = yes; then
13559 HAVE_FC=yes
13560 else
13561 HAVE_FC=no
13565 ## Use -lXft if available, unless `--with-xft=no'.
13566 HAVE_XFT=maybe
13567 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13568 with_xft="no";
13570 if test "x${with_xft}" != "xno"; then
13573 succeeded=no
13575 # Extract the first word of "pkg-config", so it can be a program name with args.
13576 set dummy pkg-config; ac_word=$2
13577 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13578 $as_echo_n "checking for $ac_word... " >&6; }
13579 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13580 $as_echo_n "(cached) " >&6
13581 else
13582 case $PKG_CONFIG in
13583 [\\/]* | ?:[\\/]*)
13584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13588 for as_dir in $PATH
13590 IFS=$as_save_IFS
13591 test -z "$as_dir" && as_dir=.
13592 for ac_exec_ext in '' $ac_executable_extensions; do
13593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13595 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13596 break 2
13598 done
13599 done
13600 IFS=$as_save_IFS
13602 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13604 esac
13606 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13607 if test -n "$PKG_CONFIG"; then
13608 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13609 $as_echo "$PKG_CONFIG" >&6; }
13610 else
13611 { $as_echo "$as_me:$LINENO: result: no" >&5
13612 $as_echo "no" >&6; }
13617 if test "$PKG_CONFIG" = "no" ; then
13618 HAVE_XFT=no
13619 else
13620 PKG_CONFIG_MIN_VERSION=0.9.0
13621 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13622 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13623 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13625 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13626 { $as_echo "$as_me:$LINENO: result: yes" >&5
13627 $as_echo "yes" >&6; }
13628 succeeded=yes
13630 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13631 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13632 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13633 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13634 $as_echo "$XFT_CFLAGS" >&6; }
13636 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13637 $as_echo_n "checking XFT_LIBS... " >&6; }
13638 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13639 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13640 $as_echo "$XFT_LIBS" >&6; }
13641 else
13642 { $as_echo "$as_me:$LINENO: result: no" >&5
13643 $as_echo "no" >&6; }
13644 XFT_CFLAGS=""
13645 XFT_LIBS=""
13646 ## If we have a custom action on failure, don't print errors, but
13647 ## do set a variable so people can do so.
13648 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13654 else
13655 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13656 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13660 if test $succeeded = yes; then
13662 else
13663 HAVE_XFT=no
13666 ## Because xftfont.c uses XRenderQueryExtension, we also
13667 ## need to link to -lXrender.
13668 HAVE_XRENDER=no
13669 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13670 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13671 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13672 $as_echo_n "(cached) " >&6
13673 else
13674 ac_check_lib_save_LIBS=$LIBS
13675 LIBS="-lXrender $LIBS"
13676 cat >conftest.$ac_ext <<_ACEOF
13677 /* confdefs.h. */
13678 _ACEOF
13679 cat confdefs.h >>conftest.$ac_ext
13680 cat >>conftest.$ac_ext <<_ACEOF
13681 /* end confdefs.h. */
13683 /* Override any GCC internal prototype to avoid an error.
13684 Use char because int might match the return type of a GCC
13685 builtin and then its argument prototype would still apply. */
13686 #ifdef __cplusplus
13687 extern "C"
13688 #endif
13689 char XRenderQueryExtension ();
13691 main ()
13693 return XRenderQueryExtension ();
13695 return 0;
13697 _ACEOF
13698 rm -f conftest.$ac_objext conftest$ac_exeext
13699 if { (ac_try="$ac_link"
13700 case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703 esac
13704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13705 $as_echo "$ac_try_echo") >&5
13706 (eval "$ac_link") 2>conftest.er1
13707 ac_status=$?
13708 grep -v '^ *+' conftest.er1 >conftest.err
13709 rm -f conftest.er1
13710 cat conftest.err >&5
13711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } && {
13713 test -z "$ac_c_werror_flag" ||
13714 test ! -s conftest.err
13715 } && test -s conftest$ac_exeext && {
13716 test "$cross_compiling" = yes ||
13717 $as_test_x conftest$ac_exeext
13718 }; then
13719 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13720 else
13721 $as_echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ac_cv_lib_Xrender_XRenderQueryExtension=no
13727 rm -rf conftest.dSYM
13728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13729 conftest$ac_exeext conftest.$ac_ext
13730 LIBS=$ac_check_lib_save_LIBS
13732 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13733 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13734 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13735 HAVE_XRENDER=yes
13738 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13739 OLD_CPPFLAGS="$CPPFLAGS"
13740 OLD_CFLAGS="$CFLAGS"
13741 OLD_LIBS="$LIBS"
13742 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13743 CFLAGS="$CFLAGS $XFT_CFLAGS"
13744 XFT_LIBS="-lXrender $XFT_LIBS"
13745 LIBS="$XFT_LIBS $LIBS"
13746 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13747 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13748 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13749 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13750 $as_echo_n "(cached) " >&6
13752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13753 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13754 else
13755 # Is the header compilable?
13756 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13757 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13758 cat >conftest.$ac_ext <<_ACEOF
13759 /* confdefs.h. */
13760 _ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13764 $ac_includes_default
13765 #include <X11/Xft/Xft.h>
13766 _ACEOF
13767 rm -f conftest.$ac_objext
13768 if { (ac_try="$ac_compile"
13769 case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13772 esac
13773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13774 $as_echo "$ac_try_echo") >&5
13775 (eval "$ac_compile") 2>conftest.er1
13776 ac_status=$?
13777 grep -v '^ *+' conftest.er1 >conftest.err
13778 rm -f conftest.er1
13779 cat conftest.err >&5
13780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } && {
13782 test -z "$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13784 } && test -s conftest.$ac_objext; then
13785 ac_header_compiler=yes
13786 else
13787 $as_echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13790 ac_header_compiler=no
13793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13795 $as_echo "$ac_header_compiler" >&6; }
13797 # Is the header present?
13798 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13799 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13800 cat >conftest.$ac_ext <<_ACEOF
13801 /* confdefs.h. */
13802 _ACEOF
13803 cat confdefs.h >>conftest.$ac_ext
13804 cat >>conftest.$ac_ext <<_ACEOF
13805 /* end confdefs.h. */
13806 #include <X11/Xft/Xft.h>
13807 _ACEOF
13808 if { (ac_try="$ac_cpp conftest.$ac_ext"
13809 case "(($ac_try" in
13810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13811 *) ac_try_echo=$ac_try;;
13812 esac
13813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13814 $as_echo "$ac_try_echo") >&5
13815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13816 ac_status=$?
13817 grep -v '^ *+' conftest.er1 >conftest.err
13818 rm -f conftest.er1
13819 cat conftest.err >&5
13820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } >/dev/null && {
13822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13823 test ! -s conftest.err
13824 }; then
13825 ac_header_preproc=yes
13826 else
13827 $as_echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13830 ac_header_preproc=no
13833 rm -f conftest.err conftest.$ac_ext
13834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13835 $as_echo "$ac_header_preproc" >&6; }
13837 # So? What about this header?
13838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13839 yes:no: )
13840 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13841 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13842 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13843 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13844 ac_header_preproc=yes
13846 no:yes:* )
13847 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13848 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13849 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13850 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13851 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13852 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13853 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13854 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13855 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13856 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13857 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13858 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13861 esac
13862 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13863 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13864 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13865 $as_echo_n "(cached) " >&6
13866 else
13867 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13869 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13870 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13873 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13874 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13875 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13876 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13877 $as_echo_n "(cached) " >&6
13878 else
13879 ac_check_lib_save_LIBS=$LIBS
13880 LIBS="-lXft $XFT_LIBS $LIBS"
13881 cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h. */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13888 /* Override any GCC internal prototype to avoid an error.
13889 Use char because int might match the return type of a GCC
13890 builtin and then its argument prototype would still apply. */
13891 #ifdef __cplusplus
13892 extern "C"
13893 #endif
13894 char XftFontOpen ();
13896 main ()
13898 return XftFontOpen ();
13900 return 0;
13902 _ACEOF
13903 rm -f conftest.$ac_objext conftest$ac_exeext
13904 if { (ac_try="$ac_link"
13905 case "(($ac_try" in
13906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13907 *) ac_try_echo=$ac_try;;
13908 esac
13909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13910 $as_echo "$ac_try_echo") >&5
13911 (eval "$ac_link") 2>conftest.er1
13912 ac_status=$?
13913 grep -v '^ *+' conftest.er1 >conftest.err
13914 rm -f conftest.er1
13915 cat conftest.err >&5
13916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); } && {
13918 test -z "$ac_c_werror_flag" ||
13919 test ! -s conftest.err
13920 } && test -s conftest$ac_exeext && {
13921 test "$cross_compiling" = yes ||
13922 $as_test_x conftest$ac_exeext
13923 }; then
13924 ac_cv_lib_Xft_XftFontOpen=yes
13925 else
13926 $as_echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 ac_cv_lib_Xft_XftFontOpen=no
13932 rm -rf conftest.dSYM
13933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13934 conftest$ac_exeext conftest.$ac_ext
13935 LIBS=$ac_check_lib_save_LIBS
13937 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13938 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
13939 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13940 HAVE_XFT=yes
13947 if test "${HAVE_XFT}" = "yes"; then
13949 cat >>confdefs.h <<\_ACEOF
13950 #define HAVE_XFT 1
13951 _ACEOF
13954 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13955 else
13956 CPPFLAGS="$OLD_CPPFLAGS"
13957 CFLAGS="$OLD_CFLAGS"
13958 LIBS="$OLD_LIBS"
13959 fi # "${HAVE_XFT}" = "yes"
13960 fi # "$HAVE_XFT" != no
13961 fi # "x${with_xft}" != "xno"
13963 if test "$HAVE_XFT" != "yes"; then
13964 HAVE_XFT=no
13968 HAVE_FREETYPE=no
13969 ## We used to allow building with FreeType and without Xft.
13970 ## However, the ftx font backend driver is not in good shape.
13971 if test "${HAVE_XFT}" = "yes"; then
13972 HAVE_FREETYPE=yes
13973 FONTCONFIG_CFLAGS=
13974 FONTCONFIG_LIBS=
13977 HAVE_LIBOTF=no
13978 if test "${HAVE_FREETYPE}" = "yes"; then
13980 cat >>confdefs.h <<\_ACEOF
13981 #define HAVE_FREETYPE 1
13982 _ACEOF
13984 if test "${with_libotf}" != "no"; then
13986 succeeded=no
13988 # Extract the first word of "pkg-config", so it can be a program name with args.
13989 set dummy pkg-config; ac_word=$2
13990 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13991 $as_echo_n "checking for $ac_word... " >&6; }
13992 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13993 $as_echo_n "(cached) " >&6
13994 else
13995 case $PKG_CONFIG in
13996 [\\/]* | ?:[\\/]*)
13997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14001 for as_dir in $PATH
14003 IFS=$as_save_IFS
14004 test -z "$as_dir" && as_dir=.
14005 for ac_exec_ext in '' $ac_executable_extensions; do
14006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14009 break 2
14011 done
14012 done
14013 IFS=$as_save_IFS
14015 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14017 esac
14019 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14020 if test -n "$PKG_CONFIG"; then
14021 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14022 $as_echo "$PKG_CONFIG" >&6; }
14023 else
14024 { $as_echo "$as_me:$LINENO: result: no" >&5
14025 $as_echo "no" >&6; }
14030 if test "$PKG_CONFIG" = "no" ; then
14031 HAVE_LIBOTF=no
14032 else
14033 PKG_CONFIG_MIN_VERSION=0.9.0
14034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14035 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14036 $as_echo_n "checking for libotf... " >&6; }
14038 if $PKG_CONFIG --exists "libotf" 2>&5; then
14039 { $as_echo "$as_me:$LINENO: result: yes" >&5
14040 $as_echo "yes" >&6; }
14041 succeeded=yes
14043 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14044 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14045 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14046 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14047 $as_echo "$LIBOTF_CFLAGS" >&6; }
14049 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14050 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14051 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14052 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14053 $as_echo "$LIBOTF_LIBS" >&6; }
14054 else
14055 { $as_echo "$as_me:$LINENO: result: no" >&5
14056 $as_echo "no" >&6; }
14057 LIBOTF_CFLAGS=""
14058 LIBOTF_LIBS=""
14059 ## If we have a custom action on failure, don't print errors, but
14060 ## do set a variable so people can do so.
14061 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14067 else
14068 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14069 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14073 if test $succeeded = yes; then
14074 HAVE_LIBOTF=yes
14075 else
14076 HAVE_LIBOTF=no
14079 if test "$HAVE_LIBOTF" = "yes"; then
14081 cat >>confdefs.h <<\_ACEOF
14082 #define HAVE_LIBOTF 1
14083 _ACEOF
14085 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14086 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14087 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14088 $as_echo_n "(cached) " >&6
14089 else
14090 ac_check_lib_save_LIBS=$LIBS
14091 LIBS="-lotf $LIBS"
14092 cat >conftest.$ac_ext <<_ACEOF
14093 /* confdefs.h. */
14094 _ACEOF
14095 cat confdefs.h >>conftest.$ac_ext
14096 cat >>conftest.$ac_ext <<_ACEOF
14097 /* end confdefs.h. */
14099 /* Override any GCC internal prototype to avoid an error.
14100 Use char because int might match the return type of a GCC
14101 builtin and then its argument prototype would still apply. */
14102 #ifdef __cplusplus
14103 extern "C"
14104 #endif
14105 char OTF_get_variation_glyphs ();
14107 main ()
14109 return OTF_get_variation_glyphs ();
14111 return 0;
14113 _ACEOF
14114 rm -f conftest.$ac_objext conftest$ac_exeext
14115 if { (ac_try="$ac_link"
14116 case "(($ac_try" in
14117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14118 *) ac_try_echo=$ac_try;;
14119 esac
14120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14121 $as_echo "$ac_try_echo") >&5
14122 (eval "$ac_link") 2>conftest.er1
14123 ac_status=$?
14124 grep -v '^ *+' conftest.er1 >conftest.err
14125 rm -f conftest.er1
14126 cat conftest.err >&5
14127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } && {
14129 test -z "$ac_c_werror_flag" ||
14130 test ! -s conftest.err
14131 } && test -s conftest$ac_exeext && {
14132 test "$cross_compiling" = yes ||
14133 $as_test_x conftest$ac_exeext
14134 }; then
14135 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14136 else
14137 $as_echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.$ac_ext >&5
14140 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14143 rm -rf conftest.dSYM
14144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14145 conftest$ac_exeext conftest.$ac_ext
14146 LIBS=$ac_check_lib_save_LIBS
14148 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14149 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14150 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14151 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14152 else
14153 HAVE_OTF_GET_VARIATION_GLYPHS=no
14156 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14158 cat >>confdefs.h <<\_ACEOF
14159 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14160 _ACEOF
14167 HAVE_M17N_FLT=no
14168 if test "${HAVE_LIBOTF}" = yes; then
14169 if test "${with_m17n_flt}" != "no"; then
14171 succeeded=no
14173 # Extract the first word of "pkg-config", so it can be a program name with args.
14174 set dummy pkg-config; ac_word=$2
14175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14176 $as_echo_n "checking for $ac_word... " >&6; }
14177 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14178 $as_echo_n "(cached) " >&6
14179 else
14180 case $PKG_CONFIG in
14181 [\\/]* | ?:[\\/]*)
14182 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186 for as_dir in $PATH
14188 IFS=$as_save_IFS
14189 test -z "$as_dir" && as_dir=.
14190 for ac_exec_ext in '' $ac_executable_extensions; do
14191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14192 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14194 break 2
14196 done
14197 done
14198 IFS=$as_save_IFS
14200 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14202 esac
14204 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14205 if test -n "$PKG_CONFIG"; then
14206 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14207 $as_echo "$PKG_CONFIG" >&6; }
14208 else
14209 { $as_echo "$as_me:$LINENO: result: no" >&5
14210 $as_echo "no" >&6; }
14215 if test "$PKG_CONFIG" = "no" ; then
14216 HAVE_M17N_FLT=no
14217 else
14218 PKG_CONFIG_MIN_VERSION=0.9.0
14219 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14220 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14221 $as_echo_n "checking for m17n-flt... " >&6; }
14223 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14224 { $as_echo "$as_me:$LINENO: result: yes" >&5
14225 $as_echo "yes" >&6; }
14226 succeeded=yes
14228 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14229 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14230 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14231 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14232 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14234 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14235 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14236 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14237 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14238 $as_echo "$M17N_FLT_LIBS" >&6; }
14239 else
14240 { $as_echo "$as_me:$LINENO: result: no" >&5
14241 $as_echo "no" >&6; }
14242 M17N_FLT_CFLAGS=""
14243 M17N_FLT_LIBS=""
14244 ## If we have a custom action on failure, don't print errors, but
14245 ## do set a variable so people can do so.
14246 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14252 else
14253 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14254 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14258 if test $succeeded = yes; then
14259 HAVE_M17N_FLT=yes
14260 else
14261 HAVE_M17N_FLT=no
14264 if test "$HAVE_M17N_FLT" = "yes"; then
14266 cat >>confdefs.h <<\_ACEOF
14267 #define HAVE_M17N_FLT 1
14268 _ACEOF
14273 else
14274 HAVE_XFT=no
14275 HAVE_FREETYPE=no
14276 HAVE_LIBOTF=no
14277 HAVE_M17N_FLT=no
14279 ### End of font-backend (under X11) section.
14290 ### Use -lXpm if available, unless `--with-xpm=no'.
14291 HAVE_XPM=no
14292 if test "${HAVE_X11}" = "yes"; then
14293 if test "${with_xpm}" != "no"; then
14294 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14295 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14296 $as_echo_n "checking for X11/xpm.h... " >&6; }
14297 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14298 $as_echo_n "(cached) " >&6
14300 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14301 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14302 else
14303 # Is the header compilable?
14304 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14305 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14306 cat >conftest.$ac_ext <<_ACEOF
14307 /* confdefs.h. */
14308 _ACEOF
14309 cat confdefs.h >>conftest.$ac_ext
14310 cat >>conftest.$ac_ext <<_ACEOF
14311 /* end confdefs.h. */
14312 $ac_includes_default
14313 #include <X11/xpm.h>
14314 _ACEOF
14315 rm -f conftest.$ac_objext
14316 if { (ac_try="$ac_compile"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320 esac
14321 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14322 $as_echo "$ac_try_echo") >&5
14323 (eval "$ac_compile") 2>conftest.er1
14324 ac_status=$?
14325 grep -v '^ *+' conftest.er1 >conftest.err
14326 rm -f conftest.er1
14327 cat conftest.err >&5
14328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest.$ac_objext; then
14333 ac_header_compiler=yes
14334 else
14335 $as_echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_header_compiler=no
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14343 $as_echo "$ac_header_compiler" >&6; }
14345 # Is the header present?
14346 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14347 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14348 cat >conftest.$ac_ext <<_ACEOF
14349 /* confdefs.h. */
14350 _ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 #include <X11/xpm.h>
14355 _ACEOF
14356 if { (ac_try="$ac_cpp conftest.$ac_ext"
14357 case "(($ac_try" in
14358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14359 *) ac_try_echo=$ac_try;;
14360 esac
14361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14362 $as_echo "$ac_try_echo") >&5
14363 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14364 ac_status=$?
14365 grep -v '^ *+' conftest.er1 >conftest.err
14366 rm -f conftest.er1
14367 cat conftest.err >&5
14368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); } >/dev/null && {
14370 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14371 test ! -s conftest.err
14372 }; then
14373 ac_header_preproc=yes
14374 else
14375 $as_echo "$as_me: failed program was:" >&5
14376 sed 's/^/| /' conftest.$ac_ext >&5
14378 ac_header_preproc=no
14381 rm -f conftest.err conftest.$ac_ext
14382 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14383 $as_echo "$ac_header_preproc" >&6; }
14385 # So? What about this header?
14386 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14387 yes:no: )
14388 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14389 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14390 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14391 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14392 ac_header_preproc=yes
14394 no:yes:* )
14395 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14396 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14397 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14398 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14399 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14400 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14401 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14402 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14403 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14404 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14405 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14406 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14409 esac
14410 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14411 $as_echo_n "checking for X11/xpm.h... " >&6; }
14412 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14413 $as_echo_n "(cached) " >&6
14414 else
14415 ac_cv_header_X11_xpm_h=$ac_header_preproc
14417 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14418 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14421 if test $ac_cv_header_X11_xpm_h = yes; then
14422 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14423 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14424 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14425 $as_echo_n "(cached) " >&6
14426 else
14427 ac_check_lib_save_LIBS=$LIBS
14428 LIBS="-lXpm -lX11 $LIBS"
14429 cat >conftest.$ac_ext <<_ACEOF
14430 /* confdefs.h. */
14431 _ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14436 /* Override any GCC internal prototype to avoid an error.
14437 Use char because int might match the return type of a GCC
14438 builtin and then its argument prototype would still apply. */
14439 #ifdef __cplusplus
14440 extern "C"
14441 #endif
14442 char XpmReadFileToPixmap ();
14444 main ()
14446 return XpmReadFileToPixmap ();
14448 return 0;
14450 _ACEOF
14451 rm -f conftest.$ac_objext conftest$ac_exeext
14452 if { (ac_try="$ac_link"
14453 case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14456 esac
14457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14458 $as_echo "$ac_try_echo") >&5
14459 (eval "$ac_link") 2>conftest.er1
14460 ac_status=$?
14461 grep -v '^ *+' conftest.er1 >conftest.err
14462 rm -f conftest.er1
14463 cat conftest.err >&5
14464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } && {
14466 test -z "$ac_c_werror_flag" ||
14467 test ! -s conftest.err
14468 } && test -s conftest$ac_exeext && {
14469 test "$cross_compiling" = yes ||
14470 $as_test_x conftest$ac_exeext
14471 }; then
14472 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14473 else
14474 $as_echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14477 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14480 rm -rf conftest.dSYM
14481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14482 conftest$ac_exeext conftest.$ac_ext
14483 LIBS=$ac_check_lib_save_LIBS
14485 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14486 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14487 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14488 HAVE_XPM=yes
14494 if test "${HAVE_XPM}" = "yes"; then
14495 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14496 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14497 cat >conftest.$ac_ext <<_ACEOF
14498 /* confdefs.h. */
14499 _ACEOF
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 #include "X11/xpm.h"
14504 #ifndef XpmReturnAllocPixels
14505 no_return_alloc_pixels
14506 #endif
14508 _ACEOF
14509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14510 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14511 HAVE_XPM=no
14512 else
14513 HAVE_XPM=yes
14515 rm -f conftest*
14518 if test "${HAVE_XPM}" = "yes"; then
14519 { $as_echo "$as_me:$LINENO: result: yes" >&5
14520 $as_echo "yes" >&6; }
14521 else
14522 { $as_echo "$as_me:$LINENO: result: no" >&5
14523 $as_echo "no" >&6; }
14528 if test "${HAVE_XPM}" = "yes"; then
14530 cat >>confdefs.h <<\_ACEOF
14531 #define HAVE_XPM 1
14532 _ACEOF
14537 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14538 HAVE_JPEG=no
14539 if test "${HAVE_X11}" = "yes"; then
14540 if test "${with_jpeg}" != "no"; then
14541 if test "${ac_cv_header_jerror_h+set}" = set; then
14542 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14543 $as_echo_n "checking for jerror.h... " >&6; }
14544 if test "${ac_cv_header_jerror_h+set}" = set; then
14545 $as_echo_n "(cached) " >&6
14547 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14548 $as_echo "$ac_cv_header_jerror_h" >&6; }
14549 else
14550 # Is the header compilable?
14551 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14552 $as_echo_n "checking jerror.h usability... " >&6; }
14553 cat >conftest.$ac_ext <<_ACEOF
14554 /* confdefs.h. */
14555 _ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */
14559 $ac_includes_default
14560 #include <jerror.h>
14561 _ACEOF
14562 rm -f conftest.$ac_objext
14563 if { (ac_try="$ac_compile"
14564 case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567 esac
14568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14569 $as_echo "$ac_try_echo") >&5
14570 (eval "$ac_compile") 2>conftest.er1
14571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
14575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } && {
14577 test -z "$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 } && test -s conftest.$ac_objext; then
14580 ac_header_compiler=yes
14581 else
14582 $as_echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 ac_header_compiler=no
14588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14590 $as_echo "$ac_header_compiler" >&6; }
14592 # Is the header present?
14593 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14594 $as_echo_n "checking jerror.h presence... " >&6; }
14595 cat >conftest.$ac_ext <<_ACEOF
14596 /* confdefs.h. */
14597 _ACEOF
14598 cat confdefs.h >>conftest.$ac_ext
14599 cat >>conftest.$ac_ext <<_ACEOF
14600 /* end confdefs.h. */
14601 #include <jerror.h>
14602 _ACEOF
14603 if { (ac_try="$ac_cpp conftest.$ac_ext"
14604 case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14607 esac
14608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14609 $as_echo "$ac_try_echo") >&5
14610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
14615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } >/dev/null && {
14617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14619 }; then
14620 ac_header_preproc=yes
14621 else
14622 $as_echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ac_header_preproc=no
14628 rm -f conftest.err conftest.$ac_ext
14629 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14630 $as_echo "$ac_header_preproc" >&6; }
14632 # So? What about this header?
14633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14634 yes:no: )
14635 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14636 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14637 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14638 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14639 ac_header_preproc=yes
14641 no:yes:* )
14642 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14643 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14644 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14645 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14646 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14647 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14648 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14649 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14650 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14651 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14652 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14653 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14656 esac
14657 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14658 $as_echo_n "checking for jerror.h... " >&6; }
14659 if test "${ac_cv_header_jerror_h+set}" = set; then
14660 $as_echo_n "(cached) " >&6
14661 else
14662 ac_cv_header_jerror_h=$ac_header_preproc
14664 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14665 $as_echo "$ac_cv_header_jerror_h" >&6; }
14668 if test $ac_cv_header_jerror_h = yes; then
14669 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14670 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14671 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14672 $as_echo_n "(cached) " >&6
14673 else
14674 ac_check_lib_save_LIBS=$LIBS
14675 LIBS="-ljpeg $LIBS"
14676 cat >conftest.$ac_ext <<_ACEOF
14677 /* confdefs.h. */
14678 _ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14683 /* Override any GCC internal prototype to avoid an error.
14684 Use char because int might match the return type of a GCC
14685 builtin and then its argument prototype would still apply. */
14686 #ifdef __cplusplus
14687 extern "C"
14688 #endif
14689 char jpeg_destroy_compress ();
14691 main ()
14693 return jpeg_destroy_compress ();
14695 return 0;
14697 _ACEOF
14698 rm -f conftest.$ac_objext conftest$ac_exeext
14699 if { (ac_try="$ac_link"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703 esac
14704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14705 $as_echo "$ac_try_echo") >&5
14706 (eval "$ac_link") 2>conftest.er1
14707 ac_status=$?
14708 grep -v '^ *+' conftest.er1 >conftest.err
14709 rm -f conftest.er1
14710 cat conftest.err >&5
14711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } && {
14713 test -z "$ac_c_werror_flag" ||
14714 test ! -s conftest.err
14715 } && test -s conftest$ac_exeext && {
14716 test "$cross_compiling" = yes ||
14717 $as_test_x conftest$ac_exeext
14718 }; then
14719 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14720 else
14721 $as_echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14727 rm -rf conftest.dSYM
14728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14729 conftest$ac_exeext conftest.$ac_ext
14730 LIBS=$ac_check_lib_save_LIBS
14732 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14733 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14734 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14735 HAVE_JPEG=yes
14744 if test "${HAVE_JPEG}" = "yes"; then
14745 cat >>confdefs.h <<\_ACEOF
14746 #define HAVE_JPEG 1
14747 _ACEOF
14749 cat >conftest.$ac_ext <<_ACEOF
14750 /* confdefs.h. */
14751 _ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14755 #include <jpeglib.h>
14756 version=JPEG_LIB_VERSION
14758 _ACEOF
14759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14760 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14761 cat >>confdefs.h <<\_ACEOF
14762 #define HAVE_JPEG 1
14763 _ACEOF
14765 else
14766 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14767 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14768 HAVE_JPEG=no
14770 rm -f conftest*
14775 ### Use -lpng if available, unless `--with-png=no'.
14776 HAVE_PNG=no
14777 if test "${HAVE_X11}" = "yes"; then
14778 if test "${with_png}" != "no"; then
14779 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14780 # in /usr/include/libpng.
14783 for ac_header in png.h libpng/png.h
14785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14787 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14788 $as_echo_n "checking for $ac_header... " >&6; }
14789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790 $as_echo_n "(cached) " >&6
14792 ac_res=`eval 'as_val=${'$as_ac_Header'}
14793 $as_echo "$as_val"'`
14794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14795 $as_echo "$ac_res" >&6; }
14796 else
14797 # Is the header compilable?
14798 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14799 $as_echo_n "checking $ac_header usability... " >&6; }
14800 cat >conftest.$ac_ext <<_ACEOF
14801 /* confdefs.h. */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 $ac_includes_default
14807 #include <$ac_header>
14808 _ACEOF
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14814 esac
14815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14816 $as_echo "$ac_try_echo") >&5
14817 (eval "$ac_compile") 2>conftest.er1
14818 ac_status=$?
14819 grep -v '^ *+' conftest.er1 >conftest.err
14820 rm -f conftest.er1
14821 cat conftest.err >&5
14822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } && {
14824 test -z "$ac_c_werror_flag" ||
14825 test ! -s conftest.err
14826 } && test -s conftest.$ac_objext; then
14827 ac_header_compiler=yes
14828 else
14829 $as_echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_header_compiler=no
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14837 $as_echo "$ac_header_compiler" >&6; }
14839 # Is the header present?
14840 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14841 $as_echo_n "checking $ac_header presence... " >&6; }
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h. */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 #include <$ac_header>
14849 _ACEOF
14850 if { (ac_try="$ac_cpp conftest.$ac_ext"
14851 case "(($ac_try" in
14852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14854 esac
14855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14856 $as_echo "$ac_try_echo") >&5
14857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14858 ac_status=$?
14859 grep -v '^ *+' conftest.er1 >conftest.err
14860 rm -f conftest.er1
14861 cat conftest.err >&5
14862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } >/dev/null && {
14864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14865 test ! -s conftest.err
14866 }; then
14867 ac_header_preproc=yes
14868 else
14869 $as_echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_header_preproc=no
14875 rm -f conftest.err conftest.$ac_ext
14876 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877 $as_echo "$ac_header_preproc" >&6; }
14879 # So? What about this header?
14880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14881 yes:no: )
14882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14883 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14885 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14886 ac_header_preproc=yes
14888 no:yes:* )
14889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14890 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14892 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14894 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14896 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14898 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14900 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14903 esac
14904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14905 $as_echo_n "checking for $ac_header... " >&6; }
14906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14907 $as_echo_n "(cached) " >&6
14908 else
14909 eval "$as_ac_Header=\$ac_header_preproc"
14911 ac_res=`eval 'as_val=${'$as_ac_Header'}
14912 $as_echo "$as_val"'`
14913 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14914 $as_echo "$ac_res" >&6; }
14917 if test `eval 'as_val=${'$as_ac_Header'}
14918 $as_echo "$as_val"'` = yes; then
14919 cat >>confdefs.h <<_ACEOF
14920 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14921 _ACEOF
14925 done
14927 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14928 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14929 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
14930 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14931 $as_echo_n "(cached) " >&6
14932 else
14933 ac_check_lib_save_LIBS=$LIBS
14934 LIBS="-lpng -lz -lm $LIBS"
14935 cat >conftest.$ac_ext <<_ACEOF
14936 /* confdefs.h. */
14937 _ACEOF
14938 cat confdefs.h >>conftest.$ac_ext
14939 cat >>conftest.$ac_ext <<_ACEOF
14940 /* end confdefs.h. */
14942 /* Override any GCC internal prototype to avoid an error.
14943 Use char because int might match the return type of a GCC
14944 builtin and then its argument prototype would still apply. */
14945 #ifdef __cplusplus
14946 extern "C"
14947 #endif
14948 char png_get_channels ();
14950 main ()
14952 return png_get_channels ();
14954 return 0;
14956 _ACEOF
14957 rm -f conftest.$ac_objext conftest$ac_exeext
14958 if { (ac_try="$ac_link"
14959 case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14962 esac
14963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14964 $as_echo "$ac_try_echo") >&5
14965 (eval "$ac_link") 2>conftest.er1
14966 ac_status=$?
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
14970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } && {
14972 test -z "$ac_c_werror_flag" ||
14973 test ! -s conftest.err
14974 } && test -s conftest$ac_exeext && {
14975 test "$cross_compiling" = yes ||
14976 $as_test_x conftest$ac_exeext
14977 }; then
14978 ac_cv_lib_png_png_get_channels=yes
14979 else
14980 $as_echo "$as_me: failed program was:" >&5
14981 sed 's/^/| /' conftest.$ac_ext >&5
14983 ac_cv_lib_png_png_get_channels=no
14986 rm -rf conftest.dSYM
14987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14988 conftest$ac_exeext conftest.$ac_ext
14989 LIBS=$ac_check_lib_save_LIBS
14991 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14992 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
14993 if test $ac_cv_lib_png_png_get_channels = yes; then
14994 HAVE_PNG=yes
15000 if test "${HAVE_PNG}" = "yes"; then
15002 cat >>confdefs.h <<\_ACEOF
15003 #define HAVE_PNG 1
15004 _ACEOF
15009 ### Use -ltiff if available, unless `--with-tiff=no'.
15010 HAVE_TIFF=no
15011 if test "${HAVE_X11}" = "yes"; then
15012 if test "${with_tiff}" != "no"; then
15013 if test "${ac_cv_header_tiffio_h+set}" = set; then
15014 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15015 $as_echo_n "checking for tiffio.h... " >&6; }
15016 if test "${ac_cv_header_tiffio_h+set}" = set; then
15017 $as_echo_n "(cached) " >&6
15019 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15020 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15021 else
15022 # Is the header compilable?
15023 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15024 $as_echo_n "checking tiffio.h usability... " >&6; }
15025 cat >conftest.$ac_ext <<_ACEOF
15026 /* confdefs.h. */
15027 _ACEOF
15028 cat confdefs.h >>conftest.$ac_ext
15029 cat >>conftest.$ac_ext <<_ACEOF
15030 /* end confdefs.h. */
15031 $ac_includes_default
15032 #include <tiffio.h>
15033 _ACEOF
15034 rm -f conftest.$ac_objext
15035 if { (ac_try="$ac_compile"
15036 case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15039 esac
15040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15041 $as_echo "$ac_try_echo") >&5
15042 (eval "$ac_compile") 2>conftest.er1
15043 ac_status=$?
15044 grep -v '^ *+' conftest.er1 >conftest.err
15045 rm -f conftest.er1
15046 cat conftest.err >&5
15047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); } && {
15049 test -z "$ac_c_werror_flag" ||
15050 test ! -s conftest.err
15051 } && test -s conftest.$ac_objext; then
15052 ac_header_compiler=yes
15053 else
15054 $as_echo "$as_me: failed program was:" >&5
15055 sed 's/^/| /' conftest.$ac_ext >&5
15057 ac_header_compiler=no
15060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15062 $as_echo "$ac_header_compiler" >&6; }
15064 # Is the header present?
15065 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15066 $as_echo_n "checking tiffio.h presence... " >&6; }
15067 cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h. */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 #include <tiffio.h>
15074 _ACEOF
15075 if { (ac_try="$ac_cpp conftest.$ac_ext"
15076 case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15079 esac
15080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15081 $as_echo "$ac_try_echo") >&5
15082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15083 ac_status=$?
15084 grep -v '^ *+' conftest.er1 >conftest.err
15085 rm -f conftest.er1
15086 cat conftest.err >&5
15087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } >/dev/null && {
15089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15090 test ! -s conftest.err
15091 }; then
15092 ac_header_preproc=yes
15093 else
15094 $as_echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_header_preproc=no
15100 rm -f conftest.err conftest.$ac_ext
15101 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15102 $as_echo "$ac_header_preproc" >&6; }
15104 # So? What about this header?
15105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15106 yes:no: )
15107 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15108 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15109 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15110 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15111 ac_header_preproc=yes
15113 no:yes:* )
15114 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15115 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15116 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15117 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15118 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15119 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15120 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15121 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15122 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15123 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15124 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15125 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15128 esac
15129 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15130 $as_echo_n "checking for tiffio.h... " >&6; }
15131 if test "${ac_cv_header_tiffio_h+set}" = set; then
15132 $as_echo_n "(cached) " >&6
15133 else
15134 ac_cv_header_tiffio_h=$ac_header_preproc
15136 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15137 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15140 if test $ac_cv_header_tiffio_h = yes; then
15141 tifflibs="-lz -lm"
15142 # At least one tiff package requires the jpeg library.
15143 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15144 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15145 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15146 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15147 $as_echo_n "(cached) " >&6
15148 else
15149 ac_check_lib_save_LIBS=$LIBS
15150 LIBS="-ltiff $tifflibs $LIBS"
15151 cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h. */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15158 /* Override any GCC internal prototype to avoid an error.
15159 Use char because int might match the return type of a GCC
15160 builtin and then its argument prototype would still apply. */
15161 #ifdef __cplusplus
15162 extern "C"
15163 #endif
15164 char TIFFGetVersion ();
15166 main ()
15168 return TIFFGetVersion ();
15170 return 0;
15172 _ACEOF
15173 rm -f conftest.$ac_objext conftest$ac_exeext
15174 if { (ac_try="$ac_link"
15175 case "(($ac_try" in
15176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15177 *) ac_try_echo=$ac_try;;
15178 esac
15179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15180 $as_echo "$ac_try_echo") >&5
15181 (eval "$ac_link") 2>conftest.er1
15182 ac_status=$?
15183 grep -v '^ *+' conftest.er1 >conftest.err
15184 rm -f conftest.er1
15185 cat conftest.err >&5
15186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); } && {
15188 test -z "$ac_c_werror_flag" ||
15189 test ! -s conftest.err
15190 } && test -s conftest$ac_exeext && {
15191 test "$cross_compiling" = yes ||
15192 $as_test_x conftest$ac_exeext
15193 }; then
15194 ac_cv_lib_tiff_TIFFGetVersion=yes
15195 else
15196 $as_echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15199 ac_cv_lib_tiff_TIFFGetVersion=no
15202 rm -rf conftest.dSYM
15203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15204 conftest$ac_exeext conftest.$ac_ext
15205 LIBS=$ac_check_lib_save_LIBS
15207 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15208 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15209 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15210 HAVE_TIFF=yes
15218 if test "${HAVE_TIFF}" = "yes"; then
15220 cat >>confdefs.h <<\_ACEOF
15221 #define HAVE_TIFF 1
15222 _ACEOF
15227 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15228 HAVE_GIF=no
15229 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15230 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15231 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15232 $as_echo_n "checking for gif_lib.h... " >&6; }
15233 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15234 $as_echo_n "(cached) " >&6
15236 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15237 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15238 else
15239 # Is the header compilable?
15240 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15241 $as_echo_n "checking gif_lib.h usability... " >&6; }
15242 cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h. */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 $ac_includes_default
15249 #include <gif_lib.h>
15250 _ACEOF
15251 rm -f conftest.$ac_objext
15252 if { (ac_try="$ac_compile"
15253 case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15256 esac
15257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15258 $as_echo "$ac_try_echo") >&5
15259 (eval "$ac_compile") 2>conftest.er1
15260 ac_status=$?
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } && {
15266 test -z "$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 } && test -s conftest.$ac_objext; then
15269 ac_header_compiler=yes
15270 else
15271 $as_echo "$as_me: failed program was:" >&5
15272 sed 's/^/| /' conftest.$ac_ext >&5
15274 ac_header_compiler=no
15277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15279 $as_echo "$ac_header_compiler" >&6; }
15281 # Is the header present?
15282 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15283 $as_echo_n "checking gif_lib.h presence... " >&6; }
15284 cat >conftest.$ac_ext <<_ACEOF
15285 /* confdefs.h. */
15286 _ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 #include <gif_lib.h>
15291 _ACEOF
15292 if { (ac_try="$ac_cpp conftest.$ac_ext"
15293 case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15296 esac
15297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15298 $as_echo "$ac_try_echo") >&5
15299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15300 ac_status=$?
15301 grep -v '^ *+' conftest.er1 >conftest.err
15302 rm -f conftest.er1
15303 cat conftest.err >&5
15304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } >/dev/null && {
15306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15307 test ! -s conftest.err
15308 }; then
15309 ac_header_preproc=yes
15310 else
15311 $as_echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 ac_header_preproc=no
15317 rm -f conftest.err conftest.$ac_ext
15318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15319 $as_echo "$ac_header_preproc" >&6; }
15321 # So? What about this header?
15322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15323 yes:no: )
15324 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15325 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15326 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15327 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15328 ac_header_preproc=yes
15330 no:yes:* )
15331 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15332 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15333 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15334 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15335 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15336 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15337 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15338 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15339 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15340 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15341 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15342 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15345 esac
15346 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15347 $as_echo_n "checking for gif_lib.h... " >&6; }
15348 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15349 $as_echo_n "(cached) " >&6
15350 else
15351 ac_cv_header_gif_lib_h=$ac_header_preproc
15353 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15354 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15357 if test $ac_cv_header_gif_lib_h = yes; then
15358 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15359 # Earlier versions can crash Emacs.
15360 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15361 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15362 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15363 $as_echo_n "(cached) " >&6
15364 else
15365 ac_check_lib_save_LIBS=$LIBS
15366 LIBS="-lgif $LIBS"
15367 cat >conftest.$ac_ext <<_ACEOF
15368 /* confdefs.h. */
15369 _ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15374 /* Override any GCC internal prototype to avoid an error.
15375 Use char because int might match the return type of a GCC
15376 builtin and then its argument prototype would still apply. */
15377 #ifdef __cplusplus
15378 extern "C"
15379 #endif
15380 char EGifPutExtensionLast ();
15382 main ()
15384 return EGifPutExtensionLast ();
15386 return 0;
15388 _ACEOF
15389 rm -f conftest.$ac_objext conftest$ac_exeext
15390 if { (ac_try="$ac_link"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394 esac
15395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15396 $as_echo "$ac_try_echo") >&5
15397 (eval "$ac_link") 2>conftest.er1
15398 ac_status=$?
15399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
15402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } && {
15404 test -z "$ac_c_werror_flag" ||
15405 test ! -s conftest.err
15406 } && test -s conftest$ac_exeext && {
15407 test "$cross_compiling" = yes ||
15408 $as_test_x conftest$ac_exeext
15409 }; then
15410 ac_cv_lib_gif_EGifPutExtensionLast=yes
15411 else
15412 $as_echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15415 ac_cv_lib_gif_EGifPutExtensionLast=no
15418 rm -rf conftest.dSYM
15419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15420 conftest$ac_exeext conftest.$ac_ext
15421 LIBS=$ac_check_lib_save_LIBS
15423 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15424 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15425 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15426 HAVE_GIF=yes
15427 else
15428 try_libungif=yes
15435 if test "$HAVE_GIF" = yes; then
15436 ac_gif_lib_name="-lgif"
15439 # If gif_lib.h but no libgif, try libungif.
15440 if test x"$try_libungif" = xyes; then
15441 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15442 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15443 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15444 $as_echo_n "(cached) " >&6
15445 else
15446 ac_check_lib_save_LIBS=$LIBS
15447 LIBS="-lungif $LIBS"
15448 cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h. */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h. */
15455 /* Override any GCC internal prototype to avoid an error.
15456 Use char because int might match the return type of a GCC
15457 builtin and then its argument prototype would still apply. */
15458 #ifdef __cplusplus
15459 extern "C"
15460 #endif
15461 char EGifPutExtensionLast ();
15463 main ()
15465 return EGifPutExtensionLast ();
15467 return 0;
15469 _ACEOF
15470 rm -f conftest.$ac_objext conftest$ac_exeext
15471 if { (ac_try="$ac_link"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15475 esac
15476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15477 $as_echo "$ac_try_echo") >&5
15478 (eval "$ac_link") 2>conftest.er1
15479 ac_status=$?
15480 grep -v '^ *+' conftest.er1 >conftest.err
15481 rm -f conftest.er1
15482 cat conftest.err >&5
15483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } && {
15485 test -z "$ac_c_werror_flag" ||
15486 test ! -s conftest.err
15487 } && test -s conftest$ac_exeext && {
15488 test "$cross_compiling" = yes ||
15489 $as_test_x conftest$ac_exeext
15490 }; then
15491 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15492 else
15493 $as_echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.$ac_ext >&5
15496 ac_cv_lib_ungif_EGifPutExtensionLast=no
15499 rm -rf conftest.dSYM
15500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15501 conftest$ac_exeext conftest.$ac_ext
15502 LIBS=$ac_check_lib_save_LIBS
15504 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15505 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15506 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15507 HAVE_GIF=yes
15511 if test "$HAVE_GIF" = yes; then
15513 cat >>confdefs.h <<\_ACEOF
15514 #define LIBGIF -lungif
15515 _ACEOF
15517 ac_gif_lib_name="-lungif"
15521 if test "${HAVE_GIF}" = "yes"; then
15523 cat >>confdefs.h <<\_ACEOF
15524 #define HAVE_GIF 1
15525 _ACEOF
15530 if test "${HAVE_X11}" = "yes"; then
15531 MISSING=""
15532 WITH_NO=""
15533 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15534 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15535 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15536 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15537 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15538 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15539 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15540 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15541 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15542 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15544 if test "X${MISSING}" != X; then
15545 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15546 $MISSING
15547 Maybe some development libraries/packages are missing?
15548 If you don't want to link with them give
15549 $WITH_NO
15550 as options to configure" >&5
15551 $as_echo "$as_me: error: The following required libraries were not found:
15552 $MISSING
15553 Maybe some development libraries/packages are missing?
15554 If you don't want to link with them give
15555 $WITH_NO
15556 as options to configure" >&2;}
15557 { (exit 1); exit 1; }; }
15561 ### Use -lgpm if available, unless `--with-gpm=no'.
15562 HAVE_GPM=no
15563 if test "${with_gpm}" != "no"; then
15564 if test "${ac_cv_header_gpm_h+set}" = set; then
15565 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15566 $as_echo_n "checking for gpm.h... " >&6; }
15567 if test "${ac_cv_header_gpm_h+set}" = set; then
15568 $as_echo_n "(cached) " >&6
15570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15571 $as_echo "$ac_cv_header_gpm_h" >&6; }
15572 else
15573 # Is the header compilable?
15574 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15575 $as_echo_n "checking gpm.h usability... " >&6; }
15576 cat >conftest.$ac_ext <<_ACEOF
15577 /* confdefs.h. */
15578 _ACEOF
15579 cat confdefs.h >>conftest.$ac_ext
15580 cat >>conftest.$ac_ext <<_ACEOF
15581 /* end confdefs.h. */
15582 $ac_includes_default
15583 #include <gpm.h>
15584 _ACEOF
15585 rm -f conftest.$ac_objext
15586 if { (ac_try="$ac_compile"
15587 case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15590 esac
15591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15592 $as_echo "$ac_try_echo") >&5
15593 (eval "$ac_compile") 2>conftest.er1
15594 ac_status=$?
15595 grep -v '^ *+' conftest.er1 >conftest.err
15596 rm -f conftest.er1
15597 cat conftest.err >&5
15598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 (exit $ac_status); } && {
15600 test -z "$ac_c_werror_flag" ||
15601 test ! -s conftest.err
15602 } && test -s conftest.$ac_objext; then
15603 ac_header_compiler=yes
15604 else
15605 $as_echo "$as_me: failed program was:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_header_compiler=no
15611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15613 $as_echo "$ac_header_compiler" >&6; }
15615 # Is the header present?
15616 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15617 $as_echo_n "checking gpm.h presence... " >&6; }
15618 cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h. */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h. */
15624 #include <gpm.h>
15625 _ACEOF
15626 if { (ac_try="$ac_cpp conftest.$ac_ext"
15627 case "(($ac_try" in
15628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15630 esac
15631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15632 $as_echo "$ac_try_echo") >&5
15633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15634 ac_status=$?
15635 grep -v '^ *+' conftest.er1 >conftest.err
15636 rm -f conftest.er1
15637 cat conftest.err >&5
15638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15639 (exit $ac_status); } >/dev/null && {
15640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15641 test ! -s conftest.err
15642 }; then
15643 ac_header_preproc=yes
15644 else
15645 $as_echo "$as_me: failed program was:" >&5
15646 sed 's/^/| /' conftest.$ac_ext >&5
15648 ac_header_preproc=no
15651 rm -f conftest.err conftest.$ac_ext
15652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15653 $as_echo "$ac_header_preproc" >&6; }
15655 # So? What about this header?
15656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15657 yes:no: )
15658 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15659 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15660 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15661 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15662 ac_header_preproc=yes
15664 no:yes:* )
15665 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15666 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15667 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15668 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15669 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15670 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15671 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15672 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15673 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15674 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15675 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15676 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15679 esac
15680 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15681 $as_echo_n "checking for gpm.h... " >&6; }
15682 if test "${ac_cv_header_gpm_h+set}" = set; then
15683 $as_echo_n "(cached) " >&6
15684 else
15685 ac_cv_header_gpm_h=$ac_header_preproc
15687 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15688 $as_echo "$ac_cv_header_gpm_h" >&6; }
15691 if test $ac_cv_header_gpm_h = yes; then
15692 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15693 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15694 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15695 $as_echo_n "(cached) " >&6
15696 else
15697 ac_check_lib_save_LIBS=$LIBS
15698 LIBS="-lgpm $LIBS"
15699 cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h. */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15706 /* Override any GCC internal prototype to avoid an error.
15707 Use char because int might match the return type of a GCC
15708 builtin and then its argument prototype would still apply. */
15709 #ifdef __cplusplus
15710 extern "C"
15711 #endif
15712 char Gpm_Open ();
15714 main ()
15716 return Gpm_Open ();
15718 return 0;
15720 _ACEOF
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (ac_try="$ac_link"
15723 case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15726 esac
15727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15728 $as_echo "$ac_try_echo") >&5
15729 (eval "$ac_link") 2>conftest.er1
15730 ac_status=$?
15731 grep -v '^ *+' conftest.er1 >conftest.err
15732 rm -f conftest.er1
15733 cat conftest.err >&5
15734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735 (exit $ac_status); } && {
15736 test -z "$ac_c_werror_flag" ||
15737 test ! -s conftest.err
15738 } && test -s conftest$ac_exeext && {
15739 test "$cross_compiling" = yes ||
15740 $as_test_x conftest$ac_exeext
15741 }; then
15742 ac_cv_lib_gpm_Gpm_Open=yes
15743 else
15744 $as_echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15747 ac_cv_lib_gpm_Gpm_Open=no
15750 rm -rf conftest.dSYM
15751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15752 conftest$ac_exeext conftest.$ac_ext
15753 LIBS=$ac_check_lib_save_LIBS
15755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15756 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15757 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
15758 HAVE_GPM=yes
15766 if test "${HAVE_GPM}" = "yes"; then
15768 cat >>confdefs.h <<\_ACEOF
15769 #define HAVE_GPM 1
15770 _ACEOF
15774 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15775 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15776 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15777 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15778 $as_echo_n "(cached) " >&6
15780 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15781 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15782 else
15783 # Is the header compilable?
15784 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15785 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15786 cat >conftest.$ac_ext <<_ACEOF
15787 /* confdefs.h. */
15788 _ACEOF
15789 cat confdefs.h >>conftest.$ac_ext
15790 cat >>conftest.$ac_ext <<_ACEOF
15791 /* end confdefs.h. */
15792 $ac_includes_default
15793 #include <malloc/malloc.h>
15794 _ACEOF
15795 rm -f conftest.$ac_objext
15796 if { (ac_try="$ac_compile"
15797 case "(($ac_try" in
15798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799 *) ac_try_echo=$ac_try;;
15800 esac
15801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15802 $as_echo "$ac_try_echo") >&5
15803 (eval "$ac_compile") 2>conftest.er1
15804 ac_status=$?
15805 grep -v '^ *+' conftest.er1 >conftest.err
15806 rm -f conftest.er1
15807 cat conftest.err >&5
15808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); } && {
15810 test -z "$ac_c_werror_flag" ||
15811 test ! -s conftest.err
15812 } && test -s conftest.$ac_objext; then
15813 ac_header_compiler=yes
15814 else
15815 $as_echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15818 ac_header_compiler=no
15821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15822 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15823 $as_echo "$ac_header_compiler" >&6; }
15825 # Is the header present?
15826 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15827 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15828 cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h. */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15834 #include <malloc/malloc.h>
15835 _ACEOF
15836 if { (ac_try="$ac_cpp conftest.$ac_ext"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15840 esac
15841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15842 $as_echo "$ac_try_echo") >&5
15843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15844 ac_status=$?
15845 grep -v '^ *+' conftest.er1 >conftest.err
15846 rm -f conftest.er1
15847 cat conftest.err >&5
15848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15849 (exit $ac_status); } >/dev/null && {
15850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15851 test ! -s conftest.err
15852 }; then
15853 ac_header_preproc=yes
15854 else
15855 $as_echo "$as_me: failed program was:" >&5
15856 sed 's/^/| /' conftest.$ac_ext >&5
15858 ac_header_preproc=no
15861 rm -f conftest.err conftest.$ac_ext
15862 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15863 $as_echo "$ac_header_preproc" >&6; }
15865 # So? What about this header?
15866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15867 yes:no: )
15868 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15869 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15870 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15871 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15872 ac_header_preproc=yes
15874 no:yes:* )
15875 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15876 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15877 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15878 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15879 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15880 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15881 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15882 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15883 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15884 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15885 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15886 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15889 esac
15890 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15891 $as_echo_n "checking for malloc/malloc.h... " >&6; }
15892 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15893 $as_echo_n "(cached) " >&6
15894 else
15895 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15897 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15898 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15901 if test $ac_cv_header_malloc_malloc_h = yes; then
15903 cat >>confdefs.h <<\_ACEOF
15904 #define HAVE_MALLOC_MALLOC_H 1
15905 _ACEOF
15911 ### Use NeXTstep API to implement GUI.
15912 if test "${HAVE_NS}" = "yes"; then
15914 cat >>confdefs.h <<\_ACEOF
15915 #define HAVE_NS 1
15916 _ACEOF
15918 if test "${NS_IMPL_COCOA}" = "yes"; then
15920 cat >>confdefs.h <<\_ACEOF
15921 #define NS_IMPL_COCOA 1
15922 _ACEOF
15924 GNU_OBJC_CFLAGS=
15926 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
15928 cat >>confdefs.h <<\_ACEOF
15929 #define NS_IMPL_GNUSTEP 1
15930 _ACEOF
15932 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
15934 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
15936 cat >>confdefs.h <<\_ACEOF
15937 #define NS_HAVE_NSINTEGER 1
15938 _ACEOF
15941 # We also have mouse menus.
15942 HAVE_MENUS=yes
15943 OTHER_FILES=ns-app
15947 ### Use session management (-lSM -lICE) if available
15948 HAVE_X_SM=no
15949 if test "${HAVE_X11}" = "yes"; then
15950 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15951 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15952 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
15953 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15954 $as_echo_n "(cached) " >&6
15956 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15957 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
15958 else
15959 # Is the header compilable?
15960 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15961 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h. */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 $ac_includes_default
15969 #include <X11/SM/SMlib.h>
15970 _ACEOF
15971 rm -f conftest.$ac_objext
15972 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
15989 ac_header_compiler=yes
15990 else
15991 $as_echo "$as_me: failed program was:" >&5
15992 sed 's/^/| /' conftest.$ac_ext >&5
15994 ac_header_compiler=no
15997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15998 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15999 $as_echo "$ac_header_compiler" >&6; }
16001 # Is the header present?
16002 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16003 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16004 cat >conftest.$ac_ext <<_ACEOF
16005 /* confdefs.h. */
16006 _ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 #include <X11/SM/SMlib.h>
16011 _ACEOF
16012 if { (ac_try="$ac_cpp conftest.$ac_ext"
16013 case "(($ac_try" in
16014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16015 *) ac_try_echo=$ac_try;;
16016 esac
16017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16018 $as_echo "$ac_try_echo") >&5
16019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16020 ac_status=$?
16021 grep -v '^ *+' conftest.er1 >conftest.err
16022 rm -f conftest.er1
16023 cat conftest.err >&5
16024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } >/dev/null && {
16026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16027 test ! -s conftest.err
16028 }; then
16029 ac_header_preproc=yes
16030 else
16031 $as_echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16034 ac_header_preproc=no
16037 rm -f conftest.err conftest.$ac_ext
16038 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16039 $as_echo "$ac_header_preproc" >&6; }
16041 # So? What about this header?
16042 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16043 yes:no: )
16044 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16045 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16046 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16047 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16048 ac_header_preproc=yes
16050 no:yes:* )
16051 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16052 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16053 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16054 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16055 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16056 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16057 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16058 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16059 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16060 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16061 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16062 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16065 esac
16066 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16067 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16068 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16069 $as_echo_n "(cached) " >&6
16070 else
16071 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16073 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16074 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16077 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16078 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16079 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16080 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16081 $as_echo_n "(cached) " >&6
16082 else
16083 ac_check_lib_save_LIBS=$LIBS
16084 LIBS="-lSM -lICE $LIBS"
16085 cat >conftest.$ac_ext <<_ACEOF
16086 /* confdefs.h. */
16087 _ACEOF
16088 cat confdefs.h >>conftest.$ac_ext
16089 cat >>conftest.$ac_ext <<_ACEOF
16090 /* end confdefs.h. */
16092 /* Override any GCC internal prototype to avoid an error.
16093 Use char because int might match the return type of a GCC
16094 builtin and then its argument prototype would still apply. */
16095 #ifdef __cplusplus
16096 extern "C"
16097 #endif
16098 char SmcOpenConnection ();
16100 main ()
16102 return SmcOpenConnection ();
16104 return 0;
16106 _ACEOF
16107 rm -f conftest.$ac_objext conftest$ac_exeext
16108 if { (ac_try="$ac_link"
16109 case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16112 esac
16113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16114 $as_echo "$ac_try_echo") >&5
16115 (eval "$ac_link") 2>conftest.er1
16116 ac_status=$?
16117 grep -v '^ *+' conftest.er1 >conftest.err
16118 rm -f conftest.er1
16119 cat conftest.err >&5
16120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } && {
16122 test -z "$ac_c_werror_flag" ||
16123 test ! -s conftest.err
16124 } && test -s conftest$ac_exeext && {
16125 test "$cross_compiling" = yes ||
16126 $as_test_x conftest$ac_exeext
16127 }; then
16128 ac_cv_lib_SM_SmcOpenConnection=yes
16129 else
16130 $as_echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16133 ac_cv_lib_SM_SmcOpenConnection=no
16136 rm -rf conftest.dSYM
16137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16138 conftest$ac_exeext conftest.$ac_ext
16139 LIBS=$ac_check_lib_save_LIBS
16141 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16142 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16143 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16144 HAVE_X_SM=yes
16151 if test "${HAVE_X_SM}" = "yes"; then
16153 cat >>confdefs.h <<\_ACEOF
16154 #define HAVE_X_SM 1
16155 _ACEOF
16157 case "$LIBS" in
16158 *-lSM*) ;;
16159 *) LIBS="-lSM -lICE $LIBS" ;;
16160 esac
16164 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16165 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16166 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16167 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16168 $as_echo_n "(cached) " >&6
16169 else
16170 cat >conftest.$ac_ext <<_ACEOF
16171 /* confdefs.h. */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h. */
16176 #include <netdb.h>
16178 main ()
16180 return h_errno;
16182 return 0;
16184 _ACEOF
16185 rm -f conftest.$ac_objext conftest$ac_exeext
16186 if { (ac_try="$ac_link"
16187 case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190 esac
16191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192 $as_echo "$ac_try_echo") >&5
16193 (eval "$ac_link") 2>conftest.er1
16194 ac_status=$?
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
16198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } && {
16200 test -z "$ac_c_werror_flag" ||
16201 test ! -s conftest.err
16202 } && test -s conftest$ac_exeext && {
16203 test "$cross_compiling" = yes ||
16204 $as_test_x conftest$ac_exeext
16205 }; then
16206 emacs_cv_netdb_declares_h_errno=yes
16207 else
16208 $as_echo "$as_me: failed program was:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 emacs_cv_netdb_declares_h_errno=no
16214 rm -rf conftest.dSYM
16215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16216 conftest$ac_exeext conftest.$ac_ext
16218 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16219 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16220 if test $emacs_cv_netdb_declares_h_errno = yes; then
16222 cat >>confdefs.h <<\_ACEOF
16223 #define HAVE_H_ERRNO 1
16224 _ACEOF
16228 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16229 # for constant arguments. Useless!
16230 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16231 $as_echo_n "checking for working alloca.h... " >&6; }
16232 if test "${ac_cv_working_alloca_h+set}" = set; then
16233 $as_echo_n "(cached) " >&6
16234 else
16235 cat >conftest.$ac_ext <<_ACEOF
16236 /* confdefs.h. */
16237 _ACEOF
16238 cat confdefs.h >>conftest.$ac_ext
16239 cat >>conftest.$ac_ext <<_ACEOF
16240 /* end confdefs.h. */
16241 #include <alloca.h>
16243 main ()
16245 char *p = (char *) alloca (2 * sizeof (int));
16246 if (p) return 0;
16248 return 0;
16250 _ACEOF
16251 rm -f conftest.$ac_objext conftest$ac_exeext
16252 if { (ac_try="$ac_link"
16253 case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16256 esac
16257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16258 $as_echo "$ac_try_echo") >&5
16259 (eval "$ac_link") 2>conftest.er1
16260 ac_status=$?
16261 grep -v '^ *+' conftest.er1 >conftest.err
16262 rm -f conftest.er1
16263 cat conftest.err >&5
16264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } && {
16266 test -z "$ac_c_werror_flag" ||
16267 test ! -s conftest.err
16268 } && test -s conftest$ac_exeext && {
16269 test "$cross_compiling" = yes ||
16270 $as_test_x conftest$ac_exeext
16271 }; then
16272 ac_cv_working_alloca_h=yes
16273 else
16274 $as_echo "$as_me: failed program was:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ac_cv_working_alloca_h=no
16280 rm -rf conftest.dSYM
16281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16282 conftest$ac_exeext conftest.$ac_ext
16284 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16285 $as_echo "$ac_cv_working_alloca_h" >&6; }
16286 if test $ac_cv_working_alloca_h = yes; then
16288 cat >>confdefs.h <<\_ACEOF
16289 #define HAVE_ALLOCA_H 1
16290 _ACEOF
16294 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16295 $as_echo_n "checking for alloca... " >&6; }
16296 if test "${ac_cv_func_alloca_works+set}" = set; then
16297 $as_echo_n "(cached) " >&6
16298 else
16299 cat >conftest.$ac_ext <<_ACEOF
16300 /* confdefs.h. */
16301 _ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 #ifdef __GNUC__
16306 # define alloca __builtin_alloca
16307 #else
16308 # ifdef _MSC_VER
16309 # include <malloc.h>
16310 # define alloca _alloca
16311 # else
16312 # ifdef HAVE_ALLOCA_H
16313 # include <alloca.h>
16314 # else
16315 # ifdef _AIX
16316 #pragma alloca
16317 # else
16318 # ifndef alloca /* predefined by HP cc +Olibcalls */
16319 char *alloca ();
16320 # endif
16321 # endif
16322 # endif
16323 # endif
16324 #endif
16327 main ()
16329 char *p = (char *) alloca (1);
16330 if (p) return 0;
16332 return 0;
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340 esac
16341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16342 $as_echo "$ac_try_echo") >&5
16343 (eval "$ac_link") 2>conftest.er1
16344 ac_status=$?
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
16348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest$ac_exeext && {
16353 test "$cross_compiling" = yes ||
16354 $as_test_x conftest$ac_exeext
16355 }; then
16356 ac_cv_func_alloca_works=yes
16357 else
16358 $as_echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16361 ac_cv_func_alloca_works=no
16364 rm -rf conftest.dSYM
16365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16366 conftest$ac_exeext conftest.$ac_ext
16368 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16369 $as_echo "$ac_cv_func_alloca_works" >&6; }
16371 if test $ac_cv_func_alloca_works = yes; then
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_ALLOCA 1
16375 _ACEOF
16377 else
16378 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16379 # that cause trouble. Some versions do not even contain alloca or
16380 # contain a buggy version. If you still want to use their alloca,
16381 # use ar to extract alloca.o from them instead of compiling alloca.c.
16383 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16385 cat >>confdefs.h <<\_ACEOF
16386 #define C_ALLOCA 1
16387 _ACEOF
16390 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16391 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16392 if test "${ac_cv_os_cray+set}" = set; then
16393 $as_echo_n "(cached) " >&6
16394 else
16395 cat >conftest.$ac_ext <<_ACEOF
16396 /* confdefs.h. */
16397 _ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 #if defined CRAY && ! defined CRAY2
16402 webecray
16403 #else
16404 wenotbecray
16405 #endif
16407 _ACEOF
16408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16409 $EGREP "webecray" >/dev/null 2>&1; then
16410 ac_cv_os_cray=yes
16411 else
16412 ac_cv_os_cray=no
16414 rm -f conftest*
16417 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16418 $as_echo "$ac_cv_os_cray" >&6; }
16419 if test $ac_cv_os_cray = yes; then
16420 for ac_func in _getb67 GETB67 getb67; do
16421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16423 $as_echo_n "checking for $ac_func... " >&6; }
16424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16425 $as_echo_n "(cached) " >&6
16426 else
16427 cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h. */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16435 #define $ac_func innocuous_$ac_func
16437 /* System header to define __stub macros and hopefully few prototypes,
16438 which can conflict with char $ac_func (); below.
16439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16440 <limits.h> exists even on freestanding compilers. */
16442 #ifdef __STDC__
16443 # include <limits.h>
16444 #else
16445 # include <assert.h>
16446 #endif
16448 #undef $ac_func
16450 /* Override any GCC internal prototype to avoid an error.
16451 Use char because int might match the return type of a GCC
16452 builtin and then its argument prototype would still apply. */
16453 #ifdef __cplusplus
16454 extern "C"
16455 #endif
16456 char $ac_func ();
16457 /* The GNU C library defines this for functions which it implements
16458 to always fail with ENOSYS. Some functions are actually named
16459 something starting with __ and the normal name is an alias. */
16460 #if defined __stub_$ac_func || defined __stub___$ac_func
16461 choke me
16462 #endif
16465 main ()
16467 return $ac_func ();
16469 return 0;
16471 _ACEOF
16472 rm -f conftest.$ac_objext conftest$ac_exeext
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477 esac
16478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16479 $as_echo "$ac_try_echo") >&5
16480 (eval "$ac_link") 2>conftest.er1
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest$ac_exeext && {
16490 test "$cross_compiling" = yes ||
16491 $as_test_x conftest$ac_exeext
16492 }; then
16493 eval "$as_ac_var=yes"
16494 else
16495 $as_echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 eval "$as_ac_var=no"
16501 rm -rf conftest.dSYM
16502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16503 conftest$ac_exeext conftest.$ac_ext
16505 ac_res=`eval 'as_val=${'$as_ac_var'}
16506 $as_echo "$as_val"'`
16507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16508 $as_echo "$ac_res" >&6; }
16509 if test `eval 'as_val=${'$as_ac_var'}
16510 $as_echo "$as_val"'` = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define CRAY_STACKSEG_END $ac_func
16514 _ACEOF
16516 break
16519 done
16522 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16523 $as_echo_n "checking stack direction for C alloca... " >&6; }
16524 if test "${ac_cv_c_stack_direction+set}" = set; then
16525 $as_echo_n "(cached) " >&6
16526 else
16527 if test "$cross_compiling" = yes; then
16528 ac_cv_c_stack_direction=0
16529 else
16530 cat >conftest.$ac_ext <<_ACEOF
16531 /* confdefs.h. */
16532 _ACEOF
16533 cat confdefs.h >>conftest.$ac_ext
16534 cat >>conftest.$ac_ext <<_ACEOF
16535 /* end confdefs.h. */
16536 $ac_includes_default
16538 find_stack_direction ()
16540 static char *addr = 0;
16541 auto char dummy;
16542 if (addr == 0)
16544 addr = &dummy;
16545 return find_stack_direction ();
16547 else
16548 return (&dummy > addr) ? 1 : -1;
16552 main ()
16554 return find_stack_direction () < 0;
16556 _ACEOF
16557 rm -f conftest$ac_exeext
16558 if { (ac_try="$ac_link"
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_link") 2>&5
16566 ac_status=$?
16567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16569 { (case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16572 esac
16573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16574 $as_echo "$ac_try_echo") >&5
16575 (eval "$ac_try") 2>&5
16576 ac_status=$?
16577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16578 (exit $ac_status); }; }; then
16579 ac_cv_c_stack_direction=1
16580 else
16581 $as_echo "$as_me: program exited with status $ac_status" >&5
16582 $as_echo "$as_me: failed program was:" >&5
16583 sed 's/^/| /' conftest.$ac_ext >&5
16585 ( exit $ac_status )
16586 ac_cv_c_stack_direction=-1
16588 rm -rf conftest.dSYM
16589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16594 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16595 $as_echo "$ac_cv_c_stack_direction" >&6; }
16597 cat >>confdefs.h <<_ACEOF
16598 #define STACK_DIRECTION $ac_cv_c_stack_direction
16599 _ACEOF
16605 if test x"$ac_cv_func_alloca_works" != xyes; then
16606 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16607 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16608 { (exit 1); exit 1; }; }
16611 # fmod, logb, and frexp are found in -lm on most systems.
16612 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16614 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16615 $as_echo_n "checking for sqrt in -lm... " >&6; }
16616 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16617 $as_echo_n "(cached) " >&6
16618 else
16619 ac_check_lib_save_LIBS=$LIBS
16620 LIBS="-lm $LIBS"
16621 cat >conftest.$ac_ext <<_ACEOF
16622 /* confdefs.h. */
16623 _ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16628 /* Override any GCC internal prototype to avoid an error.
16629 Use char because int might match the return type of a GCC
16630 builtin and then its argument prototype would still apply. */
16631 #ifdef __cplusplus
16632 extern "C"
16633 #endif
16634 char sqrt ();
16636 main ()
16638 return sqrt ();
16640 return 0;
16642 _ACEOF
16643 rm -f conftest.$ac_objext conftest$ac_exeext
16644 if { (ac_try="$ac_link"
16645 case "(($ac_try" in
16646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16647 *) ac_try_echo=$ac_try;;
16648 esac
16649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16650 $as_echo "$ac_try_echo") >&5
16651 (eval "$ac_link") 2>conftest.er1
16652 ac_status=$?
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
16656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest$ac_exeext && {
16661 test "$cross_compiling" = yes ||
16662 $as_test_x conftest$ac_exeext
16663 }; then
16664 ac_cv_lib_m_sqrt=yes
16665 else
16666 $as_echo "$as_me: failed program was:" >&5
16667 sed 's/^/| /' conftest.$ac_ext >&5
16669 ac_cv_lib_m_sqrt=no
16672 rm -rf conftest.dSYM
16673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16674 conftest$ac_exeext conftest.$ac_ext
16675 LIBS=$ac_check_lib_save_LIBS
16677 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16678 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16679 if test $ac_cv_lib_m_sqrt = yes; then
16680 cat >>confdefs.h <<_ACEOF
16681 #define HAVE_LIBM 1
16682 _ACEOF
16684 LIBS="-lm $LIBS"
16689 # Check for mail-locking functions in a "mail" library. Probably this should
16690 # have the same check as for liblockfile below.
16692 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16693 $as_echo_n "checking for maillock in -lmail... " >&6; }
16694 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16695 $as_echo_n "(cached) " >&6
16696 else
16697 ac_check_lib_save_LIBS=$LIBS
16698 LIBS="-lmail $LIBS"
16699 cat >conftest.$ac_ext <<_ACEOF
16700 /* confdefs.h. */
16701 _ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16706 /* Override any GCC internal prototype to avoid an error.
16707 Use char because int might match the return type of a GCC
16708 builtin and then its argument prototype would still apply. */
16709 #ifdef __cplusplus
16710 extern "C"
16711 #endif
16712 char maillock ();
16714 main ()
16716 return maillock ();
16718 return 0;
16720 _ACEOF
16721 rm -f conftest.$ac_objext conftest$ac_exeext
16722 if { (ac_try="$ac_link"
16723 case "(($ac_try" in
16724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16725 *) ac_try_echo=$ac_try;;
16726 esac
16727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16728 $as_echo "$ac_try_echo") >&5
16729 (eval "$ac_link") 2>conftest.er1
16730 ac_status=$?
16731 grep -v '^ *+' conftest.er1 >conftest.err
16732 rm -f conftest.er1
16733 cat conftest.err >&5
16734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); } && {
16736 test -z "$ac_c_werror_flag" ||
16737 test ! -s conftest.err
16738 } && test -s conftest$ac_exeext && {
16739 test "$cross_compiling" = yes ||
16740 $as_test_x conftest$ac_exeext
16741 }; then
16742 ac_cv_lib_mail_maillock=yes
16743 else
16744 $as_echo "$as_me: failed program was:" >&5
16745 sed 's/^/| /' conftest.$ac_ext >&5
16747 ac_cv_lib_mail_maillock=no
16750 rm -rf conftest.dSYM
16751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16752 conftest$ac_exeext conftest.$ac_ext
16753 LIBS=$ac_check_lib_save_LIBS
16755 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16756 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16757 if test $ac_cv_lib_mail_maillock = yes; then
16758 cat >>confdefs.h <<_ACEOF
16759 #define HAVE_LIBMAIL 1
16760 _ACEOF
16762 LIBS="-lmail $LIBS"
16767 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16768 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16769 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16770 $as_echo_n "(cached) " >&6
16771 else
16772 ac_check_lib_save_LIBS=$LIBS
16773 LIBS="-llockfile $LIBS"
16774 cat >conftest.$ac_ext <<_ACEOF
16775 /* confdefs.h. */
16776 _ACEOF
16777 cat confdefs.h >>conftest.$ac_ext
16778 cat >>conftest.$ac_ext <<_ACEOF
16779 /* end confdefs.h. */
16781 /* Override any GCC internal prototype to avoid an error.
16782 Use char because int might match the return type of a GCC
16783 builtin and then its argument prototype would still apply. */
16784 #ifdef __cplusplus
16785 extern "C"
16786 #endif
16787 char maillock ();
16789 main ()
16791 return maillock ();
16793 return 0;
16795 _ACEOF
16796 rm -f conftest.$ac_objext conftest$ac_exeext
16797 if { (ac_try="$ac_link"
16798 case "(($ac_try" in
16799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16800 *) ac_try_echo=$ac_try;;
16801 esac
16802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16803 $as_echo "$ac_try_echo") >&5
16804 (eval "$ac_link") 2>conftest.er1
16805 ac_status=$?
16806 grep -v '^ *+' conftest.er1 >conftest.err
16807 rm -f conftest.er1
16808 cat conftest.err >&5
16809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } && {
16811 test -z "$ac_c_werror_flag" ||
16812 test ! -s conftest.err
16813 } && test -s conftest$ac_exeext && {
16814 test "$cross_compiling" = yes ||
16815 $as_test_x conftest$ac_exeext
16816 }; then
16817 ac_cv_lib_lockfile_maillock=yes
16818 else
16819 $as_echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16822 ac_cv_lib_lockfile_maillock=no
16825 rm -rf conftest.dSYM
16826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16827 conftest$ac_exeext conftest.$ac_ext
16828 LIBS=$ac_check_lib_save_LIBS
16830 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16831 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16832 if test $ac_cv_lib_lockfile_maillock = yes; then
16833 cat >>confdefs.h <<_ACEOF
16834 #define HAVE_LIBLOCKFILE 1
16835 _ACEOF
16837 LIBS="-llockfile $LIBS"
16841 # If we have the shared liblockfile, assume we must use it for mail
16842 # locking (e.g. Debian). If we couldn't link against liblockfile
16843 # (no liblockfile.a installed), ensure that we don't need to.
16844 if test "$ac_cv_lib_lockfile_maillock" = no; then
16845 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16846 set dummy liblockfile.so; ac_word=$2
16847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16848 $as_echo_n "checking for $ac_word... " >&6; }
16849 if test "${ac_cv_prog_liblockfile+set}" = set; then
16850 $as_echo_n "(cached) " >&6
16851 else
16852 if test -n "$liblockfile"; then
16853 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16854 else
16855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16856 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16857 for as_dir in $as_dummy
16859 IFS=$as_save_IFS
16860 test -z "$as_dir" && as_dir=.
16861 for ac_exec_ext in '' $ac_executable_extensions; do
16862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16863 ac_cv_prog_liblockfile="yes"
16864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16865 break 2
16867 done
16868 done
16869 IFS=$as_save_IFS
16871 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16874 liblockfile=$ac_cv_prog_liblockfile
16875 if test -n "$liblockfile"; then
16876 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
16877 $as_echo "$liblockfile" >&6; }
16878 else
16879 { $as_echo "$as_me:$LINENO: result: no" >&5
16880 $as_echo "no" >&6; }
16884 if test $ac_cv_prog_liblockfile = yes; then
16885 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16886 This probably means that movemail could lose mail.
16887 There may be a \`development' package to install containing liblockfile." >&5
16888 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
16889 This probably means that movemail could lose mail.
16890 There may be a \`development' package to install containing liblockfile." >&2;}
16891 { (exit 1); exit 1; }; }
16892 else :
16896 for ac_func in touchlock
16898 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16899 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16900 $as_echo_n "checking for $ac_func... " >&6; }
16901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16902 $as_echo_n "(cached) " >&6
16903 else
16904 cat >conftest.$ac_ext <<_ACEOF
16905 /* confdefs.h. */
16906 _ACEOF
16907 cat confdefs.h >>conftest.$ac_ext
16908 cat >>conftest.$ac_ext <<_ACEOF
16909 /* end confdefs.h. */
16910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16912 #define $ac_func innocuous_$ac_func
16914 /* System header to define __stub macros and hopefully few prototypes,
16915 which can conflict with char $ac_func (); below.
16916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16917 <limits.h> exists even on freestanding compilers. */
16919 #ifdef __STDC__
16920 # include <limits.h>
16921 #else
16922 # include <assert.h>
16923 #endif
16925 #undef $ac_func
16927 /* Override any GCC internal prototype to avoid an error.
16928 Use char because int might match the return type of a GCC
16929 builtin and then its argument prototype would still apply. */
16930 #ifdef __cplusplus
16931 extern "C"
16932 #endif
16933 char $ac_func ();
16934 /* The GNU C library defines this for functions which it implements
16935 to always fail with ENOSYS. Some functions are actually named
16936 something starting with __ and the normal name is an alias. */
16937 #if defined __stub_$ac_func || defined __stub___$ac_func
16938 choke me
16939 #endif
16942 main ()
16944 return $ac_func ();
16946 return 0;
16948 _ACEOF
16949 rm -f conftest.$ac_objext conftest$ac_exeext
16950 if { (ac_try="$ac_link"
16951 case "(($ac_try" in
16952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953 *) ac_try_echo=$ac_try;;
16954 esac
16955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16956 $as_echo "$ac_try_echo") >&5
16957 (eval "$ac_link") 2>conftest.er1
16958 ac_status=$?
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -f conftest.er1
16961 cat conftest.err >&5
16962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } && {
16964 test -z "$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16966 } && test -s conftest$ac_exeext && {
16967 test "$cross_compiling" = yes ||
16968 $as_test_x conftest$ac_exeext
16969 }; then
16970 eval "$as_ac_var=yes"
16971 else
16972 $as_echo "$as_me: failed program was:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16975 eval "$as_ac_var=no"
16978 rm -rf conftest.dSYM
16979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16980 conftest$ac_exeext conftest.$ac_ext
16982 ac_res=`eval 'as_val=${'$as_ac_var'}
16983 $as_echo "$as_val"'`
16984 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16985 $as_echo "$ac_res" >&6; }
16986 if test `eval 'as_val=${'$as_ac_var'}
16987 $as_echo "$as_val"'` = yes; then
16988 cat >>confdefs.h <<_ACEOF
16989 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16990 _ACEOF
16993 done
16996 for ac_header in maillock.h
16998 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17000 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17001 $as_echo_n "checking for $ac_header... " >&6; }
17002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17003 $as_echo_n "(cached) " >&6
17005 ac_res=`eval 'as_val=${'$as_ac_Header'}
17006 $as_echo "$as_val"'`
17007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17008 $as_echo "$ac_res" >&6; }
17009 else
17010 # Is the header compilable?
17011 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17012 $as_echo_n "checking $ac_header usability... " >&6; }
17013 cat >conftest.$ac_ext <<_ACEOF
17014 /* confdefs.h. */
17015 _ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 $ac_includes_default
17020 #include <$ac_header>
17021 _ACEOF
17022 rm -f conftest.$ac_objext
17023 if { (ac_try="$ac_compile"
17024 case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17027 esac
17028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17029 $as_echo "$ac_try_echo") >&5
17030 (eval "$ac_compile") 2>conftest.er1
17031 ac_status=$?
17032 grep -v '^ *+' conftest.er1 >conftest.err
17033 rm -f conftest.er1
17034 cat conftest.err >&5
17035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } && {
17037 test -z "$ac_c_werror_flag" ||
17038 test ! -s conftest.err
17039 } && test -s conftest.$ac_objext; then
17040 ac_header_compiler=yes
17041 else
17042 $as_echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ac_header_compiler=no
17048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17049 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17050 $as_echo "$ac_header_compiler" >&6; }
17052 # Is the header present?
17053 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17054 $as_echo_n "checking $ac_header presence... " >&6; }
17055 cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h. */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h. */
17061 #include <$ac_header>
17062 _ACEOF
17063 if { (ac_try="$ac_cpp conftest.$ac_ext"
17064 case "(($ac_try" in
17065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066 *) ac_try_echo=$ac_try;;
17067 esac
17068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17069 $as_echo "$ac_try_echo") >&5
17070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17071 ac_status=$?
17072 grep -v '^ *+' conftest.er1 >conftest.err
17073 rm -f conftest.er1
17074 cat conftest.err >&5
17075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } >/dev/null && {
17077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17078 test ! -s conftest.err
17079 }; then
17080 ac_header_preproc=yes
17081 else
17082 $as_echo "$as_me: failed program was:" >&5
17083 sed 's/^/| /' conftest.$ac_ext >&5
17085 ac_header_preproc=no
17088 rm -f conftest.err conftest.$ac_ext
17089 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17090 $as_echo "$ac_header_preproc" >&6; }
17092 # So? What about this header?
17093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17094 yes:no: )
17095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17096 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17098 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17099 ac_header_preproc=yes
17101 no:yes:* )
17102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17103 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17104 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17105 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17107 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17109 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17110 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17111 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17113 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17116 esac
17117 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17118 $as_echo_n "checking for $ac_header... " >&6; }
17119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17120 $as_echo_n "(cached) " >&6
17121 else
17122 eval "$as_ac_Header=\$ac_header_preproc"
17124 ac_res=`eval 'as_val=${'$as_ac_Header'}
17125 $as_echo "$as_val"'`
17126 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17127 $as_echo "$ac_res" >&6; }
17130 if test `eval 'as_val=${'$as_ac_Header'}
17131 $as_echo "$as_val"'` = yes; then
17132 cat >>confdefs.h <<_ACEOF
17133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17134 _ACEOF
17138 done
17212 for ac_func in gethostname getdomainname dup2 \
17213 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17214 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17215 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17216 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17217 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17218 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17219 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17220 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17221 cfmakeraw cfsetspeed
17223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17224 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17225 $as_echo_n "checking for $ac_func... " >&6; }
17226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17227 $as_echo_n "(cached) " >&6
17228 else
17229 cat >conftest.$ac_ext <<_ACEOF
17230 /* confdefs.h. */
17231 _ACEOF
17232 cat confdefs.h >>conftest.$ac_ext
17233 cat >>conftest.$ac_ext <<_ACEOF
17234 /* end confdefs.h. */
17235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17237 #define $ac_func innocuous_$ac_func
17239 /* System header to define __stub macros and hopefully few prototypes,
17240 which can conflict with char $ac_func (); below.
17241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17242 <limits.h> exists even on freestanding compilers. */
17244 #ifdef __STDC__
17245 # include <limits.h>
17246 #else
17247 # include <assert.h>
17248 #endif
17250 #undef $ac_func
17252 /* Override any GCC internal prototype to avoid an error.
17253 Use char because int might match the return type of a GCC
17254 builtin and then its argument prototype would still apply. */
17255 #ifdef __cplusplus
17256 extern "C"
17257 #endif
17258 char $ac_func ();
17259 /* The GNU C library defines this for functions which it implements
17260 to always fail with ENOSYS. Some functions are actually named
17261 something starting with __ and the normal name is an alias. */
17262 #if defined __stub_$ac_func || defined __stub___$ac_func
17263 choke me
17264 #endif
17267 main ()
17269 return $ac_func ();
17271 return 0;
17273 _ACEOF
17274 rm -f conftest.$ac_objext conftest$ac_exeext
17275 if { (ac_try="$ac_link"
17276 case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17279 esac
17280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17281 $as_echo "$ac_try_echo") >&5
17282 (eval "$ac_link") 2>conftest.er1
17283 ac_status=$?
17284 grep -v '^ *+' conftest.er1 >conftest.err
17285 rm -f conftest.er1
17286 cat conftest.err >&5
17287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } && {
17289 test -z "$ac_c_werror_flag" ||
17290 test ! -s conftest.err
17291 } && test -s conftest$ac_exeext && {
17292 test "$cross_compiling" = yes ||
17293 $as_test_x conftest$ac_exeext
17294 }; then
17295 eval "$as_ac_var=yes"
17296 else
17297 $as_echo "$as_me: failed program was:" >&5
17298 sed 's/^/| /' conftest.$ac_ext >&5
17300 eval "$as_ac_var=no"
17303 rm -rf conftest.dSYM
17304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17305 conftest$ac_exeext conftest.$ac_ext
17307 ac_res=`eval 'as_val=${'$as_ac_var'}
17308 $as_echo "$as_val"'`
17309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17310 $as_echo "$ac_res" >&6; }
17311 if test `eval 'as_val=${'$as_ac_var'}
17312 $as_echo "$as_val"'` = yes; then
17313 cat >>confdefs.h <<_ACEOF
17314 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17315 _ACEOF
17318 done
17322 for ac_header in sys/un.h
17324 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17326 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17327 $as_echo_n "checking for $ac_header... " >&6; }
17328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17329 $as_echo_n "(cached) " >&6
17331 ac_res=`eval 'as_val=${'$as_ac_Header'}
17332 $as_echo "$as_val"'`
17333 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17334 $as_echo "$ac_res" >&6; }
17335 else
17336 # Is the header compilable?
17337 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17338 $as_echo_n "checking $ac_header usability... " >&6; }
17339 cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h. */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 $ac_includes_default
17346 #include <$ac_header>
17347 _ACEOF
17348 rm -f conftest.$ac_objext
17349 if { (ac_try="$ac_compile"
17350 case "(($ac_try" in
17351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17352 *) ac_try_echo=$ac_try;;
17353 esac
17354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17355 $as_echo "$ac_try_echo") >&5
17356 (eval "$ac_compile") 2>conftest.er1
17357 ac_status=$?
17358 grep -v '^ *+' conftest.er1 >conftest.err
17359 rm -f conftest.er1
17360 cat conftest.err >&5
17361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); } && {
17363 test -z "$ac_c_werror_flag" ||
17364 test ! -s conftest.err
17365 } && test -s conftest.$ac_objext; then
17366 ac_header_compiler=yes
17367 else
17368 $as_echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.$ac_ext >&5
17371 ac_header_compiler=no
17374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17375 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17376 $as_echo "$ac_header_compiler" >&6; }
17378 # Is the header present?
17379 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17380 $as_echo_n "checking $ac_header presence... " >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 #include <$ac_header>
17388 _ACEOF
17389 if { (ac_try="$ac_cpp conftest.$ac_ext"
17390 case "(($ac_try" in
17391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17392 *) ac_try_echo=$ac_try;;
17393 esac
17394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17395 $as_echo "$ac_try_echo") >&5
17396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17397 ac_status=$?
17398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
17401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } >/dev/null && {
17403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17404 test ! -s conftest.err
17405 }; then
17406 ac_header_preproc=yes
17407 else
17408 $as_echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17411 ac_header_preproc=no
17414 rm -f conftest.err conftest.$ac_ext
17415 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17416 $as_echo "$ac_header_preproc" >&6; }
17418 # So? What about this header?
17419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17420 yes:no: )
17421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17422 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17424 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17425 ac_header_preproc=yes
17427 no:yes:* )
17428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17429 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17431 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17433 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17435 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17439 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17442 esac
17443 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17444 $as_echo_n "checking for $ac_header... " >&6; }
17445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17446 $as_echo_n "(cached) " >&6
17447 else
17448 eval "$as_ac_Header=\$ac_header_preproc"
17450 ac_res=`eval 'as_val=${'$as_ac_Header'}
17451 $as_echo "$as_val"'`
17452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17453 $as_echo "$ac_res" >&6; }
17456 if test `eval 'as_val=${'$as_ac_Header'}
17457 $as_echo "$as_val"'` = yes; then
17458 cat >>confdefs.h <<_ACEOF
17459 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17460 _ACEOF
17464 done
17471 for ac_header in $ac_header_list
17473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17475 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17476 $as_echo_n "checking for $ac_header... " >&6; }
17477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17478 $as_echo_n "(cached) " >&6
17480 ac_res=`eval 'as_val=${'$as_ac_Header'}
17481 $as_echo "$as_val"'`
17482 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17483 $as_echo "$ac_res" >&6; }
17484 else
17485 # Is the header compilable?
17486 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17487 $as_echo_n "checking $ac_header usability... " >&6; }
17488 cat >conftest.$ac_ext <<_ACEOF
17489 /* confdefs.h. */
17490 _ACEOF
17491 cat confdefs.h >>conftest.$ac_ext
17492 cat >>conftest.$ac_ext <<_ACEOF
17493 /* end confdefs.h. */
17494 $ac_includes_default
17495 #include <$ac_header>
17496 _ACEOF
17497 rm -f conftest.$ac_objext
17498 if { (ac_try="$ac_compile"
17499 case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17502 esac
17503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17504 $as_echo "$ac_try_echo") >&5
17505 (eval "$ac_compile") 2>conftest.er1
17506 ac_status=$?
17507 grep -v '^ *+' conftest.er1 >conftest.err
17508 rm -f conftest.er1
17509 cat conftest.err >&5
17510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511 (exit $ac_status); } && {
17512 test -z "$ac_c_werror_flag" ||
17513 test ! -s conftest.err
17514 } && test -s conftest.$ac_objext; then
17515 ac_header_compiler=yes
17516 else
17517 $as_echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17520 ac_header_compiler=no
17523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17524 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17525 $as_echo "$ac_header_compiler" >&6; }
17527 # Is the header present?
17528 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17529 $as_echo_n "checking $ac_header presence... " >&6; }
17530 cat >conftest.$ac_ext <<_ACEOF
17531 /* confdefs.h. */
17532 _ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536 #include <$ac_header>
17537 _ACEOF
17538 if { (ac_try="$ac_cpp conftest.$ac_ext"
17539 case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17542 esac
17543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17544 $as_echo "$ac_try_echo") >&5
17545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17546 ac_status=$?
17547 grep -v '^ *+' conftest.er1 >conftest.err
17548 rm -f conftest.er1
17549 cat conftest.err >&5
17550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } >/dev/null && {
17552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17553 test ! -s conftest.err
17554 }; then
17555 ac_header_preproc=yes
17556 else
17557 $as_echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ac_header_preproc=no
17563 rm -f conftest.err conftest.$ac_ext
17564 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17565 $as_echo "$ac_header_preproc" >&6; }
17567 # So? What about this header?
17568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17569 yes:no: )
17570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17571 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17574 ac_header_preproc=yes
17576 no:yes:* )
17577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17578 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17580 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17581 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17582 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17583 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17584 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17585 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17586 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17587 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17588 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17591 esac
17592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17593 $as_echo_n "checking for $ac_header... " >&6; }
17594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17595 $as_echo_n "(cached) " >&6
17596 else
17597 eval "$as_ac_Header=\$ac_header_preproc"
17599 ac_res=`eval 'as_val=${'$as_ac_Header'}
17600 $as_echo "$as_val"'`
17601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17602 $as_echo "$ac_res" >&6; }
17605 if test `eval 'as_val=${'$as_ac_Header'}
17606 $as_echo "$as_val"'` = yes; then
17607 cat >>confdefs.h <<_ACEOF
17608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17609 _ACEOF
17613 done
17623 for ac_func in $ac_func_list
17625 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17626 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17627 $as_echo_n "checking for $ac_func... " >&6; }
17628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17629 $as_echo_n "(cached) " >&6
17630 else
17631 cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h. */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17639 #define $ac_func innocuous_$ac_func
17641 /* System header to define __stub macros and hopefully few prototypes,
17642 which can conflict with char $ac_func (); below.
17643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17644 <limits.h> exists even on freestanding compilers. */
17646 #ifdef __STDC__
17647 # include <limits.h>
17648 #else
17649 # include <assert.h>
17650 #endif
17652 #undef $ac_func
17654 /* Override any GCC internal prototype to avoid an error.
17655 Use char because int might match the return type of a GCC
17656 builtin and then its argument prototype would still apply. */
17657 #ifdef __cplusplus
17658 extern "C"
17659 #endif
17660 char $ac_func ();
17661 /* The GNU C library defines this for functions which it implements
17662 to always fail with ENOSYS. Some functions are actually named
17663 something starting with __ and the normal name is an alias. */
17664 #if defined __stub_$ac_func || defined __stub___$ac_func
17665 choke me
17666 #endif
17669 main ()
17671 return $ac_func ();
17673 return 0;
17675 _ACEOF
17676 rm -f conftest.$ac_objext conftest$ac_exeext
17677 if { (ac_try="$ac_link"
17678 case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17681 esac
17682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17683 $as_echo "$ac_try_echo") >&5
17684 (eval "$ac_link") 2>conftest.er1
17685 ac_status=$?
17686 grep -v '^ *+' conftest.er1 >conftest.err
17687 rm -f conftest.er1
17688 cat conftest.err >&5
17689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17690 (exit $ac_status); } && {
17691 test -z "$ac_c_werror_flag" ||
17692 test ! -s conftest.err
17693 } && test -s conftest$ac_exeext && {
17694 test "$cross_compiling" = yes ||
17695 $as_test_x conftest$ac_exeext
17696 }; then
17697 eval "$as_ac_var=yes"
17698 else
17699 $as_echo "$as_me: failed program was:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 eval "$as_ac_var=no"
17705 rm -rf conftest.dSYM
17706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17707 conftest$ac_exeext conftest.$ac_ext
17709 ac_res=`eval 'as_val=${'$as_ac_var'}
17710 $as_echo "$as_val"'`
17711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17712 $as_echo "$ac_res" >&6; }
17713 if test `eval 'as_val=${'$as_ac_var'}
17714 $as_echo "$as_val"'` = yes; then
17715 cat >>confdefs.h <<_ACEOF
17716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17717 _ACEOF
17720 done
17738 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17739 $as_echo_n "checking for working mktime... " >&6; }
17740 if test "${ac_cv_func_working_mktime+set}" = set; then
17741 $as_echo_n "(cached) " >&6
17742 else
17743 if test "$cross_compiling" = yes; then
17744 ac_cv_func_working_mktime=no
17745 else
17746 cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h. */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 /* Test program from Paul Eggert and Tony Leneis. */
17753 #ifdef TIME_WITH_SYS_TIME
17754 # include <sys/time.h>
17755 # include <time.h>
17756 #else
17757 # ifdef HAVE_SYS_TIME_H
17758 # include <sys/time.h>
17759 # else
17760 # include <time.h>
17761 # endif
17762 #endif
17764 #include <limits.h>
17765 #include <stdlib.h>
17767 #ifdef HAVE_UNISTD_H
17768 # include <unistd.h>
17769 #endif
17771 #ifndef HAVE_ALARM
17772 # define alarm(X) /* empty */
17773 #endif
17775 /* Work around redefinition to rpl_putenv by other config tests. */
17776 #undef putenv
17778 static time_t time_t_max;
17779 static time_t time_t_min;
17781 /* Values we'll use to set the TZ environment variable. */
17782 static char *tz_strings[] = {
17783 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17784 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17786 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17788 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17789 Based on a problem report from Andreas Jaeger. */
17790 static int
17791 spring_forward_gap ()
17793 /* glibc (up to about 1998-10-07) failed this test. */
17794 struct tm tm;
17796 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17797 instead of "TZ=America/Vancouver" in order to detect the bug even
17798 on systems that don't support the Olson extension, or don't have the
17799 full zoneinfo tables installed. */
17800 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17802 tm.tm_year = 98;
17803 tm.tm_mon = 3;
17804 tm.tm_mday = 5;
17805 tm.tm_hour = 2;
17806 tm.tm_min = 0;
17807 tm.tm_sec = 0;
17808 tm.tm_isdst = -1;
17809 return mktime (&tm) != (time_t) -1;
17812 static int
17813 mktime_test1 (now)
17814 time_t now;
17816 struct tm *lt;
17817 return ! (lt = localtime (&now)) || mktime (lt) == now;
17820 static int
17821 mktime_test (now)
17822 time_t now;
17824 return (mktime_test1 (now)
17825 && mktime_test1 ((time_t) (time_t_max - now))
17826 && mktime_test1 ((time_t) (time_t_min + now)));
17829 static int
17830 irix_6_4_bug ()
17832 /* Based on code from Ariel Faigon. */
17833 struct tm tm;
17834 tm.tm_year = 96;
17835 tm.tm_mon = 3;
17836 tm.tm_mday = 0;
17837 tm.tm_hour = 0;
17838 tm.tm_min = 0;
17839 tm.tm_sec = 0;
17840 tm.tm_isdst = -1;
17841 mktime (&tm);
17842 return tm.tm_mon == 2 && tm.tm_mday == 31;
17845 static int
17846 bigtime_test (j)
17847 int j;
17849 struct tm tm;
17850 time_t now;
17851 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17852 now = mktime (&tm);
17853 if (now != (time_t) -1)
17855 struct tm *lt = localtime (&now);
17856 if (! (lt
17857 && lt->tm_year == tm.tm_year
17858 && lt->tm_mon == tm.tm_mon
17859 && lt->tm_mday == tm.tm_mday
17860 && lt->tm_hour == tm.tm_hour
17861 && lt->tm_min == tm.tm_min
17862 && lt->tm_sec == tm.tm_sec
17863 && lt->tm_yday == tm.tm_yday
17864 && lt->tm_wday == tm.tm_wday
17865 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17866 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17867 return 0;
17869 return 1;
17872 static int
17873 year_2050_test ()
17875 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17876 ignoring leap seconds. */
17877 unsigned long int answer = 2527315200UL;
17879 struct tm tm;
17880 time_t t;
17881 tm.tm_year = 2050 - 1900;
17882 tm.tm_mon = 2 - 1;
17883 tm.tm_mday = 1;
17884 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17885 tm.tm_isdst = -1;
17887 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17888 instead of "TZ=America/Vancouver" in order to detect the bug even
17889 on systems that don't support the Olson extension, or don't have the
17890 full zoneinfo tables installed. */
17891 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17893 t = mktime (&tm);
17895 /* Check that the result is either a failure, or close enough
17896 to the correct answer that we can assume the discrepancy is
17897 due to leap seconds. */
17898 return (t == (time_t) -1
17899 || (0 < t && answer - 120 <= t && t <= answer + 120));
17903 main ()
17905 time_t t, delta;
17906 int i, j;
17908 /* This test makes some buggy mktime implementations loop.
17909 Give up after 60 seconds; a mktime slower than that
17910 isn't worth using anyway. */
17911 alarm (60);
17913 for (;;)
17915 t = (time_t_max << 1) + 1;
17916 if (t <= time_t_max)
17917 break;
17918 time_t_max = t;
17920 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17922 delta = time_t_max / 997; /* a suitable prime number */
17923 for (i = 0; i < N_STRINGS; i++)
17925 if (tz_strings[i])
17926 putenv (tz_strings[i]);
17928 for (t = 0; t <= time_t_max - delta; t += delta)
17929 if (! mktime_test (t))
17930 return 1;
17931 if (! (mktime_test ((time_t) 1)
17932 && mktime_test ((time_t) (60 * 60))
17933 && mktime_test ((time_t) (60 * 60 * 24))))
17934 return 1;
17936 for (j = 1; ; j <<= 1)
17937 if (! bigtime_test (j))
17938 return 1;
17939 else if (INT_MAX / 2 < j)
17940 break;
17941 if (! bigtime_test (INT_MAX))
17942 return 1;
17944 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17946 _ACEOF
17947 rm -f conftest$ac_exeext
17948 if { (ac_try="$ac_link"
17949 case "(($ac_try" in
17950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951 *) ac_try_echo=$ac_try;;
17952 esac
17953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17954 $as_echo "$ac_try_echo") >&5
17955 (eval "$ac_link") 2>&5
17956 ac_status=$?
17957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17959 { (case "(($ac_try" in
17960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17961 *) ac_try_echo=$ac_try;;
17962 esac
17963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17964 $as_echo "$ac_try_echo") >&5
17965 (eval "$ac_try") 2>&5
17966 ac_status=$?
17967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
17969 ac_cv_func_working_mktime=yes
17970 else
17971 $as_echo "$as_me: program exited with status $ac_status" >&5
17972 $as_echo "$as_me: failed program was:" >&5
17973 sed 's/^/| /' conftest.$ac_ext >&5
17975 ( exit $ac_status )
17976 ac_cv_func_working_mktime=no
17978 rm -rf conftest.dSYM
17979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17984 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17985 $as_echo "$ac_cv_func_working_mktime" >&6; }
17986 if test $ac_cv_func_working_mktime = no; then
17987 case " $LIBOBJS " in
17988 *" mktime.$ac_objext "* ) ;;
17989 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17991 esac
17995 if test "$ac_cv_func_working_mktime" = no; then
17997 cat >>confdefs.h <<\_ACEOF
17998 #define BROKEN_MKTIME 1
17999 _ACEOF
18003 ac_have_func=no # yes means we've found a way to get the load average.
18005 # Make sure getloadavg.c is where it belongs, at configure-time.
18006 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18007 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18008 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18009 { (exit 1); exit 1; }; }
18011 ac_save_LIBS=$LIBS
18013 # Check for getloadavg, but be sure not to touch the cache variable.
18014 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18015 $as_echo_n "checking for getloadavg... " >&6; }
18016 if test "${ac_cv_func_getloadavg+set}" = set; then
18017 $as_echo_n "(cached) " >&6
18018 else
18019 cat >conftest.$ac_ext <<_ACEOF
18020 /* confdefs.h. */
18021 _ACEOF
18022 cat confdefs.h >>conftest.$ac_ext
18023 cat >>conftest.$ac_ext <<_ACEOF
18024 /* end confdefs.h. */
18025 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18027 #define getloadavg innocuous_getloadavg
18029 /* System header to define __stub macros and hopefully few prototypes,
18030 which can conflict with char getloadavg (); below.
18031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18032 <limits.h> exists even on freestanding compilers. */
18034 #ifdef __STDC__
18035 # include <limits.h>
18036 #else
18037 # include <assert.h>
18038 #endif
18040 #undef getloadavg
18042 /* Override any GCC internal prototype to avoid an error.
18043 Use char because int might match the return type of a GCC
18044 builtin and then its argument prototype would still apply. */
18045 #ifdef __cplusplus
18046 extern "C"
18047 #endif
18048 char getloadavg ();
18049 /* The GNU C library defines this for functions which it implements
18050 to always fail with ENOSYS. Some functions are actually named
18051 something starting with __ and the normal name is an alias. */
18052 #if defined __stub_getloadavg || defined __stub___getloadavg
18053 choke me
18054 #endif
18057 main ()
18059 return getloadavg ();
18061 return 0;
18063 _ACEOF
18064 rm -f conftest.$ac_objext conftest$ac_exeext
18065 if { (ac_try="$ac_link"
18066 case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18069 esac
18070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18071 $as_echo "$ac_try_echo") >&5
18072 (eval "$ac_link") 2>conftest.er1
18073 ac_status=$?
18074 grep -v '^ *+' conftest.er1 >conftest.err
18075 rm -f conftest.er1
18076 cat conftest.err >&5
18077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); } && {
18079 test -z "$ac_c_werror_flag" ||
18080 test ! -s conftest.err
18081 } && test -s conftest$ac_exeext && {
18082 test "$cross_compiling" = yes ||
18083 $as_test_x conftest$ac_exeext
18084 }; then
18085 ac_cv_func_getloadavg=yes
18086 else
18087 $as_echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ac_cv_func_getloadavg=no
18093 rm -rf conftest.dSYM
18094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18095 conftest$ac_exeext conftest.$ac_ext
18097 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18098 $as_echo "$ac_cv_func_getloadavg" >&6; }
18099 if test $ac_cv_func_getloadavg = yes; then
18100 exit 0
18101 else
18102 exit 1
18104 ) && ac_have_func=yes
18106 # On HPUX9, an unprivileged user can get load averages through this function.
18108 for ac_func in pstat_getdynamic
18110 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18111 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18112 $as_echo_n "checking for $ac_func... " >&6; }
18113 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18114 $as_echo_n "(cached) " >&6
18115 else
18116 cat >conftest.$ac_ext <<_ACEOF
18117 /* confdefs.h. */
18118 _ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18124 #define $ac_func innocuous_$ac_func
18126 /* System header to define __stub macros and hopefully few prototypes,
18127 which can conflict with char $ac_func (); below.
18128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18129 <limits.h> exists even on freestanding compilers. */
18131 #ifdef __STDC__
18132 # include <limits.h>
18133 #else
18134 # include <assert.h>
18135 #endif
18137 #undef $ac_func
18139 /* Override any GCC internal prototype to avoid an error.
18140 Use char because int might match the return type of a GCC
18141 builtin and then its argument prototype would still apply. */
18142 #ifdef __cplusplus
18143 extern "C"
18144 #endif
18145 char $ac_func ();
18146 /* The GNU C library defines this for functions which it implements
18147 to always fail with ENOSYS. Some functions are actually named
18148 something starting with __ and the normal name is an alias. */
18149 #if defined __stub_$ac_func || defined __stub___$ac_func
18150 choke me
18151 #endif
18154 main ()
18156 return $ac_func ();
18158 return 0;
18160 _ACEOF
18161 rm -f conftest.$ac_objext conftest$ac_exeext
18162 if { (ac_try="$ac_link"
18163 case "(($ac_try" in
18164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18165 *) ac_try_echo=$ac_try;;
18166 esac
18167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18168 $as_echo "$ac_try_echo") >&5
18169 (eval "$ac_link") 2>conftest.er1
18170 ac_status=$?
18171 grep -v '^ *+' conftest.er1 >conftest.err
18172 rm -f conftest.er1
18173 cat conftest.err >&5
18174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } && {
18176 test -z "$ac_c_werror_flag" ||
18177 test ! -s conftest.err
18178 } && test -s conftest$ac_exeext && {
18179 test "$cross_compiling" = yes ||
18180 $as_test_x conftest$ac_exeext
18181 }; then
18182 eval "$as_ac_var=yes"
18183 else
18184 $as_echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 eval "$as_ac_var=no"
18190 rm -rf conftest.dSYM
18191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18192 conftest$ac_exeext conftest.$ac_ext
18194 ac_res=`eval 'as_val=${'$as_ac_var'}
18195 $as_echo "$as_val"'`
18196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18197 $as_echo "$ac_res" >&6; }
18198 if test `eval 'as_val=${'$as_ac_var'}
18199 $as_echo "$as_val"'` = yes; then
18200 cat >>confdefs.h <<_ACEOF
18201 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18202 _ACEOF
18205 done
18208 # Solaris has libkstat which does not require root.
18210 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18211 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18212 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18213 $as_echo_n "(cached) " >&6
18214 else
18215 ac_check_lib_save_LIBS=$LIBS
18216 LIBS="-lkstat $LIBS"
18217 cat >conftest.$ac_ext <<_ACEOF
18218 /* confdefs.h. */
18219 _ACEOF
18220 cat confdefs.h >>conftest.$ac_ext
18221 cat >>conftest.$ac_ext <<_ACEOF
18222 /* end confdefs.h. */
18224 /* Override any GCC internal prototype to avoid an error.
18225 Use char because int might match the return type of a GCC
18226 builtin and then its argument prototype would still apply. */
18227 #ifdef __cplusplus
18228 extern "C"
18229 #endif
18230 char kstat_open ();
18232 main ()
18234 return kstat_open ();
18236 return 0;
18238 _ACEOF
18239 rm -f conftest.$ac_objext conftest$ac_exeext
18240 if { (ac_try="$ac_link"
18241 case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18244 esac
18245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18246 $as_echo "$ac_try_echo") >&5
18247 (eval "$ac_link") 2>conftest.er1
18248 ac_status=$?
18249 grep -v '^ *+' conftest.er1 >conftest.err
18250 rm -f conftest.er1
18251 cat conftest.err >&5
18252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253 (exit $ac_status); } && {
18254 test -z "$ac_c_werror_flag" ||
18255 test ! -s conftest.err
18256 } && test -s conftest$ac_exeext && {
18257 test "$cross_compiling" = yes ||
18258 $as_test_x conftest$ac_exeext
18259 }; then
18260 ac_cv_lib_kstat_kstat_open=yes
18261 else
18262 $as_echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ac_cv_lib_kstat_kstat_open=no
18268 rm -rf conftest.dSYM
18269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18270 conftest$ac_exeext conftest.$ac_ext
18271 LIBS=$ac_check_lib_save_LIBS
18273 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18274 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18275 if test $ac_cv_lib_kstat_kstat_open = yes; then
18276 cat >>confdefs.h <<_ACEOF
18277 #define HAVE_LIBKSTAT 1
18278 _ACEOF
18280 LIBS="-lkstat $LIBS"
18284 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18286 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18287 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18288 # to get the right answer into the cache.
18289 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18290 if test $ac_have_func = no; then
18291 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18292 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18293 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18294 $as_echo_n "(cached) " >&6
18295 else
18296 ac_check_lib_save_LIBS=$LIBS
18297 LIBS="-lelf $LIBS"
18298 cat >conftest.$ac_ext <<_ACEOF
18299 /* confdefs.h. */
18300 _ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18305 /* Override any GCC internal prototype to avoid an error.
18306 Use char because int might match the return type of a GCC
18307 builtin and then its argument prototype would still apply. */
18308 #ifdef __cplusplus
18309 extern "C"
18310 #endif
18311 char elf_begin ();
18313 main ()
18315 return elf_begin ();
18317 return 0;
18319 _ACEOF
18320 rm -f conftest.$ac_objext conftest$ac_exeext
18321 if { (ac_try="$ac_link"
18322 case "(($ac_try" in
18323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18324 *) ac_try_echo=$ac_try;;
18325 esac
18326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18327 $as_echo "$ac_try_echo") >&5
18328 (eval "$ac_link") 2>conftest.er1
18329 ac_status=$?
18330 grep -v '^ *+' conftest.er1 >conftest.err
18331 rm -f conftest.er1
18332 cat conftest.err >&5
18333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } && {
18335 test -z "$ac_c_werror_flag" ||
18336 test ! -s conftest.err
18337 } && test -s conftest$ac_exeext && {
18338 test "$cross_compiling" = yes ||
18339 $as_test_x conftest$ac_exeext
18340 }; then
18341 ac_cv_lib_elf_elf_begin=yes
18342 else
18343 $as_echo "$as_me: failed program was:" >&5
18344 sed 's/^/| /' conftest.$ac_ext >&5
18346 ac_cv_lib_elf_elf_begin=no
18349 rm -rf conftest.dSYM
18350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18351 conftest$ac_exeext conftest.$ac_ext
18352 LIBS=$ac_check_lib_save_LIBS
18354 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18355 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18356 if test $ac_cv_lib_elf_elf_begin = yes; then
18357 LIBS="-lelf $LIBS"
18361 if test $ac_have_func = no; then
18362 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18363 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18364 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18365 $as_echo_n "(cached) " >&6
18366 else
18367 ac_check_lib_save_LIBS=$LIBS
18368 LIBS="-lkvm $LIBS"
18369 cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h. */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h. */
18376 /* Override any GCC internal prototype to avoid an error.
18377 Use char because int might match the return type of a GCC
18378 builtin and then its argument prototype would still apply. */
18379 #ifdef __cplusplus
18380 extern "C"
18381 #endif
18382 char kvm_open ();
18384 main ()
18386 return kvm_open ();
18388 return 0;
18390 _ACEOF
18391 rm -f conftest.$ac_objext conftest$ac_exeext
18392 if { (ac_try="$ac_link"
18393 case "(($ac_try" in
18394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395 *) ac_try_echo=$ac_try;;
18396 esac
18397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18398 $as_echo "$ac_try_echo") >&5
18399 (eval "$ac_link") 2>conftest.er1
18400 ac_status=$?
18401 grep -v '^ *+' conftest.er1 >conftest.err
18402 rm -f conftest.er1
18403 cat conftest.err >&5
18404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); } && {
18406 test -z "$ac_c_werror_flag" ||
18407 test ! -s conftest.err
18408 } && test -s conftest$ac_exeext && {
18409 test "$cross_compiling" = yes ||
18410 $as_test_x conftest$ac_exeext
18411 }; then
18412 ac_cv_lib_kvm_kvm_open=yes
18413 else
18414 $as_echo "$as_me: failed program was:" >&5
18415 sed 's/^/| /' conftest.$ac_ext >&5
18417 ac_cv_lib_kvm_kvm_open=no
18420 rm -rf conftest.dSYM
18421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18422 conftest$ac_exeext conftest.$ac_ext
18423 LIBS=$ac_check_lib_save_LIBS
18425 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18426 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18427 if test $ac_cv_lib_kvm_kvm_open = yes; then
18428 LIBS="-lkvm $LIBS"
18431 # Check for the 4.4BSD definition of getloadavg.
18432 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18433 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18434 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18435 $as_echo_n "(cached) " >&6
18436 else
18437 ac_check_lib_save_LIBS=$LIBS
18438 LIBS="-lutil $LIBS"
18439 cat >conftest.$ac_ext <<_ACEOF
18440 /* confdefs.h. */
18441 _ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h. */
18446 /* Override any GCC internal prototype to avoid an error.
18447 Use char because int might match the return type of a GCC
18448 builtin and then its argument prototype would still apply. */
18449 #ifdef __cplusplus
18450 extern "C"
18451 #endif
18452 char getloadavg ();
18454 main ()
18456 return getloadavg ();
18458 return 0;
18460 _ACEOF
18461 rm -f conftest.$ac_objext conftest$ac_exeext
18462 if { (ac_try="$ac_link"
18463 case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18466 esac
18467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18468 $as_echo "$ac_try_echo") >&5
18469 (eval "$ac_link") 2>conftest.er1
18470 ac_status=$?
18471 grep -v '^ *+' conftest.er1 >conftest.err
18472 rm -f conftest.er1
18473 cat conftest.err >&5
18474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } && {
18476 test -z "$ac_c_werror_flag" ||
18477 test ! -s conftest.err
18478 } && test -s conftest$ac_exeext && {
18479 test "$cross_compiling" = yes ||
18480 $as_test_x conftest$ac_exeext
18481 }; then
18482 ac_cv_lib_util_getloadavg=yes
18483 else
18484 $as_echo "$as_me: failed program was:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 ac_cv_lib_util_getloadavg=no
18490 rm -rf conftest.dSYM
18491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18492 conftest$ac_exeext conftest.$ac_ext
18493 LIBS=$ac_check_lib_save_LIBS
18495 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18496 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18497 if test $ac_cv_lib_util_getloadavg = yes; then
18498 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18503 if test $ac_have_func = no; then
18504 # There is a commonly available library for RS/6000 AIX.
18505 # Since it is not a standard part of AIX, it might be installed locally.
18506 ac_getloadavg_LIBS=$LIBS
18507 LIBS="-L/usr/local/lib $LIBS"
18508 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18509 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18510 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18511 $as_echo_n "(cached) " >&6
18512 else
18513 ac_check_lib_save_LIBS=$LIBS
18514 LIBS="-lgetloadavg $LIBS"
18515 cat >conftest.$ac_ext <<_ACEOF
18516 /* confdefs.h. */
18517 _ACEOF
18518 cat confdefs.h >>conftest.$ac_ext
18519 cat >>conftest.$ac_ext <<_ACEOF
18520 /* end confdefs.h. */
18522 /* Override any GCC internal prototype to avoid an error.
18523 Use char because int might match the return type of a GCC
18524 builtin and then its argument prototype would still apply. */
18525 #ifdef __cplusplus
18526 extern "C"
18527 #endif
18528 char getloadavg ();
18530 main ()
18532 return getloadavg ();
18534 return 0;
18536 _ACEOF
18537 rm -f conftest.$ac_objext conftest$ac_exeext
18538 if { (ac_try="$ac_link"
18539 case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18542 esac
18543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18544 $as_echo "$ac_try_echo") >&5
18545 (eval "$ac_link") 2>conftest.er1
18546 ac_status=$?
18547 grep -v '^ *+' conftest.er1 >conftest.err
18548 rm -f conftest.er1
18549 cat conftest.err >&5
18550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } && {
18552 test -z "$ac_c_werror_flag" ||
18553 test ! -s conftest.err
18554 } && test -s conftest$ac_exeext && {
18555 test "$cross_compiling" = yes ||
18556 $as_test_x conftest$ac_exeext
18557 }; then
18558 ac_cv_lib_getloadavg_getloadavg=yes
18559 else
18560 $as_echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18563 ac_cv_lib_getloadavg_getloadavg=no
18566 rm -rf conftest.dSYM
18567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18568 conftest$ac_exeext conftest.$ac_ext
18569 LIBS=$ac_check_lib_save_LIBS
18571 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18572 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18573 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18574 LIBS="-lgetloadavg $LIBS"
18575 else
18576 LIBS=$ac_getloadavg_LIBS
18581 # Make sure it is really in the library, if we think we found it,
18582 # otherwise set up the replacement function.
18584 for ac_func in getloadavg
18586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18587 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18588 $as_echo_n "checking for $ac_func... " >&6; }
18589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18590 $as_echo_n "(cached) " >&6
18591 else
18592 cat >conftest.$ac_ext <<_ACEOF
18593 /* confdefs.h. */
18594 _ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h. */
18598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18600 #define $ac_func innocuous_$ac_func
18602 /* System header to define __stub macros and hopefully few prototypes,
18603 which can conflict with char $ac_func (); below.
18604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18605 <limits.h> exists even on freestanding compilers. */
18607 #ifdef __STDC__
18608 # include <limits.h>
18609 #else
18610 # include <assert.h>
18611 #endif
18613 #undef $ac_func
18615 /* Override any GCC internal prototype to avoid an error.
18616 Use char because int might match the return type of a GCC
18617 builtin and then its argument prototype would still apply. */
18618 #ifdef __cplusplus
18619 extern "C"
18620 #endif
18621 char $ac_func ();
18622 /* The GNU C library defines this for functions which it implements
18623 to always fail with ENOSYS. Some functions are actually named
18624 something starting with __ and the normal name is an alias. */
18625 #if defined __stub_$ac_func || defined __stub___$ac_func
18626 choke me
18627 #endif
18630 main ()
18632 return $ac_func ();
18634 return 0;
18636 _ACEOF
18637 rm -f conftest.$ac_objext conftest$ac_exeext
18638 if { (ac_try="$ac_link"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18642 esac
18643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18644 $as_echo "$ac_try_echo") >&5
18645 (eval "$ac_link") 2>conftest.er1
18646 ac_status=$?
18647 grep -v '^ *+' conftest.er1 >conftest.err
18648 rm -f conftest.er1
18649 cat conftest.err >&5
18650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); } && {
18652 test -z "$ac_c_werror_flag" ||
18653 test ! -s conftest.err
18654 } && test -s conftest$ac_exeext && {
18655 test "$cross_compiling" = yes ||
18656 $as_test_x conftest$ac_exeext
18657 }; then
18658 eval "$as_ac_var=yes"
18659 else
18660 $as_echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 eval "$as_ac_var=no"
18666 rm -rf conftest.dSYM
18667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18668 conftest$ac_exeext conftest.$ac_ext
18670 ac_res=`eval 'as_val=${'$as_ac_var'}
18671 $as_echo "$as_val"'`
18672 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18673 $as_echo "$ac_res" >&6; }
18674 if test `eval 'as_val=${'$as_ac_var'}
18675 $as_echo "$as_val"'` = yes; then
18676 cat >>confdefs.h <<_ACEOF
18677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18678 _ACEOF
18680 else
18681 case " $LIBOBJS " in
18682 *" getloadavg.$ac_objext "* ) ;;
18683 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18685 esac
18688 cat >>confdefs.h <<\_ACEOF
18689 #define C_GETLOADAVG 1
18690 _ACEOF
18692 # Figure out what our getloadavg.c needs.
18693 ac_have_func=no
18694 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18695 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18696 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18697 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18698 $as_echo_n "(cached) " >&6
18700 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18701 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18702 else
18703 # Is the header compilable?
18704 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18705 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18706 cat >conftest.$ac_ext <<_ACEOF
18707 /* confdefs.h. */
18708 _ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h. */
18712 $ac_includes_default
18713 #include <sys/dg_sys_info.h>
18714 _ACEOF
18715 rm -f conftest.$ac_objext
18716 if { (ac_try="$ac_compile"
18717 case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18720 esac
18721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18722 $as_echo "$ac_try_echo") >&5
18723 (eval "$ac_compile") 2>conftest.er1
18724 ac_status=$?
18725 grep -v '^ *+' conftest.er1 >conftest.err
18726 rm -f conftest.er1
18727 cat conftest.err >&5
18728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } && {
18730 test -z "$ac_c_werror_flag" ||
18731 test ! -s conftest.err
18732 } && test -s conftest.$ac_objext; then
18733 ac_header_compiler=yes
18734 else
18735 $as_echo "$as_me: failed program was:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18738 ac_header_compiler=no
18741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18743 $as_echo "$ac_header_compiler" >&6; }
18745 # Is the header present?
18746 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18747 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18748 cat >conftest.$ac_ext <<_ACEOF
18749 /* confdefs.h. */
18750 _ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18754 #include <sys/dg_sys_info.h>
18755 _ACEOF
18756 if { (ac_try="$ac_cpp conftest.$ac_ext"
18757 case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18760 esac
18761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18762 $as_echo "$ac_try_echo") >&5
18763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18764 ac_status=$?
18765 grep -v '^ *+' conftest.er1 >conftest.err
18766 rm -f conftest.er1
18767 cat conftest.err >&5
18768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18769 (exit $ac_status); } >/dev/null && {
18770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18771 test ! -s conftest.err
18772 }; then
18773 ac_header_preproc=yes
18774 else
18775 $as_echo "$as_me: failed program was:" >&5
18776 sed 's/^/| /' conftest.$ac_ext >&5
18778 ac_header_preproc=no
18781 rm -f conftest.err conftest.$ac_ext
18782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18783 $as_echo "$ac_header_preproc" >&6; }
18785 # So? What about this header?
18786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18787 yes:no: )
18788 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18789 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18790 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18791 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18792 ac_header_preproc=yes
18794 no:yes:* )
18795 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18796 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18797 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18798 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18799 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18800 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18801 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18802 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18803 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18804 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18805 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18806 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18809 esac
18810 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18811 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18812 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18813 $as_echo_n "(cached) " >&6
18814 else
18815 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18818 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18821 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18822 ac_have_func=yes
18824 cat >>confdefs.h <<\_ACEOF
18825 #define DGUX 1
18826 _ACEOF
18829 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18830 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18831 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18832 $as_echo_n "(cached) " >&6
18833 else
18834 ac_check_lib_save_LIBS=$LIBS
18835 LIBS="-ldgc $LIBS"
18836 cat >conftest.$ac_ext <<_ACEOF
18837 /* confdefs.h. */
18838 _ACEOF
18839 cat confdefs.h >>conftest.$ac_ext
18840 cat >>conftest.$ac_ext <<_ACEOF
18841 /* end confdefs.h. */
18843 /* Override any GCC internal prototype to avoid an error.
18844 Use char because int might match the return type of a GCC
18845 builtin and then its argument prototype would still apply. */
18846 #ifdef __cplusplus
18847 extern "C"
18848 #endif
18849 char dg_sys_info ();
18851 main ()
18853 return dg_sys_info ();
18855 return 0;
18857 _ACEOF
18858 rm -f conftest.$ac_objext conftest$ac_exeext
18859 if { (ac_try="$ac_link"
18860 case "(($ac_try" in
18861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18862 *) ac_try_echo=$ac_try;;
18863 esac
18864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18865 $as_echo "$ac_try_echo") >&5
18866 (eval "$ac_link") 2>conftest.er1
18867 ac_status=$?
18868 grep -v '^ *+' conftest.er1 >conftest.err
18869 rm -f conftest.er1
18870 cat conftest.err >&5
18871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } && {
18873 test -z "$ac_c_werror_flag" ||
18874 test ! -s conftest.err
18875 } && test -s conftest$ac_exeext && {
18876 test "$cross_compiling" = yes ||
18877 $as_test_x conftest$ac_exeext
18878 }; then
18879 ac_cv_lib_dgc_dg_sys_info=yes
18880 else
18881 $as_echo "$as_me: failed program was:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18884 ac_cv_lib_dgc_dg_sys_info=no
18887 rm -rf conftest.dSYM
18888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18889 conftest$ac_exeext conftest.$ac_ext
18890 LIBS=$ac_check_lib_save_LIBS
18892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18893 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
18894 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18895 cat >>confdefs.h <<_ACEOF
18896 #define HAVE_LIBDGC 1
18897 _ACEOF
18899 LIBS="-ldgc $LIBS"
18907 if test "${ac_cv_header_locale_h+set}" = set; then
18908 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18909 $as_echo_n "checking for locale.h... " >&6; }
18910 if test "${ac_cv_header_locale_h+set}" = set; then
18911 $as_echo_n "(cached) " >&6
18913 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18914 $as_echo "$ac_cv_header_locale_h" >&6; }
18915 else
18916 # Is the header compilable?
18917 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
18918 $as_echo_n "checking locale.h usability... " >&6; }
18919 cat >conftest.$ac_ext <<_ACEOF
18920 /* confdefs.h. */
18921 _ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18925 $ac_includes_default
18926 #include <locale.h>
18927 _ACEOF
18928 rm -f conftest.$ac_objext
18929 if { (ac_try="$ac_compile"
18930 case "(($ac_try" in
18931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18932 *) ac_try_echo=$ac_try;;
18933 esac
18934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18935 $as_echo "$ac_try_echo") >&5
18936 (eval "$ac_compile") 2>conftest.er1
18937 ac_status=$?
18938 grep -v '^ *+' conftest.er1 >conftest.err
18939 rm -f conftest.er1
18940 cat conftest.err >&5
18941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } && {
18943 test -z "$ac_c_werror_flag" ||
18944 test ! -s conftest.err
18945 } && test -s conftest.$ac_objext; then
18946 ac_header_compiler=yes
18947 else
18948 $as_echo "$as_me: failed program was:" >&5
18949 sed 's/^/| /' conftest.$ac_ext >&5
18951 ac_header_compiler=no
18954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18955 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18956 $as_echo "$ac_header_compiler" >&6; }
18958 # Is the header present?
18959 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
18960 $as_echo_n "checking locale.h presence... " >&6; }
18961 cat >conftest.$ac_ext <<_ACEOF
18962 /* confdefs.h. */
18963 _ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18967 #include <locale.h>
18968 _ACEOF
18969 if { (ac_try="$ac_cpp conftest.$ac_ext"
18970 case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18973 esac
18974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18975 $as_echo "$ac_try_echo") >&5
18976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18977 ac_status=$?
18978 grep -v '^ *+' conftest.er1 >conftest.err
18979 rm -f conftest.er1
18980 cat conftest.err >&5
18981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982 (exit $ac_status); } >/dev/null && {
18983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18984 test ! -s conftest.err
18985 }; then
18986 ac_header_preproc=yes
18987 else
18988 $as_echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18991 ac_header_preproc=no
18994 rm -f conftest.err conftest.$ac_ext
18995 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18996 $as_echo "$ac_header_preproc" >&6; }
18998 # So? What about this header?
18999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19000 yes:no: )
19001 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19002 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19003 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19004 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19005 ac_header_preproc=yes
19007 no:yes:* )
19008 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19009 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19010 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19011 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19012 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19013 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19014 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19015 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19016 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19017 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19018 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19019 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19022 esac
19023 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19024 $as_echo_n "checking for locale.h... " >&6; }
19025 if test "${ac_cv_header_locale_h+set}" = set; then
19026 $as_echo_n "(cached) " >&6
19027 else
19028 ac_cv_header_locale_h=$ac_header_preproc
19030 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19031 $as_echo "$ac_cv_header_locale_h" >&6; }
19037 for ac_func in setlocale
19039 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19040 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19041 $as_echo_n "checking for $ac_func... " >&6; }
19042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19043 $as_echo_n "(cached) " >&6
19044 else
19045 cat >conftest.$ac_ext <<_ACEOF
19046 /* confdefs.h. */
19047 _ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19053 #define $ac_func innocuous_$ac_func
19055 /* System header to define __stub macros and hopefully few prototypes,
19056 which can conflict with char $ac_func (); below.
19057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19058 <limits.h> exists even on freestanding compilers. */
19060 #ifdef __STDC__
19061 # include <limits.h>
19062 #else
19063 # include <assert.h>
19064 #endif
19066 #undef $ac_func
19068 /* Override any GCC internal prototype to avoid an error.
19069 Use char because int might match the return type of a GCC
19070 builtin and then its argument prototype would still apply. */
19071 #ifdef __cplusplus
19072 extern "C"
19073 #endif
19074 char $ac_func ();
19075 /* The GNU C library defines this for functions which it implements
19076 to always fail with ENOSYS. Some functions are actually named
19077 something starting with __ and the normal name is an alias. */
19078 #if defined __stub_$ac_func || defined __stub___$ac_func
19079 choke me
19080 #endif
19083 main ()
19085 return $ac_func ();
19087 return 0;
19089 _ACEOF
19090 rm -f conftest.$ac_objext conftest$ac_exeext
19091 if { (ac_try="$ac_link"
19092 case "(($ac_try" in
19093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19094 *) ac_try_echo=$ac_try;;
19095 esac
19096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19097 $as_echo "$ac_try_echo") >&5
19098 (eval "$ac_link") 2>conftest.er1
19099 ac_status=$?
19100 grep -v '^ *+' conftest.er1 >conftest.err
19101 rm -f conftest.er1
19102 cat conftest.err >&5
19103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } && {
19105 test -z "$ac_c_werror_flag" ||
19106 test ! -s conftest.err
19107 } && test -s conftest$ac_exeext && {
19108 test "$cross_compiling" = yes ||
19109 $as_test_x conftest$ac_exeext
19110 }; then
19111 eval "$as_ac_var=yes"
19112 else
19113 $as_echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19116 eval "$as_ac_var=no"
19119 rm -rf conftest.dSYM
19120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19121 conftest$ac_exeext conftest.$ac_ext
19123 ac_res=`eval 'as_val=${'$as_ac_var'}
19124 $as_echo "$as_val"'`
19125 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19126 $as_echo "$ac_res" >&6; }
19127 if test `eval 'as_val=${'$as_ac_var'}
19128 $as_echo "$as_val"'` = yes; then
19129 cat >>confdefs.h <<_ACEOF
19130 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19131 _ACEOF
19134 done
19137 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19138 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19139 # Irix 4.0.5F has the header but not the library.
19140 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19141 ac_have_func=yes
19143 cat >>confdefs.h <<\_ACEOF
19144 #define SVR4 1
19145 _ACEOF
19149 if test $ac_have_func = no; then
19150 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19151 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19152 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19153 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19154 $as_echo_n "(cached) " >&6
19156 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19157 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19158 else
19159 # Is the header compilable?
19160 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19161 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19162 cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h. */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h. */
19168 $ac_includes_default
19169 #include <inq_stats/cpustats.h>
19170 _ACEOF
19171 rm -f conftest.$ac_objext
19172 if { (ac_try="$ac_compile"
19173 case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19176 esac
19177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19178 $as_echo "$ac_try_echo") >&5
19179 (eval "$ac_compile") 2>conftest.er1
19180 ac_status=$?
19181 grep -v '^ *+' conftest.er1 >conftest.err
19182 rm -f conftest.er1
19183 cat conftest.err >&5
19184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); } && {
19186 test -z "$ac_c_werror_flag" ||
19187 test ! -s conftest.err
19188 } && test -s conftest.$ac_objext; then
19189 ac_header_compiler=yes
19190 else
19191 $as_echo "$as_me: failed program was:" >&5
19192 sed 's/^/| /' conftest.$ac_ext >&5
19194 ac_header_compiler=no
19197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19198 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19199 $as_echo "$ac_header_compiler" >&6; }
19201 # Is the header present?
19202 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19203 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19204 cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h. */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210 #include <inq_stats/cpustats.h>
19211 _ACEOF
19212 if { (ac_try="$ac_cpp conftest.$ac_ext"
19213 case "(($ac_try" in
19214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19215 *) ac_try_echo=$ac_try;;
19216 esac
19217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19218 $as_echo "$ac_try_echo") >&5
19219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19220 ac_status=$?
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
19224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } >/dev/null && {
19226 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19227 test ! -s conftest.err
19228 }; then
19229 ac_header_preproc=yes
19230 else
19231 $as_echo "$as_me: failed program was:" >&5
19232 sed 's/^/| /' conftest.$ac_ext >&5
19234 ac_header_preproc=no
19237 rm -f conftest.err conftest.$ac_ext
19238 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19239 $as_echo "$ac_header_preproc" >&6; }
19241 # So? What about this header?
19242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19243 yes:no: )
19244 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19245 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19246 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19247 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19248 ac_header_preproc=yes
19250 no:yes:* )
19251 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19252 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19253 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19254 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19255 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19256 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19257 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19258 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19259 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19260 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19261 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19262 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19265 esac
19266 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19267 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19268 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19269 $as_echo_n "(cached) " >&6
19270 else
19271 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19273 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19274 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19277 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19278 ac_have_func=yes
19280 cat >>confdefs.h <<\_ACEOF
19281 #define UMAX 1
19282 _ACEOF
19285 cat >>confdefs.h <<\_ACEOF
19286 #define UMAX4_3 1
19287 _ACEOF
19294 if test $ac_have_func = no; then
19295 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19296 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19297 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19298 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19299 $as_echo_n "(cached) " >&6
19301 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19302 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19303 else
19304 # Is the header compilable?
19305 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19306 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19307 cat >conftest.$ac_ext <<_ACEOF
19308 /* confdefs.h. */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 $ac_includes_default
19314 #include <sys/cpustats.h>
19315 _ACEOF
19316 rm -f conftest.$ac_objext
19317 if { (ac_try="$ac_compile"
19318 case "(($ac_try" in
19319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19320 *) ac_try_echo=$ac_try;;
19321 esac
19322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19323 $as_echo "$ac_try_echo") >&5
19324 (eval "$ac_compile") 2>conftest.er1
19325 ac_status=$?
19326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -f conftest.er1
19328 cat conftest.err >&5
19329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } && {
19331 test -z "$ac_c_werror_flag" ||
19332 test ! -s conftest.err
19333 } && test -s conftest.$ac_objext; then
19334 ac_header_compiler=yes
19335 else
19336 $as_echo "$as_me: failed program was:" >&5
19337 sed 's/^/| /' conftest.$ac_ext >&5
19339 ac_header_compiler=no
19342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19344 $as_echo "$ac_header_compiler" >&6; }
19346 # Is the header present?
19347 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19348 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19349 cat >conftest.$ac_ext <<_ACEOF
19350 /* confdefs.h. */
19351 _ACEOF
19352 cat confdefs.h >>conftest.$ac_ext
19353 cat >>conftest.$ac_ext <<_ACEOF
19354 /* end confdefs.h. */
19355 #include <sys/cpustats.h>
19356 _ACEOF
19357 if { (ac_try="$ac_cpp conftest.$ac_ext"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19361 esac
19362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19363 $as_echo "$ac_try_echo") >&5
19364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19365 ac_status=$?
19366 grep -v '^ *+' conftest.er1 >conftest.err
19367 rm -f conftest.er1
19368 cat conftest.err >&5
19369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } >/dev/null && {
19371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19372 test ! -s conftest.err
19373 }; then
19374 ac_header_preproc=yes
19375 else
19376 $as_echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_header_preproc=no
19382 rm -f conftest.err conftest.$ac_ext
19383 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19384 $as_echo "$ac_header_preproc" >&6; }
19386 # So? What about this header?
19387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19388 yes:no: )
19389 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19390 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19391 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19392 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19393 ac_header_preproc=yes
19395 no:yes:* )
19396 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19397 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19398 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19399 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19400 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19401 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19402 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19403 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19404 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19405 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19406 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19407 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19410 esac
19411 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19412 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19413 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19414 $as_echo_n "(cached) " >&6
19415 else
19416 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19418 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19419 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19422 if test $ac_cv_header_sys_cpustats_h = yes; then
19423 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19424 #define UMAX 1
19425 _ACEOF
19432 if test $ac_have_func = no; then
19434 for ac_header in mach/mach.h
19436 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19439 $as_echo_n "checking for $ac_header... " >&6; }
19440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19441 $as_echo_n "(cached) " >&6
19443 ac_res=`eval 'as_val=${'$as_ac_Header'}
19444 $as_echo "$as_val"'`
19445 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19446 $as_echo "$ac_res" >&6; }
19447 else
19448 # Is the header compilable?
19449 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19450 $as_echo_n "checking $ac_header usability... " >&6; }
19451 cat >conftest.$ac_ext <<_ACEOF
19452 /* confdefs.h. */
19453 _ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 $ac_includes_default
19458 #include <$ac_header>
19459 _ACEOF
19460 rm -f conftest.$ac_objext
19461 if { (ac_try="$ac_compile"
19462 case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19465 esac
19466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19467 $as_echo "$ac_try_echo") >&5
19468 (eval "$ac_compile") 2>conftest.er1
19469 ac_status=$?
19470 grep -v '^ *+' conftest.er1 >conftest.err
19471 rm -f conftest.er1
19472 cat conftest.err >&5
19473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } && {
19475 test -z "$ac_c_werror_flag" ||
19476 test ! -s conftest.err
19477 } && test -s conftest.$ac_objext; then
19478 ac_header_compiler=yes
19479 else
19480 $as_echo "$as_me: failed program was:" >&5
19481 sed 's/^/| /' conftest.$ac_ext >&5
19483 ac_header_compiler=no
19486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19488 $as_echo "$ac_header_compiler" >&6; }
19490 # Is the header present?
19491 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19492 $as_echo_n "checking $ac_header presence... " >&6; }
19493 cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h. */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19499 #include <$ac_header>
19500 _ACEOF
19501 if { (ac_try="$ac_cpp conftest.$ac_ext"
19502 case "(($ac_try" in
19503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19504 *) ac_try_echo=$ac_try;;
19505 esac
19506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19507 $as_echo "$ac_try_echo") >&5
19508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19509 ac_status=$?
19510 grep -v '^ *+' conftest.er1 >conftest.err
19511 rm -f conftest.er1
19512 cat conftest.err >&5
19513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } >/dev/null && {
19515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19516 test ! -s conftest.err
19517 }; then
19518 ac_header_preproc=yes
19519 else
19520 $as_echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19523 ac_header_preproc=no
19526 rm -f conftest.err conftest.$ac_ext
19527 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19528 $as_echo "$ac_header_preproc" >&6; }
19530 # So? What about this header?
19531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19532 yes:no: )
19533 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19534 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19535 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19536 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19537 ac_header_preproc=yes
19539 no:yes:* )
19540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19541 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19543 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19545 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19547 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19549 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19551 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19554 esac
19555 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19556 $as_echo_n "checking for $ac_header... " >&6; }
19557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19558 $as_echo_n "(cached) " >&6
19559 else
19560 eval "$as_ac_Header=\$ac_header_preproc"
19562 ac_res=`eval 'as_val=${'$as_ac_Header'}
19563 $as_echo "$as_val"'`
19564 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19565 $as_echo "$ac_res" >&6; }
19568 if test `eval 'as_val=${'$as_ac_Header'}
19569 $as_echo "$as_val"'` = yes; then
19570 cat >>confdefs.h <<_ACEOF
19571 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19572 _ACEOF
19576 done
19581 for ac_header in nlist.h
19583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19585 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19586 $as_echo_n "checking for $ac_header... " >&6; }
19587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19588 $as_echo_n "(cached) " >&6
19590 ac_res=`eval 'as_val=${'$as_ac_Header'}
19591 $as_echo "$as_val"'`
19592 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19593 $as_echo "$ac_res" >&6; }
19594 else
19595 # Is the header compilable?
19596 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19597 $as_echo_n "checking $ac_header usability... " >&6; }
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h. */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h. */
19604 $ac_includes_default
19605 #include <$ac_header>
19606 _ACEOF
19607 rm -f conftest.$ac_objext
19608 if { (ac_try="$ac_compile"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19612 esac
19613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19614 $as_echo "$ac_try_echo") >&5
19615 (eval "$ac_compile") 2>conftest.er1
19616 ac_status=$?
19617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
19620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); } && {
19622 test -z "$ac_c_werror_flag" ||
19623 test ! -s conftest.err
19624 } && test -s conftest.$ac_objext; then
19625 ac_header_compiler=yes
19626 else
19627 $as_echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_header_compiler=no
19633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19634 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19635 $as_echo "$ac_header_compiler" >&6; }
19637 # Is the header present?
19638 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19639 $as_echo_n "checking $ac_header presence... " >&6; }
19640 cat >conftest.$ac_ext <<_ACEOF
19641 /* confdefs.h. */
19642 _ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646 #include <$ac_header>
19647 _ACEOF
19648 if { (ac_try="$ac_cpp conftest.$ac_ext"
19649 case "(($ac_try" in
19650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651 *) ac_try_echo=$ac_try;;
19652 esac
19653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19654 $as_echo "$ac_try_echo") >&5
19655 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19656 ac_status=$?
19657 grep -v '^ *+' conftest.er1 >conftest.err
19658 rm -f conftest.er1
19659 cat conftest.err >&5
19660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); } >/dev/null && {
19662 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19663 test ! -s conftest.err
19664 }; then
19665 ac_header_preproc=yes
19666 else
19667 $as_echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.$ac_ext >&5
19670 ac_header_preproc=no
19673 rm -f conftest.err conftest.$ac_ext
19674 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19675 $as_echo "$ac_header_preproc" >&6; }
19677 # So? What about this header?
19678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19679 yes:no: )
19680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19681 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19683 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19684 ac_header_preproc=yes
19686 no:yes:* )
19687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19688 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19690 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19692 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19693 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19694 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19696 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19698 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19701 esac
19702 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19703 $as_echo_n "checking for $ac_header... " >&6; }
19704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19705 $as_echo_n "(cached) " >&6
19706 else
19707 eval "$as_ac_Header=\$ac_header_preproc"
19709 ac_res=`eval 'as_val=${'$as_ac_Header'}
19710 $as_echo "$as_val"'`
19711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19712 $as_echo "$ac_res" >&6; }
19715 if test `eval 'as_val=${'$as_ac_Header'}
19716 $as_echo "$as_val"'` = yes; then
19717 cat >>confdefs.h <<_ACEOF
19718 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19719 _ACEOF
19720 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19721 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
19722 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19723 $as_echo_n "(cached) " >&6
19724 else
19725 cat >conftest.$ac_ext <<_ACEOF
19726 /* confdefs.h. */
19727 _ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 #include <nlist.h>
19734 main ()
19736 static struct nlist ac_aggr;
19737 if (ac_aggr.n_un.n_name)
19738 return 0;
19740 return 0;
19742 _ACEOF
19743 rm -f conftest.$ac_objext
19744 if { (ac_try="$ac_compile"
19745 case "(($ac_try" in
19746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19747 *) ac_try_echo=$ac_try;;
19748 esac
19749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19750 $as_echo "$ac_try_echo") >&5
19751 (eval "$ac_compile") 2>conftest.er1
19752 ac_status=$?
19753 grep -v '^ *+' conftest.er1 >conftest.err
19754 rm -f conftest.er1
19755 cat conftest.err >&5
19756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); } && {
19758 test -z "$ac_c_werror_flag" ||
19759 test ! -s conftest.err
19760 } && test -s conftest.$ac_objext; then
19761 ac_cv_member_struct_nlist_n_un_n_name=yes
19762 else
19763 $as_echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19766 cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h. */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19772 #include <nlist.h>
19775 main ()
19777 static struct nlist ac_aggr;
19778 if (sizeof ac_aggr.n_un.n_name)
19779 return 0;
19781 return 0;
19783 _ACEOF
19784 rm -f conftest.$ac_objext
19785 if { (ac_try="$ac_compile"
19786 case "(($ac_try" in
19787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19788 *) ac_try_echo=$ac_try;;
19789 esac
19790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19791 $as_echo "$ac_try_echo") >&5
19792 (eval "$ac_compile") 2>conftest.er1
19793 ac_status=$?
19794 grep -v '^ *+' conftest.er1 >conftest.err
19795 rm -f conftest.er1
19796 cat conftest.err >&5
19797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798 (exit $ac_status); } && {
19799 test -z "$ac_c_werror_flag" ||
19800 test ! -s conftest.err
19801 } && test -s conftest.$ac_objext; then
19802 ac_cv_member_struct_nlist_n_un_n_name=yes
19803 else
19804 $as_echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19807 ac_cv_member_struct_nlist_n_un_n_name=no
19810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19815 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19816 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19817 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19819 cat >>confdefs.h <<_ACEOF
19820 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19821 _ACEOF
19824 cat >>confdefs.h <<\_ACEOF
19825 #define NLIST_NAME_UNION 1
19826 _ACEOF
19833 done
19836 done
19839 # Some definitions of getloadavg require that the program be installed setgid.
19840 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19841 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19842 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19843 $as_echo_n "(cached) " >&6
19844 else
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h. */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19851 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19852 #ifdef LDAV_PRIVILEGED
19853 Yowza Am I SETGID yet
19854 #endif
19855 _ACEOF
19856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19857 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19858 ac_cv_func_getloadavg_setgid=yes
19859 else
19860 ac_cv_func_getloadavg_setgid=no
19862 rm -f conftest*
19865 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19866 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
19867 if test $ac_cv_func_getloadavg_setgid = yes; then
19868 NEED_SETGID=true
19870 cat >>confdefs.h <<\_ACEOF
19871 #define GETLOADAVG_PRIVILEGED 1
19872 _ACEOF
19874 else
19875 NEED_SETGID=false
19878 if test $ac_cv_func_getloadavg_setgid = yes; then
19879 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19880 $as_echo_n "checking group of /dev/kmem... " >&6; }
19881 if test "${ac_cv_group_kmem+set}" = set; then
19882 $as_echo_n "(cached) " >&6
19883 else
19884 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19885 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19886 # If we got an error (system does not support symlinks), try without -L.
19887 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19888 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
19889 | sed -ne 's/[ ][ ]*/ /g;
19890 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19891 / /s/.* //;p;'`
19894 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19895 $as_echo "$ac_cv_group_kmem" >&6; }
19896 KMEM_GROUP=$ac_cv_group_kmem
19898 if test "x$ac_save_LIBS" = x; then
19899 GETLOADAVG_LIBS=$LIBS
19900 else
19901 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
19903 LIBS=$ac_save_LIBS
19907 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19908 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19909 if test "${ac_cv_sys_largefile_source+set}" = set; then
19910 $as_echo_n "(cached) " >&6
19911 else
19912 while :; do
19913 cat >conftest.$ac_ext <<_ACEOF
19914 /* confdefs.h. */
19915 _ACEOF
19916 cat confdefs.h >>conftest.$ac_ext
19917 cat >>conftest.$ac_ext <<_ACEOF
19918 /* end confdefs.h. */
19919 #include <sys/types.h> /* for off_t */
19920 #include <stdio.h>
19922 main ()
19924 int (*fp) (FILE *, off_t, int) = fseeko;
19925 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19927 return 0;
19929 _ACEOF
19930 rm -f conftest.$ac_objext conftest$ac_exeext
19931 if { (ac_try="$ac_link"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19935 esac
19936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19937 $as_echo "$ac_try_echo") >&5
19938 (eval "$ac_link") 2>conftest.er1
19939 ac_status=$?
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && {
19945 test -z "$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 } && test -s conftest$ac_exeext && {
19948 test "$cross_compiling" = yes ||
19949 $as_test_x conftest$ac_exeext
19950 }; then
19951 ac_cv_sys_largefile_source=no; break
19952 else
19953 $as_echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19959 rm -rf conftest.dSYM
19960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19961 conftest$ac_exeext conftest.$ac_ext
19962 cat >conftest.$ac_ext <<_ACEOF
19963 /* confdefs.h. */
19964 _ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19968 #define _LARGEFILE_SOURCE 1
19969 #include <sys/types.h> /* for off_t */
19970 #include <stdio.h>
19972 main ()
19974 int (*fp) (FILE *, off_t, int) = fseeko;
19975 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19977 return 0;
19979 _ACEOF
19980 rm -f conftest.$ac_objext conftest$ac_exeext
19981 if { (ac_try="$ac_link"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19985 esac
19986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19987 $as_echo "$ac_try_echo") >&5
19988 (eval "$ac_link") 2>conftest.er1
19989 ac_status=$?
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
19993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest$ac_exeext && {
19998 test "$cross_compiling" = yes ||
19999 $as_test_x conftest$ac_exeext
20000 }; then
20001 ac_cv_sys_largefile_source=1; break
20002 else
20003 $as_echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20009 rm -rf conftest.dSYM
20010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20011 conftest$ac_exeext conftest.$ac_ext
20012 ac_cv_sys_largefile_source=unknown
20013 break
20014 done
20016 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20017 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20018 case $ac_cv_sys_largefile_source in #(
20019 no | unknown) ;;
20021 cat >>confdefs.h <<_ACEOF
20022 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20023 _ACEOF
20025 esac
20026 rm -rf conftest*
20028 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20029 # in glibc 2.1.3, but that breaks too many other things.
20030 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20031 if test $ac_cv_sys_largefile_source != unknown; then
20033 cat >>confdefs.h <<\_ACEOF
20034 #define HAVE_FSEEKO 1
20035 _ACEOF
20040 # Configure getopt.
20041 # getopt.m4 serial 10
20043 # The getopt module assume you want GNU getopt, with getopt_long etc,
20044 # rather than vanilla POSIX getopt. This means your your code should
20045 # always include <getopt.h> for the getopt prototypes.
20057 # Prerequisites of lib/getopt*.
20062 GETOPT_H=
20064 for ac_header in getopt.h
20066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20069 $as_echo_n "checking for $ac_header... " >&6; }
20070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20071 $as_echo_n "(cached) " >&6
20073 ac_res=`eval 'as_val=${'$as_ac_Header'}
20074 $as_echo "$as_val"'`
20075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20076 $as_echo "$ac_res" >&6; }
20077 else
20078 # Is the header compilable?
20079 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20080 $as_echo_n "checking $ac_header usability... " >&6; }
20081 cat >conftest.$ac_ext <<_ACEOF
20082 /* confdefs.h. */
20083 _ACEOF
20084 cat confdefs.h >>conftest.$ac_ext
20085 cat >>conftest.$ac_ext <<_ACEOF
20086 /* end confdefs.h. */
20087 $ac_includes_default
20088 #include <$ac_header>
20089 _ACEOF
20090 rm -f conftest.$ac_objext
20091 if { (ac_try="$ac_compile"
20092 case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20095 esac
20096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20097 $as_echo "$ac_try_echo") >&5
20098 (eval "$ac_compile") 2>conftest.er1
20099 ac_status=$?
20100 grep -v '^ *+' conftest.er1 >conftest.err
20101 rm -f conftest.er1
20102 cat conftest.err >&5
20103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } && {
20105 test -z "$ac_c_werror_flag" ||
20106 test ! -s conftest.err
20107 } && test -s conftest.$ac_objext; then
20108 ac_header_compiler=yes
20109 else
20110 $as_echo "$as_me: failed program was:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20113 ac_header_compiler=no
20116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20117 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20118 $as_echo "$ac_header_compiler" >&6; }
20120 # Is the header present?
20121 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20122 $as_echo_n "checking $ac_header presence... " >&6; }
20123 cat >conftest.$ac_ext <<_ACEOF
20124 /* confdefs.h. */
20125 _ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129 #include <$ac_header>
20130 _ACEOF
20131 if { (ac_try="$ac_cpp conftest.$ac_ext"
20132 case "(($ac_try" in
20133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20134 *) ac_try_echo=$ac_try;;
20135 esac
20136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20137 $as_echo "$ac_try_echo") >&5
20138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20139 ac_status=$?
20140 grep -v '^ *+' conftest.er1 >conftest.err
20141 rm -f conftest.er1
20142 cat conftest.err >&5
20143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); } >/dev/null && {
20145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20146 test ! -s conftest.err
20147 }; then
20148 ac_header_preproc=yes
20149 else
20150 $as_echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 ac_header_preproc=no
20156 rm -f conftest.err conftest.$ac_ext
20157 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20158 $as_echo "$ac_header_preproc" >&6; }
20160 # So? What about this header?
20161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20162 yes:no: )
20163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20164 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20167 ac_header_preproc=yes
20169 no:yes:* )
20170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20171 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20173 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20175 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20177 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20179 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20181 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20184 esac
20185 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20186 $as_echo_n "checking for $ac_header... " >&6; }
20187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20188 $as_echo_n "(cached) " >&6
20189 else
20190 eval "$as_ac_Header=\$ac_header_preproc"
20192 ac_res=`eval 'as_val=${'$as_ac_Header'}
20193 $as_echo "$as_val"'`
20194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20195 $as_echo "$ac_res" >&6; }
20198 if test `eval 'as_val=${'$as_ac_Header'}
20199 $as_echo "$as_val"'` = yes; then
20200 cat >>confdefs.h <<_ACEOF
20201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20202 _ACEOF
20204 else
20205 GETOPT_H=getopt.h
20208 done
20210 if test -z "$GETOPT_H"; then
20212 for ac_func in getopt_long_only
20214 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20215 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20216 $as_echo_n "checking for $ac_func... " >&6; }
20217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20218 $as_echo_n "(cached) " >&6
20219 else
20220 cat >conftest.$ac_ext <<_ACEOF
20221 /* confdefs.h. */
20222 _ACEOF
20223 cat confdefs.h >>conftest.$ac_ext
20224 cat >>conftest.$ac_ext <<_ACEOF
20225 /* end confdefs.h. */
20226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20228 #define $ac_func innocuous_$ac_func
20230 /* System header to define __stub macros and hopefully few prototypes,
20231 which can conflict with char $ac_func (); below.
20232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20233 <limits.h> exists even on freestanding compilers. */
20235 #ifdef __STDC__
20236 # include <limits.h>
20237 #else
20238 # include <assert.h>
20239 #endif
20241 #undef $ac_func
20243 /* Override any GCC internal prototype to avoid an error.
20244 Use char because int might match the return type of a GCC
20245 builtin and then its argument prototype would still apply. */
20246 #ifdef __cplusplus
20247 extern "C"
20248 #endif
20249 char $ac_func ();
20250 /* The GNU C library defines this for functions which it implements
20251 to always fail with ENOSYS. Some functions are actually named
20252 something starting with __ and the normal name is an alias. */
20253 #if defined __stub_$ac_func || defined __stub___$ac_func
20254 choke me
20255 #endif
20258 main ()
20260 return $ac_func ();
20262 return 0;
20264 _ACEOF
20265 rm -f conftest.$ac_objext conftest$ac_exeext
20266 if { (ac_try="$ac_link"
20267 case "(($ac_try" in
20268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269 *) ac_try_echo=$ac_try;;
20270 esac
20271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20272 $as_echo "$ac_try_echo") >&5
20273 (eval "$ac_link") 2>conftest.er1
20274 ac_status=$?
20275 grep -v '^ *+' conftest.er1 >conftest.err
20276 rm -f conftest.er1
20277 cat conftest.err >&5
20278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20279 (exit $ac_status); } && {
20280 test -z "$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 } && test -s conftest$ac_exeext && {
20283 test "$cross_compiling" = yes ||
20284 $as_test_x conftest$ac_exeext
20285 }; then
20286 eval "$as_ac_var=yes"
20287 else
20288 $as_echo "$as_me: failed program was:" >&5
20289 sed 's/^/| /' conftest.$ac_ext >&5
20291 eval "$as_ac_var=no"
20294 rm -rf conftest.dSYM
20295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20296 conftest$ac_exeext conftest.$ac_ext
20298 ac_res=`eval 'as_val=${'$as_ac_var'}
20299 $as_echo "$as_val"'`
20300 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20301 $as_echo "$ac_res" >&6; }
20302 if test `eval 'as_val=${'$as_ac_var'}
20303 $as_echo "$as_val"'` = yes; then
20304 cat >>confdefs.h <<_ACEOF
20305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20306 _ACEOF
20308 else
20309 GETOPT_H=getopt.h
20311 done
20315 if test -z "$GETOPT_H"; then
20316 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20317 $as_echo_n "checking whether optreset is declared... " >&6; }
20318 if test "${ac_cv_have_decl_optreset+set}" = set; then
20319 $as_echo_n "(cached) " >&6
20320 else
20321 cat >conftest.$ac_ext <<_ACEOF
20322 /* confdefs.h. */
20323 _ACEOF
20324 cat confdefs.h >>conftest.$ac_ext
20325 cat >>conftest.$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20327 #include <getopt.h>
20330 main ()
20332 #ifndef optreset
20333 (void) optreset;
20334 #endif
20337 return 0;
20339 _ACEOF
20340 rm -f conftest.$ac_objext
20341 if { (ac_try="$ac_compile"
20342 case "(($ac_try" in
20343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344 *) ac_try_echo=$ac_try;;
20345 esac
20346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20347 $as_echo "$ac_try_echo") >&5
20348 (eval "$ac_compile") 2>conftest.er1
20349 ac_status=$?
20350 grep -v '^ *+' conftest.er1 >conftest.err
20351 rm -f conftest.er1
20352 cat conftest.err >&5
20353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); } && {
20355 test -z "$ac_c_werror_flag" ||
20356 test ! -s conftest.err
20357 } && test -s conftest.$ac_objext; then
20358 ac_cv_have_decl_optreset=yes
20359 else
20360 $as_echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20363 ac_cv_have_decl_optreset=no
20366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20368 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20369 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20370 if test $ac_cv_have_decl_optreset = yes; then
20371 GETOPT_H=getopt.h
20376 if test -z "$GETOPT_H"; then
20377 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20378 $as_echo_n "checking for working GNU getopt function... " >&6; }
20379 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20380 $as_echo_n "(cached) " >&6
20381 else
20382 if test "$cross_compiling" = yes; then
20383 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20384 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20385 if test "${ac_cv_have_decl_getopt_clip+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 <getopt.h>
20397 main ()
20399 #ifndef getopt_clip
20400 (void) getopt_clip;
20401 #endif
20404 return 0;
20406 _ACEOF
20407 rm -f conftest.$ac_objext
20408 if { (ac_try="$ac_compile"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20412 esac
20413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20414 $as_echo "$ac_try_echo") >&5
20415 (eval "$ac_compile") 2>conftest.er1
20416 ac_status=$?
20417 grep -v '^ *+' conftest.er1 >conftest.err
20418 rm -f conftest.er1
20419 cat conftest.err >&5
20420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest.$ac_objext; then
20425 ac_cv_have_decl_getopt_clip=yes
20426 else
20427 $as_echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_cv_have_decl_getopt_clip=no
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20435 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20436 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20437 if test $ac_cv_have_decl_getopt_clip = yes; then
20438 gl_cv_func_gnu_getopt=no
20439 else
20440 gl_cv_func_gnu_getopt=yes
20443 else
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h. */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450 #include <getopt.h>
20452 main ()
20455 char *myargv[3];
20456 myargv[0] = "conftest";
20457 myargv[1] = "-+";
20458 myargv[2] = 0;
20459 return getopt (2, myargv, "+a") != '?';
20462 return 0;
20464 _ACEOF
20465 rm -f conftest$ac_exeext
20466 if { (ac_try="$ac_link"
20467 case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20470 esac
20471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20472 $as_echo "$ac_try_echo") >&5
20473 (eval "$ac_link") 2>&5
20474 ac_status=$?
20475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20477 { (case "(($ac_try" in
20478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479 *) ac_try_echo=$ac_try;;
20480 esac
20481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20482 $as_echo "$ac_try_echo") >&5
20483 (eval "$ac_try") 2>&5
20484 ac_status=$?
20485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; }; then
20487 gl_cv_func_gnu_getopt=yes
20488 else
20489 $as_echo "$as_me: program exited with status $ac_status" >&5
20490 $as_echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20493 ( exit $ac_status )
20494 gl_cv_func_gnu_getopt=no
20496 rm -rf conftest.dSYM
20497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20502 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20503 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20504 if test "$gl_cv_func_gnu_getopt" = "no"; then
20505 GETOPT_H=getopt.h
20511 if test -n "$GETOPT_H"; then
20514 GETOPT_H=getopt.h
20516 cat >>confdefs.h <<\_ACEOF
20517 #define __GETOPT_PREFIX rpl_
20518 _ACEOF
20523 GETOPTOBJS='getopt.o getopt1.o'
20530 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20531 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20532 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20533 $as_echo_n "(cached) " >&6
20534 else
20535 # Use it with a single arg.
20536 cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h. */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 $ac_includes_default
20544 main ()
20546 getpgrp (0);
20548 return 0;
20550 _ACEOF
20551 rm -f conftest.$ac_objext
20552 if { (ac_try="$ac_compile"
20553 case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20556 esac
20557 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20558 $as_echo "$ac_try_echo") >&5
20559 (eval "$ac_compile") 2>conftest.er1
20560 ac_status=$?
20561 grep -v '^ *+' conftest.er1 >conftest.err
20562 rm -f conftest.er1
20563 cat conftest.err >&5
20564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } && {
20566 test -z "$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 } && test -s conftest.$ac_objext; then
20569 ac_cv_func_getpgrp_void=no
20570 else
20571 $as_echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20574 ac_cv_func_getpgrp_void=yes
20577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20580 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20581 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20582 if test $ac_cv_func_getpgrp_void = yes; then
20584 cat >>confdefs.h <<\_ACEOF
20585 #define GETPGRP_VOID 1
20586 _ACEOF
20592 for ac_func in strftime
20594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20595 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20596 $as_echo_n "checking for $ac_func... " >&6; }
20597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20598 $as_echo_n "(cached) " >&6
20599 else
20600 cat >conftest.$ac_ext <<_ACEOF
20601 /* confdefs.h. */
20602 _ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20608 #define $ac_func innocuous_$ac_func
20610 /* System header to define __stub macros and hopefully few prototypes,
20611 which can conflict with char $ac_func (); below.
20612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20613 <limits.h> exists even on freestanding compilers. */
20615 #ifdef __STDC__
20616 # include <limits.h>
20617 #else
20618 # include <assert.h>
20619 #endif
20621 #undef $ac_func
20623 /* Override any GCC internal prototype to avoid an error.
20624 Use char because int might match the return type of a GCC
20625 builtin and then its argument prototype would still apply. */
20626 #ifdef __cplusplus
20627 extern "C"
20628 #endif
20629 char $ac_func ();
20630 /* The GNU C library defines this for functions which it implements
20631 to always fail with ENOSYS. Some functions are actually named
20632 something starting with __ and the normal name is an alias. */
20633 #if defined __stub_$ac_func || defined __stub___$ac_func
20634 choke me
20635 #endif
20638 main ()
20640 return $ac_func ();
20642 return 0;
20644 _ACEOF
20645 rm -f conftest.$ac_objext conftest$ac_exeext
20646 if { (ac_try="$ac_link"
20647 case "(($ac_try" in
20648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20650 esac
20651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20652 $as_echo "$ac_try_echo") >&5
20653 (eval "$ac_link") 2>conftest.er1
20654 ac_status=$?
20655 grep -v '^ *+' conftest.er1 >conftest.err
20656 rm -f conftest.er1
20657 cat conftest.err >&5
20658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); } && {
20660 test -z "$ac_c_werror_flag" ||
20661 test ! -s conftest.err
20662 } && test -s conftest$ac_exeext && {
20663 test "$cross_compiling" = yes ||
20664 $as_test_x conftest$ac_exeext
20665 }; then
20666 eval "$as_ac_var=yes"
20667 else
20668 $as_echo "$as_me: failed program was:" >&5
20669 sed 's/^/| /' conftest.$ac_ext >&5
20671 eval "$as_ac_var=no"
20674 rm -rf conftest.dSYM
20675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20676 conftest$ac_exeext conftest.$ac_ext
20678 ac_res=`eval 'as_val=${'$as_ac_var'}
20679 $as_echo "$as_val"'`
20680 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20681 $as_echo "$ac_res" >&6; }
20682 if test `eval 'as_val=${'$as_ac_var'}
20683 $as_echo "$as_val"'` = yes; then
20684 cat >>confdefs.h <<_ACEOF
20685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20686 _ACEOF
20688 else
20689 # strftime is in -lintl on SCO UNIX.
20690 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20691 $as_echo_n "checking for strftime in -lintl... " >&6; }
20692 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20693 $as_echo_n "(cached) " >&6
20694 else
20695 ac_check_lib_save_LIBS=$LIBS
20696 LIBS="-lintl $LIBS"
20697 cat >conftest.$ac_ext <<_ACEOF
20698 /* confdefs.h. */
20699 _ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20704 /* Override any GCC internal prototype to avoid an error.
20705 Use char because int might match the return type of a GCC
20706 builtin and then its argument prototype would still apply. */
20707 #ifdef __cplusplus
20708 extern "C"
20709 #endif
20710 char strftime ();
20712 main ()
20714 return strftime ();
20716 return 0;
20718 _ACEOF
20719 rm -f conftest.$ac_objext conftest$ac_exeext
20720 if { (ac_try="$ac_link"
20721 case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20724 esac
20725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20726 $as_echo "$ac_try_echo") >&5
20727 (eval "$ac_link") 2>conftest.er1
20728 ac_status=$?
20729 grep -v '^ *+' conftest.er1 >conftest.err
20730 rm -f conftest.er1
20731 cat conftest.err >&5
20732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } && {
20734 test -z "$ac_c_werror_flag" ||
20735 test ! -s conftest.err
20736 } && test -s conftest$ac_exeext && {
20737 test "$cross_compiling" = yes ||
20738 $as_test_x conftest$ac_exeext
20739 }; then
20740 ac_cv_lib_intl_strftime=yes
20741 else
20742 $as_echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ac_cv_lib_intl_strftime=no
20748 rm -rf conftest.dSYM
20749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20750 conftest$ac_exeext conftest.$ac_ext
20751 LIBS=$ac_check_lib_save_LIBS
20753 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20754 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20755 if test $ac_cv_lib_intl_strftime = yes; then
20756 cat >>confdefs.h <<\_ACEOF
20757 #define HAVE_STRFTIME 1
20758 _ACEOF
20760 LIBS="-lintl $LIBS"
20764 done
20767 # UNIX98 PTYs.
20769 for ac_func in grantpt
20771 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20772 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20773 $as_echo_n "checking for $ac_func... " >&6; }
20774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20775 $as_echo_n "(cached) " >&6
20776 else
20777 cat >conftest.$ac_ext <<_ACEOF
20778 /* confdefs.h. */
20779 _ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20785 #define $ac_func innocuous_$ac_func
20787 /* System header to define __stub macros and hopefully few prototypes,
20788 which can conflict with char $ac_func (); below.
20789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20790 <limits.h> exists even on freestanding compilers. */
20792 #ifdef __STDC__
20793 # include <limits.h>
20794 #else
20795 # include <assert.h>
20796 #endif
20798 #undef $ac_func
20800 /* Override any GCC internal prototype to avoid an error.
20801 Use char because int might match the return type of a GCC
20802 builtin and then its argument prototype would still apply. */
20803 #ifdef __cplusplus
20804 extern "C"
20805 #endif
20806 char $ac_func ();
20807 /* The GNU C library defines this for functions which it implements
20808 to always fail with ENOSYS. Some functions are actually named
20809 something starting with __ and the normal name is an alias. */
20810 #if defined __stub_$ac_func || defined __stub___$ac_func
20811 choke me
20812 #endif
20815 main ()
20817 return $ac_func ();
20819 return 0;
20821 _ACEOF
20822 rm -f conftest.$ac_objext conftest$ac_exeext
20823 if { (ac_try="$ac_link"
20824 case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20827 esac
20828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20829 $as_echo "$ac_try_echo") >&5
20830 (eval "$ac_link") 2>conftest.er1
20831 ac_status=$?
20832 grep -v '^ *+' conftest.er1 >conftest.err
20833 rm -f conftest.er1
20834 cat conftest.err >&5
20835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); } && {
20837 test -z "$ac_c_werror_flag" ||
20838 test ! -s conftest.err
20839 } && test -s conftest$ac_exeext && {
20840 test "$cross_compiling" = yes ||
20841 $as_test_x conftest$ac_exeext
20842 }; then
20843 eval "$as_ac_var=yes"
20844 else
20845 $as_echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 eval "$as_ac_var=no"
20851 rm -rf conftest.dSYM
20852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20853 conftest$ac_exeext conftest.$ac_ext
20855 ac_res=`eval 'as_val=${'$as_ac_var'}
20856 $as_echo "$as_val"'`
20857 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20858 $as_echo "$ac_res" >&6; }
20859 if test `eval 'as_val=${'$as_ac_var'}
20860 $as_echo "$as_val"'` = yes; then
20861 cat >>confdefs.h <<_ACEOF
20862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20863 _ACEOF
20866 done
20869 # PTY-related GNU extensions.
20871 for ac_func in getpt
20873 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20874 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20875 $as_echo_n "checking for $ac_func... " >&6; }
20876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20877 $as_echo_n "(cached) " >&6
20878 else
20879 cat >conftest.$ac_ext <<_ACEOF
20880 /* confdefs.h. */
20881 _ACEOF
20882 cat confdefs.h >>conftest.$ac_ext
20883 cat >>conftest.$ac_ext <<_ACEOF
20884 /* end confdefs.h. */
20885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20887 #define $ac_func innocuous_$ac_func
20889 /* System header to define __stub macros and hopefully few prototypes,
20890 which can conflict with char $ac_func (); below.
20891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20892 <limits.h> exists even on freestanding compilers. */
20894 #ifdef __STDC__
20895 # include <limits.h>
20896 #else
20897 # include <assert.h>
20898 #endif
20900 #undef $ac_func
20902 /* Override any GCC internal prototype to avoid an error.
20903 Use char because int might match the return type of a GCC
20904 builtin and then its argument prototype would still apply. */
20905 #ifdef __cplusplus
20906 extern "C"
20907 #endif
20908 char $ac_func ();
20909 /* The GNU C library defines this for functions which it implements
20910 to always fail with ENOSYS. Some functions are actually named
20911 something starting with __ and the normal name is an alias. */
20912 #if defined __stub_$ac_func || defined __stub___$ac_func
20913 choke me
20914 #endif
20917 main ()
20919 return $ac_func ();
20921 return 0;
20923 _ACEOF
20924 rm -f conftest.$ac_objext conftest$ac_exeext
20925 if { (ac_try="$ac_link"
20926 case "(($ac_try" in
20927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20928 *) ac_try_echo=$ac_try;;
20929 esac
20930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20931 $as_echo "$ac_try_echo") >&5
20932 (eval "$ac_link") 2>conftest.er1
20933 ac_status=$?
20934 grep -v '^ *+' conftest.er1 >conftest.err
20935 rm -f conftest.er1
20936 cat conftest.err >&5
20937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } && {
20939 test -z "$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20941 } && test -s conftest$ac_exeext && {
20942 test "$cross_compiling" = yes ||
20943 $as_test_x conftest$ac_exeext
20944 }; then
20945 eval "$as_ac_var=yes"
20946 else
20947 $as_echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20950 eval "$as_ac_var=no"
20953 rm -rf conftest.dSYM
20954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20955 conftest$ac_exeext conftest.$ac_ext
20957 ac_res=`eval 'as_val=${'$as_ac_var'}
20958 $as_echo "$as_val"'`
20959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20960 $as_echo "$ac_res" >&6; }
20961 if test `eval 'as_val=${'$as_ac_var'}
20962 $as_echo "$as_val"'` = yes; then
20963 cat >>confdefs.h <<_ACEOF
20964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20965 _ACEOF
20968 done
20971 # Check this now, so that we will NOT find the above functions in ncurses.
20972 # That is because we have not set up to link ncurses in lib-src.
20973 # It's better to believe a function is not available
20974 # than to expect to find it in ncurses.
20976 { $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20977 $as_echo_n "checking for tparm in -lncurses... " >&6; }
20978 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20979 $as_echo_n "(cached) " >&6
20980 else
20981 ac_check_lib_save_LIBS=$LIBS
20982 LIBS="-lncurses $LIBS"
20983 cat >conftest.$ac_ext <<_ACEOF
20984 /* confdefs.h. */
20985 _ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20990 /* Override any GCC internal prototype to avoid an error.
20991 Use char because int might match the return type of a GCC
20992 builtin and then its argument prototype would still apply. */
20993 #ifdef __cplusplus
20994 extern "C"
20995 #endif
20996 char tparm ();
20998 main ()
21000 return tparm ();
21002 return 0;
21004 _ACEOF
21005 rm -f conftest.$ac_objext conftest$ac_exeext
21006 if { (ac_try="$ac_link"
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_link") 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_exeext && {
21023 test "$cross_compiling" = yes ||
21024 $as_test_x conftest$ac_exeext
21025 }; then
21026 ac_cv_lib_ncurses_tparm=yes
21027 else
21028 $as_echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.$ac_ext >&5
21031 ac_cv_lib_ncurses_tparm=no
21034 rm -rf conftest.dSYM
21035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21036 conftest$ac_exeext conftest.$ac_ext
21037 LIBS=$ac_check_lib_save_LIBS
21039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
21040 $as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
21041 if test $ac_cv_lib_ncurses_tparm = yes; then
21042 cat >>confdefs.h <<_ACEOF
21043 #define HAVE_LIBNCURSES 1
21044 _ACEOF
21046 LIBS="-lncurses $LIBS"
21051 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21053 resolv=no
21054 cat >conftest.$ac_ext <<_ACEOF
21055 /* confdefs.h. */
21056 _ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 #include <netinet/in.h>
21061 #include <arpa/nameser.h>
21062 #include <resolv.h>
21064 main ()
21066 return res_init();
21068 return 0;
21070 _ACEOF
21071 rm -f conftest.$ac_objext conftest$ac_exeext
21072 if { (ac_try="$ac_link"
21073 case "(($ac_try" in
21074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075 *) ac_try_echo=$ac_try;;
21076 esac
21077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21078 $as_echo "$ac_try_echo") >&5
21079 (eval "$ac_link") 2>conftest.er1
21080 ac_status=$?
21081 grep -v '^ *+' conftest.er1 >conftest.err
21082 rm -f conftest.er1
21083 cat conftest.err >&5
21084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } && {
21086 test -z "$ac_c_werror_flag" ||
21087 test ! -s conftest.err
21088 } && test -s conftest$ac_exeext && {
21089 test "$cross_compiling" = yes ||
21090 $as_test_x conftest$ac_exeext
21091 }; then
21092 have_res_init=yes
21093 else
21094 $as_echo "$as_me: failed program was:" >&5
21095 sed 's/^/| /' conftest.$ac_ext >&5
21097 have_res_init=no
21100 rm -rf conftest.dSYM
21101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21102 conftest$ac_exeext conftest.$ac_ext
21103 if test "$have_res_init" = no; then
21104 OLIBS="$LIBS"
21105 LIBS="$LIBS -lresolv"
21106 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21107 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21108 cat >conftest.$ac_ext <<_ACEOF
21109 /* confdefs.h. */
21110 _ACEOF
21111 cat confdefs.h >>conftest.$ac_ext
21112 cat >>conftest.$ac_ext <<_ACEOF
21113 /* end confdefs.h. */
21114 #include <netinet/in.h>
21115 #include <arpa/nameser.h>
21116 #include <resolv.h>
21118 main ()
21120 return res_init();
21122 return 0;
21124 _ACEOF
21125 rm -f conftest.$ac_objext conftest$ac_exeext
21126 if { (ac_try="$ac_link"
21127 case "(($ac_try" in
21128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21129 *) ac_try_echo=$ac_try;;
21130 esac
21131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21132 $as_echo "$ac_try_echo") >&5
21133 (eval "$ac_link") 2>conftest.er1
21134 ac_status=$?
21135 grep -v '^ *+' conftest.er1 >conftest.err
21136 rm -f conftest.er1
21137 cat conftest.err >&5
21138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest$ac_exeext && {
21143 test "$cross_compiling" = yes ||
21144 $as_test_x conftest$ac_exeext
21145 }; then
21146 have_res_init=yes
21147 else
21148 $as_echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 have_res_init=no
21154 rm -rf conftest.dSYM
21155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21156 conftest$ac_exeext conftest.$ac_ext
21157 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21158 $as_echo "$have_res_init" >&6; }
21159 if test "$have_res_init" = yes ; then
21160 resolv=yes
21162 LIBS="$OLIBS"
21165 if test "$have_res_init" = yes; then
21167 cat >>confdefs.h <<\_ACEOF
21168 #define HAVE_RES_INIT 1
21169 _ACEOF
21173 # Do we need the Hesiod library to provide the support routines?
21174 if test "$with_hesiod" != no ; then
21175 # Don't set $LIBS here -- see comments above.
21176 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21177 $as_echo_n "checking for res_send... " >&6; }
21178 if test "${ac_cv_func_res_send+set}" = set; then
21179 $as_echo_n "(cached) " >&6
21180 else
21181 cat >conftest.$ac_ext <<_ACEOF
21182 /* confdefs.h. */
21183 _ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21189 #define res_send innocuous_res_send
21191 /* System header to define __stub macros and hopefully few prototypes,
21192 which can conflict with char res_send (); below.
21193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21194 <limits.h> exists even on freestanding compilers. */
21196 #ifdef __STDC__
21197 # include <limits.h>
21198 #else
21199 # include <assert.h>
21200 #endif
21202 #undef res_send
21204 /* Override any GCC internal prototype to avoid an error.
21205 Use char because int might match the return type of a GCC
21206 builtin and then its argument prototype would still apply. */
21207 #ifdef __cplusplus
21208 extern "C"
21209 #endif
21210 char res_send ();
21211 /* The GNU C library defines this for functions which it implements
21212 to always fail with ENOSYS. Some functions are actually named
21213 something starting with __ and the normal name is an alias. */
21214 #if defined __stub_res_send || defined __stub___res_send
21215 choke me
21216 #endif
21219 main ()
21221 return res_send ();
21223 return 0;
21225 _ACEOF
21226 rm -f conftest.$ac_objext conftest$ac_exeext
21227 if { (ac_try="$ac_link"
21228 case "(($ac_try" in
21229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21230 *) ac_try_echo=$ac_try;;
21231 esac
21232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21233 $as_echo "$ac_try_echo") >&5
21234 (eval "$ac_link") 2>conftest.er1
21235 ac_status=$?
21236 grep -v '^ *+' conftest.er1 >conftest.err
21237 rm -f conftest.er1
21238 cat conftest.err >&5
21239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); } && {
21241 test -z "$ac_c_werror_flag" ||
21242 test ! -s conftest.err
21243 } && test -s conftest$ac_exeext && {
21244 test "$cross_compiling" = yes ||
21245 $as_test_x conftest$ac_exeext
21246 }; then
21247 ac_cv_func_res_send=yes
21248 else
21249 $as_echo "$as_me: failed program was:" >&5
21250 sed 's/^/| /' conftest.$ac_ext >&5
21252 ac_cv_func_res_send=no
21255 rm -rf conftest.dSYM
21256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21257 conftest$ac_exeext conftest.$ac_ext
21259 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21260 $as_echo "$ac_cv_func_res_send" >&6; }
21261 if test $ac_cv_func_res_send = yes; then
21263 else
21264 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21265 $as_echo_n "checking for __res_send... " >&6; }
21266 if test "${ac_cv_func___res_send+set}" = set; then
21267 $as_echo_n "(cached) " >&6
21268 else
21269 cat >conftest.$ac_ext <<_ACEOF
21270 /* confdefs.h. */
21271 _ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21275 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21277 #define __res_send innocuous___res_send
21279 /* System header to define __stub macros and hopefully few prototypes,
21280 which can conflict with char __res_send (); below.
21281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21282 <limits.h> exists even on freestanding compilers. */
21284 #ifdef __STDC__
21285 # include <limits.h>
21286 #else
21287 # include <assert.h>
21288 #endif
21290 #undef __res_send
21292 /* Override any GCC internal prototype to avoid an error.
21293 Use char because int might match the return type of a GCC
21294 builtin and then its argument prototype would still apply. */
21295 #ifdef __cplusplus
21296 extern "C"
21297 #endif
21298 char __res_send ();
21299 /* The GNU C library defines this for functions which it implements
21300 to always fail with ENOSYS. Some functions are actually named
21301 something starting with __ and the normal name is an alias. */
21302 #if defined __stub___res_send || defined __stub_____res_send
21303 choke me
21304 #endif
21307 main ()
21309 return __res_send ();
21311 return 0;
21313 _ACEOF
21314 rm -f conftest.$ac_objext conftest$ac_exeext
21315 if { (ac_try="$ac_link"
21316 case "(($ac_try" in
21317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21318 *) ac_try_echo=$ac_try;;
21319 esac
21320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21321 $as_echo "$ac_try_echo") >&5
21322 (eval "$ac_link") 2>conftest.er1
21323 ac_status=$?
21324 grep -v '^ *+' conftest.er1 >conftest.err
21325 rm -f conftest.er1
21326 cat conftest.err >&5
21327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21328 (exit $ac_status); } && {
21329 test -z "$ac_c_werror_flag" ||
21330 test ! -s conftest.err
21331 } && test -s conftest$ac_exeext && {
21332 test "$cross_compiling" = yes ||
21333 $as_test_x conftest$ac_exeext
21334 }; then
21335 ac_cv_func___res_send=yes
21336 else
21337 $as_echo "$as_me: failed program was:" >&5
21338 sed 's/^/| /' conftest.$ac_ext >&5
21340 ac_cv_func___res_send=no
21343 rm -rf conftest.dSYM
21344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21345 conftest$ac_exeext conftest.$ac_ext
21347 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21348 $as_echo "$ac_cv_func___res_send" >&6; }
21349 if test $ac_cv_func___res_send = yes; then
21351 else
21352 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21353 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21354 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21355 $as_echo_n "(cached) " >&6
21356 else
21357 ac_check_lib_save_LIBS=$LIBS
21358 LIBS="-lresolv $LIBS"
21359 cat >conftest.$ac_ext <<_ACEOF
21360 /* confdefs.h. */
21361 _ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h. */
21366 /* Override any GCC internal prototype to avoid an error.
21367 Use char because int might match the return type of a GCC
21368 builtin and then its argument prototype would still apply. */
21369 #ifdef __cplusplus
21370 extern "C"
21371 #endif
21372 char res_send ();
21374 main ()
21376 return res_send ();
21378 return 0;
21380 _ACEOF
21381 rm -f conftest.$ac_objext conftest$ac_exeext
21382 if { (ac_try="$ac_link"
21383 case "(($ac_try" in
21384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21385 *) ac_try_echo=$ac_try;;
21386 esac
21387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21388 $as_echo "$ac_try_echo") >&5
21389 (eval "$ac_link") 2>conftest.er1
21390 ac_status=$?
21391 grep -v '^ *+' conftest.er1 >conftest.err
21392 rm -f conftest.er1
21393 cat conftest.err >&5
21394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && {
21396 test -z "$ac_c_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest$ac_exeext && {
21399 test "$cross_compiling" = yes ||
21400 $as_test_x conftest$ac_exeext
21401 }; then
21402 ac_cv_lib_resolv_res_send=yes
21403 else
21404 $as_echo "$as_me: failed program was:" >&5
21405 sed 's/^/| /' conftest.$ac_ext >&5
21407 ac_cv_lib_resolv_res_send=no
21410 rm -rf conftest.dSYM
21411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21412 conftest$ac_exeext conftest.$ac_ext
21413 LIBS=$ac_check_lib_save_LIBS
21415 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21416 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21417 if test $ac_cv_lib_resolv_res_send = yes; then
21418 resolv=yes
21419 else
21420 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21421 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21422 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21423 $as_echo_n "(cached) " >&6
21424 else
21425 ac_check_lib_save_LIBS=$LIBS
21426 LIBS="-lresolv $LIBS"
21427 cat >conftest.$ac_ext <<_ACEOF
21428 /* confdefs.h. */
21429 _ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21434 /* Override any GCC internal prototype to avoid an error.
21435 Use char because int might match the return type of a GCC
21436 builtin and then its argument prototype would still apply. */
21437 #ifdef __cplusplus
21438 extern "C"
21439 #endif
21440 char __res_send ();
21442 main ()
21444 return __res_send ();
21446 return 0;
21448 _ACEOF
21449 rm -f conftest.$ac_objext conftest$ac_exeext
21450 if { (ac_try="$ac_link"
21451 case "(($ac_try" in
21452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21453 *) ac_try_echo=$ac_try;;
21454 esac
21455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21456 $as_echo "$ac_try_echo") >&5
21457 (eval "$ac_link") 2>conftest.er1
21458 ac_status=$?
21459 grep -v '^ *+' conftest.er1 >conftest.err
21460 rm -f conftest.er1
21461 cat conftest.err >&5
21462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } && {
21464 test -z "$ac_c_werror_flag" ||
21465 test ! -s conftest.err
21466 } && test -s conftest$ac_exeext && {
21467 test "$cross_compiling" = yes ||
21468 $as_test_x conftest$ac_exeext
21469 }; then
21470 ac_cv_lib_resolv___res_send=yes
21471 else
21472 $as_echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21475 ac_cv_lib_resolv___res_send=no
21478 rm -rf conftest.dSYM
21479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21480 conftest$ac_exeext conftest.$ac_ext
21481 LIBS=$ac_check_lib_save_LIBS
21483 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21484 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21485 if test $ac_cv_lib_resolv___res_send = yes; then
21486 resolv=yes
21495 if test "$resolv" = yes ; then
21496 RESOLVLIB=-lresolv
21497 else
21498 RESOLVLIB=
21500 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21501 $as_echo_n "checking for hes_getmailhost... " >&6; }
21502 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21503 $as_echo_n "(cached) " >&6
21504 else
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h. */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21513 #define hes_getmailhost innocuous_hes_getmailhost
21515 /* System header to define __stub macros and hopefully few prototypes,
21516 which can conflict with char hes_getmailhost (); below.
21517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21518 <limits.h> exists even on freestanding compilers. */
21520 #ifdef __STDC__
21521 # include <limits.h>
21522 #else
21523 # include <assert.h>
21524 #endif
21526 #undef hes_getmailhost
21528 /* Override any GCC internal prototype to avoid an error.
21529 Use char because int might match the return type of a GCC
21530 builtin and then its argument prototype would still apply. */
21531 #ifdef __cplusplus
21532 extern "C"
21533 #endif
21534 char hes_getmailhost ();
21535 /* The GNU C library defines this for functions which it implements
21536 to always fail with ENOSYS. Some functions are actually named
21537 something starting with __ and the normal name is an alias. */
21538 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21539 choke me
21540 #endif
21543 main ()
21545 return hes_getmailhost ();
21547 return 0;
21549 _ACEOF
21550 rm -f conftest.$ac_objext conftest$ac_exeext
21551 if { (ac_try="$ac_link"
21552 case "(($ac_try" in
21553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554 *) ac_try_echo=$ac_try;;
21555 esac
21556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21557 $as_echo "$ac_try_echo") >&5
21558 (eval "$ac_link") 2>conftest.er1
21559 ac_status=$?
21560 grep -v '^ *+' conftest.er1 >conftest.err
21561 rm -f conftest.er1
21562 cat conftest.err >&5
21563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } && {
21565 test -z "$ac_c_werror_flag" ||
21566 test ! -s conftest.err
21567 } && test -s conftest$ac_exeext && {
21568 test "$cross_compiling" = yes ||
21569 $as_test_x conftest$ac_exeext
21570 }; then
21571 ac_cv_func_hes_getmailhost=yes
21572 else
21573 $as_echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 ac_cv_func_hes_getmailhost=no
21579 rm -rf conftest.dSYM
21580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21581 conftest$ac_exeext conftest.$ac_ext
21583 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21584 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21585 if test $ac_cv_func_hes_getmailhost = yes; then
21587 else
21588 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21589 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21590 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21591 $as_echo_n "(cached) " >&6
21592 else
21593 ac_check_lib_save_LIBS=$LIBS
21594 LIBS="-lhesiod $RESOLVLIB $LIBS"
21595 cat >conftest.$ac_ext <<_ACEOF
21596 /* confdefs.h. */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h. */
21602 /* Override any GCC internal prototype to avoid an error.
21603 Use char because int might match the return type of a GCC
21604 builtin and then its argument prototype would still apply. */
21605 #ifdef __cplusplus
21606 extern "C"
21607 #endif
21608 char hes_getmailhost ();
21610 main ()
21612 return hes_getmailhost ();
21614 return 0;
21616 _ACEOF
21617 rm -f conftest.$ac_objext conftest$ac_exeext
21618 if { (ac_try="$ac_link"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21622 esac
21623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21624 $as_echo "$ac_try_echo") >&5
21625 (eval "$ac_link") 2>conftest.er1
21626 ac_status=$?
21627 grep -v '^ *+' conftest.er1 >conftest.err
21628 rm -f conftest.er1
21629 cat conftest.err >&5
21630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } && {
21632 test -z "$ac_c_werror_flag" ||
21633 test ! -s conftest.err
21634 } && test -s conftest$ac_exeext && {
21635 test "$cross_compiling" = yes ||
21636 $as_test_x conftest$ac_exeext
21637 }; then
21638 ac_cv_lib_hesiod_hes_getmailhost=yes
21639 else
21640 $as_echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21643 ac_cv_lib_hesiod_hes_getmailhost=no
21646 rm -rf conftest.dSYM
21647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21648 conftest$ac_exeext conftest.$ac_ext
21649 LIBS=$ac_check_lib_save_LIBS
21651 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21652 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21653 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21655 cat >>confdefs.h <<\_ACEOF
21656 #define HAVE_LIBHESIOD 1
21657 _ACEOF
21659 else
21667 # Do we need libresolv (due to res_init or Hesiod)?
21668 if test "$resolv" = yes ; then
21670 cat >>confdefs.h <<\_ACEOF
21671 #define HAVE_LIBRESOLV 1
21672 _ACEOF
21676 # These tell us which Kerberos-related libraries to use.
21677 if test "${with_kerberos}" != no; then
21679 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21680 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21681 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21682 $as_echo_n "(cached) " >&6
21683 else
21684 ac_check_lib_save_LIBS=$LIBS
21685 LIBS="-lcom_err $LIBS"
21686 cat >conftest.$ac_ext <<_ACEOF
21687 /* confdefs.h. */
21688 _ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21693 /* Override any GCC internal prototype to avoid an error.
21694 Use char because int might match the return type of a GCC
21695 builtin and then its argument prototype would still apply. */
21696 #ifdef __cplusplus
21697 extern "C"
21698 #endif
21699 char com_err ();
21701 main ()
21703 return com_err ();
21705 return 0;
21707 _ACEOF
21708 rm -f conftest.$ac_objext conftest$ac_exeext
21709 if { (ac_try="$ac_link"
21710 case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21713 esac
21714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21715 $as_echo "$ac_try_echo") >&5
21716 (eval "$ac_link") 2>conftest.er1
21717 ac_status=$?
21718 grep -v '^ *+' conftest.er1 >conftest.err
21719 rm -f conftest.er1
21720 cat conftest.err >&5
21721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } && {
21723 test -z "$ac_c_werror_flag" ||
21724 test ! -s conftest.err
21725 } && test -s conftest$ac_exeext && {
21726 test "$cross_compiling" = yes ||
21727 $as_test_x conftest$ac_exeext
21728 }; then
21729 ac_cv_lib_com_err_com_err=yes
21730 else
21731 $as_echo "$as_me: failed program was:" >&5
21732 sed 's/^/| /' conftest.$ac_ext >&5
21734 ac_cv_lib_com_err_com_err=no
21737 rm -rf conftest.dSYM
21738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21739 conftest$ac_exeext conftest.$ac_ext
21740 LIBS=$ac_check_lib_save_LIBS
21742 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21743 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21744 if test $ac_cv_lib_com_err_com_err = yes; then
21745 cat >>confdefs.h <<_ACEOF
21746 #define HAVE_LIBCOM_ERR 1
21747 _ACEOF
21749 LIBS="-lcom_err $LIBS"
21754 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21755 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21756 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21757 $as_echo_n "(cached) " >&6
21758 else
21759 ac_check_lib_save_LIBS=$LIBS
21760 LIBS="-lk5crypto $LIBS"
21761 cat >conftest.$ac_ext <<_ACEOF
21762 /* confdefs.h. */
21763 _ACEOF
21764 cat confdefs.h >>conftest.$ac_ext
21765 cat >>conftest.$ac_ext <<_ACEOF
21766 /* end confdefs.h. */
21768 /* Override any GCC internal prototype to avoid an error.
21769 Use char because int might match the return type of a GCC
21770 builtin and then its argument prototype would still apply. */
21771 #ifdef __cplusplus
21772 extern "C"
21773 #endif
21774 char mit_des_cbc_encrypt ();
21776 main ()
21778 return mit_des_cbc_encrypt ();
21780 return 0;
21782 _ACEOF
21783 rm -f conftest.$ac_objext conftest$ac_exeext
21784 if { (ac_try="$ac_link"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21788 esac
21789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21790 $as_echo "$ac_try_echo") >&5
21791 (eval "$ac_link") 2>conftest.er1
21792 ac_status=$?
21793 grep -v '^ *+' conftest.er1 >conftest.err
21794 rm -f conftest.er1
21795 cat conftest.err >&5
21796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } && {
21798 test -z "$ac_c_werror_flag" ||
21799 test ! -s conftest.err
21800 } && test -s conftest$ac_exeext && {
21801 test "$cross_compiling" = yes ||
21802 $as_test_x conftest$ac_exeext
21803 }; then
21804 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21805 else
21806 $as_echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21812 rm -rf conftest.dSYM
21813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21814 conftest$ac_exeext conftest.$ac_ext
21815 LIBS=$ac_check_lib_save_LIBS
21817 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21818 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21819 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21820 cat >>confdefs.h <<_ACEOF
21821 #define HAVE_LIBK5CRYPTO 1
21822 _ACEOF
21824 LIBS="-lk5crypto $LIBS"
21829 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21830 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21831 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21832 $as_echo_n "(cached) " >&6
21833 else
21834 ac_check_lib_save_LIBS=$LIBS
21835 LIBS="-lcrypto $LIBS"
21836 cat >conftest.$ac_ext <<_ACEOF
21837 /* confdefs.h. */
21838 _ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21843 /* Override any GCC internal prototype to avoid an error.
21844 Use char because int might match the return type of a GCC
21845 builtin and then its argument prototype would still apply. */
21846 #ifdef __cplusplus
21847 extern "C"
21848 #endif
21849 char mit_des_cbc_encrypt ();
21851 main ()
21853 return mit_des_cbc_encrypt ();
21855 return 0;
21857 _ACEOF
21858 rm -f conftest.$ac_objext conftest$ac_exeext
21859 if { (ac_try="$ac_link"
21860 case "(($ac_try" in
21861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21862 *) ac_try_echo=$ac_try;;
21863 esac
21864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21865 $as_echo "$ac_try_echo") >&5
21866 (eval "$ac_link") 2>conftest.er1
21867 ac_status=$?
21868 grep -v '^ *+' conftest.er1 >conftest.err
21869 rm -f conftest.er1
21870 cat conftest.err >&5
21871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest$ac_exeext && {
21876 test "$cross_compiling" = yes ||
21877 $as_test_x conftest$ac_exeext
21878 }; then
21879 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21880 else
21881 $as_echo "$as_me: failed program was:" >&5
21882 sed 's/^/| /' conftest.$ac_ext >&5
21884 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21887 rm -rf conftest.dSYM
21888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21889 conftest$ac_exeext conftest.$ac_ext
21890 LIBS=$ac_check_lib_save_LIBS
21892 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21893 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21894 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21895 cat >>confdefs.h <<_ACEOF
21896 #define HAVE_LIBCRYPTO 1
21897 _ACEOF
21899 LIBS="-lcrypto $LIBS"
21904 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21905 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
21906 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21907 $as_echo_n "(cached) " >&6
21908 else
21909 ac_check_lib_save_LIBS=$LIBS
21910 LIBS="-lkrb5 $LIBS"
21911 cat >conftest.$ac_ext <<_ACEOF
21912 /* confdefs.h. */
21913 _ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21918 /* Override any GCC internal prototype to avoid an error.
21919 Use char because int might match the return type of a GCC
21920 builtin and then its argument prototype would still apply. */
21921 #ifdef __cplusplus
21922 extern "C"
21923 #endif
21924 char krb5_init_context ();
21926 main ()
21928 return krb5_init_context ();
21930 return 0;
21932 _ACEOF
21933 rm -f conftest.$ac_objext conftest$ac_exeext
21934 if { (ac_try="$ac_link"
21935 case "(($ac_try" in
21936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937 *) ac_try_echo=$ac_try;;
21938 esac
21939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21940 $as_echo "$ac_try_echo") >&5
21941 (eval "$ac_link") 2>conftest.er1
21942 ac_status=$?
21943 grep -v '^ *+' conftest.er1 >conftest.err
21944 rm -f conftest.er1
21945 cat conftest.err >&5
21946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest$ac_exeext && {
21951 test "$cross_compiling" = yes ||
21952 $as_test_x conftest$ac_exeext
21953 }; then
21954 ac_cv_lib_krb5_krb5_init_context=yes
21955 else
21956 $as_echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21959 ac_cv_lib_krb5_krb5_init_context=no
21962 rm -rf conftest.dSYM
21963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21964 conftest$ac_exeext conftest.$ac_ext
21965 LIBS=$ac_check_lib_save_LIBS
21967 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21968 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
21969 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21970 cat >>confdefs.h <<_ACEOF
21971 #define HAVE_LIBKRB5 1
21972 _ACEOF
21974 LIBS="-lkrb5 $LIBS"
21978 if test "${with_kerberos5}" = no; then
21980 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21981 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
21982 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21983 $as_echo_n "(cached) " >&6
21984 else
21985 ac_check_lib_save_LIBS=$LIBS
21986 LIBS="-ldes425 $LIBS"
21987 cat >conftest.$ac_ext <<_ACEOF
21988 /* confdefs.h. */
21989 _ACEOF
21990 cat confdefs.h >>conftest.$ac_ext
21991 cat >>conftest.$ac_ext <<_ACEOF
21992 /* end confdefs.h. */
21994 /* Override any GCC internal prototype to avoid an error.
21995 Use char because int might match the return type of a GCC
21996 builtin and then its argument prototype would still apply. */
21997 #ifdef __cplusplus
21998 extern "C"
21999 #endif
22000 char des_cbc_encrypt ();
22002 main ()
22004 return des_cbc_encrypt ();
22006 return 0;
22008 _ACEOF
22009 rm -f conftest.$ac_objext conftest$ac_exeext
22010 if { (ac_try="$ac_link"
22011 case "(($ac_try" in
22012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22013 *) ac_try_echo=$ac_try;;
22014 esac
22015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22016 $as_echo "$ac_try_echo") >&5
22017 (eval "$ac_link") 2>conftest.er1
22018 ac_status=$?
22019 grep -v '^ *+' conftest.er1 >conftest.err
22020 rm -f conftest.er1
22021 cat conftest.err >&5
22022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } && {
22024 test -z "$ac_c_werror_flag" ||
22025 test ! -s conftest.err
22026 } && test -s conftest$ac_exeext && {
22027 test "$cross_compiling" = yes ||
22028 $as_test_x conftest$ac_exeext
22029 }; then
22030 ac_cv_lib_des425_des_cbc_encrypt=yes
22031 else
22032 $as_echo "$as_me: failed program was:" >&5
22033 sed 's/^/| /' conftest.$ac_ext >&5
22035 ac_cv_lib_des425_des_cbc_encrypt=no
22038 rm -rf conftest.dSYM
22039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22040 conftest$ac_exeext conftest.$ac_ext
22041 LIBS=$ac_check_lib_save_LIBS
22043 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22044 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22045 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22046 cat >>confdefs.h <<_ACEOF
22047 #define HAVE_LIBDES425 1
22048 _ACEOF
22050 LIBS="-ldes425 $LIBS"
22052 else
22054 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22055 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22056 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22057 $as_echo_n "(cached) " >&6
22058 else
22059 ac_check_lib_save_LIBS=$LIBS
22060 LIBS="-ldes $LIBS"
22061 cat >conftest.$ac_ext <<_ACEOF
22062 /* confdefs.h. */
22063 _ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22068 /* Override any GCC internal prototype to avoid an error.
22069 Use char because int might match the return type of a GCC
22070 builtin and then its argument prototype would still apply. */
22071 #ifdef __cplusplus
22072 extern "C"
22073 #endif
22074 char des_cbc_encrypt ();
22076 main ()
22078 return des_cbc_encrypt ();
22080 return 0;
22082 _ACEOF
22083 rm -f conftest.$ac_objext conftest$ac_exeext
22084 if { (ac_try="$ac_link"
22085 case "(($ac_try" in
22086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087 *) ac_try_echo=$ac_try;;
22088 esac
22089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22090 $as_echo "$ac_try_echo") >&5
22091 (eval "$ac_link") 2>conftest.er1
22092 ac_status=$?
22093 grep -v '^ *+' conftest.er1 >conftest.err
22094 rm -f conftest.er1
22095 cat conftest.err >&5
22096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } && {
22098 test -z "$ac_c_werror_flag" ||
22099 test ! -s conftest.err
22100 } && test -s conftest$ac_exeext && {
22101 test "$cross_compiling" = yes ||
22102 $as_test_x conftest$ac_exeext
22103 }; then
22104 ac_cv_lib_des_des_cbc_encrypt=yes
22105 else
22106 $as_echo "$as_me: failed program was:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22109 ac_cv_lib_des_des_cbc_encrypt=no
22112 rm -rf conftest.dSYM
22113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22114 conftest$ac_exeext conftest.$ac_ext
22115 LIBS=$ac_check_lib_save_LIBS
22117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22118 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22119 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22120 cat >>confdefs.h <<_ACEOF
22121 #define HAVE_LIBDES 1
22122 _ACEOF
22124 LIBS="-ldes $LIBS"
22131 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22132 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22133 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22134 $as_echo_n "(cached) " >&6
22135 else
22136 ac_check_lib_save_LIBS=$LIBS
22137 LIBS="-lkrb4 $LIBS"
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h. */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h. */
22145 /* Override any GCC internal prototype to avoid an error.
22146 Use char because int might match the return type of a GCC
22147 builtin and then its argument prototype would still apply. */
22148 #ifdef __cplusplus
22149 extern "C"
22150 #endif
22151 char krb_get_cred ();
22153 main ()
22155 return krb_get_cred ();
22157 return 0;
22159 _ACEOF
22160 rm -f conftest.$ac_objext conftest$ac_exeext
22161 if { (ac_try="$ac_link"
22162 case "(($ac_try" in
22163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164 *) ac_try_echo=$ac_try;;
22165 esac
22166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22167 $as_echo "$ac_try_echo") >&5
22168 (eval "$ac_link") 2>conftest.er1
22169 ac_status=$?
22170 grep -v '^ *+' conftest.er1 >conftest.err
22171 rm -f conftest.er1
22172 cat conftest.err >&5
22173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); } && {
22175 test -z "$ac_c_werror_flag" ||
22176 test ! -s conftest.err
22177 } && test -s conftest$ac_exeext && {
22178 test "$cross_compiling" = yes ||
22179 $as_test_x conftest$ac_exeext
22180 }; then
22181 ac_cv_lib_krb4_krb_get_cred=yes
22182 else
22183 $as_echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22186 ac_cv_lib_krb4_krb_get_cred=no
22189 rm -rf conftest.dSYM
22190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22191 conftest$ac_exeext conftest.$ac_ext
22192 LIBS=$ac_check_lib_save_LIBS
22194 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22195 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22196 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22197 cat >>confdefs.h <<_ACEOF
22198 #define HAVE_LIBKRB4 1
22199 _ACEOF
22201 LIBS="-lkrb4 $LIBS"
22203 else
22205 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22206 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22207 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22208 $as_echo_n "(cached) " >&6
22209 else
22210 ac_check_lib_save_LIBS=$LIBS
22211 LIBS="-lkrb $LIBS"
22212 cat >conftest.$ac_ext <<_ACEOF
22213 /* confdefs.h. */
22214 _ACEOF
22215 cat confdefs.h >>conftest.$ac_ext
22216 cat >>conftest.$ac_ext <<_ACEOF
22217 /* end confdefs.h. */
22219 /* Override any GCC internal prototype to avoid an error.
22220 Use char because int might match the return type of a GCC
22221 builtin and then its argument prototype would still apply. */
22222 #ifdef __cplusplus
22223 extern "C"
22224 #endif
22225 char krb_get_cred ();
22227 main ()
22229 return krb_get_cred ();
22231 return 0;
22233 _ACEOF
22234 rm -f conftest.$ac_objext conftest$ac_exeext
22235 if { (ac_try="$ac_link"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22239 esac
22240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241 $as_echo "$ac_try_echo") >&5
22242 (eval "$ac_link") 2>conftest.er1
22243 ac_status=$?
22244 grep -v '^ *+' conftest.er1 >conftest.err
22245 rm -f conftest.er1
22246 cat conftest.err >&5
22247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && {
22249 test -z "$ac_c_werror_flag" ||
22250 test ! -s conftest.err
22251 } && test -s conftest$ac_exeext && {
22252 test "$cross_compiling" = yes ||
22253 $as_test_x conftest$ac_exeext
22254 }; then
22255 ac_cv_lib_krb_krb_get_cred=yes
22256 else
22257 $as_echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22260 ac_cv_lib_krb_krb_get_cred=no
22263 rm -rf conftest.dSYM
22264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22265 conftest$ac_exeext conftest.$ac_ext
22266 LIBS=$ac_check_lib_save_LIBS
22268 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22269 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22270 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22271 cat >>confdefs.h <<_ACEOF
22272 #define HAVE_LIBKRB 1
22273 _ACEOF
22275 LIBS="-lkrb $LIBS"
22283 if test "${with_kerberos5}" != no; then
22285 for ac_header in krb5.h
22287 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22289 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22290 $as_echo_n "checking for $ac_header... " >&6; }
22291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22292 $as_echo_n "(cached) " >&6
22294 ac_res=`eval 'as_val=${'$as_ac_Header'}
22295 $as_echo "$as_val"'`
22296 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22297 $as_echo "$ac_res" >&6; }
22298 else
22299 # Is the header compilable?
22300 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22301 $as_echo_n "checking $ac_header usability... " >&6; }
22302 cat >conftest.$ac_ext <<_ACEOF
22303 /* confdefs.h. */
22304 _ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22308 $ac_includes_default
22309 #include <$ac_header>
22310 _ACEOF
22311 rm -f conftest.$ac_objext
22312 if { (ac_try="$ac_compile"
22313 case "(($ac_try" in
22314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22315 *) ac_try_echo=$ac_try;;
22316 esac
22317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22318 $as_echo "$ac_try_echo") >&5
22319 (eval "$ac_compile") 2>conftest.er1
22320 ac_status=$?
22321 grep -v '^ *+' conftest.er1 >conftest.err
22322 rm -f conftest.er1
22323 cat conftest.err >&5
22324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } && {
22326 test -z "$ac_c_werror_flag" ||
22327 test ! -s conftest.err
22328 } && test -s conftest.$ac_objext; then
22329 ac_header_compiler=yes
22330 else
22331 $as_echo "$as_me: failed program was:" >&5
22332 sed 's/^/| /' conftest.$ac_ext >&5
22334 ac_header_compiler=no
22337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22338 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22339 $as_echo "$ac_header_compiler" >&6; }
22341 # Is the header present?
22342 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22343 $as_echo_n "checking $ac_header presence... " >&6; }
22344 cat >conftest.$ac_ext <<_ACEOF
22345 /* confdefs.h. */
22346 _ACEOF
22347 cat confdefs.h >>conftest.$ac_ext
22348 cat >>conftest.$ac_ext <<_ACEOF
22349 /* end confdefs.h. */
22350 #include <$ac_header>
22351 _ACEOF
22352 if { (ac_try="$ac_cpp conftest.$ac_ext"
22353 case "(($ac_try" in
22354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22355 *) ac_try_echo=$ac_try;;
22356 esac
22357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22358 $as_echo "$ac_try_echo") >&5
22359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22360 ac_status=$?
22361 grep -v '^ *+' conftest.er1 >conftest.err
22362 rm -f conftest.er1
22363 cat conftest.err >&5
22364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); } >/dev/null && {
22366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22367 test ! -s conftest.err
22368 }; then
22369 ac_header_preproc=yes
22370 else
22371 $as_echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22374 ac_header_preproc=no
22377 rm -f conftest.err conftest.$ac_ext
22378 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22379 $as_echo "$ac_header_preproc" >&6; }
22381 # So? What about this header?
22382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22383 yes:no: )
22384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22385 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22387 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22388 ac_header_preproc=yes
22390 no:yes:* )
22391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22392 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22394 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22396 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22398 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22400 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22402 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22405 esac
22406 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22407 $as_echo_n "checking for $ac_header... " >&6; }
22408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22409 $as_echo_n "(cached) " >&6
22410 else
22411 eval "$as_ac_Header=\$ac_header_preproc"
22413 ac_res=`eval 'as_val=${'$as_ac_Header'}
22414 $as_echo "$as_val"'`
22415 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22416 $as_echo "$ac_res" >&6; }
22419 if test `eval 'as_val=${'$as_ac_Header'}
22420 $as_echo "$as_val"'` = yes; then
22421 cat >>confdefs.h <<_ACEOF
22422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22423 _ACEOF
22424 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22425 $as_echo_n "checking for krb5_error.text... " >&6; }
22426 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22427 $as_echo_n "(cached) " >&6
22428 else
22429 cat >conftest.$ac_ext <<_ACEOF
22430 /* confdefs.h. */
22431 _ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h. */
22435 #include <krb5.h>
22438 main ()
22440 static krb5_error ac_aggr;
22441 if (ac_aggr.text)
22442 return 0;
22444 return 0;
22446 _ACEOF
22447 rm -f conftest.$ac_objext
22448 if { (ac_try="$ac_compile"
22449 case "(($ac_try" in
22450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451 *) ac_try_echo=$ac_try;;
22452 esac
22453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22454 $as_echo "$ac_try_echo") >&5
22455 (eval "$ac_compile") 2>conftest.er1
22456 ac_status=$?
22457 grep -v '^ *+' conftest.er1 >conftest.err
22458 rm -f conftest.er1
22459 cat conftest.err >&5
22460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && {
22462 test -z "$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 } && test -s conftest.$ac_objext; then
22465 ac_cv_member_krb5_error_text=yes
22466 else
22467 $as_echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22470 cat >conftest.$ac_ext <<_ACEOF
22471 /* confdefs.h. */
22472 _ACEOF
22473 cat confdefs.h >>conftest.$ac_ext
22474 cat >>conftest.$ac_ext <<_ACEOF
22475 /* end confdefs.h. */
22476 #include <krb5.h>
22479 main ()
22481 static krb5_error ac_aggr;
22482 if (sizeof ac_aggr.text)
22483 return 0;
22485 return 0;
22487 _ACEOF
22488 rm -f conftest.$ac_objext
22489 if { (ac_try="$ac_compile"
22490 case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22493 esac
22494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22495 $as_echo "$ac_try_echo") >&5
22496 (eval "$ac_compile") 2>conftest.er1
22497 ac_status=$?
22498 grep -v '^ *+' conftest.er1 >conftest.err
22499 rm -f conftest.er1
22500 cat conftest.err >&5
22501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); } && {
22503 test -z "$ac_c_werror_flag" ||
22504 test ! -s conftest.err
22505 } && test -s conftest.$ac_objext; then
22506 ac_cv_member_krb5_error_text=yes
22507 else
22508 $as_echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 ac_cv_member_krb5_error_text=no
22514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22519 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22520 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22521 if test $ac_cv_member_krb5_error_text = yes; then
22523 cat >>confdefs.h <<_ACEOF
22524 #define HAVE_KRB5_ERROR_TEXT 1
22525 _ACEOF
22529 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22530 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22531 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22532 $as_echo_n "(cached) " >&6
22533 else
22534 cat >conftest.$ac_ext <<_ACEOF
22535 /* confdefs.h. */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 #include <krb5.h>
22543 main ()
22545 static krb5_error ac_aggr;
22546 if (ac_aggr.e_text)
22547 return 0;
22549 return 0;
22551 _ACEOF
22552 rm -f conftest.$ac_objext
22553 if { (ac_try="$ac_compile"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22557 esac
22558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22559 $as_echo "$ac_try_echo") >&5
22560 (eval "$ac_compile") 2>conftest.er1
22561 ac_status=$?
22562 grep -v '^ *+' conftest.er1 >conftest.err
22563 rm -f conftest.er1
22564 cat conftest.err >&5
22565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } && {
22567 test -z "$ac_c_werror_flag" ||
22568 test ! -s conftest.err
22569 } && test -s conftest.$ac_objext; then
22570 ac_cv_member_krb5_error_e_text=yes
22571 else
22572 $as_echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22575 cat >conftest.$ac_ext <<_ACEOF
22576 /* confdefs.h. */
22577 _ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 #include <krb5.h>
22584 main ()
22586 static krb5_error ac_aggr;
22587 if (sizeof ac_aggr.e_text)
22588 return 0;
22590 return 0;
22592 _ACEOF
22593 rm -f conftest.$ac_objext
22594 if { (ac_try="$ac_compile"
22595 case "(($ac_try" in
22596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22597 *) ac_try_echo=$ac_try;;
22598 esac
22599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22600 $as_echo "$ac_try_echo") >&5
22601 (eval "$ac_compile") 2>conftest.er1
22602 ac_status=$?
22603 grep -v '^ *+' conftest.er1 >conftest.err
22604 rm -f conftest.er1
22605 cat conftest.err >&5
22606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607 (exit $ac_status); } && {
22608 test -z "$ac_c_werror_flag" ||
22609 test ! -s conftest.err
22610 } && test -s conftest.$ac_objext; then
22611 ac_cv_member_krb5_error_e_text=yes
22612 else
22613 $as_echo "$as_me: failed program was:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22616 ac_cv_member_krb5_error_e_text=no
22619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22625 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22626 if test $ac_cv_member_krb5_error_e_text = yes; then
22628 cat >>confdefs.h <<_ACEOF
22629 #define HAVE_KRB5_ERROR_E_TEXT 1
22630 _ACEOF
22637 done
22639 else
22641 for ac_header in des.h
22643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22645 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22646 $as_echo_n "checking for $ac_header... " >&6; }
22647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22648 $as_echo_n "(cached) " >&6
22650 ac_res=`eval 'as_val=${'$as_ac_Header'}
22651 $as_echo "$as_val"'`
22652 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22653 $as_echo "$ac_res" >&6; }
22654 else
22655 # Is the header compilable?
22656 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22657 $as_echo_n "checking $ac_header usability... " >&6; }
22658 cat >conftest.$ac_ext <<_ACEOF
22659 /* confdefs.h. */
22660 _ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h. */
22664 $ac_includes_default
22665 #include <$ac_header>
22666 _ACEOF
22667 rm -f conftest.$ac_objext
22668 if { (ac_try="$ac_compile"
22669 case "(($ac_try" in
22670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671 *) ac_try_echo=$ac_try;;
22672 esac
22673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22674 $as_echo "$ac_try_echo") >&5
22675 (eval "$ac_compile") 2>conftest.er1
22676 ac_status=$?
22677 grep -v '^ *+' conftest.er1 >conftest.err
22678 rm -f conftest.er1
22679 cat conftest.err >&5
22680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } && {
22682 test -z "$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22684 } && test -s conftest.$ac_objext; then
22685 ac_header_compiler=yes
22686 else
22687 $as_echo "$as_me: failed program was:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22690 ac_header_compiler=no
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22695 $as_echo "$ac_header_compiler" >&6; }
22697 # Is the header present?
22698 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22699 $as_echo_n "checking $ac_header presence... " >&6; }
22700 cat >conftest.$ac_ext <<_ACEOF
22701 /* confdefs.h. */
22702 _ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 #include <$ac_header>
22707 _ACEOF
22708 if { (ac_try="$ac_cpp conftest.$ac_ext"
22709 case "(($ac_try" in
22710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22711 *) ac_try_echo=$ac_try;;
22712 esac
22713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22714 $as_echo "$ac_try_echo") >&5
22715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22716 ac_status=$?
22717 grep -v '^ *+' conftest.er1 >conftest.err
22718 rm -f conftest.er1
22719 cat conftest.err >&5
22720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); } >/dev/null && {
22722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22723 test ! -s conftest.err
22724 }; then
22725 ac_header_preproc=yes
22726 else
22727 $as_echo "$as_me: failed program was:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22730 ac_header_preproc=no
22733 rm -f conftest.err conftest.$ac_ext
22734 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22735 $as_echo "$ac_header_preproc" >&6; }
22737 # So? What about this header?
22738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22739 yes:no: )
22740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22741 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22743 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22744 ac_header_preproc=yes
22746 no:yes:* )
22747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22748 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22750 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22752 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22754 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22756 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22758 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22761 esac
22762 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22763 $as_echo_n "checking for $ac_header... " >&6; }
22764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22765 $as_echo_n "(cached) " >&6
22766 else
22767 eval "$as_ac_Header=\$ac_header_preproc"
22769 ac_res=`eval 'as_val=${'$as_ac_Header'}
22770 $as_echo "$as_val"'`
22771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22772 $as_echo "$ac_res" >&6; }
22775 if test `eval 'as_val=${'$as_ac_Header'}
22776 $as_echo "$as_val"'` = yes; then
22777 cat >>confdefs.h <<_ACEOF
22778 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22779 _ACEOF
22781 else
22783 for ac_header in kerberosIV/des.h
22785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22787 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22788 $as_echo_n "checking for $ac_header... " >&6; }
22789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22790 $as_echo_n "(cached) " >&6
22792 ac_res=`eval 'as_val=${'$as_ac_Header'}
22793 $as_echo "$as_val"'`
22794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22795 $as_echo "$ac_res" >&6; }
22796 else
22797 # Is the header compilable?
22798 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22799 $as_echo_n "checking $ac_header usability... " >&6; }
22800 cat >conftest.$ac_ext <<_ACEOF
22801 /* confdefs.h. */
22802 _ACEOF
22803 cat confdefs.h >>conftest.$ac_ext
22804 cat >>conftest.$ac_ext <<_ACEOF
22805 /* end confdefs.h. */
22806 $ac_includes_default
22807 #include <$ac_header>
22808 _ACEOF
22809 rm -f conftest.$ac_objext
22810 if { (ac_try="$ac_compile"
22811 case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22814 esac
22815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22816 $as_echo "$ac_try_echo") >&5
22817 (eval "$ac_compile") 2>conftest.er1
22818 ac_status=$?
22819 grep -v '^ *+' conftest.er1 >conftest.err
22820 rm -f conftest.er1
22821 cat conftest.err >&5
22822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22823 (exit $ac_status); } && {
22824 test -z "$ac_c_werror_flag" ||
22825 test ! -s conftest.err
22826 } && test -s conftest.$ac_objext; then
22827 ac_header_compiler=yes
22828 else
22829 $as_echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22832 ac_header_compiler=no
22835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22836 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22837 $as_echo "$ac_header_compiler" >&6; }
22839 # Is the header present?
22840 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22841 $as_echo_n "checking $ac_header presence... " >&6; }
22842 cat >conftest.$ac_ext <<_ACEOF
22843 /* confdefs.h. */
22844 _ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h. */
22848 #include <$ac_header>
22849 _ACEOF
22850 if { (ac_try="$ac_cpp conftest.$ac_ext"
22851 case "(($ac_try" in
22852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22853 *) ac_try_echo=$ac_try;;
22854 esac
22855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22856 $as_echo "$ac_try_echo") >&5
22857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22858 ac_status=$?
22859 grep -v '^ *+' conftest.er1 >conftest.err
22860 rm -f conftest.er1
22861 cat conftest.err >&5
22862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863 (exit $ac_status); } >/dev/null && {
22864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22865 test ! -s conftest.err
22866 }; then
22867 ac_header_preproc=yes
22868 else
22869 $as_echo "$as_me: failed program was:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 ac_header_preproc=no
22875 rm -f conftest.err conftest.$ac_ext
22876 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22877 $as_echo "$ac_header_preproc" >&6; }
22879 # So? What about this header?
22880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22881 yes:no: )
22882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22883 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22885 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22886 ac_header_preproc=yes
22888 no:yes:* )
22889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22890 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22892 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22894 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22896 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22898 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22900 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22903 esac
22904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22905 $as_echo_n "checking for $ac_header... " >&6; }
22906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22907 $as_echo_n "(cached) " >&6
22908 else
22909 eval "$as_ac_Header=\$ac_header_preproc"
22911 ac_res=`eval 'as_val=${'$as_ac_Header'}
22912 $as_echo "$as_val"'`
22913 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22914 $as_echo "$ac_res" >&6; }
22917 if test `eval 'as_val=${'$as_ac_Header'}
22918 $as_echo "$as_val"'` = yes; then
22919 cat >>confdefs.h <<_ACEOF
22920 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22921 _ACEOF
22923 else
22925 for ac_header in kerberos/des.h
22927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22929 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22930 $as_echo_n "checking for $ac_header... " >&6; }
22931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22932 $as_echo_n "(cached) " >&6
22934 ac_res=`eval 'as_val=${'$as_ac_Header'}
22935 $as_echo "$as_val"'`
22936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22937 $as_echo "$ac_res" >&6; }
22938 else
22939 # Is the header compilable?
22940 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22941 $as_echo_n "checking $ac_header usability... " >&6; }
22942 cat >conftest.$ac_ext <<_ACEOF
22943 /* confdefs.h. */
22944 _ACEOF
22945 cat confdefs.h >>conftest.$ac_ext
22946 cat >>conftest.$ac_ext <<_ACEOF
22947 /* end confdefs.h. */
22948 $ac_includes_default
22949 #include <$ac_header>
22950 _ACEOF
22951 rm -f conftest.$ac_objext
22952 if { (ac_try="$ac_compile"
22953 case "(($ac_try" in
22954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22955 *) ac_try_echo=$ac_try;;
22956 esac
22957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22958 $as_echo "$ac_try_echo") >&5
22959 (eval "$ac_compile") 2>conftest.er1
22960 ac_status=$?
22961 grep -v '^ *+' conftest.er1 >conftest.err
22962 rm -f conftest.er1
22963 cat conftest.err >&5
22964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); } && {
22966 test -z "$ac_c_werror_flag" ||
22967 test ! -s conftest.err
22968 } && test -s conftest.$ac_objext; then
22969 ac_header_compiler=yes
22970 else
22971 $as_echo "$as_me: failed program was:" >&5
22972 sed 's/^/| /' conftest.$ac_ext >&5
22974 ac_header_compiler=no
22977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22978 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22979 $as_echo "$ac_header_compiler" >&6; }
22981 # Is the header present?
22982 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22983 $as_echo_n "checking $ac_header presence... " >&6; }
22984 cat >conftest.$ac_ext <<_ACEOF
22985 /* confdefs.h. */
22986 _ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22990 #include <$ac_header>
22991 _ACEOF
22992 if { (ac_try="$ac_cpp conftest.$ac_ext"
22993 case "(($ac_try" in
22994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22995 *) ac_try_echo=$ac_try;;
22996 esac
22997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22998 $as_echo "$ac_try_echo") >&5
22999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23000 ac_status=$?
23001 grep -v '^ *+' conftest.er1 >conftest.err
23002 rm -f conftest.er1
23003 cat conftest.err >&5
23004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005 (exit $ac_status); } >/dev/null && {
23006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23007 test ! -s conftest.err
23008 }; then
23009 ac_header_preproc=yes
23010 else
23011 $as_echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23014 ac_header_preproc=no
23017 rm -f conftest.err conftest.$ac_ext
23018 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23019 $as_echo "$ac_header_preproc" >&6; }
23021 # So? What about this header?
23022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23023 yes:no: )
23024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23025 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23027 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23028 ac_header_preproc=yes
23030 no:yes:* )
23031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23032 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23034 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23036 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23038 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23040 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23042 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23045 esac
23046 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23047 $as_echo_n "checking for $ac_header... " >&6; }
23048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23049 $as_echo_n "(cached) " >&6
23050 else
23051 eval "$as_ac_Header=\$ac_header_preproc"
23053 ac_res=`eval 'as_val=${'$as_ac_Header'}
23054 $as_echo "$as_val"'`
23055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23056 $as_echo "$ac_res" >&6; }
23059 if test `eval 'as_val=${'$as_ac_Header'}
23060 $as_echo "$as_val"'` = yes; then
23061 cat >>confdefs.h <<_ACEOF
23062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23063 _ACEOF
23067 done
23071 done
23075 done
23078 for ac_header in krb.h
23080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23082 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23083 $as_echo_n "checking for $ac_header... " >&6; }
23084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23085 $as_echo_n "(cached) " >&6
23087 ac_res=`eval 'as_val=${'$as_ac_Header'}
23088 $as_echo "$as_val"'`
23089 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23090 $as_echo "$ac_res" >&6; }
23091 else
23092 # Is the header compilable?
23093 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23094 $as_echo_n "checking $ac_header usability... " >&6; }
23095 cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h. */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 $ac_includes_default
23102 #include <$ac_header>
23103 _ACEOF
23104 rm -f conftest.$ac_objext
23105 if { (ac_try="$ac_compile"
23106 case "(($ac_try" in
23107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108 *) ac_try_echo=$ac_try;;
23109 esac
23110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23111 $as_echo "$ac_try_echo") >&5
23112 (eval "$ac_compile") 2>conftest.er1
23113 ac_status=$?
23114 grep -v '^ *+' conftest.er1 >conftest.err
23115 rm -f conftest.er1
23116 cat conftest.err >&5
23117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } && {
23119 test -z "$ac_c_werror_flag" ||
23120 test ! -s conftest.err
23121 } && test -s conftest.$ac_objext; then
23122 ac_header_compiler=yes
23123 else
23124 $as_echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23127 ac_header_compiler=no
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23132 $as_echo "$ac_header_compiler" >&6; }
23134 # Is the header present?
23135 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23136 $as_echo_n "checking $ac_header presence... " >&6; }
23137 cat >conftest.$ac_ext <<_ACEOF
23138 /* confdefs.h. */
23139 _ACEOF
23140 cat confdefs.h >>conftest.$ac_ext
23141 cat >>conftest.$ac_ext <<_ACEOF
23142 /* end confdefs.h. */
23143 #include <$ac_header>
23144 _ACEOF
23145 if { (ac_try="$ac_cpp conftest.$ac_ext"
23146 case "(($ac_try" in
23147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23148 *) ac_try_echo=$ac_try;;
23149 esac
23150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23151 $as_echo "$ac_try_echo") >&5
23152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23153 ac_status=$?
23154 grep -v '^ *+' conftest.er1 >conftest.err
23155 rm -f conftest.er1
23156 cat conftest.err >&5
23157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); } >/dev/null && {
23159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23160 test ! -s conftest.err
23161 }; then
23162 ac_header_preproc=yes
23163 else
23164 $as_echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.$ac_ext >&5
23167 ac_header_preproc=no
23170 rm -f conftest.err conftest.$ac_ext
23171 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23172 $as_echo "$ac_header_preproc" >&6; }
23174 # So? What about this header?
23175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23176 yes:no: )
23177 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23178 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23179 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23181 ac_header_preproc=yes
23183 no:yes:* )
23184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23185 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23186 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23187 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23188 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23189 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23190 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23191 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23192 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23194 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23195 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23198 esac
23199 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23200 $as_echo_n "checking for $ac_header... " >&6; }
23201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23202 $as_echo_n "(cached) " >&6
23203 else
23204 eval "$as_ac_Header=\$ac_header_preproc"
23206 ac_res=`eval 'as_val=${'$as_ac_Header'}
23207 $as_echo "$as_val"'`
23208 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23209 $as_echo "$ac_res" >&6; }
23212 if test `eval 'as_val=${'$as_ac_Header'}
23213 $as_echo "$as_val"'` = yes; then
23214 cat >>confdefs.h <<_ACEOF
23215 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23216 _ACEOF
23218 else
23220 for ac_header in kerberosIV/krb.h
23222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23224 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23225 $as_echo_n "checking for $ac_header... " >&6; }
23226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23227 $as_echo_n "(cached) " >&6
23229 ac_res=`eval 'as_val=${'$as_ac_Header'}
23230 $as_echo "$as_val"'`
23231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23232 $as_echo "$ac_res" >&6; }
23233 else
23234 # Is the header compilable?
23235 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23236 $as_echo_n "checking $ac_header usability... " >&6; }
23237 cat >conftest.$ac_ext <<_ACEOF
23238 /* confdefs.h. */
23239 _ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23243 $ac_includes_default
23244 #include <$ac_header>
23245 _ACEOF
23246 rm -f conftest.$ac_objext
23247 if { (ac_try="$ac_compile"
23248 case "(($ac_try" in
23249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23250 *) ac_try_echo=$ac_try;;
23251 esac
23252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23253 $as_echo "$ac_try_echo") >&5
23254 (eval "$ac_compile") 2>conftest.er1
23255 ac_status=$?
23256 grep -v '^ *+' conftest.er1 >conftest.err
23257 rm -f conftest.er1
23258 cat conftest.err >&5
23259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); } && {
23261 test -z "$ac_c_werror_flag" ||
23262 test ! -s conftest.err
23263 } && test -s conftest.$ac_objext; then
23264 ac_header_compiler=yes
23265 else
23266 $as_echo "$as_me: failed program was:" >&5
23267 sed 's/^/| /' conftest.$ac_ext >&5
23269 ac_header_compiler=no
23272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23274 $as_echo "$ac_header_compiler" >&6; }
23276 # Is the header present?
23277 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23278 $as_echo_n "checking $ac_header presence... " >&6; }
23279 cat >conftest.$ac_ext <<_ACEOF
23280 /* confdefs.h. */
23281 _ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h. */
23285 #include <$ac_header>
23286 _ACEOF
23287 if { (ac_try="$ac_cpp conftest.$ac_ext"
23288 case "(($ac_try" in
23289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290 *) ac_try_echo=$ac_try;;
23291 esac
23292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23293 $as_echo "$ac_try_echo") >&5
23294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23295 ac_status=$?
23296 grep -v '^ *+' conftest.er1 >conftest.err
23297 rm -f conftest.er1
23298 cat conftest.err >&5
23299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); } >/dev/null && {
23301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23302 test ! -s conftest.err
23303 }; then
23304 ac_header_preproc=yes
23305 else
23306 $as_echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23309 ac_header_preproc=no
23312 rm -f conftest.err conftest.$ac_ext
23313 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23314 $as_echo "$ac_header_preproc" >&6; }
23316 # So? What about this header?
23317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23318 yes:no: )
23319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23320 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23322 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23323 ac_header_preproc=yes
23325 no:yes:* )
23326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23327 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23329 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23331 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23333 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23335 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23337 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23340 esac
23341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23342 $as_echo_n "checking for $ac_header... " >&6; }
23343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23344 $as_echo_n "(cached) " >&6
23345 else
23346 eval "$as_ac_Header=\$ac_header_preproc"
23348 ac_res=`eval 'as_val=${'$as_ac_Header'}
23349 $as_echo "$as_val"'`
23350 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23351 $as_echo "$ac_res" >&6; }
23354 if test `eval 'as_val=${'$as_ac_Header'}
23355 $as_echo "$as_val"'` = yes; then
23356 cat >>confdefs.h <<_ACEOF
23357 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23358 _ACEOF
23360 else
23362 for ac_header in kerberos/krb.h
23364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23366 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23367 $as_echo_n "checking for $ac_header... " >&6; }
23368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23369 $as_echo_n "(cached) " >&6
23371 ac_res=`eval 'as_val=${'$as_ac_Header'}
23372 $as_echo "$as_val"'`
23373 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23374 $as_echo "$ac_res" >&6; }
23375 else
23376 # Is the header compilable?
23377 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23378 $as_echo_n "checking $ac_header usability... " >&6; }
23379 cat >conftest.$ac_ext <<_ACEOF
23380 /* confdefs.h. */
23381 _ACEOF
23382 cat confdefs.h >>conftest.$ac_ext
23383 cat >>conftest.$ac_ext <<_ACEOF
23384 /* end confdefs.h. */
23385 $ac_includes_default
23386 #include <$ac_header>
23387 _ACEOF
23388 rm -f conftest.$ac_objext
23389 if { (ac_try="$ac_compile"
23390 case "(($ac_try" in
23391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392 *) ac_try_echo=$ac_try;;
23393 esac
23394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23395 $as_echo "$ac_try_echo") >&5
23396 (eval "$ac_compile") 2>conftest.er1
23397 ac_status=$?
23398 grep -v '^ *+' conftest.er1 >conftest.err
23399 rm -f conftest.er1
23400 cat conftest.err >&5
23401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); } && {
23403 test -z "$ac_c_werror_flag" ||
23404 test ! -s conftest.err
23405 } && test -s conftest.$ac_objext; then
23406 ac_header_compiler=yes
23407 else
23408 $as_echo "$as_me: failed program was:" >&5
23409 sed 's/^/| /' conftest.$ac_ext >&5
23411 ac_header_compiler=no
23414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23415 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23416 $as_echo "$ac_header_compiler" >&6; }
23418 # Is the header present?
23419 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23420 $as_echo_n "checking $ac_header presence... " >&6; }
23421 cat >conftest.$ac_ext <<_ACEOF
23422 /* confdefs.h. */
23423 _ACEOF
23424 cat confdefs.h >>conftest.$ac_ext
23425 cat >>conftest.$ac_ext <<_ACEOF
23426 /* end confdefs.h. */
23427 #include <$ac_header>
23428 _ACEOF
23429 if { (ac_try="$ac_cpp conftest.$ac_ext"
23430 case "(($ac_try" in
23431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23432 *) ac_try_echo=$ac_try;;
23433 esac
23434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23435 $as_echo "$ac_try_echo") >&5
23436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23437 ac_status=$?
23438 grep -v '^ *+' conftest.er1 >conftest.err
23439 rm -f conftest.er1
23440 cat conftest.err >&5
23441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); } >/dev/null && {
23443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23444 test ! -s conftest.err
23445 }; then
23446 ac_header_preproc=yes
23447 else
23448 $as_echo "$as_me: failed program was:" >&5
23449 sed 's/^/| /' conftest.$ac_ext >&5
23451 ac_header_preproc=no
23454 rm -f conftest.err conftest.$ac_ext
23455 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23456 $as_echo "$ac_header_preproc" >&6; }
23458 # So? What about this header?
23459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23460 yes:no: )
23461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23462 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23464 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23465 ac_header_preproc=yes
23467 no:yes:* )
23468 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23469 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23470 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23471 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23472 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23473 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23475 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23477 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23479 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23482 esac
23483 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23484 $as_echo_n "checking for $ac_header... " >&6; }
23485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23486 $as_echo_n "(cached) " >&6
23487 else
23488 eval "$as_ac_Header=\$ac_header_preproc"
23490 ac_res=`eval 'as_val=${'$as_ac_Header'}
23491 $as_echo "$as_val"'`
23492 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23493 $as_echo "$ac_res" >&6; }
23496 if test `eval 'as_val=${'$as_ac_Header'}
23497 $as_echo "$as_val"'` = yes; then
23498 cat >>confdefs.h <<_ACEOF
23499 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23500 _ACEOF
23504 done
23508 done
23512 done
23516 for ac_header in com_err.h
23518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23520 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23521 $as_echo_n "checking for $ac_header... " >&6; }
23522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23523 $as_echo_n "(cached) " >&6
23525 ac_res=`eval 'as_val=${'$as_ac_Header'}
23526 $as_echo "$as_val"'`
23527 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23528 $as_echo "$ac_res" >&6; }
23529 else
23530 # Is the header compilable?
23531 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23532 $as_echo_n "checking $ac_header usability... " >&6; }
23533 cat >conftest.$ac_ext <<_ACEOF
23534 /* confdefs.h. */
23535 _ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h. */
23539 $ac_includes_default
23540 #include <$ac_header>
23541 _ACEOF
23542 rm -f conftest.$ac_objext
23543 if { (ac_try="$ac_compile"
23544 case "(($ac_try" in
23545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546 *) ac_try_echo=$ac_try;;
23547 esac
23548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23549 $as_echo "$ac_try_echo") >&5
23550 (eval "$ac_compile") 2>conftest.er1
23551 ac_status=$?
23552 grep -v '^ *+' conftest.er1 >conftest.err
23553 rm -f conftest.er1
23554 cat conftest.err >&5
23555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } && {
23557 test -z "$ac_c_werror_flag" ||
23558 test ! -s conftest.err
23559 } && test -s conftest.$ac_objext; then
23560 ac_header_compiler=yes
23561 else
23562 $as_echo "$as_me: failed program was:" >&5
23563 sed 's/^/| /' conftest.$ac_ext >&5
23565 ac_header_compiler=no
23568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23569 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23570 $as_echo "$ac_header_compiler" >&6; }
23572 # Is the header present?
23573 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23574 $as_echo_n "checking $ac_header presence... " >&6; }
23575 cat >conftest.$ac_ext <<_ACEOF
23576 /* confdefs.h. */
23577 _ACEOF
23578 cat confdefs.h >>conftest.$ac_ext
23579 cat >>conftest.$ac_ext <<_ACEOF
23580 /* end confdefs.h. */
23581 #include <$ac_header>
23582 _ACEOF
23583 if { (ac_try="$ac_cpp conftest.$ac_ext"
23584 case "(($ac_try" in
23585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586 *) ac_try_echo=$ac_try;;
23587 esac
23588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23589 $as_echo "$ac_try_echo") >&5
23590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23591 ac_status=$?
23592 grep -v '^ *+' conftest.er1 >conftest.err
23593 rm -f conftest.er1
23594 cat conftest.err >&5
23595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } >/dev/null && {
23597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 }; then
23600 ac_header_preproc=yes
23601 else
23602 $as_echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 ac_header_preproc=no
23608 rm -f conftest.err conftest.$ac_ext
23609 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23610 $as_echo "$ac_header_preproc" >&6; }
23612 # So? What about this header?
23613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23614 yes:no: )
23615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23616 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23618 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23619 ac_header_preproc=yes
23621 no:yes:* )
23622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23623 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23624 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23625 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23627 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23629 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23631 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23633 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23636 esac
23637 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23638 $as_echo_n "checking for $ac_header... " >&6; }
23639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23640 $as_echo_n "(cached) " >&6
23641 else
23642 eval "$as_ac_Header=\$ac_header_preproc"
23644 ac_res=`eval 'as_val=${'$as_ac_Header'}
23645 $as_echo "$as_val"'`
23646 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23647 $as_echo "$ac_res" >&6; }
23650 if test `eval 'as_val=${'$as_ac_Header'}
23651 $as_echo "$as_val"'` = yes; then
23652 cat >>confdefs.h <<_ACEOF
23653 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23654 _ACEOF
23658 done
23662 # Solaris requires -lintl if you want strerror (which calls dgettext)
23663 # to return localized messages.
23665 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23666 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23667 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23668 $as_echo_n "(cached) " >&6
23669 else
23670 ac_check_lib_save_LIBS=$LIBS
23671 LIBS="-lintl $LIBS"
23672 cat >conftest.$ac_ext <<_ACEOF
23673 /* confdefs.h. */
23674 _ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h. */
23679 /* Override any GCC internal prototype to avoid an error.
23680 Use char because int might match the return type of a GCC
23681 builtin and then its argument prototype would still apply. */
23682 #ifdef __cplusplus
23683 extern "C"
23684 #endif
23685 char dgettext ();
23687 main ()
23689 return dgettext ();
23691 return 0;
23693 _ACEOF
23694 rm -f conftest.$ac_objext conftest$ac_exeext
23695 if { (ac_try="$ac_link"
23696 case "(($ac_try" in
23697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698 *) ac_try_echo=$ac_try;;
23699 esac
23700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23701 $as_echo "$ac_try_echo") >&5
23702 (eval "$ac_link") 2>conftest.er1
23703 ac_status=$?
23704 grep -v '^ *+' conftest.er1 >conftest.err
23705 rm -f conftest.er1
23706 cat conftest.err >&5
23707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } && {
23709 test -z "$ac_c_werror_flag" ||
23710 test ! -s conftest.err
23711 } && test -s conftest$ac_exeext && {
23712 test "$cross_compiling" = yes ||
23713 $as_test_x conftest$ac_exeext
23714 }; then
23715 ac_cv_lib_intl_dgettext=yes
23716 else
23717 $as_echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23720 ac_cv_lib_intl_dgettext=no
23723 rm -rf conftest.dSYM
23724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23725 conftest$ac_exeext conftest.$ac_ext
23726 LIBS=$ac_check_lib_save_LIBS
23728 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23729 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23730 if test $ac_cv_lib_intl_dgettext = yes; then
23731 cat >>confdefs.h <<_ACEOF
23732 #define HAVE_LIBINTL 1
23733 _ACEOF
23735 LIBS="-lintl $LIBS"
23740 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23741 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23742 if test "${emacs_cv_localtime_cache+set}" = set; then
23743 $as_echo_n "(cached) " >&6
23744 else
23745 if test x$ac_cv_func_tzset = xyes; then
23746 if test "$cross_compiling" = yes; then
23747 # If we have tzset, assume the worst when cross-compiling.
23748 emacs_cv_localtime_cache=yes
23749 else
23750 cat >conftest.$ac_ext <<_ACEOF
23751 /* confdefs.h. */
23752 _ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h. */
23756 #include <time.h>
23757 extern char **environ;
23758 unset_TZ ()
23760 char **from, **to;
23761 for (to = from = environ; (*to = *from); from++)
23762 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23763 to++;
23765 char TZ_GMT0[] = "TZ=GMT0";
23766 char TZ_PST8[] = "TZ=PST8";
23767 main()
23769 time_t now = time ((time_t *) 0);
23770 int hour_GMT0, hour_unset;
23771 if (putenv (TZ_GMT0) != 0)
23772 exit (1);
23773 hour_GMT0 = localtime (&now)->tm_hour;
23774 unset_TZ ();
23775 hour_unset = localtime (&now)->tm_hour;
23776 if (putenv (TZ_PST8) != 0)
23777 exit (1);
23778 if (localtime (&now)->tm_hour == hour_GMT0)
23779 exit (1);
23780 unset_TZ ();
23781 if (localtime (&now)->tm_hour != hour_unset)
23782 exit (1);
23783 exit (0);
23785 _ACEOF
23786 rm -f conftest$ac_exeext
23787 if { (ac_try="$ac_link"
23788 case "(($ac_try" in
23789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23790 *) ac_try_echo=$ac_try;;
23791 esac
23792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23793 $as_echo "$ac_try_echo") >&5
23794 (eval "$ac_link") 2>&5
23795 ac_status=$?
23796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23798 { (case "(($ac_try" in
23799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23800 *) ac_try_echo=$ac_try;;
23801 esac
23802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23803 $as_echo "$ac_try_echo") >&5
23804 (eval "$ac_try") 2>&5
23805 ac_status=$?
23806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23807 (exit $ac_status); }; }; then
23808 emacs_cv_localtime_cache=no
23809 else
23810 $as_echo "$as_me: program exited with status $ac_status" >&5
23811 $as_echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.$ac_ext >&5
23814 ( exit $ac_status )
23815 emacs_cv_localtime_cache=yes
23817 rm -rf conftest.dSYM
23818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23822 else
23823 # If we lack tzset, report that localtime does not cache TZ,
23824 # since we can't invalidate the cache if we don't have tzset.
23825 emacs_cv_localtime_cache=no
23828 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23829 $as_echo "$emacs_cv_localtime_cache" >&6; }
23830 if test $emacs_cv_localtime_cache = yes; then
23832 cat >>confdefs.h <<\_ACEOF
23833 #define LOCALTIME_CACHE 1
23834 _ACEOF
23838 if test "x$HAVE_TIMEVAL" = xyes; then
23840 for ac_func in gettimeofday
23842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23843 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23844 $as_echo_n "checking for $ac_func... " >&6; }
23845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23846 $as_echo_n "(cached) " >&6
23847 else
23848 cat >conftest.$ac_ext <<_ACEOF
23849 /* confdefs.h. */
23850 _ACEOF
23851 cat confdefs.h >>conftest.$ac_ext
23852 cat >>conftest.$ac_ext <<_ACEOF
23853 /* end confdefs.h. */
23854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23856 #define $ac_func innocuous_$ac_func
23858 /* System header to define __stub macros and hopefully few prototypes,
23859 which can conflict with char $ac_func (); below.
23860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23861 <limits.h> exists even on freestanding compilers. */
23863 #ifdef __STDC__
23864 # include <limits.h>
23865 #else
23866 # include <assert.h>
23867 #endif
23869 #undef $ac_func
23871 /* Override any GCC internal prototype to avoid an error.
23872 Use char because int might match the return type of a GCC
23873 builtin and then its argument prototype would still apply. */
23874 #ifdef __cplusplus
23875 extern "C"
23876 #endif
23877 char $ac_func ();
23878 /* The GNU C library defines this for functions which it implements
23879 to always fail with ENOSYS. Some functions are actually named
23880 something starting with __ and the normal name is an alias. */
23881 #if defined __stub_$ac_func || defined __stub___$ac_func
23882 choke me
23883 #endif
23886 main ()
23888 return $ac_func ();
23890 return 0;
23892 _ACEOF
23893 rm -f conftest.$ac_objext conftest$ac_exeext
23894 if { (ac_try="$ac_link"
23895 case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23898 esac
23899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23900 $as_echo "$ac_try_echo") >&5
23901 (eval "$ac_link") 2>conftest.er1
23902 ac_status=$?
23903 grep -v '^ *+' conftest.er1 >conftest.err
23904 rm -f conftest.er1
23905 cat conftest.err >&5
23906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); } && {
23908 test -z "$ac_c_werror_flag" ||
23909 test ! -s conftest.err
23910 } && test -s conftest$ac_exeext && {
23911 test "$cross_compiling" = yes ||
23912 $as_test_x conftest$ac_exeext
23913 }; then
23914 eval "$as_ac_var=yes"
23915 else
23916 $as_echo "$as_me: failed program was:" >&5
23917 sed 's/^/| /' conftest.$ac_ext >&5
23919 eval "$as_ac_var=no"
23922 rm -rf conftest.dSYM
23923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23924 conftest$ac_exeext conftest.$ac_ext
23926 ac_res=`eval 'as_val=${'$as_ac_var'}
23927 $as_echo "$as_val"'`
23928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23929 $as_echo "$ac_res" >&6; }
23930 if test `eval 'as_val=${'$as_ac_var'}
23931 $as_echo "$as_val"'` = yes; then
23932 cat >>confdefs.h <<_ACEOF
23933 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23934 _ACEOF
23937 done
23939 if test $ac_cv_func_gettimeofday = yes; then
23940 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23941 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
23942 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23943 $as_echo_n "(cached) " >&6
23944 else
23945 cat >conftest.$ac_ext <<_ACEOF
23946 /* confdefs.h. */
23947 _ACEOF
23948 cat confdefs.h >>conftest.$ac_ext
23949 cat >>conftest.$ac_ext <<_ACEOF
23950 /* end confdefs.h. */
23952 #ifdef TIME_WITH_SYS_TIME
23953 #include <sys/time.h>
23954 #include <time.h>
23955 #else
23956 #ifdef HAVE_SYS_TIME_H
23957 #include <sys/time.h>
23958 #else
23959 #include <time.h>
23960 #endif
23961 #endif
23963 main ()
23965 struct timeval time;
23966 gettimeofday (&time, 0);
23968 return 0;
23970 _ACEOF
23971 rm -f conftest.$ac_objext
23972 if { (ac_try="$ac_compile"
23973 case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23976 esac
23977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23978 $as_echo "$ac_try_echo") >&5
23979 (eval "$ac_compile") 2>conftest.er1
23980 ac_status=$?
23981 grep -v '^ *+' conftest.er1 >conftest.err
23982 rm -f conftest.er1
23983 cat conftest.err >&5
23984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23985 (exit $ac_status); } && {
23986 test -z "$ac_c_werror_flag" ||
23987 test ! -s conftest.err
23988 } && test -s conftest.$ac_objext; then
23989 emacs_cv_gettimeofday_two_arguments=yes
23990 else
23991 $as_echo "$as_me: failed program was:" >&5
23992 sed 's/^/| /' conftest.$ac_ext >&5
23994 emacs_cv_gettimeofday_two_arguments=no
23997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23999 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24000 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24001 if test $emacs_cv_gettimeofday_two_arguments = no; then
24003 cat >>confdefs.h <<\_ACEOF
24004 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24005 _ACEOF
24011 ok_so_far=yes
24012 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24013 $as_echo_n "checking for socket... " >&6; }
24014 if test "${ac_cv_func_socket+set}" = set; then
24015 $as_echo_n "(cached) " >&6
24016 else
24017 cat >conftest.$ac_ext <<_ACEOF
24018 /* confdefs.h. */
24019 _ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h. */
24023 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24025 #define socket innocuous_socket
24027 /* System header to define __stub macros and hopefully few prototypes,
24028 which can conflict with char socket (); below.
24029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24030 <limits.h> exists even on freestanding compilers. */
24032 #ifdef __STDC__
24033 # include <limits.h>
24034 #else
24035 # include <assert.h>
24036 #endif
24038 #undef socket
24040 /* Override any GCC internal prototype to avoid an error.
24041 Use char because int might match the return type of a GCC
24042 builtin and then its argument prototype would still apply. */
24043 #ifdef __cplusplus
24044 extern "C"
24045 #endif
24046 char socket ();
24047 /* The GNU C library defines this for functions which it implements
24048 to always fail with ENOSYS. Some functions are actually named
24049 something starting with __ and the normal name is an alias. */
24050 #if defined __stub_socket || defined __stub___socket
24051 choke me
24052 #endif
24055 main ()
24057 return socket ();
24059 return 0;
24061 _ACEOF
24062 rm -f conftest.$ac_objext conftest$ac_exeext
24063 if { (ac_try="$ac_link"
24064 case "(($ac_try" in
24065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24066 *) ac_try_echo=$ac_try;;
24067 esac
24068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24069 $as_echo "$ac_try_echo") >&5
24070 (eval "$ac_link") 2>conftest.er1
24071 ac_status=$?
24072 grep -v '^ *+' conftest.er1 >conftest.err
24073 rm -f conftest.er1
24074 cat conftest.err >&5
24075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24076 (exit $ac_status); } && {
24077 test -z "$ac_c_werror_flag" ||
24078 test ! -s conftest.err
24079 } && test -s conftest$ac_exeext && {
24080 test "$cross_compiling" = yes ||
24081 $as_test_x conftest$ac_exeext
24082 }; then
24083 ac_cv_func_socket=yes
24084 else
24085 $as_echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24088 ac_cv_func_socket=no
24091 rm -rf conftest.dSYM
24092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24093 conftest$ac_exeext conftest.$ac_ext
24095 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24096 $as_echo "$ac_cv_func_socket" >&6; }
24097 if test $ac_cv_func_socket = yes; then
24099 else
24100 ok_so_far=no
24103 if test $ok_so_far = yes; then
24104 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24105 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24106 $as_echo_n "checking for netinet/in.h... " >&6; }
24107 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24108 $as_echo_n "(cached) " >&6
24110 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24111 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24112 else
24113 # Is the header compilable?
24114 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24115 $as_echo_n "checking netinet/in.h usability... " >&6; }
24116 cat >conftest.$ac_ext <<_ACEOF
24117 /* confdefs.h. */
24118 _ACEOF
24119 cat confdefs.h >>conftest.$ac_ext
24120 cat >>conftest.$ac_ext <<_ACEOF
24121 /* end confdefs.h. */
24122 $ac_includes_default
24123 #include <netinet/in.h>
24124 _ACEOF
24125 rm -f conftest.$ac_objext
24126 if { (ac_try="$ac_compile"
24127 case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24130 esac
24131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24132 $as_echo "$ac_try_echo") >&5
24133 (eval "$ac_compile") 2>conftest.er1
24134 ac_status=$?
24135 grep -v '^ *+' conftest.er1 >conftest.err
24136 rm -f conftest.er1
24137 cat conftest.err >&5
24138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } && {
24140 test -z "$ac_c_werror_flag" ||
24141 test ! -s conftest.err
24142 } && test -s conftest.$ac_objext; then
24143 ac_header_compiler=yes
24144 else
24145 $as_echo "$as_me: failed program was:" >&5
24146 sed 's/^/| /' conftest.$ac_ext >&5
24148 ac_header_compiler=no
24151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24152 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24153 $as_echo "$ac_header_compiler" >&6; }
24155 # Is the header present?
24156 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24157 $as_echo_n "checking netinet/in.h presence... " >&6; }
24158 cat >conftest.$ac_ext <<_ACEOF
24159 /* confdefs.h. */
24160 _ACEOF
24161 cat confdefs.h >>conftest.$ac_ext
24162 cat >>conftest.$ac_ext <<_ACEOF
24163 /* end confdefs.h. */
24164 #include <netinet/in.h>
24165 _ACEOF
24166 if { (ac_try="$ac_cpp conftest.$ac_ext"
24167 case "(($ac_try" in
24168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24169 *) ac_try_echo=$ac_try;;
24170 esac
24171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24172 $as_echo "$ac_try_echo") >&5
24173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24174 ac_status=$?
24175 grep -v '^ *+' conftest.er1 >conftest.err
24176 rm -f conftest.er1
24177 cat conftest.err >&5
24178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); } >/dev/null && {
24180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24181 test ! -s conftest.err
24182 }; then
24183 ac_header_preproc=yes
24184 else
24185 $as_echo "$as_me: failed program was:" >&5
24186 sed 's/^/| /' conftest.$ac_ext >&5
24188 ac_header_preproc=no
24191 rm -f conftest.err conftest.$ac_ext
24192 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24193 $as_echo "$ac_header_preproc" >&6; }
24195 # So? What about this header?
24196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24197 yes:no: )
24198 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24199 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24200 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24201 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24202 ac_header_preproc=yes
24204 no:yes:* )
24205 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24206 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24207 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24208 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24209 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24210 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24211 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24212 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24213 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24214 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24215 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24216 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24219 esac
24220 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24221 $as_echo_n "checking for netinet/in.h... " >&6; }
24222 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24223 $as_echo_n "(cached) " >&6
24224 else
24225 ac_cv_header_netinet_in_h=$ac_header_preproc
24227 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24228 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24231 if test $ac_cv_header_netinet_in_h = yes; then
24233 else
24234 ok_so_far=no
24239 if test $ok_so_far = yes; then
24240 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24241 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24242 $as_echo_n "checking for arpa/inet.h... " >&6; }
24243 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24244 $as_echo_n "(cached) " >&6
24246 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24247 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24248 else
24249 # Is the header compilable?
24250 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24251 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24252 cat >conftest.$ac_ext <<_ACEOF
24253 /* confdefs.h. */
24254 _ACEOF
24255 cat confdefs.h >>conftest.$ac_ext
24256 cat >>conftest.$ac_ext <<_ACEOF
24257 /* end confdefs.h. */
24258 $ac_includes_default
24259 #include <arpa/inet.h>
24260 _ACEOF
24261 rm -f conftest.$ac_objext
24262 if { (ac_try="$ac_compile"
24263 case "(($ac_try" in
24264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24265 *) ac_try_echo=$ac_try;;
24266 esac
24267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24268 $as_echo "$ac_try_echo") >&5
24269 (eval "$ac_compile") 2>conftest.er1
24270 ac_status=$?
24271 grep -v '^ *+' conftest.er1 >conftest.err
24272 rm -f conftest.er1
24273 cat conftest.err >&5
24274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24275 (exit $ac_status); } && {
24276 test -z "$ac_c_werror_flag" ||
24277 test ! -s conftest.err
24278 } && test -s conftest.$ac_objext; then
24279 ac_header_compiler=yes
24280 else
24281 $as_echo "$as_me: failed program was:" >&5
24282 sed 's/^/| /' conftest.$ac_ext >&5
24284 ac_header_compiler=no
24287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24289 $as_echo "$ac_header_compiler" >&6; }
24291 # Is the header present?
24292 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24293 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24294 cat >conftest.$ac_ext <<_ACEOF
24295 /* confdefs.h. */
24296 _ACEOF
24297 cat confdefs.h >>conftest.$ac_ext
24298 cat >>conftest.$ac_ext <<_ACEOF
24299 /* end confdefs.h. */
24300 #include <arpa/inet.h>
24301 _ACEOF
24302 if { (ac_try="$ac_cpp conftest.$ac_ext"
24303 case "(($ac_try" in
24304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305 *) ac_try_echo=$ac_try;;
24306 esac
24307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24308 $as_echo "$ac_try_echo") >&5
24309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24310 ac_status=$?
24311 grep -v '^ *+' conftest.er1 >conftest.err
24312 rm -f conftest.er1
24313 cat conftest.err >&5
24314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); } >/dev/null && {
24316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24317 test ! -s conftest.err
24318 }; then
24319 ac_header_preproc=yes
24320 else
24321 $as_echo "$as_me: failed program was:" >&5
24322 sed 's/^/| /' conftest.$ac_ext >&5
24324 ac_header_preproc=no
24327 rm -f conftest.err conftest.$ac_ext
24328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24329 $as_echo "$ac_header_preproc" >&6; }
24331 # So? What about this header?
24332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24333 yes:no: )
24334 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24335 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24336 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24337 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24338 ac_header_preproc=yes
24340 no:yes:* )
24341 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24342 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24343 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24344 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24345 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24346 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24347 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24348 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24349 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24350 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24351 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24352 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24355 esac
24356 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24357 $as_echo_n "checking for arpa/inet.h... " >&6; }
24358 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24359 $as_echo_n "(cached) " >&6
24360 else
24361 ac_cv_header_arpa_inet_h=$ac_header_preproc
24363 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24364 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24367 if test $ac_cv_header_arpa_inet_h = yes; then
24369 else
24370 ok_so_far=no
24375 if test $ok_so_far = yes; then
24377 cat >>confdefs.h <<\_ACEOF
24378 #define HAVE_INET_SOCKETS 1
24379 _ACEOF
24384 for ac_header in sys/ioctl.h
24386 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24388 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24389 $as_echo_n "checking for $ac_header... " >&6; }
24390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24391 $as_echo_n "(cached) " >&6
24393 ac_res=`eval 'as_val=${'$as_ac_Header'}
24394 $as_echo "$as_val"'`
24395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24396 $as_echo "$ac_res" >&6; }
24397 else
24398 # Is the header compilable?
24399 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24400 $as_echo_n "checking $ac_header usability... " >&6; }
24401 cat >conftest.$ac_ext <<_ACEOF
24402 /* confdefs.h. */
24403 _ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
24406 /* end confdefs.h. */
24407 $ac_includes_default
24408 #include <$ac_header>
24409 _ACEOF
24410 rm -f conftest.$ac_objext
24411 if { (ac_try="$ac_compile"
24412 case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24415 esac
24416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24417 $as_echo "$ac_try_echo") >&5
24418 (eval "$ac_compile") 2>conftest.er1
24419 ac_status=$?
24420 grep -v '^ *+' conftest.er1 >conftest.err
24421 rm -f conftest.er1
24422 cat conftest.err >&5
24423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } && {
24425 test -z "$ac_c_werror_flag" ||
24426 test ! -s conftest.err
24427 } && test -s conftest.$ac_objext; then
24428 ac_header_compiler=yes
24429 else
24430 $as_echo "$as_me: failed program was:" >&5
24431 sed 's/^/| /' conftest.$ac_ext >&5
24433 ac_header_compiler=no
24436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24437 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24438 $as_echo "$ac_header_compiler" >&6; }
24440 # Is the header present?
24441 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24442 $as_echo_n "checking $ac_header presence... " >&6; }
24443 cat >conftest.$ac_ext <<_ACEOF
24444 /* confdefs.h. */
24445 _ACEOF
24446 cat confdefs.h >>conftest.$ac_ext
24447 cat >>conftest.$ac_ext <<_ACEOF
24448 /* end confdefs.h. */
24449 #include <$ac_header>
24450 _ACEOF
24451 if { (ac_try="$ac_cpp conftest.$ac_ext"
24452 case "(($ac_try" in
24453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454 *) ac_try_echo=$ac_try;;
24455 esac
24456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24457 $as_echo "$ac_try_echo") >&5
24458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24459 ac_status=$?
24460 grep -v '^ *+' conftest.er1 >conftest.err
24461 rm -f conftest.er1
24462 cat conftest.err >&5
24463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); } >/dev/null && {
24465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24466 test ! -s conftest.err
24467 }; then
24468 ac_header_preproc=yes
24469 else
24470 $as_echo "$as_me: failed program was:" >&5
24471 sed 's/^/| /' conftest.$ac_ext >&5
24473 ac_header_preproc=no
24476 rm -f conftest.err conftest.$ac_ext
24477 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24478 $as_echo "$ac_header_preproc" >&6; }
24480 # So? What about this header?
24481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24482 yes:no: )
24483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24484 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24486 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24487 ac_header_preproc=yes
24489 no:yes:* )
24490 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24491 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24492 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24493 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24494 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24495 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24496 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24497 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24498 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24499 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24500 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24501 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24504 esac
24505 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24506 $as_echo_n "checking for $ac_header... " >&6; }
24507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24508 $as_echo_n "(cached) " >&6
24509 else
24510 eval "$as_ac_Header=\$ac_header_preproc"
24512 ac_res=`eval 'as_val=${'$as_ac_Header'}
24513 $as_echo "$as_val"'`
24514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24515 $as_echo "$ac_res" >&6; }
24518 if test `eval 'as_val=${'$as_ac_Header'}
24519 $as_echo "$as_val"'` = yes; then
24520 cat >>confdefs.h <<_ACEOF
24521 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24522 _ACEOF
24526 done
24529 if test -f /usr/lpp/X11/bin/smt.exp; then
24531 cat >>confdefs.h <<\_ACEOF
24532 #define HAVE_AIX_SMT_EXP 1
24533 _ACEOF
24537 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24538 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24539 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24540 { $as_echo "$as_me:$LINENO: result: yes" >&5
24541 $as_echo "yes" >&6; }
24543 cat >>confdefs.h <<\_ACEOF
24544 #define HAVE_DEV_PTMX 1
24545 _ACEOF
24547 else
24548 { $as_echo "$as_me:$LINENO: result: no" >&5
24549 $as_echo "no" >&6; }
24552 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24553 $as_echo_n "checking for pid_t... " >&6; }
24554 if test "${ac_cv_type_pid_t+set}" = set; then
24555 $as_echo_n "(cached) " >&6
24556 else
24557 ac_cv_type_pid_t=no
24558 cat >conftest.$ac_ext <<_ACEOF
24559 /* confdefs.h. */
24560 _ACEOF
24561 cat confdefs.h >>conftest.$ac_ext
24562 cat >>conftest.$ac_ext <<_ACEOF
24563 /* end confdefs.h. */
24564 $ac_includes_default
24566 main ()
24568 if (sizeof (pid_t))
24569 return 0;
24571 return 0;
24573 _ACEOF
24574 rm -f conftest.$ac_objext
24575 if { (ac_try="$ac_compile"
24576 case "(($ac_try" in
24577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24578 *) ac_try_echo=$ac_try;;
24579 esac
24580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24581 $as_echo "$ac_try_echo") >&5
24582 (eval "$ac_compile") 2>conftest.er1
24583 ac_status=$?
24584 grep -v '^ *+' conftest.er1 >conftest.err
24585 rm -f conftest.er1
24586 cat conftest.err >&5
24587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); } && {
24589 test -z "$ac_c_werror_flag" ||
24590 test ! -s conftest.err
24591 } && test -s conftest.$ac_objext; then
24592 cat >conftest.$ac_ext <<_ACEOF
24593 /* confdefs.h. */
24594 _ACEOF
24595 cat confdefs.h >>conftest.$ac_ext
24596 cat >>conftest.$ac_ext <<_ACEOF
24597 /* end confdefs.h. */
24598 $ac_includes_default
24600 main ()
24602 if (sizeof ((pid_t)))
24603 return 0;
24605 return 0;
24607 _ACEOF
24608 rm -f conftest.$ac_objext
24609 if { (ac_try="$ac_compile"
24610 case "(($ac_try" in
24611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24612 *) ac_try_echo=$ac_try;;
24613 esac
24614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24615 $as_echo "$ac_try_echo") >&5
24616 (eval "$ac_compile") 2>conftest.er1
24617 ac_status=$?
24618 grep -v '^ *+' conftest.er1 >conftest.err
24619 rm -f conftest.er1
24620 cat conftest.err >&5
24621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24622 (exit $ac_status); } && {
24623 test -z "$ac_c_werror_flag" ||
24624 test ! -s conftest.err
24625 } && test -s conftest.$ac_objext; then
24627 else
24628 $as_echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24631 ac_cv_type_pid_t=yes
24634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24635 else
24636 $as_echo "$as_me: failed program was:" >&5
24637 sed 's/^/| /' conftest.$ac_ext >&5
24642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24644 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24645 $as_echo "$ac_cv_type_pid_t" >&6; }
24646 if test $ac_cv_type_pid_t = yes; then
24648 else
24650 cat >>confdefs.h <<_ACEOF
24651 #define pid_t int
24652 _ACEOF
24657 for ac_header in vfork.h
24659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24662 $as_echo_n "checking for $ac_header... " >&6; }
24663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24664 $as_echo_n "(cached) " >&6
24666 ac_res=`eval 'as_val=${'$as_ac_Header'}
24667 $as_echo "$as_val"'`
24668 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24669 $as_echo "$ac_res" >&6; }
24670 else
24671 # Is the header compilable?
24672 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24673 $as_echo_n "checking $ac_header usability... " >&6; }
24674 cat >conftest.$ac_ext <<_ACEOF
24675 /* confdefs.h. */
24676 _ACEOF
24677 cat confdefs.h >>conftest.$ac_ext
24678 cat >>conftest.$ac_ext <<_ACEOF
24679 /* end confdefs.h. */
24680 $ac_includes_default
24681 #include <$ac_header>
24682 _ACEOF
24683 rm -f conftest.$ac_objext
24684 if { (ac_try="$ac_compile"
24685 case "(($ac_try" in
24686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24687 *) ac_try_echo=$ac_try;;
24688 esac
24689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24690 $as_echo "$ac_try_echo") >&5
24691 (eval "$ac_compile") 2>conftest.er1
24692 ac_status=$?
24693 grep -v '^ *+' conftest.er1 >conftest.err
24694 rm -f conftest.er1
24695 cat conftest.err >&5
24696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697 (exit $ac_status); } && {
24698 test -z "$ac_c_werror_flag" ||
24699 test ! -s conftest.err
24700 } && test -s conftest.$ac_objext; then
24701 ac_header_compiler=yes
24702 else
24703 $as_echo "$as_me: failed program was:" >&5
24704 sed 's/^/| /' conftest.$ac_ext >&5
24706 ac_header_compiler=no
24709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24710 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24711 $as_echo "$ac_header_compiler" >&6; }
24713 # Is the header present?
24714 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24715 $as_echo_n "checking $ac_header presence... " >&6; }
24716 cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h. */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h. */
24722 #include <$ac_header>
24723 _ACEOF
24724 if { (ac_try="$ac_cpp conftest.$ac_ext"
24725 case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24728 esac
24729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24730 $as_echo "$ac_try_echo") >&5
24731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24732 ac_status=$?
24733 grep -v '^ *+' conftest.er1 >conftest.err
24734 rm -f conftest.er1
24735 cat conftest.err >&5
24736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } >/dev/null && {
24738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24739 test ! -s conftest.err
24740 }; then
24741 ac_header_preproc=yes
24742 else
24743 $as_echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24746 ac_header_preproc=no
24749 rm -f conftest.err conftest.$ac_ext
24750 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24751 $as_echo "$ac_header_preproc" >&6; }
24753 # So? What about this header?
24754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24755 yes:no: )
24756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24757 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24759 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24760 ac_header_preproc=yes
24762 no:yes:* )
24763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24764 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24766 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24768 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24770 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24772 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24774 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24777 esac
24778 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24779 $as_echo_n "checking for $ac_header... " >&6; }
24780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24781 $as_echo_n "(cached) " >&6
24782 else
24783 eval "$as_ac_Header=\$ac_header_preproc"
24785 ac_res=`eval 'as_val=${'$as_ac_Header'}
24786 $as_echo "$as_val"'`
24787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24788 $as_echo "$ac_res" >&6; }
24791 if test `eval 'as_val=${'$as_ac_Header'}
24792 $as_echo "$as_val"'` = yes; then
24793 cat >>confdefs.h <<_ACEOF
24794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24795 _ACEOF
24799 done
24803 for ac_func in fork vfork
24805 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24806 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24807 $as_echo_n "checking for $ac_func... " >&6; }
24808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24809 $as_echo_n "(cached) " >&6
24810 else
24811 cat >conftest.$ac_ext <<_ACEOF
24812 /* confdefs.h. */
24813 _ACEOF
24814 cat confdefs.h >>conftest.$ac_ext
24815 cat >>conftest.$ac_ext <<_ACEOF
24816 /* end confdefs.h. */
24817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24819 #define $ac_func innocuous_$ac_func
24821 /* System header to define __stub macros and hopefully few prototypes,
24822 which can conflict with char $ac_func (); below.
24823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24824 <limits.h> exists even on freestanding compilers. */
24826 #ifdef __STDC__
24827 # include <limits.h>
24828 #else
24829 # include <assert.h>
24830 #endif
24832 #undef $ac_func
24834 /* Override any GCC internal prototype to avoid an error.
24835 Use char because int might match the return type of a GCC
24836 builtin and then its argument prototype would still apply. */
24837 #ifdef __cplusplus
24838 extern "C"
24839 #endif
24840 char $ac_func ();
24841 /* The GNU C library defines this for functions which it implements
24842 to always fail with ENOSYS. Some functions are actually named
24843 something starting with __ and the normal name is an alias. */
24844 #if defined __stub_$ac_func || defined __stub___$ac_func
24845 choke me
24846 #endif
24849 main ()
24851 return $ac_func ();
24853 return 0;
24855 _ACEOF
24856 rm -f conftest.$ac_objext conftest$ac_exeext
24857 if { (ac_try="$ac_link"
24858 case "(($ac_try" in
24859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860 *) ac_try_echo=$ac_try;;
24861 esac
24862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24863 $as_echo "$ac_try_echo") >&5
24864 (eval "$ac_link") 2>conftest.er1
24865 ac_status=$?
24866 grep -v '^ *+' conftest.er1 >conftest.err
24867 rm -f conftest.er1
24868 cat conftest.err >&5
24869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870 (exit $ac_status); } && {
24871 test -z "$ac_c_werror_flag" ||
24872 test ! -s conftest.err
24873 } && test -s conftest$ac_exeext && {
24874 test "$cross_compiling" = yes ||
24875 $as_test_x conftest$ac_exeext
24876 }; then
24877 eval "$as_ac_var=yes"
24878 else
24879 $as_echo "$as_me: failed program was:" >&5
24880 sed 's/^/| /' conftest.$ac_ext >&5
24882 eval "$as_ac_var=no"
24885 rm -rf conftest.dSYM
24886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24887 conftest$ac_exeext conftest.$ac_ext
24889 ac_res=`eval 'as_val=${'$as_ac_var'}
24890 $as_echo "$as_val"'`
24891 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24892 $as_echo "$ac_res" >&6; }
24893 if test `eval 'as_val=${'$as_ac_var'}
24894 $as_echo "$as_val"'` = yes; then
24895 cat >>confdefs.h <<_ACEOF
24896 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24897 _ACEOF
24900 done
24902 if test "x$ac_cv_func_fork" = xyes; then
24903 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
24904 $as_echo_n "checking for working fork... " >&6; }
24905 if test "${ac_cv_func_fork_works+set}" = set; then
24906 $as_echo_n "(cached) " >&6
24907 else
24908 if test "$cross_compiling" = yes; then
24909 ac_cv_func_fork_works=cross
24910 else
24911 cat >conftest.$ac_ext <<_ACEOF
24912 /* confdefs.h. */
24913 _ACEOF
24914 cat confdefs.h >>conftest.$ac_ext
24915 cat >>conftest.$ac_ext <<_ACEOF
24916 /* end confdefs.h. */
24917 $ac_includes_default
24919 main ()
24922 /* By Ruediger Kuhlmann. */
24923 return fork () < 0;
24926 return 0;
24928 _ACEOF
24929 rm -f conftest$ac_exeext
24930 if { (ac_try="$ac_link"
24931 case "(($ac_try" in
24932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24934 esac
24935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24936 $as_echo "$ac_try_echo") >&5
24937 (eval "$ac_link") 2>&5
24938 ac_status=$?
24939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24941 { (case "(($ac_try" in
24942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24943 *) ac_try_echo=$ac_try;;
24944 esac
24945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24946 $as_echo "$ac_try_echo") >&5
24947 (eval "$ac_try") 2>&5
24948 ac_status=$?
24949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950 (exit $ac_status); }; }; then
24951 ac_cv_func_fork_works=yes
24952 else
24953 $as_echo "$as_me: program exited with status $ac_status" >&5
24954 $as_echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24957 ( exit $ac_status )
24958 ac_cv_func_fork_works=no
24960 rm -rf conftest.dSYM
24961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24966 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
24967 $as_echo "$ac_cv_func_fork_works" >&6; }
24969 else
24970 ac_cv_func_fork_works=$ac_cv_func_fork
24972 if test "x$ac_cv_func_fork_works" = xcross; then
24973 case $host in
24974 *-*-amigaos* | *-*-msdosdjgpp*)
24975 # Override, as these systems have only a dummy fork() stub
24976 ac_cv_func_fork_works=no
24979 ac_cv_func_fork_works=yes
24981 esac
24982 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24983 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24985 ac_cv_func_vfork_works=$ac_cv_func_vfork
24986 if test "x$ac_cv_func_vfork" = xyes; then
24987 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
24988 $as_echo_n "checking for working vfork... " >&6; }
24989 if test "${ac_cv_func_vfork_works+set}" = set; then
24990 $as_echo_n "(cached) " >&6
24991 else
24992 if test "$cross_compiling" = yes; then
24993 ac_cv_func_vfork_works=cross
24994 else
24995 cat >conftest.$ac_ext <<_ACEOF
24996 /* confdefs.h. */
24997 _ACEOF
24998 cat confdefs.h >>conftest.$ac_ext
24999 cat >>conftest.$ac_ext <<_ACEOF
25000 /* end confdefs.h. */
25001 /* Thanks to Paul Eggert for this test. */
25002 $ac_includes_default
25003 #include <sys/wait.h>
25004 #ifdef HAVE_VFORK_H
25005 # include <vfork.h>
25006 #endif
25007 /* On some sparc systems, changes by the child to local and incoming
25008 argument registers are propagated back to the parent. The compiler
25009 is told about this with #include <vfork.h>, but some compilers
25010 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25011 static variable whose address is put into a register that is
25012 clobbered by the vfork. */
25013 static void
25014 #ifdef __cplusplus
25015 sparc_address_test (int arg)
25016 # else
25017 sparc_address_test (arg) int arg;
25018 #endif
25020 static pid_t child;
25021 if (!child) {
25022 child = vfork ();
25023 if (child < 0) {
25024 perror ("vfork");
25025 _exit(2);
25027 if (!child) {
25028 arg = getpid();
25029 write(-1, "", 0);
25030 _exit (arg);
25036 main ()
25038 pid_t parent = getpid ();
25039 pid_t child;
25041 sparc_address_test (0);
25043 child = vfork ();
25045 if (child == 0) {
25046 /* Here is another test for sparc vfork register problems. This
25047 test uses lots of local variables, at least as many local
25048 variables as main has allocated so far including compiler
25049 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25050 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25051 reuse the register of parent for one of the local variables,
25052 since it will think that parent can't possibly be used any more
25053 in this routine. Assigning to the local variable will thus
25054 munge parent in the parent process. */
25055 pid_t
25056 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25057 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25058 /* Convince the compiler that p..p7 are live; otherwise, it might
25059 use the same hardware register for all 8 local variables. */
25060 if (p != p1 || p != p2 || p != p3 || p != p4
25061 || p != p5 || p != p6 || p != p7)
25062 _exit(1);
25064 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25065 from child file descriptors. If the child closes a descriptor
25066 before it execs or exits, this munges the parent's descriptor
25067 as well. Test for this by closing stdout in the child. */
25068 _exit(close(fileno(stdout)) != 0);
25069 } else {
25070 int status;
25071 struct stat st;
25073 while (wait(&status) != child)
25075 return (
25076 /* Was there some problem with vforking? */
25077 child < 0
25079 /* Did the child fail? (This shouldn't happen.) */
25080 || status
25082 /* Did the vfork/compiler bug occur? */
25083 || parent != getpid()
25085 /* Did the file descriptor bug occur? */
25086 || fstat(fileno(stdout), &st) != 0
25090 _ACEOF
25091 rm -f conftest$ac_exeext
25092 if { (ac_try="$ac_link"
25093 case "(($ac_try" in
25094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095 *) ac_try_echo=$ac_try;;
25096 esac
25097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25098 $as_echo "$ac_try_echo") >&5
25099 (eval "$ac_link") 2>&5
25100 ac_status=$?
25101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25103 { (case "(($ac_try" in
25104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105 *) ac_try_echo=$ac_try;;
25106 esac
25107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25108 $as_echo "$ac_try_echo") >&5
25109 (eval "$ac_try") 2>&5
25110 ac_status=$?
25111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); }; }; then
25113 ac_cv_func_vfork_works=yes
25114 else
25115 $as_echo "$as_me: program exited with status $ac_status" >&5
25116 $as_echo "$as_me: failed program was:" >&5
25117 sed 's/^/| /' conftest.$ac_ext >&5
25119 ( exit $ac_status )
25120 ac_cv_func_vfork_works=no
25122 rm -rf conftest.dSYM
25123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25128 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25129 $as_echo "$ac_cv_func_vfork_works" >&6; }
25132 if test "x$ac_cv_func_fork_works" = xcross; then
25133 ac_cv_func_vfork_works=$ac_cv_func_vfork
25134 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25135 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25138 if test "x$ac_cv_func_vfork_works" = xyes; then
25140 cat >>confdefs.h <<\_ACEOF
25141 #define HAVE_WORKING_VFORK 1
25142 _ACEOF
25144 else
25146 cat >>confdefs.h <<\_ACEOF
25147 #define vfork fork
25148 _ACEOF
25151 if test "x$ac_cv_func_fork_works" = xyes; then
25153 cat >>confdefs.h <<\_ACEOF
25154 #define HAVE_WORKING_FORK 1
25155 _ACEOF
25160 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25161 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25162 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25163 $as_echo_n "(cached) " >&6
25164 else
25165 cat >conftest.$ac_ext <<_ACEOF
25166 /* confdefs.h. */
25167 _ACEOF
25168 cat confdefs.h >>conftest.$ac_ext
25169 cat >>conftest.$ac_ext <<_ACEOF
25170 /* end confdefs.h. */
25171 #include <langinfo.h>
25173 main ()
25175 char* cs = nl_langinfo(CODESET);
25177 return 0;
25179 _ACEOF
25180 rm -f conftest.$ac_objext conftest$ac_exeext
25181 if { (ac_try="$ac_link"
25182 case "(($ac_try" in
25183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25184 *) ac_try_echo=$ac_try;;
25185 esac
25186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25187 $as_echo "$ac_try_echo") >&5
25188 (eval "$ac_link") 2>conftest.er1
25189 ac_status=$?
25190 grep -v '^ *+' conftest.er1 >conftest.err
25191 rm -f conftest.er1
25192 cat conftest.err >&5
25193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194 (exit $ac_status); } && {
25195 test -z "$ac_c_werror_flag" ||
25196 test ! -s conftest.err
25197 } && test -s conftest$ac_exeext && {
25198 test "$cross_compiling" = yes ||
25199 $as_test_x conftest$ac_exeext
25200 }; then
25201 emacs_cv_langinfo_codeset=yes
25202 else
25203 $as_echo "$as_me: failed program was:" >&5
25204 sed 's/^/| /' conftest.$ac_ext >&5
25206 emacs_cv_langinfo_codeset=no
25209 rm -rf conftest.dSYM
25210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25211 conftest$ac_exeext conftest.$ac_ext
25214 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25215 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25216 if test $emacs_cv_langinfo_codeset = yes; then
25218 cat >>confdefs.h <<\_ACEOF
25219 #define HAVE_LANGINFO_CODESET 1
25220 _ACEOF
25224 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25225 $as_echo_n "checking for size_t... " >&6; }
25226 if test "${ac_cv_type_size_t+set}" = set; then
25227 $as_echo_n "(cached) " >&6
25228 else
25229 ac_cv_type_size_t=no
25230 cat >conftest.$ac_ext <<_ACEOF
25231 /* confdefs.h. */
25232 _ACEOF
25233 cat confdefs.h >>conftest.$ac_ext
25234 cat >>conftest.$ac_ext <<_ACEOF
25235 /* end confdefs.h. */
25236 $ac_includes_default
25238 main ()
25240 if (sizeof (size_t))
25241 return 0;
25243 return 0;
25245 _ACEOF
25246 rm -f conftest.$ac_objext
25247 if { (ac_try="$ac_compile"
25248 case "(($ac_try" in
25249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25250 *) ac_try_echo=$ac_try;;
25251 esac
25252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25253 $as_echo "$ac_try_echo") >&5
25254 (eval "$ac_compile") 2>conftest.er1
25255 ac_status=$?
25256 grep -v '^ *+' conftest.er1 >conftest.err
25257 rm -f conftest.er1
25258 cat conftest.err >&5
25259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } && {
25261 test -z "$ac_c_werror_flag" ||
25262 test ! -s conftest.err
25263 } && test -s conftest.$ac_objext; then
25264 cat >conftest.$ac_ext <<_ACEOF
25265 /* confdefs.h. */
25266 _ACEOF
25267 cat confdefs.h >>conftest.$ac_ext
25268 cat >>conftest.$ac_ext <<_ACEOF
25269 /* end confdefs.h. */
25270 $ac_includes_default
25272 main ()
25274 if (sizeof ((size_t)))
25275 return 0;
25277 return 0;
25279 _ACEOF
25280 rm -f conftest.$ac_objext
25281 if { (ac_try="$ac_compile"
25282 case "(($ac_try" in
25283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25284 *) ac_try_echo=$ac_try;;
25285 esac
25286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25287 $as_echo "$ac_try_echo") >&5
25288 (eval "$ac_compile") 2>conftest.er1
25289 ac_status=$?
25290 grep -v '^ *+' conftest.er1 >conftest.err
25291 rm -f conftest.er1
25292 cat conftest.err >&5
25293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); } && {
25295 test -z "$ac_c_werror_flag" ||
25296 test ! -s conftest.err
25297 } && test -s conftest.$ac_objext; then
25299 else
25300 $as_echo "$as_me: failed program was:" >&5
25301 sed 's/^/| /' conftest.$ac_ext >&5
25303 ac_cv_type_size_t=yes
25306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25307 else
25308 $as_echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25316 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25317 $as_echo "$ac_cv_type_size_t" >&6; }
25318 if test $ac_cv_type_size_t = yes; then
25320 cat >>confdefs.h <<_ACEOF
25321 #define HAVE_SIZE_T 1
25322 _ACEOF
25328 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25329 $as_echo_n "checking for mbstate_t... " >&6; }
25330 if test "${ac_cv_type_mbstate_t+set}" = set; then
25331 $as_echo_n "(cached) " >&6
25332 else
25333 cat >conftest.$ac_ext <<_ACEOF
25334 /* confdefs.h. */
25335 _ACEOF
25336 cat confdefs.h >>conftest.$ac_ext
25337 cat >>conftest.$ac_ext <<_ACEOF
25338 /* end confdefs.h. */
25339 $ac_includes_default
25340 # include <wchar.h>
25342 main ()
25344 mbstate_t x; return sizeof x;
25346 return 0;
25348 _ACEOF
25349 rm -f conftest.$ac_objext
25350 if { (ac_try="$ac_compile"
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_compile") 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); } && {
25364 test -z "$ac_c_werror_flag" ||
25365 test ! -s conftest.err
25366 } && test -s conftest.$ac_objext; then
25367 ac_cv_type_mbstate_t=yes
25368 else
25369 $as_echo "$as_me: failed program was:" >&5
25370 sed 's/^/| /' conftest.$ac_ext >&5
25372 ac_cv_type_mbstate_t=no
25375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25377 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25378 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25379 if test $ac_cv_type_mbstate_t = yes; then
25381 cat >>confdefs.h <<\_ACEOF
25382 #define HAVE_MBSTATE_T 1
25383 _ACEOF
25385 else
25387 cat >>confdefs.h <<\_ACEOF
25388 #define mbstate_t int
25389 _ACEOF
25393 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25394 $as_echo_n "checking for C restrict keyword... " >&6; }
25395 if test "${emacs_cv_c_restrict+set}" = set; then
25396 $as_echo_n "(cached) " >&6
25397 else
25398 cat >conftest.$ac_ext <<_ACEOF
25399 /* confdefs.h. */
25400 _ACEOF
25401 cat confdefs.h >>conftest.$ac_ext
25402 cat >>conftest.$ac_ext <<_ACEOF
25403 /* end confdefs.h. */
25404 void fred (int *restrict x);
25406 main ()
25410 return 0;
25412 _ACEOF
25413 rm -f conftest.$ac_objext
25414 if { (ac_try="$ac_compile"
25415 case "(($ac_try" in
25416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25417 *) ac_try_echo=$ac_try;;
25418 esac
25419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25420 $as_echo "$ac_try_echo") >&5
25421 (eval "$ac_compile") 2>conftest.er1
25422 ac_status=$?
25423 grep -v '^ *+' conftest.er1 >conftest.err
25424 rm -f conftest.er1
25425 cat conftest.err >&5
25426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25427 (exit $ac_status); } && {
25428 test -z "$ac_c_werror_flag" ||
25429 test ! -s conftest.err
25430 } && test -s conftest.$ac_objext; then
25431 emacs_cv_c_restrict=yes
25432 else
25433 $as_echo "$as_me: failed program was:" >&5
25434 sed 's/^/| /' conftest.$ac_ext >&5
25436 cat >conftest.$ac_ext <<_ACEOF
25437 /* confdefs.h. */
25438 _ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h. */
25442 void fred (int *__restrict x);
25444 main ()
25448 return 0;
25450 _ACEOF
25451 rm -f conftest.$ac_objext
25452 if { (ac_try="$ac_compile"
25453 case "(($ac_try" in
25454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25455 *) ac_try_echo=$ac_try;;
25456 esac
25457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25458 $as_echo "$ac_try_echo") >&5
25459 (eval "$ac_compile") 2>conftest.er1
25460 ac_status=$?
25461 grep -v '^ *+' conftest.er1 >conftest.err
25462 rm -f conftest.er1
25463 cat conftest.err >&5
25464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465 (exit $ac_status); } && {
25466 test -z "$ac_c_werror_flag" ||
25467 test ! -s conftest.err
25468 } && test -s conftest.$ac_objext; then
25469 emacs_cv_c_restrict=__restrict
25470 else
25471 $as_echo "$as_me: failed program was:" >&5
25472 sed 's/^/| /' conftest.$ac_ext >&5
25474 emacs_cv_c_restrict=no
25477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25482 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25483 $as_echo "$emacs_cv_c_restrict" >&6; }
25484 case "$emacs_cv_c_restrict" in
25485 yes) emacs_restrict=restrict;;
25486 no) emacs_restrict="";;
25487 *) emacs_restrict="$emacs_cv_c_restrict";;
25488 esac
25489 if test "$emacs_restrict" != __restrict; then
25491 cat >>confdefs.h <<_ACEOF
25492 #define __restrict $emacs_restrict
25493 _ACEOF
25497 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25498 $as_echo_n "checking for C restricted array declarations... " >&6; }
25499 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25500 $as_echo_n "(cached) " >&6
25501 else
25502 cat >conftest.$ac_ext <<_ACEOF
25503 /* confdefs.h. */
25504 _ACEOF
25505 cat confdefs.h >>conftest.$ac_ext
25506 cat >>conftest.$ac_ext <<_ACEOF
25507 /* end confdefs.h. */
25508 void fred (int x[__restrict]);
25510 main ()
25514 return 0;
25516 _ACEOF
25517 rm -f conftest.$ac_objext
25518 if { (ac_try="$ac_compile"
25519 case "(($ac_try" in
25520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25521 *) ac_try_echo=$ac_try;;
25522 esac
25523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25524 $as_echo "$ac_try_echo") >&5
25525 (eval "$ac_compile") 2>conftest.er1
25526 ac_status=$?
25527 grep -v '^ *+' conftest.er1 >conftest.err
25528 rm -f conftest.er1
25529 cat conftest.err >&5
25530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25531 (exit $ac_status); } && {
25532 test -z "$ac_c_werror_flag" ||
25533 test ! -s conftest.err
25534 } && test -s conftest.$ac_objext; then
25535 emacs_cv_c_restrict_arr=yes
25536 else
25537 $as_echo "$as_me: failed program was:" >&5
25538 sed 's/^/| /' conftest.$ac_ext >&5
25540 emacs_cv_c_restrict_arr=no
25543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25545 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25546 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25547 if test "$emacs_cv_c_restrict_arr" = yes; then
25549 cat >>confdefs.h <<\_ACEOF
25550 #define __restrict_arr __restrict
25551 _ACEOF
25557 # Set up the CFLAGS for real compilation, so we can substitute it.
25558 CFLAGS="$REAL_CFLAGS"
25559 CPPFLAGS="$REAL_CPPFLAGS"
25561 #### Find out which version of Emacs this is.
25562 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25563 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25564 if test x"${version}" = x; then
25565 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25566 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25567 { (exit 1); exit 1; }; }
25569 if test x"${version}" != x"$PACKAGE_VERSION"; then
25570 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25571 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25574 ### Specify what sort of things we'll be editing into Makefile and config.h.
25575 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25620 cat >>confdefs.h <<_ACEOF
25621 #define EMACS_CONFIGURATION "${canonical}"
25622 _ACEOF
25625 cat >>confdefs.h <<_ACEOF
25626 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25627 _ACEOF
25630 cat >>confdefs.h <<_ACEOF
25631 #define config_machfile "${machfile}"
25632 _ACEOF
25635 cat >>confdefs.h <<_ACEOF
25636 #define config_opsysfile "${opsysfile}"
25637 _ACEOF
25640 cat >>confdefs.h <<_ACEOF
25641 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25642 _ACEOF
25645 cat >>confdefs.h <<_ACEOF
25646 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25647 _ACEOF
25650 cat >>confdefs.h <<_ACEOF
25651 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25652 _ACEOF
25655 cat >>confdefs.h <<_ACEOF
25656 #define UNEXEC_SRC ${UNEXEC_SRC}
25657 _ACEOF
25660 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25662 cat >>confdefs.h <<\_ACEOF
25663 #define HAVE_X_WINDOWS 1
25664 _ACEOF
25667 if test "${USE_X_TOOLKIT}" != "none" ; then
25669 cat >>confdefs.h <<\_ACEOF
25670 #define USE_X_TOOLKIT 1
25671 _ACEOF
25673 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25675 cat >>confdefs.h <<\_ACEOF
25676 #define USE_LUCID 1
25677 _ACEOF
25679 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25681 cat >>confdefs.h <<\_ACEOF
25682 #define USE_MOTIF 1
25683 _ACEOF
25687 if test "${HAVE_X11}" = "yes" ; then
25689 cat >>confdefs.h <<\_ACEOF
25690 #define HAVE_X11 1
25691 _ACEOF
25694 if test "${HAVE_MENUS}" = "yes" ; then
25696 cat >>confdefs.h <<\_ACEOF
25697 #define HAVE_MENUS 1
25698 _ACEOF
25701 if test "${GNU_MALLOC}" = "yes" ; then
25703 cat >>confdefs.h <<\_ACEOF
25704 #define GNU_MALLOC 1
25705 _ACEOF
25708 if test "${REL_ALLOC}" = "yes" ; then
25710 cat >>confdefs.h <<\_ACEOF
25711 #define REL_ALLOC 1
25712 _ACEOF
25721 #### Report on what we decided to do.
25722 #### Report GTK as a toolkit, even if it doesn't use Xt.
25723 #### It makes printing result more understandable as using GTK sets
25724 #### toolkit_scroll_bars to yes by default.
25725 if test "${HAVE_GTK}" = "yes"; then
25726 USE_X_TOOLKIT=GTK
25729 echo "
25730 Configured for \`${canonical}'.
25732 Where should the build process find the source code? ${srcdir}
25733 What operating system and machine description files should Emacs use?
25734 \`${opsysfile}' and \`${machfile}'
25735 What compiler should emacs be built with? ${CC} ${CFLAGS}
25736 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25737 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25738 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25739 What window system should Emacs use? ${window_system}
25740 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25742 if test -n "${x_includes}"; then
25743 echo " Where do we find X Windows header files? ${x_includes}"
25744 else
25745 echo " Where do we find X Windows header files? Standard dirs"
25747 if test -n "${x_libraries}"; then
25748 echo " Where do we find X Windows libraries? ${x_libraries}"
25749 else
25750 echo " Where do we find X Windows libraries? Standard dirs"
25753 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25754 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25755 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25756 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25757 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
25758 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25759 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
25760 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
25761 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
25762 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
25764 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
25765 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
25766 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
25767 echo " Does Emacs use -lxft? ${HAVE_XFT}"
25769 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25770 echo
25772 if test $USE_XASSERTS = yes; then
25773 echo " Compiling with asserts turned on."
25774 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25777 echo
25779 if test "$HAVE_NS" = "yes"; then
25780 echo
25781 echo "You must run \"make install\" in order to test the built application.
25782 The installed application will go to nextstep/Emacs.app and can be
25783 run or moved from there."
25784 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
25785 echo "The application will be fully self-contained."
25786 else
25787 echo "The lisp resources for the application will be installed under ${prefix}.
25788 You may need to run \"make install\" with sudo. The application will fail
25789 to run if these resources are not installed."
25791 echo
25794 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
25795 echo "D-Bus integration has been tested for GNU/Linux only."
25796 echo
25800 # Remove any trailing slashes in these variables.
25801 test "${prefix}" != NONE &&
25802 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25803 test "${exec_prefix}" != NONE &&
25804 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25806 # Now get this: Some word that is part of the ${srcdir} directory name
25807 # or the ${configuration} value might, just might, happen to be an
25808 # identifier like `sun4' or `i386' or something, and be predefined by
25809 # the C preprocessor to some helpful value like 1, or maybe the empty
25810 # string. Needless to say consequent macro substitutions are less
25811 # than conducive to the makefile finding the correct directory.
25812 cpp_undefs="`echo $srcdir $configuration $canonical |
25813 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25814 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
25816 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25817 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25818 ## from Makefile.c can correctly provide the arg `-traditional' to the
25819 ## C preprocessor.
25821 cat >conftest.$ac_ext <<_ACEOF
25822 /* confdefs.h. */
25823 _ACEOF
25824 cat confdefs.h >>conftest.$ac_ext
25825 cat >>conftest.$ac_ext <<_ACEOF
25826 /* end confdefs.h. */
25827 yes..yes
25828 _ACEOF
25829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25830 $EGREP "yes..yes" >/dev/null 2>&1; then
25831 CPP_NEED_TRADITIONAL=no
25832 else
25833 CPP_NEED_TRADITIONAL=yes
25835 rm -f conftest*
25838 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
25840 ac_config_commands="$ac_config_commands default"
25842 cat >confcache <<\_ACEOF
25843 # This file is a shell script that caches the results of configure
25844 # tests run on this system so they can be shared between configure
25845 # scripts and configure runs, see configure's option --config-cache.
25846 # It is not useful on other systems. If it contains results you don't
25847 # want to keep, you may remove or edit it.
25849 # config.status only pays attention to the cache file if you give it
25850 # the --recheck option to rerun configure.
25852 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25853 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25854 # following values.
25856 _ACEOF
25858 # The following way of writing the cache mishandles newlines in values,
25859 # but we know of no workaround that is simple, portable, and efficient.
25860 # So, we kill variables containing newlines.
25861 # Ultrix sh set writes to stderr and can't be redirected directly,
25862 # and sets the high bit in the cache file unless we assign to the vars.
25864 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25865 eval ac_val=\$$ac_var
25866 case $ac_val in #(
25867 *${as_nl}*)
25868 case $ac_var in #(
25869 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25870 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25871 esac
25872 case $ac_var in #(
25873 _ | IFS | as_nl) ;; #(
25874 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25875 *) $as_unset $ac_var ;;
25876 esac ;;
25877 esac
25878 done
25880 (set) 2>&1 |
25881 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25882 *${as_nl}ac_space=\ *)
25883 # `set' does not quote correctly, so add quotes (double-quote
25884 # substitution turns \\\\ into \\, and sed turns \\ into \).
25885 sed -n \
25886 "s/'/'\\\\''/g;
25887 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25888 ;; #(
25890 # `set' quotes correctly as required by POSIX, so do not add quotes.
25891 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25893 esac |
25894 sort
25896 sed '
25897 /^ac_cv_env_/b end
25898 t clear
25899 :clear
25900 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25901 t end
25902 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25903 :end' >>confcache
25904 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25905 if test -w "$cache_file"; then
25906 test "x$cache_file" != "x/dev/null" &&
25907 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
25908 $as_echo "$as_me: updating cache $cache_file" >&6;}
25909 cat confcache >$cache_file
25910 else
25911 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25912 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25915 rm -f confcache
25917 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25918 # Let make expand exec_prefix.
25919 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25921 DEFS=-DHAVE_CONFIG_H
25923 ac_libobjs=
25924 ac_ltlibobjs=
25925 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25926 # 1. Remove the extension, and $U if already installed.
25927 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25928 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25929 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25930 # will be set to the directory where LIBOBJS objects are built.
25931 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25932 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25933 done
25934 LIBOBJS=$ac_libobjs
25936 LTLIBOBJS=$ac_ltlibobjs
25940 : ${CONFIG_STATUS=./config.status}
25941 ac_write_fail=0
25942 ac_clean_files_save=$ac_clean_files
25943 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25944 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25945 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25946 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25947 #! $SHELL
25948 # Generated by $as_me.
25949 # Run this file to recreate the current configuration.
25950 # Compiler output produced by configure, useful for debugging
25951 # configure, is in config.log if it exists.
25953 debug=false
25954 ac_cs_recheck=false
25955 ac_cs_silent=false
25956 SHELL=\${CONFIG_SHELL-$SHELL}
25957 _ACEOF
25959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25960 ## --------------------- ##
25961 ## M4sh Initialization. ##
25962 ## --------------------- ##
25964 # Be more Bourne compatible
25965 DUALCASE=1; export DUALCASE # for MKS sh
25966 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25967 emulate sh
25968 NULLCMD=:
25969 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25970 # is contrary to our usage. Disable this feature.
25971 alias -g '${1+"$@"}'='"$@"'
25972 setopt NO_GLOB_SUBST
25973 else
25974 case `(set -o) 2>/dev/null` in
25975 *posix*) set -o posix ;;
25976 esac
25983 # PATH needs CR
25984 # Avoid depending upon Character Ranges.
25985 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25986 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25987 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25988 as_cr_digits='0123456789'
25989 as_cr_alnum=$as_cr_Letters$as_cr_digits
25991 as_nl='
25993 export as_nl
25994 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25995 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25996 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25997 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25998 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25999 as_echo='printf %s\n'
26000 as_echo_n='printf %s'
26001 else
26002 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26003 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26004 as_echo_n='/usr/ucb/echo -n'
26005 else
26006 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26007 as_echo_n_body='eval
26008 arg=$1;
26009 case $arg in
26010 *"$as_nl"*)
26011 expr "X$arg" : "X\\(.*\\)$as_nl";
26012 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26013 esac;
26014 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26016 export as_echo_n_body
26017 as_echo_n='sh -c $as_echo_n_body as_echo'
26019 export as_echo_body
26020 as_echo='sh -c $as_echo_body as_echo'
26023 # The user is always right.
26024 if test "${PATH_SEPARATOR+set}" != set; then
26025 PATH_SEPARATOR=:
26026 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26027 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26028 PATH_SEPARATOR=';'
26032 # Support unset when possible.
26033 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26034 as_unset=unset
26035 else
26036 as_unset=false
26040 # IFS
26041 # We need space, tab and new line, in precisely that order. Quoting is
26042 # there to prevent editors from complaining about space-tab.
26043 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26044 # splitting by setting IFS to empty value.)
26045 IFS=" "" $as_nl"
26047 # Find who we are. Look in the path if we contain no directory separator.
26048 case $0 in
26049 *[\\/]* ) as_myself=$0 ;;
26050 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26051 for as_dir in $PATH
26053 IFS=$as_save_IFS
26054 test -z "$as_dir" && as_dir=.
26055 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26056 done
26057 IFS=$as_save_IFS
26060 esac
26061 # We did not find ourselves, most probably we were run as `sh COMMAND'
26062 # in which case we are not to be found in the path.
26063 if test "x$as_myself" = x; then
26064 as_myself=$0
26066 if test ! -f "$as_myself"; then
26067 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26068 { (exit 1); exit 1; }
26071 # Work around bugs in pre-3.0 UWIN ksh.
26072 for as_var in ENV MAIL MAILPATH
26073 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26074 done
26075 PS1='$ '
26076 PS2='> '
26077 PS4='+ '
26079 # NLS nuisances.
26080 LC_ALL=C
26081 export LC_ALL
26082 LANGUAGE=C
26083 export LANGUAGE
26085 # Required to use basename.
26086 if expr a : '\(a\)' >/dev/null 2>&1 &&
26087 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26088 as_expr=expr
26089 else
26090 as_expr=false
26093 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26094 as_basename=basename
26095 else
26096 as_basename=false
26100 # Name of the executable.
26101 as_me=`$as_basename -- "$0" ||
26102 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26103 X"$0" : 'X\(//\)$' \| \
26104 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26105 $as_echo X/"$0" |
26106 sed '/^.*\/\([^/][^/]*\)\/*$/{
26107 s//\1/
26110 /^X\/\(\/\/\)$/{
26111 s//\1/
26114 /^X\/\(\/\).*/{
26115 s//\1/
26118 s/.*/./; q'`
26120 # CDPATH.
26121 $as_unset CDPATH
26125 as_lineno_1=$LINENO
26126 as_lineno_2=$LINENO
26127 test "x$as_lineno_1" != "x$as_lineno_2" &&
26128 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26130 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26131 # uniformly replaced by the line number. The first 'sed' inserts a
26132 # line-number line after each line using $LINENO; the second 'sed'
26133 # does the real work. The second script uses 'N' to pair each
26134 # line-number line with the line containing $LINENO, and appends
26135 # trailing '-' during substitution so that $LINENO is not a special
26136 # case at line end.
26137 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26138 # scripts with optimization help from Paolo Bonzini. Blame Lee
26139 # E. McMahon (1931-1989) for sed's syntax. :-)
26140 sed -n '
26142 /[$]LINENO/=
26143 ' <$as_myself |
26144 sed '
26145 s/[$]LINENO.*/&-/
26146 t lineno
26148 :lineno
26150 :loop
26151 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26152 t loop
26153 s/-\n.*//
26154 ' >$as_me.lineno &&
26155 chmod +x "$as_me.lineno" ||
26156 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26157 { (exit 1); exit 1; }; }
26159 # Don't try to exec as it changes $[0], causing all sort of problems
26160 # (the dirname of $[0] is not the place where we might find the
26161 # original and so on. Autoconf is especially sensitive to this).
26162 . "./$as_me.lineno"
26163 # Exit status is that of the last command.
26164 exit
26168 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26169 as_dirname=dirname
26170 else
26171 as_dirname=false
26174 ECHO_C= ECHO_N= ECHO_T=
26175 case `echo -n x` in
26176 -n*)
26177 case `echo 'x\c'` in
26178 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26179 *) ECHO_C='\c';;
26180 esac;;
26182 ECHO_N='-n';;
26183 esac
26184 if expr a : '\(a\)' >/dev/null 2>&1 &&
26185 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26186 as_expr=expr
26187 else
26188 as_expr=false
26191 rm -f conf$$ conf$$.exe conf$$.file
26192 if test -d conf$$.dir; then
26193 rm -f conf$$.dir/conf$$.file
26194 else
26195 rm -f conf$$.dir
26196 mkdir conf$$.dir 2>/dev/null
26198 if (echo >conf$$.file) 2>/dev/null; then
26199 if ln -s conf$$.file conf$$ 2>/dev/null; then
26200 as_ln_s='ln -s'
26201 # ... but there are two gotchas:
26202 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26203 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26204 # In both cases, we have to default to `cp -p'.
26205 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26206 as_ln_s='cp -p'
26207 elif ln conf$$.file conf$$ 2>/dev/null; then
26208 as_ln_s=ln
26209 else
26210 as_ln_s='cp -p'
26212 else
26213 as_ln_s='cp -p'
26215 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26216 rmdir conf$$.dir 2>/dev/null
26218 if mkdir -p . 2>/dev/null; then
26219 as_mkdir_p=:
26220 else
26221 test -d ./-p && rmdir ./-p
26222 as_mkdir_p=false
26225 if test -x / >/dev/null 2>&1; then
26226 as_test_x='test -x'
26227 else
26228 if ls -dL / >/dev/null 2>&1; then
26229 as_ls_L_option=L
26230 else
26231 as_ls_L_option=
26233 as_test_x='
26234 eval sh -c '\''
26235 if test -d "$1"; then
26236 test -d "$1/.";
26237 else
26238 case $1 in
26239 -*)set "./$1";;
26240 esac;
26241 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26242 ???[sx]*):;;*)false;;esac;fi
26243 '\'' sh
26246 as_executable_p=$as_test_x
26248 # Sed expression to map a string onto a valid CPP name.
26249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26251 # Sed expression to map a string onto a valid variable name.
26252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26255 exec 6>&1
26257 # Save the log message, to keep $[0] and so on meaningful, and to
26258 # report actual input values of CONFIG_FILES etc. instead of their
26259 # values after options handling.
26260 ac_log="
26261 This file was extended by emacs $as_me 23.1.91, which was
26262 generated by GNU Autoconf 2.62. Invocation command line was
26264 CONFIG_FILES = $CONFIG_FILES
26265 CONFIG_HEADERS = $CONFIG_HEADERS
26266 CONFIG_LINKS = $CONFIG_LINKS
26267 CONFIG_COMMANDS = $CONFIG_COMMANDS
26268 $ $0 $@
26270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26273 _ACEOF
26275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26276 # Files that config.status was made for.
26277 config_files="$ac_config_files"
26278 config_headers="$ac_config_headers"
26279 config_commands="$ac_config_commands"
26281 _ACEOF
26283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26284 ac_cs_usage="\
26285 \`$as_me' instantiates files from templates according to the
26286 current configuration.
26288 Usage: $0 [OPTIONS] [FILE]...
26290 -h, --help print this help, then exit
26291 -V, --version print version number and configuration settings, then exit
26292 -q, --quiet do not print progress messages
26293 -d, --debug don't remove temporary files
26294 --recheck update $as_me by reconfiguring in the same conditions
26295 --file=FILE[:TEMPLATE]
26296 instantiate the configuration file FILE
26297 --header=FILE[:TEMPLATE]
26298 instantiate the configuration header FILE
26300 Configuration files:
26301 $config_files
26303 Configuration headers:
26304 $config_headers
26306 Configuration commands:
26307 $config_commands
26309 Report bugs to <bug-autoconf@gnu.org>."
26311 _ACEOF
26312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26313 ac_cs_version="\\
26314 emacs config.status 23.1.91
26315 configured by $0, generated by GNU Autoconf 2.62,
26316 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26318 Copyright (C) 2008 Free Software Foundation, Inc.
26319 This config.status script is free software; the Free Software Foundation
26320 gives unlimited permission to copy, distribute and modify it."
26322 ac_pwd='$ac_pwd'
26323 srcdir='$srcdir'
26324 INSTALL='$INSTALL'
26325 test -n "\$AWK" || AWK=awk
26326 _ACEOF
26328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26329 # The default lists apply if the user does not specify any file.
26330 ac_need_defaults=:
26331 while test $# != 0
26333 case $1 in
26334 --*=*)
26335 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26336 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26337 ac_shift=:
26340 ac_option=$1
26341 ac_optarg=$2
26342 ac_shift=shift
26344 esac
26346 case $ac_option in
26347 # Handling of the options.
26348 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26349 ac_cs_recheck=: ;;
26350 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26351 $as_echo "$ac_cs_version"; exit ;;
26352 --debug | --debu | --deb | --de | --d | -d )
26353 debug=: ;;
26354 --file | --fil | --fi | --f )
26355 $ac_shift
26356 case $ac_optarg in
26357 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26358 esac
26359 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26360 ac_need_defaults=false;;
26361 --header | --heade | --head | --hea )
26362 $ac_shift
26363 case $ac_optarg in
26364 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26365 esac
26366 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26367 ac_need_defaults=false;;
26368 --he | --h)
26369 # Conflict between --help and --header
26370 { $as_echo "$as_me: error: ambiguous option: $1
26371 Try \`$0 --help' for more information." >&2
26372 { (exit 1); exit 1; }; };;
26373 --help | --hel | -h )
26374 $as_echo "$ac_cs_usage"; exit ;;
26375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26376 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26377 ac_cs_silent=: ;;
26379 # This is an error.
26380 -*) { $as_echo "$as_me: error: unrecognized option: $1
26381 Try \`$0 --help' for more information." >&2
26382 { (exit 1); exit 1; }; } ;;
26384 *) ac_config_targets="$ac_config_targets $1"
26385 ac_need_defaults=false ;;
26387 esac
26388 shift
26389 done
26391 ac_configure_extra_args=
26393 if $ac_cs_silent; then
26394 exec 6>/dev/null
26395 ac_configure_extra_args="$ac_configure_extra_args --silent"
26398 _ACEOF
26399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26400 if \$ac_cs_recheck; then
26401 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26402 shift
26403 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26404 CONFIG_SHELL='$SHELL'
26405 export CONFIG_SHELL
26406 exec "\$@"
26409 _ACEOF
26410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26411 exec 5>>config.log
26413 echo
26414 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26415 ## Running $as_me. ##
26416 _ASBOX
26417 $as_echo "$ac_log"
26418 } >&5
26420 _ACEOF
26421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26423 # INIT-COMMANDS
26425 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26427 _ACEOF
26429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26431 # Handling of arguments.
26432 for ac_config_target in $ac_config_targets
26434 case $ac_config_target in
26435 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26436 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26437 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26438 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26439 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26440 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26441 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26442 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26443 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26444 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26445 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26446 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26447 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26449 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26450 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26451 { (exit 1); exit 1; }; };;
26452 esac
26453 done
26456 # If the user did not use the arguments to specify the items to instantiate,
26457 # then the envvar interface is used. Set only those that are not.
26458 # We use the long form for the default assignment because of an extremely
26459 # bizarre bug on SunOS 4.1.3.
26460 if $ac_need_defaults; then
26461 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26462 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26463 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26466 # Have a temporary directory for convenience. Make it in the build tree
26467 # simply because there is no reason against having it here, and in addition,
26468 # creating and moving files from /tmp can sometimes cause problems.
26469 # Hook for its removal unless debugging.
26470 # Note that there is a small window in which the directory will not be cleaned:
26471 # after its creation but before its name has been assigned to `$tmp'.
26472 $debug ||
26474 tmp=
26475 trap 'exit_status=$?
26476 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26478 trap '{ (exit 1); exit 1; }' 1 2 13 15
26480 # Create a (secure) tmp directory for tmp files.
26483 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26484 test -n "$tmp" && test -d "$tmp"
26485 } ||
26487 tmp=./conf$$-$RANDOM
26488 (umask 077 && mkdir "$tmp")
26489 } ||
26491 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26492 { (exit 1); exit 1; }
26495 # Set up the scripts for CONFIG_FILES section.
26496 # No need to generate them if there are no CONFIG_FILES.
26497 # This happens for instance with `./config.status config.h'.
26498 if test -n "$CONFIG_FILES"; then
26501 ac_cr=' '
26502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26504 ac_cs_awk_cr='\\r'
26505 else
26506 ac_cs_awk_cr=$ac_cr
26509 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26510 _ACEOF
26514 echo "cat >conf$$subs.awk <<_ACEOF" &&
26515 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26516 echo "_ACEOF"
26517 } >conf$$subs.sh ||
26518 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26519 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26520 { (exit 1); exit 1; }; }
26521 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26522 ac_delim='%!_!# '
26523 for ac_last_try in false false false false false :; do
26524 . ./conf$$subs.sh ||
26525 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26526 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26527 { (exit 1); exit 1; }; }
26529 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26530 break
26531 elif $ac_last_try; then
26532 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26533 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26534 { (exit 1); exit 1; }; }
26535 else
26536 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26538 done
26539 rm -f conf$$subs.sh
26541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26542 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26543 _ACEOF
26544 sed -n '
26546 s/^/S["/; s/!.*/"]=/
26549 s/^[^!]*!//
26550 :repl
26551 t repl
26552 s/'"$ac_delim"'$//
26553 t delim
26556 s/\(.\{148\}\).*/\1/
26557 t more1
26558 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26561 b repl
26562 :more1
26563 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26566 s/.\{148\}//
26567 t nl
26568 :delim
26570 s/\(.\{148\}\).*/\1/
26571 t more2
26572 s/["\\]/\\&/g; s/^/"/; s/$/"/
26575 :more2
26576 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26579 s/.\{148\}//
26580 t delim
26581 ' <conf$$subs.awk | sed '
26582 /^[^""]/{
26584 s/\n//
26586 ' >>$CONFIG_STATUS || ac_write_fail=1
26587 rm -f conf$$subs.awk
26588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26589 _ACAWK
26590 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26591 for (key in S) S_is_set[key] = 1
26592 FS = "\a"
26596 line = $ 0
26597 nfields = split(line, field, "@")
26598 substed = 0
26599 len = length(field[1])
26600 for (i = 2; i < nfields; i++) {
26601 key = field[i]
26602 keylen = length(key)
26603 if (S_is_set[key]) {
26604 value = S[key]
26605 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26606 len += length(value) + length(field[++i])
26607 substed = 1
26608 } else
26609 len += 1 + keylen
26612 print line
26615 _ACAWK
26616 _ACEOF
26617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26618 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26619 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26620 else
26622 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26623 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26624 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26625 { (exit 1); exit 1; }; }
26626 _ACEOF
26628 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26629 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26630 # trailing colons and then remove the whole line if VPATH becomes empty
26631 # (actually we leave an empty line to preserve line numbers).
26632 if test "x$srcdir" = x.; then
26633 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26634 s/:*\$(srcdir):*/:/
26635 s/:*\${srcdir}:*/:/
26636 s/:*@srcdir@:*/:/
26637 s/^\([^=]*=[ ]*\):*/\1/
26638 s/:*$//
26639 s/^[^=]*=[ ]*$//
26643 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26644 fi # test -n "$CONFIG_FILES"
26646 # Set up the scripts for CONFIG_HEADERS section.
26647 # No need to generate them if there are no CONFIG_HEADERS.
26648 # This happens for instance with `./config.status Makefile'.
26649 if test -n "$CONFIG_HEADERS"; then
26650 cat >"$tmp/defines.awk" <<\_ACAWK ||
26651 BEGIN {
26652 _ACEOF
26654 # Transform confdefs.h into an awk script `defines.awk', embedded as
26655 # here-document in config.status, that substitutes the proper values into
26656 # config.h.in to produce config.h.
26658 # Create a delimiter string that does not exist in confdefs.h, to ease
26659 # handling of long lines.
26660 ac_delim='%!_!# '
26661 for ac_last_try in false false :; do
26662 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26663 if test -z "$ac_t"; then
26664 break
26665 elif $ac_last_try; then
26666 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26667 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26668 { (exit 1); exit 1; }; }
26669 else
26670 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26672 done
26674 # For the awk script, D is an array of macro values keyed by name,
26675 # likewise P contains macro parameters if any. Preserve backslash
26676 # newline sequences.
26678 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26679 sed -n '
26680 s/.\{148\}/&'"$ac_delim"'/g
26681 t rset
26682 :rset
26683 s/^[ ]*#[ ]*define[ ][ ]*/ /
26684 t def
26686 :def
26687 s/\\$//
26688 t bsnl
26689 s/["\\]/\\&/g
26690 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26691 D["\1"]=" \3"/p
26692 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26694 :bsnl
26695 s/["\\]/\\&/g
26696 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26697 D["\1"]=" \3\\\\\\n"\\/p
26698 t cont
26699 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26700 t cont
26702 :cont
26704 s/.\{148\}/&'"$ac_delim"'/g
26705 t clear
26706 :clear
26707 s/\\$//
26708 t bsnlc
26709 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26711 :bsnlc
26712 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26713 b cont
26714 ' <confdefs.h | sed '
26715 s/'"$ac_delim"'/"\\\
26716 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26719 for (key in D) D_is_set[key] = 1
26720 FS = "\a"
26722 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26723 line = \$ 0
26724 split(line, arg, " ")
26725 if (arg[1] == "#") {
26726 defundef = arg[2]
26727 mac1 = arg[3]
26728 } else {
26729 defundef = substr(arg[1], 2)
26730 mac1 = arg[2]
26732 split(mac1, mac2, "(") #)
26733 macro = mac2[1]
26734 if (D_is_set[macro]) {
26735 # Preserve the white space surrounding the "#".
26736 prefix = substr(line, 1, index(line, defundef) - 1)
26737 print prefix "define", macro P[macro] D[macro]
26738 next
26739 } else {
26740 # Replace #undef with comments. This is necessary, for example,
26741 # in the case of _POSIX_SOURCE, which is predefined and required
26742 # on some systems where configure will not decide to define it.
26743 if (defundef == "undef") {
26744 print "/*", line, "*/"
26745 next
26749 { print }
26750 _ACAWK
26751 _ACEOF
26752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26753 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26754 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26755 { (exit 1); exit 1; }; }
26756 fi # test -n "$CONFIG_HEADERS"
26759 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26760 shift
26761 for ac_tag
26763 case $ac_tag in
26764 :[FHLC]) ac_mode=$ac_tag; continue;;
26765 esac
26766 case $ac_mode$ac_tag in
26767 :[FHL]*:*);;
26768 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26769 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26770 { (exit 1); exit 1; }; };;
26771 :[FH]-) ac_tag=-:-;;
26772 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26773 esac
26774 ac_save_IFS=$IFS
26775 IFS=:
26776 set x $ac_tag
26777 IFS=$ac_save_IFS
26778 shift
26779 ac_file=$1
26780 shift
26782 case $ac_mode in
26783 :L) ac_source=$1;;
26784 :[FH])
26785 ac_file_inputs=
26786 for ac_f
26788 case $ac_f in
26789 -) ac_f="$tmp/stdin";;
26790 *) # Look for the file first in the build tree, then in the source tree
26791 # (if the path is not absolute). The absolute path cannot be DOS-style,
26792 # because $ac_f cannot contain `:'.
26793 test -f "$ac_f" ||
26794 case $ac_f in
26795 [\\/$]*) false;;
26796 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26797 esac ||
26798 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26799 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26800 { (exit 1); exit 1; }; };;
26801 esac
26802 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26803 ac_file_inputs="$ac_file_inputs '$ac_f'"
26804 done
26806 # Let's still pretend it is `configure' which instantiates (i.e., don't
26807 # use $as_me), people would be surprised to read:
26808 # /* config.h. Generated by config.status. */
26809 configure_input='Generated from '`
26810 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26811 `' by configure.'
26812 if test x"$ac_file" != x-; then
26813 configure_input="$ac_file. $configure_input"
26814 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
26815 $as_echo "$as_me: creating $ac_file" >&6;}
26817 # Neutralize special characters interpreted by sed in replacement strings.
26818 case $configure_input in #(
26819 *\&* | *\|* | *\\* )
26820 ac_sed_conf_input=`$as_echo "$configure_input" |
26821 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26822 *) ac_sed_conf_input=$configure_input;;
26823 esac
26825 case $ac_tag in
26826 *:-:* | *:-) cat >"$tmp/stdin" \
26827 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26828 $as_echo "$as_me: error: could not create $ac_file" >&2;}
26829 { (exit 1); exit 1; }; } ;;
26830 esac
26832 esac
26834 ac_dir=`$as_dirname -- "$ac_file" ||
26835 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26836 X"$ac_file" : 'X\(//\)[^/]' \| \
26837 X"$ac_file" : 'X\(//\)$' \| \
26838 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26839 $as_echo X"$ac_file" |
26840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26841 s//\1/
26844 /^X\(\/\/\)[^/].*/{
26845 s//\1/
26848 /^X\(\/\/\)$/{
26849 s//\1/
26852 /^X\(\/\).*/{
26853 s//\1/
26856 s/.*/./; q'`
26857 { as_dir="$ac_dir"
26858 case $as_dir in #(
26859 -*) as_dir=./$as_dir;;
26860 esac
26861 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26862 as_dirs=
26863 while :; do
26864 case $as_dir in #(
26865 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26866 *) as_qdir=$as_dir;;
26867 esac
26868 as_dirs="'$as_qdir' $as_dirs"
26869 as_dir=`$as_dirname -- "$as_dir" ||
26870 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26871 X"$as_dir" : 'X\(//\)[^/]' \| \
26872 X"$as_dir" : 'X\(//\)$' \| \
26873 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26874 $as_echo X"$as_dir" |
26875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26876 s//\1/
26879 /^X\(\/\/\)[^/].*/{
26880 s//\1/
26883 /^X\(\/\/\)$/{
26884 s//\1/
26887 /^X\(\/\).*/{
26888 s//\1/
26891 s/.*/./; q'`
26892 test -d "$as_dir" && break
26893 done
26894 test -z "$as_dirs" || eval "mkdir $as_dirs"
26895 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26896 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
26897 { (exit 1); exit 1; }; }; }
26898 ac_builddir=.
26900 case "$ac_dir" in
26901 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26903 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26904 # A ".." for each directory in $ac_dir_suffix.
26905 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26906 case $ac_top_builddir_sub in
26907 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26908 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26909 esac ;;
26910 esac
26911 ac_abs_top_builddir=$ac_pwd
26912 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26913 # for backward compatibility:
26914 ac_top_builddir=$ac_top_build_prefix
26916 case $srcdir in
26917 .) # We are building in place.
26918 ac_srcdir=.
26919 ac_top_srcdir=$ac_top_builddir_sub
26920 ac_abs_top_srcdir=$ac_pwd ;;
26921 [\\/]* | ?:[\\/]* ) # Absolute name.
26922 ac_srcdir=$srcdir$ac_dir_suffix;
26923 ac_top_srcdir=$srcdir
26924 ac_abs_top_srcdir=$srcdir ;;
26925 *) # Relative name.
26926 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26927 ac_top_srcdir=$ac_top_build_prefix$srcdir
26928 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26929 esac
26930 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26933 case $ac_mode in
26936 # CONFIG_FILE
26939 case $INSTALL in
26940 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26941 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26942 esac
26943 _ACEOF
26945 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26946 # If the template does not know about datarootdir, expand it.
26947 # FIXME: This hack should be removed a few years after 2.60.
26948 ac_datarootdir_hack=; ac_datarootdir_seen=
26950 ac_sed_dataroot='
26951 /datarootdir/ {
26955 /@datadir@/p
26956 /@docdir@/p
26957 /@infodir@/p
26958 /@localedir@/p
26959 /@mandir@/p
26961 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26962 *datarootdir*) ac_datarootdir_seen=yes;;
26963 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26964 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26965 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26966 _ACEOF
26967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26968 ac_datarootdir_hack='
26969 s&@datadir@&$datadir&g
26970 s&@docdir@&$docdir&g
26971 s&@infodir@&$infodir&g
26972 s&@localedir@&$localedir&g
26973 s&@mandir@&$mandir&g
26974 s&\\\${datarootdir}&$datarootdir&g' ;;
26975 esac
26976 _ACEOF
26978 # Neutralize VPATH when `$srcdir' = `.'.
26979 # Shell code in configure.ac might set extrasub.
26980 # FIXME: do we really want to maintain this feature?
26981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26982 ac_sed_extra="$ac_vpsub
26983 $extrasub
26984 _ACEOF
26985 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26987 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26988 s|@configure_input@|$ac_sed_conf_input|;t t
26989 s&@top_builddir@&$ac_top_builddir_sub&;t t
26990 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26991 s&@srcdir@&$ac_srcdir&;t t
26992 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26993 s&@top_srcdir@&$ac_top_srcdir&;t t
26994 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26995 s&@builddir@&$ac_builddir&;t t
26996 s&@abs_builddir@&$ac_abs_builddir&;t t
26997 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26998 s&@INSTALL@&$ac_INSTALL&;t t
26999 $ac_datarootdir_hack
27001 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27002 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27003 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27004 { (exit 1); exit 1; }; }
27006 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27007 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27008 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27009 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27010 which seems to be undefined. Please make sure it is defined." >&5
27011 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27012 which seems to be undefined. Please make sure it is defined." >&2;}
27014 rm -f "$tmp/stdin"
27015 case $ac_file in
27016 -) cat "$tmp/out" && rm -f "$tmp/out";;
27017 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27018 esac \
27019 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27020 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27021 { (exit 1); exit 1; }; }
27025 # CONFIG_HEADER
27027 if test x"$ac_file" != x-; then
27029 $as_echo "/* $configure_input */" \
27030 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27031 } >"$tmp/config.h" \
27032 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27033 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27034 { (exit 1); exit 1; }; }
27035 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27036 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27037 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27038 else
27039 rm -f "$ac_file"
27040 mv "$tmp/config.h" "$ac_file" \
27041 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27042 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27043 { (exit 1); exit 1; }; }
27045 else
27046 $as_echo "/* $configure_input */" \
27047 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27048 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27049 $as_echo "$as_me: error: could not create -" >&2;}
27050 { (exit 1); exit 1; }; }
27054 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27055 $as_echo "$as_me: executing $ac_file commands" >&6;}
27057 esac
27060 case $ac_file$ac_mode in
27061 "default":C)
27063 ### Make the necessary directories, if they don't exist.
27064 for dir in etc lisp ; do
27065 test -d ${dir} || mkdir ${dir}
27066 done
27068 # Build src/Makefile from ${srcdir}/src/Makefile.c
27069 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27070 # This must be done after src/config.h is built, since we rely on that file.
27072 echo creating src/epaths.h
27073 ${MAKE-make} epaths-force
27075 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27076 # `..' to `. .' unless invoked with -traditional
27078 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27079 CPPFLAGS="$CPPFLAGS -traditional"
27082 echo creating lib-src/Makefile
27083 ( cd lib-src
27084 rm -f junk.c junk1.c junk2.c
27085 sed -e '/start of cpp stuff/q' \
27086 < Makefile.c > junk1.c
27087 sed -e '1,/start of cpp stuff/d'\
27088 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27089 < Makefile.c > junk.c
27090 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27091 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27092 cat junk1.c junk2.c > Makefile.new
27093 rm -f junk.c junk1.c junk2.c
27094 chmod 444 Makefile.new
27095 mv -f Makefile.new Makefile
27098 echo creating src/Makefile
27099 ( cd src
27100 rm -f junk.c junk1.c junk2.c
27101 sed -e '/start of cpp stuff/q' \
27102 < Makefile.c > junk1.c
27103 sed -e '1,/start of cpp stuff/d'\
27104 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27105 < Makefile.c > junk.c
27106 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27107 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27108 cat junk1.c junk2.c > Makefile.new
27109 rm -f junk.c junk1.c junk2.c
27110 chmod 444 Makefile.new
27111 mv -f Makefile.new Makefile
27114 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27115 echo creating src/.gdbinit
27116 echo source $srcdir/src/.gdbinit > src/.gdbinit
27121 esac
27122 done # for ac_tag
27125 { (exit 0); exit 0; }
27126 _ACEOF
27127 chmod +x $CONFIG_STATUS
27128 ac_clean_files=$ac_clean_files_save
27130 test $ac_write_fail = 0 ||
27131 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27132 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27133 { (exit 1); exit 1; }; }
27136 # configure is writing to config.log, and then calls config.status.
27137 # config.status does its own redirection, appending to config.log.
27138 # Unfortunately, on DOS this fails, as config.log is still kept open
27139 # by configure, so config.status won't be able to write to it; its
27140 # output is simply discarded. So we exec the FD to /dev/null,
27141 # effectively closing config.log, so it can be properly (re)opened and
27142 # appended to by config.status. When coming back to configure, we
27143 # need to make the FD available again.
27144 if test "$no_create" != yes; then
27145 ac_cs_success=:
27146 ac_config_status_args=
27147 test "$silent" = yes &&
27148 ac_config_status_args="$ac_config_status_args --quiet"
27149 exec 5>/dev/null
27150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27151 exec 5>>config.log
27152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27153 # would make configure fail if this is the last instruction.
27154 $ac_cs_success || { (exit 1); exit 1; }
27156 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27157 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27158 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}