* s/hpux10-20.h (LIB_STANDARD): New definition.
[emacs.git] / configure
blobd4a92ae7cad8153c4d4a79f124efdd241beb7147
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT=''
601 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_config_libobj_dir=src
639 ac_header_list=
640 ac_func_list=
641 ac_subst_vars='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 LIB_MATH
706 CRT_DIR
707 LIBSOUND
708 PKG_CONFIG
709 ALSA_CFLAGS
710 ALSA_LIBS
711 CFLAGS_SOUND
712 SET_MAKE
713 XMKMF
714 NS_OBJ
715 NS_SUPPORT
716 HAVE_XSERVER
717 RSVG_CFLAGS
718 RSVG_LIBS
719 GTK_CFLAGS
720 GTK_LIBS
721 GTK_OBJ
722 DBUS_CFLAGS
723 DBUS_LIBS
724 DBUS_OBJ
725 GCONF_CFLAGS
726 GCONF_LIBS
727 LIBSELINUX_LIBS
728 LIBXTR6
729 LIBXMU
730 FONTCONFIG_CFLAGS
731 FONTCONFIG_LIBS
732 XFT_CFLAGS
733 XFT_LIBS
734 LIBOTF_CFLAGS
735 LIBOTF_LIBS
736 M17N_FLT_CFLAGS
737 M17N_FLT_LIBS
738 FONT_OBJ
739 FREETYPE_CFLAGS
740 FREETYPE_LIBS
741 LIBXPM
742 LIBJPEG
743 LIBPNG
744 LIBTIFF
745 LIBGIF
746 LIBGPM
747 GPM_MOUSE_SUPPORT
748 LIBXSM
749 ALLOCA
750 liblockfile
751 LIBS_MAIL
752 LIBOBJS
753 NEED_SETGID
754 KMEM_GROUP
755 GETLOADAVG_LIBS
756 GETOPT_H
757 GETOPTOBJS
758 LIBHESIOD
759 LIBRESOLV
760 COM_ERRLIB
761 CRYPTOLIB
762 KRB5LIB
763 DESLIB
764 KRB4LIB
765 version
766 configuration
767 canonical
768 srcdir
769 lispdir
770 locallisppath
771 lisppath
772 x_default_search_path
773 etcdir
774 archlibdir
775 bitmapdir
776 gamedir
777 gameuser
778 c_switch_system
779 c_switch_machine
780 unexec
781 LD_SWITCH_X_SITE
782 LD_SWITCH_X_SITE_AUX
783 C_SWITCH_X_SITE
784 C_SWITCH_X_SYSTEM
785 X_TOOLKIT_TYPE
786 machfile
787 opsysfile
788 ns_appdir
789 ns_appbindir
790 ns_appresdir
791 ns_appsrc
792 GNUSTEP_MAKEFILES
793 GNUSTEP_SYSTEM_HEADERS
794 GNUSTEP_SYSTEM_LIBRARIES
795 GNU_OBJC_CFLAGS
796 LIB_SRC_EXTRA_INSTALLABLES
797 OTHER_FILES
798 XMENU_OBJ
799 XOBJ
800 WIDGET_OBJ
801 TOOLKIT_LIBW
802 LIBXT_OTHER
803 OLDXMENU
804 LIBXMENU
805 LIBX_OTHER
806 CYGWIN_OBJ
807 PRE_ALLOC_OBJ
808 POST_ALLOC_OBJ
809 LTLIBOBJS'
810 ac_subst_files=''
811 ac_user_opts='
812 enable_option_checking
813 with_pop
814 with_kerberos
815 with_kerberos5
816 with_hesiod
817 with_mmdf
818 with_mail_unlink
819 with_mailhost
820 with_sound
821 with_sync_input
822 with_x_toolkit
823 with_xpm
824 with_jpeg
825 with_tiff
826 with_gif
827 with_png
828 with_rsvg
829 with_xft
830 with_libotf
831 with_m17n_flt
832 with_toolkit_scroll_bars
833 with_xaw3d
834 with_xim
835 with_ns
836 with_gpm
837 with_dbus
838 with_gconf
839 with_selinux
840 with_makeinfo
841 with_gtk
842 with_gcc
843 with_pkg_config_prog
844 with_crt_dir
845 with_gnustep_conf
846 enable_ns_self_contained
847 enable_asserts
848 enable_maintainer_mode
849 enable_locallisppath
850 enable_checking
851 enable_profiling
852 enable_autodepend
853 enable_largefile
854 with_x
856 ac_precious_vars='build_alias
857 host_alias
858 target_alias
860 CFLAGS
861 LDFLAGS
862 LIBS
863 CPPFLAGS
865 XMKMF'
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
916 ac_prev=
917 ac_dashdash=
918 for ac_option
920 # If the previous option needs an argument, assign it.
921 if test -n "$ac_prev"; then
922 eval $ac_prev=\$ac_option
923 ac_prev=
924 continue
927 case $ac_option in
928 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929 *) ac_optarg=yes ;;
930 esac
932 # Accept the important Cygnus configure options, so we can diagnose typos.
934 case $ac_dashdash$ac_option in
936 ac_dashdash=yes ;;
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
955 --config-cache | -C)
956 cache_file=config.cache ;;
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
980 "enable_$ac_useropt"
981 "*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=no ;;
987 -docdir | --docdir | --docdi | --doc | --do)
988 ac_prev=docdir ;;
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990 docdir=$ac_optarg ;;
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993 ac_prev=dvidir ;;
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995 dvidir=$ac_optarg ;;
997 -enable-* | --enable-*)
998 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_useropt_orig=$ac_useropt
1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_$ac_useropt"
1008 "*) ;;
1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1010 ac_unrecognized_sep=', ';;
1011 esac
1012 eval enable_$ac_useropt=\$ac_optarg ;;
1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1016 | --exec | --exe | --ex)
1017 ac_prev=exec_prefix ;;
1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1020 | --exec=* | --exe=* | --ex=*)
1021 exec_prefix=$ac_optarg ;;
1023 -gas | --gas | --ga | --g)
1024 # Obsolete; use --with-gas.
1025 with_gas=yes ;;
1027 -help | --help | --hel | --he | -h)
1028 ac_init_help=long ;;
1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1030 ac_init_help=recursive ;;
1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1032 ac_init_help=short ;;
1034 -host | --host | --hos | --ho)
1035 ac_prev=host_alias ;;
1036 -host=* | --host=* | --hos=* | --ho=*)
1037 host_alias=$ac_optarg ;;
1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 ac_prev=htmldir ;;
1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 | --ht=*)
1043 htmldir=$ac_optarg ;;
1045 -includedir | --includedir | --includedi | --included | --include \
1046 | --includ | --inclu | --incl | --inc)
1047 ac_prev=includedir ;;
1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1049 | --includ=* | --inclu=* | --incl=* | --inc=*)
1050 includedir=$ac_optarg ;;
1052 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 ac_prev=infodir ;;
1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1055 infodir=$ac_optarg ;;
1057 -libdir | --libdir | --libdi | --libd)
1058 ac_prev=libdir ;;
1059 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1060 libdir=$ac_optarg ;;
1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1063 | --libexe | --libex | --libe)
1064 ac_prev=libexecdir ;;
1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1066 | --libexe=* | --libex=* | --libe=*)
1067 libexecdir=$ac_optarg ;;
1069 -localedir | --localedir | --localedi | --localed | --locale)
1070 ac_prev=localedir ;;
1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1072 localedir=$ac_optarg ;;
1074 -localstatedir | --localstatedir | --localstatedi | --localstated \
1075 | --localstate | --localstat | --localsta | --localst | --locals)
1076 ac_prev=localstatedir ;;
1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1079 localstatedir=$ac_optarg ;;
1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 ac_prev=mandir ;;
1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1084 mandir=$ac_optarg ;;
1086 -nfp | --nfp | --nf)
1087 # Obsolete; use --without-fp.
1088 with_fp=no ;;
1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1091 | --no-cr | --no-c | -n)
1092 no_create=yes ;;
1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1096 no_recursion=yes ;;
1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1100 | --oldin | --oldi | --old | --ol | --o)
1101 ac_prev=oldincludedir ;;
1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1105 oldincludedir=$ac_optarg ;;
1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 ac_prev=prefix ;;
1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1110 prefix=$ac_optarg ;;
1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1113 | --program-pre | --program-pr | --program-p)
1114 ac_prev=program_prefix ;;
1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1117 program_prefix=$ac_optarg ;;
1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1120 | --program-suf | --program-su | --program-s)
1121 ac_prev=program_suffix ;;
1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1124 program_suffix=$ac_optarg ;;
1126 -program-transform-name | --program-transform-name \
1127 | --program-transform-nam | --program-transform-na \
1128 | --program-transform-n | --program-transform- \
1129 | --program-transform | --program-transfor \
1130 | --program-transfo | --program-transf \
1131 | --program-trans | --program-tran \
1132 | --progr-tra | --program-tr | --program-t)
1133 ac_prev=program_transform_name ;;
1134 -program-transform-name=* | --program-transform-name=* \
1135 | --program-transform-nam=* | --program-transform-na=* \
1136 | --program-transform-n=* | --program-transform-=* \
1137 | --program-transform=* | --program-transfor=* \
1138 | --program-transfo=* | --program-transf=* \
1139 | --program-trans=* | --program-tran=* \
1140 | --progr-tra=* | --program-tr=* | --program-t=*)
1141 program_transform_name=$ac_optarg ;;
1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 ac_prev=pdfdir ;;
1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1146 pdfdir=$ac_optarg ;;
1148 -psdir | --psdir | --psdi | --psd | --ps)
1149 ac_prev=psdir ;;
1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1151 psdir=$ac_optarg ;;
1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1154 | -silent | --silent | --silen | --sile | --sil)
1155 silent=yes ;;
1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 ac_prev=sbindir ;;
1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 | --sbi=* | --sb=*)
1161 sbindir=$ac_optarg ;;
1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1165 | --sharedst | --shareds | --shared | --share | --shar \
1166 | --sha | --sh)
1167 ac_prev=sharedstatedir ;;
1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 | --sha=* | --sh=*)
1172 sharedstatedir=$ac_optarg ;;
1174 -site | --site | --sit)
1175 ac_prev=site ;;
1176 -site=* | --site=* | --sit=*)
1177 site=$ac_optarg ;;
1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 ac_prev=srcdir ;;
1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1182 srcdir=$ac_optarg ;;
1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1185 | --syscon | --sysco | --sysc | --sys | --sy)
1186 ac_prev=sysconfdir ;;
1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1189 sysconfdir=$ac_optarg ;;
1191 -target | --target | --targe | --targ | --tar | --ta | --t)
1192 ac_prev=target_alias ;;
1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1194 target_alias=$ac_optarg ;;
1196 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1197 verbose=yes ;;
1199 -version | --version | --versio | --versi | --vers | -V)
1200 ac_init_version=: ;;
1202 -with-* | --with-*)
1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1204 # Reject names that are not valid shell variable names.
1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1206 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1207 { (exit 1); exit 1; }; }
1208 ac_useropt_orig=$ac_useropt
1209 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210 case $ac_user_opts in
1212 "with_$ac_useropt"
1213 "*) ;;
1214 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215 ac_unrecognized_sep=', ';;
1216 esac
1217 eval with_$ac_useropt=\$ac_optarg ;;
1219 -without-* | --without-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_useropt_orig=$ac_useropt
1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1227 case $ac_user_opts in
1229 "with_$ac_useropt"
1230 "*) ;;
1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1232 ac_unrecognized_sep=', ';;
1233 esac
1234 eval with_$ac_useropt=no ;;
1236 --x)
1237 # Obsolete; use --with-x.
1238 with_x=yes ;;
1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1241 | --x-incl | --x-inc | --x-in | --x-i)
1242 ac_prev=x_includes ;;
1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1245 x_includes=$ac_optarg ;;
1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1249 ac_prev=x_libraries ;;
1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1252 x_libraries=$ac_optarg ;;
1254 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1255 Try \`$0 --help' for more information." >&2
1256 { (exit 1); exit 1; }; }
1259 *=*)
1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1263 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1264 { (exit 1); exit 1; }; }
1265 eval $ac_envvar=\$ac_optarg
1266 export $ac_envvar ;;
1269 # FIXME: should be removed in autoconf 3.0.
1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1273 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 esac
1277 done
1279 if test -n "$ac_prev"; then
1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1281 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1282 { (exit 1); exit 1; }; }
1285 if test -n "$ac_unrecognized_opts"; then
1286 case $enable_option_checking in
1287 no) ;;
1288 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1289 { (exit 1); exit 1; }; } ;;
1290 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1313 { (exit 1); exit 1; }; }
1314 done
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325 if test "x$build_alias" = x; then
1326 cross_compiling=maybe
1327 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1328 If a cross compiler is detected then cross compile mode will be used." >&2
1329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337 test "$silent" = yes && exec 6>/dev/null
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1344 { (exit 1); exit 1; }; }
1345 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1346 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1347 { (exit 1); exit 1; }; }
1350 # Find the source files, if location was not specified.
1351 if test -z "$srcdir"; then
1352 ac_srcdir_defaulted=yes
1353 # Try the directory containing this script, then the parent directory.
1354 ac_confdir=`$as_dirname -- "$as_myself" ||
1355 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1356 X"$as_myself" : 'X\(//\)[^/]' \| \
1357 X"$as_myself" : 'X\(//\)$' \| \
1358 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1359 $as_echo X"$as_myself" |
1360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1361 s//\1/
1364 /^X\(\/\/\)[^/].*/{
1365 s//\1/
1368 /^X\(\/\/\)$/{
1369 s//\1/
1372 /^X\(\/\).*/{
1373 s//\1/
1376 s/.*/./; q'`
1377 srcdir=$ac_confdir
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379 srcdir=..
1381 else
1382 ac_srcdir_defaulted=no
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1386 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1387 { (exit 1); exit 1; }; }
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1392 { (exit 1); exit 1; }; }
1393 pwd)`
1394 # When building in place, set srcdir=.
1395 if test "$ac_abs_confdir" = "$ac_pwd"; then
1396 srcdir=.
1398 # Remove unnecessary trailing slashes from srcdir.
1399 # Double slashes in file names in object file debugging info
1400 # mess up M-x gdb in Emacs.
1401 case $srcdir in
1402 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 esac
1404 for ac_var in $ac_precious_vars; do
1405 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1406 eval ac_env_${ac_var}_value=\$${ac_var}
1407 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1408 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1409 done
1412 # Report the --help message.
1414 if test "$ac_init_help" = "long"; then
1415 # Omit some internal or obsolete options to make the list less imposing.
1416 # This message is too long to be a string in the A/UX 3.1 sh.
1417 cat <<_ACEOF
1418 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1420 Usage: $0 [OPTION]... [VAR=VALUE]...
1422 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1423 VAR=VALUE. See below for descriptions of some of the useful variables.
1425 Defaults for the options are specified in brackets.
1427 Configuration:
1428 -h, --help display this help and exit
1429 --help=short display options specific to this package
1430 --help=recursive display the short help of all the included packages
1431 -V, --version display version information and exit
1432 -q, --quiet, --silent do not print \`checking...' messages
1433 --cache-file=FILE cache test results in FILE [disabled]
1434 -C, --config-cache alias for \`--cache-file=config.cache'
1435 -n, --no-create do not create output files
1436 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438 Installation directories:
1439 --prefix=PREFIX install architecture-independent files in PREFIX
1440 [$ac_default_prefix]
1441 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1442 [PREFIX]
1444 By default, \`make install' will install all the files in
1445 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1446 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1447 for instance \`--prefix=\$HOME'.
1449 For better control, use the options below.
1451 Fine tuning of the installation directories:
1452 --bindir=DIR user executables [EPREFIX/bin]
1453 --sbindir=DIR system admin executables [EPREFIX/sbin]
1454 --libexecdir=DIR program executables [EPREFIX/libexec]
1455 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1456 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1457 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1458 --libdir=DIR object code libraries [EPREFIX/lib]
1459 --includedir=DIR C header files [PREFIX/include]
1460 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1461 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1462 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1463 --infodir=DIR info documentation [DATAROOTDIR/info]
1464 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1465 --mandir=DIR man documentation [DATAROOTDIR/man]
1466 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1467 --htmldir=DIR html documentation [DOCDIR]
1468 --dvidir=DIR dvi documentation [DOCDIR]
1469 --pdfdir=DIR pdf documentation [DOCDIR]
1470 --psdir=DIR ps documentation [DOCDIR]
1471 _ACEOF
1473 cat <<\_ACEOF
1475 Program names:
1476 --program-prefix=PREFIX prepend PREFIX to installed program names
1477 --program-suffix=SUFFIX append SUFFIX to installed program names
1478 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480 X features:
1481 --x-includes=DIR X include files are in DIR
1482 --x-libraries=DIR X library files are in DIR
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1490 if test -n "$ac_init_help"; then
1491 case $ac_init_help in
1492 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1493 esac
1494 cat <<\_ACEOF
1496 Optional Features:
1497 --disable-option-checking ignore unrecognized --enable/--with options
1498 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1499 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1500 --disable-ns-self-contained
1501 disable self contained build under NeXTstep
1502 --enable-asserts compile code with asserts enabled
1503 --enable-maintainer-mode
1504 enable make rules and dependencies not useful (and
1505 sometimes confusing) to the casual installer
1506 --enable-locallisppath=PATH
1507 directories Emacs should search for lisp files
1508 specific to this site
1509 --enable-checking[=LIST]
1510 enable expensive run-time checks. With LIST, enable
1511 only specific categories of checks. Categories are:
1512 all,yes,no. Flags are: stringbytes, stringoverrun,
1513 stringfreelist, xmallocoverrun, conslist
1514 --enable-profiling build emacs with profiling support. This might not
1515 work on all platforms
1516 --enable-autodepend automatically generate dependencies to .h-files.
1517 Requires GNU Make and Gcc. Enabled if GNU Make and
1518 Gcc is found
1519 --disable-largefile omit support for large files
1521 Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --without-pop don't support POP mail retrieval with movemail
1525 --with-kerberos support Kerberos-authenticated POP
1526 --with-kerberos5 support Kerberos version 5 authenticated POP
1527 --with-hesiod support Hesiod to get the POP server host
1528 --with-mmdf support MMDF mailboxes
1529 --with-mail-unlink unlink, rather than empty, mail spool after reading
1530 --with-mailhost=HOSTNAME
1531 string giving default POP mail host
1532 --without-sound don't compile with sound support
1533 --without-sync-input process async input synchronously
1534 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1535 athena, motif, no)
1536 --without-xpm don't compile with XPM image support
1537 --without-jpeg don't compile with JPEG image support
1538 --without-tiff don't compile with TIFF image support
1539 --without-gif don't compile with GIF image support
1540 --without-png don't compile with PNG image support
1541 --without-rsvg don't compile with SVG image support
1542 --without-xft don't use XFT for anti aliased fonts
1543 --without-libotf don't use libotf for OpenType font support
1544 --without-m17n-flt don't use m17n-flt for text shaping
1545 --without-toolkit-scroll-bars
1546 don't use Motif or Xaw3d scroll bars
1547 --without-xaw3d don't use Xaw3d
1548 --without-xim don't use X11 XIM
1549 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1550 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1551 console
1552 --without-dbus don't compile with D-Bus support
1553 --without-gconf don't compile with GConf support
1554 --without-selinux don't compile with SELinux support
1555 --without-makeinfo don't require makeinfo for building manuals
1557 --with-pkg-config-prog=PATH
1558 path to pkg-config for finding GTK and librsvg
1559 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1560 /usr/lib, or /usr/lib64 on some platforms.
1561 --with-gnustep-conf=PATH
1562 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1563 or /etc/GNUstep/GNUstep.conf
1564 --with-x use the X Window System
1566 Some influential environment variables:
1567 CC C compiler command
1568 CFLAGS C compiler flags
1569 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1570 nonstandard directory <lib dir>
1571 LIBS libraries to pass to the linker, e.g. -l<library>
1572 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1573 you have headers in a nonstandard directory <include dir>
1574 CPP C preprocessor
1575 XMKMF Path to xmkmf, Makefile generator for X Window System
1577 Use these variables to override the choices made by `configure' or to help
1578 it to find libraries and programs with nonstandard names/locations.
1580 _ACEOF
1581 ac_status=$?
1584 if test "$ac_init_help" = "recursive"; then
1585 # If there are subdirs, report their specific --help.
1586 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1587 test -d "$ac_dir" ||
1588 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1589 continue
1590 ac_builddir=.
1592 case "$ac_dir" in
1593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1596 # A ".." for each directory in $ac_dir_suffix.
1597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1598 case $ac_top_builddir_sub in
1599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1601 esac ;;
1602 esac
1603 ac_abs_top_builddir=$ac_pwd
1604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1605 # for backward compatibility:
1606 ac_top_builddir=$ac_top_build_prefix
1608 case $srcdir in
1609 .) # We are building in place.
1610 ac_srcdir=.
1611 ac_top_srcdir=$ac_top_builddir_sub
1612 ac_abs_top_srcdir=$ac_pwd ;;
1613 [\\/]* | ?:[\\/]* ) # Absolute name.
1614 ac_srcdir=$srcdir$ac_dir_suffix;
1615 ac_top_srcdir=$srcdir
1616 ac_abs_top_srcdir=$srcdir ;;
1617 *) # Relative name.
1618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1619 ac_top_srcdir=$ac_top_build_prefix$srcdir
1620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1621 esac
1622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624 cd "$ac_dir" || { ac_status=$?; continue; }
1625 # Check for guested configure.
1626 if test -f "$ac_srcdir/configure.gnu"; then
1627 echo &&
1628 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1629 elif test -f "$ac_srcdir/configure"; then
1630 echo &&
1631 $SHELL "$ac_srcdir/configure" --help=recursive
1632 else
1633 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1634 fi || ac_status=$?
1635 cd "$ac_pwd" || { ac_status=$?; break; }
1636 done
1639 test -n "$ac_init_help" && exit $ac_status
1640 if $ac_init_version; then
1641 cat <<\_ACEOF
1642 emacs configure 24.0.50
1643 generated by GNU Autoconf 2.62
1645 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1646 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1647 This configure script is free software; the Free Software Foundation
1648 gives unlimited permission to copy, distribute and modify it.
1649 _ACEOF
1650 exit
1652 cat >config.log <<_ACEOF
1653 This file contains any messages produced by compilers while
1654 running configure, to aid debugging if configure makes a mistake.
1656 It was created by emacs $as_me 24.0.50, which was
1657 generated by GNU Autoconf 2.62. Invocation command line was
1659 $ $0 $@
1661 _ACEOF
1662 exec 5>>config.log
1664 cat <<_ASUNAME
1665 ## --------- ##
1666 ## Platform. ##
1667 ## --------- ##
1669 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1670 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1671 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1672 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1673 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1675 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1676 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1678 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1679 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1680 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1681 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1682 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1683 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1684 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1686 _ASUNAME
1688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1689 for as_dir in $PATH
1691 IFS=$as_save_IFS
1692 test -z "$as_dir" && as_dir=.
1693 $as_echo "PATH: $as_dir"
1694 done
1695 IFS=$as_save_IFS
1697 } >&5
1699 cat >&5 <<_ACEOF
1702 ## ----------- ##
1703 ## Core tests. ##
1704 ## ----------- ##
1706 _ACEOF
1709 # Keep a trace of the command line.
1710 # Strip out --no-create and --no-recursion so they do not pile up.
1711 # Strip out --silent because we don't want to record it for future runs.
1712 # Also quote any args containing shell meta-characters.
1713 # Make two passes to allow for proper duplicate-argument suppression.
1714 ac_configure_args=
1715 ac_configure_args0=
1716 ac_configure_args1=
1717 ac_must_keep_next=false
1718 for ac_pass in 1 2
1720 for ac_arg
1722 case $ac_arg in
1723 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1725 | -silent | --silent | --silen | --sile | --sil)
1726 continue ;;
1727 *\'*)
1728 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1729 esac
1730 case $ac_pass in
1731 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1733 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1734 if test $ac_must_keep_next = true; then
1735 ac_must_keep_next=false # Got value, back to normal.
1736 else
1737 case $ac_arg in
1738 *=* | --config-cache | -C | -disable-* | --disable-* \
1739 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1740 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1741 | -with-* | --with-* | -without-* | --without-* | --x)
1742 case "$ac_configure_args0 " in
1743 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1744 esac
1746 -* ) ac_must_keep_next=true ;;
1747 esac
1749 ac_configure_args="$ac_configure_args '$ac_arg'"
1751 esac
1752 done
1753 done
1754 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1755 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1757 # When interrupted or exit'd, cleanup temporary files, and complete
1758 # config.log. We remove comments because anyway the quotes in there
1759 # would cause problems or look ugly.
1760 # WARNING: Use '\'' to represent an apostrophe within the trap.
1761 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1762 trap 'exit_status=$?
1763 # Save into config.log some information that might help in debugging.
1765 echo
1767 cat <<\_ASBOX
1768 ## ---------------- ##
1769 ## Cache variables. ##
1770 ## ---------------- ##
1771 _ASBOX
1772 echo
1773 # The following way of writing the cache mishandles newlines in values,
1775 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1776 eval ac_val=\$$ac_var
1777 case $ac_val in #(
1778 *${as_nl}*)
1779 case $ac_var in #(
1780 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1781 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1782 esac
1783 case $ac_var in #(
1784 _ | IFS | as_nl) ;; #(
1785 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1786 *) $as_unset $ac_var ;;
1787 esac ;;
1788 esac
1789 done
1790 (set) 2>&1 |
1791 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1792 *${as_nl}ac_space=\ *)
1793 sed -n \
1794 "s/'\''/'\''\\\\'\'''\''/g;
1795 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1796 ;; #(
1798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1800 esac |
1801 sort
1803 echo
1805 cat <<\_ASBOX
1806 ## ----------------- ##
1807 ## Output variables. ##
1808 ## ----------------- ##
1809 _ASBOX
1810 echo
1811 for ac_var in $ac_subst_vars
1813 eval ac_val=\$$ac_var
1814 case $ac_val in
1815 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816 esac
1817 $as_echo "$ac_var='\''$ac_val'\''"
1818 done | sort
1819 echo
1821 if test -n "$ac_subst_files"; then
1822 cat <<\_ASBOX
1823 ## ------------------- ##
1824 ## File substitutions. ##
1825 ## ------------------- ##
1826 _ASBOX
1827 echo
1828 for ac_var in $ac_subst_files
1830 eval ac_val=\$$ac_var
1831 case $ac_val in
1832 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1833 esac
1834 $as_echo "$ac_var='\''$ac_val'\''"
1835 done | sort
1836 echo
1839 if test -s confdefs.h; then
1840 cat <<\_ASBOX
1841 ## ----------- ##
1842 ## confdefs.h. ##
1843 ## ----------- ##
1844 _ASBOX
1845 echo
1846 cat confdefs.h
1847 echo
1849 test "$ac_signal" != 0 &&
1850 $as_echo "$as_me: caught signal $ac_signal"
1851 $as_echo "$as_me: exit $exit_status"
1852 } >&5
1853 rm -f core *.core core.conftest.* &&
1854 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1855 exit $exit_status
1857 for ac_signal in 1 2 13 15; do
1858 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1859 done
1860 ac_signal=0
1862 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1863 rm -f -r conftest* confdefs.h
1865 # Predefined preprocessor variables.
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_NAME "$PACKAGE_NAME"
1869 _ACEOF
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1874 _ACEOF
1877 cat >>confdefs.h <<_ACEOF
1878 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1879 _ACEOF
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_STRING "$PACKAGE_STRING"
1884 _ACEOF
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1889 _ACEOF
1892 # Let the site file select an alternate cache file if it wants to.
1893 # Prefer an explicitly selected file to automatically selected ones.
1894 ac_site_file1=NONE
1895 ac_site_file2=NONE
1896 if test -n "$CONFIG_SITE"; then
1897 ac_site_file1=$CONFIG_SITE
1898 elif test "x$prefix" != xNONE; then
1899 ac_site_file1=$prefix/share/config.site
1900 ac_site_file2=$prefix/etc/config.site
1901 else
1902 ac_site_file1=$ac_default_prefix/share/config.site
1903 ac_site_file2=$ac_default_prefix/etc/config.site
1905 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1907 test "x$ac_site_file" = xNONE && continue
1908 if test -r "$ac_site_file"; then
1909 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1910 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1911 sed 's/^/| /' "$ac_site_file" >&5
1912 . "$ac_site_file"
1914 done
1916 if test -r "$cache_file"; then
1917 # Some versions of bash will fail to source /dev/null (special
1918 # files actually), so we avoid doing that.
1919 if test -f "$cache_file"; then
1920 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1921 $as_echo "$as_me: loading cache $cache_file" >&6;}
1922 case $cache_file in
1923 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1924 *) . "./$cache_file";;
1925 esac
1927 else
1928 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1929 $as_echo "$as_me: creating cache $cache_file" >&6;}
1930 >$cache_file
1933 ac_header_list="$ac_header_list sys/time.h"
1934 ac_header_list="$ac_header_list unistd.h"
1935 ac_func_list="$ac_func_list alarm"
1936 # Check that the precious variables saved in the cache have kept the same
1937 # value.
1938 ac_cache_corrupted=false
1939 for ac_var in $ac_precious_vars; do
1940 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1941 eval ac_new_set=\$ac_env_${ac_var}_set
1942 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1943 eval ac_new_val=\$ac_env_${ac_var}_value
1944 case $ac_old_set,$ac_new_set in
1945 set,)
1946 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1947 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1948 ac_cache_corrupted=: ;;
1949 ,set)
1950 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1951 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1952 ac_cache_corrupted=: ;;
1953 ,);;
1955 if test "x$ac_old_val" != "x$ac_new_val"; then
1956 # differences in whitespace do not lead to failure.
1957 ac_old_val_w=`echo x $ac_old_val`
1958 ac_new_val_w=`echo x $ac_new_val`
1959 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1960 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1961 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1962 ac_cache_corrupted=:
1963 else
1964 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1965 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1966 eval $ac_var=\$ac_old_val
1968 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1969 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1970 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1971 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1972 fi;;
1973 esac
1974 # Pass precious variables to config.status.
1975 if test "$ac_new_set" = set; then
1976 case $ac_new_val in
1977 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1978 *) ac_arg=$ac_var=$ac_new_val ;;
1979 esac
1980 case " $ac_configure_args " in
1981 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1982 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1983 esac
1985 done
1986 if $ac_cache_corrupted; then
1987 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1988 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1989 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1990 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1991 { (exit 1); exit 1; }; }
2018 ac_ext=c
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2025 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2029 test "$program_prefix" != NONE &&
2030 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2031 # Use a double $ so make ignores it.
2032 test "$program_suffix" != NONE &&
2033 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2034 # Double any \ or $.
2035 # By default was `s,x,x', remove it if useless.
2036 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2037 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2040 lispdir='${datadir}/emacs/${version}/lisp'
2041 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
2042 '${datadir}/emacs/site-lisp'
2043 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
2044 etcdir='${datadir}/emacs/${version}/etc'
2045 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
2046 docdir='${datadir}/emacs/${version}/etc'
2047 gamedir='${localstatedir}/games/emacs'
2049 gameuser=games
2054 # Check whether --with-pop was given.
2055 if test "${with_pop+set}" = set; then
2056 withval=$with_pop;
2057 else
2058 with_pop=yes
2061 if test "$with_pop" = yes; then
2062 cat >>confdefs.h <<\_ACEOF
2063 #define MAIL_USE_POP 1
2064 _ACEOF
2070 # Check whether --with-kerberos was given.
2071 if test "${with_kerberos+set}" = set; then
2072 withval=$with_kerberos;
2073 else
2074 with_kerberos=no
2077 if test "$with_kerberos" != no; then
2078 cat >>confdefs.h <<\_ACEOF
2079 #define KERBEROS 1
2080 _ACEOF
2086 # Check whether --with-kerberos5 was given.
2087 if test "${with_kerberos5+set}" = set; then
2088 withval=$with_kerberos5;
2089 else
2090 with_kerberos5=no
2093 if test "${with_kerberos5}" != no; then
2094 if test "${with_kerberos}" = no; then
2095 with_kerberos=yes
2096 cat >>confdefs.h <<\_ACEOF
2097 #define KERBEROS 1
2098 _ACEOF
2102 cat >>confdefs.h <<\_ACEOF
2103 #define KERBEROS5 1
2104 _ACEOF
2109 # Check whether --with-hesiod was given.
2110 if test "${with_hesiod+set}" = set; then
2111 withval=$with_hesiod;
2112 else
2113 with_hesiod=no
2116 if test "$with_hesiod" != no; then
2118 cat >>confdefs.h <<\_ACEOF
2119 #define HESIOD 1
2120 _ACEOF
2125 # Check whether --with-mmdf was given.
2126 if test "${with_mmdf+set}" = set; then
2127 withval=$with_mmdf;
2128 else
2129 with_mmdf=no
2132 if test "$with_mmdf" != no; then
2134 cat >>confdefs.h <<\_ACEOF
2135 #define MAIL_USE_MMDF 1
2136 _ACEOF
2141 # Check whether --with-mail-unlink was given.
2142 if test "${with_mail_unlink+set}" = set; then
2143 withval=$with_mail_unlink;
2144 else
2145 with_mail_unlink=no
2148 if test "$with_mail_unlink" != no; then
2150 cat >>confdefs.h <<\_ACEOF
2151 #define MAIL_UNLINK_SPOOL 1
2152 _ACEOF
2157 # Check whether --with-mailhost was given.
2158 if test "${with_mailhost+set}" = set; then
2159 withval=$with_mailhost;
2160 cat >>confdefs.h <<_ACEOF
2161 #define MAILHOST "$withval"
2162 _ACEOF
2168 # Check whether --with-sound was given.
2169 if test "${with_sound+set}" = set; then
2170 withval=$with_sound;
2171 else
2172 with_sound=yes
2177 # Check whether --with-sync-input was given.
2178 if test "${with_sync_input+set}" = set; then
2179 withval=$with_sync_input;
2180 else
2181 with_sync_input=yes
2184 if test "$with_sync_input" = yes; then
2186 cat >>confdefs.h <<\_ACEOF
2187 #define SYNC_INPUT 1
2188 _ACEOF
2193 # Check whether --with-x-toolkit was given.
2194 if test "${with_x_toolkit+set}" = set; then
2195 withval=$with_x_toolkit; case "${withval}" in
2196 y | ye | yes ) val=gtk ;;
2197 n | no ) val=no ;;
2198 l | lu | luc | luci | lucid ) val=lucid ;;
2199 a | at | ath | athe | athen | athena ) val=athena ;;
2200 m | mo | mot | moti | motif ) val=motif ;;
2201 g | gt | gtk ) val=gtk ;;
2203 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2204 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2205 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2206 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2207 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2208 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2209 { (exit 1); exit 1; }; }
2211 esac
2212 with_x_toolkit=$val
2218 # Check whether --with-xpm was given.
2219 if test "${with_xpm+set}" = set; then
2220 withval=$with_xpm;
2221 else
2222 with_xpm=yes
2226 # Check whether --with-jpeg was given.
2227 if test "${with_jpeg+set}" = set; then
2228 withval=$with_jpeg;
2229 else
2230 with_jpeg=yes
2234 # Check whether --with-tiff was given.
2235 if test "${with_tiff+set}" = set; then
2236 withval=$with_tiff;
2237 else
2238 with_tiff=yes
2242 # Check whether --with-gif was given.
2243 if test "${with_gif+set}" = set; then
2244 withval=$with_gif;
2245 else
2246 with_gif=yes
2250 # Check whether --with-png was given.
2251 if test "${with_png+set}" = set; then
2252 withval=$with_png;
2253 else
2254 with_png=yes
2258 # Check whether --with-rsvg was given.
2259 if test "${with_rsvg+set}" = set; then
2260 withval=$with_rsvg;
2261 else
2262 with_rsvg=yes
2267 # Check whether --with-xft was given.
2268 if test "${with_xft+set}" = set; then
2269 withval=$with_xft;
2270 else
2271 with_xft=yes
2275 # Check whether --with-libotf was given.
2276 if test "${with_libotf+set}" = set; then
2277 withval=$with_libotf;
2278 else
2279 with_libotf=yes
2283 # Check whether --with-m17n-flt was given.
2284 if test "${with_m17n_flt+set}" = set; then
2285 withval=$with_m17n_flt;
2286 else
2287 with_m17n_flt=yes
2292 # Check whether --with-toolkit-scroll-bars was given.
2293 if test "${with_toolkit_scroll_bars+set}" = set; then
2294 withval=$with_toolkit_scroll_bars;
2295 else
2296 with_toolkit_scroll_bars=yes
2300 # Check whether --with-xaw3d was given.
2301 if test "${with_xaw3d+set}" = set; then
2302 withval=$with_xaw3d;
2303 else
2304 with_xaw3d=yes
2308 # Check whether --with-xim was given.
2309 if test "${with_xim+set}" = set; then
2310 withval=$with_xim;
2311 else
2312 with_xim=yes
2316 # Check whether --with-ns was given.
2317 if test "${with_ns+set}" = set; then
2318 withval=$with_ns;
2319 else
2320 with_ns=no
2325 # Check whether --with-gpm was given.
2326 if test "${with_gpm+set}" = set; then
2327 withval=$with_gpm;
2328 else
2329 with_gpm=yes
2333 # Check whether --with-dbus was given.
2334 if test "${with_dbus+set}" = set; then
2335 withval=$with_dbus;
2336 else
2337 with_dbus=yes
2341 # Check whether --with-gconf was given.
2342 if test "${with_gconf+set}" = set; then
2343 withval=$with_gconf;
2344 else
2345 with_gconf=yes
2349 # Check whether --with-selinux was given.
2350 if test "${with_selinux+set}" = set; then
2351 withval=$with_selinux;
2352 else
2353 with_selinux=yes
2357 ## For the times when you want to build Emacs but don't have
2358 ## a suitable makeinfo, and can live without the manuals.
2360 # Check whether --with-makeinfo was given.
2361 if test "${with_makeinfo+set}" = set; then
2362 withval=$with_makeinfo;
2363 else
2364 with_makeinfo=yes
2369 # Check whether --with-gtk was given.
2370 if test "${with_gtk+set}" = set; then
2371 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2372 specify a toolkit." >&5
2373 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2374 specify a toolkit." >&2;}
2375 { (exit 1); exit 1; }; }
2380 # Check whether --with-gcc was given.
2381 if test "${with_gcc+set}" = set; then
2382 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2383 variable to specify a compiler." >&5
2384 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2385 variable to specify a compiler." >&2;}
2386 { (exit 1); exit 1; }; }
2391 # Check whether --with-pkg-config-prog was given.
2392 if test "${with_pkg_config_prog+set}" = set; then
2393 withval=$with_pkg_config_prog;
2396 if test "X${with_pkg_config_prog}" != X; then
2397 if test "${with_pkg_config_prog}" != yes; then
2398 PKG_CONFIG="${with_pkg_config_prog}"
2402 CRT_DIR=
2404 # Check whether --with-crt-dir was given.
2405 if test "${with_crt_dir+set}" = set; then
2406 withval=$with_crt_dir;
2409 CRT_DIR="${with_crt_dir}"
2412 # Check whether --with-gnustep-conf was given.
2413 if test "${with_gnustep_conf+set}" = set; then
2414 withval=$with_gnustep_conf;
2417 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2418 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2419 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2420 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2422 # Check whether --enable-ns-self-contained was given.
2423 if test "${enable_ns_self_contained+set}" = set; then
2424 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2425 else
2426 EN_NS_SELF_CONTAINED=yes
2430 # Check whether --enable-asserts was given.
2431 if test "${enable_asserts+set}" = set; then
2432 enableval=$enable_asserts; USE_XASSERTS=$enableval
2433 else
2434 USE_XASSERTS=no
2438 # Check whether --enable-maintainer-mode was given.
2439 if test "${enable_maintainer_mode+set}" = set; then
2440 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2441 else
2442 USE_MAINTAINER_MODE=no
2445 if test $USE_MAINTAINER_MODE = yes; then
2446 MAINT=
2447 else
2448 MAINT=#
2452 # Check whether --enable-locallisppath was given.
2453 if test "${enable_locallisppath+set}" = set; then
2454 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2455 locallisppath=
2456 elif test "${enableval}" != "yes"; then
2457 locallisppath=${enableval}
2462 # Check whether --enable-checking was given.
2463 if test "${enable_checking+set}" = set; then
2464 enableval=$enable_checking; ac_checking_flags="${enableval}"
2467 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2468 for check in $ac_checking_flags
2470 case $check in
2471 # these set all the flags to specific states
2472 yes) ac_enable_checking=1 ;;
2473 no) ac_enable_checking= ;
2474 ac_gc_check_stringbytes= ;
2475 ac_gc_check_string_overrun= ;
2476 ac_gc_check_string_free_list= ;
2477 ac_xmalloc_overrun= ;
2478 ac_gc_check_cons_list= ;;
2479 all) ac_enable_checking=1 ;
2480 ac_gc_check_stringbytes=1 ;
2481 ac_gc_check_string_overrun=1 ;
2482 ac_gc_check_string_free_list=1 ;
2483 ac_xmalloc_overrun=1 ;
2484 ac_gc_check_cons_list=1 ;;
2485 # these enable particular checks
2486 stringbytes) ac_gc_check_stringbytes=1 ;;
2487 stringoverrun) ac_gc_check_string_overrun=1 ;;
2488 stringfreelist) ac_gc_check_string_free_list=1 ;;
2489 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2490 conslist) ac_gc_check_cons_list=1 ;;
2491 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2492 $as_echo "$as_me: error: unknown check category $check" >&2;}
2493 { (exit 1); exit 1; }; } ;;
2494 esac
2495 done
2496 IFS="$ac_save_IFS"
2498 if test x$ac_enable_checking != x ; then
2500 cat >>confdefs.h <<\_ACEOF
2501 #define ENABLE_CHECKING 1
2502 _ACEOF
2505 if test x$ac_gc_check_stringbytes != x ; then
2507 cat >>confdefs.h <<\_ACEOF
2508 #define GC_CHECK_STRING_BYTES 1
2509 _ACEOF
2512 if test x$ac_gc_check_stringoverrun != x ; then
2514 cat >>confdefs.h <<\_ACEOF
2515 #define GC_CHECK_STRING_OVERRUN 1
2516 _ACEOF
2519 if test x$ac_gc_check_string_free_list != x ; then
2521 cat >>confdefs.h <<\_ACEOF
2522 #define GC_CHECK_STRING_FREE_LIST 1
2523 _ACEOF
2526 if test x$ac_xmalloc_overrun != x ; then
2528 cat >>confdefs.h <<\_ACEOF
2529 #define XMALLOC_OVERRUN_CHECK 1
2530 _ACEOF
2533 if test x$ac_gc_check_cons_list != x ; then
2535 cat >>confdefs.h <<\_ACEOF
2536 #define GC_CHECK_CONS_LIST 1
2537 _ACEOF
2541 # Check whether --enable-profiling was given.
2542 if test "${enable_profiling+set}" = set; then
2543 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2546 if test x$ac_enable_profiling != x ; then
2547 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2548 PROFILING_LDFLAGS="-pg"
2549 else
2550 PROFILING_CFLAGS=
2551 PROFILING_LDFLAGS=
2554 # Check whether --enable-autodepend was given.
2555 if test "${enable_autodepend+set}" = set; then
2556 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2557 else
2558 ac_enable_autodepend=yes
2562 #### Make srcdir absolute, if it isn't already. It's important to
2563 #### avoid running the path through pwd unnecessarily, since pwd can
2564 #### give you automounter prefixes, which can go away. We do all this
2565 #### so Emacs can find its files when run uninstalled.
2566 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2567 unset CDPATH
2568 case "${srcdir}" in
2569 /* ) ;;
2571 ## We may be able to use the $PWD environment variable to make this
2572 ## absolute. But sometimes PWD is inaccurate.
2573 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2574 ## but that tested only for a well-formed and valid PWD,
2575 ## it did not object when PWD was well-formed and valid but just wrong.
2576 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2577 then
2578 srcdir="$PWD"
2579 else
2580 srcdir="`(cd ${srcdir}; pwd)`"
2583 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2584 esac
2586 #### Check if the source directory already has a configured system in it.
2587 if test `pwd` != `(cd ${srcdir} && pwd)` \
2588 && test -f "${srcdir}/src/config.h" ; then
2589 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2590 as a build directory right now; it has been configured in its own
2591 right. To configure in another directory as well, you MUST
2592 use GNU make. If you do not have GNU make, then you must
2593 now do \`make distclean' in ${srcdir},
2594 and then run $0 again." >&5
2595 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2596 as a build directory right now; it has been configured in its own
2597 right. To configure in another directory as well, you MUST
2598 use GNU make. If you do not have GNU make, then you must
2599 now do \`make distclean' in ${srcdir},
2600 and then run $0 again." >&2;}
2603 #### Given the configuration name, set machfile and opsysfile to the
2604 #### names of the m/*.h and s/*.h files we should use.
2606 ### Canonicalize the configuration name.
2608 ac_aux_dir=
2609 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2610 if test -f "$ac_dir/install-sh"; then
2611 ac_aux_dir=$ac_dir
2612 ac_install_sh="$ac_aux_dir/install-sh -c"
2613 break
2614 elif test -f "$ac_dir/install.sh"; then
2615 ac_aux_dir=$ac_dir
2616 ac_install_sh="$ac_aux_dir/install.sh -c"
2617 break
2618 elif test -f "$ac_dir/shtool"; then
2619 ac_aux_dir=$ac_dir
2620 ac_install_sh="$ac_aux_dir/shtool install -c"
2621 break
2623 done
2624 if test -z "$ac_aux_dir"; then
2625 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2626 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2627 { (exit 1); exit 1; }; }
2630 # These three variables are undocumented and unsupported,
2631 # and are intended to be withdrawn in a future Autoconf release.
2632 # They can cause serious problems if a builder's source tree is in a directory
2633 # whose full name contains unusual characters.
2634 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2635 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2636 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2639 # Make sure we can run config.sub.
2640 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2641 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2642 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2643 { (exit 1); exit 1; }; }
2645 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2646 $as_echo_n "checking build system type... " >&6; }
2647 if test "${ac_cv_build+set}" = set; then
2648 $as_echo_n "(cached) " >&6
2649 else
2650 ac_build_alias=$build_alias
2651 test "x$ac_build_alias" = x &&
2652 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2653 test "x$ac_build_alias" = x &&
2654 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2655 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2656 { (exit 1); exit 1; }; }
2657 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2658 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2659 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2660 { (exit 1); exit 1; }; }
2663 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2664 $as_echo "$ac_cv_build" >&6; }
2665 case $ac_cv_build in
2666 *-*-*) ;;
2667 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2668 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2669 { (exit 1); exit 1; }; };;
2670 esac
2671 build=$ac_cv_build
2672 ac_save_IFS=$IFS; IFS='-'
2673 set x $ac_cv_build
2674 shift
2675 build_cpu=$1
2676 build_vendor=$2
2677 shift; shift
2678 # Remember, the first character of IFS is used to create $*,
2679 # except with old shells:
2680 build_os=$*
2681 IFS=$ac_save_IFS
2682 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2685 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2686 $as_echo_n "checking host system type... " >&6; }
2687 if test "${ac_cv_host+set}" = set; then
2688 $as_echo_n "(cached) " >&6
2689 else
2690 if test "x$host_alias" = x; then
2691 ac_cv_host=$ac_cv_build
2692 else
2693 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2694 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2695 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2696 { (exit 1); exit 1; }; }
2700 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2701 $as_echo "$ac_cv_host" >&6; }
2702 case $ac_cv_host in
2703 *-*-*) ;;
2704 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2705 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2706 { (exit 1); exit 1; }; };;
2707 esac
2708 host=$ac_cv_host
2709 ac_save_IFS=$IFS; IFS='-'
2710 set x $ac_cv_host
2711 shift
2712 host_cpu=$1
2713 host_vendor=$2
2714 shift; shift
2715 # Remember, the first character of IFS is used to create $*,
2716 # except with old shells:
2717 host_os=$*
2718 IFS=$ac_save_IFS
2719 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2722 canonical=$host
2723 configuration=${host_alias-${build_alias-$host}}
2727 ### If you add support for a new configuration, add code to this
2728 ### switch statement to recognize your configuration name and select
2729 ### the appropriate operating system and machine description files.
2731 ### You would hope that you could choose an m/*.h file pretty much
2732 ### based on the machine portion of the configuration name, and an s-
2733 ### file based on the operating system portion. However, it turns out
2734 ### that each m/*.h file is pretty manufacturer-specific - for
2735 ### example mips.h is MIPS
2736 ### So we basically have to have a special case for each
2737 ### configuration name.
2739 ### As far as handling version numbers on operating systems is
2740 ### concerned, make sure things will fail in a fixable way. If
2741 ### /etc/MACHINES doesn't say anything about version numbers, be
2742 ### prepared to handle anything reasonably. If version numbers
2743 ### matter, be sure /etc/MACHINES says something about it.
2745 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2746 ### "System V Release 4"; he writes, "The old convention encouraged
2747 ### confusion between `system' and `release' levels'."
2749 machine='' opsys='' unported=no
2750 case "${canonical}" in
2752 ## FreeBSD ports
2753 *-*-freebsd* )
2754 opsys=freebsd
2755 case "${canonical}" in
2756 alpha*-*-freebsd*) machine=alpha ;;
2757 arm*-*-freebsd*) machine=arm ;;
2758 ia64-*-freebsd*) machine=ia64 ;;
2759 sparc-*-freebsd*) machine=sparc ;;
2760 sparc64-*-freebsd*) machine=sparc ;;
2761 powerpc-*-freebsd*) machine=macppc ;;
2762 i[3456]86-*-freebsd*) machine=intel386 ;;
2763 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2764 esac
2767 ## FreeBSD kernel + glibc based userland
2768 *-*-kfreebsd*gnu* )
2769 opsys=gnu-kfreebsd
2770 case "${canonical}" in
2771 alpha*-*-kfreebsd*) machine=alpha ;;
2772 ia64-*-kfreebsd*) machine=ia64 ;;
2773 sparc-*-kfreebsd*) machine=sparc ;;
2774 sparc64-*-kfreebsd*) machine=sparc ;;
2775 powerpc-*-kfreebsd*) machine=macppc ;;
2776 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2777 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2778 esac
2781 ## NetBSD ports
2782 *-*-netbsd* )
2783 opsys=netbsd
2784 if test -f /usr/lib/crti.o; then
2786 cat >>confdefs.h <<\_ACEOF
2787 #define HAVE_CRTIN /**/
2788 _ACEOF
2792 case "${canonical}" in
2793 alpha*-*-netbsd*) machine=alpha ;;
2794 i[3456]86-*-netbsd*) machine=intel386 ;;
2795 mips-*-netbsd*) machine=mips ;;
2796 mipsel-*-netbsd*) machine=mips ;;
2797 mipseb-*-netbsd*) machine=mips ;;
2798 powerpc-*-netbsd*) machine=macppc ;;
2799 sparc*-*-netbsd*) machine=sparc ;;
2800 vax-*-netbsd*) machine=vax ;;
2801 arm-*-netbsd*) machine=arm ;;
2802 x86_64-*-netbsd*) machine=amdx86-64 ;;
2803 hppa-*-netbsd*) machine=hp800 ;;
2804 m68k-*-netbsd*) machine=m68k ;;
2805 esac
2808 ## OpenBSD ports
2809 *-*-openbsd* )
2810 opsys=openbsd
2811 case "${canonical}" in
2812 alpha*-*-openbsd*) machine=alpha ;;
2813 arm-*-openbsd*) machine=arm ;;
2814 i386-*-openbsd*) machine=intel386 ;;
2815 powerpc-*-openbsd*) machine=macppc ;;
2816 sparc*-*-openbsd*) machine=sparc ;;
2817 vax-*-openbsd*) machine=vax ;;
2818 x86_64-*-openbsd*) machine=amdx86-64 ;;
2819 hppa-*-openbsd*) machine=hp800 ;;
2820 esac
2823 alpha*-*-linux-gnu* )
2824 machine=alpha opsys=gnu-linux
2827 arm*-*-linux-gnu* )
2828 machine=arm opsys=gnu-linux
2831 ## Apple Darwin / Mac OS X
2832 *-apple-darwin* )
2833 case "${canonical}" in
2834 i[3456]86-* ) machine=intel386 ;;
2835 powerpc-* ) machine=macppc ;;
2836 x86_64-* ) machine=amdx86-64 ;;
2837 * ) unported=yes ;;
2838 esac
2839 opsys=darwin
2840 # Define CPP as follows to make autoconf work correctly.
2841 CPP="${CC-cc} -E -no-cpp-precomp"
2842 # Use fink packages if available.
2843 if test -d /sw/include && test -d /sw/lib; then
2844 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2845 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2846 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2850 ## HP 9000 series 700 and 800, running HP/UX
2851 hppa*-hp-hpux10.2* )
2852 machine=hp800 opsys=hpux10-20
2854 hppa*-hp-hpux1[1-9]* )
2855 machine=hp800 opsys=hpux11
2856 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2859 hppa*-*-linux-gnu* )
2860 machine=hp800 opsys=gnu-linux
2863 ## IBM machines
2864 s390-*-linux-gnu* )
2865 machine=ibms390 opsys=gnu-linux
2867 s390x-*-linux-gnu* )
2868 machine=ibms390x opsys=gnu-linux
2870 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2871 machine=ibmrs6000 opsys=aix4-2
2873 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2874 machine=ibmrs6000 opsys=aix4-2
2876 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2877 machine=ibmrs6000 opsys=aix4-2
2879 rs6000-ibm-aix6* | powerpc-ibm-aix6* )
2880 machine=ibmrs6000 opsys=aix4-2
2883 ## Macintosh PowerPC
2884 powerpc*-*-linux-gnu* )
2885 machine=macppc opsys=gnu-linux
2888 ## Silicon Graphics machines
2889 ## Iris 4D
2890 mips-sgi-irix6.5 )
2891 machine=iris4d opsys=irix6-5
2892 # Without defining _LANGUAGE_C, things get masked out in the headers
2893 # so that, for instance, grepping for `free' in stdlib.h fails and
2894 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2895 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2896 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2899 ## Suns
2900 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2901 machine=sparc opsys=gnu-linux
2904 *-sun-solaris* \
2905 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
2906 | x86_64-*-solaris2* | x86_64-*-sunos5*)
2907 case "${canonical}" in
2908 i[3456]86-*-* ) machine=intel386 ;;
2909 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2910 sparc* ) machine=sparc ;;
2911 * ) unported=yes ;;
2912 esac
2913 case "${canonical}" in
2914 *-sunos5.6* | *-solaris2.6* )
2915 opsys=sol2-6
2916 NON_GNU_CPP=/usr/ccs/lib/cpp
2917 RANLIB="ar -ts"
2919 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
2920 opsys=sol2-6
2921 emacs_check_sunpro_c=yes
2922 NON_GNU_CPP=/usr/ccs/lib/cpp
2924 *-sunos5* | *-solaris* )
2925 opsys=sol2-10
2926 emacs_check_sunpro_c=yes
2927 NON_GNU_CPP=/usr/ccs/lib/cpp
2929 esac
2930 ## Watch out for a compiler that we know will not work.
2931 case "${canonical}" in
2932 *-solaris* | *-sunos5* )
2933 if [ "x$CC" = x/usr/ucb/cc ]; then
2934 ## /usr/ucb/cc doesn't work;
2935 ## we should find some other compiler that does work.
2936 unset CC
2939 *) ;;
2940 esac
2943 ## IA-64
2944 ia64*-*-linux* )
2945 machine=ia64 opsys=gnu-linux
2948 ## Intel 386 machines where we don't care about the manufacturer
2949 i[3456]86-*-* )
2950 machine=intel386
2951 case "${canonical}" in
2952 *-cygwin ) opsys=cygwin ;;
2953 *-darwin* ) opsys=darwin
2954 CPP="${CC-cc} -E -no-cpp-precomp"
2956 *-linux-gnu* ) opsys=gnu-linux ;;
2957 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2958 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2959 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2960 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2961 esac
2964 ## m68k Linux-based GNU system
2965 m68k-*-linux-gnu* )
2966 machine=m68k opsys=gnu-linux
2969 ## Mips Linux-based GNU system
2970 mips-*-linux-gnu* | mipsel-*-linux-gnu* \
2971 | mips64-*-linux-gnu* | mips64el-*-linux-gnu* )
2972 machine=mips opsys=gnu-linux
2975 ## AMD x86-64 Linux-based GNU system
2976 x86_64-*-linux-gnu* )
2977 machine=amdx86-64 opsys=gnu-linux
2980 ## Tensilica Xtensa Linux-based GNU system
2981 xtensa*-*-linux-gnu* )
2982 machine=xtensa opsys=gnu-linux
2985 ## SuperH Linux-based GNU system
2986 sh[34]*-*-linux-gnu* )
2987 machine=sh3 opsys=gnu-linux
2991 unported=yes
2993 esac
2995 ### If the code above didn't choose an operating system, just choose
2996 ### an operating system based on the configuration name. You really
2997 ### only want to use this when you have no idea what the right
2998 ### operating system is; if you know what operating systems a machine
2999 ### runs, it's cleaner to make it explicit in the case statement
3000 ### above.
3001 if test x"${opsys}" = x; then
3002 case "${canonical}" in
3003 *-gnu* ) opsys=gnu ;;
3005 unported=yes
3007 esac
3012 if test $unported = yes; then
3013 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3014 Check \`etc/MACHINES' for recognized configuration names." >&5
3015 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3016 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3017 { (exit 1); exit 1; }; }
3020 machfile="m/${machine}.h"
3021 opsysfile="s/${opsys}.h"
3024 #### Choose a compiler.
3025 test -n "$CC" && cc_specified=yes
3027 # Save the value of CFLAGS that the user specified.
3028 SPECIFIED_CFLAGS="$CFLAGS"
3030 ac_ext=c
3031 ac_cpp='$CPP $CPPFLAGS'
3032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 if test -n "$ac_tool_prefix"; then
3036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3037 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3038 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if test "${ac_cv_prog_CC+set}" = set; then
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3054 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3057 done
3058 done
3059 IFS=$as_save_IFS
3063 CC=$ac_cv_prog_CC
3064 if test -n "$CC"; then
3065 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3067 else
3068 { $as_echo "$as_me:$LINENO: result: no" >&5
3069 $as_echo "no" >&6; }
3074 if test -z "$ac_cv_prog_CC"; then
3075 ac_ct_CC=$CC
3076 # Extract the first word of "gcc", so it can be a program name with args.
3077 set dummy gcc; ac_word=$2
3078 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3079 $as_echo_n "checking for $ac_word... " >&6; }
3080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3081 $as_echo_n "(cached) " >&6
3082 else
3083 if test -n "$ac_ct_CC"; then
3084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3085 else
3086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3087 for as_dir in $PATH
3089 IFS=$as_save_IFS
3090 test -z "$as_dir" && as_dir=.
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3093 ac_cv_prog_ac_ct_CC="gcc"
3094 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095 break 2
3097 done
3098 done
3099 IFS=$as_save_IFS
3103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3104 if test -n "$ac_ct_CC"; then
3105 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3106 $as_echo "$ac_ct_CC" >&6; }
3107 else
3108 { $as_echo "$as_me:$LINENO: result: no" >&5
3109 $as_echo "no" >&6; }
3112 if test "x$ac_ct_CC" = x; then
3113 CC=""
3114 else
3115 case $cross_compiling:$ac_tool_warned in
3116 yes:)
3117 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3118 whose name does not start with the host triplet. If you think this
3119 configuration is useful to you, please write to autoconf@gnu.org." >&5
3120 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3121 whose name does not start with the host triplet. If you think this
3122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3123 ac_tool_warned=yes ;;
3124 esac
3125 CC=$ac_ct_CC
3127 else
3128 CC="$ac_cv_prog_CC"
3131 if test -z "$CC"; then
3132 if test -n "$ac_tool_prefix"; then
3133 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3134 set dummy ${ac_tool_prefix}cc; ac_word=$2
3135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_CC+set}" = set; then
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test -n "$CC"; then
3141 ac_cv_prog_CC="$CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_CC="${ac_tool_prefix}cc"
3151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3154 done
3155 done
3156 IFS=$as_save_IFS
3160 CC=$ac_cv_prog_CC
3161 if test -n "$CC"; then
3162 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3163 $as_echo "$CC" >&6; }
3164 else
3165 { $as_echo "$as_me:$LINENO: result: no" >&5
3166 $as_echo "no" >&6; }
3172 if test -z "$CC"; then
3173 # Extract the first word of "cc", so it can be a program name with args.
3174 set dummy cc; ac_word=$2
3175 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if test "${ac_cv_prog_CC+set}" = set; then
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$CC"; then
3181 ac_cv_prog_CC="$CC" # Let the user override the test.
3182 else
3183 ac_prog_rejected=no
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3192 ac_prog_rejected=yes
3193 continue
3195 ac_cv_prog_CC="cc"
3196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3197 break 2
3199 done
3200 done
3201 IFS=$as_save_IFS
3203 if test $ac_prog_rejected = yes; then
3204 # We found a bogon in the path, so make sure we never use it.
3205 set dummy $ac_cv_prog_CC
3206 shift
3207 if test $# != 0; then
3208 # We chose a different compiler from the bogus one.
3209 # However, it has the same basename, so the bogon will be chosen
3210 # first if we set CC to just the basename; use the full file name.
3211 shift
3212 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3217 CC=$ac_cv_prog_CC
3218 if test -n "$CC"; then
3219 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3221 else
3222 { $as_echo "$as_me:$LINENO: result: no" >&5
3223 $as_echo "no" >&6; }
3228 if test -z "$CC"; then
3229 if test -n "$ac_tool_prefix"; then
3230 for ac_prog in cl.exe
3232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3233 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3234 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if test "${ac_cv_prog_CC+set}" = set; then
3237 $as_echo_n "(cached) " >&6
3238 else
3239 if test -n "$CC"; then
3240 ac_cv_prog_CC="$CC" # Let the user override the test.
3241 else
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3245 IFS=$as_save_IFS
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3250 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3251 break 2
3253 done
3254 done
3255 IFS=$as_save_IFS
3259 CC=$ac_cv_prog_CC
3260 if test -n "$CC"; then
3261 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3262 $as_echo "$CC" >&6; }
3263 else
3264 { $as_echo "$as_me:$LINENO: result: no" >&5
3265 $as_echo "no" >&6; }
3269 test -n "$CC" && break
3270 done
3272 if test -z "$CC"; then
3273 ac_ct_CC=$CC
3274 for ac_prog in cl.exe
3276 # Extract the first word of "$ac_prog", so it can be a program name with args.
3277 set dummy $ac_prog; ac_word=$2
3278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3279 $as_echo_n "checking for $ac_word... " >&6; }
3280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3281 $as_echo_n "(cached) " >&6
3282 else
3283 if test -n "$ac_ct_CC"; then
3284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3285 else
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 for as_dir in $PATH
3289 IFS=$as_save_IFS
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3293 ac_cv_prog_ac_ct_CC="$ac_prog"
3294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3295 break 2
3297 done
3298 done
3299 IFS=$as_save_IFS
3303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3304 if test -n "$ac_ct_CC"; then
3305 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3306 $as_echo "$ac_ct_CC" >&6; }
3307 else
3308 { $as_echo "$as_me:$LINENO: result: no" >&5
3309 $as_echo "no" >&6; }
3313 test -n "$ac_ct_CC" && break
3314 done
3316 if test "x$ac_ct_CC" = x; then
3317 CC=""
3318 else
3319 case $cross_compiling:$ac_tool_warned in
3320 yes:)
3321 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3322 whose name does not start with the host triplet. If you think this
3323 configuration is useful to you, please write to autoconf@gnu.org." >&5
3324 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3325 whose name does not start with the host triplet. If you think this
3326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3327 ac_tool_warned=yes ;;
3328 esac
3329 CC=$ac_ct_CC
3336 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3337 See \`config.log' for more details." >&5
3338 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3339 See \`config.log' for more details." >&2;}
3340 { (exit 1); exit 1; }; }
3342 # Provide some information about the compiler.
3343 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3344 set X $ac_compile
3345 ac_compiler=$2
3346 { (ac_try="$ac_compiler --version >&5"
3347 case "(($ac_try" in
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3350 esac
3351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3352 $as_echo "$ac_try_echo") >&5
3353 (eval "$ac_compiler --version >&5") 2>&5
3354 ac_status=$?
3355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }
3357 { (ac_try="$ac_compiler -v >&5"
3358 case "(($ac_try" in
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3361 esac
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compiler -v >&5") 2>&5
3365 ac_status=$?
3366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367 (exit $ac_status); }
3368 { (ac_try="$ac_compiler -V >&5"
3369 case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372 esac
3373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3374 $as_echo "$ac_try_echo") >&5
3375 (eval "$ac_compiler -V >&5") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }
3380 cat >conftest.$ac_ext <<_ACEOF
3381 /* confdefs.h. */
3382 _ACEOF
3383 cat confdefs.h >>conftest.$ac_ext
3384 cat >>conftest.$ac_ext <<_ACEOF
3385 /* end confdefs.h. */
3388 main ()
3392 return 0;
3394 _ACEOF
3395 ac_clean_files_save=$ac_clean_files
3396 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3397 # Try to create an executable without -o first, disregard a.out.
3398 # It will help us diagnose broken compilers, and finding out an intuition
3399 # of exeext.
3400 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3401 $as_echo_n "checking for C compiler default output file name... " >&6; }
3402 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3404 # The possible output files:
3405 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3407 ac_rmfiles=
3408 for ac_file in $ac_files
3410 case $ac_file in
3411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3412 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3413 esac
3414 done
3415 rm -f $ac_rmfiles
3417 if { (ac_try="$ac_link_default"
3418 case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421 esac
3422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3423 $as_echo "$ac_try_echo") >&5
3424 (eval "$ac_link_default") 2>&5
3425 ac_status=$?
3426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); }; then
3428 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3429 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3430 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3431 # so that the user can short-circuit this test for compilers unknown to
3432 # Autoconf.
3433 for ac_file in $ac_files ''
3435 test -f "$ac_file" || continue
3436 case $ac_file in
3437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3439 [ab].out )
3440 # We found the default executable, but exeext='' is most
3441 # certainly right.
3442 break;;
3443 *.* )
3444 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3445 then :; else
3446 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3448 # We set ac_cv_exeext here because the later test for it is not
3449 # safe: cross compilers may not add the suffix if given an `-o'
3450 # argument, so we may need to know it at that point already.
3451 # Even if this section looks crufty: it has the advantage of
3452 # actually working.
3453 break;;
3455 break;;
3456 esac
3457 done
3458 test "$ac_cv_exeext" = no && ac_cv_exeext=
3460 else
3461 ac_file=''
3464 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3465 $as_echo "$ac_file" >&6; }
3466 if test -z "$ac_file"; then
3467 $as_echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3471 See \`config.log' for more details." >&5
3472 $as_echo "$as_me: error: C compiler cannot create executables
3473 See \`config.log' for more details." >&2;}
3474 { (exit 77); exit 77; }; }
3477 ac_exeext=$ac_cv_exeext
3479 # Check that the compiler produces executables we can run. If not, either
3480 # the compiler is broken, or we cross compile.
3481 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3482 $as_echo_n "checking whether the C compiler works... " >&6; }
3483 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3484 # If not cross compiling, check that we can run a simple program.
3485 if test "$cross_compiling" != yes; then
3486 if { ac_try='./$ac_file'
3487 { (case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3492 $as_echo "$ac_try_echo") >&5
3493 (eval "$ac_try") 2>&5
3494 ac_status=$?
3495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496 (exit $ac_status); }; }; then
3497 cross_compiling=no
3498 else
3499 if test "$cross_compiling" = maybe; then
3500 cross_compiling=yes
3501 else
3502 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3503 If you meant to cross compile, use \`--host'.
3504 See \`config.log' for more details." >&5
3505 $as_echo "$as_me: error: cannot run C compiled programs.
3506 If you meant to cross compile, use \`--host'.
3507 See \`config.log' for more details." >&2;}
3508 { (exit 1); exit 1; }; }
3512 { $as_echo "$as_me:$LINENO: result: yes" >&5
3513 $as_echo "yes" >&6; }
3515 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3516 ac_clean_files=$ac_clean_files_save
3517 # Check that the compiler produces executables we can run. If not, either
3518 # the compiler is broken, or we cross compile.
3519 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3520 $as_echo_n "checking whether we are cross compiling... " >&6; }
3521 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3522 $as_echo "$cross_compiling" >&6; }
3524 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3525 $as_echo_n "checking for suffix of executables... " >&6; }
3526 if { (ac_try="$ac_link"
3527 case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3532 $as_echo "$ac_try_echo") >&5
3533 (eval "$ac_link") 2>&5
3534 ac_status=$?
3535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; then
3537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3539 # work properly (i.e., refer to `conftest.exe'), while it won't with
3540 # `rm'.
3541 for ac_file in conftest.exe conftest conftest.*; do
3542 test -f "$ac_file" || continue
3543 case $ac_file in
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546 break;;
3547 * ) break;;
3548 esac
3549 done
3550 else
3551 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3552 See \`config.log' for more details." >&5
3553 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3554 See \`config.log' for more details." >&2;}
3555 { (exit 1); exit 1; }; }
3558 rm -f conftest$ac_cv_exeext
3559 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3560 $as_echo "$ac_cv_exeext" >&6; }
3562 rm -f conftest.$ac_ext
3563 EXEEXT=$ac_cv_exeext
3564 ac_exeext=$EXEEXT
3565 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3566 $as_echo_n "checking for suffix of object files... " >&6; }
3567 if test "${ac_cv_objext+set}" = set; then
3568 $as_echo_n "(cached) " >&6
3569 else
3570 cat >conftest.$ac_ext <<_ACEOF
3571 /* confdefs.h. */
3572 _ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3578 main ()
3582 return 0;
3584 _ACEOF
3585 rm -f conftest.o conftest.obj
3586 if { (ac_try="$ac_compile"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3592 $as_echo "$ac_try_echo") >&5
3593 (eval "$ac_compile") 2>&5
3594 ac_status=$?
3595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; then
3597 for ac_file in conftest.o conftest.obj conftest.*; do
3598 test -f "$ac_file" || continue;
3599 case $ac_file in
3600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3601 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3602 break;;
3603 esac
3604 done
3605 else
3606 $as_echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3610 See \`config.log' for more details." >&5
3611 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3612 See \`config.log' for more details." >&2;}
3613 { (exit 1); exit 1; }; }
3616 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3618 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3619 $as_echo "$ac_cv_objext" >&6; }
3620 OBJEXT=$ac_cv_objext
3621 ac_objext=$OBJEXT
3622 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3623 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3624 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3625 $as_echo_n "(cached) " >&6
3626 else
3627 cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h. */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3635 main ()
3637 #ifndef __GNUC__
3638 choke me
3639 #endif
3642 return 0;
3644 _ACEOF
3645 rm -f conftest.$ac_objext
3646 if { (ac_try="$ac_compile"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3652 $as_echo "$ac_try_echo") >&5
3653 (eval "$ac_compile") 2>conftest.er1
3654 ac_status=$?
3655 grep -v '^ *+' conftest.er1 >conftest.err
3656 rm -f conftest.er1
3657 cat conftest.err >&5
3658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } && {
3660 test -z "$ac_c_werror_flag" ||
3661 test ! -s conftest.err
3662 } && test -s conftest.$ac_objext; then
3663 ac_compiler_gnu=yes
3664 else
3665 $as_echo "$as_me: failed program was:" >&5
3666 sed 's/^/| /' conftest.$ac_ext >&5
3668 ac_compiler_gnu=no
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3675 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677 if test $ac_compiler_gnu = yes; then
3678 GCC=yes
3679 else
3680 GCC=
3682 ac_test_CFLAGS=${CFLAGS+set}
3683 ac_save_CFLAGS=$CFLAGS
3684 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3686 if test "${ac_cv_prog_cc_g+set}" = set; then
3687 $as_echo_n "(cached) " >&6
3688 else
3689 ac_save_c_werror_flag=$ac_c_werror_flag
3690 ac_c_werror_flag=yes
3691 ac_cv_prog_cc_g=no
3692 CFLAGS="-g"
3693 cat >conftest.$ac_ext <<_ACEOF
3694 /* confdefs.h. */
3695 _ACEOF
3696 cat confdefs.h >>conftest.$ac_ext
3697 cat >>conftest.$ac_ext <<_ACEOF
3698 /* end confdefs.h. */
3701 main ()
3705 return 0;
3707 _ACEOF
3708 rm -f conftest.$ac_objext
3709 if { (ac_try="$ac_compile"
3710 case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713 esac
3714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715 $as_echo "$ac_try_echo") >&5
3716 (eval "$ac_compile") 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } && {
3723 test -z "$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 } && test -s conftest.$ac_objext; then
3726 ac_cv_prog_cc_g=yes
3727 else
3728 $as_echo "$as_me: failed program was:" >&5
3729 sed 's/^/| /' conftest.$ac_ext >&5
3731 CFLAGS=""
3732 cat >conftest.$ac_ext <<_ACEOF
3733 /* confdefs.h. */
3734 _ACEOF
3735 cat confdefs.h >>conftest.$ac_ext
3736 cat >>conftest.$ac_ext <<_ACEOF
3737 /* end confdefs.h. */
3740 main ()
3744 return 0;
3746 _ACEOF
3747 rm -f conftest.$ac_objext
3748 if { (ac_try="$ac_compile"
3749 case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3754 $as_echo "$ac_try_echo") >&5
3755 (eval "$ac_compile") 2>conftest.er1
3756 ac_status=$?
3757 grep -v '^ *+' conftest.er1 >conftest.err
3758 rm -f conftest.er1
3759 cat conftest.err >&5
3760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3761 (exit $ac_status); } && {
3762 test -z "$ac_c_werror_flag" ||
3763 test ! -s conftest.err
3764 } && test -s conftest.$ac_objext; then
3766 else
3767 $as_echo "$as_me: failed program was:" >&5
3768 sed 's/^/| /' conftest.$ac_ext >&5
3770 ac_c_werror_flag=$ac_save_c_werror_flag
3771 CFLAGS="-g"
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3780 main ()
3784 return 0;
3786 _ACEOF
3787 rm -f conftest.$ac_objext
3788 if { (ac_try="$ac_compile"
3789 case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3794 $as_echo "$ac_try_echo") >&5
3795 (eval "$ac_compile") 2>conftest.er1
3796 ac_status=$?
3797 grep -v '^ *+' conftest.er1 >conftest.err
3798 rm -f conftest.er1
3799 cat conftest.err >&5
3800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } && {
3802 test -z "$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3804 } && test -s conftest.$ac_objext; then
3805 ac_cv_prog_cc_g=yes
3806 else
3807 $as_echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 ac_c_werror_flag=$ac_save_c_werror_flag
3822 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3823 $as_echo "$ac_cv_prog_cc_g" >&6; }
3824 if test "$ac_test_CFLAGS" = set; then
3825 CFLAGS=$ac_save_CFLAGS
3826 elif test $ac_cv_prog_cc_g = yes; then
3827 if test "$GCC" = yes; then
3828 CFLAGS="-g -O2"
3829 else
3830 CFLAGS="-g"
3832 else
3833 if test "$GCC" = yes; then
3834 CFLAGS="-O2"
3835 else
3836 CFLAGS=
3839 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3840 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3841 if test "${ac_cv_prog_cc_c89+set}" = set; then
3842 $as_echo_n "(cached) " >&6
3843 else
3844 ac_cv_prog_cc_c89=no
3845 ac_save_CC=$CC
3846 cat >conftest.$ac_ext <<_ACEOF
3847 /* confdefs.h. */
3848 _ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3852 #include <stdarg.h>
3853 #include <stdio.h>
3854 #include <sys/types.h>
3855 #include <sys/stat.h>
3856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3857 struct buf { int x; };
3858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3859 static char *e (p, i)
3860 char **p;
3861 int i;
3863 return p[i];
3865 static char *f (char * (*g) (char **, int), char **p, ...)
3867 char *s;
3868 va_list v;
3869 va_start (v,p);
3870 s = g (p, va_arg (v,int));
3871 va_end (v);
3872 return s;
3875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3876 function prototypes and stuff, but not '\xHH' hex character constants.
3877 These don't provoke an error unfortunately, instead are silently treated
3878 as 'x'. The following induces an error, until -std is added to get
3879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3880 array size at least. It's necessary to write '\x00'==0 to get something
3881 that's true only with -std. */
3882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3885 inside strings and character constants. */
3886 #define FOO(x) 'x'
3887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3889 int test (int i, double x);
3890 struct s1 {int (*f) (int a);};
3891 struct s2 {int (*f) (double a);};
3892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3893 int argc;
3894 char **argv;
3896 main ()
3898 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3900 return 0;
3902 _ACEOF
3903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3906 CC="$ac_save_CC $ac_arg"
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3914 $as_echo "$ac_try_echo") >&5
3915 (eval "$ac_compile") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest.$ac_objext; then
3925 ac_cv_prog_cc_c89=$ac_arg
3926 else
3927 $as_echo "$as_me: failed program was:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3933 rm -f core conftest.err conftest.$ac_objext
3934 test "x$ac_cv_prog_cc_c89" != "xno" && break
3935 done
3936 rm -f conftest.$ac_ext
3937 CC=$ac_save_CC
3940 # AC_CACHE_VAL
3941 case "x$ac_cv_prog_cc_c89" in
3943 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3944 $as_echo "none needed" >&6; } ;;
3945 xno)
3946 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3947 $as_echo "unsupported" >&6; } ;;
3949 CC="$CC $ac_cv_prog_cc_c89"
3950 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3951 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3952 esac
3955 ac_ext=c
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 # On Suns, sometimes $CPP names a directory.
3963 if test -n "$CPP" && test -d "$CPP"; then
3964 CPP=
3967 ## If not using gcc, and on Solaris, and no CPP specified, see if
3968 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3969 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3970 test x"$CPP" = x; then
3971 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3972 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3974 if test "${emacs_cv_sunpro_c+set}" = set; then
3975 $as_echo_n "(cached) " >&6
3976 else
3977 cat >conftest.$ac_ext <<_ACEOF
3978 /* confdefs.h. */
3979 _ACEOF
3980 cat confdefs.h >>conftest.$ac_ext
3981 cat >>conftest.$ac_ext <<_ACEOF
3982 /* end confdefs.h. */
3985 main ()
3987 #ifndef __SUNPRO_C
3988 fail;
3989 #endif
3992 return 0;
3994 _ACEOF
3995 rm -f conftest.$ac_objext conftest$ac_exeext
3996 if { (ac_try="$ac_link"
3997 case "(($ac_try" in
3998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999 *) ac_try_echo=$ac_try;;
4000 esac
4001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4002 $as_echo "$ac_try_echo") >&5
4003 (eval "$ac_link") 2>conftest.er1
4004 ac_status=$?
4005 grep -v '^ *+' conftest.er1 >conftest.err
4006 rm -f conftest.er1
4007 cat conftest.err >&5
4008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); } && {
4010 test -z "$ac_c_werror_flag" ||
4011 test ! -s conftest.err
4012 } && test -s conftest$ac_exeext && {
4013 test "$cross_compiling" = yes ||
4014 $as_test_x conftest$ac_exeext
4015 }; then
4016 emacs_cv_sunpro_c=yes
4017 else
4018 $as_echo "$as_me: failed program was:" >&5
4019 sed 's/^/| /' conftest.$ac_ext >&5
4021 emacs_cv_sunpro_c=no
4024 rm -rf conftest.dSYM
4025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4026 conftest$ac_exeext conftest.$ac_ext
4029 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4030 $as_echo "$emacs_cv_sunpro_c" >&6; }
4032 if test x"$emacs_cv_sunpro_c" = xyes; then
4033 NON_GNU_CPP="$CC -E -Xs"
4037 #### Some systems specify a CPP to use unless we are using GCC.
4038 #### Now that we know whether we are using GCC, we can decide whether
4039 #### to use that one.
4040 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4041 then
4042 CPP="$NON_GNU_CPP"
4045 #### Some systems specify a CC to use unless we are using GCC.
4046 #### Now that we know whether we are using GCC, we can decide whether
4047 #### to use that one.
4048 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4049 test x$cc_specified != xyes
4050 then
4051 CC="$NON_GNU_CC"
4054 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4055 then
4056 CC="$CC $GCC_TEST_OPTIONS"
4059 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4060 then
4061 CC="$CC $NON_GCC_TEST_OPTIONS"
4064 ac_ext=c
4065 ac_cpp='$CPP $CPPFLAGS'
4066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4070 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4071 # On Suns, sometimes $CPP names a directory.
4072 if test -n "$CPP" && test -d "$CPP"; then
4073 CPP=
4075 if test -z "$CPP"; then
4076 if test "${ac_cv_prog_CPP+set}" = set; then
4077 $as_echo_n "(cached) " >&6
4078 else
4079 # Double quotes because CPP needs to be expanded
4080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4082 ac_preproc_ok=false
4083 for ac_c_preproc_warn_flag in '' yes
4085 # Use a header file that comes with gcc, so configuring glibc
4086 # with a fresh cross-compiler works.
4087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4088 # <limits.h> exists even on freestanding compilers.
4089 # On the NeXT, cc -E runs the code through the compiler's parser,
4090 # not just through cpp. "Syntax error" is here to catch this case.
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #ifdef __STDC__
4098 # include <limits.h>
4099 #else
4100 # include <assert.h>
4101 #endif
4102 Syntax error
4103 _ACEOF
4104 if { (ac_try="$ac_cpp conftest.$ac_ext"
4105 case "(($ac_try" in
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4108 esac
4109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4110 $as_echo "$ac_try_echo") >&5
4111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4112 ac_status=$?
4113 grep -v '^ *+' conftest.er1 >conftest.err
4114 rm -f conftest.er1
4115 cat conftest.err >&5
4116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); } >/dev/null && {
4118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4120 }; then
4122 else
4123 $as_echo "$as_me: failed program was:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4126 # Broken: fails on valid input.
4127 continue
4130 rm -f conftest.err conftest.$ac_ext
4132 # OK, works on sane cases. Now check whether nonexistent headers
4133 # can be detected and how.
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h. */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <ac_nonexistent.h>
4141 _ACEOF
4142 if { (ac_try="$ac_cpp conftest.$ac_ext"
4143 case "(($ac_try" in
4144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4145 *) ac_try_echo=$ac_try;;
4146 esac
4147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4148 $as_echo "$ac_try_echo") >&5
4149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4150 ac_status=$?
4151 grep -v '^ *+' conftest.er1 >conftest.err
4152 rm -f conftest.er1
4153 cat conftest.err >&5
4154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } >/dev/null && {
4156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4157 test ! -s conftest.err
4158 }; then
4159 # Broken: success on invalid input.
4160 continue
4161 else
4162 $as_echo "$as_me: failed program was:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4165 # Passes both tests.
4166 ac_preproc_ok=:
4167 break
4170 rm -f conftest.err conftest.$ac_ext
4172 done
4173 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4174 rm -f conftest.err conftest.$ac_ext
4175 if $ac_preproc_ok; then
4176 break
4179 done
4180 ac_cv_prog_CPP=$CPP
4183 CPP=$ac_cv_prog_CPP
4184 else
4185 ac_cv_prog_CPP=$CPP
4187 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4188 $as_echo "$CPP" >&6; }
4189 ac_preproc_ok=false
4190 for ac_c_preproc_warn_flag in '' yes
4192 # Use a header file that comes with gcc, so configuring glibc
4193 # with a fresh cross-compiler works.
4194 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4195 # <limits.h> exists even on freestanding compilers.
4196 # On the NeXT, cc -E runs the code through the compiler's parser,
4197 # not just through cpp. "Syntax error" is here to catch this case.
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h. */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 #ifdef __STDC__
4205 # include <limits.h>
4206 #else
4207 # include <assert.h>
4208 #endif
4209 Syntax error
4210 _ACEOF
4211 if { (ac_try="$ac_cpp conftest.$ac_ext"
4212 case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215 esac
4216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4217 $as_echo "$ac_try_echo") >&5
4218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } >/dev/null && {
4225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4227 }; then
4229 else
4230 $as_echo "$as_me: failed program was:" >&5
4231 sed 's/^/| /' conftest.$ac_ext >&5
4233 # Broken: fails on valid input.
4234 continue
4237 rm -f conftest.err conftest.$ac_ext
4239 # OK, works on sane cases. Now check whether nonexistent headers
4240 # can be detected and how.
4241 cat >conftest.$ac_ext <<_ACEOF
4242 /* confdefs.h. */
4243 _ACEOF
4244 cat confdefs.h >>conftest.$ac_ext
4245 cat >>conftest.$ac_ext <<_ACEOF
4246 /* end confdefs.h. */
4247 #include <ac_nonexistent.h>
4248 _ACEOF
4249 if { (ac_try="$ac_cpp conftest.$ac_ext"
4250 case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253 esac
4254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4255 $as_echo "$ac_try_echo") >&5
4256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } >/dev/null && {
4263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4264 test ! -s conftest.err
4265 }; then
4266 # Broken: success on invalid input.
4267 continue
4268 else
4269 $as_echo "$as_me: failed program was:" >&5
4270 sed 's/^/| /' conftest.$ac_ext >&5
4272 # Passes both tests.
4273 ac_preproc_ok=:
4274 break
4277 rm -f conftest.err conftest.$ac_ext
4279 done
4280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281 rm -f conftest.err conftest.$ac_ext
4282 if $ac_preproc_ok; then
4284 else
4285 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4286 See \`config.log' for more details." >&5
4287 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4288 See \`config.log' for more details." >&2;}
4289 { (exit 1); exit 1; }; }
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4299 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4300 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4301 if test "${ac_cv_path_GREP+set}" = set; then
4302 $as_echo_n "(cached) " >&6
4303 else
4304 if test -z "$GREP"; then
4305 ac_path_GREP_found=false
4306 # Loop through the user's path and test for each of PROGNAME-LIST
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4310 IFS=$as_save_IFS
4311 test -z "$as_dir" && as_dir=.
4312 for ac_prog in grep ggrep; do
4313 for ac_exec_ext in '' $ac_executable_extensions; do
4314 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4315 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4316 # Check for GNU ac_path_GREP and select it if it is found.
4317 # Check for GNU $ac_path_GREP
4318 case `"$ac_path_GREP" --version 2>&1` in
4319 *GNU*)
4320 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4322 ac_count=0
4323 $as_echo_n 0123456789 >"conftest.in"
4324 while :
4326 cat "conftest.in" "conftest.in" >"conftest.tmp"
4327 mv "conftest.tmp" "conftest.in"
4328 cp "conftest.in" "conftest.nl"
4329 $as_echo 'GREP' >> "conftest.nl"
4330 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4331 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4332 ac_count=`expr $ac_count + 1`
4333 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4334 # Best one so far, save it but keep looking for a better one
4335 ac_cv_path_GREP="$ac_path_GREP"
4336 ac_path_GREP_max=$ac_count
4338 # 10*(2^10) chars as input seems more than enough
4339 test $ac_count -gt 10 && break
4340 done
4341 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4342 esac
4344 $ac_path_GREP_found && break 3
4345 done
4346 done
4347 done
4348 IFS=$as_save_IFS
4349 if test -z "$ac_cv_path_GREP"; then
4350 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4351 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4352 { (exit 1); exit 1; }; }
4354 else
4355 ac_cv_path_GREP=$GREP
4359 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4360 $as_echo "$ac_cv_path_GREP" >&6; }
4361 GREP="$ac_cv_path_GREP"
4364 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4365 $as_echo_n "checking for egrep... " >&6; }
4366 if test "${ac_cv_path_EGREP+set}" = set; then
4367 $as_echo_n "(cached) " >&6
4368 else
4369 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4370 then ac_cv_path_EGREP="$GREP -E"
4371 else
4372 if test -z "$EGREP"; then
4373 ac_path_EGREP_found=false
4374 # Loop through the user's path and test for each of PROGNAME-LIST
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
4380 for ac_prog in egrep; do
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4383 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4384 # Check for GNU ac_path_EGREP and select it if it is found.
4385 # Check for GNU $ac_path_EGREP
4386 case `"$ac_path_EGREP" --version 2>&1` in
4387 *GNU*)
4388 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4390 ac_count=0
4391 $as_echo_n 0123456789 >"conftest.in"
4392 while :
4394 cat "conftest.in" "conftest.in" >"conftest.tmp"
4395 mv "conftest.tmp" "conftest.in"
4396 cp "conftest.in" "conftest.nl"
4397 $as_echo 'EGREP' >> "conftest.nl"
4398 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4400 ac_count=`expr $ac_count + 1`
4401 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4402 # Best one so far, save it but keep looking for a better one
4403 ac_cv_path_EGREP="$ac_path_EGREP"
4404 ac_path_EGREP_max=$ac_count
4406 # 10*(2^10) chars as input seems more than enough
4407 test $ac_count -gt 10 && break
4408 done
4409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4410 esac
4412 $ac_path_EGREP_found && break 3
4413 done
4414 done
4415 done
4416 IFS=$as_save_IFS
4417 if test -z "$ac_cv_path_EGREP"; then
4418 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4419 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4420 { (exit 1); exit 1; }; }
4422 else
4423 ac_cv_path_EGREP=$EGREP
4428 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4429 $as_echo "$ac_cv_path_EGREP" >&6; }
4430 EGREP="$ac_cv_path_EGREP"
4433 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4434 $as_echo_n "checking for ANSI C header files... " >&6; }
4435 if test "${ac_cv_header_stdc+set}" = set; then
4436 $as_echo_n "(cached) " >&6
4437 else
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>
4445 #include <stdarg.h>
4446 #include <string.h>
4447 #include <float.h>
4450 main ()
4454 return 0;
4456 _ACEOF
4457 rm -f conftest.$ac_objext
4458 if { (ac_try="$ac_compile"
4459 case "(($ac_try" in
4460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461 *) ac_try_echo=$ac_try;;
4462 esac
4463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4464 $as_echo "$ac_try_echo") >&5
4465 (eval "$ac_compile") 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } && {
4472 test -z "$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 } && test -s conftest.$ac_objext; then
4475 ac_cv_header_stdc=yes
4476 else
4477 $as_echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4480 ac_cv_header_stdc=no
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 if test $ac_cv_header_stdc = yes; then
4486 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4487 cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h. */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h. */
4493 #include <string.h>
4495 _ACEOF
4496 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4497 $EGREP "memchr" >/dev/null 2>&1; then
4499 else
4500 ac_cv_header_stdc=no
4502 rm -f conftest*
4506 if test $ac_cv_header_stdc = yes; then
4507 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514 #include <stdlib.h>
4516 _ACEOF
4517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4518 $EGREP "free" >/dev/null 2>&1; then
4520 else
4521 ac_cv_header_stdc=no
4523 rm -f conftest*
4527 if test $ac_cv_header_stdc = yes; then
4528 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4529 if test "$cross_compiling" = yes; then
4531 else
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h. */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h. */
4538 #include <ctype.h>
4539 #include <stdlib.h>
4540 #if ((' ' & 0x0FF) == 0x020)
4541 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4542 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4543 #else
4544 # define ISLOWER(c) \
4545 (('a' <= (c) && (c) <= 'i') \
4546 || ('j' <= (c) && (c) <= 'r') \
4547 || ('s' <= (c) && (c) <= 'z'))
4548 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4549 #endif
4551 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4553 main ()
4555 int i;
4556 for (i = 0; i < 256; i++)
4557 if (XOR (islower (i), ISLOWER (i))
4558 || toupper (i) != TOUPPER (i))
4559 return 2;
4560 return 0;
4562 _ACEOF
4563 rm -f conftest$ac_exeext
4564 if { (ac_try="$ac_link"
4565 case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4568 esac
4569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4570 $as_echo "$ac_try_echo") >&5
4571 (eval "$ac_link") 2>&5
4572 ac_status=$?
4573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4575 { (case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4580 $as_echo "$ac_try_echo") >&5
4581 (eval "$ac_try") 2>&5
4582 ac_status=$?
4583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4584 (exit $ac_status); }; }; then
4586 else
4587 $as_echo "$as_me: program exited with status $ac_status" >&5
4588 $as_echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4591 ( exit $ac_status )
4592 ac_cv_header_stdc=no
4594 rm -rf conftest.dSYM
4595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4601 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4602 $as_echo "$ac_cv_header_stdc" >&6; }
4603 if test $ac_cv_header_stdc = yes; then
4605 cat >>confdefs.h <<\_ACEOF
4606 #define STDC_HEADERS 1
4607 _ACEOF
4611 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4621 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4622 inttypes.h stdint.h unistd.h
4624 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4625 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4626 $as_echo_n "checking for $ac_header... " >&6; }
4627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4628 $as_echo_n "(cached) " >&6
4629 else
4630 cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h. */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 $ac_includes_default
4638 #include <$ac_header>
4639 _ACEOF
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4642 case "(($ac_try" in
4643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4645 esac
4646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4647 $as_echo "$ac_try_echo") >&5
4648 (eval "$ac_compile") 2>conftest.er1
4649 ac_status=$?
4650 grep -v '^ *+' conftest.er1 >conftest.err
4651 rm -f conftest.er1
4652 cat conftest.err >&5
4653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && {
4655 test -z "$ac_c_werror_flag" ||
4656 test ! -s conftest.err
4657 } && test -s conftest.$ac_objext; then
4658 eval "$as_ac_Header=yes"
4659 else
4660 $as_echo "$as_me: failed program was:" >&5
4661 sed 's/^/| /' conftest.$ac_ext >&5
4663 eval "$as_ac_Header=no"
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 ac_res=`eval 'as_val=${'$as_ac_Header'}
4669 $as_echo "$as_val"'`
4670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4671 $as_echo "$ac_res" >&6; }
4672 if test `eval 'as_val=${'$as_ac_Header'}
4673 $as_echo "$as_val"'` = yes; then
4674 cat >>confdefs.h <<_ACEOF
4675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4676 _ACEOF
4680 done
4684 if test "${ac_cv_header_minix_config_h+set}" = set; then
4685 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4686 $as_echo_n "checking for minix/config.h... " >&6; }
4687 if test "${ac_cv_header_minix_config_h+set}" = set; then
4688 $as_echo_n "(cached) " >&6
4690 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4691 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4692 else
4693 # Is the header compilable?
4694 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4695 $as_echo_n "checking minix/config.h usability... " >&6; }
4696 cat >conftest.$ac_ext <<_ACEOF
4697 /* confdefs.h. */
4698 _ACEOF
4699 cat confdefs.h >>conftest.$ac_ext
4700 cat >>conftest.$ac_ext <<_ACEOF
4701 /* end confdefs.h. */
4702 $ac_includes_default
4703 #include <minix/config.h>
4704 _ACEOF
4705 rm -f conftest.$ac_objext
4706 if { (ac_try="$ac_compile"
4707 case "(($ac_try" in
4708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4709 *) ac_try_echo=$ac_try;;
4710 esac
4711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4712 $as_echo "$ac_try_echo") >&5
4713 (eval "$ac_compile") 2>conftest.er1
4714 ac_status=$?
4715 grep -v '^ *+' conftest.er1 >conftest.err
4716 rm -f conftest.er1
4717 cat conftest.err >&5
4718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } && {
4720 test -z "$ac_c_werror_flag" ||
4721 test ! -s conftest.err
4722 } && test -s conftest.$ac_objext; then
4723 ac_header_compiler=yes
4724 else
4725 $as_echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 ac_header_compiler=no
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4733 $as_echo "$ac_header_compiler" >&6; }
4735 # Is the header present?
4736 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4737 $as_echo_n "checking minix/config.h presence... " >&6; }
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744 #include <minix/config.h>
4745 _ACEOF
4746 if { (ac_try="$ac_cpp conftest.$ac_ext"
4747 case "(($ac_try" in
4748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4749 *) ac_try_echo=$ac_try;;
4750 esac
4751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4752 $as_echo "$ac_try_echo") >&5
4753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4754 ac_status=$?
4755 grep -v '^ *+' conftest.er1 >conftest.err
4756 rm -f conftest.er1
4757 cat conftest.err >&5
4758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); } >/dev/null && {
4760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4761 test ! -s conftest.err
4762 }; then
4763 ac_header_preproc=yes
4764 else
4765 $as_echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4768 ac_header_preproc=no
4771 rm -f conftest.err conftest.$ac_ext
4772 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4773 $as_echo "$ac_header_preproc" >&6; }
4775 # So? What about this header?
4776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4777 yes:no: )
4778 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4779 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4780 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4781 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4782 ac_header_preproc=yes
4784 no:yes:* )
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4786 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4788 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4790 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4791 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4792 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4793 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4794 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4795 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4796 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4799 esac
4800 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4801 $as_echo_n "checking for minix/config.h... " >&6; }
4802 if test "${ac_cv_header_minix_config_h+set}" = set; then
4803 $as_echo_n "(cached) " >&6
4804 else
4805 ac_cv_header_minix_config_h=$ac_header_preproc
4807 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4808 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4811 if test $ac_cv_header_minix_config_h = yes; then
4812 MINIX=yes
4813 else
4814 MINIX=
4818 if test "$MINIX" = yes; then
4820 cat >>confdefs.h <<\_ACEOF
4821 #define _POSIX_SOURCE 1
4822 _ACEOF
4825 cat >>confdefs.h <<\_ACEOF
4826 #define _POSIX_1_SOURCE 2
4827 _ACEOF
4830 cat >>confdefs.h <<\_ACEOF
4831 #define _MINIX 1
4832 _ACEOF
4838 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4839 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4840 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4841 $as_echo_n "(cached) " >&6
4842 else
4843 cat >conftest.$ac_ext <<_ACEOF
4844 /* confdefs.h. */
4845 _ACEOF
4846 cat confdefs.h >>conftest.$ac_ext
4847 cat >>conftest.$ac_ext <<_ACEOF
4848 /* end confdefs.h. */
4850 # define __EXTENSIONS__ 1
4851 $ac_includes_default
4853 main ()
4857 return 0;
4859 _ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (ac_try="$ac_compile"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867 $as_echo "$ac_try_echo") >&5
4868 (eval "$ac_compile") 2>conftest.er1
4869 ac_status=$?
4870 grep -v '^ *+' conftest.er1 >conftest.err
4871 rm -f conftest.er1
4872 cat conftest.err >&5
4873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } && {
4875 test -z "$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4877 } && test -s conftest.$ac_objext; then
4878 ac_cv_safe_to_define___extensions__=yes
4879 else
4880 $as_echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 ac_cv_safe_to_define___extensions__=no
4886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4889 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4890 test $ac_cv_safe_to_define___extensions__ = yes &&
4891 cat >>confdefs.h <<\_ACEOF
4892 #define __EXTENSIONS__ 1
4893 _ACEOF
4895 cat >>confdefs.h <<\_ACEOF
4896 #define _ALL_SOURCE 1
4897 _ACEOF
4899 cat >>confdefs.h <<\_ACEOF
4900 #define _GNU_SOURCE 1
4901 _ACEOF
4903 cat >>confdefs.h <<\_ACEOF
4904 #define _POSIX_PTHREAD_SEMANTICS 1
4905 _ACEOF
4907 cat >>confdefs.h <<\_ACEOF
4908 #define _TANDEM_SOURCE 1
4909 _ACEOF
4913 ### Use -Wno-pointer-sign if the compiler supports it
4914 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4915 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4916 SAVE_CFLAGS="$CFLAGS"
4917 CFLAGS="$CFLAGS -Wno-pointer-sign"
4918 cat >conftest.$ac_ext <<_ACEOF
4919 /* confdefs.h. */
4920 _ACEOF
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4926 main ()
4930 return 0;
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (ac_try="$ac_compile"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940 $as_echo "$ac_try_echo") >&5
4941 (eval "$ac_compile") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
4951 has_option=yes
4952 else
4953 $as_echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4956 has_option=no
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 if test $has_option = yes; then
4961 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4963 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4964 $as_echo "$has_option" >&6; }
4965 CFLAGS="$SAVE_CFLAGS"
4966 unset has_option
4967 unset SAVE_CFLAGS
4969 ### Use -Wdeclaration-after-statement if the compiler supports it
4970 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4971 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4972 SAVE_CFLAGS="$CFLAGS"
4973 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4974 cat >conftest.$ac_ext <<_ACEOF
4975 /* confdefs.h. */
4976 _ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4982 main ()
4986 return 0;
4988 _ACEOF
4989 rm -f conftest.$ac_objext
4990 if { (ac_try="$ac_compile"
4991 case "(($ac_try" in
4992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4993 *) ac_try_echo=$ac_try;;
4994 esac
4995 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4996 $as_echo "$ac_try_echo") >&5
4997 (eval "$ac_compile") 2>conftest.er1
4998 ac_status=$?
4999 grep -v '^ *+' conftest.er1 >conftest.err
5000 rm -f conftest.er1
5001 cat conftest.err >&5
5002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } && {
5004 test -z "$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5006 } && test -s conftest.$ac_objext; then
5007 has_option=yes
5008 else
5009 $as_echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 has_option=no
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016 if test $has_option = yes; then
5017 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5019 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
5020 $as_echo "$has_option" >&6; }
5021 CFLAGS="$SAVE_CFLAGS"
5022 unset has_option
5023 unset SAVE_CFLAGS
5025 #### Some other nice autoconf tests.
5027 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5028 $as_echo_n "checking whether ln -s works... " >&6; }
5029 LN_S=$as_ln_s
5030 if test "$LN_S" = "ln -s"; then
5031 { $as_echo "$as_me:$LINENO: result: yes" >&5
5032 $as_echo "yes" >&6; }
5033 else
5034 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5035 $as_echo "no, using $LN_S" >&6; }
5038 ac_ext=c
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5043 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5044 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5045 # On Suns, sometimes $CPP names a directory.
5046 if test -n "$CPP" && test -d "$CPP"; then
5047 CPP=
5049 if test -z "$CPP"; then
5050 if test "${ac_cv_prog_CPP+set}" = set; then
5051 $as_echo_n "(cached) " >&6
5052 else
5053 # Double quotes because CPP needs to be expanded
5054 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5056 ac_preproc_ok=false
5057 for ac_c_preproc_warn_flag in '' yes
5059 # Use a header file that comes with gcc, so configuring glibc
5060 # with a fresh cross-compiler works.
5061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5062 # <limits.h> exists even on freestanding compilers.
5063 # On the NeXT, cc -E runs the code through the compiler's parser,
5064 # not just through cpp. "Syntax error" is here to catch this case.
5065 cat >conftest.$ac_ext <<_ACEOF
5066 /* confdefs.h. */
5067 _ACEOF
5068 cat confdefs.h >>conftest.$ac_ext
5069 cat >>conftest.$ac_ext <<_ACEOF
5070 /* end confdefs.h. */
5071 #ifdef __STDC__
5072 # include <limits.h>
5073 #else
5074 # include <assert.h>
5075 #endif
5076 Syntax error
5077 _ACEOF
5078 if { (ac_try="$ac_cpp conftest.$ac_ext"
5079 case "(($ac_try" in
5080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5082 esac
5083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5084 $as_echo "$ac_try_echo") >&5
5085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5086 ac_status=$?
5087 grep -v '^ *+' conftest.er1 >conftest.err
5088 rm -f conftest.er1
5089 cat conftest.err >&5
5090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } >/dev/null && {
5092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 }; then
5096 else
5097 $as_echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5100 # Broken: fails on valid input.
5101 continue
5104 rm -f conftest.err conftest.$ac_ext
5106 # OK, works on sane cases. Now check whether nonexistent headers
5107 # can be detected and how.
5108 cat >conftest.$ac_ext <<_ACEOF
5109 /* confdefs.h. */
5110 _ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #include <ac_nonexistent.h>
5115 _ACEOF
5116 if { (ac_try="$ac_cpp conftest.$ac_ext"
5117 case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120 esac
5121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5122 $as_echo "$ac_try_echo") >&5
5123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5124 ac_status=$?
5125 grep -v '^ *+' conftest.er1 >conftest.err
5126 rm -f conftest.er1
5127 cat conftest.err >&5
5128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129 (exit $ac_status); } >/dev/null && {
5130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5131 test ! -s conftest.err
5132 }; then
5133 # Broken: success on invalid input.
5134 continue
5135 else
5136 $as_echo "$as_me: failed program was:" >&5
5137 sed 's/^/| /' conftest.$ac_ext >&5
5139 # Passes both tests.
5140 ac_preproc_ok=:
5141 break
5144 rm -f conftest.err conftest.$ac_ext
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then
5150 break
5153 done
5154 ac_cv_prog_CPP=$CPP
5157 CPP=$ac_cv_prog_CPP
5158 else
5159 ac_cv_prog_CPP=$CPP
5161 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
5162 $as_echo "$CPP" >&6; }
5163 ac_preproc_ok=false
5164 for ac_c_preproc_warn_flag in '' yes
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169 # <limits.h> exists even on freestanding compilers.
5170 # On the NeXT, cc -E runs the code through the compiler's parser,
5171 # not just through cpp. "Syntax error" is here to catch this case.
5172 cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h. */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 #ifdef __STDC__
5179 # include <limits.h>
5180 #else
5181 # include <assert.h>
5182 #endif
5183 Syntax error
5184 _ACEOF
5185 if { (ac_try="$ac_cpp conftest.$ac_ext"
5186 case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189 esac
5190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5191 $as_echo "$ac_try_echo") >&5
5192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5193 ac_status=$?
5194 grep -v '^ *+' conftest.er1 >conftest.err
5195 rm -f conftest.er1
5196 cat conftest.err >&5
5197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null && {
5199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5201 }; then
5203 else
5204 $as_echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 # Broken: fails on valid input.
5208 continue
5211 rm -f conftest.err conftest.$ac_ext
5213 # OK, works on sane cases. Now check whether nonexistent headers
5214 # can be detected and how.
5215 cat >conftest.$ac_ext <<_ACEOF
5216 /* confdefs.h. */
5217 _ACEOF
5218 cat confdefs.h >>conftest.$ac_ext
5219 cat >>conftest.$ac_ext <<_ACEOF
5220 /* end confdefs.h. */
5221 #include <ac_nonexistent.h>
5222 _ACEOF
5223 if { (ac_try="$ac_cpp conftest.$ac_ext"
5224 case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5229 $as_echo "$ac_try_echo") >&5
5230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5231 ac_status=$?
5232 grep -v '^ *+' conftest.er1 >conftest.err
5233 rm -f conftest.er1
5234 cat conftest.err >&5
5235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); } >/dev/null && {
5237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5238 test ! -s conftest.err
5239 }; then
5240 # Broken: success on invalid input.
5241 continue
5242 else
5243 $as_echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 # Passes both tests.
5247 ac_preproc_ok=:
5248 break
5251 rm -f conftest.err conftest.$ac_ext
5253 done
5254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5255 rm -f conftest.err conftest.$ac_ext
5256 if $ac_preproc_ok; then
5258 else
5259 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5260 See \`config.log' for more details." >&5
5261 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5262 See \`config.log' for more details." >&2;}
5263 { (exit 1); exit 1; }; }
5266 ac_ext=c
5267 ac_cpp='$CPP $CPPFLAGS'
5268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5272 # Find a good install program. We prefer a C program (faster),
5273 # so one script is as good as another. But avoid the broken or
5274 # incompatible versions:
5275 # SysV /etc/install, /usr/sbin/install
5276 # SunOS /usr/etc/install
5277 # IRIX /sbin/install
5278 # AIX /bin/install
5279 # AmigaOS /C/install, which installs bootblocks on floppy discs
5280 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5281 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5282 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5283 # OS/2's system install, which has a completely different semantic
5284 # ./install, which can be erroneously created by make from ./install.sh.
5285 # Reject install programs that cannot install multiple files.
5286 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5287 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5288 if test -z "$INSTALL"; then
5289 if test "${ac_cv_path_install+set}" = set; then
5290 $as_echo_n "(cached) " >&6
5291 else
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 # Account for people who put trailing slashes in PATH elements.
5298 case $as_dir/ in
5299 ./ | .// | /cC/* | \
5300 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5301 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5302 /usr/ucb/* ) ;;
5304 # OSF1 and SCO ODT 3.0 have their own names for install.
5305 # Don't use installbsd from OSF since it installs stuff as root
5306 # by default.
5307 for ac_prog in ginstall scoinst install; do
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5310 if test $ac_prog = install &&
5311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5312 # AIX install. It has an incompatible calling convention.
5314 elif test $ac_prog = install &&
5315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5316 # program-specific install script used by HP pwplus--don't use.
5318 else
5319 rm -rf conftest.one conftest.two conftest.dir
5320 echo one > conftest.one
5321 echo two > conftest.two
5322 mkdir conftest.dir
5323 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5324 test -s conftest.one && test -s conftest.two &&
5325 test -s conftest.dir/conftest.one &&
5326 test -s conftest.dir/conftest.two
5327 then
5328 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5329 break 3
5333 done
5334 done
5336 esac
5338 done
5339 IFS=$as_save_IFS
5341 rm -rf conftest.one conftest.two conftest.dir
5344 if test "${ac_cv_path_install+set}" = set; then
5345 INSTALL=$ac_cv_path_install
5346 else
5347 # As a last resort, use the slow shell script. Don't cache a
5348 # value for INSTALL within a source directory, because that will
5349 # break other packages using the cache if that directory is
5350 # removed, or if the value is a relative name.
5351 INSTALL=$ac_install_sh
5354 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5355 $as_echo "$INSTALL" >&6; }
5357 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5358 # It thinks the first close brace ends the variable substitution.
5359 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5361 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5363 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5365 if test "x$RANLIB" = x; then
5366 if test -n "$ac_tool_prefix"; then
5367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5370 $as_echo_n "checking for $ac_word... " >&6; }
5371 if test "${ac_cv_prog_RANLIB+set}" = set; then
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if test -n "$RANLIB"; then
5375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5376 else
5377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5378 for as_dir in $PATH
5380 IFS=$as_save_IFS
5381 test -z "$as_dir" && as_dir=.
5382 for ac_exec_ext in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5385 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5386 break 2
5388 done
5389 done
5390 IFS=$as_save_IFS
5394 RANLIB=$ac_cv_prog_RANLIB
5395 if test -n "$RANLIB"; then
5396 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5397 $as_echo "$RANLIB" >&6; }
5398 else
5399 { $as_echo "$as_me:$LINENO: result: no" >&5
5400 $as_echo "no" >&6; }
5405 if test -z "$ac_cv_prog_RANLIB"; then
5406 ac_ct_RANLIB=$RANLIB
5407 # Extract the first word of "ranlib", so it can be a program name with args.
5408 set dummy ranlib; ac_word=$2
5409 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$ac_ct_RANLIB"; then
5415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_prog_ac_ct_RANLIB="ranlib"
5425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5428 done
5429 done
5430 IFS=$as_save_IFS
5434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5435 if test -n "$ac_ct_RANLIB"; then
5436 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5437 $as_echo "$ac_ct_RANLIB" >&6; }
5438 else
5439 { $as_echo "$as_me:$LINENO: result: no" >&5
5440 $as_echo "no" >&6; }
5443 if test "x$ac_ct_RANLIB" = x; then
5444 RANLIB=":"
5445 else
5446 case $cross_compiling:$ac_tool_warned in
5447 yes:)
5448 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5449 whose name does not start with the host triplet. If you think this
5450 configuration is useful to you, please write to autoconf@gnu.org." >&5
5451 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5452 whose name does not start with the host triplet. If you think this
5453 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5454 ac_tool_warned=yes ;;
5455 esac
5456 RANLIB=$ac_ct_RANLIB
5458 else
5459 RANLIB="$ac_cv_prog_RANLIB"
5464 ## Although we're running on an amd64 kernel, we're actually compiling for
5465 ## the x86 architecture. The user should probably have provided an
5466 ## explicit --build to `configure', but if everything else than the kernel
5467 ## is running in i386 mode, we can help them out.
5468 if test "$machine" = "amdx86-64"; then
5469 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5470 $as_echo_n "checking whether i386 is declared... " >&6; }
5471 if test "${ac_cv_have_decl_i386+set}" = set; then
5472 $as_echo_n "(cached) " >&6
5473 else
5474 cat >conftest.$ac_ext <<_ACEOF
5475 /* confdefs.h. */
5476 _ACEOF
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 $ac_includes_default
5482 main ()
5484 #ifndef i386
5485 (void) i386;
5486 #endif
5489 return 0;
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5494 case "(($ac_try" in
5495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5497 esac
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499 $as_echo "$ac_try_echo") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5501 ac_status=$?
5502 grep -v '^ *+' conftest.er1 >conftest.err
5503 rm -f conftest.er1
5504 cat conftest.err >&5
5505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_c_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5510 ac_cv_have_decl_i386=yes
5511 else
5512 $as_echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5515 ac_cv_have_decl_i386=no
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5520 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5521 $as_echo "$ac_cv_have_decl_i386" >&6; }
5523 if test "$ac_cv_have_decl_i386" = "yes"; then
5524 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5525 machine=intel386
5526 machfile="m/${machine}.h"
5530 # Extract the first word of "install-info", so it can be a program name with args.
5531 set dummy install-info; ac_word=$2
5532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5535 $as_echo_n "(cached) " >&6
5536 else
5537 case $INSTALL_INFO in
5538 [\\/]* | ?:[\\/]*)
5539 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5549 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5550 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5553 done
5554 done
5555 IFS=$as_save_IFS
5558 esac
5560 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5561 if test -n "$INSTALL_INFO"; then
5562 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5563 $as_echo "$INSTALL_INFO" >&6; }
5564 else
5565 { $as_echo "$as_me:$LINENO: result: no" >&5
5566 $as_echo "no" >&6; }
5570 # Extract the first word of "install-info", so it can be a program name with args.
5571 set dummy install-info; ac_word=$2
5572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5575 $as_echo_n "(cached) " >&6
5576 else
5577 case $INSTALL_INFO in
5578 [\\/]* | ?:[\\/]*)
5579 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in /usr/sbin
5585 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2
5593 done
5594 done
5595 IFS=$as_save_IFS
5598 esac
5600 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5601 if test -n "$INSTALL_INFO"; then
5602 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5603 $as_echo "$INSTALL_INFO" >&6; }
5604 else
5605 { $as_echo "$as_me:$LINENO: result: no" >&5
5606 $as_echo "no" >&6; }
5610 # Extract the first word of "install-info", so it can be a program name with args.
5611 set dummy install-info; ac_word=$2
5612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5615 $as_echo_n "(cached) " >&6
5616 else
5617 case $INSTALL_INFO in
5618 [\\/]* | ?:[\\/]*)
5619 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 for as_dir in /sbin
5625 IFS=$as_save_IFS
5626 test -z "$as_dir" && as_dir=.
5627 for ac_exec_ext in '' $ac_executable_extensions; do
5628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5629 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5630 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5631 break 2
5633 done
5634 done
5635 IFS=$as_save_IFS
5637 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5639 esac
5641 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5642 if test -n "$INSTALL_INFO"; then
5643 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5644 $as_echo "$INSTALL_INFO" >&6; }
5645 else
5646 { $as_echo "$as_me:$LINENO: result: no" >&5
5647 $as_echo "no" >&6; }
5651 # Extract the first word of "gzip", so it can be a program name with args.
5652 set dummy gzip; ac_word=$2
5653 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5656 $as_echo_n "(cached) " >&6
5657 else
5658 case $GZIP_PROG in
5659 [\\/]* | ?:[\\/]*)
5660 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
5668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5672 break 2
5674 done
5675 done
5676 IFS=$as_save_IFS
5679 esac
5681 GZIP_PROG=$ac_cv_path_GZIP_PROG
5682 if test -n "$GZIP_PROG"; then
5683 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5684 $as_echo "$GZIP_PROG" >&6; }
5685 else
5686 { $as_echo "$as_me:$LINENO: result: no" >&5
5687 $as_echo "no" >&6; }
5693 ## Need makeinfo >= 4.6 (?) to build the manuals.
5694 # Extract the first word of "makeinfo", so it can be a program name with args.
5695 set dummy makeinfo; ac_word=$2
5696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5697 $as_echo_n "checking for $ac_word... " >&6; }
5698 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5699 $as_echo_n "(cached) " >&6
5700 else
5701 case $MAKEINFO in
5702 [\\/]* | ?:[\\/]*)
5703 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5713 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5717 done
5718 done
5719 IFS=$as_save_IFS
5721 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5723 esac
5725 MAKEINFO=$ac_cv_path_MAKEINFO
5726 if test -n "$MAKEINFO"; then
5727 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5728 $as_echo "$MAKEINFO" >&6; }
5729 else
5730 { $as_echo "$as_me:$LINENO: result: no" >&5
5731 $as_echo "no" >&6; }
5735 if test "$MAKEINFO" != "no" && \
5736 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
5737 MAKEINFO=no
5740 ## Makeinfo is unusual. For a released Emacs, the manuals are
5741 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5742 ## therefore in the category of "special tools" not normally required, which
5743 ## configure does not have to check for (eg autoconf itself).
5744 ## In a Bazaar checkout on the other hand, the manuals are not included.
5745 ## So makeinfo is a requirement to build from Bazaar, and configure
5746 ## should test for it as it does for any other build requirement.
5747 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5748 ## with pre-built manuals, from a Bazaar checkout.
5749 if test "$MAKEINFO" = "no"; then
5750 if test "x${with_makeinfo}" = "xno"; then
5751 MAKEINFO=off
5752 elif test ! -e $srcdir/info/emacs; then
5753 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5754 source tree does not seem to have pre-built manuals in the \`info' directory.
5755 Either install a suitable version of makeinfo, or re-run configure
5756 with the \`--without-makeinfo' option to build without the manuals. " >&5
5757 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5758 source tree does not seem to have pre-built manuals in the \`info' directory.
5759 Either install a suitable version of makeinfo, or re-run configure
5760 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5761 { (exit 1); exit 1; }; }
5766 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5767 then
5768 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5771 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5772 then
5773 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5777 late_LDFLAGS=$LDFLAGS
5778 if test "$GCC" = yes; then
5779 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5780 else
5781 LDFLAGS="$LDFLAGS -znocombreloc"
5784 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5785 $as_echo_n "checking for -znocombreloc... " >&6; }
5786 cat >conftest.$ac_ext <<_ACEOF
5787 main(){return 0;}
5788 _ACEOF
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (ac_try="$ac_link"
5791 case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794 esac
5795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5796 $as_echo "$ac_try_echo") >&5
5797 (eval "$ac_link") 2>conftest.er1
5798 ac_status=$?
5799 grep -v '^ *+' conftest.er1 >conftest.err
5800 rm -f conftest.er1
5801 cat conftest.err >&5
5802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } && {
5804 test -z "$ac_c_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest$ac_exeext && {
5807 test "$cross_compiling" = yes ||
5808 $as_test_x conftest$ac_exeext
5809 }; then
5810 { $as_echo "$as_me:$LINENO: result: yes" >&5
5811 $as_echo "yes" >&6; }
5812 else
5813 $as_echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5816 LDFLAGS=$late_LDFLAGS
5817 { $as_echo "$as_me:$LINENO: result: no" >&5
5818 $as_echo "no" >&6; }
5821 rm -rf conftest.dSYM
5822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5823 conftest$ac_exeext conftest.$ac_ext
5825 LIB_MATH=-lm
5827 case $opsys in
5828 cygwin )
5829 LIB_MATH=
5831 darwin )
5832 ## Adding -lm confuses the dynamic linker, so omit it.
5833 LIB_MATH=
5835 esac
5839 #### Extract some information from the operating system and machine files.
5841 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5842 - which libraries the lib-src programs will want, and
5843 - whether the GNU malloc routines are usable..." >&5
5844 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5845 - which libraries the lib-src programs will want, and
5846 - whether the GNU malloc routines are usable..." >&6;}
5848 ### First figure out CFLAGS (which we use for running the compiler here)
5849 ### and REAL_CFLAGS (which we use for real compilation).
5850 ### The two are the same except on a few systems, where they are made
5851 ### different to work around various lossages. For example,
5852 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5853 ### as implying static linking.
5855 ### If the CFLAGS env var is specified, we use that value
5856 ### instead of the default.
5858 ### It's not important that this name contain the PID; you can't run
5859 ### two configures in the same directory and have anything work
5860 ### anyway.
5861 tempcname="conftest.c"
5863 echo '
5864 #include "'${srcdir}'/src/'${opsysfile}'"
5865 #include "'${srcdir}'/src/'${machfile}'"
5866 #ifndef LIBS_SYSTEM
5867 #define LIBS_SYSTEM
5868 #endif
5869 #ifndef C_SWITCH_SYSTEM
5870 #define C_SWITCH_SYSTEM
5871 #endif
5872 #ifndef C_SWITCH_MACHINE
5873 #define C_SWITCH_MACHINE
5874 #endif
5875 configure___ libsrc_libs=LIBS_SYSTEM
5876 configure___ c_switch_system=C_SWITCH_SYSTEM
5877 configure___ c_switch_machine=C_SWITCH_MACHINE
5879 configure___ LIBX=-lX11
5881 configure___ unexec=UNEXEC
5883 #ifdef SYSTEM_MALLOC
5884 configure___ system_malloc=yes
5885 #else
5886 configure___ system_malloc=no
5887 #endif
5889 #ifdef USE_MMAP_FOR_BUFFERS
5890 configure___ use_mmap_for_buffers=yes
5891 #else
5892 configure___ use_mmap_for_buffers=no
5893 #endif
5895 #ifndef C_OPTIMIZE_SWITCH
5896 #ifdef __GNUC__
5897 #define C_OPTIMIZE_SWITCH -O2
5898 #else
5899 #define C_OPTIMIZE_SWITCH -O
5900 #endif
5901 #endif
5903 #ifndef C_WARNINGS_SWITCH
5904 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5905 #endif
5907 #ifndef LD_SWITCH_SYSTEM
5908 #define LD_SWITCH_SYSTEM
5909 #endif
5911 #ifndef LD_SWITCH_X_SITE_AUX
5912 #define LD_SWITCH_X_SITE_AUX
5913 #endif
5915 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5917 #ifdef THIS_IS_CONFIGURE
5919 /* Get the CFLAGS for tests in configure. */
5920 #ifdef __GNUC__
5921 configure___ CFLAGS=-g C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5922 #else
5923 configure___ CFLAGS='${SPECIFIED_CFLAGS}'
5924 #endif
5926 #else /* not THIS_IS_CONFIGURE */
5928 /* Get the CFLAGS for real compilation. */
5929 #ifdef __GNUC__
5930 configure___ REAL_CFLAGS=-g C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH ${PROFILING_CFLAGS} '${SPECIFIED_CFLAGS}'
5931 #else
5932 configure___ REAL_CFLAGS='${SPECIFIED_CFLAGS}'
5933 #endif
5935 #endif /* not THIS_IS_CONFIGURE */
5936 ' > ${tempcname}
5938 LDFLAGS="${LDFLAGS} ${PROFILING_LDFLAGS}"
5940 # The value of CPP is a quoted variable reference, so we need to do this
5941 # to get its actual value...
5942 CPP=`eval "echo $CPP"`
5943 eval `${CPP} -Isrc ${tempcname} \
5944 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5945 if test "x$SPECIFIED_CFLAGS" = x; then
5946 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5947 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5948 else
5949 REAL_CFLAGS="$CFLAGS"
5951 rm ${tempcname}
5953 ac_link="$ac_link $ld_switch_system"
5955 ### Make sure subsequent tests use flags consistent with the build flags.
5957 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5958 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5959 else
5960 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5965 # Check whether --enable-largefile was given.
5966 if test "${enable_largefile+set}" = set; then
5967 enableval=$enable_largefile;
5970 if test "$enable_largefile" != no; then
5972 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5973 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5974 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5975 $as_echo_n "(cached) " >&6
5976 else
5977 ac_cv_sys_largefile_CC=no
5978 if test "$GCC" != yes; then
5979 ac_save_CC=$CC
5980 while :; do
5981 # IRIX 6.2 and later do not support large files by default,
5982 # so use the C compiler's -n32 option if that helps.
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <sys/types.h>
5990 /* Check that off_t can represent 2**63 - 1 correctly.
5991 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5992 since some C++ compilers masquerading as C compilers
5993 incorrectly reject 9223372036854775807. */
5994 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5995 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5996 && LARGE_OFF_T % 2147483647 == 1)
5997 ? 1 : -1];
5999 main ()
6003 return 0;
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011 esac
6012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013 $as_echo "$ac_try_echo") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6024 break
6025 else
6026 $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6032 rm -f core conftest.err conftest.$ac_objext
6033 CC="$CC -n32"
6034 rm -f conftest.$ac_objext
6035 if { (ac_try="$ac_compile"
6036 case "(($ac_try" in
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6039 esac
6040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6041 $as_echo "$ac_try_echo") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && {
6049 test -z "$ac_c_werror_flag" ||
6050 test ! -s conftest.err
6051 } && test -s conftest.$ac_objext; then
6052 ac_cv_sys_largefile_CC=' -n32'; break
6053 else
6054 $as_echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6060 rm -f core conftest.err conftest.$ac_objext
6061 break
6062 done
6063 CC=$ac_save_CC
6064 rm -f conftest.$ac_ext
6067 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6068 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6069 if test "$ac_cv_sys_largefile_CC" != no; then
6070 CC=$CC$ac_cv_sys_largefile_CC
6073 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6074 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6075 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6076 $as_echo_n "(cached) " >&6
6077 else
6078 while :; do
6079 cat >conftest.$ac_ext <<_ACEOF
6080 /* confdefs.h. */
6081 _ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6085 #include <sys/types.h>
6086 /* Check that off_t can represent 2**63 - 1 correctly.
6087 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6088 since some C++ compilers masquerading as C compilers
6089 incorrectly reject 9223372036854775807. */
6090 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6091 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6092 && LARGE_OFF_T % 2147483647 == 1)
6093 ? 1 : -1];
6095 main ()
6099 return 0;
6101 _ACEOF
6102 rm -f conftest.$ac_objext
6103 if { (ac_try="$ac_compile"
6104 case "(($ac_try" in
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6107 esac
6108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6109 $as_echo "$ac_try_echo") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6111 ac_status=$?
6112 grep -v '^ *+' conftest.er1 >conftest.err
6113 rm -f conftest.er1
6114 cat conftest.err >&5
6115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.$ac_objext; then
6120 ac_cv_sys_file_offset_bits=no; break
6121 else
6122 $as_echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.$ac_ext >&5
6128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6129 cat >conftest.$ac_ext <<_ACEOF
6130 /* confdefs.h. */
6131 _ACEOF
6132 cat confdefs.h >>conftest.$ac_ext
6133 cat >>conftest.$ac_ext <<_ACEOF
6134 /* end confdefs.h. */
6135 #define _FILE_OFFSET_BITS 64
6136 #include <sys/types.h>
6137 /* Check that off_t can represent 2**63 - 1 correctly.
6138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6139 since some C++ compilers masquerading as C compilers
6140 incorrectly reject 9223372036854775807. */
6141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6143 && LARGE_OFF_T % 2147483647 == 1)
6144 ? 1 : -1];
6146 main ()
6150 return 0;
6152 _ACEOF
6153 rm -f conftest.$ac_objext
6154 if { (ac_try="$ac_compile"
6155 case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158 esac
6159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6160 $as_echo "$ac_try_echo") >&5
6161 (eval "$ac_compile") 2>conftest.er1
6162 ac_status=$?
6163 grep -v '^ *+' conftest.er1 >conftest.err
6164 rm -f conftest.er1
6165 cat conftest.err >&5
6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); } && {
6168 test -z "$ac_c_werror_flag" ||
6169 test ! -s conftest.err
6170 } && test -s conftest.$ac_objext; then
6171 ac_cv_sys_file_offset_bits=64; break
6172 else
6173 $as_echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 ac_cv_sys_file_offset_bits=unknown
6181 break
6182 done
6184 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6185 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6186 case $ac_cv_sys_file_offset_bits in #(
6187 no | unknown) ;;
6189 cat >>confdefs.h <<_ACEOF
6190 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6191 _ACEOF
6193 esac
6194 rm -rf conftest*
6195 if test $ac_cv_sys_file_offset_bits = unknown; then
6196 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6197 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6198 if test "${ac_cv_sys_large_files+set}" = set; then
6199 $as_echo_n "(cached) " >&6
6200 else
6201 while :; do
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 #include <sys/types.h>
6209 /* Check that off_t can represent 2**63 - 1 correctly.
6210 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6211 since some C++ compilers masquerading as C compilers
6212 incorrectly reject 9223372036854775807. */
6213 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6214 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6215 && LARGE_OFF_T % 2147483647 == 1)
6216 ? 1 : -1];
6218 main ()
6222 return 0;
6224 _ACEOF
6225 rm -f conftest.$ac_objext
6226 if { (ac_try="$ac_compile"
6227 case "(($ac_try" in
6228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6229 *) ac_try_echo=$ac_try;;
6230 esac
6231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6232 $as_echo "$ac_try_echo") >&5
6233 (eval "$ac_compile") 2>conftest.er1
6234 ac_status=$?
6235 grep -v '^ *+' conftest.er1 >conftest.err
6236 rm -f conftest.er1
6237 cat conftest.err >&5
6238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } && {
6240 test -z "$ac_c_werror_flag" ||
6241 test ! -s conftest.err
6242 } && test -s conftest.$ac_objext; then
6243 ac_cv_sys_large_files=no; break
6244 else
6245 $as_echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 cat >conftest.$ac_ext <<_ACEOF
6253 /* confdefs.h. */
6254 _ACEOF
6255 cat confdefs.h >>conftest.$ac_ext
6256 cat >>conftest.$ac_ext <<_ACEOF
6257 /* end confdefs.h. */
6258 #define _LARGE_FILES 1
6259 #include <sys/types.h>
6260 /* Check that off_t can represent 2**63 - 1 correctly.
6261 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6262 since some C++ compilers masquerading as C compilers
6263 incorrectly reject 9223372036854775807. */
6264 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6265 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6266 && LARGE_OFF_T % 2147483647 == 1)
6267 ? 1 : -1];
6269 main ()
6273 return 0;
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6278 case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281 esac
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.$ac_objext; then
6294 ac_cv_sys_large_files=1; break
6295 else
6296 $as_echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 ac_cv_sys_large_files=unknown
6304 break
6305 done
6307 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6308 $as_echo "$ac_cv_sys_large_files" >&6; }
6309 case $ac_cv_sys_large_files in #(
6310 no | unknown) ;;
6312 cat >>confdefs.h <<_ACEOF
6313 #define _LARGE_FILES $ac_cv_sys_large_files
6314 _ACEOF
6316 esac
6317 rm -rf conftest*
6323 ## If user specified a crt-dir, use that unconditionally.
6324 if test "X$CRT_DIR" = "X"; then
6326 case "$canonical" in
6327 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6328 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6329 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6330 ## For anything else (eg /usr/lib32), it is up the user to specify
6331 ## the location (bug#5655).
6332 ## Test for crtn.o, not just the directory, because sometimes the
6333 ## directory exists but does not have the relevant files (bug#1287).
6334 ## FIXME better to test for binary compatibility somehow.
6335 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6338 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6339 esac
6341 case "$opsys" in
6342 hpux10-20) CRT_DIR=/lib ;;
6343 esac
6345 ## Default is /usr/lib.
6346 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6348 else
6350 ## Some platforms don't use any of these files, so it is not
6351 ## appropriate to put this test outside the if block.
6352 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6353 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6354 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6355 { (exit 1); exit 1; }; }
6365 if test "${with_sound}" != "no"; then
6366 # Sound support for GNU/Linux and the free BSDs.
6370 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6374 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6375 $as_echo_n "checking for $ac_header... " >&6; }
6376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6377 $as_echo_n "(cached) " >&6
6379 ac_res=`eval 'as_val=${'$as_ac_Header'}
6380 $as_echo "$as_val"'`
6381 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6382 $as_echo "$ac_res" >&6; }
6383 else
6384 # Is the header compilable?
6385 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6386 $as_echo_n "checking $ac_header usability... " >&6; }
6387 cat >conftest.$ac_ext <<_ACEOF
6388 /* confdefs.h. */
6389 _ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 $ac_includes_default
6394 #include <$ac_header>
6395 _ACEOF
6396 rm -f conftest.$ac_objext
6397 if { (ac_try="$ac_compile"
6398 case "(($ac_try" in
6399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6400 *) ac_try_echo=$ac_try;;
6401 esac
6402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6403 $as_echo "$ac_try_echo") >&5
6404 (eval "$ac_compile") 2>conftest.er1
6405 ac_status=$?
6406 grep -v '^ *+' conftest.er1 >conftest.err
6407 rm -f conftest.er1
6408 cat conftest.err >&5
6409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } && {
6411 test -z "$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6413 } && test -s conftest.$ac_objext; then
6414 ac_header_compiler=yes
6415 else
6416 $as_echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6419 ac_header_compiler=no
6422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6423 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6424 $as_echo "$ac_header_compiler" >&6; }
6426 # Is the header present?
6427 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6428 $as_echo_n "checking $ac_header presence... " >&6; }
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h. */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 #include <$ac_header>
6436 _ACEOF
6437 if { (ac_try="$ac_cpp conftest.$ac_ext"
6438 case "(($ac_try" in
6439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6441 esac
6442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6443 $as_echo "$ac_try_echo") >&5
6444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6445 ac_status=$?
6446 grep -v '^ *+' conftest.er1 >conftest.err
6447 rm -f conftest.er1
6448 cat conftest.err >&5
6449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6450 (exit $ac_status); } >/dev/null && {
6451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6452 test ! -s conftest.err
6453 }; then
6454 ac_header_preproc=yes
6455 else
6456 $as_echo "$as_me: failed program was:" >&5
6457 sed 's/^/| /' conftest.$ac_ext >&5
6459 ac_header_preproc=no
6462 rm -f conftest.err conftest.$ac_ext
6463 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6464 $as_echo "$ac_header_preproc" >&6; }
6466 # So? What about this header?
6467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6468 yes:no: )
6469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6470 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6472 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6473 ac_header_preproc=yes
6475 no:yes:* )
6476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6477 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6479 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6480 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6481 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6482 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6483 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6484 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6485 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6486 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6487 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6490 esac
6491 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6492 $as_echo_n "checking for $ac_header... " >&6; }
6493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6494 $as_echo_n "(cached) " >&6
6495 else
6496 eval "$as_ac_Header=\$ac_header_preproc"
6498 ac_res=`eval 'as_val=${'$as_ac_Header'}
6499 $as_echo "$as_val"'`
6500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6501 $as_echo "$ac_res" >&6; }
6504 if test `eval 'as_val=${'$as_ac_Header'}
6505 $as_echo "$as_val"'` = yes; then
6506 cat >>confdefs.h <<_ACEOF
6507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6508 _ACEOF
6512 done
6514 # Emulation library used on NetBSD.
6515 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6516 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6517 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6518 $as_echo_n "(cached) " >&6
6519 else
6520 ac_check_lib_save_LIBS=$LIBS
6521 LIBS="-lossaudio $LIBS"
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6529 /* Override any GCC internal prototype to avoid an error.
6530 Use char because int might match the return type of a GCC
6531 builtin and then its argument prototype would still apply. */
6532 #ifdef __cplusplus
6533 extern "C"
6534 #endif
6535 char _oss_ioctl ();
6537 main ()
6539 return _oss_ioctl ();
6541 return 0;
6543 _ACEOF
6544 rm -f conftest.$ac_objext conftest$ac_exeext
6545 if { (ac_try="$ac_link"
6546 case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552 (eval "$ac_link") 2>conftest.er1
6553 ac_status=$?
6554 grep -v '^ *+' conftest.er1 >conftest.err
6555 rm -f conftest.er1
6556 cat conftest.err >&5
6557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && {
6559 test -z "$ac_c_werror_flag" ||
6560 test ! -s conftest.err
6561 } && test -s conftest$ac_exeext && {
6562 test "$cross_compiling" = yes ||
6563 $as_test_x conftest$ac_exeext
6564 }; then
6565 ac_cv_lib_ossaudio__oss_ioctl=yes
6566 else
6567 $as_echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.$ac_ext >&5
6570 ac_cv_lib_ossaudio__oss_ioctl=no
6573 rm -rf conftest.dSYM
6574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6575 conftest$ac_exeext conftest.$ac_ext
6576 LIBS=$ac_check_lib_save_LIBS
6578 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6579 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6580 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6581 LIBSOUND=-lossaudio
6582 else
6583 LIBSOUND=
6588 ALSA_REQUIRED=1.0.0
6589 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6591 succeeded=no
6593 # Extract the first word of "pkg-config", so it can be a program name with args.
6594 set dummy pkg-config; ac_word=$2
6595 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 $as_echo_n "checking for $ac_word... " >&6; }
6597 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6598 $as_echo_n "(cached) " >&6
6599 else
6600 case $PKG_CONFIG in
6601 [\\/]* | ?:[\\/]*)
6602 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6608 IFS=$as_save_IFS
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6613 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614 break 2
6616 done
6617 done
6618 IFS=$as_save_IFS
6620 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6622 esac
6624 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6625 if test -n "$PKG_CONFIG"; then
6626 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6627 $as_echo "$PKG_CONFIG" >&6; }
6628 else
6629 { $as_echo "$as_me:$LINENO: result: no" >&5
6630 $as_echo "no" >&6; }
6635 if test "$PKG_CONFIG" = "no" ; then
6636 HAVE_ALSA=no
6637 else
6638 PKG_CONFIG_MIN_VERSION=0.9.0
6639 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6640 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6641 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6643 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6644 { $as_echo "$as_me:$LINENO: result: yes" >&5
6645 $as_echo "yes" >&6; }
6646 succeeded=yes
6648 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6649 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6650 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6651 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6652 $as_echo "$ALSA_CFLAGS" >&6; }
6654 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6655 $as_echo_n "checking ALSA_LIBS... " >&6; }
6656 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6657 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6658 $as_echo "$ALSA_LIBS" >&6; }
6659 else
6660 { $as_echo "$as_me:$LINENO: result: no" >&5
6661 $as_echo "no" >&6; }
6662 ALSA_CFLAGS=""
6663 ALSA_LIBS=""
6664 ## If we have a custom action on failure, don't print errors, but
6665 ## do set a variable so people can do so.
6666 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6672 else
6673 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6674 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6678 if test $succeeded = yes; then
6679 HAVE_ALSA=yes
6680 else
6681 HAVE_ALSA=no
6684 if test $HAVE_ALSA = yes; then
6685 SAVE_CFLAGS="$CFLAGS"
6686 SAVE_LDFLAGS="$LDFLAGS"
6687 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6688 LDFLAGS="$ALSA_LIBS $LDFLAGS"
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 #include <asoundlib.h>
6697 main ()
6699 snd_lib_error_set_handler (0);
6701 return 0;
6703 _ACEOF
6704 rm -f conftest.$ac_objext
6705 if { (ac_try="$ac_compile"
6706 case "(($ac_try" in
6707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6709 esac
6710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6711 $as_echo "$ac_try_echo") >&5
6712 (eval "$ac_compile") 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest.$ac_objext; then
6722 emacs_alsa_normal=yes
6723 else
6724 $as_echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6727 emacs_alsa_normal=no
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 if test "$emacs_alsa_normal" != yes; then
6732 cat >conftest.$ac_ext <<_ACEOF
6733 /* confdefs.h. */
6734 _ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <alsa/asoundlib.h>
6740 main ()
6742 snd_lib_error_set_handler (0);
6744 return 0;
6746 _ACEOF
6747 rm -f conftest.$ac_objext
6748 if { (ac_try="$ac_compile"
6749 case "(($ac_try" in
6750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6751 *) ac_try_echo=$ac_try;;
6752 esac
6753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6754 $as_echo "$ac_try_echo") >&5
6755 (eval "$ac_compile") 2>conftest.er1
6756 ac_status=$?
6757 grep -v '^ *+' conftest.er1 >conftest.err
6758 rm -f conftest.er1
6759 cat conftest.err >&5
6760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6761 (exit $ac_status); } && {
6762 test -z "$ac_c_werror_flag" ||
6763 test ! -s conftest.err
6764 } && test -s conftest.$ac_objext; then
6765 emacs_alsa_subdir=yes
6766 else
6767 $as_echo "$as_me: failed program was:" >&5
6768 sed 's/^/| /' conftest.$ac_ext >&5
6770 emacs_alsa_subdir=no
6773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774 if test "$emacs_alsa_subdir" != yes; then
6775 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6776 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6777 { (exit 1); exit 1; }; }
6779 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6782 CFLAGS="$SAVE_CFLAGS"
6783 LDFLAGS="$SAVE_LDFLAGS"
6784 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6785 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6787 cat >>confdefs.h <<\_ACEOF
6788 #define HAVE_ALSA 1
6789 _ACEOF
6820 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6821 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6822 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6823 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6824 sys/utsname.h pwd.h utmp.h
6826 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6829 $as_echo_n "checking for $ac_header... " >&6; }
6830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6831 $as_echo_n "(cached) " >&6
6833 ac_res=`eval 'as_val=${'$as_ac_Header'}
6834 $as_echo "$as_val"'`
6835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6836 $as_echo "$ac_res" >&6; }
6837 else
6838 # Is the header compilable?
6839 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6840 $as_echo_n "checking $ac_header usability... " >&6; }
6841 cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h. */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 $ac_includes_default
6848 #include <$ac_header>
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (ac_try="$ac_compile"
6852 case "(($ac_try" in
6853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854 *) ac_try_echo=$ac_try;;
6855 esac
6856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6857 $as_echo "$ac_try_echo") >&5
6858 (eval "$ac_compile") 2>conftest.er1
6859 ac_status=$?
6860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
6863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } && {
6865 test -z "$ac_c_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest.$ac_objext; then
6868 ac_header_compiler=yes
6869 else
6870 $as_echo "$as_me: failed program was:" >&5
6871 sed 's/^/| /' conftest.$ac_ext >&5
6873 ac_header_compiler=no
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6878 $as_echo "$ac_header_compiler" >&6; }
6880 # Is the header present?
6881 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6882 $as_echo_n "checking $ac_header presence... " >&6; }
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 #include <$ac_header>
6890 _ACEOF
6891 if { (ac_try="$ac_cpp conftest.$ac_ext"
6892 case "(($ac_try" in
6893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6894 *) ac_try_echo=$ac_try;;
6895 esac
6896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6897 $as_echo "$ac_try_echo") >&5
6898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6899 ac_status=$?
6900 grep -v '^ *+' conftest.er1 >conftest.err
6901 rm -f conftest.er1
6902 cat conftest.err >&5
6903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); } >/dev/null && {
6905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6906 test ! -s conftest.err
6907 }; then
6908 ac_header_preproc=yes
6909 else
6910 $as_echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6913 ac_header_preproc=no
6916 rm -f conftest.err conftest.$ac_ext
6917 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6918 $as_echo "$ac_header_preproc" >&6; }
6920 # So? What about this header?
6921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6922 yes:no: )
6923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6924 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6926 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6927 ac_header_preproc=yes
6929 no:yes:* )
6930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6931 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6933 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6935 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6937 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6939 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6941 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6944 esac
6945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6946 $as_echo_n "checking for $ac_header... " >&6; }
6947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6948 $as_echo_n "(cached) " >&6
6949 else
6950 eval "$as_ac_Header=\$ac_header_preproc"
6952 ac_res=`eval 'as_val=${'$as_ac_Header'}
6953 $as_echo "$as_val"'`
6954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6955 $as_echo "$ac_res" >&6; }
6958 if test `eval 'as_val=${'$as_ac_Header'}
6959 $as_echo "$as_val"'` = yes; then
6960 cat >>confdefs.h <<_ACEOF
6961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6962 _ACEOF
6966 done
6969 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6970 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6971 cat >conftest.$ac_ext <<_ACEOF
6972 /* confdefs.h. */
6973 _ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6977 #include <sys/personality.h>
6979 main ()
6981 personality (PER_LINUX32)
6983 return 0;
6985 _ACEOF
6986 rm -f conftest.$ac_objext
6987 if { (ac_try="$ac_compile"
6988 case "(($ac_try" in
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6991 esac
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 emacs_cv_personality_linux32=yes
7005 else
7006 $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 emacs_cv_personality_linux32=no
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
7014 $as_echo "$emacs_cv_personality_linux32" >&6; }
7016 if test $emacs_cv_personality_linux32 = yes; then
7018 cat >>confdefs.h <<\_ACEOF
7019 #define HAVE_PERSONALITY_LINUX32 1
7020 _ACEOF
7025 for ac_header in term.h
7027 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7029 $as_echo_n "checking for $ac_header... " >&6; }
7030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7031 $as_echo_n "(cached) " >&6
7032 else
7033 cat >conftest.$ac_ext <<_ACEOF
7034 /* confdefs.h. */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h. */
7039 #include <$ac_header>
7040 _ACEOF
7041 if { (ac_try="$ac_cpp conftest.$ac_ext"
7042 case "(($ac_try" in
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7045 esac
7046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7047 $as_echo "$ac_try_echo") >&5
7048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7049 ac_status=$?
7050 grep -v '^ *+' conftest.er1 >conftest.err
7051 rm -f conftest.er1
7052 cat conftest.err >&5
7053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); } >/dev/null && {
7055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7056 test ! -s conftest.err
7057 }; then
7058 eval "$as_ac_Header=yes"
7059 else
7060 $as_echo "$as_me: failed program was:" >&5
7061 sed 's/^/| /' conftest.$ac_ext >&5
7063 eval "$as_ac_Header=no"
7066 rm -f conftest.err conftest.$ac_ext
7068 ac_res=`eval 'as_val=${'$as_ac_Header'}
7069 $as_echo "$as_val"'`
7070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7071 $as_echo "$ac_res" >&6; }
7072 if test `eval 'as_val=${'$as_ac_Header'}
7073 $as_echo "$as_val"'` = yes; then
7074 cat >>confdefs.h <<_ACEOF
7075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7076 _ACEOF
7080 done
7082 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7083 $as_echo_n "checking for ANSI C header files... " >&6; }
7084 if test "${ac_cv_header_stdc+set}" = set; then
7085 $as_echo_n "(cached) " >&6
7086 else
7087 cat >conftest.$ac_ext <<_ACEOF
7088 /* confdefs.h. */
7089 _ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7093 #include <stdlib.h>
7094 #include <stdarg.h>
7095 #include <string.h>
7096 #include <float.h>
7099 main ()
7103 return 0;
7105 _ACEOF
7106 rm -f conftest.$ac_objext
7107 if { (ac_try="$ac_compile"
7108 case "(($ac_try" in
7109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7110 *) ac_try_echo=$ac_try;;
7111 esac
7112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7113 $as_echo "$ac_try_echo") >&5
7114 (eval "$ac_compile") 2>conftest.er1
7115 ac_status=$?
7116 grep -v '^ *+' conftest.er1 >conftest.err
7117 rm -f conftest.er1
7118 cat conftest.err >&5
7119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } && {
7121 test -z "$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7123 } && test -s conftest.$ac_objext; then
7124 ac_cv_header_stdc=yes
7125 else
7126 $as_echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.$ac_ext >&5
7129 ac_cv_header_stdc=no
7132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134 if test $ac_cv_header_stdc = yes; then
7135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7136 cat >conftest.$ac_ext <<_ACEOF
7137 /* confdefs.h. */
7138 _ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142 #include <string.h>
7144 _ACEOF
7145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7146 $EGREP "memchr" >/dev/null 2>&1; then
7148 else
7149 ac_cv_header_stdc=no
7151 rm -f conftest*
7155 if test $ac_cv_header_stdc = yes; then
7156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7157 cat >conftest.$ac_ext <<_ACEOF
7158 /* confdefs.h. */
7159 _ACEOF
7160 cat confdefs.h >>conftest.$ac_ext
7161 cat >>conftest.$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7163 #include <stdlib.h>
7165 _ACEOF
7166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7167 $EGREP "free" >/dev/null 2>&1; then
7169 else
7170 ac_cv_header_stdc=no
7172 rm -f conftest*
7176 if test $ac_cv_header_stdc = yes; then
7177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7178 if test "$cross_compiling" = yes; then
7180 else
7181 cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h. */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7187 #include <ctype.h>
7188 #include <stdlib.h>
7189 #if ((' ' & 0x0FF) == 0x020)
7190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7192 #else
7193 # define ISLOWER(c) \
7194 (('a' <= (c) && (c) <= 'i') \
7195 || ('j' <= (c) && (c) <= 'r') \
7196 || ('s' <= (c) && (c) <= 'z'))
7197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7198 #endif
7200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7202 main ()
7204 int i;
7205 for (i = 0; i < 256; i++)
7206 if (XOR (islower (i), ISLOWER (i))
7207 || toupper (i) != TOUPPER (i))
7208 return 2;
7209 return 0;
7211 _ACEOF
7212 rm -f conftest$ac_exeext
7213 if { (ac_try="$ac_link"
7214 case "(($ac_try" in
7215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7217 esac
7218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7219 $as_echo "$ac_try_echo") >&5
7220 (eval "$ac_link") 2>&5
7221 ac_status=$?
7222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7224 { (case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227 esac
7228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229 $as_echo "$ac_try_echo") >&5
7230 (eval "$ac_try") 2>&5
7231 ac_status=$?
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7235 else
7236 $as_echo "$as_me: program exited with status $ac_status" >&5
7237 $as_echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7240 ( exit $ac_status )
7241 ac_cv_header_stdc=no
7243 rm -rf conftest.dSYM
7244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7250 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7251 $as_echo "$ac_cv_header_stdc" >&6; }
7252 if test $ac_cv_header_stdc = yes; then
7254 cat >>confdefs.h <<\_ACEOF
7255 #define STDC_HEADERS 1
7256 _ACEOF
7260 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7261 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7262 if test "${ac_cv_header_time+set}" = set; then
7263 $as_echo_n "(cached) " >&6
7264 else
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h. */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 #include <sys/types.h>
7272 #include <sys/time.h>
7273 #include <time.h>
7276 main ()
7278 if ((struct tm *) 0)
7279 return 0;
7281 return 0;
7283 _ACEOF
7284 rm -f conftest.$ac_objext
7285 if { (ac_try="$ac_compile"
7286 case "(($ac_try" in
7287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7289 esac
7290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7291 $as_echo "$ac_try_echo") >&5
7292 (eval "$ac_compile") 2>conftest.er1
7293 ac_status=$?
7294 grep -v '^ *+' conftest.er1 >conftest.err
7295 rm -f conftest.er1
7296 cat conftest.err >&5
7297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); } && {
7299 test -z "$ac_c_werror_flag" ||
7300 test ! -s conftest.err
7301 } && test -s conftest.$ac_objext; then
7302 ac_cv_header_time=yes
7303 else
7304 $as_echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7307 ac_cv_header_time=no
7310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7312 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7313 $as_echo "$ac_cv_header_time" >&6; }
7314 if test $ac_cv_header_time = yes; then
7316 cat >>confdefs.h <<\_ACEOF
7317 #define TIME_WITH_SYS_TIME 1
7318 _ACEOF
7322 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7323 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
7324 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7325 $as_echo_n "(cached) " >&6
7326 else
7327 cat >conftest.$ac_ext <<_ACEOF
7328 /* confdefs.h. */
7329 _ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 $ac_includes_default
7335 main ()
7337 #ifndef sys_siglist
7338 (void) sys_siglist;
7339 #endif
7342 return 0;
7344 _ACEOF
7345 rm -f conftest.$ac_objext
7346 if { (ac_try="$ac_compile"
7347 case "(($ac_try" in
7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349 *) ac_try_echo=$ac_try;;
7350 esac
7351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7352 $as_echo "$ac_try_echo") >&5
7353 (eval "$ac_compile") 2>conftest.er1
7354 ac_status=$?
7355 grep -v '^ *+' conftest.er1 >conftest.err
7356 rm -f conftest.er1
7357 cat conftest.err >&5
7358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } && {
7360 test -z "$ac_c_werror_flag" ||
7361 test ! -s conftest.err
7362 } && test -s conftest.$ac_objext; then
7363 ac_cv_have_decl_sys_siglist=yes
7364 else
7365 $as_echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7368 ac_cv_have_decl_sys_siglist=no
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7374 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7375 if test $ac_cv_have_decl_sys_siglist = yes; then
7377 cat >>confdefs.h <<_ACEOF
7378 #define HAVE_DECL_SYS_SIGLIST 1
7379 _ACEOF
7382 else
7383 cat >>confdefs.h <<_ACEOF
7384 #define HAVE_DECL_SYS_SIGLIST 0
7385 _ACEOF
7391 if test $ac_cv_have_decl_sys_siglist != yes; then
7392 # For Tru64, at least:
7393 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7394 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
7395 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7396 $as_echo_n "(cached) " >&6
7397 else
7398 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 $ac_includes_default
7406 main ()
7408 #ifndef __sys_siglist
7409 (void) __sys_siglist;
7410 #endif
7413 return 0;
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (ac_try="$ac_compile"
7418 case "(($ac_try" in
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7421 esac
7422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7423 $as_echo "$ac_try_echo") >&5
7424 (eval "$ac_compile") 2>conftest.er1
7425 ac_status=$?
7426 grep -v '^ *+' conftest.er1 >conftest.err
7427 rm -f conftest.er1
7428 cat conftest.err >&5
7429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7430 (exit $ac_status); } && {
7431 test -z "$ac_c_werror_flag" ||
7432 test ! -s conftest.err
7433 } && test -s conftest.$ac_objext; then
7434 ac_cv_have_decl___sys_siglist=yes
7435 else
7436 $as_echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7439 ac_cv_have_decl___sys_siglist=no
7442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7444 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7445 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7446 if test $ac_cv_have_decl___sys_siglist = yes; then
7448 cat >>confdefs.h <<_ACEOF
7449 #define HAVE_DECL___SYS_SIGLIST 1
7450 _ACEOF
7453 else
7454 cat >>confdefs.h <<_ACEOF
7455 #define HAVE_DECL___SYS_SIGLIST 0
7456 _ACEOF
7462 if test $ac_cv_have_decl___sys_siglist = yes; then
7464 cat >>confdefs.h <<\_ACEOF
7465 #define sys_siglist __sys_siglist
7466 _ACEOF
7470 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7471 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7472 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7473 $as_echo_n "(cached) " >&6
7474 else
7475 cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h. */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 #include <sys/types.h>
7482 #include <sys/wait.h>
7483 #ifndef WEXITSTATUS
7484 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7485 #endif
7486 #ifndef WIFEXITED
7487 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7488 #endif
7491 main ()
7493 int s;
7494 wait (&s);
7495 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7497 return 0;
7499 _ACEOF
7500 rm -f conftest.$ac_objext
7501 if { (ac_try="$ac_compile"
7502 case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505 esac
7506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7507 $as_echo "$ac_try_echo") >&5
7508 (eval "$ac_compile") 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest.$ac_objext; then
7518 ac_cv_header_sys_wait_h=yes
7519 else
7520 $as_echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7523 ac_cv_header_sys_wait_h=no
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7528 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7529 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7530 if test $ac_cv_header_sys_wait_h = yes; then
7532 cat >>confdefs.h <<\_ACEOF
7533 #define HAVE_SYS_WAIT_H 1
7534 _ACEOF
7539 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7540 $as_echo_n "checking for struct utimbuf... " >&6; }
7541 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7542 $as_echo_n "(cached) " >&6
7543 else
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h. */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 #ifdef TIME_WITH_SYS_TIME
7551 #include <sys/time.h>
7552 #include <time.h>
7553 #else
7554 #ifdef HAVE_SYS_TIME_H
7555 #include <sys/time.h>
7556 #else
7557 #include <time.h>
7558 #endif
7559 #endif
7560 #ifdef HAVE_UTIME_H
7561 #include <utime.h>
7562 #endif
7564 main ()
7566 static struct utimbuf x; x.actime = x.modtime;
7568 return 0;
7570 _ACEOF
7571 rm -f conftest.$ac_objext
7572 if { (ac_try="$ac_compile"
7573 case "(($ac_try" in
7574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575 *) ac_try_echo=$ac_try;;
7576 esac
7577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7578 $as_echo "$ac_try_echo") >&5
7579 (eval "$ac_compile") 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest.$ac_objext; then
7589 emacs_cv_struct_utimbuf=yes
7590 else
7591 $as_echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7594 emacs_cv_struct_utimbuf=no
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7599 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7600 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7601 if test $emacs_cv_struct_utimbuf = yes; then
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_STRUCT_UTIMBUF 1
7605 _ACEOF
7609 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7610 $as_echo_n "checking return type of signal handlers... " >&6; }
7611 if test "${ac_cv_type_signal+set}" = set; then
7612 $as_echo_n "(cached) " >&6
7613 else
7614 cat >conftest.$ac_ext <<_ACEOF
7615 /* confdefs.h. */
7616 _ACEOF
7617 cat confdefs.h >>conftest.$ac_ext
7618 cat >>conftest.$ac_ext <<_ACEOF
7619 /* end confdefs.h. */
7620 #include <sys/types.h>
7621 #include <signal.h>
7624 main ()
7626 return *(signal (0, 0)) (0) == 1;
7628 return 0;
7630 _ACEOF
7631 rm -f conftest.$ac_objext
7632 if { (ac_try="$ac_compile"
7633 case "(($ac_try" in
7634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7635 *) ac_try_echo=$ac_try;;
7636 esac
7637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7638 $as_echo "$ac_try_echo") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
7649 ac_cv_type_signal=int
7650 else
7651 $as_echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7654 ac_cv_type_signal=void
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7660 $as_echo "$ac_cv_type_signal" >&6; }
7662 cat >>confdefs.h <<_ACEOF
7663 #define RETSIGTYPE $ac_cv_type_signal
7664 _ACEOF
7668 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
7669 $as_echo_n "checking for speed_t... " >&6; }
7670 if test "${emacs_cv_speed_t+set}" = set; then
7671 $as_echo_n "(cached) " >&6
7672 else
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 #include <termios.h>
7681 main ()
7683 speed_t x = 1;
7685 return 0;
7687 _ACEOF
7688 rm -f conftest.$ac_objext
7689 if { (ac_try="$ac_compile"
7690 case "(($ac_try" in
7691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7693 esac
7694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7695 $as_echo "$ac_try_echo") >&5
7696 (eval "$ac_compile") 2>conftest.er1
7697 ac_status=$?
7698 grep -v '^ *+' conftest.er1 >conftest.err
7699 rm -f conftest.er1
7700 cat conftest.err >&5
7701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest.$ac_objext; then
7706 emacs_cv_speed_t=yes
7707 else
7708 $as_echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7711 emacs_cv_speed_t=no
7714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7716 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7717 $as_echo "$emacs_cv_speed_t" >&6; }
7718 if test $emacs_cv_speed_t = yes; then
7720 cat >>confdefs.h <<\_ACEOF
7721 #define HAVE_SPEED_T 1
7722 _ACEOF
7726 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7727 $as_echo_n "checking for struct timeval... " >&6; }
7728 if test "${emacs_cv_struct_timeval+set}" = set; then
7729 $as_echo_n "(cached) " >&6
7730 else
7731 cat >conftest.$ac_ext <<_ACEOF
7732 /* confdefs.h. */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */
7737 #ifdef TIME_WITH_SYS_TIME
7738 #include <sys/time.h>
7739 #include <time.h>
7740 #else
7741 #ifdef HAVE_SYS_TIME_H
7742 #include <sys/time.h>
7743 #else
7744 #include <time.h>
7745 #endif
7746 #endif
7748 main ()
7750 static struct timeval x; x.tv_sec = x.tv_usec;
7752 return 0;
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7757 case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763 (eval "$ac_compile") 2>conftest.er1
7764 ac_status=$?
7765 grep -v '^ *+' conftest.er1 >conftest.err
7766 rm -f conftest.er1
7767 cat conftest.err >&5
7768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } && {
7770 test -z "$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 } && test -s conftest.$ac_objext; then
7773 emacs_cv_struct_timeval=yes
7774 else
7775 $as_echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7778 emacs_cv_struct_timeval=no
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7784 $as_echo "$emacs_cv_struct_timeval" >&6; }
7785 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7786 if test $emacs_cv_struct_timeval = yes; then
7788 cat >>confdefs.h <<\_ACEOF
7789 #define HAVE_TIMEVAL 1
7790 _ACEOF
7794 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7795 $as_echo_n "checking for struct exception... " >&6; }
7796 if test "${emacs_cv_struct_exception+set}" = set; then
7797 $as_echo_n "(cached) " >&6
7798 else
7799 cat >conftest.$ac_ext <<_ACEOF
7800 /* confdefs.h. */
7801 _ACEOF
7802 cat confdefs.h >>conftest.$ac_ext
7803 cat >>conftest.$ac_ext <<_ACEOF
7804 /* end confdefs.h. */
7805 #include <math.h>
7807 main ()
7809 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7811 return 0;
7813 _ACEOF
7814 rm -f conftest.$ac_objext
7815 if { (ac_try="$ac_compile"
7816 case "(($ac_try" in
7817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7818 *) ac_try_echo=$ac_try;;
7819 esac
7820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7821 $as_echo "$ac_try_echo") >&5
7822 (eval "$ac_compile") 2>conftest.er1
7823 ac_status=$?
7824 grep -v '^ *+' conftest.er1 >conftest.err
7825 rm -f conftest.er1
7826 cat conftest.err >&5
7827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } && {
7829 test -z "$ac_c_werror_flag" ||
7830 test ! -s conftest.err
7831 } && test -s conftest.$ac_objext; then
7832 emacs_cv_struct_exception=yes
7833 else
7834 $as_echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7837 emacs_cv_struct_exception=no
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7842 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7843 $as_echo "$emacs_cv_struct_exception" >&6; }
7844 HAVE_EXCEPTION=$emacs_cv_struct_exception
7845 if test $emacs_cv_struct_exception != yes; then
7847 cat >>confdefs.h <<\_ACEOF
7848 #define NO_MATHERR 1
7849 _ACEOF
7854 for ac_header in sys/socket.h
7856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7858 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7859 $as_echo_n "checking for $ac_header... " >&6; }
7860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7861 $as_echo_n "(cached) " >&6
7863 ac_res=`eval 'as_val=${'$as_ac_Header'}
7864 $as_echo "$as_val"'`
7865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7866 $as_echo "$ac_res" >&6; }
7867 else
7868 # Is the header compilable?
7869 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7870 $as_echo_n "checking $ac_header usability... " >&6; }
7871 cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h. */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7877 $ac_includes_default
7878 #include <$ac_header>
7879 _ACEOF
7880 rm -f conftest.$ac_objext
7881 if { (ac_try="$ac_compile"
7882 case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885 esac
7886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7887 $as_echo "$ac_try_echo") >&5
7888 (eval "$ac_compile") 2>conftest.er1
7889 ac_status=$?
7890 grep -v '^ *+' conftest.er1 >conftest.err
7891 rm -f conftest.er1
7892 cat conftest.err >&5
7893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } && {
7895 test -z "$ac_c_werror_flag" ||
7896 test ! -s conftest.err
7897 } && test -s conftest.$ac_objext; then
7898 ac_header_compiler=yes
7899 else
7900 $as_echo "$as_me: failed program was:" >&5
7901 sed 's/^/| /' conftest.$ac_ext >&5
7903 ac_header_compiler=no
7906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7907 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7908 $as_echo "$ac_header_compiler" >&6; }
7910 # Is the header present?
7911 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7912 $as_echo_n "checking $ac_header presence... " >&6; }
7913 cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h. */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7919 #include <$ac_header>
7920 _ACEOF
7921 if { (ac_try="$ac_cpp conftest.$ac_ext"
7922 case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7925 esac
7926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7927 $as_echo "$ac_try_echo") >&5
7928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } >/dev/null && {
7935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 }; then
7938 ac_header_preproc=yes
7939 else
7940 $as_echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 ac_header_preproc=no
7946 rm -f conftest.err conftest.$ac_ext
7947 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7948 $as_echo "$ac_header_preproc" >&6; }
7950 # So? What about this header?
7951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7952 yes:no: )
7953 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7954 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7956 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7957 ac_header_preproc=yes
7959 no:yes:* )
7960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7961 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7963 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7965 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7967 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7969 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7971 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7974 esac
7975 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7976 $as_echo_n "checking for $ac_header... " >&6; }
7977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7978 $as_echo_n "(cached) " >&6
7979 else
7980 eval "$as_ac_Header=\$ac_header_preproc"
7982 ac_res=`eval 'as_val=${'$as_ac_Header'}
7983 $as_echo "$as_val"'`
7984 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7985 $as_echo "$ac_res" >&6; }
7988 if test `eval 'as_val=${'$as_ac_Header'}
7989 $as_echo "$as_val"'` = yes; then
7990 cat >>confdefs.h <<_ACEOF
7991 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7992 _ACEOF
7996 done
7999 for ac_header in net/if.h
8001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8002 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8003 $as_echo_n "checking for $ac_header... " >&6; }
8004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8005 $as_echo_n "(cached) " >&6
8006 else
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h. */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 $ac_includes_default
8014 #if HAVE_SYS_SOCKET_H
8015 #include <sys/socket.h>
8016 #endif
8018 #include <$ac_header>
8019 _ACEOF
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8022 case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025 esac
8026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8027 $as_echo "$ac_try_echo") >&5
8028 (eval "$ac_compile") 2>conftest.er1
8029 ac_status=$?
8030 grep -v '^ *+' conftest.er1 >conftest.err
8031 rm -f conftest.er1
8032 cat conftest.err >&5
8033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); } && {
8035 test -z "$ac_c_werror_flag" ||
8036 test ! -s conftest.err
8037 } && test -s conftest.$ac_objext; then
8038 eval "$as_ac_Header=yes"
8039 else
8040 $as_echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8043 eval "$as_ac_Header=no"
8046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8048 ac_res=`eval 'as_val=${'$as_ac_Header'}
8049 $as_echo "$as_val"'`
8050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8051 $as_echo "$ac_res" >&6; }
8052 if test `eval 'as_val=${'$as_ac_Header'}
8053 $as_echo "$as_val"'` = yes; then
8054 cat >>confdefs.h <<_ACEOF
8055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8056 _ACEOF
8060 done
8063 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8064 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
8065 if test "${ac_cv_struct_tm+set}" = set; then
8066 $as_echo_n "(cached) " >&6
8067 else
8068 cat >conftest.$ac_ext <<_ACEOF
8069 /* confdefs.h. */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */
8074 #include <sys/types.h>
8075 #include <time.h>
8078 main ()
8080 struct tm tm;
8081 int *p = &tm.tm_sec;
8082 return !p;
8084 return 0;
8086 _ACEOF
8087 rm -f conftest.$ac_objext
8088 if { (ac_try="$ac_compile"
8089 case "(($ac_try" in
8090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8091 *) ac_try_echo=$ac_try;;
8092 esac
8093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8094 $as_echo "$ac_try_echo") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8096 ac_status=$?
8097 grep -v '^ *+' conftest.er1 >conftest.err
8098 rm -f conftest.er1
8099 cat conftest.err >&5
8100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && {
8102 test -z "$ac_c_werror_flag" ||
8103 test ! -s conftest.err
8104 } && test -s conftest.$ac_objext; then
8105 ac_cv_struct_tm=time.h
8106 else
8107 $as_echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 ac_cv_struct_tm=sys/time.h
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8116 $as_echo "$ac_cv_struct_tm" >&6; }
8117 if test $ac_cv_struct_tm = sys/time.h; then
8119 cat >>confdefs.h <<\_ACEOF
8120 #define TM_IN_SYS_TIME 1
8121 _ACEOF
8125 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8126 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8127 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8128 $as_echo_n "(cached) " >&6
8129 else
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h. */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 #include <sys/types.h>
8137 #include <$ac_cv_struct_tm>
8141 main ()
8143 static struct tm ac_aggr;
8144 if (ac_aggr.tm_zone)
8145 return 0;
8147 return 0;
8149 _ACEOF
8150 rm -f conftest.$ac_objext
8151 if { (ac_try="$ac_compile"
8152 case "(($ac_try" in
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8155 esac
8156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8157 $as_echo "$ac_try_echo") >&5
8158 (eval "$ac_compile") 2>conftest.er1
8159 ac_status=$?
8160 grep -v '^ *+' conftest.er1 >conftest.err
8161 rm -f conftest.er1
8162 cat conftest.err >&5
8163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && {
8165 test -z "$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8167 } && test -s conftest.$ac_objext; then
8168 ac_cv_member_struct_tm_tm_zone=yes
8169 else
8170 $as_echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 cat >conftest.$ac_ext <<_ACEOF
8174 /* confdefs.h. */
8175 _ACEOF
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 #include <sys/types.h>
8180 #include <$ac_cv_struct_tm>
8184 main ()
8186 static struct tm ac_aggr;
8187 if (sizeof ac_aggr.tm_zone)
8188 return 0;
8190 return 0;
8192 _ACEOF
8193 rm -f conftest.$ac_objext
8194 if { (ac_try="$ac_compile"
8195 case "(($ac_try" in
8196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197 *) ac_try_echo=$ac_try;;
8198 esac
8199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8200 $as_echo "$ac_try_echo") >&5
8201 (eval "$ac_compile") 2>conftest.er1
8202 ac_status=$?
8203 grep -v '^ *+' conftest.er1 >conftest.err
8204 rm -f conftest.er1
8205 cat conftest.err >&5
8206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); } && {
8208 test -z "$ac_c_werror_flag" ||
8209 test ! -s conftest.err
8210 } && test -s conftest.$ac_objext; then
8211 ac_cv_member_struct_tm_tm_zone=yes
8212 else
8213 $as_echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8216 ac_cv_member_struct_tm_tm_zone=no
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8225 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8226 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8228 cat >>confdefs.h <<_ACEOF
8229 #define HAVE_STRUCT_TM_TM_ZONE 1
8230 _ACEOF
8235 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8237 cat >>confdefs.h <<\_ACEOF
8238 #define HAVE_TM_ZONE 1
8239 _ACEOF
8241 else
8242 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8243 $as_echo_n "checking whether tzname is declared... " >&6; }
8244 if test "${ac_cv_have_decl_tzname+set}" = set; then
8245 $as_echo_n "(cached) " >&6
8246 else
8247 cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h. */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h. */
8253 #include <time.h>
8256 main ()
8258 #ifndef tzname
8259 (void) tzname;
8260 #endif
8263 return 0;
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8268 case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271 esac
8272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8273 $as_echo "$ac_try_echo") >&5
8274 (eval "$ac_compile") 2>conftest.er1
8275 ac_status=$?
8276 grep -v '^ *+' conftest.er1 >conftest.err
8277 rm -f conftest.er1
8278 cat conftest.err >&5
8279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && {
8281 test -z "$ac_c_werror_flag" ||
8282 test ! -s conftest.err
8283 } && test -s conftest.$ac_objext; then
8284 ac_cv_have_decl_tzname=yes
8285 else
8286 $as_echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8289 ac_cv_have_decl_tzname=no
8292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8295 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8296 if test $ac_cv_have_decl_tzname = yes; then
8298 cat >>confdefs.h <<_ACEOF
8299 #define HAVE_DECL_TZNAME 1
8300 _ACEOF
8303 else
8304 cat >>confdefs.h <<_ACEOF
8305 #define HAVE_DECL_TZNAME 0
8306 _ACEOF
8312 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8313 $as_echo_n "checking for tzname... " >&6; }
8314 if test "${ac_cv_var_tzname+set}" = set; then
8315 $as_echo_n "(cached) " >&6
8316 else
8317 cat >conftest.$ac_ext <<_ACEOF
8318 /* confdefs.h. */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 #include <time.h>
8324 #if !HAVE_DECL_TZNAME
8325 extern char *tzname[];
8326 #endif
8329 main ()
8331 return tzname[0][0];
8333 return 0;
8335 _ACEOF
8336 rm -f conftest.$ac_objext conftest$ac_exeext
8337 if { (ac_try="$ac_link"
8338 case "(($ac_try" in
8339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8340 *) ac_try_echo=$ac_try;;
8341 esac
8342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8343 $as_echo "$ac_try_echo") >&5
8344 (eval "$ac_link") 2>conftest.er1
8345 ac_status=$?
8346 grep -v '^ *+' conftest.er1 >conftest.err
8347 rm -f conftest.er1
8348 cat conftest.err >&5
8349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8350 (exit $ac_status); } && {
8351 test -z "$ac_c_werror_flag" ||
8352 test ! -s conftest.err
8353 } && test -s conftest$ac_exeext && {
8354 test "$cross_compiling" = yes ||
8355 $as_test_x conftest$ac_exeext
8356 }; then
8357 ac_cv_var_tzname=yes
8358 else
8359 $as_echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.$ac_ext >&5
8362 ac_cv_var_tzname=no
8365 rm -rf conftest.dSYM
8366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8367 conftest$ac_exeext conftest.$ac_ext
8369 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8370 $as_echo "$ac_cv_var_tzname" >&6; }
8371 if test $ac_cv_var_tzname = yes; then
8373 cat >>confdefs.h <<\_ACEOF
8374 #define HAVE_TZNAME 1
8375 _ACEOF
8380 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8381 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
8382 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8383 $as_echo_n "(cached) " >&6
8384 else
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 #include <time.h>
8394 main ()
8396 static struct tm ac_aggr;
8397 if (ac_aggr.tm_gmtoff)
8398 return 0;
8400 return 0;
8402 _ACEOF
8403 rm -f conftest.$ac_objext
8404 if { (ac_try="$ac_compile"
8405 case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408 esac
8409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8410 $as_echo "$ac_try_echo") >&5
8411 (eval "$ac_compile") 2>conftest.er1
8412 ac_status=$?
8413 grep -v '^ *+' conftest.er1 >conftest.err
8414 rm -f conftest.er1
8415 cat conftest.err >&5
8416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8417 (exit $ac_status); } && {
8418 test -z "$ac_c_werror_flag" ||
8419 test ! -s conftest.err
8420 } && test -s conftest.$ac_objext; then
8421 ac_cv_member_struct_tm_tm_gmtoff=yes
8422 else
8423 $as_echo "$as_me: failed program was:" >&5
8424 sed 's/^/| /' conftest.$ac_ext >&5
8426 cat >conftest.$ac_ext <<_ACEOF
8427 /* confdefs.h. */
8428 _ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 #include <time.h>
8435 main ()
8437 static struct tm ac_aggr;
8438 if (sizeof ac_aggr.tm_gmtoff)
8439 return 0;
8441 return 0;
8443 _ACEOF
8444 rm -f conftest.$ac_objext
8445 if { (ac_try="$ac_compile"
8446 case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449 esac
8450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8451 $as_echo "$ac_try_echo") >&5
8452 (eval "$ac_compile") 2>conftest.er1
8453 ac_status=$?
8454 grep -v '^ *+' conftest.er1 >conftest.err
8455 rm -f conftest.er1
8456 cat conftest.err >&5
8457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); } && {
8459 test -z "$ac_c_werror_flag" ||
8460 test ! -s conftest.err
8461 } && test -s conftest.$ac_objext; then
8462 ac_cv_member_struct_tm_tm_gmtoff=yes
8463 else
8464 $as_echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8467 ac_cv_member_struct_tm_tm_gmtoff=no
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8475 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8476 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8477 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8479 cat >>confdefs.h <<\_ACEOF
8480 #define HAVE_TM_GMTOFF 1
8481 _ACEOF
8485 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8486 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8487 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8488 $as_echo_n "(cached) " >&6
8489 else
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h. */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496 $ac_includes_default
8497 #if HAVE_SYS_SOCKET_H
8498 #include <sys/socket.h>
8499 #endif
8500 #if HAVE_NET_IF_H
8501 #include <net/if.h>
8502 #endif
8505 main ()
8507 static struct ifreq ac_aggr;
8508 if (ac_aggr.ifr_flags)
8509 return 0;
8511 return 0;
8513 _ACEOF
8514 rm -f conftest.$ac_objext
8515 if { (ac_try="$ac_compile"
8516 case "(($ac_try" in
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8519 esac
8520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8521 $as_echo "$ac_try_echo") >&5
8522 (eval "$ac_compile") 2>conftest.er1
8523 ac_status=$?
8524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
8527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } && {
8529 test -z "$ac_c_werror_flag" ||
8530 test ! -s conftest.err
8531 } && test -s conftest.$ac_objext; then
8532 ac_cv_member_struct_ifreq_ifr_flags=yes
8533 else
8534 $as_echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8537 cat >conftest.$ac_ext <<_ACEOF
8538 /* confdefs.h. */
8539 _ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8543 $ac_includes_default
8544 #if HAVE_SYS_SOCKET_H
8545 #include <sys/socket.h>
8546 #endif
8547 #if HAVE_NET_IF_H
8548 #include <net/if.h>
8549 #endif
8552 main ()
8554 static struct ifreq ac_aggr;
8555 if (sizeof ac_aggr.ifr_flags)
8556 return 0;
8558 return 0;
8560 _ACEOF
8561 rm -f conftest.$ac_objext
8562 if { (ac_try="$ac_compile"
8563 case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566 esac
8567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8568 $as_echo "$ac_try_echo") >&5
8569 (eval "$ac_compile") 2>conftest.er1
8570 ac_status=$?
8571 grep -v '^ *+' conftest.er1 >conftest.err
8572 rm -f conftest.er1
8573 cat conftest.err >&5
8574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && {
8576 test -z "$ac_c_werror_flag" ||
8577 test ! -s conftest.err
8578 } && test -s conftest.$ac_objext; then
8579 ac_cv_member_struct_ifreq_ifr_flags=yes
8580 else
8581 $as_echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.$ac_ext >&5
8584 ac_cv_member_struct_ifreq_ifr_flags=no
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8593 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8594 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8596 cat >>confdefs.h <<_ACEOF
8597 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8598 _ACEOF
8602 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8603 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8604 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8605 $as_echo_n "(cached) " >&6
8606 else
8607 cat >conftest.$ac_ext <<_ACEOF
8608 /* confdefs.h. */
8609 _ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8613 $ac_includes_default
8614 #if HAVE_SYS_SOCKET_H
8615 #include <sys/socket.h>
8616 #endif
8617 #if HAVE_NET_IF_H
8618 #include <net/if.h>
8619 #endif
8622 main ()
8624 static struct ifreq ac_aggr;
8625 if (ac_aggr.ifr_hwaddr)
8626 return 0;
8628 return 0;
8630 _ACEOF
8631 rm -f conftest.$ac_objext
8632 if { (ac_try="$ac_compile"
8633 case "(($ac_try" in
8634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8636 esac
8637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8638 $as_echo "$ac_try_echo") >&5
8639 (eval "$ac_compile") 2>conftest.er1
8640 ac_status=$?
8641 grep -v '^ *+' conftest.er1 >conftest.err
8642 rm -f conftest.er1
8643 cat conftest.err >&5
8644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } && {
8646 test -z "$ac_c_werror_flag" ||
8647 test ! -s conftest.err
8648 } && test -s conftest.$ac_objext; then
8649 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8650 else
8651 $as_echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660 $ac_includes_default
8661 #if HAVE_SYS_SOCKET_H
8662 #include <sys/socket.h>
8663 #endif
8664 #if HAVE_NET_IF_H
8665 #include <net/if.h>
8666 #endif
8669 main ()
8671 static struct ifreq ac_aggr;
8672 if (sizeof ac_aggr.ifr_hwaddr)
8673 return 0;
8675 return 0;
8677 _ACEOF
8678 rm -f conftest.$ac_objext
8679 if { (ac_try="$ac_compile"
8680 case "(($ac_try" in
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8683 esac
8684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8685 $as_echo "$ac_try_echo") >&5
8686 (eval "$ac_compile") 2>conftest.er1
8687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && {
8693 test -z "$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8695 } && test -s conftest.$ac_objext; then
8696 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8697 else
8698 $as_echo "$as_me: failed program was:" >&5
8699 sed 's/^/| /' conftest.$ac_ext >&5
8701 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8710 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8711 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8713 cat >>confdefs.h <<_ACEOF
8714 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8715 _ACEOF
8719 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8720 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8721 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8722 $as_echo_n "(cached) " >&6
8723 else
8724 cat >conftest.$ac_ext <<_ACEOF
8725 /* confdefs.h. */
8726 _ACEOF
8727 cat confdefs.h >>conftest.$ac_ext
8728 cat >>conftest.$ac_ext <<_ACEOF
8729 /* end confdefs.h. */
8730 $ac_includes_default
8731 #if HAVE_SYS_SOCKET_H
8732 #include <sys/socket.h>
8733 #endif
8734 #if HAVE_NET_IF_H
8735 #include <net/if.h>
8736 #endif
8739 main ()
8741 static struct ifreq ac_aggr;
8742 if (ac_aggr.ifr_netmask)
8743 return 0;
8745 return 0;
8747 _ACEOF
8748 rm -f conftest.$ac_objext
8749 if { (ac_try="$ac_compile"
8750 case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8753 esac
8754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8755 $as_echo "$ac_try_echo") >&5
8756 (eval "$ac_compile") 2>conftest.er1
8757 ac_status=$?
8758 grep -v '^ *+' conftest.er1 >conftest.err
8759 rm -f conftest.er1
8760 cat conftest.err >&5
8761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } && {
8763 test -z "$ac_c_werror_flag" ||
8764 test ! -s conftest.err
8765 } && test -s conftest.$ac_objext; then
8766 ac_cv_member_struct_ifreq_ifr_netmask=yes
8767 else
8768 $as_echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h. */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8777 $ac_includes_default
8778 #if HAVE_SYS_SOCKET_H
8779 #include <sys/socket.h>
8780 #endif
8781 #if HAVE_NET_IF_H
8782 #include <net/if.h>
8783 #endif
8786 main ()
8788 static struct ifreq ac_aggr;
8789 if (sizeof ac_aggr.ifr_netmask)
8790 return 0;
8792 return 0;
8794 _ACEOF
8795 rm -f conftest.$ac_objext
8796 if { (ac_try="$ac_compile"
8797 case "(($ac_try" in
8798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8799 *) ac_try_echo=$ac_try;;
8800 esac
8801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8802 $as_echo "$ac_try_echo") >&5
8803 (eval "$ac_compile") 2>conftest.er1
8804 ac_status=$?
8805 grep -v '^ *+' conftest.er1 >conftest.err
8806 rm -f conftest.er1
8807 cat conftest.err >&5
8808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } && {
8810 test -z "$ac_c_werror_flag" ||
8811 test ! -s conftest.err
8812 } && test -s conftest.$ac_objext; then
8813 ac_cv_member_struct_ifreq_ifr_netmask=yes
8814 else
8815 $as_echo "$as_me: failed program was:" >&5
8816 sed 's/^/| /' conftest.$ac_ext >&5
8818 ac_cv_member_struct_ifreq_ifr_netmask=no
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8827 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8828 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8830 cat >>confdefs.h <<_ACEOF
8831 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8832 _ACEOF
8836 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8837 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8838 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8839 $as_echo_n "(cached) " >&6
8840 else
8841 cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h. */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847 $ac_includes_default
8848 #if HAVE_SYS_SOCKET_H
8849 #include <sys/socket.h>
8850 #endif
8851 #if HAVE_NET_IF_H
8852 #include <net/if.h>
8853 #endif
8856 main ()
8858 static struct ifreq ac_aggr;
8859 if (ac_aggr.ifr_broadaddr)
8860 return 0;
8862 return 0;
8864 _ACEOF
8865 rm -f conftest.$ac_objext
8866 if { (ac_try="$ac_compile"
8867 case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870 esac
8871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873 (eval "$ac_compile") 2>conftest.er1
8874 ac_status=$?
8875 grep -v '^ *+' conftest.er1 >conftest.err
8876 rm -f conftest.er1
8877 cat conftest.err >&5
8878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_c_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest.$ac_objext; then
8883 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8884 else
8885 $as_echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8888 cat >conftest.$ac_ext <<_ACEOF
8889 /* confdefs.h. */
8890 _ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8894 $ac_includes_default
8895 #if HAVE_SYS_SOCKET_H
8896 #include <sys/socket.h>
8897 #endif
8898 #if HAVE_NET_IF_H
8899 #include <net/if.h>
8900 #endif
8903 main ()
8905 static struct ifreq ac_aggr;
8906 if (sizeof ac_aggr.ifr_broadaddr)
8907 return 0;
8909 return 0;
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (ac_try="$ac_compile"
8914 case "(($ac_try" in
8915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8917 esac
8918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8919 $as_echo "$ac_try_echo") >&5
8920 (eval "$ac_compile") 2>conftest.er1
8921 ac_status=$?
8922 grep -v '^ *+' conftest.er1 >conftest.err
8923 rm -f conftest.er1
8924 cat conftest.err >&5
8925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest.$ac_objext; then
8930 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8931 else
8932 $as_echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8935 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8944 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8945 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8947 cat >>confdefs.h <<_ACEOF
8948 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8949 _ACEOF
8953 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8954 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8955 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8956 $as_echo_n "(cached) " >&6
8957 else
8958 cat >conftest.$ac_ext <<_ACEOF
8959 /* confdefs.h. */
8960 _ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964 $ac_includes_default
8965 #if HAVE_SYS_SOCKET_H
8966 #include <sys/socket.h>
8967 #endif
8968 #if HAVE_NET_IF_H
8969 #include <net/if.h>
8970 #endif
8973 main ()
8975 static struct ifreq ac_aggr;
8976 if (ac_aggr.ifr_addr)
8977 return 0;
8979 return 0;
8981 _ACEOF
8982 rm -f conftest.$ac_objext
8983 if { (ac_try="$ac_compile"
8984 case "(($ac_try" in
8985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8986 *) ac_try_echo=$ac_try;;
8987 esac
8988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8989 $as_echo "$ac_try_echo") >&5
8990 (eval "$ac_compile") 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } && {
8997 test -z "$ac_c_werror_flag" ||
8998 test ! -s conftest.err
8999 } && test -s conftest.$ac_objext; then
9000 ac_cv_member_struct_ifreq_ifr_addr=yes
9001 else
9002 $as_echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 cat >conftest.$ac_ext <<_ACEOF
9006 /* confdefs.h. */
9007 _ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9011 $ac_includes_default
9012 #if HAVE_SYS_SOCKET_H
9013 #include <sys/socket.h>
9014 #endif
9015 #if HAVE_NET_IF_H
9016 #include <net/if.h>
9017 #endif
9020 main ()
9022 static struct ifreq ac_aggr;
9023 if (sizeof ac_aggr.ifr_addr)
9024 return 0;
9026 return 0;
9028 _ACEOF
9029 rm -f conftest.$ac_objext
9030 if { (ac_try="$ac_compile"
9031 case "(($ac_try" in
9032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9034 esac
9035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9036 $as_echo "$ac_try_echo") >&5
9037 (eval "$ac_compile") 2>conftest.er1
9038 ac_status=$?
9039 grep -v '^ *+' conftest.er1 >conftest.err
9040 rm -f conftest.er1
9041 cat conftest.err >&5
9042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); } && {
9044 test -z "$ac_c_werror_flag" ||
9045 test ! -s conftest.err
9046 } && test -s conftest.$ac_objext; then
9047 ac_cv_member_struct_ifreq_ifr_addr=yes
9048 else
9049 $as_echo "$as_me: failed program was:" >&5
9050 sed 's/^/| /' conftest.$ac_ext >&5
9052 ac_cv_member_struct_ifreq_ifr_addr=no
9055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9061 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9062 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9064 cat >>confdefs.h <<_ACEOF
9065 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9066 _ACEOF
9073 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
9074 $as_echo_n "checking for function prototypes... " >&6; }
9075 if test "$ac_cv_prog_cc_c89" != no; then
9076 { $as_echo "$as_me:$LINENO: result: yes" >&5
9077 $as_echo "yes" >&6; }
9079 cat >>confdefs.h <<\_ACEOF
9080 #define PROTOTYPES 1
9081 _ACEOF
9084 cat >>confdefs.h <<\_ACEOF
9085 #define __PROTOTYPES 1
9086 _ACEOF
9088 else
9089 { $as_echo "$as_me:$LINENO: result: no" >&5
9090 $as_echo "no" >&6; }
9093 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
9094 $as_echo_n "checking for working volatile... " >&6; }
9095 if test "${ac_cv_c_volatile+set}" = set; then
9096 $as_echo_n "(cached) " >&6
9097 else
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h. */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h. */
9106 main ()
9109 volatile int x;
9110 int * volatile y = (int *) 0;
9111 return !x && !y;
9113 return 0;
9115 _ACEOF
9116 rm -f conftest.$ac_objext
9117 if { (ac_try="$ac_compile"
9118 case "(($ac_try" in
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9121 esac
9122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9123 $as_echo "$ac_try_echo") >&5
9124 (eval "$ac_compile") 2>conftest.er1
9125 ac_status=$?
9126 grep -v '^ *+' conftest.er1 >conftest.err
9127 rm -f conftest.er1
9128 cat conftest.err >&5
9129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); } && {
9131 test -z "$ac_c_werror_flag" ||
9132 test ! -s conftest.err
9133 } && test -s conftest.$ac_objext; then
9134 ac_cv_c_volatile=yes
9135 else
9136 $as_echo "$as_me: failed program was:" >&5
9137 sed 's/^/| /' conftest.$ac_ext >&5
9139 ac_cv_c_volatile=no
9142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9144 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9145 $as_echo "$ac_cv_c_volatile" >&6; }
9146 if test $ac_cv_c_volatile = no; then
9148 cat >>confdefs.h <<\_ACEOF
9149 #define volatile /**/
9150 _ACEOF
9154 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9155 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9156 if test "${ac_cv_c_const+set}" = set; then
9157 $as_echo_n "(cached) " >&6
9158 else
9159 cat >conftest.$ac_ext <<_ACEOF
9160 /* confdefs.h. */
9161 _ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9167 main ()
9169 /* FIXME: Include the comments suggested by Paul. */
9170 #ifndef __cplusplus
9171 /* Ultrix mips cc rejects this. */
9172 typedef int charset[2];
9173 const charset cs;
9174 /* SunOS 4.1.1 cc rejects this. */
9175 char const *const *pcpcc;
9176 char **ppc;
9177 /* NEC SVR4.0.2 mips cc rejects this. */
9178 struct point {int x, y;};
9179 static struct point const zero = {0,0};
9180 /* AIX XL C 1.02.0.0 rejects this.
9181 It does not let you subtract one const X* pointer from another in
9182 an arm of an if-expression whose if-part is not a constant
9183 expression */
9184 const char *g = "string";
9185 pcpcc = &g + (g ? g-g : 0);
9186 /* HPUX 7.0 cc rejects these. */
9187 ++pcpcc;
9188 ppc = (char**) pcpcc;
9189 pcpcc = (char const *const *) ppc;
9190 { /* SCO 3.2v4 cc rejects this. */
9191 char *t;
9192 char const *s = 0 ? (char *) 0 : (char const *) 0;
9194 *t++ = 0;
9195 if (s) return 0;
9197 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9198 int x[] = {25, 17};
9199 const int *foo = &x[0];
9200 ++foo;
9202 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9203 typedef const int *iptr;
9204 iptr p = 0;
9205 ++p;
9207 { /* AIX XL C 1.02.0.0 rejects this saying
9208 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9209 struct s { int j; const int *ap[3]; };
9210 struct s *b; b->j = 5;
9212 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9213 const int foo = 10;
9214 if (!foo) return 0;
9216 return !cs[0] && !zero.x;
9217 #endif
9220 return 0;
9222 _ACEOF
9223 rm -f conftest.$ac_objext
9224 if { (ac_try="$ac_compile"
9225 case "(($ac_try" in
9226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9227 *) ac_try_echo=$ac_try;;
9228 esac
9229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9230 $as_echo "$ac_try_echo") >&5
9231 (eval "$ac_compile") 2>conftest.er1
9232 ac_status=$?
9233 grep -v '^ *+' conftest.er1 >conftest.err
9234 rm -f conftest.er1
9235 cat conftest.err >&5
9236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } && {
9238 test -z "$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9240 } && test -s conftest.$ac_objext; then
9241 ac_cv_c_const=yes
9242 else
9243 $as_echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9246 ac_cv_c_const=no
9249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9251 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9252 $as_echo "$ac_cv_c_const" >&6; }
9253 if test $ac_cv_c_const = no; then
9255 cat >>confdefs.h <<\_ACEOF
9256 #define const /**/
9257 _ACEOF
9261 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9262 $as_echo_n "checking for void * support... " >&6; }
9263 if test "${emacs_cv_void_star+set}" = set; then
9264 $as_echo_n "(cached) " >&6
9265 else
9266 cat >conftest.$ac_ext <<_ACEOF
9267 /* confdefs.h. */
9268 _ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9274 main ()
9276 void * foo;
9278 return 0;
9280 _ACEOF
9281 rm -f conftest.$ac_objext
9282 if { (ac_try="$ac_compile"
9283 case "(($ac_try" in
9284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9285 *) ac_try_echo=$ac_try;;
9286 esac
9287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9288 $as_echo "$ac_try_echo") >&5
9289 (eval "$ac_compile") 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } && {
9296 test -z "$ac_c_werror_flag" ||
9297 test ! -s conftest.err
9298 } && test -s conftest.$ac_objext; then
9299 emacs_cv_void_star=yes
9300 else
9301 $as_echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9304 emacs_cv_void_star=no
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9309 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9310 $as_echo "$emacs_cv_void_star" >&6; }
9311 if test $emacs_cv_void_star = yes; then
9312 cat >>confdefs.h <<\_ACEOF
9313 #define POINTER_TYPE void
9314 _ACEOF
9316 else
9317 cat >>confdefs.h <<\_ACEOF
9318 #define POINTER_TYPE char
9319 _ACEOF
9327 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9328 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9329 set x ${MAKE-make}
9330 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9331 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9332 $as_echo_n "(cached) " >&6
9333 else
9334 cat >conftest.make <<\_ACEOF
9335 SHELL = /bin/sh
9336 all:
9337 @echo '@@@%%%=$(MAKE)=@@@%%%'
9338 _ACEOF
9339 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9340 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9341 *@@@%%%=?*=@@@%%%*)
9342 eval ac_cv_prog_make_${ac_make}_set=yes;;
9344 eval ac_cv_prog_make_${ac_make}_set=no;;
9345 esac
9346 rm -f conftest.make
9348 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9349 { $as_echo "$as_me:$LINENO: result: yes" >&5
9350 $as_echo "yes" >&6; }
9351 SET_MAKE=
9352 else
9353 { $as_echo "$as_me:$LINENO: result: no" >&5
9354 $as_echo "no" >&6; }
9355 SET_MAKE="MAKE=${MAKE-make}"
9359 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9360 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
9361 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9362 HAVE_GNU_MAKE=no
9363 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9364 if test "x$testval" != x; then
9365 HAVE_GNU_MAKE=yes
9366 else
9367 ac_enable_autodepend=no
9369 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
9370 $as_echo "$HAVE_GNU_MAKE" >&6; }
9371 if test $HAVE_GNU_MAKE = yes; then
9372 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
9373 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9374 SAVE_CFLAGS="$CFLAGS"
9375 CFLAGS="$CFLAGS -MMD -MF deps.d"
9376 cat >conftest.$ac_ext <<_ACEOF
9377 /* confdefs.h. */
9378 _ACEOF
9379 cat confdefs.h >>conftest.$ac_ext
9380 cat >>conftest.$ac_ext <<_ACEOF
9381 /* end confdefs.h. */
9384 main ()
9388 return 0;
9390 _ACEOF
9391 rm -f conftest.$ac_objext
9392 if { (ac_try="$ac_compile"
9393 case "(($ac_try" in
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9396 esac
9397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399 (eval "$ac_compile") 2>conftest.er1
9400 ac_status=$?
9401 grep -v '^ *+' conftest.er1 >conftest.err
9402 rm -f conftest.er1
9403 cat conftest.err >&5
9404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest.$ac_objext; then
9410 else
9411 $as_echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.$ac_ext >&5
9414 ac_enable_autodepend=no
9417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9418 CFLAGS="$SAVE_CFLAGS"
9419 test -f deps.d || ac_enable_autodepend=no
9420 rm -rf deps.d
9421 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
9422 $as_echo "$ac_enable_autodepend" >&6; }
9424 if test $ac_enable_autodepend = yes; then
9426 cat >>confdefs.h <<\_ACEOF
9427 #define AUTO_DEPEND 1
9428 _ACEOF
9433 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
9434 $as_echo_n "checking for long file names... " >&6; }
9435 if test "${ac_cv_sys_long_file_names+set}" = set; then
9436 $as_echo_n "(cached) " >&6
9437 else
9438 ac_cv_sys_long_file_names=yes
9439 # Test for long file names in all the places we know might matter:
9440 # . the current directory, where building will happen
9441 # $prefix/lib where we will be installing things
9442 # $exec_prefix/lib likewise
9443 # $TMPDIR if set, where it might want to write temporary files
9444 # /tmp where it might want to write temporary files
9445 # /var/tmp likewise
9446 # /usr/tmp likewise
9447 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9448 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9449 # in the usual case where exec_prefix is '${prefix}'.
9450 case $ac_dir in #(
9451 . | /* | ?:[\\/]*) ;; #(
9452 *) continue;;
9453 esac
9454 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9455 ac_xdir=$ac_dir/cf$$
9456 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9457 ac_tf1=$ac_xdir/conftest9012345
9458 ac_tf2=$ac_xdir/conftest9012346
9459 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9460 ac_cv_sys_long_file_names=no
9461 rm -f -r "$ac_xdir" 2>/dev/null
9462 test $ac_cv_sys_long_file_names = no && break
9463 done
9465 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9466 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9467 if test $ac_cv_sys_long_file_names = yes; then
9469 cat >>confdefs.h <<\_ACEOF
9470 #define HAVE_LONG_FILE_NAMES 1
9471 _ACEOF
9476 #### Choose a window system.
9478 { $as_echo "$as_me:$LINENO: checking for X" >&5
9479 $as_echo_n "checking for X... " >&6; }
9482 # Check whether --with-x was given.
9483 if test "${with_x+set}" = set; then
9484 withval=$with_x;
9487 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9488 if test "x$with_x" = xno; then
9489 # The user explicitly disabled X.
9490 have_x=disabled
9491 else
9492 case $x_includes,$x_libraries in #(
9493 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9494 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9495 { (exit 1); exit 1; }; };; #(
9496 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9497 $as_echo_n "(cached) " >&6
9498 else
9499 # One or both of the vars are not set, and there is no cached value.
9500 ac_x_includes=no ac_x_libraries=no
9501 rm -f -r conftest.dir
9502 if mkdir conftest.dir; then
9503 cd conftest.dir
9504 cat >Imakefile <<'_ACEOF'
9505 incroot:
9506 @echo incroot='${INCROOT}'
9507 usrlibdir:
9508 @echo usrlibdir='${USRLIBDIR}'
9509 libdir:
9510 @echo libdir='${LIBDIR}'
9511 _ACEOF
9512 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9513 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9514 for ac_var in incroot usrlibdir libdir; do
9515 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9516 done
9517 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9518 for ac_extension in a so sl dylib la dll; do
9519 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9520 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9521 ac_im_usrlibdir=$ac_im_libdir; break
9523 done
9524 # Screen out bogus values from the imake configuration. They are
9525 # bogus both because they are the default anyway, and because
9526 # using them would break gcc on systems where it needs fixed includes.
9527 case $ac_im_incroot in
9528 /usr/include) ac_x_includes= ;;
9529 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9530 esac
9531 case $ac_im_usrlibdir in
9532 /usr/lib | /lib) ;;
9533 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9534 esac
9536 cd ..
9537 rm -f -r conftest.dir
9540 # Standard set of common directories for X headers.
9541 # Check X11 before X11Rn because it is often a symlink to the current release.
9542 ac_x_header_dirs='
9543 /usr/X11/include
9544 /usr/X11R6/include
9545 /usr/X11R5/include
9546 /usr/X11R4/include
9548 /usr/include/X11
9549 /usr/include/X11R6
9550 /usr/include/X11R5
9551 /usr/include/X11R4
9553 /usr/local/X11/include
9554 /usr/local/X11R6/include
9555 /usr/local/X11R5/include
9556 /usr/local/X11R4/include
9558 /usr/local/include/X11
9559 /usr/local/include/X11R6
9560 /usr/local/include/X11R5
9561 /usr/local/include/X11R4
9563 /usr/X386/include
9564 /usr/x386/include
9565 /usr/XFree86/include/X11
9567 /usr/include
9568 /usr/local/include
9569 /usr/unsupported/include
9570 /usr/athena/include
9571 /usr/local/x11r5/include
9572 /usr/lpp/Xamples/include
9574 /usr/openwin/include
9575 /usr/openwin/share/include'
9577 if test "$ac_x_includes" = no; then
9578 # Guess where to find include files, by looking for Xlib.h.
9579 # First, try using that file with no special directory specified.
9580 cat >conftest.$ac_ext <<_ACEOF
9581 /* confdefs.h. */
9582 _ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 #include <X11/Xlib.h>
9587 _ACEOF
9588 if { (ac_try="$ac_cpp conftest.$ac_ext"
9589 case "(($ac_try" in
9590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9592 esac
9593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9594 $as_echo "$ac_try_echo") >&5
9595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9596 ac_status=$?
9597 grep -v '^ *+' conftest.er1 >conftest.err
9598 rm -f conftest.er1
9599 cat conftest.err >&5
9600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9601 (exit $ac_status); } >/dev/null && {
9602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9603 test ! -s conftest.err
9604 }; then
9605 # We can compile using X headers with no special include directory.
9606 ac_x_includes=
9607 else
9608 $as_echo "$as_me: failed program was:" >&5
9609 sed 's/^/| /' conftest.$ac_ext >&5
9611 for ac_dir in $ac_x_header_dirs; do
9612 if test -r "$ac_dir/X11/Xlib.h"; then
9613 ac_x_includes=$ac_dir
9614 break
9616 done
9619 rm -f conftest.err conftest.$ac_ext
9620 fi # $ac_x_includes = no
9622 if test "$ac_x_libraries" = no; then
9623 # Check for the libraries.
9624 # See if we find them without any special options.
9625 # Don't add to $LIBS permanently.
9626 ac_save_LIBS=$LIBS
9627 LIBS="-lX11 $LIBS"
9628 cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h. */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 #include <X11/Xlib.h>
9636 main ()
9638 XrmInitialize ()
9640 return 0;
9642 _ACEOF
9643 rm -f conftest.$ac_objext conftest$ac_exeext
9644 if { (ac_try="$ac_link"
9645 case "(($ac_try" in
9646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9647 *) ac_try_echo=$ac_try;;
9648 esac
9649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9650 $as_echo "$ac_try_echo") >&5
9651 (eval "$ac_link") 2>conftest.er1
9652 ac_status=$?
9653 grep -v '^ *+' conftest.er1 >conftest.err
9654 rm -f conftest.er1
9655 cat conftest.err >&5
9656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657 (exit $ac_status); } && {
9658 test -z "$ac_c_werror_flag" ||
9659 test ! -s conftest.err
9660 } && test -s conftest$ac_exeext && {
9661 test "$cross_compiling" = yes ||
9662 $as_test_x conftest$ac_exeext
9663 }; then
9664 LIBS=$ac_save_LIBS
9665 # We can link X programs with no special library path.
9666 ac_x_libraries=
9667 else
9668 $as_echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9671 LIBS=$ac_save_LIBS
9672 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9674 # Don't even attempt the hair of trying to link an X program!
9675 for ac_extension in a so sl dylib la dll; do
9676 if test -r "$ac_dir/libX11.$ac_extension"; then
9677 ac_x_libraries=$ac_dir
9678 break 2
9680 done
9681 done
9684 rm -rf conftest.dSYM
9685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9686 conftest$ac_exeext conftest.$ac_ext
9687 fi # $ac_x_libraries = no
9689 case $ac_x_includes,$ac_x_libraries in #(
9690 no,* | *,no | *\'*)
9691 # Didn't find X, or a directory has "'" in its name.
9692 ac_cv_have_x="have_x=no";; #(
9694 # Record where we found X for the cache.
9695 ac_cv_have_x="have_x=yes\
9696 ac_x_includes='$ac_x_includes'\
9697 ac_x_libraries='$ac_x_libraries'"
9698 esac
9700 ;; #(
9701 *) have_x=yes;;
9702 esac
9703 eval "$ac_cv_have_x"
9704 fi # $with_x != no
9706 if test "$have_x" != yes; then
9707 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
9708 $as_echo "$have_x" >&6; }
9709 no_x=yes
9710 else
9711 # If each of the values was on the command line, it overrides each guess.
9712 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9713 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9714 # Update the cache value to reflect the command line values.
9715 ac_cv_have_x="have_x=yes\
9716 ac_x_includes='$x_includes'\
9717 ac_x_libraries='$x_libraries'"
9718 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9719 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9722 if test "$no_x" = yes; then
9723 window_system=none
9724 else
9725 window_system=x11
9728 ## Workaround for bug in autoconf <= 2.62.
9729 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9730 ## No need to do anything special for these standard directories.
9731 ## This is an experiment, take it out if it causes problems.
9732 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9734 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9738 if test "${x_libraries}" != NONE; then
9739 if test -n "${x_libraries}"; then
9740 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9741 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9743 x_default_search_path=""
9744 x_search_path=${x_libraries}
9745 if test -z "${x_search_path}"; then
9746 x_search_path=/usr/lib
9748 for x_library in `echo ${x_search_path}: | \
9749 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9750 x_search_path="\
9751 ${x_library}/X11/%L/%T/%N%C%S:\
9752 ${x_library}/X11/%l/%T/%N%C%S:\
9753 ${x_library}/X11/%T/%N%C%S:\
9754 ${x_library}/X11/%L/%T/%N%S:\
9755 ${x_library}/X11/%l/%T/%N%S:\
9756 ${x_library}/X11/%T/%N%S"
9757 if test x"${x_default_search_path}" = x; then
9758 x_default_search_path=${x_search_path}
9759 else
9760 x_default_search_path="${x_search_path}:${x_default_search_path}"
9762 done
9764 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9765 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9768 if test x"${x_includes}" = x; then
9769 bitmapdir=/usr/include/X11/bitmaps
9770 else
9771 # accumulate include directories that have X11 bitmap subdirectories
9772 bmd_acc="dummyval"
9773 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9774 if test -d "${bmd}/X11/bitmaps"; then
9775 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9777 if test -d "${bmd}/bitmaps"; then
9778 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9780 done
9781 if test ${bmd_acc} != "dummyval"; then
9782 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9786 HAVE_NS=no
9787 NS_IMPL_COCOA=no
9788 NS_IMPL_GNUSTEP=no
9789 tmp_CPPFLAGS="$CPPFLAGS"
9790 tmp_CFLAGS="$CFLAGS"
9791 CPPFLAGS="$CPPFLAGS -x objective-c"
9792 CFLAGS="$CFLAGS -x objective-c"
9793 if test "${with_ns}" != no; then
9794 if test "${opsys}" = darwin; then
9795 NS_IMPL_COCOA=yes
9796 ns_appdir=`pwd`/nextstep/Emacs.app
9797 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9798 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9799 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9800 elif test -f $GNUSTEP_CONFIG_FILE; then
9801 NS_IMPL_GNUSTEP=yes
9802 ns_appdir=`pwd`/nextstep/Emacs.app
9803 ns_appbindir=`pwd`/nextstep/Emacs.app
9804 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9805 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9806 GNUSTEP_MAKEFILES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_MAKEFILES)"
9807 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
9808 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9809 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9810 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9811 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9812 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9814 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9815 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9816 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9817 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9818 $as_echo_n "(cached) " >&6
9820 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9821 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9822 else
9823 # Is the header compilable?
9824 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9825 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h. */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9833 #include <AppKit/AppKit.h>
9834 _ACEOF
9835 rm -f conftest.$ac_objext
9836 if { (ac_try="$ac_compile"
9837 case "(($ac_try" in
9838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839 *) ac_try_echo=$ac_try;;
9840 esac
9841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9842 $as_echo "$ac_try_echo") >&5
9843 (eval "$ac_compile") 2>conftest.er1
9844 ac_status=$?
9845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
9848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } && {
9850 test -z "$ac_c_werror_flag" ||
9851 test ! -s conftest.err
9852 } && test -s conftest.$ac_objext; then
9853 ac_header_compiler=yes
9854 else
9855 $as_echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9858 ac_header_compiler=no
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9863 $as_echo "$ac_header_compiler" >&6; }
9865 # Is the header present?
9866 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9867 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h. */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9874 #include <AppKit/AppKit.h>
9875 _ACEOF
9876 if { (ac_try="$ac_cpp conftest.$ac_ext"
9877 case "(($ac_try" in
9878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879 *) ac_try_echo=$ac_try;;
9880 esac
9881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9882 $as_echo "$ac_try_echo") >&5
9883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9884 ac_status=$?
9885 grep -v '^ *+' conftest.er1 >conftest.err
9886 rm -f conftest.er1
9887 cat conftest.err >&5
9888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9889 (exit $ac_status); } >/dev/null && {
9890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9891 test ! -s conftest.err
9892 }; then
9893 ac_header_preproc=yes
9894 else
9895 $as_echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9898 ac_header_preproc=no
9901 rm -f conftest.err conftest.$ac_ext
9902 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9903 $as_echo "$ac_header_preproc" >&6; }
9905 # So? What about this header?
9906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9907 yes:no: )
9908 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9909 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9910 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9911 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9912 ac_header_preproc=yes
9914 no:yes:* )
9915 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9916 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9917 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9918 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9919 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9920 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9921 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9922 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9923 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9924 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9925 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9926 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9929 esac
9930 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9931 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9932 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9933 $as_echo_n "(cached) " >&6
9934 else
9935 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9937 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9938 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9941 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9942 HAVE_NS=yes
9943 else
9944 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
9945 files are missing or cannot be compiled." >&5
9946 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9947 files are missing or cannot be compiled." >&2;}
9948 { (exit 1); exit 1; }; }
9952 NS_HAVE_NSINTEGER=yes
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 #include <Foundation/NSObjCRuntime.h>
9961 main ()
9963 NSInteger i;
9965 return 0;
9967 _ACEOF
9968 rm -f conftest.$ac_objext
9969 if { (ac_try="$ac_compile"
9970 case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973 esac
9974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9975 $as_echo "$ac_try_echo") >&5
9976 (eval "$ac_compile") 2>conftest.er1
9977 ac_status=$?
9978 grep -v '^ *+' conftest.er1 >conftest.err
9979 rm -f conftest.er1
9980 cat conftest.err >&5
9981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); } && {
9983 test -z "$ac_c_werror_flag" ||
9984 test ! -s conftest.err
9985 } && test -s conftest.$ac_objext; then
9986 ns_have_nsinteger=yes
9987 else
9988 $as_echo "$as_me: failed program was:" >&5
9989 sed 's/^/| /' conftest.$ac_ext >&5
9991 ns_have_nsinteger=no
9994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9995 if test $ns_have_nsinteger = no; then
9996 NS_HAVE_NSINTEGER=no
10000 NS_OBJ=
10001 NS_SUPPORT=
10002 if test "${HAVE_NS}" = yes; then
10003 window_system=nextstep
10004 with_xft=no
10005 # set up packaging dirs
10006 exec_prefix=${ns_appbindir}
10007 libexecdir=${ns_appbindir}/libexec
10008 if test "${EN_NS_SELF_CONTAINED}" = yes; then
10009 prefix=${ns_appresdir}
10011 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
10012 NS_SUPPORT="\${lispsource}emacs-lisp/easymenu.elc \${lispsource}term/ns-win.elc"
10014 CFLAGS="$tmp_CFLAGS"
10015 CPPFLAGS="$tmp_CPPFLAGS"
10019 case "${window_system}" in
10020 x11 )
10021 HAVE_X_WINDOWS=yes
10022 HAVE_X11=yes
10023 case "${with_x_toolkit}" in
10024 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10025 motif ) USE_X_TOOLKIT=MOTIF ;;
10026 gtk ) with_gtk=yes
10027 USE_X_TOOLKIT=none ;;
10028 no ) USE_X_TOOLKIT=none ;;
10029 * ) USE_X_TOOLKIT=maybe ;;
10030 esac
10032 nextstep | none )
10033 HAVE_X_WINDOWS=no
10034 HAVE_X11=no
10035 USE_X_TOOLKIT=none
10037 esac
10039 if test "$window_system" = none && test "X$with_x" != "Xno"; then
10040 # Extract the first word of "X", so it can be a program name with args.
10041 set dummy X; ac_word=$2
10042 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10043 $as_echo_n "checking for $ac_word... " >&6; }
10044 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
10045 $as_echo_n "(cached) " >&6
10046 else
10047 if test -n "$HAVE_XSERVER"; then
10048 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
10049 else
10050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051 for as_dir in $PATH
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10057 ac_cv_prog_HAVE_XSERVER="true"
10058 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10061 done
10062 done
10063 IFS=$as_save_IFS
10065 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
10068 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
10069 if test -n "$HAVE_XSERVER"; then
10070 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
10071 $as_echo "$HAVE_XSERVER" >&6; }
10072 else
10073 { $as_echo "$as_me:$LINENO: result: no" >&5
10074 $as_echo "no" >&6; }
10078 if test "$HAVE_XSERVER" = true ||
10079 test -n "$DISPLAY" ||
10080 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10081 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10082 were found. You should install the relevant development files for X
10083 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10084 sure you have development files for image handling, i.e.
10085 tiff, gif, jpeg, png and xpm.
10086 If you are sure you want Emacs compiled without X window support, pass
10087 --without-x
10088 to configure." >&5
10089 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10090 were found. You should install the relevant development files for X
10091 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10092 sure you have development files for image handling, i.e.
10093 tiff, gif, jpeg, png and xpm.
10094 If you are sure you want Emacs compiled without X window support, pass
10095 --without-x
10096 to configure." >&2;}
10097 { (exit 1); exit 1; }; }
10101 ### If we're using X11, we should use the X menu package.
10102 HAVE_MENUS=no
10103 case ${HAVE_X11} in
10104 yes ) HAVE_MENUS=yes ;;
10105 esac
10107 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10108 # Assume not, until told otherwise.
10109 GNU_MALLOC=yes
10110 doug_lea_malloc=yes
10111 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10112 $as_echo_n "checking for malloc_get_state... " >&6; }
10113 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10114 $as_echo_n "(cached) " >&6
10115 else
10116 cat >conftest.$ac_ext <<_ACEOF
10117 /* confdefs.h. */
10118 _ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10124 #define malloc_get_state innocuous_malloc_get_state
10126 /* System header to define __stub macros and hopefully few prototypes,
10127 which can conflict with char malloc_get_state (); below.
10128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10129 <limits.h> exists even on freestanding compilers. */
10131 #ifdef __STDC__
10132 # include <limits.h>
10133 #else
10134 # include <assert.h>
10135 #endif
10137 #undef malloc_get_state
10139 /* Override any GCC internal prototype to avoid an error.
10140 Use char because int might match the return type of a GCC
10141 builtin and then its argument prototype would still apply. */
10142 #ifdef __cplusplus
10143 extern "C"
10144 #endif
10145 char malloc_get_state ();
10146 /* The GNU C library defines this for functions which it implements
10147 to always fail with ENOSYS. Some functions are actually named
10148 something starting with __ and the normal name is an alias. */
10149 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10150 choke me
10151 #endif
10154 main ()
10156 return malloc_get_state ();
10158 return 0;
10160 _ACEOF
10161 rm -f conftest.$ac_objext conftest$ac_exeext
10162 if { (ac_try="$ac_link"
10163 case "(($ac_try" in
10164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165 *) ac_try_echo=$ac_try;;
10166 esac
10167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10168 $as_echo "$ac_try_echo") >&5
10169 (eval "$ac_link") 2>conftest.er1
10170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && {
10176 test -z "$ac_c_werror_flag" ||
10177 test ! -s conftest.err
10178 } && test -s conftest$ac_exeext && {
10179 test "$cross_compiling" = yes ||
10180 $as_test_x conftest$ac_exeext
10181 }; then
10182 ac_cv_func_malloc_get_state=yes
10183 else
10184 $as_echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ac_cv_func_malloc_get_state=no
10190 rm -rf conftest.dSYM
10191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10192 conftest$ac_exeext conftest.$ac_ext
10194 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10195 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10196 if test $ac_cv_func_malloc_get_state = yes; then
10198 else
10199 doug_lea_malloc=no
10202 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10203 $as_echo_n "checking for malloc_set_state... " >&6; }
10204 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10205 $as_echo_n "(cached) " >&6
10206 else
10207 cat >conftest.$ac_ext <<_ACEOF
10208 /* confdefs.h. */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10213 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10215 #define malloc_set_state innocuous_malloc_set_state
10217 /* System header to define __stub macros and hopefully few prototypes,
10218 which can conflict with char malloc_set_state (); below.
10219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10220 <limits.h> exists even on freestanding compilers. */
10222 #ifdef __STDC__
10223 # include <limits.h>
10224 #else
10225 # include <assert.h>
10226 #endif
10228 #undef malloc_set_state
10230 /* Override any GCC internal prototype to avoid an error.
10231 Use char because int might match the return type of a GCC
10232 builtin and then its argument prototype would still apply. */
10233 #ifdef __cplusplus
10234 extern "C"
10235 #endif
10236 char malloc_set_state ();
10237 /* The GNU C library defines this for functions which it implements
10238 to always fail with ENOSYS. Some functions are actually named
10239 something starting with __ and the normal name is an alias. */
10240 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10241 choke me
10242 #endif
10245 main ()
10247 return malloc_set_state ();
10249 return 0;
10251 _ACEOF
10252 rm -f conftest.$ac_objext conftest$ac_exeext
10253 if { (ac_try="$ac_link"
10254 case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257 esac
10258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10259 $as_echo "$ac_try_echo") >&5
10260 (eval "$ac_link") 2>conftest.er1
10261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest$ac_exeext && {
10270 test "$cross_compiling" = yes ||
10271 $as_test_x conftest$ac_exeext
10272 }; then
10273 ac_cv_func_malloc_set_state=yes
10274 else
10275 $as_echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10278 ac_cv_func_malloc_set_state=no
10281 rm -rf conftest.dSYM
10282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10283 conftest$ac_exeext conftest.$ac_ext
10285 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10286 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10287 if test $ac_cv_func_malloc_set_state = yes; then
10289 else
10290 doug_lea_malloc=no
10293 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10294 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10295 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10296 $as_echo_n "(cached) " >&6
10297 else
10298 cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h. */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h. */
10304 extern void (* __after_morecore_hook)();
10306 main ()
10308 __after_morecore_hook = 0
10310 return 0;
10312 _ACEOF
10313 rm -f conftest.$ac_objext conftest$ac_exeext
10314 if { (ac_try="$ac_link"
10315 case "(($ac_try" in
10316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10317 *) ac_try_echo=$ac_try;;
10318 esac
10319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10320 $as_echo "$ac_try_echo") >&5
10321 (eval "$ac_link") 2>conftest.er1
10322 ac_status=$?
10323 grep -v '^ *+' conftest.er1 >conftest.err
10324 rm -f conftest.er1
10325 cat conftest.err >&5
10326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327 (exit $ac_status); } && {
10328 test -z "$ac_c_werror_flag" ||
10329 test ! -s conftest.err
10330 } && test -s conftest$ac_exeext && {
10331 test "$cross_compiling" = yes ||
10332 $as_test_x conftest$ac_exeext
10333 }; then
10334 emacs_cv_var___after_morecore_hook=yes
10335 else
10336 $as_echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 emacs_cv_var___after_morecore_hook=no
10342 rm -rf conftest.dSYM
10343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10344 conftest$ac_exeext conftest.$ac_ext
10346 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10347 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10348 if test $emacs_cv_var___after_morecore_hook = no; then
10349 doug_lea_malloc=no
10351 if test "${system_malloc}" = "yes"; then
10352 GNU_MALLOC=no
10353 GNU_MALLOC_reason="
10354 (The GNU allocators don't work with this system configuration.)"
10356 if test "$doug_lea_malloc" = "yes" ; then
10357 if test "$GNU_MALLOC" = yes ; then
10358 GNU_MALLOC_reason="
10359 (Using Doug Lea's new malloc from the GNU C Library.)"
10362 cat >>confdefs.h <<\_ACEOF
10363 #define DOUG_LEA_MALLOC 1
10364 _ACEOF
10368 if test x"${REL_ALLOC}" = x; then
10369 REL_ALLOC=${GNU_MALLOC}
10375 for ac_header in stdlib.h unistd.h
10377 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10379 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10380 $as_echo_n "checking for $ac_header... " >&6; }
10381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10382 $as_echo_n "(cached) " >&6
10384 ac_res=`eval 'as_val=${'$as_ac_Header'}
10385 $as_echo "$as_val"'`
10386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10387 $as_echo "$ac_res" >&6; }
10388 else
10389 # Is the header compilable?
10390 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10391 $as_echo_n "checking $ac_header usability... " >&6; }
10392 cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h. */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 $ac_includes_default
10399 #include <$ac_header>
10400 _ACEOF
10401 rm -f conftest.$ac_objext
10402 if { (ac_try="$ac_compile"
10403 case "(($ac_try" in
10404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10405 *) ac_try_echo=$ac_try;;
10406 esac
10407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10408 $as_echo "$ac_try_echo") >&5
10409 (eval "$ac_compile") 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest.$ac_objext; then
10419 ac_header_compiler=yes
10420 else
10421 $as_echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10424 ac_header_compiler=no
10427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10428 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10429 $as_echo "$ac_header_compiler" >&6; }
10431 # Is the header present?
10432 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10433 $as_echo_n "checking $ac_header presence... " >&6; }
10434 cat >conftest.$ac_ext <<_ACEOF
10435 /* confdefs.h. */
10436 _ACEOF
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 #include <$ac_header>
10441 _ACEOF
10442 if { (ac_try="$ac_cpp conftest.$ac_ext"
10443 case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10446 esac
10447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10448 $as_echo "$ac_try_echo") >&5
10449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } >/dev/null && {
10456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10458 }; then
10459 ac_header_preproc=yes
10460 else
10461 $as_echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_header_preproc=no
10467 rm -f conftest.err conftest.$ac_ext
10468 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10469 $as_echo "$ac_header_preproc" >&6; }
10471 # So? What about this header?
10472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10473 yes:no: )
10474 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10475 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10477 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10478 ac_header_preproc=yes
10480 no:yes:* )
10481 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10482 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10484 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10486 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10488 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10490 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10492 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10495 esac
10496 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10497 $as_echo_n "checking for $ac_header... " >&6; }
10498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10499 $as_echo_n "(cached) " >&6
10500 else
10501 eval "$as_ac_Header=\$ac_header_preproc"
10503 ac_res=`eval 'as_val=${'$as_ac_Header'}
10504 $as_echo "$as_val"'`
10505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10506 $as_echo "$ac_res" >&6; }
10509 if test `eval 'as_val=${'$as_ac_Header'}
10510 $as_echo "$as_val"'` = yes; then
10511 cat >>confdefs.h <<_ACEOF
10512 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10513 _ACEOF
10517 done
10520 for ac_func in getpagesize
10522 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10523 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10524 $as_echo_n "checking for $ac_func... " >&6; }
10525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10526 $as_echo_n "(cached) " >&6
10527 else
10528 cat >conftest.$ac_ext <<_ACEOF
10529 /* confdefs.h. */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10536 #define $ac_func innocuous_$ac_func
10538 /* System header to define __stub macros and hopefully few prototypes,
10539 which can conflict with char $ac_func (); below.
10540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10541 <limits.h> exists even on freestanding compilers. */
10543 #ifdef __STDC__
10544 # include <limits.h>
10545 #else
10546 # include <assert.h>
10547 #endif
10549 #undef $ac_func
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10554 #ifdef __cplusplus
10555 extern "C"
10556 #endif
10557 char $ac_func ();
10558 /* The GNU C library defines this for functions which it implements
10559 to always fail with ENOSYS. Some functions are actually named
10560 something starting with __ and the normal name is an alias. */
10561 #if defined __stub_$ac_func || defined __stub___$ac_func
10562 choke me
10563 #endif
10566 main ()
10568 return $ac_func ();
10570 return 0;
10572 _ACEOF
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (ac_try="$ac_link"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10580 $as_echo "$ac_try_echo") >&5
10581 (eval "$ac_link") 2>conftest.er1
10582 ac_status=$?
10583 grep -v '^ *+' conftest.er1 >conftest.err
10584 rm -f conftest.er1
10585 cat conftest.err >&5
10586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); } && {
10588 test -z "$ac_c_werror_flag" ||
10589 test ! -s conftest.err
10590 } && test -s conftest$ac_exeext && {
10591 test "$cross_compiling" = yes ||
10592 $as_test_x conftest$ac_exeext
10593 }; then
10594 eval "$as_ac_var=yes"
10595 else
10596 $as_echo "$as_me: failed program was:" >&5
10597 sed 's/^/| /' conftest.$ac_ext >&5
10599 eval "$as_ac_var=no"
10602 rm -rf conftest.dSYM
10603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10604 conftest$ac_exeext conftest.$ac_ext
10606 ac_res=`eval 'as_val=${'$as_ac_var'}
10607 $as_echo "$as_val"'`
10608 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10609 $as_echo "$ac_res" >&6; }
10610 if test `eval 'as_val=${'$as_ac_var'}
10611 $as_echo "$as_val"'` = yes; then
10612 cat >>confdefs.h <<_ACEOF
10613 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10614 _ACEOF
10617 done
10619 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10620 $as_echo_n "checking for working mmap... " >&6; }
10621 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10622 $as_echo_n "(cached) " >&6
10623 else
10624 if test "$cross_compiling" = yes; then
10625 ac_cv_func_mmap_fixed_mapped=no
10626 else
10627 cat >conftest.$ac_ext <<_ACEOF
10628 /* confdefs.h. */
10629 _ACEOF
10630 cat confdefs.h >>conftest.$ac_ext
10631 cat >>conftest.$ac_ext <<_ACEOF
10632 /* end confdefs.h. */
10633 $ac_includes_default
10634 /* malloc might have been renamed as rpl_malloc. */
10635 #undef malloc
10637 /* Thanks to Mike Haertel and Jim Avera for this test.
10638 Here is a matrix of mmap possibilities:
10639 mmap private not fixed
10640 mmap private fixed at somewhere currently unmapped
10641 mmap private fixed at somewhere already mapped
10642 mmap shared not fixed
10643 mmap shared fixed at somewhere currently unmapped
10644 mmap shared fixed at somewhere already mapped
10645 For private mappings, we should verify that changes cannot be read()
10646 back from the file, nor mmap's back from the file at a different
10647 address. (There have been systems where private was not correctly
10648 implemented like the infamous i386 svr4.0, and systems where the
10649 VM page cache was not coherent with the file system buffer cache
10650 like early versions of FreeBSD and possibly contemporary NetBSD.)
10651 For shared mappings, we should conversely verify that changes get
10652 propagated back to all the places they're supposed to be.
10654 Grep wants private fixed already mapped.
10655 The main things grep needs to know about mmap are:
10656 * does it exist and is it safe to write into the mmap'd area
10657 * how to use it (BSD variants) */
10659 #include <fcntl.h>
10660 #include <sys/mman.h>
10662 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10663 char *malloc ();
10664 #endif
10666 /* This mess was copied from the GNU getpagesize.h. */
10667 #ifndef HAVE_GETPAGESIZE
10668 /* Assume that all systems that can run configure have sys/param.h. */
10669 # ifndef HAVE_SYS_PARAM_H
10670 # define HAVE_SYS_PARAM_H 1
10671 # endif
10673 # ifdef _SC_PAGESIZE
10674 # define getpagesize() sysconf(_SC_PAGESIZE)
10675 # else /* no _SC_PAGESIZE */
10676 # ifdef HAVE_SYS_PARAM_H
10677 # include <sys/param.h>
10678 # ifdef EXEC_PAGESIZE
10679 # define getpagesize() EXEC_PAGESIZE
10680 # else /* no EXEC_PAGESIZE */
10681 # ifdef NBPG
10682 # define getpagesize() NBPG * CLSIZE
10683 # ifndef CLSIZE
10684 # define CLSIZE 1
10685 # endif /* no CLSIZE */
10686 # else /* no NBPG */
10687 # ifdef NBPC
10688 # define getpagesize() NBPC
10689 # else /* no NBPC */
10690 # ifdef PAGESIZE
10691 # define getpagesize() PAGESIZE
10692 # endif /* PAGESIZE */
10693 # endif /* no NBPC */
10694 # endif /* no NBPG */
10695 # endif /* no EXEC_PAGESIZE */
10696 # else /* no HAVE_SYS_PARAM_H */
10697 # define getpagesize() 8192 /* punt totally */
10698 # endif /* no HAVE_SYS_PARAM_H */
10699 # endif /* no _SC_PAGESIZE */
10701 #endif /* no HAVE_GETPAGESIZE */
10704 main ()
10706 char *data, *data2, *data3;
10707 int i, pagesize;
10708 int fd;
10710 pagesize = getpagesize ();
10712 /* First, make a file with some known garbage in it. */
10713 data = (char *) malloc (pagesize);
10714 if (!data)
10715 return 1;
10716 for (i = 0; i < pagesize; ++i)
10717 *(data + i) = rand ();
10718 umask (0);
10719 fd = creat ("conftest.mmap", 0600);
10720 if (fd < 0)
10721 return 1;
10722 if (write (fd, data, pagesize) != pagesize)
10723 return 1;
10724 close (fd);
10726 /* Next, try to mmap the file at a fixed address which already has
10727 something else allocated at it. If we can, also make sure that
10728 we see the same garbage. */
10729 fd = open ("conftest.mmap", O_RDWR);
10730 if (fd < 0)
10731 return 1;
10732 data2 = (char *) malloc (2 * pagesize);
10733 if (!data2)
10734 return 1;
10735 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10736 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10737 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10738 return 1;
10739 for (i = 0; i < pagesize; ++i)
10740 if (*(data + i) != *(data2 + i))
10741 return 1;
10743 /* Finally, make sure that changes to the mapped area do not
10744 percolate back to the file as seen by read(). (This is a bug on
10745 some variants of i386 svr4.0.) */
10746 for (i = 0; i < pagesize; ++i)
10747 *(data2 + i) = *(data2 + i) + 1;
10748 data3 = (char *) malloc (pagesize);
10749 if (!data3)
10750 return 1;
10751 if (read (fd, data3, pagesize) != pagesize)
10752 return 1;
10753 for (i = 0; i < pagesize; ++i)
10754 if (*(data + i) != *(data3 + i))
10755 return 1;
10756 close (fd);
10757 return 0;
10759 _ACEOF
10760 rm -f conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10767 $as_echo "$ac_try_echo") >&5
10768 (eval "$ac_link") 2>&5
10769 ac_status=$?
10770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10772 { (case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10775 esac
10776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10777 $as_echo "$ac_try_echo") >&5
10778 (eval "$ac_try") 2>&5
10779 ac_status=$?
10780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; }; then
10782 ac_cv_func_mmap_fixed_mapped=yes
10783 else
10784 $as_echo "$as_me: program exited with status $ac_status" >&5
10785 $as_echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 ( exit $ac_status )
10789 ac_cv_func_mmap_fixed_mapped=no
10791 rm -rf conftest.dSYM
10792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10797 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10798 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10799 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10801 cat >>confdefs.h <<\_ACEOF
10802 #define HAVE_MMAP 1
10803 _ACEOF
10806 rm -f conftest.mmap
10808 if test $use_mmap_for_buffers = yes; then
10809 REL_ALLOC=no
10812 LIBS="$libsrc_libs $LIBS"
10815 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10816 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10817 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10818 $as_echo_n "(cached) " >&6
10819 else
10820 ac_check_lib_save_LIBS=$LIBS
10821 LIBS="-ldnet $LIBS"
10822 cat >conftest.$ac_ext <<_ACEOF
10823 /* confdefs.h. */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */
10829 /* Override any GCC internal prototype to avoid an error.
10830 Use char because int might match the return type of a GCC
10831 builtin and then its argument prototype would still apply. */
10832 #ifdef __cplusplus
10833 extern "C"
10834 #endif
10835 char dnet_ntoa ();
10837 main ()
10839 return dnet_ntoa ();
10841 return 0;
10843 _ACEOF
10844 rm -f conftest.$ac_objext conftest$ac_exeext
10845 if { (ac_try="$ac_link"
10846 case "(($ac_try" in
10847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10848 *) ac_try_echo=$ac_try;;
10849 esac
10850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10851 $as_echo "$ac_try_echo") >&5
10852 (eval "$ac_link") 2>conftest.er1
10853 ac_status=$?
10854 grep -v '^ *+' conftest.er1 >conftest.err
10855 rm -f conftest.er1
10856 cat conftest.err >&5
10857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } && {
10859 test -z "$ac_c_werror_flag" ||
10860 test ! -s conftest.err
10861 } && test -s conftest$ac_exeext && {
10862 test "$cross_compiling" = yes ||
10863 $as_test_x conftest$ac_exeext
10864 }; then
10865 ac_cv_lib_dnet_dnet_ntoa=yes
10866 else
10867 $as_echo "$as_me: failed program was:" >&5
10868 sed 's/^/| /' conftest.$ac_ext >&5
10870 ac_cv_lib_dnet_dnet_ntoa=no
10873 rm -rf conftest.dSYM
10874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10875 conftest$ac_exeext conftest.$ac_ext
10876 LIBS=$ac_check_lib_save_LIBS
10878 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10879 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10880 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10881 cat >>confdefs.h <<_ACEOF
10882 #define HAVE_LIBDNET 1
10883 _ACEOF
10885 LIBS="-ldnet $LIBS"
10890 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10891 $as_echo_n "checking for main in -lXbsd... " >&6; }
10892 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10893 $as_echo_n "(cached) " >&6
10894 else
10895 ac_check_lib_save_LIBS=$LIBS
10896 LIBS="-lXbsd $LIBS"
10897 cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h. */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10906 main ()
10908 return main ();
10910 return 0;
10912 _ACEOF
10913 rm -f conftest.$ac_objext conftest$ac_exeext
10914 if { (ac_try="$ac_link"
10915 case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10918 esac
10919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10920 $as_echo "$ac_try_echo") >&5
10921 (eval "$ac_link") 2>conftest.er1
10922 ac_status=$?
10923 grep -v '^ *+' conftest.er1 >conftest.err
10924 rm -f conftest.er1
10925 cat conftest.err >&5
10926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10927 (exit $ac_status); } && {
10928 test -z "$ac_c_werror_flag" ||
10929 test ! -s conftest.err
10930 } && test -s conftest$ac_exeext && {
10931 test "$cross_compiling" = yes ||
10932 $as_test_x conftest$ac_exeext
10933 }; then
10934 ac_cv_lib_Xbsd_main=yes
10935 else
10936 $as_echo "$as_me: failed program was:" >&5
10937 sed 's/^/| /' conftest.$ac_ext >&5
10939 ac_cv_lib_Xbsd_main=no
10942 rm -rf conftest.dSYM
10943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10944 conftest$ac_exeext conftest.$ac_ext
10945 LIBS=$ac_check_lib_save_LIBS
10947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10948 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10949 if test $ac_cv_lib_Xbsd_main = yes; then
10950 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10955 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10956 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10957 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10958 $as_echo_n "(cached) " >&6
10959 else
10960 ac_check_lib_save_LIBS=$LIBS
10961 LIBS="-lpthreads $LIBS"
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h. */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10969 /* Override any GCC internal prototype to avoid an error.
10970 Use char because int might match the return type of a GCC
10971 builtin and then its argument prototype would still apply. */
10972 #ifdef __cplusplus
10973 extern "C"
10974 #endif
10975 char cma_open ();
10977 main ()
10979 return cma_open ();
10981 return 0;
10983 _ACEOF
10984 rm -f conftest.$ac_objext conftest$ac_exeext
10985 if { (ac_try="$ac_link"
10986 case "(($ac_try" in
10987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10988 *) ac_try_echo=$ac_try;;
10989 esac
10990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10991 $as_echo "$ac_try_echo") >&5
10992 (eval "$ac_link") 2>conftest.er1
10993 ac_status=$?
10994 grep -v '^ *+' conftest.er1 >conftest.err
10995 rm -f conftest.er1
10996 cat conftest.err >&5
10997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } && {
10999 test -z "$ac_c_werror_flag" ||
11000 test ! -s conftest.err
11001 } && test -s conftest$ac_exeext && {
11002 test "$cross_compiling" = yes ||
11003 $as_test_x conftest$ac_exeext
11004 }; then
11005 ac_cv_lib_pthreads_cma_open=yes
11006 else
11007 $as_echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11010 ac_cv_lib_pthreads_cma_open=no
11013 rm -rf conftest.dSYM
11014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11015 conftest$ac_exeext conftest.$ac_ext
11016 LIBS=$ac_check_lib_save_LIBS
11018 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11019 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
11020 if test $ac_cv_lib_pthreads_cma_open = yes; then
11021 cat >>confdefs.h <<_ACEOF
11022 #define HAVE_LIBPTHREADS 1
11023 _ACEOF
11025 LIBS="-lpthreads $LIBS"
11031 case ${host_os} in
11032 aix*)
11033 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11034 $as_echo_n "checking for -bbigtoc option... " >&6; }
11035 if test "${gdb_cv_bigtoc+set}" = set; then
11036 $as_echo_n "(cached) " >&6
11037 else
11039 case $GCC in
11040 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11041 *) gdb_cv_bigtoc=-bbigtoc ;;
11042 esac
11044 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11045 cat >conftest.$ac_ext <<_ACEOF
11046 /* confdefs.h. */
11047 _ACEOF
11048 cat confdefs.h >>conftest.$ac_ext
11049 cat >>conftest.$ac_ext <<_ACEOF
11050 /* end confdefs.h. */
11053 main ()
11055 int i;
11057 return 0;
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11067 $as_echo "$ac_try_echo") >&5
11068 (eval "$ac_link") 2>conftest.er1
11069 ac_status=$?
11070 grep -v '^ *+' conftest.er1 >conftest.err
11071 rm -f conftest.er1
11072 cat conftest.err >&5
11073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest$ac_exeext && {
11078 test "$cross_compiling" = yes ||
11079 $as_test_x conftest$ac_exeext
11080 }; then
11082 else
11083 $as_echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 gdb_cv_bigtoc=
11089 rm -rf conftest.dSYM
11090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11091 conftest$ac_exeext conftest.$ac_ext
11094 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11095 $as_echo "$gdb_cv_bigtoc" >&6; }
11097 esac
11099 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11100 # used for the tests that follow. We set them back to REAL_CFLAGS and
11101 # REAL_CPPFLAGS later on.
11103 REAL_CPPFLAGS="$CPPFLAGS"
11105 if test "${HAVE_X11}" = "yes"; then
11106 DEFS="$C_SWITCH_X_SITE $DEFS"
11107 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11108 LIBS="$LIBX $LIBS"
11109 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11110 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11112 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11113 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11114 # but it's more convenient here to set LD_RUN_PATH
11115 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11116 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11117 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11118 export LD_RUN_PATH
11121 if test "${opsys}" = "gnu-linux"; then
11122 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11123 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11124 cat >conftest.$ac_ext <<_ACEOF
11125 /* confdefs.h. */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11132 main ()
11134 XOpenDisplay ("foo");
11136 return 0;
11138 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144 esac
11145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11146 $as_echo "$ac_try_echo") >&5
11147 (eval "$ac_link") 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest$ac_exeext && {
11157 test "$cross_compiling" = yes ||
11158 $as_test_x conftest$ac_exeext
11159 }; then
11160 xlinux_first_failure=no
11161 else
11162 $as_echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11165 xlinux_first_failure=yes
11168 rm -rf conftest.dSYM
11169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170 conftest$ac_exeext conftest.$ac_ext
11171 if test "${xlinux_first_failure}" = "yes"; then
11172 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11173 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11174 OLD_CPPFLAGS="$CPPFLAGS"
11175 OLD_LIBS="$LIBS"
11176 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11177 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11178 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11179 LIBS="$LIBS -b i486-linuxaout"
11180 cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h. */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h. */
11188 main ()
11190 XOpenDisplay ("foo");
11192 return 0;
11194 _ACEOF
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (ac_try="$ac_link"
11197 case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11200 esac
11201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11202 $as_echo "$ac_try_echo") >&5
11203 (eval "$ac_link") 2>conftest.er1
11204 ac_status=$?
11205 grep -v '^ *+' conftest.er1 >conftest.err
11206 rm -f conftest.er1
11207 cat conftest.err >&5
11208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } && {
11210 test -z "$ac_c_werror_flag" ||
11211 test ! -s conftest.err
11212 } && test -s conftest$ac_exeext && {
11213 test "$cross_compiling" = yes ||
11214 $as_test_x conftest$ac_exeext
11215 }; then
11216 xlinux_second_failure=no
11217 else
11218 $as_echo "$as_me: failed program was:" >&5
11219 sed 's/^/| /' conftest.$ac_ext >&5
11221 xlinux_second_failure=yes
11224 rm -rf conftest.dSYM
11225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11226 conftest$ac_exeext conftest.$ac_ext
11227 if test "${xlinux_second_failure}" = "yes"; then
11228 # If we get the same failure with -b, there is no use adding -b.
11229 # So take it out. This plays safe.
11230 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11231 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11232 CPPFLAGS="$OLD_CPPFLAGS"
11233 LIBS="$OLD_LIBS"
11234 { $as_echo "$as_me:$LINENO: result: no" >&5
11235 $as_echo "no" >&6; }
11236 else
11237 { $as_echo "$as_me:$LINENO: result: yes" >&5
11238 $as_echo "yes" >&6; }
11240 else
11241 { $as_echo "$as_me:$LINENO: result: no" >&5
11242 $as_echo "no" >&6; }
11246 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11247 # header files included from there.
11248 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
11249 $as_echo_n "checking for Xkb... " >&6; }
11250 cat >conftest.$ac_ext <<_ACEOF
11251 /* confdefs.h. */
11252 _ACEOF
11253 cat confdefs.h >>conftest.$ac_ext
11254 cat >>conftest.$ac_ext <<_ACEOF
11255 /* end confdefs.h. */
11256 #include <X11/Xlib.h>
11257 #include <X11/XKBlib.h>
11259 main ()
11261 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11263 return 0;
11265 _ACEOF
11266 rm -f conftest.$ac_objext conftest$ac_exeext
11267 if { (ac_try="$ac_link"
11268 case "(($ac_try" in
11269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11270 *) ac_try_echo=$ac_try;;
11271 esac
11272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11273 $as_echo "$ac_try_echo") >&5
11274 (eval "$ac_link") 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } && {
11281 test -z "$ac_c_werror_flag" ||
11282 test ! -s conftest.err
11283 } && test -s conftest$ac_exeext && {
11284 test "$cross_compiling" = yes ||
11285 $as_test_x conftest$ac_exeext
11286 }; then
11287 emacs_xkb=yes
11288 else
11289 $as_echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11292 emacs_xkb=no
11295 rm -rf conftest.dSYM
11296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11297 conftest$ac_exeext conftest.$ac_ext
11298 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11299 $as_echo "$emacs_xkb" >&6; }
11300 if test $emacs_xkb = yes; then
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_XKBGETKEYBOARD 1
11304 _ACEOF
11312 for ac_func in XrmSetDatabase XScreenResourceString \
11313 XScreenNumberOfScreen XSetWMProtocols
11315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11316 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11317 $as_echo_n "checking for $ac_func... " >&6; }
11318 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11319 $as_echo_n "(cached) " >&6
11320 else
11321 cat >conftest.$ac_ext <<_ACEOF
11322 /* confdefs.h. */
11323 _ACEOF
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11329 #define $ac_func innocuous_$ac_func
11331 /* System header to define __stub macros and hopefully few prototypes,
11332 which can conflict with char $ac_func (); below.
11333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11334 <limits.h> exists even on freestanding compilers. */
11336 #ifdef __STDC__
11337 # include <limits.h>
11338 #else
11339 # include <assert.h>
11340 #endif
11342 #undef $ac_func
11344 /* Override any GCC internal prototype to avoid an error.
11345 Use char because int might match the return type of a GCC
11346 builtin and then its argument prototype would still apply. */
11347 #ifdef __cplusplus
11348 extern "C"
11349 #endif
11350 char $ac_func ();
11351 /* The GNU C library defines this for functions which it implements
11352 to always fail with ENOSYS. Some functions are actually named
11353 something starting with __ and the normal name is an alias. */
11354 #if defined __stub_$ac_func || defined __stub___$ac_func
11355 choke me
11356 #endif
11359 main ()
11361 return $ac_func ();
11363 return 0;
11365 _ACEOF
11366 rm -f conftest.$ac_objext conftest$ac_exeext
11367 if { (ac_try="$ac_link"
11368 case "(($ac_try" in
11369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11370 *) ac_try_echo=$ac_try;;
11371 esac
11372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11373 $as_echo "$ac_try_echo") >&5
11374 (eval "$ac_link") 2>conftest.er1
11375 ac_status=$?
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
11379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } && {
11381 test -z "$ac_c_werror_flag" ||
11382 test ! -s conftest.err
11383 } && test -s conftest$ac_exeext && {
11384 test "$cross_compiling" = yes ||
11385 $as_test_x conftest$ac_exeext
11386 }; then
11387 eval "$as_ac_var=yes"
11388 else
11389 $as_echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11392 eval "$as_ac_var=no"
11395 rm -rf conftest.dSYM
11396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11397 conftest$ac_exeext conftest.$ac_ext
11399 ac_res=`eval 'as_val=${'$as_ac_var'}
11400 $as_echo "$as_val"'`
11401 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11402 $as_echo "$ac_res" >&6; }
11403 if test `eval 'as_val=${'$as_ac_var'}
11404 $as_echo "$as_val"'` = yes; then
11405 cat >>confdefs.h <<_ACEOF
11406 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11407 _ACEOF
11410 done
11414 if test "${window_system}" = "x11"; then
11415 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
11416 $as_echo_n "checking X11 version 6... " >&6; }
11417 if test "${emacs_cv_x11_version_6+set}" = set; then
11418 $as_echo_n "(cached) " >&6
11419 else
11420 cat >conftest.$ac_ext <<_ACEOF
11421 /* confdefs.h. */
11422 _ACEOF
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11426 #include <X11/Xlib.h>
11428 main ()
11430 #if XlibSpecificationRelease < 6
11431 fail;
11432 #endif
11435 return 0;
11437 _ACEOF
11438 rm -f conftest.$ac_objext conftest$ac_exeext
11439 if { (ac_try="$ac_link"
11440 case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11443 esac
11444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11445 $as_echo "$ac_try_echo") >&5
11446 (eval "$ac_link") 2>conftest.er1
11447 ac_status=$?
11448 grep -v '^ *+' conftest.er1 >conftest.err
11449 rm -f conftest.er1
11450 cat conftest.err >&5
11451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } && {
11453 test -z "$ac_c_werror_flag" ||
11454 test ! -s conftest.err
11455 } && test -s conftest$ac_exeext && {
11456 test "$cross_compiling" = yes ||
11457 $as_test_x conftest$ac_exeext
11458 }; then
11459 emacs_cv_x11_version_6=yes
11460 else
11461 $as_echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 emacs_cv_x11_version_6=no
11467 rm -rf conftest.dSYM
11468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11469 conftest$ac_exeext conftest.$ac_ext
11472 if test $emacs_cv_x11_version_6 = yes; then
11473 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
11474 $as_echo "6 or newer" >&6; }
11476 cat >>confdefs.h <<\_ACEOF
11477 #define HAVE_X11R6 1
11478 _ACEOF
11480 else
11481 { $as_echo "$as_me:$LINENO: result: before 6" >&5
11482 $as_echo "before 6" >&6; }
11487 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11488 HAVE_RSVG=no
11489 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
11490 if test "${with_rsvg}" != "no"; then
11491 RSVG_REQUIRED=2.11.0
11492 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11495 succeeded=no
11497 # Extract the first word of "pkg-config", so it can be a program name with args.
11498 set dummy pkg-config; ac_word=$2
11499 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11500 $as_echo_n "checking for $ac_word... " >&6; }
11501 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11502 $as_echo_n "(cached) " >&6
11503 else
11504 case $PKG_CONFIG in
11505 [\\/]* | ?:[\\/]*)
11506 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11510 for as_dir in $PATH
11512 IFS=$as_save_IFS
11513 test -z "$as_dir" && as_dir=.
11514 for ac_exec_ext in '' $ac_executable_extensions; do
11515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11516 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11518 break 2
11520 done
11521 done
11522 IFS=$as_save_IFS
11524 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11526 esac
11528 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11529 if test -n "$PKG_CONFIG"; then
11530 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11531 $as_echo "$PKG_CONFIG" >&6; }
11532 else
11533 { $as_echo "$as_me:$LINENO: result: no" >&5
11534 $as_echo "no" >&6; }
11539 if test "$PKG_CONFIG" = "no" ; then
11541 else
11542 PKG_CONFIG_MIN_VERSION=0.9.0
11543 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11544 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11545 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11547 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11548 { $as_echo "$as_me:$LINENO: result: yes" >&5
11549 $as_echo "yes" >&6; }
11550 succeeded=yes
11552 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11553 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11554 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11555 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11556 $as_echo "$RSVG_CFLAGS" >&6; }
11558 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11559 $as_echo_n "checking RSVG_LIBS... " >&6; }
11560 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11561 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11562 $as_echo "$RSVG_LIBS" >&6; }
11563 else
11564 { $as_echo "$as_me:$LINENO: result: no" >&5
11565 $as_echo "no" >&6; }
11566 RSVG_CFLAGS=""
11567 RSVG_LIBS=""
11568 ## If we have a custom action on failure, don't print errors, but
11569 ## do set a variable so people can do so.
11570 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11576 else
11577 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11578 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11582 if test $succeeded = yes; then
11584 else
11591 if test ".${RSVG_CFLAGS}" != "."; then
11592 HAVE_RSVG=yes
11594 cat >>confdefs.h <<\_ACEOF
11595 #define HAVE_RSVG 1
11596 _ACEOF
11598 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11599 LIBS="$RSVG_LIBS $LIBS"
11605 HAVE_GTK=no
11606 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
11607 GLIB_REQUIRED=2.6
11608 GTK_REQUIRED=2.6
11609 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11612 succeeded=no
11614 # Extract the first word of "pkg-config", so it can be a program name with args.
11615 set dummy pkg-config; ac_word=$2
11616 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11617 $as_echo_n "checking for $ac_word... " >&6; }
11618 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11619 $as_echo_n "(cached) " >&6
11620 else
11621 case $PKG_CONFIG in
11622 [\\/]* | ?:[\\/]*)
11623 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH
11629 IFS=$as_save_IFS
11630 test -z "$as_dir" && as_dir=.
11631 for ac_exec_ext in '' $ac_executable_extensions; do
11632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11633 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11635 break 2
11637 done
11638 done
11639 IFS=$as_save_IFS
11641 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11643 esac
11645 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11646 if test -n "$PKG_CONFIG"; then
11647 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11648 $as_echo "$PKG_CONFIG" >&6; }
11649 else
11650 { $as_echo "$as_me:$LINENO: result: no" >&5
11651 $as_echo "no" >&6; }
11656 if test "$PKG_CONFIG" = "no" ; then
11657 pkg_check_gtk=no
11658 else
11659 PKG_CONFIG_MIN_VERSION=0.9.0
11660 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11661 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11662 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11664 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11665 { $as_echo "$as_me:$LINENO: result: yes" >&5
11666 $as_echo "yes" >&6; }
11667 succeeded=yes
11669 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11670 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11671 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11672 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11673 $as_echo "$GTK_CFLAGS" >&6; }
11675 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11676 $as_echo_n "checking GTK_LIBS... " >&6; }
11677 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11678 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11679 $as_echo "$GTK_LIBS" >&6; }
11680 else
11681 { $as_echo "$as_me:$LINENO: result: no" >&5
11682 $as_echo "no" >&6; }
11683 GTK_CFLAGS=""
11684 GTK_LIBS=""
11685 ## If we have a custom action on failure, don't print errors, but
11686 ## do set a variable so people can do so.
11687 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11693 else
11694 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11695 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11699 if test $succeeded = yes; then
11700 pkg_check_gtk=yes
11701 else
11702 pkg_check_gtk=no
11705 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11706 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11707 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11708 { (exit 1); exit 1; }; }
11713 GTK_OBJ=
11714 if test x"$pkg_check_gtk" = xyes; then
11718 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11719 CFLAGS="$CFLAGS $GTK_CFLAGS"
11720 LIBS="$GTK_LIBS $LIBS"
11721 GTK_COMPILES=no
11723 for ac_func in gtk_main
11725 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11726 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11727 $as_echo_n "checking for $ac_func... " >&6; }
11728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11729 $as_echo_n "(cached) " >&6
11730 else
11731 cat >conftest.$ac_ext <<_ACEOF
11732 /* confdefs.h. */
11733 _ACEOF
11734 cat confdefs.h >>conftest.$ac_ext
11735 cat >>conftest.$ac_ext <<_ACEOF
11736 /* end confdefs.h. */
11737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11739 #define $ac_func innocuous_$ac_func
11741 /* System header to define __stub macros and hopefully few prototypes,
11742 which can conflict with char $ac_func (); below.
11743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11744 <limits.h> exists even on freestanding compilers. */
11746 #ifdef __STDC__
11747 # include <limits.h>
11748 #else
11749 # include <assert.h>
11750 #endif
11752 #undef $ac_func
11754 /* Override any GCC internal prototype to avoid an error.
11755 Use char because int might match the return type of a GCC
11756 builtin and then its argument prototype would still apply. */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 char $ac_func ();
11761 /* The GNU C library defines this for functions which it implements
11762 to always fail with ENOSYS. Some functions are actually named
11763 something starting with __ and the normal name is an alias. */
11764 #if defined __stub_$ac_func || defined __stub___$ac_func
11765 choke me
11766 #endif
11769 main ()
11771 return $ac_func ();
11773 return 0;
11775 _ACEOF
11776 rm -f conftest.$ac_objext conftest$ac_exeext
11777 if { (ac_try="$ac_link"
11778 case "(($ac_try" in
11779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11780 *) ac_try_echo=$ac_try;;
11781 esac
11782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11783 $as_echo "$ac_try_echo") >&5
11784 (eval "$ac_link") 2>conftest.er1
11785 ac_status=$?
11786 grep -v '^ *+' conftest.er1 >conftest.err
11787 rm -f conftest.er1
11788 cat conftest.err >&5
11789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest$ac_exeext && {
11794 test "$cross_compiling" = yes ||
11795 $as_test_x conftest$ac_exeext
11796 }; then
11797 eval "$as_ac_var=yes"
11798 else
11799 $as_echo "$as_me: failed program was:" >&5
11800 sed 's/^/| /' conftest.$ac_ext >&5
11802 eval "$as_ac_var=no"
11805 rm -rf conftest.dSYM
11806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11807 conftest$ac_exeext conftest.$ac_ext
11809 ac_res=`eval 'as_val=${'$as_ac_var'}
11810 $as_echo "$as_val"'`
11811 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11812 $as_echo "$ac_res" >&6; }
11813 if test `eval 'as_val=${'$as_ac_var'}
11814 $as_echo "$as_val"'` = yes; then
11815 cat >>confdefs.h <<_ACEOF
11816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11817 _ACEOF
11818 GTK_COMPILES=yes
11820 done
11822 if test "${GTK_COMPILES}" != "yes"; then
11823 if test "$USE_X_TOOLKIT" != "maybe"; then
11824 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11825 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11826 { (exit 1); exit 1; }; };
11828 else
11829 HAVE_GTK=yes
11831 cat >>confdefs.h <<\_ACEOF
11832 #define USE_GTK 1
11833 _ACEOF
11835 GTK_OBJ=gtkutil.o
11836 USE_X_TOOLKIT=none
11837 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11839 else
11840 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11841 closing open displays. This is no problem if you just use
11842 one display, but if you use more than one and close one of them
11843 Emacs may crash." >&5
11844 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11845 closing open displays. This is no problem if you just use
11846 one display, but if you use more than one and close one of them
11847 Emacs may crash." >&2;}
11848 sleep 3
11856 if test "${HAVE_GTK}" = "yes"; then
11858 if test "$with_toolkit_scroll_bars" != no; then
11859 with_toolkit_scroll_bars=yes
11862 HAVE_GTK_MULTIDISPLAY=no
11864 for ac_func in gdk_display_open
11866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11867 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11868 $as_echo_n "checking for $ac_func... " >&6; }
11869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11870 $as_echo_n "(cached) " >&6
11871 else
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h. */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11880 #define $ac_func innocuous_$ac_func
11882 /* System header to define __stub macros and hopefully few prototypes,
11883 which can conflict with char $ac_func (); below.
11884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11885 <limits.h> exists even on freestanding compilers. */
11887 #ifdef __STDC__
11888 # include <limits.h>
11889 #else
11890 # include <assert.h>
11891 #endif
11893 #undef $ac_func
11895 /* Override any GCC internal prototype to avoid an error.
11896 Use char because int might match the return type of a GCC
11897 builtin and then its argument prototype would still apply. */
11898 #ifdef __cplusplus
11899 extern "C"
11900 #endif
11901 char $ac_func ();
11902 /* The GNU C library defines this for functions which it implements
11903 to always fail with ENOSYS. Some functions are actually named
11904 something starting with __ and the normal name is an alias. */
11905 #if defined __stub_$ac_func || defined __stub___$ac_func
11906 choke me
11907 #endif
11910 main ()
11912 return $ac_func ();
11914 return 0;
11916 _ACEOF
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11922 esac
11923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11924 $as_echo "$ac_try_echo") >&5
11925 (eval "$ac_link") 2>conftest.er1
11926 ac_status=$?
11927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
11930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } && {
11932 test -z "$ac_c_werror_flag" ||
11933 test ! -s conftest.err
11934 } && test -s conftest$ac_exeext && {
11935 test "$cross_compiling" = yes ||
11936 $as_test_x conftest$ac_exeext
11937 }; then
11938 eval "$as_ac_var=yes"
11939 else
11940 $as_echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 eval "$as_ac_var=no"
11946 rm -rf conftest.dSYM
11947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11948 conftest$ac_exeext conftest.$ac_ext
11950 ac_res=`eval 'as_val=${'$as_ac_var'}
11951 $as_echo "$as_val"'`
11952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11953 $as_echo "$ac_res" >&6; }
11954 if test `eval 'as_val=${'$as_ac_var'}
11955 $as_echo "$as_val"'` = yes; then
11956 cat >>confdefs.h <<_ACEOF
11957 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11958 _ACEOF
11959 HAVE_GTK_MULTIDISPLAY=yes
11961 done
11963 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11965 cat >>confdefs.h <<\_ACEOF
11966 #define HAVE_GTK_MULTIDISPLAY 1
11967 _ACEOF
11971 HAVE_GTK_FILE_SELECTION=no
11972 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11973 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11974 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11975 $as_echo_n "(cached) " >&6
11976 else
11977 cat >conftest.$ac_ext <<_ACEOF
11978 /* confdefs.h. */
11979 _ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 $ac_includes_default
11984 #include <gtk/gtk.h>
11987 main ()
11989 #ifndef GTK_TYPE_FILE_SELECTION
11990 (void) GTK_TYPE_FILE_SELECTION;
11991 #endif
11994 return 0;
11996 _ACEOF
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12002 esac
12003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12004 $as_echo "$ac_try_echo") >&5
12005 (eval "$ac_compile") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest.$ac_objext; then
12015 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12016 else
12017 $as_echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12026 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12027 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
12028 HAVE_GTK_FILE_SELECTION=yes
12029 else
12030 HAVE_GTK_FILE_SELECTION=no
12033 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
12035 for ac_func in gtk_file_selection_new
12037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12038 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12039 $as_echo_n "checking for $ac_func... " >&6; }
12040 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12041 $as_echo_n "(cached) " >&6
12042 else
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h. */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12051 #define $ac_func innocuous_$ac_func
12053 /* System header to define __stub macros and hopefully few prototypes,
12054 which can conflict with char $ac_func (); below.
12055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12056 <limits.h> exists even on freestanding compilers. */
12058 #ifdef __STDC__
12059 # include <limits.h>
12060 #else
12061 # include <assert.h>
12062 #endif
12064 #undef $ac_func
12066 /* Override any GCC internal prototype to avoid an error.
12067 Use char because int might match the return type of a GCC
12068 builtin and then its argument prototype would still apply. */
12069 #ifdef __cplusplus
12070 extern "C"
12071 #endif
12072 char $ac_func ();
12073 /* The GNU C library defines this for functions which it implements
12074 to always fail with ENOSYS. Some functions are actually named
12075 something starting with __ and the normal name is an alias. */
12076 #if defined __stub_$ac_func || defined __stub___$ac_func
12077 choke me
12078 #endif
12081 main ()
12083 return $ac_func ();
12085 return 0;
12087 _ACEOF
12088 rm -f conftest.$ac_objext conftest$ac_exeext
12089 if { (ac_try="$ac_link"
12090 case "(($ac_try" in
12091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12092 *) ac_try_echo=$ac_try;;
12093 esac
12094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12095 $as_echo "$ac_try_echo") >&5
12096 (eval "$ac_link") 2>conftest.er1
12097 ac_status=$?
12098 grep -v '^ *+' conftest.er1 >conftest.err
12099 rm -f conftest.er1
12100 cat conftest.err >&5
12101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } && {
12103 test -z "$ac_c_werror_flag" ||
12104 test ! -s conftest.err
12105 } && test -s conftest$ac_exeext && {
12106 test "$cross_compiling" = yes ||
12107 $as_test_x conftest$ac_exeext
12108 }; then
12109 eval "$as_ac_var=yes"
12110 else
12111 $as_echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 eval "$as_ac_var=no"
12117 rm -rf conftest.dSYM
12118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12119 conftest$ac_exeext conftest.$ac_ext
12121 ac_res=`eval 'as_val=${'$as_ac_var'}
12122 $as_echo "$as_val"'`
12123 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12124 $as_echo "$ac_res" >&6; }
12125 if test `eval 'as_val=${'$as_ac_var'}
12126 $as_echo "$as_val"'` = yes; then
12127 cat >>confdefs.h <<_ACEOF
12128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12129 _ACEOF
12130 HAVE_GTK_FILE_SELECTION=yes
12131 else
12132 HAVE_GTK_FILE_SELECTION=no
12134 done
12138 HAVE_GTK_FILE_CHOOSER=no
12139 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12140 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12141 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12142 $as_echo_n "(cached) " >&6
12143 else
12144 cat >conftest.$ac_ext <<_ACEOF
12145 /* confdefs.h. */
12146 _ACEOF
12147 cat confdefs.h >>conftest.$ac_ext
12148 cat >>conftest.$ac_ext <<_ACEOF
12149 /* end confdefs.h. */
12150 $ac_includes_default
12151 #include <gtk/gtk.h>
12154 main ()
12156 #ifndef GTK_TYPE_FILE_CHOOSER
12157 (void) GTK_TYPE_FILE_CHOOSER;
12158 #endif
12161 return 0;
12163 _ACEOF
12164 rm -f conftest.$ac_objext
12165 if { (ac_try="$ac_compile"
12166 case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169 esac
12170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12171 $as_echo "$ac_try_echo") >&5
12172 (eval "$ac_compile") 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } && {
12179 test -z "$ac_c_werror_flag" ||
12180 test ! -s conftest.err
12181 } && test -s conftest.$ac_objext; then
12182 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12183 else
12184 $as_echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12187 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12193 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12194 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12195 HAVE_GTK_FILE_CHOOSER=yes
12196 else
12197 HAVE_GTK_FILE_CHOOSER=no
12200 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12202 for ac_func in gtk_file_chooser_dialog_new
12204 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12205 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12206 $as_echo_n "checking for $ac_func... " >&6; }
12207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12208 $as_echo_n "(cached) " >&6
12209 else
12210 cat >conftest.$ac_ext <<_ACEOF
12211 /* confdefs.h. */
12212 _ACEOF
12213 cat confdefs.h >>conftest.$ac_ext
12214 cat >>conftest.$ac_ext <<_ACEOF
12215 /* end confdefs.h. */
12216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12218 #define $ac_func innocuous_$ac_func
12220 /* System header to define __stub macros and hopefully few prototypes,
12221 which can conflict with char $ac_func (); below.
12222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12223 <limits.h> exists even on freestanding compilers. */
12225 #ifdef __STDC__
12226 # include <limits.h>
12227 #else
12228 # include <assert.h>
12229 #endif
12231 #undef $ac_func
12233 /* Override any GCC internal prototype to avoid an error.
12234 Use char because int might match the return type of a GCC
12235 builtin and then its argument prototype would still apply. */
12236 #ifdef __cplusplus
12237 extern "C"
12238 #endif
12239 char $ac_func ();
12240 /* The GNU C library defines this for functions which it implements
12241 to always fail with ENOSYS. Some functions are actually named
12242 something starting with __ and the normal name is an alias. */
12243 #if defined __stub_$ac_func || defined __stub___$ac_func
12244 choke me
12245 #endif
12248 main ()
12250 return $ac_func ();
12252 return 0;
12254 _ACEOF
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (ac_try="$ac_link"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12262 $as_echo "$ac_try_echo") >&5
12263 (eval "$ac_link") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest$ac_exeext && {
12273 test "$cross_compiling" = yes ||
12274 $as_test_x conftest$ac_exeext
12275 }; then
12276 eval "$as_ac_var=yes"
12277 else
12278 $as_echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12281 eval "$as_ac_var=no"
12284 rm -rf conftest.dSYM
12285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12286 conftest$ac_exeext conftest.$ac_ext
12288 ac_res=`eval 'as_val=${'$as_ac_var'}
12289 $as_echo "$as_val"'`
12290 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12291 $as_echo "$ac_res" >&6; }
12292 if test `eval 'as_val=${'$as_ac_var'}
12293 $as_echo "$as_val"'` = yes; then
12294 cat >>confdefs.h <<_ACEOF
12295 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12296 _ACEOF
12297 HAVE_GTK_FILE_CHOOSER=yes
12298 else
12299 HAVE_GTK_FILE_CHOOSER=no
12301 done
12305 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12306 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12308 cat >>confdefs.h <<\_ACEOF
12309 #define HAVE_GTK_FILE_BOTH 1
12310 _ACEOF
12314 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12315 HAVE_GTK_AND_PTHREAD=no
12317 for ac_header in pthread.h
12319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12321 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12322 $as_echo_n "checking for $ac_header... " >&6; }
12323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12324 $as_echo_n "(cached) " >&6
12326 ac_res=`eval 'as_val=${'$as_ac_Header'}
12327 $as_echo "$as_val"'`
12328 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12329 $as_echo "$ac_res" >&6; }
12330 else
12331 # Is the header compilable?
12332 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12333 $as_echo_n "checking $ac_header usability... " >&6; }
12334 cat >conftest.$ac_ext <<_ACEOF
12335 /* confdefs.h. */
12336 _ACEOF
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h. */
12340 $ac_includes_default
12341 #include <$ac_header>
12342 _ACEOF
12343 rm -f conftest.$ac_objext
12344 if { (ac_try="$ac_compile"
12345 case "(($ac_try" in
12346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12347 *) ac_try_echo=$ac_try;;
12348 esac
12349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12350 $as_echo "$ac_try_echo") >&5
12351 (eval "$ac_compile") 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } && {
12358 test -z "$ac_c_werror_flag" ||
12359 test ! -s conftest.err
12360 } && test -s conftest.$ac_objext; then
12361 ac_header_compiler=yes
12362 else
12363 $as_echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.$ac_ext >&5
12366 ac_header_compiler=no
12369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12371 $as_echo "$ac_header_compiler" >&6; }
12373 # Is the header present?
12374 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12375 $as_echo_n "checking $ac_header presence... " >&6; }
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h. */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12382 #include <$ac_header>
12383 _ACEOF
12384 if { (ac_try="$ac_cpp conftest.$ac_ext"
12385 case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12388 esac
12389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12390 $as_echo "$ac_try_echo") >&5
12391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12392 ac_status=$?
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
12396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } >/dev/null && {
12398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12399 test ! -s conftest.err
12400 }; then
12401 ac_header_preproc=yes
12402 else
12403 $as_echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12406 ac_header_preproc=no
12409 rm -f conftest.err conftest.$ac_ext
12410 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12411 $as_echo "$ac_header_preproc" >&6; }
12413 # So? What about this header?
12414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12415 yes:no: )
12416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12417 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12420 ac_header_preproc=yes
12422 no:yes:* )
12423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12424 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12426 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12428 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12430 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12434 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12437 esac
12438 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12439 $as_echo_n "checking for $ac_header... " >&6; }
12440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12441 $as_echo_n "(cached) " >&6
12442 else
12443 eval "$as_ac_Header=\$ac_header_preproc"
12445 ac_res=`eval 'as_val=${'$as_ac_Header'}
12446 $as_echo "$as_val"'`
12447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12448 $as_echo "$ac_res" >&6; }
12451 if test `eval 'as_val=${'$as_ac_Header'}
12452 $as_echo "$as_val"'` = yes; then
12453 cat >>confdefs.h <<_ACEOF
12454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12455 _ACEOF
12459 done
12461 if test "$ac_cv_header_pthread_h"; then
12462 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12463 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12464 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12465 $as_echo_n "(cached) " >&6
12466 else
12467 ac_check_lib_save_LIBS=$LIBS
12468 LIBS="-lpthread $LIBS"
12469 cat >conftest.$ac_ext <<_ACEOF
12470 /* confdefs.h. */
12471 _ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12476 /* Override any GCC internal prototype to avoid an error.
12477 Use char because int might match the return type of a GCC
12478 builtin and then its argument prototype would still apply. */
12479 #ifdef __cplusplus
12480 extern "C"
12481 #endif
12482 char pthread_self ();
12484 main ()
12486 return pthread_self ();
12488 return 0;
12490 _ACEOF
12491 rm -f conftest.$ac_objext conftest$ac_exeext
12492 if { (ac_try="$ac_link"
12493 case "(($ac_try" in
12494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12495 *) ac_try_echo=$ac_try;;
12496 esac
12497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12498 $as_echo "$ac_try_echo") >&5
12499 (eval "$ac_link") 2>conftest.er1
12500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
12504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } && {
12506 test -z "$ac_c_werror_flag" ||
12507 test ! -s conftest.err
12508 } && test -s conftest$ac_exeext && {
12509 test "$cross_compiling" = yes ||
12510 $as_test_x conftest$ac_exeext
12511 }; then
12512 ac_cv_lib_pthread_pthread_self=yes
12513 else
12514 $as_echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12517 ac_cv_lib_pthread_pthread_self=no
12520 rm -rf conftest.dSYM
12521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12525 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12526 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12527 if test $ac_cv_lib_pthread_pthread_self = yes; then
12528 HAVE_GTK_AND_PTHREAD=yes
12532 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12533 case "${canonical}" in
12534 *-hpux*) ;;
12535 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12536 esac
12538 cat >>confdefs.h <<\_ACEOF
12539 #define HAVE_GTK_AND_PTHREAD 1
12540 _ACEOF
12546 HAVE_DBUS=no
12547 DBUS_OBJ=
12548 if test "${with_dbus}" = "yes"; then
12550 succeeded=no
12552 # Extract the first word of "pkg-config", so it can be a program name with args.
12553 set dummy pkg-config; ac_word=$2
12554 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12557 $as_echo_n "(cached) " >&6
12558 else
12559 case $PKG_CONFIG in
12560 [\\/]* | ?:[\\/]*)
12561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565 for as_dir in $PATH
12567 IFS=$as_save_IFS
12568 test -z "$as_dir" && as_dir=.
12569 for ac_exec_ext in '' $ac_executable_extensions; do
12570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12571 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12572 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12573 break 2
12575 done
12576 done
12577 IFS=$as_save_IFS
12579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12581 esac
12583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12584 if test -n "$PKG_CONFIG"; then
12585 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12586 $as_echo "$PKG_CONFIG" >&6; }
12587 else
12588 { $as_echo "$as_me:$LINENO: result: no" >&5
12589 $as_echo "no" >&6; }
12594 if test "$PKG_CONFIG" = "no" ; then
12595 HAVE_DBUS=no
12596 else
12597 PKG_CONFIG_MIN_VERSION=0.9.0
12598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12599 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12600 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12602 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12603 { $as_echo "$as_me:$LINENO: result: yes" >&5
12604 $as_echo "yes" >&6; }
12605 succeeded=yes
12607 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12608 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12609 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12610 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12611 $as_echo "$DBUS_CFLAGS" >&6; }
12613 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12614 $as_echo_n "checking DBUS_LIBS... " >&6; }
12615 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12616 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12617 $as_echo "$DBUS_LIBS" >&6; }
12618 else
12619 { $as_echo "$as_me:$LINENO: result: no" >&5
12620 $as_echo "no" >&6; }
12621 DBUS_CFLAGS=""
12622 DBUS_LIBS=""
12623 ## If we have a custom action on failure, don't print errors, but
12624 ## do set a variable so people can do so.
12625 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12631 else
12632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12637 if test $succeeded = yes; then
12638 HAVE_DBUS=yes
12639 else
12640 HAVE_DBUS=no
12643 if test "$HAVE_DBUS" = yes; then
12644 LIBS="$LIBS $DBUS_LIBS"
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_DBUS 1
12648 _ACEOF
12651 for ac_func in dbus_watch_get_unix_fd
12653 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12654 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12655 $as_echo_n "checking for $ac_func... " >&6; }
12656 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12657 $as_echo_n "(cached) " >&6
12658 else
12659 cat >conftest.$ac_ext <<_ACEOF
12660 /* confdefs.h. */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h. */
12665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12667 #define $ac_func innocuous_$ac_func
12669 /* System header to define __stub macros and hopefully few prototypes,
12670 which can conflict with char $ac_func (); below.
12671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12672 <limits.h> exists even on freestanding compilers. */
12674 #ifdef __STDC__
12675 # include <limits.h>
12676 #else
12677 # include <assert.h>
12678 #endif
12680 #undef $ac_func
12682 /* Override any GCC internal prototype to avoid an error.
12683 Use char because int might match the return type of a GCC
12684 builtin and then its argument prototype would still apply. */
12685 #ifdef __cplusplus
12686 extern "C"
12687 #endif
12688 char $ac_func ();
12689 /* The GNU C library defines this for functions which it implements
12690 to always fail with ENOSYS. Some functions are actually named
12691 something starting with __ and the normal name is an alias. */
12692 #if defined __stub_$ac_func || defined __stub___$ac_func
12693 choke me
12694 #endif
12697 main ()
12699 return $ac_func ();
12701 return 0;
12703 _ACEOF
12704 rm -f conftest.$ac_objext conftest$ac_exeext
12705 if { (ac_try="$ac_link"
12706 case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12709 esac
12710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12711 $as_echo "$ac_try_echo") >&5
12712 (eval "$ac_link") 2>conftest.er1
12713 ac_status=$?
12714 grep -v '^ *+' conftest.er1 >conftest.err
12715 rm -f conftest.er1
12716 cat conftest.err >&5
12717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } && {
12719 test -z "$ac_c_werror_flag" ||
12720 test ! -s conftest.err
12721 } && test -s conftest$ac_exeext && {
12722 test "$cross_compiling" = yes ||
12723 $as_test_x conftest$ac_exeext
12724 }; then
12725 eval "$as_ac_var=yes"
12726 else
12727 $as_echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12730 eval "$as_ac_var=no"
12733 rm -rf conftest.dSYM
12734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12735 conftest$ac_exeext conftest.$ac_ext
12737 ac_res=`eval 'as_val=${'$as_ac_var'}
12738 $as_echo "$as_val"'`
12739 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12740 $as_echo "$ac_res" >&6; }
12741 if test `eval 'as_val=${'$as_ac_var'}
12742 $as_echo "$as_val"'` = yes; then
12743 cat >>confdefs.h <<_ACEOF
12744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12745 _ACEOF
12748 done
12750 DBUS_OBJ=dbusbind.o
12755 HAVE_GCONF=no
12756 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
12758 succeeded=no
12760 # Extract the first word of "pkg-config", so it can be a program name with args.
12761 set dummy pkg-config; ac_word=$2
12762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12763 $as_echo_n "checking for $ac_word... " >&6; }
12764 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12765 $as_echo_n "(cached) " >&6
12766 else
12767 case $PKG_CONFIG in
12768 [\\/]* | ?:[\\/]*)
12769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12773 for as_dir in $PATH
12775 IFS=$as_save_IFS
12776 test -z "$as_dir" && as_dir=.
12777 for ac_exec_ext in '' $ac_executable_extensions; do
12778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12781 break 2
12783 done
12784 done
12785 IFS=$as_save_IFS
12787 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12789 esac
12791 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12792 if test -n "$PKG_CONFIG"; then
12793 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12794 $as_echo "$PKG_CONFIG" >&6; }
12795 else
12796 { $as_echo "$as_me:$LINENO: result: no" >&5
12797 $as_echo "no" >&6; }
12802 if test "$PKG_CONFIG" = "no" ; then
12803 HAVE_GCONF=no
12804 else
12805 PKG_CONFIG_MIN_VERSION=0.9.0
12806 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12807 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
12808 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12810 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12811 { $as_echo "$as_me:$LINENO: result: yes" >&5
12812 $as_echo "yes" >&6; }
12813 succeeded=yes
12815 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
12816 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12817 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12818 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
12819 $as_echo "$GCONF_CFLAGS" >&6; }
12821 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
12822 $as_echo_n "checking GCONF_LIBS... " >&6; }
12823 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12824 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
12825 $as_echo "$GCONF_LIBS" >&6; }
12826 else
12827 { $as_echo "$as_me:$LINENO: result: no" >&5
12828 $as_echo "no" >&6; }
12829 GCONF_CFLAGS=""
12830 GCONF_LIBS=""
12831 ## If we have a custom action on failure, don't print errors, but
12832 ## do set a variable so people can do so.
12833 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
12839 else
12840 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12841 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12845 if test $succeeded = yes; then
12846 HAVE_GCONF=yes
12847 else
12848 HAVE_GCONF=no
12851 if test "$HAVE_GCONF" = yes; then
12853 cat >>confdefs.h <<\_ACEOF
12854 #define HAVE_GCONF 1
12855 _ACEOF
12860 HAVE_LIBSELINUX=no
12861 LIBSELINUX_LIBS=
12862 if test "${with_selinux}" = "yes"; then
12863 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
12864 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12865 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
12866 $as_echo_n "(cached) " >&6
12867 else
12868 ac_check_lib_save_LIBS=$LIBS
12869 LIBS="-lselinux $LIBS"
12870 cat >conftest.$ac_ext <<_ACEOF
12871 /* confdefs.h. */
12872 _ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12877 /* Override any GCC internal prototype to avoid an error.
12878 Use char because int might match the return type of a GCC
12879 builtin and then its argument prototype would still apply. */
12880 #ifdef __cplusplus
12881 extern "C"
12882 #endif
12883 char lgetfilecon ();
12885 main ()
12887 return lgetfilecon ();
12889 return 0;
12891 _ACEOF
12892 rm -f conftest.$ac_objext conftest$ac_exeext
12893 if { (ac_try="$ac_link"
12894 case "(($ac_try" in
12895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12896 *) ac_try_echo=$ac_try;;
12897 esac
12898 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12899 $as_echo "$ac_try_echo") >&5
12900 (eval "$ac_link") 2>conftest.er1
12901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest$ac_exeext && {
12910 test "$cross_compiling" = yes ||
12911 $as_test_x conftest$ac_exeext
12912 }; then
12913 ac_cv_lib_selinux_lgetfilecon=yes
12914 else
12915 $as_echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 ac_cv_lib_selinux_lgetfilecon=no
12921 rm -rf conftest.dSYM
12922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12923 conftest$ac_exeext conftest.$ac_ext
12924 LIBS=$ac_check_lib_save_LIBS
12926 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12927 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12928 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
12929 HAVE_LIBSELINUX=yes
12930 else
12931 HAVE_LIBSELINUX=no
12934 if test "$HAVE_LIBSELINUX" = yes; then
12936 cat >>confdefs.h <<\_ACEOF
12937 #define HAVE_LIBSELINUX 1
12938 _ACEOF
12940 LIBSELINUX_LIBS=-lselinux
12945 HAVE_XAW3D=no
12946 LUCID_LIBW=
12947 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12948 if test "$with_xaw3d" != no; then
12949 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
12950 $as_echo_n "checking for xaw3d... " >&6; }
12951 if test "${emacs_cv_xaw3d+set}" = set; then
12952 $as_echo_n "(cached) " >&6
12953 else
12954 cat >conftest.$ac_ext <<_ACEOF
12955 /* confdefs.h. */
12956 _ACEOF
12957 cat confdefs.h >>conftest.$ac_ext
12958 cat >>conftest.$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12961 #include <X11/Intrinsic.h>
12962 #include <X11/Xaw3d/Simple.h>
12964 main ()
12968 return 0;
12970 _ACEOF
12971 rm -f conftest.$ac_objext conftest$ac_exeext
12972 if { (ac_try="$ac_link"
12973 case "(($ac_try" in
12974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975 *) ac_try_echo=$ac_try;;
12976 esac
12977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12978 $as_echo "$ac_try_echo") >&5
12979 (eval "$ac_link") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest$ac_exeext && {
12989 test "$cross_compiling" = yes ||
12990 $as_test_x conftest$ac_exeext
12991 }; then
12992 emacs_cv_xaw3d=yes
12993 else
12994 $as_echo "$as_me: failed program was:" >&5
12995 sed 's/^/| /' conftest.$ac_ext >&5
12997 emacs_cv_xaw3d=no
13000 rm -rf conftest.dSYM
13001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13002 conftest$ac_exeext conftest.$ac_ext
13005 else
13006 emacs_cv_xaw3d=no
13008 if test $emacs_cv_xaw3d = yes; then
13009 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13010 $as_echo "yes; using Lucid toolkit" >&6; }
13011 USE_X_TOOLKIT=LUCID
13012 HAVE_XAW3D=yes
13013 LUCID_LIBW=-lXaw3d
13015 cat >>confdefs.h <<\_ACEOF
13016 #define HAVE_XAW3D 1
13017 _ACEOF
13019 else
13020 { $as_echo "$as_me:$LINENO: result: no" >&5
13021 $as_echo "no" >&6; }
13022 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
13023 $as_echo_n "checking for libXaw... " >&6; }
13024 if test "${emacs_cv_xaw+set}" = set; then
13025 $as_echo_n "(cached) " >&6
13026 else
13027 cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h. */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13034 #include <X11/Intrinsic.h>
13035 #include <X11/Xaw/Simple.h>
13037 main ()
13041 return 0;
13043 _ACEOF
13044 rm -f conftest.$ac_objext conftest$ac_exeext
13045 if { (ac_try="$ac_link"
13046 case "(($ac_try" in
13047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048 *) ac_try_echo=$ac_try;;
13049 esac
13050 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13051 $as_echo "$ac_try_echo") >&5
13052 (eval "$ac_link") 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } && {
13059 test -z "$ac_c_werror_flag" ||
13060 test ! -s conftest.err
13061 } && test -s conftest$ac_exeext && {
13062 test "$cross_compiling" = yes ||
13063 $as_test_x conftest$ac_exeext
13064 }; then
13065 emacs_cv_xaw=yes
13066 else
13067 $as_echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13070 emacs_cv_xaw=no
13073 rm -rf conftest.dSYM
13074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13075 conftest$ac_exeext conftest.$ac_ext
13078 if test $emacs_cv_xaw = yes; then
13079 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
13080 $as_echo "yes; using Lucid toolkit" >&6; }
13081 USE_X_TOOLKIT=LUCID
13082 LUCID_LIBW=-lXaw
13083 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13084 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13085 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13086 { (exit 1); exit 1; }; }
13087 else
13088 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
13089 $as_echo "no; do not use toolkit by default" >&6; }
13090 USE_X_TOOLKIT=none
13095 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13097 LIBXTR6=
13098 if test "${USE_X_TOOLKIT}" != "none"; then
13099 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
13100 $as_echo_n "checking X11 toolkit version... " >&6; }
13101 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
13102 $as_echo_n "(cached) " >&6
13103 else
13104 cat >conftest.$ac_ext <<_ACEOF
13105 /* confdefs.h. */
13106 _ACEOF
13107 cat confdefs.h >>conftest.$ac_ext
13108 cat >>conftest.$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13110 #include <X11/Intrinsic.h>
13112 main ()
13114 #if XtSpecificationRelease < 6
13115 fail;
13116 #endif
13119 return 0;
13121 _ACEOF
13122 rm -f conftest.$ac_objext conftest$ac_exeext
13123 if { (ac_try="$ac_link"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127 esac
13128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13129 $as_echo "$ac_try_echo") >&5
13130 (eval "$ac_link") 2>conftest.er1
13131 ac_status=$?
13132 grep -v '^ *+' conftest.er1 >conftest.err
13133 rm -f conftest.er1
13134 cat conftest.err >&5
13135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } && {
13137 test -z "$ac_c_werror_flag" ||
13138 test ! -s conftest.err
13139 } && test -s conftest$ac_exeext && {
13140 test "$cross_compiling" = yes ||
13141 $as_test_x conftest$ac_exeext
13142 }; then
13143 emacs_cv_x11_toolkit_version_6=yes
13144 else
13145 $as_echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.$ac_ext >&5
13148 emacs_cv_x11_toolkit_version_6=no
13151 rm -rf conftest.dSYM
13152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13153 conftest$ac_exeext conftest.$ac_ext
13156 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13157 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13158 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
13159 $as_echo "6 or newer" >&6; }
13161 cat >>confdefs.h <<\_ACEOF
13162 #define HAVE_X11XTR6 1
13163 _ACEOF
13165 LIBXTR6="-lSM -lICE"
13166 case "$opsys" in
13167 ## Use libw.a along with X11R6 Xt.
13168 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
13169 esac
13170 else
13171 { $as_echo "$as_me:$LINENO: result: before 6" >&5
13172 $as_echo "before 6" >&6; }
13175 OLDLIBS="$LIBS"
13176 if test x$HAVE_X11XTR6 = xyes; then
13177 LIBS="-lXt -lSM -lICE $LIBS"
13178 else
13179 LIBS="-lXt $LIBS"
13182 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13183 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13184 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13185 $as_echo_n "(cached) " >&6
13186 else
13187 ac_check_lib_save_LIBS=$LIBS
13188 LIBS="-lXmu $LIBS"
13189 cat >conftest.$ac_ext <<_ACEOF
13190 /* confdefs.h. */
13191 _ACEOF
13192 cat confdefs.h >>conftest.$ac_ext
13193 cat >>conftest.$ac_ext <<_ACEOF
13194 /* end confdefs.h. */
13196 /* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13199 #ifdef __cplusplus
13200 extern "C"
13201 #endif
13202 char XmuConvertStandardSelection ();
13204 main ()
13206 return XmuConvertStandardSelection ();
13208 return 0;
13210 _ACEOF
13211 rm -f conftest.$ac_objext conftest$ac_exeext
13212 if { (ac_try="$ac_link"
13213 case "(($ac_try" in
13214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13215 *) ac_try_echo=$ac_try;;
13216 esac
13217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13218 $as_echo "$ac_try_echo") >&5
13219 (eval "$ac_link") 2>conftest.er1
13220 ac_status=$?
13221 grep -v '^ *+' conftest.er1 >conftest.err
13222 rm -f conftest.er1
13223 cat conftest.err >&5
13224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } && {
13226 test -z "$ac_c_werror_flag" ||
13227 test ! -s conftest.err
13228 } && test -s conftest$ac_exeext && {
13229 test "$cross_compiling" = yes ||
13230 $as_test_x conftest$ac_exeext
13231 }; then
13232 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13233 else
13234 $as_echo "$as_me: failed program was:" >&5
13235 sed 's/^/| /' conftest.$ac_ext >&5
13237 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13240 rm -rf conftest.dSYM
13241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13242 conftest$ac_exeext conftest.$ac_ext
13243 LIBS=$ac_check_lib_save_LIBS
13245 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13246 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13247 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13248 cat >>confdefs.h <<_ACEOF
13249 #define HAVE_LIBXMU 1
13250 _ACEOF
13252 LIBS="-lXmu $LIBS"
13256 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13260 LIBXMU=-lXmu
13261 case "$machine" in
13262 ## These machines don't supply Xmu.
13263 hpux* | aix4-2 )
13264 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
13266 esac
13269 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13270 if test "${HAVE_X11}" = "yes"; then
13271 if test "${USE_X_TOOLKIT}" != "none"; then
13273 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13274 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13275 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13276 $as_echo_n "(cached) " >&6
13277 else
13278 ac_check_lib_save_LIBS=$LIBS
13279 LIBS="-lXext $LIBS"
13280 cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h. */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13290 #ifdef __cplusplus
13291 extern "C"
13292 #endif
13293 char XShapeQueryExtension ();
13295 main ()
13297 return XShapeQueryExtension ();
13299 return 0;
13301 _ACEOF
13302 rm -f conftest.$ac_objext conftest$ac_exeext
13303 if { (ac_try="$ac_link"
13304 case "(($ac_try" in
13305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306 *) ac_try_echo=$ac_try;;
13307 esac
13308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13309 $as_echo "$ac_try_echo") >&5
13310 (eval "$ac_link") 2>conftest.er1
13311 ac_status=$?
13312 grep -v '^ *+' conftest.er1 >conftest.err
13313 rm -f conftest.er1
13314 cat conftest.err >&5
13315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } && {
13317 test -z "$ac_c_werror_flag" ||
13318 test ! -s conftest.err
13319 } && test -s conftest$ac_exeext && {
13320 test "$cross_compiling" = yes ||
13321 $as_test_x conftest$ac_exeext
13322 }; then
13323 ac_cv_lib_Xext_XShapeQueryExtension=yes
13324 else
13325 $as_echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13328 ac_cv_lib_Xext_XShapeQueryExtension=no
13331 rm -rf conftest.dSYM
13332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13333 conftest$ac_exeext conftest.$ac_ext
13334 LIBS=$ac_check_lib_save_LIBS
13336 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13337 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13338 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13339 cat >>confdefs.h <<_ACEOF
13340 #define HAVE_LIBXEXT 1
13341 _ACEOF
13343 LIBS="-lXext $LIBS"
13350 LIBXP=
13351 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13352 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13353 $as_echo_n "checking for Motif version 2.1... " >&6; }
13354 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13355 $as_echo_n "(cached) " >&6
13356 else
13357 cat >conftest.$ac_ext <<_ACEOF
13358 /* confdefs.h. */
13359 _ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363 #include <Xm/Xm.h>
13365 main ()
13367 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13368 int x = 5;
13369 #else
13370 Motif version prior to 2.1.
13371 #endif
13373 return 0;
13375 _ACEOF
13376 rm -f conftest.$ac_objext
13377 if { (ac_try="$ac_compile"
13378 case "(($ac_try" in
13379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13380 *) ac_try_echo=$ac_try;;
13381 esac
13382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13383 $as_echo "$ac_try_echo") >&5
13384 (eval "$ac_compile") 2>conftest.er1
13385 ac_status=$?
13386 grep -v '^ *+' conftest.er1 >conftest.err
13387 rm -f conftest.er1
13388 cat conftest.err >&5
13389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } && {
13391 test -z "$ac_c_werror_flag" ||
13392 test ! -s conftest.err
13393 } && test -s conftest.$ac_objext; then
13394 emacs_cv_motif_version_2_1=yes
13395 else
13396 $as_echo "$as_me: failed program was:" >&5
13397 sed 's/^/| /' conftest.$ac_ext >&5
13399 emacs_cv_motif_version_2_1=no
13402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13404 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13405 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13406 if test $emacs_cv_motif_version_2_1 = yes; then
13407 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13408 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13409 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13410 $as_echo_n "(cached) " >&6
13411 else
13412 ac_check_lib_save_LIBS=$LIBS
13413 LIBS="-lXp $LIBS"
13414 cat >conftest.$ac_ext <<_ACEOF
13415 /* confdefs.h. */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13421 /* Override any GCC internal prototype to avoid an error.
13422 Use char because int might match the return type of a GCC
13423 builtin and then its argument prototype would still apply. */
13424 #ifdef __cplusplus
13425 extern "C"
13426 #endif
13427 char XpCreateContext ();
13429 main ()
13431 return XpCreateContext ();
13433 return 0;
13435 _ACEOF
13436 rm -f conftest.$ac_objext conftest$ac_exeext
13437 if { (ac_try="$ac_link"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13441 esac
13442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13443 $as_echo "$ac_try_echo") >&5
13444 (eval "$ac_link") 2>conftest.er1
13445 ac_status=$?
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
13449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } && {
13451 test -z "$ac_c_werror_flag" ||
13452 test ! -s conftest.err
13453 } && test -s conftest$ac_exeext && {
13454 test "$cross_compiling" = yes ||
13455 $as_test_x conftest$ac_exeext
13456 }; then
13457 ac_cv_lib_Xp_XpCreateContext=yes
13458 else
13459 $as_echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13462 ac_cv_lib_Xp_XpCreateContext=no
13465 rm -rf conftest.dSYM
13466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13467 conftest$ac_exeext conftest.$ac_ext
13468 LIBS=$ac_check_lib_save_LIBS
13470 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13471 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13472 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13473 LIBXP=-lXp
13476 else
13477 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13478 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13479 if test "${emacs_cv_lesstif+set}" = set; then
13480 $as_echo_n "(cached) " >&6
13481 else
13482 # We put this in CFLAGS temporarily to precede other -I options
13483 # that might be in CFLAGS temporarily.
13484 # We put this in CPPFLAGS where it precedes the other -I options.
13485 OLD_CPPFLAGS=$CPPFLAGS
13486 OLD_CFLAGS=$CFLAGS
13487 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13488 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13489 cat >conftest.$ac_ext <<_ACEOF
13490 /* confdefs.h. */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13497 main ()
13499 int x = 5;
13501 return 0;
13503 _ACEOF
13504 rm -f conftest.$ac_objext
13505 if { (ac_try="$ac_compile"
13506 case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509 esac
13510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13511 $as_echo "$ac_try_echo") >&5
13512 (eval "$ac_compile") 2>conftest.er1
13513 ac_status=$?
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
13516 cat conftest.err >&5
13517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } && {
13519 test -z "$ac_c_werror_flag" ||
13520 test ! -s conftest.err
13521 } && test -s conftest.$ac_objext; then
13522 emacs_cv_lesstif=yes
13523 else
13524 $as_echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13527 emacs_cv_lesstif=no
13530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13532 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13533 $as_echo "$emacs_cv_lesstif" >&6; }
13534 if test $emacs_cv_lesstif = yes; then
13535 # Make sure this -I option remains in CPPFLAGS after it is set
13536 # back to REAL_CPPFLAGS.
13537 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13538 # have those other -I options anyway. Ultimately, having this
13539 # directory ultimately in CPPFLAGS will be enough.
13540 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13541 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13542 else
13543 CFLAGS=$OLD_CFLAGS
13544 CPPFLAGS=$OLD_CPPFLAGS
13551 USE_TOOLKIT_SCROLL_BARS=no
13552 if test "${with_toolkit_scroll_bars}" != "no"; then
13553 if test "${USE_X_TOOLKIT}" != "none"; then
13554 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13555 cat >>confdefs.h <<\_ACEOF
13556 #define USE_TOOLKIT_SCROLL_BARS 1
13557 _ACEOF
13559 HAVE_XAW3D=no
13560 USE_TOOLKIT_SCROLL_BARS=yes
13561 elif test "${HAVE_XAW3D}" = "yes"; then
13562 cat >>confdefs.h <<\_ACEOF
13563 #define USE_TOOLKIT_SCROLL_BARS 1
13564 _ACEOF
13566 USE_TOOLKIT_SCROLL_BARS=yes
13568 elif test "${HAVE_GTK}" = "yes"; then
13569 cat >>confdefs.h <<\_ACEOF
13570 #define USE_TOOLKIT_SCROLL_BARS 1
13571 _ACEOF
13573 USE_TOOLKIT_SCROLL_BARS=yes
13574 elif test "${HAVE_NS}" = "yes"; then
13575 cat >>confdefs.h <<\_ACEOF
13576 #define USE_TOOLKIT_SCROLL_BARS 1
13577 _ACEOF
13579 USE_TOOLKIT_SCROLL_BARS=yes
13583 cat >conftest.$ac_ext <<_ACEOF
13584 /* confdefs.h. */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13590 #include <X11/Xlib.h>
13591 #include <X11/Xresource.h>
13593 main ()
13595 XIMProc callback;
13597 return 0;
13599 _ACEOF
13600 rm -f conftest.$ac_objext
13601 if { (ac_try="$ac_compile"
13602 case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605 esac
13606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13607 $as_echo "$ac_try_echo") >&5
13608 (eval "$ac_compile") 2>conftest.er1
13609 ac_status=$?
13610 grep -v '^ *+' conftest.er1 >conftest.err
13611 rm -f conftest.er1
13612 cat conftest.err >&5
13613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13614 (exit $ac_status); } && {
13615 test -z "$ac_c_werror_flag" ||
13616 test ! -s conftest.err
13617 } && test -s conftest.$ac_objext; then
13618 HAVE_XIM=yes
13620 cat >>confdefs.h <<\_ACEOF
13621 #define HAVE_XIM 1
13622 _ACEOF
13624 else
13625 $as_echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 HAVE_XIM=no
13631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634 if test "${with_xim}" != "no"; then
13636 cat >>confdefs.h <<\_ACEOF
13637 #define USE_XIM 1
13638 _ACEOF
13643 if test "${HAVE_XIM}" != "no"; then
13644 late_CFLAGS=$CFLAGS
13645 if test "$GCC" = yes; then
13646 CFLAGS="$CFLAGS --pedantic-errors"
13648 cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h. */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13655 #include <X11/Xlib.h>
13656 #include <X11/Xresource.h>
13658 main ()
13660 Display *display;
13661 XrmDatabase db;
13662 char *res_name;
13663 char *res_class;
13664 XIMProc callback;
13665 XPointer *client_data;
13666 #ifndef __GNUC__
13667 /* If we're not using GCC, it's probably not XFree86, and this is
13668 probably right, but we can't use something like --pedantic-errors. */
13669 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13670 char*, XIMProc, XPointer*);
13671 #endif
13672 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13673 client_data);
13675 return 0;
13677 _ACEOF
13678 rm -f conftest.$ac_objext
13679 if { (ac_try="$ac_compile"
13680 case "(($ac_try" in
13681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682 *) ac_try_echo=$ac_try;;
13683 esac
13684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13685 $as_echo "$ac_try_echo") >&5
13686 (eval "$ac_compile") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } && {
13693 test -z "$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13695 } && test -s conftest.$ac_objext; then
13696 emacs_cv_arg6_star=yes
13697 else
13698 $as_echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13706 if test "$emacs_cv_arg6_star" = yes; then
13707 cat >>confdefs.h <<\_ACEOF
13708 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13709 _ACEOF
13711 else
13712 cat >>confdefs.h <<\_ACEOF
13713 #define XRegisterIMInstantiateCallback_arg6 XPointer
13714 _ACEOF
13717 CFLAGS=$late_CFLAGS
13720 ### Start of font-backend (under any platform) section.
13721 # (nothing here yet -- this is a placeholder)
13722 ### End of font-backend (under any platform) section.
13724 ### Start of font-backend (under X11) section.
13725 if test "${HAVE_X11}" = "yes"; then
13727 succeeded=no
13729 # Extract the first word of "pkg-config", so it can be a program name with args.
13730 set dummy pkg-config; ac_word=$2
13731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13732 $as_echo_n "checking for $ac_word... " >&6; }
13733 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13734 $as_echo_n "(cached) " >&6
13735 else
13736 case $PKG_CONFIG in
13737 [\\/]* | ?:[\\/]*)
13738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13744 IFS=$as_save_IFS
13745 test -z "$as_dir" && as_dir=.
13746 for ac_exec_ext in '' $ac_executable_extensions; do
13747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13749 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13750 break 2
13752 done
13753 done
13754 IFS=$as_save_IFS
13756 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13758 esac
13760 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13761 if test -n "$PKG_CONFIG"; then
13762 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13763 $as_echo "$PKG_CONFIG" >&6; }
13764 else
13765 { $as_echo "$as_me:$LINENO: result: no" >&5
13766 $as_echo "no" >&6; }
13771 if test "$PKG_CONFIG" = "no" ; then
13772 HAVE_FC=no
13773 else
13774 PKG_CONFIG_MIN_VERSION=0.9.0
13775 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13776 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
13777 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13779 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13780 { $as_echo "$as_me:$LINENO: result: yes" >&5
13781 $as_echo "yes" >&6; }
13782 succeeded=yes
13784 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13785 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13786 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13787 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13788 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13790 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13791 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13792 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13793 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13794 $as_echo "$FONTCONFIG_LIBS" >&6; }
13795 else
13796 { $as_echo "$as_me:$LINENO: result: no" >&5
13797 $as_echo "no" >&6; }
13798 FONTCONFIG_CFLAGS=""
13799 FONTCONFIG_LIBS=""
13800 ## If we have a custom action on failure, don't print errors, but
13801 ## do set a variable so people can do so.
13802 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
13808 else
13809 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13810 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13814 if test $succeeded = yes; then
13815 HAVE_FC=yes
13816 else
13817 HAVE_FC=no
13821 ## Use -lXft if available, unless `--with-xft=no'.
13822 HAVE_XFT=maybe
13823 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
13824 with_xft="no";
13826 if test "x${with_xft}" != "xno"; then
13829 succeeded=no
13831 # Extract the first word of "pkg-config", so it can be a program name with args.
13832 set dummy pkg-config; ac_word=$2
13833 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13834 $as_echo_n "checking for $ac_word... " >&6; }
13835 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13836 $as_echo_n "(cached) " >&6
13837 else
13838 case $PKG_CONFIG in
13839 [\\/]* | ?:[\\/]*)
13840 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13844 for as_dir in $PATH
13846 IFS=$as_save_IFS
13847 test -z "$as_dir" && as_dir=.
13848 for ac_exec_ext in '' $ac_executable_extensions; do
13849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13850 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13852 break 2
13854 done
13855 done
13856 IFS=$as_save_IFS
13858 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13860 esac
13862 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13863 if test -n "$PKG_CONFIG"; then
13864 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13865 $as_echo "$PKG_CONFIG" >&6; }
13866 else
13867 { $as_echo "$as_me:$LINENO: result: no" >&5
13868 $as_echo "no" >&6; }
13873 if test "$PKG_CONFIG" = "no" ; then
13874 HAVE_XFT=no
13875 else
13876 PKG_CONFIG_MIN_VERSION=0.9.0
13877 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13878 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
13879 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13881 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13882 { $as_echo "$as_me:$LINENO: result: yes" >&5
13883 $as_echo "yes" >&6; }
13884 succeeded=yes
13886 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
13887 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13888 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13889 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
13890 $as_echo "$XFT_CFLAGS" >&6; }
13892 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
13893 $as_echo_n "checking XFT_LIBS... " >&6; }
13894 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13895 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
13896 $as_echo "$XFT_LIBS" >&6; }
13897 else
13898 { $as_echo "$as_me:$LINENO: result: no" >&5
13899 $as_echo "no" >&6; }
13900 XFT_CFLAGS=""
13901 XFT_LIBS=""
13902 ## If we have a custom action on failure, don't print errors, but
13903 ## do set a variable so people can do so.
13904 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
13910 else
13911 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13912 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13916 if test $succeeded = yes; then
13918 else
13919 HAVE_XFT=no
13922 ## Because xftfont.c uses XRenderQueryExtension, we also
13923 ## need to link to -lXrender.
13924 HAVE_XRENDER=no
13925 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
13926 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13927 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
13928 $as_echo_n "(cached) " >&6
13929 else
13930 ac_check_lib_save_LIBS=$LIBS
13931 LIBS="-lXrender $LIBS"
13932 cat >conftest.$ac_ext <<_ACEOF
13933 /* confdefs.h. */
13934 _ACEOF
13935 cat confdefs.h >>conftest.$ac_ext
13936 cat >>conftest.$ac_ext <<_ACEOF
13937 /* end confdefs.h. */
13939 /* Override any GCC internal prototype to avoid an error.
13940 Use char because int might match the return type of a GCC
13941 builtin and then its argument prototype would still apply. */
13942 #ifdef __cplusplus
13943 extern "C"
13944 #endif
13945 char XRenderQueryExtension ();
13947 main ()
13949 return XRenderQueryExtension ();
13951 return 0;
13953 _ACEOF
13954 rm -f conftest.$ac_objext conftest$ac_exeext
13955 if { (ac_try="$ac_link"
13956 case "(($ac_try" in
13957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13958 *) ac_try_echo=$ac_try;;
13959 esac
13960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13961 $as_echo "$ac_try_echo") >&5
13962 (eval "$ac_link") 2>conftest.er1
13963 ac_status=$?
13964 grep -v '^ *+' conftest.er1 >conftest.err
13965 rm -f conftest.er1
13966 cat conftest.err >&5
13967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968 (exit $ac_status); } && {
13969 test -z "$ac_c_werror_flag" ||
13970 test ! -s conftest.err
13971 } && test -s conftest$ac_exeext && {
13972 test "$cross_compiling" = yes ||
13973 $as_test_x conftest$ac_exeext
13974 }; then
13975 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13976 else
13977 $as_echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 ac_cv_lib_Xrender_XRenderQueryExtension=no
13983 rm -rf conftest.dSYM
13984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13985 conftest$ac_exeext conftest.$ac_ext
13986 LIBS=$ac_check_lib_save_LIBS
13988 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13989 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13990 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
13991 HAVE_XRENDER=yes
13994 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13995 OLD_CPPFLAGS="$CPPFLAGS"
13996 OLD_CFLAGS="$CFLAGS"
13997 OLD_LIBS="$LIBS"
13998 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13999 CFLAGS="$CFLAGS $XFT_CFLAGS"
14000 XFT_LIBS="-lXrender $XFT_LIBS"
14001 LIBS="$XFT_LIBS $LIBS"
14002 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14003 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14004 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14005 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14006 $as_echo_n "(cached) " >&6
14008 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14009 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14010 else
14011 # Is the header compilable?
14012 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14013 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14014 cat >conftest.$ac_ext <<_ACEOF
14015 /* confdefs.h. */
14016 _ACEOF
14017 cat confdefs.h >>conftest.$ac_ext
14018 cat >>conftest.$ac_ext <<_ACEOF
14019 /* end confdefs.h. */
14020 $ac_includes_default
14021 #include <X11/Xft/Xft.h>
14022 _ACEOF
14023 rm -f conftest.$ac_objext
14024 if { (ac_try="$ac_compile"
14025 case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14028 esac
14029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14030 $as_echo "$ac_try_echo") >&5
14031 (eval "$ac_compile") 2>conftest.er1
14032 ac_status=$?
14033 grep -v '^ *+' conftest.er1 >conftest.err
14034 rm -f conftest.er1
14035 cat conftest.err >&5
14036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037 (exit $ac_status); } && {
14038 test -z "$ac_c_werror_flag" ||
14039 test ! -s conftest.err
14040 } && test -s conftest.$ac_objext; then
14041 ac_header_compiler=yes
14042 else
14043 $as_echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 ac_header_compiler=no
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14050 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14051 $as_echo "$ac_header_compiler" >&6; }
14053 # Is the header present?
14054 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14055 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14056 cat >conftest.$ac_ext <<_ACEOF
14057 /* confdefs.h. */
14058 _ACEOF
14059 cat confdefs.h >>conftest.$ac_ext
14060 cat >>conftest.$ac_ext <<_ACEOF
14061 /* end confdefs.h. */
14062 #include <X11/Xft/Xft.h>
14063 _ACEOF
14064 if { (ac_try="$ac_cpp conftest.$ac_ext"
14065 case "(($ac_try" in
14066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067 *) ac_try_echo=$ac_try;;
14068 esac
14069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14070 $as_echo "$ac_try_echo") >&5
14071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14072 ac_status=$?
14073 grep -v '^ *+' conftest.er1 >conftest.err
14074 rm -f conftest.er1
14075 cat conftest.err >&5
14076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } >/dev/null && {
14078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14079 test ! -s conftest.err
14080 }; then
14081 ac_header_preproc=yes
14082 else
14083 $as_echo "$as_me: failed program was:" >&5
14084 sed 's/^/| /' conftest.$ac_ext >&5
14086 ac_header_preproc=no
14089 rm -f conftest.err conftest.$ac_ext
14090 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14091 $as_echo "$ac_header_preproc" >&6; }
14093 # So? What about this header?
14094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14095 yes:no: )
14096 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14097 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14098 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14099 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14100 ac_header_preproc=yes
14102 no:yes:* )
14103 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14104 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14105 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14106 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14107 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14108 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14109 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14110 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14111 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14112 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14113 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14114 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14117 esac
14118 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14119 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14120 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14121 $as_echo_n "(cached) " >&6
14122 else
14123 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14125 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14126 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14129 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14130 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14131 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14132 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
14133 $as_echo_n "(cached) " >&6
14134 else
14135 ac_check_lib_save_LIBS=$LIBS
14136 LIBS="-lXft $XFT_LIBS $LIBS"
14137 cat >conftest.$ac_ext <<_ACEOF
14138 /* confdefs.h. */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14144 /* Override any GCC internal prototype to avoid an error.
14145 Use char because int might match the return type of a GCC
14146 builtin and then its argument prototype would still apply. */
14147 #ifdef __cplusplus
14148 extern "C"
14149 #endif
14150 char XftFontOpen ();
14152 main ()
14154 return XftFontOpen ();
14156 return 0;
14158 _ACEOF
14159 rm -f conftest.$ac_objext conftest$ac_exeext
14160 if { (ac_try="$ac_link"
14161 case "(($ac_try" in
14162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14164 esac
14165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14166 $as_echo "$ac_try_echo") >&5
14167 (eval "$ac_link") 2>conftest.er1
14168 ac_status=$?
14169 grep -v '^ *+' conftest.er1 >conftest.err
14170 rm -f conftest.er1
14171 cat conftest.err >&5
14172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); } && {
14174 test -z "$ac_c_werror_flag" ||
14175 test ! -s conftest.err
14176 } && test -s conftest$ac_exeext && {
14177 test "$cross_compiling" = yes ||
14178 $as_test_x conftest$ac_exeext
14179 }; then
14180 ac_cv_lib_Xft_XftFontOpen=yes
14181 else
14182 $as_echo "$as_me: failed program was:" >&5
14183 sed 's/^/| /' conftest.$ac_ext >&5
14185 ac_cv_lib_Xft_XftFontOpen=no
14188 rm -rf conftest.dSYM
14189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14190 conftest$ac_exeext conftest.$ac_ext
14191 LIBS=$ac_check_lib_save_LIBS
14193 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14194 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14195 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
14196 HAVE_XFT=yes
14203 if test "${HAVE_XFT}" = "yes"; then
14205 cat >>confdefs.h <<\_ACEOF
14206 #define HAVE_XFT 1
14207 _ACEOF
14210 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14211 else
14212 CPPFLAGS="$OLD_CPPFLAGS"
14213 CFLAGS="$OLD_CFLAGS"
14214 LIBS="$OLD_LIBS"
14215 fi # "${HAVE_XFT}" = "yes"
14216 fi # "$HAVE_XFT" != no
14217 fi # "x${with_xft}" != "xno"
14219 if test "$HAVE_XFT" != "yes"; then
14220 HAVE_XFT=no
14224 HAVE_FREETYPE=no
14225 ## We used to allow building with FreeType and without Xft.
14226 ## However, the ftx font backend driver is not in good shape.
14227 if test "${HAVE_XFT}" = "yes"; then
14228 HAVE_FREETYPE=yes
14229 FONTCONFIG_CFLAGS=
14230 FONTCONFIG_LIBS=
14233 HAVE_LIBOTF=no
14234 if test "${HAVE_FREETYPE}" = "yes"; then
14236 cat >>confdefs.h <<\_ACEOF
14237 #define HAVE_FREETYPE 1
14238 _ACEOF
14240 if test "${with_libotf}" != "no"; then
14242 succeeded=no
14244 # Extract the first word of "pkg-config", so it can be a program name with args.
14245 set dummy pkg-config; ac_word=$2
14246 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14247 $as_echo_n "checking for $ac_word... " >&6; }
14248 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14249 $as_echo_n "(cached) " >&6
14250 else
14251 case $PKG_CONFIG in
14252 [\\/]* | ?:[\\/]*)
14253 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14257 for as_dir in $PATH
14259 IFS=$as_save_IFS
14260 test -z "$as_dir" && as_dir=.
14261 for ac_exec_ext in '' $ac_executable_extensions; do
14262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14263 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14264 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14265 break 2
14267 done
14268 done
14269 IFS=$as_save_IFS
14271 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14273 esac
14275 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14276 if test -n "$PKG_CONFIG"; then
14277 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14278 $as_echo "$PKG_CONFIG" >&6; }
14279 else
14280 { $as_echo "$as_me:$LINENO: result: no" >&5
14281 $as_echo "no" >&6; }
14286 if test "$PKG_CONFIG" = "no" ; then
14287 HAVE_LIBOTF=no
14288 else
14289 PKG_CONFIG_MIN_VERSION=0.9.0
14290 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14291 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
14292 $as_echo_n "checking for libotf... " >&6; }
14294 if $PKG_CONFIG --exists "libotf" 2>&5; then
14295 { $as_echo "$as_me:$LINENO: result: yes" >&5
14296 $as_echo "yes" >&6; }
14297 succeeded=yes
14299 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
14300 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14301 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14302 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
14303 $as_echo "$LIBOTF_CFLAGS" >&6; }
14305 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
14306 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14307 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14308 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
14309 $as_echo "$LIBOTF_LIBS" >&6; }
14310 else
14311 { $as_echo "$as_me:$LINENO: result: no" >&5
14312 $as_echo "no" >&6; }
14313 LIBOTF_CFLAGS=""
14314 LIBOTF_LIBS=""
14315 ## If we have a custom action on failure, don't print errors, but
14316 ## do set a variable so people can do so.
14317 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
14323 else
14324 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14325 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14329 if test $succeeded = yes; then
14330 HAVE_LIBOTF=yes
14331 else
14332 HAVE_LIBOTF=no
14335 if test "$HAVE_LIBOTF" = "yes"; then
14337 cat >>confdefs.h <<\_ACEOF
14338 #define HAVE_LIBOTF 1
14339 _ACEOF
14341 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14342 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14343 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
14344 $as_echo_n "(cached) " >&6
14345 else
14346 ac_check_lib_save_LIBS=$LIBS
14347 LIBS="-lotf $LIBS"
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. */
14355 /* Override any GCC internal prototype to avoid an error.
14356 Use char because int might match the return type of a GCC
14357 builtin and then its argument prototype would still apply. */
14358 #ifdef __cplusplus
14359 extern "C"
14360 #endif
14361 char OTF_get_variation_glyphs ();
14363 main ()
14365 return OTF_get_variation_glyphs ();
14367 return 0;
14369 _ACEOF
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14375 esac
14376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14377 $as_echo "$ac_try_echo") >&5
14378 (eval "$ac_link") 2>conftest.er1
14379 ac_status=$?
14380 grep -v '^ *+' conftest.er1 >conftest.err
14381 rm -f conftest.er1
14382 cat conftest.err >&5
14383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } && {
14385 test -z "$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14387 } && test -s conftest$ac_exeext && {
14388 test "$cross_compiling" = yes ||
14389 $as_test_x conftest$ac_exeext
14390 }; then
14391 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14392 else
14393 $as_echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14399 rm -rf conftest.dSYM
14400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14401 conftest$ac_exeext conftest.$ac_ext
14402 LIBS=$ac_check_lib_save_LIBS
14404 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14405 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14406 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
14407 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14408 else
14409 HAVE_OTF_GET_VARIATION_GLYPHS=no
14412 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14414 cat >>confdefs.h <<\_ACEOF
14415 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14416 _ACEOF
14423 HAVE_M17N_FLT=no
14424 if test "${HAVE_LIBOTF}" = yes; then
14425 if test "${with_m17n_flt}" != "no"; then
14427 succeeded=no
14429 # Extract the first word of "pkg-config", so it can be a program name with args.
14430 set dummy pkg-config; ac_word=$2
14431 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
14432 $as_echo_n "checking for $ac_word... " >&6; }
14433 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14434 $as_echo_n "(cached) " >&6
14435 else
14436 case $PKG_CONFIG in
14437 [\\/]* | ?:[\\/]*)
14438 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14444 IFS=$as_save_IFS
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14448 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14450 break 2
14452 done
14453 done
14454 IFS=$as_save_IFS
14456 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14458 esac
14460 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14461 if test -n "$PKG_CONFIG"; then
14462 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14463 $as_echo "$PKG_CONFIG" >&6; }
14464 else
14465 { $as_echo "$as_me:$LINENO: result: no" >&5
14466 $as_echo "no" >&6; }
14471 if test "$PKG_CONFIG" = "no" ; then
14472 HAVE_M17N_FLT=no
14473 else
14474 PKG_CONFIG_MIN_VERSION=0.9.0
14475 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14476 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
14477 $as_echo_n "checking for m17n-flt... " >&6; }
14479 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14480 { $as_echo "$as_me:$LINENO: result: yes" >&5
14481 $as_echo "yes" >&6; }
14482 succeeded=yes
14484 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
14485 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14486 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14487 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
14488 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14490 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
14491 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14492 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14493 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
14494 $as_echo "$M17N_FLT_LIBS" >&6; }
14495 else
14496 { $as_echo "$as_me:$LINENO: result: no" >&5
14497 $as_echo "no" >&6; }
14498 M17N_FLT_CFLAGS=""
14499 M17N_FLT_LIBS=""
14500 ## If we have a custom action on failure, don't print errors, but
14501 ## do set a variable so people can do so.
14502 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
14508 else
14509 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14510 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14514 if test $succeeded = yes; then
14515 HAVE_M17N_FLT=yes
14516 else
14517 HAVE_M17N_FLT=no
14520 if test "$HAVE_M17N_FLT" = "yes"; then
14522 cat >>confdefs.h <<\_ACEOF
14523 #define HAVE_M17N_FLT 1
14524 _ACEOF
14529 else
14530 HAVE_XFT=no
14531 HAVE_FREETYPE=no
14532 HAVE_LIBOTF=no
14533 HAVE_M17N_FLT=no
14536 FONT_OBJ=xfont.o
14537 if test "$HAVE_XFT" = "yes"; then
14538 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
14539 elif test "$HAVE_FREETYPE" = "yes"; then
14540 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
14544 ### End of font-backend (under X11) section.
14555 ### Use -lXpm if available, unless `--with-xpm=no'.
14556 HAVE_XPM=no
14557 LIBXPM=
14558 if test "${HAVE_X11}" = "yes"; then
14559 if test "${with_xpm}" != "no"; then
14560 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14561 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14562 $as_echo_n "checking for X11/xpm.h... " >&6; }
14563 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14564 $as_echo_n "(cached) " >&6
14566 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14567 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14568 else
14569 # Is the header compilable?
14570 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14571 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14572 cat >conftest.$ac_ext <<_ACEOF
14573 /* confdefs.h. */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h. */
14578 $ac_includes_default
14579 #include <X11/xpm.h>
14580 _ACEOF
14581 rm -f conftest.$ac_objext
14582 if { (ac_try="$ac_compile"
14583 case "(($ac_try" in
14584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14585 *) ac_try_echo=$ac_try;;
14586 esac
14587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14588 $as_echo "$ac_try_echo") >&5
14589 (eval "$ac_compile") 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } && {
14596 test -z "$ac_c_werror_flag" ||
14597 test ! -s conftest.err
14598 } && test -s conftest.$ac_objext; then
14599 ac_header_compiler=yes
14600 else
14601 $as_echo "$as_me: failed program was:" >&5
14602 sed 's/^/| /' conftest.$ac_ext >&5
14604 ac_header_compiler=no
14607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14608 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14609 $as_echo "$ac_header_compiler" >&6; }
14611 # Is the header present?
14612 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14613 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14614 cat >conftest.$ac_ext <<_ACEOF
14615 /* confdefs.h. */
14616 _ACEOF
14617 cat confdefs.h >>conftest.$ac_ext
14618 cat >>conftest.$ac_ext <<_ACEOF
14619 /* end confdefs.h. */
14620 #include <X11/xpm.h>
14621 _ACEOF
14622 if { (ac_try="$ac_cpp conftest.$ac_ext"
14623 case "(($ac_try" in
14624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14626 esac
14627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14628 $as_echo "$ac_try_echo") >&5
14629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14630 ac_status=$?
14631 grep -v '^ *+' conftest.er1 >conftest.err
14632 rm -f conftest.er1
14633 cat conftest.err >&5
14634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } >/dev/null && {
14636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14637 test ! -s conftest.err
14638 }; then
14639 ac_header_preproc=yes
14640 else
14641 $as_echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14644 ac_header_preproc=no
14647 rm -f conftest.err conftest.$ac_ext
14648 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14649 $as_echo "$ac_header_preproc" >&6; }
14651 # So? What about this header?
14652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14653 yes:no: )
14654 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14655 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14656 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14657 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14658 ac_header_preproc=yes
14660 no:yes:* )
14661 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14662 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14663 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14664 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14665 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14666 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14667 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14668 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14669 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14670 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14671 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14672 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14675 esac
14676 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14677 $as_echo_n "checking for X11/xpm.h... " >&6; }
14678 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14679 $as_echo_n "(cached) " >&6
14680 else
14681 ac_cv_header_X11_xpm_h=$ac_header_preproc
14683 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14684 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14687 if test $ac_cv_header_X11_xpm_h = yes; then
14688 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14689 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14690 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14691 $as_echo_n "(cached) " >&6
14692 else
14693 ac_check_lib_save_LIBS=$LIBS
14694 LIBS="-lXpm -lX11 $LIBS"
14695 cat >conftest.$ac_ext <<_ACEOF
14696 /* confdefs.h. */
14697 _ACEOF
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14702 /* Override any GCC internal prototype to avoid an error.
14703 Use char because int might match the return type of a GCC
14704 builtin and then its argument prototype would still apply. */
14705 #ifdef __cplusplus
14706 extern "C"
14707 #endif
14708 char XpmReadFileToPixmap ();
14710 main ()
14712 return XpmReadFileToPixmap ();
14714 return 0;
14716 _ACEOF
14717 rm -f conftest.$ac_objext conftest$ac_exeext
14718 if { (ac_try="$ac_link"
14719 case "(($ac_try" in
14720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14721 *) ac_try_echo=$ac_try;;
14722 esac
14723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14724 $as_echo "$ac_try_echo") >&5
14725 (eval "$ac_link") 2>conftest.er1
14726 ac_status=$?
14727 grep -v '^ *+' conftest.er1 >conftest.err
14728 rm -f conftest.er1
14729 cat conftest.err >&5
14730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); } && {
14732 test -z "$ac_c_werror_flag" ||
14733 test ! -s conftest.err
14734 } && test -s conftest$ac_exeext && {
14735 test "$cross_compiling" = yes ||
14736 $as_test_x conftest$ac_exeext
14737 }; then
14738 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14739 else
14740 $as_echo "$as_me: failed program was:" >&5
14741 sed 's/^/| /' conftest.$ac_ext >&5
14743 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14746 rm -rf conftest.dSYM
14747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14748 conftest$ac_exeext conftest.$ac_ext
14749 LIBS=$ac_check_lib_save_LIBS
14751 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14752 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14753 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14754 HAVE_XPM=yes
14760 if test "${HAVE_XPM}" = "yes"; then
14761 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14762 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14763 cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h. */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 #include "X11/xpm.h"
14770 #ifndef XpmReturnAllocPixels
14771 no_return_alloc_pixels
14772 #endif
14774 _ACEOF
14775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14776 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14777 HAVE_XPM=no
14778 else
14779 HAVE_XPM=yes
14781 rm -f conftest*
14784 if test "${HAVE_XPM}" = "yes"; then
14785 { $as_echo "$as_me:$LINENO: result: yes" >&5
14786 $as_echo "yes" >&6; }
14787 else
14788 { $as_echo "$as_me:$LINENO: result: no" >&5
14789 $as_echo "no" >&6; }
14794 if test "${HAVE_XPM}" = "yes"; then
14796 cat >>confdefs.h <<\_ACEOF
14797 #define HAVE_XPM 1
14798 _ACEOF
14800 LIBXPM=-lXpm
14805 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14806 HAVE_JPEG=no
14807 LIBJPEG=
14808 if test "${HAVE_X11}" = "yes"; then
14809 if test "${with_jpeg}" != "no"; then
14810 if test "${ac_cv_header_jerror_h+set}" = set; then
14811 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14812 $as_echo_n "checking for jerror.h... " >&6; }
14813 if test "${ac_cv_header_jerror_h+set}" = set; then
14814 $as_echo_n "(cached) " >&6
14816 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14817 $as_echo "$ac_cv_header_jerror_h" >&6; }
14818 else
14819 # Is the header compilable?
14820 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14821 $as_echo_n "checking jerror.h usability... " >&6; }
14822 cat >conftest.$ac_ext <<_ACEOF
14823 /* confdefs.h. */
14824 _ACEOF
14825 cat confdefs.h >>conftest.$ac_ext
14826 cat >>conftest.$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14828 $ac_includes_default
14829 #include <jerror.h>
14830 _ACEOF
14831 rm -f conftest.$ac_objext
14832 if { (ac_try="$ac_compile"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14836 esac
14837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14838 $as_echo "$ac_try_echo") >&5
14839 (eval "$ac_compile") 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && {
14846 test -z "$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 } && test -s conftest.$ac_objext; then
14849 ac_header_compiler=yes
14850 else
14851 $as_echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_header_compiler=no
14857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14859 $as_echo "$ac_header_compiler" >&6; }
14861 # Is the header present?
14862 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14863 $as_echo_n "checking jerror.h presence... " >&6; }
14864 cat >conftest.$ac_ext <<_ACEOF
14865 /* confdefs.h. */
14866 _ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14870 #include <jerror.h>
14871 _ACEOF
14872 if { (ac_try="$ac_cpp conftest.$ac_ext"
14873 case "(($ac_try" in
14874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14875 *) ac_try_echo=$ac_try;;
14876 esac
14877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14878 $as_echo "$ac_try_echo") >&5
14879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14880 ac_status=$?
14881 grep -v '^ *+' conftest.er1 >conftest.err
14882 rm -f conftest.er1
14883 cat conftest.err >&5
14884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } >/dev/null && {
14886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14887 test ! -s conftest.err
14888 }; then
14889 ac_header_preproc=yes
14890 else
14891 $as_echo "$as_me: failed program was:" >&5
14892 sed 's/^/| /' conftest.$ac_ext >&5
14894 ac_header_preproc=no
14897 rm -f conftest.err conftest.$ac_ext
14898 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14899 $as_echo "$ac_header_preproc" >&6; }
14901 # So? What about this header?
14902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14903 yes:no: )
14904 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14905 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14906 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14907 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14908 ac_header_preproc=yes
14910 no:yes:* )
14911 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14912 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14913 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14914 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14915 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14916 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14917 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14918 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14919 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14920 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14921 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14922 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14925 esac
14926 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14927 $as_echo_n "checking for jerror.h... " >&6; }
14928 if test "${ac_cv_header_jerror_h+set}" = set; then
14929 $as_echo_n "(cached) " >&6
14930 else
14931 ac_cv_header_jerror_h=$ac_header_preproc
14933 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14934 $as_echo "$ac_cv_header_jerror_h" >&6; }
14937 if test $ac_cv_header_jerror_h = yes; then
14938 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14939 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14940 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14941 $as_echo_n "(cached) " >&6
14942 else
14943 ac_check_lib_save_LIBS=$LIBS
14944 LIBS="-ljpeg $LIBS"
14945 cat >conftest.$ac_ext <<_ACEOF
14946 /* confdefs.h. */
14947 _ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14952 /* Override any GCC internal prototype to avoid an error.
14953 Use char because int might match the return type of a GCC
14954 builtin and then its argument prototype would still apply. */
14955 #ifdef __cplusplus
14956 extern "C"
14957 #endif
14958 char jpeg_destroy_compress ();
14960 main ()
14962 return jpeg_destroy_compress ();
14964 return 0;
14966 _ACEOF
14967 rm -f conftest.$ac_objext conftest$ac_exeext
14968 if { (ac_try="$ac_link"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14972 esac
14973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14974 $as_echo "$ac_try_echo") >&5
14975 (eval "$ac_link") 2>conftest.er1
14976 ac_status=$?
14977 grep -v '^ *+' conftest.er1 >conftest.err
14978 rm -f conftest.er1
14979 cat conftest.err >&5
14980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981 (exit $ac_status); } && {
14982 test -z "$ac_c_werror_flag" ||
14983 test ! -s conftest.err
14984 } && test -s conftest$ac_exeext && {
14985 test "$cross_compiling" = yes ||
14986 $as_test_x conftest$ac_exeext
14987 }; then
14988 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14989 else
14990 $as_echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14993 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14996 rm -rf conftest.dSYM
14997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14998 conftest$ac_exeext conftest.$ac_ext
14999 LIBS=$ac_check_lib_save_LIBS
15001 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
15002 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
15003 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
15004 HAVE_JPEG=yes
15013 if test "${HAVE_JPEG}" = "yes"; then
15014 cat >>confdefs.h <<\_ACEOF
15015 #define HAVE_JPEG 1
15016 _ACEOF
15018 cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h. */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15024 #include <jpeglib.h>
15025 version=JPEG_LIB_VERSION
15027 _ACEOF
15028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15029 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
15030 cat >>confdefs.h <<\_ACEOF
15031 #define HAVE_JPEG 1
15032 _ACEOF
15034 else
15035 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
15036 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
15037 HAVE_JPEG=no
15039 rm -f conftest*
15042 if test "${HAVE_JPEG}" = "yes"; then
15043 LIBJPEG=-ljpeg
15048 ### Use -lpng if available, unless `--with-png=no'.
15049 HAVE_PNG=no
15050 LIBPNG=
15051 if test "${HAVE_X11}" = "yes"; then
15052 if test "${with_png}" != "no"; then
15053 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
15054 # in /usr/include/libpng.
15057 for ac_header in png.h libpng/png.h
15059 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15061 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15062 $as_echo_n "checking for $ac_header... " >&6; }
15063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15064 $as_echo_n "(cached) " >&6
15066 ac_res=`eval 'as_val=${'$as_ac_Header'}
15067 $as_echo "$as_val"'`
15068 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15069 $as_echo "$ac_res" >&6; }
15070 else
15071 # Is the header compilable?
15072 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15073 $as_echo_n "checking $ac_header usability... " >&6; }
15074 cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h. */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 $ac_includes_default
15081 #include <$ac_header>
15082 _ACEOF
15083 rm -f conftest.$ac_objext
15084 if { (ac_try="$ac_compile"
15085 case "(($ac_try" in
15086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087 *) ac_try_echo=$ac_try;;
15088 esac
15089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15090 $as_echo "$ac_try_echo") >&5
15091 (eval "$ac_compile") 2>conftest.er1
15092 ac_status=$?
15093 grep -v '^ *+' conftest.er1 >conftest.err
15094 rm -f conftest.er1
15095 cat conftest.err >&5
15096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } && {
15098 test -z "$ac_c_werror_flag" ||
15099 test ! -s conftest.err
15100 } && test -s conftest.$ac_objext; then
15101 ac_header_compiler=yes
15102 else
15103 $as_echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ac_header_compiler=no
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15111 $as_echo "$ac_header_compiler" >&6; }
15113 # Is the header present?
15114 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15115 $as_echo_n "checking $ac_header presence... " >&6; }
15116 cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h. */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122 #include <$ac_header>
15123 _ACEOF
15124 if { (ac_try="$ac_cpp conftest.$ac_ext"
15125 case "(($ac_try" in
15126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127 *) ac_try_echo=$ac_try;;
15128 esac
15129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15130 $as_echo "$ac_try_echo") >&5
15131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15132 ac_status=$?
15133 grep -v '^ *+' conftest.er1 >conftest.err
15134 rm -f conftest.er1
15135 cat conftest.err >&5
15136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } >/dev/null && {
15138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15139 test ! -s conftest.err
15140 }; then
15141 ac_header_preproc=yes
15142 else
15143 $as_echo "$as_me: failed program was:" >&5
15144 sed 's/^/| /' conftest.$ac_ext >&5
15146 ac_header_preproc=no
15149 rm -f conftest.err conftest.$ac_ext
15150 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15151 $as_echo "$ac_header_preproc" >&6; }
15153 # So? What about this header?
15154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15155 yes:no: )
15156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15157 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15159 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15160 ac_header_preproc=yes
15162 no:yes:* )
15163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15164 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15166 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15168 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15170 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15171 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15172 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15173 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15174 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15177 esac
15178 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15179 $as_echo_n "checking for $ac_header... " >&6; }
15180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15181 $as_echo_n "(cached) " >&6
15182 else
15183 eval "$as_ac_Header=\$ac_header_preproc"
15185 ac_res=`eval 'as_val=${'$as_ac_Header'}
15186 $as_echo "$as_val"'`
15187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15188 $as_echo "$ac_res" >&6; }
15191 if test `eval 'as_val=${'$as_ac_Header'}
15192 $as_echo "$as_val"'` = yes; then
15193 cat >>confdefs.h <<_ACEOF
15194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15195 _ACEOF
15199 done
15201 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15202 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
15203 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15204 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
15205 $as_echo_n "(cached) " >&6
15206 else
15207 ac_check_lib_save_LIBS=$LIBS
15208 LIBS="-lpng -lz -lm $LIBS"
15209 cat >conftest.$ac_ext <<_ACEOF
15210 /* confdefs.h. */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h. */
15216 /* Override any GCC internal prototype to avoid an error.
15217 Use char because int might match the return type of a GCC
15218 builtin and then its argument prototype would still apply. */
15219 #ifdef __cplusplus
15220 extern "C"
15221 #endif
15222 char png_get_channels ();
15224 main ()
15226 return png_get_channels ();
15228 return 0;
15230 _ACEOF
15231 rm -f conftest.$ac_objext conftest$ac_exeext
15232 if { (ac_try="$ac_link"
15233 case "(($ac_try" in
15234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15236 esac
15237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15238 $as_echo "$ac_try_echo") >&5
15239 (eval "$ac_link") 2>conftest.er1
15240 ac_status=$?
15241 grep -v '^ *+' conftest.er1 >conftest.err
15242 rm -f conftest.er1
15243 cat conftest.err >&5
15244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } && {
15246 test -z "$ac_c_werror_flag" ||
15247 test ! -s conftest.err
15248 } && test -s conftest$ac_exeext && {
15249 test "$cross_compiling" = yes ||
15250 $as_test_x conftest$ac_exeext
15251 }; then
15252 ac_cv_lib_png_png_get_channels=yes
15253 else
15254 $as_echo "$as_me: failed program was:" >&5
15255 sed 's/^/| /' conftest.$ac_ext >&5
15257 ac_cv_lib_png_png_get_channels=no
15260 rm -rf conftest.dSYM
15261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15262 conftest$ac_exeext conftest.$ac_ext
15263 LIBS=$ac_check_lib_save_LIBS
15265 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
15266 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15267 if test $ac_cv_lib_png_png_get_channels = yes; then
15268 HAVE_PNG=yes
15274 if test "${HAVE_PNG}" = "yes"; then
15276 cat >>confdefs.h <<\_ACEOF
15277 #define HAVE_PNG 1
15278 _ACEOF
15280 LIBPNG="-lpng -lz -lm"
15285 ### Use -ltiff if available, unless `--with-tiff=no'.
15286 HAVE_TIFF=no
15287 LIBTIFF=
15288 if test "${HAVE_X11}" = "yes"; then
15289 if test "${with_tiff}" != "no"; then
15290 if test "${ac_cv_header_tiffio_h+set}" = set; then
15291 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15292 $as_echo_n "checking for tiffio.h... " >&6; }
15293 if test "${ac_cv_header_tiffio_h+set}" = set; then
15294 $as_echo_n "(cached) " >&6
15296 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15297 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15298 else
15299 # Is the header compilable?
15300 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15301 $as_echo_n "checking tiffio.h usability... " >&6; }
15302 cat >conftest.$ac_ext <<_ACEOF
15303 /* confdefs.h. */
15304 _ACEOF
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15308 $ac_includes_default
15309 #include <tiffio.h>
15310 _ACEOF
15311 rm -f conftest.$ac_objext
15312 if { (ac_try="$ac_compile"
15313 case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15316 esac
15317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15318 $as_echo "$ac_try_echo") >&5
15319 (eval "$ac_compile") 2>conftest.er1
15320 ac_status=$?
15321 grep -v '^ *+' conftest.er1 >conftest.err
15322 rm -f conftest.er1
15323 cat conftest.err >&5
15324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } && {
15326 test -z "$ac_c_werror_flag" ||
15327 test ! -s conftest.err
15328 } && test -s conftest.$ac_objext; then
15329 ac_header_compiler=yes
15330 else
15331 $as_echo "$as_me: failed program was:" >&5
15332 sed 's/^/| /' conftest.$ac_ext >&5
15334 ac_header_compiler=no
15337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15338 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15339 $as_echo "$ac_header_compiler" >&6; }
15341 # Is the header present?
15342 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15343 $as_echo_n "checking tiffio.h presence... " >&6; }
15344 cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h. */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h. */
15350 #include <tiffio.h>
15351 _ACEOF
15352 if { (ac_try="$ac_cpp conftest.$ac_ext"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15356 esac
15357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15358 $as_echo "$ac_try_echo") >&5
15359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } >/dev/null && {
15366 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 }; then
15369 ac_header_preproc=yes
15370 else
15371 $as_echo "$as_me: failed program was:" >&5
15372 sed 's/^/| /' conftest.$ac_ext >&5
15374 ac_header_preproc=no
15377 rm -f conftest.err conftest.$ac_ext
15378 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15379 $as_echo "$ac_header_preproc" >&6; }
15381 # So? What about this header?
15382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15383 yes:no: )
15384 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15385 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15386 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15387 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15388 ac_header_preproc=yes
15390 no:yes:* )
15391 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15392 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15393 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15394 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15395 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15396 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15397 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15398 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15399 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15400 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15401 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15402 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15405 esac
15406 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15407 $as_echo_n "checking for tiffio.h... " >&6; }
15408 if test "${ac_cv_header_tiffio_h+set}" = set; then
15409 $as_echo_n "(cached) " >&6
15410 else
15411 ac_cv_header_tiffio_h=$ac_header_preproc
15413 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15414 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15417 if test $ac_cv_header_tiffio_h = yes; then
15418 tifflibs="-lz -lm"
15419 # At least one tiff package requires the jpeg library.
15420 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15421 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
15422 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15423 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
15424 $as_echo_n "(cached) " >&6
15425 else
15426 ac_check_lib_save_LIBS=$LIBS
15427 LIBS="-ltiff $tifflibs $LIBS"
15428 cat >conftest.$ac_ext <<_ACEOF
15429 /* confdefs.h. */
15430 _ACEOF
15431 cat confdefs.h >>conftest.$ac_ext
15432 cat >>conftest.$ac_ext <<_ACEOF
15433 /* end confdefs.h. */
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15438 #ifdef __cplusplus
15439 extern "C"
15440 #endif
15441 char TIFFGetVersion ();
15443 main ()
15445 return TIFFGetVersion ();
15447 return 0;
15449 _ACEOF
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (ac_try="$ac_link"
15452 case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15455 esac
15456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15457 $as_echo "$ac_try_echo") >&5
15458 (eval "$ac_link") 2>conftest.er1
15459 ac_status=$?
15460 grep -v '^ *+' conftest.er1 >conftest.err
15461 rm -f conftest.er1
15462 cat conftest.err >&5
15463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15464 (exit $ac_status); } && {
15465 test -z "$ac_c_werror_flag" ||
15466 test ! -s conftest.err
15467 } && test -s conftest$ac_exeext && {
15468 test "$cross_compiling" = yes ||
15469 $as_test_x conftest$ac_exeext
15470 }; then
15471 ac_cv_lib_tiff_TIFFGetVersion=yes
15472 else
15473 $as_echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.$ac_ext >&5
15476 ac_cv_lib_tiff_TIFFGetVersion=no
15479 rm -rf conftest.dSYM
15480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15481 conftest$ac_exeext conftest.$ac_ext
15482 LIBS=$ac_check_lib_save_LIBS
15484 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15485 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15486 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
15487 HAVE_TIFF=yes
15495 if test "${HAVE_TIFF}" = "yes"; then
15497 cat >>confdefs.h <<\_ACEOF
15498 #define HAVE_TIFF 1
15499 _ACEOF
15501 LIBTIFF=-ltiff
15506 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15507 HAVE_GIF=no
15508 LIBGIF=
15509 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15510 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15511 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15512 $as_echo_n "checking for gif_lib.h... " >&6; }
15513 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15514 $as_echo_n "(cached) " >&6
15516 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15517 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15518 else
15519 # Is the header compilable?
15520 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15521 $as_echo_n "checking gif_lib.h usability... " >&6; }
15522 cat >conftest.$ac_ext <<_ACEOF
15523 /* confdefs.h. */
15524 _ACEOF
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 $ac_includes_default
15529 #include <gif_lib.h>
15530 _ACEOF
15531 rm -f conftest.$ac_objext
15532 if { (ac_try="$ac_compile"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15536 esac
15537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15538 $as_echo "$ac_try_echo") >&5
15539 (eval "$ac_compile") 2>conftest.er1
15540 ac_status=$?
15541 grep -v '^ *+' conftest.er1 >conftest.err
15542 rm -f conftest.er1
15543 cat conftest.err >&5
15544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } && {
15546 test -z "$ac_c_werror_flag" ||
15547 test ! -s conftest.err
15548 } && test -s conftest.$ac_objext; then
15549 ac_header_compiler=yes
15550 else
15551 $as_echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15554 ac_header_compiler=no
15557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15559 $as_echo "$ac_header_compiler" >&6; }
15561 # Is the header present?
15562 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15563 $as_echo_n "checking gif_lib.h presence... " >&6; }
15564 cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h. */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 #include <gif_lib.h>
15571 _ACEOF
15572 if { (ac_try="$ac_cpp conftest.$ac_ext"
15573 case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15576 esac
15577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15578 $as_echo "$ac_try_echo") >&5
15579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15580 ac_status=$?
15581 grep -v '^ *+' conftest.er1 >conftest.err
15582 rm -f conftest.er1
15583 cat conftest.err >&5
15584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } >/dev/null && {
15586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15587 test ! -s conftest.err
15588 }; then
15589 ac_header_preproc=yes
15590 else
15591 $as_echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15594 ac_header_preproc=no
15597 rm -f conftest.err conftest.$ac_ext
15598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15599 $as_echo "$ac_header_preproc" >&6; }
15601 # So? What about this header?
15602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15603 yes:no: )
15604 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15605 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15606 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15607 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15608 ac_header_preproc=yes
15610 no:yes:* )
15611 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15612 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15613 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15614 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15615 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15616 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15617 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15618 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15619 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15620 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15621 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15622 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15625 esac
15626 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15627 $as_echo_n "checking for gif_lib.h... " >&6; }
15628 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15629 $as_echo_n "(cached) " >&6
15630 else
15631 ac_cv_header_gif_lib_h=$ac_header_preproc
15633 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15634 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15637 if test $ac_cv_header_gif_lib_h = yes; then
15638 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15639 # Earlier versions can crash Emacs.
15640 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
15641 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15642 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
15643 $as_echo_n "(cached) " >&6
15644 else
15645 ac_check_lib_save_LIBS=$LIBS
15646 LIBS="-lgif $LIBS"
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h. */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15654 /* Override any GCC internal prototype to avoid an error.
15655 Use char because int might match the return type of a GCC
15656 builtin and then its argument prototype would still apply. */
15657 #ifdef __cplusplus
15658 extern "C"
15659 #endif
15660 char EGifPutExtensionLast ();
15662 main ()
15664 return EGifPutExtensionLast ();
15666 return 0;
15668 _ACEOF
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (ac_try="$ac_link"
15671 case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15674 esac
15675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15676 $as_echo "$ac_try_echo") >&5
15677 (eval "$ac_link") 2>conftest.er1
15678 ac_status=$?
15679 grep -v '^ *+' conftest.er1 >conftest.err
15680 rm -f conftest.er1
15681 cat conftest.err >&5
15682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); } && {
15684 test -z "$ac_c_werror_flag" ||
15685 test ! -s conftest.err
15686 } && test -s conftest$ac_exeext && {
15687 test "$cross_compiling" = yes ||
15688 $as_test_x conftest$ac_exeext
15689 }; then
15690 ac_cv_lib_gif_EGifPutExtensionLast=yes
15691 else
15692 $as_echo "$as_me: failed program was:" >&5
15693 sed 's/^/| /' conftest.$ac_ext >&5
15695 ac_cv_lib_gif_EGifPutExtensionLast=no
15698 rm -rf conftest.dSYM
15699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15700 conftest$ac_exeext conftest.$ac_ext
15701 LIBS=$ac_check_lib_save_LIBS
15703 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15704 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15705 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
15706 HAVE_GIF=yes
15707 else
15708 HAVE_GIF=maybe
15715 if test "$HAVE_GIF" = yes; then
15716 LIBGIF=-lgif
15717 elif test "$HAVE_GIF" = maybe; then
15718 # If gif_lib.h but no libgif, try libungif.
15719 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15720 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15721 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15722 $as_echo_n "(cached) " >&6
15723 else
15724 ac_check_lib_save_LIBS=$LIBS
15725 LIBS="-lungif $LIBS"
15726 cat >conftest.$ac_ext <<_ACEOF
15727 /* confdefs.h. */
15728 _ACEOF
15729 cat confdefs.h >>conftest.$ac_ext
15730 cat >>conftest.$ac_ext <<_ACEOF
15731 /* end confdefs.h. */
15733 /* Override any GCC internal prototype to avoid an error.
15734 Use char because int might match the return type of a GCC
15735 builtin and then its argument prototype would still apply. */
15736 #ifdef __cplusplus
15737 extern "C"
15738 #endif
15739 char EGifPutExtensionLast ();
15741 main ()
15743 return EGifPutExtensionLast ();
15745 return 0;
15747 _ACEOF
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (ac_try="$ac_link"
15750 case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15753 esac
15754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15755 $as_echo "$ac_try_echo") >&5
15756 (eval "$ac_link") 2>conftest.er1
15757 ac_status=$?
15758 grep -v '^ *+' conftest.er1 >conftest.err
15759 rm -f conftest.er1
15760 cat conftest.err >&5
15761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15762 (exit $ac_status); } && {
15763 test -z "$ac_c_werror_flag" ||
15764 test ! -s conftest.err
15765 } && test -s conftest$ac_exeext && {
15766 test "$cross_compiling" = yes ||
15767 $as_test_x conftest$ac_exeext
15768 }; then
15769 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15770 else
15771 $as_echo "$as_me: failed program was:" >&5
15772 sed 's/^/| /' conftest.$ac_ext >&5
15774 ac_cv_lib_ungif_EGifPutExtensionLast=no
15777 rm -rf conftest.dSYM
15778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15779 conftest$ac_exeext conftest.$ac_ext
15780 LIBS=$ac_check_lib_save_LIBS
15782 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15783 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15784 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15785 HAVE_GIF=yes
15786 else
15787 HAVE_GIF=no
15790 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15793 if test "${HAVE_GIF}" = "yes"; then
15795 cat >>confdefs.h <<\_ACEOF
15796 #define HAVE_GIF 1
15797 _ACEOF
15803 if test "${HAVE_X11}" = "yes"; then
15804 MISSING=""
15805 WITH_NO=""
15806 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
15807 MISSING="libXpm" && WITH_NO="--with-xpm=no"
15808 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
15809 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
15810 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
15811 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
15812 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
15813 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15814 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15815 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15817 if test "X${MISSING}" != X; then
15818 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15819 $MISSING
15820 Maybe some development libraries/packages are missing?
15821 If you don't want to link with them give
15822 $WITH_NO
15823 as options to configure" >&5
15824 $as_echo "$as_me: error: The following required libraries were not found:
15825 $MISSING
15826 Maybe some development libraries/packages are missing?
15827 If you don't want to link with them give
15828 $WITH_NO
15829 as options to configure" >&2;}
15830 { (exit 1); exit 1; }; }
15834 ### Use -lgpm if available, unless `--with-gpm=no'.
15835 HAVE_GPM=no
15836 LIBGPM=
15837 GPM_MOUSE_SUPPORT=
15838 if test "${with_gpm}" != "no"; then
15839 if test "${ac_cv_header_gpm_h+set}" = set; then
15840 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15841 $as_echo_n "checking for gpm.h... " >&6; }
15842 if test "${ac_cv_header_gpm_h+set}" = set; then
15843 $as_echo_n "(cached) " >&6
15845 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15846 $as_echo "$ac_cv_header_gpm_h" >&6; }
15847 else
15848 # Is the header compilable?
15849 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15850 $as_echo_n "checking gpm.h usability... " >&6; }
15851 cat >conftest.$ac_ext <<_ACEOF
15852 /* confdefs.h. */
15853 _ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 $ac_includes_default
15858 #include <gpm.h>
15859 _ACEOF
15860 rm -f conftest.$ac_objext
15861 if { (ac_try="$ac_compile"
15862 case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15865 esac
15866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15867 $as_echo "$ac_try_echo") >&5
15868 (eval "$ac_compile") 2>conftest.er1
15869 ac_status=$?
15870 grep -v '^ *+' conftest.er1 >conftest.err
15871 rm -f conftest.er1
15872 cat conftest.err >&5
15873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest.$ac_objext; then
15878 ac_header_compiler=yes
15879 else
15880 $as_echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15883 ac_header_compiler=no
15886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15887 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15888 $as_echo "$ac_header_compiler" >&6; }
15890 # Is the header present?
15891 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15892 $as_echo_n "checking gpm.h presence... " >&6; }
15893 cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h. */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h. */
15899 #include <gpm.h>
15900 _ACEOF
15901 if { (ac_try="$ac_cpp conftest.$ac_ext"
15902 case "(($ac_try" in
15903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15904 *) ac_try_echo=$ac_try;;
15905 esac
15906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15907 $as_echo "$ac_try_echo") >&5
15908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15909 ac_status=$?
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } >/dev/null && {
15915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15916 test ! -s conftest.err
15917 }; then
15918 ac_header_preproc=yes
15919 else
15920 $as_echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 ac_header_preproc=no
15926 rm -f conftest.err conftest.$ac_ext
15927 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15928 $as_echo "$ac_header_preproc" >&6; }
15930 # So? What about this header?
15931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15932 yes:no: )
15933 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15934 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15935 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15936 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15937 ac_header_preproc=yes
15939 no:yes:* )
15940 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15941 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15942 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15943 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15944 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15945 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15946 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15947 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15948 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15949 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15950 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15951 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15954 esac
15955 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15956 $as_echo_n "checking for gpm.h... " >&6; }
15957 if test "${ac_cv_header_gpm_h+set}" = set; then
15958 $as_echo_n "(cached) " >&6
15959 else
15960 ac_cv_header_gpm_h=$ac_header_preproc
15962 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15963 $as_echo "$ac_cv_header_gpm_h" >&6; }
15966 if test $ac_cv_header_gpm_h = yes; then
15967 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15968 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15969 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
15970 $as_echo_n "(cached) " >&6
15971 else
15972 ac_check_lib_save_LIBS=$LIBS
15973 LIBS="-lgpm $LIBS"
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h. */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15981 /* Override any GCC internal prototype to avoid an error.
15982 Use char because int might match the return type of a GCC
15983 builtin and then its argument prototype would still apply. */
15984 #ifdef __cplusplus
15985 extern "C"
15986 #endif
15987 char Gpm_Open ();
15989 main ()
15991 return Gpm_Open ();
15993 return 0;
15995 _ACEOF
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000 *) ac_try_echo=$ac_try;;
16001 esac
16002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16003 $as_echo "$ac_try_echo") >&5
16004 (eval "$ac_link") 2>conftest.er1
16005 ac_status=$?
16006 grep -v '^ *+' conftest.er1 >conftest.err
16007 rm -f conftest.er1
16008 cat conftest.err >&5
16009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); } && {
16011 test -z "$ac_c_werror_flag" ||
16012 test ! -s conftest.err
16013 } && test -s conftest$ac_exeext && {
16014 test "$cross_compiling" = yes ||
16015 $as_test_x conftest$ac_exeext
16016 }; then
16017 ac_cv_lib_gpm_Gpm_Open=yes
16018 else
16019 $as_echo "$as_me: failed program was:" >&5
16020 sed 's/^/| /' conftest.$ac_ext >&5
16022 ac_cv_lib_gpm_Gpm_Open=no
16025 rm -rf conftest.dSYM
16026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16027 conftest$ac_exeext conftest.$ac_ext
16028 LIBS=$ac_check_lib_save_LIBS
16030 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
16031 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
16032 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
16033 HAVE_GPM=yes
16040 if test "${HAVE_GPM}" = "yes"; then
16042 cat >>confdefs.h <<\_ACEOF
16043 #define HAVE_GPM 1
16044 _ACEOF
16046 LIBGPM=-lgpm
16047 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
16053 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16054 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16055 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16056 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16057 $as_echo_n "(cached) " >&6
16059 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16060 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16061 else
16062 # Is the header compilable?
16063 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16064 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16065 cat >conftest.$ac_ext <<_ACEOF
16066 /* confdefs.h. */
16067 _ACEOF
16068 cat confdefs.h >>conftest.$ac_ext
16069 cat >>conftest.$ac_ext <<_ACEOF
16070 /* end confdefs.h. */
16071 $ac_includes_default
16072 #include <malloc/malloc.h>
16073 _ACEOF
16074 rm -f conftest.$ac_objext
16075 if { (ac_try="$ac_compile"
16076 case "(($ac_try" in
16077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078 *) ac_try_echo=$ac_try;;
16079 esac
16080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16081 $as_echo "$ac_try_echo") >&5
16082 (eval "$ac_compile") 2>conftest.er1
16083 ac_status=$?
16084 grep -v '^ *+' conftest.er1 >conftest.err
16085 rm -f conftest.er1
16086 cat conftest.err >&5
16087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); } && {
16089 test -z "$ac_c_werror_flag" ||
16090 test ! -s conftest.err
16091 } && test -s conftest.$ac_objext; then
16092 ac_header_compiler=yes
16093 else
16094 $as_echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 ac_header_compiler=no
16100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16102 $as_echo "$ac_header_compiler" >&6; }
16104 # Is the header present?
16105 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16106 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16107 cat >conftest.$ac_ext <<_ACEOF
16108 /* confdefs.h. */
16109 _ACEOF
16110 cat confdefs.h >>conftest.$ac_ext
16111 cat >>conftest.$ac_ext <<_ACEOF
16112 /* end confdefs.h. */
16113 #include <malloc/malloc.h>
16114 _ACEOF
16115 if { (ac_try="$ac_cpp conftest.$ac_ext"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16119 esac
16120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16121 $as_echo "$ac_try_echo") >&5
16122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16123 ac_status=$?
16124 grep -v '^ *+' conftest.er1 >conftest.err
16125 rm -f conftest.er1
16126 cat conftest.err >&5
16127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } >/dev/null && {
16129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16130 test ! -s conftest.err
16131 }; then
16132 ac_header_preproc=yes
16133 else
16134 $as_echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 ac_header_preproc=no
16140 rm -f conftest.err conftest.$ac_ext
16141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16142 $as_echo "$ac_header_preproc" >&6; }
16144 # So? What about this header?
16145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16146 yes:no: )
16147 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16148 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16149 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16150 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16151 ac_header_preproc=yes
16153 no:yes:* )
16154 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16155 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16156 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16157 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16158 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16159 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16160 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16161 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16162 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16163 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16164 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16165 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16168 esac
16169 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16170 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16171 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16172 $as_echo_n "(cached) " >&6
16173 else
16174 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16176 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16177 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16180 if test $ac_cv_header_malloc_malloc_h = yes; then
16182 cat >>confdefs.h <<\_ACEOF
16183 #define HAVE_MALLOC_MALLOC_H 1
16184 _ACEOF
16190 C_SWITCH_X_SYSTEM=
16191 ### Use NeXTstep API to implement GUI.
16192 if test "${HAVE_NS}" = "yes"; then
16194 cat >>confdefs.h <<\_ACEOF
16195 #define HAVE_NS 1
16196 _ACEOF
16198 if test "${NS_IMPL_COCOA}" = "yes"; then
16200 cat >>confdefs.h <<\_ACEOF
16201 #define NS_IMPL_COCOA 1
16202 _ACEOF
16204 GNU_OBJC_CFLAGS=
16206 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16208 cat >>confdefs.h <<\_ACEOF
16209 #define NS_IMPL_GNUSTEP 1
16210 _ACEOF
16212 # See also .m.o rule in Makefile.in */
16213 # FIXME: are all these flags really needed? Document here why. */
16214 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
16215 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16217 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16219 cat >>confdefs.h <<\_ACEOF
16220 #define NS_HAVE_NSINTEGER 1
16221 _ACEOF
16224 # We also have mouse menus.
16225 HAVE_MENUS=yes
16226 OTHER_FILES=ns-app
16230 ### Use session management (-lSM -lICE) if available
16231 HAVE_X_SM=no
16232 LIBXSM=
16233 if test "${HAVE_X11}" = "yes"; then
16234 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16235 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16236 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16237 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16238 $as_echo_n "(cached) " >&6
16240 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16241 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16242 else
16243 # Is the header compilable?
16244 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16245 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16246 cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h. */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 $ac_includes_default
16253 #include <X11/SM/SMlib.h>
16254 _ACEOF
16255 rm -f conftest.$ac_objext
16256 if { (ac_try="$ac_compile"
16257 case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16260 esac
16261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16262 $as_echo "$ac_try_echo") >&5
16263 (eval "$ac_compile") 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } && {
16270 test -z "$ac_c_werror_flag" ||
16271 test ! -s conftest.err
16272 } && test -s conftest.$ac_objext; then
16273 ac_header_compiler=yes
16274 else
16275 $as_echo "$as_me: failed program was:" >&5
16276 sed 's/^/| /' conftest.$ac_ext >&5
16278 ac_header_compiler=no
16281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16282 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16283 $as_echo "$ac_header_compiler" >&6; }
16285 # Is the header present?
16286 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16287 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h. */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 #include <X11/SM/SMlib.h>
16295 _ACEOF
16296 if { (ac_try="$ac_cpp conftest.$ac_ext"
16297 case "(($ac_try" in
16298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299 *) ac_try_echo=$ac_try;;
16300 esac
16301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16302 $as_echo "$ac_try_echo") >&5
16303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16304 ac_status=$?
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
16308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } >/dev/null && {
16310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16311 test ! -s conftest.err
16312 }; then
16313 ac_header_preproc=yes
16314 else
16315 $as_echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 ac_header_preproc=no
16321 rm -f conftest.err conftest.$ac_ext
16322 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16323 $as_echo "$ac_header_preproc" >&6; }
16325 # So? What about this header?
16326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16327 yes:no: )
16328 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16329 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16330 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16331 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16332 ac_header_preproc=yes
16334 no:yes:* )
16335 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16336 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16337 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16338 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16339 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16340 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16341 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16342 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16343 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16344 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16345 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16346 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16349 esac
16350 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16351 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16352 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16353 $as_echo_n "(cached) " >&6
16354 else
16355 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16357 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16358 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16361 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16362 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16363 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16364 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
16365 $as_echo_n "(cached) " >&6
16366 else
16367 ac_check_lib_save_LIBS=$LIBS
16368 LIBS="-lSM -lICE $LIBS"
16369 cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h. */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h. */
16376 /* Override any GCC internal prototype to avoid an error.
16377 Use char because int might match the return type of a GCC
16378 builtin and then its argument prototype would still apply. */
16379 #ifdef __cplusplus
16380 extern "C"
16381 #endif
16382 char SmcOpenConnection ();
16384 main ()
16386 return SmcOpenConnection ();
16388 return 0;
16390 _ACEOF
16391 rm -f conftest.$ac_objext conftest$ac_exeext
16392 if { (ac_try="$ac_link"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16396 esac
16397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16398 $as_echo "$ac_try_echo") >&5
16399 (eval "$ac_link") 2>conftest.er1
16400 ac_status=$?
16401 grep -v '^ *+' conftest.er1 >conftest.err
16402 rm -f conftest.er1
16403 cat conftest.err >&5
16404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } && {
16406 test -z "$ac_c_werror_flag" ||
16407 test ! -s conftest.err
16408 } && test -s conftest$ac_exeext && {
16409 test "$cross_compiling" = yes ||
16410 $as_test_x conftest$ac_exeext
16411 }; then
16412 ac_cv_lib_SM_SmcOpenConnection=yes
16413 else
16414 $as_echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 ac_cv_lib_SM_SmcOpenConnection=no
16420 rm -rf conftest.dSYM
16421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16422 conftest$ac_exeext conftest.$ac_ext
16423 LIBS=$ac_check_lib_save_LIBS
16425 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16426 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16427 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
16428 HAVE_X_SM=yes
16435 if test "${HAVE_X_SM}" = "yes"; then
16437 cat >>confdefs.h <<\_ACEOF
16438 #define HAVE_X_SM 1
16439 _ACEOF
16441 LIBXSM="-lSM -lICE"
16442 case "$LIBS" in
16443 *-lSM*) ;;
16444 *) LIBS="$LIBXSM $LIBS" ;;
16445 esac
16450 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16451 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
16452 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16453 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
16454 $as_echo_n "(cached) " >&6
16455 else
16456 cat >conftest.$ac_ext <<_ACEOF
16457 /* confdefs.h. */
16458 _ACEOF
16459 cat confdefs.h >>conftest.$ac_ext
16460 cat >>conftest.$ac_ext <<_ACEOF
16461 /* end confdefs.h. */
16462 #include <netdb.h>
16464 main ()
16466 return h_errno;
16468 return 0;
16470 _ACEOF
16471 rm -f conftest.$ac_objext conftest$ac_exeext
16472 if { (ac_try="$ac_link"
16473 case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16476 esac
16477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16478 $as_echo "$ac_try_echo") >&5
16479 (eval "$ac_link") 2>conftest.er1
16480 ac_status=$?
16481 grep -v '^ *+' conftest.er1 >conftest.err
16482 rm -f conftest.er1
16483 cat conftest.err >&5
16484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); } && {
16486 test -z "$ac_c_werror_flag" ||
16487 test ! -s conftest.err
16488 } && test -s conftest$ac_exeext && {
16489 test "$cross_compiling" = yes ||
16490 $as_test_x conftest$ac_exeext
16491 }; then
16492 emacs_cv_netdb_declares_h_errno=yes
16493 else
16494 $as_echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16497 emacs_cv_netdb_declares_h_errno=no
16500 rm -rf conftest.dSYM
16501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16502 conftest$ac_exeext conftest.$ac_ext
16504 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16505 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16506 if test $emacs_cv_netdb_declares_h_errno = yes; then
16508 cat >>confdefs.h <<\_ACEOF
16509 #define HAVE_H_ERRNO 1
16510 _ACEOF
16514 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16515 # for constant arguments. Useless!
16516 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
16517 $as_echo_n "checking for working alloca.h... " >&6; }
16518 if test "${ac_cv_working_alloca_h+set}" = set; then
16519 $as_echo_n "(cached) " >&6
16520 else
16521 cat >conftest.$ac_ext <<_ACEOF
16522 /* confdefs.h. */
16523 _ACEOF
16524 cat confdefs.h >>conftest.$ac_ext
16525 cat >>conftest.$ac_ext <<_ACEOF
16526 /* end confdefs.h. */
16527 #include <alloca.h>
16529 main ()
16531 char *p = (char *) alloca (2 * sizeof (int));
16532 if (p) return 0;
16534 return 0;
16536 _ACEOF
16537 rm -f conftest.$ac_objext conftest$ac_exeext
16538 if { (ac_try="$ac_link"
16539 case "(($ac_try" in
16540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16542 esac
16543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16544 $as_echo "$ac_try_echo") >&5
16545 (eval "$ac_link") 2>conftest.er1
16546 ac_status=$?
16547 grep -v '^ *+' conftest.er1 >conftest.err
16548 rm -f conftest.er1
16549 cat conftest.err >&5
16550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); } && {
16552 test -z "$ac_c_werror_flag" ||
16553 test ! -s conftest.err
16554 } && test -s conftest$ac_exeext && {
16555 test "$cross_compiling" = yes ||
16556 $as_test_x conftest$ac_exeext
16557 }; then
16558 ac_cv_working_alloca_h=yes
16559 else
16560 $as_echo "$as_me: failed program was:" >&5
16561 sed 's/^/| /' conftest.$ac_ext >&5
16563 ac_cv_working_alloca_h=no
16566 rm -rf conftest.dSYM
16567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16568 conftest$ac_exeext conftest.$ac_ext
16570 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16571 $as_echo "$ac_cv_working_alloca_h" >&6; }
16572 if test $ac_cv_working_alloca_h = yes; then
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE_ALLOCA_H 1
16576 _ACEOF
16580 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16581 $as_echo_n "checking for alloca... " >&6; }
16582 if test "${ac_cv_func_alloca_works+set}" = set; then
16583 $as_echo_n "(cached) " >&6
16584 else
16585 cat >conftest.$ac_ext <<_ACEOF
16586 /* confdefs.h. */
16587 _ACEOF
16588 cat confdefs.h >>conftest.$ac_ext
16589 cat >>conftest.$ac_ext <<_ACEOF
16590 /* end confdefs.h. */
16591 #ifdef __GNUC__
16592 # define alloca __builtin_alloca
16593 #else
16594 # ifdef _MSC_VER
16595 # include <malloc.h>
16596 # define alloca _alloca
16597 # else
16598 # ifdef HAVE_ALLOCA_H
16599 # include <alloca.h>
16600 # else
16601 # ifdef _AIX
16602 #pragma alloca
16603 # else
16604 # ifndef alloca /* predefined by HP cc +Olibcalls */
16605 char *alloca ();
16606 # endif
16607 # endif
16608 # endif
16609 # endif
16610 #endif
16613 main ()
16615 char *p = (char *) alloca (1);
16616 if (p) return 0;
16618 return 0;
16620 _ACEOF
16621 rm -f conftest.$ac_objext conftest$ac_exeext
16622 if { (ac_try="$ac_link"
16623 case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16626 esac
16627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16628 $as_echo "$ac_try_echo") >&5
16629 (eval "$ac_link") 2>conftest.er1
16630 ac_status=$?
16631 grep -v '^ *+' conftest.er1 >conftest.err
16632 rm -f conftest.er1
16633 cat conftest.err >&5
16634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } && {
16636 test -z "$ac_c_werror_flag" ||
16637 test ! -s conftest.err
16638 } && test -s conftest$ac_exeext && {
16639 test "$cross_compiling" = yes ||
16640 $as_test_x conftest$ac_exeext
16641 }; then
16642 ac_cv_func_alloca_works=yes
16643 else
16644 $as_echo "$as_me: failed program was:" >&5
16645 sed 's/^/| /' conftest.$ac_ext >&5
16647 ac_cv_func_alloca_works=no
16650 rm -rf conftest.dSYM
16651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16652 conftest$ac_exeext conftest.$ac_ext
16654 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16655 $as_echo "$ac_cv_func_alloca_works" >&6; }
16657 if test $ac_cv_func_alloca_works = yes; then
16659 cat >>confdefs.h <<\_ACEOF
16660 #define HAVE_ALLOCA 1
16661 _ACEOF
16663 else
16664 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16665 # that cause trouble. Some versions do not even contain alloca or
16666 # contain a buggy version. If you still want to use their alloca,
16667 # use ar to extract alloca.o from them instead of compiling alloca.c.
16669 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16671 cat >>confdefs.h <<\_ACEOF
16672 #define C_ALLOCA 1
16673 _ACEOF
16676 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16677 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16678 if test "${ac_cv_os_cray+set}" = set; then
16679 $as_echo_n "(cached) " >&6
16680 else
16681 cat >conftest.$ac_ext <<_ACEOF
16682 /* confdefs.h. */
16683 _ACEOF
16684 cat confdefs.h >>conftest.$ac_ext
16685 cat >>conftest.$ac_ext <<_ACEOF
16686 /* end confdefs.h. */
16687 #if defined CRAY && ! defined CRAY2
16688 webecray
16689 #else
16690 wenotbecray
16691 #endif
16693 _ACEOF
16694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16695 $EGREP "webecray" >/dev/null 2>&1; then
16696 ac_cv_os_cray=yes
16697 else
16698 ac_cv_os_cray=no
16700 rm -f conftest*
16703 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16704 $as_echo "$ac_cv_os_cray" >&6; }
16705 if test $ac_cv_os_cray = yes; then
16706 for ac_func in _getb67 GETB67 getb67; do
16707 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16708 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16709 $as_echo_n "checking for $ac_func... " >&6; }
16710 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16711 $as_echo_n "(cached) " >&6
16712 else
16713 cat >conftest.$ac_ext <<_ACEOF
16714 /* confdefs.h. */
16715 _ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16721 #define $ac_func innocuous_$ac_func
16723 /* System header to define __stub macros and hopefully few prototypes,
16724 which can conflict with char $ac_func (); below.
16725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16726 <limits.h> exists even on freestanding compilers. */
16728 #ifdef __STDC__
16729 # include <limits.h>
16730 #else
16731 # include <assert.h>
16732 #endif
16734 #undef $ac_func
16736 /* Override any GCC internal prototype to avoid an error.
16737 Use char because int might match the return type of a GCC
16738 builtin and then its argument prototype would still apply. */
16739 #ifdef __cplusplus
16740 extern "C"
16741 #endif
16742 char $ac_func ();
16743 /* The GNU C library defines this for functions which it implements
16744 to always fail with ENOSYS. Some functions are actually named
16745 something starting with __ and the normal name is an alias. */
16746 #if defined __stub_$ac_func || defined __stub___$ac_func
16747 choke me
16748 #endif
16751 main ()
16753 return $ac_func ();
16755 return 0;
16757 _ACEOF
16758 rm -f conftest.$ac_objext conftest$ac_exeext
16759 if { (ac_try="$ac_link"
16760 case "(($ac_try" in
16761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16762 *) ac_try_echo=$ac_try;;
16763 esac
16764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16765 $as_echo "$ac_try_echo") >&5
16766 (eval "$ac_link") 2>conftest.er1
16767 ac_status=$?
16768 grep -v '^ *+' conftest.er1 >conftest.err
16769 rm -f conftest.er1
16770 cat conftest.err >&5
16771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16772 (exit $ac_status); } && {
16773 test -z "$ac_c_werror_flag" ||
16774 test ! -s conftest.err
16775 } && test -s conftest$ac_exeext && {
16776 test "$cross_compiling" = yes ||
16777 $as_test_x conftest$ac_exeext
16778 }; then
16779 eval "$as_ac_var=yes"
16780 else
16781 $as_echo "$as_me: failed program was:" >&5
16782 sed 's/^/| /' conftest.$ac_ext >&5
16784 eval "$as_ac_var=no"
16787 rm -rf conftest.dSYM
16788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16789 conftest$ac_exeext conftest.$ac_ext
16791 ac_res=`eval 'as_val=${'$as_ac_var'}
16792 $as_echo "$as_val"'`
16793 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16794 $as_echo "$ac_res" >&6; }
16795 if test `eval 'as_val=${'$as_ac_var'}
16796 $as_echo "$as_val"'` = yes; then
16798 cat >>confdefs.h <<_ACEOF
16799 #define CRAY_STACKSEG_END $ac_func
16800 _ACEOF
16802 break
16805 done
16808 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16809 $as_echo_n "checking stack direction for C alloca... " >&6; }
16810 if test "${ac_cv_c_stack_direction+set}" = set; then
16811 $as_echo_n "(cached) " >&6
16812 else
16813 if test "$cross_compiling" = yes; then
16814 ac_cv_c_stack_direction=0
16815 else
16816 cat >conftest.$ac_ext <<_ACEOF
16817 /* confdefs.h. */
16818 _ACEOF
16819 cat confdefs.h >>conftest.$ac_ext
16820 cat >>conftest.$ac_ext <<_ACEOF
16821 /* end confdefs.h. */
16822 $ac_includes_default
16824 find_stack_direction ()
16826 static char *addr = 0;
16827 auto char dummy;
16828 if (addr == 0)
16830 addr = &dummy;
16831 return find_stack_direction ();
16833 else
16834 return (&dummy > addr) ? 1 : -1;
16838 main ()
16840 return find_stack_direction () < 0;
16842 _ACEOF
16843 rm -f conftest$ac_exeext
16844 if { (ac_try="$ac_link"
16845 case "(($ac_try" in
16846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16847 *) ac_try_echo=$ac_try;;
16848 esac
16849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16850 $as_echo "$ac_try_echo") >&5
16851 (eval "$ac_link") 2>&5
16852 ac_status=$?
16853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16855 { (case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16858 esac
16859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16860 $as_echo "$ac_try_echo") >&5
16861 (eval "$ac_try") 2>&5
16862 ac_status=$?
16863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); }; }; then
16865 ac_cv_c_stack_direction=1
16866 else
16867 $as_echo "$as_me: program exited with status $ac_status" >&5
16868 $as_echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 ( exit $ac_status )
16872 ac_cv_c_stack_direction=-1
16874 rm -rf conftest.dSYM
16875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16880 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16881 $as_echo "$ac_cv_c_stack_direction" >&6; }
16883 cat >>confdefs.h <<_ACEOF
16884 #define STACK_DIRECTION $ac_cv_c_stack_direction
16885 _ACEOF
16891 if test x"$ac_cv_func_alloca_works" != xyes; then
16892 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16893 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16894 { (exit 1); exit 1; }; }
16897 # fmod, logb, and frexp are found in -lm on most systems.
16898 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16900 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16901 $as_echo_n "checking for sqrt in -lm... " >&6; }
16902 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16903 $as_echo_n "(cached) " >&6
16904 else
16905 ac_check_lib_save_LIBS=$LIBS
16906 LIBS="-lm $LIBS"
16907 cat >conftest.$ac_ext <<_ACEOF
16908 /* confdefs.h. */
16909 _ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16914 /* Override any GCC internal prototype to avoid an error.
16915 Use char because int might match the return type of a GCC
16916 builtin and then its argument prototype would still apply. */
16917 #ifdef __cplusplus
16918 extern "C"
16919 #endif
16920 char sqrt ();
16922 main ()
16924 return sqrt ();
16926 return 0;
16928 _ACEOF
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (ac_try="$ac_link"
16931 case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16934 esac
16935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16936 $as_echo "$ac_try_echo") >&5
16937 (eval "$ac_link") 2>conftest.er1
16938 ac_status=$?
16939 grep -v '^ *+' conftest.er1 >conftest.err
16940 rm -f conftest.er1
16941 cat conftest.err >&5
16942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16943 (exit $ac_status); } && {
16944 test -z "$ac_c_werror_flag" ||
16945 test ! -s conftest.err
16946 } && test -s conftest$ac_exeext && {
16947 test "$cross_compiling" = yes ||
16948 $as_test_x conftest$ac_exeext
16949 }; then
16950 ac_cv_lib_m_sqrt=yes
16951 else
16952 $as_echo "$as_me: failed program was:" >&5
16953 sed 's/^/| /' conftest.$ac_ext >&5
16955 ac_cv_lib_m_sqrt=no
16958 rm -rf conftest.dSYM
16959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16960 conftest$ac_exeext conftest.$ac_ext
16961 LIBS=$ac_check_lib_save_LIBS
16963 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16964 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16965 if test $ac_cv_lib_m_sqrt = yes; then
16966 cat >>confdefs.h <<_ACEOF
16967 #define HAVE_LIBM 1
16968 _ACEOF
16970 LIBS="-lm $LIBS"
16975 # Check for mail-locking functions in a "mail" library. Probably this should
16976 # have the same check as for liblockfile below.
16977 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16978 $as_echo_n "checking for maillock in -lmail... " >&6; }
16979 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16980 $as_echo_n "(cached) " >&6
16981 else
16982 ac_check_lib_save_LIBS=$LIBS
16983 LIBS="-lmail $LIBS"
16984 cat >conftest.$ac_ext <<_ACEOF
16985 /* confdefs.h. */
16986 _ACEOF
16987 cat confdefs.h >>conftest.$ac_ext
16988 cat >>conftest.$ac_ext <<_ACEOF
16989 /* end confdefs.h. */
16991 /* Override any GCC internal prototype to avoid an error.
16992 Use char because int might match the return type of a GCC
16993 builtin and then its argument prototype would still apply. */
16994 #ifdef __cplusplus
16995 extern "C"
16996 #endif
16997 char maillock ();
16999 main ()
17001 return maillock ();
17003 return 0;
17005 _ACEOF
17006 rm -f conftest.$ac_objext conftest$ac_exeext
17007 if { (ac_try="$ac_link"
17008 case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17011 esac
17012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17013 $as_echo "$ac_try_echo") >&5
17014 (eval "$ac_link") 2>conftest.er1
17015 ac_status=$?
17016 grep -v '^ *+' conftest.er1 >conftest.err
17017 rm -f conftest.er1
17018 cat conftest.err >&5
17019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } && {
17021 test -z "$ac_c_werror_flag" ||
17022 test ! -s conftest.err
17023 } && test -s conftest$ac_exeext && {
17024 test "$cross_compiling" = yes ||
17025 $as_test_x conftest$ac_exeext
17026 }; then
17027 ac_cv_lib_mail_maillock=yes
17028 else
17029 $as_echo "$as_me: failed program was:" >&5
17030 sed 's/^/| /' conftest.$ac_ext >&5
17032 ac_cv_lib_mail_maillock=no
17035 rm -rf conftest.dSYM
17036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17037 conftest$ac_exeext conftest.$ac_ext
17038 LIBS=$ac_check_lib_save_LIBS
17040 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
17041 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
17042 if test $ac_cv_lib_mail_maillock = yes; then
17043 have_mail=yes
17044 else
17045 have_mail=no
17048 if test $have_mail = yes; then
17049 LIBS_MAIL=-lmail
17050 LIBS="$LIBS_MAIL $LIBS"
17052 cat >>confdefs.h <<\_ACEOF
17053 #define HAVE_LIBMAIL 1
17054 _ACEOF
17056 else
17057 LIBS_MAIL=
17059 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
17060 $as_echo_n "checking for maillock in -llockfile... " >&6; }
17061 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
17062 $as_echo_n "(cached) " >&6
17063 else
17064 ac_check_lib_save_LIBS=$LIBS
17065 LIBS="-llockfile $LIBS"
17066 cat >conftest.$ac_ext <<_ACEOF
17067 /* confdefs.h. */
17068 _ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17073 /* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
17076 #ifdef __cplusplus
17077 extern "C"
17078 #endif
17079 char maillock ();
17081 main ()
17083 return maillock ();
17085 return 0;
17087 _ACEOF
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17093 esac
17094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17095 $as_echo "$ac_try_echo") >&5
17096 (eval "$ac_link") 2>conftest.er1
17097 ac_status=$?
17098 grep -v '^ *+' conftest.er1 >conftest.err
17099 rm -f conftest.er1
17100 cat conftest.err >&5
17101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_c_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest$ac_exeext && {
17106 test "$cross_compiling" = yes ||
17107 $as_test_x conftest$ac_exeext
17108 }; then
17109 ac_cv_lib_lockfile_maillock=yes
17110 else
17111 $as_echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17114 ac_cv_lib_lockfile_maillock=no
17117 rm -rf conftest.dSYM
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS=$ac_check_lib_save_LIBS
17122 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
17123 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17124 if test $ac_cv_lib_lockfile_maillock = yes; then
17125 have_lockfile=yes
17126 else
17127 have_lockfile=no
17130 if test $have_lockfile = yes; then
17131 LIBS_MAIL=-llockfile
17132 LIBS="$LIBS_MAIL $LIBS"
17134 cat >>confdefs.h <<\_ACEOF
17135 #define HAVE_LIBLOCKFILE 1
17136 _ACEOF
17138 else
17139 # If we have the shared liblockfile, assume we must use it for mail
17140 # locking (e.g. Debian). If we couldn't link against liblockfile
17141 # (no liblockfile.a installed), ensure that we don't need to.
17142 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17143 set dummy liblockfile.so; ac_word=$2
17144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17145 $as_echo_n "checking for $ac_word... " >&6; }
17146 if test "${ac_cv_prog_liblockfile+set}" = set; then
17147 $as_echo_n "(cached) " >&6
17148 else
17149 if test -n "$liblockfile"; then
17150 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17151 else
17152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17153 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17154 for as_dir in $as_dummy
17156 IFS=$as_save_IFS
17157 test -z "$as_dir" && as_dir=.
17158 for ac_exec_ext in '' $ac_executable_extensions; do
17159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17160 ac_cv_prog_liblockfile="yes"
17161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17162 break 2
17164 done
17165 done
17166 IFS=$as_save_IFS
17168 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17171 liblockfile=$ac_cv_prog_liblockfile
17172 if test -n "$liblockfile"; then
17173 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
17174 $as_echo "$liblockfile" >&6; }
17175 else
17176 { $as_echo "$as_me:$LINENO: result: no" >&5
17177 $as_echo "no" >&6; }
17181 if test $ac_cv_prog_liblockfile = yes; then
17182 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17183 This probably means that movemail could lose mail.
17184 There may be a \`development' package to install containing liblockfile." >&5
17185 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17186 This probably means that movemail could lose mail.
17187 There may be a \`development' package to install containing liblockfile." >&2;}
17188 { (exit 1); exit 1; }; }
17192 for ac_func in touchlock
17194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17195 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17196 $as_echo_n "checking for $ac_func... " >&6; }
17197 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17198 $as_echo_n "(cached) " >&6
17199 else
17200 cat >conftest.$ac_ext <<_ACEOF
17201 /* confdefs.h. */
17202 _ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17208 #define $ac_func innocuous_$ac_func
17210 /* System header to define __stub macros and hopefully few prototypes,
17211 which can conflict with char $ac_func (); below.
17212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17213 <limits.h> exists even on freestanding compilers. */
17215 #ifdef __STDC__
17216 # include <limits.h>
17217 #else
17218 # include <assert.h>
17219 #endif
17221 #undef $ac_func
17223 /* Override any GCC internal prototype to avoid an error.
17224 Use char because int might match the return type of a GCC
17225 builtin and then its argument prototype would still apply. */
17226 #ifdef __cplusplus
17227 extern "C"
17228 #endif
17229 char $ac_func ();
17230 /* The GNU C library defines this for functions which it implements
17231 to always fail with ENOSYS. Some functions are actually named
17232 something starting with __ and the normal name is an alias. */
17233 #if defined __stub_$ac_func || defined __stub___$ac_func
17234 choke me
17235 #endif
17238 main ()
17240 return $ac_func ();
17242 return 0;
17244 _ACEOF
17245 rm -f conftest.$ac_objext conftest$ac_exeext
17246 if { (ac_try="$ac_link"
17247 case "(($ac_try" in
17248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17249 *) ac_try_echo=$ac_try;;
17250 esac
17251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17252 $as_echo "$ac_try_echo") >&5
17253 (eval "$ac_link") 2>conftest.er1
17254 ac_status=$?
17255 grep -v '^ *+' conftest.er1 >conftest.err
17256 rm -f conftest.er1
17257 cat conftest.err >&5
17258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } && {
17260 test -z "$ac_c_werror_flag" ||
17261 test ! -s conftest.err
17262 } && test -s conftest$ac_exeext && {
17263 test "$cross_compiling" = yes ||
17264 $as_test_x conftest$ac_exeext
17265 }; then
17266 eval "$as_ac_var=yes"
17267 else
17268 $as_echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 eval "$as_ac_var=no"
17274 rm -rf conftest.dSYM
17275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17276 conftest$ac_exeext conftest.$ac_ext
17278 ac_res=`eval 'as_val=${'$as_ac_var'}
17279 $as_echo "$as_val"'`
17280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17281 $as_echo "$ac_res" >&6; }
17282 if test `eval 'as_val=${'$as_ac_var'}
17283 $as_echo "$as_val"'` = yes; then
17284 cat >>confdefs.h <<_ACEOF
17285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17286 _ACEOF
17289 done
17292 for ac_header in maillock.h
17294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17296 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17297 $as_echo_n "checking for $ac_header... " >&6; }
17298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17299 $as_echo_n "(cached) " >&6
17301 ac_res=`eval 'as_val=${'$as_ac_Header'}
17302 $as_echo "$as_val"'`
17303 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17304 $as_echo "$ac_res" >&6; }
17305 else
17306 # Is the header compilable?
17307 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17308 $as_echo_n "checking $ac_header usability... " >&6; }
17309 cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h. */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315 $ac_includes_default
17316 #include <$ac_header>
17317 _ACEOF
17318 rm -f conftest.$ac_objext
17319 if { (ac_try="$ac_compile"
17320 case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17323 esac
17324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17325 $as_echo "$ac_try_echo") >&5
17326 (eval "$ac_compile") 2>conftest.er1
17327 ac_status=$?
17328 grep -v '^ *+' conftest.er1 >conftest.err
17329 rm -f conftest.er1
17330 cat conftest.err >&5
17331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } && {
17333 test -z "$ac_c_werror_flag" ||
17334 test ! -s conftest.err
17335 } && test -s conftest.$ac_objext; then
17336 ac_header_compiler=yes
17337 else
17338 $as_echo "$as_me: failed program was:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17341 ac_header_compiler=no
17344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17346 $as_echo "$ac_header_compiler" >&6; }
17348 # Is the header present?
17349 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17350 $as_echo_n "checking $ac_header presence... " >&6; }
17351 cat >conftest.$ac_ext <<_ACEOF
17352 /* confdefs.h. */
17353 _ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17357 #include <$ac_header>
17358 _ACEOF
17359 if { (ac_try="$ac_cpp conftest.$ac_ext"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17363 esac
17364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17365 $as_echo "$ac_try_echo") >&5
17366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17367 ac_status=$?
17368 grep -v '^ *+' conftest.er1 >conftest.err
17369 rm -f conftest.er1
17370 cat conftest.err >&5
17371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } >/dev/null && {
17373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17374 test ! -s conftest.err
17375 }; then
17376 ac_header_preproc=yes
17377 else
17378 $as_echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 ac_header_preproc=no
17384 rm -f conftest.err conftest.$ac_ext
17385 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17386 $as_echo "$ac_header_preproc" >&6; }
17388 # So? What about this header?
17389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17390 yes:no: )
17391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17392 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17393 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17394 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17395 ac_header_preproc=yes
17397 no:yes:* )
17398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17399 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17401 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17403 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17405 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17407 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17409 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17412 esac
17413 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17414 $as_echo_n "checking for $ac_header... " >&6; }
17415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17416 $as_echo_n "(cached) " >&6
17417 else
17418 eval "$as_ac_Header=\$ac_header_preproc"
17420 ac_res=`eval 'as_val=${'$as_ac_Header'}
17421 $as_echo "$as_val"'`
17422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17423 $as_echo "$ac_res" >&6; }
17426 if test `eval 'as_val=${'$as_ac_Header'}
17427 $as_echo "$as_val"'` = yes; then
17428 cat >>confdefs.h <<_ACEOF
17429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17430 _ACEOF
17434 done
17509 for ac_func in gethostname getdomainname dup2 \
17510 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17511 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
17512 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
17513 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
17514 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17515 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17516 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17517 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17518 cfmakeraw cfsetspeed
17520 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17521 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17522 $as_echo_n "checking for $ac_func... " >&6; }
17523 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17524 $as_echo_n "(cached) " >&6
17525 else
17526 cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h. */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17533 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17534 #define $ac_func innocuous_$ac_func
17536 /* System header to define __stub macros and hopefully few prototypes,
17537 which can conflict with char $ac_func (); below.
17538 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17539 <limits.h> exists even on freestanding compilers. */
17541 #ifdef __STDC__
17542 # include <limits.h>
17543 #else
17544 # include <assert.h>
17545 #endif
17547 #undef $ac_func
17549 /* Override any GCC internal prototype to avoid an error.
17550 Use char because int might match the return type of a GCC
17551 builtin and then its argument prototype would still apply. */
17552 #ifdef __cplusplus
17553 extern "C"
17554 #endif
17555 char $ac_func ();
17556 /* The GNU C library defines this for functions which it implements
17557 to always fail with ENOSYS. Some functions are actually named
17558 something starting with __ and the normal name is an alias. */
17559 #if defined __stub_$ac_func || defined __stub___$ac_func
17560 choke me
17561 #endif
17564 main ()
17566 return $ac_func ();
17568 return 0;
17570 _ACEOF
17571 rm -f conftest.$ac_objext conftest$ac_exeext
17572 if { (ac_try="$ac_link"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17576 esac
17577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17578 $as_echo "$ac_try_echo") >&5
17579 (eval "$ac_link") 2>conftest.er1
17580 ac_status=$?
17581 grep -v '^ *+' conftest.er1 >conftest.err
17582 rm -f conftest.er1
17583 cat conftest.err >&5
17584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } && {
17586 test -z "$ac_c_werror_flag" ||
17587 test ! -s conftest.err
17588 } && test -s conftest$ac_exeext && {
17589 test "$cross_compiling" = yes ||
17590 $as_test_x conftest$ac_exeext
17591 }; then
17592 eval "$as_ac_var=yes"
17593 else
17594 $as_echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17597 eval "$as_ac_var=no"
17600 rm -rf conftest.dSYM
17601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17602 conftest$ac_exeext conftest.$ac_ext
17604 ac_res=`eval 'as_val=${'$as_ac_var'}
17605 $as_echo "$as_val"'`
17606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17607 $as_echo "$ac_res" >&6; }
17608 if test `eval 'as_val=${'$as_ac_var'}
17609 $as_echo "$as_val"'` = yes; then
17610 cat >>confdefs.h <<_ACEOF
17611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17612 _ACEOF
17615 done
17619 for ac_header in sys/un.h
17621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17624 $as_echo_n "checking for $ac_header... " >&6; }
17625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17626 $as_echo_n "(cached) " >&6
17628 ac_res=`eval 'as_val=${'$as_ac_Header'}
17629 $as_echo "$as_val"'`
17630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17631 $as_echo "$ac_res" >&6; }
17632 else
17633 # Is the header compilable?
17634 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17635 $as_echo_n "checking $ac_header usability... " >&6; }
17636 cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h. */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 $ac_includes_default
17643 #include <$ac_header>
17644 _ACEOF
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650 esac
17651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17652 $as_echo "$ac_try_echo") >&5
17653 (eval "$ac_compile") 2>conftest.er1
17654 ac_status=$?
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
17658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } && {
17660 test -z "$ac_c_werror_flag" ||
17661 test ! -s conftest.err
17662 } && test -s conftest.$ac_objext; then
17663 ac_header_compiler=yes
17664 else
17665 $as_echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 ac_header_compiler=no
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17673 $as_echo "$ac_header_compiler" >&6; }
17675 # Is the header present?
17676 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17677 $as_echo_n "checking $ac_header presence... " >&6; }
17678 cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h. */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 #include <$ac_header>
17685 _ACEOF
17686 if { (ac_try="$ac_cpp conftest.$ac_ext"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690 esac
17691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17692 $as_echo "$ac_try_echo") >&5
17693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } >/dev/null && {
17700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17701 test ! -s conftest.err
17702 }; then
17703 ac_header_preproc=yes
17704 else
17705 $as_echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17708 ac_header_preproc=no
17711 rm -f conftest.err conftest.$ac_ext
17712 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17713 $as_echo "$ac_header_preproc" >&6; }
17715 # So? What about this header?
17716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17717 yes:no: )
17718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17719 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17721 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17722 ac_header_preproc=yes
17724 no:yes:* )
17725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17726 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17728 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17730 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17732 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17736 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17739 esac
17740 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17741 $as_echo_n "checking for $ac_header... " >&6; }
17742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17743 $as_echo_n "(cached) " >&6
17744 else
17745 eval "$as_ac_Header=\$ac_header_preproc"
17747 ac_res=`eval 'as_val=${'$as_ac_Header'}
17748 $as_echo "$as_val"'`
17749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17750 $as_echo "$ac_res" >&6; }
17753 if test `eval 'as_val=${'$as_ac_Header'}
17754 $as_echo "$as_val"'` = yes; then
17755 cat >>confdefs.h <<_ACEOF
17756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17757 _ACEOF
17761 done
17768 for ac_header in $ac_header_list
17770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17772 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17773 $as_echo_n "checking for $ac_header... " >&6; }
17774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17775 $as_echo_n "(cached) " >&6
17777 ac_res=`eval 'as_val=${'$as_ac_Header'}
17778 $as_echo "$as_val"'`
17779 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17780 $as_echo "$ac_res" >&6; }
17781 else
17782 # Is the header compilable?
17783 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17784 $as_echo_n "checking $ac_header usability... " >&6; }
17785 cat >conftest.$ac_ext <<_ACEOF
17786 /* confdefs.h. */
17787 _ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h. */
17791 $ac_includes_default
17792 #include <$ac_header>
17793 _ACEOF
17794 rm -f conftest.$ac_objext
17795 if { (ac_try="$ac_compile"
17796 case "(($ac_try" in
17797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17798 *) ac_try_echo=$ac_try;;
17799 esac
17800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17801 $as_echo "$ac_try_echo") >&5
17802 (eval "$ac_compile") 2>conftest.er1
17803 ac_status=$?
17804 grep -v '^ *+' conftest.er1 >conftest.err
17805 rm -f conftest.er1
17806 cat conftest.err >&5
17807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } && {
17809 test -z "$ac_c_werror_flag" ||
17810 test ! -s conftest.err
17811 } && test -s conftest.$ac_objext; then
17812 ac_header_compiler=yes
17813 else
17814 $as_echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17817 ac_header_compiler=no
17820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17822 $as_echo "$ac_header_compiler" >&6; }
17824 # Is the header present?
17825 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17826 $as_echo_n "checking $ac_header presence... " >&6; }
17827 cat >conftest.$ac_ext <<_ACEOF
17828 /* confdefs.h. */
17829 _ACEOF
17830 cat confdefs.h >>conftest.$ac_ext
17831 cat >>conftest.$ac_ext <<_ACEOF
17832 /* end confdefs.h. */
17833 #include <$ac_header>
17834 _ACEOF
17835 if { (ac_try="$ac_cpp conftest.$ac_ext"
17836 case "(($ac_try" in
17837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17838 *) ac_try_echo=$ac_try;;
17839 esac
17840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17841 $as_echo "$ac_try_echo") >&5
17842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17843 ac_status=$?
17844 grep -v '^ *+' conftest.er1 >conftest.err
17845 rm -f conftest.er1
17846 cat conftest.err >&5
17847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } >/dev/null && {
17849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17850 test ! -s conftest.err
17851 }; then
17852 ac_header_preproc=yes
17853 else
17854 $as_echo "$as_me: failed program was:" >&5
17855 sed 's/^/| /' conftest.$ac_ext >&5
17857 ac_header_preproc=no
17860 rm -f conftest.err conftest.$ac_ext
17861 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17862 $as_echo "$ac_header_preproc" >&6; }
17864 # So? What about this header?
17865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17866 yes:no: )
17867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17868 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17869 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17870 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17871 ac_header_preproc=yes
17873 no:yes:* )
17874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17875 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17877 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17879 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17881 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17885 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17888 esac
17889 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17890 $as_echo_n "checking for $ac_header... " >&6; }
17891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17892 $as_echo_n "(cached) " >&6
17893 else
17894 eval "$as_ac_Header=\$ac_header_preproc"
17896 ac_res=`eval 'as_val=${'$as_ac_Header'}
17897 $as_echo "$as_val"'`
17898 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17899 $as_echo "$ac_res" >&6; }
17902 if test `eval 'as_val=${'$as_ac_Header'}
17903 $as_echo "$as_val"'` = yes; then
17904 cat >>confdefs.h <<_ACEOF
17905 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17906 _ACEOF
17910 done
17920 for ac_func in $ac_func_list
17922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17923 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17924 $as_echo_n "checking for $ac_func... " >&6; }
17925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17926 $as_echo_n "(cached) " >&6
17927 else
17928 cat >conftest.$ac_ext <<_ACEOF
17929 /* confdefs.h. */
17930 _ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17936 #define $ac_func innocuous_$ac_func
17938 /* System header to define __stub macros and hopefully few prototypes,
17939 which can conflict with char $ac_func (); below.
17940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17941 <limits.h> exists even on freestanding compilers. */
17943 #ifdef __STDC__
17944 # include <limits.h>
17945 #else
17946 # include <assert.h>
17947 #endif
17949 #undef $ac_func
17951 /* Override any GCC internal prototype to avoid an error.
17952 Use char because int might match the return type of a GCC
17953 builtin and then its argument prototype would still apply. */
17954 #ifdef __cplusplus
17955 extern "C"
17956 #endif
17957 char $ac_func ();
17958 /* The GNU C library defines this for functions which it implements
17959 to always fail with ENOSYS. Some functions are actually named
17960 something starting with __ and the normal name is an alias. */
17961 #if defined __stub_$ac_func || defined __stub___$ac_func
17962 choke me
17963 #endif
17966 main ()
17968 return $ac_func ();
17970 return 0;
17972 _ACEOF
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (ac_try="$ac_link"
17975 case "(($ac_try" in
17976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17977 *) ac_try_echo=$ac_try;;
17978 esac
17979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17980 $as_echo "$ac_try_echo") >&5
17981 (eval "$ac_link") 2>conftest.er1
17982 ac_status=$?
17983 grep -v '^ *+' conftest.er1 >conftest.err
17984 rm -f conftest.er1
17985 cat conftest.err >&5
17986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } && {
17988 test -z "$ac_c_werror_flag" ||
17989 test ! -s conftest.err
17990 } && test -s conftest$ac_exeext && {
17991 test "$cross_compiling" = yes ||
17992 $as_test_x conftest$ac_exeext
17993 }; then
17994 eval "$as_ac_var=yes"
17995 else
17996 $as_echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999 eval "$as_ac_var=no"
18002 rm -rf conftest.dSYM
18003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18004 conftest$ac_exeext conftest.$ac_ext
18006 ac_res=`eval 'as_val=${'$as_ac_var'}
18007 $as_echo "$as_val"'`
18008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18009 $as_echo "$ac_res" >&6; }
18010 if test `eval 'as_val=${'$as_ac_var'}
18011 $as_echo "$as_val"'` = yes; then
18012 cat >>confdefs.h <<_ACEOF
18013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18014 _ACEOF
18017 done
18035 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
18036 $as_echo_n "checking for working mktime... " >&6; }
18037 if test "${ac_cv_func_working_mktime+set}" = set; then
18038 $as_echo_n "(cached) " >&6
18039 else
18040 if test "$cross_compiling" = yes; then
18041 ac_cv_func_working_mktime=no
18042 else
18043 cat >conftest.$ac_ext <<_ACEOF
18044 /* confdefs.h. */
18045 _ACEOF
18046 cat confdefs.h >>conftest.$ac_ext
18047 cat >>conftest.$ac_ext <<_ACEOF
18048 /* end confdefs.h. */
18049 /* Test program from Paul Eggert and Tony Leneis. */
18050 #ifdef TIME_WITH_SYS_TIME
18051 # include <sys/time.h>
18052 # include <time.h>
18053 #else
18054 # ifdef HAVE_SYS_TIME_H
18055 # include <sys/time.h>
18056 # else
18057 # include <time.h>
18058 # endif
18059 #endif
18061 #include <limits.h>
18062 #include <stdlib.h>
18064 #ifdef HAVE_UNISTD_H
18065 # include <unistd.h>
18066 #endif
18068 #ifndef HAVE_ALARM
18069 # define alarm(X) /* empty */
18070 #endif
18072 /* Work around redefinition to rpl_putenv by other config tests. */
18073 #undef putenv
18075 static time_t time_t_max;
18076 static time_t time_t_min;
18078 /* Values we'll use to set the TZ environment variable. */
18079 static char *tz_strings[] = {
18080 (char *) 0, "TZ=GMT0", "TZ=JST-9",
18081 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18083 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18085 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18086 Based on a problem report from Andreas Jaeger. */
18087 static int
18088 spring_forward_gap ()
18090 /* glibc (up to about 1998-10-07) failed this test. */
18091 struct tm tm;
18093 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18094 instead of "TZ=America/Vancouver" in order to detect the bug even
18095 on systems that don't support the Olson extension, or don't have the
18096 full zoneinfo tables installed. */
18097 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18099 tm.tm_year = 98;
18100 tm.tm_mon = 3;
18101 tm.tm_mday = 5;
18102 tm.tm_hour = 2;
18103 tm.tm_min = 0;
18104 tm.tm_sec = 0;
18105 tm.tm_isdst = -1;
18106 return mktime (&tm) != (time_t) -1;
18109 static int
18110 mktime_test1 (now)
18111 time_t now;
18113 struct tm *lt;
18114 return ! (lt = localtime (&now)) || mktime (lt) == now;
18117 static int
18118 mktime_test (now)
18119 time_t now;
18121 return (mktime_test1 (now)
18122 && mktime_test1 ((time_t) (time_t_max - now))
18123 && mktime_test1 ((time_t) (time_t_min + now)));
18126 static int
18127 irix_6_4_bug ()
18129 /* Based on code from Ariel Faigon. */
18130 struct tm tm;
18131 tm.tm_year = 96;
18132 tm.tm_mon = 3;
18133 tm.tm_mday = 0;
18134 tm.tm_hour = 0;
18135 tm.tm_min = 0;
18136 tm.tm_sec = 0;
18137 tm.tm_isdst = -1;
18138 mktime (&tm);
18139 return tm.tm_mon == 2 && tm.tm_mday == 31;
18142 static int
18143 bigtime_test (j)
18144 int j;
18146 struct tm tm;
18147 time_t now;
18148 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18149 now = mktime (&tm);
18150 if (now != (time_t) -1)
18152 struct tm *lt = localtime (&now);
18153 if (! (lt
18154 && lt->tm_year == tm.tm_year
18155 && lt->tm_mon == tm.tm_mon
18156 && lt->tm_mday == tm.tm_mday
18157 && lt->tm_hour == tm.tm_hour
18158 && lt->tm_min == tm.tm_min
18159 && lt->tm_sec == tm.tm_sec
18160 && lt->tm_yday == tm.tm_yday
18161 && lt->tm_wday == tm.tm_wday
18162 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18163 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18164 return 0;
18166 return 1;
18169 static int
18170 year_2050_test ()
18172 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18173 ignoring leap seconds. */
18174 unsigned long int answer = 2527315200UL;
18176 struct tm tm;
18177 time_t t;
18178 tm.tm_year = 2050 - 1900;
18179 tm.tm_mon = 2 - 1;
18180 tm.tm_mday = 1;
18181 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18182 tm.tm_isdst = -1;
18184 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18185 instead of "TZ=America/Vancouver" in order to detect the bug even
18186 on systems that don't support the Olson extension, or don't have the
18187 full zoneinfo tables installed. */
18188 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
18190 t = mktime (&tm);
18192 /* Check that the result is either a failure, or close enough
18193 to the correct answer that we can assume the discrepancy is
18194 due to leap seconds. */
18195 return (t == (time_t) -1
18196 || (0 < t && answer - 120 <= t && t <= answer + 120));
18200 main ()
18202 time_t t, delta;
18203 int i, j;
18205 /* This test makes some buggy mktime implementations loop.
18206 Give up after 60 seconds; a mktime slower than that
18207 isn't worth using anyway. */
18208 alarm (60);
18210 for (;;)
18212 t = (time_t_max << 1) + 1;
18213 if (t <= time_t_max)
18214 break;
18215 time_t_max = t;
18217 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18219 delta = time_t_max / 997; /* a suitable prime number */
18220 for (i = 0; i < N_STRINGS; i++)
18222 if (tz_strings[i])
18223 putenv (tz_strings[i]);
18225 for (t = 0; t <= time_t_max - delta; t += delta)
18226 if (! mktime_test (t))
18227 return 1;
18228 if (! (mktime_test ((time_t) 1)
18229 && mktime_test ((time_t) (60 * 60))
18230 && mktime_test ((time_t) (60 * 60 * 24))))
18231 return 1;
18233 for (j = 1; ; j <<= 1)
18234 if (! bigtime_test (j))
18235 return 1;
18236 else if (INT_MAX / 2 < j)
18237 break;
18238 if (! bigtime_test (INT_MAX))
18239 return 1;
18241 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18243 _ACEOF
18244 rm -f conftest$ac_exeext
18245 if { (ac_try="$ac_link"
18246 case "(($ac_try" in
18247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18248 *) ac_try_echo=$ac_try;;
18249 esac
18250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18251 $as_echo "$ac_try_echo") >&5
18252 (eval "$ac_link") 2>&5
18253 ac_status=$?
18254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18256 { (case "(($ac_try" in
18257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18258 *) ac_try_echo=$ac_try;;
18259 esac
18260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18261 $as_echo "$ac_try_echo") >&5
18262 (eval "$ac_try") 2>&5
18263 ac_status=$?
18264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); }; }; then
18266 ac_cv_func_working_mktime=yes
18267 else
18268 $as_echo "$as_me: program exited with status $ac_status" >&5
18269 $as_echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18272 ( exit $ac_status )
18273 ac_cv_func_working_mktime=no
18275 rm -rf conftest.dSYM
18276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18281 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18282 $as_echo "$ac_cv_func_working_mktime" >&6; }
18283 if test $ac_cv_func_working_mktime = no; then
18284 case " $LIBOBJS " in
18285 *" mktime.$ac_objext "* ) ;;
18286 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18288 esac
18292 if test "$ac_cv_func_working_mktime" = no; then
18294 cat >>confdefs.h <<\_ACEOF
18295 #define BROKEN_MKTIME 1
18296 _ACEOF
18300 ac_have_func=no # yes means we've found a way to get the load average.
18302 # Make sure getloadavg.c is where it belongs, at configure-time.
18303 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18304 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18305 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18306 { (exit 1); exit 1; }; }
18308 ac_save_LIBS=$LIBS
18310 # Check for getloadavg, but be sure not to touch the cache variable.
18311 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
18312 $as_echo_n "checking for getloadavg... " >&6; }
18313 if test "${ac_cv_func_getloadavg+set}" = set; then
18314 $as_echo_n "(cached) " >&6
18315 else
18316 cat >conftest.$ac_ext <<_ACEOF
18317 /* confdefs.h. */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18323 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18324 #define getloadavg innocuous_getloadavg
18326 /* System header to define __stub macros and hopefully few prototypes,
18327 which can conflict with char getloadavg (); below.
18328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18329 <limits.h> exists even on freestanding compilers. */
18331 #ifdef __STDC__
18332 # include <limits.h>
18333 #else
18334 # include <assert.h>
18335 #endif
18337 #undef getloadavg
18339 /* Override any GCC internal prototype to avoid an error.
18340 Use char because int might match the return type of a GCC
18341 builtin and then its argument prototype would still apply. */
18342 #ifdef __cplusplus
18343 extern "C"
18344 #endif
18345 char getloadavg ();
18346 /* The GNU C library defines this for functions which it implements
18347 to always fail with ENOSYS. Some functions are actually named
18348 something starting with __ and the normal name is an alias. */
18349 #if defined __stub_getloadavg || defined __stub___getloadavg
18350 choke me
18351 #endif
18354 main ()
18356 return getloadavg ();
18358 return 0;
18360 _ACEOF
18361 rm -f conftest.$ac_objext conftest$ac_exeext
18362 if { (ac_try="$ac_link"
18363 case "(($ac_try" in
18364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18365 *) ac_try_echo=$ac_try;;
18366 esac
18367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18368 $as_echo "$ac_try_echo") >&5
18369 (eval "$ac_link") 2>conftest.er1
18370 ac_status=$?
18371 grep -v '^ *+' conftest.er1 >conftest.err
18372 rm -f conftest.er1
18373 cat conftest.err >&5
18374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } && {
18376 test -z "$ac_c_werror_flag" ||
18377 test ! -s conftest.err
18378 } && test -s conftest$ac_exeext && {
18379 test "$cross_compiling" = yes ||
18380 $as_test_x conftest$ac_exeext
18381 }; then
18382 ac_cv_func_getloadavg=yes
18383 else
18384 $as_echo "$as_me: failed program was:" >&5
18385 sed 's/^/| /' conftest.$ac_ext >&5
18387 ac_cv_func_getloadavg=no
18390 rm -rf conftest.dSYM
18391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18392 conftest$ac_exeext conftest.$ac_ext
18394 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18395 $as_echo "$ac_cv_func_getloadavg" >&6; }
18396 if test $ac_cv_func_getloadavg = yes; then
18397 exit 0
18398 else
18399 exit 1
18401 ) && ac_have_func=yes
18403 # On HPUX9, an unprivileged user can get load averages through this function.
18405 for ac_func in pstat_getdynamic
18407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18408 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18409 $as_echo_n "checking for $ac_func... " >&6; }
18410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18411 $as_echo_n "(cached) " >&6
18412 else
18413 cat >conftest.$ac_ext <<_ACEOF
18414 /* confdefs.h. */
18415 _ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18421 #define $ac_func innocuous_$ac_func
18423 /* System header to define __stub macros and hopefully few prototypes,
18424 which can conflict with char $ac_func (); below.
18425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18426 <limits.h> exists even on freestanding compilers. */
18428 #ifdef __STDC__
18429 # include <limits.h>
18430 #else
18431 # include <assert.h>
18432 #endif
18434 #undef $ac_func
18436 /* Override any GCC internal prototype to avoid an error.
18437 Use char because int might match the return type of a GCC
18438 builtin and then its argument prototype would still apply. */
18439 #ifdef __cplusplus
18440 extern "C"
18441 #endif
18442 char $ac_func ();
18443 /* The GNU C library defines this for functions which it implements
18444 to always fail with ENOSYS. Some functions are actually named
18445 something starting with __ and the normal name is an alias. */
18446 #if defined __stub_$ac_func || defined __stub___$ac_func
18447 choke me
18448 #endif
18451 main ()
18453 return $ac_func ();
18455 return 0;
18457 _ACEOF
18458 rm -f conftest.$ac_objext conftest$ac_exeext
18459 if { (ac_try="$ac_link"
18460 case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18463 esac
18464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18465 $as_echo "$ac_try_echo") >&5
18466 (eval "$ac_link") 2>conftest.er1
18467 ac_status=$?
18468 grep -v '^ *+' conftest.er1 >conftest.err
18469 rm -f conftest.er1
18470 cat conftest.err >&5
18471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } && {
18473 test -z "$ac_c_werror_flag" ||
18474 test ! -s conftest.err
18475 } && test -s conftest$ac_exeext && {
18476 test "$cross_compiling" = yes ||
18477 $as_test_x conftest$ac_exeext
18478 }; then
18479 eval "$as_ac_var=yes"
18480 else
18481 $as_echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 eval "$as_ac_var=no"
18487 rm -rf conftest.dSYM
18488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18489 conftest$ac_exeext conftest.$ac_ext
18491 ac_res=`eval 'as_val=${'$as_ac_var'}
18492 $as_echo "$as_val"'`
18493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18494 $as_echo "$ac_res" >&6; }
18495 if test `eval 'as_val=${'$as_ac_var'}
18496 $as_echo "$as_val"'` = yes; then
18497 cat >>confdefs.h <<_ACEOF
18498 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18499 _ACEOF
18502 done
18505 # Solaris has libkstat which does not require root.
18507 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18508 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18509 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
18510 $as_echo_n "(cached) " >&6
18511 else
18512 ac_check_lib_save_LIBS=$LIBS
18513 LIBS="-lkstat $LIBS"
18514 cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h. */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18521 /* Override any GCC internal prototype to avoid an error.
18522 Use char because int might match the return type of a GCC
18523 builtin and then its argument prototype would still apply. */
18524 #ifdef __cplusplus
18525 extern "C"
18526 #endif
18527 char kstat_open ();
18529 main ()
18531 return kstat_open ();
18533 return 0;
18535 _ACEOF
18536 rm -f conftest.$ac_objext conftest$ac_exeext
18537 if { (ac_try="$ac_link"
18538 case "(($ac_try" in
18539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18540 *) ac_try_echo=$ac_try;;
18541 esac
18542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18543 $as_echo "$ac_try_echo") >&5
18544 (eval "$ac_link") 2>conftest.er1
18545 ac_status=$?
18546 grep -v '^ *+' conftest.er1 >conftest.err
18547 rm -f conftest.er1
18548 cat conftest.err >&5
18549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } && {
18551 test -z "$ac_c_werror_flag" ||
18552 test ! -s conftest.err
18553 } && test -s conftest$ac_exeext && {
18554 test "$cross_compiling" = yes ||
18555 $as_test_x conftest$ac_exeext
18556 }; then
18557 ac_cv_lib_kstat_kstat_open=yes
18558 else
18559 $as_echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18562 ac_cv_lib_kstat_kstat_open=no
18565 rm -rf conftest.dSYM
18566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18567 conftest$ac_exeext conftest.$ac_ext
18568 LIBS=$ac_check_lib_save_LIBS
18570 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
18571 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18572 if test $ac_cv_lib_kstat_kstat_open = yes; then
18573 cat >>confdefs.h <<_ACEOF
18574 #define HAVE_LIBKSTAT 1
18575 _ACEOF
18577 LIBS="-lkstat $LIBS"
18581 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
18583 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18584 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18585 # to get the right answer into the cache.
18586 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18587 if test $ac_have_func = no; then
18588 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18589 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18590 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18591 $as_echo_n "(cached) " >&6
18592 else
18593 ac_check_lib_save_LIBS=$LIBS
18594 LIBS="-lelf $LIBS"
18595 cat >conftest.$ac_ext <<_ACEOF
18596 /* confdefs.h. */
18597 _ACEOF
18598 cat confdefs.h >>conftest.$ac_ext
18599 cat >>conftest.$ac_ext <<_ACEOF
18600 /* end confdefs.h. */
18602 /* Override any GCC internal prototype to avoid an error.
18603 Use char because int might match the return type of a GCC
18604 builtin and then its argument prototype would still apply. */
18605 #ifdef __cplusplus
18606 extern "C"
18607 #endif
18608 char elf_begin ();
18610 main ()
18612 return elf_begin ();
18614 return 0;
18616 _ACEOF
18617 rm -f conftest.$ac_objext conftest$ac_exeext
18618 if { (ac_try="$ac_link"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18622 esac
18623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18624 $as_echo "$ac_try_echo") >&5
18625 (eval "$ac_link") 2>conftest.er1
18626 ac_status=$?
18627 grep -v '^ *+' conftest.er1 >conftest.err
18628 rm -f conftest.er1
18629 cat conftest.err >&5
18630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); } && {
18632 test -z "$ac_c_werror_flag" ||
18633 test ! -s conftest.err
18634 } && test -s conftest$ac_exeext && {
18635 test "$cross_compiling" = yes ||
18636 $as_test_x conftest$ac_exeext
18637 }; then
18638 ac_cv_lib_elf_elf_begin=yes
18639 else
18640 $as_echo "$as_me: failed program was:" >&5
18641 sed 's/^/| /' conftest.$ac_ext >&5
18643 ac_cv_lib_elf_elf_begin=no
18646 rm -rf conftest.dSYM
18647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18648 conftest$ac_exeext conftest.$ac_ext
18649 LIBS=$ac_check_lib_save_LIBS
18651 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18652 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18653 if test $ac_cv_lib_elf_elf_begin = yes; then
18654 LIBS="-lelf $LIBS"
18658 if test $ac_have_func = no; then
18659 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
18660 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18661 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
18662 $as_echo_n "(cached) " >&6
18663 else
18664 ac_check_lib_save_LIBS=$LIBS
18665 LIBS="-lkvm $LIBS"
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h. */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h. */
18673 /* Override any GCC internal prototype to avoid an error.
18674 Use char because int might match the return type of a GCC
18675 builtin and then its argument prototype would still apply. */
18676 #ifdef __cplusplus
18677 extern "C"
18678 #endif
18679 char kvm_open ();
18681 main ()
18683 return kvm_open ();
18685 return 0;
18687 _ACEOF
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18693 esac
18694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18695 $as_echo "$ac_try_echo") >&5
18696 (eval "$ac_link") 2>conftest.er1
18697 ac_status=$?
18698 grep -v '^ *+' conftest.er1 >conftest.err
18699 rm -f conftest.er1
18700 cat conftest.err >&5
18701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest$ac_exeext && {
18706 test "$cross_compiling" = yes ||
18707 $as_test_x conftest$ac_exeext
18708 }; then
18709 ac_cv_lib_kvm_kvm_open=yes
18710 else
18711 $as_echo "$as_me: failed program was:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18714 ac_cv_lib_kvm_kvm_open=no
18717 rm -rf conftest.dSYM
18718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18719 conftest$ac_exeext conftest.$ac_ext
18720 LIBS=$ac_check_lib_save_LIBS
18722 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18723 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18724 if test $ac_cv_lib_kvm_kvm_open = yes; then
18725 LIBS="-lkvm $LIBS"
18728 # Check for the 4.4BSD definition of getloadavg.
18729 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18730 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18731 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18732 $as_echo_n "(cached) " >&6
18733 else
18734 ac_check_lib_save_LIBS=$LIBS
18735 LIBS="-lutil $LIBS"
18736 cat >conftest.$ac_ext <<_ACEOF
18737 /* confdefs.h. */
18738 _ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18743 /* Override any GCC internal prototype to avoid an error.
18744 Use char because int might match the return type of a GCC
18745 builtin and then its argument prototype would still apply. */
18746 #ifdef __cplusplus
18747 extern "C"
18748 #endif
18749 char getloadavg ();
18751 main ()
18753 return getloadavg ();
18755 return 0;
18757 _ACEOF
18758 rm -f conftest.$ac_objext conftest$ac_exeext
18759 if { (ac_try="$ac_link"
18760 case "(($ac_try" in
18761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18763 esac
18764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18765 $as_echo "$ac_try_echo") >&5
18766 (eval "$ac_link") 2>conftest.er1
18767 ac_status=$?
18768 grep -v '^ *+' conftest.er1 >conftest.err
18769 rm -f conftest.er1
18770 cat conftest.err >&5
18771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest$ac_exeext && {
18776 test "$cross_compiling" = yes ||
18777 $as_test_x conftest$ac_exeext
18778 }; then
18779 ac_cv_lib_util_getloadavg=yes
18780 else
18781 $as_echo "$as_me: failed program was:" >&5
18782 sed 's/^/| /' conftest.$ac_ext >&5
18784 ac_cv_lib_util_getloadavg=no
18787 rm -rf conftest.dSYM
18788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18789 conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18792 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18793 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18794 if test $ac_cv_lib_util_getloadavg = yes; then
18795 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18800 if test $ac_have_func = no; then
18801 # There is a commonly available library for RS/6000 AIX.
18802 # Since it is not a standard part of AIX, it might be installed locally.
18803 ac_getloadavg_LIBS=$LIBS
18804 LIBS="-L/usr/local/lib $LIBS"
18805 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18806 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18807 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18808 $as_echo_n "(cached) " >&6
18809 else
18810 ac_check_lib_save_LIBS=$LIBS
18811 LIBS="-lgetloadavg $LIBS"
18812 cat >conftest.$ac_ext <<_ACEOF
18813 /* confdefs.h. */
18814 _ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18819 /* Override any GCC internal prototype to avoid an error.
18820 Use char because int might match the return type of a GCC
18821 builtin and then its argument prototype would still apply. */
18822 #ifdef __cplusplus
18823 extern "C"
18824 #endif
18825 char getloadavg ();
18827 main ()
18829 return getloadavg ();
18831 return 0;
18833 _ACEOF
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18839 esac
18840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18841 $as_echo "$ac_try_echo") >&5
18842 (eval "$ac_link") 2>conftest.er1
18843 ac_status=$?
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
18847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } && {
18849 test -z "$ac_c_werror_flag" ||
18850 test ! -s conftest.err
18851 } && test -s conftest$ac_exeext && {
18852 test "$cross_compiling" = yes ||
18853 $as_test_x conftest$ac_exeext
18854 }; then
18855 ac_cv_lib_getloadavg_getloadavg=yes
18856 else
18857 $as_echo "$as_me: failed program was:" >&5
18858 sed 's/^/| /' conftest.$ac_ext >&5
18860 ac_cv_lib_getloadavg_getloadavg=no
18863 rm -rf conftest.dSYM
18864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18865 conftest$ac_exeext conftest.$ac_ext
18866 LIBS=$ac_check_lib_save_LIBS
18868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18869 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18870 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18871 LIBS="-lgetloadavg $LIBS"
18872 else
18873 LIBS=$ac_getloadavg_LIBS
18878 # Make sure it is really in the library, if we think we found it,
18879 # otherwise set up the replacement function.
18881 for ac_func in getloadavg
18883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18885 $as_echo_n "checking for $ac_func... " >&6; }
18886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18887 $as_echo_n "(cached) " >&6
18888 else
18889 cat >conftest.$ac_ext <<_ACEOF
18890 /* confdefs.h. */
18891 _ACEOF
18892 cat confdefs.h >>conftest.$ac_ext
18893 cat >>conftest.$ac_ext <<_ACEOF
18894 /* end confdefs.h. */
18895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18897 #define $ac_func innocuous_$ac_func
18899 /* System header to define __stub macros and hopefully few prototypes,
18900 which can conflict with char $ac_func (); below.
18901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18902 <limits.h> exists even on freestanding compilers. */
18904 #ifdef __STDC__
18905 # include <limits.h>
18906 #else
18907 # include <assert.h>
18908 #endif
18910 #undef $ac_func
18912 /* Override any GCC internal prototype to avoid an error.
18913 Use char because int might match the return type of a GCC
18914 builtin and then its argument prototype would still apply. */
18915 #ifdef __cplusplus
18916 extern "C"
18917 #endif
18918 char $ac_func ();
18919 /* The GNU C library defines this for functions which it implements
18920 to always fail with ENOSYS. Some functions are actually named
18921 something starting with __ and the normal name is an alias. */
18922 #if defined __stub_$ac_func || defined __stub___$ac_func
18923 choke me
18924 #endif
18927 main ()
18929 return $ac_func ();
18931 return 0;
18933 _ACEOF
18934 rm -f conftest.$ac_objext conftest$ac_exeext
18935 if { (ac_try="$ac_link"
18936 case "(($ac_try" in
18937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18938 *) ac_try_echo=$ac_try;;
18939 esac
18940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18941 $as_echo "$ac_try_echo") >&5
18942 (eval "$ac_link") 2>conftest.er1
18943 ac_status=$?
18944 grep -v '^ *+' conftest.er1 >conftest.err
18945 rm -f conftest.er1
18946 cat conftest.err >&5
18947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948 (exit $ac_status); } && {
18949 test -z "$ac_c_werror_flag" ||
18950 test ! -s conftest.err
18951 } && test -s conftest$ac_exeext && {
18952 test "$cross_compiling" = yes ||
18953 $as_test_x conftest$ac_exeext
18954 }; then
18955 eval "$as_ac_var=yes"
18956 else
18957 $as_echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 eval "$as_ac_var=no"
18963 rm -rf conftest.dSYM
18964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18965 conftest$ac_exeext conftest.$ac_ext
18967 ac_res=`eval 'as_val=${'$as_ac_var'}
18968 $as_echo "$as_val"'`
18969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18970 $as_echo "$ac_res" >&6; }
18971 if test `eval 'as_val=${'$as_ac_var'}
18972 $as_echo "$as_val"'` = yes; then
18973 cat >>confdefs.h <<_ACEOF
18974 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18975 _ACEOF
18977 else
18978 case " $LIBOBJS " in
18979 *" getloadavg.$ac_objext "* ) ;;
18980 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18982 esac
18985 cat >>confdefs.h <<\_ACEOF
18986 #define C_GETLOADAVG 1
18987 _ACEOF
18989 # Figure out what our getloadavg.c needs.
18990 ac_have_func=no
18991 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18992 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18993 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18994 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18995 $as_echo_n "(cached) " >&6
18997 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18998 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18999 else
19000 # Is the header compilable?
19001 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19002 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19003 cat >conftest.$ac_ext <<_ACEOF
19004 /* confdefs.h. */
19005 _ACEOF
19006 cat confdefs.h >>conftest.$ac_ext
19007 cat >>conftest.$ac_ext <<_ACEOF
19008 /* end confdefs.h. */
19009 $ac_includes_default
19010 #include <sys/dg_sys_info.h>
19011 _ACEOF
19012 rm -f conftest.$ac_objext
19013 if { (ac_try="$ac_compile"
19014 case "(($ac_try" in
19015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016 *) ac_try_echo=$ac_try;;
19017 esac
19018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19019 $as_echo "$ac_try_echo") >&5
19020 (eval "$ac_compile") 2>conftest.er1
19021 ac_status=$?
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
19025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } && {
19027 test -z "$ac_c_werror_flag" ||
19028 test ! -s conftest.err
19029 } && test -s conftest.$ac_objext; then
19030 ac_header_compiler=yes
19031 else
19032 $as_echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19035 ac_header_compiler=no
19038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19039 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19040 $as_echo "$ac_header_compiler" >&6; }
19042 # Is the header present?
19043 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19044 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
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 #include <sys/dg_sys_info.h>
19052 _ACEOF
19053 if { (ac_try="$ac_cpp conftest.$ac_ext"
19054 case "(($ac_try" in
19055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19056 *) ac_try_echo=$ac_try;;
19057 esac
19058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19059 $as_echo "$ac_try_echo") >&5
19060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19061 ac_status=$?
19062 grep -v '^ *+' conftest.er1 >conftest.err
19063 rm -f conftest.er1
19064 cat conftest.err >&5
19065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066 (exit $ac_status); } >/dev/null && {
19067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19069 }; then
19070 ac_header_preproc=yes
19071 else
19072 $as_echo "$as_me: failed program was:" >&5
19073 sed 's/^/| /' conftest.$ac_ext >&5
19075 ac_header_preproc=no
19078 rm -f conftest.err conftest.$ac_ext
19079 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19080 $as_echo "$ac_header_preproc" >&6; }
19082 # So? What about this header?
19083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19084 yes:no: )
19085 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19086 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19087 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19088 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19089 ac_header_preproc=yes
19091 no:yes:* )
19092 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19093 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19094 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19095 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19096 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19097 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19098 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19099 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19100 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19101 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19102 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19103 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19106 esac
19107 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19108 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19109 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19110 $as_echo_n "(cached) " >&6
19111 else
19112 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19114 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19115 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19118 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19119 ac_have_func=yes
19121 cat >>confdefs.h <<\_ACEOF
19122 #define DGUX 1
19123 _ACEOF
19126 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19127 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19128 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
19129 $as_echo_n "(cached) " >&6
19130 else
19131 ac_check_lib_save_LIBS=$LIBS
19132 LIBS="-ldgc $LIBS"
19133 cat >conftest.$ac_ext <<_ACEOF
19134 /* confdefs.h. */
19135 _ACEOF
19136 cat confdefs.h >>conftest.$ac_ext
19137 cat >>conftest.$ac_ext <<_ACEOF
19138 /* end confdefs.h. */
19140 /* Override any GCC internal prototype to avoid an error.
19141 Use char because int might match the return type of a GCC
19142 builtin and then its argument prototype would still apply. */
19143 #ifdef __cplusplus
19144 extern "C"
19145 #endif
19146 char dg_sys_info ();
19148 main ()
19150 return dg_sys_info ();
19152 return 0;
19154 _ACEOF
19155 rm -f conftest.$ac_objext conftest$ac_exeext
19156 if { (ac_try="$ac_link"
19157 case "(($ac_try" in
19158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159 *) ac_try_echo=$ac_try;;
19160 esac
19161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19162 $as_echo "$ac_try_echo") >&5
19163 (eval "$ac_link") 2>conftest.er1
19164 ac_status=$?
19165 grep -v '^ *+' conftest.er1 >conftest.err
19166 rm -f conftest.er1
19167 cat conftest.err >&5
19168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } && {
19170 test -z "$ac_c_werror_flag" ||
19171 test ! -s conftest.err
19172 } && test -s conftest$ac_exeext && {
19173 test "$cross_compiling" = yes ||
19174 $as_test_x conftest$ac_exeext
19175 }; then
19176 ac_cv_lib_dgc_dg_sys_info=yes
19177 else
19178 $as_echo "$as_me: failed program was:" >&5
19179 sed 's/^/| /' conftest.$ac_ext >&5
19181 ac_cv_lib_dgc_dg_sys_info=no
19184 rm -rf conftest.dSYM
19185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19186 conftest$ac_exeext conftest.$ac_ext
19187 LIBS=$ac_check_lib_save_LIBS
19189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19190 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19191 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
19192 cat >>confdefs.h <<_ACEOF
19193 #define HAVE_LIBDGC 1
19194 _ACEOF
19196 LIBS="-ldgc $LIBS"
19204 if test "${ac_cv_header_locale_h+set}" = set; then
19205 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19206 $as_echo_n "checking for locale.h... " >&6; }
19207 if test "${ac_cv_header_locale_h+set}" = set; then
19208 $as_echo_n "(cached) " >&6
19210 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19211 $as_echo "$ac_cv_header_locale_h" >&6; }
19212 else
19213 # Is the header compilable?
19214 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19215 $as_echo_n "checking locale.h usability... " >&6; }
19216 cat >conftest.$ac_ext <<_ACEOF
19217 /* confdefs.h. */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19222 $ac_includes_default
19223 #include <locale.h>
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19230 esac
19231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19232 $as_echo "$ac_try_echo") >&5
19233 (eval "$ac_compile") 2>conftest.er1
19234 ac_status=$?
19235 grep -v '^ *+' conftest.er1 >conftest.err
19236 rm -f conftest.er1
19237 cat conftest.err >&5
19238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } && {
19240 test -z "$ac_c_werror_flag" ||
19241 test ! -s conftest.err
19242 } && test -s conftest.$ac_objext; then
19243 ac_header_compiler=yes
19244 else
19245 $as_echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.$ac_ext >&5
19248 ac_header_compiler=no
19251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19253 $as_echo "$ac_header_compiler" >&6; }
19255 # Is the header present?
19256 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19257 $as_echo_n "checking locale.h presence... " >&6; }
19258 cat >conftest.$ac_ext <<_ACEOF
19259 /* confdefs.h. */
19260 _ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19264 #include <locale.h>
19265 _ACEOF
19266 if { (ac_try="$ac_cpp conftest.$ac_ext"
19267 case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270 esac
19271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19272 $as_echo "$ac_try_echo") >&5
19273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19274 ac_status=$?
19275 grep -v '^ *+' conftest.er1 >conftest.err
19276 rm -f conftest.er1
19277 cat conftest.err >&5
19278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } >/dev/null && {
19280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19281 test ! -s conftest.err
19282 }; then
19283 ac_header_preproc=yes
19284 else
19285 $as_echo "$as_me: failed program was:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19288 ac_header_preproc=no
19291 rm -f conftest.err conftest.$ac_ext
19292 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19293 $as_echo "$ac_header_preproc" >&6; }
19295 # So? What about this header?
19296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19297 yes:no: )
19298 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19299 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19300 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19301 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19302 ac_header_preproc=yes
19304 no:yes:* )
19305 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19306 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19307 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19308 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19309 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19310 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19311 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19312 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19313 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19314 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19315 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19316 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19319 esac
19320 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19321 $as_echo_n "checking for locale.h... " >&6; }
19322 if test "${ac_cv_header_locale_h+set}" = set; then
19323 $as_echo_n "(cached) " >&6
19324 else
19325 ac_cv_header_locale_h=$ac_header_preproc
19327 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19328 $as_echo "$ac_cv_header_locale_h" >&6; }
19334 for ac_func in setlocale
19336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19337 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19338 $as_echo_n "checking for $ac_func... " >&6; }
19339 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19340 $as_echo_n "(cached) " >&6
19341 else
19342 cat >conftest.$ac_ext <<_ACEOF
19343 /* confdefs.h. */
19344 _ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h. */
19348 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19350 #define $ac_func innocuous_$ac_func
19352 /* System header to define __stub macros and hopefully few prototypes,
19353 which can conflict with char $ac_func (); below.
19354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19355 <limits.h> exists even on freestanding compilers. */
19357 #ifdef __STDC__
19358 # include <limits.h>
19359 #else
19360 # include <assert.h>
19361 #endif
19363 #undef $ac_func
19365 /* Override any GCC internal prototype to avoid an error.
19366 Use char because int might match the return type of a GCC
19367 builtin and then its argument prototype would still apply. */
19368 #ifdef __cplusplus
19369 extern "C"
19370 #endif
19371 char $ac_func ();
19372 /* The GNU C library defines this for functions which it implements
19373 to always fail with ENOSYS. Some functions are actually named
19374 something starting with __ and the normal name is an alias. */
19375 #if defined __stub_$ac_func || defined __stub___$ac_func
19376 choke me
19377 #endif
19380 main ()
19382 return $ac_func ();
19384 return 0;
19386 _ACEOF
19387 rm -f conftest.$ac_objext conftest$ac_exeext
19388 if { (ac_try="$ac_link"
19389 case "(($ac_try" in
19390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391 *) ac_try_echo=$ac_try;;
19392 esac
19393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19394 $as_echo "$ac_try_echo") >&5
19395 (eval "$ac_link") 2>conftest.er1
19396 ac_status=$?
19397 grep -v '^ *+' conftest.er1 >conftest.err
19398 rm -f conftest.er1
19399 cat conftest.err >&5
19400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } && {
19402 test -z "$ac_c_werror_flag" ||
19403 test ! -s conftest.err
19404 } && test -s conftest$ac_exeext && {
19405 test "$cross_compiling" = yes ||
19406 $as_test_x conftest$ac_exeext
19407 }; then
19408 eval "$as_ac_var=yes"
19409 else
19410 $as_echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 eval "$as_ac_var=no"
19416 rm -rf conftest.dSYM
19417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19418 conftest$ac_exeext conftest.$ac_ext
19420 ac_res=`eval 'as_val=${'$as_ac_var'}
19421 $as_echo "$as_val"'`
19422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19423 $as_echo "$ac_res" >&6; }
19424 if test `eval 'as_val=${'$as_ac_var'}
19425 $as_echo "$as_val"'` = yes; then
19426 cat >>confdefs.h <<_ACEOF
19427 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19428 _ACEOF
19431 done
19434 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
19435 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19436 # Irix 4.0.5F has the header but not the library.
19437 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19438 ac_have_func=yes
19440 cat >>confdefs.h <<\_ACEOF
19441 #define SVR4 1
19442 _ACEOF
19446 if test $ac_have_func = no; then
19447 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19448 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19449 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19450 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19451 $as_echo_n "(cached) " >&6
19453 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19454 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19455 else
19456 # Is the header compilable?
19457 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19458 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19459 cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h. */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19465 $ac_includes_default
19466 #include <inq_stats/cpustats.h>
19467 _ACEOF
19468 rm -f conftest.$ac_objext
19469 if { (ac_try="$ac_compile"
19470 case "(($ac_try" in
19471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19472 *) ac_try_echo=$ac_try;;
19473 esac
19474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19475 $as_echo "$ac_try_echo") >&5
19476 (eval "$ac_compile") 2>conftest.er1
19477 ac_status=$?
19478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
19481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } && {
19483 test -z "$ac_c_werror_flag" ||
19484 test ! -s conftest.err
19485 } && test -s conftest.$ac_objext; then
19486 ac_header_compiler=yes
19487 else
19488 $as_echo "$as_me: failed program was:" >&5
19489 sed 's/^/| /' conftest.$ac_ext >&5
19491 ac_header_compiler=no
19494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19495 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19496 $as_echo "$ac_header_compiler" >&6; }
19498 # Is the header present?
19499 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19500 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19501 cat >conftest.$ac_ext <<_ACEOF
19502 /* confdefs.h. */
19503 _ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19507 #include <inq_stats/cpustats.h>
19508 _ACEOF
19509 if { (ac_try="$ac_cpp conftest.$ac_ext"
19510 case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19513 esac
19514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19515 $as_echo "$ac_try_echo") >&5
19516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19517 ac_status=$?
19518 grep -v '^ *+' conftest.er1 >conftest.err
19519 rm -f conftest.er1
19520 cat conftest.err >&5
19521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } >/dev/null && {
19523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 }; then
19526 ac_header_preproc=yes
19527 else
19528 $as_echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19531 ac_header_preproc=no
19534 rm -f conftest.err conftest.$ac_ext
19535 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19536 $as_echo "$ac_header_preproc" >&6; }
19538 # So? What about this header?
19539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19540 yes:no: )
19541 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19542 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19543 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19544 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19545 ac_header_preproc=yes
19547 no:yes:* )
19548 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19549 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19550 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19551 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19552 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19553 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19554 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19555 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19556 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19557 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19558 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19559 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19562 esac
19563 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19564 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19565 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19566 $as_echo_n "(cached) " >&6
19567 else
19568 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19571 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19574 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19575 ac_have_func=yes
19577 cat >>confdefs.h <<\_ACEOF
19578 #define UMAX 1
19579 _ACEOF
19582 cat >>confdefs.h <<\_ACEOF
19583 #define UMAX4_3 1
19584 _ACEOF
19591 if test $ac_have_func = no; then
19592 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19593 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19594 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19595 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19596 $as_echo_n "(cached) " >&6
19598 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19599 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19600 else
19601 # Is the header compilable?
19602 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19603 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19604 cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h. */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 $ac_includes_default
19611 #include <sys/cpustats.h>
19612 _ACEOF
19613 rm -f conftest.$ac_objext
19614 if { (ac_try="$ac_compile"
19615 case "(($ac_try" in
19616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19617 *) ac_try_echo=$ac_try;;
19618 esac
19619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19620 $as_echo "$ac_try_echo") >&5
19621 (eval "$ac_compile") 2>conftest.er1
19622 ac_status=$?
19623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
19626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } && {
19628 test -z "$ac_c_werror_flag" ||
19629 test ! -s conftest.err
19630 } && test -s conftest.$ac_objext; then
19631 ac_header_compiler=yes
19632 else
19633 $as_echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19636 ac_header_compiler=no
19639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19640 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19641 $as_echo "$ac_header_compiler" >&6; }
19643 # Is the header present?
19644 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19645 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19646 cat >conftest.$ac_ext <<_ACEOF
19647 /* confdefs.h. */
19648 _ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 #include <sys/cpustats.h>
19653 _ACEOF
19654 if { (ac_try="$ac_cpp conftest.$ac_ext"
19655 case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19658 esac
19659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19660 $as_echo "$ac_try_echo") >&5
19661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19662 ac_status=$?
19663 grep -v '^ *+' conftest.er1 >conftest.err
19664 rm -f conftest.er1
19665 cat conftest.err >&5
19666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } >/dev/null && {
19668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19669 test ! -s conftest.err
19670 }; then
19671 ac_header_preproc=yes
19672 else
19673 $as_echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19676 ac_header_preproc=no
19679 rm -f conftest.err conftest.$ac_ext
19680 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19681 $as_echo "$ac_header_preproc" >&6; }
19683 # So? What about this header?
19684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19685 yes:no: )
19686 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19687 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19688 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19689 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19690 ac_header_preproc=yes
19692 no:yes:* )
19693 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19694 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19695 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19696 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19697 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19698 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19699 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19700 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19701 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19702 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19703 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19704 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19707 esac
19708 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19709 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19710 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19711 $as_echo_n "(cached) " >&6
19712 else
19713 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19715 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19716 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19719 if test $ac_cv_header_sys_cpustats_h = yes; then
19720 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19721 #define UMAX 1
19722 _ACEOF
19729 if test $ac_have_func = no; then
19731 for ac_header in mach/mach.h
19733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19735 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19736 $as_echo_n "checking for $ac_header... " >&6; }
19737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19738 $as_echo_n "(cached) " >&6
19740 ac_res=`eval 'as_val=${'$as_ac_Header'}
19741 $as_echo "$as_val"'`
19742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19743 $as_echo "$ac_res" >&6; }
19744 else
19745 # Is the header compilable?
19746 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19747 $as_echo_n "checking $ac_header usability... " >&6; }
19748 cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h. */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 $ac_includes_default
19755 #include <$ac_header>
19756 _ACEOF
19757 rm -f conftest.$ac_objext
19758 if { (ac_try="$ac_compile"
19759 case "(($ac_try" in
19760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761 *) ac_try_echo=$ac_try;;
19762 esac
19763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19764 $as_echo "$ac_try_echo") >&5
19765 (eval "$ac_compile") 2>conftest.er1
19766 ac_status=$?
19767 grep -v '^ *+' conftest.er1 >conftest.err
19768 rm -f conftest.er1
19769 cat conftest.err >&5
19770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19771 (exit $ac_status); } && {
19772 test -z "$ac_c_werror_flag" ||
19773 test ! -s conftest.err
19774 } && test -s conftest.$ac_objext; then
19775 ac_header_compiler=yes
19776 else
19777 $as_echo "$as_me: failed program was:" >&5
19778 sed 's/^/| /' conftest.$ac_ext >&5
19780 ac_header_compiler=no
19783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19784 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19785 $as_echo "$ac_header_compiler" >&6; }
19787 # Is the header present?
19788 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19789 $as_echo_n "checking $ac_header presence... " >&6; }
19790 cat >conftest.$ac_ext <<_ACEOF
19791 /* confdefs.h. */
19792 _ACEOF
19793 cat confdefs.h >>conftest.$ac_ext
19794 cat >>conftest.$ac_ext <<_ACEOF
19795 /* end confdefs.h. */
19796 #include <$ac_header>
19797 _ACEOF
19798 if { (ac_try="$ac_cpp conftest.$ac_ext"
19799 case "(($ac_try" in
19800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19801 *) ac_try_echo=$ac_try;;
19802 esac
19803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19804 $as_echo "$ac_try_echo") >&5
19805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19806 ac_status=$?
19807 grep -v '^ *+' conftest.er1 >conftest.err
19808 rm -f conftest.er1
19809 cat conftest.err >&5
19810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } >/dev/null && {
19812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 }; then
19815 ac_header_preproc=yes
19816 else
19817 $as_echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19820 ac_header_preproc=no
19823 rm -f conftest.err conftest.$ac_ext
19824 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19825 $as_echo "$ac_header_preproc" >&6; }
19827 # So? What about this header?
19828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19829 yes:no: )
19830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19831 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19833 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19834 ac_header_preproc=yes
19836 no:yes:* )
19837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19838 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19840 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19842 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19844 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19846 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19848 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19851 esac
19852 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19853 $as_echo_n "checking for $ac_header... " >&6; }
19854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19855 $as_echo_n "(cached) " >&6
19856 else
19857 eval "$as_ac_Header=\$ac_header_preproc"
19859 ac_res=`eval 'as_val=${'$as_ac_Header'}
19860 $as_echo "$as_val"'`
19861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19862 $as_echo "$ac_res" >&6; }
19865 if test `eval 'as_val=${'$as_ac_Header'}
19866 $as_echo "$as_val"'` = yes; then
19867 cat >>confdefs.h <<_ACEOF
19868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19869 _ACEOF
19873 done
19878 for ac_header in nlist.h
19880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19882 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19883 $as_echo_n "checking for $ac_header... " >&6; }
19884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19885 $as_echo_n "(cached) " >&6
19887 ac_res=`eval 'as_val=${'$as_ac_Header'}
19888 $as_echo "$as_val"'`
19889 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19890 $as_echo "$ac_res" >&6; }
19891 else
19892 # Is the header compilable?
19893 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19894 $as_echo_n "checking $ac_header usability... " >&6; }
19895 cat >conftest.$ac_ext <<_ACEOF
19896 /* confdefs.h. */
19897 _ACEOF
19898 cat confdefs.h >>conftest.$ac_ext
19899 cat >>conftest.$ac_ext <<_ACEOF
19900 /* end confdefs.h. */
19901 $ac_includes_default
19902 #include <$ac_header>
19903 _ACEOF
19904 rm -f conftest.$ac_objext
19905 if { (ac_try="$ac_compile"
19906 case "(($ac_try" in
19907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19908 *) ac_try_echo=$ac_try;;
19909 esac
19910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19911 $as_echo "$ac_try_echo") >&5
19912 (eval "$ac_compile") 2>conftest.er1
19913 ac_status=$?
19914 grep -v '^ *+' conftest.er1 >conftest.err
19915 rm -f conftest.er1
19916 cat conftest.err >&5
19917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); } && {
19919 test -z "$ac_c_werror_flag" ||
19920 test ! -s conftest.err
19921 } && test -s conftest.$ac_objext; then
19922 ac_header_compiler=yes
19923 else
19924 $as_echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_header_compiler=no
19930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19931 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19932 $as_echo "$ac_header_compiler" >&6; }
19934 # Is the header present?
19935 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19936 $as_echo_n "checking $ac_header presence... " >&6; }
19937 cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h. */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19943 #include <$ac_header>
19944 _ACEOF
19945 if { (ac_try="$ac_cpp conftest.$ac_ext"
19946 case "(($ac_try" in
19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948 *) ac_try_echo=$ac_try;;
19949 esac
19950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19951 $as_echo "$ac_try_echo") >&5
19952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19953 ac_status=$?
19954 grep -v '^ *+' conftest.er1 >conftest.err
19955 rm -f conftest.er1
19956 cat conftest.err >&5
19957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } >/dev/null && {
19959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19960 test ! -s conftest.err
19961 }; then
19962 ac_header_preproc=yes
19963 else
19964 $as_echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19967 ac_header_preproc=no
19970 rm -f conftest.err conftest.$ac_ext
19971 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19972 $as_echo "$ac_header_preproc" >&6; }
19974 # So? What about this header?
19975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19976 yes:no: )
19977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19978 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19980 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19981 ac_header_preproc=yes
19983 no:yes:* )
19984 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19985 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19986 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19987 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19988 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19989 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19990 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19991 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19992 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19993 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19994 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19995 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19998 esac
19999 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20000 $as_echo_n "checking for $ac_header... " >&6; }
20001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20002 $as_echo_n "(cached) " >&6
20003 else
20004 eval "$as_ac_Header=\$ac_header_preproc"
20006 ac_res=`eval 'as_val=${'$as_ac_Header'}
20007 $as_echo "$as_val"'`
20008 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20009 $as_echo "$ac_res" >&6; }
20012 if test `eval 'as_val=${'$as_ac_Header'}
20013 $as_echo "$as_val"'` = yes; then
20014 cat >>confdefs.h <<_ACEOF
20015 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20016 _ACEOF
20017 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
20018 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
20019 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20020 $as_echo_n "(cached) " >&6
20021 else
20022 cat >conftest.$ac_ext <<_ACEOF
20023 /* confdefs.h. */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h. */
20028 #include <nlist.h>
20031 main ()
20033 static struct nlist ac_aggr;
20034 if (ac_aggr.n_un.n_name)
20035 return 0;
20037 return 0;
20039 _ACEOF
20040 rm -f conftest.$ac_objext
20041 if { (ac_try="$ac_compile"
20042 case "(($ac_try" in
20043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20045 esac
20046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20047 $as_echo "$ac_try_echo") >&5
20048 (eval "$ac_compile") 2>conftest.er1
20049 ac_status=$?
20050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
20053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest.$ac_objext; then
20058 ac_cv_member_struct_nlist_n_un_n_name=yes
20059 else
20060 $as_echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20063 cat >conftest.$ac_ext <<_ACEOF
20064 /* confdefs.h. */
20065 _ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h. */
20069 #include <nlist.h>
20072 main ()
20074 static struct nlist ac_aggr;
20075 if (sizeof ac_aggr.n_un.n_name)
20076 return 0;
20078 return 0;
20080 _ACEOF
20081 rm -f conftest.$ac_objext
20082 if { (ac_try="$ac_compile"
20083 case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20086 esac
20087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20088 $as_echo "$ac_try_echo") >&5
20089 (eval "$ac_compile") 2>conftest.er1
20090 ac_status=$?
20091 grep -v '^ *+' conftest.er1 >conftest.err
20092 rm -f conftest.er1
20093 cat conftest.err >&5
20094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } && {
20096 test -z "$ac_c_werror_flag" ||
20097 test ! -s conftest.err
20098 } && test -s conftest.$ac_objext; then
20099 ac_cv_member_struct_nlist_n_un_n_name=yes
20100 else
20101 $as_echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20104 ac_cv_member_struct_nlist_n_un_n_name=no
20107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20113 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20114 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20116 cat >>confdefs.h <<_ACEOF
20117 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20118 _ACEOF
20121 cat >>confdefs.h <<\_ACEOF
20122 #define NLIST_NAME_UNION 1
20123 _ACEOF
20130 done
20133 done
20136 # Some definitions of getloadavg require that the program be installed setgid.
20137 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
20138 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20139 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
20140 $as_echo_n "(cached) " >&6
20141 else
20142 cat >conftest.$ac_ext <<_ACEOF
20143 /* confdefs.h. */
20144 _ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20149 #ifdef LDAV_PRIVILEGED
20150 Yowza Am I SETGID yet
20151 #endif
20152 _ACEOF
20153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20154 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
20155 ac_cv_func_getloadavg_setgid=yes
20156 else
20157 ac_cv_func_getloadavg_setgid=no
20159 rm -f conftest*
20162 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
20163 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20164 if test $ac_cv_func_getloadavg_setgid = yes; then
20165 NEED_SETGID=true
20167 cat >>confdefs.h <<\_ACEOF
20168 #define GETLOADAVG_PRIVILEGED 1
20169 _ACEOF
20171 else
20172 NEED_SETGID=false
20175 if test $ac_cv_func_getloadavg_setgid = yes; then
20176 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
20177 $as_echo_n "checking group of /dev/kmem... " >&6; }
20178 if test "${ac_cv_group_kmem+set}" = set; then
20179 $as_echo_n "(cached) " >&6
20180 else
20181 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20182 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20183 # If we got an error (system does not support symlinks), try without -L.
20184 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
20185 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
20186 | sed -ne 's/[ ][ ]*/ /g;
20187 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20188 / /s/.* //;p;'`
20191 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
20192 $as_echo "$ac_cv_group_kmem" >&6; }
20193 KMEM_GROUP=$ac_cv_group_kmem
20195 if test "x$ac_save_LIBS" = x; then
20196 GETLOADAVG_LIBS=$LIBS
20197 else
20198 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
20200 LIBS=$ac_save_LIBS
20204 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20205 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20206 if test "${ac_cv_sys_largefile_source+set}" = set; then
20207 $as_echo_n "(cached) " >&6
20208 else
20209 while :; do
20210 cat >conftest.$ac_ext <<_ACEOF
20211 /* confdefs.h. */
20212 _ACEOF
20213 cat confdefs.h >>conftest.$ac_ext
20214 cat >>conftest.$ac_ext <<_ACEOF
20215 /* end confdefs.h. */
20216 #include <sys/types.h> /* for off_t */
20217 #include <stdio.h>
20219 main ()
20221 int (*fp) (FILE *, off_t, int) = fseeko;
20222 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20224 return 0;
20226 _ACEOF
20227 rm -f conftest.$ac_objext conftest$ac_exeext
20228 if { (ac_try="$ac_link"
20229 case "(($ac_try" in
20230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231 *) ac_try_echo=$ac_try;;
20232 esac
20233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20234 $as_echo "$ac_try_echo") >&5
20235 (eval "$ac_link") 2>conftest.er1
20236 ac_status=$?
20237 grep -v '^ *+' conftest.er1 >conftest.err
20238 rm -f conftest.er1
20239 cat conftest.err >&5
20240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } && {
20242 test -z "$ac_c_werror_flag" ||
20243 test ! -s conftest.err
20244 } && test -s conftest$ac_exeext && {
20245 test "$cross_compiling" = yes ||
20246 $as_test_x conftest$ac_exeext
20247 }; then
20248 ac_cv_sys_largefile_source=no; break
20249 else
20250 $as_echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20256 rm -rf conftest.dSYM
20257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20258 conftest$ac_exeext conftest.$ac_ext
20259 cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h. */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h. */
20265 #define _LARGEFILE_SOURCE 1
20266 #include <sys/types.h> /* for off_t */
20267 #include <stdio.h>
20269 main ()
20271 int (*fp) (FILE *, off_t, int) = fseeko;
20272 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20274 return 0;
20276 _ACEOF
20277 rm -f conftest.$ac_objext conftest$ac_exeext
20278 if { (ac_try="$ac_link"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282 esac
20283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20284 $as_echo "$ac_try_echo") >&5
20285 (eval "$ac_link") 2>conftest.er1
20286 ac_status=$?
20287 grep -v '^ *+' conftest.er1 >conftest.err
20288 rm -f conftest.er1
20289 cat conftest.err >&5
20290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } && {
20292 test -z "$ac_c_werror_flag" ||
20293 test ! -s conftest.err
20294 } && test -s conftest$ac_exeext && {
20295 test "$cross_compiling" = yes ||
20296 $as_test_x conftest$ac_exeext
20297 }; then
20298 ac_cv_sys_largefile_source=1; break
20299 else
20300 $as_echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20306 rm -rf conftest.dSYM
20307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20308 conftest$ac_exeext conftest.$ac_ext
20309 ac_cv_sys_largefile_source=unknown
20310 break
20311 done
20313 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
20314 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20315 case $ac_cv_sys_largefile_source in #(
20316 no | unknown) ;;
20318 cat >>confdefs.h <<_ACEOF
20319 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
20320 _ACEOF
20322 esac
20323 rm -rf conftest*
20325 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20326 # in glibc 2.1.3, but that breaks too many other things.
20327 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20328 if test $ac_cv_sys_largefile_source != unknown; then
20330 cat >>confdefs.h <<\_ACEOF
20331 #define HAVE_FSEEKO 1
20332 _ACEOF
20337 # Configure getopt.
20338 # getopt.m4 serial 10
20340 # The getopt module assume you want GNU getopt, with getopt_long etc,
20341 # rather than vanilla POSIX getopt. This means your your code should
20342 # always include <getopt.h> for the getopt prototypes.
20354 # Prerequisites of lib/getopt*.
20359 GETOPT_H=
20361 for ac_header in getopt.h
20363 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20365 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20366 $as_echo_n "checking for $ac_header... " >&6; }
20367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20368 $as_echo_n "(cached) " >&6
20370 ac_res=`eval 'as_val=${'$as_ac_Header'}
20371 $as_echo "$as_val"'`
20372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20373 $as_echo "$ac_res" >&6; }
20374 else
20375 # Is the header compilable?
20376 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20377 $as_echo_n "checking $ac_header usability... " >&6; }
20378 cat >conftest.$ac_ext <<_ACEOF
20379 /* confdefs.h. */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20384 $ac_includes_default
20385 #include <$ac_header>
20386 _ACEOF
20387 rm -f conftest.$ac_objext
20388 if { (ac_try="$ac_compile"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20392 esac
20393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20394 $as_echo "$ac_try_echo") >&5
20395 (eval "$ac_compile") 2>conftest.er1
20396 ac_status=$?
20397 grep -v '^ *+' conftest.er1 >conftest.err
20398 rm -f conftest.er1
20399 cat conftest.err >&5
20400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest.$ac_objext; then
20405 ac_header_compiler=yes
20406 else
20407 $as_echo "$as_me: failed program was:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ac_header_compiler=no
20413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20414 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20415 $as_echo "$ac_header_compiler" >&6; }
20417 # Is the header present?
20418 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20419 $as_echo_n "checking $ac_header presence... " >&6; }
20420 cat >conftest.$ac_ext <<_ACEOF
20421 /* confdefs.h. */
20422 _ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20426 #include <$ac_header>
20427 _ACEOF
20428 if { (ac_try="$ac_cpp conftest.$ac_ext"
20429 case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20432 esac
20433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20434 $as_echo "$ac_try_echo") >&5
20435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20436 ac_status=$?
20437 grep -v '^ *+' conftest.er1 >conftest.err
20438 rm -f conftest.er1
20439 cat conftest.err >&5
20440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } >/dev/null && {
20442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 }; then
20445 ac_header_preproc=yes
20446 else
20447 $as_echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 ac_header_preproc=no
20453 rm -f conftest.err conftest.$ac_ext
20454 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20455 $as_echo "$ac_header_preproc" >&6; }
20457 # So? What about this header?
20458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20459 yes:no: )
20460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20461 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20463 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20464 ac_header_preproc=yes
20466 no:yes:* )
20467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20468 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20470 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20472 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20474 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20476 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20478 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20481 esac
20482 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20483 $as_echo_n "checking for $ac_header... " >&6; }
20484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20485 $as_echo_n "(cached) " >&6
20486 else
20487 eval "$as_ac_Header=\$ac_header_preproc"
20489 ac_res=`eval 'as_val=${'$as_ac_Header'}
20490 $as_echo "$as_val"'`
20491 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20492 $as_echo "$ac_res" >&6; }
20495 if test `eval 'as_val=${'$as_ac_Header'}
20496 $as_echo "$as_val"'` = yes; then
20497 cat >>confdefs.h <<_ACEOF
20498 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20499 _ACEOF
20501 else
20502 GETOPT_H=getopt.h
20505 done
20507 if test -z "$GETOPT_H"; then
20509 for ac_func in getopt_long_only
20511 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20512 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20513 $as_echo_n "checking for $ac_func... " >&6; }
20514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20515 $as_echo_n "(cached) " >&6
20516 else
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h. */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20525 #define $ac_func innocuous_$ac_func
20527 /* System header to define __stub macros and hopefully few prototypes,
20528 which can conflict with char $ac_func (); below.
20529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20530 <limits.h> exists even on freestanding compilers. */
20532 #ifdef __STDC__
20533 # include <limits.h>
20534 #else
20535 # include <assert.h>
20536 #endif
20538 #undef $ac_func
20540 /* Override any GCC internal prototype to avoid an error.
20541 Use char because int might match the return type of a GCC
20542 builtin and then its argument prototype would still apply. */
20543 #ifdef __cplusplus
20544 extern "C"
20545 #endif
20546 char $ac_func ();
20547 /* The GNU C library defines this for functions which it implements
20548 to always fail with ENOSYS. Some functions are actually named
20549 something starting with __ and the normal name is an alias. */
20550 #if defined __stub_$ac_func || defined __stub___$ac_func
20551 choke me
20552 #endif
20555 main ()
20557 return $ac_func ();
20559 return 0;
20561 _ACEOF
20562 rm -f conftest.$ac_objext conftest$ac_exeext
20563 if { (ac_try="$ac_link"
20564 case "(($ac_try" in
20565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20566 *) ac_try_echo=$ac_try;;
20567 esac
20568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20569 $as_echo "$ac_try_echo") >&5
20570 (eval "$ac_link") 2>conftest.er1
20571 ac_status=$?
20572 grep -v '^ *+' conftest.er1 >conftest.err
20573 rm -f conftest.er1
20574 cat conftest.err >&5
20575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); } && {
20577 test -z "$ac_c_werror_flag" ||
20578 test ! -s conftest.err
20579 } && test -s conftest$ac_exeext && {
20580 test "$cross_compiling" = yes ||
20581 $as_test_x conftest$ac_exeext
20582 }; then
20583 eval "$as_ac_var=yes"
20584 else
20585 $as_echo "$as_me: failed program was:" >&5
20586 sed 's/^/| /' conftest.$ac_ext >&5
20588 eval "$as_ac_var=no"
20591 rm -rf conftest.dSYM
20592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20593 conftest$ac_exeext conftest.$ac_ext
20595 ac_res=`eval 'as_val=${'$as_ac_var'}
20596 $as_echo "$as_val"'`
20597 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20598 $as_echo "$ac_res" >&6; }
20599 if test `eval 'as_val=${'$as_ac_var'}
20600 $as_echo "$as_val"'` = yes; then
20601 cat >>confdefs.h <<_ACEOF
20602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20603 _ACEOF
20605 else
20606 GETOPT_H=getopt.h
20608 done
20612 if test -z "$GETOPT_H"; then
20613 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20614 $as_echo_n "checking whether optreset is declared... " >&6; }
20615 if test "${ac_cv_have_decl_optreset+set}" = set; then
20616 $as_echo_n "(cached) " >&6
20617 else
20618 cat >conftest.$ac_ext <<_ACEOF
20619 /* confdefs.h. */
20620 _ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 #include <getopt.h>
20627 main ()
20629 #ifndef optreset
20630 (void) optreset;
20631 #endif
20634 return 0;
20636 _ACEOF
20637 rm -f conftest.$ac_objext
20638 if { (ac_try="$ac_compile"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642 esac
20643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20644 $as_echo "$ac_try_echo") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
20655 ac_cv_have_decl_optreset=yes
20656 else
20657 $as_echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_cv_have_decl_optreset=no
20663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20665 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20666 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20667 if test $ac_cv_have_decl_optreset = yes; then
20668 GETOPT_H=getopt.h
20673 if test -z "$GETOPT_H"; then
20674 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20675 $as_echo_n "checking for working GNU getopt function... " >&6; }
20676 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20677 $as_echo_n "(cached) " >&6
20678 else
20679 if test "$cross_compiling" = yes; then
20680 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20681 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20682 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20683 $as_echo_n "(cached) " >&6
20684 else
20685 cat >conftest.$ac_ext <<_ACEOF
20686 /* confdefs.h. */
20687 _ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691 #include <getopt.h>
20694 main ()
20696 #ifndef getopt_clip
20697 (void) getopt_clip;
20698 #endif
20701 return 0;
20703 _ACEOF
20704 rm -f conftest.$ac_objext
20705 if { (ac_try="$ac_compile"
20706 case "(($ac_try" in
20707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20708 *) ac_try_echo=$ac_try;;
20709 esac
20710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20711 $as_echo "$ac_try_echo") >&5
20712 (eval "$ac_compile") 2>conftest.er1
20713 ac_status=$?
20714 grep -v '^ *+' conftest.er1 >conftest.err
20715 rm -f conftest.er1
20716 cat conftest.err >&5
20717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); } && {
20719 test -z "$ac_c_werror_flag" ||
20720 test ! -s conftest.err
20721 } && test -s conftest.$ac_objext; then
20722 ac_cv_have_decl_getopt_clip=yes
20723 else
20724 $as_echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 ac_cv_have_decl_getopt_clip=no
20730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20732 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20733 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20734 if test $ac_cv_have_decl_getopt_clip = yes; then
20735 gl_cv_func_gnu_getopt=no
20736 else
20737 gl_cv_func_gnu_getopt=yes
20740 else
20741 cat >conftest.$ac_ext <<_ACEOF
20742 /* confdefs.h. */
20743 _ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 #include <getopt.h>
20749 main ()
20752 char *myargv[3];
20753 myargv[0] = "conftest";
20754 myargv[1] = "-+";
20755 myargv[2] = 0;
20756 return getopt (2, myargv, "+a") != '?';
20759 return 0;
20761 _ACEOF
20762 rm -f conftest$ac_exeext
20763 if { (ac_try="$ac_link"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20767 esac
20768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20769 $as_echo "$ac_try_echo") >&5
20770 (eval "$ac_link") 2>&5
20771 ac_status=$?
20772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20774 { (case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20777 esac
20778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20779 $as_echo "$ac_try_echo") >&5
20780 (eval "$ac_try") 2>&5
20781 ac_status=$?
20782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); }; }; then
20784 gl_cv_func_gnu_getopt=yes
20785 else
20786 $as_echo "$as_me: program exited with status $ac_status" >&5
20787 $as_echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20790 ( exit $ac_status )
20791 gl_cv_func_gnu_getopt=no
20793 rm -rf conftest.dSYM
20794 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20799 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20800 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20801 if test "$gl_cv_func_gnu_getopt" = "no"; then
20802 GETOPT_H=getopt.h
20808 if test -n "$GETOPT_H"; then
20811 GETOPT_H=getopt.h
20813 cat >>confdefs.h <<\_ACEOF
20814 #define __GETOPT_PREFIX rpl_
20815 _ACEOF
20820 GETOPTOBJS='getopt.o getopt1.o'
20827 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20828 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20829 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20830 $as_echo_n "(cached) " >&6
20831 else
20832 # Use it with a single arg.
20833 cat >conftest.$ac_ext <<_ACEOF
20834 /* confdefs.h. */
20835 _ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839 $ac_includes_default
20841 main ()
20843 getpgrp (0);
20845 return 0;
20847 _ACEOF
20848 rm -f conftest.$ac_objext
20849 if { (ac_try="$ac_compile"
20850 case "(($ac_try" in
20851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20852 *) ac_try_echo=$ac_try;;
20853 esac
20854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20855 $as_echo "$ac_try_echo") >&5
20856 (eval "$ac_compile") 2>conftest.er1
20857 ac_status=$?
20858 grep -v '^ *+' conftest.er1 >conftest.err
20859 rm -f conftest.er1
20860 cat conftest.err >&5
20861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } && {
20863 test -z "$ac_c_werror_flag" ||
20864 test ! -s conftest.err
20865 } && test -s conftest.$ac_objext; then
20866 ac_cv_func_getpgrp_void=no
20867 else
20868 $as_echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20871 ac_cv_func_getpgrp_void=yes
20874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20877 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20878 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20879 if test $ac_cv_func_getpgrp_void = yes; then
20881 cat >>confdefs.h <<\_ACEOF
20882 #define GETPGRP_VOID 1
20883 _ACEOF
20889 for ac_func in strftime
20891 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20892 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20893 $as_echo_n "checking for $ac_func... " >&6; }
20894 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20895 $as_echo_n "(cached) " >&6
20896 else
20897 cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h. */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h. */
20903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20905 #define $ac_func innocuous_$ac_func
20907 /* System header to define __stub macros and hopefully few prototypes,
20908 which can conflict with char $ac_func (); below.
20909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20910 <limits.h> exists even on freestanding compilers. */
20912 #ifdef __STDC__
20913 # include <limits.h>
20914 #else
20915 # include <assert.h>
20916 #endif
20918 #undef $ac_func
20920 /* Override any GCC internal prototype to avoid an error.
20921 Use char because int might match the return type of a GCC
20922 builtin and then its argument prototype would still apply. */
20923 #ifdef __cplusplus
20924 extern "C"
20925 #endif
20926 char $ac_func ();
20927 /* The GNU C library defines this for functions which it implements
20928 to always fail with ENOSYS. Some functions are actually named
20929 something starting with __ and the normal name is an alias. */
20930 #if defined __stub_$ac_func || defined __stub___$ac_func
20931 choke me
20932 #endif
20935 main ()
20937 return $ac_func ();
20939 return 0;
20941 _ACEOF
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (ac_try="$ac_link"
20944 case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20947 esac
20948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20949 $as_echo "$ac_try_echo") >&5
20950 (eval "$ac_link") 2>conftest.er1
20951 ac_status=$?
20952 grep -v '^ *+' conftest.er1 >conftest.err
20953 rm -f conftest.er1
20954 cat conftest.err >&5
20955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } && {
20957 test -z "$ac_c_werror_flag" ||
20958 test ! -s conftest.err
20959 } && test -s conftest$ac_exeext && {
20960 test "$cross_compiling" = yes ||
20961 $as_test_x conftest$ac_exeext
20962 }; then
20963 eval "$as_ac_var=yes"
20964 else
20965 $as_echo "$as_me: failed program was:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20968 eval "$as_ac_var=no"
20971 rm -rf conftest.dSYM
20972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20973 conftest$ac_exeext conftest.$ac_ext
20975 ac_res=`eval 'as_val=${'$as_ac_var'}
20976 $as_echo "$as_val"'`
20977 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20978 $as_echo "$ac_res" >&6; }
20979 if test `eval 'as_val=${'$as_ac_var'}
20980 $as_echo "$as_val"'` = yes; then
20981 cat >>confdefs.h <<_ACEOF
20982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20983 _ACEOF
20985 else
20986 # strftime is in -lintl on SCO UNIX.
20987 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20988 $as_echo_n "checking for strftime in -lintl... " >&6; }
20989 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20990 $as_echo_n "(cached) " >&6
20991 else
20992 ac_check_lib_save_LIBS=$LIBS
20993 LIBS="-lintl $LIBS"
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h. */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21001 /* Override any GCC internal prototype to avoid an error.
21002 Use char because int might match the return type of a GCC
21003 builtin and then its argument prototype would still apply. */
21004 #ifdef __cplusplus
21005 extern "C"
21006 #endif
21007 char strftime ();
21009 main ()
21011 return strftime ();
21013 return 0;
21015 _ACEOF
21016 rm -f conftest.$ac_objext conftest$ac_exeext
21017 if { (ac_try="$ac_link"
21018 case "(($ac_try" in
21019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21020 *) ac_try_echo=$ac_try;;
21021 esac
21022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21023 $as_echo "$ac_try_echo") >&5
21024 (eval "$ac_link") 2>conftest.er1
21025 ac_status=$?
21026 grep -v '^ *+' conftest.er1 >conftest.err
21027 rm -f conftest.er1
21028 cat conftest.err >&5
21029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030 (exit $ac_status); } && {
21031 test -z "$ac_c_werror_flag" ||
21032 test ! -s conftest.err
21033 } && test -s conftest$ac_exeext && {
21034 test "$cross_compiling" = yes ||
21035 $as_test_x conftest$ac_exeext
21036 }; then
21037 ac_cv_lib_intl_strftime=yes
21038 else
21039 $as_echo "$as_me: failed program was:" >&5
21040 sed 's/^/| /' conftest.$ac_ext >&5
21042 ac_cv_lib_intl_strftime=no
21045 rm -rf conftest.dSYM
21046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21047 conftest$ac_exeext conftest.$ac_ext
21048 LIBS=$ac_check_lib_save_LIBS
21050 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21051 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
21052 if test $ac_cv_lib_intl_strftime = yes; then
21053 cat >>confdefs.h <<\_ACEOF
21054 #define HAVE_STRFTIME 1
21055 _ACEOF
21057 LIBS="-lintl $LIBS"
21061 done
21064 # UNIX98 PTYs.
21066 for ac_func in grantpt
21068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21069 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21070 $as_echo_n "checking for $ac_func... " >&6; }
21071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21072 $as_echo_n "(cached) " >&6
21073 else
21074 cat >conftest.$ac_ext <<_ACEOF
21075 /* confdefs.h. */
21076 _ACEOF
21077 cat confdefs.h >>conftest.$ac_ext
21078 cat >>conftest.$ac_ext <<_ACEOF
21079 /* end confdefs.h. */
21080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21082 #define $ac_func innocuous_$ac_func
21084 /* System header to define __stub macros and hopefully few prototypes,
21085 which can conflict with char $ac_func (); below.
21086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21087 <limits.h> exists even on freestanding compilers. */
21089 #ifdef __STDC__
21090 # include <limits.h>
21091 #else
21092 # include <assert.h>
21093 #endif
21095 #undef $ac_func
21097 /* Override any GCC internal prototype to avoid an error.
21098 Use char because int might match the return type of a GCC
21099 builtin and then its argument prototype would still apply. */
21100 #ifdef __cplusplus
21101 extern "C"
21102 #endif
21103 char $ac_func ();
21104 /* The GNU C library defines this for functions which it implements
21105 to always fail with ENOSYS. Some functions are actually named
21106 something starting with __ and the normal name is an alias. */
21107 #if defined __stub_$ac_func || defined __stub___$ac_func
21108 choke me
21109 #endif
21112 main ()
21114 return $ac_func ();
21116 return 0;
21118 _ACEOF
21119 rm -f conftest.$ac_objext conftest$ac_exeext
21120 if { (ac_try="$ac_link"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21124 esac
21125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21126 $as_echo "$ac_try_echo") >&5
21127 (eval "$ac_link") 2>conftest.er1
21128 ac_status=$?
21129 grep -v '^ *+' conftest.er1 >conftest.err
21130 rm -f conftest.er1
21131 cat conftest.err >&5
21132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); } && {
21134 test -z "$ac_c_werror_flag" ||
21135 test ! -s conftest.err
21136 } && test -s conftest$ac_exeext && {
21137 test "$cross_compiling" = yes ||
21138 $as_test_x conftest$ac_exeext
21139 }; then
21140 eval "$as_ac_var=yes"
21141 else
21142 $as_echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 eval "$as_ac_var=no"
21148 rm -rf conftest.dSYM
21149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21150 conftest$ac_exeext conftest.$ac_ext
21152 ac_res=`eval 'as_val=${'$as_ac_var'}
21153 $as_echo "$as_val"'`
21154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21155 $as_echo "$ac_res" >&6; }
21156 if test `eval 'as_val=${'$as_ac_var'}
21157 $as_echo "$as_val"'` = yes; then
21158 cat >>confdefs.h <<_ACEOF
21159 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21160 _ACEOF
21163 done
21166 # PTY-related GNU extensions.
21168 for ac_func in getpt
21170 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21171 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21172 $as_echo_n "checking for $ac_func... " >&6; }
21173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21174 $as_echo_n "(cached) " >&6
21175 else
21176 cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h. */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21184 #define $ac_func innocuous_$ac_func
21186 /* System header to define __stub macros and hopefully few prototypes,
21187 which can conflict with char $ac_func (); below.
21188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21189 <limits.h> exists even on freestanding compilers. */
21191 #ifdef __STDC__
21192 # include <limits.h>
21193 #else
21194 # include <assert.h>
21195 #endif
21197 #undef $ac_func
21199 /* Override any GCC internal prototype to avoid an error.
21200 Use char because int might match the return type of a GCC
21201 builtin and then its argument prototype would still apply. */
21202 #ifdef __cplusplus
21203 extern "C"
21204 #endif
21205 char $ac_func ();
21206 /* The GNU C library defines this for functions which it implements
21207 to always fail with ENOSYS. Some functions are actually named
21208 something starting with __ and the normal name is an alias. */
21209 #if defined __stub_$ac_func || defined __stub___$ac_func
21210 choke me
21211 #endif
21214 main ()
21216 return $ac_func ();
21218 return 0;
21220 _ACEOF
21221 rm -f conftest.$ac_objext conftest$ac_exeext
21222 if { (ac_try="$ac_link"
21223 case "(($ac_try" in
21224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225 *) ac_try_echo=$ac_try;;
21226 esac
21227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21228 $as_echo "$ac_try_echo") >&5
21229 (eval "$ac_link") 2>conftest.er1
21230 ac_status=$?
21231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
21234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest$ac_exeext && {
21239 test "$cross_compiling" = yes ||
21240 $as_test_x conftest$ac_exeext
21241 }; then
21242 eval "$as_ac_var=yes"
21243 else
21244 $as_echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 eval "$as_ac_var=no"
21250 rm -rf conftest.dSYM
21251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21252 conftest$ac_exeext conftest.$ac_ext
21254 ac_res=`eval 'as_val=${'$as_ac_var'}
21255 $as_echo "$as_val"'`
21256 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21257 $as_echo "$ac_res" >&6; }
21258 if test `eval 'as_val=${'$as_ac_var'}
21259 $as_echo "$as_val"'` = yes; then
21260 cat >>confdefs.h <<_ACEOF
21261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21262 _ACEOF
21265 done
21268 # Check this now, so that we will NOT find the above functions in ncurses.
21269 # That is because we have not set up to link ncurses in lib-src.
21270 # It's better to believe a function is not available
21271 # than to expect to find it in ncurses.
21272 # Also we need tputs and frieds to be able to build at all.
21273 have_tputs_et_al=true
21274 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
21275 $as_echo_n "checking for library containing tputs... " >&6; }
21276 if test "${ac_cv_search_tputs+set}" = set; then
21277 $as_echo_n "(cached) " >&6
21278 else
21279 ac_func_search_save_LIBS=$LIBS
21280 cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h. */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21287 /* Override any GCC internal prototype to avoid an error.
21288 Use char because int might match the return type of a GCC
21289 builtin and then its argument prototype would still apply. */
21290 #ifdef __cplusplus
21291 extern "C"
21292 #endif
21293 char tputs ();
21295 main ()
21297 return tputs ();
21299 return 0;
21301 _ACEOF
21302 for ac_lib in '' ncurses terminfo termcap; do
21303 if test -z "$ac_lib"; then
21304 ac_res="none required"
21305 else
21306 ac_res=-l$ac_lib
21307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21309 rm -f conftest.$ac_objext conftest$ac_exeext
21310 if { (ac_try="$ac_link"
21311 case "(($ac_try" in
21312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313 *) ac_try_echo=$ac_try;;
21314 esac
21315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21316 $as_echo "$ac_try_echo") >&5
21317 (eval "$ac_link") 2>conftest.er1
21318 ac_status=$?
21319 grep -v '^ *+' conftest.er1 >conftest.err
21320 rm -f conftest.er1
21321 cat conftest.err >&5
21322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } && {
21324 test -z "$ac_c_werror_flag" ||
21325 test ! -s conftest.err
21326 } && test -s conftest$ac_exeext && {
21327 test "$cross_compiling" = yes ||
21328 $as_test_x conftest$ac_exeext
21329 }; then
21330 ac_cv_search_tputs=$ac_res
21331 else
21332 $as_echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21338 rm -rf conftest.dSYM
21339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21340 conftest$ac_exeext
21341 if test "${ac_cv_search_tputs+set}" = set; then
21342 break
21344 done
21345 if test "${ac_cv_search_tputs+set}" = set; then
21347 else
21348 ac_cv_search_tputs=no
21350 rm conftest.$ac_ext
21351 LIBS=$ac_func_search_save_LIBS
21353 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
21354 $as_echo "$ac_cv_search_tputs" >&6; }
21355 ac_res=$ac_cv_search_tputs
21356 if test "$ac_res" != no; then
21357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21359 else
21360 have_tputs_et_al=false
21363 if test "$have_tputs_et_al" != true; then
21364 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
21365 Maybe some development libraries/packages are missing? Try installing
21366 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21367 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21368 Maybe some development libraries/packages are missing? Try installing
21369 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21370 { (exit 1); exit 1; }; }
21372 # Must define this when any termcap library is found.
21374 cat >>confdefs.h <<\_ACEOF
21375 #define HAVE_LIBNCURSES 1
21376 _ACEOF
21379 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21381 resolv=no
21382 cat >conftest.$ac_ext <<_ACEOF
21383 /* confdefs.h. */
21384 _ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 #include <netinet/in.h>
21389 #include <arpa/nameser.h>
21390 #include <resolv.h>
21392 main ()
21394 return res_init();
21396 return 0;
21398 _ACEOF
21399 rm -f conftest.$ac_objext conftest$ac_exeext
21400 if { (ac_try="$ac_link"
21401 case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21404 esac
21405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21406 $as_echo "$ac_try_echo") >&5
21407 (eval "$ac_link") 2>conftest.er1
21408 ac_status=$?
21409 grep -v '^ *+' conftest.er1 >conftest.err
21410 rm -f conftest.er1
21411 cat conftest.err >&5
21412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); } && {
21414 test -z "$ac_c_werror_flag" ||
21415 test ! -s conftest.err
21416 } && test -s conftest$ac_exeext && {
21417 test "$cross_compiling" = yes ||
21418 $as_test_x conftest$ac_exeext
21419 }; then
21420 have_res_init=yes
21421 else
21422 $as_echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21425 have_res_init=no
21428 rm -rf conftest.dSYM
21429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21430 conftest$ac_exeext conftest.$ac_ext
21431 if test "$have_res_init" = no; then
21432 OLIBS="$LIBS"
21433 LIBS="$LIBS -lresolv"
21434 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
21435 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 #include <netinet/in.h>
21443 #include <arpa/nameser.h>
21444 #include <resolv.h>
21446 main ()
21448 return res_init();
21450 return 0;
21452 _ACEOF
21453 rm -f conftest.$ac_objext conftest$ac_exeext
21454 if { (ac_try="$ac_link"
21455 case "(($ac_try" in
21456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21457 *) ac_try_echo=$ac_try;;
21458 esac
21459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21460 $as_echo "$ac_try_echo") >&5
21461 (eval "$ac_link") 2>conftest.er1
21462 ac_status=$?
21463 grep -v '^ *+' conftest.er1 >conftest.err
21464 rm -f conftest.er1
21465 cat conftest.err >&5
21466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); } && {
21468 test -z "$ac_c_werror_flag" ||
21469 test ! -s conftest.err
21470 } && test -s conftest$ac_exeext && {
21471 test "$cross_compiling" = yes ||
21472 $as_test_x conftest$ac_exeext
21473 }; then
21474 have_res_init=yes
21475 else
21476 $as_echo "$as_me: failed program was:" >&5
21477 sed 's/^/| /' conftest.$ac_ext >&5
21479 have_res_init=no
21482 rm -rf conftest.dSYM
21483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21484 conftest$ac_exeext conftest.$ac_ext
21485 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21486 $as_echo "$have_res_init" >&6; }
21487 if test "$have_res_init" = yes ; then
21488 resolv=yes
21490 LIBS="$OLIBS"
21493 if test "$have_res_init" = yes; then
21495 cat >>confdefs.h <<\_ACEOF
21496 #define HAVE_RES_INIT 1
21497 _ACEOF
21501 # Do we need the Hesiod library to provide the support routines?
21502 LIBHESIOD=
21503 if test "$with_hesiod" != no ; then
21504 # Don't set $LIBS here -- see comments above. FIXME which comments?
21505 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
21506 $as_echo_n "checking for res_send... " >&6; }
21507 if test "${ac_cv_func_res_send+set}" = set; then
21508 $as_echo_n "(cached) " >&6
21509 else
21510 cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h. */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21516 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21518 #define res_send innocuous_res_send
21520 /* System header to define __stub macros and hopefully few prototypes,
21521 which can conflict with char res_send (); below.
21522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21523 <limits.h> exists even on freestanding compilers. */
21525 #ifdef __STDC__
21526 # include <limits.h>
21527 #else
21528 # include <assert.h>
21529 #endif
21531 #undef res_send
21533 /* Override any GCC internal prototype to avoid an error.
21534 Use char because int might match the return type of a GCC
21535 builtin and then its argument prototype would still apply. */
21536 #ifdef __cplusplus
21537 extern "C"
21538 #endif
21539 char res_send ();
21540 /* The GNU C library defines this for functions which it implements
21541 to always fail with ENOSYS. Some functions are actually named
21542 something starting with __ and the normal name is an alias. */
21543 #if defined __stub_res_send || defined __stub___res_send
21544 choke me
21545 #endif
21548 main ()
21550 return res_send ();
21552 return 0;
21554 _ACEOF
21555 rm -f conftest.$ac_objext conftest$ac_exeext
21556 if { (ac_try="$ac_link"
21557 case "(($ac_try" in
21558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21559 *) ac_try_echo=$ac_try;;
21560 esac
21561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21562 $as_echo "$ac_try_echo") >&5
21563 (eval "$ac_link") 2>conftest.er1
21564 ac_status=$?
21565 grep -v '^ *+' conftest.er1 >conftest.err
21566 rm -f conftest.er1
21567 cat conftest.err >&5
21568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } && {
21570 test -z "$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21572 } && test -s conftest$ac_exeext && {
21573 test "$cross_compiling" = yes ||
21574 $as_test_x conftest$ac_exeext
21575 }; then
21576 ac_cv_func_res_send=yes
21577 else
21578 $as_echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21581 ac_cv_func_res_send=no
21584 rm -rf conftest.dSYM
21585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21586 conftest$ac_exeext conftest.$ac_ext
21588 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21589 $as_echo "$ac_cv_func_res_send" >&6; }
21590 if test $ac_cv_func_res_send = yes; then
21592 else
21593 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21594 $as_echo_n "checking for __res_send... " >&6; }
21595 if test "${ac_cv_func___res_send+set}" = set; then
21596 $as_echo_n "(cached) " >&6
21597 else
21598 cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h. */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21606 #define __res_send innocuous___res_send
21608 /* System header to define __stub macros and hopefully few prototypes,
21609 which can conflict with char __res_send (); below.
21610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21611 <limits.h> exists even on freestanding compilers. */
21613 #ifdef __STDC__
21614 # include <limits.h>
21615 #else
21616 # include <assert.h>
21617 #endif
21619 #undef __res_send
21621 /* Override any GCC internal prototype to avoid an error.
21622 Use char because int might match the return type of a GCC
21623 builtin and then its argument prototype would still apply. */
21624 #ifdef __cplusplus
21625 extern "C"
21626 #endif
21627 char __res_send ();
21628 /* The GNU C library defines this for functions which it implements
21629 to always fail with ENOSYS. Some functions are actually named
21630 something starting with __ and the normal name is an alias. */
21631 #if defined __stub___res_send || defined __stub_____res_send
21632 choke me
21633 #endif
21636 main ()
21638 return __res_send ();
21640 return 0;
21642 _ACEOF
21643 rm -f conftest.$ac_objext conftest$ac_exeext
21644 if { (ac_try="$ac_link"
21645 case "(($ac_try" in
21646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21647 *) ac_try_echo=$ac_try;;
21648 esac
21649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21650 $as_echo "$ac_try_echo") >&5
21651 (eval "$ac_link") 2>conftest.er1
21652 ac_status=$?
21653 grep -v '^ *+' conftest.er1 >conftest.err
21654 rm -f conftest.er1
21655 cat conftest.err >&5
21656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } && {
21658 test -z "$ac_c_werror_flag" ||
21659 test ! -s conftest.err
21660 } && test -s conftest$ac_exeext && {
21661 test "$cross_compiling" = yes ||
21662 $as_test_x conftest$ac_exeext
21663 }; then
21664 ac_cv_func___res_send=yes
21665 else
21666 $as_echo "$as_me: failed program was:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21669 ac_cv_func___res_send=no
21672 rm -rf conftest.dSYM
21673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21674 conftest$ac_exeext conftest.$ac_ext
21676 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21677 $as_echo "$ac_cv_func___res_send" >&6; }
21678 if test $ac_cv_func___res_send = yes; then
21680 else
21681 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21682 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21683 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21684 $as_echo_n "(cached) " >&6
21685 else
21686 ac_check_lib_save_LIBS=$LIBS
21687 LIBS="-lresolv $LIBS"
21688 cat >conftest.$ac_ext <<_ACEOF
21689 /* confdefs.h. */
21690 _ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h. */
21695 /* Override any GCC internal prototype to avoid an error.
21696 Use char because int might match the return type of a GCC
21697 builtin and then its argument prototype would still apply. */
21698 #ifdef __cplusplus
21699 extern "C"
21700 #endif
21701 char res_send ();
21703 main ()
21705 return res_send ();
21707 return 0;
21709 _ACEOF
21710 rm -f conftest.$ac_objext conftest$ac_exeext
21711 if { (ac_try="$ac_link"
21712 case "(($ac_try" in
21713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21714 *) ac_try_echo=$ac_try;;
21715 esac
21716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21717 $as_echo "$ac_try_echo") >&5
21718 (eval "$ac_link") 2>conftest.er1
21719 ac_status=$?
21720 grep -v '^ *+' conftest.er1 >conftest.err
21721 rm -f conftest.er1
21722 cat conftest.err >&5
21723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); } && {
21725 test -z "$ac_c_werror_flag" ||
21726 test ! -s conftest.err
21727 } && test -s conftest$ac_exeext && {
21728 test "$cross_compiling" = yes ||
21729 $as_test_x conftest$ac_exeext
21730 }; then
21731 ac_cv_lib_resolv_res_send=yes
21732 else
21733 $as_echo "$as_me: failed program was:" >&5
21734 sed 's/^/| /' conftest.$ac_ext >&5
21736 ac_cv_lib_resolv_res_send=no
21739 rm -rf conftest.dSYM
21740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21741 conftest$ac_exeext conftest.$ac_ext
21742 LIBS=$ac_check_lib_save_LIBS
21744 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21745 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21746 if test $ac_cv_lib_resolv_res_send = yes; then
21747 resolv=yes
21748 else
21749 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21750 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21751 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21752 $as_echo_n "(cached) " >&6
21753 else
21754 ac_check_lib_save_LIBS=$LIBS
21755 LIBS="-lresolv $LIBS"
21756 cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h. */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21763 /* Override any GCC internal prototype to avoid an error.
21764 Use char because int might match the return type of a GCC
21765 builtin and then its argument prototype would still apply. */
21766 #ifdef __cplusplus
21767 extern "C"
21768 #endif
21769 char __res_send ();
21771 main ()
21773 return __res_send ();
21775 return 0;
21777 _ACEOF
21778 rm -f conftest.$ac_objext conftest$ac_exeext
21779 if { (ac_try="$ac_link"
21780 case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21783 esac
21784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21785 $as_echo "$ac_try_echo") >&5
21786 (eval "$ac_link") 2>conftest.er1
21787 ac_status=$?
21788 grep -v '^ *+' conftest.er1 >conftest.err
21789 rm -f conftest.er1
21790 cat conftest.err >&5
21791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } && {
21793 test -z "$ac_c_werror_flag" ||
21794 test ! -s conftest.err
21795 } && test -s conftest$ac_exeext && {
21796 test "$cross_compiling" = yes ||
21797 $as_test_x conftest$ac_exeext
21798 }; then
21799 ac_cv_lib_resolv___res_send=yes
21800 else
21801 $as_echo "$as_me: failed program was:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21804 ac_cv_lib_resolv___res_send=no
21807 rm -rf conftest.dSYM
21808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21809 conftest$ac_exeext conftest.$ac_ext
21810 LIBS=$ac_check_lib_save_LIBS
21812 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21813 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21814 if test $ac_cv_lib_resolv___res_send = yes; then
21815 resolv=yes
21824 if test "$resolv" = yes ; then
21825 RESOLVLIB=-lresolv
21826 else
21827 RESOLVLIB=
21829 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21830 $as_echo_n "checking for hes_getmailhost... " >&6; }
21831 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21832 $as_echo_n "(cached) " >&6
21833 else
21834 cat >conftest.$ac_ext <<_ACEOF
21835 /* confdefs.h. */
21836 _ACEOF
21837 cat confdefs.h >>conftest.$ac_ext
21838 cat >>conftest.$ac_ext <<_ACEOF
21839 /* end confdefs.h. */
21840 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21842 #define hes_getmailhost innocuous_hes_getmailhost
21844 /* System header to define __stub macros and hopefully few prototypes,
21845 which can conflict with char hes_getmailhost (); below.
21846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21847 <limits.h> exists even on freestanding compilers. */
21849 #ifdef __STDC__
21850 # include <limits.h>
21851 #else
21852 # include <assert.h>
21853 #endif
21855 #undef hes_getmailhost
21857 /* Override any GCC internal prototype to avoid an error.
21858 Use char because int might match the return type of a GCC
21859 builtin and then its argument prototype would still apply. */
21860 #ifdef __cplusplus
21861 extern "C"
21862 #endif
21863 char hes_getmailhost ();
21864 /* The GNU C library defines this for functions which it implements
21865 to always fail with ENOSYS. Some functions are actually named
21866 something starting with __ and the normal name is an alias. */
21867 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21868 choke me
21869 #endif
21872 main ()
21874 return hes_getmailhost ();
21876 return 0;
21878 _ACEOF
21879 rm -f conftest.$ac_objext conftest$ac_exeext
21880 if { (ac_try="$ac_link"
21881 case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21884 esac
21885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21886 $as_echo "$ac_try_echo") >&5
21887 (eval "$ac_link") 2>conftest.er1
21888 ac_status=$?
21889 grep -v '^ *+' conftest.er1 >conftest.err
21890 rm -f conftest.er1
21891 cat conftest.err >&5
21892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21893 (exit $ac_status); } && {
21894 test -z "$ac_c_werror_flag" ||
21895 test ! -s conftest.err
21896 } && test -s conftest$ac_exeext && {
21897 test "$cross_compiling" = yes ||
21898 $as_test_x conftest$ac_exeext
21899 }; then
21900 ac_cv_func_hes_getmailhost=yes
21901 else
21902 $as_echo "$as_me: failed program was:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ac_cv_func_hes_getmailhost=no
21908 rm -rf conftest.dSYM
21909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21910 conftest$ac_exeext conftest.$ac_ext
21912 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21913 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21914 if test $ac_cv_func_hes_getmailhost = yes; then
21916 else
21917 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21918 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21919 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21920 $as_echo_n "(cached) " >&6
21921 else
21922 ac_check_lib_save_LIBS=$LIBS
21923 LIBS="-lhesiod $RESOLVLIB $LIBS"
21924 cat >conftest.$ac_ext <<_ACEOF
21925 /* confdefs.h. */
21926 _ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21931 /* Override any GCC internal prototype to avoid an error.
21932 Use char because int might match the return type of a GCC
21933 builtin and then its argument prototype would still apply. */
21934 #ifdef __cplusplus
21935 extern "C"
21936 #endif
21937 char hes_getmailhost ();
21939 main ()
21941 return hes_getmailhost ();
21943 return 0;
21945 _ACEOF
21946 rm -f conftest.$ac_objext conftest$ac_exeext
21947 if { (ac_try="$ac_link"
21948 case "(($ac_try" in
21949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21950 *) ac_try_echo=$ac_try;;
21951 esac
21952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21953 $as_echo "$ac_try_echo") >&5
21954 (eval "$ac_link") 2>conftest.er1
21955 ac_status=$?
21956 grep -v '^ *+' conftest.er1 >conftest.err
21957 rm -f conftest.er1
21958 cat conftest.err >&5
21959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); } && {
21961 test -z "$ac_c_werror_flag" ||
21962 test ! -s conftest.err
21963 } && test -s conftest$ac_exeext && {
21964 test "$cross_compiling" = yes ||
21965 $as_test_x conftest$ac_exeext
21966 }; then
21967 ac_cv_lib_hesiod_hes_getmailhost=yes
21968 else
21969 $as_echo "$as_me: failed program was:" >&5
21970 sed 's/^/| /' conftest.$ac_ext >&5
21972 ac_cv_lib_hesiod_hes_getmailhost=no
21975 rm -rf conftest.dSYM
21976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21977 conftest$ac_exeext conftest.$ac_ext
21978 LIBS=$ac_check_lib_save_LIBS
21980 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21981 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21982 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21983 hesiod=yes
21984 else
21991 if test x"$hesiod" = xyes; then
21993 cat >>confdefs.h <<\_ACEOF
21994 #define HAVE_LIBHESIOD 1
21995 _ACEOF
21997 LIBHESIOD=-lhesiod
22002 # Do we need libresolv (due to res_init or Hesiod)?
22003 if test "$resolv" = yes ; then
22005 cat >>confdefs.h <<\_ACEOF
22006 #define HAVE_LIBRESOLV 1
22007 _ACEOF
22009 LIBRESOLV=-lresolv
22010 else
22011 LIBRESOLV=
22015 # These tell us which Kerberos-related libraries to use.
22016 COM_ERRLIB=
22017 CRYPTOLIB=
22018 KRB5LIB=
22019 DESLIB=
22020 KRB4LIB=
22022 if test "${with_kerberos}" != no; then
22023 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
22024 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
22025 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
22026 $as_echo_n "(cached) " >&6
22027 else
22028 ac_check_lib_save_LIBS=$LIBS
22029 LIBS="-lcom_err $LIBS"
22030 cat >conftest.$ac_ext <<_ACEOF
22031 /* confdefs.h. */
22032 _ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22037 /* Override any GCC internal prototype to avoid an error.
22038 Use char because int might match the return type of a GCC
22039 builtin and then its argument prototype would still apply. */
22040 #ifdef __cplusplus
22041 extern "C"
22042 #endif
22043 char com_err ();
22045 main ()
22047 return com_err ();
22049 return 0;
22051 _ACEOF
22052 rm -f conftest.$ac_objext conftest$ac_exeext
22053 if { (ac_try="$ac_link"
22054 case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22057 esac
22058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22059 $as_echo "$ac_try_echo") >&5
22060 (eval "$ac_link") 2>conftest.er1
22061 ac_status=$?
22062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
22065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } && {
22067 test -z "$ac_c_werror_flag" ||
22068 test ! -s conftest.err
22069 } && test -s conftest$ac_exeext && {
22070 test "$cross_compiling" = yes ||
22071 $as_test_x conftest$ac_exeext
22072 }; then
22073 ac_cv_lib_com_err_com_err=yes
22074 else
22075 $as_echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22078 ac_cv_lib_com_err_com_err=no
22081 rm -rf conftest.dSYM
22082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22083 conftest$ac_exeext conftest.$ac_ext
22084 LIBS=$ac_check_lib_save_LIBS
22086 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
22087 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
22088 if test $ac_cv_lib_com_err_com_err = yes; then
22089 have_com_err=yes
22090 else
22091 have_com_err=no
22094 if test $have_com_err = yes; then
22095 COM_ERRLIB=-lcom_err
22096 LIBS="$COM_ERRLIB $LIBS"
22098 cat >>confdefs.h <<\_ACEOF
22099 #define HAVE_LIBCOM_ERR 1
22100 _ACEOF
22103 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22104 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22105 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
22106 $as_echo_n "(cached) " >&6
22107 else
22108 ac_check_lib_save_LIBS=$LIBS
22109 LIBS="-lcrypto $LIBS"
22110 cat >conftest.$ac_ext <<_ACEOF
22111 /* confdefs.h. */
22112 _ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22117 /* Override any GCC internal prototype to avoid an error.
22118 Use char because int might match the return type of a GCC
22119 builtin and then its argument prototype would still apply. */
22120 #ifdef __cplusplus
22121 extern "C"
22122 #endif
22123 char mit_des_cbc_encrypt ();
22125 main ()
22127 return mit_des_cbc_encrypt ();
22129 return 0;
22131 _ACEOF
22132 rm -f conftest.$ac_objext conftest$ac_exeext
22133 if { (ac_try="$ac_link"
22134 case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22137 esac
22138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22139 $as_echo "$ac_try_echo") >&5
22140 (eval "$ac_link") 2>conftest.er1
22141 ac_status=$?
22142 grep -v '^ *+' conftest.er1 >conftest.err
22143 rm -f conftest.er1
22144 cat conftest.err >&5
22145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); } && {
22147 test -z "$ac_c_werror_flag" ||
22148 test ! -s conftest.err
22149 } && test -s conftest$ac_exeext && {
22150 test "$cross_compiling" = yes ||
22151 $as_test_x conftest$ac_exeext
22152 }; then
22153 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22154 else
22155 $as_echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22158 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22161 rm -rf conftest.dSYM
22162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22163 conftest$ac_exeext conftest.$ac_ext
22164 LIBS=$ac_check_lib_save_LIBS
22166 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22167 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22168 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
22169 have_crypto=yes
22170 else
22171 have_crypto=no
22174 if test $have_crypto = yes; then
22175 CRYPTOLIB=-lcrypto
22176 LIBS="$CRYPTOLIB $LIBS"
22178 cat >>confdefs.h <<\_ACEOF
22179 #define HAVE_LIBCRYPTO 1
22180 _ACEOF
22183 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22184 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22185 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
22186 $as_echo_n "(cached) " >&6
22187 else
22188 ac_check_lib_save_LIBS=$LIBS
22189 LIBS="-lk5crypto $LIBS"
22190 cat >conftest.$ac_ext <<_ACEOF
22191 /* confdefs.h. */
22192 _ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22197 /* Override any GCC internal prototype to avoid an error.
22198 Use char because int might match the return type of a GCC
22199 builtin and then its argument prototype would still apply. */
22200 #ifdef __cplusplus
22201 extern "C"
22202 #endif
22203 char mit_des_cbc_encrypt ();
22205 main ()
22207 return mit_des_cbc_encrypt ();
22209 return 0;
22211 _ACEOF
22212 rm -f conftest.$ac_objext conftest$ac_exeext
22213 if { (ac_try="$ac_link"
22214 case "(($ac_try" in
22215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22216 *) ac_try_echo=$ac_try;;
22217 esac
22218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22219 $as_echo "$ac_try_echo") >&5
22220 (eval "$ac_link") 2>conftest.er1
22221 ac_status=$?
22222 grep -v '^ *+' conftest.er1 >conftest.err
22223 rm -f conftest.er1
22224 cat conftest.err >&5
22225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22226 (exit $ac_status); } && {
22227 test -z "$ac_c_werror_flag" ||
22228 test ! -s conftest.err
22229 } && test -s conftest$ac_exeext && {
22230 test "$cross_compiling" = yes ||
22231 $as_test_x conftest$ac_exeext
22232 }; then
22233 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22234 else
22235 $as_echo "$as_me: failed program was:" >&5
22236 sed 's/^/| /' conftest.$ac_ext >&5
22238 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22241 rm -rf conftest.dSYM
22242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22243 conftest$ac_exeext conftest.$ac_ext
22244 LIBS=$ac_check_lib_save_LIBS
22246 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22247 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22248 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
22249 have_k5crypto=yes
22250 else
22251 have_k5crypto=no
22254 if test $have_k5crypto = yes; then
22255 CRYPTOLIB=-lk5crypto
22256 LIBS="$CRYPTOLIB $LIBS"
22258 cat >>confdefs.h <<\_ACEOF
22259 #define HAVE_LIBK5CRYPTO 1
22260 _ACEOF
22263 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
22264 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22265 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
22266 $as_echo_n "(cached) " >&6
22267 else
22268 ac_check_lib_save_LIBS=$LIBS
22269 LIBS="-lkrb5 $LIBS"
22270 cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h. */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22277 /* Override any GCC internal prototype to avoid an error.
22278 Use char because int might match the return type of a GCC
22279 builtin and then its argument prototype would still apply. */
22280 #ifdef __cplusplus
22281 extern "C"
22282 #endif
22283 char krb5_init_context ();
22285 main ()
22287 return krb5_init_context ();
22289 return 0;
22291 _ACEOF
22292 rm -f conftest.$ac_objext conftest$ac_exeext
22293 if { (ac_try="$ac_link"
22294 case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22297 esac
22298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22299 $as_echo "$ac_try_echo") >&5
22300 (eval "$ac_link") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest$ac_exeext && {
22310 test "$cross_compiling" = yes ||
22311 $as_test_x conftest$ac_exeext
22312 }; then
22313 ac_cv_lib_krb5_krb5_init_context=yes
22314 else
22315 $as_echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22318 ac_cv_lib_krb5_krb5_init_context=no
22321 rm -rf conftest.dSYM
22322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22323 conftest$ac_exeext conftest.$ac_ext
22324 LIBS=$ac_check_lib_save_LIBS
22326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22327 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22328 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
22329 have_krb5=yes
22330 else
22331 have_krb5=no
22334 if test $have_krb5=yes; then
22335 KRB5LIB=-lkrb5
22336 LIBS="$KRB5LIB $LIBS"
22338 cat >>confdefs.h <<\_ACEOF
22339 #define HAVE_LIBKRB5 1
22340 _ACEOF
22343 if test "${with_kerberos5}" = no; then
22344 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
22345 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22346 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
22347 $as_echo_n "(cached) " >&6
22348 else
22349 ac_check_lib_save_LIBS=$LIBS
22350 LIBS="-ldes425 $LIBS"
22351 cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h. */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22358 /* Override any GCC internal prototype to avoid an error.
22359 Use char because int might match the return type of a GCC
22360 builtin and then its argument prototype would still apply. */
22361 #ifdef __cplusplus
22362 extern "C"
22363 #endif
22364 char des_cbc_encrypt ();
22366 main ()
22368 return des_cbc_encrypt ();
22370 return 0;
22372 _ACEOF
22373 rm -f conftest.$ac_objext conftest$ac_exeext
22374 if { (ac_try="$ac_link"
22375 case "(($ac_try" in
22376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22377 *) ac_try_echo=$ac_try;;
22378 esac
22379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22380 $as_echo "$ac_try_echo") >&5
22381 (eval "$ac_link") 2>conftest.er1
22382 ac_status=$?
22383 grep -v '^ *+' conftest.er1 >conftest.err
22384 rm -f conftest.er1
22385 cat conftest.err >&5
22386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } && {
22388 test -z "$ac_c_werror_flag" ||
22389 test ! -s conftest.err
22390 } && test -s conftest$ac_exeext && {
22391 test "$cross_compiling" = yes ||
22392 $as_test_x conftest$ac_exeext
22393 }; then
22394 ac_cv_lib_des425_des_cbc_encrypt=yes
22395 else
22396 $as_echo "$as_me: failed program was:" >&5
22397 sed 's/^/| /' conftest.$ac_ext >&5
22399 ac_cv_lib_des425_des_cbc_encrypt=no
22402 rm -rf conftest.dSYM
22403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22404 conftest$ac_exeext conftest.$ac_ext
22405 LIBS=$ac_check_lib_save_LIBS
22407 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22408 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22409 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22410 have_des425=yes
22411 else
22412 have_des425=no
22415 if test $have_des425 = yes; then
22416 DESLIB=-ldes425
22417 LIBS="$DESLIB $LIBS"
22419 cat >>confdefs.h <<\_ACEOF
22420 #define HAVE_LIBDES425 1
22421 _ACEOF
22423 else
22424 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22425 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22426 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22427 $as_echo_n "(cached) " >&6
22428 else
22429 ac_check_lib_save_LIBS=$LIBS
22430 LIBS="-ldes $LIBS"
22431 cat >conftest.$ac_ext <<_ACEOF
22432 /* confdefs.h. */
22433 _ACEOF
22434 cat confdefs.h >>conftest.$ac_ext
22435 cat >>conftest.$ac_ext <<_ACEOF
22436 /* end confdefs.h. */
22438 /* Override any GCC internal prototype to avoid an error.
22439 Use char because int might match the return type of a GCC
22440 builtin and then its argument prototype would still apply. */
22441 #ifdef __cplusplus
22442 extern "C"
22443 #endif
22444 char des_cbc_encrypt ();
22446 main ()
22448 return des_cbc_encrypt ();
22450 return 0;
22452 _ACEOF
22453 rm -f conftest.$ac_objext conftest$ac_exeext
22454 if { (ac_try="$ac_link"
22455 case "(($ac_try" in
22456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22457 *) ac_try_echo=$ac_try;;
22458 esac
22459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22460 $as_echo "$ac_try_echo") >&5
22461 (eval "$ac_link") 2>conftest.er1
22462 ac_status=$?
22463 grep -v '^ *+' conftest.er1 >conftest.err
22464 rm -f conftest.er1
22465 cat conftest.err >&5
22466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); } && {
22468 test -z "$ac_c_werror_flag" ||
22469 test ! -s conftest.err
22470 } && test -s conftest$ac_exeext && {
22471 test "$cross_compiling" = yes ||
22472 $as_test_x conftest$ac_exeext
22473 }; then
22474 ac_cv_lib_des_des_cbc_encrypt=yes
22475 else
22476 $as_echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.$ac_ext >&5
22479 ac_cv_lib_des_des_cbc_encrypt=no
22482 rm -rf conftest.dSYM
22483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22484 conftest$ac_exeext conftest.$ac_ext
22485 LIBS=$ac_check_lib_save_LIBS
22487 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22488 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22489 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22490 have_des=yes
22491 else
22492 have_des=no
22495 if test $have_des = yes; then
22496 DESLIB=-ldes
22497 LIBS="$DESLIB $LIBS"
22499 cat >>confdefs.h <<\_ACEOF
22500 #define HAVE_LIBDES 1
22501 _ACEOF
22505 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22506 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22507 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22508 $as_echo_n "(cached) " >&6
22509 else
22510 ac_check_lib_save_LIBS=$LIBS
22511 LIBS="-lkrb4 $LIBS"
22512 cat >conftest.$ac_ext <<_ACEOF
22513 /* confdefs.h. */
22514 _ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h. */
22519 /* Override any GCC internal prototype to avoid an error.
22520 Use char because int might match the return type of a GCC
22521 builtin and then its argument prototype would still apply. */
22522 #ifdef __cplusplus
22523 extern "C"
22524 #endif
22525 char krb_get_cred ();
22527 main ()
22529 return krb_get_cred ();
22531 return 0;
22533 _ACEOF
22534 rm -f conftest.$ac_objext conftest$ac_exeext
22535 if { (ac_try="$ac_link"
22536 case "(($ac_try" in
22537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22538 *) ac_try_echo=$ac_try;;
22539 esac
22540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22541 $as_echo "$ac_try_echo") >&5
22542 (eval "$ac_link") 2>conftest.er1
22543 ac_status=$?
22544 grep -v '^ *+' conftest.er1 >conftest.err
22545 rm -f conftest.er1
22546 cat conftest.err >&5
22547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } && {
22549 test -z "$ac_c_werror_flag" ||
22550 test ! -s conftest.err
22551 } && test -s conftest$ac_exeext && {
22552 test "$cross_compiling" = yes ||
22553 $as_test_x conftest$ac_exeext
22554 }; then
22555 ac_cv_lib_krb4_krb_get_cred=yes
22556 else
22557 $as_echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.$ac_ext >&5
22560 ac_cv_lib_krb4_krb_get_cred=no
22563 rm -rf conftest.dSYM
22564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22565 conftest$ac_exeext conftest.$ac_ext
22566 LIBS=$ac_check_lib_save_LIBS
22568 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22569 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22570 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22571 have_krb4=yes
22572 else
22573 have_krb4=no
22576 if test $have_krb4 = yes; then
22577 KRB4LIB=-lkrb4
22578 LIBS="$KRB4LIB $LIBS"
22580 cat >>confdefs.h <<\_ACEOF
22581 #define HAVE_LIBKRB4 1
22582 _ACEOF
22584 else
22585 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22586 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22587 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22588 $as_echo_n "(cached) " >&6
22589 else
22590 ac_check_lib_save_LIBS=$LIBS
22591 LIBS="-lkrb $LIBS"
22592 cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h. */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22599 /* Override any GCC internal prototype to avoid an error.
22600 Use char because int might match the return type of a GCC
22601 builtin and then its argument prototype would still apply. */
22602 #ifdef __cplusplus
22603 extern "C"
22604 #endif
22605 char krb_get_cred ();
22607 main ()
22609 return krb_get_cred ();
22611 return 0;
22613 _ACEOF
22614 rm -f conftest.$ac_objext conftest$ac_exeext
22615 if { (ac_try="$ac_link"
22616 case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22619 esac
22620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22621 $as_echo "$ac_try_echo") >&5
22622 (eval "$ac_link") 2>conftest.er1
22623 ac_status=$?
22624 grep -v '^ *+' conftest.er1 >conftest.err
22625 rm -f conftest.er1
22626 cat conftest.err >&5
22627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); } && {
22629 test -z "$ac_c_werror_flag" ||
22630 test ! -s conftest.err
22631 } && test -s conftest$ac_exeext && {
22632 test "$cross_compiling" = yes ||
22633 $as_test_x conftest$ac_exeext
22634 }; then
22635 ac_cv_lib_krb_krb_get_cred=yes
22636 else
22637 $as_echo "$as_me: failed program was:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22640 ac_cv_lib_krb_krb_get_cred=no
22643 rm -rf conftest.dSYM
22644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22645 conftest$ac_exeext conftest.$ac_ext
22646 LIBS=$ac_check_lib_save_LIBS
22648 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22649 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22650 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22651 have_krb=yes
22652 else
22653 have_krb=no
22656 if test $have_krb = yes; then
22657 KRB4LIB=-lkrb
22658 LIBS="$KRB4LIB $LIBS"
22660 cat >>confdefs.h <<\_ACEOF
22661 #define HAVE_LIBKRB 1
22662 _ACEOF
22668 if test "${with_kerberos5}" != no; then
22670 for ac_header in krb5.h
22672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22674 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22675 $as_echo_n "checking for $ac_header... " >&6; }
22676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22677 $as_echo_n "(cached) " >&6
22679 ac_res=`eval 'as_val=${'$as_ac_Header'}
22680 $as_echo "$as_val"'`
22681 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22682 $as_echo "$ac_res" >&6; }
22683 else
22684 # Is the header compilable?
22685 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22686 $as_echo_n "checking $ac_header usability... " >&6; }
22687 cat >conftest.$ac_ext <<_ACEOF
22688 /* confdefs.h. */
22689 _ACEOF
22690 cat confdefs.h >>conftest.$ac_ext
22691 cat >>conftest.$ac_ext <<_ACEOF
22692 /* end confdefs.h. */
22693 $ac_includes_default
22694 #include <$ac_header>
22695 _ACEOF
22696 rm -f conftest.$ac_objext
22697 if { (ac_try="$ac_compile"
22698 case "(($ac_try" in
22699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22700 *) ac_try_echo=$ac_try;;
22701 esac
22702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22703 $as_echo "$ac_try_echo") >&5
22704 (eval "$ac_compile") 2>conftest.er1
22705 ac_status=$?
22706 grep -v '^ *+' conftest.er1 >conftest.err
22707 rm -f conftest.er1
22708 cat conftest.err >&5
22709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } && {
22711 test -z "$ac_c_werror_flag" ||
22712 test ! -s conftest.err
22713 } && test -s conftest.$ac_objext; then
22714 ac_header_compiler=yes
22715 else
22716 $as_echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22719 ac_header_compiler=no
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22723 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22724 $as_echo "$ac_header_compiler" >&6; }
22726 # Is the header present?
22727 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22728 $as_echo_n "checking $ac_header presence... " >&6; }
22729 cat >conftest.$ac_ext <<_ACEOF
22730 /* confdefs.h. */
22731 _ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 #include <$ac_header>
22736 _ACEOF
22737 if { (ac_try="$ac_cpp conftest.$ac_ext"
22738 case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22741 esac
22742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22743 $as_echo "$ac_try_echo") >&5
22744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22745 ac_status=$?
22746 grep -v '^ *+' conftest.er1 >conftest.err
22747 rm -f conftest.er1
22748 cat conftest.err >&5
22749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } >/dev/null && {
22751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 }; then
22754 ac_header_preproc=yes
22755 else
22756 $as_echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 ac_header_preproc=no
22762 rm -f conftest.err conftest.$ac_ext
22763 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22764 $as_echo "$ac_header_preproc" >&6; }
22766 # So? What about this header?
22767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22768 yes:no: )
22769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22770 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22772 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22773 ac_header_preproc=yes
22775 no:yes:* )
22776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22777 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22779 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22781 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22782 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22783 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22785 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22787 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22790 esac
22791 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22792 $as_echo_n "checking for $ac_header... " >&6; }
22793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22794 $as_echo_n "(cached) " >&6
22795 else
22796 eval "$as_ac_Header=\$ac_header_preproc"
22798 ac_res=`eval 'as_val=${'$as_ac_Header'}
22799 $as_echo "$as_val"'`
22800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22801 $as_echo "$ac_res" >&6; }
22804 if test `eval 'as_val=${'$as_ac_Header'}
22805 $as_echo "$as_val"'` = yes; then
22806 cat >>confdefs.h <<_ACEOF
22807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22808 _ACEOF
22809 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
22810 $as_echo_n "checking for krb5_error.text... " >&6; }
22811 if test "${ac_cv_member_krb5_error_text+set}" = set; then
22812 $as_echo_n "(cached) " >&6
22813 else
22814 cat >conftest.$ac_ext <<_ACEOF
22815 /* confdefs.h. */
22816 _ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h. */
22820 #include <krb5.h>
22823 main ()
22825 static krb5_error ac_aggr;
22826 if (ac_aggr.text)
22827 return 0;
22829 return 0;
22831 _ACEOF
22832 rm -f conftest.$ac_objext
22833 if { (ac_try="$ac_compile"
22834 case "(($ac_try" in
22835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22836 *) ac_try_echo=$ac_try;;
22837 esac
22838 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22839 $as_echo "$ac_try_echo") >&5
22840 (eval "$ac_compile") 2>conftest.er1
22841 ac_status=$?
22842 grep -v '^ *+' conftest.er1 >conftest.err
22843 rm -f conftest.er1
22844 cat conftest.err >&5
22845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22846 (exit $ac_status); } && {
22847 test -z "$ac_c_werror_flag" ||
22848 test ! -s conftest.err
22849 } && test -s conftest.$ac_objext; then
22850 ac_cv_member_krb5_error_text=yes
22851 else
22852 $as_echo "$as_me: failed program was:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22855 cat >conftest.$ac_ext <<_ACEOF
22856 /* confdefs.h. */
22857 _ACEOF
22858 cat confdefs.h >>conftest.$ac_ext
22859 cat >>conftest.$ac_ext <<_ACEOF
22860 /* end confdefs.h. */
22861 #include <krb5.h>
22864 main ()
22866 static krb5_error ac_aggr;
22867 if (sizeof ac_aggr.text)
22868 return 0;
22870 return 0;
22872 _ACEOF
22873 rm -f conftest.$ac_objext
22874 if { (ac_try="$ac_compile"
22875 case "(($ac_try" in
22876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22877 *) ac_try_echo=$ac_try;;
22878 esac
22879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22880 $as_echo "$ac_try_echo") >&5
22881 (eval "$ac_compile") 2>conftest.er1
22882 ac_status=$?
22883 grep -v '^ *+' conftest.er1 >conftest.err
22884 rm -f conftest.er1
22885 cat conftest.err >&5
22886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887 (exit $ac_status); } && {
22888 test -z "$ac_c_werror_flag" ||
22889 test ! -s conftest.err
22890 } && test -s conftest.$ac_objext; then
22891 ac_cv_member_krb5_error_text=yes
22892 else
22893 $as_echo "$as_me: failed program was:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22896 ac_cv_member_krb5_error_text=no
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22905 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22906 if test $ac_cv_member_krb5_error_text = yes; then
22908 cat >>confdefs.h <<_ACEOF
22909 #define HAVE_KRB5_ERROR_TEXT 1
22910 _ACEOF
22914 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
22915 $as_echo_n "checking for krb5_error.e_text... " >&6; }
22916 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22917 $as_echo_n "(cached) " >&6
22918 else
22919 cat >conftest.$ac_ext <<_ACEOF
22920 /* confdefs.h. */
22921 _ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22925 #include <krb5.h>
22928 main ()
22930 static krb5_error ac_aggr;
22931 if (ac_aggr.e_text)
22932 return 0;
22934 return 0;
22936 _ACEOF
22937 rm -f conftest.$ac_objext
22938 if { (ac_try="$ac_compile"
22939 case "(($ac_try" in
22940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22942 esac
22943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22944 $as_echo "$ac_try_echo") >&5
22945 (eval "$ac_compile") 2>conftest.er1
22946 ac_status=$?
22947 grep -v '^ *+' conftest.er1 >conftest.err
22948 rm -f conftest.er1
22949 cat conftest.err >&5
22950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } && {
22952 test -z "$ac_c_werror_flag" ||
22953 test ! -s conftest.err
22954 } && test -s conftest.$ac_objext; then
22955 ac_cv_member_krb5_error_e_text=yes
22956 else
22957 $as_echo "$as_me: failed program was:" >&5
22958 sed 's/^/| /' conftest.$ac_ext >&5
22960 cat >conftest.$ac_ext <<_ACEOF
22961 /* confdefs.h. */
22962 _ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22966 #include <krb5.h>
22969 main ()
22971 static krb5_error ac_aggr;
22972 if (sizeof ac_aggr.e_text)
22973 return 0;
22975 return 0;
22977 _ACEOF
22978 rm -f conftest.$ac_objext
22979 if { (ac_try="$ac_compile"
22980 case "(($ac_try" in
22981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982 *) ac_try_echo=$ac_try;;
22983 esac
22984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22985 $as_echo "$ac_try_echo") >&5
22986 (eval "$ac_compile") 2>conftest.er1
22987 ac_status=$?
22988 grep -v '^ *+' conftest.er1 >conftest.err
22989 rm -f conftest.er1
22990 cat conftest.err >&5
22991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22992 (exit $ac_status); } && {
22993 test -z "$ac_c_werror_flag" ||
22994 test ! -s conftest.err
22995 } && test -s conftest.$ac_objext; then
22996 ac_cv_member_krb5_error_e_text=yes
22997 else
22998 $as_echo "$as_me: failed program was:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23001 ac_cv_member_krb5_error_e_text=no
23004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23010 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23011 if test $ac_cv_member_krb5_error_e_text = yes; then
23013 cat >>confdefs.h <<_ACEOF
23014 #define HAVE_KRB5_ERROR_E_TEXT 1
23015 _ACEOF
23022 done
23024 else
23026 for ac_header in des.h
23028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23031 $as_echo_n "checking for $ac_header... " >&6; }
23032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23033 $as_echo_n "(cached) " >&6
23035 ac_res=`eval 'as_val=${'$as_ac_Header'}
23036 $as_echo "$as_val"'`
23037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23038 $as_echo "$ac_res" >&6; }
23039 else
23040 # Is the header compilable?
23041 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23042 $as_echo_n "checking $ac_header usability... " >&6; }
23043 cat >conftest.$ac_ext <<_ACEOF
23044 /* confdefs.h. */
23045 _ACEOF
23046 cat confdefs.h >>conftest.$ac_ext
23047 cat >>conftest.$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23049 $ac_includes_default
23050 #include <$ac_header>
23051 _ACEOF
23052 rm -f conftest.$ac_objext
23053 if { (ac_try="$ac_compile"
23054 case "(($ac_try" in
23055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056 *) ac_try_echo=$ac_try;;
23057 esac
23058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23059 $as_echo "$ac_try_echo") >&5
23060 (eval "$ac_compile") 2>conftest.er1
23061 ac_status=$?
23062 grep -v '^ *+' conftest.er1 >conftest.err
23063 rm -f conftest.er1
23064 cat conftest.err >&5
23065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23066 (exit $ac_status); } && {
23067 test -z "$ac_c_werror_flag" ||
23068 test ! -s conftest.err
23069 } && test -s conftest.$ac_objext; then
23070 ac_header_compiler=yes
23071 else
23072 $as_echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23075 ac_header_compiler=no
23078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23079 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23080 $as_echo "$ac_header_compiler" >&6; }
23082 # Is the header present?
23083 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23084 $as_echo_n "checking $ac_header presence... " >&6; }
23085 cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h. */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 #include <$ac_header>
23092 _ACEOF
23093 if { (ac_try="$ac_cpp conftest.$ac_ext"
23094 case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23097 esac
23098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23099 $as_echo "$ac_try_echo") >&5
23100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23101 ac_status=$?
23102 grep -v '^ *+' conftest.er1 >conftest.err
23103 rm -f conftest.er1
23104 cat conftest.err >&5
23105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } >/dev/null && {
23107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23108 test ! -s conftest.err
23109 }; then
23110 ac_header_preproc=yes
23111 else
23112 $as_echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23115 ac_header_preproc=no
23118 rm -f conftest.err conftest.$ac_ext
23119 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23120 $as_echo "$ac_header_preproc" >&6; }
23122 # So? What about this header?
23123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23124 yes:no: )
23125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23126 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23128 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23129 ac_header_preproc=yes
23131 no:yes:* )
23132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23133 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23135 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23137 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23139 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23141 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23142 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23143 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23146 esac
23147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23148 $as_echo_n "checking for $ac_header... " >&6; }
23149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23150 $as_echo_n "(cached) " >&6
23151 else
23152 eval "$as_ac_Header=\$ac_header_preproc"
23154 ac_res=`eval 'as_val=${'$as_ac_Header'}
23155 $as_echo "$as_val"'`
23156 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23157 $as_echo "$ac_res" >&6; }
23160 if test `eval 'as_val=${'$as_ac_Header'}
23161 $as_echo "$as_val"'` = yes; then
23162 cat >>confdefs.h <<_ACEOF
23163 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23164 _ACEOF
23166 else
23168 for ac_header in kerberosIV/des.h
23170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23172 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23173 $as_echo_n "checking for $ac_header... " >&6; }
23174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23175 $as_echo_n "(cached) " >&6
23177 ac_res=`eval 'as_val=${'$as_ac_Header'}
23178 $as_echo "$as_val"'`
23179 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23180 $as_echo "$ac_res" >&6; }
23181 else
23182 # Is the header compilable?
23183 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23184 $as_echo_n "checking $ac_header usability... " >&6; }
23185 cat >conftest.$ac_ext <<_ACEOF
23186 /* confdefs.h. */
23187 _ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 $ac_includes_default
23192 #include <$ac_header>
23193 _ACEOF
23194 rm -f conftest.$ac_objext
23195 if { (ac_try="$ac_compile"
23196 case "(($ac_try" in
23197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23198 *) ac_try_echo=$ac_try;;
23199 esac
23200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23201 $as_echo "$ac_try_echo") >&5
23202 (eval "$ac_compile") 2>conftest.er1
23203 ac_status=$?
23204 grep -v '^ *+' conftest.er1 >conftest.err
23205 rm -f conftest.er1
23206 cat conftest.err >&5
23207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); } && {
23209 test -z "$ac_c_werror_flag" ||
23210 test ! -s conftest.err
23211 } && test -s conftest.$ac_objext; then
23212 ac_header_compiler=yes
23213 else
23214 $as_echo "$as_me: failed program was:" >&5
23215 sed 's/^/| /' conftest.$ac_ext >&5
23217 ac_header_compiler=no
23220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23221 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23222 $as_echo "$ac_header_compiler" >&6; }
23224 # Is the header present?
23225 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23226 $as_echo_n "checking $ac_header presence... " >&6; }
23227 cat >conftest.$ac_ext <<_ACEOF
23228 /* confdefs.h. */
23229 _ACEOF
23230 cat confdefs.h >>conftest.$ac_ext
23231 cat >>conftest.$ac_ext <<_ACEOF
23232 /* end confdefs.h. */
23233 #include <$ac_header>
23234 _ACEOF
23235 if { (ac_try="$ac_cpp conftest.$ac_ext"
23236 case "(($ac_try" in
23237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238 *) ac_try_echo=$ac_try;;
23239 esac
23240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23241 $as_echo "$ac_try_echo") >&5
23242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23243 ac_status=$?
23244 grep -v '^ *+' conftest.er1 >conftest.err
23245 rm -f conftest.er1
23246 cat conftest.err >&5
23247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); } >/dev/null && {
23249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23250 test ! -s conftest.err
23251 }; then
23252 ac_header_preproc=yes
23253 else
23254 $as_echo "$as_me: failed program was:" >&5
23255 sed 's/^/| /' conftest.$ac_ext >&5
23257 ac_header_preproc=no
23260 rm -f conftest.err conftest.$ac_ext
23261 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23262 $as_echo "$ac_header_preproc" >&6; }
23264 # So? What about this header?
23265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23266 yes:no: )
23267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23268 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23271 ac_header_preproc=yes
23273 no:yes:* )
23274 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23275 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23277 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23279 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23280 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23281 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23283 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23285 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23288 esac
23289 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23290 $as_echo_n "checking for $ac_header... " >&6; }
23291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23292 $as_echo_n "(cached) " >&6
23293 else
23294 eval "$as_ac_Header=\$ac_header_preproc"
23296 ac_res=`eval 'as_val=${'$as_ac_Header'}
23297 $as_echo "$as_val"'`
23298 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23299 $as_echo "$ac_res" >&6; }
23302 if test `eval 'as_val=${'$as_ac_Header'}
23303 $as_echo "$as_val"'` = yes; then
23304 cat >>confdefs.h <<_ACEOF
23305 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23306 _ACEOF
23308 else
23310 for ac_header in kerberos/des.h
23312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23314 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23315 $as_echo_n "checking for $ac_header... " >&6; }
23316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23317 $as_echo_n "(cached) " >&6
23319 ac_res=`eval 'as_val=${'$as_ac_Header'}
23320 $as_echo "$as_val"'`
23321 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23322 $as_echo "$ac_res" >&6; }
23323 else
23324 # Is the header compilable?
23325 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23326 $as_echo_n "checking $ac_header usability... " >&6; }
23327 cat >conftest.$ac_ext <<_ACEOF
23328 /* confdefs.h. */
23329 _ACEOF
23330 cat confdefs.h >>conftest.$ac_ext
23331 cat >>conftest.$ac_ext <<_ACEOF
23332 /* end confdefs.h. */
23333 $ac_includes_default
23334 #include <$ac_header>
23335 _ACEOF
23336 rm -f conftest.$ac_objext
23337 if { (ac_try="$ac_compile"
23338 case "(($ac_try" in
23339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23340 *) ac_try_echo=$ac_try;;
23341 esac
23342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23343 $as_echo "$ac_try_echo") >&5
23344 (eval "$ac_compile") 2>conftest.er1
23345 ac_status=$?
23346 grep -v '^ *+' conftest.er1 >conftest.err
23347 rm -f conftest.er1
23348 cat conftest.err >&5
23349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); } && {
23351 test -z "$ac_c_werror_flag" ||
23352 test ! -s conftest.err
23353 } && test -s conftest.$ac_objext; then
23354 ac_header_compiler=yes
23355 else
23356 $as_echo "$as_me: failed program was:" >&5
23357 sed 's/^/| /' conftest.$ac_ext >&5
23359 ac_header_compiler=no
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23364 $as_echo "$ac_header_compiler" >&6; }
23366 # Is the header present?
23367 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23368 $as_echo_n "checking $ac_header presence... " >&6; }
23369 cat >conftest.$ac_ext <<_ACEOF
23370 /* confdefs.h. */
23371 _ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h. */
23375 #include <$ac_header>
23376 _ACEOF
23377 if { (ac_try="$ac_cpp conftest.$ac_ext"
23378 case "(($ac_try" in
23379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23380 *) ac_try_echo=$ac_try;;
23381 esac
23382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23383 $as_echo "$ac_try_echo") >&5
23384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23385 ac_status=$?
23386 grep -v '^ *+' conftest.er1 >conftest.err
23387 rm -f conftest.er1
23388 cat conftest.err >&5
23389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } >/dev/null && {
23391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23392 test ! -s conftest.err
23393 }; then
23394 ac_header_preproc=yes
23395 else
23396 $as_echo "$as_me: failed program was:" >&5
23397 sed 's/^/| /' conftest.$ac_ext >&5
23399 ac_header_preproc=no
23402 rm -f conftest.err conftest.$ac_ext
23403 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23404 $as_echo "$ac_header_preproc" >&6; }
23406 # So? What about this header?
23407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23408 yes:no: )
23409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23410 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23412 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23413 ac_header_preproc=yes
23415 no:yes:* )
23416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23417 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23419 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23421 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23423 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23425 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23427 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23430 esac
23431 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23432 $as_echo_n "checking for $ac_header... " >&6; }
23433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23434 $as_echo_n "(cached) " >&6
23435 else
23436 eval "$as_ac_Header=\$ac_header_preproc"
23438 ac_res=`eval 'as_val=${'$as_ac_Header'}
23439 $as_echo "$as_val"'`
23440 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23441 $as_echo "$ac_res" >&6; }
23444 if test `eval 'as_val=${'$as_ac_Header'}
23445 $as_echo "$as_val"'` = yes; then
23446 cat >>confdefs.h <<_ACEOF
23447 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23448 _ACEOF
23452 done
23456 done
23460 done
23463 for ac_header in krb.h
23465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23467 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23468 $as_echo_n "checking for $ac_header... " >&6; }
23469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23470 $as_echo_n "(cached) " >&6
23472 ac_res=`eval 'as_val=${'$as_ac_Header'}
23473 $as_echo "$as_val"'`
23474 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23475 $as_echo "$ac_res" >&6; }
23476 else
23477 # Is the header compilable?
23478 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23479 $as_echo_n "checking $ac_header usability... " >&6; }
23480 cat >conftest.$ac_ext <<_ACEOF
23481 /* confdefs.h. */
23482 _ACEOF
23483 cat confdefs.h >>conftest.$ac_ext
23484 cat >>conftest.$ac_ext <<_ACEOF
23485 /* end confdefs.h. */
23486 $ac_includes_default
23487 #include <$ac_header>
23488 _ACEOF
23489 rm -f conftest.$ac_objext
23490 if { (ac_try="$ac_compile"
23491 case "(($ac_try" in
23492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23493 *) ac_try_echo=$ac_try;;
23494 esac
23495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23496 $as_echo "$ac_try_echo") >&5
23497 (eval "$ac_compile") 2>conftest.er1
23498 ac_status=$?
23499 grep -v '^ *+' conftest.er1 >conftest.err
23500 rm -f conftest.er1
23501 cat conftest.err >&5
23502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503 (exit $ac_status); } && {
23504 test -z "$ac_c_werror_flag" ||
23505 test ! -s conftest.err
23506 } && test -s conftest.$ac_objext; then
23507 ac_header_compiler=yes
23508 else
23509 $as_echo "$as_me: failed program was:" >&5
23510 sed 's/^/| /' conftest.$ac_ext >&5
23512 ac_header_compiler=no
23515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23516 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23517 $as_echo "$ac_header_compiler" >&6; }
23519 # Is the header present?
23520 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23521 $as_echo_n "checking $ac_header presence... " >&6; }
23522 cat >conftest.$ac_ext <<_ACEOF
23523 /* confdefs.h. */
23524 _ACEOF
23525 cat confdefs.h >>conftest.$ac_ext
23526 cat >>conftest.$ac_ext <<_ACEOF
23527 /* end confdefs.h. */
23528 #include <$ac_header>
23529 _ACEOF
23530 if { (ac_try="$ac_cpp conftest.$ac_ext"
23531 case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23534 esac
23535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23536 $as_echo "$ac_try_echo") >&5
23537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23538 ac_status=$?
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
23542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } >/dev/null && {
23544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23546 }; then
23547 ac_header_preproc=yes
23548 else
23549 $as_echo "$as_me: failed program was:" >&5
23550 sed 's/^/| /' conftest.$ac_ext >&5
23552 ac_header_preproc=no
23555 rm -f conftest.err conftest.$ac_ext
23556 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23557 $as_echo "$ac_header_preproc" >&6; }
23559 # So? What about this header?
23560 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23561 yes:no: )
23562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23563 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23566 ac_header_preproc=yes
23568 no:yes:* )
23569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23570 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23572 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23573 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23574 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23576 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23578 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23579 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23580 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23583 esac
23584 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23585 $as_echo_n "checking for $ac_header... " >&6; }
23586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23587 $as_echo_n "(cached) " >&6
23588 else
23589 eval "$as_ac_Header=\$ac_header_preproc"
23591 ac_res=`eval 'as_val=${'$as_ac_Header'}
23592 $as_echo "$as_val"'`
23593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23594 $as_echo "$ac_res" >&6; }
23597 if test `eval 'as_val=${'$as_ac_Header'}
23598 $as_echo "$as_val"'` = yes; then
23599 cat >>confdefs.h <<_ACEOF
23600 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23601 _ACEOF
23603 else
23605 for ac_header in kerberosIV/krb.h
23607 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23609 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23610 $as_echo_n "checking for $ac_header... " >&6; }
23611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23612 $as_echo_n "(cached) " >&6
23614 ac_res=`eval 'as_val=${'$as_ac_Header'}
23615 $as_echo "$as_val"'`
23616 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23617 $as_echo "$ac_res" >&6; }
23618 else
23619 # Is the header compilable?
23620 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23621 $as_echo_n "checking $ac_header usability... " >&6; }
23622 cat >conftest.$ac_ext <<_ACEOF
23623 /* confdefs.h. */
23624 _ACEOF
23625 cat confdefs.h >>conftest.$ac_ext
23626 cat >>conftest.$ac_ext <<_ACEOF
23627 /* end confdefs.h. */
23628 $ac_includes_default
23629 #include <$ac_header>
23630 _ACEOF
23631 rm -f conftest.$ac_objext
23632 if { (ac_try="$ac_compile"
23633 case "(($ac_try" in
23634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635 *) ac_try_echo=$ac_try;;
23636 esac
23637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23638 $as_echo "$ac_try_echo") >&5
23639 (eval "$ac_compile") 2>conftest.er1
23640 ac_status=$?
23641 grep -v '^ *+' conftest.er1 >conftest.err
23642 rm -f conftest.er1
23643 cat conftest.err >&5
23644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645 (exit $ac_status); } && {
23646 test -z "$ac_c_werror_flag" ||
23647 test ! -s conftest.err
23648 } && test -s conftest.$ac_objext; then
23649 ac_header_compiler=yes
23650 else
23651 $as_echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23654 ac_header_compiler=no
23657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23658 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23659 $as_echo "$ac_header_compiler" >&6; }
23661 # Is the header present?
23662 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23663 $as_echo_n "checking $ac_header presence... " >&6; }
23664 cat >conftest.$ac_ext <<_ACEOF
23665 /* confdefs.h. */
23666 _ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h. */
23670 #include <$ac_header>
23671 _ACEOF
23672 if { (ac_try="$ac_cpp conftest.$ac_ext"
23673 case "(($ac_try" in
23674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23675 *) ac_try_echo=$ac_try;;
23676 esac
23677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23678 $as_echo "$ac_try_echo") >&5
23679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23680 ac_status=$?
23681 grep -v '^ *+' conftest.er1 >conftest.err
23682 rm -f conftest.er1
23683 cat conftest.err >&5
23684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } >/dev/null && {
23686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23687 test ! -s conftest.err
23688 }; then
23689 ac_header_preproc=yes
23690 else
23691 $as_echo "$as_me: failed program was:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23694 ac_header_preproc=no
23697 rm -f conftest.err conftest.$ac_ext
23698 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23699 $as_echo "$ac_header_preproc" >&6; }
23701 # So? What about this header?
23702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23703 yes:no: )
23704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23705 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23707 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23708 ac_header_preproc=yes
23710 no:yes:* )
23711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23712 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23714 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23716 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23717 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23718 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23719 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23720 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23721 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23722 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23725 esac
23726 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23727 $as_echo_n "checking for $ac_header... " >&6; }
23728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23729 $as_echo_n "(cached) " >&6
23730 else
23731 eval "$as_ac_Header=\$ac_header_preproc"
23733 ac_res=`eval 'as_val=${'$as_ac_Header'}
23734 $as_echo "$as_val"'`
23735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23736 $as_echo "$ac_res" >&6; }
23739 if test `eval 'as_val=${'$as_ac_Header'}
23740 $as_echo "$as_val"'` = yes; then
23741 cat >>confdefs.h <<_ACEOF
23742 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23743 _ACEOF
23745 else
23747 for ac_header in kerberos/krb.h
23749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23751 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23752 $as_echo_n "checking for $ac_header... " >&6; }
23753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23754 $as_echo_n "(cached) " >&6
23756 ac_res=`eval 'as_val=${'$as_ac_Header'}
23757 $as_echo "$as_val"'`
23758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23759 $as_echo "$ac_res" >&6; }
23760 else
23761 # Is the header compilable?
23762 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23763 $as_echo_n "checking $ac_header usability... " >&6; }
23764 cat >conftest.$ac_ext <<_ACEOF
23765 /* confdefs.h. */
23766 _ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h. */
23770 $ac_includes_default
23771 #include <$ac_header>
23772 _ACEOF
23773 rm -f conftest.$ac_objext
23774 if { (ac_try="$ac_compile"
23775 case "(($ac_try" in
23776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23777 *) ac_try_echo=$ac_try;;
23778 esac
23779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23780 $as_echo "$ac_try_echo") >&5
23781 (eval "$ac_compile") 2>conftest.er1
23782 ac_status=$?
23783 grep -v '^ *+' conftest.er1 >conftest.err
23784 rm -f conftest.er1
23785 cat conftest.err >&5
23786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); } && {
23788 test -z "$ac_c_werror_flag" ||
23789 test ! -s conftest.err
23790 } && test -s conftest.$ac_objext; then
23791 ac_header_compiler=yes
23792 else
23793 $as_echo "$as_me: failed program was:" >&5
23794 sed 's/^/| /' conftest.$ac_ext >&5
23796 ac_header_compiler=no
23799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23800 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23801 $as_echo "$ac_header_compiler" >&6; }
23803 # Is the header present?
23804 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23805 $as_echo_n "checking $ac_header presence... " >&6; }
23806 cat >conftest.$ac_ext <<_ACEOF
23807 /* confdefs.h. */
23808 _ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23812 #include <$ac_header>
23813 _ACEOF
23814 if { (ac_try="$ac_cpp conftest.$ac_ext"
23815 case "(($ac_try" in
23816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23817 *) ac_try_echo=$ac_try;;
23818 esac
23819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23820 $as_echo "$ac_try_echo") >&5
23821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23822 ac_status=$?
23823 grep -v '^ *+' conftest.er1 >conftest.err
23824 rm -f conftest.er1
23825 cat conftest.err >&5
23826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827 (exit $ac_status); } >/dev/null && {
23828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23829 test ! -s conftest.err
23830 }; then
23831 ac_header_preproc=yes
23832 else
23833 $as_echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23836 ac_header_preproc=no
23839 rm -f conftest.err conftest.$ac_ext
23840 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23841 $as_echo "$ac_header_preproc" >&6; }
23843 # So? What about this header?
23844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23845 yes:no: )
23846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23847 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23850 ac_header_preproc=yes
23852 no:yes:* )
23853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23854 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23856 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23858 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23860 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23862 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23864 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23867 esac
23868 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23869 $as_echo_n "checking for $ac_header... " >&6; }
23870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23871 $as_echo_n "(cached) " >&6
23872 else
23873 eval "$as_ac_Header=\$ac_header_preproc"
23875 ac_res=`eval 'as_val=${'$as_ac_Header'}
23876 $as_echo "$as_val"'`
23877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23878 $as_echo "$ac_res" >&6; }
23881 if test `eval 'as_val=${'$as_ac_Header'}
23882 $as_echo "$as_val"'` = yes; then
23883 cat >>confdefs.h <<_ACEOF
23884 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23885 _ACEOF
23889 done
23893 done
23897 done
23901 for ac_header in com_err.h
23903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23905 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23906 $as_echo_n "checking for $ac_header... " >&6; }
23907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23908 $as_echo_n "(cached) " >&6
23910 ac_res=`eval 'as_val=${'$as_ac_Header'}
23911 $as_echo "$as_val"'`
23912 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23913 $as_echo "$ac_res" >&6; }
23914 else
23915 # Is the header compilable?
23916 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23917 $as_echo_n "checking $ac_header usability... " >&6; }
23918 cat >conftest.$ac_ext <<_ACEOF
23919 /* confdefs.h. */
23920 _ACEOF
23921 cat confdefs.h >>conftest.$ac_ext
23922 cat >>conftest.$ac_ext <<_ACEOF
23923 /* end confdefs.h. */
23924 $ac_includes_default
23925 #include <$ac_header>
23926 _ACEOF
23927 rm -f conftest.$ac_objext
23928 if { (ac_try="$ac_compile"
23929 case "(($ac_try" in
23930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23931 *) ac_try_echo=$ac_try;;
23932 esac
23933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23934 $as_echo "$ac_try_echo") >&5
23935 (eval "$ac_compile") 2>conftest.er1
23936 ac_status=$?
23937 grep -v '^ *+' conftest.er1 >conftest.err
23938 rm -f conftest.er1
23939 cat conftest.err >&5
23940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941 (exit $ac_status); } && {
23942 test -z "$ac_c_werror_flag" ||
23943 test ! -s conftest.err
23944 } && test -s conftest.$ac_objext; then
23945 ac_header_compiler=yes
23946 else
23947 $as_echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23950 ac_header_compiler=no
23953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23954 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23955 $as_echo "$ac_header_compiler" >&6; }
23957 # Is the header present?
23958 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23959 $as_echo_n "checking $ac_header presence... " >&6; }
23960 cat >conftest.$ac_ext <<_ACEOF
23961 /* confdefs.h. */
23962 _ACEOF
23963 cat confdefs.h >>conftest.$ac_ext
23964 cat >>conftest.$ac_ext <<_ACEOF
23965 /* end confdefs.h. */
23966 #include <$ac_header>
23967 _ACEOF
23968 if { (ac_try="$ac_cpp conftest.$ac_ext"
23969 case "(($ac_try" in
23970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23971 *) ac_try_echo=$ac_try;;
23972 esac
23973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23974 $as_echo "$ac_try_echo") >&5
23975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23976 ac_status=$?
23977 grep -v '^ *+' conftest.er1 >conftest.err
23978 rm -f conftest.er1
23979 cat conftest.err >&5
23980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981 (exit $ac_status); } >/dev/null && {
23982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23983 test ! -s conftest.err
23984 }; then
23985 ac_header_preproc=yes
23986 else
23987 $as_echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23990 ac_header_preproc=no
23993 rm -f conftest.err conftest.$ac_ext
23994 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23995 $as_echo "$ac_header_preproc" >&6; }
23997 # So? What about this header?
23998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23999 yes:no: )
24000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24001 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24003 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24004 ac_header_preproc=yes
24006 no:yes:* )
24007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24008 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24010 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24012 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24014 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24016 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24018 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24021 esac
24022 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24023 $as_echo_n "checking for $ac_header... " >&6; }
24024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24025 $as_echo_n "(cached) " >&6
24026 else
24027 eval "$as_ac_Header=\$ac_header_preproc"
24029 ac_res=`eval 'as_val=${'$as_ac_Header'}
24030 $as_echo "$as_val"'`
24031 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24032 $as_echo "$ac_res" >&6; }
24035 if test `eval 'as_val=${'$as_ac_Header'}
24036 $as_echo "$as_val"'` = yes; then
24037 cat >>confdefs.h <<_ACEOF
24038 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24039 _ACEOF
24043 done
24053 # Solaris requires -lintl if you want strerror (which calls dgettext)
24054 # to return localized messages.
24056 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
24057 $as_echo_n "checking for dgettext in -lintl... " >&6; }
24058 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
24059 $as_echo_n "(cached) " >&6
24060 else
24061 ac_check_lib_save_LIBS=$LIBS
24062 LIBS="-lintl $LIBS"
24063 cat >conftest.$ac_ext <<_ACEOF
24064 /* confdefs.h. */
24065 _ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h. */
24070 /* Override any GCC internal prototype to avoid an error.
24071 Use char because int might match the return type of a GCC
24072 builtin and then its argument prototype would still apply. */
24073 #ifdef __cplusplus
24074 extern "C"
24075 #endif
24076 char dgettext ();
24078 main ()
24080 return dgettext ();
24082 return 0;
24084 _ACEOF
24085 rm -f conftest.$ac_objext conftest$ac_exeext
24086 if { (ac_try="$ac_link"
24087 case "(($ac_try" in
24088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24089 *) ac_try_echo=$ac_try;;
24090 esac
24091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24092 $as_echo "$ac_try_echo") >&5
24093 (eval "$ac_link") 2>conftest.er1
24094 ac_status=$?
24095 grep -v '^ *+' conftest.er1 >conftest.err
24096 rm -f conftest.er1
24097 cat conftest.err >&5
24098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); } && {
24100 test -z "$ac_c_werror_flag" ||
24101 test ! -s conftest.err
24102 } && test -s conftest$ac_exeext && {
24103 test "$cross_compiling" = yes ||
24104 $as_test_x conftest$ac_exeext
24105 }; then
24106 ac_cv_lib_intl_dgettext=yes
24107 else
24108 $as_echo "$as_me: failed program was:" >&5
24109 sed 's/^/| /' conftest.$ac_ext >&5
24111 ac_cv_lib_intl_dgettext=no
24114 rm -rf conftest.dSYM
24115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24116 conftest$ac_exeext conftest.$ac_ext
24117 LIBS=$ac_check_lib_save_LIBS
24119 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
24120 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24121 if test $ac_cv_lib_intl_dgettext = yes; then
24122 cat >>confdefs.h <<_ACEOF
24123 #define HAVE_LIBINTL 1
24124 _ACEOF
24126 LIBS="-lintl $LIBS"
24131 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
24132 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24133 if test "${emacs_cv_localtime_cache+set}" = set; then
24134 $as_echo_n "(cached) " >&6
24135 else
24136 if test x$ac_cv_func_tzset = xyes; then
24137 if test "$cross_compiling" = yes; then
24138 # If we have tzset, assume the worst when cross-compiling.
24139 emacs_cv_localtime_cache=yes
24140 else
24141 cat >conftest.$ac_ext <<_ACEOF
24142 /* confdefs.h. */
24143 _ACEOF
24144 cat confdefs.h >>conftest.$ac_ext
24145 cat >>conftest.$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24147 #include <time.h>
24148 extern char **environ;
24149 unset_TZ ()
24151 char **from, **to;
24152 for (to = from = environ; (*to = *from); from++)
24153 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
24154 to++;
24156 char TZ_GMT0[] = "TZ=GMT0";
24157 char TZ_PST8[] = "TZ=PST8";
24158 main()
24160 time_t now = time ((time_t *) 0);
24161 int hour_GMT0, hour_unset;
24162 if (putenv (TZ_GMT0) != 0)
24163 exit (1);
24164 hour_GMT0 = localtime (&now)->tm_hour;
24165 unset_TZ ();
24166 hour_unset = localtime (&now)->tm_hour;
24167 if (putenv (TZ_PST8) != 0)
24168 exit (1);
24169 if (localtime (&now)->tm_hour == hour_GMT0)
24170 exit (1);
24171 unset_TZ ();
24172 if (localtime (&now)->tm_hour != hour_unset)
24173 exit (1);
24174 exit (0);
24176 _ACEOF
24177 rm -f conftest$ac_exeext
24178 if { (ac_try="$ac_link"
24179 case "(($ac_try" in
24180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24181 *) ac_try_echo=$ac_try;;
24182 esac
24183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24184 $as_echo "$ac_try_echo") >&5
24185 (eval "$ac_link") 2>&5
24186 ac_status=$?
24187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24189 { (case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24192 esac
24193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24194 $as_echo "$ac_try_echo") >&5
24195 (eval "$ac_try") 2>&5
24196 ac_status=$?
24197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198 (exit $ac_status); }; }; then
24199 emacs_cv_localtime_cache=no
24200 else
24201 $as_echo "$as_me: program exited with status $ac_status" >&5
24202 $as_echo "$as_me: failed program was:" >&5
24203 sed 's/^/| /' conftest.$ac_ext >&5
24205 ( exit $ac_status )
24206 emacs_cv_localtime_cache=yes
24208 rm -rf conftest.dSYM
24209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24213 else
24214 # If we lack tzset, report that localtime does not cache TZ,
24215 # since we can't invalidate the cache if we don't have tzset.
24216 emacs_cv_localtime_cache=no
24219 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
24220 $as_echo "$emacs_cv_localtime_cache" >&6; }
24221 if test $emacs_cv_localtime_cache = yes; then
24223 cat >>confdefs.h <<\_ACEOF
24224 #define LOCALTIME_CACHE 1
24225 _ACEOF
24229 if test "x$HAVE_TIMEVAL" = xyes; then
24231 for ac_func in gettimeofday
24233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24234 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24235 $as_echo_n "checking for $ac_func... " >&6; }
24236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24237 $as_echo_n "(cached) " >&6
24238 else
24239 cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h. */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h. */
24245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24247 #define $ac_func innocuous_$ac_func
24249 /* System header to define __stub macros and hopefully few prototypes,
24250 which can conflict with char $ac_func (); below.
24251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24252 <limits.h> exists even on freestanding compilers. */
24254 #ifdef __STDC__
24255 # include <limits.h>
24256 #else
24257 # include <assert.h>
24258 #endif
24260 #undef $ac_func
24262 /* Override any GCC internal prototype to avoid an error.
24263 Use char because int might match the return type of a GCC
24264 builtin and then its argument prototype would still apply. */
24265 #ifdef __cplusplus
24266 extern "C"
24267 #endif
24268 char $ac_func ();
24269 /* The GNU C library defines this for functions which it implements
24270 to always fail with ENOSYS. Some functions are actually named
24271 something starting with __ and the normal name is an alias. */
24272 #if defined __stub_$ac_func || defined __stub___$ac_func
24273 choke me
24274 #endif
24277 main ()
24279 return $ac_func ();
24281 return 0;
24283 _ACEOF
24284 rm -f conftest.$ac_objext conftest$ac_exeext
24285 if { (ac_try="$ac_link"
24286 case "(($ac_try" in
24287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24288 *) ac_try_echo=$ac_try;;
24289 esac
24290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24291 $as_echo "$ac_try_echo") >&5
24292 (eval "$ac_link") 2>conftest.er1
24293 ac_status=$?
24294 grep -v '^ *+' conftest.er1 >conftest.err
24295 rm -f conftest.er1
24296 cat conftest.err >&5
24297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); } && {
24299 test -z "$ac_c_werror_flag" ||
24300 test ! -s conftest.err
24301 } && test -s conftest$ac_exeext && {
24302 test "$cross_compiling" = yes ||
24303 $as_test_x conftest$ac_exeext
24304 }; then
24305 eval "$as_ac_var=yes"
24306 else
24307 $as_echo "$as_me: failed program was:" >&5
24308 sed 's/^/| /' conftest.$ac_ext >&5
24310 eval "$as_ac_var=no"
24313 rm -rf conftest.dSYM
24314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24315 conftest$ac_exeext conftest.$ac_ext
24317 ac_res=`eval 'as_val=${'$as_ac_var'}
24318 $as_echo "$as_val"'`
24319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24320 $as_echo "$ac_res" >&6; }
24321 if test `eval 'as_val=${'$as_ac_var'}
24322 $as_echo "$as_val"'` = yes; then
24323 cat >>confdefs.h <<_ACEOF
24324 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24325 _ACEOF
24328 done
24330 if test $ac_cv_func_gettimeofday = yes; then
24331 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24332 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24333 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24334 $as_echo_n "(cached) " >&6
24335 else
24336 cat >conftest.$ac_ext <<_ACEOF
24337 /* confdefs.h. */
24338 _ACEOF
24339 cat confdefs.h >>conftest.$ac_ext
24340 cat >>conftest.$ac_ext <<_ACEOF
24341 /* end confdefs.h. */
24343 #ifdef TIME_WITH_SYS_TIME
24344 #include <sys/time.h>
24345 #include <time.h>
24346 #else
24347 #ifdef HAVE_SYS_TIME_H
24348 #include <sys/time.h>
24349 #else
24350 #include <time.h>
24351 #endif
24352 #endif
24354 main ()
24356 struct timeval time;
24357 gettimeofday (&time, 0);
24359 return 0;
24361 _ACEOF
24362 rm -f conftest.$ac_objext
24363 if { (ac_try="$ac_compile"
24364 case "(($ac_try" in
24365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24366 *) ac_try_echo=$ac_try;;
24367 esac
24368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24369 $as_echo "$ac_try_echo") >&5
24370 (eval "$ac_compile") 2>conftest.er1
24371 ac_status=$?
24372 grep -v '^ *+' conftest.er1 >conftest.err
24373 rm -f conftest.er1
24374 cat conftest.err >&5
24375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376 (exit $ac_status); } && {
24377 test -z "$ac_c_werror_flag" ||
24378 test ! -s conftest.err
24379 } && test -s conftest.$ac_objext; then
24380 emacs_cv_gettimeofday_two_arguments=yes
24381 else
24382 $as_echo "$as_me: failed program was:" >&5
24383 sed 's/^/| /' conftest.$ac_ext >&5
24385 emacs_cv_gettimeofday_two_arguments=no
24388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24390 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24391 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24392 if test $emacs_cv_gettimeofday_two_arguments = no; then
24394 cat >>confdefs.h <<\_ACEOF
24395 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24396 _ACEOF
24402 ok_so_far=yes
24403 { $as_echo "$as_me:$LINENO: checking for socket" >&5
24404 $as_echo_n "checking for socket... " >&6; }
24405 if test "${ac_cv_func_socket+set}" = set; then
24406 $as_echo_n "(cached) " >&6
24407 else
24408 cat >conftest.$ac_ext <<_ACEOF
24409 /* confdefs.h. */
24410 _ACEOF
24411 cat confdefs.h >>conftest.$ac_ext
24412 cat >>conftest.$ac_ext <<_ACEOF
24413 /* end confdefs.h. */
24414 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24416 #define socket innocuous_socket
24418 /* System header to define __stub macros and hopefully few prototypes,
24419 which can conflict with char socket (); below.
24420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24421 <limits.h> exists even on freestanding compilers. */
24423 #ifdef __STDC__
24424 # include <limits.h>
24425 #else
24426 # include <assert.h>
24427 #endif
24429 #undef socket
24431 /* Override any GCC internal prototype to avoid an error.
24432 Use char because int might match the return type of a GCC
24433 builtin and then its argument prototype would still apply. */
24434 #ifdef __cplusplus
24435 extern "C"
24436 #endif
24437 char socket ();
24438 /* The GNU C library defines this for functions which it implements
24439 to always fail with ENOSYS. Some functions are actually named
24440 something starting with __ and the normal name is an alias. */
24441 #if defined __stub_socket || defined __stub___socket
24442 choke me
24443 #endif
24446 main ()
24448 return socket ();
24450 return 0;
24452 _ACEOF
24453 rm -f conftest.$ac_objext conftest$ac_exeext
24454 if { (ac_try="$ac_link"
24455 case "(($ac_try" in
24456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457 *) ac_try_echo=$ac_try;;
24458 esac
24459 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24460 $as_echo "$ac_try_echo") >&5
24461 (eval "$ac_link") 2>conftest.er1
24462 ac_status=$?
24463 grep -v '^ *+' conftest.er1 >conftest.err
24464 rm -f conftest.er1
24465 cat conftest.err >&5
24466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); } && {
24468 test -z "$ac_c_werror_flag" ||
24469 test ! -s conftest.err
24470 } && test -s conftest$ac_exeext && {
24471 test "$cross_compiling" = yes ||
24472 $as_test_x conftest$ac_exeext
24473 }; then
24474 ac_cv_func_socket=yes
24475 else
24476 $as_echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24479 ac_cv_func_socket=no
24482 rm -rf conftest.dSYM
24483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24484 conftest$ac_exeext conftest.$ac_ext
24486 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24487 $as_echo "$ac_cv_func_socket" >&6; }
24488 if test $ac_cv_func_socket = yes; then
24490 else
24491 ok_so_far=no
24494 if test $ok_so_far = yes; then
24495 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24496 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24497 $as_echo_n "checking for netinet/in.h... " >&6; }
24498 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24499 $as_echo_n "(cached) " >&6
24501 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24502 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24503 else
24504 # Is the header compilable?
24505 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24506 $as_echo_n "checking netinet/in.h usability... " >&6; }
24507 cat >conftest.$ac_ext <<_ACEOF
24508 /* confdefs.h. */
24509 _ACEOF
24510 cat confdefs.h >>conftest.$ac_ext
24511 cat >>conftest.$ac_ext <<_ACEOF
24512 /* end confdefs.h. */
24513 $ac_includes_default
24514 #include <netinet/in.h>
24515 _ACEOF
24516 rm -f conftest.$ac_objext
24517 if { (ac_try="$ac_compile"
24518 case "(($ac_try" in
24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24521 esac
24522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24523 $as_echo "$ac_try_echo") >&5
24524 (eval "$ac_compile") 2>conftest.er1
24525 ac_status=$?
24526 grep -v '^ *+' conftest.er1 >conftest.err
24527 rm -f conftest.er1
24528 cat conftest.err >&5
24529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); } && {
24531 test -z "$ac_c_werror_flag" ||
24532 test ! -s conftest.err
24533 } && test -s conftest.$ac_objext; then
24534 ac_header_compiler=yes
24535 else
24536 $as_echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24539 ac_header_compiler=no
24542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24543 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24544 $as_echo "$ac_header_compiler" >&6; }
24546 # Is the header present?
24547 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24548 $as_echo_n "checking netinet/in.h presence... " >&6; }
24549 cat >conftest.$ac_ext <<_ACEOF
24550 /* confdefs.h. */
24551 _ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24555 #include <netinet/in.h>
24556 _ACEOF
24557 if { (ac_try="$ac_cpp conftest.$ac_ext"
24558 case "(($ac_try" in
24559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560 *) ac_try_echo=$ac_try;;
24561 esac
24562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24563 $as_echo "$ac_try_echo") >&5
24564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24565 ac_status=$?
24566 grep -v '^ *+' conftest.er1 >conftest.err
24567 rm -f conftest.er1
24568 cat conftest.err >&5
24569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24570 (exit $ac_status); } >/dev/null && {
24571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24572 test ! -s conftest.err
24573 }; then
24574 ac_header_preproc=yes
24575 else
24576 $as_echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24579 ac_header_preproc=no
24582 rm -f conftest.err conftest.$ac_ext
24583 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24584 $as_echo "$ac_header_preproc" >&6; }
24586 # So? What about this header?
24587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24588 yes:no: )
24589 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24590 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24591 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24592 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24593 ac_header_preproc=yes
24595 no:yes:* )
24596 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24597 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24598 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24599 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24600 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24601 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24602 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24603 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24604 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24605 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24606 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24607 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24610 esac
24611 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24612 $as_echo_n "checking for netinet/in.h... " >&6; }
24613 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24614 $as_echo_n "(cached) " >&6
24615 else
24616 ac_cv_header_netinet_in_h=$ac_header_preproc
24618 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24619 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24622 if test $ac_cv_header_netinet_in_h = yes; then
24624 else
24625 ok_so_far=no
24630 if test $ok_so_far = yes; then
24631 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24632 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24633 $as_echo_n "checking for arpa/inet.h... " >&6; }
24634 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24635 $as_echo_n "(cached) " >&6
24637 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24638 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24639 else
24640 # Is the header compilable?
24641 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24642 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24643 cat >conftest.$ac_ext <<_ACEOF
24644 /* confdefs.h. */
24645 _ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24649 $ac_includes_default
24650 #include <arpa/inet.h>
24651 _ACEOF
24652 rm -f conftest.$ac_objext
24653 if { (ac_try="$ac_compile"
24654 case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24657 esac
24658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24659 $as_echo "$ac_try_echo") >&5
24660 (eval "$ac_compile") 2>conftest.er1
24661 ac_status=$?
24662 grep -v '^ *+' conftest.er1 >conftest.err
24663 rm -f conftest.er1
24664 cat conftest.err >&5
24665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } && {
24667 test -z "$ac_c_werror_flag" ||
24668 test ! -s conftest.err
24669 } && test -s conftest.$ac_objext; then
24670 ac_header_compiler=yes
24671 else
24672 $as_echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24675 ac_header_compiler=no
24678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24680 $as_echo "$ac_header_compiler" >&6; }
24682 # Is the header present?
24683 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24684 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24685 cat >conftest.$ac_ext <<_ACEOF
24686 /* confdefs.h. */
24687 _ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h. */
24691 #include <arpa/inet.h>
24692 _ACEOF
24693 if { (ac_try="$ac_cpp conftest.$ac_ext"
24694 case "(($ac_try" in
24695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24697 esac
24698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24699 $as_echo "$ac_try_echo") >&5
24700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24701 ac_status=$?
24702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
24705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } >/dev/null && {
24707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24708 test ! -s conftest.err
24709 }; then
24710 ac_header_preproc=yes
24711 else
24712 $as_echo "$as_me: failed program was:" >&5
24713 sed 's/^/| /' conftest.$ac_ext >&5
24715 ac_header_preproc=no
24718 rm -f conftest.err conftest.$ac_ext
24719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24720 $as_echo "$ac_header_preproc" >&6; }
24722 # So? What about this header?
24723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24724 yes:no: )
24725 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24726 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24727 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24728 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24729 ac_header_preproc=yes
24731 no:yes:* )
24732 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24733 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24734 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24735 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24736 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24737 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24738 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24739 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24740 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24741 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24742 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24743 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24746 esac
24747 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24748 $as_echo_n "checking for arpa/inet.h... " >&6; }
24749 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24750 $as_echo_n "(cached) " >&6
24751 else
24752 ac_cv_header_arpa_inet_h=$ac_header_preproc
24754 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24755 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24758 if test $ac_cv_header_arpa_inet_h = yes; then
24760 else
24761 ok_so_far=no
24766 if test $ok_so_far = yes; then
24768 cat >>confdefs.h <<\_ACEOF
24769 #define HAVE_INET_SOCKETS 1
24770 _ACEOF
24775 for ac_header in sys/ioctl.h
24777 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24779 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24780 $as_echo_n "checking for $ac_header... " >&6; }
24781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24782 $as_echo_n "(cached) " >&6
24784 ac_res=`eval 'as_val=${'$as_ac_Header'}
24785 $as_echo "$as_val"'`
24786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24787 $as_echo "$ac_res" >&6; }
24788 else
24789 # Is the header compilable?
24790 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24791 $as_echo_n "checking $ac_header usability... " >&6; }
24792 cat >conftest.$ac_ext <<_ACEOF
24793 /* confdefs.h. */
24794 _ACEOF
24795 cat confdefs.h >>conftest.$ac_ext
24796 cat >>conftest.$ac_ext <<_ACEOF
24797 /* end confdefs.h. */
24798 $ac_includes_default
24799 #include <$ac_header>
24800 _ACEOF
24801 rm -f conftest.$ac_objext
24802 if { (ac_try="$ac_compile"
24803 case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24806 esac
24807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24808 $as_echo "$ac_try_echo") >&5
24809 (eval "$ac_compile") 2>conftest.er1
24810 ac_status=$?
24811 grep -v '^ *+' conftest.er1 >conftest.err
24812 rm -f conftest.er1
24813 cat conftest.err >&5
24814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest.$ac_objext; then
24819 ac_header_compiler=yes
24820 else
24821 $as_echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24824 ac_header_compiler=no
24827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24828 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24829 $as_echo "$ac_header_compiler" >&6; }
24831 # Is the header present?
24832 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24833 $as_echo_n "checking $ac_header presence... " >&6; }
24834 cat >conftest.$ac_ext <<_ACEOF
24835 /* confdefs.h. */
24836 _ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h. */
24840 #include <$ac_header>
24841 _ACEOF
24842 if { (ac_try="$ac_cpp conftest.$ac_ext"
24843 case "(($ac_try" in
24844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845 *) ac_try_echo=$ac_try;;
24846 esac
24847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24848 $as_echo "$ac_try_echo") >&5
24849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24850 ac_status=$?
24851 grep -v '^ *+' conftest.er1 >conftest.err
24852 rm -f conftest.er1
24853 cat conftest.err >&5
24854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); } >/dev/null && {
24856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24857 test ! -s conftest.err
24858 }; then
24859 ac_header_preproc=yes
24860 else
24861 $as_echo "$as_me: failed program was:" >&5
24862 sed 's/^/| /' conftest.$ac_ext >&5
24864 ac_header_preproc=no
24867 rm -f conftest.err conftest.$ac_ext
24868 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24869 $as_echo "$ac_header_preproc" >&6; }
24871 # So? What about this header?
24872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24873 yes:no: )
24874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24875 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24877 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24878 ac_header_preproc=yes
24880 no:yes:* )
24881 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24882 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24884 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24886 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24888 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24890 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24892 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24895 esac
24896 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24897 $as_echo_n "checking for $ac_header... " >&6; }
24898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24899 $as_echo_n "(cached) " >&6
24900 else
24901 eval "$as_ac_Header=\$ac_header_preproc"
24903 ac_res=`eval 'as_val=${'$as_ac_Header'}
24904 $as_echo "$as_val"'`
24905 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24906 $as_echo "$ac_res" >&6; }
24909 if test `eval 'as_val=${'$as_ac_Header'}
24910 $as_echo "$as_val"'` = yes; then
24911 cat >>confdefs.h <<_ACEOF
24912 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24913 _ACEOF
24917 done
24920 if test -f /usr/lpp/X11/bin/smt.exp; then
24922 cat >>confdefs.h <<\_ACEOF
24923 #define HAVE_AIX_SMT_EXP 1
24924 _ACEOF
24928 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24929 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24930 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24931 { $as_echo "$as_me:$LINENO: result: yes" >&5
24932 $as_echo "yes" >&6; }
24934 cat >>confdefs.h <<\_ACEOF
24935 #define HAVE_DEV_PTMX 1
24936 _ACEOF
24938 else
24939 { $as_echo "$as_me:$LINENO: result: no" >&5
24940 $as_echo "no" >&6; }
24943 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24944 $as_echo_n "checking for pid_t... " >&6; }
24945 if test "${ac_cv_type_pid_t+set}" = set; then
24946 $as_echo_n "(cached) " >&6
24947 else
24948 ac_cv_type_pid_t=no
24949 cat >conftest.$ac_ext <<_ACEOF
24950 /* confdefs.h. */
24951 _ACEOF
24952 cat confdefs.h >>conftest.$ac_ext
24953 cat >>conftest.$ac_ext <<_ACEOF
24954 /* end confdefs.h. */
24955 $ac_includes_default
24957 main ()
24959 if (sizeof (pid_t))
24960 return 0;
24962 return 0;
24964 _ACEOF
24965 rm -f conftest.$ac_objext
24966 if { (ac_try="$ac_compile"
24967 case "(($ac_try" in
24968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969 *) ac_try_echo=$ac_try;;
24970 esac
24971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24972 $as_echo "$ac_try_echo") >&5
24973 (eval "$ac_compile") 2>conftest.er1
24974 ac_status=$?
24975 grep -v '^ *+' conftest.er1 >conftest.err
24976 rm -f conftest.er1
24977 cat conftest.err >&5
24978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); } && {
24980 test -z "$ac_c_werror_flag" ||
24981 test ! -s conftest.err
24982 } && test -s conftest.$ac_objext; then
24983 cat >conftest.$ac_ext <<_ACEOF
24984 /* confdefs.h. */
24985 _ACEOF
24986 cat confdefs.h >>conftest.$ac_ext
24987 cat >>conftest.$ac_ext <<_ACEOF
24988 /* end confdefs.h. */
24989 $ac_includes_default
24991 main ()
24993 if (sizeof ((pid_t)))
24994 return 0;
24996 return 0;
24998 _ACEOF
24999 rm -f conftest.$ac_objext
25000 if { (ac_try="$ac_compile"
25001 case "(($ac_try" in
25002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003 *) ac_try_echo=$ac_try;;
25004 esac
25005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25006 $as_echo "$ac_try_echo") >&5
25007 (eval "$ac_compile") 2>conftest.er1
25008 ac_status=$?
25009 grep -v '^ *+' conftest.er1 >conftest.err
25010 rm -f conftest.er1
25011 cat conftest.err >&5
25012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); } && {
25014 test -z "$ac_c_werror_flag" ||
25015 test ! -s conftest.err
25016 } && test -s conftest.$ac_objext; then
25018 else
25019 $as_echo "$as_me: failed program was:" >&5
25020 sed 's/^/| /' conftest.$ac_ext >&5
25022 ac_cv_type_pid_t=yes
25025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25026 else
25027 $as_echo "$as_me: failed program was:" >&5
25028 sed 's/^/| /' conftest.$ac_ext >&5
25033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25035 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25036 $as_echo "$ac_cv_type_pid_t" >&6; }
25037 if test $ac_cv_type_pid_t = yes; then
25039 else
25041 cat >>confdefs.h <<_ACEOF
25042 #define pid_t int
25043 _ACEOF
25048 for ac_header in vfork.h
25050 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25052 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25053 $as_echo_n "checking for $ac_header... " >&6; }
25054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25055 $as_echo_n "(cached) " >&6
25057 ac_res=`eval 'as_val=${'$as_ac_Header'}
25058 $as_echo "$as_val"'`
25059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25060 $as_echo "$ac_res" >&6; }
25061 else
25062 # Is the header compilable?
25063 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25064 $as_echo_n "checking $ac_header usability... " >&6; }
25065 cat >conftest.$ac_ext <<_ACEOF
25066 /* confdefs.h. */
25067 _ACEOF
25068 cat confdefs.h >>conftest.$ac_ext
25069 cat >>conftest.$ac_ext <<_ACEOF
25070 /* end confdefs.h. */
25071 $ac_includes_default
25072 #include <$ac_header>
25073 _ACEOF
25074 rm -f conftest.$ac_objext
25075 if { (ac_try="$ac_compile"
25076 case "(($ac_try" in
25077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25078 *) ac_try_echo=$ac_try;;
25079 esac
25080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25081 $as_echo "$ac_try_echo") >&5
25082 (eval "$ac_compile") 2>conftest.er1
25083 ac_status=$?
25084 grep -v '^ *+' conftest.er1 >conftest.err
25085 rm -f conftest.er1
25086 cat conftest.err >&5
25087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088 (exit $ac_status); } && {
25089 test -z "$ac_c_werror_flag" ||
25090 test ! -s conftest.err
25091 } && test -s conftest.$ac_objext; then
25092 ac_header_compiler=yes
25093 else
25094 $as_echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25097 ac_header_compiler=no
25100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25102 $as_echo "$ac_header_compiler" >&6; }
25104 # Is the header present?
25105 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25106 $as_echo_n "checking $ac_header presence... " >&6; }
25107 cat >conftest.$ac_ext <<_ACEOF
25108 /* confdefs.h. */
25109 _ACEOF
25110 cat confdefs.h >>conftest.$ac_ext
25111 cat >>conftest.$ac_ext <<_ACEOF
25112 /* end confdefs.h. */
25113 #include <$ac_header>
25114 _ACEOF
25115 if { (ac_try="$ac_cpp conftest.$ac_ext"
25116 case "(($ac_try" in
25117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118 *) ac_try_echo=$ac_try;;
25119 esac
25120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25121 $as_echo "$ac_try_echo") >&5
25122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25123 ac_status=$?
25124 grep -v '^ *+' conftest.er1 >conftest.err
25125 rm -f conftest.er1
25126 cat conftest.err >&5
25127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25128 (exit $ac_status); } >/dev/null && {
25129 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25130 test ! -s conftest.err
25131 }; then
25132 ac_header_preproc=yes
25133 else
25134 $as_echo "$as_me: failed program was:" >&5
25135 sed 's/^/| /' conftest.$ac_ext >&5
25137 ac_header_preproc=no
25140 rm -f conftest.err conftest.$ac_ext
25141 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25142 $as_echo "$ac_header_preproc" >&6; }
25144 # So? What about this header?
25145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25146 yes:no: )
25147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25148 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25151 ac_header_preproc=yes
25153 no:yes:* )
25154 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25155 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25156 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25157 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25158 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25159 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25160 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25161 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25162 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25163 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25164 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25165 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25168 esac
25169 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25170 $as_echo_n "checking for $ac_header... " >&6; }
25171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25172 $as_echo_n "(cached) " >&6
25173 else
25174 eval "$as_ac_Header=\$ac_header_preproc"
25176 ac_res=`eval 'as_val=${'$as_ac_Header'}
25177 $as_echo "$as_val"'`
25178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25179 $as_echo "$ac_res" >&6; }
25182 if test `eval 'as_val=${'$as_ac_Header'}
25183 $as_echo "$as_val"'` = yes; then
25184 cat >>confdefs.h <<_ACEOF
25185 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25186 _ACEOF
25190 done
25194 for ac_func in fork vfork
25196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25197 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25198 $as_echo_n "checking for $ac_func... " >&6; }
25199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25200 $as_echo_n "(cached) " >&6
25201 else
25202 cat >conftest.$ac_ext <<_ACEOF
25203 /* confdefs.h. */
25204 _ACEOF
25205 cat confdefs.h >>conftest.$ac_ext
25206 cat >>conftest.$ac_ext <<_ACEOF
25207 /* end confdefs.h. */
25208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25210 #define $ac_func innocuous_$ac_func
25212 /* System header to define __stub macros and hopefully few prototypes,
25213 which can conflict with char $ac_func (); below.
25214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25215 <limits.h> exists even on freestanding compilers. */
25217 #ifdef __STDC__
25218 # include <limits.h>
25219 #else
25220 # include <assert.h>
25221 #endif
25223 #undef $ac_func
25225 /* Override any GCC internal prototype to avoid an error.
25226 Use char because int might match the return type of a GCC
25227 builtin and then its argument prototype would still apply. */
25228 #ifdef __cplusplus
25229 extern "C"
25230 #endif
25231 char $ac_func ();
25232 /* The GNU C library defines this for functions which it implements
25233 to always fail with ENOSYS. Some functions are actually named
25234 something starting with __ and the normal name is an alias. */
25235 #if defined __stub_$ac_func || defined __stub___$ac_func
25236 choke me
25237 #endif
25240 main ()
25242 return $ac_func ();
25244 return 0;
25246 _ACEOF
25247 rm -f conftest.$ac_objext conftest$ac_exeext
25248 if { (ac_try="$ac_link"
25249 case "(($ac_try" in
25250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25252 esac
25253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25254 $as_echo "$ac_try_echo") >&5
25255 (eval "$ac_link") 2>conftest.er1
25256 ac_status=$?
25257 grep -v '^ *+' conftest.er1 >conftest.err
25258 rm -f conftest.er1
25259 cat conftest.err >&5
25260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); } && {
25262 test -z "$ac_c_werror_flag" ||
25263 test ! -s conftest.err
25264 } && test -s conftest$ac_exeext && {
25265 test "$cross_compiling" = yes ||
25266 $as_test_x conftest$ac_exeext
25267 }; then
25268 eval "$as_ac_var=yes"
25269 else
25270 $as_echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.$ac_ext >&5
25273 eval "$as_ac_var=no"
25276 rm -rf conftest.dSYM
25277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25278 conftest$ac_exeext conftest.$ac_ext
25280 ac_res=`eval 'as_val=${'$as_ac_var'}
25281 $as_echo "$as_val"'`
25282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25283 $as_echo "$ac_res" >&6; }
25284 if test `eval 'as_val=${'$as_ac_var'}
25285 $as_echo "$as_val"'` = yes; then
25286 cat >>confdefs.h <<_ACEOF
25287 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25288 _ACEOF
25291 done
25293 if test "x$ac_cv_func_fork" = xyes; then
25294 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25295 $as_echo_n "checking for working fork... " >&6; }
25296 if test "${ac_cv_func_fork_works+set}" = set; then
25297 $as_echo_n "(cached) " >&6
25298 else
25299 if test "$cross_compiling" = yes; then
25300 ac_cv_func_fork_works=cross
25301 else
25302 cat >conftest.$ac_ext <<_ACEOF
25303 /* confdefs.h. */
25304 _ACEOF
25305 cat confdefs.h >>conftest.$ac_ext
25306 cat >>conftest.$ac_ext <<_ACEOF
25307 /* end confdefs.h. */
25308 $ac_includes_default
25310 main ()
25313 /* By Ruediger Kuhlmann. */
25314 return fork () < 0;
25317 return 0;
25319 _ACEOF
25320 rm -f conftest$ac_exeext
25321 if { (ac_try="$ac_link"
25322 case "(($ac_try" in
25323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25324 *) ac_try_echo=$ac_try;;
25325 esac
25326 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25327 $as_echo "$ac_try_echo") >&5
25328 (eval "$ac_link") 2>&5
25329 ac_status=$?
25330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25332 { (case "(($ac_try" in
25333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25334 *) ac_try_echo=$ac_try;;
25335 esac
25336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25337 $as_echo "$ac_try_echo") >&5
25338 (eval "$ac_try") 2>&5
25339 ac_status=$?
25340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; }; then
25342 ac_cv_func_fork_works=yes
25343 else
25344 $as_echo "$as_me: program exited with status $ac_status" >&5
25345 $as_echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25348 ( exit $ac_status )
25349 ac_cv_func_fork_works=no
25351 rm -rf conftest.dSYM
25352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25357 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25358 $as_echo "$ac_cv_func_fork_works" >&6; }
25360 else
25361 ac_cv_func_fork_works=$ac_cv_func_fork
25363 if test "x$ac_cv_func_fork_works" = xcross; then
25364 case $host in
25365 *-*-amigaos* | *-*-msdosdjgpp*)
25366 # Override, as these systems have only a dummy fork() stub
25367 ac_cv_func_fork_works=no
25370 ac_cv_func_fork_works=yes
25372 esac
25373 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25374 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25376 ac_cv_func_vfork_works=$ac_cv_func_vfork
25377 if test "x$ac_cv_func_vfork" = xyes; then
25378 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
25379 $as_echo_n "checking for working vfork... " >&6; }
25380 if test "${ac_cv_func_vfork_works+set}" = set; then
25381 $as_echo_n "(cached) " >&6
25382 else
25383 if test "$cross_compiling" = yes; then
25384 ac_cv_func_vfork_works=cross
25385 else
25386 cat >conftest.$ac_ext <<_ACEOF
25387 /* confdefs.h. */
25388 _ACEOF
25389 cat confdefs.h >>conftest.$ac_ext
25390 cat >>conftest.$ac_ext <<_ACEOF
25391 /* end confdefs.h. */
25392 /* Thanks to Paul Eggert for this test. */
25393 $ac_includes_default
25394 #include <sys/wait.h>
25395 #ifdef HAVE_VFORK_H
25396 # include <vfork.h>
25397 #endif
25398 /* On some sparc systems, changes by the child to local and incoming
25399 argument registers are propagated back to the parent. The compiler
25400 is told about this with #include <vfork.h>, but some compilers
25401 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25402 static variable whose address is put into a register that is
25403 clobbered by the vfork. */
25404 static void
25405 #ifdef __cplusplus
25406 sparc_address_test (int arg)
25407 # else
25408 sparc_address_test (arg) int arg;
25409 #endif
25411 static pid_t child;
25412 if (!child) {
25413 child = vfork ();
25414 if (child < 0) {
25415 perror ("vfork");
25416 _exit(2);
25418 if (!child) {
25419 arg = getpid();
25420 write(-1, "", 0);
25421 _exit (arg);
25427 main ()
25429 pid_t parent = getpid ();
25430 pid_t child;
25432 sparc_address_test (0);
25434 child = vfork ();
25436 if (child == 0) {
25437 /* Here is another test for sparc vfork register problems. This
25438 test uses lots of local variables, at least as many local
25439 variables as main has allocated so far including compiler
25440 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25441 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25442 reuse the register of parent for one of the local variables,
25443 since it will think that parent can't possibly be used any more
25444 in this routine. Assigning to the local variable will thus
25445 munge parent in the parent process. */
25446 pid_t
25447 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25448 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25449 /* Convince the compiler that p..p7 are live; otherwise, it might
25450 use the same hardware register for all 8 local variables. */
25451 if (p != p1 || p != p2 || p != p3 || p != p4
25452 || p != p5 || p != p6 || p != p7)
25453 _exit(1);
25455 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25456 from child file descriptors. If the child closes a descriptor
25457 before it execs or exits, this munges the parent's descriptor
25458 as well. Test for this by closing stdout in the child. */
25459 _exit(close(fileno(stdout)) != 0);
25460 } else {
25461 int status;
25462 struct stat st;
25464 while (wait(&status) != child)
25466 return (
25467 /* Was there some problem with vforking? */
25468 child < 0
25470 /* Did the child fail? (This shouldn't happen.) */
25471 || status
25473 /* Did the vfork/compiler bug occur? */
25474 || parent != getpid()
25476 /* Did the file descriptor bug occur? */
25477 || fstat(fileno(stdout), &st) != 0
25481 _ACEOF
25482 rm -f conftest$ac_exeext
25483 if { (ac_try="$ac_link"
25484 case "(($ac_try" in
25485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25486 *) ac_try_echo=$ac_try;;
25487 esac
25488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25489 $as_echo "$ac_try_echo") >&5
25490 (eval "$ac_link") 2>&5
25491 ac_status=$?
25492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25494 { (case "(($ac_try" in
25495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25496 *) ac_try_echo=$ac_try;;
25497 esac
25498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25499 $as_echo "$ac_try_echo") >&5
25500 (eval "$ac_try") 2>&5
25501 ac_status=$?
25502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25503 (exit $ac_status); }; }; then
25504 ac_cv_func_vfork_works=yes
25505 else
25506 $as_echo "$as_me: program exited with status $ac_status" >&5
25507 $as_echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.$ac_ext >&5
25510 ( exit $ac_status )
25511 ac_cv_func_vfork_works=no
25513 rm -rf conftest.dSYM
25514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25519 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25520 $as_echo "$ac_cv_func_vfork_works" >&6; }
25523 if test "x$ac_cv_func_fork_works" = xcross; then
25524 ac_cv_func_vfork_works=$ac_cv_func_vfork
25525 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25526 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25529 if test "x$ac_cv_func_vfork_works" = xyes; then
25531 cat >>confdefs.h <<\_ACEOF
25532 #define HAVE_WORKING_VFORK 1
25533 _ACEOF
25535 else
25537 cat >>confdefs.h <<\_ACEOF
25538 #define vfork fork
25539 _ACEOF
25542 if test "x$ac_cv_func_fork_works" = xyes; then
25544 cat >>confdefs.h <<\_ACEOF
25545 #define HAVE_WORKING_FORK 1
25546 _ACEOF
25551 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25552 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25553 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25554 $as_echo_n "(cached) " >&6
25555 else
25556 cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h. */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h. */
25562 #include <langinfo.h>
25564 main ()
25566 char* cs = nl_langinfo(CODESET);
25568 return 0;
25570 _ACEOF
25571 rm -f conftest.$ac_objext conftest$ac_exeext
25572 if { (ac_try="$ac_link"
25573 case "(($ac_try" in
25574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25575 *) ac_try_echo=$ac_try;;
25576 esac
25577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25578 $as_echo "$ac_try_echo") >&5
25579 (eval "$ac_link") 2>conftest.er1
25580 ac_status=$?
25581 grep -v '^ *+' conftest.er1 >conftest.err
25582 rm -f conftest.er1
25583 cat conftest.err >&5
25584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); } && {
25586 test -z "$ac_c_werror_flag" ||
25587 test ! -s conftest.err
25588 } && test -s conftest$ac_exeext && {
25589 test "$cross_compiling" = yes ||
25590 $as_test_x conftest$ac_exeext
25591 }; then
25592 emacs_cv_langinfo_codeset=yes
25593 else
25594 $as_echo "$as_me: failed program was:" >&5
25595 sed 's/^/| /' conftest.$ac_ext >&5
25597 emacs_cv_langinfo_codeset=no
25600 rm -rf conftest.dSYM
25601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25602 conftest$ac_exeext conftest.$ac_ext
25605 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25606 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25607 if test $emacs_cv_langinfo_codeset = yes; then
25609 cat >>confdefs.h <<\_ACEOF
25610 #define HAVE_LANGINFO_CODESET 1
25611 _ACEOF
25615 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25616 $as_echo_n "checking for size_t... " >&6; }
25617 if test "${ac_cv_type_size_t+set}" = set; then
25618 $as_echo_n "(cached) " >&6
25619 else
25620 ac_cv_type_size_t=no
25621 cat >conftest.$ac_ext <<_ACEOF
25622 /* confdefs.h. */
25623 _ACEOF
25624 cat confdefs.h >>conftest.$ac_ext
25625 cat >>conftest.$ac_ext <<_ACEOF
25626 /* end confdefs.h. */
25627 $ac_includes_default
25629 main ()
25631 if (sizeof (size_t))
25632 return 0;
25634 return 0;
25636 _ACEOF
25637 rm -f conftest.$ac_objext
25638 if { (ac_try="$ac_compile"
25639 case "(($ac_try" in
25640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641 *) ac_try_echo=$ac_try;;
25642 esac
25643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25644 $as_echo "$ac_try_echo") >&5
25645 (eval "$ac_compile") 2>conftest.er1
25646 ac_status=$?
25647 grep -v '^ *+' conftest.er1 >conftest.err
25648 rm -f conftest.er1
25649 cat conftest.err >&5
25650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 (exit $ac_status); } && {
25652 test -z "$ac_c_werror_flag" ||
25653 test ! -s conftest.err
25654 } && test -s conftest.$ac_objext; then
25655 cat >conftest.$ac_ext <<_ACEOF
25656 /* confdefs.h. */
25657 _ACEOF
25658 cat confdefs.h >>conftest.$ac_ext
25659 cat >>conftest.$ac_ext <<_ACEOF
25660 /* end confdefs.h. */
25661 $ac_includes_default
25663 main ()
25665 if (sizeof ((size_t)))
25666 return 0;
25668 return 0;
25670 _ACEOF
25671 rm -f conftest.$ac_objext
25672 if { (ac_try="$ac_compile"
25673 case "(($ac_try" in
25674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675 *) ac_try_echo=$ac_try;;
25676 esac
25677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25678 $as_echo "$ac_try_echo") >&5
25679 (eval "$ac_compile") 2>conftest.er1
25680 ac_status=$?
25681 grep -v '^ *+' conftest.er1 >conftest.err
25682 rm -f conftest.er1
25683 cat conftest.err >&5
25684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25685 (exit $ac_status); } && {
25686 test -z "$ac_c_werror_flag" ||
25687 test ! -s conftest.err
25688 } && test -s conftest.$ac_objext; then
25690 else
25691 $as_echo "$as_me: failed program was:" >&5
25692 sed 's/^/| /' conftest.$ac_ext >&5
25694 ac_cv_type_size_t=yes
25697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25698 else
25699 $as_echo "$as_me: failed program was:" >&5
25700 sed 's/^/| /' conftest.$ac_ext >&5
25705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25707 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25708 $as_echo "$ac_cv_type_size_t" >&6; }
25709 if test $ac_cv_type_size_t = yes; then
25711 cat >>confdefs.h <<_ACEOF
25712 #define HAVE_SIZE_T 1
25713 _ACEOF
25719 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
25720 $as_echo_n "checking for mbstate_t... " >&6; }
25721 if test "${ac_cv_type_mbstate_t+set}" = set; then
25722 $as_echo_n "(cached) " >&6
25723 else
25724 cat >conftest.$ac_ext <<_ACEOF
25725 /* confdefs.h. */
25726 _ACEOF
25727 cat confdefs.h >>conftest.$ac_ext
25728 cat >>conftest.$ac_ext <<_ACEOF
25729 /* end confdefs.h. */
25730 $ac_includes_default
25731 # include <wchar.h>
25733 main ()
25735 mbstate_t x; return sizeof x;
25737 return 0;
25739 _ACEOF
25740 rm -f conftest.$ac_objext
25741 if { (ac_try="$ac_compile"
25742 case "(($ac_try" in
25743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25744 *) ac_try_echo=$ac_try;;
25745 esac
25746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25747 $as_echo "$ac_try_echo") >&5
25748 (eval "$ac_compile") 2>conftest.er1
25749 ac_status=$?
25750 grep -v '^ *+' conftest.er1 >conftest.err
25751 rm -f conftest.er1
25752 cat conftest.err >&5
25753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754 (exit $ac_status); } && {
25755 test -z "$ac_c_werror_flag" ||
25756 test ! -s conftest.err
25757 } && test -s conftest.$ac_objext; then
25758 ac_cv_type_mbstate_t=yes
25759 else
25760 $as_echo "$as_me: failed program was:" >&5
25761 sed 's/^/| /' conftest.$ac_ext >&5
25763 ac_cv_type_mbstate_t=no
25766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25768 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25769 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25770 if test $ac_cv_type_mbstate_t = yes; then
25772 cat >>confdefs.h <<\_ACEOF
25773 #define HAVE_MBSTATE_T 1
25774 _ACEOF
25776 else
25778 cat >>confdefs.h <<\_ACEOF
25779 #define mbstate_t int
25780 _ACEOF
25784 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25785 $as_echo_n "checking for C restrict keyword... " >&6; }
25786 if test "${emacs_cv_c_restrict+set}" = set; then
25787 $as_echo_n "(cached) " >&6
25788 else
25789 cat >conftest.$ac_ext <<_ACEOF
25790 /* confdefs.h. */
25791 _ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h. */
25795 void fred (int *restrict x);
25797 main ()
25801 return 0;
25803 _ACEOF
25804 rm -f conftest.$ac_objext
25805 if { (ac_try="$ac_compile"
25806 case "(($ac_try" in
25807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808 *) ac_try_echo=$ac_try;;
25809 esac
25810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25811 $as_echo "$ac_try_echo") >&5
25812 (eval "$ac_compile") 2>conftest.er1
25813 ac_status=$?
25814 grep -v '^ *+' conftest.er1 >conftest.err
25815 rm -f conftest.er1
25816 cat conftest.err >&5
25817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818 (exit $ac_status); } && {
25819 test -z "$ac_c_werror_flag" ||
25820 test ! -s conftest.err
25821 } && test -s conftest.$ac_objext; then
25822 emacs_cv_c_restrict=yes
25823 else
25824 $as_echo "$as_me: failed program was:" >&5
25825 sed 's/^/| /' conftest.$ac_ext >&5
25827 cat >conftest.$ac_ext <<_ACEOF
25828 /* confdefs.h. */
25829 _ACEOF
25830 cat confdefs.h >>conftest.$ac_ext
25831 cat >>conftest.$ac_ext <<_ACEOF
25832 /* end confdefs.h. */
25833 void fred (int *__restrict x);
25835 main ()
25839 return 0;
25841 _ACEOF
25842 rm -f conftest.$ac_objext
25843 if { (ac_try="$ac_compile"
25844 case "(($ac_try" in
25845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25846 *) ac_try_echo=$ac_try;;
25847 esac
25848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25849 $as_echo "$ac_try_echo") >&5
25850 (eval "$ac_compile") 2>conftest.er1
25851 ac_status=$?
25852 grep -v '^ *+' conftest.er1 >conftest.err
25853 rm -f conftest.er1
25854 cat conftest.err >&5
25855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); } && {
25857 test -z "$ac_c_werror_flag" ||
25858 test ! -s conftest.err
25859 } && test -s conftest.$ac_objext; then
25860 emacs_cv_c_restrict=__restrict
25861 else
25862 $as_echo "$as_me: failed program was:" >&5
25863 sed 's/^/| /' conftest.$ac_ext >&5
25865 emacs_cv_c_restrict=no
25868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25873 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25874 $as_echo "$emacs_cv_c_restrict" >&6; }
25875 case "$emacs_cv_c_restrict" in
25876 yes) emacs_restrict=restrict;;
25877 no) emacs_restrict="";;
25878 *) emacs_restrict="$emacs_cv_c_restrict";;
25879 esac
25880 if test "$emacs_restrict" != __restrict; then
25882 cat >>confdefs.h <<_ACEOF
25883 #define __restrict $emacs_restrict
25884 _ACEOF
25888 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25889 $as_echo_n "checking for C restricted array declarations... " >&6; }
25890 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25891 $as_echo_n "(cached) " >&6
25892 else
25893 cat >conftest.$ac_ext <<_ACEOF
25894 /* confdefs.h. */
25895 _ACEOF
25896 cat confdefs.h >>conftest.$ac_ext
25897 cat >>conftest.$ac_ext <<_ACEOF
25898 /* end confdefs.h. */
25899 void fred (int x[__restrict]);
25901 main ()
25905 return 0;
25907 _ACEOF
25908 rm -f conftest.$ac_objext
25909 if { (ac_try="$ac_compile"
25910 case "(($ac_try" in
25911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912 *) ac_try_echo=$ac_try;;
25913 esac
25914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25915 $as_echo "$ac_try_echo") >&5
25916 (eval "$ac_compile") 2>conftest.er1
25917 ac_status=$?
25918 grep -v '^ *+' conftest.er1 >conftest.err
25919 rm -f conftest.er1
25920 cat conftest.err >&5
25921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); } && {
25923 test -z "$ac_c_werror_flag" ||
25924 test ! -s conftest.err
25925 } && test -s conftest.$ac_objext; then
25926 emacs_cv_c_restrict_arr=yes
25927 else
25928 $as_echo "$as_me: failed program was:" >&5
25929 sed 's/^/| /' conftest.$ac_ext >&5
25931 emacs_cv_c_restrict_arr=no
25934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25936 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25937 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25938 if test "$emacs_cv_c_restrict_arr" = yes; then
25940 cat >>confdefs.h <<\_ACEOF
25941 #define __restrict_arr __restrict
25942 _ACEOF
25948 # Set up the CFLAGS for real compilation, so we can substitute it.
25949 CFLAGS="$REAL_CFLAGS"
25950 CPPFLAGS="$REAL_CPPFLAGS"
25952 #### Find out which version of Emacs this is.
25953 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25954 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25955 if test x"${version}" = x; then
25956 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25957 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25958 { (exit 1); exit 1; }; }
25960 if test x"${version}" != x"$PACKAGE_VERSION"; then
25961 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25962 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25965 ### Specify what sort of things we'll be editing into Makefile and config.h.
25966 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25997 ## Used in lwlib/Makefile.in.
26014 cat >>confdefs.h <<_ACEOF
26015 #define EMACS_CONFIGURATION "${canonical}"
26016 _ACEOF
26019 cat >>confdefs.h <<_ACEOF
26020 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
26021 _ACEOF
26024 cat >>confdefs.h <<_ACEOF
26025 #define config_machfile "${machfile}"
26026 _ACEOF
26029 cat >>confdefs.h <<_ACEOF
26030 #define config_opsysfile "${opsysfile}"
26031 _ACEOF
26034 cat >>confdefs.h <<_ACEOF
26035 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
26036 _ACEOF
26039 cat >>confdefs.h <<_ACEOF
26040 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
26041 _ACEOF
26044 cat >>confdefs.h <<_ACEOF
26045 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
26046 _ACEOF
26049 XMENU_OBJ=
26050 XOBJ=
26051 if test "${HAVE_X_WINDOWS}" = "yes" ; then
26053 cat >>confdefs.h <<\_ACEOF
26054 #define HAVE_X_WINDOWS 1
26055 _ACEOF
26057 XMENU_OBJ=xmenu.o
26058 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
26063 WIDGET_OBJ=
26064 MOTIF_LIBW=
26065 if test "${USE_X_TOOLKIT}" != "none" ; then
26066 WIDGET_OBJ=widget.o
26068 cat >>confdefs.h <<\_ACEOF
26069 #define USE_X_TOOLKIT 1
26070 _ACEOF
26072 if test "${USE_X_TOOLKIT}" = "LUCID"; then
26074 cat >>confdefs.h <<\_ACEOF
26075 #define USE_LUCID 1
26076 _ACEOF
26078 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
26080 cat >>confdefs.h <<\_ACEOF
26081 #define USE_MOTIF 1
26082 _ACEOF
26084 MOTIF_LIBW=-lXm
26085 case "$opsys" in
26086 gnu-linux)
26087 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
26088 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
26091 unixware)
26092 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
26093 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
26094 MOTIF_LIBW="MOTIF_LIBW -lXimp"
26097 aix4-2)
26098 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
26099 MOTIF_LIBW="$MOTIF_LIBW -li18n"
26101 esac
26102 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
26107 TOOLKIT_LIBW=
26108 case "$USE_X_TOOLKIT" in
26109 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
26110 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
26111 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
26112 esac
26115 if test "$USE_X_TOOLKIT" = "none"; then
26116 LIBXT_OTHER="\$(LIBXSM)"
26117 else
26118 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
26122 ## The X Menu stuff is present in the X10 distribution, but missing
26123 ## from X11. If we have X10, just use the installed library;
26124 ## otherwise, use our own copy.
26125 if test "${HAVE_X11}" = "yes" ; then
26127 cat >>confdefs.h <<\_ACEOF
26128 #define HAVE_X11 1
26129 _ACEOF
26132 if test "$USE_X_TOOLKIT" = "none"; then
26133 OLDXMENU="\${oldXMenudir}libXMenu11.a"
26134 else
26135 OLDXMENU="\${lwlibdir}liblw.a"
26137 LIBXMENU="\$(OLDXMENU)"
26138 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
26139 else
26140 OLDXMENU=
26141 LIBXMENU="-lXMenu"
26142 LIBX_OTHER=
26145 if test "$HAVE_GTK" = "yes"; then
26146 OLDXMENU=
26147 LIBXMENU=
26154 if test "${HAVE_MENUS}" = "yes" ; then
26156 cat >>confdefs.h <<\_ACEOF
26157 #define HAVE_MENUS 1
26158 _ACEOF
26161 if test "${GNU_MALLOC}" = "yes" ; then
26163 cat >>confdefs.h <<\_ACEOF
26164 #define GNU_MALLOC 1
26165 _ACEOF
26168 if test "${REL_ALLOC}" = "yes" ; then
26170 cat >>confdefs.h <<\_ACEOF
26171 #define REL_ALLOC 1
26172 _ACEOF
26177 if test "$opsys" = "cygwin"; then
26178 CYGWIN_OBJ="sheap.o"
26179 ## Cygwin differs because of its unexec().
26180 PRE_ALLOC_OBJ=
26181 POST_ALLOC_OBJ="lastfile.o vm-limit.o"
26182 else
26183 CYGWIN_OBJ=
26184 PRE_ALLOC_OBJ=lastfile.o
26185 POST_ALLOC_OBJ="\$(vmlimitobj)"
26195 #### Report on what we decided to do.
26196 #### Report GTK as a toolkit, even if it doesn't use Xt.
26197 #### It makes printing result more understandable as using GTK sets
26198 #### toolkit_scroll_bars to yes by default.
26199 if test "${HAVE_GTK}" = "yes"; then
26200 USE_X_TOOLKIT=GTK
26203 echo "
26204 Configured for \`${canonical}'.
26206 Where should the build process find the source code? ${srcdir}
26207 What operating system and machine description files should Emacs use?
26208 \`${opsysfile}' and \`${machfile}'
26209 What compiler should emacs be built with? ${CC} ${CFLAGS}
26210 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
26211 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
26212 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
26213 What window system should Emacs use? ${window_system}
26214 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
26216 if test -n "${x_includes}"; then
26217 echo " Where do we find X Windows header files? ${x_includes}"
26218 else
26219 echo " Where do we find X Windows header files? Standard dirs"
26221 if test -n "${x_libraries}"; then
26222 echo " Where do we find X Windows libraries? ${x_libraries}"
26223 else
26224 echo " Where do we find X Windows libraries? Standard dirs"
26227 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
26228 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
26229 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
26230 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
26231 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
26232 echo " Does Emacs use -lpng? ${HAVE_PNG}"
26233 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
26234 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
26235 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
26236 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
26237 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
26239 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
26240 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
26241 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
26242 echo " Does Emacs use -lxft? ${HAVE_XFT}"
26244 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
26245 echo
26247 if test $USE_XASSERTS = yes; then
26248 echo " Compiling with asserts turned on."
26249 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
26252 echo
26254 if test "$HAVE_NS" = "yes"; then
26255 echo
26256 echo "You must run \"make install\" in order to test the built application.
26257 The installed application will go to nextstep/Emacs.app and can be
26258 run or moved from there."
26259 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
26260 echo "The application will be fully self-contained."
26261 else
26262 echo "The lisp resources for the application will be installed under ${prefix}.
26263 You may need to run \"make install\" with sudo. The application will fail
26264 to run if these resources are not installed."
26266 echo
26269 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
26270 echo "D-Bus integration has been tested for GNU/Linux only."
26271 echo
26275 # Remove any trailing slashes in these variables.
26276 test "${prefix}" != NONE &&
26277 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
26278 test "${exec_prefix}" != NONE &&
26279 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
26281 # Now get this: Some word that is part of the ${srcdir} directory name
26282 # or the ${configuration} value might, just might, happen to be an
26283 # identifier like `sun4' or `i386' or something, and be predefined by
26284 # the C preprocessor to some helpful value like 1, or maybe the empty
26285 # string. Needless to say consequent macro substitutions are less
26286 # than conducive to the makefile finding the correct directory.
26287 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26288 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26289 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26291 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26292 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26293 ## from Makefile.c can correctly provide the arg `-traditional' to the
26294 ## C preprocessor.
26296 cat >conftest.$ac_ext <<_ACEOF
26297 /* confdefs.h. */
26298 _ACEOF
26299 cat confdefs.h >>conftest.$ac_ext
26300 cat >>conftest.$ac_ext <<_ACEOF
26301 /* end confdefs.h. */
26302 yes..yes
26303 _ACEOF
26304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26305 $EGREP "yes..yes" >/dev/null 2>&1; then
26306 CPP_NEED_TRADITIONAL=no
26307 else
26308 CPP_NEED_TRADITIONAL=yes
26310 rm -f conftest*
26313 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"
26315 ac_config_commands="$ac_config_commands default"
26317 cat >confcache <<\_ACEOF
26318 # This file is a shell script that caches the results of configure
26319 # tests run on this system so they can be shared between configure
26320 # scripts and configure runs, see configure's option --config-cache.
26321 # It is not useful on other systems. If it contains results you don't
26322 # want to keep, you may remove or edit it.
26324 # config.status only pays attention to the cache file if you give it
26325 # the --recheck option to rerun configure.
26327 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26328 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26329 # following values.
26331 _ACEOF
26333 # The following way of writing the cache mishandles newlines in values,
26334 # but we know of no workaround that is simple, portable, and efficient.
26335 # So, we kill variables containing newlines.
26336 # Ultrix sh set writes to stderr and can't be redirected directly,
26337 # and sets the high bit in the cache file unless we assign to the vars.
26339 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26340 eval ac_val=\$$ac_var
26341 case $ac_val in #(
26342 *${as_nl}*)
26343 case $ac_var in #(
26344 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
26345 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
26346 esac
26347 case $ac_var in #(
26348 _ | IFS | as_nl) ;; #(
26349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26350 *) $as_unset $ac_var ;;
26351 esac ;;
26352 esac
26353 done
26355 (set) 2>&1 |
26356 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26357 *${as_nl}ac_space=\ *)
26358 # `set' does not quote correctly, so add quotes (double-quote
26359 # substitution turns \\\\ into \\, and sed turns \\ into \).
26360 sed -n \
26361 "s/'/'\\\\''/g;
26362 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26363 ;; #(
26365 # `set' quotes correctly as required by POSIX, so do not add quotes.
26366 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26368 esac |
26369 sort
26371 sed '
26372 /^ac_cv_env_/b end
26373 t clear
26374 :clear
26375 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26376 t end
26377 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26378 :end' >>confcache
26379 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26380 if test -w "$cache_file"; then
26381 test "x$cache_file" != "x/dev/null" &&
26382 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
26383 $as_echo "$as_me: updating cache $cache_file" >&6;}
26384 cat confcache >$cache_file
26385 else
26386 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26387 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26390 rm -f confcache
26392 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26393 # Let make expand exec_prefix.
26394 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26396 DEFS=-DHAVE_CONFIG_H
26398 ac_libobjs=
26399 ac_ltlibobjs=
26400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26401 # 1. Remove the extension, and $U if already installed.
26402 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26403 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26404 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26405 # will be set to the directory where LIBOBJS objects are built.
26406 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26407 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26408 done
26409 LIBOBJS=$ac_libobjs
26411 LTLIBOBJS=$ac_ltlibobjs
26415 : ${CONFIG_STATUS=./config.status}
26416 ac_write_fail=0
26417 ac_clean_files_save=$ac_clean_files
26418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26419 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26420 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26421 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26422 #! $SHELL
26423 # Generated by $as_me.
26424 # Run this file to recreate the current configuration.
26425 # Compiler output produced by configure, useful for debugging
26426 # configure, is in config.log if it exists.
26428 debug=false
26429 ac_cs_recheck=false
26430 ac_cs_silent=false
26431 SHELL=\${CONFIG_SHELL-$SHELL}
26432 _ACEOF
26434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26435 ## --------------------- ##
26436 ## M4sh Initialization. ##
26437 ## --------------------- ##
26439 # Be more Bourne compatible
26440 DUALCASE=1; export DUALCASE # for MKS sh
26441 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26442 emulate sh
26443 NULLCMD=:
26444 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26445 # is contrary to our usage. Disable this feature.
26446 alias -g '${1+"$@"}'='"$@"'
26447 setopt NO_GLOB_SUBST
26448 else
26449 case `(set -o) 2>/dev/null` in
26450 *posix*) set -o posix ;;
26451 esac
26458 # PATH needs CR
26459 # Avoid depending upon Character Ranges.
26460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26463 as_cr_digits='0123456789'
26464 as_cr_alnum=$as_cr_Letters$as_cr_digits
26466 as_nl='
26468 export as_nl
26469 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26470 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26471 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26472 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26473 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26474 as_echo='printf %s\n'
26475 as_echo_n='printf %s'
26476 else
26477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26479 as_echo_n='/usr/ucb/echo -n'
26480 else
26481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26482 as_echo_n_body='eval
26483 arg=$1;
26484 case $arg in
26485 *"$as_nl"*)
26486 expr "X$arg" : "X\\(.*\\)$as_nl";
26487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26488 esac;
26489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26491 export as_echo_n_body
26492 as_echo_n='sh -c $as_echo_n_body as_echo'
26494 export as_echo_body
26495 as_echo='sh -c $as_echo_body as_echo'
26498 # The user is always right.
26499 if test "${PATH_SEPARATOR+set}" != set; then
26500 PATH_SEPARATOR=:
26501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26503 PATH_SEPARATOR=';'
26507 # Support unset when possible.
26508 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26509 as_unset=unset
26510 else
26511 as_unset=false
26515 # IFS
26516 # We need space, tab and new line, in precisely that order. Quoting is
26517 # there to prevent editors from complaining about space-tab.
26518 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26519 # splitting by setting IFS to empty value.)
26520 IFS=" "" $as_nl"
26522 # Find who we are. Look in the path if we contain no directory separator.
26523 case $0 in
26524 *[\\/]* ) as_myself=$0 ;;
26525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26526 for as_dir in $PATH
26528 IFS=$as_save_IFS
26529 test -z "$as_dir" && as_dir=.
26530 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26531 done
26532 IFS=$as_save_IFS
26535 esac
26536 # We did not find ourselves, most probably we were run as `sh COMMAND'
26537 # in which case we are not to be found in the path.
26538 if test "x$as_myself" = x; then
26539 as_myself=$0
26541 if test ! -f "$as_myself"; then
26542 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26543 { (exit 1); exit 1; }
26546 # Work around bugs in pre-3.0 UWIN ksh.
26547 for as_var in ENV MAIL MAILPATH
26548 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26549 done
26550 PS1='$ '
26551 PS2='> '
26552 PS4='+ '
26554 # NLS nuisances.
26555 LC_ALL=C
26556 export LC_ALL
26557 LANGUAGE=C
26558 export LANGUAGE
26560 # Required to use basename.
26561 if expr a : '\(a\)' >/dev/null 2>&1 &&
26562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26563 as_expr=expr
26564 else
26565 as_expr=false
26568 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26569 as_basename=basename
26570 else
26571 as_basename=false
26575 # Name of the executable.
26576 as_me=`$as_basename -- "$0" ||
26577 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26578 X"$0" : 'X\(//\)$' \| \
26579 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26580 $as_echo X/"$0" |
26581 sed '/^.*\/\([^/][^/]*\)\/*$/{
26582 s//\1/
26585 /^X\/\(\/\/\)$/{
26586 s//\1/
26589 /^X\/\(\/\).*/{
26590 s//\1/
26593 s/.*/./; q'`
26595 # CDPATH.
26596 $as_unset CDPATH
26600 as_lineno_1=$LINENO
26601 as_lineno_2=$LINENO
26602 test "x$as_lineno_1" != "x$as_lineno_2" &&
26603 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26605 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26606 # uniformly replaced by the line number. The first 'sed' inserts a
26607 # line-number line after each line using $LINENO; the second 'sed'
26608 # does the real work. The second script uses 'N' to pair each
26609 # line-number line with the line containing $LINENO, and appends
26610 # trailing '-' during substitution so that $LINENO is not a special
26611 # case at line end.
26612 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26613 # scripts with optimization help from Paolo Bonzini. Blame Lee
26614 # E. McMahon (1931-1989) for sed's syntax. :-)
26615 sed -n '
26617 /[$]LINENO/=
26618 ' <$as_myself |
26619 sed '
26620 s/[$]LINENO.*/&-/
26621 t lineno
26623 :lineno
26625 :loop
26626 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26627 t loop
26628 s/-\n.*//
26629 ' >$as_me.lineno &&
26630 chmod +x "$as_me.lineno" ||
26631 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26632 { (exit 1); exit 1; }; }
26634 # Don't try to exec as it changes $[0], causing all sort of problems
26635 # (the dirname of $[0] is not the place where we might find the
26636 # original and so on. Autoconf is especially sensitive to this).
26637 . "./$as_me.lineno"
26638 # Exit status is that of the last command.
26639 exit
26643 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26644 as_dirname=dirname
26645 else
26646 as_dirname=false
26649 ECHO_C= ECHO_N= ECHO_T=
26650 case `echo -n x` in
26651 -n*)
26652 case `echo 'x\c'` in
26653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26654 *) ECHO_C='\c';;
26655 esac;;
26657 ECHO_N='-n';;
26658 esac
26659 if expr a : '\(a\)' >/dev/null 2>&1 &&
26660 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26661 as_expr=expr
26662 else
26663 as_expr=false
26666 rm -f conf$$ conf$$.exe conf$$.file
26667 if test -d conf$$.dir; then
26668 rm -f conf$$.dir/conf$$.file
26669 else
26670 rm -f conf$$.dir
26671 mkdir conf$$.dir 2>/dev/null
26673 if (echo >conf$$.file) 2>/dev/null; then
26674 if ln -s conf$$.file conf$$ 2>/dev/null; then
26675 as_ln_s='ln -s'
26676 # ... but there are two gotchas:
26677 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26678 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26679 # In both cases, we have to default to `cp -p'.
26680 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26681 as_ln_s='cp -p'
26682 elif ln conf$$.file conf$$ 2>/dev/null; then
26683 as_ln_s=ln
26684 else
26685 as_ln_s='cp -p'
26687 else
26688 as_ln_s='cp -p'
26690 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26691 rmdir conf$$.dir 2>/dev/null
26693 if mkdir -p . 2>/dev/null; then
26694 as_mkdir_p=:
26695 else
26696 test -d ./-p && rmdir ./-p
26697 as_mkdir_p=false
26700 if test -x / >/dev/null 2>&1; then
26701 as_test_x='test -x'
26702 else
26703 if ls -dL / >/dev/null 2>&1; then
26704 as_ls_L_option=L
26705 else
26706 as_ls_L_option=
26708 as_test_x='
26709 eval sh -c '\''
26710 if test -d "$1"; then
26711 test -d "$1/.";
26712 else
26713 case $1 in
26714 -*)set "./$1";;
26715 esac;
26716 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26717 ???[sx]*):;;*)false;;esac;fi
26718 '\'' sh
26721 as_executable_p=$as_test_x
26723 # Sed expression to map a string onto a valid CPP name.
26724 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26726 # Sed expression to map a string onto a valid variable name.
26727 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26730 exec 6>&1
26732 # Save the log message, to keep $[0] and so on meaningful, and to
26733 # report actual input values of CONFIG_FILES etc. instead of their
26734 # values after options handling.
26735 ac_log="
26736 This file was extended by emacs $as_me 24.0.50, which was
26737 generated by GNU Autoconf 2.62. Invocation command line was
26739 CONFIG_FILES = $CONFIG_FILES
26740 CONFIG_HEADERS = $CONFIG_HEADERS
26741 CONFIG_LINKS = $CONFIG_LINKS
26742 CONFIG_COMMANDS = $CONFIG_COMMANDS
26743 $ $0 $@
26745 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26748 _ACEOF
26750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26751 # Files that config.status was made for.
26752 config_files="$ac_config_files"
26753 config_headers="$ac_config_headers"
26754 config_commands="$ac_config_commands"
26756 _ACEOF
26758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26759 ac_cs_usage="\
26760 \`$as_me' instantiates files from templates according to the
26761 current configuration.
26763 Usage: $0 [OPTIONS] [FILE]...
26765 -h, --help print this help, then exit
26766 -V, --version print version number and configuration settings, then exit
26767 -q, --quiet do not print progress messages
26768 -d, --debug don't remove temporary files
26769 --recheck update $as_me by reconfiguring in the same conditions
26770 --file=FILE[:TEMPLATE]
26771 instantiate the configuration file FILE
26772 --header=FILE[:TEMPLATE]
26773 instantiate the configuration header FILE
26775 Configuration files:
26776 $config_files
26778 Configuration headers:
26779 $config_headers
26781 Configuration commands:
26782 $config_commands
26784 Report bugs to <bug-autoconf@gnu.org>."
26786 _ACEOF
26787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26788 ac_cs_version="\\
26789 emacs config.status 24.0.50
26790 configured by $0, generated by GNU Autoconf 2.62,
26791 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26793 Copyright (C) 2008 Free Software Foundation, Inc.
26794 This config.status script is free software; the Free Software Foundation
26795 gives unlimited permission to copy, distribute and modify it."
26797 ac_pwd='$ac_pwd'
26798 srcdir='$srcdir'
26799 INSTALL='$INSTALL'
26800 test -n "\$AWK" || AWK=awk
26801 _ACEOF
26803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26804 # The default lists apply if the user does not specify any file.
26805 ac_need_defaults=:
26806 while test $# != 0
26808 case $1 in
26809 --*=*)
26810 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26812 ac_shift=:
26815 ac_option=$1
26816 ac_optarg=$2
26817 ac_shift=shift
26819 esac
26821 case $ac_option in
26822 # Handling of the options.
26823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26824 ac_cs_recheck=: ;;
26825 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26826 $as_echo "$ac_cs_version"; exit ;;
26827 --debug | --debu | --deb | --de | --d | -d )
26828 debug=: ;;
26829 --file | --fil | --fi | --f )
26830 $ac_shift
26831 case $ac_optarg in
26832 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26833 esac
26834 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
26835 ac_need_defaults=false;;
26836 --header | --heade | --head | --hea )
26837 $ac_shift
26838 case $ac_optarg in
26839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26840 esac
26841 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
26842 ac_need_defaults=false;;
26843 --he | --h)
26844 # Conflict between --help and --header
26845 { $as_echo "$as_me: error: ambiguous option: $1
26846 Try \`$0 --help' for more information." >&2
26847 { (exit 1); exit 1; }; };;
26848 --help | --hel | -h )
26849 $as_echo "$ac_cs_usage"; exit ;;
26850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26851 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26852 ac_cs_silent=: ;;
26854 # This is an error.
26855 -*) { $as_echo "$as_me: error: unrecognized option: $1
26856 Try \`$0 --help' for more information." >&2
26857 { (exit 1); exit 1; }; } ;;
26859 *) ac_config_targets="$ac_config_targets $1"
26860 ac_need_defaults=false ;;
26862 esac
26863 shift
26864 done
26866 ac_configure_extra_args=
26868 if $ac_cs_silent; then
26869 exec 6>/dev/null
26870 ac_configure_extra_args="$ac_configure_extra_args --silent"
26873 _ACEOF
26874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26875 if \$ac_cs_recheck; then
26876 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26877 shift
26878 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26879 CONFIG_SHELL='$SHELL'
26880 export CONFIG_SHELL
26881 exec "\$@"
26884 _ACEOF
26885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26886 exec 5>>config.log
26888 echo
26889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26890 ## Running $as_me. ##
26891 _ASBOX
26892 $as_echo "$ac_log"
26893 } >&5
26895 _ACEOF
26896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26898 # INIT-COMMANDS
26900 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
26902 _ACEOF
26904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26906 # Handling of arguments.
26907 for ac_config_target in $ac_config_targets
26909 case $ac_config_target in
26910 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26911 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26912 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26913 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26914 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
26915 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
26916 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
26917 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
26918 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26919 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26920 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26921 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26922 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26924 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26925 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26926 { (exit 1); exit 1; }; };;
26927 esac
26928 done
26931 # If the user did not use the arguments to specify the items to instantiate,
26932 # then the envvar interface is used. Set only those that are not.
26933 # We use the long form for the default assignment because of an extremely
26934 # bizarre bug on SunOS 4.1.3.
26935 if $ac_need_defaults; then
26936 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26937 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26938 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26941 # Have a temporary directory for convenience. Make it in the build tree
26942 # simply because there is no reason against having it here, and in addition,
26943 # creating and moving files from /tmp can sometimes cause problems.
26944 # Hook for its removal unless debugging.
26945 # Note that there is a small window in which the directory will not be cleaned:
26946 # after its creation but before its name has been assigned to `$tmp'.
26947 $debug ||
26949 tmp=
26950 trap 'exit_status=$?
26951 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26953 trap '{ (exit 1); exit 1; }' 1 2 13 15
26955 # Create a (secure) tmp directory for tmp files.
26958 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26959 test -n "$tmp" && test -d "$tmp"
26960 } ||
26962 tmp=./conf$$-$RANDOM
26963 (umask 077 && mkdir "$tmp")
26964 } ||
26966 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26967 { (exit 1); exit 1; }
26970 # Set up the scripts for CONFIG_FILES section.
26971 # No need to generate them if there are no CONFIG_FILES.
26972 # This happens for instance with `./config.status config.h'.
26973 if test -n "$CONFIG_FILES"; then
26976 ac_cr=' '
26977 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26978 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26979 ac_cs_awk_cr='\\r'
26980 else
26981 ac_cs_awk_cr=$ac_cr
26984 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26985 _ACEOF
26989 echo "cat >conf$$subs.awk <<_ACEOF" &&
26990 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26991 echo "_ACEOF"
26992 } >conf$$subs.sh ||
26993 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26994 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26995 { (exit 1); exit 1; }; }
26996 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26997 ac_delim='%!_!# '
26998 for ac_last_try in false false false false false :; do
26999 . ./conf$$subs.sh ||
27000 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27001 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27002 { (exit 1); exit 1; }; }
27004 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
27005 break
27006 elif $ac_last_try; then
27007 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27008 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27009 { (exit 1); exit 1; }; }
27010 else
27011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27013 done
27014 rm -f conf$$subs.sh
27016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27017 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27018 _ACEOF
27019 sed -n '
27021 s/^/S["/; s/!.*/"]=/
27024 s/^[^!]*!//
27025 :repl
27026 t repl
27027 s/'"$ac_delim"'$//
27028 t delim
27031 s/\(.\{148\}\).*/\1/
27032 t more1
27033 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27036 b repl
27037 :more1
27038 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27041 s/.\{148\}//
27042 t nl
27043 :delim
27045 s/\(.\{148\}\).*/\1/
27046 t more2
27047 s/["\\]/\\&/g; s/^/"/; s/$/"/
27050 :more2
27051 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27054 s/.\{148\}//
27055 t delim
27056 ' <conf$$subs.awk | sed '
27057 /^[^""]/{
27059 s/\n//
27061 ' >>$CONFIG_STATUS || ac_write_fail=1
27062 rm -f conf$$subs.awk
27063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27064 _ACAWK
27065 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27066 for (key in S) S_is_set[key] = 1
27067 FS = "\a"
27071 line = $ 0
27072 nfields = split(line, field, "@")
27073 substed = 0
27074 len = length(field[1])
27075 for (i = 2; i < nfields; i++) {
27076 key = field[i]
27077 keylen = length(key)
27078 if (S_is_set[key]) {
27079 value = S[key]
27080 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27081 len += length(value) + length(field[++i])
27082 substed = 1
27083 } else
27084 len += 1 + keylen
27087 print line
27090 _ACAWK
27091 _ACEOF
27092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27093 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27094 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27095 else
27097 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27098 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27099 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27100 { (exit 1); exit 1; }; }
27101 _ACEOF
27103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27105 # trailing colons and then remove the whole line if VPATH becomes empty
27106 # (actually we leave an empty line to preserve line numbers).
27107 if test "x$srcdir" = x.; then
27108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27109 s/:*\$(srcdir):*/:/
27110 s/:*\${srcdir}:*/:/
27111 s/:*@srcdir@:*/:/
27112 s/^\([^=]*=[ ]*\):*/\1/
27113 s/:*$//
27114 s/^[^=]*=[ ]*$//
27118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27119 fi # test -n "$CONFIG_FILES"
27121 # Set up the scripts for CONFIG_HEADERS section.
27122 # No need to generate them if there are no CONFIG_HEADERS.
27123 # This happens for instance with `./config.status Makefile'.
27124 if test -n "$CONFIG_HEADERS"; then
27125 cat >"$tmp/defines.awk" <<\_ACAWK ||
27126 BEGIN {
27127 _ACEOF
27129 # Transform confdefs.h into an awk script `defines.awk', embedded as
27130 # here-document in config.status, that substitutes the proper values into
27131 # config.h.in to produce config.h.
27133 # Create a delimiter string that does not exist in confdefs.h, to ease
27134 # handling of long lines.
27135 ac_delim='%!_!# '
27136 for ac_last_try in false false :; do
27137 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27138 if test -z "$ac_t"; then
27139 break
27140 elif $ac_last_try; then
27141 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27142 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27143 { (exit 1); exit 1; }; }
27144 else
27145 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27147 done
27149 # For the awk script, D is an array of macro values keyed by name,
27150 # likewise P contains macro parameters if any. Preserve backslash
27151 # newline sequences.
27153 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27154 sed -n '
27155 s/.\{148\}/&'"$ac_delim"'/g
27156 t rset
27157 :rset
27158 s/^[ ]*#[ ]*define[ ][ ]*/ /
27159 t def
27161 :def
27162 s/\\$//
27163 t bsnl
27164 s/["\\]/\\&/g
27165 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27166 D["\1"]=" \3"/p
27167 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27169 :bsnl
27170 s/["\\]/\\&/g
27171 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27172 D["\1"]=" \3\\\\\\n"\\/p
27173 t cont
27174 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27175 t cont
27177 :cont
27179 s/.\{148\}/&'"$ac_delim"'/g
27180 t clear
27181 :clear
27182 s/\\$//
27183 t bsnlc
27184 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27186 :bsnlc
27187 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27188 b cont
27189 ' <confdefs.h | sed '
27190 s/'"$ac_delim"'/"\\\
27191 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27194 for (key in D) D_is_set[key] = 1
27195 FS = "\a"
27197 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27198 line = \$ 0
27199 split(line, arg, " ")
27200 if (arg[1] == "#") {
27201 defundef = arg[2]
27202 mac1 = arg[3]
27203 } else {
27204 defundef = substr(arg[1], 2)
27205 mac1 = arg[2]
27207 split(mac1, mac2, "(") #)
27208 macro = mac2[1]
27209 if (D_is_set[macro]) {
27210 # Preserve the white space surrounding the "#".
27211 prefix = substr(line, 1, index(line, defundef) - 1)
27212 print prefix "define", macro P[macro] D[macro]
27213 next
27214 } else {
27215 # Replace #undef with comments. This is necessary, for example,
27216 # in the case of _POSIX_SOURCE, which is predefined and required
27217 # on some systems where configure will not decide to define it.
27218 if (defundef == "undef") {
27219 print "/*", line, "*/"
27220 next
27224 { print }
27225 _ACAWK
27226 _ACEOF
27227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27228 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27229 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27230 { (exit 1); exit 1; }; }
27231 fi # test -n "$CONFIG_HEADERS"
27234 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27235 shift
27236 for ac_tag
27238 case $ac_tag in
27239 :[FHLC]) ac_mode=$ac_tag; continue;;
27240 esac
27241 case $ac_mode$ac_tag in
27242 :[FHL]*:*);;
27243 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27244 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27245 { (exit 1); exit 1; }; };;
27246 :[FH]-) ac_tag=-:-;;
27247 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27248 esac
27249 ac_save_IFS=$IFS
27250 IFS=:
27251 set x $ac_tag
27252 IFS=$ac_save_IFS
27253 shift
27254 ac_file=$1
27255 shift
27257 case $ac_mode in
27258 :L) ac_source=$1;;
27259 :[FH])
27260 ac_file_inputs=
27261 for ac_f
27263 case $ac_f in
27264 -) ac_f="$tmp/stdin";;
27265 *) # Look for the file first in the build tree, then in the source tree
27266 # (if the path is not absolute). The absolute path cannot be DOS-style,
27267 # because $ac_f cannot contain `:'.
27268 test -f "$ac_f" ||
27269 case $ac_f in
27270 [\\/$]*) false;;
27271 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27272 esac ||
27273 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27274 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27275 { (exit 1); exit 1; }; };;
27276 esac
27277 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27278 ac_file_inputs="$ac_file_inputs '$ac_f'"
27279 done
27281 # Let's still pretend it is `configure' which instantiates (i.e., don't
27282 # use $as_me), people would be surprised to read:
27283 # /* config.h. Generated by config.status. */
27284 configure_input='Generated from '`
27285 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27286 `' by configure.'
27287 if test x"$ac_file" != x-; then
27288 configure_input="$ac_file. $configure_input"
27289 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
27290 $as_echo "$as_me: creating $ac_file" >&6;}
27292 # Neutralize special characters interpreted by sed in replacement strings.
27293 case $configure_input in #(
27294 *\&* | *\|* | *\\* )
27295 ac_sed_conf_input=`$as_echo "$configure_input" |
27296 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27297 *) ac_sed_conf_input=$configure_input;;
27298 esac
27300 case $ac_tag in
27301 *:-:* | *:-) cat >"$tmp/stdin" \
27302 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27303 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27304 { (exit 1); exit 1; }; } ;;
27305 esac
27307 esac
27309 ac_dir=`$as_dirname -- "$ac_file" ||
27310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27311 X"$ac_file" : 'X\(//\)[^/]' \| \
27312 X"$ac_file" : 'X\(//\)$' \| \
27313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27314 $as_echo X"$ac_file" |
27315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27316 s//\1/
27319 /^X\(\/\/\)[^/].*/{
27320 s//\1/
27323 /^X\(\/\/\)$/{
27324 s//\1/
27327 /^X\(\/\).*/{
27328 s//\1/
27331 s/.*/./; q'`
27332 { as_dir="$ac_dir"
27333 case $as_dir in #(
27334 -*) as_dir=./$as_dir;;
27335 esac
27336 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27337 as_dirs=
27338 while :; do
27339 case $as_dir in #(
27340 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27341 *) as_qdir=$as_dir;;
27342 esac
27343 as_dirs="'$as_qdir' $as_dirs"
27344 as_dir=`$as_dirname -- "$as_dir" ||
27345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27346 X"$as_dir" : 'X\(//\)[^/]' \| \
27347 X"$as_dir" : 'X\(//\)$' \| \
27348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27349 $as_echo X"$as_dir" |
27350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27351 s//\1/
27354 /^X\(\/\/\)[^/].*/{
27355 s//\1/
27358 /^X\(\/\/\)$/{
27359 s//\1/
27362 /^X\(\/\).*/{
27363 s//\1/
27366 s/.*/./; q'`
27367 test -d "$as_dir" && break
27368 done
27369 test -z "$as_dirs" || eval "mkdir $as_dirs"
27370 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27371 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27372 { (exit 1); exit 1; }; }; }
27373 ac_builddir=.
27375 case "$ac_dir" in
27376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27378 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27379 # A ".." for each directory in $ac_dir_suffix.
27380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27381 case $ac_top_builddir_sub in
27382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27384 esac ;;
27385 esac
27386 ac_abs_top_builddir=$ac_pwd
27387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27388 # for backward compatibility:
27389 ac_top_builddir=$ac_top_build_prefix
27391 case $srcdir in
27392 .) # We are building in place.
27393 ac_srcdir=.
27394 ac_top_srcdir=$ac_top_builddir_sub
27395 ac_abs_top_srcdir=$ac_pwd ;;
27396 [\\/]* | ?:[\\/]* ) # Absolute name.
27397 ac_srcdir=$srcdir$ac_dir_suffix;
27398 ac_top_srcdir=$srcdir
27399 ac_abs_top_srcdir=$srcdir ;;
27400 *) # Relative name.
27401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27402 ac_top_srcdir=$ac_top_build_prefix$srcdir
27403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27404 esac
27405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27408 case $ac_mode in
27411 # CONFIG_FILE
27414 case $INSTALL in
27415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27416 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27417 esac
27418 _ACEOF
27420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27421 # If the template does not know about datarootdir, expand it.
27422 # FIXME: This hack should be removed a few years after 2.60.
27423 ac_datarootdir_hack=; ac_datarootdir_seen=
27425 ac_sed_dataroot='
27426 /datarootdir/ {
27430 /@datadir@/p
27431 /@docdir@/p
27432 /@infodir@/p
27433 /@localedir@/p
27434 /@mandir@/p
27436 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27437 *datarootdir*) ac_datarootdir_seen=yes;;
27438 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27439 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27440 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27441 _ACEOF
27442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27443 ac_datarootdir_hack='
27444 s&@datadir@&$datadir&g
27445 s&@docdir@&$docdir&g
27446 s&@infodir@&$infodir&g
27447 s&@localedir@&$localedir&g
27448 s&@mandir@&$mandir&g
27449 s&\\\${datarootdir}&$datarootdir&g' ;;
27450 esac
27451 _ACEOF
27453 # Neutralize VPATH when `$srcdir' = `.'.
27454 # Shell code in configure.ac might set extrasub.
27455 # FIXME: do we really want to maintain this feature?
27456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27457 ac_sed_extra="$ac_vpsub
27458 $extrasub
27459 _ACEOF
27460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27462 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27463 s|@configure_input@|$ac_sed_conf_input|;t t
27464 s&@top_builddir@&$ac_top_builddir_sub&;t t
27465 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27466 s&@srcdir@&$ac_srcdir&;t t
27467 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27468 s&@top_srcdir@&$ac_top_srcdir&;t t
27469 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27470 s&@builddir@&$ac_builddir&;t t
27471 s&@abs_builddir@&$ac_abs_builddir&;t t
27472 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27473 s&@INSTALL@&$ac_INSTALL&;t t
27474 $ac_datarootdir_hack
27476 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27477 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27478 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27479 { (exit 1); exit 1; }; }
27481 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27482 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27483 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27484 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27485 which seems to be undefined. Please make sure it is defined." >&5
27486 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27487 which seems to be undefined. Please make sure it is defined." >&2;}
27489 rm -f "$tmp/stdin"
27490 case $ac_file in
27491 -) cat "$tmp/out" && rm -f "$tmp/out";;
27492 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27493 esac \
27494 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27495 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27496 { (exit 1); exit 1; }; }
27500 # CONFIG_HEADER
27502 if test x"$ac_file" != x-; then
27504 $as_echo "/* $configure_input */" \
27505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27506 } >"$tmp/config.h" \
27507 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27508 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27509 { (exit 1); exit 1; }; }
27510 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27511 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27512 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27513 else
27514 rm -f "$ac_file"
27515 mv "$tmp/config.h" "$ac_file" \
27516 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27517 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27518 { (exit 1); exit 1; }; }
27520 else
27521 $as_echo "/* $configure_input */" \
27522 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27523 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27524 $as_echo "$as_me: error: could not create -" >&2;}
27525 { (exit 1); exit 1; }; }
27529 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
27530 $as_echo "$as_me: executing $ac_file commands" >&6;}
27532 esac
27535 case $ac_file$ac_mode in
27536 "default":C)
27538 ### Make the necessary directories, if they don't exist.
27539 for dir in etc lisp ; do
27540 test -d ${dir} || mkdir ${dir}
27541 done
27543 # Build src/Makefile from ${srcdir}/src/Makefile.c
27544 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27545 # This must be done after src/config.h is built, since we rely on that file.
27547 echo creating src/epaths.h
27548 ${MAKE-make} epaths-force
27550 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27551 # `..' to `. .' unless invoked with -traditional
27553 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27554 CPPFLAGS="$CPPFLAGS -traditional"
27557 echo creating lib-src/Makefile
27558 ( cd lib-src
27559 rm -f junk.c junk1.c junk2.c
27560 sed -e '/start of cpp stuff/q' \
27561 < Makefile.c > junk1.c
27562 sed -e '1,/start of cpp stuff/d'\
27563 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27564 < Makefile.c > junk.c
27565 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27566 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27567 cat junk1.c junk2.c > Makefile.new
27568 rm -f junk.c junk1.c junk2.c
27569 chmod 444 Makefile.new
27570 mv -f Makefile.new Makefile
27573 echo creating src/Makefile
27574 ( cd src
27575 rm -f junk.c junk1.c junk2.c
27576 sed -e '/start of cpp stuff/q' \
27577 < Makefile.c > junk1.c
27578 sed -e '1,/start of cpp stuff/d'\
27579 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27580 < Makefile.c > junk.c
27581 $CPP -P $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27582 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27583 cat junk1.c junk2.c > Makefile.new
27584 rm -f junk.c junk1.c junk2.c
27585 chmod 444 Makefile.new
27586 mv -f Makefile.new Makefile
27589 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27590 echo creating src/.gdbinit
27591 echo source $srcdir/src/.gdbinit > src/.gdbinit
27596 esac
27597 done # for ac_tag
27600 { (exit 0); exit 0; }
27601 _ACEOF
27602 chmod +x $CONFIG_STATUS
27603 ac_clean_files=$ac_clean_files_save
27605 test $ac_write_fail = 0 ||
27606 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27607 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27608 { (exit 1); exit 1; }; }
27611 # configure is writing to config.log, and then calls config.status.
27612 # config.status does its own redirection, appending to config.log.
27613 # Unfortunately, on DOS this fails, as config.log is still kept open
27614 # by configure, so config.status won't be able to write to it; its
27615 # output is simply discarded. So we exec the FD to /dev/null,
27616 # effectively closing config.log, so it can be properly (re)opened and
27617 # appended to by config.status. When coming back to configure, we
27618 # need to make the FD available again.
27619 if test "$no_create" != yes; then
27620 ac_cs_success=:
27621 ac_config_status_args=
27622 test "$silent" = yes &&
27623 ac_config_status_args="$ac_config_status_args --quiet"
27624 exec 5>/dev/null
27625 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27626 exec 5>>config.log
27627 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27628 # would make configure fail if this is the last instruction.
27629 $ac_cs_success || { (exit 1); exit 1; }
27631 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27632 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
27633 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}