* menu.c (find_and_return_menu_selection) Add cast.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
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
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME='emacs'
574 PACKAGE_TARNAME='emacs'
575 PACKAGE_VERSION='23.0.60'
576 PACKAGE_STRING='emacs 23.0.60'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_config_libobj_dir=src
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 FREETYPE_CFLAGS
700 FREETYPE_LIBS
701 FONTCONFIG_CFLAGS
702 FONTCONFIG_LIBS
703 LIBOTF_CFLAGS
704 LIBOTF_LIBS
705 M17N_FLT_CFLAGS
706 M17N_FLT_LIBS
707 ALLOCA
708 liblockfile
709 LIBOBJS
710 NEED_SETGID
711 KMEM_GROUP
712 GETLOADAVG_LIBS
713 GETOPT_H
714 GETOPTOBJS
715 version
716 configuration
717 canonical
718 srcdir
719 lispdir
720 locallisppath
721 lisppath
722 x_default_search_path
723 etcdir
724 archlibdir
725 bitmapdir
726 gamedir
727 gameuser
728 c_switch_system
729 c_switch_machine
730 LD_SWITCH_X_SITE
731 LD_SWITCH_X_SITE_AUX
732 C_SWITCH_X_SITE
733 X_TOOLKIT_TYPE
734 machfile
735 opsysfile
736 ns_appdir
737 ns_appbindir
738 ns_appresdir
739 ns_appsrc
740 GNUSTEP_MAKEFILES
741 GNUSTEP_SYSTEM_HEADERS
742 GNUSTEP_SYSTEM_LIBRARIES
743 GNU_OBJC_CFLAGS
744 LIB_SRC_EXTRA_INSTALLABLES
745 LTLIBOBJS'
746 ac_subst_files=''
747 ac_precious_vars='build_alias
748 host_alias
749 target_alias
750 CC
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
755 CPP
756 XMKMF'
757
758
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
764 cache_file=/dev/null
765 exec_prefix=NONE
766 no_create=
767 no_recursion=
768 prefix=NONE
769 program_prefix=NONE
770 program_suffix=NONE
771 program_transform_name=s,x,x,
772 silent=
773 site=
774 srcdir=
775 verbose=
776 x_includes=NONE
777 x_libraries=NONE
778
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir='${exec_prefix}/bin'
786 sbindir='${exec_prefix}/sbin'
787 libexecdir='${exec_prefix}/libexec'
788 datarootdir='${prefix}/share'
789 datadir='${datarootdir}'
790 sysconfdir='${prefix}/etc'
791 sharedstatedir='${prefix}/com'
792 localstatedir='${prefix}/var'
793 includedir='${prefix}/include'
794 oldincludedir='/usr/include'
795 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir='${datarootdir}/info'
797 htmldir='${docdir}'
798 dvidir='${docdir}'
799 pdfdir='${docdir}'
800 psdir='${docdir}'
801 libdir='${exec_prefix}/lib'
802 localedir='${datarootdir}/locale'
803 mandir='${datarootdir}/man'
804
805 ac_prev=
806 ac_dashdash=
807 for ac_option
808 do
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\$ac_option
812 ac_prev=
813 continue
814 fi
815
816 case $ac_option in
817 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
818 *) ac_optarg=yes ;;
819 esac
820
821 # Accept the important Cygnus configure options, so we can diagnose typos.
822
823 case $ac_dashdash$ac_option in
824 --)
825 ac_dashdash=yes ;;
826
827 -bindir | --bindir | --bindi | --bind | --bin | --bi)
828 ac_prev=bindir ;;
829 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
830 bindir=$ac_optarg ;;
831
832 -build | --build | --buil | --bui | --bu)
833 ac_prev=build_alias ;;
834 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
835 build_alias=$ac_optarg ;;
836
837 -cache-file | --cache-file | --cache-fil | --cache-fi \
838 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
839 ac_prev=cache_file ;;
840 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
841 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
842 cache_file=$ac_optarg ;;
843
844 --config-cache | -C)
845 cache_file=config.cache ;;
846
847 -datadir | --datadir | --datadi | --datad)
848 ac_prev=datadir ;;
849 -datadir=* | --datadir=* | --datadi=* | --datad=*)
850 datadir=$ac_optarg ;;
851
852 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
853 | --dataroo | --dataro | --datar)
854 ac_prev=datarootdir ;;
855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
857 datarootdir=$ac_optarg ;;
858
859 -disable-* | --disable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=no ;;
867
868 -docdir | --docdir | --docdi | --doc | --do)
869 ac_prev=docdir ;;
870 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
871 docdir=$ac_optarg ;;
872
873 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
874 ac_prev=dvidir ;;
875 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
876 dvidir=$ac_optarg ;;
877
878 -enable-* | --enable-*)
879 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_$ac_feature=\$ac_optarg ;;
886
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
895
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
898 with_gas=yes ;;
899
900 -help | --help | --hel | --he | -h)
901 ac_init_help=long ;;
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
906
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
911
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
913 ac_prev=htmldir ;;
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
915 | --ht=*)
916 htmldir=$ac_optarg ;;
917
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
924
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
926 ac_prev=infodir ;;
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
929
930 -libdir | --libdir | --libdi | --libd)
931 ac_prev=libdir ;;
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
933 libdir=$ac_optarg ;;
934
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
941
942 -localedir | --localedir | --localedi | --localed | --locale)
943 ac_prev=localedir ;;
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
946
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
953
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
955 ac_prev=mandir ;;
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
957 mandir=$ac_optarg ;;
958
959 -nfp | --nfp | --nf)
960 # Obsolete; use --without-fp.
961 with_fp=no ;;
962
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
965 no_create=yes ;;
966
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
969 no_recursion=yes ;;
970
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
979
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
981 ac_prev=prefix ;;
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
983 prefix=$ac_optarg ;;
984
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
991
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
998
999 -program-transform-name | --program-transform-name \
1000 | --program-transform-nam | --program-transform-na \
1001 | --program-transform-n | --program-transform- \
1002 | --program-transform | --program-transfor \
1003 | --program-transfo | --program-transf \
1004 | --program-trans | --program-tran \
1005 | --progr-tra | --program-tr | --program-t)
1006 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1015
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1017 ac_prev=pdfdir ;;
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1020
1021 -psdir | --psdir | --psdi | --psd | --ps)
1022 ac_prev=psdir ;;
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1024 psdir=$ac_optarg ;;
1025
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1028 silent=yes ;;
1029
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1031 ac_prev=sbindir ;;
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1033 | --sbi=* | --sb=*)
1034 sbindir=$ac_optarg ;;
1035
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1039 | --sha | --sh)
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1044 | --sha=* | --sh=*)
1045 sharedstatedir=$ac_optarg ;;
1046
1047 -site | --site | --sit)
1048 ac_prev=site ;;
1049 -site=* | --site=* | --sit=*)
1050 site=$ac_optarg ;;
1051
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1053 ac_prev=srcdir ;;
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1056
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1063
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1068
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1070 verbose=yes ;;
1071
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1074
1075 -with-* | --with-*)
1076 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_$ac_package=\$ac_optarg ;;
1083
1084 -without-* | --without-*)
1085 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088 { echo "$as_me: error: invalid package name: $ac_package" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1091 eval with_$ac_package=no ;;
1092
1093 --x)
1094 # Obsolete; use --with-x.
1095 with_x=yes ;;
1096
1097 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1098 | --x-incl | --x-inc | --x-in | --x-i)
1099 ac_prev=x_includes ;;
1100 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1101 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1102 x_includes=$ac_optarg ;;
1103
1104 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1105 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1106 ac_prev=x_libraries ;;
1107 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1108 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1109 x_libraries=$ac_optarg ;;
1110
1111 -*) { echo "$as_me: error: unrecognized option: $ac_option
1112 Try \`$0 --help' for more information." >&2
1113 { (exit 1); exit 1; }; }
1114 ;;
1115
1116 *=*)
1117 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1121 { (exit 1); exit 1; }; }
1122 eval $ac_envvar=\$ac_optarg
1123 export $ac_envvar ;;
1124
1125 *)
1126 # FIXME: should be removed in autoconf 3.0.
1127 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1129 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1131 ;;
1132
1133 esac
1134 done
1135
1136 if test -n "$ac_prev"; then
1137 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1138 { echo "$as_me: error: missing argument to $ac_option" >&2
1139 { (exit 1); exit 1; }; }
1140 fi
1141
1142 # Be sure to have absolute directory names.
1143 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1147 do
1148 eval ac_val=\$$ac_var
1149 case $ac_val in
1150 [\\/$]* | ?:[\\/]* ) continue;;
1151 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1152 esac
1153 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1154 { (exit 1); exit 1; }; }
1155 done
1156
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1160 build=$build_alias
1161 host=$host_alias
1162 target=$target_alias
1163
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x; then
1166 if test "x$build_alias" = x; then
1167 cross_compiling=maybe
1168 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
1170 elif test "x$build_alias" != "x$host_alias"; then
1171 cross_compiling=yes
1172 fi
1173 fi
1174
1175 ac_tool_prefix=
1176 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1177
1178 test "$silent" = yes && exec 6>/dev/null
1179
1180
1181 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di=`ls -di .` &&
1183 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1184 { echo "$as_me: error: Working directory cannot be determined" >&2
1185 { (exit 1); exit 1; }; }
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 { echo "$as_me: error: pwd does not report name of working directory" >&2
1188 { (exit 1); exit 1; }; }
1189
1190
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir=`$as_dirname -- "$0" ||
1196 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$0" : 'X\(//\)[^/]' \| \
1198 X"$0" : 'X\(//\)$' \| \
1199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1200 echo X"$0" |
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)[^/].*/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\/\)$/{
1210 s//\1/
1211 q
1212 }
1213 /^X\(\/\).*/{
1214 s//\1/
1215 q
1216 }
1217 s/.*/./; q'`
1218 srcdir=$ac_confdir
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1220 srcdir=..
1221 fi
1222 else
1223 ac_srcdir_defaulted=no
1224 fi
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1227 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1228 { (exit 1); exit 1; }; }
1229 fi
1230 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1231 ac_abs_confdir=`(
1232 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1233 { (exit 1); exit 1; }; }
1234 pwd)`
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 srcdir=.
1238 fi
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1242 case $srcdir in
1243 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1244 esac
1245 for ac_var in $ac_precious_vars; do
1246 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_${ac_var}_value=\$${ac_var}
1248 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1250 done
1251
1252 #
1253 # Report the --help message.
1254 #
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1258 cat <<_ACEOF
1259 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1260
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1262
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1265
1266 Defaults for the options are specified in brackets.
1267
1268 Configuration:
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1278
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 [PREFIX]
1284
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1289
1290 For better control, use the options below.
1291
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1312 _ACEOF
1313
1314 cat <<\_ACEOF
1315
1316 Program names:
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1320
1321 X features:
1322 --x-includes=DIR X include files are in DIR
1323 --x-libraries=DIR X library files are in DIR
1324
1325 System types:
1326 --build=BUILD configure for building on BUILD [guessed]
1327 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1328 _ACEOF
1329 fi
1330
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1334 esac
1335 cat <<\_ACEOF
1336
1337 Optional Features:
1338 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1339 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1340 --enable-cocoa-experimental-ctrl-g
1341 enable experimental improved ctrl-g recognition
1342 --disable-ns-self-contained
1343 disable self contained build under NeXTstep
1344 --enable-asserts compile code with asserts enabled
1345 --enable-maintainer-mode
1346 enable make rules and dependencies not useful (and
1347 sometimes confusing) to the casual installer
1348 --enable-locallisppath=PATH
1349 directories Emacs should search for lisp files
1350 specific to this site
1351 --disable-largefile omit support for large files
1352
1353 Optional Packages:
1354 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1355 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1356 --without-pop don't support POP mail retrieval with movemail
1357 --with-kerberos support Kerberos-authenticated POP
1358 --with-kerberos5 support Kerberos version 5 authenticated POP
1359 --with-hesiod support Hesiod to get the POP server host
1360 --without-sound don't compile with sound support
1361 --without-sync-input Process async input synchronously
1362 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1363 motif, gtk, no)
1364 --without-xpm don't compile with XPM image support
1365 --without-jpeg don't compile with JPEG image support
1366 --without-tiff don't compile with TIFF image support
1367 --without-gif don't compile with GIF image support
1368 --without-png don't compile with PNG image support
1369 --without-rsvg don't compile with SVG image support
1370 --without-freetype don't use Freetype for local font support
1371 --without-xft don't use XFT for anti aliased fonts
1372 --without-libotf don't use libotf for OpenType font support
1373 --without-m17n-flt don't use m17n-flt for text shaping
1374 --without-toolkit-scroll-bars
1375 don't use Motif or Xaw3d scroll bars
1376 --without-xaw3d don't use Xaw3d
1377 --without-xim don't use X11 XIM
1378 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1379 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1380 console
1381 --without-dbus don't compile with D-Bus support
1382 --without-makeinfo don't require makeinfo for building manuals
1383
1384 --with-pkg-config-prog=PATH
1385 Path to pkg-config for finding GTK and librsvg
1386 --with-x use the X Window System
1387
1388 Some influential environment variables:
1389 CC C compiler command
1390 CFLAGS C compiler flags
1391 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1392 nonstandard directory <lib dir>
1393 LIBS libraries to pass to the linker, e.g. -l<library>
1394 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1395 you have headers in a nonstandard directory <include dir>
1396 CPP C preprocessor
1397 XMKMF Path to xmkmf, Makefile generator for X Window System
1398
1399 Use these variables to override the choices made by `configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1401
1402 _ACEOF
1403 ac_status=$?
1404 fi
1405
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" || continue
1410 ac_builddir=.
1411
1412 case "$ac_dir" in
1413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *)
1415 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1416 # A ".." for each directory in $ac_dir_suffix.
1417 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1418 case $ac_top_builddir_sub in
1419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421 esac ;;
1422 esac
1423 ac_abs_top_builddir=$ac_pwd
1424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1425 # for backward compatibility:
1426 ac_top_builddir=$ac_top_build_prefix
1427
1428 case $srcdir in
1429 .) # We are building in place.
1430 ac_srcdir=.
1431 ac_top_srcdir=$ac_top_builddir_sub
1432 ac_abs_top_srcdir=$ac_pwd ;;
1433 [\\/]* | ?:[\\/]* ) # Absolute name.
1434 ac_srcdir=$srcdir$ac_dir_suffix;
1435 ac_top_srcdir=$srcdir
1436 ac_abs_top_srcdir=$srcdir ;;
1437 *) # Relative name.
1438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439 ac_top_srcdir=$ac_top_build_prefix$srcdir
1440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1441 esac
1442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1443
1444 cd "$ac_dir" || { ac_status=$?; continue; }
1445 # Check for guested configure.
1446 if test -f "$ac_srcdir/configure.gnu"; then
1447 echo &&
1448 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449 elif test -f "$ac_srcdir/configure"; then
1450 echo &&
1451 $SHELL "$ac_srcdir/configure" --help=recursive
1452 else
1453 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1454 fi || ac_status=$?
1455 cd "$ac_pwd" || { ac_status=$?; break; }
1456 done
1457 fi
1458
1459 test -n "$ac_init_help" && exit $ac_status
1460 if $ac_init_version; then
1461 cat <<\_ACEOF
1462 emacs configure 23.0.60
1463 generated by GNU Autoconf 2.61
1464
1465 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1466 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1469 _ACEOF
1470 exit
1471 fi
1472 cat >config.log <<_ACEOF
1473 This file contains any messages produced by compilers while
1474 running configure, to aid debugging if configure makes a mistake.
1475
1476 It was created by emacs $as_me 23.0.60, which was
1477 generated by GNU Autoconf 2.61. Invocation command line was
1478
1479 $ $0 $@
1480
1481 _ACEOF
1482 exec 5>>config.log
1483 {
1484 cat <<_ASUNAME
1485 ## --------- ##
1486 ## Platform. ##
1487 ## --------- ##
1488
1489 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1490 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1491 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1492 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1493 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1494
1495 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1496 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1497
1498 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1499 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1500 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1501 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1502 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1503 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1504 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1505
1506 _ASUNAME
1507
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1509 for as_dir in $PATH
1510 do
1511 IFS=$as_save_IFS
1512 test -z "$as_dir" && as_dir=.
1513 echo "PATH: $as_dir"
1514 done
1515 IFS=$as_save_IFS
1516
1517 } >&5
1518
1519 cat >&5 <<_ACEOF
1520
1521
1522 ## ----------- ##
1523 ## Core tests. ##
1524 ## ----------- ##
1525
1526 _ACEOF
1527
1528
1529 # Keep a trace of the command line.
1530 # Strip out --no-create and --no-recursion so they do not pile up.
1531 # Strip out --silent because we don't want to record it for future runs.
1532 # Also quote any args containing shell meta-characters.
1533 # Make two passes to allow for proper duplicate-argument suppression.
1534 ac_configure_args=
1535 ac_configure_args0=
1536 ac_configure_args1=
1537 ac_must_keep_next=false
1538 for ac_pass in 1 2
1539 do
1540 for ac_arg
1541 do
1542 case $ac_arg in
1543 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1545 | -silent | --silent | --silen | --sile | --sil)
1546 continue ;;
1547 *\'*)
1548 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1549 esac
1550 case $ac_pass in
1551 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1552 2)
1553 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1554 if test $ac_must_keep_next = true; then
1555 ac_must_keep_next=false # Got value, back to normal.
1556 else
1557 case $ac_arg in
1558 *=* | --config-cache | -C | -disable-* | --disable-* \
1559 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1560 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1561 | -with-* | --with-* | -without-* | --without-* | --x)
1562 case "$ac_configure_args0 " in
1563 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1564 esac
1565 ;;
1566 -* ) ac_must_keep_next=true ;;
1567 esac
1568 fi
1569 ac_configure_args="$ac_configure_args '$ac_arg'"
1570 ;;
1571 esac
1572 done
1573 done
1574 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1575 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1576
1577 # When interrupted or exit'd, cleanup temporary files, and complete
1578 # config.log. We remove comments because anyway the quotes in there
1579 # would cause problems or look ugly.
1580 # WARNING: Use '\'' to represent an apostrophe within the trap.
1581 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1582 trap 'exit_status=$?
1583 # Save into config.log some information that might help in debugging.
1584 {
1585 echo
1586
1587 cat <<\_ASBOX
1588 ## ---------------- ##
1589 ## Cache variables. ##
1590 ## ---------------- ##
1591 _ASBOX
1592 echo
1593 # The following way of writing the cache mishandles newlines in values,
1594 (
1595 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1596 eval ac_val=\$$ac_var
1597 case $ac_val in #(
1598 *${as_nl}*)
1599 case $ac_var in #(
1600 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1601 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1602 esac
1603 case $ac_var in #(
1604 _ | IFS | as_nl) ;; #(
1605 *) $as_unset $ac_var ;;
1606 esac ;;
1607 esac
1608 done
1609 (set) 2>&1 |
1610 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1611 *${as_nl}ac_space=\ *)
1612 sed -n \
1613 "s/'\''/'\''\\\\'\'''\''/g;
1614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1615 ;; #(
1616 *)
1617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1618 ;;
1619 esac |
1620 sort
1621 )
1622 echo
1623
1624 cat <<\_ASBOX
1625 ## ----------------- ##
1626 ## Output variables. ##
1627 ## ----------------- ##
1628 _ASBOX
1629 echo
1630 for ac_var in $ac_subst_vars
1631 do
1632 eval ac_val=\$$ac_var
1633 case $ac_val in
1634 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1635 esac
1636 echo "$ac_var='\''$ac_val'\''"
1637 done | sort
1638 echo
1639
1640 if test -n "$ac_subst_files"; then
1641 cat <<\_ASBOX
1642 ## ------------------- ##
1643 ## File substitutions. ##
1644 ## ------------------- ##
1645 _ASBOX
1646 echo
1647 for ac_var in $ac_subst_files
1648 do
1649 eval ac_val=\$$ac_var
1650 case $ac_val in
1651 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1652 esac
1653 echo "$ac_var='\''$ac_val'\''"
1654 done | sort
1655 echo
1656 fi
1657
1658 if test -s confdefs.h; then
1659 cat <<\_ASBOX
1660 ## ----------- ##
1661 ## confdefs.h. ##
1662 ## ----------- ##
1663 _ASBOX
1664 echo
1665 cat confdefs.h
1666 echo
1667 fi
1668 test "$ac_signal" != 0 &&
1669 echo "$as_me: caught signal $ac_signal"
1670 echo "$as_me: exit $exit_status"
1671 } >&5
1672 rm -f core *.core core.conftest.* &&
1673 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1674 exit $exit_status
1675 ' 0
1676 for ac_signal in 1 2 13 15; do
1677 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1678 done
1679 ac_signal=0
1680
1681 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1682 rm -f -r conftest* confdefs.h
1683
1684 # Predefined preprocessor variables.
1685
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_NAME "$PACKAGE_NAME"
1688 _ACEOF
1689
1690
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1693 _ACEOF
1694
1695
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1698 _ACEOF
1699
1700
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_STRING "$PACKAGE_STRING"
1703 _ACEOF
1704
1705
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1708 _ACEOF
1709
1710
1711 # Let the site file select an alternate cache file if it wants to.
1712 # Prefer explicitly selected file to automatically selected ones.
1713 if test -n "$CONFIG_SITE"; then
1714 set x "$CONFIG_SITE"
1715 elif test "x$prefix" != xNONE; then
1716 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1717 else
1718 set x "$ac_default_prefix/share/config.site" \
1719 "$ac_default_prefix/etc/config.site"
1720 fi
1721 shift
1722 for ac_site_file
1723 do
1724 if test -r "$ac_site_file"; then
1725 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1726 echo "$as_me: loading site script $ac_site_file" >&6;}
1727 sed 's/^/| /' "$ac_site_file" >&5
1728 . "$ac_site_file"
1729 fi
1730 done
1731
1732 if test -r "$cache_file"; then
1733 # Some versions of bash will fail to source /dev/null (special
1734 # files actually), so we avoid doing that.
1735 if test -f "$cache_file"; then
1736 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1737 echo "$as_me: loading cache $cache_file" >&6;}
1738 case $cache_file in
1739 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1740 *) . "./$cache_file";;
1741 esac
1742 fi
1743 else
1744 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1745 echo "$as_me: creating cache $cache_file" >&6;}
1746 >$cache_file
1747 fi
1748
1749 ac_header_list="$ac_header_list sys/time.h"
1750 ac_header_list="$ac_header_list unistd.h"
1751 ac_func_list="$ac_func_list alarm"
1752 # Check that the precious variables saved in the cache have kept the same
1753 # value.
1754 ac_cache_corrupted=false
1755 for ac_var in $ac_precious_vars; do
1756 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1757 eval ac_new_set=\$ac_env_${ac_var}_set
1758 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1759 eval ac_new_val=\$ac_env_${ac_var}_value
1760 case $ac_old_set,$ac_new_set in
1761 set,)
1762 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1763 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1765 ,set)
1766 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1767 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1768 ac_cache_corrupted=: ;;
1769 ,);;
1770 *)
1771 if test "x$ac_old_val" != "x$ac_new_val"; then
1772 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1773 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1774 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1775 echo "$as_me: former value: $ac_old_val" >&2;}
1776 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1777 echo "$as_me: current value: $ac_new_val" >&2;}
1778 ac_cache_corrupted=:
1779 fi;;
1780 esac
1781 # Pass precious variables to config.status.
1782 if test "$ac_new_set" = set; then
1783 case $ac_new_val in
1784 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1785 *) ac_arg=$ac_var=$ac_new_val ;;
1786 esac
1787 case " $ac_configure_args " in
1788 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1789 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1790 esac
1791 fi
1792 done
1793 if $ac_cache_corrupted; then
1794 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1795 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1796 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1797 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1798 { (exit 1); exit 1; }; }
1799 fi
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825 ac_ext=c
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830
1831
1832 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1833
1834
1835
1836 test "$program_prefix" != NONE &&
1837 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1838 # Use a double $ so make ignores it.
1839 test "$program_suffix" != NONE &&
1840 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1841 # Double any \ or $. echo might interpret backslashes.
1842 # By default was `s,x,x', remove it if useless.
1843 cat <<\_ACEOF >conftest.sed
1844 s/[\\$]/&&/g;s/;s,x,x,$//
1845 _ACEOF
1846 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1847 rm -f conftest.sed
1848
1849
1850 lispdir='${datadir}/emacs/${version}/lisp'
1851 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1852 '${datadir}/emacs/site-lisp'
1853 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1854 etcdir='${datadir}/emacs/${version}/etc'
1855 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1856 docdir='${datadir}/emacs/${version}/etc'
1857 gamedir='${localstatedir}/games/emacs'
1858
1859 gameuser=games
1860
1861
1862
1863
1864 # Check whether --with-pop was given.
1865 if test "${with_pop+set}" = set; then
1866 withval=$with_pop;
1867 else
1868 with_pop=yes
1869 fi
1870
1871 if test "$with_pop" = yes; then
1872 cat >>confdefs.h <<\_ACEOF
1873 #define MAIL_USE_POP 1
1874 _ACEOF
1875
1876 fi
1877
1878
1879
1880 # Check whether --with-kerberos was given.
1881 if test "${with_kerberos+set}" = set; then
1882 withval=$with_kerberos;
1883 else
1884 with_kerberos=no
1885 fi
1886
1887 if test "$with_kerberos" != no; then
1888 cat >>confdefs.h <<\_ACEOF
1889 #define KERBEROS 1
1890 _ACEOF
1891
1892 fi
1893
1894
1895
1896 # Check whether --with-kerberos5 was given.
1897 if test "${with_kerberos5+set}" = set; then
1898 withval=$with_kerberos5;
1899 else
1900 with_kerberos5=no
1901 fi
1902
1903 if test "${with_kerberos5}" != no; then
1904 if test "${with_kerberos}" = no; then
1905 with_kerberos=yes
1906 cat >>confdefs.h <<\_ACEOF
1907 #define KERBEROS 1
1908 _ACEOF
1909
1910 fi
1911
1912 cat >>confdefs.h <<\_ACEOF
1913 #define KERBEROS5 1
1914 _ACEOF
1915
1916 fi
1917
1918
1919 # Check whether --with-hesiod was given.
1920 if test "${with_hesiod+set}" = set; then
1921 withval=$with_hesiod;
1922 else
1923 with_hesiod=no
1924 fi
1925
1926 if test "$with_hesiod" != no; then
1927
1928 cat >>confdefs.h <<\_ACEOF
1929 #define HESIOD 1
1930 _ACEOF
1931
1932 fi
1933
1934
1935 # Check whether --with-sound was given.
1936 if test "${with_sound+set}" = set; then
1937 withval=$with_sound;
1938 else
1939 with_sound=yes
1940 fi
1941
1942
1943
1944 # Check whether --with-sync-input was given.
1945 if test "${with_sync_input+set}" = set; then
1946 withval=$with_sync_input;
1947 else
1948 with_sync_input=yes
1949 fi
1950
1951 if test "$with_sync_input" = yes; then
1952
1953 cat >>confdefs.h <<\_ACEOF
1954 #define SYNC_INPUT 1
1955 _ACEOF
1956
1957 fi
1958
1959
1960 # Check whether --with-x-toolkit was given.
1961 if test "${with_x_toolkit+set}" = set; then
1962 withval=$with_x_toolkit; case "${withval}" in
1963 y | ye | yes ) val=gtk ;;
1964 n | no ) val=no ;;
1965 l | lu | luc | luci | lucid ) val=lucid ;;
1966 a | at | ath | athe | athen | athena ) val=athena ;;
1967 m | mo | mot | moti | motif ) val=motif ;;
1968 g | gt | gtk ) val=gtk ;;
1969 * )
1970 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1971 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1972 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1973 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1974 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1975 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1976 { (exit 1); exit 1; }; }
1977 ;;
1978 esac
1979 with_x_toolkit=$val
1980
1981 fi
1982
1983
1984
1985 # Check whether --with-xpm was given.
1986 if test "${with_xpm+set}" = set; then
1987 withval=$with_xpm;
1988 else
1989 with_xpm=yes
1990 fi
1991
1992
1993 # Check whether --with-jpeg was given.
1994 if test "${with_jpeg+set}" = set; then
1995 withval=$with_jpeg;
1996 else
1997 with_jpeg=yes
1998 fi
1999
2000
2001 # Check whether --with-tiff was given.
2002 if test "${with_tiff+set}" = set; then
2003 withval=$with_tiff;
2004 else
2005 with_tiff=yes
2006 fi
2007
2008
2009 # Check whether --with-gif was given.
2010 if test "${with_gif+set}" = set; then
2011 withval=$with_gif;
2012 else
2013 with_gif=yes
2014 fi
2015
2016
2017 # Check whether --with-png was given.
2018 if test "${with_png+set}" = set; then
2019 withval=$with_png;
2020 else
2021 with_png=yes
2022 fi
2023
2024
2025 # Check whether --with-rsvg was given.
2026 if test "${with_rsvg+set}" = set; then
2027 withval=$with_rsvg;
2028 else
2029 with_rsvg=yes
2030 fi
2031
2032
2033
2034 # Check whether --with-freetype was given.
2035 if test "${with_freetype+set}" = set; then
2036 withval=$with_freetype;
2037 else
2038 with_freetype=yes
2039 fi
2040
2041
2042 # Check whether --with-xft was given.
2043 if test "${with_xft+set}" = set; then
2044 withval=$with_xft;
2045 else
2046 with_xft=yes
2047 fi
2048
2049
2050 # Check whether --with-libotf was given.
2051 if test "${with_libotf+set}" = set; then
2052 withval=$with_libotf;
2053 else
2054 with_libotf=yes
2055 fi
2056
2057
2058 # Check whether --with-m17n-flt was given.
2059 if test "${with_m17n_flt+set}" = set; then
2060 withval=$with_m17n_flt;
2061 else
2062 with_m17n_flt=yes
2063 fi
2064
2065
2066
2067 # Check whether --with-toolkit-scroll-bars was given.
2068 if test "${with_toolkit_scroll_bars+set}" = set; then
2069 withval=$with_toolkit_scroll_bars;
2070 else
2071 with_toolkit_scroll_bars=yes
2072 fi
2073
2074
2075 # Check whether --with-xaw3d was given.
2076 if test "${with_xaw3d+set}" = set; then
2077 withval=$with_xaw3d;
2078 else
2079 with_xaw3d=yes
2080 fi
2081
2082
2083 # Check whether --with-xim was given.
2084 if test "${with_xim+set}" = set; then
2085 withval=$with_xim;
2086 else
2087 with_xim=yes
2088 fi
2089
2090
2091 # Check whether --with-ns was given.
2092 if test "${with_ns+set}" = set; then
2093 withval=$with_ns;
2094 else
2095 with_ns=no
2096 fi
2097
2098
2099
2100 # Check whether --with-gpm was given.
2101 if test "${with_gpm+set}" = set; then
2102 withval=$with_gpm;
2103 else
2104 with_gpm=yes
2105 fi
2106
2107
2108 # Check whether --with-dbus was given.
2109 if test "${with_dbus+set}" = set; then
2110 withval=$with_dbus;
2111 else
2112 with_dbus=yes
2113 fi
2114
2115
2116 ## For the times when you want to build Emacs but don't have
2117 ## a suitable makeinfo, and can live without the manuals.
2118
2119 # Check whether --with-makeinfo was given.
2120 if test "${with_makeinfo+set}" = set; then
2121 withval=$with_makeinfo;
2122 else
2123 with_makeinfo=yes
2124 fi
2125
2126
2127
2128 # Check whether --with-gtk was given.
2129 if test "${with_gtk+set}" = set; then
2130 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2131 specify a toolkit." >&5
2132 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2133 specify a toolkit." >&2;}
2134 { (exit 1); exit 1; }; }
2135 fi
2136
2137
2138
2139 # Check whether --with-gcc was given.
2140 if test "${with_gcc+set}" = set; then
2141 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2142 variable to specify a compiler." >&5
2143 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2144 variable to specify a compiler." >&2;}
2145 { (exit 1); exit 1; }; }
2146 fi
2147
2148
2149
2150 # Check whether --with-pkg-config-prog was given.
2151 if test "${with_pkg_config_prog+set}" = set; then
2152 withval=$with_pkg_config_prog;
2153 fi
2154
2155 if test "X${with_pkg_config_prog}" != X; then
2156 if test "${with_pkg_config_prog}" != yes; then
2157 PKG_CONFIG="${with_pkg_config_prog}"
2158 fi
2159 fi
2160
2161 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2162 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2163 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=$enableval
2164 else
2165 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2166 fi
2167
2168
2169 # Check whether --enable-ns-self-contained was given.
2170 if test "${enable_ns_self_contained+set}" = set; then
2171 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2172 else
2173 EN_NS_SELF_CONTAINED=yes
2174 fi
2175
2176
2177 # Check whether --enable-asserts was given.
2178 if test "${enable_asserts+set}" = set; then
2179 enableval=$enable_asserts; USE_XASSERTS=$enableval
2180 else
2181 USE_XASSERTS=no
2182 fi
2183
2184
2185 # Check whether --enable-maintainer-mode was given.
2186 if test "${enable_maintainer_mode+set}" = set; then
2187 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2188 else
2189 USE_MAINTAINER_MODE=no
2190 fi
2191
2192 if test $USE_MAINTAINER_MODE = yes; then
2193 MAINT=
2194 else
2195 MAINT=#
2196 fi
2197
2198
2199 # Check whether --enable-locallisppath was given.
2200 if test "${enable_locallisppath+set}" = set; then
2201 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2202 locallisppath=
2203 elif test "${enableval}" != "yes"; then
2204 locallisppath=${enableval}
2205 fi
2206 fi
2207
2208
2209 #### Make srcdir absolute, if it isn't already. It's important to
2210 #### avoid running the path through pwd unnecessarily, since pwd can
2211 #### give you automounter prefixes, which can go away. We do all this
2212 #### so Emacs can find its files when run uninstalled.
2213 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2214 unset CDPATH
2215 case "${srcdir}" in
2216 /* ) ;;
2217 . )
2218 ## We may be able to use the $PWD environment variable to make this
2219 ## absolute. But sometimes PWD is inaccurate.
2220 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2221 ## but that tested only for a well-formed and valid PWD,
2222 ## it did not object when PWD was well-formed and valid but just wrong.
2223 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2224 then
2225 srcdir="$PWD"
2226 else
2227 srcdir="`(cd ${srcdir}; pwd)`"
2228 fi
2229 ;;
2230 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2231 esac
2232
2233 #### Check if the source directory already has a configured system in it.
2234 if test `pwd` != `(cd ${srcdir} && pwd)` \
2235 && test -f "${srcdir}/src/config.h" ; then
2236 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2237 as a build directory right now; it has been configured in its own
2238 right. To configure in another directory as well, you MUST
2239 use GNU make. If you do not have GNU make, then you must
2240 now do \`make distclean' in ${srcdir},
2241 and then run $0 again." >&5
2242 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2243 as a build directory right now; it has been configured in its own
2244 right. To configure in another directory as well, you MUST
2245 use GNU make. If you do not have GNU make, then you must
2246 now do \`make distclean' in ${srcdir},
2247 and then run $0 again." >&2;}
2248 fi
2249
2250 #### Given the configuration name, set machfile and opsysfile to the
2251 #### names of the m/*.h and s/*.h files we should use.
2252
2253 ### Canonicalize the configuration name.
2254
2255 ac_aux_dir=
2256 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2257 if test -f "$ac_dir/install-sh"; then
2258 ac_aux_dir=$ac_dir
2259 ac_install_sh="$ac_aux_dir/install-sh -c"
2260 break
2261 elif test -f "$ac_dir/install.sh"; then
2262 ac_aux_dir=$ac_dir
2263 ac_install_sh="$ac_aux_dir/install.sh -c"
2264 break
2265 elif test -f "$ac_dir/shtool"; then
2266 ac_aux_dir=$ac_dir
2267 ac_install_sh="$ac_aux_dir/shtool install -c"
2268 break
2269 fi
2270 done
2271 if test -z "$ac_aux_dir"; then
2272 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2273 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2274 { (exit 1); exit 1; }; }
2275 fi
2276
2277 # These three variables are undocumented and unsupported,
2278 # and are intended to be withdrawn in a future Autoconf release.
2279 # They can cause serious problems if a builder's source tree is in a directory
2280 # whose full name contains unusual characters.
2281 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2282 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2283 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2284
2285
2286 # Make sure we can run config.sub.
2287 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2288 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2289 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2290 { (exit 1); exit 1; }; }
2291
2292 { echo "$as_me:$LINENO: checking build system type" >&5
2293 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2294 if test "${ac_cv_build+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 ac_build_alias=$build_alias
2298 test "x$ac_build_alias" = x &&
2299 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2300 test "x$ac_build_alias" = x &&
2301 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2302 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2303 { (exit 1); exit 1; }; }
2304 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2305 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2306 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2307 { (exit 1); exit 1; }; }
2308
2309 fi
2310 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2311 echo "${ECHO_T}$ac_cv_build" >&6; }
2312 case $ac_cv_build in
2313 *-*-*) ;;
2314 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2315 echo "$as_me: error: invalid value of canonical build" >&2;}
2316 { (exit 1); exit 1; }; };;
2317 esac
2318 build=$ac_cv_build
2319 ac_save_IFS=$IFS; IFS='-'
2320 set x $ac_cv_build
2321 shift
2322 build_cpu=$1
2323 build_vendor=$2
2324 shift; shift
2325 # Remember, the first character of IFS is used to create $*,
2326 # except with old shells:
2327 build_os=$*
2328 IFS=$ac_save_IFS
2329 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2330
2331
2332 { echo "$as_me:$LINENO: checking host system type" >&5
2333 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2334 if test "${ac_cv_host+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 if test "x$host_alias" = x; then
2338 ac_cv_host=$ac_cv_build
2339 else
2340 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2341 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2342 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2343 { (exit 1); exit 1; }; }
2344 fi
2345
2346 fi
2347 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2348 echo "${ECHO_T}$ac_cv_host" >&6; }
2349 case $ac_cv_host in
2350 *-*-*) ;;
2351 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2352 echo "$as_me: error: invalid value of canonical host" >&2;}
2353 { (exit 1); exit 1; }; };;
2354 esac
2355 host=$ac_cv_host
2356 ac_save_IFS=$IFS; IFS='-'
2357 set x $ac_cv_host
2358 shift
2359 host_cpu=$1
2360 host_vendor=$2
2361 shift; shift
2362 # Remember, the first character of IFS is used to create $*,
2363 # except with old shells:
2364 host_os=$*
2365 IFS=$ac_save_IFS
2366 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2367
2368
2369 canonical=$host
2370 configuration=${host_alias-${build_alias-$host}}
2371
2372
2373
2374 ### If you add support for a new configuration, add code to this
2375 ### switch statement to recognize your configuration name and select
2376 ### the appropriate operating system and machine description files.
2377
2378 ### You would hope that you could choose an m/*.h file pretty much
2379 ### based on the machine portion of the configuration name, and an s-
2380 ### file based on the operating system portion. However, it turns out
2381 ### that each m/*.h file is pretty manufacturer-specific - for
2382 ### example mips.h is MIPS
2383 ### So we basically have to have a special case for each
2384 ### configuration name.
2385 ###
2386 ### As far as handling version numbers on operating systems is
2387 ### concerned, make sure things will fail in a fixable way. If
2388 ### /etc/MACHINES doesn't say anything about version numbers, be
2389 ### prepared to handle anything reasonably. If version numbers
2390 ### matter, be sure /etc/MACHINES says something about it.
2391 ###
2392 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2393 ### "System V Release 4"; he writes, "The old convention encouraged
2394 ### confusion between `system' and `release' levels'."
2395
2396 machine='' opsys='' unported=no
2397 case "${canonical}" in
2398
2399 ## FreeBSD ports
2400 *-*-freebsd* )
2401 opsys=freebsd
2402 case "${canonical}" in
2403 alpha*-*-freebsd*) machine=alpha ;;
2404 arm*-*-freebsd*) machine=arm ;;
2405 ia64-*-freebsd*) machine=ia64 ;;
2406 sparc-*-freebsd*) machine=sparc ;;
2407 sparc64-*-freebsd*) machine=sparc ;;
2408 powerpc-*-freebsd*) machine=macppc ;;
2409 i[3456]86-*-freebsd*) machine=intel386 ;;
2410 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2411 esac
2412 ;;
2413
2414 ## FreeBSD kernel + glibc based userland
2415 *-*-kfreebsd*gnu* )
2416 opsys=gnu-kfreebsd
2417 case "${canonical}" in
2418 alpha*-*-kfreebsd*) machine=alpha ;;
2419 ia64-*-kfreebsd*) machine=ia64 ;;
2420 sparc-*-kfreebsd*) machine=sparc ;;
2421 sparc64-*-kfreebsd*) machine=sparc ;;
2422 powerpc-*-kfreebsd*) machine=macppc ;;
2423 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2424 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2425 esac
2426 ;;
2427
2428 ## NetBSD ports
2429 *-*-netbsd* )
2430 opsys=netbsd
2431 if test -f /usr/lib/crti.o; then
2432
2433 cat >>confdefs.h <<\_ACEOF
2434 #define HAVE_CRTIN
2435 _ACEOF
2436
2437 fi
2438
2439 case "${canonical}" in
2440 alpha*-*-netbsd*) machine=alpha ;;
2441 i[3456]86-*-netbsd*) machine=intel386 ;;
2442 powerpc-*-netbsd*) machine=macppc ;;
2443 sparc*-*-netbsd*) machine=sparc ;;
2444 vax-*-netbsd*) machine=vax ;;
2445 arm-*-netbsd*) machine=arm ;;
2446 x86_64-*-netbsd*) machine=amdx86-64 ;;
2447 hppa-*-netbsd*) machine=hp800 ;;
2448 esac
2449 ;;
2450
2451 ## OpenBSD ports
2452 *-*-openbsd* )
2453 opsys=openbsd
2454 case "${canonical}" in
2455 alpha*-*-openbsd*) machine=alpha ;;
2456 arm-*-openbsd*) machine=arm ;;
2457 i386-*-openbsd*) machine=intel386 ;;
2458 powerpc-*-openbsd*) machine=macppc ;;
2459 sparc*-*-openbsd*) machine=sparc ;;
2460 vax-*-openbsd*) machine=vax ;;
2461 x86_64-*-openbsd*) machine=amdx86-64 ;;
2462 esac
2463 ;;
2464
2465 ## LynxOS ports
2466 *-*-lynxos* )
2467 opsys=lynxos
2468 case "${canonical}" in
2469 i[3456]86-*-lynxos*) machine=intel386 ;;
2470 powerpc-*-lynxos*) machine=powerpc ;;
2471 esac
2472 ;;
2473
2474 alpha*-*-linux-gnu* )
2475 machine=alpha opsys=gnu-linux
2476 ;;
2477
2478 arm*-*-linux-gnu* )
2479 machine=arm opsys=gnu-linux
2480 ;;
2481
2482 ## Apple Darwin / Mac OS X
2483 *-apple-darwin* )
2484 case "${canonical}" in
2485 i[3456]86-* ) machine=intel386 ;;
2486 powerpc-* ) machine=macppc ;;
2487 * ) unported=yes ;;
2488 esac
2489 opsys=darwin
2490 # Define CPP as follows to make autoconf work correctly.
2491 CPP="${CC-cc} -E -no-cpp-precomp"
2492 # Use fink packages if available.
2493 if test -d /sw/include && test -d /sw/lib; then
2494 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2495 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2496 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2497 fi
2498 ;;
2499
2500 ## HP 9000 series 700 and 800, running HP/UX
2501 hppa*-hp-hpux10.2* )
2502 machine=hp800 opsys=hpux10-20
2503 ;;
2504 hppa*-hp-hpux1[1-9]* )
2505 machine=hp800 opsys=hpux11
2506 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2507 ;;
2508
2509 hppa*-*-linux-gnu* )
2510 machine=hp800 opsys=gnu-linux
2511 ;;
2512
2513 ## IBM machines
2514 s390-*-linux-gnu* )
2515 machine=ibms390 opsys=gnu-linux
2516 ;;
2517 s390x-*-linux-gnu* )
2518 machine=ibms390x opsys=gnu-linux
2519 ;;
2520 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2521 machine=ibmrs6000 opsys=aix4-2
2522 ;;
2523 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2524 machine=ibmrs6000 opsys=aix4-2
2525 ;;
2526 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2527 machine=ibmrs6000 opsys=aix4-2
2528 ;;
2529 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2530 machine=ibmrs6000 opsys=aix4-2
2531 ;;
2532
2533 ## Macintosh PowerPC
2534 powerpc*-*-linux-gnu* )
2535 machine=macppc opsys=gnu-linux
2536 ;;
2537
2538 ## Silicon Graphics machines
2539 ## Iris 4D
2540 mips-sgi-irix6.5 )
2541 machine=iris4d opsys=irix6-5
2542 # Without defining _LANGUAGE_C, things get masked out in the headers
2543 # so that, for instance, grepping for `free' in stdlib.h fails and
2544 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2545 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2546 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2547 ;;
2548
2549 ## Suns
2550 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2551 machine=sparc opsys=gnu-linux
2552 ;;
2553
2554 *-sun-solaris* \
2555 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2556 | rs6000-*-solaris2*)
2557 case "${canonical}" in
2558 i[3456]86-*-* ) machine=intel386 ;;
2559 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2560 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2561 sparc* ) machine=sparc ;;
2562 * ) unported=yes ;;
2563 esac
2564 case "${canonical}" in
2565 *-sunos5.3* | *-solaris2.3* )
2566 opsys=sol2-3
2567 NON_GNU_CPP=/usr/ccs/lib/cpp
2568 ;;
2569 *-sunos5.4* | *-solaris2.4* )
2570 opsys=sol2-4
2571 NON_GNU_CPP=/usr/ccs/lib/cpp
2572 RANLIB="ar -ts"
2573 ;;
2574 *-sunos5.5* | *-solaris2.5* )
2575 opsys=sol2-5
2576 NON_GNU_CPP=/usr/ccs/lib/cpp
2577 RANLIB="ar -ts"
2578 ;;
2579 *-sunos5.6* | *-solaris2.6* )
2580 opsys=sol2-6
2581 NON_GNU_CPP=/usr/ccs/lib/cpp
2582 RANLIB="ar -ts"
2583 ;;
2584 *-sunos5* | *-solaris* )
2585 opsys=sol2-6
2586 emacs_check_sunpro_c=yes
2587 NON_GNU_CPP=/usr/ccs/lib/cpp
2588 ;;
2589 esac
2590 ## Watch out for a compiler that we know will not work.
2591 case "${canonical}" in
2592 *-solaris* | *-sunos5* )
2593 if [ "x$CC" = x/usr/ucb/cc ]; then
2594 ## /usr/ucb/cc doesn't work;
2595 ## we should find some other compiler that does work.
2596 unset CC
2597 fi
2598 ;;
2599 *) ;;
2600 esac
2601 ;;
2602
2603 ## Vaxen.
2604 vax-dec-* )
2605 machine=vax
2606 case "${canonical}" in
2607 *-vms* ) opsys=vms ;;
2608 * ) unported=yes
2609 esac
2610 ;;
2611
2612 ## IA-64
2613 ia64*-*-linux* )
2614 machine=ia64 opsys=gnu-linux
2615 ;;
2616
2617 ## Intel 386 machines where we don't care about the manufacturer
2618 i[3456]86-*-* )
2619 machine=intel386
2620 case "${canonical}" in
2621 *-cygwin ) opsys=cygwin ;;
2622 *-darwin* ) opsys=darwin
2623 CPP="${CC-cc} -E -no-cpp-precomp"
2624 ;;
2625 *-linux-gnu* ) opsys=gnu-linux ;;
2626 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2627 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2628 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2629 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2630 esac
2631 ;;
2632
2633 ## m68k Linux-based GNU system
2634 m68k-*-linux-gnu* )
2635 machine=m68k opsys=gnu-linux
2636 ;;
2637
2638 ## Mips Linux-based GNU system
2639 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2640 machine=mips opsys=gnu-linux
2641 ;;
2642
2643 ## AMD x86-64 Linux-based GNU system
2644 x86_64-*-linux-gnu* )
2645 machine=amdx86-64 opsys=gnu-linux
2646 ;;
2647
2648 ## Tensilica Xtensa Linux-based GNU system
2649 xtensa*-*-linux-gnu* )
2650 machine=xtensa opsys=gnu-linux
2651 ;;
2652
2653 * )
2654 unported=yes
2655 ;;
2656 esac
2657
2658 ### If the code above didn't choose an operating system, just choose
2659 ### an operating system based on the configuration name. You really
2660 ### only want to use this when you have no idea what the right
2661 ### operating system is; if you know what operating systems a machine
2662 ### runs, it's cleaner to make it explicit in the case statement
2663 ### above.
2664 if test x"${opsys}" = x; then
2665 case "${canonical}" in
2666 *-gnu* ) opsys=gnu ;;
2667 *-sysv4.2uw* ) opsys=unixware ;;
2668 *-sysv5uw* ) opsys=unixware ;;
2669 *-sysv5OpenUNIX* ) opsys=unixware ;;
2670 *-sysv4.1* | *-sysvr4.1* )
2671 NON_GNU_CPP=/usr/lib/cpp
2672 opsys=usg5-4 ;;
2673 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2674 if [ x$NON_GNU_CPP = x ]; then
2675 if [ -f /usr/ccs/lib/cpp ]; then
2676 NON_GNU_CPP=/usr/ccs/lib/cpp
2677 else
2678 NON_GNU_CPP=/lib/cpp
2679 fi
2680 fi
2681 opsys=usg5-4-2 ;;
2682 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2683 * )
2684 unported=yes
2685 ;;
2686 esac
2687 fi
2688
2689
2690
2691 if test $unported = yes; then
2692 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2693 Check \`etc/MACHINES' for recognized configuration names." >&5
2694 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2695 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2696 { (exit 1); exit 1; }; }
2697 fi
2698
2699 machfile="m/${machine}.h"
2700 opsysfile="s/${opsys}.h"
2701
2702
2703 #### Choose a compiler.
2704 test -n "$CC" && cc_specified=yes
2705
2706 # Save the value of CFLAGS that the user specified.
2707 SPECIFIED_CFLAGS="$CFLAGS"
2708
2709 ac_ext=c
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714 if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2716 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2719 if test "${ac_cv_prog_CC+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 CC=$ac_cv_prog_CC
2743 if test -n "$CC"; then
2744 { echo "$as_me:$LINENO: result: $CC" >&5
2745 echo "${ECHO_T}$CC" >&6; }
2746 else
2747 { echo "$as_me:$LINENO: result: no" >&5
2748 echo "${ECHO_T}no" >&6; }
2749 fi
2750
2751
2752 fi
2753 if test -z "$ac_cv_prog_CC"; then
2754 ac_ct_CC=$CC
2755 # Extract the first word of "gcc", so it can be a program name with args.
2756 set dummy gcc; ac_word=$2
2757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2760 echo $ECHO_N "(cached) $ECHO_C" >&6
2761 else
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_ac_ct_CC="gcc"
2773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2775 fi
2776 done
2777 done
2778 IFS=$as_save_IFS
2779
2780 fi
2781 fi
2782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2783 if test -n "$ac_ct_CC"; then
2784 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2785 echo "${ECHO_T}$ac_ct_CC" >&6; }
2786 else
2787 { echo "$as_me:$LINENO: result: no" >&5
2788 echo "${ECHO_T}no" >&6; }
2789 fi
2790
2791 if test "x$ac_ct_CC" = x; then
2792 CC=""
2793 else
2794 case $cross_compiling:$ac_tool_warned in
2795 yes:)
2796 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2797 whose name does not start with the host triplet. If you think this
2798 configuration is useful to you, please write to autoconf@gnu.org." >&5
2799 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2800 whose name does not start with the host triplet. If you think this
2801 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2802 ac_tool_warned=yes ;;
2803 esac
2804 CC=$ac_ct_CC
2805 fi
2806 else
2807 CC="$ac_cv_prog_CC"
2808 fi
2809
2810 if test -z "$CC"; then
2811 if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}cc; ac_word=$2
2814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2816 if test "${ac_cv_prog_CC+set}" = set; then
2817 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 else
2819 if test -n "$CC"; then
2820 ac_cv_prog_CC="$CC" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_CC="${ac_tool_prefix}cc"
2830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833 done
2834 done
2835 IFS=$as_save_IFS
2836
2837 fi
2838 fi
2839 CC=$ac_cv_prog_CC
2840 if test -n "$CC"; then
2841 { echo "$as_me:$LINENO: result: $CC" >&5
2842 echo "${ECHO_T}$CC" >&6; }
2843 else
2844 { echo "$as_me:$LINENO: result: no" >&5
2845 echo "${ECHO_T}no" >&6; }
2846 fi
2847
2848
2849 fi
2850 fi
2851 if test -z "$CC"; then
2852 # Extract the first word of "cc", so it can be a program name with args.
2853 set dummy cc; ac_word=$2
2854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2856 if test "${ac_cv_prog_CC+set}" = set; then
2857 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862 ac_prog_rejected=no
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866 IFS=$as_save_IFS
2867 test -z "$as_dir" && as_dir=.
2868 for ac_exec_ext in '' $ac_executable_extensions; do
2869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2870 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2871 ac_prog_rejected=yes
2872 continue
2873 fi
2874 ac_cv_prog_CC="cc"
2875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 break 2
2877 fi
2878 done
2879 done
2880 IFS=$as_save_IFS
2881
2882 if test $ac_prog_rejected = yes; then
2883 # We found a bogon in the path, so make sure we never use it.
2884 set dummy $ac_cv_prog_CC
2885 shift
2886 if test $# != 0; then
2887 # We chose a different compiler from the bogus one.
2888 # However, it has the same basename, so the bogon will be chosen
2889 # first if we set CC to just the basename; use the full file name.
2890 shift
2891 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2892 fi
2893 fi
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { echo "$as_me:$LINENO: result: $CC" >&5
2899 echo "${ECHO_T}$CC" >&6; }
2900 else
2901 { echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6; }
2903 fi
2904
2905
2906 fi
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2909 for ac_prog in cl.exe
2910 do
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2915 if test "${ac_cv_prog_CC+set}" = set; then
2916 echo $ECHO_N "(cached) $ECHO_C" >&6
2917 else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932 done
2933 done
2934 IFS=$as_save_IFS
2935
2936 fi
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 { echo "$as_me:$LINENO: result: $CC" >&5
2941 echo "${ECHO_T}$CC" >&6; }
2942 else
2943 { echo "$as_me:$LINENO: result: no" >&5
2944 echo "${ECHO_T}no" >&6; }
2945 fi
2946
2947
2948 test -n "$CC" && break
2949 done
2950 fi
2951 if test -z "$CC"; then
2952 ac_ct_CC=$CC
2953 for ac_prog in cl.exe
2954 do
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962 if test -n "$ac_ct_CC"; then
2963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2964 else
2965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2966 for as_dir in $PATH
2967 do
2968 IFS=$as_save_IFS
2969 test -z "$as_dir" && as_dir=.
2970 for ac_exec_ext in '' $ac_executable_extensions; do
2971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 ac_cv_prog_ac_ct_CC="$ac_prog"
2973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 break 2
2975 fi
2976 done
2977 done
2978 IFS=$as_save_IFS
2979
2980 fi
2981 fi
2982 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2983 if test -n "$ac_ct_CC"; then
2984 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2985 echo "${ECHO_T}$ac_ct_CC" >&6; }
2986 else
2987 { echo "$as_me:$LINENO: result: no" >&5
2988 echo "${ECHO_T}no" >&6; }
2989 fi
2990
2991
2992 test -n "$ac_ct_CC" && break
2993 done
2994
2995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999 yes:)
3000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3001 whose name does not start with the host triplet. If you think this
3002 configuration is useful to you, please write to autoconf@gnu.org." >&5
3003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3004 whose name does not start with the host triplet. If you think this
3005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3006 ac_tool_warned=yes ;;
3007 esac
3008 CC=$ac_ct_CC
3009 fi
3010 fi
3011
3012 fi
3013
3014
3015 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3016 See \`config.log' for more details." >&5
3017 echo "$as_me: error: no acceptable C compiler found in \$PATH
3018 See \`config.log' for more details." >&2;}
3019 { (exit 1); exit 1; }; }
3020
3021 # Provide some information about the compiler.
3022 echo "$as_me:$LINENO: checking for C compiler version" >&5
3023 ac_compiler=`set X $ac_compile; echo $2`
3024 { (ac_try="$ac_compiler --version >&5"
3025 case "(($ac_try" in
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3028 esac
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_compiler --version >&5") 2>&5
3031 ac_status=$?
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }
3034 { (ac_try="$ac_compiler -v >&5"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_compiler -v >&5") 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }
3044 { (ac_try="$ac_compiler -V >&5"
3045 case "(($ac_try" in
3046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3048 esac
3049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3050 (eval "$ac_compiler -V >&5") 2>&5
3051 ac_status=$?
3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053 (exit $ac_status); }
3054
3055 cat >conftest.$ac_ext <<_ACEOF
3056 /* confdefs.h. */
3057 _ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3061
3062 int
3063 main ()
3064 {
3065
3066 ;
3067 return 0;
3068 }
3069 _ACEOF
3070 ac_clean_files_save=$ac_clean_files
3071 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3072 # Try to create an executable without -o first, disregard a.out.
3073 # It will help us diagnose broken compilers, and finding out an intuition
3074 # of exeext.
3075 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3076 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3077 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3078 #
3079 # List of possible output files, starting from the most likely.
3080 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3081 # only as a last resort. b.out is created by i960 compilers.
3082 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3083 #
3084 # The IRIX 6 linker writes into existing files which may not be
3085 # executable, retaining their permissions. Remove them first so a
3086 # subsequent execution test works.
3087 ac_rmfiles=
3088 for ac_file in $ac_files
3089 do
3090 case $ac_file in
3091 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3092 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3093 esac
3094 done
3095 rm -f $ac_rmfiles
3096
3097 if { (ac_try="$ac_link_default"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3103 (eval "$ac_link_default") 2>&5
3104 ac_status=$?
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); }; then
3107 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3108 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3109 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3110 # so that the user can short-circuit this test for compilers unknown to
3111 # Autoconf.
3112 for ac_file in $ac_files ''
3113 do
3114 test -f "$ac_file" || continue
3115 case $ac_file in
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3117 ;;
3118 [ab].out )
3119 # We found the default executable, but exeext='' is most
3120 # certainly right.
3121 break;;
3122 *.* )
3123 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3124 then :; else
3125 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3126 fi
3127 # We set ac_cv_exeext here because the later test for it is not
3128 # safe: cross compilers may not add the suffix if given an `-o'
3129 # argument, so we may need to know it at that point already.
3130 # Even if this section looks crufty: it has the advantage of
3131 # actually working.
3132 break;;
3133 * )
3134 break;;
3135 esac
3136 done
3137 test "$ac_cv_exeext" = no && ac_cv_exeext=
3138
3139 else
3140 ac_file=''
3141 fi
3142
3143 { echo "$as_me:$LINENO: result: $ac_file" >&5
3144 echo "${ECHO_T}$ac_file" >&6; }
3145 if test -z "$ac_file"; then
3146 echo "$as_me: failed program was:" >&5
3147 sed 's/^/| /' conftest.$ac_ext >&5
3148
3149 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3150 See \`config.log' for more details." >&5
3151 echo "$as_me: error: C compiler cannot create executables
3152 See \`config.log' for more details." >&2;}
3153 { (exit 77); exit 77; }; }
3154 fi
3155
3156 ac_exeext=$ac_cv_exeext
3157
3158 # Check that the compiler produces executables we can run. If not, either
3159 # the compiler is broken, or we cross compile.
3160 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3161 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3162 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3163 # If not cross compiling, check that we can run a simple program.
3164 if test "$cross_compiling" != yes; then
3165 if { ac_try='./$ac_file'
3166 { (case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }; }; then
3175 cross_compiling=no
3176 else
3177 if test "$cross_compiling" = maybe; then
3178 cross_compiling=yes
3179 else
3180 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3181 If you meant to cross compile, use \`--host'.
3182 See \`config.log' for more details." >&5
3183 echo "$as_me: error: cannot run C compiled programs.
3184 If you meant to cross compile, use \`--host'.
3185 See \`config.log' for more details." >&2;}
3186 { (exit 1); exit 1; }; }
3187 fi
3188 fi
3189 fi
3190 { echo "$as_me:$LINENO: result: yes" >&5
3191 echo "${ECHO_T}yes" >&6; }
3192
3193 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3194 ac_clean_files=$ac_clean_files_save
3195 # Check that the compiler produces executables we can run. If not, either
3196 # the compiler is broken, or we cross compile.
3197 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3198 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3199 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3200 echo "${ECHO_T}$cross_compiling" >&6; }
3201
3202 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3203 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3204 if { (ac_try="$ac_link"
3205 case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_link") 2>&5
3211 ac_status=$?
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; then
3214 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3215 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3216 # work properly (i.e., refer to `conftest.exe'), while it won't with
3217 # `rm'.
3218 for ac_file in conftest.exe conftest conftest.*; do
3219 test -f "$ac_file" || continue
3220 case $ac_file in
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3222 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 break;;
3224 * ) break;;
3225 esac
3226 done
3227 else
3228 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3229 See \`config.log' for more details." >&5
3230 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3231 See \`config.log' for more details." >&2;}
3232 { (exit 1); exit 1; }; }
3233 fi
3234
3235 rm -f conftest$ac_cv_exeext
3236 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3237 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3238
3239 rm -f conftest.$ac_ext
3240 EXEEXT=$ac_cv_exeext
3241 ac_exeext=$EXEEXT
3242 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3243 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3244 if test "${ac_cv_objext+set}" = set; then
3245 echo $ECHO_N "(cached) $ECHO_C" >&6
3246 else
3247 cat >conftest.$ac_ext <<_ACEOF
3248 /* confdefs.h. */
3249 _ACEOF
3250 cat confdefs.h >>conftest.$ac_ext
3251 cat >>conftest.$ac_ext <<_ACEOF
3252 /* end confdefs.h. */
3253
3254 int
3255 main ()
3256 {
3257
3258 ;
3259 return 0;
3260 }
3261 _ACEOF
3262 rm -f conftest.o conftest.obj
3263 if { (ac_try="$ac_compile"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3269 (eval "$ac_compile") 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); }; then
3273 for ac_file in conftest.o conftest.obj conftest.*; do
3274 test -f "$ac_file" || continue;
3275 case $ac_file in
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3278 break;;
3279 esac
3280 done
3281 else
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3286 See \`config.log' for more details." >&5
3287 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3288 See \`config.log' for more details." >&2;}
3289 { (exit 1); exit 1; }; }
3290 fi
3291
3292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3293 fi
3294 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3295 echo "${ECHO_T}$ac_cv_objext" >&6; }
3296 OBJEXT=$ac_cv_objext
3297 ac_objext=$OBJEXT
3298 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3299 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3300 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3301 echo $ECHO_N "(cached) $ECHO_C" >&6
3302 else
3303 cat >conftest.$ac_ext <<_ACEOF
3304 /* confdefs.h. */
3305 _ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309
3310 int
3311 main ()
3312 {
3313 #ifndef __GNUC__
3314 choke me
3315 #endif
3316
3317 ;
3318 return 0;
3319 }
3320 _ACEOF
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } && {
3335 test -z "$ac_c_werror_flag" ||
3336 test ! -s conftest.err
3337 } && test -s conftest.$ac_objext; then
3338 ac_compiler_gnu=yes
3339 else
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 ac_compiler_gnu=no
3344 fi
3345
3346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3347 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3348
3349 fi
3350 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3351 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3352 GCC=`test $ac_compiler_gnu = yes && echo yes`
3353 ac_test_CFLAGS=${CFLAGS+set}
3354 ac_save_CFLAGS=$CFLAGS
3355 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3356 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3357 if test "${ac_cv_prog_cc_g+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 else
3360 ac_save_c_werror_flag=$ac_c_werror_flag
3361 ac_c_werror_flag=yes
3362 ac_cv_prog_cc_g=no
3363 CFLAGS="-g"
3364 cat >conftest.$ac_ext <<_ACEOF
3365 /* confdefs.h. */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3370
3371 int
3372 main ()
3373 {
3374
3375 ;
3376 return 0;
3377 }
3378 _ACEOF
3379 rm -f conftest.$ac_objext
3380 if { (ac_try="$ac_compile"
3381 case "(($ac_try" in
3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3383 *) ac_try_echo=$ac_try;;
3384 esac
3385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3386 (eval "$ac_compile") 2>conftest.er1
3387 ac_status=$?
3388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
3391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } && {
3393 test -z "$ac_c_werror_flag" ||
3394 test ! -s conftest.err
3395 } && test -s conftest.$ac_objext; then
3396 ac_cv_prog_cc_g=yes
3397 else
3398 echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401 CFLAGS=""
3402 cat >conftest.$ac_ext <<_ACEOF
3403 /* confdefs.h. */
3404 _ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3408
3409 int
3410 main ()
3411 {
3412
3413 ;
3414 return 0;
3415 }
3416 _ACEOF
3417 rm -f conftest.$ac_objext
3418 if { (ac_try="$ac_compile"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3424 (eval "$ac_compile") 2>conftest.er1
3425 ac_status=$?
3426 grep -v '^ *+' conftest.er1 >conftest.err
3427 rm -f conftest.er1
3428 cat conftest.err >&5
3429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430 (exit $ac_status); } && {
3431 test -z "$ac_c_werror_flag" ||
3432 test ! -s conftest.err
3433 } && test -s conftest.$ac_objext; then
3434 :
3435 else
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 ac_c_werror_flag=$ac_save_c_werror_flag
3440 CFLAGS="-g"
3441 cat >conftest.$ac_ext <<_ACEOF
3442 /* confdefs.h. */
3443 _ACEOF
3444 cat confdefs.h >>conftest.$ac_ext
3445 cat >>conftest.$ac_ext <<_ACEOF
3446 /* end confdefs.h. */
3447
3448 int
3449 main ()
3450 {
3451
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 rm -f conftest.$ac_objext
3457 if { (ac_try="$ac_compile"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3463 (eval "$ac_compile") 2>conftest.er1
3464 ac_status=$?
3465 grep -v '^ *+' conftest.er1 >conftest.err
3466 rm -f conftest.er1
3467 cat conftest.err >&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); } && {
3470 test -z "$ac_c_werror_flag" ||
3471 test ! -s conftest.err
3472 } && test -s conftest.$ac_objext; then
3473 ac_cv_prog_cc_g=yes
3474 else
3475 echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3477
3478
3479 fi
3480
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 fi
3483
3484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485 fi
3486
3487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488 ac_c_werror_flag=$ac_save_c_werror_flag
3489 fi
3490 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3491 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3492 if test "$ac_test_CFLAGS" = set; then
3493 CFLAGS=$ac_save_CFLAGS
3494 elif test $ac_cv_prog_cc_g = yes; then
3495 if test "$GCC" = yes; then
3496 CFLAGS="-g -O2"
3497 else
3498 CFLAGS="-g"
3499 fi
3500 else
3501 if test "$GCC" = yes; then
3502 CFLAGS="-O2"
3503 else
3504 CFLAGS=
3505 fi
3506 fi
3507 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3508 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3509 if test "${ac_cv_prog_cc_c89+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512 ac_cv_prog_cc_c89=no
3513 ac_save_CC=$CC
3514 cat >conftest.$ac_ext <<_ACEOF
3515 /* confdefs.h. */
3516 _ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <stdarg.h>
3521 #include <stdio.h>
3522 #include <sys/types.h>
3523 #include <sys/stat.h>
3524 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3525 struct buf { int x; };
3526 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3527 static char *e (p, i)
3528 char **p;
3529 int i;
3530 {
3531 return p[i];
3532 }
3533 static char *f (char * (*g) (char **, int), char **p, ...)
3534 {
3535 char *s;
3536 va_list v;
3537 va_start (v,p);
3538 s = g (p, va_arg (v,int));
3539 va_end (v);
3540 return s;
3541 }
3542
3543 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3544 function prototypes and stuff, but not '\xHH' hex character constants.
3545 These don't provoke an error unfortunately, instead are silently treated
3546 as 'x'. The following induces an error, until -std is added to get
3547 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3548 array size at least. It's necessary to write '\x00'==0 to get something
3549 that's true only with -std. */
3550 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3551
3552 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3553 inside strings and character constants. */
3554 #define FOO(x) 'x'
3555 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3556
3557 int test (int i, double x);
3558 struct s1 {int (*f) (int a);};
3559 struct s2 {int (*f) (double a);};
3560 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3561 int argc;
3562 char **argv;
3563 int
3564 main ()
3565 {
3566 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3572 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3573 do
3574 CC="$ac_save_CC $ac_arg"
3575 rm -f conftest.$ac_objext
3576 if { (ac_try="$ac_compile"
3577 case "(($ac_try" in
3578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3579 *) ac_try_echo=$ac_try;;
3580 esac
3581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3582 (eval "$ac_compile") 2>conftest.er1
3583 ac_status=$?
3584 grep -v '^ *+' conftest.er1 >conftest.err
3585 rm -f conftest.er1
3586 cat conftest.err >&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); } && {
3589 test -z "$ac_c_werror_flag" ||
3590 test ! -s conftest.err
3591 } && test -s conftest.$ac_objext; then
3592 ac_cv_prog_cc_c89=$ac_arg
3593 else
3594 echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597
3598 fi
3599
3600 rm -f core conftest.err conftest.$ac_objext
3601 test "x$ac_cv_prog_cc_c89" != "xno" && break
3602 done
3603 rm -f conftest.$ac_ext
3604 CC=$ac_save_CC
3605
3606 fi
3607 # AC_CACHE_VAL
3608 case "x$ac_cv_prog_cc_c89" in
3609 x)
3610 { echo "$as_me:$LINENO: result: none needed" >&5
3611 echo "${ECHO_T}none needed" >&6; } ;;
3612 xno)
3613 { echo "$as_me:$LINENO: result: unsupported" >&5
3614 echo "${ECHO_T}unsupported" >&6; } ;;
3615 *)
3616 CC="$CC $ac_cv_prog_cc_c89"
3617 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3618 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3619 esac
3620
3621
3622 ac_ext=c
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627
3628
3629 # On Suns, sometimes $CPP names a directory.
3630 if test -n "$CPP" && test -d "$CPP"; then
3631 CPP=
3632 fi
3633
3634 ## If not using gcc, and on Solaris, and no CPP specified, see if
3635 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3636 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3637 test x"$CPP" = x; then
3638 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3639 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3640
3641 if test "${emacs_cv_sunpro_c+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 else
3644 cat >conftest.$ac_ext <<_ACEOF
3645 /* confdefs.h. */
3646 _ACEOF
3647 cat confdefs.h >>conftest.$ac_ext
3648 cat >>conftest.$ac_ext <<_ACEOF
3649 /* end confdefs.h. */
3650
3651 int
3652 main ()
3653 {
3654 #ifndef __SUNPRO_C
3655 fail;
3656 #endif
3657
3658 ;
3659 return 0;
3660 }
3661 _ACEOF
3662 rm -f conftest.$ac_objext conftest$ac_exeext
3663 if { (ac_try="$ac_link"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_link") 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } && {
3676 test -z "$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3678 } && test -s conftest$ac_exeext &&
3679 $as_test_x conftest$ac_exeext; then
3680 emacs_cv_sunpro_c=yes
3681 else
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685 emacs_cv_sunpro_c=no
3686 fi
3687
3688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3689 conftest$ac_exeext conftest.$ac_ext
3690 fi
3691
3692 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3693 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3694
3695 if test x"$emacs_cv_sunpro_c" = xyes; then
3696 NON_GNU_CPP="$CC -E -Xs"
3697 fi
3698 fi
3699
3700 #### Some systems specify a CPP to use unless we are using GCC.
3701 #### Now that we know whether we are using GCC, we can decide whether
3702 #### to use that one.
3703 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3704 then
3705 CPP="$NON_GNU_CPP"
3706 fi
3707
3708 #### Some systems specify a CC to use unless we are using GCC.
3709 #### Now that we know whether we are using GCC, we can decide whether
3710 #### to use that one.
3711 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3712 test x$cc_specified != xyes
3713 then
3714 CC="$NON_GNU_CC"
3715 fi
3716
3717 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3718 then
3719 CC="$CC $GCC_TEST_OPTIONS"
3720 fi
3721
3722 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3723 then
3724 CC="$CC $NON_GCC_TEST_OPTIONS"
3725 fi
3726
3727
3728 cat >>confdefs.h <<\_ACEOF
3729 #define _GNU_SOURCE 1
3730 _ACEOF
3731
3732
3733 ac_ext=c
3734 ac_cpp='$CPP $CPPFLAGS'
3735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3738 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3739 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3740 # On Suns, sometimes $CPP names a directory.
3741 if test -n "$CPP" && test -d "$CPP"; then
3742 CPP=
3743 fi
3744 if test -z "$CPP"; then
3745 if test "${ac_cv_prog_CPP+set}" = set; then
3746 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 else
3748 # Double quotes because CPP needs to be expanded
3749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3750 do
3751 ac_preproc_ok=false
3752 for ac_c_preproc_warn_flag in '' yes
3753 do
3754 # Use a header file that comes with gcc, so configuring glibc
3755 # with a fresh cross-compiler works.
3756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3757 # <limits.h> exists even on freestanding compilers.
3758 # On the NeXT, cc -E runs the code through the compiler's parser,
3759 # not just through cpp. "Syntax error" is here to catch this case.
3760 cat >conftest.$ac_ext <<_ACEOF
3761 /* confdefs.h. */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3766 #ifdef __STDC__
3767 # include <limits.h>
3768 #else
3769 # include <assert.h>
3770 #endif
3771 Syntax error
3772 _ACEOF
3773 if { (ac_try="$ac_cpp conftest.$ac_ext"
3774 case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777 esac
3778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3785 (exit $ac_status); } >/dev/null && {
3786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3787 test ! -s conftest.err
3788 }; then
3789 :
3790 else
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3793
3794 # Broken: fails on valid input.
3795 continue
3796 fi
3797
3798 rm -f conftest.err conftest.$ac_ext
3799
3800 # OK, works on sane cases. Now check whether nonexistent headers
3801 # can be detected and how.
3802 cat >conftest.$ac_ext <<_ACEOF
3803 /* confdefs.h. */
3804 _ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3808 #include <ac_nonexistent.h>
3809 _ACEOF
3810 if { (ac_try="$ac_cpp conftest.$ac_ext"
3811 case "(($ac_try" in
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3814 esac
3815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } >/dev/null && {
3823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3824 test ! -s conftest.err
3825 }; then
3826 # Broken: success on invalid input.
3827 continue
3828 else
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832 # Passes both tests.
3833 ac_preproc_ok=:
3834 break
3835 fi
3836
3837 rm -f conftest.err conftest.$ac_ext
3838
3839 done
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then
3843 break
3844 fi
3845
3846 done
3847 ac_cv_prog_CPP=$CPP
3848
3849 fi
3850 CPP=$ac_cv_prog_CPP
3851 else
3852 ac_cv_prog_CPP=$CPP
3853 fi
3854 { echo "$as_me:$LINENO: result: $CPP" >&5
3855 echo "${ECHO_T}$CPP" >&6; }
3856 ac_preproc_ok=false
3857 for ac_c_preproc_warn_flag in '' yes
3858 do
3859 # Use a header file that comes with gcc, so configuring glibc
3860 # with a fresh cross-compiler works.
3861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3862 # <limits.h> exists even on freestanding compilers.
3863 # On the NeXT, cc -E runs the code through the compiler's parser,
3864 # not just through cpp. "Syntax error" is here to catch this case.
3865 cat >conftest.$ac_ext <<_ACEOF
3866 /* confdefs.h. */
3867 _ACEOF
3868 cat confdefs.h >>conftest.$ac_ext
3869 cat >>conftest.$ac_ext <<_ACEOF
3870 /* end confdefs.h. */
3871 #ifdef __STDC__
3872 # include <limits.h>
3873 #else
3874 # include <assert.h>
3875 #endif
3876 Syntax error
3877 _ACEOF
3878 if { (ac_try="$ac_cpp conftest.$ac_ext"
3879 case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882 esac
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } >/dev/null && {
3891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 }; then
3894 :
3895 else
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 # Broken: fails on valid input.
3900 continue
3901 fi
3902
3903 rm -f conftest.err conftest.$ac_ext
3904
3905 # OK, works on sane cases. Now check whether nonexistent headers
3906 # can be detected and how.
3907 cat >conftest.$ac_ext <<_ACEOF
3908 /* confdefs.h. */
3909 _ACEOF
3910 cat confdefs.h >>conftest.$ac_ext
3911 cat >>conftest.$ac_ext <<_ACEOF
3912 /* end confdefs.h. */
3913 #include <ac_nonexistent.h>
3914 _ACEOF
3915 if { (ac_try="$ac_cpp conftest.$ac_ext"
3916 case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } >/dev/null && {
3928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 }; then
3931 # Broken: success on invalid input.
3932 continue
3933 else
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3936
3937 # Passes both tests.
3938 ac_preproc_ok=:
3939 break
3940 fi
3941
3942 rm -f conftest.err conftest.$ac_ext
3943
3944 done
3945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3946 rm -f conftest.err conftest.$ac_ext
3947 if $ac_preproc_ok; then
3948 :
3949 else
3950 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3951 See \`config.log' for more details." >&5
3952 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3953 See \`config.log' for more details." >&2;}
3954 { (exit 1); exit 1; }; }
3955 fi
3956
3957 ac_ext=c
3958 ac_cpp='$CPP $CPPFLAGS'
3959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962
3963
3964 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3965 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 # Extract the first word of "grep ggrep" to use in msg output
3970 if test -z "$GREP"; then
3971 set dummy grep ggrep; ac_prog_name=$2
3972 if test "${ac_cv_path_GREP+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 else
3975 ac_path_GREP_found=false
3976 # Loop through the user's path and test for each of PROGNAME-LIST
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3979 do
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_prog in grep ggrep; do
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3985 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3986 # Check for GNU ac_path_GREP and select it if it is found.
3987 # Check for GNU $ac_path_GREP
3988 case `"$ac_path_GREP" --version 2>&1` in
3989 *GNU*)
3990 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3991 *)
3992 ac_count=0
3993 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3994 while :
3995 do
3996 cat "conftest.in" "conftest.in" >"conftest.tmp"
3997 mv "conftest.tmp" "conftest.in"
3998 cp "conftest.in" "conftest.nl"
3999 echo 'GREP' >> "conftest.nl"
4000 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4002 ac_count=`expr $ac_count + 1`
4003 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4004 # Best one so far, save it but keep looking for a better one
4005 ac_cv_path_GREP="$ac_path_GREP"
4006 ac_path_GREP_max=$ac_count
4007 fi
4008 # 10*(2^10) chars as input seems more than enough
4009 test $ac_count -gt 10 && break
4010 done
4011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4012 esac
4013
4014
4015 $ac_path_GREP_found && break 3
4016 done
4017 done
4018
4019 done
4020 IFS=$as_save_IFS
4021
4022
4023 fi
4024
4025 GREP="$ac_cv_path_GREP"
4026 if test -z "$GREP"; then
4027 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4028 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4029 { (exit 1); exit 1; }; }
4030 fi
4031
4032 else
4033 ac_cv_path_GREP=$GREP
4034 fi
4035
4036
4037 fi
4038 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4039 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4040 GREP="$ac_cv_path_GREP"
4041
4042
4043 { echo "$as_me:$LINENO: checking for egrep" >&5
4044 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4045 if test "${ac_cv_path_EGREP+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 else
4048 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4049 then ac_cv_path_EGREP="$GREP -E"
4050 else
4051 # Extract the first word of "egrep" to use in msg output
4052 if test -z "$EGREP"; then
4053 set dummy egrep; ac_prog_name=$2
4054 if test "${ac_cv_path_EGREP+set}" = set; then
4055 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 else
4057 ac_path_EGREP_found=false
4058 # Loop through the user's path and test for each of PROGNAME-LIST
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4061 do
4062 IFS=$as_save_IFS
4063 test -z "$as_dir" && as_dir=.
4064 for ac_prog in egrep; do
4065 for ac_exec_ext in '' $ac_executable_extensions; do
4066 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4067 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4068 # Check for GNU ac_path_EGREP and select it if it is found.
4069 # Check for GNU $ac_path_EGREP
4070 case `"$ac_path_EGREP" --version 2>&1` in
4071 *GNU*)
4072 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4073 *)
4074 ac_count=0
4075 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4076 while :
4077 do
4078 cat "conftest.in" "conftest.in" >"conftest.tmp"
4079 mv "conftest.tmp" "conftest.in"
4080 cp "conftest.in" "conftest.nl"
4081 echo 'EGREP' >> "conftest.nl"
4082 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4083 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4084 ac_count=`expr $ac_count + 1`
4085 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4086 # Best one so far, save it but keep looking for a better one
4087 ac_cv_path_EGREP="$ac_path_EGREP"
4088 ac_path_EGREP_max=$ac_count
4089 fi
4090 # 10*(2^10) chars as input seems more than enough
4091 test $ac_count -gt 10 && break
4092 done
4093 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4094 esac
4095
4096
4097 $ac_path_EGREP_found && break 3
4098 done
4099 done
4100
4101 done
4102 IFS=$as_save_IFS
4103
4104
4105 fi
4106
4107 EGREP="$ac_cv_path_EGREP"
4108 if test -z "$EGREP"; then
4109 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4110 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4111 { (exit 1); exit 1; }; }
4112 fi
4113
4114 else
4115 ac_cv_path_EGREP=$EGREP
4116 fi
4117
4118
4119 fi
4120 fi
4121 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4122 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4123 EGREP="$ac_cv_path_EGREP"
4124
4125
4126
4127 { echo "$as_me:$LINENO: checking for AIX" >&5
4128 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4129 cat >conftest.$ac_ext <<_ACEOF
4130 /* confdefs.h. */
4131 _ACEOF
4132 cat confdefs.h >>conftest.$ac_ext
4133 cat >>conftest.$ac_ext <<_ACEOF
4134 /* end confdefs.h. */
4135 #ifdef _AIX
4136 yes
4137 #endif
4138
4139 _ACEOF
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "yes" >/dev/null 2>&1; then
4142 { echo "$as_me:$LINENO: result: yes" >&5
4143 echo "${ECHO_T}yes" >&6; }
4144 cat >>confdefs.h <<\_ACEOF
4145 #define _ALL_SOURCE 1
4146 _ACEOF
4147
4148 else
4149 { echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6; }
4151 fi
4152 rm -f conftest*
4153
4154
4155 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4156 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4157 if test "${ac_cv_header_stdc+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h. */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4166 #include <stdlib.h>
4167 #include <stdarg.h>
4168 #include <string.h>
4169 #include <float.h>
4170
4171 int
4172 main ()
4173 {
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 rm -f conftest.$ac_objext
4180 if { (ac_try="$ac_compile"
4181 case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_compile") 2>conftest.er1
4187 ac_status=$?
4188 grep -v '^ *+' conftest.er1 >conftest.err
4189 rm -f conftest.er1
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); } && {
4193 test -z "$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4195 } && test -s conftest.$ac_objext; then
4196 ac_cv_header_stdc=yes
4197 else
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 ac_cv_header_stdc=no
4202 fi
4203
4204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205
4206 if test $ac_cv_header_stdc = yes; then
4207 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4208 cat >conftest.$ac_ext <<_ACEOF
4209 /* confdefs.h. */
4210 _ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4214 #include <string.h>
4215
4216 _ACEOF
4217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4218 $EGREP "memchr" >/dev/null 2>&1; then
4219 :
4220 else
4221 ac_cv_header_stdc=no
4222 fi
4223 rm -f conftest*
4224
4225 fi
4226
4227 if test $ac_cv_header_stdc = yes; then
4228 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h. */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #include <stdlib.h>
4236
4237 _ACEOF
4238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4239 $EGREP "free" >/dev/null 2>&1; then
4240 :
4241 else
4242 ac_cv_header_stdc=no
4243 fi
4244 rm -f conftest*
4245
4246 fi
4247
4248 if test $ac_cv_header_stdc = yes; then
4249 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4250 if test "$cross_compiling" = yes; then
4251 :
4252 else
4253 cat >conftest.$ac_ext <<_ACEOF
4254 /* confdefs.h. */
4255 _ACEOF
4256 cat confdefs.h >>conftest.$ac_ext
4257 cat >>conftest.$ac_ext <<_ACEOF
4258 /* end confdefs.h. */
4259 #include <ctype.h>
4260 #include <stdlib.h>
4261 #if ((' ' & 0x0FF) == 0x020)
4262 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4263 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4264 #else
4265 # define ISLOWER(c) \
4266 (('a' <= (c) && (c) <= 'i') \
4267 || ('j' <= (c) && (c) <= 'r') \
4268 || ('s' <= (c) && (c) <= 'z'))
4269 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4270 #endif
4271
4272 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4273 int
4274 main ()
4275 {
4276 int i;
4277 for (i = 0; i < 256; i++)
4278 if (XOR (islower (i), ISLOWER (i))
4279 || toupper (i) != TOUPPER (i))
4280 return 2;
4281 return 0;
4282 }
4283 _ACEOF
4284 rm -f conftest$ac_exeext
4285 if { (ac_try="$ac_link"
4286 case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289 esac
4290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_link") 2>&5
4292 ac_status=$?
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4295 { (case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_try") 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; }; then
4304 :
4305 else
4306 echo "$as_me: program exited with status $ac_status" >&5
4307 echo "$as_me: failed program was:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4309
4310 ( exit $ac_status )
4311 ac_cv_header_stdc=no
4312 fi
4313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4314 fi
4315
4316
4317 fi
4318 fi
4319 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4320 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4321 if test $ac_cv_header_stdc = yes; then
4322
4323 cat >>confdefs.h <<\_ACEOF
4324 #define STDC_HEADERS 1
4325 _ACEOF
4326
4327 fi
4328
4329 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4340 inttypes.h stdint.h unistd.h
4341 do
4342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348 cat >conftest.$ac_ext <<_ACEOF
4349 /* confdefs.h. */
4350 _ACEOF
4351 cat confdefs.h >>conftest.$ac_ext
4352 cat >>conftest.$ac_ext <<_ACEOF
4353 /* end confdefs.h. */
4354 $ac_includes_default
4355
4356 #include <$ac_header>
4357 _ACEOF
4358 rm -f conftest.$ac_objext
4359 if { (ac_try="$ac_compile"
4360 case "(($ac_try" in
4361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362 *) ac_try_echo=$ac_try;;
4363 esac
4364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4365 (eval "$ac_compile") 2>conftest.er1
4366 ac_status=$?
4367 grep -v '^ *+' conftest.er1 >conftest.err
4368 rm -f conftest.er1
4369 cat conftest.err >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); } && {
4372 test -z "$ac_c_werror_flag" ||
4373 test ! -s conftest.err
4374 } && test -s conftest.$ac_objext; then
4375 eval "$as_ac_Header=yes"
4376 else
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380 eval "$as_ac_Header=no"
4381 fi
4382
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384 fi
4385 ac_res=`eval echo '${'$as_ac_Header'}'`
4386 { echo "$as_me:$LINENO: result: $ac_res" >&5
4387 echo "${ECHO_T}$ac_res" >&6; }
4388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4389 cat >>confdefs.h <<_ACEOF
4390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4391 _ACEOF
4392
4393 fi
4394
4395 done
4396
4397
4398 if test "${ac_cv_header_minix_config_h+set}" = set; then
4399 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4400 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4401 if test "${ac_cv_header_minix_config_h+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 fi
4404 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4405 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4406 else
4407 # Is the header compilable?
4408 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4409 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4410 cat >conftest.$ac_ext <<_ACEOF
4411 /* confdefs.h. */
4412 _ACEOF
4413 cat confdefs.h >>conftest.$ac_ext
4414 cat >>conftest.$ac_ext <<_ACEOF
4415 /* end confdefs.h. */
4416 $ac_includes_default
4417 #include <minix/config.h>
4418 _ACEOF
4419 rm -f conftest.$ac_objext
4420 if { (ac_try="$ac_compile"
4421 case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4424 esac
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_compile") 2>conftest.er1
4427 ac_status=$?
4428 grep -v '^ *+' conftest.er1 >conftest.err
4429 rm -f conftest.er1
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } && {
4433 test -z "$ac_c_werror_flag" ||
4434 test ! -s conftest.err
4435 } && test -s conftest.$ac_objext; then
4436 ac_header_compiler=yes
4437 else
4438 echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441 ac_header_compiler=no
4442 fi
4443
4444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4446 echo "${ECHO_T}$ac_header_compiler" >&6; }
4447
4448 # Is the header present?
4449 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4450 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h. */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4457 #include <minix/config.h>
4458 _ACEOF
4459 if { (ac_try="$ac_cpp conftest.$ac_ext"
4460 case "(($ac_try" in
4461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4463 esac
4464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4466 ac_status=$?
4467 grep -v '^ *+' conftest.er1 >conftest.err
4468 rm -f conftest.er1
4469 cat conftest.err >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); } >/dev/null && {
4472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4473 test ! -s conftest.err
4474 }; then
4475 ac_header_preproc=yes
4476 else
4477 echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480 ac_header_preproc=no
4481 fi
4482
4483 rm -f conftest.err conftest.$ac_ext
4484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4485 echo "${ECHO_T}$ac_header_preproc" >&6; }
4486
4487 # So? What about this header?
4488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4489 yes:no: )
4490 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4491 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4492 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4493 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4494 ac_header_preproc=yes
4495 ;;
4496 no:yes:* )
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4498 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4500 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4502 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4504 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4506 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4508 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4509
4510 ;;
4511 esac
4512 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4513 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4514 if test "${ac_cv_header_minix_config_h+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517 ac_cv_header_minix_config_h=$ac_header_preproc
4518 fi
4519 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4520 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4521
4522 fi
4523 if test $ac_cv_header_minix_config_h = yes; then
4524 MINIX=yes
4525 else
4526 MINIX=
4527 fi
4528
4529
4530 if test "$MINIX" = yes; then
4531
4532 cat >>confdefs.h <<\_ACEOF
4533 #define _POSIX_SOURCE 1
4534 _ACEOF
4535
4536
4537 cat >>confdefs.h <<\_ACEOF
4538 #define _POSIX_1_SOURCE 2
4539 _ACEOF
4540
4541
4542 cat >>confdefs.h <<\_ACEOF
4543 #define _MINIX 1
4544 _ACEOF
4545
4546 fi
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4559 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4560 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 else
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h. */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569
4570 # define __EXTENSIONS__ 1
4571 $ac_includes_default
4572 int
4573 main ()
4574 {
4575
4576 ;
4577 return 0;
4578 }
4579 _ACEOF
4580 rm -f conftest.$ac_objext
4581 if { (ac_try="$ac_compile"
4582 case "(($ac_try" in
4583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4584 *) ac_try_echo=$ac_try;;
4585 esac
4586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4587 (eval "$ac_compile") 2>conftest.er1
4588 ac_status=$?
4589 grep -v '^ *+' conftest.er1 >conftest.err
4590 rm -f conftest.er1
4591 cat conftest.err >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); } && {
4594 test -z "$ac_c_werror_flag" ||
4595 test ! -s conftest.err
4596 } && test -s conftest.$ac_objext; then
4597 ac_cv_safe_to_define___extensions__=yes
4598 else
4599 echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.$ac_ext >&5
4601
4602 ac_cv_safe_to_define___extensions__=no
4603 fi
4604
4605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606 fi
4607 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4608 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4609 test $ac_cv_safe_to_define___extensions__ = yes &&
4610 cat >>confdefs.h <<\_ACEOF
4611 #define __EXTENSIONS__ 1
4612 _ACEOF
4613
4614 cat >>confdefs.h <<\_ACEOF
4615 #define _POSIX_PTHREAD_SEMANTICS 1
4616 _ACEOF
4617
4618 cat >>confdefs.h <<\_ACEOF
4619 #define _TANDEM_SOURCE 1
4620 _ACEOF
4621
4622
4623
4624 ### Use -Wno-pointer-sign if the compiler supports it
4625 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4626 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4627 SAVE_CFLAGS="$CFLAGS"
4628 CFLAGS="$CFLAGS -Wno-pointer-sign"
4629 cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h. */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635
4636 int
4637 main ()
4638 {
4639
4640 ;
4641 return 0;
4642 }
4643 _ACEOF
4644 rm -f conftest.$ac_objext
4645 if { (ac_try="$ac_compile"
4646 case "(($ac_try" in
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4649 esac
4650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4651 (eval "$ac_compile") 2>conftest.er1
4652 ac_status=$?
4653 grep -v '^ *+' conftest.er1 >conftest.err
4654 rm -f conftest.er1
4655 cat conftest.err >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } && {
4658 test -z "$ac_c_werror_flag" ||
4659 test ! -s conftest.err
4660 } && test -s conftest.$ac_objext; then
4661 has_option=yes
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 has_option=no
4667 fi
4668
4669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 if test $has_option = yes; then
4671 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4672 fi
4673 { echo "$as_me:$LINENO: result: $has_option" >&5
4674 echo "${ECHO_T}$has_option" >&6; }
4675 CFLAGS="$SAVE_CFLAGS"
4676 unset has_option
4677 unset SAVE_CFLAGS
4678
4679 #### Some other nice autoconf tests.
4680
4681 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4682 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4683 LN_S=$as_ln_s
4684 if test "$LN_S" = "ln -s"; then
4685 { echo "$as_me:$LINENO: result: yes" >&5
4686 echo "${ECHO_T}yes" >&6; }
4687 else
4688 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4689 echo "${ECHO_T}no, using $LN_S" >&6; }
4690 fi
4691
4692 ac_ext=c
4693 ac_cpp='$CPP $CPPFLAGS'
4694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4697 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4698 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4699 # On Suns, sometimes $CPP names a directory.
4700 if test -n "$CPP" && test -d "$CPP"; then
4701 CPP=
4702 fi
4703 if test -z "$CPP"; then
4704 if test "${ac_cv_prog_CPP+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 else
4707 # Double quotes because CPP needs to be expanded
4708 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4709 do
4710 ac_preproc_ok=false
4711 for ac_c_preproc_warn_flag in '' yes
4712 do
4713 # Use a header file that comes with gcc, so configuring glibc
4714 # with a fresh cross-compiler works.
4715 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4716 # <limits.h> exists even on freestanding compilers.
4717 # On the NeXT, cc -E runs the code through the compiler's parser,
4718 # not just through cpp. "Syntax error" is here to catch this case.
4719 cat >conftest.$ac_ext <<_ACEOF
4720 /* confdefs.h. */
4721 _ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 #ifdef __STDC__
4726 # include <limits.h>
4727 #else
4728 # include <assert.h>
4729 #endif
4730 Syntax error
4731 _ACEOF
4732 if { (ac_try="$ac_cpp conftest.$ac_ext"
4733 case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4739 ac_status=$?
4740 grep -v '^ *+' conftest.er1 >conftest.err
4741 rm -f conftest.er1
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } >/dev/null && {
4745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 }; then
4748 :
4749 else
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4752
4753 # Broken: fails on valid input.
4754 continue
4755 fi
4756
4757 rm -f conftest.err conftest.$ac_ext
4758
4759 # OK, works on sane cases. Now check whether nonexistent headers
4760 # can be detected and how.
4761 cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h. */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767 #include <ac_nonexistent.h>
4768 _ACEOF
4769 if { (ac_try="$ac_cpp conftest.$ac_ext"
4770 case "(($ac_try" in
4771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772 *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4776 ac_status=$?
4777 grep -v '^ *+' conftest.er1 >conftest.err
4778 rm -f conftest.er1
4779 cat conftest.err >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); } >/dev/null && {
4782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4783 test ! -s conftest.err
4784 }; then
4785 # Broken: success on invalid input.
4786 continue
4787 else
4788 echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791 # Passes both tests.
4792 ac_preproc_ok=:
4793 break
4794 fi
4795
4796 rm -f conftest.err conftest.$ac_ext
4797
4798 done
4799 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4800 rm -f conftest.err conftest.$ac_ext
4801 if $ac_preproc_ok; then
4802 break
4803 fi
4804
4805 done
4806 ac_cv_prog_CPP=$CPP
4807
4808 fi
4809 CPP=$ac_cv_prog_CPP
4810 else
4811 ac_cv_prog_CPP=$CPP
4812 fi
4813 { echo "$as_me:$LINENO: result: $CPP" >&5
4814 echo "${ECHO_T}$CPP" >&6; }
4815 ac_preproc_ok=false
4816 for ac_c_preproc_warn_flag in '' yes
4817 do
4818 # Use a header file that comes with gcc, so configuring glibc
4819 # with a fresh cross-compiler works.
4820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4821 # <limits.h> exists even on freestanding compilers.
4822 # On the NeXT, cc -E runs the code through the compiler's parser,
4823 # not just through cpp. "Syntax error" is here to catch this case.
4824 cat >conftest.$ac_ext <<_ACEOF
4825 /* confdefs.h. */
4826 _ACEOF
4827 cat confdefs.h >>conftest.$ac_ext
4828 cat >>conftest.$ac_ext <<_ACEOF
4829 /* end confdefs.h. */
4830 #ifdef __STDC__
4831 # include <limits.h>
4832 #else
4833 # include <assert.h>
4834 #endif
4835 Syntax error
4836 _ACEOF
4837 if { (ac_try="$ac_cpp conftest.$ac_ext"
4838 case "(($ac_try" in
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4841 esac
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null && {
4850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4852 }; then
4853 :
4854 else
4855 echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 # Broken: fails on valid input.
4859 continue
4860 fi
4861
4862 rm -f conftest.err conftest.$ac_ext
4863
4864 # OK, works on sane cases. Now check whether nonexistent headers
4865 # can be detected and how.
4866 cat >conftest.$ac_ext <<_ACEOF
4867 /* confdefs.h. */
4868 _ACEOF
4869 cat confdefs.h >>conftest.$ac_ext
4870 cat >>conftest.$ac_ext <<_ACEOF
4871 /* end confdefs.h. */
4872 #include <ac_nonexistent.h>
4873 _ACEOF
4874 if { (ac_try="$ac_cpp conftest.$ac_ext"
4875 case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4878 esac
4879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4881 ac_status=$?
4882 grep -v '^ *+' conftest.er1 >conftest.err
4883 rm -f conftest.er1
4884 cat conftest.err >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); } >/dev/null && {
4887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4888 test ! -s conftest.err
4889 }; then
4890 # Broken: success on invalid input.
4891 continue
4892 else
4893 echo "$as_me: failed program was:" >&5
4894 sed 's/^/| /' conftest.$ac_ext >&5
4895
4896 # Passes both tests.
4897 ac_preproc_ok=:
4898 break
4899 fi
4900
4901 rm -f conftest.err conftest.$ac_ext
4902
4903 done
4904 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4905 rm -f conftest.err conftest.$ac_ext
4906 if $ac_preproc_ok; then
4907 :
4908 else
4909 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4910 See \`config.log' for more details." >&5
4911 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4912 See \`config.log' for more details." >&2;}
4913 { (exit 1); exit 1; }; }
4914 fi
4915
4916 ac_ext=c
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921
4922 # Find a good install program. We prefer a C program (faster),
4923 # so one script is as good as another. But avoid the broken or
4924 # incompatible versions:
4925 # SysV /etc/install, /usr/sbin/install
4926 # SunOS /usr/etc/install
4927 # IRIX /sbin/install
4928 # AIX /bin/install
4929 # AmigaOS /C/install, which installs bootblocks on floppy discs
4930 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4931 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4932 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4933 # OS/2's system install, which has a completely different semantic
4934 # ./install, which can be erroneously created by make from ./install.sh.
4935 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4936 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4937 if test -z "$INSTALL"; then
4938 if test "${ac_cv_path_install+set}" = set; then
4939 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4943 do
4944 IFS=$as_save_IFS
4945 test -z "$as_dir" && as_dir=.
4946 # Account for people who put trailing slashes in PATH elements.
4947 case $as_dir/ in
4948 ./ | .// | /cC/* | \
4949 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4950 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4951 /usr/ucb/* ) ;;
4952 *)
4953 # OSF1 and SCO ODT 3.0 have their own names for install.
4954 # Don't use installbsd from OSF since it installs stuff as root
4955 # by default.
4956 for ac_prog in ginstall scoinst install; do
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4959 if test $ac_prog = install &&
4960 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4961 # AIX install. It has an incompatible calling convention.
4962 :
4963 elif test $ac_prog = install &&
4964 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4965 # program-specific install script used by HP pwplus--don't use.
4966 :
4967 else
4968 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4969 break 3
4970 fi
4971 fi
4972 done
4973 done
4974 ;;
4975 esac
4976 done
4977 IFS=$as_save_IFS
4978
4979
4980 fi
4981 if test "${ac_cv_path_install+set}" = set; then
4982 INSTALL=$ac_cv_path_install
4983 else
4984 # As a last resort, use the slow shell script. Don't cache a
4985 # value for INSTALL within a source directory, because that will
4986 # break other packages using the cache if that directory is
4987 # removed, or if the value is a relative name.
4988 INSTALL=$ac_install_sh
4989 fi
4990 fi
4991 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4992 echo "${ECHO_T}$INSTALL" >&6; }
4993
4994 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4995 # It thinks the first close brace ends the variable substitution.
4996 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4997
4998 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4999
5000 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5001
5002 if test "x$RANLIB" = x; then
5003 if test -n "$ac_tool_prefix"; then
5004 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5008 if test "${ac_cv_prog_RANLIB+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011 if test -n "$RANLIB"; then
5012 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029 fi
5030 fi
5031 RANLIB=$ac_cv_prog_RANLIB
5032 if test -n "$RANLIB"; then
5033 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5034 echo "${ECHO_T}$RANLIB" >&6; }
5035 else
5036 { echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6; }
5038 fi
5039
5040
5041 fi
5042 if test -z "$ac_cv_prog_RANLIB"; then
5043 ac_ct_RANLIB=$RANLIB
5044 # Extract the first word of "ranlib", so it can be a program name with args.
5045 set dummy ranlib; ac_word=$2
5046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051 if test -n "$ac_ct_RANLIB"; then
5052 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_ac_ct_RANLIB="ranlib"
5062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5064 fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069 fi
5070 fi
5071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5072 if test -n "$ac_ct_RANLIB"; then
5073 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5074 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5075 else
5076 { echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6; }
5078 fi
5079
5080 if test "x$ac_ct_RANLIB" = x; then
5081 RANLIB=":"
5082 else
5083 case $cross_compiling:$ac_tool_warned in
5084 yes:)
5085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5086 whose name does not start with the host triplet. If you think this
5087 configuration is useful to you, please write to autoconf@gnu.org." >&5
5088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5089 whose name does not start with the host triplet. If you think this
5090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5091 ac_tool_warned=yes ;;
5092 esac
5093 RANLIB=$ac_ct_RANLIB
5094 fi
5095 else
5096 RANLIB="$ac_cv_prog_RANLIB"
5097 fi
5098
5099 fi
5100 # Extract the first word of "install-info", so it can be a program name with args.
5101 set dummy install-info; ac_word=$2
5102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5104 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 else
5107 case $INSTALL_INFO in
5108 [\\/]* | ?:[\\/]*)
5109 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5110 ;;
5111 *)
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127 ;;
5128 esac
5129 fi
5130 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5131 if test -n "$INSTALL_INFO"; then
5132 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5133 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5134 else
5135 { echo "$as_me:$LINENO: result: no" >&5
5136 echo "${ECHO_T}no" >&6; }
5137 fi
5138
5139
5140 # Extract the first word of "install-info", so it can be a program name with args.
5141 set dummy install-info; ac_word=$2
5142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5144 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5145 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 else
5147 case $INSTALL_INFO in
5148 [\\/]* | ?:[\\/]*)
5149 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5150 ;;
5151 *)
5152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 for as_dir in /usr/sbin
5154 do
5155 IFS=$as_save_IFS
5156 test -z "$as_dir" && as_dir=.
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5159 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5160 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163 done
5164 done
5165 IFS=$as_save_IFS
5166
5167 ;;
5168 esac
5169 fi
5170 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5171 if test -n "$INSTALL_INFO"; then
5172 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5173 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5174 else
5175 { echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6; }
5177 fi
5178
5179
5180 # Extract the first word of "install-info", so it can be a program name with args.
5181 set dummy install-info; ac_word=$2
5182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5184 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187 case $INSTALL_INFO in
5188 [\\/]* | ?:[\\/]*)
5189 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5190 ;;
5191 *)
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in /sbin
5194 do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 break 2
5202 fi
5203 done
5204 done
5205 IFS=$as_save_IFS
5206
5207 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5208 ;;
5209 esac
5210 fi
5211 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5212 if test -n "$INSTALL_INFO"; then
5213 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5214 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5215 else
5216 { echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6; }
5218 fi
5219
5220
5221 # Extract the first word of "gzip", so it can be a program name with args.
5222 set dummy gzip; ac_word=$2
5223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5225 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228 case $GZIP_PROG in
5229 [\\/]* | ?:[\\/]*)
5230 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5231 ;;
5232 *)
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5243 fi
5244 done
5245 done
5246 IFS=$as_save_IFS
5247
5248 ;;
5249 esac
5250 fi
5251 GZIP_PROG=$ac_cv_path_GZIP_PROG
5252 if test -n "$GZIP_PROG"; then
5253 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5254 echo "${ECHO_T}$GZIP_PROG" >&6; }
5255 else
5256 { echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6; }
5258 fi
5259
5260
5261
5262
5263 ## Need makeinfo >= 4.6 (?) to build the manuals.
5264 # Extract the first word of "makeinfo", so it can be a program name with args.
5265 set dummy makeinfo; ac_word=$2
5266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5268 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5269 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271 case $MAKEINFO in
5272 [\\/]* | ?:[\\/]*)
5273 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5274 ;;
5275 *)
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279 IFS=$as_save_IFS
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 break 2
5286 fi
5287 done
5288 done
5289 IFS=$as_save_IFS
5290
5291 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5292 ;;
5293 esac
5294 fi
5295 MAKEINFO=$ac_cv_path_MAKEINFO
5296 if test -n "$MAKEINFO"; then
5297 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5298 echo "${ECHO_T}$MAKEINFO" >&6; }
5299 else
5300 { echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6; }
5302 fi
5303
5304
5305 if test "$MAKEINFO" != "no" && \
5306 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
5307 MAKEINFO=no
5308 fi
5309
5310 ## Makeinfo is unusual. For a released Emacs, the manuals are
5311 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5312 ## therefore in the category of "special tools" not normally required, which
5313 ## configure does not have to check for (eg autoconf itself).
5314 ## In a CVS checkout on the other hand, the manuals are not included.
5315 ## So makeinfo is a requirement to build from CVS, and configure
5316 ## should test for it as it does for any other build requirement.
5317 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5318 ## with pre-built manuals, from a CVS checkout.
5319 if test "$MAKEINFO" = "no"; then
5320 if test "x${with_makeinfo}" = "xno"; then
5321 MAKEINFO=off
5322 elif ! test -e $srcdir/info/emacs; then
5323 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5324 source tree does not seem to have pre-built manuals in the \`info' directory.
5325 Either install a suitable version of makeinfo, or re-run configure
5326 with the \`--without-makeinfo' option to build without the manuals. " >&5
5327 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5328 source tree does not seem to have pre-built manuals in the \`info' directory.
5329 Either install a suitable version of makeinfo, or re-run configure
5330 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5331 { (exit 1); exit 1; }; }
5332 fi
5333 fi
5334
5335
5336 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5337 then
5338 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5339 fi
5340
5341 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5342 then
5343 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5344 fi
5345
5346
5347 late_LDFLAGS=$LDFLAGS
5348 if test "$GCC" = yes; then
5349 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5350 else
5351 LDFLAGS="$LDFLAGS -znocombreloc"
5352 fi
5353
5354 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5355 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5356 cat >conftest.$ac_ext <<_ACEOF
5357 main(){return 0;}
5358 _ACEOF
5359 rm -f conftest.$ac_objext conftest$ac_exeext
5360 if { (ac_try="$ac_link"
5361 case "(($ac_try" in
5362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363 *) ac_try_echo=$ac_try;;
5364 esac
5365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5366 (eval "$ac_link") 2>conftest.er1
5367 ac_status=$?
5368 grep -v '^ *+' conftest.er1 >conftest.err
5369 rm -f conftest.er1
5370 cat conftest.err >&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } && {
5373 test -z "$ac_c_werror_flag" ||
5374 test ! -s conftest.err
5375 } && test -s conftest$ac_exeext &&
5376 $as_test_x conftest$ac_exeext; then
5377 { echo "$as_me:$LINENO: result: yes" >&5
5378 echo "${ECHO_T}yes" >&6; }
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5382
5383 LDFLAGS=$late_LDFLAGS
5384 { echo "$as_me:$LINENO: result: no" >&5
5385 echo "${ECHO_T}no" >&6; }
5386 fi
5387
5388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5389 conftest$ac_exeext conftest.$ac_ext
5390
5391 #### Extract some information from the operating system and machine files.
5392
5393 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5394 - which libraries the lib-src programs will want, and
5395 - whether the GNU malloc routines are usable..." >&5
5396 echo "$as_me: checking the machine- and system-dependent files to find out
5397 - which libraries the lib-src programs will want, and
5398 - whether the GNU malloc routines are usable..." >&6;}
5399
5400 ### First figure out CFLAGS (which we use for running the compiler here)
5401 ### and REAL_CFLAGS (which we use for real compilation).
5402 ### The two are the same except on a few systems, where they are made
5403 ### different to work around various lossages. For example,
5404 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5405 ### as implying static linking.
5406
5407 ### If the CFLAGS env var is specified, we use that value
5408 ### instead of the default.
5409
5410 ### It's not important that this name contain the PID; you can't run
5411 ### two configures in the same directory and have anything work
5412 ### anyway.
5413 tempcname="conftest.c"
5414
5415 echo '
5416 #include "'${srcdir}'/src/'${opsysfile}'"
5417 #include "'${srcdir}'/src/'${machfile}'"
5418 #ifndef LIBS_MACHINE
5419 #define LIBS_MACHINE
5420 #endif
5421 #ifndef LIBS_SYSTEM
5422 #define LIBS_SYSTEM
5423 #endif
5424 #ifndef C_SWITCH_SYSTEM
5425 #define C_SWITCH_SYSTEM
5426 #endif
5427 #ifndef C_SWITCH_MACHINE
5428 #define C_SWITCH_MACHINE
5429 #endif
5430 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5431 configure___ c_switch_system=C_SWITCH_SYSTEM
5432 configure___ c_switch_machine=C_SWITCH_MACHINE
5433
5434 #ifndef LIB_X11_LIB
5435 #define LIB_X11_LIB -lX11
5436 #endif
5437
5438 #ifndef LIBX11_SYSTEM
5439 #define LIBX11_SYSTEM
5440 #endif
5441 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5442
5443 #ifdef UNEXEC
5444 configure___ unexec=UNEXEC
5445 #else
5446 configure___ unexec=unexec.o
5447 #endif
5448
5449 #ifdef SYSTEM_MALLOC
5450 configure___ system_malloc=yes
5451 #else
5452 configure___ system_malloc=no
5453 #endif
5454
5455 #ifdef USE_MMAP_FOR_BUFFERS
5456 configure___ use_mmap_for_buffers=yes
5457 #else
5458 configure___ use_mmap_for_buffers=no
5459 #endif
5460
5461 #ifndef C_DEBUG_SWITCH
5462 #define C_DEBUG_SWITCH -g
5463 #endif
5464
5465 #ifndef C_OPTIMIZE_SWITCH
5466 #ifdef __GNUC__
5467 #define C_OPTIMIZE_SWITCH -O2
5468 #else
5469 #define C_OPTIMIZE_SWITCH -O
5470 #endif
5471 #endif
5472
5473 #ifndef C_WARNINGS_SWITCH
5474 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5475 #endif
5476
5477 #ifndef LD_SWITCH_MACHINE
5478 #define LD_SWITCH_MACHINE
5479 #endif
5480
5481 #ifndef LD_SWITCH_SYSTEM
5482 #define LD_SWITCH_SYSTEM
5483 #endif
5484
5485 #ifndef LD_SWITCH_X_SITE_AUX
5486 #define LD_SWITCH_X_SITE_AUX
5487 #endif
5488
5489 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5490 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5491
5492 #ifdef THIS_IS_CONFIGURE
5493
5494 /* Get the CFLAGS for tests in configure. */
5495 #ifdef __GNUC__
5496 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5497 #else
5498 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5499 #endif
5500
5501 #else /* not THIS_IS_CONFIGURE */
5502
5503 /* Get the CFLAGS for real compilation. */
5504 #ifdef __GNUC__
5505 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5506 #else
5507 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5508 #endif
5509
5510 #endif /* not THIS_IS_CONFIGURE */
5511 ' > ${tempcname}
5512
5513 # The value of CPP is a quoted variable reference, so we need to do this
5514 # to get its actual value...
5515 CPP=`eval "echo $CPP"`
5516 eval `${CPP} -Isrc ${tempcname} \
5517 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5518 if test "x$SPECIFIED_CFLAGS" = x; then
5519 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5520 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5521 else
5522 REAL_CFLAGS="$CFLAGS"
5523 fi
5524 rm ${tempcname}
5525
5526 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5527
5528 ### Make sure subsequent tests use flags consistent with the build flags.
5529
5530 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5531 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5532 else
5533 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5534 fi
5535
5536
5537
5538 # Check whether --enable-largefile was given.
5539 if test "${enable_largefile+set}" = set; then
5540 enableval=$enable_largefile;
5541 fi
5542
5543 if test "$enable_largefile" != no; then
5544
5545 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5546 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5547 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 else
5550 ac_cv_sys_largefile_CC=no
5551 if test "$GCC" != yes; then
5552 ac_save_CC=$CC
5553 while :; do
5554 # IRIX 6.2 and later do not support large files by default,
5555 # so use the C compiler's -n32 option if that helps.
5556 cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h. */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5562 #include <sys/types.h>
5563 /* Check that off_t can represent 2**63 - 1 correctly.
5564 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5565 since some C++ compilers masquerading as C compilers
5566 incorrectly reject 9223372036854775807. */
5567 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5568 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5569 && LARGE_OFF_T % 2147483647 == 1)
5570 ? 1 : -1];
5571 int
5572 main ()
5573 {
5574
5575 ;
5576 return 0;
5577 }
5578 _ACEOF
5579 rm -f conftest.$ac_objext
5580 if { (ac_try="$ac_compile"
5581 case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_compile") 2>conftest.er1
5587 ac_status=$?
5588 grep -v '^ *+' conftest.er1 >conftest.err
5589 rm -f conftest.er1
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_c_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest.$ac_objext; then
5596 break
5597 else
5598 echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601
5602 fi
5603
5604 rm -f core conftest.err conftest.$ac_objext
5605 CC="$CC -n32"
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5608 case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611 esac
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } && {
5620 test -z "$ac_c_werror_flag" ||
5621 test ! -s conftest.err
5622 } && test -s conftest.$ac_objext; then
5623 ac_cv_sys_largefile_CC=' -n32'; break
5624 else
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628
5629 fi
5630
5631 rm -f core conftest.err conftest.$ac_objext
5632 break
5633 done
5634 CC=$ac_save_CC
5635 rm -f conftest.$ac_ext
5636 fi
5637 fi
5638 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5639 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5640 if test "$ac_cv_sys_largefile_CC" != no; then
5641 CC=$CC$ac_cv_sys_largefile_CC
5642 fi
5643
5644 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5645 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5646 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 while :; do
5650 cat >conftest.$ac_ext <<_ACEOF
5651 /* confdefs.h. */
5652 _ACEOF
5653 cat confdefs.h >>conftest.$ac_ext
5654 cat >>conftest.$ac_ext <<_ACEOF
5655 /* end confdefs.h. */
5656 #include <sys/types.h>
5657 /* Check that off_t can represent 2**63 - 1 correctly.
5658 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5659 since some C++ compilers masquerading as C compilers
5660 incorrectly reject 9223372036854775807. */
5661 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5662 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5663 && LARGE_OFF_T % 2147483647 == 1)
5664 ? 1 : -1];
5665 int
5666 main ()
5667 {
5668
5669 ;
5670 return 0;
5671 }
5672 _ACEOF
5673 rm -f conftest.$ac_objext
5674 if { (ac_try="$ac_compile"
5675 case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678 esac
5679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5680 (eval "$ac_compile") 2>conftest.er1
5681 ac_status=$?
5682 grep -v '^ *+' conftest.er1 >conftest.err
5683 rm -f conftest.er1
5684 cat conftest.err >&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } && {
5687 test -z "$ac_c_werror_flag" ||
5688 test ! -s conftest.err
5689 } && test -s conftest.$ac_objext; then
5690 ac_cv_sys_file_offset_bits=no; break
5691 else
5692 echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5694
5695
5696 fi
5697
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699 cat >conftest.$ac_ext <<_ACEOF
5700 /* confdefs.h. */
5701 _ACEOF
5702 cat confdefs.h >>conftest.$ac_ext
5703 cat >>conftest.$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #define _FILE_OFFSET_BITS 64
5706 #include <sys/types.h>
5707 /* Check that off_t can represent 2**63 - 1 correctly.
5708 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5709 since some C++ compilers masquerading as C compilers
5710 incorrectly reject 9223372036854775807. */
5711 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5712 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5713 && LARGE_OFF_T % 2147483647 == 1)
5714 ? 1 : -1];
5715 int
5716 main ()
5717 {
5718
5719 ;
5720 return 0;
5721 }
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (ac_try="$ac_compile"
5725 case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest.$ac_objext; then
5740 ac_cv_sys_file_offset_bits=64; break
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745
5746 fi
5747
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 ac_cv_sys_file_offset_bits=unknown
5750 break
5751 done
5752 fi
5753 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5754 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5755 case $ac_cv_sys_file_offset_bits in #(
5756 no | unknown) ;;
5757 *)
5758 cat >>confdefs.h <<_ACEOF
5759 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5760 _ACEOF
5761 ;;
5762 esac
5763 rm -f conftest*
5764 if test $ac_cv_sys_file_offset_bits = unknown; then
5765 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5766 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5767 if test "${ac_cv_sys_large_files+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770 while :; do
5771 cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h. */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h. */
5777 #include <sys/types.h>
5778 /* Check that off_t can represent 2**63 - 1 correctly.
5779 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5780 since some C++ compilers masquerading as C compilers
5781 incorrectly reject 9223372036854775807. */
5782 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5783 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5784 && LARGE_OFF_T % 2147483647 == 1)
5785 ? 1 : -1];
5786 int
5787 main ()
5788 {
5789
5790 ;
5791 return 0;
5792 }
5793 _ACEOF
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5796 case "(($ac_try" in
5797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5799 esac
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5802 ac_status=$?
5803 grep -v '^ *+' conftest.er1 >conftest.err
5804 rm -f conftest.er1
5805 cat conftest.err >&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest.$ac_objext; then
5811 ac_cv_sys_large_files=no; break
5812 else
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.$ac_ext >&5
5815
5816
5817 fi
5818
5819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5826 #define _LARGE_FILES 1
5827 #include <sys/types.h>
5828 /* Check that off_t can represent 2**63 - 1 correctly.
5829 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5830 since some C++ compilers masquerading as C compilers
5831 incorrectly reject 9223372036854775807. */
5832 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5833 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5834 && LARGE_OFF_T % 2147483647 == 1)
5835 ? 1 : -1];
5836 int
5837 main ()
5838 {
5839
5840 ;
5841 return 0;
5842 }
5843 _ACEOF
5844 rm -f conftest.$ac_objext
5845 if { (ac_try="$ac_compile"
5846 case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5849 esac
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_compile") 2>conftest.er1
5852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } && {
5858 test -z "$ac_c_werror_flag" ||
5859 test ! -s conftest.err
5860 } && test -s conftest.$ac_objext; then
5861 ac_cv_sys_large_files=1; break
5862 else
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5865
5866
5867 fi
5868
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 ac_cv_sys_large_files=unknown
5871 break
5872 done
5873 fi
5874 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5875 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5876 case $ac_cv_sys_large_files in #(
5877 no | unknown) ;;
5878 *)
5879 cat >>confdefs.h <<_ACEOF
5880 #define _LARGE_FILES $ac_cv_sys_large_files
5881 _ACEOF
5882 ;;
5883 esac
5884 rm -f conftest*
5885 fi
5886 fi
5887
5888
5889
5890 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5891 ### be located in either /usr/lib64 or /usr/lib.
5892 case "${canonical}" in
5893 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5894 if test -d /usr/lib64; then
5895
5896 cat >>confdefs.h <<\_ACEOF
5897 #define HAVE_LIB64_DIR 1
5898 _ACEOF
5899
5900 fi
5901 esac
5902
5903
5904
5905
5906 if test "${with_sound}" != "no"; then
5907 # Sound support for GNU/Linux and the free BSDs.
5908
5909
5910
5911 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5912 do
5913 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5914 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5919 fi
5920 ac_res=`eval echo '${'$as_ac_Header'}'`
5921 { echo "$as_me:$LINENO: result: $ac_res" >&5
5922 echo "${ECHO_T}$ac_res" >&6; }
5923 else
5924 # Is the header compilable?
5925 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5926 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5927 cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h. */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 $ac_includes_default
5934 #include <$ac_header>
5935 _ACEOF
5936 rm -f conftest.$ac_objext
5937 if { (ac_try="$ac_compile"
5938 case "(($ac_try" in
5939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940 *) ac_try_echo=$ac_try;;
5941 esac
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_compile") 2>conftest.er1
5944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } && {
5950 test -z "$ac_c_werror_flag" ||
5951 test ! -s conftest.err
5952 } && test -s conftest.$ac_objext; then
5953 ac_header_compiler=yes
5954 else
5955 echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 ac_header_compiler=no
5959 fi
5960
5961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5962 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5963 echo "${ECHO_T}$ac_header_compiler" >&6; }
5964
5965 # Is the header present?
5966 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 #include <$ac_header>
5975 _ACEOF
5976 if { (ac_try="$ac_cpp conftest.$ac_ext"
5977 case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980 esac
5981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5983 ac_status=$?
5984 grep -v '^ *+' conftest.er1 >conftest.err
5985 rm -f conftest.er1
5986 cat conftest.err >&5
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); } >/dev/null && {
5989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5990 test ! -s conftest.err
5991 }; then
5992 ac_header_preproc=yes
5993 else
5994 echo "$as_me: failed program was:" >&5
5995 sed 's/^/| /' conftest.$ac_ext >&5
5996
5997 ac_header_preproc=no
5998 fi
5999
6000 rm -f conftest.err conftest.$ac_ext
6001 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6002 echo "${ECHO_T}$ac_header_preproc" >&6; }
6003
6004 # So? What about this header?
6005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6006 yes:no: )
6007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6008 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6011 ac_header_preproc=yes
6012 ;;
6013 no:yes:* )
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6015 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6017 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6019 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6021 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6025 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6026
6027 ;;
6028 esac
6029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034 eval "$as_ac_Header=\$ac_header_preproc"
6035 fi
6036 ac_res=`eval echo '${'$as_ac_Header'}'`
6037 { echo "$as_me:$LINENO: result: $ac_res" >&5
6038 echo "${ECHO_T}$ac_res" >&6; }
6039
6040 fi
6041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6042 cat >>confdefs.h <<_ACEOF
6043 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6044 _ACEOF
6045
6046 fi
6047
6048 done
6049
6050 # Emulation library used on NetBSD.
6051 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6052 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6053 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 ac_check_lib_save_LIBS=$LIBS
6057 LIBS="-lossaudio $LIBS"
6058 cat >conftest.$ac_ext <<_ACEOF
6059 /* confdefs.h. */
6060 _ACEOF
6061 cat confdefs.h >>conftest.$ac_ext
6062 cat >>conftest.$ac_ext <<_ACEOF
6063 /* end confdefs.h. */
6064
6065 /* Override any GCC internal prototype to avoid an error.
6066 Use char because int might match the return type of a GCC
6067 builtin and then its argument prototype would still apply. */
6068 #ifdef __cplusplus
6069 extern "C"
6070 #endif
6071 char _oss_ioctl ();
6072 int
6073 main ()
6074 {
6075 return _oss_ioctl ();
6076 ;
6077 return 0;
6078 }
6079 _ACEOF
6080 rm -f conftest.$ac_objext conftest$ac_exeext
6081 if { (ac_try="$ac_link"
6082 case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085 esac
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_link") 2>conftest.er1
6088 ac_status=$?
6089 grep -v '^ *+' conftest.er1 >conftest.err
6090 rm -f conftest.er1
6091 cat conftest.err >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); } && {
6094 test -z "$ac_c_werror_flag" ||
6095 test ! -s conftest.err
6096 } && test -s conftest$ac_exeext &&
6097 $as_test_x conftest$ac_exeext; then
6098 ac_cv_lib_ossaudio__oss_ioctl=yes
6099 else
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103 ac_cv_lib_ossaudio__oss_ioctl=no
6104 fi
6105
6106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6107 conftest$ac_exeext conftest.$ac_ext
6108 LIBS=$ac_check_lib_save_LIBS
6109 fi
6110 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6111 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6112 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6113 LIBSOUND=-lossaudio
6114 else
6115 LIBSOUND=
6116 fi
6117
6118
6119
6120 ALSA_REQUIRED=1.0.0
6121 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6122
6123 succeeded=no
6124
6125 # Extract the first word of "pkg-config", so it can be a program name with args.
6126 set dummy pkg-config; ac_word=$2
6127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6129 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6131 else
6132 case $PKG_CONFIG in
6133 [\\/]* | ?:[\\/]*)
6134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6135 ;;
6136 *)
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6153 ;;
6154 esac
6155 fi
6156 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6157 if test -n "$PKG_CONFIG"; then
6158 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6159 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6160 else
6161 { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6163 fi
6164
6165
6166
6167 if test "$PKG_CONFIG" = "no" ; then
6168 HAVE_ALSA=no
6169 else
6170 PKG_CONFIG_MIN_VERSION=0.9.0
6171 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6172 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6173 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6174
6175 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6176 { echo "$as_me:$LINENO: result: yes" >&5
6177 echo "${ECHO_T}yes" >&6; }
6178 succeeded=yes
6179
6180 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6181 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6182 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6183 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6184 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6185
6186 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6187 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6188 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6189 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6190 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6191 else
6192 { echo "$as_me:$LINENO: result: no" >&5
6193 echo "${ECHO_T}no" >&6; }
6194 ALSA_CFLAGS=""
6195 ALSA_LIBS=""
6196 ## If we have a custom action on failure, don't print errors, but
6197 ## do set a variable so people can do so.
6198 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6199
6200 fi
6201
6202
6203
6204 else
6205 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6206 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6207 fi
6208 fi
6209
6210 if test $succeeded = yes; then
6211 HAVE_ALSA=yes
6212 else
6213 HAVE_ALSA=no
6214 fi
6215
6216 if test $HAVE_ALSA = yes; then
6217 SAVE_CFLAGS="$CFLAGS"
6218 SAVE_LDFLAGS="$LDFLAGS"
6219 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6220 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6221 cat >conftest.$ac_ext <<_ACEOF
6222 /* confdefs.h. */
6223 _ACEOF
6224 cat confdefs.h >>conftest.$ac_ext
6225 cat >>conftest.$ac_ext <<_ACEOF
6226 /* end confdefs.h. */
6227 #include <asoundlib.h>
6228 int
6229 main ()
6230 {
6231 snd_lib_error_set_handler (0);
6232 ;
6233 return 0;
6234 }
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (ac_try="$ac_compile"
6238 case "(($ac_try" in
6239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240 *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243 (eval "$ac_compile") 2>conftest.er1
6244 ac_status=$?
6245 grep -v '^ *+' conftest.er1 >conftest.err
6246 rm -f conftest.er1
6247 cat conftest.err >&5
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } && {
6250 test -z "$ac_c_werror_flag" ||
6251 test ! -s conftest.err
6252 } && test -s conftest.$ac_objext; then
6253 emacs_alsa_normal=yes
6254 else
6255 echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6257
6258 emacs_alsa_normal=no
6259 fi
6260
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 if test "$emacs_alsa_normal" != yes; then
6263 cat >conftest.$ac_ext <<_ACEOF
6264 /* confdefs.h. */
6265 _ACEOF
6266 cat confdefs.h >>conftest.$ac_ext
6267 cat >>conftest.$ac_ext <<_ACEOF
6268 /* end confdefs.h. */
6269 #include <alsa/asoundlib.h>
6270 int
6271 main ()
6272 {
6273 snd_lib_error_set_handler (0);
6274 ;
6275 return 0;
6276 }
6277 _ACEOF
6278 rm -f conftest.$ac_objext
6279 if { (ac_try="$ac_compile"
6280 case "(($ac_try" in
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6283 esac
6284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_compile") 2>conftest.er1
6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } && {
6292 test -z "$ac_c_werror_flag" ||
6293 test ! -s conftest.err
6294 } && test -s conftest.$ac_objext; then
6295 emacs_alsa_subdir=yes
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 emacs_alsa_subdir=no
6301 fi
6302
6303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 if test "$emacs_alsa_subdir" != yes; then
6305 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6306 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6307 { (exit 1); exit 1; }; }
6308 fi
6309 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6310 fi
6311
6312 CFLAGS="$SAVE_CFLAGS"
6313 LDFLAGS="$SAVE_LDFLAGS"
6314 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6315 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6316
6317 cat >>confdefs.h <<\_ACEOF
6318 #define HAVE_ALSA 1
6319 _ACEOF
6320
6321 fi
6322
6323 fi
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6351 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6352 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6353 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6354 sys/utsname.h pwd.h
6355 do
6356 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 fi
6363 ac_res=`eval echo '${'$as_ac_Header'}'`
6364 { echo "$as_me:$LINENO: result: $ac_res" >&5
6365 echo "${ECHO_T}$ac_res" >&6; }
6366 else
6367 # Is the header compilable?
6368 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6369 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6370 cat >conftest.$ac_ext <<_ACEOF
6371 /* confdefs.h. */
6372 _ACEOF
6373 cat confdefs.h >>conftest.$ac_ext
6374 cat >>conftest.$ac_ext <<_ACEOF
6375 /* end confdefs.h. */
6376 $ac_includes_default
6377 #include <$ac_header>
6378 _ACEOF
6379 rm -f conftest.$ac_objext
6380 if { (ac_try="$ac_compile"
6381 case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6384 esac
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_compile") 2>conftest.er1
6387 ac_status=$?
6388 grep -v '^ *+' conftest.er1 >conftest.err
6389 rm -f conftest.er1
6390 cat conftest.err >&5
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); } && {
6393 test -z "$ac_c_werror_flag" ||
6394 test ! -s conftest.err
6395 } && test -s conftest.$ac_objext; then
6396 ac_header_compiler=yes
6397 else
6398 echo "$as_me: failed program was:" >&5
6399 sed 's/^/| /' conftest.$ac_ext >&5
6400
6401 ac_header_compiler=no
6402 fi
6403
6404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6405 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6406 echo "${ECHO_T}$ac_header_compiler" >&6; }
6407
6408 # Is the header present?
6409 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6410 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h. */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 #include <$ac_header>
6418 _ACEOF
6419 if { (ac_try="$ac_cpp conftest.$ac_ext"
6420 case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423 esac
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } >/dev/null && {
6432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6433 test ! -s conftest.err
6434 }; then
6435 ac_header_preproc=yes
6436 else
6437 echo "$as_me: failed program was:" >&5
6438 sed 's/^/| /' conftest.$ac_ext >&5
6439
6440 ac_header_preproc=no
6441 fi
6442
6443 rm -f conftest.err conftest.$ac_ext
6444 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6445 echo "${ECHO_T}$ac_header_preproc" >&6; }
6446
6447 # So? What about this header?
6448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6449 yes:no: )
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6454 ac_header_preproc=yes
6455 ;;
6456 no:yes:* )
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6469
6470 ;;
6471 esac
6472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 else
6477 eval "$as_ac_Header=\$ac_header_preproc"
6478 fi
6479 ac_res=`eval echo '${'$as_ac_Header'}'`
6480 { echo "$as_me:$LINENO: result: $ac_res" >&5
6481 echo "${ECHO_T}$ac_res" >&6; }
6482
6483 fi
6484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6485 cat >>confdefs.h <<_ACEOF
6486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6487 _ACEOF
6488
6489 fi
6490
6491 done
6492
6493
6494 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6495 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6496 cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h. */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6502 #include <sys/personality.h>
6503 int
6504 main ()
6505 {
6506 personality (PER_LINUX32)
6507 ;
6508 return 0;
6509 }
6510 _ACEOF
6511 rm -f conftest.$ac_objext
6512 if { (ac_try="$ac_compile"
6513 case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516 esac
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_compile") 2>conftest.er1
6519 ac_status=$?
6520 grep -v '^ *+' conftest.er1 >conftest.err
6521 rm -f conftest.er1
6522 cat conftest.err >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); } && {
6525 test -z "$ac_c_werror_flag" ||
6526 test ! -s conftest.err
6527 } && test -s conftest.$ac_objext; then
6528 emacs_cv_personality_linux32=yes
6529 else
6530 echo "$as_me: failed program was:" >&5
6531 sed 's/^/| /' conftest.$ac_ext >&5
6532
6533 emacs_cv_personality_linux32=no
6534 fi
6535
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6538 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6539
6540 if test $emacs_cv_personality_linux32 = yes; then
6541
6542 cat >>confdefs.h <<\_ACEOF
6543 #define HAVE_PERSONALITY_LINUX32 1
6544 _ACEOF
6545
6546 fi
6547
6548
6549 for ac_header in term.h
6550 do
6551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h. */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 #include <$ac_header>
6564 _ACEOF
6565 if { (ac_try="$ac_cpp conftest.$ac_ext"
6566 case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569 esac
6570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6572 ac_status=$?
6573 grep -v '^ *+' conftest.er1 >conftest.err
6574 rm -f conftest.er1
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } >/dev/null && {
6578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6579 test ! -s conftest.err
6580 }; then
6581 eval "$as_ac_Header=yes"
6582 else
6583 echo "$as_me: failed program was:" >&5
6584 sed 's/^/| /' conftest.$ac_ext >&5
6585
6586 eval "$as_ac_Header=no"
6587 fi
6588
6589 rm -f conftest.err conftest.$ac_ext
6590 fi
6591 ac_res=`eval echo '${'$as_ac_Header'}'`
6592 { echo "$as_me:$LINENO: result: $ac_res" >&5
6593 echo "${ECHO_T}$ac_res" >&6; }
6594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6595 cat >>confdefs.h <<_ACEOF
6596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 _ACEOF
6598
6599 fi
6600
6601 done
6602
6603 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6604 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6605 if test "${ac_cv_header_stdc+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6607 else
6608 cat >conftest.$ac_ext <<_ACEOF
6609 /* confdefs.h. */
6610 _ACEOF
6611 cat confdefs.h >>conftest.$ac_ext
6612 cat >>conftest.$ac_ext <<_ACEOF
6613 /* end confdefs.h. */
6614 #include <stdlib.h>
6615 #include <stdarg.h>
6616 #include <string.h>
6617 #include <float.h>
6618
6619 int
6620 main ()
6621 {
6622
6623 ;
6624 return 0;
6625 }
6626 _ACEOF
6627 rm -f conftest.$ac_objext
6628 if { (ac_try="$ac_compile"
6629 case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6632 esac
6633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634 (eval "$ac_compile") 2>conftest.er1
6635 ac_status=$?
6636 grep -v '^ *+' conftest.er1 >conftest.err
6637 rm -f conftest.er1
6638 cat conftest.err >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); } && {
6641 test -z "$ac_c_werror_flag" ||
6642 test ! -s conftest.err
6643 } && test -s conftest.$ac_objext; then
6644 ac_cv_header_stdc=yes
6645 else
6646 echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649 ac_cv_header_stdc=no
6650 fi
6651
6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653
6654 if test $ac_cv_header_stdc = yes; then
6655 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6656 cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h. */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6662 #include <string.h>
6663
6664 _ACEOF
6665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6666 $EGREP "memchr" >/dev/null 2>&1; then
6667 :
6668 else
6669 ac_cv_header_stdc=no
6670 fi
6671 rm -f conftest*
6672
6673 fi
6674
6675 if test $ac_cv_header_stdc = yes; then
6676 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6677 cat >conftest.$ac_ext <<_ACEOF
6678 /* confdefs.h. */
6679 _ACEOF
6680 cat confdefs.h >>conftest.$ac_ext
6681 cat >>conftest.$ac_ext <<_ACEOF
6682 /* end confdefs.h. */
6683 #include <stdlib.h>
6684
6685 _ACEOF
6686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6687 $EGREP "free" >/dev/null 2>&1; then
6688 :
6689 else
6690 ac_cv_header_stdc=no
6691 fi
6692 rm -f conftest*
6693
6694 fi
6695
6696 if test $ac_cv_header_stdc = yes; then
6697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6698 if test "$cross_compiling" = yes; then
6699 :
6700 else
6701 cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h. */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 #include <ctype.h>
6708 #include <stdlib.h>
6709 #if ((' ' & 0x0FF) == 0x020)
6710 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6711 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6712 #else
6713 # define ISLOWER(c) \
6714 (('a' <= (c) && (c) <= 'i') \
6715 || ('j' <= (c) && (c) <= 'r') \
6716 || ('s' <= (c) && (c) <= 'z'))
6717 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6718 #endif
6719
6720 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6721 int
6722 main ()
6723 {
6724 int i;
6725 for (i = 0; i < 256; i++)
6726 if (XOR (islower (i), ISLOWER (i))
6727 || toupper (i) != TOUPPER (i))
6728 return 2;
6729 return 0;
6730 }
6731 _ACEOF
6732 rm -f conftest$ac_exeext
6733 if { (ac_try="$ac_link"
6734 case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737 esac
6738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6739 (eval "$ac_link") 2>&5
6740 ac_status=$?
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6743 { (case "(($ac_try" in
6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6746 esac
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_try") 2>&5
6749 ac_status=$?
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6752 :
6753 else
6754 echo "$as_me: program exited with status $ac_status" >&5
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6757
6758 ( exit $ac_status )
6759 ac_cv_header_stdc=no
6760 fi
6761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6762 fi
6763
6764
6765 fi
6766 fi
6767 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6768 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6769 if test $ac_cv_header_stdc = yes; then
6770
6771 cat >>confdefs.h <<\_ACEOF
6772 #define STDC_HEADERS 1
6773 _ACEOF
6774
6775 fi
6776
6777 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6778 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6779 if test "${ac_cv_header_time+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782 cat >conftest.$ac_ext <<_ACEOF
6783 /* confdefs.h. */
6784 _ACEOF
6785 cat confdefs.h >>conftest.$ac_ext
6786 cat >>conftest.$ac_ext <<_ACEOF
6787 /* end confdefs.h. */
6788 #include <sys/types.h>
6789 #include <sys/time.h>
6790 #include <time.h>
6791
6792 int
6793 main ()
6794 {
6795 if ((struct tm *) 0)
6796 return 0;
6797 ;
6798 return 0;
6799 }
6800 _ACEOF
6801 rm -f conftest.$ac_objext
6802 if { (ac_try="$ac_compile"
6803 case "(($ac_try" in
6804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6805 *) ac_try_echo=$ac_try;;
6806 esac
6807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6808 (eval "$ac_compile") 2>conftest.er1
6809 ac_status=$?
6810 grep -v '^ *+' conftest.er1 >conftest.err
6811 rm -f conftest.er1
6812 cat conftest.err >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); } && {
6815 test -z "$ac_c_werror_flag" ||
6816 test ! -s conftest.err
6817 } && test -s conftest.$ac_objext; then
6818 ac_cv_header_time=yes
6819 else
6820 echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6822
6823 ac_cv_header_time=no
6824 fi
6825
6826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827 fi
6828 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6829 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6830 if test $ac_cv_header_time = yes; then
6831
6832 cat >>confdefs.h <<\_ACEOF
6833 #define TIME_WITH_SYS_TIME 1
6834 _ACEOF
6835
6836 fi
6837
6838 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6839 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6840 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6841 echo $ECHO_N "(cached) $ECHO_C" >&6
6842 else
6843 cat >conftest.$ac_ext <<_ACEOF
6844 /* confdefs.h. */
6845 _ACEOF
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6849 $ac_includes_default
6850 int
6851 main ()
6852 {
6853 #ifndef sys_siglist
6854 (void) sys_siglist;
6855 #endif
6856
6857 ;
6858 return 0;
6859 }
6860 _ACEOF
6861 rm -f conftest.$ac_objext
6862 if { (ac_try="$ac_compile"
6863 case "(($ac_try" in
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6866 esac
6867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_compile") 2>conftest.er1
6869 ac_status=$?
6870 grep -v '^ *+' conftest.er1 >conftest.err
6871 rm -f conftest.er1
6872 cat conftest.err >&5
6873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6874 (exit $ac_status); } && {
6875 test -z "$ac_c_werror_flag" ||
6876 test ! -s conftest.err
6877 } && test -s conftest.$ac_objext; then
6878 ac_cv_have_decl_sys_siglist=yes
6879 else
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6882
6883 ac_cv_have_decl_sys_siglist=no
6884 fi
6885
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 fi
6888 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6889 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6890 if test $ac_cv_have_decl_sys_siglist = yes; then
6891
6892 cat >>confdefs.h <<_ACEOF
6893 #define HAVE_DECL_SYS_SIGLIST 1
6894 _ACEOF
6895
6896
6897 else
6898 cat >>confdefs.h <<_ACEOF
6899 #define HAVE_DECL_SYS_SIGLIST 0
6900 _ACEOF
6901
6902
6903 fi
6904
6905
6906 if test $ac_cv_have_decl_sys_siglist != yes; then
6907 # For Tru64, at least:
6908 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6909 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6910 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913 cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 $ac_includes_default
6920 int
6921 main ()
6922 {
6923 #ifndef __sys_siglist
6924 (void) __sys_siglist;
6925 #endif
6926
6927 ;
6928 return 0;
6929 }
6930 _ACEOF
6931 rm -f conftest.$ac_objext
6932 if { (ac_try="$ac_compile"
6933 case "(($ac_try" in
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6936 esac
6937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6938 (eval "$ac_compile") 2>conftest.er1
6939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && {
6945 test -z "$ac_c_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest.$ac_objext; then
6948 ac_cv_have_decl___sys_siglist=yes
6949 else
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6952
6953 ac_cv_have_decl___sys_siglist=no
6954 fi
6955
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 fi
6958 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6959 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6960 if test $ac_cv_have_decl___sys_siglist = yes; then
6961
6962 cat >>confdefs.h <<_ACEOF
6963 #define HAVE_DECL___SYS_SIGLIST 1
6964 _ACEOF
6965
6966
6967 else
6968 cat >>confdefs.h <<_ACEOF
6969 #define HAVE_DECL___SYS_SIGLIST 0
6970 _ACEOF
6971
6972
6973 fi
6974
6975
6976 if test $ac_cv_have_decl___sys_siglist = yes; then
6977
6978 cat >>confdefs.h <<\_ACEOF
6979 #define sys_siglist __sys_siglist
6980 _ACEOF
6981
6982 fi
6983 fi
6984 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6985 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6986 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6987 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 else
6989 cat >conftest.$ac_ext <<_ACEOF
6990 /* confdefs.h. */
6991 _ACEOF
6992 cat confdefs.h >>conftest.$ac_ext
6993 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */
6995 #include <sys/types.h>
6996 #include <sys/wait.h>
6997 #ifndef WEXITSTATUS
6998 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6999 #endif
7000 #ifndef WIFEXITED
7001 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7002 #endif
7003
7004 int
7005 main ()
7006 {
7007 int s;
7008 wait (&s);
7009 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7010 ;
7011 return 0;
7012 }
7013 _ACEOF
7014 rm -f conftest.$ac_objext
7015 if { (ac_try="$ac_compile"
7016 case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019 esac
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021 (eval "$ac_compile") 2>conftest.er1
7022 ac_status=$?
7023 grep -v '^ *+' conftest.er1 >conftest.err
7024 rm -f conftest.er1
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } && {
7028 test -z "$ac_c_werror_flag" ||
7029 test ! -s conftest.err
7030 } && test -s conftest.$ac_objext; then
7031 ac_cv_header_sys_wait_h=yes
7032 else
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036 ac_cv_header_sys_wait_h=no
7037 fi
7038
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 fi
7041 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7042 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7043 if test $ac_cv_header_sys_wait_h = yes; then
7044
7045 cat >>confdefs.h <<\_ACEOF
7046 #define HAVE_SYS_WAIT_H 1
7047 _ACEOF
7048
7049 fi
7050
7051
7052 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7053 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7054 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7055 echo $ECHO_N "(cached) $ECHO_C" >&6
7056 else
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 #ifdef TIME_WITH_SYS_TIME
7064 #include <sys/time.h>
7065 #include <time.h>
7066 #else
7067 #ifdef HAVE_SYS_TIME_H
7068 #include <sys/time.h>
7069 #else
7070 #include <time.h>
7071 #endif
7072 #endif
7073 #ifdef HAVE_UTIME_H
7074 #include <utime.h>
7075 #endif
7076 int
7077 main ()
7078 {
7079 static struct utimbuf x; x.actime = x.modtime;
7080 ;
7081 return 0;
7082 }
7083 _ACEOF
7084 rm -f conftest.$ac_objext
7085 if { (ac_try="$ac_compile"
7086 case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7089 esac
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_compile") 2>conftest.er1
7092 ac_status=$?
7093 grep -v '^ *+' conftest.er1 >conftest.err
7094 rm -f conftest.er1
7095 cat conftest.err >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); } && {
7098 test -z "$ac_c_werror_flag" ||
7099 test ! -s conftest.err
7100 } && test -s conftest.$ac_objext; then
7101 emacs_cv_struct_utimbuf=yes
7102 else
7103 echo "$as_me: failed program was:" >&5
7104 sed 's/^/| /' conftest.$ac_ext >&5
7105
7106 emacs_cv_struct_utimbuf=no
7107 fi
7108
7109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110 fi
7111 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7112 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7113 if test $emacs_cv_struct_utimbuf = yes; then
7114
7115 cat >>confdefs.h <<\_ACEOF
7116 #define HAVE_STRUCT_UTIMBUF 1
7117 _ACEOF
7118
7119 fi
7120
7121 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7122 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7123 if test "${ac_cv_type_signal+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7125 else
7126 cat >conftest.$ac_ext <<_ACEOF
7127 /* confdefs.h. */
7128 _ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7132 #include <sys/types.h>
7133 #include <signal.h>
7134
7135 int
7136 main ()
7137 {
7138 return *(signal (0, 0)) (0) == 1;
7139 ;
7140 return 0;
7141 }
7142 _ACEOF
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7145 case "(($ac_try" in
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7148 esac
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
7151 ac_status=$?
7152 grep -v '^ *+' conftest.er1 >conftest.err
7153 rm -f conftest.er1
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
7160 ac_cv_type_signal=int
7161 else
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165 ac_cv_type_signal=void
7166 fi
7167
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 fi
7170 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7171 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7172
7173 cat >>confdefs.h <<_ACEOF
7174 #define RETSIGTYPE $ac_cv_type_signal
7175 _ACEOF
7176
7177
7178
7179 { echo "$as_me:$LINENO: checking for speed_t" >&5
7180 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7181 if test "${emacs_cv_speed_t+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 #include <termios.h>
7191 int
7192 main ()
7193 {
7194 speed_t x = 1;
7195 ;
7196 return 0;
7197 }
7198 _ACEOF
7199 rm -f conftest.$ac_objext
7200 if { (ac_try="$ac_compile"
7201 case "(($ac_try" in
7202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7204 esac
7205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7206 (eval "$ac_compile") 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } && {
7213 test -z "$ac_c_werror_flag" ||
7214 test ! -s conftest.err
7215 } && test -s conftest.$ac_objext; then
7216 emacs_cv_speed_t=yes
7217 else
7218 echo "$as_me: failed program was:" >&5
7219 sed 's/^/| /' conftest.$ac_ext >&5
7220
7221 emacs_cv_speed_t=no
7222 fi
7223
7224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7225 fi
7226 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7227 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7228 if test $emacs_cv_speed_t = yes; then
7229
7230 cat >>confdefs.h <<\_ACEOF
7231 #define HAVE_SPEED_T 1
7232 _ACEOF
7233
7234 fi
7235
7236 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7237 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7238 if test "${emacs_cv_struct_timeval+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 #ifdef TIME_WITH_SYS_TIME
7248 #include <sys/time.h>
7249 #include <time.h>
7250 #else
7251 #ifdef HAVE_SYS_TIME_H
7252 #include <sys/time.h>
7253 #else
7254 #include <time.h>
7255 #endif
7256 #endif
7257 int
7258 main ()
7259 {
7260 static struct timeval x; x.tv_sec = x.tv_usec;
7261 ;
7262 return 0;
7263 }
7264 _ACEOF
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7267 case "(($ac_try" in
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7270 esac
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7273 ac_status=$?
7274 grep -v '^ *+' conftest.er1 >conftest.err
7275 rm -f conftest.er1
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7282 emacs_cv_struct_timeval=yes
7283 else
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7286
7287 emacs_cv_struct_timeval=no
7288 fi
7289
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291 fi
7292 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7293 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7294 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7295 if test $emacs_cv_struct_timeval = yes; then
7296
7297 cat >>confdefs.h <<\_ACEOF
7298 #define HAVE_TIMEVAL 1
7299 _ACEOF
7300
7301 fi
7302
7303 { echo "$as_me:$LINENO: checking for struct exception" >&5
7304 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7305 if test "${emacs_cv_struct_exception+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <math.h>
7315 int
7316 main ()
7317 {
7318 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7319 ;
7320 return 0;
7321 }
7322 _ACEOF
7323 rm -f conftest.$ac_objext
7324 if { (ac_try="$ac_compile"
7325 case "(($ac_try" in
7326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7327 *) ac_try_echo=$ac_try;;
7328 esac
7329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7330 (eval "$ac_compile") 2>conftest.er1
7331 ac_status=$?
7332 grep -v '^ *+' conftest.er1 >conftest.err
7333 rm -f conftest.er1
7334 cat conftest.err >&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } && {
7337 test -z "$ac_c_werror_flag" ||
7338 test ! -s conftest.err
7339 } && test -s conftest.$ac_objext; then
7340 emacs_cv_struct_exception=yes
7341 else
7342 echo "$as_me: failed program was:" >&5
7343 sed 's/^/| /' conftest.$ac_ext >&5
7344
7345 emacs_cv_struct_exception=no
7346 fi
7347
7348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349 fi
7350 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7351 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7352 HAVE_EXCEPTION=$emacs_cv_struct_exception
7353 if test $emacs_cv_struct_exception != yes; then
7354
7355 cat >>confdefs.h <<\_ACEOF
7356 #define NO_MATHERR 1
7357 _ACEOF
7358
7359 fi
7360
7361
7362 for ac_header in sys/socket.h
7363 do
7364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 fi
7371 ac_res=`eval echo '${'$as_ac_Header'}'`
7372 { echo "$as_me:$LINENO: result: $ac_res" >&5
7373 echo "${ECHO_T}$ac_res" >&6; }
7374 else
7375 # Is the header compilable?
7376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7378 cat >conftest.$ac_ext <<_ACEOF
7379 /* confdefs.h. */
7380 _ACEOF
7381 cat confdefs.h >>conftest.$ac_ext
7382 cat >>conftest.$ac_ext <<_ACEOF
7383 /* end confdefs.h. */
7384 $ac_includes_default
7385 #include <$ac_header>
7386 _ACEOF
7387 rm -f conftest.$ac_objext
7388 if { (ac_try="$ac_compile"
7389 case "(($ac_try" in
7390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391 *) ac_try_echo=$ac_try;;
7392 esac
7393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7394 (eval "$ac_compile") 2>conftest.er1
7395 ac_status=$?
7396 grep -v '^ *+' conftest.er1 >conftest.err
7397 rm -f conftest.er1
7398 cat conftest.err >&5
7399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400 (exit $ac_status); } && {
7401 test -z "$ac_c_werror_flag" ||
7402 test ! -s conftest.err
7403 } && test -s conftest.$ac_objext; then
7404 ac_header_compiler=yes
7405 else
7406 echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7408
7409 ac_header_compiler=no
7410 fi
7411
7412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7414 echo "${ECHO_T}$ac_header_compiler" >&6; }
7415
7416 # Is the header present?
7417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7419 cat >conftest.$ac_ext <<_ACEOF
7420 /* confdefs.h. */
7421 _ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 #include <$ac_header>
7426 _ACEOF
7427 if { (ac_try="$ac_cpp conftest.$ac_ext"
7428 case "(($ac_try" in
7429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430 *) ac_try_echo=$ac_try;;
7431 esac
7432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7434 ac_status=$?
7435 grep -v '^ *+' conftest.er1 >conftest.err
7436 rm -f conftest.er1
7437 cat conftest.err >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } >/dev/null && {
7440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7441 test ! -s conftest.err
7442 }; then
7443 ac_header_preproc=yes
7444 else
7445 echo "$as_me: failed program was:" >&5
7446 sed 's/^/| /' conftest.$ac_ext >&5
7447
7448 ac_header_preproc=no
7449 fi
7450
7451 rm -f conftest.err conftest.$ac_ext
7452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7453 echo "${ECHO_T}$ac_header_preproc" >&6; }
7454
7455 # So? What about this header?
7456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7457 yes:no: )
7458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7462 ac_header_preproc=yes
7463 ;;
7464 no:yes:* )
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7477
7478 ;;
7479 esac
7480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 else
7485 eval "$as_ac_Header=\$ac_header_preproc"
7486 fi
7487 ac_res=`eval echo '${'$as_ac_Header'}'`
7488 { echo "$as_me:$LINENO: result: $ac_res" >&5
7489 echo "${ECHO_T}$ac_res" >&6; }
7490
7491 fi
7492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7493 cat >>confdefs.h <<_ACEOF
7494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7495 _ACEOF
7496
7497 fi
7498
7499 done
7500
7501
7502 for ac_header in net/if.h
7503 do
7504 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7509 else
7510 cat >conftest.$ac_ext <<_ACEOF
7511 /* confdefs.h. */
7512 _ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 $ac_includes_default
7517 #if HAVE_SYS_SOCKET_H
7518 #include <sys/socket.h>
7519 #endif
7520
7521 #include <$ac_header>
7522 _ACEOF
7523 rm -f conftest.$ac_objext
7524 if { (ac_try="$ac_compile"
7525 case "(($ac_try" in
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7528 esac
7529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 (eval "$ac_compile") 2>conftest.er1
7531 ac_status=$?
7532 grep -v '^ *+' conftest.er1 >conftest.err
7533 rm -f conftest.er1
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } && {
7537 test -z "$ac_c_werror_flag" ||
7538 test ! -s conftest.err
7539 } && test -s conftest.$ac_objext; then
7540 eval "$as_ac_Header=yes"
7541 else
7542 echo "$as_me: failed program was:" >&5
7543 sed 's/^/| /' conftest.$ac_ext >&5
7544
7545 eval "$as_ac_Header=no"
7546 fi
7547
7548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7549 fi
7550 ac_res=`eval echo '${'$as_ac_Header'}'`
7551 { echo "$as_me:$LINENO: result: $ac_res" >&5
7552 echo "${ECHO_T}$ac_res" >&6; }
7553 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7554 cat >>confdefs.h <<_ACEOF
7555 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7556 _ACEOF
7557
7558 fi
7559
7560 done
7561
7562
7563 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7564 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7565 if test "${ac_cv_struct_tm+set}" = set; then
7566 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 else
7568 cat >conftest.$ac_ext <<_ACEOF
7569 /* confdefs.h. */
7570 _ACEOF
7571 cat confdefs.h >>conftest.$ac_ext
7572 cat >>conftest.$ac_ext <<_ACEOF
7573 /* end confdefs.h. */
7574 #include <sys/types.h>
7575 #include <time.h>
7576
7577 int
7578 main ()
7579 {
7580 struct tm tm;
7581 int *p = &tm.tm_sec;
7582 return !p;
7583 ;
7584 return 0;
7585 }
7586 _ACEOF
7587 rm -f conftest.$ac_objext
7588 if { (ac_try="$ac_compile"
7589 case "(($ac_try" in
7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7592 esac
7593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594 (eval "$ac_compile") 2>conftest.er1
7595 ac_status=$?
7596 grep -v '^ *+' conftest.er1 >conftest.err
7597 rm -f conftest.er1
7598 cat conftest.err >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } && {
7601 test -z "$ac_c_werror_flag" ||
7602 test ! -s conftest.err
7603 } && test -s conftest.$ac_objext; then
7604 ac_cv_struct_tm=time.h
7605 else
7606 echo "$as_me: failed program was:" >&5
7607 sed 's/^/| /' conftest.$ac_ext >&5
7608
7609 ac_cv_struct_tm=sys/time.h
7610 fi
7611
7612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7613 fi
7614 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7615 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7616 if test $ac_cv_struct_tm = sys/time.h; then
7617
7618 cat >>confdefs.h <<\_ACEOF
7619 #define TM_IN_SYS_TIME 1
7620 _ACEOF
7621
7622 fi
7623
7624 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7625 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7626 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7628 else
7629 cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h. */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h. */
7635 #include <sys/types.h>
7636 #include <$ac_cv_struct_tm>
7637
7638
7639 int
7640 main ()
7641 {
7642 static struct tm ac_aggr;
7643 if (ac_aggr.tm_zone)
7644 return 0;
7645 ;
7646 return 0;
7647 }
7648 _ACEOF
7649 rm -f conftest.$ac_objext
7650 if { (ac_try="$ac_compile"
7651 case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654 esac
7655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_compile") 2>conftest.er1
7657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest.$ac_objext; then
7666 ac_cv_member_struct_tm_tm_zone=yes
7667 else
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7670
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677 #include <sys/types.h>
7678 #include <$ac_cv_struct_tm>
7679
7680
7681 int
7682 main ()
7683 {
7684 static struct tm ac_aggr;
7685 if (sizeof ac_aggr.tm_zone)
7686 return 0;
7687 ;
7688 return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (ac_try="$ac_compile"
7693 case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696 esac
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_compile") 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } && {
7705 test -z "$ac_c_werror_flag" ||
7706 test ! -s conftest.err
7707 } && test -s conftest.$ac_objext; then
7708 ac_cv_member_struct_tm_tm_zone=yes
7709 else
7710 echo "$as_me: failed program was:" >&5
7711 sed 's/^/| /' conftest.$ac_ext >&5
7712
7713 ac_cv_member_struct_tm_tm_zone=no
7714 fi
7715
7716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 fi
7718
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720 fi
7721 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7722 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7723 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7724
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_STRUCT_TM_TM_ZONE 1
7727 _ACEOF
7728
7729
7730 fi
7731
7732 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7733
7734 cat >>confdefs.h <<\_ACEOF
7735 #define HAVE_TM_ZONE 1
7736 _ACEOF
7737
7738 else
7739 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7740 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7741 if test "${ac_cv_have_decl_tzname+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 else
7744 cat >conftest.$ac_ext <<_ACEOF
7745 /* confdefs.h. */
7746 _ACEOF
7747 cat confdefs.h >>conftest.$ac_ext
7748 cat >>conftest.$ac_ext <<_ACEOF
7749 /* end confdefs.h. */
7750 #include <time.h>
7751
7752 int
7753 main ()
7754 {
7755 #ifndef tzname
7756 (void) tzname;
7757 #endif
7758
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 rm -f conftest.$ac_objext
7764 if { (ac_try="$ac_compile"
7765 case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7768 esac
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_compile") 2>conftest.er1
7771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && {
7777 test -z "$ac_c_werror_flag" ||
7778 test ! -s conftest.err
7779 } && test -s conftest.$ac_objext; then
7780 ac_cv_have_decl_tzname=yes
7781 else
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7784
7785 ac_cv_have_decl_tzname=no
7786 fi
7787
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 fi
7790 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7791 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7792 if test $ac_cv_have_decl_tzname = yes; then
7793
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DECL_TZNAME 1
7796 _ACEOF
7797
7798
7799 else
7800 cat >>confdefs.h <<_ACEOF
7801 #define HAVE_DECL_TZNAME 0
7802 _ACEOF
7803
7804
7805 fi
7806
7807
7808 { echo "$as_me:$LINENO: checking for tzname" >&5
7809 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7810 if test "${ac_cv_var_tzname+set}" = set; then
7811 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 else
7813 cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h. */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 #include <time.h>
7820 #if !HAVE_DECL_TZNAME
7821 extern char *tzname[];
7822 #endif
7823
7824 int
7825 main ()
7826 {
7827 return tzname[0][0];
7828 ;
7829 return 0;
7830 }
7831 _ACEOF
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (ac_try="$ac_link"
7834 case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837 esac
7838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7839 (eval "$ac_link") 2>conftest.er1
7840 ac_status=$?
7841 grep -v '^ *+' conftest.er1 >conftest.err
7842 rm -f conftest.er1
7843 cat conftest.err >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } && {
7846 test -z "$ac_c_werror_flag" ||
7847 test ! -s conftest.err
7848 } && test -s conftest$ac_exeext &&
7849 $as_test_x conftest$ac_exeext; then
7850 ac_cv_var_tzname=yes
7851 else
7852 echo "$as_me: failed program was:" >&5
7853 sed 's/^/| /' conftest.$ac_ext >&5
7854
7855 ac_cv_var_tzname=no
7856 fi
7857
7858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7859 conftest$ac_exeext conftest.$ac_ext
7860 fi
7861 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7862 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7863 if test $ac_cv_var_tzname = yes; then
7864
7865 cat >>confdefs.h <<\_ACEOF
7866 #define HAVE_TZNAME 1
7867 _ACEOF
7868
7869 fi
7870 fi
7871
7872 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7873 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7874 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7876 else
7877 cat >conftest.$ac_ext <<_ACEOF
7878 /* confdefs.h. */
7879 _ACEOF
7880 cat confdefs.h >>conftest.$ac_ext
7881 cat >>conftest.$ac_ext <<_ACEOF
7882 /* end confdefs.h. */
7883 #include <time.h>
7884
7885 int
7886 main ()
7887 {
7888 static struct tm ac_aggr;
7889 if (ac_aggr.tm_gmtoff)
7890 return 0;
7891 ;
7892 return 0;
7893 }
7894 _ACEOF
7895 rm -f conftest.$ac_objext
7896 if { (ac_try="$ac_compile"
7897 case "(($ac_try" in
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7900 esac
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_compile") 2>conftest.er1
7903 ac_status=$?
7904 grep -v '^ *+' conftest.er1 >conftest.err
7905 rm -f conftest.er1
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } && {
7909 test -z "$ac_c_werror_flag" ||
7910 test ! -s conftest.err
7911 } && test -s conftest.$ac_objext; then
7912 ac_cv_member_struct_tm_tm_gmtoff=yes
7913 else
7914 echo "$as_me: failed program was:" >&5
7915 sed 's/^/| /' conftest.$ac_ext >&5
7916
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h. */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7923 #include <time.h>
7924
7925 int
7926 main ()
7927 {
7928 static struct tm ac_aggr;
7929 if (sizeof ac_aggr.tm_gmtoff)
7930 return 0;
7931 ;
7932 return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest.$ac_objext
7936 if { (ac_try="$ac_compile"
7937 case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940 esac
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942 (eval "$ac_compile") 2>conftest.er1
7943 ac_status=$?
7944 grep -v '^ *+' conftest.er1 >conftest.err
7945 rm -f conftest.er1
7946 cat conftest.err >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); } && {
7949 test -z "$ac_c_werror_flag" ||
7950 test ! -s conftest.err
7951 } && test -s conftest.$ac_objext; then
7952 ac_cv_member_struct_tm_tm_gmtoff=yes
7953 else
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7956
7957 ac_cv_member_struct_tm_tm_gmtoff=no
7958 fi
7959
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 fi
7962
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 fi
7965 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7966 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7967 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7968
7969 cat >>confdefs.h <<\_ACEOF
7970 #define HAVE_TM_GMTOFF 1
7971 _ACEOF
7972
7973 fi
7974
7975 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7976 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7977 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980 cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h. */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 $ac_includes_default
7987 #if HAVE_SYS_SOCKET_H
7988 #include <sys/socket.h>
7989 #endif
7990 #if HAVE_NET_IF_H
7991 #include <net/if.h>
7992 #endif
7993
7994 int
7995 main ()
7996 {
7997 static struct ifreq ac_aggr;
7998 if (ac_aggr.ifr_flags)
7999 return 0;
8000 ;
8001 return 0;
8002 }
8003 _ACEOF
8004 rm -f conftest.$ac_objext
8005 if { (ac_try="$ac_compile"
8006 case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009 esac
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest.$ac_objext; then
8021 ac_cv_member_struct_ifreq_ifr_flags=yes
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h. */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 $ac_includes_default
8033 #if HAVE_SYS_SOCKET_H
8034 #include <sys/socket.h>
8035 #endif
8036 #if HAVE_NET_IF_H
8037 #include <net/if.h>
8038 #endif
8039
8040 int
8041 main ()
8042 {
8043 static struct ifreq ac_aggr;
8044 if (sizeof ac_aggr.ifr_flags)
8045 return 0;
8046 ;
8047 return 0;
8048 }
8049 _ACEOF
8050 rm -f conftest.$ac_objext
8051 if { (ac_try="$ac_compile"
8052 case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8055 esac
8056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_compile") 2>conftest.er1
8058 ac_status=$?
8059 grep -v '^ *+' conftest.er1 >conftest.err
8060 rm -f conftest.er1
8061 cat conftest.err >&5
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); } && {
8064 test -z "$ac_c_werror_flag" ||
8065 test ! -s conftest.err
8066 } && test -s conftest.$ac_objext; then
8067 ac_cv_member_struct_ifreq_ifr_flags=yes
8068 else
8069 echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8071
8072 ac_cv_member_struct_ifreq_ifr_flags=no
8073 fi
8074
8075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076 fi
8077
8078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8079 fi
8080 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8081 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8082 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8083
8084 cat >>confdefs.h <<_ACEOF
8085 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8086 _ACEOF
8087
8088
8089 fi
8090 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8091 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8092 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 else
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 $ac_includes_default
8102 #if HAVE_SYS_SOCKET_H
8103 #include <sys/socket.h>
8104 #endif
8105 #if HAVE_NET_IF_H
8106 #include <net/if.h>
8107 #endif
8108
8109 int
8110 main ()
8111 {
8112 static struct ifreq ac_aggr;
8113 if (ac_aggr.ifr_hwaddr)
8114 return 0;
8115 ;
8116 return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext
8120 if { (ac_try="$ac_compile"
8121 case "(($ac_try" in
8122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123 *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126 (eval "$ac_compile") 2>conftest.er1
8127 ac_status=$?
8128 grep -v '^ *+' conftest.er1 >conftest.err
8129 rm -f conftest.er1
8130 cat conftest.err >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } && {
8133 test -z "$ac_c_werror_flag" ||
8134 test ! -s conftest.err
8135 } && test -s conftest.$ac_objext; then
8136 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8137 else
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8140
8141 cat >conftest.$ac_ext <<_ACEOF
8142 /* confdefs.h. */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 $ac_includes_default
8148 #if HAVE_SYS_SOCKET_H
8149 #include <sys/socket.h>
8150 #endif
8151 #if HAVE_NET_IF_H
8152 #include <net/if.h>
8153 #endif
8154
8155 int
8156 main ()
8157 {
8158 static struct ifreq ac_aggr;
8159 if (sizeof ac_aggr.ifr_hwaddr)
8160 return 0;
8161 ;
8162 return 0;
8163 }
8164 _ACEOF
8165 rm -f conftest.$ac_objext
8166 if { (ac_try="$ac_compile"
8167 case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_compile") 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest.$ac_objext; then
8182 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8183 else
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8188 fi
8189
8190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191 fi
8192
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194 fi
8195 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8196 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8197 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8198
8199 cat >>confdefs.h <<_ACEOF
8200 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8201 _ACEOF
8202
8203
8204 fi
8205 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8206 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8207 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210 cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h. */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h. */
8216 $ac_includes_default
8217 #if HAVE_SYS_SOCKET_H
8218 #include <sys/socket.h>
8219 #endif
8220 #if HAVE_NET_IF_H
8221 #include <net/if.h>
8222 #endif
8223
8224 int
8225 main ()
8226 {
8227 static struct ifreq ac_aggr;
8228 if (ac_aggr.ifr_netmask)
8229 return 0;
8230 ;
8231 return 0;
8232 }
8233 _ACEOF
8234 rm -f conftest.$ac_objext
8235 if { (ac_try="$ac_compile"
8236 case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8239 esac
8240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8241 (eval "$ac_compile") 2>conftest.er1
8242 ac_status=$?
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } && {
8248 test -z "$ac_c_werror_flag" ||
8249 test ! -s conftest.err
8250 } && test -s conftest.$ac_objext; then
8251 ac_cv_member_struct_ifreq_ifr_netmask=yes
8252 else
8253 echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8255
8256 cat >conftest.$ac_ext <<_ACEOF
8257 /* confdefs.h. */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 $ac_includes_default
8263 #if HAVE_SYS_SOCKET_H
8264 #include <sys/socket.h>
8265 #endif
8266 #if HAVE_NET_IF_H
8267 #include <net/if.h>
8268 #endif
8269
8270 int
8271 main ()
8272 {
8273 static struct ifreq ac_aggr;
8274 if (sizeof ac_aggr.ifr_netmask)
8275 return 0;
8276 ;
8277 return 0;
8278 }
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (ac_try="$ac_compile"
8282 case "(($ac_try" in
8283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8284 *) ac_try_echo=$ac_try;;
8285 esac
8286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8287 (eval "$ac_compile") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest.$ac_objext; then
8297 ac_cv_member_struct_ifreq_ifr_netmask=yes
8298 else
8299 echo "$as_me: failed program was:" >&5
8300 sed 's/^/| /' conftest.$ac_ext >&5
8301
8302 ac_cv_member_struct_ifreq_ifr_netmask=no
8303 fi
8304
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 fi
8307
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 fi
8310 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8311 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8312 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8313
8314 cat >>confdefs.h <<_ACEOF
8315 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8316 _ACEOF
8317
8318
8319 fi
8320 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8321 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8322 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8323 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 else
8325 cat >conftest.$ac_ext <<_ACEOF
8326 /* confdefs.h. */
8327 _ACEOF
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8331 $ac_includes_default
8332 #if HAVE_SYS_SOCKET_H
8333 #include <sys/socket.h>
8334 #endif
8335 #if HAVE_NET_IF_H
8336 #include <net/if.h>
8337 #endif
8338
8339 int
8340 main ()
8341 {
8342 static struct ifreq ac_aggr;
8343 if (ac_aggr.ifr_broadaddr)
8344 return 0;
8345 ;
8346 return 0;
8347 }
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8351 case "(($ac_try" in
8352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353 *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356 (eval "$ac_compile") 2>conftest.er1
8357 ac_status=$?
8358 grep -v '^ *+' conftest.er1 >conftest.err
8359 rm -f conftest.er1
8360 cat conftest.err >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); } && {
8363 test -z "$ac_c_werror_flag" ||
8364 test ! -s conftest.err
8365 } && test -s conftest.$ac_objext; then
8366 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8367 else
8368 echo "$as_me: failed program was:" >&5
8369 sed 's/^/| /' conftest.$ac_ext >&5
8370
8371 cat >conftest.$ac_ext <<_ACEOF
8372 /* confdefs.h. */
8373 _ACEOF
8374 cat confdefs.h >>conftest.$ac_ext
8375 cat >>conftest.$ac_ext <<_ACEOF
8376 /* end confdefs.h. */
8377 $ac_includes_default
8378 #if HAVE_SYS_SOCKET_H
8379 #include <sys/socket.h>
8380 #endif
8381 #if HAVE_NET_IF_H
8382 #include <net/if.h>
8383 #endif
8384
8385 int
8386 main ()
8387 {
8388 static struct ifreq ac_aggr;
8389 if (sizeof ac_aggr.ifr_broadaddr)
8390 return 0;
8391 ;
8392 return 0;
8393 }
8394 _ACEOF
8395 rm -f conftest.$ac_objext
8396 if { (ac_try="$ac_compile"
8397 case "(($ac_try" in
8398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399 *) ac_try_echo=$ac_try;;
8400 esac
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402 (eval "$ac_compile") 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } && {
8409 test -z "$ac_c_werror_flag" ||
8410 test ! -s conftest.err
8411 } && test -s conftest.$ac_objext; then
8412 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8413 else
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8418 fi
8419
8420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421 fi
8422
8423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424 fi
8425 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8426 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8427 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8428
8429 cat >>confdefs.h <<_ACEOF
8430 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8431 _ACEOF
8432
8433
8434 fi
8435 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8436 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8437 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8446 $ac_includes_default
8447 #if HAVE_SYS_SOCKET_H
8448 #include <sys/socket.h>
8449 #endif
8450 #if HAVE_NET_IF_H
8451 #include <net/if.h>
8452 #endif
8453
8454 int
8455 main ()
8456 {
8457 static struct ifreq ac_aggr;
8458 if (ac_aggr.ifr_addr)
8459 return 0;
8460 ;
8461 return 0;
8462 }
8463 _ACEOF
8464 rm -f conftest.$ac_objext
8465 if { (ac_try="$ac_compile"
8466 case "(($ac_try" in
8467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8468 *) ac_try_echo=$ac_try;;
8469 esac
8470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8471 (eval "$ac_compile") 2>conftest.er1
8472 ac_status=$?
8473 grep -v '^ *+' conftest.er1 >conftest.err
8474 rm -f conftest.er1
8475 cat conftest.err >&5
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); } && {
8478 test -z "$ac_c_werror_flag" ||
8479 test ! -s conftest.err
8480 } && test -s conftest.$ac_objext; then
8481 ac_cv_member_struct_ifreq_ifr_addr=yes
8482 else
8483 echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8485
8486 cat >conftest.$ac_ext <<_ACEOF
8487 /* confdefs.h. */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 $ac_includes_default
8493 #if HAVE_SYS_SOCKET_H
8494 #include <sys/socket.h>
8495 #endif
8496 #if HAVE_NET_IF_H
8497 #include <net/if.h>
8498 #endif
8499
8500 int
8501 main ()
8502 {
8503 static struct ifreq ac_aggr;
8504 if (sizeof ac_aggr.ifr_addr)
8505 return 0;
8506 ;
8507 return 0;
8508 }
8509 _ACEOF
8510 rm -f conftest.$ac_objext
8511 if { (ac_try="$ac_compile"
8512 case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_compile") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest.$ac_objext; then
8527 ac_cv_member_struct_ifreq_ifr_addr=yes
8528 else
8529 echo "$as_me: failed program was:" >&5
8530 sed 's/^/| /' conftest.$ac_ext >&5
8531
8532 ac_cv_member_struct_ifreq_ifr_addr=no
8533 fi
8534
8535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8536 fi
8537
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 fi
8540 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8541 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8542 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8543
8544 cat >>confdefs.h <<_ACEOF
8545 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8546 _ACEOF
8547
8548
8549 fi
8550
8551
8552
8553 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8554 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8555 if test "$ac_cv_prog_cc_c89" != no; then
8556 { echo "$as_me:$LINENO: result: yes" >&5
8557 echo "${ECHO_T}yes" >&6; }
8558
8559 cat >>confdefs.h <<\_ACEOF
8560 #define PROTOTYPES 1
8561 _ACEOF
8562
8563
8564 cat >>confdefs.h <<\_ACEOF
8565 #define __PROTOTYPES 1
8566 _ACEOF
8567
8568 else
8569 { echo "$as_me:$LINENO: result: no" >&5
8570 echo "${ECHO_T}no" >&6; }
8571 fi
8572
8573 { echo "$as_me:$LINENO: checking for working volatile" >&5
8574 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8575 if test "${ac_cv_c_volatile+set}" = set; then
8576 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 else
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h. */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h. */
8584
8585 int
8586 main ()
8587 {
8588
8589 volatile int x;
8590 int * volatile y = (int *) 0;
8591 return !x && !y;
8592 ;
8593 return 0;
8594 }
8595 _ACEOF
8596 rm -f conftest.$ac_objext
8597 if { (ac_try="$ac_compile"
8598 case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8601 esac
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_compile") 2>conftest.er1
8604 ac_status=$?
8605 grep -v '^ *+' conftest.er1 >conftest.err
8606 rm -f conftest.er1
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 (exit $ac_status); } && {
8610 test -z "$ac_c_werror_flag" ||
8611 test ! -s conftest.err
8612 } && test -s conftest.$ac_objext; then
8613 ac_cv_c_volatile=yes
8614 else
8615 echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618 ac_cv_c_volatile=no
8619 fi
8620
8621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8622 fi
8623 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8624 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8625 if test $ac_cv_c_volatile = no; then
8626
8627 cat >>confdefs.h <<\_ACEOF
8628 #define volatile
8629 _ACEOF
8630
8631 fi
8632
8633 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8634 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8635 if test "${ac_cv_c_const+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8637 else
8638 cat >conftest.$ac_ext <<_ACEOF
8639 /* confdefs.h. */
8640 _ACEOF
8641 cat confdefs.h >>conftest.$ac_ext
8642 cat >>conftest.$ac_ext <<_ACEOF
8643 /* end confdefs.h. */
8644
8645 int
8646 main ()
8647 {
8648 /* FIXME: Include the comments suggested by Paul. */
8649 #ifndef __cplusplus
8650 /* Ultrix mips cc rejects this. */
8651 typedef int charset[2];
8652 const charset cs;
8653 /* SunOS 4.1.1 cc rejects this. */
8654 char const *const *pcpcc;
8655 char **ppc;
8656 /* NEC SVR4.0.2 mips cc rejects this. */
8657 struct point {int x, y;};
8658 static struct point const zero = {0,0};
8659 /* AIX XL C 1.02.0.0 rejects this.
8660 It does not let you subtract one const X* pointer from another in
8661 an arm of an if-expression whose if-part is not a constant
8662 expression */
8663 const char *g = "string";
8664 pcpcc = &g + (g ? g-g : 0);
8665 /* HPUX 7.0 cc rejects these. */
8666 ++pcpcc;
8667 ppc = (char**) pcpcc;
8668 pcpcc = (char const *const *) ppc;
8669 { /* SCO 3.2v4 cc rejects this. */
8670 char *t;
8671 char const *s = 0 ? (char *) 0 : (char const *) 0;
8672
8673 *t++ = 0;
8674 if (s) return 0;
8675 }
8676 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8677 int x[] = {25, 17};
8678 const int *foo = &x[0];
8679 ++foo;
8680 }
8681 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8682 typedef const int *iptr;
8683 iptr p = 0;
8684 ++p;
8685 }
8686 { /* AIX XL C 1.02.0.0 rejects this saying
8687 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8688 struct s { int j; const int *ap[3]; };
8689 struct s *b; b->j = 5;
8690 }
8691 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8692 const int foo = 10;
8693 if (!foo) return 0;
8694 }
8695 return !cs[0] && !zero.x;
8696 #endif
8697
8698 ;
8699 return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8704 case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709 (eval "$ac_compile") 2>conftest.er1
8710 ac_status=$?
8711 grep -v '^ *+' conftest.er1 >conftest.err
8712 rm -f conftest.er1
8713 cat conftest.err >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); } && {
8716 test -z "$ac_c_werror_flag" ||
8717 test ! -s conftest.err
8718 } && test -s conftest.$ac_objext; then
8719 ac_cv_c_const=yes
8720 else
8721 echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8723
8724 ac_cv_c_const=no
8725 fi
8726
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 fi
8729 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8730 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8731 if test $ac_cv_c_const = no; then
8732
8733 cat >>confdefs.h <<\_ACEOF
8734 #define const
8735 _ACEOF
8736
8737 fi
8738
8739 { echo "$as_me:$LINENO: checking for void * support" >&5
8740 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8741 if test "${emacs_cv_void_star+set}" = set; then
8742 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 else
8744 cat >conftest.$ac_ext <<_ACEOF
8745 /* confdefs.h. */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750
8751 int
8752 main ()
8753 {
8754 void * foo;
8755 ;
8756 return 0;
8757 }
8758 _ACEOF
8759 rm -f conftest.$ac_objext
8760 if { (ac_try="$ac_compile"
8761 case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_compile") 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest.$ac_objext; then
8776 emacs_cv_void_star=yes
8777 else
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8780
8781 emacs_cv_void_star=no
8782 fi
8783
8784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785 fi
8786 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8787 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8788 if test $emacs_cv_void_star = yes; then
8789 cat >>confdefs.h <<\_ACEOF
8790 #define POINTER_TYPE void
8791 _ACEOF
8792
8793 else
8794 cat >>confdefs.h <<\_ACEOF
8795 #define POINTER_TYPE char
8796 _ACEOF
8797
8798 fi
8799
8800
8801
8802
8803
8804 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8806 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8807 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810 cat >conftest.make <<\_ACEOF
8811 SHELL = /bin/sh
8812 all:
8813 @echo '@@@%%%=$(MAKE)=@@@%%%'
8814 _ACEOF
8815 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8816 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8817 *@@@%%%=?*=@@@%%%*)
8818 eval ac_cv_prog_make_${ac_make}_set=yes;;
8819 *)
8820 eval ac_cv_prog_make_${ac_make}_set=no;;
8821 esac
8822 rm -f conftest.make
8823 fi
8824 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8825 { echo "$as_me:$LINENO: result: yes" >&5
8826 echo "${ECHO_T}yes" >&6; }
8827 SET_MAKE=
8828 else
8829 { echo "$as_me:$LINENO: result: no" >&5
8830 echo "${ECHO_T}no" >&6; }
8831 SET_MAKE="MAKE=${MAKE-make}"
8832 fi
8833
8834
8835 { echo "$as_me:$LINENO: checking for long file names" >&5
8836 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8837 if test "${ac_cv_sys_long_file_names+set}" = set; then
8838 echo $ECHO_N "(cached) $ECHO_C" >&6
8839 else
8840 ac_cv_sys_long_file_names=yes
8841 # Test for long file names in all the places we know might matter:
8842 # . the current directory, where building will happen
8843 # $prefix/lib where we will be installing things
8844 # $exec_prefix/lib likewise
8845 # $TMPDIR if set, where it might want to write temporary files
8846 # /tmp where it might want to write temporary files
8847 # /var/tmp likewise
8848 # /usr/tmp likewise
8849 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8850 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8851 # in the usual case where exec_prefix is '${prefix}'.
8852 case $ac_dir in #(
8853 . | /* | ?:[\\/]*) ;; #(
8854 *) continue;;
8855 esac
8856 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8857 ac_xdir=$ac_dir/cf$$
8858 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8859 ac_tf1=$ac_xdir/conftest9012345
8860 ac_tf2=$ac_xdir/conftest9012346
8861 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8862 ac_cv_sys_long_file_names=no
8863 rm -f -r "$ac_xdir" 2>/dev/null
8864 test $ac_cv_sys_long_file_names = no && break
8865 done
8866 fi
8867 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8868 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8869 if test $ac_cv_sys_long_file_names = yes; then
8870
8871 cat >>confdefs.h <<\_ACEOF
8872 #define HAVE_LONG_FILE_NAMES 1
8873 _ACEOF
8874
8875 fi
8876
8877
8878 #### Choose a window system.
8879
8880 { echo "$as_me:$LINENO: checking for X" >&5
8881 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8882
8883
8884 # Check whether --with-x was given.
8885 if test "${with_x+set}" = set; then
8886 withval=$with_x;
8887 fi
8888
8889 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8890 if test "x$with_x" = xno; then
8891 # The user explicitly disabled X.
8892 have_x=disabled
8893 else
8894 case $x_includes,$x_libraries in #(
8895 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8896 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8897 { (exit 1); exit 1; }; };; #(
8898 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901 # One or both of the vars are not set, and there is no cached value.
8902 ac_x_includes=no ac_x_libraries=no
8903 rm -f -r conftest.dir
8904 if mkdir conftest.dir; then
8905 cd conftest.dir
8906 cat >Imakefile <<'_ACEOF'
8907 incroot:
8908 @echo incroot='${INCROOT}'
8909 usrlibdir:
8910 @echo usrlibdir='${USRLIBDIR}'
8911 libdir:
8912 @echo libdir='${LIBDIR}'
8913 _ACEOF
8914 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8915 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8916 for ac_var in incroot usrlibdir libdir; do
8917 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8918 done
8919 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8920 for ac_extension in a so sl; do
8921 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8922 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8923 ac_im_usrlibdir=$ac_im_libdir; break
8924 fi
8925 done
8926 # Screen out bogus values from the imake configuration. They are
8927 # bogus both because they are the default anyway, and because
8928 # using them would break gcc on systems where it needs fixed includes.
8929 case $ac_im_incroot in
8930 /usr/include) ac_x_includes= ;;
8931 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8932 esac
8933 case $ac_im_usrlibdir in
8934 /usr/lib | /lib) ;;
8935 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8936 esac
8937 fi
8938 cd ..
8939 rm -f -r conftest.dir
8940 fi
8941
8942 # Standard set of common directories for X headers.
8943 # Check X11 before X11Rn because it is often a symlink to the current release.
8944 ac_x_header_dirs='
8945 /usr/X11/include
8946 /usr/X11R6/include
8947 /usr/X11R5/include
8948 /usr/X11R4/include
8949
8950 /usr/include/X11
8951 /usr/include/X11R6
8952 /usr/include/X11R5
8953 /usr/include/X11R4
8954
8955 /usr/local/X11/include
8956 /usr/local/X11R6/include
8957 /usr/local/X11R5/include
8958 /usr/local/X11R4/include
8959
8960 /usr/local/include/X11
8961 /usr/local/include/X11R6
8962 /usr/local/include/X11R5
8963 /usr/local/include/X11R4
8964
8965 /usr/X386/include
8966 /usr/x386/include
8967 /usr/XFree86/include/X11
8968
8969 /usr/include
8970 /usr/local/include
8971 /usr/unsupported/include
8972 /usr/athena/include
8973 /usr/local/x11r5/include
8974 /usr/lpp/Xamples/include
8975
8976 /usr/openwin/include
8977 /usr/openwin/share/include'
8978
8979 if test "$ac_x_includes" = no; then
8980 # Guess where to find include files, by looking for Xlib.h.
8981 # First, try using that file with no special directory specified.
8982 cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h. */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h. */
8988 #include <X11/Xlib.h>
8989 _ACEOF
8990 if { (ac_try="$ac_cpp conftest.$ac_ext"
8991 case "(($ac_try" in
8992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8993 *) ac_try_echo=$ac_try;;
8994 esac
8995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8997 ac_status=$?
8998 grep -v '^ *+' conftest.er1 >conftest.err
8999 rm -f conftest.er1
9000 cat conftest.err >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } >/dev/null && {
9003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9004 test ! -s conftest.err
9005 }; then
9006 # We can compile using X headers with no special include directory.
9007 ac_x_includes=
9008 else
9009 echo "$as_me: failed program was:" >&5
9010 sed 's/^/| /' conftest.$ac_ext >&5
9011
9012 for ac_dir in $ac_x_header_dirs; do
9013 if test -r "$ac_dir/X11/Xlib.h"; then
9014 ac_x_includes=$ac_dir
9015 break
9016 fi
9017 done
9018 fi
9019
9020 rm -f conftest.err conftest.$ac_ext
9021 fi # $ac_x_includes = no
9022
9023 if test "$ac_x_libraries" = no; then
9024 # Check for the libraries.
9025 # See if we find them without any special options.
9026 # Don't add to $LIBS permanently.
9027 ac_save_LIBS=$LIBS
9028 LIBS="-lX11 $LIBS"
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h. */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 #include <X11/Xlib.h>
9036 int
9037 main ()
9038 {
9039 XrmInitialize ()
9040 ;
9041 return 0;
9042 }
9043 _ACEOF
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (ac_try="$ac_link"
9046 case "(($ac_try" in
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9049 esac
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_link") 2>conftest.er1
9052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } && {
9058 test -z "$ac_c_werror_flag" ||
9059 test ! -s conftest.err
9060 } && test -s conftest$ac_exeext &&
9061 $as_test_x conftest$ac_exeext; then
9062 LIBS=$ac_save_LIBS
9063 # We can link X programs with no special library path.
9064 ac_x_libraries=
9065 else
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9068
9069 LIBS=$ac_save_LIBS
9070 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9071 do
9072 # Don't even attempt the hair of trying to link an X program!
9073 for ac_extension in a so sl; do
9074 if test -r "$ac_dir/libX11.$ac_extension"; then
9075 ac_x_libraries=$ac_dir
9076 break 2
9077 fi
9078 done
9079 done
9080 fi
9081
9082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9083 conftest$ac_exeext conftest.$ac_ext
9084 fi # $ac_x_libraries = no
9085
9086 case $ac_x_includes,$ac_x_libraries in #(
9087 no,* | *,no | *\'*)
9088 # Didn't find X, or a directory has "'" in its name.
9089 ac_cv_have_x="have_x=no";; #(
9090 *)
9091 # Record where we found X for the cache.
9092 ac_cv_have_x="have_x=yes\
9093 ac_x_includes='$ac_x_includes'\
9094 ac_x_libraries='$ac_x_libraries'"
9095 esac
9096 fi
9097 ;; #(
9098 *) have_x=yes;;
9099 esac
9100 eval "$ac_cv_have_x"
9101 fi # $with_x != no
9102
9103 if test "$have_x" != yes; then
9104 { echo "$as_me:$LINENO: result: $have_x" >&5
9105 echo "${ECHO_T}$have_x" >&6; }
9106 no_x=yes
9107 else
9108 # If each of the values was on the command line, it overrides each guess.
9109 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9110 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9111 # Update the cache value to reflect the command line values.
9112 ac_cv_have_x="have_x=yes\
9113 ac_x_includes='$x_includes'\
9114 ac_x_libraries='$x_libraries'"
9115 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9116 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9117 fi
9118
9119 if test "$no_x" = yes; then
9120 window_system=none
9121 else
9122 window_system=x11
9123 fi
9124
9125 ## Workaround for bug in autoconf <= 2.62.
9126 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9127 ## No need to do anything special for these standard directories.
9128 ## This is an experiment, take it out if it causes problems.
9129 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9130
9131 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9132
9133 fi
9134
9135 if test "${x_libraries}" != NONE; then
9136 if test -n "${x_libraries}"; then
9137 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9138 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9139 fi
9140 x_default_search_path=""
9141 x_search_path=${x_libraries}
9142 if test -z "${x_search_path}"; then
9143 x_search_path=/usr/lib
9144 fi
9145 for x_library in `echo ${x_search_path}: | \
9146 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9147 x_search_path="\
9148 ${x_library}/X11/%L/%T/%N%C%S:\
9149 ${x_library}/X11/%l/%T/%N%C%S:\
9150 ${x_library}/X11/%T/%N%C%S:\
9151 ${x_library}/X11/%L/%T/%N%S:\
9152 ${x_library}/X11/%l/%T/%N%S:\
9153 ${x_library}/X11/%T/%N%S"
9154 if test x"${x_default_search_path}" = x; then
9155 x_default_search_path=${x_search_path}
9156 else
9157 x_default_search_path="${x_search_path}:${x_default_search_path}"
9158 fi
9159 done
9160 fi
9161 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9162 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9163 fi
9164
9165 if test x"${x_includes}" = x; then
9166 bitmapdir=/usr/include/X11/bitmaps
9167 else
9168 # accumulate include directories that have X11 bitmap subdirectories
9169 bmd_acc="dummyval"
9170 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9171 if test -d "${bmd}/X11/bitmaps"; then
9172 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9173 fi
9174 if test -d "${bmd}/bitmaps"; then
9175 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9176 fi
9177 done
9178 if test ${bmd_acc} != "dummyval"; then
9179 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9180 fi
9181 fi
9182
9183 HAVE_NS=no
9184 NS_IMPL_COCOA=no
9185 NS_IMPL_GNUSTEP=no
9186 tmp_CPPFLAGS="$CPPFLAGS"
9187 tmp_CFLAGS="$CFLAGS"
9188 CPPFLAGS="$CPPFLAGS -x objective-c"
9189 CFLAGS="$CFLAGS -x objective-c"
9190 if test "${with_ns}" != no; then
9191 if test "${opsys}" = darwin; then
9192 NS_IMPL_COCOA=yes
9193 ns_appdir=`pwd`/nextstep/Emacs.app
9194 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9195 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9196 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9197 elif test -f /etc/GNUstep/GNUstep.conf; then
9198 NS_IMPL_GNUSTEP=yes
9199 ns_appdir=`pwd`/nextstep/Emacs.app
9200 ns_appbindir=`pwd`/nextstep/Emacs.app
9201 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9202 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9203 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9204 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9205 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9206 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9207 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9208 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9209 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9210 fi
9211 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9212 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9213 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9214 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9215 echo $ECHO_N "(cached) $ECHO_C" >&6
9216 fi
9217 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9218 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9219 else
9220 # Is the header compilable?
9221 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9222 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h. */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 $ac_includes_default
9230 #include <AppKit/AppKit.h>
9231 _ACEOF
9232 rm -f conftest.$ac_objext
9233 if { (ac_try="$ac_compile"
9234 case "(($ac_try" in
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9237 esac
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_compile") 2>conftest.er1
9240 ac_status=$?
9241 grep -v '^ *+' conftest.er1 >conftest.err
9242 rm -f conftest.er1
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } && {
9246 test -z "$ac_c_werror_flag" ||
9247 test ! -s conftest.err
9248 } && test -s conftest.$ac_objext; then
9249 ac_header_compiler=yes
9250 else
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254 ac_header_compiler=no
9255 fi
9256
9257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9259 echo "${ECHO_T}$ac_header_compiler" >&6; }
9260
9261 # Is the header present?
9262 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9263 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h. */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h. */
9270 #include <AppKit/AppKit.h>
9271 _ACEOF
9272 if { (ac_try="$ac_cpp conftest.$ac_ext"
9273 case "(($ac_try" in
9274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9275 *) ac_try_echo=$ac_try;;
9276 esac
9277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9279 ac_status=$?
9280 grep -v '^ *+' conftest.er1 >conftest.err
9281 rm -f conftest.er1
9282 cat conftest.err >&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); } >/dev/null && {
9285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9286 test ! -s conftest.err
9287 }; then
9288 ac_header_preproc=yes
9289 else
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9292
9293 ac_header_preproc=no
9294 fi
9295
9296 rm -f conftest.err conftest.$ac_ext
9297 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9298 echo "${ECHO_T}$ac_header_preproc" >&6; }
9299
9300 # So? What about this header?
9301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9302 yes:no: )
9303 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9304 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9305 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9306 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9307 ac_header_preproc=yes
9308 ;;
9309 no:yes:* )
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9313 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9315 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9317 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9319 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9320 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9321 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9322
9323 ;;
9324 esac
9325 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9326 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9327 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 else
9330 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9331 fi
9332 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9333 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9334
9335 fi
9336 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9337 HAVE_NS=yes
9338 fi
9339
9340
9341 NS_HAVE_NSINTEGER=yes
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 #include <Foundation/NSObjCRuntime.h>
9349 int
9350 main ()
9351 {
9352 NSInteger i;
9353 ;
9354 return 0;
9355 }
9356 _ACEOF
9357 rm -f conftest.$ac_objext
9358 if { (ac_try="$ac_compile"
9359 case "(($ac_try" in
9360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9361 *) ac_try_echo=$ac_try;;
9362 esac
9363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9364 (eval "$ac_compile") 2>conftest.er1
9365 ac_status=$?
9366 grep -v '^ *+' conftest.er1 >conftest.err
9367 rm -f conftest.er1
9368 cat conftest.err >&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } && {
9371 test -z "$ac_c_werror_flag" ||
9372 test ! -s conftest.err
9373 } && test -s conftest.$ac_objext; then
9374 ns_have_nsinteger=yes
9375 else
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9378
9379 ns_have_nsinteger=no
9380 fi
9381
9382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9383 if test $ns_have_nsinteger = no; then
9384 NS_HAVE_NSINTEGER=no
9385 fi
9386 fi
9387 if test "${HAVE_NS}" = yes; then
9388 window_system=nextstep
9389 with_xft=no
9390 with_freetype=no
9391 # set up packaging dirs
9392 exec_prefix=${ns_appbindir}
9393 libexecdir=${ns_appbindir}/libexec
9394 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9395 prefix=${ns_appresdir}
9396 fi
9397 fi
9398 CFLAGS="$tmp_CFLAGS"
9399 CPPFLAGS="$tmp_CPPFLAGS"
9400
9401 case "${window_system}" in
9402 x11 )
9403 HAVE_X_WINDOWS=yes
9404 HAVE_X11=yes
9405 case "${with_x_toolkit}" in
9406 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9407 motif ) USE_X_TOOLKIT=MOTIF ;;
9408 gtk ) with_gtk=yes
9409 USE_X_TOOLKIT=none ;;
9410 no ) USE_X_TOOLKIT=none ;;
9411 * ) USE_X_TOOLKIT=maybe ;;
9412 esac
9413 ;;
9414 nextstep | none )
9415 HAVE_X_WINDOWS=no
9416 HAVE_X11=no
9417 USE_X_TOOLKIT=none
9418 ;;
9419 esac
9420
9421 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9422 # Extract the first word of "X", so it can be a program name with args.
9423 set dummy X; ac_word=$2
9424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9426 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429 if test -n "$HAVE_XSERVER"; then
9430 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9431 else
9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433 for as_dir in $PATH
9434 do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9439 ac_cv_prog_HAVE_XSERVER="true"
9440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 break 2
9442 fi
9443 done
9444 done
9445 IFS=$as_save_IFS
9446
9447 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9448 fi
9449 fi
9450 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9451 if test -n "$HAVE_XSERVER"; then
9452 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9453 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9454 else
9455 { echo "$as_me:$LINENO: result: no" >&5
9456 echo "${ECHO_T}no" >&6; }
9457 fi
9458
9459
9460 if test "$HAVE_XSERVER" = true ||
9461 test -n "$DISPLAY" ||
9462 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9463 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9464 were found. You should install the relevant development files for X
9465 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9466 sure you have development files for image handling, i.e.
9467 tiff, gif, jpeg, png and xpm.
9468 If you are sure you want Emacs compiled without X window support, pass
9469 --without-x
9470 to configure." >&5
9471 echo "$as_me: error: You seem to be running X, but no X development libraries
9472 were found. You should install the relevant development files for X
9473 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9474 sure you have development files for image handling, i.e.
9475 tiff, gif, jpeg, png and xpm.
9476 If you are sure you want Emacs compiled without X window support, pass
9477 --without-x
9478 to configure." >&2;}
9479 { (exit 1); exit 1; }; }
9480 fi
9481 fi
9482
9483 ### If we're using X11, we should use the X menu package.
9484 HAVE_MENUS=no
9485 case ${HAVE_X11} in
9486 yes ) HAVE_MENUS=yes ;;
9487 esac
9488
9489 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9490 # Assume not, until told otherwise.
9491 GNU_MALLOC=yes
9492 doug_lea_malloc=yes
9493 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9494 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9495 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 else
9498 cat >conftest.$ac_ext <<_ACEOF
9499 /* confdefs.h. */
9500 _ACEOF
9501 cat confdefs.h >>conftest.$ac_ext
9502 cat >>conftest.$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9506 #define malloc_get_state innocuous_malloc_get_state
9507
9508 /* System header to define __stub macros and hopefully few prototypes,
9509 which can conflict with char malloc_get_state (); below.
9510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511 <limits.h> exists even on freestanding compilers. */
9512
9513 #ifdef __STDC__
9514 # include <limits.h>
9515 #else
9516 # include <assert.h>
9517 #endif
9518
9519 #undef malloc_get_state
9520
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9524 #ifdef __cplusplus
9525 extern "C"
9526 #endif
9527 char malloc_get_state ();
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9532 choke me
9533 #endif
9534
9535 int
9536 main ()
9537 {
9538 return malloc_get_state ();
9539 ;
9540 return 0;
9541 }
9542 _ACEOF
9543 rm -f conftest.$ac_objext conftest$ac_exeext
9544 if { (ac_try="$ac_link"
9545 case "(($ac_try" in
9546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9548 esac
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_link") 2>conftest.er1
9551 ac_status=$?
9552 grep -v '^ *+' conftest.er1 >conftest.err
9553 rm -f conftest.er1
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && {
9557 test -z "$ac_c_werror_flag" ||
9558 test ! -s conftest.err
9559 } && test -s conftest$ac_exeext &&
9560 $as_test_x conftest$ac_exeext; then
9561 ac_cv_func_malloc_get_state=yes
9562 else
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 ac_cv_func_malloc_get_state=no
9567 fi
9568
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570 conftest$ac_exeext conftest.$ac_ext
9571 fi
9572 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9573 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9574 if test $ac_cv_func_malloc_get_state = yes; then
9575 :
9576 else
9577 doug_lea_malloc=no
9578 fi
9579
9580 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9581 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9582 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585 cat >conftest.$ac_ext <<_ACEOF
9586 /* confdefs.h. */
9587 _ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9591 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9592 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9593 #define malloc_set_state innocuous_malloc_set_state
9594
9595 /* System header to define __stub macros and hopefully few prototypes,
9596 which can conflict with char malloc_set_state (); below.
9597 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9598 <limits.h> exists even on freestanding compilers. */
9599
9600 #ifdef __STDC__
9601 # include <limits.h>
9602 #else
9603 # include <assert.h>
9604 #endif
9605
9606 #undef malloc_set_state
9607
9608 /* Override any GCC internal prototype to avoid an error.
9609 Use char because int might match the return type of a GCC
9610 builtin and then its argument prototype would still apply. */
9611 #ifdef __cplusplus
9612 extern "C"
9613 #endif
9614 char malloc_set_state ();
9615 /* The GNU C library defines this for functions which it implements
9616 to always fail with ENOSYS. Some functions are actually named
9617 something starting with __ and the normal name is an alias. */
9618 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9619 choke me
9620 #endif
9621
9622 int
9623 main ()
9624 {
9625 return malloc_set_state ();
9626 ;
9627 return 0;
9628 }
9629 _ACEOF
9630 rm -f conftest.$ac_objext conftest$ac_exeext
9631 if { (ac_try="$ac_link"
9632 case "(($ac_try" in
9633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9634 *) ac_try_echo=$ac_try;;
9635 esac
9636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9637 (eval "$ac_link") 2>conftest.er1
9638 ac_status=$?
9639 grep -v '^ *+' conftest.er1 >conftest.err
9640 rm -f conftest.er1
9641 cat conftest.err >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } && {
9644 test -z "$ac_c_werror_flag" ||
9645 test ! -s conftest.err
9646 } && test -s conftest$ac_exeext &&
9647 $as_test_x conftest$ac_exeext; then
9648 ac_cv_func_malloc_set_state=yes
9649 else
9650 echo "$as_me: failed program was:" >&5
9651 sed 's/^/| /' conftest.$ac_ext >&5
9652
9653 ac_cv_func_malloc_set_state=no
9654 fi
9655
9656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9657 conftest$ac_exeext conftest.$ac_ext
9658 fi
9659 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9660 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9661 if test $ac_cv_func_malloc_set_state = yes; then
9662 :
9663 else
9664 doug_lea_malloc=no
9665 fi
9666
9667 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9668 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9669 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672 cat >conftest.$ac_ext <<_ACEOF
9673 /* confdefs.h. */
9674 _ACEOF
9675 cat confdefs.h >>conftest.$ac_ext
9676 cat >>conftest.$ac_ext <<_ACEOF
9677 /* end confdefs.h. */
9678 extern void (* __after_morecore_hook)();
9679 int
9680 main ()
9681 {
9682 __after_morecore_hook = 0
9683 ;
9684 return 0;
9685 }
9686 _ACEOF
9687 rm -f conftest.$ac_objext conftest$ac_exeext
9688 if { (ac_try="$ac_link"
9689 case "(($ac_try" in
9690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9691 *) ac_try_echo=$ac_try;;
9692 esac
9693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9694 (eval "$ac_link") 2>conftest.er1
9695 ac_status=$?
9696 grep -v '^ *+' conftest.er1 >conftest.err
9697 rm -f conftest.er1
9698 cat conftest.err >&5
9699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9700 (exit $ac_status); } && {
9701 test -z "$ac_c_werror_flag" ||
9702 test ! -s conftest.err
9703 } && test -s conftest$ac_exeext &&
9704 $as_test_x conftest$ac_exeext; then
9705 emacs_cv_var___after_morecore_hook=yes
9706 else
9707 echo "$as_me: failed program was:" >&5
9708 sed 's/^/| /' conftest.$ac_ext >&5
9709
9710 emacs_cv_var___after_morecore_hook=no
9711 fi
9712
9713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9714 conftest$ac_exeext conftest.$ac_ext
9715 fi
9716 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9717 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9718 if test $emacs_cv_var___after_morecore_hook = no; then
9719 doug_lea_malloc=no
9720 fi
9721 if test "${system_malloc}" = "yes"; then
9722 GNU_MALLOC=no
9723 GNU_MALLOC_reason="
9724 (The GNU allocators don't work with this system configuration.)"
9725 fi
9726 if test "$doug_lea_malloc" = "yes" ; then
9727 if test "$GNU_MALLOC" = yes ; then
9728 GNU_MALLOC_reason="
9729 (Using Doug Lea's new malloc from the GNU C Library.)"
9730 fi
9731
9732 cat >>confdefs.h <<\_ACEOF
9733 #define DOUG_LEA_MALLOC 1
9734 _ACEOF
9735
9736 fi
9737
9738 if test x"${REL_ALLOC}" = x; then
9739 REL_ALLOC=${GNU_MALLOC}
9740 fi
9741
9742
9743
9744
9745 for ac_header in stdlib.h unistd.h
9746 do
9747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9752 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 fi
9754 ac_res=`eval echo '${'$as_ac_Header'}'`
9755 { echo "$as_me:$LINENO: result: $ac_res" >&5
9756 echo "${ECHO_T}$ac_res" >&6; }
9757 else
9758 # Is the header compilable?
9759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 $ac_includes_default
9768 #include <$ac_header>
9769 _ACEOF
9770 rm -f conftest.$ac_objext
9771 if { (ac_try="$ac_compile"
9772 case "(($ac_try" in
9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9774 *) ac_try_echo=$ac_try;;
9775 esac
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_compile") 2>conftest.er1
9778 ac_status=$?
9779 grep -v '^ *+' conftest.er1 >conftest.err
9780 rm -f conftest.er1
9781 cat conftest.err >&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && {
9784 test -z "$ac_c_werror_flag" ||
9785 test ! -s conftest.err
9786 } && test -s conftest.$ac_objext; then
9787 ac_header_compiler=yes
9788 else
9789 echo "$as_me: failed program was:" >&5
9790 sed 's/^/| /' conftest.$ac_ext >&5
9791
9792 ac_header_compiler=no
9793 fi
9794
9795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9796 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9797 echo "${ECHO_T}$ac_header_compiler" >&6; }
9798
9799 # Is the header present?
9800 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9802 cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h. */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 #include <$ac_header>
9809 _ACEOF
9810 if { (ac_try="$ac_cpp conftest.$ac_ext"
9811 case "(($ac_try" in
9812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9813 *) ac_try_echo=$ac_try;;
9814 esac
9815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9817 ac_status=$?
9818 grep -v '^ *+' conftest.er1 >conftest.err
9819 rm -f conftest.er1
9820 cat conftest.err >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } >/dev/null && {
9823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9824 test ! -s conftest.err
9825 }; then
9826 ac_header_preproc=yes
9827 else
9828 echo "$as_me: failed program was:" >&5
9829 sed 's/^/| /' conftest.$ac_ext >&5
9830
9831 ac_header_preproc=no
9832 fi
9833
9834 rm -f conftest.err conftest.$ac_ext
9835 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9836 echo "${ECHO_T}$ac_header_preproc" >&6; }
9837
9838 # So? What about this header?
9839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9840 yes:no: )
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9845 ac_header_preproc=yes
9846 ;;
9847 no:yes:* )
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9860
9861 ;;
9862 esac
9863 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9864 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9865 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 else
9868 eval "$as_ac_Header=\$ac_header_preproc"
9869 fi
9870 ac_res=`eval echo '${'$as_ac_Header'}'`
9871 { echo "$as_me:$LINENO: result: $ac_res" >&5
9872 echo "${ECHO_T}$ac_res" >&6; }
9873
9874 fi
9875 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9876 cat >>confdefs.h <<_ACEOF
9877 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9878 _ACEOF
9879
9880 fi
9881
9882 done
9883
9884
9885 for ac_func in getpagesize
9886 do
9887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9891 echo $ECHO_N "(cached) $ECHO_C" >&6
9892 else
9893 cat >conftest.$ac_ext <<_ACEOF
9894 /* confdefs.h. */
9895 _ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9901 #define $ac_func innocuous_$ac_func
9902
9903 /* System header to define __stub macros and hopefully few prototypes,
9904 which can conflict with char $ac_func (); below.
9905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9906 <limits.h> exists even on freestanding compilers. */
9907
9908 #ifdef __STDC__
9909 # include <limits.h>
9910 #else
9911 # include <assert.h>
9912 #endif
9913
9914 #undef $ac_func
9915
9916 /* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9919 #ifdef __cplusplus
9920 extern "C"
9921 #endif
9922 char $ac_func ();
9923 /* The GNU C library defines this for functions which it implements
9924 to always fail with ENOSYS. Some functions are actually named
9925 something starting with __ and the normal name is an alias. */
9926 #if defined __stub_$ac_func || defined __stub___$ac_func
9927 choke me
9928 #endif
9929
9930 int
9931 main ()
9932 {
9933 return $ac_func ();
9934 ;
9935 return 0;
9936 }
9937 _ACEOF
9938 rm -f conftest.$ac_objext conftest$ac_exeext
9939 if { (ac_try="$ac_link"
9940 case "(($ac_try" in
9941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9942 *) ac_try_echo=$ac_try;;
9943 esac
9944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9945 (eval "$ac_link") 2>conftest.er1
9946 ac_status=$?
9947 grep -v '^ *+' conftest.er1 >conftest.err
9948 rm -f conftest.er1
9949 cat conftest.err >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } && {
9952 test -z "$ac_c_werror_flag" ||
9953 test ! -s conftest.err
9954 } && test -s conftest$ac_exeext &&
9955 $as_test_x conftest$ac_exeext; then
9956 eval "$as_ac_var=yes"
9957 else
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9960
9961 eval "$as_ac_var=no"
9962 fi
9963
9964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965 conftest$ac_exeext conftest.$ac_ext
9966 fi
9967 ac_res=`eval echo '${'$as_ac_var'}'`
9968 { echo "$as_me:$LINENO: result: $ac_res" >&5
9969 echo "${ECHO_T}$ac_res" >&6; }
9970 if test `eval echo '${'$as_ac_var'}'` = yes; then
9971 cat >>confdefs.h <<_ACEOF
9972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9973 _ACEOF
9974
9975 fi
9976 done
9977
9978 { echo "$as_me:$LINENO: checking for working mmap" >&5
9979 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9980 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9981 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 else
9983 if test "$cross_compiling" = yes; then
9984 ac_cv_func_mmap_fixed_mapped=no
9985 else
9986 cat >conftest.$ac_ext <<_ACEOF
9987 /* confdefs.h. */
9988 _ACEOF
9989 cat confdefs.h >>conftest.$ac_ext
9990 cat >>conftest.$ac_ext <<_ACEOF
9991 /* end confdefs.h. */
9992 $ac_includes_default
9993 /* malloc might have been renamed as rpl_malloc. */
9994 #undef malloc
9995
9996 /* Thanks to Mike Haertel and Jim Avera for this test.
9997 Here is a matrix of mmap possibilities:
9998 mmap private not fixed
9999 mmap private fixed at somewhere currently unmapped
10000 mmap private fixed at somewhere already mapped
10001 mmap shared not fixed
10002 mmap shared fixed at somewhere currently unmapped
10003 mmap shared fixed at somewhere already mapped
10004 For private mappings, we should verify that changes cannot be read()
10005 back from the file, nor mmap's back from the file at a different
10006 address. (There have been systems where private was not correctly
10007 implemented like the infamous i386 svr4.0, and systems where the
10008 VM page cache was not coherent with the file system buffer cache
10009 like early versions of FreeBSD and possibly contemporary NetBSD.)
10010 For shared mappings, we should conversely verify that changes get
10011 propagated back to all the places they're supposed to be.
10012
10013 Grep wants private fixed already mapped.
10014 The main things grep needs to know about mmap are:
10015 * does it exist and is it safe to write into the mmap'd area
10016 * how to use it (BSD variants) */
10017
10018 #include <fcntl.h>
10019 #include <sys/mman.h>
10020
10021 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10022 char *malloc ();
10023 #endif
10024
10025 /* This mess was copied from the GNU getpagesize.h. */
10026 #ifndef HAVE_GETPAGESIZE
10027 /* Assume that all systems that can run configure have sys/param.h. */
10028 # ifndef HAVE_SYS_PARAM_H
10029 # define HAVE_SYS_PARAM_H 1
10030 # endif
10031
10032 # ifdef _SC_PAGESIZE
10033 # define getpagesize() sysconf(_SC_PAGESIZE)
10034 # else /* no _SC_PAGESIZE */
10035 # ifdef HAVE_SYS_PARAM_H
10036 # include <sys/param.h>
10037 # ifdef EXEC_PAGESIZE
10038 # define getpagesize() EXEC_PAGESIZE
10039 # else /* no EXEC_PAGESIZE */
10040 # ifdef NBPG
10041 # define getpagesize() NBPG * CLSIZE
10042 # ifndef CLSIZE
10043 # define CLSIZE 1
10044 # endif /* no CLSIZE */
10045 # else /* no NBPG */
10046 # ifdef NBPC
10047 # define getpagesize() NBPC
10048 # else /* no NBPC */
10049 # ifdef PAGESIZE
10050 # define getpagesize() PAGESIZE
10051 # endif /* PAGESIZE */
10052 # endif /* no NBPC */
10053 # endif /* no NBPG */
10054 # endif /* no EXEC_PAGESIZE */
10055 # else /* no HAVE_SYS_PARAM_H */
10056 # define getpagesize() 8192 /* punt totally */
10057 # endif /* no HAVE_SYS_PARAM_H */
10058 # endif /* no _SC_PAGESIZE */
10059
10060 #endif /* no HAVE_GETPAGESIZE */
10061
10062 int
10063 main ()
10064 {
10065 char *data, *data2, *data3;
10066 int i, pagesize;
10067 int fd;
10068
10069 pagesize = getpagesize ();
10070
10071 /* First, make a file with some known garbage in it. */
10072 data = (char *) malloc (pagesize);
10073 if (!data)
10074 return 1;
10075 for (i = 0; i < pagesize; ++i)
10076 *(data + i) = rand ();
10077 umask (0);
10078 fd = creat ("conftest.mmap", 0600);
10079 if (fd < 0)
10080 return 1;
10081 if (write (fd, data, pagesize) != pagesize)
10082 return 1;
10083 close (fd);
10084
10085 /* Next, try to mmap the file at a fixed address which already has
10086 something else allocated at it. If we can, also make sure that
10087 we see the same garbage. */
10088 fd = open ("conftest.mmap", O_RDWR);
10089 if (fd < 0)
10090 return 1;
10091 data2 = (char *) malloc (2 * pagesize);
10092 if (!data2)
10093 return 1;
10094 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10095 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10096 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10097 return 1;
10098 for (i = 0; i < pagesize; ++i)
10099 if (*(data + i) != *(data2 + i))
10100 return 1;
10101
10102 /* Finally, make sure that changes to the mapped area do not
10103 percolate back to the file as seen by read(). (This is a bug on
10104 some variants of i386 svr4.0.) */
10105 for (i = 0; i < pagesize; ++i)
10106 *(data2 + i) = *(data2 + i) + 1;
10107 data3 = (char *) malloc (pagesize);
10108 if (!data3)
10109 return 1;
10110 if (read (fd, data3, pagesize) != pagesize)
10111 return 1;
10112 for (i = 0; i < pagesize; ++i)
10113 if (*(data + i) != *(data3 + i))
10114 return 1;
10115 close (fd);
10116 return 0;
10117 }
10118 _ACEOF
10119 rm -f conftest$ac_exeext
10120 if { (ac_try="$ac_link"
10121 case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126 (eval "$ac_link") 2>&5
10127 ac_status=$?
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10130 { (case "(($ac_try" in
10131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132 *) ac_try_echo=$ac_try;;
10133 esac
10134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135 (eval "$ac_try") 2>&5
10136 ac_status=$?
10137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138 (exit $ac_status); }; }; then
10139 ac_cv_func_mmap_fixed_mapped=yes
10140 else
10141 echo "$as_me: program exited with status $ac_status" >&5
10142 echo "$as_me: failed program was:" >&5
10143 sed 's/^/| /' conftest.$ac_ext >&5
10144
10145 ( exit $ac_status )
10146 ac_cv_func_mmap_fixed_mapped=no
10147 fi
10148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10149 fi
10150
10151
10152 fi
10153 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10154 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10155 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10156
10157 cat >>confdefs.h <<\_ACEOF
10158 #define HAVE_MMAP 1
10159 _ACEOF
10160
10161 fi
10162 rm -f conftest.mmap
10163
10164 if test $use_mmap_for_buffers = yes; then
10165 REL_ALLOC=no
10166 fi
10167
10168 LIBS="$libsrc_libs $LIBS"
10169
10170
10171 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10172 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10173 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176 ac_check_lib_save_LIBS=$LIBS
10177 LIBS="-ldnet $LIBS"
10178 cat >conftest.$ac_ext <<_ACEOF
10179 /* confdefs.h. */
10180 _ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184
10185 /* Override any GCC internal prototype to avoid an error.
10186 Use char because int might match the return type of a GCC
10187 builtin and then its argument prototype would still apply. */
10188 #ifdef __cplusplus
10189 extern "C"
10190 #endif
10191 char dnet_ntoa ();
10192 int
10193 main ()
10194 {
10195 return dnet_ntoa ();
10196 ;
10197 return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>conftest.er1
10208 ac_status=$?
10209 grep -v '^ *+' conftest.er1 >conftest.err
10210 rm -f conftest.er1
10211 cat conftest.err >&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); } && {
10214 test -z "$ac_c_werror_flag" ||
10215 test ! -s conftest.err
10216 } && test -s conftest$ac_exeext &&
10217 $as_test_x conftest$ac_exeext; then
10218 ac_cv_lib_dnet_dnet_ntoa=yes
10219 else
10220 echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223 ac_cv_lib_dnet_dnet_ntoa=no
10224 fi
10225
10226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10227 conftest$ac_exeext conftest.$ac_ext
10228 LIBS=$ac_check_lib_save_LIBS
10229 fi
10230 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10231 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10232 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10233 cat >>confdefs.h <<_ACEOF
10234 #define HAVE_LIBDNET 1
10235 _ACEOF
10236
10237 LIBS="-ldnet $LIBS"
10238
10239 fi
10240
10241
10242 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10243 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10244 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10246 else
10247 ac_check_lib_save_LIBS=$LIBS
10248 LIBS="-lXbsd $LIBS"
10249 cat >conftest.$ac_ext <<_ACEOF
10250 /* confdefs.h. */
10251 _ACEOF
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10255
10256
10257 int
10258 main ()
10259 {
10260 return main ();
10261 ;
10262 return 0;
10263 }
10264 _ACEOF
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (ac_try="$ac_link"
10267 case "(($ac_try" in
10268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269 *) ac_try_echo=$ac_try;;
10270 esac
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272 (eval "$ac_link") 2>conftest.er1
10273 ac_status=$?
10274 grep -v '^ *+' conftest.er1 >conftest.err
10275 rm -f conftest.er1
10276 cat conftest.err >&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); } && {
10279 test -z "$ac_c_werror_flag" ||
10280 test ! -s conftest.err
10281 } && test -s conftest$ac_exeext &&
10282 $as_test_x conftest$ac_exeext; then
10283 ac_cv_lib_Xbsd_main=yes
10284 else
10285 echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10287
10288 ac_cv_lib_Xbsd_main=no
10289 fi
10290
10291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10292 conftest$ac_exeext conftest.$ac_ext
10293 LIBS=$ac_check_lib_save_LIBS
10294 fi
10295 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10296 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10297 if test $ac_cv_lib_Xbsd_main = yes; then
10298 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10299 fi
10300
10301
10302
10303 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10304 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10305 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10306 echo $ECHO_N "(cached) $ECHO_C" >&6
10307 else
10308 ac_check_lib_save_LIBS=$LIBS
10309 LIBS="-lpthreads $LIBS"
10310 cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h. */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h. */
10316
10317 /* Override any GCC internal prototype to avoid an error.
10318 Use char because int might match the return type of a GCC
10319 builtin and then its argument prototype would still apply. */
10320 #ifdef __cplusplus
10321 extern "C"
10322 #endif
10323 char cma_open ();
10324 int
10325 main ()
10326 {
10327 return cma_open ();
10328 ;
10329 return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_link") 2>conftest.er1
10340 ac_status=$?
10341 grep -v '^ *+' conftest.er1 >conftest.err
10342 rm -f conftest.er1
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest$ac_exeext &&
10349 $as_test_x conftest$ac_exeext; then
10350 ac_cv_lib_pthreads_cma_open=yes
10351 else
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355 ac_cv_lib_pthreads_cma_open=no
10356 fi
10357
10358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10359 conftest$ac_exeext conftest.$ac_ext
10360 LIBS=$ac_check_lib_save_LIBS
10361 fi
10362 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10363 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10364 if test $ac_cv_lib_pthreads_cma_open = yes; then
10365 cat >>confdefs.h <<_ACEOF
10366 #define HAVE_LIBPTHREADS 1
10367 _ACEOF
10368
10369 LIBS="-lpthreads $LIBS"
10370
10371 fi
10372
10373
10374
10375 case ${host_os} in
10376 aix*)
10377 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10378 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10379 if test "${gdb_cv_bigtoc+set}" = set; then
10380 echo $ECHO_N "(cached) $ECHO_C" >&6
10381 else
10382
10383 case $GCC in
10384 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10385 *) gdb_cv_bigtoc=-bbigtoc ;;
10386 esac
10387
10388 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h. */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395
10396 int
10397 main ()
10398 {
10399 int i;
10400 ;
10401 return 0;
10402 }
10403 _ACEOF
10404 rm -f conftest.$ac_objext conftest$ac_exeext
10405 if { (ac_try="$ac_link"
10406 case "(($ac_try" in
10407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408 *) ac_try_echo=$ac_try;;
10409 esac
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411 (eval "$ac_link") 2>conftest.er1
10412 ac_status=$?
10413 grep -v '^ *+' conftest.er1 >conftest.err
10414 rm -f conftest.er1
10415 cat conftest.err >&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); } && {
10418 test -z "$ac_c_werror_flag" ||
10419 test ! -s conftest.err
10420 } && test -s conftest$ac_exeext &&
10421 $as_test_x conftest$ac_exeext; then
10422 :
10423 else
10424 echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10426
10427 gdb_cv_bigtoc=
10428 fi
10429
10430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10431 conftest$ac_exeext conftest.$ac_ext
10432
10433 fi
10434 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10435 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10436 ;;
10437 esac
10438
10439 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10440 # used for the tests that follow. We set them back to REAL_CFLAGS and
10441 # REAL_CPPFLAGS later on.
10442
10443 REAL_CPPFLAGS="$CPPFLAGS"
10444
10445 if test "${HAVE_X11}" = "yes"; then
10446 DEFS="$C_SWITCH_X_SITE $DEFS"
10447 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10448 LIBS="$LIBX $LIBS"
10449 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10450 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10451
10452 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10453 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10454 # but it's more convenient here to set LD_RUN_PATH
10455 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10456 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10457 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10458 export LD_RUN_PATH
10459 fi
10460
10461 if test "${opsys}" = "gnu-linux"; then
10462 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10463 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10464 cat >conftest.$ac_ext <<_ACEOF
10465 /* confdefs.h. */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10470
10471 int
10472 main ()
10473 {
10474 XOpenDisplay ("foo");
10475 ;
10476 return 0;
10477 }
10478 _ACEOF
10479 rm -f conftest.$ac_objext conftest$ac_exeext
10480 if { (ac_try="$ac_link"
10481 case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10484 esac
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_link") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext &&
10496 $as_test_x conftest$ac_exeext; then
10497 xlinux_first_failure=no
10498 else
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10501
10502 xlinux_first_failure=yes
10503 fi
10504
10505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10506 conftest$ac_exeext conftest.$ac_ext
10507 if test "${xlinux_first_failure}" = "yes"; then
10508 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10509 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10510 OLD_CPPFLAGS="$CPPFLAGS"
10511 OLD_LIBS="$LIBS"
10512 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10513 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10514 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10515 LIBS="$LIBS -b i486-linuxaout"
10516 cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h. */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h. */
10522
10523 int
10524 main ()
10525 {
10526 XOpenDisplay ("foo");
10527 ;
10528 return 0;
10529 }
10530 _ACEOF
10531 rm -f conftest.$ac_objext conftest$ac_exeext
10532 if { (ac_try="$ac_link"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536 esac
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_link") 2>conftest.er1
10539 ac_status=$?
10540 grep -v '^ *+' conftest.er1 >conftest.err
10541 rm -f conftest.er1
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } && {
10545 test -z "$ac_c_werror_flag" ||
10546 test ! -s conftest.err
10547 } && test -s conftest$ac_exeext &&
10548 $as_test_x conftest$ac_exeext; then
10549 xlinux_second_failure=no
10550 else
10551 echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554 xlinux_second_failure=yes
10555 fi
10556
10557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10558 conftest$ac_exeext conftest.$ac_ext
10559 if test "${xlinux_second_failure}" = "yes"; then
10560 # If we get the same failure with -b, there is no use adding -b.
10561 # So take it out. This plays safe.
10562 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10563 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10564 CPPFLAGS="$OLD_CPPFLAGS"
10565 LIBS="$OLD_LIBS"
10566 { echo "$as_me:$LINENO: result: no" >&5
10567 echo "${ECHO_T}no" >&6; }
10568 else
10569 { echo "$as_me:$LINENO: result: yes" >&5
10570 echo "${ECHO_T}yes" >&6; }
10571 fi
10572 else
10573 { echo "$as_me:$LINENO: result: no" >&5
10574 echo "${ECHO_T}no" >&6; }
10575 fi
10576 fi
10577
10578 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10579 # header files included from there.
10580 { echo "$as_me:$LINENO: checking for Xkb" >&5
10581 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h. */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 #include <X11/Xlib.h>
10589 #include <X11/XKBlib.h>
10590 int
10591 main ()
10592 {
10593 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10594 ;
10595 return 0;
10596 }
10597 _ACEOF
10598 rm -f conftest.$ac_objext conftest$ac_exeext
10599 if { (ac_try="$ac_link"
10600 case "(($ac_try" in
10601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602 *) ac_try_echo=$ac_try;;
10603 esac
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605 (eval "$ac_link") 2>conftest.er1
10606 ac_status=$?
10607 grep -v '^ *+' conftest.er1 >conftest.err
10608 rm -f conftest.er1
10609 cat conftest.err >&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } && {
10612 test -z "$ac_c_werror_flag" ||
10613 test ! -s conftest.err
10614 } && test -s conftest$ac_exeext &&
10615 $as_test_x conftest$ac_exeext; then
10616 emacs_xkb=yes
10617 else
10618 echo "$as_me: failed program was:" >&5
10619 sed 's/^/| /' conftest.$ac_ext >&5
10620
10621 emacs_xkb=no
10622 fi
10623
10624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10625 conftest$ac_exeext conftest.$ac_ext
10626 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10627 echo "${ECHO_T}$emacs_xkb" >&6; }
10628 if test $emacs_xkb = yes; then
10629
10630 cat >>confdefs.h <<\_ACEOF
10631 #define HAVE_XKBGETKEYBOARD 1
10632 _ACEOF
10633
10634 fi
10635
10636
10637
10638
10639
10640 for ac_func in XrmSetDatabase XScreenResourceString \
10641 XScreenNumberOfScreen XSetWMProtocols
10642 do
10643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10647 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 else
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10657 #define $ac_func innocuous_$ac_func
10658
10659 /* System header to define __stub macros and hopefully few prototypes,
10660 which can conflict with char $ac_func (); below.
10661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10662 <limits.h> exists even on freestanding compilers. */
10663
10664 #ifdef __STDC__
10665 # include <limits.h>
10666 #else
10667 # include <assert.h>
10668 #endif
10669
10670 #undef $ac_func
10671
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10675 #ifdef __cplusplus
10676 extern "C"
10677 #endif
10678 char $ac_func ();
10679 /* The GNU C library defines this for functions which it implements
10680 to always fail with ENOSYS. Some functions are actually named
10681 something starting with __ and the normal name is an alias. */
10682 #if defined __stub_$ac_func || defined __stub___$ac_func
10683 choke me
10684 #endif
10685
10686 int
10687 main ()
10688 {
10689 return $ac_func ();
10690 ;
10691 return 0;
10692 }
10693 _ACEOF
10694 rm -f conftest.$ac_objext conftest$ac_exeext
10695 if { (ac_try="$ac_link"
10696 case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_link") 2>conftest.er1
10702 ac_status=$?
10703 grep -v '^ *+' conftest.er1 >conftest.err
10704 rm -f conftest.er1
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } && {
10708 test -z "$ac_c_werror_flag" ||
10709 test ! -s conftest.err
10710 } && test -s conftest$ac_exeext &&
10711 $as_test_x conftest$ac_exeext; then
10712 eval "$as_ac_var=yes"
10713 else
10714 echo "$as_me: failed program was:" >&5
10715 sed 's/^/| /' conftest.$ac_ext >&5
10716
10717 eval "$as_ac_var=no"
10718 fi
10719
10720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10721 conftest$ac_exeext conftest.$ac_ext
10722 fi
10723 ac_res=`eval echo '${'$as_ac_var'}'`
10724 { echo "$as_me:$LINENO: result: $ac_res" >&5
10725 echo "${ECHO_T}$ac_res" >&6; }
10726 if test `eval echo '${'$as_ac_var'}'` = yes; then
10727 cat >>confdefs.h <<_ACEOF
10728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10729 _ACEOF
10730
10731 fi
10732 done
10733
10734 fi
10735
10736 if test "${window_system}" = "x11"; then
10737 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10738 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10739 if test "${emacs_cv_x11_version_6+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 #include <X11/Xlib.h>
10749 int
10750 main ()
10751 {
10752 #if XlibSpecificationRelease < 6
10753 fail;
10754 #endif
10755
10756 ;
10757 return 0;
10758 }
10759 _ACEOF
10760 rm -f conftest.$ac_objext 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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest$ac_exeext &&
10777 $as_test_x conftest$ac_exeext; then
10778 emacs_cv_x11_version_6=yes
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 emacs_cv_x11_version_6=no
10784 fi
10785
10786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10787 conftest$ac_exeext conftest.$ac_ext
10788 fi
10789
10790 if test $emacs_cv_x11_version_6 = yes; then
10791 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10792 echo "${ECHO_T}6 or newer" >&6; }
10793
10794 cat >>confdefs.h <<\_ACEOF
10795 #define HAVE_X11R6 1
10796 _ACEOF
10797
10798 else
10799 { echo "$as_me:$LINENO: result: before 6" >&5
10800 echo "${ECHO_T}before 6" >&6; }
10801 fi
10802 fi
10803
10804
10805 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10806 HAVE_RSVG=no
10807 if test "${HAVE_X11}" = "yes"; then
10808 if test "${with_rsvg}" != "no"; then
10809 RSVG_REQUIRED=2.0.0
10810 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10811
10812
10813 succeeded=no
10814
10815 # Extract the first word of "pkg-config", so it can be a program name with args.
10816 set dummy pkg-config; ac_word=$2
10817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10819 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10820 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 else
10822 case $PKG_CONFIG in
10823 [\\/]* | ?:[\\/]*)
10824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10825 ;;
10826 *)
10827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10828 for as_dir in $PATH
10829 do
10830 IFS=$as_save_IFS
10831 test -z "$as_dir" && as_dir=.
10832 for ac_exec_ext in '' $ac_executable_extensions; do
10833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10834 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10836 break 2
10837 fi
10838 done
10839 done
10840 IFS=$as_save_IFS
10841
10842 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10843 ;;
10844 esac
10845 fi
10846 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10847 if test -n "$PKG_CONFIG"; then
10848 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10849 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10850 else
10851 { echo "$as_me:$LINENO: result: no" >&5
10852 echo "${ECHO_T}no" >&6; }
10853 fi
10854
10855
10856
10857 if test "$PKG_CONFIG" = "no" ; then
10858 :
10859 else
10860 PKG_CONFIG_MIN_VERSION=0.9.0
10861 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10862 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10863 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10864
10865 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10866 { echo "$as_me:$LINENO: result: yes" >&5
10867 echo "${ECHO_T}yes" >&6; }
10868 succeeded=yes
10869
10870 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10871 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10872 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10873 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10874 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10875
10876 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10877 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10878 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10879 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10880 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10881 else
10882 { echo "$as_me:$LINENO: result: no" >&5
10883 echo "${ECHO_T}no" >&6; }
10884 RSVG_CFLAGS=""
10885 RSVG_LIBS=""
10886 ## If we have a custom action on failure, don't print errors, but
10887 ## do set a variable so people can do so.
10888 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10889
10890 fi
10891
10892
10893
10894 else
10895 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10896 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10897 fi
10898 fi
10899
10900 if test $succeeded = yes; then
10901 :
10902 else
10903 :
10904 fi
10905
10906
10907
10908
10909 if test ".${RSVG_CFLAGS}" != "."; then
10910 HAVE_RSVG=yes
10911
10912 cat >>confdefs.h <<\_ACEOF
10913 #define HAVE_RSVG 1
10914 _ACEOF
10915
10916 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10917 LIBS="$RSVG_LIBS $LIBS"
10918 fi
10919 fi
10920 fi
10921
10922
10923 HAVE_GTK=no
10924 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10925 GLIB_REQUIRED=2.6
10926 GTK_REQUIRED=2.6
10927 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10928
10929
10930 succeeded=no
10931
10932 # Extract the first word of "pkg-config", so it can be a program name with args.
10933 set dummy pkg-config; ac_word=$2
10934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10936 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10937 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 else
10939 case $PKG_CONFIG in
10940 [\\/]* | ?:[\\/]*)
10941 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10942 ;;
10943 *)
10944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945 for as_dir in $PATH
10946 do
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
10950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10951 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10954 fi
10955 done
10956 done
10957 IFS=$as_save_IFS
10958
10959 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10960 ;;
10961 esac
10962 fi
10963 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10964 if test -n "$PKG_CONFIG"; then
10965 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10966 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10967 else
10968 { echo "$as_me:$LINENO: result: no" >&5
10969 echo "${ECHO_T}no" >&6; }
10970 fi
10971
10972
10973
10974 if test "$PKG_CONFIG" = "no" ; then
10975 pkg_check_gtk=no
10976 else
10977 PKG_CONFIG_MIN_VERSION=0.9.0
10978 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10979 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10980 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10981
10982 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10983 { echo "$as_me:$LINENO: result: yes" >&5
10984 echo "${ECHO_T}yes" >&6; }
10985 succeeded=yes
10986
10987 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10988 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10989 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10990 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10991 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10992
10993 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10994 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10995 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10996 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10997 echo "${ECHO_T}$GTK_LIBS" >&6; }
10998 else
10999 { echo "$as_me:$LINENO: result: no" >&5
11000 echo "${ECHO_T}no" >&6; }
11001 GTK_CFLAGS=""
11002 GTK_LIBS=""
11003 ## If we have a custom action on failure, don't print errors, but
11004 ## do set a variable so people can do so.
11005 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11006
11007 fi
11008
11009
11010
11011 else
11012 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11013 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11014 fi
11015 fi
11016
11017 if test $succeeded = yes; then
11018 pkg_check_gtk=yes
11019 else
11020 pkg_check_gtk=no
11021 fi
11022
11023 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11024 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11025 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11026 { (exit 1); exit 1; }; }
11027 fi
11028 fi
11029
11030
11031 if test x"$pkg_check_gtk" = xyes; then
11032
11033
11034
11035 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11036 CFLAGS="$CFLAGS $GTK_CFLAGS"
11037 LIBS="$GTK_LIBS $LIBS"
11038 GTK_COMPILES=no
11039
11040 for ac_func in gtk_main
11041 do
11042 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11043 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11044 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11045 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 else
11048 cat >conftest.$ac_ext <<_ACEOF
11049 /* confdefs.h. */
11050 _ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11056 #define $ac_func innocuous_$ac_func
11057
11058 /* System header to define __stub macros and hopefully few prototypes,
11059 which can conflict with char $ac_func (); below.
11060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11061 <limits.h> exists even on freestanding compilers. */
11062
11063 #ifdef __STDC__
11064 # include <limits.h>
11065 #else
11066 # include <assert.h>
11067 #endif
11068
11069 #undef $ac_func
11070
11071 /* Override any GCC internal prototype to avoid an error.
11072 Use char because int might match the return type of a GCC
11073 builtin and then its argument prototype would still apply. */
11074 #ifdef __cplusplus
11075 extern "C"
11076 #endif
11077 char $ac_func ();
11078 /* The GNU C library defines this for functions which it implements
11079 to always fail with ENOSYS. Some functions are actually named
11080 something starting with __ and the normal name is an alias. */
11081 #if defined __stub_$ac_func || defined __stub___$ac_func
11082 choke me
11083 #endif
11084
11085 int
11086 main ()
11087 {
11088 return $ac_func ();
11089 ;
11090 return 0;
11091 }
11092 _ACEOF
11093 rm -f conftest.$ac_objext conftest$ac_exeext
11094 if { (ac_try="$ac_link"
11095 case "(($ac_try" in
11096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11097 *) ac_try_echo=$ac_try;;
11098 esac
11099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11100 (eval "$ac_link") 2>conftest.er1
11101 ac_status=$?
11102 grep -v '^ *+' conftest.er1 >conftest.err
11103 rm -f conftest.er1
11104 cat conftest.err >&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } && {
11107 test -z "$ac_c_werror_flag" ||
11108 test ! -s conftest.err
11109 } && test -s conftest$ac_exeext &&
11110 $as_test_x conftest$ac_exeext; then
11111 eval "$as_ac_var=yes"
11112 else
11113 echo "$as_me: failed program was:" >&5
11114 sed 's/^/| /' conftest.$ac_ext >&5
11115
11116 eval "$as_ac_var=no"
11117 fi
11118
11119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11120 conftest$ac_exeext conftest.$ac_ext
11121 fi
11122 ac_res=`eval echo '${'$as_ac_var'}'`
11123 { echo "$as_me:$LINENO: result: $ac_res" >&5
11124 echo "${ECHO_T}$ac_res" >&6; }
11125 if test `eval echo '${'$as_ac_var'}'` = yes; then
11126 cat >>confdefs.h <<_ACEOF
11127 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11128 _ACEOF
11129 GTK_COMPILES=yes
11130 fi
11131 done
11132
11133 if test "${GTK_COMPILES}" != "yes"; then
11134 if test "$USE_X_TOOLKIT" != "maybe"; then
11135 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11136 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11137 { (exit 1); exit 1; }; };
11138 fi
11139 else
11140 HAVE_GTK=yes
11141
11142 cat >>confdefs.h <<\_ACEOF
11143 #define USE_GTK 1
11144 _ACEOF
11145
11146 USE_X_TOOLKIT=none
11147 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11148 :
11149 else
11150 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11151 closing open displays. This is no problem if you just use
11152 one display, but if you use more than one and close one of them
11153 Emacs may crash." >&5
11154 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11155 closing open displays. This is no problem if you just use
11156 one display, but if you use more than one and close one of them
11157 Emacs may crash." >&2;}
11158 sleep 3
11159 fi
11160 fi
11161
11162 fi
11163
11164
11165 if test "${HAVE_GTK}" = "yes"; then
11166
11167 if test "$with_toolkit_scroll_bars" != no; then
11168 with_toolkit_scroll_bars=yes
11169 fi
11170
11171 HAVE_GTK_MULTIDISPLAY=no
11172
11173 for ac_func in gdk_display_open
11174 do
11175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11179 echo $ECHO_N "(cached) $ECHO_C" >&6
11180 else
11181 cat >conftest.$ac_ext <<_ACEOF
11182 /* confdefs.h. */
11183 _ACEOF
11184 cat confdefs.h >>conftest.$ac_ext
11185 cat >>conftest.$ac_ext <<_ACEOF
11186 /* end confdefs.h. */
11187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11188 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11189 #define $ac_func innocuous_$ac_func
11190
11191 /* System header to define __stub macros and hopefully few prototypes,
11192 which can conflict with char $ac_func (); below.
11193 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11194 <limits.h> exists even on freestanding compilers. */
11195
11196 #ifdef __STDC__
11197 # include <limits.h>
11198 #else
11199 # include <assert.h>
11200 #endif
11201
11202 #undef $ac_func
11203
11204 /* Override any GCC internal prototype to avoid an error.
11205 Use char because int might match the return type of a GCC
11206 builtin and then its argument prototype would still apply. */
11207 #ifdef __cplusplus
11208 extern "C"
11209 #endif
11210 char $ac_func ();
11211 /* The GNU C library defines this for functions which it implements
11212 to always fail with ENOSYS. Some functions are actually named
11213 something starting with __ and the normal name is an alias. */
11214 #if defined __stub_$ac_func || defined __stub___$ac_func
11215 choke me
11216 #endif
11217
11218 int
11219 main ()
11220 {
11221 return $ac_func ();
11222 ;
11223 return 0;
11224 }
11225 _ACEOF
11226 rm -f conftest.$ac_objext conftest$ac_exeext
11227 if { (ac_try="$ac_link"
11228 case "(($ac_try" in
11229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230 *) ac_try_echo=$ac_try;;
11231 esac
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233 (eval "$ac_link") 2>conftest.er1
11234 ac_status=$?
11235 grep -v '^ *+' conftest.er1 >conftest.err
11236 rm -f conftest.er1
11237 cat conftest.err >&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); } && {
11240 test -z "$ac_c_werror_flag" ||
11241 test ! -s conftest.err
11242 } && test -s conftest$ac_exeext &&
11243 $as_test_x conftest$ac_exeext; then
11244 eval "$as_ac_var=yes"
11245 else
11246 echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11248
11249 eval "$as_ac_var=no"
11250 fi
11251
11252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11253 conftest$ac_exeext conftest.$ac_ext
11254 fi
11255 ac_res=`eval echo '${'$as_ac_var'}'`
11256 { echo "$as_me:$LINENO: result: $ac_res" >&5
11257 echo "${ECHO_T}$ac_res" >&6; }
11258 if test `eval echo '${'$as_ac_var'}'` = yes; then
11259 cat >>confdefs.h <<_ACEOF
11260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11261 _ACEOF
11262 HAVE_GTK_MULTIDISPLAY=yes
11263 fi
11264 done
11265
11266 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11267
11268 cat >>confdefs.h <<\_ACEOF
11269 #define HAVE_GTK_MULTIDISPLAY 1
11270 _ACEOF
11271
11272 fi
11273
11274 HAVE_GTK_FILE_SELECTION=no
11275
11276 for ac_func in gtk_file_selection_new
11277 do
11278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 else
11284 cat >conftest.$ac_ext <<_ACEOF
11285 /* confdefs.h. */
11286 _ACEOF
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11292 #define $ac_func innocuous_$ac_func
11293
11294 /* System header to define __stub macros and hopefully few prototypes,
11295 which can conflict with char $ac_func (); below.
11296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11297 <limits.h> exists even on freestanding compilers. */
11298
11299 #ifdef __STDC__
11300 # include <limits.h>
11301 #else
11302 # include <assert.h>
11303 #endif
11304
11305 #undef $ac_func
11306
11307 /* Override any GCC internal prototype to avoid an error.
11308 Use char because int might match the return type of a GCC
11309 builtin and then its argument prototype would still apply. */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 char $ac_func ();
11314 /* The GNU C library defines this for functions which it implements
11315 to always fail with ENOSYS. Some functions are actually named
11316 something starting with __ and the normal name is an alias. */
11317 #if defined __stub_$ac_func || defined __stub___$ac_func
11318 choke me
11319 #endif
11320
11321 int
11322 main ()
11323 {
11324 return $ac_func ();
11325 ;
11326 return 0;
11327 }
11328 _ACEOF
11329 rm -f conftest.$ac_objext conftest$ac_exeext
11330 if { (ac_try="$ac_link"
11331 case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334 esac
11335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_link") 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } && {
11343 test -z "$ac_c_werror_flag" ||
11344 test ! -s conftest.err
11345 } && test -s conftest$ac_exeext &&
11346 $as_test_x conftest$ac_exeext; then
11347 eval "$as_ac_var=yes"
11348 else
11349 echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 eval "$as_ac_var=no"
11353 fi
11354
11355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11356 conftest$ac_exeext conftest.$ac_ext
11357 fi
11358 ac_res=`eval echo '${'$as_ac_var'}'`
11359 { echo "$as_me:$LINENO: result: $ac_res" >&5
11360 echo "${ECHO_T}$ac_res" >&6; }
11361 if test `eval echo '${'$as_ac_var'}'` = yes; then
11362 cat >>confdefs.h <<_ACEOF
11363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11364 _ACEOF
11365 HAVE_GTK_FILE_SELECTION=yes
11366 fi
11367 done
11368
11369
11370 HAVE_GTK_FILE_CHOOSER=no
11371
11372 for ac_func in gtk_file_chooser_dialog_new
11373 do
11374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379 else
11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h. */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
11385 /* end confdefs.h. */
11386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11388 #define $ac_func innocuous_$ac_func
11389
11390 /* System header to define __stub macros and hopefully few prototypes,
11391 which can conflict with char $ac_func (); below.
11392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11393 <limits.h> exists even on freestanding compilers. */
11394
11395 #ifdef __STDC__
11396 # include <limits.h>
11397 #else
11398 # include <assert.h>
11399 #endif
11400
11401 #undef $ac_func
11402
11403 /* Override any GCC internal prototype to avoid an error.
11404 Use char because int might match the return type of a GCC
11405 builtin and then its argument prototype would still apply. */
11406 #ifdef __cplusplus
11407 extern "C"
11408 #endif
11409 char $ac_func ();
11410 /* The GNU C library defines this for functions which it implements
11411 to always fail with ENOSYS. Some functions are actually named
11412 something starting with __ and the normal name is an alias. */
11413 #if defined __stub_$ac_func || defined __stub___$ac_func
11414 choke me
11415 #endif
11416
11417 int
11418 main ()
11419 {
11420 return $ac_func ();
11421 ;
11422 return 0;
11423 }
11424 _ACEOF
11425 rm -f conftest.$ac_objext conftest$ac_exeext
11426 if { (ac_try="$ac_link"
11427 case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11430 esac
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_link") 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } && {
11439 test -z "$ac_c_werror_flag" ||
11440 test ! -s conftest.err
11441 } && test -s conftest$ac_exeext &&
11442 $as_test_x conftest$ac_exeext; then
11443 eval "$as_ac_var=yes"
11444 else
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11447
11448 eval "$as_ac_var=no"
11449 fi
11450
11451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11452 conftest$ac_exeext conftest.$ac_ext
11453 fi
11454 ac_res=`eval echo '${'$as_ac_var'}'`
11455 { echo "$as_me:$LINENO: result: $ac_res" >&5
11456 echo "${ECHO_T}$ac_res" >&6; }
11457 if test `eval echo '${'$as_ac_var'}'` = yes; then
11458 cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11460 _ACEOF
11461 HAVE_GTK_FILE_CHOOSER=yes
11462 fi
11463 done
11464
11465
11466 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11467 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11468
11469 cat >>confdefs.h <<\_ACEOF
11470 #define HAVE_GTK_FILE_BOTH 1
11471 _ACEOF
11472
11473 fi
11474
11475 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11476 HAVE_GTK_AND_PTHREAD=no
11477
11478 for ac_header in pthread.h
11479 do
11480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11482 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 fi
11487 ac_res=`eval echo '${'$as_ac_Header'}'`
11488 { echo "$as_me:$LINENO: result: $ac_res" >&5
11489 echo "${ECHO_T}$ac_res" >&6; }
11490 else
11491 # Is the header compilable?
11492 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11494 cat >conftest.$ac_ext <<_ACEOF
11495 /* confdefs.h. */
11496 _ACEOF
11497 cat confdefs.h >>conftest.$ac_ext
11498 cat >>conftest.$ac_ext <<_ACEOF
11499 /* end confdefs.h. */
11500 $ac_includes_default
11501 #include <$ac_header>
11502 _ACEOF
11503 rm -f conftest.$ac_objext
11504 if { (ac_try="$ac_compile"
11505 case "(($ac_try" in
11506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11507 *) ac_try_echo=$ac_try;;
11508 esac
11509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11510 (eval "$ac_compile") 2>conftest.er1
11511 ac_status=$?
11512 grep -v '^ *+' conftest.er1 >conftest.err
11513 rm -f conftest.er1
11514 cat conftest.err >&5
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); } && {
11517 test -z "$ac_c_werror_flag" ||
11518 test ! -s conftest.err
11519 } && test -s conftest.$ac_objext; then
11520 ac_header_compiler=yes
11521 else
11522 echo "$as_me: failed program was:" >&5
11523 sed 's/^/| /' conftest.$ac_ext >&5
11524
11525 ac_header_compiler=no
11526 fi
11527
11528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11530 echo "${ECHO_T}$ac_header_compiler" >&6; }
11531
11532 # Is the header present?
11533 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11534 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11535 cat >conftest.$ac_ext <<_ACEOF
11536 /* confdefs.h. */
11537 _ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h. */
11541 #include <$ac_header>
11542 _ACEOF
11543 if { (ac_try="$ac_cpp conftest.$ac_ext"
11544 case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547 esac
11548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11550 ac_status=$?
11551 grep -v '^ *+' conftest.er1 >conftest.err
11552 rm -f conftest.er1
11553 cat conftest.err >&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } >/dev/null && {
11556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11557 test ! -s conftest.err
11558 }; then
11559 ac_header_preproc=yes
11560 else
11561 echo "$as_me: failed program was:" >&5
11562 sed 's/^/| /' conftest.$ac_ext >&5
11563
11564 ac_header_preproc=no
11565 fi
11566
11567 rm -f conftest.err conftest.$ac_ext
11568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11569 echo "${ECHO_T}$ac_header_preproc" >&6; }
11570
11571 # So? What about this header?
11572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11573 yes:no: )
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11575 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11577 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11578 ac_header_preproc=yes
11579 ;;
11580 no:yes:* )
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11586 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11588 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11590 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11592 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11593
11594 ;;
11595 esac
11596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11599 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 else
11601 eval "$as_ac_Header=\$ac_header_preproc"
11602 fi
11603 ac_res=`eval echo '${'$as_ac_Header'}'`
11604 { echo "$as_me:$LINENO: result: $ac_res" >&5
11605 echo "${ECHO_T}$ac_res" >&6; }
11606
11607 fi
11608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11609 cat >>confdefs.h <<_ACEOF
11610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11611 _ACEOF
11612
11613 fi
11614
11615 done
11616
11617 if test "$ac_cv_header_pthread_h"; then
11618 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11619 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11620 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623 ac_check_lib_save_LIBS=$LIBS
11624 LIBS="-lpthread $LIBS"
11625 cat >conftest.$ac_ext <<_ACEOF
11626 /* confdefs.h. */
11627 _ACEOF
11628 cat confdefs.h >>conftest.$ac_ext
11629 cat >>conftest.$ac_ext <<_ACEOF
11630 /* end confdefs.h. */
11631
11632 /* Override any GCC internal prototype to avoid an error.
11633 Use char because int might match the return type of a GCC
11634 builtin and then its argument prototype would still apply. */
11635 #ifdef __cplusplus
11636 extern "C"
11637 #endif
11638 char pthread_self ();
11639 int
11640 main ()
11641 {
11642 return pthread_self ();
11643 ;
11644 return 0;
11645 }
11646 _ACEOF
11647 rm -f conftest.$ac_objext conftest$ac_exeext
11648 if { (ac_try="$ac_link"
11649 case "(($ac_try" in
11650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11651 *) ac_try_echo=$ac_try;;
11652 esac
11653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11654 (eval "$ac_link") 2>conftest.er1
11655 ac_status=$?
11656 grep -v '^ *+' conftest.er1 >conftest.err
11657 rm -f conftest.er1
11658 cat conftest.err >&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); } && {
11661 test -z "$ac_c_werror_flag" ||
11662 test ! -s conftest.err
11663 } && test -s conftest$ac_exeext &&
11664 $as_test_x conftest$ac_exeext; then
11665 ac_cv_lib_pthread_pthread_self=yes
11666 else
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670 ac_cv_lib_pthread_pthread_self=no
11671 fi
11672
11673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11674 conftest$ac_exeext conftest.$ac_ext
11675 LIBS=$ac_check_lib_save_LIBS
11676 fi
11677 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11678 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11679 if test $ac_cv_lib_pthread_pthread_self = yes; then
11680 HAVE_GTK_AND_PTHREAD=yes
11681 fi
11682
11683 fi
11684 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11685 case "${canonical}" in
11686 *-hpux*) ;;
11687 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11688 esac
11689
11690 cat >>confdefs.h <<\_ACEOF
11691 #define HAVE_GTK_AND_PTHREAD 1
11692 _ACEOF
11693
11694 fi
11695 fi
11696 fi
11697
11698 HAVE_DBUS=no
11699 if test "${with_dbus}" = "yes"; then
11700
11701 succeeded=no
11702
11703 # Extract the first word of "pkg-config", so it can be a program name with args.
11704 set dummy pkg-config; ac_word=$2
11705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11707 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710 case $PKG_CONFIG in
11711 [\\/]* | ?:[\\/]*)
11712 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11713 ;;
11714 *)
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11717 do
11718 IFS=$as_save_IFS
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11722 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 break 2
11725 fi
11726 done
11727 done
11728 IFS=$as_save_IFS
11729
11730 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11731 ;;
11732 esac
11733 fi
11734 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11735 if test -n "$PKG_CONFIG"; then
11736 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11737 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11738 else
11739 { echo "$as_me:$LINENO: result: no" >&5
11740 echo "${ECHO_T}no" >&6; }
11741 fi
11742
11743
11744
11745 if test "$PKG_CONFIG" = "no" ; then
11746 HAVE_DBUS=no
11747 else
11748 PKG_CONFIG_MIN_VERSION=0.9.0
11749 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11750 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11751 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11752
11753 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11754 { echo "$as_me:$LINENO: result: yes" >&5
11755 echo "${ECHO_T}yes" >&6; }
11756 succeeded=yes
11757
11758 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11759 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11760 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11761 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11762 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11763
11764 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11765 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11766 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11767 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11768 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11769 else
11770 { echo "$as_me:$LINENO: result: no" >&5
11771 echo "${ECHO_T}no" >&6; }
11772 DBUS_CFLAGS=""
11773 DBUS_LIBS=""
11774 ## If we have a custom action on failure, don't print errors, but
11775 ## do set a variable so people can do so.
11776 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11777
11778 fi
11779
11780
11781
11782 else
11783 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11784 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11785 fi
11786 fi
11787
11788 if test $succeeded = yes; then
11789 HAVE_DBUS=yes
11790 else
11791 HAVE_DBUS=no
11792 fi
11793
11794 if test "$HAVE_DBUS" = yes; then
11795
11796 cat >>confdefs.h <<\_ACEOF
11797 #define HAVE_DBUS 1
11798 _ACEOF
11799
11800 fi
11801 fi
11802
11803 HAVE_XAW3D=no
11804 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11805 if test "$with_xaw3d" != no; then
11806 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11807 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11808 if test "${emacs_cv_xaw3d+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 else
11811 cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h. */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11817
11818 #include <X11/Intrinsic.h>
11819 #include <X11/Xaw3d/Simple.h>
11820 int
11821 main ()
11822 {
11823
11824 ;
11825 return 0;
11826 }
11827 _ACEOF
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (ac_try="$ac_link"
11830 case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_link") 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest$ac_exeext &&
11845 $as_test_x conftest$ac_exeext; then
11846 emacs_cv_xaw3d=yes
11847 else
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11850
11851 emacs_cv_xaw3d=no
11852 fi
11853
11854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11855 conftest$ac_exeext conftest.$ac_ext
11856 fi
11857
11858 else
11859 emacs_cv_xaw3d=no
11860 fi
11861 if test $emacs_cv_xaw3d = yes; then
11862 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11863 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11864 USE_X_TOOLKIT=LUCID
11865 HAVE_XAW3D=yes
11866
11867 cat >>confdefs.h <<\_ACEOF
11868 #define HAVE_XAW3D 1
11869 _ACEOF
11870
11871 else
11872 { echo "$as_me:$LINENO: result: no" >&5
11873 echo "${ECHO_T}no" >&6; }
11874 { echo "$as_me:$LINENO: checking for libXaw" >&5
11875 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11876 if test "${emacs_cv_xaw+set}" = set; then
11877 echo $ECHO_N "(cached) $ECHO_C" >&6
11878 else
11879 cat >conftest.$ac_ext <<_ACEOF
11880 /* confdefs.h. */
11881 _ACEOF
11882 cat confdefs.h >>conftest.$ac_ext
11883 cat >>conftest.$ac_ext <<_ACEOF
11884 /* end confdefs.h. */
11885
11886 #include <X11/Intrinsic.h>
11887 #include <X11/Xaw/Simple.h>
11888 int
11889 main ()
11890 {
11891
11892 ;
11893 return 0;
11894 }
11895 _ACEOF
11896 rm -f conftest.$ac_objext conftest$ac_exeext
11897 if { (ac_try="$ac_link"
11898 case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11901 esac
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_link") 2>conftest.er1
11904 ac_status=$?
11905 grep -v '^ *+' conftest.er1 >conftest.err
11906 rm -f conftest.er1
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } && {
11910 test -z "$ac_c_werror_flag" ||
11911 test ! -s conftest.err
11912 } && test -s conftest$ac_exeext &&
11913 $as_test_x conftest$ac_exeext; then
11914 emacs_cv_xaw=yes
11915 else
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919 emacs_cv_xaw=no
11920 fi
11921
11922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11923 conftest$ac_exeext conftest.$ac_ext
11924 fi
11925
11926 if test $emacs_cv_xaw = yes; then
11927 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11928 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11929 USE_X_TOOLKIT=LUCID
11930 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11931 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11932 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11933 { (exit 1); exit 1; }; }
11934 else
11935 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11936 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11937 USE_X_TOOLKIT=none
11938 fi
11939 fi
11940 fi
11941
11942 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11943
11944 if test "${USE_X_TOOLKIT}" != "none"; then
11945 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11946 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11947 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11949 else
11950 cat >conftest.$ac_ext <<_ACEOF
11951 /* confdefs.h. */
11952 _ACEOF
11953 cat confdefs.h >>conftest.$ac_ext
11954 cat >>conftest.$ac_ext <<_ACEOF
11955 /* end confdefs.h. */
11956 #include <X11/Intrinsic.h>
11957 int
11958 main ()
11959 {
11960 #if XtSpecificationRelease < 6
11961 fail;
11962 #endif
11963
11964 ;
11965 return 0;
11966 }
11967 _ACEOF
11968 rm -f conftest.$ac_objext conftest$ac_exeext
11969 if { (ac_try="$ac_link"
11970 case "(($ac_try" in
11971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11972 *) ac_try_echo=$ac_try;;
11973 esac
11974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11975 (eval "$ac_link") 2>conftest.er1
11976 ac_status=$?
11977 grep -v '^ *+' conftest.er1 >conftest.err
11978 rm -f conftest.er1
11979 cat conftest.err >&5
11980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981 (exit $ac_status); } && {
11982 test -z "$ac_c_werror_flag" ||
11983 test ! -s conftest.err
11984 } && test -s conftest$ac_exeext &&
11985 $as_test_x conftest$ac_exeext; then
11986 emacs_cv_x11_toolkit_version_6=yes
11987 else
11988 echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991 emacs_cv_x11_toolkit_version_6=no
11992 fi
11993
11994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11995 conftest$ac_exeext conftest.$ac_ext
11996 fi
11997
11998 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11999 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12000 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12001 echo "${ECHO_T}6 or newer" >&6; }
12002
12003 cat >>confdefs.h <<\_ACEOF
12004 #define HAVE_X11XTR6 1
12005 _ACEOF
12006
12007 else
12008 { echo "$as_me:$LINENO: result: before 6" >&5
12009 echo "${ECHO_T}before 6" >&6; }
12010 fi
12011
12012 OLDLIBS="$LIBS"
12013 if test x$HAVE_X11XTR6 = xyes; then
12014 LIBS="-lXt -lSM -lICE $LIBS"
12015 else
12016 LIBS="-lXt $LIBS"
12017 fi
12018
12019 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12020 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12021 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024 ac_check_lib_save_LIBS=$LIBS
12025 LIBS="-lXmu $LIBS"
12026 cat >conftest.$ac_ext <<_ACEOF
12027 /* confdefs.h. */
12028 _ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032
12033 /* Override any GCC internal prototype to avoid an error.
12034 Use char because int might match the return type of a GCC
12035 builtin and then its argument prototype would still apply. */
12036 #ifdef __cplusplus
12037 extern "C"
12038 #endif
12039 char XmuConvertStandardSelection ();
12040 int
12041 main ()
12042 {
12043 return XmuConvertStandardSelection ();
12044 ;
12045 return 0;
12046 }
12047 _ACEOF
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (ac_try="$ac_link"
12050 case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12053 esac
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_link") 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && {
12062 test -z "$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 } && test -s conftest$ac_exeext &&
12065 $as_test_x conftest$ac_exeext; then
12066 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12067 else
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12072 fi
12073
12074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12075 conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12077 fi
12078 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12079 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12080 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12081 cat >>confdefs.h <<_ACEOF
12082 #define HAVE_LIBXMU 1
12083 _ACEOF
12084
12085 LIBS="-lXmu $LIBS"
12086
12087 fi
12088
12089 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12090 fi
12091
12092 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12093 if test "${HAVE_X11}" = "yes"; then
12094 if test "${USE_X_TOOLKIT}" != "none"; then
12095
12096 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12097 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12098 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101 ac_check_lib_save_LIBS=$LIBS
12102 LIBS="-lXext $LIBS"
12103 cat >conftest.$ac_ext <<_ACEOF
12104 /* confdefs.h. */
12105 _ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109
12110 /* Override any GCC internal prototype to avoid an error.
12111 Use char because int might match the return type of a GCC
12112 builtin and then its argument prototype would still apply. */
12113 #ifdef __cplusplus
12114 extern "C"
12115 #endif
12116 char XShapeQueryExtension ();
12117 int
12118 main ()
12119 {
12120 return XShapeQueryExtension ();
12121 ;
12122 return 0;
12123 }
12124 _ACEOF
12125 rm -f conftest.$ac_objext conftest$ac_exeext
12126 if { (ac_try="$ac_link"
12127 case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_link") 2>conftest.er1
12133 ac_status=$?
12134 grep -v '^ *+' conftest.er1 >conftest.err
12135 rm -f conftest.er1
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } && {
12139 test -z "$ac_c_werror_flag" ||
12140 test ! -s conftest.err
12141 } && test -s conftest$ac_exeext &&
12142 $as_test_x conftest$ac_exeext; then
12143 ac_cv_lib_Xext_XShapeQueryExtension=yes
12144 else
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12147
12148 ac_cv_lib_Xext_XShapeQueryExtension=no
12149 fi
12150
12151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12152 conftest$ac_exeext conftest.$ac_ext
12153 LIBS=$ac_check_lib_save_LIBS
12154 fi
12155 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12156 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12157 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12158 cat >>confdefs.h <<_ACEOF
12159 #define HAVE_LIBXEXT 1
12160 _ACEOF
12161
12162 LIBS="-lXext $LIBS"
12163
12164 fi
12165
12166 fi
12167 fi
12168
12169 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12170 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12171 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12172 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175 cat >conftest.$ac_ext <<_ACEOF
12176 /* confdefs.h. */
12177 _ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12181 #include <Xm/Xm.h>
12182 int
12183 main ()
12184 {
12185 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12186 int x = 5;
12187 #else
12188 Motif version prior to 2.1.
12189 #endif
12190 ;
12191 return 0;
12192 }
12193 _ACEOF
12194 rm -f conftest.$ac_objext
12195 if { (ac_try="$ac_compile"
12196 case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12199 esac
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_compile") 2>conftest.er1
12202 ac_status=$?
12203 grep -v '^ *+' conftest.er1 >conftest.err
12204 rm -f conftest.er1
12205 cat conftest.err >&5
12206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12207 (exit $ac_status); } && {
12208 test -z "$ac_c_werror_flag" ||
12209 test ! -s conftest.err
12210 } && test -s conftest.$ac_objext; then
12211 emacs_cv_motif_version_2_1=yes
12212 else
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12215
12216 emacs_cv_motif_version_2_1=no
12217 fi
12218
12219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12220 fi
12221 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12222 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12223 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12224 if test $emacs_cv_motif_version_2_1 = yes; then
12225 HAVE_LIBXP=no
12226
12227 cat >>confdefs.h <<\_ACEOF
12228 #define HAVE_MOTIF_2_1 1
12229 _ACEOF
12230
12231 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12232 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12233 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236 ac_check_lib_save_LIBS=$LIBS
12237 LIBS="-lXp $LIBS"
12238 cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h. */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12244
12245 /* Override any GCC internal prototype to avoid an error.
12246 Use char because int might match the return type of a GCC
12247 builtin and then its argument prototype would still apply. */
12248 #ifdef __cplusplus
12249 extern "C"
12250 #endif
12251 char XpCreateContext ();
12252 int
12253 main ()
12254 {
12255 return XpCreateContext ();
12256 ;
12257 return 0;
12258 }
12259 _ACEOF
12260 rm -f conftest.$ac_objext conftest$ac_exeext
12261 if { (ac_try="$ac_link"
12262 case "(($ac_try" in
12263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264 *) ac_try_echo=$ac_try;;
12265 esac
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_link") 2>conftest.er1
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } && {
12274 test -z "$ac_c_werror_flag" ||
12275 test ! -s conftest.err
12276 } && test -s conftest$ac_exeext &&
12277 $as_test_x conftest$ac_exeext; then
12278 ac_cv_lib_Xp_XpCreateContext=yes
12279 else
12280 echo "$as_me: failed program was:" >&5
12281 sed 's/^/| /' conftest.$ac_ext >&5
12282
12283 ac_cv_lib_Xp_XpCreateContext=no
12284 fi
12285
12286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12287 conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$ac_check_lib_save_LIBS
12289 fi
12290 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12291 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12292 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12293 HAVE_LIBXP=yes
12294 fi
12295
12296 if test ${HAVE_LIBXP} = yes; then
12297
12298 cat >>confdefs.h <<\_ACEOF
12299 #define HAVE_LIBXP 1
12300 _ACEOF
12301
12302 fi
12303 else
12304 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12305 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12306 if test "${emacs_cv_lesstif+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12308 else
12309 # We put this in CFLAGS temporarily to precede other -I options
12310 # that might be in CFLAGS temporarily.
12311 # We put this in CPPFLAGS where it precedes the other -I options.
12312 OLD_CPPFLAGS=$CPPFLAGS
12313 OLD_CFLAGS=$CFLAGS
12314 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12315 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h. */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12323 int
12324 main ()
12325 {
12326 int x = 5;
12327 ;
12328 return 0;
12329 }
12330 _ACEOF
12331 rm -f conftest.$ac_objext
12332 if { (ac_try="$ac_compile"
12333 case "(($ac_try" in
12334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_compile") 2>conftest.er1
12339 ac_status=$?
12340 grep -v '^ *+' conftest.er1 >conftest.err
12341 rm -f conftest.er1
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest.$ac_objext; then
12348 emacs_cv_lesstif=yes
12349 else
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353 emacs_cv_lesstif=no
12354 fi
12355
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 fi
12358 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12359 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12360 if test $emacs_cv_lesstif = yes; then
12361 # Make sure this -I option remains in CPPFLAGS after it is set
12362 # back to REAL_CPPFLAGS.
12363 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12364 # have those other -I options anyway. Ultimately, having this
12365 # directory ultimately in CPPFLAGS will be enough.
12366 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12367 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12368 else
12369 CFLAGS=$OLD_CFLAGS
12370 CPPFLAGS=$OLD_CPPFLAGS
12371 fi
12372 fi
12373 fi
12374
12375
12376
12377 USE_TOOLKIT_SCROLL_BARS=no
12378 if test "${with_toolkit_scroll_bars}" != "no"; then
12379 if test "${USE_X_TOOLKIT}" != "none"; then
12380 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12381 cat >>confdefs.h <<\_ACEOF
12382 #define USE_TOOLKIT_SCROLL_BARS 1
12383 _ACEOF
12384
12385 HAVE_XAW3D=no
12386 USE_TOOLKIT_SCROLL_BARS=yes
12387 elif test "${HAVE_XAW3D}" = "yes"; then
12388 cat >>confdefs.h <<\_ACEOF
12389 #define USE_TOOLKIT_SCROLL_BARS 1
12390 _ACEOF
12391
12392 USE_TOOLKIT_SCROLL_BARS=yes
12393 fi
12394 elif test "${HAVE_GTK}" = "yes"; then
12395 cat >>confdefs.h <<\_ACEOF
12396 #define USE_TOOLKIT_SCROLL_BARS 1
12397 _ACEOF
12398
12399 USE_TOOLKIT_SCROLL_BARS=yes
12400 elif test "${HAVE_NS}" = "yes"; then
12401 cat >>confdefs.h <<\_ACEOF
12402 #define USE_TOOLKIT_SCROLL_BARS 1
12403 _ACEOF
12404
12405 USE_TOOLKIT_SCROLL_BARS=yes
12406 fi
12407 fi
12408
12409 cat >conftest.$ac_ext <<_ACEOF
12410 /* confdefs.h. */
12411 _ACEOF
12412 cat confdefs.h >>conftest.$ac_ext
12413 cat >>conftest.$ac_ext <<_ACEOF
12414 /* end confdefs.h. */
12415
12416 #include <X11/Xlib.h>
12417 #include <X11/Xresource.h>
12418 int
12419 main ()
12420 {
12421 XIMProc callback;
12422 ;
12423 return 0;
12424 }
12425 _ACEOF
12426 rm -f conftest.$ac_objext
12427 if { (ac_try="$ac_compile"
12428 case "(($ac_try" in
12429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_compile") 2>conftest.er1
12434 ac_status=$?
12435 grep -v '^ *+' conftest.er1 >conftest.err
12436 rm -f conftest.er1
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest.$ac_objext; then
12443 HAVE_XIM=yes
12444
12445 cat >>confdefs.h <<\_ACEOF
12446 #define HAVE_XIM 1
12447 _ACEOF
12448
12449 else
12450 echo "$as_me: failed program was:" >&5
12451 sed 's/^/| /' conftest.$ac_ext >&5
12452
12453 HAVE_XIM=no
12454 fi
12455
12456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12457
12458
12459 if test "${with_xim}" != "no"; then
12460
12461 cat >>confdefs.h <<\_ACEOF
12462 #define USE_XIM 1
12463 _ACEOF
12464
12465 fi
12466
12467
12468 if test "${HAVE_XIM}" != "no"; then
12469 late_CFLAGS=$CFLAGS
12470 if test "$GCC" = yes; then
12471 CFLAGS="$CFLAGS --pedantic-errors"
12472 fi
12473 cat >conftest.$ac_ext <<_ACEOF
12474 /* confdefs.h. */
12475 _ACEOF
12476 cat confdefs.h >>conftest.$ac_ext
12477 cat >>conftest.$ac_ext <<_ACEOF
12478 /* end confdefs.h. */
12479
12480 #include <X11/Xlib.h>
12481 #include <X11/Xresource.h>
12482 int
12483 main ()
12484 {
12485 Display *display;
12486 XrmDatabase db;
12487 char *res_name;
12488 char *res_class;
12489 XIMProc callback;
12490 XPointer *client_data;
12491 #ifndef __GNUC__
12492 /* If we're not using GCC, it's probably not XFree86, and this is
12493 probably right, but we can't use something like --pedantic-errors. */
12494 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12495 char*, XIMProc, XPointer*);
12496 #endif
12497 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12498 client_data);
12499 ;
12500 return 0;
12501 }
12502 _ACEOF
12503 rm -f conftest.$ac_objext
12504 if { (ac_try="$ac_compile"
12505 case "(($ac_try" in
12506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12507 *) ac_try_echo=$ac_try;;
12508 esac
12509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12510 (eval "$ac_compile") 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } && {
12517 test -z "$ac_c_werror_flag" ||
12518 test ! -s conftest.err
12519 } && test -s conftest.$ac_objext; then
12520 emacs_cv_arg6_star=yes
12521 else
12522 echo "$as_me: failed program was:" >&5
12523 sed 's/^/| /' conftest.$ac_ext >&5
12524
12525
12526 fi
12527
12528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12529
12530 if test "$emacs_cv_arg6_star" = yes; then
12531 cat >>confdefs.h <<\_ACEOF
12532 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12533 _ACEOF
12534
12535 else
12536 cat >>confdefs.h <<\_ACEOF
12537 #define XRegisterIMInstantiateCallback_arg6 XPointer
12538 _ACEOF
12539
12540 fi
12541 CFLAGS=$late_CFLAGS
12542 fi
12543
12544 ### Start of font-backend section.
12545
12546 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12547 HAVE_XFT=maybe
12548 if test "x${with_freetype}" = "xno" || test "x${with_x}" = "xno"; then
12549 with_xft="no";
12550 fi
12551 if test "x${with_xft}" != "xno"; then
12552
12553
12554 succeeded=no
12555
12556 # Extract the first word of "pkg-config", so it can be a program name with args.
12557 set dummy pkg-config; ac_word=$2
12558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12560 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12561 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 else
12563 case $PKG_CONFIG in
12564 [\\/]* | ?:[\\/]*)
12565 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12566 ;;
12567 *)
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in $PATH
12570 do
12571 IFS=$as_save_IFS
12572 test -z "$as_dir" && as_dir=.
12573 for ac_exec_ext in '' $ac_executable_extensions; do
12574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12575 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12577 break 2
12578 fi
12579 done
12580 done
12581 IFS=$as_save_IFS
12582
12583 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12584 ;;
12585 esac
12586 fi
12587 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12588 if test -n "$PKG_CONFIG"; then
12589 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12590 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12591 else
12592 { echo "$as_me:$LINENO: result: no" >&5
12593 echo "${ECHO_T}no" >&6; }
12594 fi
12595
12596
12597
12598 if test "$PKG_CONFIG" = "no" ; then
12599 HAVE_XFT=no
12600 else
12601 PKG_CONFIG_MIN_VERSION=0.9.0
12602 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12603 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12604 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12605
12606 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12607 { echo "$as_me:$LINENO: result: yes" >&5
12608 echo "${ECHO_T}yes" >&6; }
12609 succeeded=yes
12610
12611 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12612 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12613 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12614 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12615 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12616
12617 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12618 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12619 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12620 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12621 echo "${ECHO_T}$XFT_LIBS" >&6; }
12622 else
12623 { echo "$as_me:$LINENO: result: no" >&5
12624 echo "${ECHO_T}no" >&6; }
12625 XFT_CFLAGS=""
12626 XFT_LIBS=""
12627 ## If we have a custom action on failure, don't print errors, but
12628 ## do set a variable so people can do so.
12629 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12630
12631 fi
12632
12633
12634
12635 else
12636 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12637 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12638 fi
12639 fi
12640
12641 if test $succeeded = yes; then
12642 :
12643 else
12644 HAVE_XFT=no
12645 fi
12646
12647 if test "$HAVE_XFT" != no; then
12648 OLD_CPPFLAGS="$CPPFLAGS"
12649 OLD_CFLAGS="$CFLAGS"
12650 OLD_LIBS="$LIBS"
12651 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12652 CFLAGS="$CFLAGS $XFT_CFLAGS"
12653 LIBS="$XFT_LIBS $LIBS"
12654 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12655 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12656 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12657 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12658 echo $ECHO_N "(cached) $ECHO_C" >&6
12659 fi
12660 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12661 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12662 else
12663 # Is the header compilable?
12664 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12665 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12666 cat >conftest.$ac_ext <<_ACEOF
12667 /* confdefs.h. */
12668 _ACEOF
12669 cat confdefs.h >>conftest.$ac_ext
12670 cat >>conftest.$ac_ext <<_ACEOF
12671 /* end confdefs.h. */
12672 $ac_includes_default
12673 #include <X11/Xft/Xft.h>
12674 _ACEOF
12675 rm -f conftest.$ac_objext
12676 if { (ac_try="$ac_compile"
12677 case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12680 esac
12681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12682 (eval "$ac_compile") 2>conftest.er1
12683 ac_status=$?
12684 grep -v '^ *+' conftest.er1 >conftest.err
12685 rm -f conftest.er1
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } && {
12689 test -z "$ac_c_werror_flag" ||
12690 test ! -s conftest.err
12691 } && test -s conftest.$ac_objext; then
12692 ac_header_compiler=yes
12693 else
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12696
12697 ac_header_compiler=no
12698 fi
12699
12700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12702 echo "${ECHO_T}$ac_header_compiler" >&6; }
12703
12704 # Is the header present?
12705 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12706 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12707 cat >conftest.$ac_ext <<_ACEOF
12708 /* confdefs.h. */
12709 _ACEOF
12710 cat confdefs.h >>conftest.$ac_ext
12711 cat >>conftest.$ac_ext <<_ACEOF
12712 /* end confdefs.h. */
12713 #include <X11/Xft/Xft.h>
12714 _ACEOF
12715 if { (ac_try="$ac_cpp conftest.$ac_ext"
12716 case "(($ac_try" in
12717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12718 *) ac_try_echo=$ac_try;;
12719 esac
12720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12722 ac_status=$?
12723 grep -v '^ *+' conftest.er1 >conftest.err
12724 rm -f conftest.er1
12725 cat conftest.err >&5
12726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727 (exit $ac_status); } >/dev/null && {
12728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12729 test ! -s conftest.err
12730 }; then
12731 ac_header_preproc=yes
12732 else
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12735
12736 ac_header_preproc=no
12737 fi
12738
12739 rm -f conftest.err conftest.$ac_ext
12740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12741 echo "${ECHO_T}$ac_header_preproc" >&6; }
12742
12743 # So? What about this header?
12744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12745 yes:no: )
12746 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12747 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12749 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12750 ac_header_preproc=yes
12751 ;;
12752 no:yes:* )
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12760 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12762 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12763 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12764 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12765
12766 ;;
12767 esac
12768 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12769 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12770 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12774 fi
12775 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12776 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12777
12778 fi
12779 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12780 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12781 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12782 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 else
12785 ac_check_lib_save_LIBS=$LIBS
12786 LIBS="-lXft $XFT_LIBS $LIBS"
12787 cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h. */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793
12794 /* Override any GCC internal prototype to avoid an error.
12795 Use char because int might match the return type of a GCC
12796 builtin and then its argument prototype would still apply. */
12797 #ifdef __cplusplus
12798 extern "C"
12799 #endif
12800 char XftFontOpen ();
12801 int
12802 main ()
12803 {
12804 return XftFontOpen ();
12805 ;
12806 return 0;
12807 }
12808 _ACEOF
12809 rm -f conftest.$ac_objext conftest$ac_exeext
12810 if { (ac_try="$ac_link"
12811 case "(($ac_try" in
12812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12813 *) ac_try_echo=$ac_try;;
12814 esac
12815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12816 (eval "$ac_link") 2>conftest.er1
12817 ac_status=$?
12818 grep -v '^ *+' conftest.er1 >conftest.err
12819 rm -f conftest.er1
12820 cat conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } && {
12823 test -z "$ac_c_werror_flag" ||
12824 test ! -s conftest.err
12825 } && test -s conftest$ac_exeext &&
12826 $as_test_x conftest$ac_exeext; then
12827 ac_cv_lib_Xft_XftFontOpen=yes
12828 else
12829 echo "$as_me: failed program was:" >&5
12830 sed 's/^/| /' conftest.$ac_ext >&5
12831
12832 ac_cv_lib_Xft_XftFontOpen=no
12833 fi
12834
12835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12836 conftest$ac_exeext conftest.$ac_ext
12837 LIBS=$ac_check_lib_save_LIBS
12838 fi
12839 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12840 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12841 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12842 HAVE_XFT=yes
12843 fi
12844
12845 fi
12846
12847
12848
12849 if test "${HAVE_XFT}" = "yes"; then
12850
12851 cat >>confdefs.h <<\_ACEOF
12852 #define HAVE_XFT 1
12853 _ACEOF
12854
12855
12856 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12857 else
12858 CPPFLAGS="$OLD_CPPFLAGS"
12859 CFLAGS="$OLD_CFLAGS"
12860 LIBS="$OLD_LIBS"
12861 fi # "${HAVE_XFT}" = "yes"
12862 fi # "$HAVE_XFT" != no
12863 fi # "x${with_xft}" != "xno"
12864
12865 if test "$HAVE_XFT" != "yes"; then
12866 HAVE_XFT=no
12867 fi
12868
12869
12870 HAVE_FREETYPE=no
12871 ### Use -lfreetype if available, unless `--with-freetype=no'.
12872 if test "${HAVE_XFT}" = "yes"; then
12873 HAVE_FREETYPE=yes
12874 elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then
12875
12876
12877 succeeded=no
12878
12879 # Extract the first word of "pkg-config", so it can be a program name with args.
12880 set dummy pkg-config; ac_word=$2
12881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12883 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12885 else
12886 case $PKG_CONFIG in
12887 [\\/]* | ?:[\\/]*)
12888 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12889 ;;
12890 *)
12891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12892 for as_dir in $PATH
12893 do
12894 IFS=$as_save_IFS
12895 test -z "$as_dir" && as_dir=.
12896 for ac_exec_ext in '' $ac_executable_extensions; do
12897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12898 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12900 break 2
12901 fi
12902 done
12903 done
12904 IFS=$as_save_IFS
12905
12906 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12907 ;;
12908 esac
12909 fi
12910 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12911 if test -n "$PKG_CONFIG"; then
12912 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12913 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12914 else
12915 { echo "$as_me:$LINENO: result: no" >&5
12916 echo "${ECHO_T}no" >&6; }
12917 fi
12918
12919
12920
12921 if test "$PKG_CONFIG" = "no" ; then
12922 HAVE_FREETYPE=no
12923 else
12924 PKG_CONFIG_MIN_VERSION=0.9.0
12925 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12926 { echo "$as_me:$LINENO: checking for freetype2" >&5
12927 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12928
12929 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12930 { echo "$as_me:$LINENO: result: yes" >&5
12931 echo "${ECHO_T}yes" >&6; }
12932 succeeded=yes
12933
12934 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12935 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12936 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12937 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12938 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12939
12940 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12941 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12942 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12943 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12944 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12945 else
12946 { echo "$as_me:$LINENO: result: no" >&5
12947 echo "${ECHO_T}no" >&6; }
12948 FREETYPE_CFLAGS=""
12949 FREETYPE_LIBS=""
12950 ## If we have a custom action on failure, don't print errors, but
12951 ## do set a variable so people can do so.
12952 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12953
12954 fi
12955
12956
12957
12958 else
12959 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12960 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12961 fi
12962 fi
12963
12964 if test $succeeded = yes; then
12965 HAVE_FREETYPE=yes
12966 else
12967 HAVE_FREETYPE=no
12968 fi
12969
12970 if test "${HAVE_FREETYPE}" = "yes"; then
12971
12972 succeeded=no
12973
12974 # Extract the first word of "pkg-config", so it can be a program name with args.
12975 set dummy pkg-config; ac_word=$2
12976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12978 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12980 else
12981 case $PKG_CONFIG in
12982 [\\/]* | ?:[\\/]*)
12983 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12984 ;;
12985 *)
12986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12987 for as_dir in $PATH
12988 do
12989 IFS=$as_save_IFS
12990 test -z "$as_dir" && as_dir=.
12991 for ac_exec_ext in '' $ac_executable_extensions; do
12992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12993 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12995 break 2
12996 fi
12997 done
12998 done
12999 IFS=$as_save_IFS
13000
13001 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13002 ;;
13003 esac
13004 fi
13005 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13006 if test -n "$PKG_CONFIG"; then
13007 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13008 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13009 else
13010 { echo "$as_me:$LINENO: result: no" >&5
13011 echo "${ECHO_T}no" >&6; }
13012 fi
13013
13014
13015
13016 if test "$PKG_CONFIG" = "no" ; then
13017 HAVE_FC=no
13018 else
13019 PKG_CONFIG_MIN_VERSION=0.9.0
13020 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13021 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13022 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13023
13024 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13025 { echo "$as_me:$LINENO: result: yes" >&5
13026 echo "${ECHO_T}yes" >&6; }
13027 succeeded=yes
13028
13029 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13030 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13031 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13032 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13033 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13034
13035 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13036 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13037 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13038 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13039 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13040 else
13041 { echo "$as_me:$LINENO: result: no" >&5
13042 echo "${ECHO_T}no" >&6; }
13043 FONTCONFIG_CFLAGS=""
13044 FONTCONFIG_LIBS=""
13045 ## If we have a custom action on failure, don't print errors, but
13046 ## do set a variable so people can do so.
13047 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13048
13049 fi
13050
13051
13052
13053 else
13054 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13055 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13056 fi
13057 fi
13058
13059 if test $succeeded = yes; then
13060 HAVE_FC=yes
13061 else
13062 HAVE_FC=no
13063 fi
13064
13065 if test "${HAVE_FC}" = "no"; then
13066 HAVE_FREETYPE=no
13067 fi
13068 fi
13069 fi
13070
13071 HAVE_LIBOTF=no
13072 if test "${HAVE_FREETYPE}" = "yes"; then
13073
13074 cat >>confdefs.h <<\_ACEOF
13075 #define HAVE_FREETYPE 1
13076 _ACEOF
13077
13078 if test "${with_libotf}" != "no"; then
13079
13080 succeeded=no
13081
13082 # Extract the first word of "pkg-config", so it can be a program name with args.
13083 set dummy pkg-config; ac_word=$2
13084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13086 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089 case $PKG_CONFIG in
13090 [\\/]* | ?:[\\/]*)
13091 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13092 ;;
13093 *)
13094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095 for as_dir in $PATH
13096 do
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13101 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 break 2
13104 fi
13105 done
13106 done
13107 IFS=$as_save_IFS
13108
13109 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13110 ;;
13111 esac
13112 fi
13113 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13114 if test -n "$PKG_CONFIG"; then
13115 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13116 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13117 else
13118 { echo "$as_me:$LINENO: result: no" >&5
13119 echo "${ECHO_T}no" >&6; }
13120 fi
13121
13122
13123
13124 if test "$PKG_CONFIG" = "no" ; then
13125 HAVE_LIBOTF=no
13126 else
13127 PKG_CONFIG_MIN_VERSION=0.9.0
13128 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13129 { echo "$as_me:$LINENO: checking for libotf" >&5
13130 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13131
13132 if $PKG_CONFIG --exists "libotf" 2>&5; then
13133 { echo "$as_me:$LINENO: result: yes" >&5
13134 echo "${ECHO_T}yes" >&6; }
13135 succeeded=yes
13136
13137 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13138 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13139 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13140 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13141 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13142
13143 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13144 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13145 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13146 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13147 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13148 else
13149 { echo "$as_me:$LINENO: result: no" >&5
13150 echo "${ECHO_T}no" >&6; }
13151 LIBOTF_CFLAGS=""
13152 LIBOTF_LIBS=""
13153 ## If we have a custom action on failure, don't print errors, but
13154 ## do set a variable so people can do so.
13155 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13156
13157 fi
13158
13159
13160
13161 else
13162 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13163 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13164 fi
13165 fi
13166
13167 if test $succeeded = yes; then
13168 HAVE_LIBOTF=yes
13169 else
13170 HAVE_LIBOTF=no
13171 fi
13172
13173 if test "$HAVE_LIBOTF" = "yes"; then
13174
13175 cat >>confdefs.h <<\_ACEOF
13176 #define HAVE_LIBOTF 1
13177 _ACEOF
13178
13179 fi
13180 fi
13181 fi
13182
13183 HAVE_M17N_FLT=no
13184 if test "${with_m17n_flt}" != "no"; then
13185
13186 succeeded=no
13187
13188 # Extract the first word of "pkg-config", so it can be a program name with args.
13189 set dummy pkg-config; ac_word=$2
13190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13192 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13194 else
13195 case $PKG_CONFIG in
13196 [\\/]* | ?:[\\/]*)
13197 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13198 ;;
13199 *)
13200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201 for as_dir in $PATH
13202 do
13203 IFS=$as_save_IFS
13204 test -z "$as_dir" && as_dir=.
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13207 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13209 break 2
13210 fi
13211 done
13212 done
13213 IFS=$as_save_IFS
13214
13215 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13216 ;;
13217 esac
13218 fi
13219 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13220 if test -n "$PKG_CONFIG"; then
13221 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13222 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13223 else
13224 { echo "$as_me:$LINENO: result: no" >&5
13225 echo "${ECHO_T}no" >&6; }
13226 fi
13227
13228
13229
13230 if test "$PKG_CONFIG" = "no" ; then
13231 HAVE_M17N_FLT=no
13232 else
13233 PKG_CONFIG_MIN_VERSION=0.9.0
13234 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13235 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13236 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13237
13238 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13239 { echo "$as_me:$LINENO: result: yes" >&5
13240 echo "${ECHO_T}yes" >&6; }
13241 succeeded=yes
13242
13243 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13244 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13245 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13246 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13247 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13248
13249 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13250 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13251 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13252 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13253 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13254 else
13255 { echo "$as_me:$LINENO: result: no" >&5
13256 echo "${ECHO_T}no" >&6; }
13257 M17N_FLT_CFLAGS=""
13258 M17N_FLT_LIBS=""
13259 ## If we have a custom action on failure, don't print errors, but
13260 ## do set a variable so people can do so.
13261 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13262
13263 fi
13264
13265
13266
13267 else
13268 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13269 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13270 fi
13271 fi
13272
13273 if test $succeeded = yes; then
13274 HAVE_M17N_FLT=yes
13275 else
13276 HAVE_M17N_FLT=no
13277 fi
13278
13279 if test "$HAVE_M17N_FLT" = "yes"; then
13280
13281 cat >>confdefs.h <<\_ACEOF
13282 #define HAVE_M17N_FLT 1
13283 _ACEOF
13284
13285 fi
13286 fi
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297 ### End of font-backend section.
13298
13299 ### Use -lXpm if available, unless `--with-xpm=no'.
13300 HAVE_XPM=no
13301 if test "${HAVE_X11}" = "yes"; then
13302 if test "${with_xpm}" != "no"; then
13303 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13304 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13305 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13306 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 fi
13309 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13310 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13311 else
13312 # Is the header compilable?
13313 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13314 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13315 cat >conftest.$ac_ext <<_ACEOF
13316 /* confdefs.h. */
13317 _ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 $ac_includes_default
13322 #include <X11/xpm.h>
13323 _ACEOF
13324 rm -f conftest.$ac_objext
13325 if { (ac_try="$ac_compile"
13326 case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13329 esac
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_compile") 2>conftest.er1
13332 ac_status=$?
13333 grep -v '^ *+' conftest.er1 >conftest.err
13334 rm -f conftest.er1
13335 cat conftest.err >&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } && {
13338 test -z "$ac_c_werror_flag" ||
13339 test ! -s conftest.err
13340 } && test -s conftest.$ac_objext; then
13341 ac_header_compiler=yes
13342 else
13343 echo "$as_me: failed program was:" >&5
13344 sed 's/^/| /' conftest.$ac_ext >&5
13345
13346 ac_header_compiler=no
13347 fi
13348
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13351 echo "${ECHO_T}$ac_header_compiler" >&6; }
13352
13353 # Is the header present?
13354 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13355 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13356 cat >conftest.$ac_ext <<_ACEOF
13357 /* confdefs.h. */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 #include <X11/xpm.h>
13363 _ACEOF
13364 if { (ac_try="$ac_cpp conftest.$ac_ext"
13365 case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13368 esac
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13371 ac_status=$?
13372 grep -v '^ *+' conftest.er1 >conftest.err
13373 rm -f conftest.er1
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } >/dev/null && {
13377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13378 test ! -s conftest.err
13379 }; then
13380 ac_header_preproc=yes
13381 else
13382 echo "$as_me: failed program was:" >&5
13383 sed 's/^/| /' conftest.$ac_ext >&5
13384
13385 ac_header_preproc=no
13386 fi
13387
13388 rm -f conftest.err conftest.$ac_ext
13389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13390 echo "${ECHO_T}$ac_header_preproc" >&6; }
13391
13392 # So? What about this header?
13393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13394 yes:no: )
13395 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13396 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13397 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13398 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13399 ac_header_preproc=yes
13400 ;;
13401 no:yes:* )
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13407 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13409 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13411 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13413 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13414
13415 ;;
13416 esac
13417 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13418 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13419 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 else
13422 ac_cv_header_X11_xpm_h=$ac_header_preproc
13423 fi
13424 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13425 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13426
13427 fi
13428 if test $ac_cv_header_X11_xpm_h = yes; then
13429 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13430 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13431 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434 ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-lXpm -lX11 $LIBS"
13436 cat >conftest.$ac_ext <<_ACEOF
13437 /* confdefs.h. */
13438 _ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442
13443 /* Override any GCC internal prototype to avoid an error.
13444 Use char because int might match the return type of a GCC
13445 builtin and then its argument prototype would still apply. */
13446 #ifdef __cplusplus
13447 extern "C"
13448 #endif
13449 char XpmReadFileToPixmap ();
13450 int
13451 main ()
13452 {
13453 return XpmReadFileToPixmap ();
13454 ;
13455 return 0;
13456 }
13457 _ACEOF
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (ac_try="$ac_link"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13463 esac
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_link") 2>conftest.er1
13466 ac_status=$?
13467 grep -v '^ *+' conftest.er1 >conftest.err
13468 rm -f conftest.er1
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } && {
13472 test -z "$ac_c_werror_flag" ||
13473 test ! -s conftest.err
13474 } && test -s conftest$ac_exeext &&
13475 $as_test_x conftest$ac_exeext; then
13476 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13477 else
13478 echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13480
13481 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13482 fi
13483
13484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13485 conftest$ac_exeext conftest.$ac_ext
13486 LIBS=$ac_check_lib_save_LIBS
13487 fi
13488 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13489 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13490 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13491 HAVE_XPM=yes
13492 fi
13493
13494 fi
13495
13496
13497 if test "${HAVE_XPM}" = "yes"; then
13498 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13499 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13500 cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h. */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h. */
13506 #include "X11/xpm.h"
13507 #ifndef XpmReturnAllocPixels
13508 no_return_alloc_pixels
13509 #endif
13510
13511 _ACEOF
13512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13513 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13514 HAVE_XPM=no
13515 else
13516 HAVE_XPM=yes
13517 fi
13518 rm -f conftest*
13519
13520
13521 if test "${HAVE_XPM}" = "yes"; then
13522 { echo "$as_me:$LINENO: result: yes" >&5
13523 echo "${ECHO_T}yes" >&6; }
13524 else
13525 { echo "$as_me:$LINENO: result: no" >&5
13526 echo "${ECHO_T}no" >&6; }
13527 fi
13528 fi
13529 fi
13530
13531 if test "${HAVE_XPM}" = "yes"; then
13532
13533 cat >>confdefs.h <<\_ACEOF
13534 #define HAVE_XPM 1
13535 _ACEOF
13536
13537 fi
13538 fi
13539
13540 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13541 HAVE_JPEG=no
13542 if test "${HAVE_X11}" = "yes"; then
13543 if test "${with_jpeg}" != "no"; then
13544 if test "${ac_cv_header_jerror_h+set}" = set; then
13545 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13546 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13547 if test "${ac_cv_header_jerror_h+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 fi
13550 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13551 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13552 else
13553 # Is the header compilable?
13554 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13555 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13556 cat >conftest.$ac_ext <<_ACEOF
13557 /* confdefs.h. */
13558 _ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 $ac_includes_default
13563 #include <jerror.h>
13564 _ACEOF
13565 rm -f conftest.$ac_objext
13566 if { (ac_try="$ac_compile"
13567 case "(($ac_try" in
13568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569 *) ac_try_echo=$ac_try;;
13570 esac
13571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572 (eval "$ac_compile") 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } && {
13579 test -z "$ac_c_werror_flag" ||
13580 test ! -s conftest.err
13581 } && test -s conftest.$ac_objext; then
13582 ac_header_compiler=yes
13583 else
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13586
13587 ac_header_compiler=no
13588 fi
13589
13590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13591 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13592 echo "${ECHO_T}$ac_header_compiler" >&6; }
13593
13594 # Is the header present?
13595 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13596 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13597 cat >conftest.$ac_ext <<_ACEOF
13598 /* confdefs.h. */
13599 _ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13603 #include <jerror.h>
13604 _ACEOF
13605 if { (ac_try="$ac_cpp conftest.$ac_ext"
13606 case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13609 esac
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13612 ac_status=$?
13613 grep -v '^ *+' conftest.er1 >conftest.err
13614 rm -f conftest.er1
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } >/dev/null && {
13618 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13619 test ! -s conftest.err
13620 }; then
13621 ac_header_preproc=yes
13622 else
13623 echo "$as_me: failed program was:" >&5
13624 sed 's/^/| /' conftest.$ac_ext >&5
13625
13626 ac_header_preproc=no
13627 fi
13628
13629 rm -f conftest.err conftest.$ac_ext
13630 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13631 echo "${ECHO_T}$ac_header_preproc" >&6; }
13632
13633 # So? What about this header?
13634 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13635 yes:no: )
13636 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13637 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13638 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13639 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13640 ac_header_preproc=yes
13641 ;;
13642 no:yes:* )
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13644 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13646 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13648 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13650 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13652 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13653 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13654 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13655
13656 ;;
13657 esac
13658 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13659 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13660 if test "${ac_cv_header_jerror_h+set}" = set; then
13661 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663 ac_cv_header_jerror_h=$ac_header_preproc
13664 fi
13665 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13666 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13667
13668 fi
13669 if test $ac_cv_header_jerror_h = yes; then
13670 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13671 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13672 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13673 echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13675 ac_check_lib_save_LIBS=$LIBS
13676 LIBS="-ljpeg $LIBS"
13677 cat >conftest.$ac_ext <<_ACEOF
13678 /* confdefs.h. */
13679 _ACEOF
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13683
13684 /* Override any GCC internal prototype to avoid an error.
13685 Use char because int might match the return type of a GCC
13686 builtin and then its argument prototype would still apply. */
13687 #ifdef __cplusplus
13688 extern "C"
13689 #endif
13690 char jpeg_destroy_compress ();
13691 int
13692 main ()
13693 {
13694 return jpeg_destroy_compress ();
13695 ;
13696 return 0;
13697 }
13698 _ACEOF
13699 rm -f conftest.$ac_objext conftest$ac_exeext
13700 if { (ac_try="$ac_link"
13701 case "(($ac_try" in
13702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13703 *) ac_try_echo=$ac_try;;
13704 esac
13705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13706 (eval "$ac_link") 2>conftest.er1
13707 ac_status=$?
13708 grep -v '^ *+' conftest.er1 >conftest.err
13709 rm -f conftest.er1
13710 cat conftest.err >&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); } && {
13713 test -z "$ac_c_werror_flag" ||
13714 test ! -s conftest.err
13715 } && test -s conftest$ac_exeext &&
13716 $as_test_x conftest$ac_exeext; then
13717 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13718 else
13719 echo "$as_me: failed program was:" >&5
13720 sed 's/^/| /' conftest.$ac_ext >&5
13721
13722 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13723 fi
13724
13725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13726 conftest$ac_exeext conftest.$ac_ext
13727 LIBS=$ac_check_lib_save_LIBS
13728 fi
13729 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13730 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13731 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13732 HAVE_JPEG=yes
13733 fi
13734
13735 fi
13736
13737
13738 fi
13739
13740
13741 if test "${HAVE_JPEG}" = "yes"; then
13742 cat >>confdefs.h <<\_ACEOF
13743 #define HAVE_JPEG 1
13744 _ACEOF
13745
13746 cat >conftest.$ac_ext <<_ACEOF
13747 /* confdefs.h. */
13748 _ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13752 #include <jpeglib.h>
13753 version=JPEG_LIB_VERSION
13754
13755 _ACEOF
13756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13757 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13758 cat >>confdefs.h <<\_ACEOF
13759 #define HAVE_JPEG 1
13760 _ACEOF
13761
13762 else
13763 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13764 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13765 HAVE_JPEG=no
13766 fi
13767 rm -f conftest*
13768
13769 fi
13770 fi
13771
13772 ### Use -lpng if available, unless `--with-png=no'.
13773 HAVE_PNG=no
13774 if test "${HAVE_X11}" = "yes"; then
13775 if test "${with_png}" != "no"; then
13776 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13777 # in /usr/include/libpng.
13778
13779
13780 for ac_header in png.h libpng/png.h
13781 do
13782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13787 echo $ECHO_N "(cached) $ECHO_C" >&6
13788 fi
13789 ac_res=`eval echo '${'$as_ac_Header'}'`
13790 { echo "$as_me:$LINENO: result: $ac_res" >&5
13791 echo "${ECHO_T}$ac_res" >&6; }
13792 else
13793 # Is the header compilable?
13794 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13795 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13796 cat >conftest.$ac_ext <<_ACEOF
13797 /* confdefs.h. */
13798 _ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 $ac_includes_default
13803 #include <$ac_header>
13804 _ACEOF
13805 rm -f conftest.$ac_objext
13806 if { (ac_try="$ac_compile"
13807 case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810 esac
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_compile") 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } && {
13819 test -z "$ac_c_werror_flag" ||
13820 test ! -s conftest.err
13821 } && test -s conftest.$ac_objext; then
13822 ac_header_compiler=yes
13823 else
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13826
13827 ac_header_compiler=no
13828 fi
13829
13830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13831 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13832 echo "${ECHO_T}$ac_header_compiler" >&6; }
13833
13834 # Is the header present?
13835 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13836 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13837 cat >conftest.$ac_ext <<_ACEOF
13838 /* confdefs.h. */
13839 _ACEOF
13840 cat confdefs.h >>conftest.$ac_ext
13841 cat >>conftest.$ac_ext <<_ACEOF
13842 /* end confdefs.h. */
13843 #include <$ac_header>
13844 _ACEOF
13845 if { (ac_try="$ac_cpp conftest.$ac_ext"
13846 case "(($ac_try" in
13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13849 esac
13850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13852 ac_status=$?
13853 grep -v '^ *+' conftest.er1 >conftest.err
13854 rm -f conftest.er1
13855 cat conftest.err >&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); } >/dev/null && {
13858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13859 test ! -s conftest.err
13860 }; then
13861 ac_header_preproc=yes
13862 else
13863 echo "$as_me: failed program was:" >&5
13864 sed 's/^/| /' conftest.$ac_ext >&5
13865
13866 ac_header_preproc=no
13867 fi
13868
13869 rm -f conftest.err conftest.$ac_ext
13870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13871 echo "${ECHO_T}$ac_header_preproc" >&6; }
13872
13873 # So? What about this header?
13874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13875 yes:no: )
13876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13880 ac_header_preproc=yes
13881 ;;
13882 no:yes:* )
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13895
13896 ;;
13897 esac
13898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13900 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13901 echo $ECHO_N "(cached) $ECHO_C" >&6
13902 else
13903 eval "$as_ac_Header=\$ac_header_preproc"
13904 fi
13905 ac_res=`eval echo '${'$as_ac_Header'}'`
13906 { echo "$as_me:$LINENO: result: $ac_res" >&5
13907 echo "${ECHO_T}$ac_res" >&6; }
13908
13909 fi
13910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13911 cat >>confdefs.h <<_ACEOF
13912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13913 _ACEOF
13914
13915 fi
13916
13917 done
13918
13919 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13920 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13921 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13922 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13924 else
13925 ac_check_lib_save_LIBS=$LIBS
13926 LIBS="-lpng -lz -lm $LIBS"
13927 cat >conftest.$ac_ext <<_ACEOF
13928 /* confdefs.h. */
13929 _ACEOF
13930 cat confdefs.h >>conftest.$ac_ext
13931 cat >>conftest.$ac_ext <<_ACEOF
13932 /* end confdefs.h. */
13933
13934 /* Override any GCC internal prototype to avoid an error.
13935 Use char because int might match the return type of a GCC
13936 builtin and then its argument prototype would still apply. */
13937 #ifdef __cplusplus
13938 extern "C"
13939 #endif
13940 char png_get_channels ();
13941 int
13942 main ()
13943 {
13944 return png_get_channels ();
13945 ;
13946 return 0;
13947 }
13948 _ACEOF
13949 rm -f conftest.$ac_objext conftest$ac_exeext
13950 if { (ac_try="$ac_link"
13951 case "(($ac_try" in
13952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953 *) ac_try_echo=$ac_try;;
13954 esac
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956 (eval "$ac_link") 2>conftest.er1
13957 ac_status=$?
13958 grep -v '^ *+' conftest.er1 >conftest.err
13959 rm -f conftest.er1
13960 cat conftest.err >&5
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); } && {
13963 test -z "$ac_c_werror_flag" ||
13964 test ! -s conftest.err
13965 } && test -s conftest$ac_exeext &&
13966 $as_test_x conftest$ac_exeext; then
13967 ac_cv_lib_png_png_get_channels=yes
13968 else
13969 echo "$as_me: failed program was:" >&5
13970 sed 's/^/| /' conftest.$ac_ext >&5
13971
13972 ac_cv_lib_png_png_get_channels=no
13973 fi
13974
13975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13976 conftest$ac_exeext conftest.$ac_ext
13977 LIBS=$ac_check_lib_save_LIBS
13978 fi
13979 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13980 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13981 if test $ac_cv_lib_png_png_get_channels = yes; then
13982 HAVE_PNG=yes
13983 fi
13984
13985 fi
13986 fi
13987
13988 if test "${HAVE_PNG}" = "yes"; then
13989
13990 cat >>confdefs.h <<\_ACEOF
13991 #define HAVE_PNG 1
13992 _ACEOF
13993
13994 fi
13995 fi
13996
13997 ### Use -ltiff if available, unless `--with-tiff=no'.
13998 HAVE_TIFF=no
13999 if test "${HAVE_X11}" = "yes"; then
14000 if test "${with_tiff}" != "no"; then
14001 if test "${ac_cv_header_tiffio_h+set}" = set; then
14002 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14003 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14004 if test "${ac_cv_header_tiffio_h+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 fi
14007 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14008 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14009 else
14010 # Is the header compilable?
14011 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14012 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14013 cat >conftest.$ac_ext <<_ACEOF
14014 /* confdefs.h. */
14015 _ACEOF
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 $ac_includes_default
14020 #include <tiffio.h>
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (ac_try="$ac_compile"
14024 case "(($ac_try" in
14025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026 *) ac_try_echo=$ac_try;;
14027 esac
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029 (eval "$ac_compile") 2>conftest.er1
14030 ac_status=$?
14031 grep -v '^ *+' conftest.er1 >conftest.err
14032 rm -f conftest.er1
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } && {
14036 test -z "$ac_c_werror_flag" ||
14037 test ! -s conftest.err
14038 } && test -s conftest.$ac_objext; then
14039 ac_header_compiler=yes
14040 else
14041 echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14043
14044 ac_header_compiler=no
14045 fi
14046
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14049 echo "${ECHO_T}$ac_header_compiler" >&6; }
14050
14051 # Is the header present?
14052 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14053 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14054 cat >conftest.$ac_ext <<_ACEOF
14055 /* confdefs.h. */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h. */
14060 #include <tiffio.h>
14061 _ACEOF
14062 if { (ac_try="$ac_cpp conftest.$ac_ext"
14063 case "(($ac_try" in
14064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065 *) ac_try_echo=$ac_try;;
14066 esac
14067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } >/dev/null && {
14075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14076 test ! -s conftest.err
14077 }; then
14078 ac_header_preproc=yes
14079 else
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14082
14083 ac_header_preproc=no
14084 fi
14085
14086 rm -f conftest.err conftest.$ac_ext
14087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14088 echo "${ECHO_T}$ac_header_preproc" >&6; }
14089
14090 # So? What about this header?
14091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14092 yes:no: )
14093 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14094 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14096 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14097 ac_header_preproc=yes
14098 ;;
14099 no:yes:* )
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14101 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14103 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14105 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14107 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14109 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14110 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14111 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14112
14113 ;;
14114 esac
14115 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14116 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14117 if test "${ac_cv_header_tiffio_h+set}" = set; then
14118 echo $ECHO_N "(cached) $ECHO_C" >&6
14119 else
14120 ac_cv_header_tiffio_h=$ac_header_preproc
14121 fi
14122 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14123 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14124
14125 fi
14126 if test $ac_cv_header_tiffio_h = yes; then
14127 tifflibs="-lz -lm"
14128 # At least one tiff package requires the jpeg library.
14129 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14130 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14131 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14132 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 else
14135 ac_check_lib_save_LIBS=$LIBS
14136 LIBS="-ltiff $tifflibs $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. */
14143
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 TIFFGetVersion ();
14151 int
14152 main ()
14153 {
14154 return TIFFGetVersion ();
14155 ;
14156 return 0;
14157 }
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_link") 2>conftest.er1
14167 ac_status=$?
14168 grep -v '^ *+' conftest.er1 >conftest.err
14169 rm -f conftest.er1
14170 cat conftest.err >&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } && {
14173 test -z "$ac_c_werror_flag" ||
14174 test ! -s conftest.err
14175 } && test -s conftest$ac_exeext &&
14176 $as_test_x conftest$ac_exeext; then
14177 ac_cv_lib_tiff_TIFFGetVersion=yes
14178 else
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14181
14182 ac_cv_lib_tiff_TIFFGetVersion=no
14183 fi
14184
14185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14186 conftest$ac_exeext conftest.$ac_ext
14187 LIBS=$ac_check_lib_save_LIBS
14188 fi
14189 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14190 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14191 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14192 HAVE_TIFF=yes
14193 fi
14194
14195 fi
14196
14197
14198 fi
14199
14200 if test "${HAVE_TIFF}" = "yes"; then
14201
14202 cat >>confdefs.h <<\_ACEOF
14203 #define HAVE_TIFF 1
14204 _ACEOF
14205
14206 fi
14207 fi
14208
14209 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14210 HAVE_GIF=no
14211 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14212 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14213 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14214 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14215 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 fi
14218 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14219 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14220 else
14221 # Is the header compilable?
14222 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14223 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14224 cat >conftest.$ac_ext <<_ACEOF
14225 /* confdefs.h. */
14226 _ACEOF
14227 cat confdefs.h >>conftest.$ac_ext
14228 cat >>conftest.$ac_ext <<_ACEOF
14229 /* end confdefs.h. */
14230 $ac_includes_default
14231 #include <gif_lib.h>
14232 _ACEOF
14233 rm -f conftest.$ac_objext
14234 if { (ac_try="$ac_compile"
14235 case "(($ac_try" in
14236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14237 *) ac_try_echo=$ac_try;;
14238 esac
14239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14240 (eval "$ac_compile") 2>conftest.er1
14241 ac_status=$?
14242 grep -v '^ *+' conftest.er1 >conftest.err
14243 rm -f conftest.er1
14244 cat conftest.err >&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); } && {
14247 test -z "$ac_c_werror_flag" ||
14248 test ! -s conftest.err
14249 } && test -s conftest.$ac_objext; then
14250 ac_header_compiler=yes
14251 else
14252 echo "$as_me: failed program was:" >&5
14253 sed 's/^/| /' conftest.$ac_ext >&5
14254
14255 ac_header_compiler=no
14256 fi
14257
14258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14260 echo "${ECHO_T}$ac_header_compiler" >&6; }
14261
14262 # Is the header present?
14263 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14264 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14265 cat >conftest.$ac_ext <<_ACEOF
14266 /* confdefs.h. */
14267 _ACEOF
14268 cat confdefs.h >>conftest.$ac_ext
14269 cat >>conftest.$ac_ext <<_ACEOF
14270 /* end confdefs.h. */
14271 #include <gif_lib.h>
14272 _ACEOF
14273 if { (ac_try="$ac_cpp conftest.$ac_ext"
14274 case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14277 esac
14278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14280 ac_status=$?
14281 grep -v '^ *+' conftest.er1 >conftest.err
14282 rm -f conftest.er1
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } >/dev/null && {
14286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14287 test ! -s conftest.err
14288 }; then
14289 ac_header_preproc=yes
14290 else
14291 echo "$as_me: failed program was:" >&5
14292 sed 's/^/| /' conftest.$ac_ext >&5
14293
14294 ac_header_preproc=no
14295 fi
14296
14297 rm -f conftest.err conftest.$ac_ext
14298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14299 echo "${ECHO_T}$ac_header_preproc" >&6; }
14300
14301 # So? What about this header?
14302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14303 yes:no: )
14304 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14305 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14307 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14308 ac_header_preproc=yes
14309 ;;
14310 no:yes:* )
14311 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14312 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14314 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14316 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14318 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14320 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14321 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14322 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14323
14324 ;;
14325 esac
14326 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14327 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14328 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14329 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331 ac_cv_header_gif_lib_h=$ac_header_preproc
14332 fi
14333 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14334 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14335
14336 fi
14337 if test $ac_cv_header_gif_lib_h = yes; then
14338 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14339 # Earlier versions can crash Emacs.
14340 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14341 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14342 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345 ac_check_lib_save_LIBS=$LIBS
14346 LIBS="-lgif $LIBS"
14347 cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h. */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353
14354 /* Override any GCC internal prototype to avoid an error.
14355 Use char because int might match the return type of a GCC
14356 builtin and then its argument prototype would still apply. */
14357 #ifdef __cplusplus
14358 extern "C"
14359 #endif
14360 char EGifPutExtensionLast ();
14361 int
14362 main ()
14363 {
14364 return EGifPutExtensionLast ();
14365 ;
14366 return 0;
14367 }
14368 _ACEOF
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (ac_try="$ac_link"
14371 case "(($ac_try" in
14372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14373 *) ac_try_echo=$ac_try;;
14374 esac
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_link") 2>conftest.er1
14377 ac_status=$?
14378 grep -v '^ *+' conftest.er1 >conftest.err
14379 rm -f conftest.er1
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } && {
14383 test -z "$ac_c_werror_flag" ||
14384 test ! -s conftest.err
14385 } && test -s conftest$ac_exeext &&
14386 $as_test_x conftest$ac_exeext; then
14387 ac_cv_lib_gif_EGifPutExtensionLast=yes
14388 else
14389 echo "$as_me: failed program was:" >&5
14390 sed 's/^/| /' conftest.$ac_ext >&5
14391
14392 ac_cv_lib_gif_EGifPutExtensionLast=no
14393 fi
14394
14395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14396 conftest$ac_exeext conftest.$ac_ext
14397 LIBS=$ac_check_lib_save_LIBS
14398 fi
14399 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14400 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14401 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14402 HAVE_GIF=yes
14403 else
14404 try_libungif=yes
14405 fi
14406
14407 fi
14408
14409
14410
14411 if test "$HAVE_GIF" = yes; then
14412 ac_gif_lib_name="-lgif"
14413 fi
14414
14415 # If gif_lib.h but no libgif, try libungif.
14416 if test x"$try_libungif" = xyes; then
14417 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14418 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14419 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14420 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 else
14422 ac_check_lib_save_LIBS=$LIBS
14423 LIBS="-lungif $LIBS"
14424 cat >conftest.$ac_ext <<_ACEOF
14425 /* confdefs.h. */
14426 _ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430
14431 /* Override any GCC internal prototype to avoid an error.
14432 Use char because int might match the return type of a GCC
14433 builtin and then its argument prototype would still apply. */
14434 #ifdef __cplusplus
14435 extern "C"
14436 #endif
14437 char EGifPutExtensionLast ();
14438 int
14439 main ()
14440 {
14441 return EGifPutExtensionLast ();
14442 ;
14443 return 0;
14444 }
14445 _ACEOF
14446 rm -f conftest.$ac_objext conftest$ac_exeext
14447 if { (ac_try="$ac_link"
14448 case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14451 esac
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_link") 2>conftest.er1
14454 ac_status=$?
14455 grep -v '^ *+' conftest.er1 >conftest.err
14456 rm -f conftest.er1
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } && {
14460 test -z "$ac_c_werror_flag" ||
14461 test ! -s conftest.err
14462 } && test -s conftest$ac_exeext &&
14463 $as_test_x conftest$ac_exeext; then
14464 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14465 else
14466 echo "$as_me: failed program was:" >&5
14467 sed 's/^/| /' conftest.$ac_ext >&5
14468
14469 ac_cv_lib_ungif_EGifPutExtensionLast=no
14470 fi
14471
14472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14473 conftest$ac_exeext conftest.$ac_ext
14474 LIBS=$ac_check_lib_save_LIBS
14475 fi
14476 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14477 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14478 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14479 HAVE_GIF=yes
14480 fi
14481
14482
14483 if test "$HAVE_GIF" = yes; then
14484
14485 cat >>confdefs.h <<\_ACEOF
14486 #define LIBGIF -lungif
14487 _ACEOF
14488
14489 ac_gif_lib_name="-lungif"
14490 fi
14491 fi
14492
14493 if test "${HAVE_GIF}" = "yes"; then
14494
14495 cat >>confdefs.h <<\_ACEOF
14496 #define HAVE_GIF 1
14497 _ACEOF
14498
14499 fi
14500 fi
14501
14502 if test "${HAVE_X11}" = "yes"; then
14503 MISSING=""
14504 WITH_NO=""
14505 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14506 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14507 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14508 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14509 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14510 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14511 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14512 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14513 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14514 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14515
14516 if test "X${MISSING}" != X; then
14517 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14518 $MISSING
14519 Maybe some development libraries/packages are missing?
14520 If you don't want to link with them give
14521 $WITH_NO
14522 as options to configure" >&5
14523 echo "$as_me: error: The following required libraries were not found:
14524 $MISSING
14525 Maybe some development libraries/packages are missing?
14526 If you don't want to link with them give
14527 $WITH_NO
14528 as options to configure" >&2;}
14529 { (exit 1); exit 1; }; }
14530 fi
14531 fi
14532
14533 ### Use -lgpm if available, unless `--with-gpm=no'.
14534 HAVE_GPM=no
14535 if test "${with_gpm}" != "no"; then
14536 if test "${ac_cv_header_gpm_h+set}" = set; then
14537 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14538 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14539 if test "${ac_cv_header_gpm_h+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 fi
14542 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14543 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14544 else
14545 # Is the header compilable?
14546 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14547 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14548 cat >conftest.$ac_ext <<_ACEOF
14549 /* confdefs.h. */
14550 _ACEOF
14551 cat confdefs.h >>conftest.$ac_ext
14552 cat >>conftest.$ac_ext <<_ACEOF
14553 /* end confdefs.h. */
14554 $ac_includes_default
14555 #include <gpm.h>
14556 _ACEOF
14557 rm -f conftest.$ac_objext
14558 if { (ac_try="$ac_compile"
14559 case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14562 esac
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_compile") 2>conftest.er1
14565 ac_status=$?
14566 grep -v '^ *+' conftest.er1 >conftest.err
14567 rm -f conftest.er1
14568 cat conftest.err >&5
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); } && {
14571 test -z "$ac_c_werror_flag" ||
14572 test ! -s conftest.err
14573 } && test -s conftest.$ac_objext; then
14574 ac_header_compiler=yes
14575 else
14576 echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14578
14579 ac_header_compiler=no
14580 fi
14581
14582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14584 echo "${ECHO_T}$ac_header_compiler" >&6; }
14585
14586 # Is the header present?
14587 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14588 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14589 cat >conftest.$ac_ext <<_ACEOF
14590 /* confdefs.h. */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14595 #include <gpm.h>
14596 _ACEOF
14597 if { (ac_try="$ac_cpp conftest.$ac_ext"
14598 case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14601 esac
14602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14604 ac_status=$?
14605 grep -v '^ *+' conftest.er1 >conftest.err
14606 rm -f conftest.er1
14607 cat conftest.err >&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); } >/dev/null && {
14610 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14611 test ! -s conftest.err
14612 }; then
14613 ac_header_preproc=yes
14614 else
14615 echo "$as_me: failed program was:" >&5
14616 sed 's/^/| /' conftest.$ac_ext >&5
14617
14618 ac_header_preproc=no
14619 fi
14620
14621 rm -f conftest.err conftest.$ac_ext
14622 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14623 echo "${ECHO_T}$ac_header_preproc" >&6; }
14624
14625 # So? What about this header?
14626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14627 yes:no: )
14628 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14629 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14630 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14631 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14632 ac_header_preproc=yes
14633 ;;
14634 no:yes:* )
14635 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14636 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14638 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14640 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14642 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14644 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14645 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14646 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14647
14648 ;;
14649 esac
14650 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14651 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14652 if test "${ac_cv_header_gpm_h+set}" = set; then
14653 echo $ECHO_N "(cached) $ECHO_C" >&6
14654 else
14655 ac_cv_header_gpm_h=$ac_header_preproc
14656 fi
14657 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14658 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14659
14660 fi
14661 if test $ac_cv_header_gpm_h = yes; then
14662 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14663 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14664 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14665 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 else
14667 ac_check_lib_save_LIBS=$LIBS
14668 LIBS="-lgpm $LIBS"
14669 cat >conftest.$ac_ext <<_ACEOF
14670 /* confdefs.h. */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h. */
14675
14676 /* Override any GCC internal prototype to avoid an error.
14677 Use char because int might match the return type of a GCC
14678 builtin and then its argument prototype would still apply. */
14679 #ifdef __cplusplus
14680 extern "C"
14681 #endif
14682 char Gpm_Open ();
14683 int
14684 main ()
14685 {
14686 return Gpm_Open ();
14687 ;
14688 return 0;
14689 }
14690 _ACEOF
14691 rm -f conftest.$ac_objext conftest$ac_exeext
14692 if { (ac_try="$ac_link"
14693 case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14696 esac
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_link") 2>conftest.er1
14699 ac_status=$?
14700 grep -v '^ *+' conftest.er1 >conftest.err
14701 rm -f conftest.er1
14702 cat conftest.err >&5
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); } && {
14705 test -z "$ac_c_werror_flag" ||
14706 test ! -s conftest.err
14707 } && test -s conftest$ac_exeext &&
14708 $as_test_x conftest$ac_exeext; then
14709 ac_cv_lib_gpm_Gpm_Open=yes
14710 else
14711 echo "$as_me: failed program was:" >&5
14712 sed 's/^/| /' conftest.$ac_ext >&5
14713
14714 ac_cv_lib_gpm_Gpm_Open=no
14715 fi
14716
14717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14718 conftest$ac_exeext conftest.$ac_ext
14719 LIBS=$ac_check_lib_save_LIBS
14720 fi
14721 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14722 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14723 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14724 HAVE_GPM=yes
14725 fi
14726
14727 fi
14728
14729
14730 fi
14731
14732 if test "${HAVE_GPM}" = "yes"; then
14733
14734 cat >>confdefs.h <<\_ACEOF
14735 #define HAVE_GPM 1
14736 _ACEOF
14737
14738 fi
14739
14740 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14741 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14742 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14743 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14744 echo $ECHO_N "(cached) $ECHO_C" >&6
14745 fi
14746 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14747 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14748 else
14749 # Is the header compilable?
14750 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14751 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14752 cat >conftest.$ac_ext <<_ACEOF
14753 /* confdefs.h. */
14754 _ACEOF
14755 cat confdefs.h >>conftest.$ac_ext
14756 cat >>conftest.$ac_ext <<_ACEOF
14757 /* end confdefs.h. */
14758 $ac_includes_default
14759 #include <malloc/malloc.h>
14760 _ACEOF
14761 rm -f conftest.$ac_objext
14762 if { (ac_try="$ac_compile"
14763 case "(($ac_try" in
14764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14765 *) ac_try_echo=$ac_try;;
14766 esac
14767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14768 (eval "$ac_compile") 2>conftest.er1
14769 ac_status=$?
14770 grep -v '^ *+' conftest.er1 >conftest.err
14771 rm -f conftest.er1
14772 cat conftest.err >&5
14773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14774 (exit $ac_status); } && {
14775 test -z "$ac_c_werror_flag" ||
14776 test ! -s conftest.err
14777 } && test -s conftest.$ac_objext; then
14778 ac_header_compiler=yes
14779 else
14780 echo "$as_me: failed program was:" >&5
14781 sed 's/^/| /' conftest.$ac_ext >&5
14782
14783 ac_header_compiler=no
14784 fi
14785
14786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14788 echo "${ECHO_T}$ac_header_compiler" >&6; }
14789
14790 # Is the header present?
14791 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14792 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14793 cat >conftest.$ac_ext <<_ACEOF
14794 /* confdefs.h. */
14795 _ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h. */
14799 #include <malloc/malloc.h>
14800 _ACEOF
14801 if { (ac_try="$ac_cpp conftest.$ac_ext"
14802 case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14805 esac
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14808 ac_status=$?
14809 grep -v '^ *+' conftest.er1 >conftest.err
14810 rm -f conftest.er1
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } >/dev/null && {
14814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14815 test ! -s conftest.err
14816 }; then
14817 ac_header_preproc=yes
14818 else
14819 echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14821
14822 ac_header_preproc=no
14823 fi
14824
14825 rm -f conftest.err conftest.$ac_ext
14826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14827 echo "${ECHO_T}$ac_header_preproc" >&6; }
14828
14829 # So? What about this header?
14830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14831 yes:no: )
14832 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14833 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14834 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14835 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14836 ac_header_preproc=yes
14837 ;;
14838 no:yes:* )
14839 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14840 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14844 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14846 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14847 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14848 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14850 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14851
14852 ;;
14853 esac
14854 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14855 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14856 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858 else
14859 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14860 fi
14861 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14862 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14863
14864 fi
14865 if test $ac_cv_header_malloc_malloc_h = yes; then
14866
14867 cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_MALLOC_MALLOC_H 1
14869 _ACEOF
14870
14871 fi
14872
14873
14874
14875 ### Use NeXTstep API to implement GUI.
14876 if test "${HAVE_NS}" = "yes"; then
14877
14878 cat >>confdefs.h <<\_ACEOF
14879 #define HAVE_NS 1
14880 _ACEOF
14881
14882 if test "${NS_IMPL_COCOA}" = "yes"; then
14883
14884 cat >>confdefs.h <<\_ACEOF
14885 #define NS_IMPL_COCOA 1
14886 _ACEOF
14887
14888 GNU_OBJC_CFLAGS=
14889 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
14890 fi
14891 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14892
14893 cat >>confdefs.h <<\_ACEOF
14894 #define COCOA_EXPERIMENTAL_CTRL_G 1
14895 _ACEOF
14896
14897 fi
14898 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14899
14900 cat >>confdefs.h <<\_ACEOF
14901 #define NS_IMPL_GNUSTEP 1
14902 _ACEOF
14903
14904 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14905 fi
14906 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14907
14908 cat >>confdefs.h <<\_ACEOF
14909 #define NS_HAVE_NSINTEGER 1
14910 _ACEOF
14911
14912 fi
14913 # We also have mouse menus.
14914 HAVE_MENUS=yes
14915 fi
14916
14917
14918 ### Use session management (-lSM -lICE) if available
14919 HAVE_X_SM=no
14920 if test "${HAVE_X11}" = "yes"; then
14921 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14922 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14923 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14924 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14925 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 fi
14927 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14928 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14929 else
14930 # Is the header compilable?
14931 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14932 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14933 cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h. */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h. */
14939 $ac_includes_default
14940 #include <X11/SM/SMlib.h>
14941 _ACEOF
14942 rm -f conftest.$ac_objext
14943 if { (ac_try="$ac_compile"
14944 case "(($ac_try" in
14945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14946 *) ac_try_echo=$ac_try;;
14947 esac
14948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14949 (eval "$ac_compile") 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && {
14956 test -z "$ac_c_werror_flag" ||
14957 test ! -s conftest.err
14958 } && test -s conftest.$ac_objext; then
14959 ac_header_compiler=yes
14960 else
14961 echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14963
14964 ac_header_compiler=no
14965 fi
14966
14967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14969 echo "${ECHO_T}$ac_header_compiler" >&6; }
14970
14971 # Is the header present?
14972 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14973 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14974 cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h. */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 #include <X11/SM/SMlib.h>
14981 _ACEOF
14982 if { (ac_try="$ac_cpp conftest.$ac_ext"
14983 case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986 esac
14987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14989 ac_status=$?
14990 grep -v '^ *+' conftest.er1 >conftest.err
14991 rm -f conftest.er1
14992 cat conftest.err >&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); } >/dev/null && {
14995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14996 test ! -s conftest.err
14997 }; then
14998 ac_header_preproc=yes
14999 else
15000 echo "$as_me: failed program was:" >&5
15001 sed 's/^/| /' conftest.$ac_ext >&5
15002
15003 ac_header_preproc=no
15004 fi
15005
15006 rm -f conftest.err conftest.$ac_ext
15007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15008 echo "${ECHO_T}$ac_header_preproc" >&6; }
15009
15010 # So? What about this header?
15011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15012 yes:no: )
15013 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15014 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15016 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15017 ac_header_preproc=yes
15018 ;;
15019 no:yes:* )
15020 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15021 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15022 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15023 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15024 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15025 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15026 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15027 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15028 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15029 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15030 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15031 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15032
15033 ;;
15034 esac
15035 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15036 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15037 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15039 else
15040 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15041 fi
15042 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15043 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15044
15045 fi
15046 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15047 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15048 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15049 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052 ac_check_lib_save_LIBS=$LIBS
15053 LIBS="-lSM -lICE $LIBS"
15054 cat >conftest.$ac_ext <<_ACEOF
15055 /* confdefs.h. */
15056 _ACEOF
15057 cat confdefs.h >>conftest.$ac_ext
15058 cat >>conftest.$ac_ext <<_ACEOF
15059 /* end confdefs.h. */
15060
15061 /* Override any GCC internal prototype to avoid an error.
15062 Use char because int might match the return type of a GCC
15063 builtin and then its argument prototype would still apply. */
15064 #ifdef __cplusplus
15065 extern "C"
15066 #endif
15067 char SmcOpenConnection ();
15068 int
15069 main ()
15070 {
15071 return SmcOpenConnection ();
15072 ;
15073 return 0;
15074 }
15075 _ACEOF
15076 rm -f conftest.$ac_objext conftest$ac_exeext
15077 if { (ac_try="$ac_link"
15078 case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15081 esac
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_link") 2>conftest.er1
15084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } && {
15090 test -z "$ac_c_werror_flag" ||
15091 test ! -s conftest.err
15092 } && test -s conftest$ac_exeext &&
15093 $as_test_x conftest$ac_exeext; then
15094 ac_cv_lib_SM_SmcOpenConnection=yes
15095 else
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15098
15099 ac_cv_lib_SM_SmcOpenConnection=no
15100 fi
15101
15102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15103 conftest$ac_exeext conftest.$ac_ext
15104 LIBS=$ac_check_lib_save_LIBS
15105 fi
15106 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15107 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15108 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15109 HAVE_X_SM=yes
15110 fi
15111
15112 fi
15113
15114
15115
15116 if test "${HAVE_X_SM}" = "yes"; then
15117
15118 cat >>confdefs.h <<\_ACEOF
15119 #define HAVE_X_SM 1
15120 _ACEOF
15121
15122 case "$LIBS" in
15123 *-lSM*) ;;
15124 *) LIBS="-lSM -lICE $LIBS" ;;
15125 esac
15126 fi
15127 fi
15128
15129 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15130 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15131 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15132 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 else
15135 cat >conftest.$ac_ext <<_ACEOF
15136 /* confdefs.h. */
15137 _ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15141 #include <netdb.h>
15142 int
15143 main ()
15144 {
15145 return h_errno;
15146 ;
15147 return 0;
15148 }
15149 _ACEOF
15150 rm -f conftest.$ac_objext conftest$ac_exeext
15151 if { (ac_try="$ac_link"
15152 case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155 esac
15156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15157 (eval "$ac_link") 2>conftest.er1
15158 ac_status=$?
15159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } && {
15164 test -z "$ac_c_werror_flag" ||
15165 test ! -s conftest.err
15166 } && test -s conftest$ac_exeext &&
15167 $as_test_x conftest$ac_exeext; then
15168 emacs_cv_netdb_declares_h_errno=yes
15169 else
15170 echo "$as_me: failed program was:" >&5
15171 sed 's/^/| /' conftest.$ac_ext >&5
15172
15173 emacs_cv_netdb_declares_h_errno=no
15174 fi
15175
15176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15177 conftest$ac_exeext conftest.$ac_ext
15178 fi
15179 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15180 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15181 if test $emacs_cv_netdb_declares_h_errno = yes; then
15182
15183 cat >>confdefs.h <<\_ACEOF
15184 #define HAVE_H_ERRNO 1
15185 _ACEOF
15186
15187 fi
15188
15189 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15190 # for constant arguments. Useless!
15191 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15192 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15193 if test "${ac_cv_working_alloca_h+set}" = set; then
15194 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196 cat >conftest.$ac_ext <<_ACEOF
15197 /* confdefs.h. */
15198 _ACEOF
15199 cat confdefs.h >>conftest.$ac_ext
15200 cat >>conftest.$ac_ext <<_ACEOF
15201 /* end confdefs.h. */
15202 #include <alloca.h>
15203 int
15204 main ()
15205 {
15206 char *p = (char *) alloca (2 * sizeof (int));
15207 if (p) return 0;
15208 ;
15209 return 0;
15210 }
15211 _ACEOF
15212 rm -f conftest.$ac_objext conftest$ac_exeext
15213 if { (ac_try="$ac_link"
15214 case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15217 esac
15218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_link") 2>conftest.er1
15220 ac_status=$?
15221 grep -v '^ *+' conftest.er1 >conftest.err
15222 rm -f conftest.er1
15223 cat conftest.err >&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } && {
15226 test -z "$ac_c_werror_flag" ||
15227 test ! -s conftest.err
15228 } && test -s conftest$ac_exeext &&
15229 $as_test_x conftest$ac_exeext; then
15230 ac_cv_working_alloca_h=yes
15231 else
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15234
15235 ac_cv_working_alloca_h=no
15236 fi
15237
15238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15239 conftest$ac_exeext conftest.$ac_ext
15240 fi
15241 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15242 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15243 if test $ac_cv_working_alloca_h = yes; then
15244
15245 cat >>confdefs.h <<\_ACEOF
15246 #define HAVE_ALLOCA_H 1
15247 _ACEOF
15248
15249 fi
15250
15251 { echo "$as_me:$LINENO: checking for alloca" >&5
15252 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15253 if test "${ac_cv_func_alloca_works+set}" = set; then
15254 echo $ECHO_N "(cached) $ECHO_C" >&6
15255 else
15256 cat >conftest.$ac_ext <<_ACEOF
15257 /* confdefs.h. */
15258 _ACEOF
15259 cat confdefs.h >>conftest.$ac_ext
15260 cat >>conftest.$ac_ext <<_ACEOF
15261 /* end confdefs.h. */
15262 #ifdef __GNUC__
15263 # define alloca __builtin_alloca
15264 #else
15265 # ifdef _MSC_VER
15266 # include <malloc.h>
15267 # define alloca _alloca
15268 # else
15269 # ifdef HAVE_ALLOCA_H
15270 # include <alloca.h>
15271 # else
15272 # ifdef _AIX
15273 #pragma alloca
15274 # else
15275 # ifndef alloca /* predefined by HP cc +Olibcalls */
15276 char *alloca ();
15277 # endif
15278 # endif
15279 # endif
15280 # endif
15281 #endif
15282
15283 int
15284 main ()
15285 {
15286 char *p = (char *) alloca (1);
15287 if (p) return 0;
15288 ;
15289 return 0;
15290 }
15291 _ACEOF
15292 rm -f conftest.$ac_objext conftest$ac_exeext
15293 if { (ac_try="$ac_link"
15294 case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15297 esac
15298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_link") 2>conftest.er1
15300 ac_status=$?
15301 grep -v '^ *+' conftest.er1 >conftest.err
15302 rm -f conftest.er1
15303 cat conftest.err >&5
15304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15305 (exit $ac_status); } && {
15306 test -z "$ac_c_werror_flag" ||
15307 test ! -s conftest.err
15308 } && test -s conftest$ac_exeext &&
15309 $as_test_x conftest$ac_exeext; then
15310 ac_cv_func_alloca_works=yes
15311 else
15312 echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15314
15315 ac_cv_func_alloca_works=no
15316 fi
15317
15318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15319 conftest$ac_exeext conftest.$ac_ext
15320 fi
15321 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15322 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15323
15324 if test $ac_cv_func_alloca_works = yes; then
15325
15326 cat >>confdefs.h <<\_ACEOF
15327 #define HAVE_ALLOCA 1
15328 _ACEOF
15329
15330 else
15331 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15332 # that cause trouble. Some versions do not even contain alloca or
15333 # contain a buggy version. If you still want to use their alloca,
15334 # use ar to extract alloca.o from them instead of compiling alloca.c.
15335
15336 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15337
15338 cat >>confdefs.h <<\_ACEOF
15339 #define C_ALLOCA 1
15340 _ACEOF
15341
15342
15343 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15344 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15345 if test "${ac_cv_os_cray+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347 else
15348 cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h. */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 #if defined CRAY && ! defined CRAY2
15355 webecray
15356 #else
15357 wenotbecray
15358 #endif
15359
15360 _ACEOF
15361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15362 $EGREP "webecray" >/dev/null 2>&1; then
15363 ac_cv_os_cray=yes
15364 else
15365 ac_cv_os_cray=no
15366 fi
15367 rm -f conftest*
15368
15369 fi
15370 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15371 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15372 if test $ac_cv_os_cray = yes; then
15373 for ac_func in _getb67 GETB67 getb67; do
15374 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15375 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15376 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15377 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15378 echo $ECHO_N "(cached) $ECHO_C" >&6
15379 else
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h. */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15388 #define $ac_func innocuous_$ac_func
15389
15390 /* System header to define __stub macros and hopefully few prototypes,
15391 which can conflict with char $ac_func (); below.
15392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15393 <limits.h> exists even on freestanding compilers. */
15394
15395 #ifdef __STDC__
15396 # include <limits.h>
15397 #else
15398 # include <assert.h>
15399 #endif
15400
15401 #undef $ac_func
15402
15403 /* Override any GCC internal prototype to avoid an error.
15404 Use char because int might match the return type of a GCC
15405 builtin and then its argument prototype would still apply. */
15406 #ifdef __cplusplus
15407 extern "C"
15408 #endif
15409 char $ac_func ();
15410 /* The GNU C library defines this for functions which it implements
15411 to always fail with ENOSYS. Some functions are actually named
15412 something starting with __ and the normal name is an alias. */
15413 #if defined __stub_$ac_func || defined __stub___$ac_func
15414 choke me
15415 #endif
15416
15417 int
15418 main ()
15419 {
15420 return $ac_func ();
15421 ;
15422 return 0;
15423 }
15424 _ACEOF
15425 rm -f conftest.$ac_objext conftest$ac_exeext
15426 if { (ac_try="$ac_link"
15427 case "(($ac_try" in
15428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15429 *) ac_try_echo=$ac_try;;
15430 esac
15431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15432 (eval "$ac_link") 2>conftest.er1
15433 ac_status=$?
15434 grep -v '^ *+' conftest.er1 >conftest.err
15435 rm -f conftest.er1
15436 cat conftest.err >&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); } && {
15439 test -z "$ac_c_werror_flag" ||
15440 test ! -s conftest.err
15441 } && test -s conftest$ac_exeext &&
15442 $as_test_x conftest$ac_exeext; then
15443 eval "$as_ac_var=yes"
15444 else
15445 echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15447
15448 eval "$as_ac_var=no"
15449 fi
15450
15451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15452 conftest$ac_exeext conftest.$ac_ext
15453 fi
15454 ac_res=`eval echo '${'$as_ac_var'}'`
15455 { echo "$as_me:$LINENO: result: $ac_res" >&5
15456 echo "${ECHO_T}$ac_res" >&6; }
15457 if test `eval echo '${'$as_ac_var'}'` = yes; then
15458
15459 cat >>confdefs.h <<_ACEOF
15460 #define CRAY_STACKSEG_END $ac_func
15461 _ACEOF
15462
15463 break
15464 fi
15465
15466 done
15467 fi
15468
15469 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15470 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15471 if test "${ac_cv_c_stack_direction+set}" = set; then
15472 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474 if test "$cross_compiling" = yes; then
15475 ac_cv_c_stack_direction=0
15476 else
15477 cat >conftest.$ac_ext <<_ACEOF
15478 /* confdefs.h. */
15479 _ACEOF
15480 cat confdefs.h >>conftest.$ac_ext
15481 cat >>conftest.$ac_ext <<_ACEOF
15482 /* end confdefs.h. */
15483 $ac_includes_default
15484 int
15485 find_stack_direction ()
15486 {
15487 static char *addr = 0;
15488 auto char dummy;
15489 if (addr == 0)
15490 {
15491 addr = &dummy;
15492 return find_stack_direction ();
15493 }
15494 else
15495 return (&dummy > addr) ? 1 : -1;
15496 }
15497
15498 int
15499 main ()
15500 {
15501 return find_stack_direction () < 0;
15502 }
15503 _ACEOF
15504 rm -f conftest$ac_exeext
15505 if { (ac_try="$ac_link"
15506 case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15509 esac
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_link") 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15515 { (case "(($ac_try" in
15516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15517 *) ac_try_echo=$ac_try;;
15518 esac
15519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15520 (eval "$ac_try") 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; }; then
15524 ac_cv_c_stack_direction=1
15525 else
15526 echo "$as_me: program exited with status $ac_status" >&5
15527 echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15529
15530 ( exit $ac_status )
15531 ac_cv_c_stack_direction=-1
15532 fi
15533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15534 fi
15535
15536
15537 fi
15538 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15539 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15540
15541 cat >>confdefs.h <<_ACEOF
15542 #define STACK_DIRECTION $ac_cv_c_stack_direction
15543 _ACEOF
15544
15545
15546 fi
15547
15548
15549 if test x"$ac_cv_func_alloca_works" != xyes; then
15550 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15551 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15552 { (exit 1); exit 1; }; }
15553 fi
15554
15555 # fmod, logb, and frexp are found in -lm on most systems.
15556 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15557
15558 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15559 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15560 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15561 echo $ECHO_N "(cached) $ECHO_C" >&6
15562 else
15563 ac_check_lib_save_LIBS=$LIBS
15564 LIBS="-lm $LIBS"
15565 cat >conftest.$ac_ext <<_ACEOF
15566 /* confdefs.h. */
15567 _ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571
15572 /* Override any GCC internal prototype to avoid an error.
15573 Use char because int might match the return type of a GCC
15574 builtin and then its argument prototype would still apply. */
15575 #ifdef __cplusplus
15576 extern "C"
15577 #endif
15578 char sqrt ();
15579 int
15580 main ()
15581 {
15582 return sqrt ();
15583 ;
15584 return 0;
15585 }
15586 _ACEOF
15587 rm -f conftest.$ac_objext conftest$ac_exeext
15588 if { (ac_try="$ac_link"
15589 case "(($ac_try" in
15590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591 *) ac_try_echo=$ac_try;;
15592 esac
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594 (eval "$ac_link") 2>conftest.er1
15595 ac_status=$?
15596 grep -v '^ *+' conftest.er1 >conftest.err
15597 rm -f conftest.er1
15598 cat conftest.err >&5
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); } && {
15601 test -z "$ac_c_werror_flag" ||
15602 test ! -s conftest.err
15603 } && test -s conftest$ac_exeext &&
15604 $as_test_x conftest$ac_exeext; then
15605 ac_cv_lib_m_sqrt=yes
15606 else
15607 echo "$as_me: failed program was:" >&5
15608 sed 's/^/| /' conftest.$ac_ext >&5
15609
15610 ac_cv_lib_m_sqrt=no
15611 fi
15612
15613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15614 conftest$ac_exeext conftest.$ac_ext
15615 LIBS=$ac_check_lib_save_LIBS
15616 fi
15617 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15618 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15619 if test $ac_cv_lib_m_sqrt = yes; then
15620 cat >>confdefs.h <<_ACEOF
15621 #define HAVE_LIBM 1
15622 _ACEOF
15623
15624 LIBS="-lm $LIBS"
15625
15626 fi
15627
15628
15629 # Check for mail-locking functions in a "mail" library. Probably this should
15630 # have the same check as for liblockfile below.
15631
15632 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15633 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15634 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 else
15637 ac_check_lib_save_LIBS=$LIBS
15638 LIBS="-lmail $LIBS"
15639 cat >conftest.$ac_ext <<_ACEOF
15640 /* confdefs.h. */
15641 _ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15645
15646 /* Override any GCC internal prototype to avoid an error.
15647 Use char because int might match the return type of a GCC
15648 builtin and then its argument prototype would still apply. */
15649 #ifdef __cplusplus
15650 extern "C"
15651 #endif
15652 char maillock ();
15653 int
15654 main ()
15655 {
15656 return maillock ();
15657 ;
15658 return 0;
15659 }
15660 _ACEOF
15661 rm -f conftest.$ac_objext conftest$ac_exeext
15662 if { (ac_try="$ac_link"
15663 case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15666 esac
15667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15668 (eval "$ac_link") 2>conftest.er1
15669 ac_status=$?
15670 grep -v '^ *+' conftest.er1 >conftest.err
15671 rm -f conftest.er1
15672 cat conftest.err >&5
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); } && {
15675 test -z "$ac_c_werror_flag" ||
15676 test ! -s conftest.err
15677 } && test -s conftest$ac_exeext &&
15678 $as_test_x conftest$ac_exeext; then
15679 ac_cv_lib_mail_maillock=yes
15680 else
15681 echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 ac_cv_lib_mail_maillock=no
15685 fi
15686
15687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15688 conftest$ac_exeext conftest.$ac_ext
15689 LIBS=$ac_check_lib_save_LIBS
15690 fi
15691 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15692 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15693 if test $ac_cv_lib_mail_maillock = yes; then
15694 cat >>confdefs.h <<_ACEOF
15695 #define HAVE_LIBMAIL 1
15696 _ACEOF
15697
15698 LIBS="-lmail $LIBS"
15699
15700 fi
15701
15702
15703 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15704 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15705 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15707 else
15708 ac_check_lib_save_LIBS=$LIBS
15709 LIBS="-llockfile $LIBS"
15710 cat >conftest.$ac_ext <<_ACEOF
15711 /* confdefs.h. */
15712 _ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h. */
15716
15717 /* Override any GCC internal prototype to avoid an error.
15718 Use char because int might match the return type of a GCC
15719 builtin and then its argument prototype would still apply. */
15720 #ifdef __cplusplus
15721 extern "C"
15722 #endif
15723 char maillock ();
15724 int
15725 main ()
15726 {
15727 return maillock ();
15728 ;
15729 return 0;
15730 }
15731 _ACEOF
15732 rm -f conftest.$ac_objext conftest$ac_exeext
15733 if { (ac_try="$ac_link"
15734 case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15737 esac
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_link") 2>conftest.er1
15740 ac_status=$?
15741 grep -v '^ *+' conftest.er1 >conftest.err
15742 rm -f conftest.er1
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } && {
15746 test -z "$ac_c_werror_flag" ||
15747 test ! -s conftest.err
15748 } && test -s conftest$ac_exeext &&
15749 $as_test_x conftest$ac_exeext; then
15750 ac_cv_lib_lockfile_maillock=yes
15751 else
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 ac_cv_lib_lockfile_maillock=no
15756 fi
15757
15758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15759 conftest$ac_exeext conftest.$ac_ext
15760 LIBS=$ac_check_lib_save_LIBS
15761 fi
15762 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15763 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15764 if test $ac_cv_lib_lockfile_maillock = yes; then
15765 cat >>confdefs.h <<_ACEOF
15766 #define HAVE_LIBLOCKFILE 1
15767 _ACEOF
15768
15769 LIBS="-llockfile $LIBS"
15770
15771 fi
15772
15773 # If we have the shared liblockfile, assume we must use it for mail
15774 # locking (e.g. Debian). If we couldn't link against liblockfile
15775 # (no liblockfile.a installed), ensure that we don't need to.
15776 if test "$ac_cv_lib_lockfile_maillock" = no; then
15777 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15778 set dummy liblockfile.so; ac_word=$2
15779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15781 if test "${ac_cv_prog_liblockfile+set}" = set; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784 if test -n "$liblockfile"; then
15785 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15786 else
15787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15788 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15789 for as_dir in $as_dummy
15790 do
15791 IFS=$as_save_IFS
15792 test -z "$as_dir" && as_dir=.
15793 for ac_exec_ext in '' $ac_executable_extensions; do
15794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15795 ac_cv_prog_liblockfile="yes"
15796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15797 break 2
15798 fi
15799 done
15800 done
15801 IFS=$as_save_IFS
15802
15803 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15804 fi
15805 fi
15806 liblockfile=$ac_cv_prog_liblockfile
15807 if test -n "$liblockfile"; then
15808 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15809 echo "${ECHO_T}$liblockfile" >&6; }
15810 else
15811 { echo "$as_me:$LINENO: result: no" >&5
15812 echo "${ECHO_T}no" >&6; }
15813 fi
15814
15815
15816 if test $ac_cv_prog_liblockfile = yes; then
15817 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15818 This probably means that movemail could lose mail.
15819 There may be a \`development' package to install containing liblockfile." >&5
15820 echo "$as_me: error: Shared liblockfile found but can't link against it.
15821 This probably means that movemail could lose mail.
15822 There may be a \`development' package to install containing liblockfile." >&2;}
15823 { (exit 1); exit 1; }; }
15824 else :
15825 fi
15826 fi
15827
15828 for ac_func in touchlock
15829 do
15830 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15831 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15832 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15834 echo $ECHO_N "(cached) $ECHO_C" >&6
15835 else
15836 cat >conftest.$ac_ext <<_ACEOF
15837 /* confdefs.h. */
15838 _ACEOF
15839 cat confdefs.h >>conftest.$ac_ext
15840 cat >>conftest.$ac_ext <<_ACEOF
15841 /* end confdefs.h. */
15842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15844 #define $ac_func innocuous_$ac_func
15845
15846 /* System header to define __stub macros and hopefully few prototypes,
15847 which can conflict with char $ac_func (); below.
15848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15849 <limits.h> exists even on freestanding compilers. */
15850
15851 #ifdef __STDC__
15852 # include <limits.h>
15853 #else
15854 # include <assert.h>
15855 #endif
15856
15857 #undef $ac_func
15858
15859 /* Override any GCC internal prototype to avoid an error.
15860 Use char because int might match the return type of a GCC
15861 builtin and then its argument prototype would still apply. */
15862 #ifdef __cplusplus
15863 extern "C"
15864 #endif
15865 char $ac_func ();
15866 /* The GNU C library defines this for functions which it implements
15867 to always fail with ENOSYS. Some functions are actually named
15868 something starting with __ and the normal name is an alias. */
15869 #if defined __stub_$ac_func || defined __stub___$ac_func
15870 choke me
15871 #endif
15872
15873 int
15874 main ()
15875 {
15876 return $ac_func ();
15877 ;
15878 return 0;
15879 }
15880 _ACEOF
15881 rm -f conftest.$ac_objext conftest$ac_exeext
15882 if { (ac_try="$ac_link"
15883 case "(($ac_try" in
15884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885 *) ac_try_echo=$ac_try;;
15886 esac
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888 (eval "$ac_link") 2>conftest.er1
15889 ac_status=$?
15890 grep -v '^ *+' conftest.er1 >conftest.err
15891 rm -f conftest.er1
15892 cat conftest.err >&5
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } && {
15895 test -z "$ac_c_werror_flag" ||
15896 test ! -s conftest.err
15897 } && test -s conftest$ac_exeext &&
15898 $as_test_x conftest$ac_exeext; then
15899 eval "$as_ac_var=yes"
15900 else
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15903
15904 eval "$as_ac_var=no"
15905 fi
15906
15907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15908 conftest$ac_exeext conftest.$ac_ext
15909 fi
15910 ac_res=`eval echo '${'$as_ac_var'}'`
15911 { echo "$as_me:$LINENO: result: $ac_res" >&5
15912 echo "${ECHO_T}$ac_res" >&6; }
15913 if test `eval echo '${'$as_ac_var'}'` = yes; then
15914 cat >>confdefs.h <<_ACEOF
15915 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15916 _ACEOF
15917
15918 fi
15919 done
15920
15921
15922 for ac_header in maillock.h
15923 do
15924 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 fi
15931 ac_res=`eval echo '${'$as_ac_Header'}'`
15932 { echo "$as_me:$LINENO: result: $ac_res" >&5
15933 echo "${ECHO_T}$ac_res" >&6; }
15934 else
15935 # Is the header compilable?
15936 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15938 cat >conftest.$ac_ext <<_ACEOF
15939 /* confdefs.h. */
15940 _ACEOF
15941 cat confdefs.h >>conftest.$ac_ext
15942 cat >>conftest.$ac_ext <<_ACEOF
15943 /* end confdefs.h. */
15944 $ac_includes_default
15945 #include <$ac_header>
15946 _ACEOF
15947 rm -f conftest.$ac_objext
15948 if { (ac_try="$ac_compile"
15949 case "(($ac_try" in
15950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15951 *) ac_try_echo=$ac_try;;
15952 esac
15953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15954 (eval "$ac_compile") 2>conftest.er1
15955 ac_status=$?
15956 grep -v '^ *+' conftest.er1 >conftest.err
15957 rm -f conftest.er1
15958 cat conftest.err >&5
15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15960 (exit $ac_status); } && {
15961 test -z "$ac_c_werror_flag" ||
15962 test ! -s conftest.err
15963 } && test -s conftest.$ac_objext; then
15964 ac_header_compiler=yes
15965 else
15966 echo "$as_me: failed program was:" >&5
15967 sed 's/^/| /' conftest.$ac_ext >&5
15968
15969 ac_header_compiler=no
15970 fi
15971
15972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15974 echo "${ECHO_T}$ac_header_compiler" >&6; }
15975
15976 # Is the header present?
15977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15979 cat >conftest.$ac_ext <<_ACEOF
15980 /* confdefs.h. */
15981 _ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985 #include <$ac_header>
15986 _ACEOF
15987 if { (ac_try="$ac_cpp conftest.$ac_ext"
15988 case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15991 esac
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15994 ac_status=$?
15995 grep -v '^ *+' conftest.er1 >conftest.err
15996 rm -f conftest.er1
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } >/dev/null && {
16000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16001 test ! -s conftest.err
16002 }; then
16003 ac_header_preproc=yes
16004 else
16005 echo "$as_me: failed program was:" >&5
16006 sed 's/^/| /' conftest.$ac_ext >&5
16007
16008 ac_header_preproc=no
16009 fi
16010
16011 rm -f conftest.err conftest.$ac_ext
16012 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16013 echo "${ECHO_T}$ac_header_preproc" >&6; }
16014
16015 # So? What about this header?
16016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16017 yes:no: )
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16022 ac_header_preproc=yes
16023 ;;
16024 no:yes:* )
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16037
16038 ;;
16039 esac
16040 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16041 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16043 echo $ECHO_N "(cached) $ECHO_C" >&6
16044 else
16045 eval "$as_ac_Header=\$ac_header_preproc"
16046 fi
16047 ac_res=`eval echo '${'$as_ac_Header'}'`
16048 { echo "$as_me:$LINENO: result: $ac_res" >&5
16049 echo "${ECHO_T}$ac_res" >&6; }
16050
16051 fi
16052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16053 cat >>confdefs.h <<_ACEOF
16054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16055 _ACEOF
16056
16057 fi
16058
16059 done
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133 for ac_func in gethostname getdomainname dup2 \
16134 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16135 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16136 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16137 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16138 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16139 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16140 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16141 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16142 cfmakeraw cfsetspeed
16143 do
16144 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16145 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16146 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16147 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16149 else
16150 cat >conftest.$ac_ext <<_ACEOF
16151 /* confdefs.h. */
16152 _ACEOF
16153 cat confdefs.h >>conftest.$ac_ext
16154 cat >>conftest.$ac_ext <<_ACEOF
16155 /* end confdefs.h. */
16156 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16158 #define $ac_func innocuous_$ac_func
16159
16160 /* System header to define __stub macros and hopefully few prototypes,
16161 which can conflict with char $ac_func (); below.
16162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16163 <limits.h> exists even on freestanding compilers. */
16164
16165 #ifdef __STDC__
16166 # include <limits.h>
16167 #else
16168 # include <assert.h>
16169 #endif
16170
16171 #undef $ac_func
16172
16173 /* Override any GCC internal prototype to avoid an error.
16174 Use char because int might match the return type of a GCC
16175 builtin and then its argument prototype would still apply. */
16176 #ifdef __cplusplus
16177 extern "C"
16178 #endif
16179 char $ac_func ();
16180 /* The GNU C library defines this for functions which it implements
16181 to always fail with ENOSYS. Some functions are actually named
16182 something starting with __ and the normal name is an alias. */
16183 #if defined __stub_$ac_func || defined __stub___$ac_func
16184 choke me
16185 #endif
16186
16187 int
16188 main ()
16189 {
16190 return $ac_func ();
16191 ;
16192 return 0;
16193 }
16194 _ACEOF
16195 rm -f conftest.$ac_objext conftest$ac_exeext
16196 if { (ac_try="$ac_link"
16197 case "(($ac_try" in
16198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199 *) ac_try_echo=$ac_try;;
16200 esac
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202 (eval "$ac_link") 2>conftest.er1
16203 ac_status=$?
16204 grep -v '^ *+' conftest.er1 >conftest.err
16205 rm -f conftest.er1
16206 cat conftest.err >&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); } && {
16209 test -z "$ac_c_werror_flag" ||
16210 test ! -s conftest.err
16211 } && test -s conftest$ac_exeext &&
16212 $as_test_x conftest$ac_exeext; then
16213 eval "$as_ac_var=yes"
16214 else
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16217
16218 eval "$as_ac_var=no"
16219 fi
16220
16221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16222 conftest$ac_exeext conftest.$ac_ext
16223 fi
16224 ac_res=`eval echo '${'$as_ac_var'}'`
16225 { echo "$as_me:$LINENO: result: $ac_res" >&5
16226 echo "${ECHO_T}$ac_res" >&6; }
16227 if test `eval echo '${'$as_ac_var'}'` = yes; then
16228 cat >>confdefs.h <<_ACEOF
16229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16230 _ACEOF
16231
16232 fi
16233 done
16234
16235
16236
16237 for ac_header in sys/un.h
16238 do
16239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16245 fi
16246 ac_res=`eval echo '${'$as_ac_Header'}'`
16247 { echo "$as_me:$LINENO: result: $ac_res" >&5
16248 echo "${ECHO_T}$ac_res" >&6; }
16249 else
16250 # Is the header compilable?
16251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h. */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 $ac_includes_default
16260 #include <$ac_header>
16261 _ACEOF
16262 rm -f conftest.$ac_objext
16263 if { (ac_try="$ac_compile"
16264 case "(($ac_try" in
16265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16266 *) ac_try_echo=$ac_try;;
16267 esac
16268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16269 (eval "$ac_compile") 2>conftest.er1
16270 ac_status=$?
16271 grep -v '^ *+' conftest.er1 >conftest.err
16272 rm -f conftest.er1
16273 cat conftest.err >&5
16274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275 (exit $ac_status); } && {
16276 test -z "$ac_c_werror_flag" ||
16277 test ! -s conftest.err
16278 } && test -s conftest.$ac_objext; then
16279 ac_header_compiler=yes
16280 else
16281 echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16283
16284 ac_header_compiler=no
16285 fi
16286
16287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16289 echo "${ECHO_T}$ac_header_compiler" >&6; }
16290
16291 # Is the header present?
16292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16294 cat >conftest.$ac_ext <<_ACEOF
16295 /* confdefs.h. */
16296 _ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16300 #include <$ac_header>
16301 _ACEOF
16302 if { (ac_try="$ac_cpp conftest.$ac_ext"
16303 case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306 esac
16307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16309 ac_status=$?
16310 grep -v '^ *+' conftest.er1 >conftest.err
16311 rm -f conftest.er1
16312 cat conftest.err >&5
16313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16314 (exit $ac_status); } >/dev/null && {
16315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16316 test ! -s conftest.err
16317 }; then
16318 ac_header_preproc=yes
16319 else
16320 echo "$as_me: failed program was:" >&5
16321 sed 's/^/| /' conftest.$ac_ext >&5
16322
16323 ac_header_preproc=no
16324 fi
16325
16326 rm -f conftest.err conftest.$ac_ext
16327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16328 echo "${ECHO_T}$ac_header_preproc" >&6; }
16329
16330 # So? What about this header?
16331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16332 yes:no: )
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16337 ac_header_preproc=yes
16338 ;;
16339 no:yes:* )
16340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16352
16353 ;;
16354 esac
16355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360 eval "$as_ac_Header=\$ac_header_preproc"
16361 fi
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363 { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16365
16366 fi
16367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16368 cat >>confdefs.h <<_ACEOF
16369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16370 _ACEOF
16371
16372 fi
16373
16374 done
16375
16376
16377
16378
16379
16380
16381 for ac_header in $ac_header_list
16382 do
16383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16385 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16389 fi
16390 ac_res=`eval echo '${'$as_ac_Header'}'`
16391 { echo "$as_me:$LINENO: result: $ac_res" >&5
16392 echo "${ECHO_T}$ac_res" >&6; }
16393 else
16394 # Is the header compilable?
16395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16397 cat >conftest.$ac_ext <<_ACEOF
16398 /* confdefs.h. */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 $ac_includes_default
16404 #include <$ac_header>
16405 _ACEOF
16406 rm -f conftest.$ac_objext
16407 if { (ac_try="$ac_compile"
16408 case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16411 esac
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_compile") 2>conftest.er1
16414 ac_status=$?
16415 grep -v '^ *+' conftest.er1 >conftest.err
16416 rm -f conftest.er1
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } && {
16420 test -z "$ac_c_werror_flag" ||
16421 test ! -s conftest.err
16422 } && test -s conftest.$ac_objext; then
16423 ac_header_compiler=yes
16424 else
16425 echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.$ac_ext >&5
16427
16428 ac_header_compiler=no
16429 fi
16430
16431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16432 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16433 echo "${ECHO_T}$ac_header_compiler" >&6; }
16434
16435 # Is the header present?
16436 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16438 cat >conftest.$ac_ext <<_ACEOF
16439 /* confdefs.h. */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 #include <$ac_header>
16445 _ACEOF
16446 if { (ac_try="$ac_cpp conftest.$ac_ext"
16447 case "(($ac_try" in
16448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16449 *) ac_try_echo=$ac_try;;
16450 esac
16451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16452 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16453 ac_status=$?
16454 grep -v '^ *+' conftest.er1 >conftest.err
16455 rm -f conftest.er1
16456 cat conftest.err >&5
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); } >/dev/null && {
16459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16460 test ! -s conftest.err
16461 }; then
16462 ac_header_preproc=yes
16463 else
16464 echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16466
16467 ac_header_preproc=no
16468 fi
16469
16470 rm -f conftest.err conftest.$ac_ext
16471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16472 echo "${ECHO_T}$ac_header_preproc" >&6; }
16473
16474 # So? What about this header?
16475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16476 yes:no: )
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16481 ac_header_preproc=yes
16482 ;;
16483 no:yes:* )
16484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16496
16497 ;;
16498 esac
16499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 else
16504 eval "$as_ac_Header=\$ac_header_preproc"
16505 fi
16506 ac_res=`eval echo '${'$as_ac_Header'}'`
16507 { echo "$as_me:$LINENO: result: $ac_res" >&5
16508 echo "${ECHO_T}$ac_res" >&6; }
16509
16510 fi
16511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16512 cat >>confdefs.h <<_ACEOF
16513 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16514 _ACEOF
16515
16516 fi
16517
16518 done
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528 for ac_func in $ac_func_list
16529 do
16530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16531 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16533 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16534 echo $ECHO_N "(cached) $ECHO_C" >&6
16535 else
16536 cat >conftest.$ac_ext <<_ACEOF
16537 /* confdefs.h. */
16538 _ACEOF
16539 cat confdefs.h >>conftest.$ac_ext
16540 cat >>conftest.$ac_ext <<_ACEOF
16541 /* end confdefs.h. */
16542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16544 #define $ac_func innocuous_$ac_func
16545
16546 /* System header to define __stub macros and hopefully few prototypes,
16547 which can conflict with char $ac_func (); below.
16548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16549 <limits.h> exists even on freestanding compilers. */
16550
16551 #ifdef __STDC__
16552 # include <limits.h>
16553 #else
16554 # include <assert.h>
16555 #endif
16556
16557 #undef $ac_func
16558
16559 /* Override any GCC internal prototype to avoid an error.
16560 Use char because int might match the return type of a GCC
16561 builtin and then its argument prototype would still apply. */
16562 #ifdef __cplusplus
16563 extern "C"
16564 #endif
16565 char $ac_func ();
16566 /* The GNU C library defines this for functions which it implements
16567 to always fail with ENOSYS. Some functions are actually named
16568 something starting with __ and the normal name is an alias. */
16569 #if defined __stub_$ac_func || defined __stub___$ac_func
16570 choke me
16571 #endif
16572
16573 int
16574 main ()
16575 {
16576 return $ac_func ();
16577 ;
16578 return 0;
16579 }
16580 _ACEOF
16581 rm -f conftest.$ac_objext conftest$ac_exeext
16582 if { (ac_try="$ac_link"
16583 case "(($ac_try" in
16584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16585 *) ac_try_echo=$ac_try;;
16586 esac
16587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16588 (eval "$ac_link") 2>conftest.er1
16589 ac_status=$?
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } && {
16595 test -z "$ac_c_werror_flag" ||
16596 test ! -s conftest.err
16597 } && test -s conftest$ac_exeext &&
16598 $as_test_x conftest$ac_exeext; then
16599 eval "$as_ac_var=yes"
16600 else
16601 echo "$as_me: failed program was:" >&5
16602 sed 's/^/| /' conftest.$ac_ext >&5
16603
16604 eval "$as_ac_var=no"
16605 fi
16606
16607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16608 conftest$ac_exeext conftest.$ac_ext
16609 fi
16610 ac_res=`eval echo '${'$as_ac_var'}'`
16611 { echo "$as_me:$LINENO: result: $ac_res" >&5
16612 echo "${ECHO_T}$ac_res" >&6; }
16613 if test `eval echo '${'$as_ac_var'}'` = yes; then
16614 cat >>confdefs.h <<_ACEOF
16615 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16616 _ACEOF
16617
16618 fi
16619 done
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637 { echo "$as_me:$LINENO: checking for working mktime" >&5
16638 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16639 if test "${ac_cv_func_working_mktime+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642 if test "$cross_compiling" = yes; then
16643 ac_cv_func_working_mktime=no
16644 else
16645 cat >conftest.$ac_ext <<_ACEOF
16646 /* confdefs.h. */
16647 _ACEOF
16648 cat confdefs.h >>conftest.$ac_ext
16649 cat >>conftest.$ac_ext <<_ACEOF
16650 /* end confdefs.h. */
16651 /* Test program from Paul Eggert and Tony Leneis. */
16652 #ifdef TIME_WITH_SYS_TIME
16653 # include <sys/time.h>
16654 # include <time.h>
16655 #else
16656 # ifdef HAVE_SYS_TIME_H
16657 # include <sys/time.h>
16658 # else
16659 # include <time.h>
16660 # endif
16661 #endif
16662
16663 #include <stdlib.h>
16664
16665 #ifdef HAVE_UNISTD_H
16666 # include <unistd.h>
16667 #endif
16668
16669 #ifndef HAVE_ALARM
16670 # define alarm(X) /* empty */
16671 #endif
16672
16673 /* Work around redefinition to rpl_putenv by other config tests. */
16674 #undef putenv
16675
16676 static time_t time_t_max;
16677 static time_t time_t_min;
16678
16679 /* Values we'll use to set the TZ environment variable. */
16680 static char *tz_strings[] = {
16681 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16682 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16683 };
16684 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16685
16686 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16687 Based on a problem report from Andreas Jaeger. */
16688 static int
16689 spring_forward_gap ()
16690 {
16691 /* glibc (up to about 1998-10-07) failed this test. */
16692 struct tm tm;
16693
16694 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16695 instead of "TZ=America/Vancouver" in order to detect the bug even
16696 on systems that don't support the Olson extension, or don't have the
16697 full zoneinfo tables installed. */
16698 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16699
16700 tm.tm_year = 98;
16701 tm.tm_mon = 3;
16702 tm.tm_mday = 5;
16703 tm.tm_hour = 2;
16704 tm.tm_min = 0;
16705 tm.tm_sec = 0;
16706 tm.tm_isdst = -1;
16707 return mktime (&tm) != (time_t) -1;
16708 }
16709
16710 static int
16711 mktime_test1 (now)
16712 time_t now;
16713 {
16714 struct tm *lt;
16715 return ! (lt = localtime (&now)) || mktime (lt) == now;
16716 }
16717
16718 static int
16719 mktime_test (now)
16720 time_t now;
16721 {
16722 return (mktime_test1 (now)
16723 && mktime_test1 ((time_t) (time_t_max - now))
16724 && mktime_test1 ((time_t) (time_t_min + now)));
16725 }
16726
16727 static int
16728 irix_6_4_bug ()
16729 {
16730 /* Based on code from Ariel Faigon. */
16731 struct tm tm;
16732 tm.tm_year = 96;
16733 tm.tm_mon = 3;
16734 tm.tm_mday = 0;
16735 tm.tm_hour = 0;
16736 tm.tm_min = 0;
16737 tm.tm_sec = 0;
16738 tm.tm_isdst = -1;
16739 mktime (&tm);
16740 return tm.tm_mon == 2 && tm.tm_mday == 31;
16741 }
16742
16743 static int
16744 bigtime_test (j)
16745 int j;
16746 {
16747 struct tm tm;
16748 time_t now;
16749 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16750 now = mktime (&tm);
16751 if (now != (time_t) -1)
16752 {
16753 struct tm *lt = localtime (&now);
16754 if (! (lt
16755 && lt->tm_year == tm.tm_year
16756 && lt->tm_mon == tm.tm_mon
16757 && lt->tm_mday == tm.tm_mday
16758 && lt->tm_hour == tm.tm_hour
16759 && lt->tm_min == tm.tm_min
16760 && lt->tm_sec == tm.tm_sec
16761 && lt->tm_yday == tm.tm_yday
16762 && lt->tm_wday == tm.tm_wday
16763 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16764 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16765 return 0;
16766 }
16767 return 1;
16768 }
16769
16770 static int
16771 year_2050_test ()
16772 {
16773 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16774 ignoring leap seconds. */
16775 unsigned long int answer = 2527315200UL;
16776
16777 struct tm tm;
16778 time_t t;
16779 tm.tm_year = 2050 - 1900;
16780 tm.tm_mon = 2 - 1;
16781 tm.tm_mday = 1;
16782 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16783 tm.tm_isdst = -1;
16784
16785 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16786 instead of "TZ=America/Vancouver" in order to detect the bug even
16787 on systems that don't support the Olson extension, or don't have the
16788 full zoneinfo tables installed. */
16789 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16790
16791 t = mktime (&tm);
16792
16793 /* Check that the result is either a failure, or close enough
16794 to the correct answer that we can assume the discrepancy is
16795 due to leap seconds. */
16796 return (t == (time_t) -1
16797 || (0 < t && answer - 120 <= t && t <= answer + 120));
16798 }
16799
16800 int
16801 main ()
16802 {
16803 time_t t, delta;
16804 int i, j;
16805
16806 /* This test makes some buggy mktime implementations loop.
16807 Give up after 60 seconds; a mktime slower than that
16808 isn't worth using anyway. */
16809 alarm (60);
16810
16811 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16812 continue;
16813 time_t_max--;
16814 if ((time_t) -1 < 0)
16815 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16816 continue;
16817 delta = time_t_max / 997; /* a suitable prime number */
16818 for (i = 0; i < N_STRINGS; i++)
16819 {
16820 if (tz_strings[i])
16821 putenv (tz_strings[i]);
16822
16823 for (t = 0; t <= time_t_max - delta; t += delta)
16824 if (! mktime_test (t))
16825 return 1;
16826 if (! (mktime_test ((time_t) 1)
16827 && mktime_test ((time_t) (60 * 60))
16828 && mktime_test ((time_t) (60 * 60 * 24))))
16829 return 1;
16830
16831 for (j = 1; 0 < j; j *= 2)
16832 if (! bigtime_test (j))
16833 return 1;
16834 if (! bigtime_test (j - 1))
16835 return 1;
16836 }
16837 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16838 }
16839 _ACEOF
16840 rm -f conftest$ac_exeext
16841 if { (ac_try="$ac_link"
16842 case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16845 esac
16846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_link") 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16851 { (case "(($ac_try" in
16852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16853 *) ac_try_echo=$ac_try;;
16854 esac
16855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16856 (eval "$ac_try") 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; }; then
16860 ac_cv_func_working_mktime=yes
16861 else
16862 echo "$as_me: program exited with status $ac_status" >&5
16863 echo "$as_me: failed program was:" >&5
16864 sed 's/^/| /' conftest.$ac_ext >&5
16865
16866 ( exit $ac_status )
16867 ac_cv_func_working_mktime=no
16868 fi
16869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16870 fi
16871
16872
16873 fi
16874 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16875 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16876 if test $ac_cv_func_working_mktime = no; then
16877 case " $LIBOBJS " in
16878 *" mktime.$ac_objext "* ) ;;
16879 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16880 ;;
16881 esac
16882
16883 fi
16884
16885 if test "$ac_cv_func_working_mktime" = no; then
16886
16887 cat >>confdefs.h <<\_ACEOF
16888 #define BROKEN_MKTIME 1
16889 _ACEOF
16890
16891 fi
16892
16893 ac_have_func=no # yes means we've found a way to get the load average.
16894
16895 # Make sure getloadavg.c is where it belongs, at configure-time.
16896 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16897 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16898 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16899 { (exit 1); exit 1; }; }
16900
16901 ac_save_LIBS=$LIBS
16902
16903 # Check for getloadavg, but be sure not to touch the cache variable.
16904 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16905 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16906 if test "${ac_cv_func_getloadavg+set}" = set; then
16907 echo $ECHO_N "(cached) $ECHO_C" >&6
16908 else
16909 cat >conftest.$ac_ext <<_ACEOF
16910 /* confdefs.h. */
16911 _ACEOF
16912 cat confdefs.h >>conftest.$ac_ext
16913 cat >>conftest.$ac_ext <<_ACEOF
16914 /* end confdefs.h. */
16915 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16917 #define getloadavg innocuous_getloadavg
16918
16919 /* System header to define __stub macros and hopefully few prototypes,
16920 which can conflict with char getloadavg (); below.
16921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16922 <limits.h> exists even on freestanding compilers. */
16923
16924 #ifdef __STDC__
16925 # include <limits.h>
16926 #else
16927 # include <assert.h>
16928 #endif
16929
16930 #undef getloadavg
16931
16932 /* Override any GCC internal prototype to avoid an error.
16933 Use char because int might match the return type of a GCC
16934 builtin and then its argument prototype would still apply. */
16935 #ifdef __cplusplus
16936 extern "C"
16937 #endif
16938 char getloadavg ();
16939 /* The GNU C library defines this for functions which it implements
16940 to always fail with ENOSYS. Some functions are actually named
16941 something starting with __ and the normal name is an alias. */
16942 #if defined __stub_getloadavg || defined __stub___getloadavg
16943 choke me
16944 #endif
16945
16946 int
16947 main ()
16948 {
16949 return getloadavg ();
16950 ;
16951 return 0;
16952 }
16953 _ACEOF
16954 rm -f conftest.$ac_objext conftest$ac_exeext
16955 if { (ac_try="$ac_link"
16956 case "(($ac_try" in
16957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16958 *) ac_try_echo=$ac_try;;
16959 esac
16960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16961 (eval "$ac_link") 2>conftest.er1
16962 ac_status=$?
16963 grep -v '^ *+' conftest.er1 >conftest.err
16964 rm -f conftest.er1
16965 cat conftest.err >&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); } && {
16968 test -z "$ac_c_werror_flag" ||
16969 test ! -s conftest.err
16970 } && test -s conftest$ac_exeext &&
16971 $as_test_x conftest$ac_exeext; then
16972 ac_cv_func_getloadavg=yes
16973 else
16974 echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16976
16977 ac_cv_func_getloadavg=no
16978 fi
16979
16980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16981 conftest$ac_exeext conftest.$ac_ext
16982 fi
16983 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16984 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16985 if test $ac_cv_func_getloadavg = yes; then
16986 exit 0
16987 else
16988 exit 1
16989 fi
16990 ) && ac_have_func=yes
16991
16992 # On HPUX9, an unprivileged user can get load averages through this function.
16993
16994 for ac_func in pstat_getdynamic
16995 do
16996 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16997 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16998 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17000 echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002 cat >conftest.$ac_ext <<_ACEOF
17003 /* confdefs.h. */
17004 _ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17010 #define $ac_func innocuous_$ac_func
17011
17012 /* System header to define __stub macros and hopefully few prototypes,
17013 which can conflict with char $ac_func (); below.
17014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17015 <limits.h> exists even on freestanding compilers. */
17016
17017 #ifdef __STDC__
17018 # include <limits.h>
17019 #else
17020 # include <assert.h>
17021 #endif
17022
17023 #undef $ac_func
17024
17025 /* Override any GCC internal prototype to avoid an error.
17026 Use char because int might match the return type of a GCC
17027 builtin and then its argument prototype would still apply. */
17028 #ifdef __cplusplus
17029 extern "C"
17030 #endif
17031 char $ac_func ();
17032 /* The GNU C library defines this for functions which it implements
17033 to always fail with ENOSYS. Some functions are actually named
17034 something starting with __ and the normal name is an alias. */
17035 #if defined __stub_$ac_func || defined __stub___$ac_func
17036 choke me
17037 #endif
17038
17039 int
17040 main ()
17041 {
17042 return $ac_func ();
17043 ;
17044 return 0;
17045 }
17046 _ACEOF
17047 rm -f conftest.$ac_objext conftest$ac_exeext
17048 if { (ac_try="$ac_link"
17049 case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17052 esac
17053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_link") 2>conftest.er1
17055 ac_status=$?
17056 grep -v '^ *+' conftest.er1 >conftest.err
17057 rm -f conftest.er1
17058 cat conftest.err >&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); } && {
17061 test -z "$ac_c_werror_flag" ||
17062 test ! -s conftest.err
17063 } && test -s conftest$ac_exeext &&
17064 $as_test_x conftest$ac_exeext; then
17065 eval "$as_ac_var=yes"
17066 else
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17069
17070 eval "$as_ac_var=no"
17071 fi
17072
17073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17074 conftest$ac_exeext conftest.$ac_ext
17075 fi
17076 ac_res=`eval echo '${'$as_ac_var'}'`
17077 { echo "$as_me:$LINENO: result: $ac_res" >&5
17078 echo "${ECHO_T}$ac_res" >&6; }
17079 if test `eval echo '${'$as_ac_var'}'` = yes; then
17080 cat >>confdefs.h <<_ACEOF
17081 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17082 _ACEOF
17083
17084 fi
17085 done
17086
17087
17088 # Solaris has libkstat which does not require root.
17089
17090 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17091 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17092 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17093 echo $ECHO_N "(cached) $ECHO_C" >&6
17094 else
17095 ac_check_lib_save_LIBS=$LIBS
17096 LIBS="-lkstat $LIBS"
17097 cat >conftest.$ac_ext <<_ACEOF
17098 /* confdefs.h. */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103
17104 /* Override any GCC internal prototype to avoid an error.
17105 Use char because int might match the return type of a GCC
17106 builtin and then its argument prototype would still apply. */
17107 #ifdef __cplusplus
17108 extern "C"
17109 #endif
17110 char kstat_open ();
17111 int
17112 main ()
17113 {
17114 return kstat_open ();
17115 ;
17116 return 0;
17117 }
17118 _ACEOF
17119 rm -f conftest.$ac_objext conftest$ac_exeext
17120 if { (ac_try="$ac_link"
17121 case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17124 esac
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_link") 2>conftest.er1
17127 ac_status=$?
17128 grep -v '^ *+' conftest.er1 >conftest.err
17129 rm -f conftest.er1
17130 cat conftest.err >&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } && {
17133 test -z "$ac_c_werror_flag" ||
17134 test ! -s conftest.err
17135 } && test -s conftest$ac_exeext &&
17136 $as_test_x conftest$ac_exeext; then
17137 ac_cv_lib_kstat_kstat_open=yes
17138 else
17139 echo "$as_me: failed program was:" >&5
17140 sed 's/^/| /' conftest.$ac_ext >&5
17141
17142 ac_cv_lib_kstat_kstat_open=no
17143 fi
17144
17145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17146 conftest$ac_exeext conftest.$ac_ext
17147 LIBS=$ac_check_lib_save_LIBS
17148 fi
17149 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17150 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17151 if test $ac_cv_lib_kstat_kstat_open = yes; then
17152 cat >>confdefs.h <<_ACEOF
17153 #define HAVE_LIBKSTAT 1
17154 _ACEOF
17155
17156 LIBS="-lkstat $LIBS"
17157
17158 fi
17159
17160 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17161
17162 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17163 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17164 # to get the right answer into the cache.
17165 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17166 if test $ac_have_func = no; then
17167 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17168 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17169 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 else
17172 ac_check_lib_save_LIBS=$LIBS
17173 LIBS="-lelf $LIBS"
17174 cat >conftest.$ac_ext <<_ACEOF
17175 /* confdefs.h. */
17176 _ACEOF
17177 cat confdefs.h >>conftest.$ac_ext
17178 cat >>conftest.$ac_ext <<_ACEOF
17179 /* end confdefs.h. */
17180
17181 /* Override any GCC internal prototype to avoid an error.
17182 Use char because int might match the return type of a GCC
17183 builtin and then its argument prototype would still apply. */
17184 #ifdef __cplusplus
17185 extern "C"
17186 #endif
17187 char elf_begin ();
17188 int
17189 main ()
17190 {
17191 return elf_begin ();
17192 ;
17193 return 0;
17194 }
17195 _ACEOF
17196 rm -f conftest.$ac_objext conftest$ac_exeext
17197 if { (ac_try="$ac_link"
17198 case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17201 esac
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_link") 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } && {
17210 test -z "$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 } && test -s conftest$ac_exeext &&
17213 $as_test_x conftest$ac_exeext; then
17214 ac_cv_lib_elf_elf_begin=yes
17215 else
17216 echo "$as_me: failed program was:" >&5
17217 sed 's/^/| /' conftest.$ac_ext >&5
17218
17219 ac_cv_lib_elf_elf_begin=no
17220 fi
17221
17222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17223 conftest$ac_exeext conftest.$ac_ext
17224 LIBS=$ac_check_lib_save_LIBS
17225 fi
17226 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17227 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17228 if test $ac_cv_lib_elf_elf_begin = yes; then
17229 LIBS="-lelf $LIBS"
17230 fi
17231
17232 fi
17233 if test $ac_have_func = no; then
17234 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17235 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17236 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 else
17239 ac_check_lib_save_LIBS=$LIBS
17240 LIBS="-lkvm $LIBS"
17241 cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h. */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247
17248 /* Override any GCC internal prototype to avoid an error.
17249 Use char because int might match the return type of a GCC
17250 builtin and then its argument prototype would still apply. */
17251 #ifdef __cplusplus
17252 extern "C"
17253 #endif
17254 char kvm_open ();
17255 int
17256 main ()
17257 {
17258 return kvm_open ();
17259 ;
17260 return 0;
17261 }
17262 _ACEOF
17263 rm -f conftest.$ac_objext conftest$ac_exeext
17264 if { (ac_try="$ac_link"
17265 case "(($ac_try" in
17266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17267 *) ac_try_echo=$ac_try;;
17268 esac
17269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17270 (eval "$ac_link") 2>conftest.er1
17271 ac_status=$?
17272 grep -v '^ *+' conftest.er1 >conftest.err
17273 rm -f conftest.er1
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } && {
17277 test -z "$ac_c_werror_flag" ||
17278 test ! -s conftest.err
17279 } && test -s conftest$ac_exeext &&
17280 $as_test_x conftest$ac_exeext; then
17281 ac_cv_lib_kvm_kvm_open=yes
17282 else
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17285
17286 ac_cv_lib_kvm_kvm_open=no
17287 fi
17288
17289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17290 conftest$ac_exeext conftest.$ac_ext
17291 LIBS=$ac_check_lib_save_LIBS
17292 fi
17293 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17294 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17295 if test $ac_cv_lib_kvm_kvm_open = yes; then
17296 LIBS="-lkvm $LIBS"
17297 fi
17298
17299 # Check for the 4.4BSD definition of getloadavg.
17300 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17301 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17302 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17304 else
17305 ac_check_lib_save_LIBS=$LIBS
17306 LIBS="-lutil $LIBS"
17307 cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h. */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313
17314 /* Override any GCC internal prototype to avoid an error.
17315 Use char because int might match the return type of a GCC
17316 builtin and then its argument prototype would still apply. */
17317 #ifdef __cplusplus
17318 extern "C"
17319 #endif
17320 char getloadavg ();
17321 int
17322 main ()
17323 {
17324 return getloadavg ();
17325 ;
17326 return 0;
17327 }
17328 _ACEOF
17329 rm -f conftest.$ac_objext conftest$ac_exeext
17330 if { (ac_try="$ac_link"
17331 case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_link") 2>conftest.er1
17337 ac_status=$?
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } && {
17343 test -z "$ac_c_werror_flag" ||
17344 test ! -s conftest.err
17345 } && test -s conftest$ac_exeext &&
17346 $as_test_x conftest$ac_exeext; then
17347 ac_cv_lib_util_getloadavg=yes
17348 else
17349 echo "$as_me: failed program was:" >&5
17350 sed 's/^/| /' conftest.$ac_ext >&5
17351
17352 ac_cv_lib_util_getloadavg=no
17353 fi
17354
17355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17356 conftest$ac_exeext conftest.$ac_ext
17357 LIBS=$ac_check_lib_save_LIBS
17358 fi
17359 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17360 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17361 if test $ac_cv_lib_util_getloadavg = yes; then
17362 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17363 fi
17364
17365 fi
17366
17367 if test $ac_have_func = no; then
17368 # There is a commonly available library for RS/6000 AIX.
17369 # Since it is not a standard part of AIX, it might be installed locally.
17370 ac_getloadavg_LIBS=$LIBS
17371 LIBS="-L/usr/local/lib $LIBS"
17372 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17373 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17374 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17377 ac_check_lib_save_LIBS=$LIBS
17378 LIBS="-lgetloadavg $LIBS"
17379 cat >conftest.$ac_ext <<_ACEOF
17380 /* confdefs.h. */
17381 _ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h. */
17385
17386 /* Override any GCC internal prototype to avoid an error.
17387 Use char because int might match the return type of a GCC
17388 builtin and then its argument prototype would still apply. */
17389 #ifdef __cplusplus
17390 extern "C"
17391 #endif
17392 char getloadavg ();
17393 int
17394 main ()
17395 {
17396 return getloadavg ();
17397 ;
17398 return 0;
17399 }
17400 _ACEOF
17401 rm -f conftest.$ac_objext conftest$ac_exeext
17402 if { (ac_try="$ac_link"
17403 case "(($ac_try" in
17404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405 *) ac_try_echo=$ac_try;;
17406 esac
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408 (eval "$ac_link") 2>conftest.er1
17409 ac_status=$?
17410 grep -v '^ *+' conftest.er1 >conftest.err
17411 rm -f conftest.er1
17412 cat conftest.err >&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } && {
17415 test -z "$ac_c_werror_flag" ||
17416 test ! -s conftest.err
17417 } && test -s conftest$ac_exeext &&
17418 $as_test_x conftest$ac_exeext; then
17419 ac_cv_lib_getloadavg_getloadavg=yes
17420 else
17421 echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17423
17424 ac_cv_lib_getloadavg_getloadavg=no
17425 fi
17426
17427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17428 conftest$ac_exeext conftest.$ac_ext
17429 LIBS=$ac_check_lib_save_LIBS
17430 fi
17431 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17432 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17433 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17434 LIBS="-lgetloadavg $LIBS"
17435 else
17436 LIBS=$ac_getloadavg_LIBS
17437 fi
17438
17439 fi
17440
17441 # Make sure it is really in the library, if we think we found it,
17442 # otherwise set up the replacement function.
17443
17444 for ac_func in getloadavg
17445 do
17446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17451 else
17452 cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h. */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17460 #define $ac_func innocuous_$ac_func
17461
17462 /* System header to define __stub macros and hopefully few prototypes,
17463 which can conflict with char $ac_func (); below.
17464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17465 <limits.h> exists even on freestanding compilers. */
17466
17467 #ifdef __STDC__
17468 # include <limits.h>
17469 #else
17470 # include <assert.h>
17471 #endif
17472
17473 #undef $ac_func
17474
17475 /* Override any GCC internal prototype to avoid an error.
17476 Use char because int might match the return type of a GCC
17477 builtin and then its argument prototype would still apply. */
17478 #ifdef __cplusplus
17479 extern "C"
17480 #endif
17481 char $ac_func ();
17482 /* The GNU C library defines this for functions which it implements
17483 to always fail with ENOSYS. Some functions are actually named
17484 something starting with __ and the normal name is an alias. */
17485 #if defined __stub_$ac_func || defined __stub___$ac_func
17486 choke me
17487 #endif
17488
17489 int
17490 main ()
17491 {
17492 return $ac_func ();
17493 ;
17494 return 0;
17495 }
17496 _ACEOF
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (ac_try="$ac_link"
17499 case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_link") 2>conftest.er1
17505 ac_status=$?
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } && {
17511 test -z "$ac_c_werror_flag" ||
17512 test ! -s conftest.err
17513 } && test -s conftest$ac_exeext &&
17514 $as_test_x conftest$ac_exeext; then
17515 eval "$as_ac_var=yes"
17516 else
17517 echo "$as_me: failed program was:" >&5
17518 sed 's/^/| /' conftest.$ac_ext >&5
17519
17520 eval "$as_ac_var=no"
17521 fi
17522
17523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17524 conftest$ac_exeext conftest.$ac_ext
17525 fi
17526 ac_res=`eval echo '${'$as_ac_var'}'`
17527 { echo "$as_me:$LINENO: result: $ac_res" >&5
17528 echo "${ECHO_T}$ac_res" >&6; }
17529 if test `eval echo '${'$as_ac_var'}'` = yes; then
17530 cat >>confdefs.h <<_ACEOF
17531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17532 _ACEOF
17533
17534 else
17535 case " $LIBOBJS " in
17536 *" getloadavg.$ac_objext "* ) ;;
17537 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17538 ;;
17539 esac
17540
17541
17542 cat >>confdefs.h <<\_ACEOF
17543 #define C_GETLOADAVG 1
17544 _ACEOF
17545
17546 # Figure out what our getloadavg.c needs.
17547 ac_have_func=no
17548 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17549 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17550 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17551 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17552 echo $ECHO_N "(cached) $ECHO_C" >&6
17553 fi
17554 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17555 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17556 else
17557 # Is the header compilable?
17558 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17559 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17560 cat >conftest.$ac_ext <<_ACEOF
17561 /* confdefs.h. */
17562 _ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 $ac_includes_default
17567 #include <sys/dg_sys_info.h>
17568 _ACEOF
17569 rm -f conftest.$ac_objext
17570 if { (ac_try="$ac_compile"
17571 case "(($ac_try" in
17572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17573 *) ac_try_echo=$ac_try;;
17574 esac
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_compile") 2>conftest.er1
17577 ac_status=$?
17578 grep -v '^ *+' conftest.er1 >conftest.err
17579 rm -f conftest.er1
17580 cat conftest.err >&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } && {
17583 test -z "$ac_c_werror_flag" ||
17584 test ! -s conftest.err
17585 } && test -s conftest.$ac_objext; then
17586 ac_header_compiler=yes
17587 else
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17590
17591 ac_header_compiler=no
17592 fi
17593
17594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17596 echo "${ECHO_T}$ac_header_compiler" >&6; }
17597
17598 # Is the header present?
17599 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17600 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17601 cat >conftest.$ac_ext <<_ACEOF
17602 /* confdefs.h. */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h. */
17607 #include <sys/dg_sys_info.h>
17608 _ACEOF
17609 if { (ac_try="$ac_cpp conftest.$ac_ext"
17610 case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17613 esac
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17616 ac_status=$?
17617 grep -v '^ *+' conftest.er1 >conftest.err
17618 rm -f conftest.er1
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621 (exit $ac_status); } >/dev/null && {
17622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17623 test ! -s conftest.err
17624 }; then
17625 ac_header_preproc=yes
17626 else
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17629
17630 ac_header_preproc=no
17631 fi
17632
17633 rm -f conftest.err conftest.$ac_ext
17634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17635 echo "${ECHO_T}$ac_header_preproc" >&6; }
17636
17637 # So? What about this header?
17638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17639 yes:no: )
17640 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17641 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17642 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17643 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17644 ac_header_preproc=yes
17645 ;;
17646 no:yes:* )
17647 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17648 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17649 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17650 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17651 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17652 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17653 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17654 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17655 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17656 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17657 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17658 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17659
17660 ;;
17661 esac
17662 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17663 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17664 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17668 fi
17669 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17670 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17671
17672 fi
17673 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17674 ac_have_func=yes
17675
17676 cat >>confdefs.h <<\_ACEOF
17677 #define DGUX 1
17678 _ACEOF
17679
17680
17681 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17682 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17683 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17684 echo $ECHO_N "(cached) $ECHO_C" >&6
17685 else
17686 ac_check_lib_save_LIBS=$LIBS
17687 LIBS="-ldgc $LIBS"
17688 cat >conftest.$ac_ext <<_ACEOF
17689 /* confdefs.h. */
17690 _ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h. */
17694
17695 /* Override any GCC internal prototype to avoid an error.
17696 Use char because int might match the return type of a GCC
17697 builtin and then its argument prototype would still apply. */
17698 #ifdef __cplusplus
17699 extern "C"
17700 #endif
17701 char dg_sys_info ();
17702 int
17703 main ()
17704 {
17705 return dg_sys_info ();
17706 ;
17707 return 0;
17708 }
17709 _ACEOF
17710 rm -f conftest.$ac_objext conftest$ac_exeext
17711 if { (ac_try="$ac_link"
17712 case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17715 esac
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_link") 2>conftest.er1
17718 ac_status=$?
17719 grep -v '^ *+' conftest.er1 >conftest.err
17720 rm -f conftest.er1
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } && {
17724 test -z "$ac_c_werror_flag" ||
17725 test ! -s conftest.err
17726 } && test -s conftest$ac_exeext &&
17727 $as_test_x conftest$ac_exeext; then
17728 ac_cv_lib_dgc_dg_sys_info=yes
17729 else
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733 ac_cv_lib_dgc_dg_sys_info=no
17734 fi
17735
17736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17737 conftest$ac_exeext conftest.$ac_ext
17738 LIBS=$ac_check_lib_save_LIBS
17739 fi
17740 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17741 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17742 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17743 cat >>confdefs.h <<_ACEOF
17744 #define HAVE_LIBDGC 1
17745 _ACEOF
17746
17747 LIBS="-ldgc $LIBS"
17748
17749 fi
17750
17751 fi
17752
17753
17754
17755 if test "${ac_cv_header_locale_h+set}" = set; then
17756 { echo "$as_me:$LINENO: checking for locale.h" >&5
17757 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17758 if test "${ac_cv_header_locale_h+set}" = set; then
17759 echo $ECHO_N "(cached) $ECHO_C" >&6
17760 fi
17761 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17762 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17763 else
17764 # Is the header compilable?
17765 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17766 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17767 cat >conftest.$ac_ext <<_ACEOF
17768 /* confdefs.h. */
17769 _ACEOF
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h. */
17773 $ac_includes_default
17774 #include <locale.h>
17775 _ACEOF
17776 rm -f conftest.$ac_objext
17777 if { (ac_try="$ac_compile"
17778 case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17781 esac
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_compile") 2>conftest.er1
17784 ac_status=$?
17785 grep -v '^ *+' conftest.er1 >conftest.err
17786 rm -f conftest.er1
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } && {
17790 test -z "$ac_c_werror_flag" ||
17791 test ! -s conftest.err
17792 } && test -s conftest.$ac_objext; then
17793 ac_header_compiler=yes
17794 else
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17797
17798 ac_header_compiler=no
17799 fi
17800
17801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17803 echo "${ECHO_T}$ac_header_compiler" >&6; }
17804
17805 # Is the header present?
17806 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17807 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17808 cat >conftest.$ac_ext <<_ACEOF
17809 /* confdefs.h. */
17810 _ACEOF
17811 cat confdefs.h >>conftest.$ac_ext
17812 cat >>conftest.$ac_ext <<_ACEOF
17813 /* end confdefs.h. */
17814 #include <locale.h>
17815 _ACEOF
17816 if { (ac_try="$ac_cpp conftest.$ac_ext"
17817 case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17820 esac
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } >/dev/null && {
17829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17830 test ! -s conftest.err
17831 }; then
17832 ac_header_preproc=yes
17833 else
17834 echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17836
17837 ac_header_preproc=no
17838 fi
17839
17840 rm -f conftest.err conftest.$ac_ext
17841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17842 echo "${ECHO_T}$ac_header_preproc" >&6; }
17843
17844 # So? What about this header?
17845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17846 yes:no: )
17847 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17848 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17849 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17850 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17851 ac_header_preproc=yes
17852 ;;
17853 no:yes:* )
17854 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17855 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17856 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17857 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17858 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17859 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17860 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17861 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17862 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17863 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17864 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17865 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17866
17867 ;;
17868 esac
17869 { echo "$as_me:$LINENO: checking for locale.h" >&5
17870 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17871 if test "${ac_cv_header_locale_h+set}" = set; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
17873 else
17874 ac_cv_header_locale_h=$ac_header_preproc
17875 fi
17876 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17877 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17878
17879 fi
17880
17881
17882
17883 for ac_func in setlocale
17884 do
17885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17886 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17890 else
17891 cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h. */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17899 #define $ac_func innocuous_$ac_func
17900
17901 /* System header to define __stub macros and hopefully few prototypes,
17902 which can conflict with char $ac_func (); below.
17903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17904 <limits.h> exists even on freestanding compilers. */
17905
17906 #ifdef __STDC__
17907 # include <limits.h>
17908 #else
17909 # include <assert.h>
17910 #endif
17911
17912 #undef $ac_func
17913
17914 /* Override any GCC internal prototype to avoid an error.
17915 Use char because int might match the return type of a GCC
17916 builtin and then its argument prototype would still apply. */
17917 #ifdef __cplusplus
17918 extern "C"
17919 #endif
17920 char $ac_func ();
17921 /* The GNU C library defines this for functions which it implements
17922 to always fail with ENOSYS. Some functions are actually named
17923 something starting with __ and the normal name is an alias. */
17924 #if defined __stub_$ac_func || defined __stub___$ac_func
17925 choke me
17926 #endif
17927
17928 int
17929 main ()
17930 {
17931 return $ac_func ();
17932 ;
17933 return 0;
17934 }
17935 _ACEOF
17936 rm -f conftest.$ac_objext conftest$ac_exeext
17937 if { (ac_try="$ac_link"
17938 case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17941 esac
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_link") 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } && {
17950 test -z "$ac_c_werror_flag" ||
17951 test ! -s conftest.err
17952 } && test -s conftest$ac_exeext &&
17953 $as_test_x conftest$ac_exeext; then
17954 eval "$as_ac_var=yes"
17955 else
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17958
17959 eval "$as_ac_var=no"
17960 fi
17961
17962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17963 conftest$ac_exeext conftest.$ac_ext
17964 fi
17965 ac_res=`eval echo '${'$as_ac_var'}'`
17966 { echo "$as_me:$LINENO: result: $ac_res" >&5
17967 echo "${ECHO_T}$ac_res" >&6; }
17968 if test `eval echo '${'$as_ac_var'}'` = yes; then
17969 cat >>confdefs.h <<_ACEOF
17970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17971 _ACEOF
17972
17973 fi
17974 done
17975
17976
17977 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17978 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17979 # Irix 4.0.5F has the header but not the library.
17980 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17981 ac_have_func=yes
17982
17983 cat >>confdefs.h <<\_ACEOF
17984 #define SVR4 1
17985 _ACEOF
17986
17987 fi
17988
17989 if test $ac_have_func = no; then
17990 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17991 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17992 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17993 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17994 echo $ECHO_N "(cached) $ECHO_C" >&6
17995 fi
17996 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17997 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17998 else
17999 # Is the header compilable?
18000 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18001 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18002 cat >conftest.$ac_ext <<_ACEOF
18003 /* confdefs.h. */
18004 _ACEOF
18005 cat confdefs.h >>conftest.$ac_ext
18006 cat >>conftest.$ac_ext <<_ACEOF
18007 /* end confdefs.h. */
18008 $ac_includes_default
18009 #include <inq_stats/cpustats.h>
18010 _ACEOF
18011 rm -f conftest.$ac_objext
18012 if { (ac_try="$ac_compile"
18013 case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18016 esac
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_compile") 2>conftest.er1
18019 ac_status=$?
18020 grep -v '^ *+' conftest.er1 >conftest.err
18021 rm -f conftest.er1
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } && {
18025 test -z "$ac_c_werror_flag" ||
18026 test ! -s conftest.err
18027 } && test -s conftest.$ac_objext; then
18028 ac_header_compiler=yes
18029 else
18030 echo "$as_me: failed program was:" >&5
18031 sed 's/^/| /' conftest.$ac_ext >&5
18032
18033 ac_header_compiler=no
18034 fi
18035
18036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18037 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18038 echo "${ECHO_T}$ac_header_compiler" >&6; }
18039
18040 # Is the header present?
18041 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18042 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
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 #include <inq_stats/cpustats.h>
18050 _ACEOF
18051 if { (ac_try="$ac_cpp conftest.$ac_ext"
18052 case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18055 esac
18056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18058 ac_status=$?
18059 grep -v '^ *+' conftest.er1 >conftest.err
18060 rm -f conftest.er1
18061 cat conftest.err >&5
18062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063 (exit $ac_status); } >/dev/null && {
18064 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18065 test ! -s conftest.err
18066 }; then
18067 ac_header_preproc=yes
18068 else
18069 echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18071
18072 ac_header_preproc=no
18073 fi
18074
18075 rm -f conftest.err conftest.$ac_ext
18076 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18077 echo "${ECHO_T}$ac_header_preproc" >&6; }
18078
18079 # So? What about this header?
18080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18081 yes:no: )
18082 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18083 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18084 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18085 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18086 ac_header_preproc=yes
18087 ;;
18088 no:yes:* )
18089 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18090 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18091 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18092 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18093 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18094 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18095 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18096 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18097 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18098 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18099 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18100 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18101
18102 ;;
18103 esac
18104 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18105 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18106 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18110 fi
18111 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18112 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18113
18114 fi
18115 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18116 ac_have_func=yes
18117
18118 cat >>confdefs.h <<\_ACEOF
18119 #define UMAX 1
18120 _ACEOF
18121
18122
18123 cat >>confdefs.h <<\_ACEOF
18124 #define UMAX4_3 1
18125 _ACEOF
18126
18127 fi
18128
18129
18130 fi
18131
18132 if test $ac_have_func = no; then
18133 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18134 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18135 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18136 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18138 fi
18139 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18140 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18141 else
18142 # Is the header compilable?
18143 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18144 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18145 cat >conftest.$ac_ext <<_ACEOF
18146 /* confdefs.h. */
18147 _ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18151 $ac_includes_default
18152 #include <sys/cpustats.h>
18153 _ACEOF
18154 rm -f conftest.$ac_objext
18155 if { (ac_try="$ac_compile"
18156 case "(($ac_try" in
18157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18158 *) ac_try_echo=$ac_try;;
18159 esac
18160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18161 (eval "$ac_compile") 2>conftest.er1
18162 ac_status=$?
18163 grep -v '^ *+' conftest.er1 >conftest.err
18164 rm -f conftest.er1
18165 cat conftest.err >&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } && {
18168 test -z "$ac_c_werror_flag" ||
18169 test ! -s conftest.err
18170 } && test -s conftest.$ac_objext; then
18171 ac_header_compiler=yes
18172 else
18173 echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18175
18176 ac_header_compiler=no
18177 fi
18178
18179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18181 echo "${ECHO_T}$ac_header_compiler" >&6; }
18182
18183 # Is the header present?
18184 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18185 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18186 cat >conftest.$ac_ext <<_ACEOF
18187 /* confdefs.h. */
18188 _ACEOF
18189 cat confdefs.h >>conftest.$ac_ext
18190 cat >>conftest.$ac_ext <<_ACEOF
18191 /* end confdefs.h. */
18192 #include <sys/cpustats.h>
18193 _ACEOF
18194 if { (ac_try="$ac_cpp conftest.$ac_ext"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18198 esac
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18201 ac_status=$?
18202 grep -v '^ *+' conftest.er1 >conftest.err
18203 rm -f conftest.er1
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); } >/dev/null && {
18207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18208 test ! -s conftest.err
18209 }; then
18210 ac_header_preproc=yes
18211 else
18212 echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215 ac_header_preproc=no
18216 fi
18217
18218 rm -f conftest.err conftest.$ac_ext
18219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18220 echo "${ECHO_T}$ac_header_preproc" >&6; }
18221
18222 # So? What about this header?
18223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18224 yes:no: )
18225 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18226 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18228 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18229 ac_header_preproc=yes
18230 ;;
18231 no:yes:* )
18232 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18233 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18234 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18235 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18236 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18237 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18238 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18239 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18240 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18241 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18242 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18243 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18244
18245 ;;
18246 esac
18247 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18248 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18249 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18250 echo $ECHO_N "(cached) $ECHO_C" >&6
18251 else
18252 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18253 fi
18254 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18255 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18256
18257 fi
18258 if test $ac_cv_header_sys_cpustats_h = yes; then
18259 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18260 #define UMAX 1
18261 _ACEOF
18262
18263 fi
18264
18265
18266 fi
18267
18268 if test $ac_have_func = no; then
18269
18270 for ac_header in mach/mach.h
18271 do
18272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18277 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 fi
18279 ac_res=`eval echo '${'$as_ac_Header'}'`
18280 { echo "$as_me:$LINENO: result: $ac_res" >&5
18281 echo "${ECHO_T}$ac_res" >&6; }
18282 else
18283 # Is the header compilable?
18284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18286 cat >conftest.$ac_ext <<_ACEOF
18287 /* confdefs.h. */
18288 _ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h. */
18292 $ac_includes_default
18293 #include <$ac_header>
18294 _ACEOF
18295 rm -f conftest.$ac_objext
18296 if { (ac_try="$ac_compile"
18297 case "(($ac_try" in
18298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18299 *) ac_try_echo=$ac_try;;
18300 esac
18301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18302 (eval "$ac_compile") 2>conftest.er1
18303 ac_status=$?
18304 grep -v '^ *+' conftest.er1 >conftest.err
18305 rm -f conftest.er1
18306 cat conftest.err >&5
18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308 (exit $ac_status); } && {
18309 test -z "$ac_c_werror_flag" ||
18310 test ! -s conftest.err
18311 } && test -s conftest.$ac_objext; then
18312 ac_header_compiler=yes
18313 else
18314 echo "$as_me: failed program was:" >&5
18315 sed 's/^/| /' conftest.$ac_ext >&5
18316
18317 ac_header_compiler=no
18318 fi
18319
18320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18322 echo "${ECHO_T}$ac_header_compiler" >&6; }
18323
18324 # Is the header present?
18325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18327 cat >conftest.$ac_ext <<_ACEOF
18328 /* confdefs.h. */
18329 _ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18333 #include <$ac_header>
18334 _ACEOF
18335 if { (ac_try="$ac_cpp conftest.$ac_ext"
18336 case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18339 esac
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18342 ac_status=$?
18343 grep -v '^ *+' conftest.er1 >conftest.err
18344 rm -f conftest.er1
18345 cat conftest.err >&5
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); } >/dev/null && {
18348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18349 test ! -s conftest.err
18350 }; then
18351 ac_header_preproc=yes
18352 else
18353 echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18355
18356 ac_header_preproc=no
18357 fi
18358
18359 rm -f conftest.err conftest.$ac_ext
18360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18361 echo "${ECHO_T}$ac_header_preproc" >&6; }
18362
18363 # So? What about this header?
18364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18365 yes:no: )
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18370 ac_header_preproc=yes
18371 ;;
18372 no:yes:* )
18373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18376 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18380 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18385
18386 ;;
18387 esac
18388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
18392 else
18393 eval "$as_ac_Header=\$ac_header_preproc"
18394 fi
18395 ac_res=`eval echo '${'$as_ac_Header'}'`
18396 { echo "$as_me:$LINENO: result: $ac_res" >&5
18397 echo "${ECHO_T}$ac_res" >&6; }
18398
18399 fi
18400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18401 cat >>confdefs.h <<_ACEOF
18402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18403 _ACEOF
18404
18405 fi
18406
18407 done
18408
18409 fi
18410
18411
18412 for ac_header in nlist.h
18413 do
18414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18415 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18419 echo $ECHO_N "(cached) $ECHO_C" >&6
18420 fi
18421 ac_res=`eval echo '${'$as_ac_Header'}'`
18422 { echo "$as_me:$LINENO: result: $ac_res" >&5
18423 echo "${ECHO_T}$ac_res" >&6; }
18424 else
18425 # Is the header compilable?
18426 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18428 cat >conftest.$ac_ext <<_ACEOF
18429 /* confdefs.h. */
18430 _ACEOF
18431 cat confdefs.h >>conftest.$ac_ext
18432 cat >>conftest.$ac_ext <<_ACEOF
18433 /* end confdefs.h. */
18434 $ac_includes_default
18435 #include <$ac_header>
18436 _ACEOF
18437 rm -f conftest.$ac_objext
18438 if { (ac_try="$ac_compile"
18439 case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18442 esac
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_compile") 2>conftest.er1
18445 ac_status=$?
18446 grep -v '^ *+' conftest.er1 >conftest.err
18447 rm -f conftest.er1
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } && {
18451 test -z "$ac_c_werror_flag" ||
18452 test ! -s conftest.err
18453 } && test -s conftest.$ac_objext; then
18454 ac_header_compiler=yes
18455 else
18456 echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18458
18459 ac_header_compiler=no
18460 fi
18461
18462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18464 echo "${ECHO_T}$ac_header_compiler" >&6; }
18465
18466 # Is the header present?
18467 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18468 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18469 cat >conftest.$ac_ext <<_ACEOF
18470 /* confdefs.h. */
18471 _ACEOF
18472 cat confdefs.h >>conftest.$ac_ext
18473 cat >>conftest.$ac_ext <<_ACEOF
18474 /* end confdefs.h. */
18475 #include <$ac_header>
18476 _ACEOF
18477 if { (ac_try="$ac_cpp conftest.$ac_ext"
18478 case "(($ac_try" in
18479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18480 *) ac_try_echo=$ac_try;;
18481 esac
18482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18484 ac_status=$?
18485 grep -v '^ *+' conftest.er1 >conftest.err
18486 rm -f conftest.er1
18487 cat conftest.err >&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } >/dev/null && {
18490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18491 test ! -s conftest.err
18492 }; then
18493 ac_header_preproc=yes
18494 else
18495 echo "$as_me: failed program was:" >&5
18496 sed 's/^/| /' conftest.$ac_ext >&5
18497
18498 ac_header_preproc=no
18499 fi
18500
18501 rm -f conftest.err conftest.$ac_ext
18502 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18503 echo "${ECHO_T}$ac_header_preproc" >&6; }
18504
18505 # So? What about this header?
18506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18507 yes:no: )
18508 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18512 ac_header_preproc=yes
18513 ;;
18514 no:yes:* )
18515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18519 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18521 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18522 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18525 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18527
18528 ;;
18529 esac
18530 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18533 echo $ECHO_N "(cached) $ECHO_C" >&6
18534 else
18535 eval "$as_ac_Header=\$ac_header_preproc"
18536 fi
18537 ac_res=`eval echo '${'$as_ac_Header'}'`
18538 { echo "$as_me:$LINENO: result: $ac_res" >&5
18539 echo "${ECHO_T}$ac_res" >&6; }
18540
18541 fi
18542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18543 cat >>confdefs.h <<_ACEOF
18544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18545 _ACEOF
18546 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18547 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18548 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18549 echo $ECHO_N "(cached) $ECHO_C" >&6
18550 else
18551 cat >conftest.$ac_ext <<_ACEOF
18552 /* confdefs.h. */
18553 _ACEOF
18554 cat confdefs.h >>conftest.$ac_ext
18555 cat >>conftest.$ac_ext <<_ACEOF
18556 /* end confdefs.h. */
18557 #include <nlist.h>
18558
18559 int
18560 main ()
18561 {
18562 static struct nlist ac_aggr;
18563 if (ac_aggr.n_un.n_name)
18564 return 0;
18565 ;
18566 return 0;
18567 }
18568 _ACEOF
18569 rm -f conftest.$ac_objext
18570 if { (ac_try="$ac_compile"
18571 case "(($ac_try" in
18572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573 *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_compile") 2>conftest.er1
18577 ac_status=$?
18578 grep -v '^ *+' conftest.er1 >conftest.err
18579 rm -f conftest.er1
18580 cat conftest.err >&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } && {
18583 test -z "$ac_c_werror_flag" ||
18584 test ! -s conftest.err
18585 } && test -s conftest.$ac_objext; then
18586 ac_cv_member_struct_nlist_n_un_n_name=yes
18587 else
18588 echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18590
18591 cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h. */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h. */
18597 #include <nlist.h>
18598
18599 int
18600 main ()
18601 {
18602 static struct nlist ac_aggr;
18603 if (sizeof ac_aggr.n_un.n_name)
18604 return 0;
18605 ;
18606 return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext
18610 if { (ac_try="$ac_compile"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_compile") 2>conftest.er1
18617 ac_status=$?
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } && {
18623 test -z "$ac_c_werror_flag" ||
18624 test ! -s conftest.err
18625 } && test -s conftest.$ac_objext; then
18626 ac_cv_member_struct_nlist_n_un_n_name=yes
18627 else
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18630
18631 ac_cv_member_struct_nlist_n_un_n_name=no
18632 fi
18633
18634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635 fi
18636
18637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18638 fi
18639 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18640 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18641 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18642
18643 cat >>confdefs.h <<_ACEOF
18644 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18645 _ACEOF
18646
18647
18648 cat >>confdefs.h <<\_ACEOF
18649 #define NLIST_NAME_UNION 1
18650 _ACEOF
18651
18652 fi
18653
18654
18655 fi
18656
18657 done
18658
18659 fi
18660 done
18661
18662
18663 # Some definitions of getloadavg require that the program be installed setgid.
18664 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18665 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18666 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18667 echo $ECHO_N "(cached) $ECHO_C" >&6
18668 else
18669 cat >conftest.$ac_ext <<_ACEOF
18670 /* confdefs.h. */
18671 _ACEOF
18672 cat confdefs.h >>conftest.$ac_ext
18673 cat >>conftest.$ac_ext <<_ACEOF
18674 /* end confdefs.h. */
18675 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18676 #ifdef LDAV_PRIVILEGED
18677 Yowza Am I SETGID yet
18678 #endif
18679 _ACEOF
18680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18681 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18682 ac_cv_func_getloadavg_setgid=yes
18683 else
18684 ac_cv_func_getloadavg_setgid=no
18685 fi
18686 rm -f conftest*
18687
18688 fi
18689 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18690 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18691 if test $ac_cv_func_getloadavg_setgid = yes; then
18692 NEED_SETGID=true
18693
18694 cat >>confdefs.h <<\_ACEOF
18695 #define GETLOADAVG_PRIVILEGED 1
18696 _ACEOF
18697
18698 else
18699 NEED_SETGID=false
18700 fi
18701
18702 if test $ac_cv_func_getloadavg_setgid = yes; then
18703 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18704 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18705 if test "${ac_cv_group_kmem+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18707 else
18708 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18709 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18710 # If we got an error (system does not support symlinks), try without -L.
18711 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18712 ac_cv_group_kmem=`echo $ac_ls_output \
18713 | sed -ne 's/[ ][ ]*/ /g;
18714 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18715 / /s/.* //;p;'`
18716
18717 fi
18718 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18719 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18720 KMEM_GROUP=$ac_cv_group_kmem
18721 fi
18722 if test "x$ac_save_LIBS" = x; then
18723 GETLOADAVG_LIBS=$LIBS
18724 else
18725 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18726 fi
18727 LIBS=$ac_save_LIBS
18728
18729
18730
18731 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18732 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18733 if test "${ac_cv_sys_largefile_source+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 else
18736 while :; do
18737 cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h. */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743 #include <stdio.h>
18744 int
18745 main ()
18746 {
18747 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18748 ;
18749 return 0;
18750 }
18751 _ACEOF
18752 rm -f conftest.$ac_objext conftest$ac_exeext
18753 if { (ac_try="$ac_link"
18754 case "(($ac_try" in
18755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18756 *) ac_try_echo=$ac_try;;
18757 esac
18758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18759 (eval "$ac_link") 2>conftest.er1
18760 ac_status=$?
18761 grep -v '^ *+' conftest.er1 >conftest.err
18762 rm -f conftest.er1
18763 cat conftest.err >&5
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); } && {
18766 test -z "$ac_c_werror_flag" ||
18767 test ! -s conftest.err
18768 } && test -s conftest$ac_exeext &&
18769 $as_test_x conftest$ac_exeext; then
18770 ac_cv_sys_largefile_source=no; break
18771 else
18772 echo "$as_me: failed program was:" >&5
18773 sed 's/^/| /' conftest.$ac_ext >&5
18774
18775
18776 fi
18777
18778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18779 conftest$ac_exeext conftest.$ac_ext
18780 cat >conftest.$ac_ext <<_ACEOF
18781 /* confdefs.h. */
18782 _ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18786 #define _LARGEFILE_SOURCE 1
18787 #include <stdio.h>
18788 int
18789 main ()
18790 {
18791 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18792 ;
18793 return 0;
18794 }
18795 _ACEOF
18796 rm -f conftest.$ac_objext conftest$ac_exeext
18797 if { (ac_try="$ac_link"
18798 case "(($ac_try" in
18799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18800 *) ac_try_echo=$ac_try;;
18801 esac
18802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18803 (eval "$ac_link") 2>conftest.er1
18804 ac_status=$?
18805 grep -v '^ *+' conftest.er1 >conftest.err
18806 rm -f conftest.er1
18807 cat conftest.err >&5
18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809 (exit $ac_status); } && {
18810 test -z "$ac_c_werror_flag" ||
18811 test ! -s conftest.err
18812 } && test -s conftest$ac_exeext &&
18813 $as_test_x conftest$ac_exeext; then
18814 ac_cv_sys_largefile_source=1; break
18815 else
18816 echo "$as_me: failed program was:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18818
18819
18820 fi
18821
18822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18823 conftest$ac_exeext conftest.$ac_ext
18824 ac_cv_sys_largefile_source=unknown
18825 break
18826 done
18827 fi
18828 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18829 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18830 case $ac_cv_sys_largefile_source in #(
18831 no | unknown) ;;
18832 *)
18833 cat >>confdefs.h <<_ACEOF
18834 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18835 _ACEOF
18836 ;;
18837 esac
18838 rm -f conftest*
18839
18840 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18841 # in glibc 2.1.3, but that breaks too many other things.
18842 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18843 if test $ac_cv_sys_largefile_source != unknown; then
18844
18845 cat >>confdefs.h <<\_ACEOF
18846 #define HAVE_FSEEKO 1
18847 _ACEOF
18848
18849 fi
18850
18851
18852 # Configure getopt.
18853 # getopt.m4 serial 10
18854
18855 # The getopt module assume you want GNU getopt, with getopt_long etc,
18856 # rather than vanilla POSIX getopt. This means your your code should
18857 # always include <getopt.h> for the getopt prototypes.
18858
18859
18860
18861
18862
18863
18864
18865
18866
18867
18868
18869 # Prerequisites of lib/getopt*.
18870
18871
18872
18873
18874 GETOPT_H=
18875
18876 for ac_header in getopt.h
18877 do
18878 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18883 echo $ECHO_N "(cached) $ECHO_C" >&6
18884 fi
18885 ac_res=`eval echo '${'$as_ac_Header'}'`
18886 { echo "$as_me:$LINENO: result: $ac_res" >&5
18887 echo "${ECHO_T}$ac_res" >&6; }
18888 else
18889 # Is the header compilable?
18890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18892 cat >conftest.$ac_ext <<_ACEOF
18893 /* confdefs.h. */
18894 _ACEOF
18895 cat confdefs.h >>conftest.$ac_ext
18896 cat >>conftest.$ac_ext <<_ACEOF
18897 /* end confdefs.h. */
18898 $ac_includes_default
18899 #include <$ac_header>
18900 _ACEOF
18901 rm -f conftest.$ac_objext
18902 if { (ac_try="$ac_compile"
18903 case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18906 esac
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_compile") 2>conftest.er1
18909 ac_status=$?
18910 grep -v '^ *+' conftest.er1 >conftest.err
18911 rm -f conftest.er1
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); } && {
18915 test -z "$ac_c_werror_flag" ||
18916 test ! -s conftest.err
18917 } && test -s conftest.$ac_objext; then
18918 ac_header_compiler=yes
18919 else
18920 echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18922
18923 ac_header_compiler=no
18924 fi
18925
18926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18928 echo "${ECHO_T}$ac_header_compiler" >&6; }
18929
18930 # Is the header present?
18931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18933 cat >conftest.$ac_ext <<_ACEOF
18934 /* confdefs.h. */
18935 _ACEOF
18936 cat confdefs.h >>conftest.$ac_ext
18937 cat >>conftest.$ac_ext <<_ACEOF
18938 /* end confdefs.h. */
18939 #include <$ac_header>
18940 _ACEOF
18941 if { (ac_try="$ac_cpp conftest.$ac_ext"
18942 case "(($ac_try" in
18943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18944 *) ac_try_echo=$ac_try;;
18945 esac
18946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18948 ac_status=$?
18949 grep -v '^ *+' conftest.er1 >conftest.err
18950 rm -f conftest.er1
18951 cat conftest.err >&5
18952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953 (exit $ac_status); } >/dev/null && {
18954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18955 test ! -s conftest.err
18956 }; then
18957 ac_header_preproc=yes
18958 else
18959 echo "$as_me: failed program was:" >&5
18960 sed 's/^/| /' conftest.$ac_ext >&5
18961
18962 ac_header_preproc=no
18963 fi
18964
18965 rm -f conftest.err conftest.$ac_ext
18966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18967 echo "${ECHO_T}$ac_header_preproc" >&6; }
18968
18969 # So? What about this header?
18970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18971 yes:no: )
18972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18976 ac_header_preproc=yes
18977 ;;
18978 no:yes:* )
18979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18991
18992 ;;
18993 esac
18994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18997 echo $ECHO_N "(cached) $ECHO_C" >&6
18998 else
18999 eval "$as_ac_Header=\$ac_header_preproc"
19000 fi
19001 ac_res=`eval echo '${'$as_ac_Header'}'`
19002 { echo "$as_me:$LINENO: result: $ac_res" >&5
19003 echo "${ECHO_T}$ac_res" >&6; }
19004
19005 fi
19006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19007 cat >>confdefs.h <<_ACEOF
19008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19009 _ACEOF
19010
19011 else
19012 GETOPT_H=getopt.h
19013 fi
19014
19015 done
19016
19017 if test -z "$GETOPT_H"; then
19018
19019 for ac_func in getopt_long_only
19020 do
19021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19025 echo $ECHO_N "(cached) $ECHO_C" >&6
19026 else
19027 cat >conftest.$ac_ext <<_ACEOF
19028 /* confdefs.h. */
19029 _ACEOF
19030 cat confdefs.h >>conftest.$ac_ext
19031 cat >>conftest.$ac_ext <<_ACEOF
19032 /* end confdefs.h. */
19033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19035 #define $ac_func innocuous_$ac_func
19036
19037 /* System header to define __stub macros and hopefully few prototypes,
19038 which can conflict with char $ac_func (); below.
19039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19040 <limits.h> exists even on freestanding compilers. */
19041
19042 #ifdef __STDC__
19043 # include <limits.h>
19044 #else
19045 # include <assert.h>
19046 #endif
19047
19048 #undef $ac_func
19049
19050 /* Override any GCC internal prototype to avoid an error.
19051 Use char because int might match the return type of a GCC
19052 builtin and then its argument prototype would still apply. */
19053 #ifdef __cplusplus
19054 extern "C"
19055 #endif
19056 char $ac_func ();
19057 /* The GNU C library defines this for functions which it implements
19058 to always fail with ENOSYS. Some functions are actually named
19059 something starting with __ and the normal name is an alias. */
19060 #if defined __stub_$ac_func || defined __stub___$ac_func
19061 choke me
19062 #endif
19063
19064 int
19065 main ()
19066 {
19067 return $ac_func ();
19068 ;
19069 return 0;
19070 }
19071 _ACEOF
19072 rm -f conftest.$ac_objext conftest$ac_exeext
19073 if { (ac_try="$ac_link"
19074 case "(($ac_try" in
19075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19076 *) ac_try_echo=$ac_try;;
19077 esac
19078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19079 (eval "$ac_link") 2>conftest.er1
19080 ac_status=$?
19081 grep -v '^ *+' conftest.er1 >conftest.err
19082 rm -f conftest.er1
19083 cat conftest.err >&5
19084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19085 (exit $ac_status); } && {
19086 test -z "$ac_c_werror_flag" ||
19087 test ! -s conftest.err
19088 } && test -s conftest$ac_exeext &&
19089 $as_test_x conftest$ac_exeext; then
19090 eval "$as_ac_var=yes"
19091 else
19092 echo "$as_me: failed program was:" >&5
19093 sed 's/^/| /' conftest.$ac_ext >&5
19094
19095 eval "$as_ac_var=no"
19096 fi
19097
19098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19099 conftest$ac_exeext conftest.$ac_ext
19100 fi
19101 ac_res=`eval echo '${'$as_ac_var'}'`
19102 { echo "$as_me:$LINENO: result: $ac_res" >&5
19103 echo "${ECHO_T}$ac_res" >&6; }
19104 if test `eval echo '${'$as_ac_var'}'` = yes; then
19105 cat >>confdefs.h <<_ACEOF
19106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19107 _ACEOF
19108
19109 else
19110 GETOPT_H=getopt.h
19111 fi
19112 done
19113
19114 fi
19115
19116 if test -z "$GETOPT_H"; then
19117 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19118 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19119 if test "${ac_cv_have_decl_optreset+set}" = set; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19121 else
19122 cat >conftest.$ac_ext <<_ACEOF
19123 /* confdefs.h. */
19124 _ACEOF
19125 cat confdefs.h >>conftest.$ac_ext
19126 cat >>conftest.$ac_ext <<_ACEOF
19127 /* end confdefs.h. */
19128 #include <getopt.h>
19129
19130 int
19131 main ()
19132 {
19133 #ifndef optreset
19134 (void) optreset;
19135 #endif
19136
19137 ;
19138 return 0;
19139 }
19140 _ACEOF
19141 rm -f conftest.$ac_objext
19142 if { (ac_try="$ac_compile"
19143 case "(($ac_try" in
19144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19145 *) ac_try_echo=$ac_try;;
19146 esac
19147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19148 (eval "$ac_compile") 2>conftest.er1
19149 ac_status=$?
19150 grep -v '^ *+' conftest.er1 >conftest.err
19151 rm -f conftest.er1
19152 cat conftest.err >&5
19153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } && {
19155 test -z "$ac_c_werror_flag" ||
19156 test ! -s conftest.err
19157 } && test -s conftest.$ac_objext; then
19158 ac_cv_have_decl_optreset=yes
19159 else
19160 echo "$as_me: failed program was:" >&5
19161 sed 's/^/| /' conftest.$ac_ext >&5
19162
19163 ac_cv_have_decl_optreset=no
19164 fi
19165
19166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167 fi
19168 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19169 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19170 if test $ac_cv_have_decl_optreset = yes; then
19171 GETOPT_H=getopt.h
19172 fi
19173
19174 fi
19175
19176 if test -z "$GETOPT_H"; then
19177 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19178 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19179 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19181 else
19182 if test "$cross_compiling" = yes; then
19183 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19184 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19185 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19187 else
19188 cat >conftest.$ac_ext <<_ACEOF
19189 /* confdefs.h. */
19190 _ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19194 #include <getopt.h>
19195
19196 int
19197 main ()
19198 {
19199 #ifndef getopt_clip
19200 (void) getopt_clip;
19201 #endif
19202
19203 ;
19204 return 0;
19205 }
19206 _ACEOF
19207 rm -f conftest.$ac_objext
19208 if { (ac_try="$ac_compile"
19209 case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19212 esac
19213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19214 (eval "$ac_compile") 2>conftest.er1
19215 ac_status=$?
19216 grep -v '^ *+' conftest.er1 >conftest.err
19217 rm -f conftest.er1
19218 cat conftest.err >&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); } && {
19221 test -z "$ac_c_werror_flag" ||
19222 test ! -s conftest.err
19223 } && test -s conftest.$ac_objext; then
19224 ac_cv_have_decl_getopt_clip=yes
19225 else
19226 echo "$as_me: failed program was:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19228
19229 ac_cv_have_decl_getopt_clip=no
19230 fi
19231
19232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 fi
19234 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19235 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19236 if test $ac_cv_have_decl_getopt_clip = yes; then
19237 gl_cv_func_gnu_getopt=no
19238 else
19239 gl_cv_func_gnu_getopt=yes
19240 fi
19241
19242 else
19243 cat >conftest.$ac_ext <<_ACEOF
19244 /* confdefs.h. */
19245 _ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h. */
19249 #include <getopt.h>
19250 int
19251 main ()
19252 {
19253
19254 char *myargv[3];
19255 myargv[0] = "conftest";
19256 myargv[1] = "-+";
19257 myargv[2] = 0;
19258 return getopt (2, myargv, "+a") != '?';
19259
19260 ;
19261 return 0;
19262 }
19263 _ACEOF
19264 rm -f conftest$ac_exeext
19265 if { (ac_try="$ac_link"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_link") 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19275 { (case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19278 esac
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_try") 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; }; then
19284 gl_cv_func_gnu_getopt=yes
19285 else
19286 echo "$as_me: program exited with status $ac_status" >&5
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19289
19290 ( exit $ac_status )
19291 gl_cv_func_gnu_getopt=no
19292 fi
19293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19294 fi
19295
19296
19297 fi
19298 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19299 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19300 if test "$gl_cv_func_gnu_getopt" = "no"; then
19301 GETOPT_H=getopt.h
19302 fi
19303 fi
19304
19305
19306
19307 if test -n "$GETOPT_H"; then
19308
19309
19310 GETOPT_H=getopt.h
19311
19312 cat >>confdefs.h <<\_ACEOF
19313 #define __GETOPT_PREFIX rpl_
19314 _ACEOF
19315
19316
19317
19318 :
19319 GETOPTOBJS='getopt.o getopt1.o'
19320
19321 fi
19322
19323
19324
19325
19326 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19327 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19328 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19330 else
19331 # Use it with a single arg.
19332 cat >conftest.$ac_ext <<_ACEOF
19333 /* confdefs.h. */
19334 _ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19338 $ac_includes_default
19339 int
19340 main ()
19341 {
19342 getpgrp (0);
19343 ;
19344 return 0;
19345 }
19346 _ACEOF
19347 rm -f conftest.$ac_objext
19348 if { (ac_try="$ac_compile"
19349 case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19352 esac
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_compile") 2>conftest.er1
19355 ac_status=$?
19356 grep -v '^ *+' conftest.er1 >conftest.err
19357 rm -f conftest.er1
19358 cat conftest.err >&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); } && {
19361 test -z "$ac_c_werror_flag" ||
19362 test ! -s conftest.err
19363 } && test -s conftest.$ac_objext; then
19364 ac_cv_func_getpgrp_void=no
19365 else
19366 echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19368
19369 ac_cv_func_getpgrp_void=yes
19370 fi
19371
19372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19373
19374 fi
19375 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19376 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19377 if test $ac_cv_func_getpgrp_void = yes; then
19378
19379 cat >>confdefs.h <<\_ACEOF
19380 #define GETPGRP_VOID 1
19381 _ACEOF
19382
19383 fi
19384
19385
19386
19387 for ac_func in strftime
19388 do
19389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19393 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 else
19395 cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h. */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19403 #define $ac_func innocuous_$ac_func
19404
19405 /* System header to define __stub macros and hopefully few prototypes,
19406 which can conflict with char $ac_func (); below.
19407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19408 <limits.h> exists even on freestanding compilers. */
19409
19410 #ifdef __STDC__
19411 # include <limits.h>
19412 #else
19413 # include <assert.h>
19414 #endif
19415
19416 #undef $ac_func
19417
19418 /* Override any GCC internal prototype to avoid an error.
19419 Use char because int might match the return type of a GCC
19420 builtin and then its argument prototype would still apply. */
19421 #ifdef __cplusplus
19422 extern "C"
19423 #endif
19424 char $ac_func ();
19425 /* The GNU C library defines this for functions which it implements
19426 to always fail with ENOSYS. Some functions are actually named
19427 something starting with __ and the normal name is an alias. */
19428 #if defined __stub_$ac_func || defined __stub___$ac_func
19429 choke me
19430 #endif
19431
19432 int
19433 main ()
19434 {
19435 return $ac_func ();
19436 ;
19437 return 0;
19438 }
19439 _ACEOF
19440 rm -f conftest.$ac_objext conftest$ac_exeext
19441 if { (ac_try="$ac_link"
19442 case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_link") 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } && {
19454 test -z "$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19456 } && test -s conftest$ac_exeext &&
19457 $as_test_x conftest$ac_exeext; then
19458 eval "$as_ac_var=yes"
19459 else
19460 echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19462
19463 eval "$as_ac_var=no"
19464 fi
19465
19466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19467 conftest$ac_exeext conftest.$ac_ext
19468 fi
19469 ac_res=`eval echo '${'$as_ac_var'}'`
19470 { echo "$as_me:$LINENO: result: $ac_res" >&5
19471 echo "${ECHO_T}$ac_res" >&6; }
19472 if test `eval echo '${'$as_ac_var'}'` = yes; then
19473 cat >>confdefs.h <<_ACEOF
19474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19475 _ACEOF
19476
19477 else
19478 # strftime is in -lintl on SCO UNIX.
19479 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19480 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19481 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19482 echo $ECHO_N "(cached) $ECHO_C" >&6
19483 else
19484 ac_check_lib_save_LIBS=$LIBS
19485 LIBS="-lintl $LIBS"
19486 cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h. */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19492
19493 /* Override any GCC internal prototype to avoid an error.
19494 Use char because int might match the return type of a GCC
19495 builtin and then its argument prototype would still apply. */
19496 #ifdef __cplusplus
19497 extern "C"
19498 #endif
19499 char strftime ();
19500 int
19501 main ()
19502 {
19503 return strftime ();
19504 ;
19505 return 0;
19506 }
19507 _ACEOF
19508 rm -f conftest.$ac_objext conftest$ac_exeext
19509 if { (ac_try="$ac_link"
19510 case "(($ac_try" in
19511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512 *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515 (eval "$ac_link") 2>conftest.er1
19516 ac_status=$?
19517 grep -v '^ *+' conftest.er1 >conftest.err
19518 rm -f conftest.er1
19519 cat conftest.err >&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); } && {
19522 test -z "$ac_c_werror_flag" ||
19523 test ! -s conftest.err
19524 } && test -s conftest$ac_exeext &&
19525 $as_test_x conftest$ac_exeext; then
19526 ac_cv_lib_intl_strftime=yes
19527 else
19528 echo "$as_me: failed program was:" >&5
19529 sed 's/^/| /' conftest.$ac_ext >&5
19530
19531 ac_cv_lib_intl_strftime=no
19532 fi
19533
19534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19535 conftest$ac_exeext conftest.$ac_ext
19536 LIBS=$ac_check_lib_save_LIBS
19537 fi
19538 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19539 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19540 if test $ac_cv_lib_intl_strftime = yes; then
19541 cat >>confdefs.h <<\_ACEOF
19542 #define HAVE_STRFTIME 1
19543 _ACEOF
19544
19545 LIBS="-lintl $LIBS"
19546 fi
19547
19548 fi
19549 done
19550
19551
19552 # UNIX98 PTYs.
19553
19554 for ac_func in grantpt
19555 do
19556 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19557 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19559 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19560 echo $ECHO_N "(cached) $ECHO_C" >&6
19561 else
19562 cat >conftest.$ac_ext <<_ACEOF
19563 /* confdefs.h. */
19564 _ACEOF
19565 cat confdefs.h >>conftest.$ac_ext
19566 cat >>conftest.$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19570 #define $ac_func innocuous_$ac_func
19571
19572 /* System header to define __stub macros and hopefully few prototypes,
19573 which can conflict with char $ac_func (); below.
19574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19575 <limits.h> exists even on freestanding compilers. */
19576
19577 #ifdef __STDC__
19578 # include <limits.h>
19579 #else
19580 # include <assert.h>
19581 #endif
19582
19583 #undef $ac_func
19584
19585 /* Override any GCC internal prototype to avoid an error.
19586 Use char because int might match the return type of a GCC
19587 builtin and then its argument prototype would still apply. */
19588 #ifdef __cplusplus
19589 extern "C"
19590 #endif
19591 char $ac_func ();
19592 /* The GNU C library defines this for functions which it implements
19593 to always fail with ENOSYS. Some functions are actually named
19594 something starting with __ and the normal name is an alias. */
19595 #if defined __stub_$ac_func || defined __stub___$ac_func
19596 choke me
19597 #endif
19598
19599 int
19600 main ()
19601 {
19602 return $ac_func ();
19603 ;
19604 return 0;
19605 }
19606 _ACEOF
19607 rm -f conftest.$ac_objext conftest$ac_exeext
19608 if { (ac_try="$ac_link"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_link") 2>conftest.er1
19615 ac_status=$?
19616 grep -v '^ *+' conftest.er1 >conftest.err
19617 rm -f conftest.er1
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } && {
19621 test -z "$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19623 } && test -s conftest$ac_exeext &&
19624 $as_test_x conftest$ac_exeext; then
19625 eval "$as_ac_var=yes"
19626 else
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630 eval "$as_ac_var=no"
19631 fi
19632
19633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19634 conftest$ac_exeext conftest.$ac_ext
19635 fi
19636 ac_res=`eval echo '${'$as_ac_var'}'`
19637 { echo "$as_me:$LINENO: result: $ac_res" >&5
19638 echo "${ECHO_T}$ac_res" >&6; }
19639 if test `eval echo '${'$as_ac_var'}'` = yes; then
19640 cat >>confdefs.h <<_ACEOF
19641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19642 _ACEOF
19643
19644 fi
19645 done
19646
19647
19648 # PTY-related GNU extensions.
19649
19650 for ac_func in getpt
19651 do
19652 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19653 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19654 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658 cat >conftest.$ac_ext <<_ACEOF
19659 /* confdefs.h. */
19660 _ACEOF
19661 cat confdefs.h >>conftest.$ac_ext
19662 cat >>conftest.$ac_ext <<_ACEOF
19663 /* end confdefs.h. */
19664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19666 #define $ac_func innocuous_$ac_func
19667
19668 /* System header to define __stub macros and hopefully few prototypes,
19669 which can conflict with char $ac_func (); below.
19670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19671 <limits.h> exists even on freestanding compilers. */
19672
19673 #ifdef __STDC__
19674 # include <limits.h>
19675 #else
19676 # include <assert.h>
19677 #endif
19678
19679 #undef $ac_func
19680
19681 /* Override any GCC internal prototype to avoid an error.
19682 Use char because int might match the return type of a GCC
19683 builtin and then its argument prototype would still apply. */
19684 #ifdef __cplusplus
19685 extern "C"
19686 #endif
19687 char $ac_func ();
19688 /* The GNU C library defines this for functions which it implements
19689 to always fail with ENOSYS. Some functions are actually named
19690 something starting with __ and the normal name is an alias. */
19691 #if defined __stub_$ac_func || defined __stub___$ac_func
19692 choke me
19693 #endif
19694
19695 int
19696 main ()
19697 {
19698 return $ac_func ();
19699 ;
19700 return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (ac_try="$ac_link"
19705 case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_link") 2>conftest.er1
19711 ac_status=$?
19712 grep -v '^ *+' conftest.er1 >conftest.err
19713 rm -f conftest.er1
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } && {
19717 test -z "$ac_c_werror_flag" ||
19718 test ! -s conftest.err
19719 } && test -s conftest$ac_exeext &&
19720 $as_test_x conftest$ac_exeext; then
19721 eval "$as_ac_var=yes"
19722 else
19723 echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19725
19726 eval "$as_ac_var=no"
19727 fi
19728
19729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19730 conftest$ac_exeext conftest.$ac_ext
19731 fi
19732 ac_res=`eval echo '${'$as_ac_var'}'`
19733 { echo "$as_me:$LINENO: result: $ac_res" >&5
19734 echo "${ECHO_T}$ac_res" >&6; }
19735 if test `eval echo '${'$as_ac_var'}'` = yes; then
19736 cat >>confdefs.h <<_ACEOF
19737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19738 _ACEOF
19739
19740 fi
19741 done
19742
19743
19744 # Check this now, so that we will NOT find the above functions in ncurses.
19745 # That is because we have not set up to link ncurses in lib-src.
19746 # It's better to believe a function is not available
19747 # than to expect to find it in ncurses.
19748
19749 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19750 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19751 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19752 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 else
19754 ac_check_lib_save_LIBS=$LIBS
19755 LIBS="-lncurses $LIBS"
19756 cat >conftest.$ac_ext <<_ACEOF
19757 /* confdefs.h. */
19758 _ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19762
19763 /* Override any GCC internal prototype to avoid an error.
19764 Use char because int might match the return type of a GCC
19765 builtin and then its argument prototype would still apply. */
19766 #ifdef __cplusplus
19767 extern "C"
19768 #endif
19769 char tparm ();
19770 int
19771 main ()
19772 {
19773 return tparm ();
19774 ;
19775 return 0;
19776 }
19777 _ACEOF
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (ac_try="$ac_link"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19783 esac
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_link") 2>conftest.er1
19786 ac_status=$?
19787 grep -v '^ *+' conftest.er1 >conftest.err
19788 rm -f conftest.er1
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } && {
19792 test -z "$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 } && test -s conftest$ac_exeext &&
19795 $as_test_x conftest$ac_exeext; then
19796 ac_cv_lib_ncurses_tparm=yes
19797 else
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19800
19801 ac_cv_lib_ncurses_tparm=no
19802 fi
19803
19804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19805 conftest$ac_exeext conftest.$ac_ext
19806 LIBS=$ac_check_lib_save_LIBS
19807 fi
19808 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19809 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19810 if test $ac_cv_lib_ncurses_tparm = yes; then
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_LIBNCURSES 1
19813 _ACEOF
19814
19815 LIBS="-lncurses $LIBS"
19816
19817 fi
19818
19819
19820 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19821
19822 resolv=no
19823 cat >conftest.$ac_ext <<_ACEOF
19824 /* confdefs.h. */
19825 _ACEOF
19826 cat confdefs.h >>conftest.$ac_ext
19827 cat >>conftest.$ac_ext <<_ACEOF
19828 /* end confdefs.h. */
19829 #include <netinet/in.h>
19830 #include <arpa/nameser.h>
19831 #include <resolv.h>
19832 int
19833 main ()
19834 {
19835 return res_init();
19836 ;
19837 return 0;
19838 }
19839 _ACEOF
19840 rm -f conftest.$ac_objext conftest$ac_exeext
19841 if { (ac_try="$ac_link"
19842 case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19845 esac
19846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19847 (eval "$ac_link") 2>conftest.er1
19848 ac_status=$?
19849 grep -v '^ *+' conftest.er1 >conftest.err
19850 rm -f conftest.er1
19851 cat conftest.err >&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); } && {
19854 test -z "$ac_c_werror_flag" ||
19855 test ! -s conftest.err
19856 } && test -s conftest$ac_exeext &&
19857 $as_test_x conftest$ac_exeext; then
19858 have_res_init=yes
19859 else
19860 echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19862
19863 have_res_init=no
19864 fi
19865
19866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19867 conftest$ac_exeext conftest.$ac_ext
19868 if test "$have_res_init" = no; then
19869 OLIBS="$LIBS"
19870 LIBS="$LIBS -lresolv"
19871 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19872 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19873 cat >conftest.$ac_ext <<_ACEOF
19874 /* confdefs.h. */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19879 #include <netinet/in.h>
19880 #include <arpa/nameser.h>
19881 #include <resolv.h>
19882 int
19883 main ()
19884 {
19885 return res_init();
19886 ;
19887 return 0;
19888 }
19889 _ACEOF
19890 rm -f conftest.$ac_objext conftest$ac_exeext
19891 if { (ac_try="$ac_link"
19892 case "(($ac_try" in
19893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19894 *) ac_try_echo=$ac_try;;
19895 esac
19896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19897 (eval "$ac_link") 2>conftest.er1
19898 ac_status=$?
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
19902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } && {
19904 test -z "$ac_c_werror_flag" ||
19905 test ! -s conftest.err
19906 } && test -s conftest$ac_exeext &&
19907 $as_test_x conftest$ac_exeext; then
19908 have_res_init=yes
19909 else
19910 echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.$ac_ext >&5
19912
19913 have_res_init=no
19914 fi
19915
19916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19917 conftest$ac_exeext conftest.$ac_ext
19918 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19919 echo "${ECHO_T}$have_res_init" >&6; }
19920 if test "$have_res_init" = yes ; then
19921 resolv=yes
19922 fi
19923 LIBS="$OLIBS"
19924 fi
19925
19926 if test "$have_res_init" = yes; then
19927
19928 cat >>confdefs.h <<\_ACEOF
19929 #define HAVE_RES_INIT 1
19930 _ACEOF
19931
19932 fi
19933
19934 # Do we need the Hesiod library to provide the support routines?
19935 if test "$with_hesiod" != no ; then
19936 # Don't set $LIBS here -- see comments above.
19937 { echo "$as_me:$LINENO: checking for res_send" >&5
19938 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19939 if test "${ac_cv_func_res_send+set}" = set; then
19940 echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942 cat >conftest.$ac_ext <<_ACEOF
19943 /* confdefs.h. */
19944 _ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h. */
19948 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19950 #define res_send innocuous_res_send
19951
19952 /* System header to define __stub macros and hopefully few prototypes,
19953 which can conflict with char res_send (); below.
19954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19955 <limits.h> exists even on freestanding compilers. */
19956
19957 #ifdef __STDC__
19958 # include <limits.h>
19959 #else
19960 # include <assert.h>
19961 #endif
19962
19963 #undef res_send
19964
19965 /* Override any GCC internal prototype to avoid an error.
19966 Use char because int might match the return type of a GCC
19967 builtin and then its argument prototype would still apply. */
19968 #ifdef __cplusplus
19969 extern "C"
19970 #endif
19971 char res_send ();
19972 /* The GNU C library defines this for functions which it implements
19973 to always fail with ENOSYS. Some functions are actually named
19974 something starting with __ and the normal name is an alias. */
19975 #if defined __stub_res_send || defined __stub___res_send
19976 choke me
19977 #endif
19978
19979 int
19980 main ()
19981 {
19982 return res_send ();
19983 ;
19984 return 0;
19985 }
19986 _ACEOF
19987 rm -f conftest.$ac_objext conftest$ac_exeext
19988 if { (ac_try="$ac_link"
19989 case "(($ac_try" in
19990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991 *) ac_try_echo=$ac_try;;
19992 esac
19993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19994 (eval "$ac_link") 2>conftest.er1
19995 ac_status=$?
19996 grep -v '^ *+' conftest.er1 >conftest.err
19997 rm -f conftest.er1
19998 cat conftest.err >&5
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); } && {
20001 test -z "$ac_c_werror_flag" ||
20002 test ! -s conftest.err
20003 } && test -s conftest$ac_exeext &&
20004 $as_test_x conftest$ac_exeext; then
20005 ac_cv_func_res_send=yes
20006 else
20007 echo "$as_me: failed program was:" >&5
20008 sed 's/^/| /' conftest.$ac_ext >&5
20009
20010 ac_cv_func_res_send=no
20011 fi
20012
20013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20014 conftest$ac_exeext conftest.$ac_ext
20015 fi
20016 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20017 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20018 if test $ac_cv_func_res_send = yes; then
20019 :
20020 else
20021 { echo "$as_me:$LINENO: checking for __res_send" >&5
20022 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20023 if test "${ac_cv_func___res_send+set}" = set; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h. */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20034 #define __res_send innocuous___res_send
20035
20036 /* System header to define __stub macros and hopefully few prototypes,
20037 which can conflict with char __res_send (); below.
20038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20039 <limits.h> exists even on freestanding compilers. */
20040
20041 #ifdef __STDC__
20042 # include <limits.h>
20043 #else
20044 # include <assert.h>
20045 #endif
20046
20047 #undef __res_send
20048
20049 /* Override any GCC internal prototype to avoid an error.
20050 Use char because int might match the return type of a GCC
20051 builtin and then its argument prototype would still apply. */
20052 #ifdef __cplusplus
20053 extern "C"
20054 #endif
20055 char __res_send ();
20056 /* The GNU C library defines this for functions which it implements
20057 to always fail with ENOSYS. Some functions are actually named
20058 something starting with __ and the normal name is an alias. */
20059 #if defined __stub___res_send || defined __stub_____res_send
20060 choke me
20061 #endif
20062
20063 int
20064 main ()
20065 {
20066 return __res_send ();
20067 ;
20068 return 0;
20069 }
20070 _ACEOF
20071 rm -f conftest.$ac_objext conftest$ac_exeext
20072 if { (ac_try="$ac_link"
20073 case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20076 esac
20077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_link") 2>conftest.er1
20079 ac_status=$?
20080 grep -v '^ *+' conftest.er1 >conftest.err
20081 rm -f conftest.er1
20082 cat conftest.err >&5
20083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084 (exit $ac_status); } && {
20085 test -z "$ac_c_werror_flag" ||
20086 test ! -s conftest.err
20087 } && test -s conftest$ac_exeext &&
20088 $as_test_x conftest$ac_exeext; then
20089 ac_cv_func___res_send=yes
20090 else
20091 echo "$as_me: failed program was:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20093
20094 ac_cv_func___res_send=no
20095 fi
20096
20097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20098 conftest$ac_exeext conftest.$ac_ext
20099 fi
20100 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20101 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20102 if test $ac_cv_func___res_send = yes; then
20103 :
20104 else
20105 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20106 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20107 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20109 else
20110 ac_check_lib_save_LIBS=$LIBS
20111 LIBS="-lresolv $LIBS"
20112 cat >conftest.$ac_ext <<_ACEOF
20113 /* confdefs.h. */
20114 _ACEOF
20115 cat confdefs.h >>conftest.$ac_ext
20116 cat >>conftest.$ac_ext <<_ACEOF
20117 /* end confdefs.h. */
20118
20119 /* Override any GCC internal prototype to avoid an error.
20120 Use char because int might match the return type of a GCC
20121 builtin and then its argument prototype would still apply. */
20122 #ifdef __cplusplus
20123 extern "C"
20124 #endif
20125 char res_send ();
20126 int
20127 main ()
20128 {
20129 return res_send ();
20130 ;
20131 return 0;
20132 }
20133 _ACEOF
20134 rm -f conftest.$ac_objext conftest$ac_exeext
20135 if { (ac_try="$ac_link"
20136 case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20139 esac
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_link") 2>conftest.er1
20142 ac_status=$?
20143 grep -v '^ *+' conftest.er1 >conftest.err
20144 rm -f conftest.er1
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); } && {
20148 test -z "$ac_c_werror_flag" ||
20149 test ! -s conftest.err
20150 } && test -s conftest$ac_exeext &&
20151 $as_test_x conftest$ac_exeext; then
20152 ac_cv_lib_resolv_res_send=yes
20153 else
20154 echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20156
20157 ac_cv_lib_resolv_res_send=no
20158 fi
20159
20160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20161 conftest$ac_exeext conftest.$ac_ext
20162 LIBS=$ac_check_lib_save_LIBS
20163 fi
20164 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20165 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20166 if test $ac_cv_lib_resolv_res_send = yes; then
20167 resolv=yes
20168 else
20169 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20170 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20171 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
20173 else
20174 ac_check_lib_save_LIBS=$LIBS
20175 LIBS="-lresolv $LIBS"
20176 cat >conftest.$ac_ext <<_ACEOF
20177 /* confdefs.h. */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h. */
20182
20183 /* Override any GCC internal prototype to avoid an error.
20184 Use char because int might match the return type of a GCC
20185 builtin and then its argument prototype would still apply. */
20186 #ifdef __cplusplus
20187 extern "C"
20188 #endif
20189 char __res_send ();
20190 int
20191 main ()
20192 {
20193 return __res_send ();
20194 ;
20195 return 0;
20196 }
20197 _ACEOF
20198 rm -f conftest.$ac_objext conftest$ac_exeext
20199 if { (ac_try="$ac_link"
20200 case "(($ac_try" in
20201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20202 *) ac_try_echo=$ac_try;;
20203 esac
20204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20205 (eval "$ac_link") 2>conftest.er1
20206 ac_status=$?
20207 grep -v '^ *+' conftest.er1 >conftest.err
20208 rm -f conftest.er1
20209 cat conftest.err >&5
20210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211 (exit $ac_status); } && {
20212 test -z "$ac_c_werror_flag" ||
20213 test ! -s conftest.err
20214 } && test -s conftest$ac_exeext &&
20215 $as_test_x conftest$ac_exeext; then
20216 ac_cv_lib_resolv___res_send=yes
20217 else
20218 echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20220
20221 ac_cv_lib_resolv___res_send=no
20222 fi
20223
20224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20225 conftest$ac_exeext conftest.$ac_ext
20226 LIBS=$ac_check_lib_save_LIBS
20227 fi
20228 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20229 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20230 if test $ac_cv_lib_resolv___res_send = yes; then
20231 resolv=yes
20232 fi
20233
20234 fi
20235
20236 fi
20237
20238 fi
20239
20240 if test "$resolv" = yes ; then
20241 RESOLVLIB=-lresolv
20242 else
20243 RESOLVLIB=
20244 fi
20245 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20246 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20247 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20248 echo $ECHO_N "(cached) $ECHO_C" >&6
20249 else
20250 cat >conftest.$ac_ext <<_ACEOF
20251 /* confdefs.h. */
20252 _ACEOF
20253 cat confdefs.h >>conftest.$ac_ext
20254 cat >>conftest.$ac_ext <<_ACEOF
20255 /* end confdefs.h. */
20256 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20258 #define hes_getmailhost innocuous_hes_getmailhost
20259
20260 /* System header to define __stub macros and hopefully few prototypes,
20261 which can conflict with char hes_getmailhost (); below.
20262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20263 <limits.h> exists even on freestanding compilers. */
20264
20265 #ifdef __STDC__
20266 # include <limits.h>
20267 #else
20268 # include <assert.h>
20269 #endif
20270
20271 #undef hes_getmailhost
20272
20273 /* Override any GCC internal prototype to avoid an error.
20274 Use char because int might match the return type of a GCC
20275 builtin and then its argument prototype would still apply. */
20276 #ifdef __cplusplus
20277 extern "C"
20278 #endif
20279 char hes_getmailhost ();
20280 /* The GNU C library defines this for functions which it implements
20281 to always fail with ENOSYS. Some functions are actually named
20282 something starting with __ and the normal name is an alias. */
20283 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20284 choke me
20285 #endif
20286
20287 int
20288 main ()
20289 {
20290 return hes_getmailhost ();
20291 ;
20292 return 0;
20293 }
20294 _ACEOF
20295 rm -f conftest.$ac_objext conftest$ac_exeext
20296 if { (ac_try="$ac_link"
20297 case "(($ac_try" in
20298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20299 *) ac_try_echo=$ac_try;;
20300 esac
20301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20302 (eval "$ac_link") 2>conftest.er1
20303 ac_status=$?
20304 grep -v '^ *+' conftest.er1 >conftest.err
20305 rm -f conftest.er1
20306 cat conftest.err >&5
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); } && {
20309 test -z "$ac_c_werror_flag" ||
20310 test ! -s conftest.err
20311 } && test -s conftest$ac_exeext &&
20312 $as_test_x conftest$ac_exeext; then
20313 ac_cv_func_hes_getmailhost=yes
20314 else
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318 ac_cv_func_hes_getmailhost=no
20319 fi
20320
20321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20322 conftest$ac_exeext conftest.$ac_ext
20323 fi
20324 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20325 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20326 if test $ac_cv_func_hes_getmailhost = yes; then
20327 :
20328 else
20329 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20330 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20331 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20332 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 else
20334 ac_check_lib_save_LIBS=$LIBS
20335 LIBS="-lhesiod $RESOLVLIB $LIBS"
20336 cat >conftest.$ac_ext <<_ACEOF
20337 /* confdefs.h. */
20338 _ACEOF
20339 cat confdefs.h >>conftest.$ac_ext
20340 cat >>conftest.$ac_ext <<_ACEOF
20341 /* end confdefs.h. */
20342
20343 /* Override any GCC internal prototype to avoid an error.
20344 Use char because int might match the return type of a GCC
20345 builtin and then its argument prototype would still apply. */
20346 #ifdef __cplusplus
20347 extern "C"
20348 #endif
20349 char hes_getmailhost ();
20350 int
20351 main ()
20352 {
20353 return hes_getmailhost ();
20354 ;
20355 return 0;
20356 }
20357 _ACEOF
20358 rm -f conftest.$ac_objext conftest$ac_exeext
20359 if { (ac_try="$ac_link"
20360 case "(($ac_try" in
20361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20362 *) ac_try_echo=$ac_try;;
20363 esac
20364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20365 (eval "$ac_link") 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } && {
20372 test -z "$ac_c_werror_flag" ||
20373 test ! -s conftest.err
20374 } && test -s conftest$ac_exeext &&
20375 $as_test_x conftest$ac_exeext; then
20376 ac_cv_lib_hesiod_hes_getmailhost=yes
20377 else
20378 echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20380
20381 ac_cv_lib_hesiod_hes_getmailhost=no
20382 fi
20383
20384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20385 conftest$ac_exeext conftest.$ac_ext
20386 LIBS=$ac_check_lib_save_LIBS
20387 fi
20388 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20389 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20390 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20391
20392 cat >>confdefs.h <<\_ACEOF
20393 #define HAVE_LIBHESIOD 1
20394 _ACEOF
20395
20396 else
20397 :
20398 fi
20399
20400 fi
20401
20402 fi
20403
20404 # Do we need libresolv (due to res_init or Hesiod)?
20405 if test "$resolv" = yes ; then
20406
20407 cat >>confdefs.h <<\_ACEOF
20408 #define HAVE_LIBRESOLV 1
20409 _ACEOF
20410
20411 fi
20412
20413 # These tell us which Kerberos-related libraries to use.
20414 if test "${with_kerberos}" != no; then
20415
20416 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20417 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20418 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20419 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 else
20421 ac_check_lib_save_LIBS=$LIBS
20422 LIBS="-lcom_err $LIBS"
20423 cat >conftest.$ac_ext <<_ACEOF
20424 /* confdefs.h. */
20425 _ACEOF
20426 cat confdefs.h >>conftest.$ac_ext
20427 cat >>conftest.$ac_ext <<_ACEOF
20428 /* end confdefs.h. */
20429
20430 /* Override any GCC internal prototype to avoid an error.
20431 Use char because int might match the return type of a GCC
20432 builtin and then its argument prototype would still apply. */
20433 #ifdef __cplusplus
20434 extern "C"
20435 #endif
20436 char com_err ();
20437 int
20438 main ()
20439 {
20440 return com_err ();
20441 ;
20442 return 0;
20443 }
20444 _ACEOF
20445 rm -f conftest.$ac_objext conftest$ac_exeext
20446 if { (ac_try="$ac_link"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20450 esac
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_link") 2>conftest.er1
20453 ac_status=$?
20454 grep -v '^ *+' conftest.er1 >conftest.err
20455 rm -f conftest.er1
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } && {
20459 test -z "$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20461 } && test -s conftest$ac_exeext &&
20462 $as_test_x conftest$ac_exeext; then
20463 ac_cv_lib_com_err_com_err=yes
20464 else
20465 echo "$as_me: failed program was:" >&5
20466 sed 's/^/| /' conftest.$ac_ext >&5
20467
20468 ac_cv_lib_com_err_com_err=no
20469 fi
20470
20471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20472 conftest$ac_exeext conftest.$ac_ext
20473 LIBS=$ac_check_lib_save_LIBS
20474 fi
20475 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20476 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20477 if test $ac_cv_lib_com_err_com_err = yes; then
20478 cat >>confdefs.h <<_ACEOF
20479 #define HAVE_LIBCOM_ERR 1
20480 _ACEOF
20481
20482 LIBS="-lcom_err $LIBS"
20483
20484 fi
20485
20486
20487 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20488 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20489 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20490 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 else
20492 ac_check_lib_save_LIBS=$LIBS
20493 LIBS="-lk5crypto $LIBS"
20494 cat >conftest.$ac_ext <<_ACEOF
20495 /* confdefs.h. */
20496 _ACEOF
20497 cat confdefs.h >>conftest.$ac_ext
20498 cat >>conftest.$ac_ext <<_ACEOF
20499 /* end confdefs.h. */
20500
20501 /* Override any GCC internal prototype to avoid an error.
20502 Use char because int might match the return type of a GCC
20503 builtin and then its argument prototype would still apply. */
20504 #ifdef __cplusplus
20505 extern "C"
20506 #endif
20507 char mit_des_cbc_encrypt ();
20508 int
20509 main ()
20510 {
20511 return mit_des_cbc_encrypt ();
20512 ;
20513 return 0;
20514 }
20515 _ACEOF
20516 rm -f conftest.$ac_objext conftest$ac_exeext
20517 if { (ac_try="$ac_link"
20518 case "(($ac_try" in
20519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20520 *) ac_try_echo=$ac_try;;
20521 esac
20522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20523 (eval "$ac_link") 2>conftest.er1
20524 ac_status=$?
20525 grep -v '^ *+' conftest.er1 >conftest.err
20526 rm -f conftest.er1
20527 cat conftest.err >&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); } && {
20530 test -z "$ac_c_werror_flag" ||
20531 test ! -s conftest.err
20532 } && test -s conftest$ac_exeext &&
20533 $as_test_x conftest$ac_exeext; then
20534 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20535 else
20536 echo "$as_me: failed program was:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20538
20539 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20540 fi
20541
20542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20543 conftest$ac_exeext conftest.$ac_ext
20544 LIBS=$ac_check_lib_save_LIBS
20545 fi
20546 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20547 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20548 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20549 cat >>confdefs.h <<_ACEOF
20550 #define HAVE_LIBK5CRYPTO 1
20551 _ACEOF
20552
20553 LIBS="-lk5crypto $LIBS"
20554
20555 fi
20556
20557
20558 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20559 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20560 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20561 echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563 ac_check_lib_save_LIBS=$LIBS
20564 LIBS="-lcrypto $LIBS"
20565 cat >conftest.$ac_ext <<_ACEOF
20566 /* confdefs.h. */
20567 _ACEOF
20568 cat confdefs.h >>conftest.$ac_ext
20569 cat >>conftest.$ac_ext <<_ACEOF
20570 /* end confdefs.h. */
20571
20572 /* Override any GCC internal prototype to avoid an error.
20573 Use char because int might match the return type of a GCC
20574 builtin and then its argument prototype would still apply. */
20575 #ifdef __cplusplus
20576 extern "C"
20577 #endif
20578 char mit_des_cbc_encrypt ();
20579 int
20580 main ()
20581 {
20582 return mit_des_cbc_encrypt ();
20583 ;
20584 return 0;
20585 }
20586 _ACEOF
20587 rm -f conftest.$ac_objext conftest$ac_exeext
20588 if { (ac_try="$ac_link"
20589 case "(($ac_try" in
20590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591 *) ac_try_echo=$ac_try;;
20592 esac
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594 (eval "$ac_link") 2>conftest.er1
20595 ac_status=$?
20596 grep -v '^ *+' conftest.er1 >conftest.err
20597 rm -f conftest.er1
20598 cat conftest.err >&5
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); } && {
20601 test -z "$ac_c_werror_flag" ||
20602 test ! -s conftest.err
20603 } && test -s conftest$ac_exeext &&
20604 $as_test_x conftest$ac_exeext; then
20605 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20606 else
20607 echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20609
20610 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20611 fi
20612
20613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20614 conftest$ac_exeext conftest.$ac_ext
20615 LIBS=$ac_check_lib_save_LIBS
20616 fi
20617 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20618 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20619 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20620 cat >>confdefs.h <<_ACEOF
20621 #define HAVE_LIBCRYPTO 1
20622 _ACEOF
20623
20624 LIBS="-lcrypto $LIBS"
20625
20626 fi
20627
20628
20629 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20630 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20631 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20633 else
20634 ac_check_lib_save_LIBS=$LIBS
20635 LIBS="-lkrb5 $LIBS"
20636 cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h. */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h. */
20642
20643 /* Override any GCC internal prototype to avoid an error.
20644 Use char because int might match the return type of a GCC
20645 builtin and then its argument prototype would still apply. */
20646 #ifdef __cplusplus
20647 extern "C"
20648 #endif
20649 char krb5_init_context ();
20650 int
20651 main ()
20652 {
20653 return krb5_init_context ();
20654 ;
20655 return 0;
20656 }
20657 _ACEOF
20658 rm -f conftest.$ac_objext conftest$ac_exeext
20659 if { (ac_try="$ac_link"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20663 esac
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_link") 2>conftest.er1
20666 ac_status=$?
20667 grep -v '^ *+' conftest.er1 >conftest.err
20668 rm -f conftest.er1
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } && {
20672 test -z "$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20674 } && test -s conftest$ac_exeext &&
20675 $as_test_x conftest$ac_exeext; then
20676 ac_cv_lib_krb5_krb5_init_context=yes
20677 else
20678 echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.$ac_ext >&5
20680
20681 ac_cv_lib_krb5_krb5_init_context=no
20682 fi
20683
20684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20685 conftest$ac_exeext conftest.$ac_ext
20686 LIBS=$ac_check_lib_save_LIBS
20687 fi
20688 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20689 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20690 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20691 cat >>confdefs.h <<_ACEOF
20692 #define HAVE_LIBKRB5 1
20693 _ACEOF
20694
20695 LIBS="-lkrb5 $LIBS"
20696
20697 fi
20698
20699 if test "${with_kerberos5}" = no; then
20700
20701 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20702 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20703 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20705 else
20706 ac_check_lib_save_LIBS=$LIBS
20707 LIBS="-ldes425 $LIBS"
20708 cat >conftest.$ac_ext <<_ACEOF
20709 /* confdefs.h. */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20714
20715 /* Override any GCC internal prototype to avoid an error.
20716 Use char because int might match the return type of a GCC
20717 builtin and then its argument prototype would still apply. */
20718 #ifdef __cplusplus
20719 extern "C"
20720 #endif
20721 char des_cbc_encrypt ();
20722 int
20723 main ()
20724 {
20725 return des_cbc_encrypt ();
20726 ;
20727 return 0;
20728 }
20729 _ACEOF
20730 rm -f conftest.$ac_objext conftest$ac_exeext
20731 if { (ac_try="$ac_link"
20732 case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20735 esac
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_link") 2>conftest.er1
20738 ac_status=$?
20739 grep -v '^ *+' conftest.er1 >conftest.err
20740 rm -f conftest.er1
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } && {
20744 test -z "$ac_c_werror_flag" ||
20745 test ! -s conftest.err
20746 } && test -s conftest$ac_exeext &&
20747 $as_test_x conftest$ac_exeext; then
20748 ac_cv_lib_des425_des_cbc_encrypt=yes
20749 else
20750 echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20752
20753 ac_cv_lib_des425_des_cbc_encrypt=no
20754 fi
20755
20756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20757 conftest$ac_exeext conftest.$ac_ext
20758 LIBS=$ac_check_lib_save_LIBS
20759 fi
20760 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20761 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20762 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20763 cat >>confdefs.h <<_ACEOF
20764 #define HAVE_LIBDES425 1
20765 _ACEOF
20766
20767 LIBS="-ldes425 $LIBS"
20768
20769 else
20770
20771 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20772 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20773 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20774 echo $ECHO_N "(cached) $ECHO_C" >&6
20775 else
20776 ac_check_lib_save_LIBS=$LIBS
20777 LIBS="-ldes $LIBS"
20778 cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h. */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784
20785 /* Override any GCC internal prototype to avoid an error.
20786 Use char because int might match the return type of a GCC
20787 builtin and then its argument prototype would still apply. */
20788 #ifdef __cplusplus
20789 extern "C"
20790 #endif
20791 char des_cbc_encrypt ();
20792 int
20793 main ()
20794 {
20795 return des_cbc_encrypt ();
20796 ;
20797 return 0;
20798 }
20799 _ACEOF
20800 rm -f conftest.$ac_objext conftest$ac_exeext
20801 if { (ac_try="$ac_link"
20802 case "(($ac_try" in
20803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20804 *) ac_try_echo=$ac_try;;
20805 esac
20806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20807 (eval "$ac_link") 2>conftest.er1
20808 ac_status=$?
20809 grep -v '^ *+' conftest.er1 >conftest.err
20810 rm -f conftest.er1
20811 cat conftest.err >&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); } && {
20814 test -z "$ac_c_werror_flag" ||
20815 test ! -s conftest.err
20816 } && test -s conftest$ac_exeext &&
20817 $as_test_x conftest$ac_exeext; then
20818 ac_cv_lib_des_des_cbc_encrypt=yes
20819 else
20820 echo "$as_me: failed program was:" >&5
20821 sed 's/^/| /' conftest.$ac_ext >&5
20822
20823 ac_cv_lib_des_des_cbc_encrypt=no
20824 fi
20825
20826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20827 conftest$ac_exeext conftest.$ac_ext
20828 LIBS=$ac_check_lib_save_LIBS
20829 fi
20830 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20831 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20832 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20833 cat >>confdefs.h <<_ACEOF
20834 #define HAVE_LIBDES 1
20835 _ACEOF
20836
20837 LIBS="-ldes $LIBS"
20838
20839 fi
20840
20841 fi
20842
20843
20844 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20845 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20846 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20847 echo $ECHO_N "(cached) $ECHO_C" >&6
20848 else
20849 ac_check_lib_save_LIBS=$LIBS
20850 LIBS="-lkrb4 $LIBS"
20851 cat >conftest.$ac_ext <<_ACEOF
20852 /* confdefs.h. */
20853 _ACEOF
20854 cat confdefs.h >>conftest.$ac_ext
20855 cat >>conftest.$ac_ext <<_ACEOF
20856 /* end confdefs.h. */
20857
20858 /* Override any GCC internal prototype to avoid an error.
20859 Use char because int might match the return type of a GCC
20860 builtin and then its argument prototype would still apply. */
20861 #ifdef __cplusplus
20862 extern "C"
20863 #endif
20864 char krb_get_cred ();
20865 int
20866 main ()
20867 {
20868 return krb_get_cred ();
20869 ;
20870 return 0;
20871 }
20872 _ACEOF
20873 rm -f conftest.$ac_objext conftest$ac_exeext
20874 if { (ac_try="$ac_link"
20875 case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20878 esac
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_link") 2>conftest.er1
20881 ac_status=$?
20882 grep -v '^ *+' conftest.er1 >conftest.err
20883 rm -f conftest.er1
20884 cat conftest.err >&5
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } && {
20887 test -z "$ac_c_werror_flag" ||
20888 test ! -s conftest.err
20889 } && test -s conftest$ac_exeext &&
20890 $as_test_x conftest$ac_exeext; then
20891 ac_cv_lib_krb4_krb_get_cred=yes
20892 else
20893 echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20895
20896 ac_cv_lib_krb4_krb_get_cred=no
20897 fi
20898
20899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20900 conftest$ac_exeext conftest.$ac_ext
20901 LIBS=$ac_check_lib_save_LIBS
20902 fi
20903 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20904 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20905 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20906 cat >>confdefs.h <<_ACEOF
20907 #define HAVE_LIBKRB4 1
20908 _ACEOF
20909
20910 LIBS="-lkrb4 $LIBS"
20911
20912 else
20913
20914 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20915 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20916 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 else
20919 ac_check_lib_save_LIBS=$LIBS
20920 LIBS="-lkrb $LIBS"
20921 cat >conftest.$ac_ext <<_ACEOF
20922 /* confdefs.h. */
20923 _ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h. */
20927
20928 /* Override any GCC internal prototype to avoid an error.
20929 Use char because int might match the return type of a GCC
20930 builtin and then its argument prototype would still apply. */
20931 #ifdef __cplusplus
20932 extern "C"
20933 #endif
20934 char krb_get_cred ();
20935 int
20936 main ()
20937 {
20938 return krb_get_cred ();
20939 ;
20940 return 0;
20941 }
20942 _ACEOF
20943 rm -f conftest.$ac_objext conftest$ac_exeext
20944 if { (ac_try="$ac_link"
20945 case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20948 esac
20949 eval "echo \"\$as_me:$LINENO: $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 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 $as_test_x conftest$ac_exeext; then
20961 ac_cv_lib_krb_krb_get_cred=yes
20962 else
20963 echo "$as_me: failed program was:" >&5
20964 sed 's/^/| /' conftest.$ac_ext >&5
20965
20966 ac_cv_lib_krb_krb_get_cred=no
20967 fi
20968
20969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20970 conftest$ac_exeext conftest.$ac_ext
20971 LIBS=$ac_check_lib_save_LIBS
20972 fi
20973 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20974 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20975 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20976 cat >>confdefs.h <<_ACEOF
20977 #define HAVE_LIBKRB 1
20978 _ACEOF
20979
20980 LIBS="-lkrb $LIBS"
20981
20982 fi
20983
20984 fi
20985
20986 fi
20987
20988 if test "${with_kerberos5}" != no; then
20989
20990 for ac_header in krb5.h
20991 do
20992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20997 echo $ECHO_N "(cached) $ECHO_C" >&6
20998 fi
20999 ac_res=`eval echo '${'$as_ac_Header'}'`
21000 { echo "$as_me:$LINENO: result: $ac_res" >&5
21001 echo "${ECHO_T}$ac_res" >&6; }
21002 else
21003 # Is the header compilable?
21004 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21005 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21006 cat >conftest.$ac_ext <<_ACEOF
21007 /* confdefs.h. */
21008 _ACEOF
21009 cat confdefs.h >>conftest.$ac_ext
21010 cat >>conftest.$ac_ext <<_ACEOF
21011 /* end confdefs.h. */
21012 $ac_includes_default
21013 #include <$ac_header>
21014 _ACEOF
21015 rm -f conftest.$ac_objext
21016 if { (ac_try="$ac_compile"
21017 case "(($ac_try" in
21018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019 *) ac_try_echo=$ac_try;;
21020 esac
21021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21022 (eval "$ac_compile") 2>conftest.er1
21023 ac_status=$?
21024 grep -v '^ *+' conftest.er1 >conftest.err
21025 rm -f conftest.er1
21026 cat conftest.err >&5
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } && {
21029 test -z "$ac_c_werror_flag" ||
21030 test ! -s conftest.err
21031 } && test -s conftest.$ac_objext; then
21032 ac_header_compiler=yes
21033 else
21034 echo "$as_me: failed program was:" >&5
21035 sed 's/^/| /' conftest.$ac_ext >&5
21036
21037 ac_header_compiler=no
21038 fi
21039
21040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21041 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21042 echo "${ECHO_T}$ac_header_compiler" >&6; }
21043
21044 # Is the header present?
21045 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21046 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21047 cat >conftest.$ac_ext <<_ACEOF
21048 /* confdefs.h. */
21049 _ACEOF
21050 cat confdefs.h >>conftest.$ac_ext
21051 cat >>conftest.$ac_ext <<_ACEOF
21052 /* end confdefs.h. */
21053 #include <$ac_header>
21054 _ACEOF
21055 if { (ac_try="$ac_cpp conftest.$ac_ext"
21056 case "(($ac_try" in
21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058 *) ac_try_echo=$ac_try;;
21059 esac
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21062 ac_status=$?
21063 grep -v '^ *+' conftest.er1 >conftest.err
21064 rm -f conftest.er1
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } >/dev/null && {
21068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21069 test ! -s conftest.err
21070 }; then
21071 ac_header_preproc=yes
21072 else
21073 echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21075
21076 ac_header_preproc=no
21077 fi
21078
21079 rm -f conftest.err conftest.$ac_ext
21080 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21081 echo "${ECHO_T}$ac_header_preproc" >&6; }
21082
21083 # So? What about this header?
21084 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21085 yes:no: )
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21087 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21089 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21090 ac_header_preproc=yes
21091 ;;
21092 no:yes:* )
21093 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21094 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21095 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21096 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21097 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21098 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21099 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21100 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21102 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21103 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21104 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21105
21106 ;;
21107 esac
21108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21111 echo $ECHO_N "(cached) $ECHO_C" >&6
21112 else
21113 eval "$as_ac_Header=\$ac_header_preproc"
21114 fi
21115 ac_res=`eval echo '${'$as_ac_Header'}'`
21116 { echo "$as_me:$LINENO: result: $ac_res" >&5
21117 echo "${ECHO_T}$ac_res" >&6; }
21118
21119 fi
21120 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21121 cat >>confdefs.h <<_ACEOF
21122 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21123 _ACEOF
21124 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21125 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21126 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21127 echo $ECHO_N "(cached) $ECHO_C" >&6
21128 else
21129 cat >conftest.$ac_ext <<_ACEOF
21130 /* confdefs.h. */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21135 #include <krb5.h>
21136
21137 int
21138 main ()
21139 {
21140 static krb5_error ac_aggr;
21141 if (ac_aggr.text)
21142 return 0;
21143 ;
21144 return 0;
21145 }
21146 _ACEOF
21147 rm -f conftest.$ac_objext
21148 if { (ac_try="$ac_compile"
21149 case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21152 esac
21153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_compile") 2>conftest.er1
21155 ac_status=$?
21156 grep -v '^ *+' conftest.er1 >conftest.err
21157 rm -f conftest.er1
21158 cat conftest.err >&5
21159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160 (exit $ac_status); } && {
21161 test -z "$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21163 } && test -s conftest.$ac_objext; then
21164 ac_cv_member_krb5_error_text=yes
21165 else
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169 cat >conftest.$ac_ext <<_ACEOF
21170 /* confdefs.h. */
21171 _ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21175 #include <krb5.h>
21176
21177 int
21178 main ()
21179 {
21180 static krb5_error ac_aggr;
21181 if (sizeof ac_aggr.text)
21182 return 0;
21183 ;
21184 return 0;
21185 }
21186 _ACEOF
21187 rm -f conftest.$ac_objext
21188 if { (ac_try="$ac_compile"
21189 case "(($ac_try" in
21190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21191 *) ac_try_echo=$ac_try;;
21192 esac
21193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21194 (eval "$ac_compile") 2>conftest.er1
21195 ac_status=$?
21196 grep -v '^ *+' conftest.er1 >conftest.err
21197 rm -f conftest.er1
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } && {
21201 test -z "$ac_c_werror_flag" ||
21202 test ! -s conftest.err
21203 } && test -s conftest.$ac_objext; then
21204 ac_cv_member_krb5_error_text=yes
21205 else
21206 echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.$ac_ext >&5
21208
21209 ac_cv_member_krb5_error_text=no
21210 fi
21211
21212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21213 fi
21214
21215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21216 fi
21217 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21218 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21219 if test $ac_cv_member_krb5_error_text = yes; then
21220
21221 cat >>confdefs.h <<_ACEOF
21222 #define HAVE_KRB5_ERROR_TEXT 1
21223 _ACEOF
21224
21225
21226 fi
21227 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21228 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21229 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21231 else
21232 cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h. */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 #include <krb5.h>
21239
21240 int
21241 main ()
21242 {
21243 static krb5_error ac_aggr;
21244 if (ac_aggr.e_text)
21245 return 0;
21246 ;
21247 return 0;
21248 }
21249 _ACEOF
21250 rm -f conftest.$ac_objext
21251 if { (ac_try="$ac_compile"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21255 esac
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_compile") 2>conftest.er1
21258 ac_status=$?
21259 grep -v '^ *+' conftest.er1 >conftest.err
21260 rm -f conftest.er1
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } && {
21264 test -z "$ac_c_werror_flag" ||
21265 test ! -s conftest.err
21266 } && test -s conftest.$ac_objext; then
21267 ac_cv_member_krb5_error_e_text=yes
21268 else
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21271
21272 cat >conftest.$ac_ext <<_ACEOF
21273 /* confdefs.h. */
21274 _ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 #include <krb5.h>
21279
21280 int
21281 main ()
21282 {
21283 static krb5_error ac_aggr;
21284 if (sizeof ac_aggr.e_text)
21285 return 0;
21286 ;
21287 return 0;
21288 }
21289 _ACEOF
21290 rm -f conftest.$ac_objext
21291 if { (ac_try="$ac_compile"
21292 case "(($ac_try" in
21293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21294 *) ac_try_echo=$ac_try;;
21295 esac
21296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21297 (eval "$ac_compile") 2>conftest.er1
21298 ac_status=$?
21299 grep -v '^ *+' conftest.er1 >conftest.err
21300 rm -f conftest.er1
21301 cat conftest.err >&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); } && {
21304 test -z "$ac_c_werror_flag" ||
21305 test ! -s conftest.err
21306 } && test -s conftest.$ac_objext; then
21307 ac_cv_member_krb5_error_e_text=yes
21308 else
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21311
21312 ac_cv_member_krb5_error_e_text=no
21313 fi
21314
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 fi
21317
21318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 fi
21320 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21321 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21322 if test $ac_cv_member_krb5_error_e_text = yes; then
21323
21324 cat >>confdefs.h <<_ACEOF
21325 #define HAVE_KRB5_ERROR_E_TEXT 1
21326 _ACEOF
21327
21328
21329 fi
21330
21331 fi
21332
21333 done
21334
21335 else
21336
21337 for ac_header in des.h
21338 do
21339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21344 echo $ECHO_N "(cached) $ECHO_C" >&6
21345 fi
21346 ac_res=`eval echo '${'$as_ac_Header'}'`
21347 { echo "$as_me:$LINENO: result: $ac_res" >&5
21348 echo "${ECHO_T}$ac_res" >&6; }
21349 else
21350 # Is the header compilable?
21351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21353 cat >conftest.$ac_ext <<_ACEOF
21354 /* confdefs.h. */
21355 _ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21359 $ac_includes_default
21360 #include <$ac_header>
21361 _ACEOF
21362 rm -f conftest.$ac_objext
21363 if { (ac_try="$ac_compile"
21364 case "(($ac_try" in
21365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366 *) ac_try_echo=$ac_try;;
21367 esac
21368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21369 (eval "$ac_compile") 2>conftest.er1
21370 ac_status=$?
21371 grep -v '^ *+' conftest.er1 >conftest.err
21372 rm -f conftest.er1
21373 cat conftest.err >&5
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); } && {
21376 test -z "$ac_c_werror_flag" ||
21377 test ! -s conftest.err
21378 } && test -s conftest.$ac_objext; then
21379 ac_header_compiler=yes
21380 else
21381 echo "$as_me: failed program was:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21383
21384 ac_header_compiler=no
21385 fi
21386
21387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21389 echo "${ECHO_T}$ac_header_compiler" >&6; }
21390
21391 # Is the header present?
21392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21394 cat >conftest.$ac_ext <<_ACEOF
21395 /* confdefs.h. */
21396 _ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21400 #include <$ac_header>
21401 _ACEOF
21402 if { (ac_try="$ac_cpp conftest.$ac_ext"
21403 case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21406 esac
21407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21409 ac_status=$?
21410 grep -v '^ *+' conftest.er1 >conftest.err
21411 rm -f conftest.er1
21412 cat conftest.err >&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } >/dev/null && {
21415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21416 test ! -s conftest.err
21417 }; then
21418 ac_header_preproc=yes
21419 else
21420 echo "$as_me: failed program was:" >&5
21421 sed 's/^/| /' conftest.$ac_ext >&5
21422
21423 ac_header_preproc=no
21424 fi
21425
21426 rm -f conftest.err conftest.$ac_ext
21427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21428 echo "${ECHO_T}$ac_header_preproc" >&6; }
21429
21430 # So? What about this header?
21431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21432 yes:no: )
21433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21437 ac_header_preproc=yes
21438 ;;
21439 no:yes:* )
21440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21452
21453 ;;
21454 esac
21455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21458 echo $ECHO_N "(cached) $ECHO_C" >&6
21459 else
21460 eval "$as_ac_Header=\$ac_header_preproc"
21461 fi
21462 ac_res=`eval echo '${'$as_ac_Header'}'`
21463 { echo "$as_me:$LINENO: result: $ac_res" >&5
21464 echo "${ECHO_T}$ac_res" >&6; }
21465
21466 fi
21467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21468 cat >>confdefs.h <<_ACEOF
21469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21470 _ACEOF
21471
21472 else
21473
21474 for ac_header in kerberosIV/des.h
21475 do
21476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21481 echo $ECHO_N "(cached) $ECHO_C" >&6
21482 fi
21483 ac_res=`eval echo '${'$as_ac_Header'}'`
21484 { echo "$as_me:$LINENO: result: $ac_res" >&5
21485 echo "${ECHO_T}$ac_res" >&6; }
21486 else
21487 # Is the header compilable?
21488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21490 cat >conftest.$ac_ext <<_ACEOF
21491 /* confdefs.h. */
21492 _ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21496 $ac_includes_default
21497 #include <$ac_header>
21498 _ACEOF
21499 rm -f conftest.$ac_objext
21500 if { (ac_try="$ac_compile"
21501 case "(($ac_try" in
21502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503 *) ac_try_echo=$ac_try;;
21504 esac
21505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21506 (eval "$ac_compile") 2>conftest.er1
21507 ac_status=$?
21508 grep -v '^ *+' conftest.er1 >conftest.err
21509 rm -f conftest.er1
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } && {
21513 test -z "$ac_c_werror_flag" ||
21514 test ! -s conftest.err
21515 } && test -s conftest.$ac_objext; then
21516 ac_header_compiler=yes
21517 else
21518 echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21520
21521 ac_header_compiler=no
21522 fi
21523
21524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21526 echo "${ECHO_T}$ac_header_compiler" >&6; }
21527
21528 # Is the header present?
21529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21531 cat >conftest.$ac_ext <<_ACEOF
21532 /* confdefs.h. */
21533 _ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 #include <$ac_header>
21538 _ACEOF
21539 if { (ac_try="$ac_cpp conftest.$ac_ext"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21543 esac
21544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21546 ac_status=$?
21547 grep -v '^ *+' conftest.er1 >conftest.err
21548 rm -f conftest.er1
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551 (exit $ac_status); } >/dev/null && {
21552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21554 }; then
21555 ac_header_preproc=yes
21556 else
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560 ac_header_preproc=no
21561 fi
21562
21563 rm -f conftest.err conftest.$ac_ext
21564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21565 echo "${ECHO_T}$ac_header_preproc" >&6; }
21566
21567 # So? What about this header?
21568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21569 yes:no: )
21570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21574 ac_header_preproc=yes
21575 ;;
21576 no:yes:* )
21577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21589
21590 ;;
21591 esac
21592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21596 else
21597 eval "$as_ac_Header=\$ac_header_preproc"
21598 fi
21599 ac_res=`eval echo '${'$as_ac_Header'}'`
21600 { echo "$as_me:$LINENO: result: $ac_res" >&5
21601 echo "${ECHO_T}$ac_res" >&6; }
21602
21603 fi
21604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21605 cat >>confdefs.h <<_ACEOF
21606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21607 _ACEOF
21608
21609 else
21610
21611 for ac_header in kerberos/des.h
21612 do
21613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21619 fi
21620 ac_res=`eval echo '${'$as_ac_Header'}'`
21621 { echo "$as_me:$LINENO: result: $ac_res" >&5
21622 echo "${ECHO_T}$ac_res" >&6; }
21623 else
21624 # Is the header compilable?
21625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21627 cat >conftest.$ac_ext <<_ACEOF
21628 /* confdefs.h. */
21629 _ACEOF
21630 cat confdefs.h >>conftest.$ac_ext
21631 cat >>conftest.$ac_ext <<_ACEOF
21632 /* end confdefs.h. */
21633 $ac_includes_default
21634 #include <$ac_header>
21635 _ACEOF
21636 rm -f conftest.$ac_objext
21637 if { (ac_try="$ac_compile"
21638 case "(($ac_try" in
21639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640 *) ac_try_echo=$ac_try;;
21641 esac
21642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21643 (eval "$ac_compile") 2>conftest.er1
21644 ac_status=$?
21645 grep -v '^ *+' conftest.er1 >conftest.err
21646 rm -f conftest.er1
21647 cat conftest.err >&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } && {
21650 test -z "$ac_c_werror_flag" ||
21651 test ! -s conftest.err
21652 } && test -s conftest.$ac_objext; then
21653 ac_header_compiler=yes
21654 else
21655 echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21657
21658 ac_header_compiler=no
21659 fi
21660
21661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21663 echo "${ECHO_T}$ac_header_compiler" >&6; }
21664
21665 # Is the header present?
21666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21668 cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h. */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 #include <$ac_header>
21675 _ACEOF
21676 if { (ac_try="$ac_cpp conftest.$ac_ext"
21677 case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21680 esac
21681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21683 ac_status=$?
21684 grep -v '^ *+' conftest.er1 >conftest.err
21685 rm -f conftest.er1
21686 cat conftest.err >&5
21687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } >/dev/null && {
21689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21690 test ! -s conftest.err
21691 }; then
21692 ac_header_preproc=yes
21693 else
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697 ac_header_preproc=no
21698 fi
21699
21700 rm -f conftest.err conftest.$ac_ext
21701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21702 echo "${ECHO_T}$ac_header_preproc" >&6; }
21703
21704 # So? What about this header?
21705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21706 yes:no: )
21707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21711 ac_header_preproc=yes
21712 ;;
21713 no:yes:* )
21714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21726
21727 ;;
21728 esac
21729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734 eval "$as_ac_Header=\$ac_header_preproc"
21735 fi
21736 ac_res=`eval echo '${'$as_ac_Header'}'`
21737 { echo "$as_me:$LINENO: result: $ac_res" >&5
21738 echo "${ECHO_T}$ac_res" >&6; }
21739
21740 fi
21741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21742 cat >>confdefs.h <<_ACEOF
21743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21744 _ACEOF
21745
21746 fi
21747
21748 done
21749
21750 fi
21751
21752 done
21753
21754 fi
21755
21756 done
21757
21758
21759 for ac_header in krb.h
21760 do
21761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21767 fi
21768 ac_res=`eval echo '${'$as_ac_Header'}'`
21769 { echo "$as_me:$LINENO: result: $ac_res" >&5
21770 echo "${ECHO_T}$ac_res" >&6; }
21771 else
21772 # Is the header compilable?
21773 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21775 cat >conftest.$ac_ext <<_ACEOF
21776 /* confdefs.h. */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */
21781 $ac_includes_default
21782 #include <$ac_header>
21783 _ACEOF
21784 rm -f conftest.$ac_objext
21785 if { (ac_try="$ac_compile"
21786 case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21789 esac
21790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_compile") 2>conftest.er1
21792 ac_status=$?
21793 grep -v '^ *+' conftest.er1 >conftest.err
21794 rm -f conftest.er1
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } && {
21798 test -z "$ac_c_werror_flag" ||
21799 test ! -s conftest.err
21800 } && test -s conftest.$ac_objext; then
21801 ac_header_compiler=yes
21802 else
21803 echo "$as_me: failed program was:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21805
21806 ac_header_compiler=no
21807 fi
21808
21809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21811 echo "${ECHO_T}$ac_header_compiler" >&6; }
21812
21813 # Is the header present?
21814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21816 cat >conftest.$ac_ext <<_ACEOF
21817 /* confdefs.h. */
21818 _ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21822 #include <$ac_header>
21823 _ACEOF
21824 if { (ac_try="$ac_cpp conftest.$ac_ext"
21825 case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21828 esac
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21831 ac_status=$?
21832 grep -v '^ *+' conftest.er1 >conftest.err
21833 rm -f conftest.er1
21834 cat conftest.err >&5
21835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); } >/dev/null && {
21837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21838 test ! -s conftest.err
21839 }; then
21840 ac_header_preproc=yes
21841 else
21842 echo "$as_me: failed program was:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21844
21845 ac_header_preproc=no
21846 fi
21847
21848 rm -f conftest.err conftest.$ac_ext
21849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21850 echo "${ECHO_T}$ac_header_preproc" >&6; }
21851
21852 # So? What about this header?
21853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21854 yes:no: )
21855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21859 ac_header_preproc=yes
21860 ;;
21861 no:yes:* )
21862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21874
21875 ;;
21876 esac
21877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21880 echo $ECHO_N "(cached) $ECHO_C" >&6
21881 else
21882 eval "$as_ac_Header=\$ac_header_preproc"
21883 fi
21884 ac_res=`eval echo '${'$as_ac_Header'}'`
21885 { echo "$as_me:$LINENO: result: $ac_res" >&5
21886 echo "${ECHO_T}$ac_res" >&6; }
21887
21888 fi
21889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21890 cat >>confdefs.h <<_ACEOF
21891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21892 _ACEOF
21893
21894 else
21895
21896 for ac_header in kerberosIV/krb.h
21897 do
21898 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21899 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21900 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21901 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21903 echo $ECHO_N "(cached) $ECHO_C" >&6
21904 fi
21905 ac_res=`eval echo '${'$as_ac_Header'}'`
21906 { echo "$as_me:$LINENO: result: $ac_res" >&5
21907 echo "${ECHO_T}$ac_res" >&6; }
21908 else
21909 # Is the header compilable?
21910 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21911 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21912 cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h. */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 $ac_includes_default
21919 #include <$ac_header>
21920 _ACEOF
21921 rm -f conftest.$ac_objext
21922 if { (ac_try="$ac_compile"
21923 case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21926 esac
21927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_compile") 2>conftest.er1
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } && {
21935 test -z "$ac_c_werror_flag" ||
21936 test ! -s conftest.err
21937 } && test -s conftest.$ac_objext; then
21938 ac_header_compiler=yes
21939 else
21940 echo "$as_me: failed program was:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21942
21943 ac_header_compiler=no
21944 fi
21945
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21948 echo "${ECHO_T}$ac_header_compiler" >&6; }
21949
21950 # Is the header present?
21951 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21952 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21953 cat >conftest.$ac_ext <<_ACEOF
21954 /* confdefs.h. */
21955 _ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 #include <$ac_header>
21960 _ACEOF
21961 if { (ac_try="$ac_cpp conftest.$ac_ext"
21962 case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21965 esac
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21968 ac_status=$?
21969 grep -v '^ *+' conftest.er1 >conftest.err
21970 rm -f conftest.er1
21971 cat conftest.err >&5
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); } >/dev/null && {
21974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21975 test ! -s conftest.err
21976 }; then
21977 ac_header_preproc=yes
21978 else
21979 echo "$as_me: failed program was:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21981
21982 ac_header_preproc=no
21983 fi
21984
21985 rm -f conftest.err conftest.$ac_ext
21986 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21987 echo "${ECHO_T}$ac_header_preproc" >&6; }
21988
21989 # So? What about this header?
21990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21991 yes:no: )
21992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21996 ac_header_preproc=yes
21997 ;;
21998 no:yes:* )
21999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22011
22012 ;;
22013 esac
22014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22017 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 else
22019 eval "$as_ac_Header=\$ac_header_preproc"
22020 fi
22021 ac_res=`eval echo '${'$as_ac_Header'}'`
22022 { echo "$as_me:$LINENO: result: $ac_res" >&5
22023 echo "${ECHO_T}$ac_res" >&6; }
22024
22025 fi
22026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22027 cat >>confdefs.h <<_ACEOF
22028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22029 _ACEOF
22030
22031 else
22032
22033 for ac_header in kerberos/krb.h
22034 do
22035 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22040 echo $ECHO_N "(cached) $ECHO_C" >&6
22041 fi
22042 ac_res=`eval echo '${'$as_ac_Header'}'`
22043 { echo "$as_me:$LINENO: result: $ac_res" >&5
22044 echo "${ECHO_T}$ac_res" >&6; }
22045 else
22046 # Is the header compilable?
22047 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22049 cat >conftest.$ac_ext <<_ACEOF
22050 /* confdefs.h. */
22051 _ACEOF
22052 cat confdefs.h >>conftest.$ac_ext
22053 cat >>conftest.$ac_ext <<_ACEOF
22054 /* end confdefs.h. */
22055 $ac_includes_default
22056 #include <$ac_header>
22057 _ACEOF
22058 rm -f conftest.$ac_objext
22059 if { (ac_try="$ac_compile"
22060 case "(($ac_try" in
22061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062 *) ac_try_echo=$ac_try;;
22063 esac
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065 (eval "$ac_compile") 2>conftest.er1
22066 ac_status=$?
22067 grep -v '^ *+' conftest.er1 >conftest.err
22068 rm -f conftest.er1
22069 cat conftest.err >&5
22070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071 (exit $ac_status); } && {
22072 test -z "$ac_c_werror_flag" ||
22073 test ! -s conftest.err
22074 } && test -s conftest.$ac_objext; then
22075 ac_header_compiler=yes
22076 else
22077 echo "$as_me: failed program was:" >&5
22078 sed 's/^/| /' conftest.$ac_ext >&5
22079
22080 ac_header_compiler=no
22081 fi
22082
22083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22084 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22085 echo "${ECHO_T}$ac_header_compiler" >&6; }
22086
22087 # Is the header present?
22088 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22089 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22090 cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h. */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h. */
22096 #include <$ac_header>
22097 _ACEOF
22098 if { (ac_try="$ac_cpp conftest.$ac_ext"
22099 case "(($ac_try" in
22100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22101 *) ac_try_echo=$ac_try;;
22102 esac
22103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22104 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22105 ac_status=$?
22106 grep -v '^ *+' conftest.er1 >conftest.err
22107 rm -f conftest.er1
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } >/dev/null && {
22111 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22112 test ! -s conftest.err
22113 }; then
22114 ac_header_preproc=yes
22115 else
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22118
22119 ac_header_preproc=no
22120 fi
22121
22122 rm -f conftest.err conftest.$ac_ext
22123 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22124 echo "${ECHO_T}$ac_header_preproc" >&6; }
22125
22126 # So? What about this header?
22127 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22128 yes:no: )
22129 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22130 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22132 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22133 ac_header_preproc=yes
22134 ;;
22135 no:yes:* )
22136 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22137 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22138 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22139 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22140 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22141 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22142 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22143 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22145 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22146 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22147 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22148
22149 ;;
22150 esac
22151 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 else
22156 eval "$as_ac_Header=\$ac_header_preproc"
22157 fi
22158 ac_res=`eval echo '${'$as_ac_Header'}'`
22159 { echo "$as_me:$LINENO: result: $ac_res" >&5
22160 echo "${ECHO_T}$ac_res" >&6; }
22161
22162 fi
22163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22164 cat >>confdefs.h <<_ACEOF
22165 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22166 _ACEOF
22167
22168 fi
22169
22170 done
22171
22172 fi
22173
22174 done
22175
22176 fi
22177
22178 done
22179
22180 fi
22181
22182 for ac_header in com_err.h
22183 do
22184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22185 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22190 fi
22191 ac_res=`eval echo '${'$as_ac_Header'}'`
22192 { echo "$as_me:$LINENO: result: $ac_res" >&5
22193 echo "${ECHO_T}$ac_res" >&6; }
22194 else
22195 # Is the header compilable?
22196 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22197 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22198 cat >conftest.$ac_ext <<_ACEOF
22199 /* confdefs.h. */
22200 _ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h. */
22204 $ac_includes_default
22205 #include <$ac_header>
22206 _ACEOF
22207 rm -f conftest.$ac_objext
22208 if { (ac_try="$ac_compile"
22209 case "(($ac_try" in
22210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22212 esac
22213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_compile") 2>conftest.er1
22215 ac_status=$?
22216 grep -v '^ *+' conftest.er1 >conftest.err
22217 rm -f conftest.er1
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } && {
22221 test -z "$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22223 } && test -s conftest.$ac_objext; then
22224 ac_header_compiler=yes
22225 else
22226 echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22228
22229 ac_header_compiler=no
22230 fi
22231
22232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22233 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22234 echo "${ECHO_T}$ac_header_compiler" >&6; }
22235
22236 # Is the header present?
22237 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22238 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22239 cat >conftest.$ac_ext <<_ACEOF
22240 /* confdefs.h. */
22241 _ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22245 #include <$ac_header>
22246 _ACEOF
22247 if { (ac_try="$ac_cpp conftest.$ac_ext"
22248 case "(($ac_try" in
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22251 esac
22252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22254 ac_status=$?
22255 grep -v '^ *+' conftest.er1 >conftest.err
22256 rm -f conftest.er1
22257 cat conftest.err >&5
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } >/dev/null && {
22260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22261 test ! -s conftest.err
22262 }; then
22263 ac_header_preproc=yes
22264 else
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22267
22268 ac_header_preproc=no
22269 fi
22270
22271 rm -f conftest.err conftest.$ac_ext
22272 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22273 echo "${ECHO_T}$ac_header_preproc" >&6; }
22274
22275 # So? What about this header?
22276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22277 yes:no: )
22278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22282 ac_header_preproc=yes
22283 ;;
22284 no:yes:* )
22285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22297
22298 ;;
22299 esac
22300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22303 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 else
22305 eval "$as_ac_Header=\$ac_header_preproc"
22306 fi
22307 ac_res=`eval echo '${'$as_ac_Header'}'`
22308 { echo "$as_me:$LINENO: result: $ac_res" >&5
22309 echo "${ECHO_T}$ac_res" >&6; }
22310
22311 fi
22312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22313 cat >>confdefs.h <<_ACEOF
22314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22315 _ACEOF
22316
22317 fi
22318
22319 done
22320
22321 fi
22322
22323 # Solaris requires -lintl if you want strerror (which calls dgettext)
22324 # to return localized messages.
22325
22326 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22327 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22328 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22330 else
22331 ac_check_lib_save_LIBS=$LIBS
22332 LIBS="-lintl $LIBS"
22333 cat >conftest.$ac_ext <<_ACEOF
22334 /* confdefs.h. */
22335 _ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h. */
22339
22340 /* Override any GCC internal prototype to avoid an error.
22341 Use char because int might match the return type of a GCC
22342 builtin and then its argument prototype would still apply. */
22343 #ifdef __cplusplus
22344 extern "C"
22345 #endif
22346 char dgettext ();
22347 int
22348 main ()
22349 {
22350 return dgettext ();
22351 ;
22352 return 0;
22353 }
22354 _ACEOF
22355 rm -f conftest.$ac_objext conftest$ac_exeext
22356 if { (ac_try="$ac_link"
22357 case "(($ac_try" in
22358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 *) ac_try_echo=$ac_try;;
22360 esac
22361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362 (eval "$ac_link") 2>conftest.er1
22363 ac_status=$?
22364 grep -v '^ *+' conftest.er1 >conftest.err
22365 rm -f conftest.er1
22366 cat conftest.err >&5
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); } && {
22369 test -z "$ac_c_werror_flag" ||
22370 test ! -s conftest.err
22371 } && test -s conftest$ac_exeext &&
22372 $as_test_x conftest$ac_exeext; then
22373 ac_cv_lib_intl_dgettext=yes
22374 else
22375 echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22377
22378 ac_cv_lib_intl_dgettext=no
22379 fi
22380
22381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22382 conftest$ac_exeext conftest.$ac_ext
22383 LIBS=$ac_check_lib_save_LIBS
22384 fi
22385 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22386 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22387 if test $ac_cv_lib_intl_dgettext = yes; then
22388 cat >>confdefs.h <<_ACEOF
22389 #define HAVE_LIBINTL 1
22390 _ACEOF
22391
22392 LIBS="-lintl $LIBS"
22393
22394 fi
22395
22396
22397 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22398 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22399 if test "${emacs_cv_localtime_cache+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22401 else
22402 if test x$ac_cv_func_tzset = xyes; then
22403 if test "$cross_compiling" = yes; then
22404 # If we have tzset, assume the worst when cross-compiling.
22405 emacs_cv_localtime_cache=yes
22406 else
22407 cat >conftest.$ac_ext <<_ACEOF
22408 /* confdefs.h. */
22409 _ACEOF
22410 cat confdefs.h >>conftest.$ac_ext
22411 cat >>conftest.$ac_ext <<_ACEOF
22412 /* end confdefs.h. */
22413 #include <time.h>
22414 extern char **environ;
22415 unset_TZ ()
22416 {
22417 char **from, **to;
22418 for (to = from = environ; (*to = *from); from++)
22419 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22420 to++;
22421 }
22422 char TZ_GMT0[] = "TZ=GMT0";
22423 char TZ_PST8[] = "TZ=PST8";
22424 main()
22425 {
22426 time_t now = time ((time_t *) 0);
22427 int hour_GMT0, hour_unset;
22428 if (putenv (TZ_GMT0) != 0)
22429 exit (1);
22430 hour_GMT0 = localtime (&now)->tm_hour;
22431 unset_TZ ();
22432 hour_unset = localtime (&now)->tm_hour;
22433 if (putenv (TZ_PST8) != 0)
22434 exit (1);
22435 if (localtime (&now)->tm_hour == hour_GMT0)
22436 exit (1);
22437 unset_TZ ();
22438 if (localtime (&now)->tm_hour != hour_unset)
22439 exit (1);
22440 exit (0);
22441 }
22442 _ACEOF
22443 rm -f conftest$ac_exeext
22444 if { (ac_try="$ac_link"
22445 case "(($ac_try" in
22446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22447 *) ac_try_echo=$ac_try;;
22448 esac
22449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22450 (eval "$ac_link") 2>&5
22451 ac_status=$?
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22454 { (case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22457 esac
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_try") 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22463 emacs_cv_localtime_cache=no
22464 else
22465 echo "$as_me: program exited with status $ac_status" >&5
22466 echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22468
22469 ( exit $ac_status )
22470 emacs_cv_localtime_cache=yes
22471 fi
22472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22473 fi
22474
22475
22476 else
22477 # If we lack tzset, report that localtime does not cache TZ,
22478 # since we can't invalidate the cache if we don't have tzset.
22479 emacs_cv_localtime_cache=no
22480 fi
22481 fi
22482 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22483 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22484 if test $emacs_cv_localtime_cache = yes; then
22485
22486 cat >>confdefs.h <<\_ACEOF
22487 #define LOCALTIME_CACHE 1
22488 _ACEOF
22489
22490 fi
22491
22492 if test "x$HAVE_TIMEVAL" = xyes; then
22493
22494 for ac_func in gettimeofday
22495 do
22496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22500 echo $ECHO_N "(cached) $ECHO_C" >&6
22501 else
22502 cat >conftest.$ac_ext <<_ACEOF
22503 /* confdefs.h. */
22504 _ACEOF
22505 cat confdefs.h >>conftest.$ac_ext
22506 cat >>conftest.$ac_ext <<_ACEOF
22507 /* end confdefs.h. */
22508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22510 #define $ac_func innocuous_$ac_func
22511
22512 /* System header to define __stub macros and hopefully few prototypes,
22513 which can conflict with char $ac_func (); below.
22514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22515 <limits.h> exists even on freestanding compilers. */
22516
22517 #ifdef __STDC__
22518 # include <limits.h>
22519 #else
22520 # include <assert.h>
22521 #endif
22522
22523 #undef $ac_func
22524
22525 /* Override any GCC internal prototype to avoid an error.
22526 Use char because int might match the return type of a GCC
22527 builtin and then its argument prototype would still apply. */
22528 #ifdef __cplusplus
22529 extern "C"
22530 #endif
22531 char $ac_func ();
22532 /* The GNU C library defines this for functions which it implements
22533 to always fail with ENOSYS. Some functions are actually named
22534 something starting with __ and the normal name is an alias. */
22535 #if defined __stub_$ac_func || defined __stub___$ac_func
22536 choke me
22537 #endif
22538
22539 int
22540 main ()
22541 {
22542 return $ac_func ();
22543 ;
22544 return 0;
22545 }
22546 _ACEOF
22547 rm -f conftest.$ac_objext conftest$ac_exeext
22548 if { (ac_try="$ac_link"
22549 case "(($ac_try" in
22550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551 *) ac_try_echo=$ac_try;;
22552 esac
22553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22554 (eval "$ac_link") 2>conftest.er1
22555 ac_status=$?
22556 grep -v '^ *+' conftest.er1 >conftest.err
22557 rm -f conftest.er1
22558 cat conftest.err >&5
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); } && {
22561 test -z "$ac_c_werror_flag" ||
22562 test ! -s conftest.err
22563 } && test -s conftest$ac_exeext &&
22564 $as_test_x conftest$ac_exeext; then
22565 eval "$as_ac_var=yes"
22566 else
22567 echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22569
22570 eval "$as_ac_var=no"
22571 fi
22572
22573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22574 conftest$ac_exeext conftest.$ac_ext
22575 fi
22576 ac_res=`eval echo '${'$as_ac_var'}'`
22577 { echo "$as_me:$LINENO: result: $ac_res" >&5
22578 echo "${ECHO_T}$ac_res" >&6; }
22579 if test `eval echo '${'$as_ac_var'}'` = yes; then
22580 cat >>confdefs.h <<_ACEOF
22581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22582 _ACEOF
22583
22584 fi
22585 done
22586
22587 if test $ac_cv_func_gettimeofday = yes; then
22588 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22589 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22590 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22591 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 else
22593 cat >conftest.$ac_ext <<_ACEOF
22594 /* confdefs.h. */
22595 _ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h. */
22599
22600 #ifdef TIME_WITH_SYS_TIME
22601 #include <sys/time.h>
22602 #include <time.h>
22603 #else
22604 #ifdef HAVE_SYS_TIME_H
22605 #include <sys/time.h>
22606 #else
22607 #include <time.h>
22608 #endif
22609 #endif
22610 int
22611 main ()
22612 {
22613 struct timeval time;
22614 gettimeofday (&time, 0);
22615 ;
22616 return 0;
22617 }
22618 _ACEOF
22619 rm -f conftest.$ac_objext
22620 if { (ac_try="$ac_compile"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_compile") 2>conftest.er1
22627 ac_status=$?
22628 grep -v '^ *+' conftest.er1 >conftest.err
22629 rm -f conftest.er1
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest.$ac_objext; then
22636 emacs_cv_gettimeofday_two_arguments=yes
22637 else
22638 echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22640
22641 emacs_cv_gettimeofday_two_arguments=no
22642 fi
22643
22644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22645 fi
22646 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22647 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22648 if test $emacs_cv_gettimeofday_two_arguments = no; then
22649
22650 cat >>confdefs.h <<\_ACEOF
22651 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22652 _ACEOF
22653
22654 fi
22655 fi
22656 fi
22657
22658 ok_so_far=yes
22659 { echo "$as_me:$LINENO: checking for socket" >&5
22660 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22661 if test "${ac_cv_func_socket+set}" = set; then
22662 echo $ECHO_N "(cached) $ECHO_C" >&6
22663 else
22664 cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h. */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h. */
22670 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22672 #define socket innocuous_socket
22673
22674 /* System header to define __stub macros and hopefully few prototypes,
22675 which can conflict with char socket (); below.
22676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22677 <limits.h> exists even on freestanding compilers. */
22678
22679 #ifdef __STDC__
22680 # include <limits.h>
22681 #else
22682 # include <assert.h>
22683 #endif
22684
22685 #undef socket
22686
22687 /* Override any GCC internal prototype to avoid an error.
22688 Use char because int might match the return type of a GCC
22689 builtin and then its argument prototype would still apply. */
22690 #ifdef __cplusplus
22691 extern "C"
22692 #endif
22693 char socket ();
22694 /* The GNU C library defines this for functions which it implements
22695 to always fail with ENOSYS. Some functions are actually named
22696 something starting with __ and the normal name is an alias. */
22697 #if defined __stub_socket || defined __stub___socket
22698 choke me
22699 #endif
22700
22701 int
22702 main ()
22703 {
22704 return socket ();
22705 ;
22706 return 0;
22707 }
22708 _ACEOF
22709 rm -f conftest.$ac_objext conftest$ac_exeext
22710 if { (ac_try="$ac_link"
22711 case "(($ac_try" in
22712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22713 *) ac_try_echo=$ac_try;;
22714 esac
22715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22716 (eval "$ac_link") 2>conftest.er1
22717 ac_status=$?
22718 grep -v '^ *+' conftest.er1 >conftest.err
22719 rm -f conftest.er1
22720 cat conftest.err >&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); } && {
22723 test -z "$ac_c_werror_flag" ||
22724 test ! -s conftest.err
22725 } && test -s conftest$ac_exeext &&
22726 $as_test_x conftest$ac_exeext; then
22727 ac_cv_func_socket=yes
22728 else
22729 echo "$as_me: failed program was:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22731
22732 ac_cv_func_socket=no
22733 fi
22734
22735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22736 conftest$ac_exeext conftest.$ac_ext
22737 fi
22738 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22739 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22740 if test $ac_cv_func_socket = yes; then
22741 :
22742 else
22743 ok_so_far=no
22744 fi
22745
22746 if test $ok_so_far = yes; then
22747 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22748 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22749 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22750 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
22752 fi
22753 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22754 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22755 else
22756 # Is the header compilable?
22757 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22758 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22759 cat >conftest.$ac_ext <<_ACEOF
22760 /* confdefs.h. */
22761 _ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h. */
22765 $ac_includes_default
22766 #include <netinet/in.h>
22767 _ACEOF
22768 rm -f conftest.$ac_objext
22769 if { (ac_try="$ac_compile"
22770 case "(($ac_try" in
22771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772 *) ac_try_echo=$ac_try;;
22773 esac
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775 (eval "$ac_compile") 2>conftest.er1
22776 ac_status=$?
22777 grep -v '^ *+' conftest.er1 >conftest.err
22778 rm -f conftest.er1
22779 cat conftest.err >&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } && {
22782 test -z "$ac_c_werror_flag" ||
22783 test ! -s conftest.err
22784 } && test -s conftest.$ac_objext; then
22785 ac_header_compiler=yes
22786 else
22787 echo "$as_me: failed program was:" >&5
22788 sed 's/^/| /' conftest.$ac_ext >&5
22789
22790 ac_header_compiler=no
22791 fi
22792
22793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22795 echo "${ECHO_T}$ac_header_compiler" >&6; }
22796
22797 # Is the header present?
22798 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22799 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22800 cat >conftest.$ac_ext <<_ACEOF
22801 /* confdefs.h. */
22802 _ACEOF
22803 cat confdefs.h >>conftest.$ac_ext
22804 cat >>conftest.$ac_ext <<_ACEOF
22805 /* end confdefs.h. */
22806 #include <netinet/in.h>
22807 _ACEOF
22808 if { (ac_try="$ac_cpp conftest.$ac_ext"
22809 case "(($ac_try" in
22810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22811 *) ac_try_echo=$ac_try;;
22812 esac
22813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22815 ac_status=$?
22816 grep -v '^ *+' conftest.er1 >conftest.err
22817 rm -f conftest.er1
22818 cat conftest.err >&5
22819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820 (exit $ac_status); } >/dev/null && {
22821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22822 test ! -s conftest.err
22823 }; then
22824 ac_header_preproc=yes
22825 else
22826 echo "$as_me: failed program was:" >&5
22827 sed 's/^/| /' conftest.$ac_ext >&5
22828
22829 ac_header_preproc=no
22830 fi
22831
22832 rm -f conftest.err conftest.$ac_ext
22833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22834 echo "${ECHO_T}$ac_header_preproc" >&6; }
22835
22836 # So? What about this header?
22837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22838 yes:no: )
22839 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22840 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22841 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22842 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22843 ac_header_preproc=yes
22844 ;;
22845 no:yes:* )
22846 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22847 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22848 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22849 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22850 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22851 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22852 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22853 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22854 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22855 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22856 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22857 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22858
22859 ;;
22860 esac
22861 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22862 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22863 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22864 echo $ECHO_N "(cached) $ECHO_C" >&6
22865 else
22866 ac_cv_header_netinet_in_h=$ac_header_preproc
22867 fi
22868 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22869 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22870
22871 fi
22872 if test $ac_cv_header_netinet_in_h = yes; then
22873 :
22874 else
22875 ok_so_far=no
22876 fi
22877
22878
22879 fi
22880 if test $ok_so_far = yes; then
22881 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22882 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22883 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22884 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22885 echo $ECHO_N "(cached) $ECHO_C" >&6
22886 fi
22887 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22888 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22889 else
22890 # Is the header compilable?
22891 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22892 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22893 cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h. */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 $ac_includes_default
22900 #include <arpa/inet.h>
22901 _ACEOF
22902 rm -f conftest.$ac_objext
22903 if { (ac_try="$ac_compile"
22904 case "(($ac_try" in
22905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906 *) ac_try_echo=$ac_try;;
22907 esac
22908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22909 (eval "$ac_compile") 2>conftest.er1
22910 ac_status=$?
22911 grep -v '^ *+' conftest.er1 >conftest.err
22912 rm -f conftest.er1
22913 cat conftest.err >&5
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); } && {
22916 test -z "$ac_c_werror_flag" ||
22917 test ! -s conftest.err
22918 } && test -s conftest.$ac_objext; then
22919 ac_header_compiler=yes
22920 else
22921 echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22923
22924 ac_header_compiler=no
22925 fi
22926
22927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22929 echo "${ECHO_T}$ac_header_compiler" >&6; }
22930
22931 # Is the header present?
22932 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22933 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22934 cat >conftest.$ac_ext <<_ACEOF
22935 /* confdefs.h. */
22936 _ACEOF
22937 cat confdefs.h >>conftest.$ac_ext
22938 cat >>conftest.$ac_ext <<_ACEOF
22939 /* end confdefs.h. */
22940 #include <arpa/inet.h>
22941 _ACEOF
22942 if { (ac_try="$ac_cpp conftest.$ac_ext"
22943 case "(($ac_try" in
22944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22945 *) ac_try_echo=$ac_try;;
22946 esac
22947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22949 ac_status=$?
22950 grep -v '^ *+' conftest.er1 >conftest.err
22951 rm -f conftest.er1
22952 cat conftest.err >&5
22953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954 (exit $ac_status); } >/dev/null && {
22955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22956 test ! -s conftest.err
22957 }; then
22958 ac_header_preproc=yes
22959 else
22960 echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22962
22963 ac_header_preproc=no
22964 fi
22965
22966 rm -f conftest.err conftest.$ac_ext
22967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22968 echo "${ECHO_T}$ac_header_preproc" >&6; }
22969
22970 # So? What about this header?
22971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22972 yes:no: )
22973 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22974 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22975 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22976 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22977 ac_header_preproc=yes
22978 ;;
22979 no:yes:* )
22980 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22981 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22982 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22983 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22984 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22985 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22986 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22987 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22988 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22989 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22990 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22991 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22992
22993 ;;
22994 esac
22995 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22996 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22997 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22998 echo $ECHO_N "(cached) $ECHO_C" >&6
22999 else
23000 ac_cv_header_arpa_inet_h=$ac_header_preproc
23001 fi
23002 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
23003 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23004
23005 fi
23006 if test $ac_cv_header_arpa_inet_h = yes; then
23007 :
23008 else
23009 ok_so_far=no
23010 fi
23011
23012
23013 fi
23014 if test $ok_so_far = yes; then
23015
23016 cat >>confdefs.h <<\_ACEOF
23017 #define HAVE_INET_SOCKETS 1
23018 _ACEOF
23019
23020 fi
23021
23022
23023 for ac_header in sys/ioctl.h
23024 do
23025 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23030 echo $ECHO_N "(cached) $ECHO_C" >&6
23031 fi
23032 ac_res=`eval echo '${'$as_ac_Header'}'`
23033 { echo "$as_me:$LINENO: result: $ac_res" >&5
23034 echo "${ECHO_T}$ac_res" >&6; }
23035 else
23036 # Is the header compilable?
23037 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23039 cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h. */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 $ac_includes_default
23046 #include <$ac_header>
23047 _ACEOF
23048 rm -f conftest.$ac_objext
23049 if { (ac_try="$ac_compile"
23050 case "(($ac_try" in
23051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23052 *) ac_try_echo=$ac_try;;
23053 esac
23054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23055 (eval "$ac_compile") 2>conftest.er1
23056 ac_status=$?
23057 grep -v '^ *+' conftest.er1 >conftest.err
23058 rm -f conftest.er1
23059 cat conftest.err >&5
23060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23061 (exit $ac_status); } && {
23062 test -z "$ac_c_werror_flag" ||
23063 test ! -s conftest.err
23064 } && test -s conftest.$ac_objext; then
23065 ac_header_compiler=yes
23066 else
23067 echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23069
23070 ac_header_compiler=no
23071 fi
23072
23073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23074 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23075 echo "${ECHO_T}$ac_header_compiler" >&6; }
23076
23077 # Is the header present?
23078 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23079 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23080 cat >conftest.$ac_ext <<_ACEOF
23081 /* confdefs.h. */
23082 _ACEOF
23083 cat confdefs.h >>conftest.$ac_ext
23084 cat >>conftest.$ac_ext <<_ACEOF
23085 /* end confdefs.h. */
23086 #include <$ac_header>
23087 _ACEOF
23088 if { (ac_try="$ac_cpp conftest.$ac_ext"
23089 case "(($ac_try" in
23090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23091 *) ac_try_echo=$ac_try;;
23092 esac
23093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23095 ac_status=$?
23096 grep -v '^ *+' conftest.er1 >conftest.err
23097 rm -f conftest.er1
23098 cat conftest.err >&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); } >/dev/null && {
23101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23102 test ! -s conftest.err
23103 }; then
23104 ac_header_preproc=yes
23105 else
23106 echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23108
23109 ac_header_preproc=no
23110 fi
23111
23112 rm -f conftest.err conftest.$ac_ext
23113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23114 echo "${ECHO_T}$ac_header_preproc" >&6; }
23115
23116 # So? What about this header?
23117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23118 yes:no: )
23119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23123 ac_header_preproc=yes
23124 ;;
23125 no:yes:* )
23126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23138
23139 ;;
23140 esac
23141 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23143 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23144 echo $ECHO_N "(cached) $ECHO_C" >&6
23145 else
23146 eval "$as_ac_Header=\$ac_header_preproc"
23147 fi
23148 ac_res=`eval echo '${'$as_ac_Header'}'`
23149 { echo "$as_me:$LINENO: result: $ac_res" >&5
23150 echo "${ECHO_T}$ac_res" >&6; }
23151
23152 fi
23153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23154 cat >>confdefs.h <<_ACEOF
23155 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23156 _ACEOF
23157
23158 fi
23159
23160 done
23161
23162
23163 if test -f /usr/lpp/X11/bin/smt.exp; then
23164
23165 cat >>confdefs.h <<\_ACEOF
23166 #define HAVE_AIX_SMT_EXP 1
23167 _ACEOF
23168
23169 fi
23170
23171 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23172 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23173 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23174 { echo "$as_me:$LINENO: result: yes" >&5
23175 echo "${ECHO_T}yes" >&6; }
23176
23177 cat >>confdefs.h <<\_ACEOF
23178 #define HAVE_DEV_PTMX 1
23179 _ACEOF
23180
23181 else
23182 { echo "$as_me:$LINENO: result: no" >&5
23183 echo "${ECHO_T}no" >&6; }
23184 fi
23185
23186 { echo "$as_me:$LINENO: checking for pid_t" >&5
23187 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23188 if test "${ac_cv_type_pid_t+set}" = set; then
23189 echo $ECHO_N "(cached) $ECHO_C" >&6
23190 else
23191 cat >conftest.$ac_ext <<_ACEOF
23192 /* confdefs.h. */
23193 _ACEOF
23194 cat confdefs.h >>conftest.$ac_ext
23195 cat >>conftest.$ac_ext <<_ACEOF
23196 /* end confdefs.h. */
23197 $ac_includes_default
23198 typedef pid_t ac__type_new_;
23199 int
23200 main ()
23201 {
23202 if ((ac__type_new_ *) 0)
23203 return 0;
23204 if (sizeof (ac__type_new_))
23205 return 0;
23206 ;
23207 return 0;
23208 }
23209 _ACEOF
23210 rm -f conftest.$ac_objext
23211 if { (ac_try="$ac_compile"
23212 case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23215 esac
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_compile") 2>conftest.er1
23218 ac_status=$?
23219 grep -v '^ *+' conftest.er1 >conftest.err
23220 rm -f conftest.er1
23221 cat conftest.err >&5
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); } && {
23224 test -z "$ac_c_werror_flag" ||
23225 test ! -s conftest.err
23226 } && test -s conftest.$ac_objext; then
23227 ac_cv_type_pid_t=yes
23228 else
23229 echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23231
23232 ac_cv_type_pid_t=no
23233 fi
23234
23235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236 fi
23237 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23238 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23239 if test $ac_cv_type_pid_t = yes; then
23240 :
23241 else
23242
23243 cat >>confdefs.h <<_ACEOF
23244 #define pid_t int
23245 _ACEOF
23246
23247 fi
23248
23249
23250 for ac_header in vfork.h
23251 do
23252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23257 echo $ECHO_N "(cached) $ECHO_C" >&6
23258 fi
23259 ac_res=`eval echo '${'$as_ac_Header'}'`
23260 { echo "$as_me:$LINENO: result: $ac_res" >&5
23261 echo "${ECHO_T}$ac_res" >&6; }
23262 else
23263 # Is the header compilable?
23264 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23266 cat >conftest.$ac_ext <<_ACEOF
23267 /* confdefs.h. */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 $ac_includes_default
23273 #include <$ac_header>
23274 _ACEOF
23275 rm -f conftest.$ac_objext
23276 if { (ac_try="$ac_compile"
23277 case "(($ac_try" in
23278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23279 *) ac_try_echo=$ac_try;;
23280 esac
23281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23282 (eval "$ac_compile") 2>conftest.er1
23283 ac_status=$?
23284 grep -v '^ *+' conftest.er1 >conftest.err
23285 rm -f conftest.er1
23286 cat conftest.err >&5
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); } && {
23289 test -z "$ac_c_werror_flag" ||
23290 test ! -s conftest.err
23291 } && test -s conftest.$ac_objext; then
23292 ac_header_compiler=yes
23293 else
23294 echo "$as_me: failed program was:" >&5
23295 sed 's/^/| /' conftest.$ac_ext >&5
23296
23297 ac_header_compiler=no
23298 fi
23299
23300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23302 echo "${ECHO_T}$ac_header_compiler" >&6; }
23303
23304 # Is the header present?
23305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23307 cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h. */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23313 #include <$ac_header>
23314 _ACEOF
23315 if { (ac_try="$ac_cpp conftest.$ac_ext"
23316 case "(($ac_try" in
23317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318 *) ac_try_echo=$ac_try;;
23319 esac
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23322 ac_status=$?
23323 grep -v '^ *+' conftest.er1 >conftest.err
23324 rm -f conftest.er1
23325 cat conftest.err >&5
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); } >/dev/null && {
23328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23329 test ! -s conftest.err
23330 }; then
23331 ac_header_preproc=yes
23332 else
23333 echo "$as_me: failed program was:" >&5
23334 sed 's/^/| /' conftest.$ac_ext >&5
23335
23336 ac_header_preproc=no
23337 fi
23338
23339 rm -f conftest.err conftest.$ac_ext
23340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23341 echo "${ECHO_T}$ac_header_preproc" >&6; }
23342
23343 # So? What about this header?
23344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23345 yes:no: )
23346 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23350 ac_header_preproc=yes
23351 ;;
23352 no:yes:* )
23353 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23355 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23356 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23357 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23359 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23360 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23363 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23365
23366 ;;
23367 esac
23368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23371 echo $ECHO_N "(cached) $ECHO_C" >&6
23372 else
23373 eval "$as_ac_Header=\$ac_header_preproc"
23374 fi
23375 ac_res=`eval echo '${'$as_ac_Header'}'`
23376 { echo "$as_me:$LINENO: result: $ac_res" >&5
23377 echo "${ECHO_T}$ac_res" >&6; }
23378
23379 fi
23380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23381 cat >>confdefs.h <<_ACEOF
23382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23383 _ACEOF
23384
23385 fi
23386
23387 done
23388
23389
23390
23391 for ac_func in fork vfork
23392 do
23393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23394 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23396 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23397 echo $ECHO_N "(cached) $ECHO_C" >&6
23398 else
23399 cat >conftest.$ac_ext <<_ACEOF
23400 /* confdefs.h. */
23401 _ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h. */
23405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23407 #define $ac_func innocuous_$ac_func
23408
23409 /* System header to define __stub macros and hopefully few prototypes,
23410 which can conflict with char $ac_func (); below.
23411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23412 <limits.h> exists even on freestanding compilers. */
23413
23414 #ifdef __STDC__
23415 # include <limits.h>
23416 #else
23417 # include <assert.h>
23418 #endif
23419
23420 #undef $ac_func
23421
23422 /* Override any GCC internal prototype to avoid an error.
23423 Use char because int might match the return type of a GCC
23424 builtin and then its argument prototype would still apply. */
23425 #ifdef __cplusplus
23426 extern "C"
23427 #endif
23428 char $ac_func ();
23429 /* The GNU C library defines this for functions which it implements
23430 to always fail with ENOSYS. Some functions are actually named
23431 something starting with __ and the normal name is an alias. */
23432 #if defined __stub_$ac_func || defined __stub___$ac_func
23433 choke me
23434 #endif
23435
23436 int
23437 main ()
23438 {
23439 return $ac_func ();
23440 ;
23441 return 0;
23442 }
23443 _ACEOF
23444 rm -f conftest.$ac_objext conftest$ac_exeext
23445 if { (ac_try="$ac_link"
23446 case "(($ac_try" in
23447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23448 *) ac_try_echo=$ac_try;;
23449 esac
23450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23451 (eval "$ac_link") 2>conftest.er1
23452 ac_status=$?
23453 grep -v '^ *+' conftest.er1 >conftest.err
23454 rm -f conftest.er1
23455 cat conftest.err >&5
23456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23457 (exit $ac_status); } && {
23458 test -z "$ac_c_werror_flag" ||
23459 test ! -s conftest.err
23460 } && test -s conftest$ac_exeext &&
23461 $as_test_x conftest$ac_exeext; then
23462 eval "$as_ac_var=yes"
23463 else
23464 echo "$as_me: failed program was:" >&5
23465 sed 's/^/| /' conftest.$ac_ext >&5
23466
23467 eval "$as_ac_var=no"
23468 fi
23469
23470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23471 conftest$ac_exeext conftest.$ac_ext
23472 fi
23473 ac_res=`eval echo '${'$as_ac_var'}'`
23474 { echo "$as_me:$LINENO: result: $ac_res" >&5
23475 echo "${ECHO_T}$ac_res" >&6; }
23476 if test `eval echo '${'$as_ac_var'}'` = yes; then
23477 cat >>confdefs.h <<_ACEOF
23478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23479 _ACEOF
23480
23481 fi
23482 done
23483
23484 if test "x$ac_cv_func_fork" = xyes; then
23485 { echo "$as_me:$LINENO: checking for working fork" >&5
23486 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23487 if test "${ac_cv_func_fork_works+set}" = set; then
23488 echo $ECHO_N "(cached) $ECHO_C" >&6
23489 else
23490 if test "$cross_compiling" = yes; then
23491 ac_cv_func_fork_works=cross
23492 else
23493 cat >conftest.$ac_ext <<_ACEOF
23494 /* confdefs.h. */
23495 _ACEOF
23496 cat confdefs.h >>conftest.$ac_ext
23497 cat >>conftest.$ac_ext <<_ACEOF
23498 /* end confdefs.h. */
23499 $ac_includes_default
23500 int
23501 main ()
23502 {
23503
23504 /* By Ruediger Kuhlmann. */
23505 return fork () < 0;
23506
23507 ;
23508 return 0;
23509 }
23510 _ACEOF
23511 rm -f conftest$ac_exeext
23512 if { (ac_try="$ac_link"
23513 case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23516 esac
23517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_link") 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23522 { (case "(($ac_try" in
23523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23525 esac
23526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23527 (eval "$ac_try") 2>&5
23528 ac_status=$?
23529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); }; }; then
23531 ac_cv_func_fork_works=yes
23532 else
23533 echo "$as_me: program exited with status $ac_status" >&5
23534 echo "$as_me: failed program was:" >&5
23535 sed 's/^/| /' conftest.$ac_ext >&5
23536
23537 ( exit $ac_status )
23538 ac_cv_func_fork_works=no
23539 fi
23540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23541 fi
23542
23543
23544 fi
23545 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23546 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23547
23548 else
23549 ac_cv_func_fork_works=$ac_cv_func_fork
23550 fi
23551 if test "x$ac_cv_func_fork_works" = xcross; then
23552 case $host in
23553 *-*-amigaos* | *-*-msdosdjgpp*)
23554 # Override, as these systems have only a dummy fork() stub
23555 ac_cv_func_fork_works=no
23556 ;;
23557 *)
23558 ac_cv_func_fork_works=yes
23559 ;;
23560 esac
23561 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23562 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23563 fi
23564 ac_cv_func_vfork_works=$ac_cv_func_vfork
23565 if test "x$ac_cv_func_vfork" = xyes; then
23566 { echo "$as_me:$LINENO: checking for working vfork" >&5
23567 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23568 if test "${ac_cv_func_vfork_works+set}" = set; then
23569 echo $ECHO_N "(cached) $ECHO_C" >&6
23570 else
23571 if test "$cross_compiling" = yes; then
23572 ac_cv_func_vfork_works=cross
23573 else
23574 cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h. */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 /* Thanks to Paul Eggert for this test. */
23581 $ac_includes_default
23582 #include <sys/wait.h>
23583 #ifdef HAVE_VFORK_H
23584 # include <vfork.h>
23585 #endif
23586 /* On some sparc systems, changes by the child to local and incoming
23587 argument registers are propagated back to the parent. The compiler
23588 is told about this with #include <vfork.h>, but some compilers
23589 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23590 static variable whose address is put into a register that is
23591 clobbered by the vfork. */
23592 static void
23593 #ifdef __cplusplus
23594 sparc_address_test (int arg)
23595 # else
23596 sparc_address_test (arg) int arg;
23597 #endif
23598 {
23599 static pid_t child;
23600 if (!child) {
23601 child = vfork ();
23602 if (child < 0) {
23603 perror ("vfork");
23604 _exit(2);
23605 }
23606 if (!child) {
23607 arg = getpid();
23608 write(-1, "", 0);
23609 _exit (arg);
23610 }
23611 }
23612 }
23613
23614 int
23615 main ()
23616 {
23617 pid_t parent = getpid ();
23618 pid_t child;
23619
23620 sparc_address_test (0);
23621
23622 child = vfork ();
23623
23624 if (child == 0) {
23625 /* Here is another test for sparc vfork register problems. This
23626 test uses lots of local variables, at least as many local
23627 variables as main has allocated so far including compiler
23628 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23629 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23630 reuse the register of parent for one of the local variables,
23631 since it will think that parent can't possibly be used any more
23632 in this routine. Assigning to the local variable will thus
23633 munge parent in the parent process. */
23634 pid_t
23635 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23636 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23637 /* Convince the compiler that p..p7 are live; otherwise, it might
23638 use the same hardware register for all 8 local variables. */
23639 if (p != p1 || p != p2 || p != p3 || p != p4
23640 || p != p5 || p != p6 || p != p7)
23641 _exit(1);
23642
23643 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23644 from child file descriptors. If the child closes a descriptor
23645 before it execs or exits, this munges the parent's descriptor
23646 as well. Test for this by closing stdout in the child. */
23647 _exit(close(fileno(stdout)) != 0);
23648 } else {
23649 int status;
23650 struct stat st;
23651
23652 while (wait(&status) != child)
23653 ;
23654 return (
23655 /* Was there some problem with vforking? */
23656 child < 0
23657
23658 /* Did the child fail? (This shouldn't happen.) */
23659 || status
23660
23661 /* Did the vfork/compiler bug occur? */
23662 || parent != getpid()
23663
23664 /* Did the file descriptor bug occur? */
23665 || fstat(fileno(stdout), &st) != 0
23666 );
23667 }
23668 }
23669 _ACEOF
23670 rm -f conftest$ac_exeext
23671 if { (ac_try="$ac_link"
23672 case "(($ac_try" in
23673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23674 *) ac_try_echo=$ac_try;;
23675 esac
23676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23677 (eval "$ac_link") 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23681 { (case "(($ac_try" in
23682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23683 *) ac_try_echo=$ac_try;;
23684 esac
23685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23686 (eval "$ac_try") 2>&5
23687 ac_status=$?
23688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23689 (exit $ac_status); }; }; then
23690 ac_cv_func_vfork_works=yes
23691 else
23692 echo "$as_me: program exited with status $ac_status" >&5
23693 echo "$as_me: failed program was:" >&5
23694 sed 's/^/| /' conftest.$ac_ext >&5
23695
23696 ( exit $ac_status )
23697 ac_cv_func_vfork_works=no
23698 fi
23699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23700 fi
23701
23702
23703 fi
23704 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23705 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23706
23707 fi;
23708 if test "x$ac_cv_func_fork_works" = xcross; then
23709 ac_cv_func_vfork_works=$ac_cv_func_vfork
23710 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23711 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23712 fi
23713
23714 if test "x$ac_cv_func_vfork_works" = xyes; then
23715
23716 cat >>confdefs.h <<\_ACEOF
23717 #define HAVE_WORKING_VFORK 1
23718 _ACEOF
23719
23720 else
23721
23722 cat >>confdefs.h <<\_ACEOF
23723 #define vfork fork
23724 _ACEOF
23725
23726 fi
23727 if test "x$ac_cv_func_fork_works" = xyes; then
23728
23729 cat >>confdefs.h <<\_ACEOF
23730 #define HAVE_WORKING_FORK 1
23731 _ACEOF
23732
23733 fi
23734
23735
23736 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23737 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23738 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23739 echo $ECHO_N "(cached) $ECHO_C" >&6
23740 else
23741 cat >conftest.$ac_ext <<_ACEOF
23742 /* confdefs.h. */
23743 _ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h. */
23747 #include <langinfo.h>
23748 int
23749 main ()
23750 {
23751 char* cs = nl_langinfo(CODESET);
23752 ;
23753 return 0;
23754 }
23755 _ACEOF
23756 rm -f conftest.$ac_objext conftest$ac_exeext
23757 if { (ac_try="$ac_link"
23758 case "(($ac_try" in
23759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23761 esac
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763 (eval "$ac_link") 2>conftest.er1
23764 ac_status=$?
23765 grep -v '^ *+' conftest.er1 >conftest.err
23766 rm -f conftest.er1
23767 cat conftest.err >&5
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } && {
23770 test -z "$ac_c_werror_flag" ||
23771 test ! -s conftest.err
23772 } && test -s conftest$ac_exeext &&
23773 $as_test_x conftest$ac_exeext; then
23774 emacs_cv_langinfo_codeset=yes
23775 else
23776 echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23778
23779 emacs_cv_langinfo_codeset=no
23780 fi
23781
23782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23783 conftest$ac_exeext conftest.$ac_ext
23784
23785 fi
23786 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23787 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23788 if test $emacs_cv_langinfo_codeset = yes; then
23789
23790 cat >>confdefs.h <<\_ACEOF
23791 #define HAVE_LANGINFO_CODESET 1
23792 _ACEOF
23793
23794 fi
23795
23796 { echo "$as_me:$LINENO: checking for size_t" >&5
23797 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23798 if test "${ac_cv_type_size_t+set}" = set; then
23799 echo $ECHO_N "(cached) $ECHO_C" >&6
23800 else
23801 cat >conftest.$ac_ext <<_ACEOF
23802 /* confdefs.h. */
23803 _ACEOF
23804 cat confdefs.h >>conftest.$ac_ext
23805 cat >>conftest.$ac_ext <<_ACEOF
23806 /* end confdefs.h. */
23807 $ac_includes_default
23808 typedef size_t ac__type_new_;
23809 int
23810 main ()
23811 {
23812 if ((ac__type_new_ *) 0)
23813 return 0;
23814 if (sizeof (ac__type_new_))
23815 return 0;
23816 ;
23817 return 0;
23818 }
23819 _ACEOF
23820 rm -f conftest.$ac_objext
23821 if { (ac_try="$ac_compile"
23822 case "(($ac_try" in
23823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23824 *) ac_try_echo=$ac_try;;
23825 esac
23826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23827 (eval "$ac_compile") 2>conftest.er1
23828 ac_status=$?
23829 grep -v '^ *+' conftest.er1 >conftest.err
23830 rm -f conftest.er1
23831 cat conftest.err >&5
23832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833 (exit $ac_status); } && {
23834 test -z "$ac_c_werror_flag" ||
23835 test ! -s conftest.err
23836 } && test -s conftest.$ac_objext; then
23837 ac_cv_type_size_t=yes
23838 else
23839 echo "$as_me: failed program was:" >&5
23840 sed 's/^/| /' conftest.$ac_ext >&5
23841
23842 ac_cv_type_size_t=no
23843 fi
23844
23845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23846 fi
23847 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23848 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23849 if test $ac_cv_type_size_t = yes; then
23850
23851 cat >>confdefs.h <<_ACEOF
23852 #define HAVE_SIZE_T 1
23853 _ACEOF
23854
23855
23856 fi
23857
23858
23859 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23860 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23861 if test "${ac_cv_type_mbstate_t+set}" = set; then
23862 echo $ECHO_N "(cached) $ECHO_C" >&6
23863 else
23864 cat >conftest.$ac_ext <<_ACEOF
23865 /* confdefs.h. */
23866 _ACEOF
23867 cat confdefs.h >>conftest.$ac_ext
23868 cat >>conftest.$ac_ext <<_ACEOF
23869 /* end confdefs.h. */
23870 $ac_includes_default
23871 # include <wchar.h>
23872 int
23873 main ()
23874 {
23875 mbstate_t x; return sizeof x;
23876 ;
23877 return 0;
23878 }
23879 _ACEOF
23880 rm -f conftest.$ac_objext
23881 if { (ac_try="$ac_compile"
23882 case "(($ac_try" in
23883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23884 *) ac_try_echo=$ac_try;;
23885 esac
23886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23887 (eval "$ac_compile") 2>conftest.er1
23888 ac_status=$?
23889 grep -v '^ *+' conftest.er1 >conftest.err
23890 rm -f conftest.er1
23891 cat conftest.err >&5
23892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23893 (exit $ac_status); } && {
23894 test -z "$ac_c_werror_flag" ||
23895 test ! -s conftest.err
23896 } && test -s conftest.$ac_objext; then
23897 ac_cv_type_mbstate_t=yes
23898 else
23899 echo "$as_me: failed program was:" >&5
23900 sed 's/^/| /' conftest.$ac_ext >&5
23901
23902 ac_cv_type_mbstate_t=no
23903 fi
23904
23905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23906 fi
23907 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23908 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23909 if test $ac_cv_type_mbstate_t = yes; then
23910
23911 cat >>confdefs.h <<\_ACEOF
23912 #define HAVE_MBSTATE_T 1
23913 _ACEOF
23914
23915 else
23916
23917 cat >>confdefs.h <<\_ACEOF
23918 #define mbstate_t int
23919 _ACEOF
23920
23921 fi
23922
23923 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23924 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23925 if test "${emacs_cv_c_restrict+set}" = set; then
23926 echo $ECHO_N "(cached) $ECHO_C" >&6
23927 else
23928 cat >conftest.$ac_ext <<_ACEOF
23929 /* confdefs.h. */
23930 _ACEOF
23931 cat confdefs.h >>conftest.$ac_ext
23932 cat >>conftest.$ac_ext <<_ACEOF
23933 /* end confdefs.h. */
23934 void fred (int *restrict x);
23935 int
23936 main ()
23937 {
23938
23939 ;
23940 return 0;
23941 }
23942 _ACEOF
23943 rm -f conftest.$ac_objext
23944 if { (ac_try="$ac_compile"
23945 case "(($ac_try" in
23946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23947 *) ac_try_echo=$ac_try;;
23948 esac
23949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23950 (eval "$ac_compile") 2>conftest.er1
23951 ac_status=$?
23952 grep -v '^ *+' conftest.er1 >conftest.err
23953 rm -f conftest.er1
23954 cat conftest.err >&5
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); } && {
23957 test -z "$ac_c_werror_flag" ||
23958 test ! -s conftest.err
23959 } && test -s conftest.$ac_objext; then
23960 emacs_cv_c_restrict=yes
23961 else
23962 echo "$as_me: failed program was:" >&5
23963 sed 's/^/| /' conftest.$ac_ext >&5
23964
23965 cat >conftest.$ac_ext <<_ACEOF
23966 /* confdefs.h. */
23967 _ACEOF
23968 cat confdefs.h >>conftest.$ac_ext
23969 cat >>conftest.$ac_ext <<_ACEOF
23970 /* end confdefs.h. */
23971 void fred (int *__restrict x);
23972 int
23973 main ()
23974 {
23975
23976 ;
23977 return 0;
23978 }
23979 _ACEOF
23980 rm -f conftest.$ac_objext
23981 if { (ac_try="$ac_compile"
23982 case "(($ac_try" in
23983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23984 *) ac_try_echo=$ac_try;;
23985 esac
23986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23987 (eval "$ac_compile") 2>conftest.er1
23988 ac_status=$?
23989 grep -v '^ *+' conftest.er1 >conftest.err
23990 rm -f conftest.er1
23991 cat conftest.err >&5
23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23993 (exit $ac_status); } && {
23994 test -z "$ac_c_werror_flag" ||
23995 test ! -s conftest.err
23996 } && test -s conftest.$ac_objext; then
23997 emacs_cv_c_restrict=__restrict
23998 else
23999 echo "$as_me: failed program was:" >&5
24000 sed 's/^/| /' conftest.$ac_ext >&5
24001
24002 emacs_cv_c_restrict=no
24003 fi
24004
24005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24006 fi
24007
24008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24009 fi
24010 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24011 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24012 case "$emacs_cv_c_restrict" in
24013 yes) emacs_restrict=restrict;;
24014 no) emacs_restrict="";;
24015 *) emacs_restrict="$emacs_cv_c_restrict";;
24016 esac
24017 if test "$emacs_restrict" != __restrict; then
24018
24019 cat >>confdefs.h <<_ACEOF
24020 #define __restrict $emacs_restrict
24021 _ACEOF
24022
24023 fi
24024
24025 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24026 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24027 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24028 echo $ECHO_N "(cached) $ECHO_C" >&6
24029 else
24030 cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h. */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036 void fred (int x[__restrict]);
24037 int
24038 main ()
24039 {
24040
24041 ;
24042 return 0;
24043 }
24044 _ACEOF
24045 rm -f conftest.$ac_objext
24046 if { (ac_try="$ac_compile"
24047 case "(($ac_try" in
24048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24049 *) ac_try_echo=$ac_try;;
24050 esac
24051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24052 (eval "$ac_compile") 2>conftest.er1
24053 ac_status=$?
24054 grep -v '^ *+' conftest.er1 >conftest.err
24055 rm -f conftest.er1
24056 cat conftest.err >&5
24057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058 (exit $ac_status); } && {
24059 test -z "$ac_c_werror_flag" ||
24060 test ! -s conftest.err
24061 } && test -s conftest.$ac_objext; then
24062 emacs_cv_c_restrict_arr=yes
24063 else
24064 echo "$as_me: failed program was:" >&5
24065 sed 's/^/| /' conftest.$ac_ext >&5
24066
24067 emacs_cv_c_restrict_arr=no
24068 fi
24069
24070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24071 fi
24072 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24073 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24074 if test "$emacs_cv_c_restrict_arr" = yes; then
24075
24076 cat >>confdefs.h <<\_ACEOF
24077 #define __restrict_arr __restrict
24078 _ACEOF
24079
24080 fi
24081
24082
24083
24084 # Set up the CFLAGS for real compilation, so we can substitute it.
24085 CFLAGS="$REAL_CFLAGS"
24086 CPPFLAGS="$REAL_CPPFLAGS"
24087
24088 #### Find out which version of Emacs this is.
24089 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24090 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24091 if test x"${version}" = x; then
24092 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24093 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24094 { (exit 1); exit 1; }; }
24095 fi
24096
24097 ### Specify what sort of things we'll be editing into Makefile and config.h.
24098 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24099
24100
24101
24102
24103
24104
24105
24106
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134
24135
24136
24137
24138
24139
24140
24141
24142 cat >>confdefs.h <<_ACEOF
24143 #define EMACS_CONFIGURATION "${canonical}"
24144 _ACEOF
24145
24146
24147 cat >>confdefs.h <<_ACEOF
24148 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24149 _ACEOF
24150
24151
24152 cat >>confdefs.h <<_ACEOF
24153 #define config_machfile "${machfile}"
24154 _ACEOF
24155
24156
24157 cat >>confdefs.h <<_ACEOF
24158 #define config_opsysfile "${opsysfile}"
24159 _ACEOF
24160
24161
24162 cat >>confdefs.h <<_ACEOF
24163 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24164 _ACEOF
24165
24166
24167 cat >>confdefs.h <<_ACEOF
24168 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24169 _ACEOF
24170
24171
24172 cat >>confdefs.h <<_ACEOF
24173 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24174 _ACEOF
24175
24176
24177 cat >>confdefs.h <<_ACEOF
24178 #define UNEXEC_SRC ${UNEXEC_SRC}
24179 _ACEOF
24180
24181
24182 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24183
24184 cat >>confdefs.h <<\_ACEOF
24185 #define HAVE_X_WINDOWS 1
24186 _ACEOF
24187
24188 fi
24189 if test "${USE_X_TOOLKIT}" != "none" ; then
24190
24191 cat >>confdefs.h <<\_ACEOF
24192 #define USE_X_TOOLKIT 1
24193 _ACEOF
24194
24195 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24196
24197 cat >>confdefs.h <<\_ACEOF
24198 #define USE_LUCID 1
24199 _ACEOF
24200
24201 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24202
24203 cat >>confdefs.h <<\_ACEOF
24204 #define USE_MOTIF 1
24205 _ACEOF
24206
24207 fi
24208 fi
24209 if test "${HAVE_X11}" = "yes" ; then
24210
24211 cat >>confdefs.h <<\_ACEOF
24212 #define HAVE_X11 1
24213 _ACEOF
24214
24215 fi
24216 if test "${HAVE_MENUS}" = "yes" ; then
24217
24218 cat >>confdefs.h <<\_ACEOF
24219 #define HAVE_MENUS 1
24220 _ACEOF
24221
24222 fi
24223 if test "${GNU_MALLOC}" = "yes" ; then
24224
24225 cat >>confdefs.h <<\_ACEOF
24226 #define GNU_MALLOC 1
24227 _ACEOF
24228
24229 fi
24230 if test "${REL_ALLOC}" = "yes" ; then
24231
24232 cat >>confdefs.h <<\_ACEOF
24233 #define REL_ALLOC 1
24234 _ACEOF
24235
24236 fi
24237
24238
24239
24240
24241
24242
24243 #### Report on what we decided to do.
24244 #### Report GTK as a toolkit, even if it doesn't use Xt.
24245 #### It makes printing result more understandable as using GTK sets
24246 #### toolkit_scroll_bars to yes by default.
24247 if test "${HAVE_GTK}" = "yes"; then
24248 USE_X_TOOLKIT=GTK
24249 fi
24250
24251 echo "
24252 Configured for \`${canonical}'.
24253
24254 Where should the build process find the source code? ${srcdir}
24255 What operating system and machine description files should Emacs use?
24256 \`${opsysfile}' and \`${machfile}'
24257 What compiler should emacs be built with? ${CC} ${CFLAGS}
24258 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24259 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24260 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24261 What window system should Emacs use? ${window_system}
24262 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24263
24264 if test -n "${x_includes}"; then
24265 echo " Where do we find X Windows header files? ${x_includes}"
24266 else
24267 echo " Where do we find X Windows header files? Standard dirs"
24268 fi
24269 if test -n "${x_libraries}"; then
24270 echo " Where do we find X Windows libraries? ${x_libraries}"
24271 else
24272 echo " Where do we find X Windows libraries? Standard dirs"
24273 fi
24274
24275 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24276 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24277 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24278 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24279 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24280 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24281 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24282 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24283 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24284
24285 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24286 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24287 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24288 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24289
24290 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24291 echo
24292
24293 if test $USE_XASSERTS = yes; then
24294 echo " Compiling with asserts turned on."
24295 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24296 fi
24297
24298 echo
24299
24300 if test "$USE_X_TOOLKIT" = GTK; then
24301 case "$canonical" in
24302 *cygwin*)
24303 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24304 will probably get a crash on startup. If this happens, please use another
24305 toolkit for Emacs. See etc/PROBLEMS for more information."
24306 ;;
24307 esac
24308 fi
24309
24310 if test "$HAVE_NS" = "yes"; then
24311 echo
24312 echo "You must run \"make install\" in order to test the built application.
24313 The installed application will go to nextstep/Emacs.app and can be
24314 run or moved from there."
24315 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24316 echo "The application will be fully self-contained."
24317 else
24318 echo "The lisp resources for the application will be installed under ${prefix}.
24319 You may need to run \"make install\" with sudo. The application will fail
24320 to run if these resources are not installed."
24321 fi
24322 echo
24323 fi
24324
24325 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24326 echo "D-Bus integration has been tested for GNU/Linux only."
24327 echo
24328 fi
24329
24330
24331 # Remove any trailing slashes in these variables.
24332 test "${prefix}" != NONE &&
24333 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24334 test "${exec_prefix}" != NONE &&
24335 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24336
24337 # Now get this: Some word that is part of the ${srcdir} directory name
24338 # or the ${configuration} value might, just might, happen to be an
24339 # identifier like `sun4' or `i386' or something, and be predefined by
24340 # the C preprocessor to some helpful value like 1, or maybe the empty
24341 # string. Needless to say consequent macro substitutions are less
24342 # than conducive to the makefile finding the correct directory.
24343 cpp_undefs="`echo $srcdir $configuration $canonical |
24344 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24345 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24346
24347 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24348 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24349 ## from Makefile.c can correctly provide the arg `-traditional' to the
24350 ## C preprocessor.
24351
24352 cat >conftest.$ac_ext <<_ACEOF
24353 /* confdefs.h. */
24354 _ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h. */
24358 yes..yes
24359 _ACEOF
24360 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24361 $EGREP "yes..yes" >/dev/null 2>&1; then
24362 CPP_NEED_TRADITIONAL=no
24363 else
24364 CPP_NEED_TRADITIONAL=yes
24365 fi
24366 rm -f conftest*
24367
24368
24369 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"
24370
24371 ac_config_commands="$ac_config_commands default"
24372
24373 cat >confcache <<\_ACEOF
24374 # This file is a shell script that caches the results of configure
24375 # tests run on this system so they can be shared between configure
24376 # scripts and configure runs, see configure's option --config-cache.
24377 # It is not useful on other systems. If it contains results you don't
24378 # want to keep, you may remove or edit it.
24379 #
24380 # config.status only pays attention to the cache file if you give it
24381 # the --recheck option to rerun configure.
24382 #
24383 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24384 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24385 # following values.
24386
24387 _ACEOF
24388
24389 # The following way of writing the cache mishandles newlines in values,
24390 # but we know of no workaround that is simple, portable, and efficient.
24391 # So, we kill variables containing newlines.
24392 # Ultrix sh set writes to stderr and can't be redirected directly,
24393 # and sets the high bit in the cache file unless we assign to the vars.
24394 (
24395 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24396 eval ac_val=\$$ac_var
24397 case $ac_val in #(
24398 *${as_nl}*)
24399 case $ac_var in #(
24400 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24401 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24402 esac
24403 case $ac_var in #(
24404 _ | IFS | as_nl) ;; #(
24405 *) $as_unset $ac_var ;;
24406 esac ;;
24407 esac
24408 done
24409
24410 (set) 2>&1 |
24411 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24412 *${as_nl}ac_space=\ *)
24413 # `set' does not quote correctly, so add quotes (double-quote
24414 # substitution turns \\\\ into \\, and sed turns \\ into \).
24415 sed -n \
24416 "s/'/'\\\\''/g;
24417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24418 ;; #(
24419 *)
24420 # `set' quotes correctly as required by POSIX, so do not add quotes.
24421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24422 ;;
24423 esac |
24424 sort
24425 ) |
24426 sed '
24427 /^ac_cv_env_/b end
24428 t clear
24429 :clear
24430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24431 t end
24432 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24433 :end' >>confcache
24434 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24435 if test -w "$cache_file"; then
24436 test "x$cache_file" != "x/dev/null" &&
24437 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24438 echo "$as_me: updating cache $cache_file" >&6;}
24439 cat confcache >$cache_file
24440 else
24441 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24442 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24443 fi
24444 fi
24445 rm -f confcache
24446
24447 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24448 # Let make expand exec_prefix.
24449 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24450
24451 DEFS=-DHAVE_CONFIG_H
24452
24453 ac_libobjs=
24454 ac_ltlibobjs=
24455 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24456 # 1. Remove the extension, and $U if already installed.
24457 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24458 ac_i=`echo "$ac_i" | sed "$ac_script"`
24459 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24460 # will be set to the directory where LIBOBJS objects are built.
24461 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24462 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24463 done
24464 LIBOBJS=$ac_libobjs
24465
24466 LTLIBOBJS=$ac_ltlibobjs
24467
24468
24469
24470 : ${CONFIG_STATUS=./config.status}
24471 ac_clean_files_save=$ac_clean_files
24472 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24473 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24474 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24475 cat >$CONFIG_STATUS <<_ACEOF
24476 #! $SHELL
24477 # Generated by $as_me.
24478 # Run this file to recreate the current configuration.
24479 # Compiler output produced by configure, useful for debugging
24480 # configure, is in config.log if it exists.
24481
24482 debug=false
24483 ac_cs_recheck=false
24484 ac_cs_silent=false
24485 SHELL=\${CONFIG_SHELL-$SHELL}
24486 _ACEOF
24487
24488 cat >>$CONFIG_STATUS <<\_ACEOF
24489 ## --------------------- ##
24490 ## M4sh Initialization. ##
24491 ## --------------------- ##
24492
24493 # Be more Bourne compatible
24494 DUALCASE=1; export DUALCASE # for MKS sh
24495 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24496 emulate sh
24497 NULLCMD=:
24498 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24499 # is contrary to our usage. Disable this feature.
24500 alias -g '${1+"$@"}'='"$@"'
24501 setopt NO_GLOB_SUBST
24502 else
24503 case `(set -o) 2>/dev/null` in
24504 *posix*) set -o posix ;;
24505 esac
24506
24507 fi
24508
24509
24510
24511
24512 # PATH needs CR
24513 # Avoid depending upon Character Ranges.
24514 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24515 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24516 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24517 as_cr_digits='0123456789'
24518 as_cr_alnum=$as_cr_Letters$as_cr_digits
24519
24520 # The user is always right.
24521 if test "${PATH_SEPARATOR+set}" != set; then
24522 echo "#! /bin/sh" >conf$$.sh
24523 echo "exit 0" >>conf$$.sh
24524 chmod +x conf$$.sh
24525 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24526 PATH_SEPARATOR=';'
24527 else
24528 PATH_SEPARATOR=:
24529 fi
24530 rm -f conf$$.sh
24531 fi
24532
24533 # Support unset when possible.
24534 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24535 as_unset=unset
24536 else
24537 as_unset=false
24538 fi
24539
24540
24541 # IFS
24542 # We need space, tab and new line, in precisely that order. Quoting is
24543 # there to prevent editors from complaining about space-tab.
24544 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24545 # splitting by setting IFS to empty value.)
24546 as_nl='
24547 '
24548 IFS=" "" $as_nl"
24549
24550 # Find who we are. Look in the path if we contain no directory separator.
24551 case $0 in
24552 *[\\/]* ) as_myself=$0 ;;
24553 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24554 for as_dir in $PATH
24555 do
24556 IFS=$as_save_IFS
24557 test -z "$as_dir" && as_dir=.
24558 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24559 done
24560 IFS=$as_save_IFS
24561
24562 ;;
24563 esac
24564 # We did not find ourselves, most probably we were run as `sh COMMAND'
24565 # in which case we are not to be found in the path.
24566 if test "x$as_myself" = x; then
24567 as_myself=$0
24568 fi
24569 if test ! -f "$as_myself"; then
24570 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24571 { (exit 1); exit 1; }
24572 fi
24573
24574 # Work around bugs in pre-3.0 UWIN ksh.
24575 for as_var in ENV MAIL MAILPATH
24576 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24577 done
24578 PS1='$ '
24579 PS2='> '
24580 PS4='+ '
24581
24582 # NLS nuisances.
24583 for as_var in \
24584 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24585 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24586 LC_TELEPHONE LC_TIME
24587 do
24588 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24589 eval $as_var=C; export $as_var
24590 else
24591 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24592 fi
24593 done
24594
24595 # Required to use basename.
24596 if expr a : '\(a\)' >/dev/null 2>&1 &&
24597 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24598 as_expr=expr
24599 else
24600 as_expr=false
24601 fi
24602
24603 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24604 as_basename=basename
24605 else
24606 as_basename=false
24607 fi
24608
24609
24610 # Name of the executable.
24611 as_me=`$as_basename -- "$0" ||
24612 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24613 X"$0" : 'X\(//\)$' \| \
24614 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24615 echo X/"$0" |
24616 sed '/^.*\/\([^/][^/]*\)\/*$/{
24617 s//\1/
24618 q
24619 }
24620 /^X\/\(\/\/\)$/{
24621 s//\1/
24622 q
24623 }
24624 /^X\/\(\/\).*/{
24625 s//\1/
24626 q
24627 }
24628 s/.*/./; q'`
24629
24630 # CDPATH.
24631 $as_unset CDPATH
24632
24633
24634
24635 as_lineno_1=$LINENO
24636 as_lineno_2=$LINENO
24637 test "x$as_lineno_1" != "x$as_lineno_2" &&
24638 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24639
24640 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24641 # uniformly replaced by the line number. The first 'sed' inserts a
24642 # line-number line after each line using $LINENO; the second 'sed'
24643 # does the real work. The second script uses 'N' to pair each
24644 # line-number line with the line containing $LINENO, and appends
24645 # trailing '-' during substitution so that $LINENO is not a special
24646 # case at line end.
24647 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24648 # scripts with optimization help from Paolo Bonzini. Blame Lee
24649 # E. McMahon (1931-1989) for sed's syntax. :-)
24650 sed -n '
24651 p
24652 /[$]LINENO/=
24653 ' <$as_myself |
24654 sed '
24655 s/[$]LINENO.*/&-/
24656 t lineno
24657 b
24658 :lineno
24659 N
24660 :loop
24661 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24662 t loop
24663 s/-\n.*//
24664 ' >$as_me.lineno &&
24665 chmod +x "$as_me.lineno" ||
24666 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24667 { (exit 1); exit 1; }; }
24668
24669 # Don't try to exec as it changes $[0], causing all sort of problems
24670 # (the dirname of $[0] is not the place where we might find the
24671 # original and so on. Autoconf is especially sensitive to this).
24672 . "./$as_me.lineno"
24673 # Exit status is that of the last command.
24674 exit
24675 }
24676
24677
24678 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24679 as_dirname=dirname
24680 else
24681 as_dirname=false
24682 fi
24683
24684 ECHO_C= ECHO_N= ECHO_T=
24685 case `echo -n x` in
24686 -n*)
24687 case `echo 'x\c'` in
24688 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24689 *) ECHO_C='\c';;
24690 esac;;
24691 *)
24692 ECHO_N='-n';;
24693 esac
24694
24695 if expr a : '\(a\)' >/dev/null 2>&1 &&
24696 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24697 as_expr=expr
24698 else
24699 as_expr=false
24700 fi
24701
24702 rm -f conf$$ conf$$.exe conf$$.file
24703 if test -d conf$$.dir; then
24704 rm -f conf$$.dir/conf$$.file
24705 else
24706 rm -f conf$$.dir
24707 mkdir conf$$.dir
24708 fi
24709 echo >conf$$.file
24710 if ln -s conf$$.file conf$$ 2>/dev/null; then
24711 as_ln_s='ln -s'
24712 # ... but there are two gotchas:
24713 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24714 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24715 # In both cases, we have to default to `cp -p'.
24716 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24717 as_ln_s='cp -p'
24718 elif ln conf$$.file conf$$ 2>/dev/null; then
24719 as_ln_s=ln
24720 else
24721 as_ln_s='cp -p'
24722 fi
24723 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24724 rmdir conf$$.dir 2>/dev/null
24725
24726 if mkdir -p . 2>/dev/null; then
24727 as_mkdir_p=:
24728 else
24729 test -d ./-p && rmdir ./-p
24730 as_mkdir_p=false
24731 fi
24732
24733 if test -x / >/dev/null 2>&1; then
24734 as_test_x='test -x'
24735 else
24736 if ls -dL / >/dev/null 2>&1; then
24737 as_ls_L_option=L
24738 else
24739 as_ls_L_option=
24740 fi
24741 as_test_x='
24742 eval sh -c '\''
24743 if test -d "$1"; then
24744 test -d "$1/.";
24745 else
24746 case $1 in
24747 -*)set "./$1";;
24748 esac;
24749 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24750 ???[sx]*):;;*)false;;esac;fi
24751 '\'' sh
24752 '
24753 fi
24754 as_executable_p=$as_test_x
24755
24756 # Sed expression to map a string onto a valid CPP name.
24757 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24758
24759 # Sed expression to map a string onto a valid variable name.
24760 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24761
24762
24763 exec 6>&1
24764
24765 # Save the log message, to keep $[0] and so on meaningful, and to
24766 # report actual input values of CONFIG_FILES etc. instead of their
24767 # values after options handling.
24768 ac_log="
24769 This file was extended by emacs $as_me 23.0.60, which was
24770 generated by GNU Autoconf 2.61. Invocation command line was
24771
24772 CONFIG_FILES = $CONFIG_FILES
24773 CONFIG_HEADERS = $CONFIG_HEADERS
24774 CONFIG_LINKS = $CONFIG_LINKS
24775 CONFIG_COMMANDS = $CONFIG_COMMANDS
24776 $ $0 $@
24777
24778 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24779 "
24780
24781 _ACEOF
24782
24783 cat >>$CONFIG_STATUS <<_ACEOF
24784 # Files that config.status was made for.
24785 config_files="$ac_config_files"
24786 config_headers="$ac_config_headers"
24787 config_commands="$ac_config_commands"
24788
24789 _ACEOF
24790
24791 cat >>$CONFIG_STATUS <<\_ACEOF
24792 ac_cs_usage="\
24793 \`$as_me' instantiates files from templates according to the
24794 current configuration.
24795
24796 Usage: $0 [OPTIONS] [FILE]...
24797
24798 -h, --help print this help, then exit
24799 -V, --version print version number and configuration settings, then exit
24800 -q, --quiet do not print progress messages
24801 -d, --debug don't remove temporary files
24802 --recheck update $as_me by reconfiguring in the same conditions
24803 --file=FILE[:TEMPLATE]
24804 instantiate the configuration file FILE
24805 --header=FILE[:TEMPLATE]
24806 instantiate the configuration header FILE
24807
24808 Configuration files:
24809 $config_files
24810
24811 Configuration headers:
24812 $config_headers
24813
24814 Configuration commands:
24815 $config_commands
24816
24817 Report bugs to <bug-autoconf@gnu.org>."
24818
24819 _ACEOF
24820 cat >>$CONFIG_STATUS <<_ACEOF
24821 ac_cs_version="\\
24822 emacs config.status 23.0.60
24823 configured by $0, generated by GNU Autoconf 2.61,
24824 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24825
24826 Copyright (C) 2006 Free Software Foundation, Inc.
24827 This config.status script is free software; the Free Software Foundation
24828 gives unlimited permission to copy, distribute and modify it."
24829
24830 ac_pwd='$ac_pwd'
24831 srcdir='$srcdir'
24832 INSTALL='$INSTALL'
24833 _ACEOF
24834
24835 cat >>$CONFIG_STATUS <<\_ACEOF
24836 # If no file are specified by the user, then we need to provide default
24837 # value. By we need to know if files were specified by the user.
24838 ac_need_defaults=:
24839 while test $# != 0
24840 do
24841 case $1 in
24842 --*=*)
24843 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24844 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24845 ac_shift=:
24846 ;;
24847 *)
24848 ac_option=$1
24849 ac_optarg=$2
24850 ac_shift=shift
24851 ;;
24852 esac
24853
24854 case $ac_option in
24855 # Handling of the options.
24856 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24857 ac_cs_recheck=: ;;
24858 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24859 echo "$ac_cs_version"; exit ;;
24860 --debug | --debu | --deb | --de | --d | -d )
24861 debug=: ;;
24862 --file | --fil | --fi | --f )
24863 $ac_shift
24864 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24865 ac_need_defaults=false;;
24866 --header | --heade | --head | --hea )
24867 $ac_shift
24868 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24869 ac_need_defaults=false;;
24870 --he | --h)
24871 # Conflict between --help and --header
24872 { echo "$as_me: error: ambiguous option: $1
24873 Try \`$0 --help' for more information." >&2
24874 { (exit 1); exit 1; }; };;
24875 --help | --hel | -h )
24876 echo "$ac_cs_usage"; exit ;;
24877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24879 ac_cs_silent=: ;;
24880
24881 # This is an error.
24882 -*) { echo "$as_me: error: unrecognized option: $1
24883 Try \`$0 --help' for more information." >&2
24884 { (exit 1); exit 1; }; } ;;
24885
24886 *) ac_config_targets="$ac_config_targets $1"
24887 ac_need_defaults=false ;;
24888
24889 esac
24890 shift
24891 done
24892
24893 ac_configure_extra_args=
24894
24895 if $ac_cs_silent; then
24896 exec 6>/dev/null
24897 ac_configure_extra_args="$ac_configure_extra_args --silent"
24898 fi
24899
24900 _ACEOF
24901 cat >>$CONFIG_STATUS <<_ACEOF
24902 if \$ac_cs_recheck; then
24903 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24904 CONFIG_SHELL=$SHELL
24905 export CONFIG_SHELL
24906 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24907 fi
24908
24909 _ACEOF
24910 cat >>$CONFIG_STATUS <<\_ACEOF
24911 exec 5>>config.log
24912 {
24913 echo
24914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24915 ## Running $as_me. ##
24916 _ASBOX
24917 echo "$ac_log"
24918 } >&5
24919
24920 _ACEOF
24921 cat >>$CONFIG_STATUS <<_ACEOF
24922 #
24923 # INIT-COMMANDS
24924 #
24925 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24926
24927 _ACEOF
24928
24929 cat >>$CONFIG_STATUS <<\_ACEOF
24930
24931 # Handling of arguments.
24932 for ac_config_target in $ac_config_targets
24933 do
24934 case $ac_config_target in
24935 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24936 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24937 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24938 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24939 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24940 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24941 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24942 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24943 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24944 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24945 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24946 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24947 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24948
24949 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24950 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24951 { (exit 1); exit 1; }; };;
24952 esac
24953 done
24954
24955
24956 # If the user did not use the arguments to specify the items to instantiate,
24957 # then the envvar interface is used. Set only those that are not.
24958 # We use the long form for the default assignment because of an extremely
24959 # bizarre bug on SunOS 4.1.3.
24960 if $ac_need_defaults; then
24961 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24962 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24963 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24964 fi
24965
24966 # Have a temporary directory for convenience. Make it in the build tree
24967 # simply because there is no reason against having it here, and in addition,
24968 # creating and moving files from /tmp can sometimes cause problems.
24969 # Hook for its removal unless debugging.
24970 # Note that there is a small window in which the directory will not be cleaned:
24971 # after its creation but before its name has been assigned to `$tmp'.
24972 $debug ||
24973 {
24974 tmp=
24975 trap 'exit_status=$?
24976 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24977 ' 0
24978 trap '{ (exit 1); exit 1; }' 1 2 13 15
24979 }
24980 # Create a (secure) tmp directory for tmp files.
24981
24982 {
24983 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24984 test -n "$tmp" && test -d "$tmp"
24985 } ||
24986 {
24987 tmp=./conf$$-$RANDOM
24988 (umask 077 && mkdir "$tmp")
24989 } ||
24990 {
24991 echo "$me: cannot create a temporary directory in ." >&2
24992 { (exit 1); exit 1; }
24993 }
24994
24995 #
24996 # Set up the sed scripts for CONFIG_FILES section.
24997 #
24998
24999 # No need to generate the scripts if there are no CONFIG_FILES.
25000 # This happens for instance when ./config.status config.h
25001 if test -n "$CONFIG_FILES"; then
25002
25003 _ACEOF
25004
25005
25006
25007 ac_delim='%!_!# '
25008 for ac_last_try in false false false false false :; do
25009 cat >conf$$subs.sed <<_ACEOF
25010 SHELL!$SHELL$ac_delim
25011 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25012 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25013 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25014 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25015 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25016 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25017 exec_prefix!$exec_prefix$ac_delim
25018 prefix!$prefix$ac_delim
25019 program_transform_name!$program_transform_name$ac_delim
25020 bindir!$bindir$ac_delim
25021 sbindir!$sbindir$ac_delim
25022 libexecdir!$libexecdir$ac_delim
25023 datarootdir!$datarootdir$ac_delim
25024 datadir!$datadir$ac_delim
25025 sysconfdir!$sysconfdir$ac_delim
25026 sharedstatedir!$sharedstatedir$ac_delim
25027 localstatedir!$localstatedir$ac_delim
25028 includedir!$includedir$ac_delim
25029 oldincludedir!$oldincludedir$ac_delim
25030 docdir!$docdir$ac_delim
25031 infodir!$infodir$ac_delim
25032 htmldir!$htmldir$ac_delim
25033 dvidir!$dvidir$ac_delim
25034 pdfdir!$pdfdir$ac_delim
25035 psdir!$psdir$ac_delim
25036 libdir!$libdir$ac_delim
25037 localedir!$localedir$ac_delim
25038 mandir!$mandir$ac_delim
25039 DEFS!$DEFS$ac_delim
25040 ECHO_C!$ECHO_C$ac_delim
25041 ECHO_N!$ECHO_N$ac_delim
25042 ECHO_T!$ECHO_T$ac_delim
25043 LIBS!$LIBS$ac_delim
25044 build_alias!$build_alias$ac_delim
25045 host_alias!$host_alias$ac_delim
25046 target_alias!$target_alias$ac_delim
25047 MAINT!$MAINT$ac_delim
25048 build!$build$ac_delim
25049 build_cpu!$build_cpu$ac_delim
25050 build_vendor!$build_vendor$ac_delim
25051 build_os!$build_os$ac_delim
25052 host!$host$ac_delim
25053 host_cpu!$host_cpu$ac_delim
25054 host_vendor!$host_vendor$ac_delim
25055 host_os!$host_os$ac_delim
25056 CC!$CC$ac_delim
25057 CFLAGS!$CFLAGS$ac_delim
25058 LDFLAGS!$LDFLAGS$ac_delim
25059 CPPFLAGS!$CPPFLAGS$ac_delim
25060 ac_ct_CC!$ac_ct_CC$ac_delim
25061 EXEEXT!$EXEEXT$ac_delim
25062 OBJEXT!$OBJEXT$ac_delim
25063 CPP!$CPP$ac_delim
25064 GREP!$GREP$ac_delim
25065 EGREP!$EGREP$ac_delim
25066 LN_S!$LN_S$ac_delim
25067 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25068 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25069 INSTALL_DATA!$INSTALL_DATA$ac_delim
25070 RANLIB!$RANLIB$ac_delim
25071 INSTALL_INFO!$INSTALL_INFO$ac_delim
25072 GZIP_PROG!$GZIP_PROG$ac_delim
25073 MAKEINFO!$MAKEINFO$ac_delim
25074 LIBSOUND!$LIBSOUND$ac_delim
25075 PKG_CONFIG!$PKG_CONFIG$ac_delim
25076 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25077 ALSA_LIBS!$ALSA_LIBS$ac_delim
25078 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25079 SET_MAKE!$SET_MAKE$ac_delim
25080 XMKMF!$XMKMF$ac_delim
25081 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25082 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25083 RSVG_LIBS!$RSVG_LIBS$ac_delim
25084 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25085 GTK_LIBS!$GTK_LIBS$ac_delim
25086 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25087 DBUS_LIBS!$DBUS_LIBS$ac_delim
25088 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25089 XFT_LIBS!$XFT_LIBS$ac_delim
25090 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25091 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25092 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25093 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25094 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25095 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25096 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25097 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25098 ALLOCA!$ALLOCA$ac_delim
25099 liblockfile!$liblockfile$ac_delim
25100 LIBOBJS!$LIBOBJS$ac_delim
25101 NEED_SETGID!$NEED_SETGID$ac_delim
25102 KMEM_GROUP!$KMEM_GROUP$ac_delim
25103 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25104 GETOPT_H!$GETOPT_H$ac_delim
25105 GETOPTOBJS!$GETOPTOBJS$ac_delim
25106 version!$version$ac_delim
25107 _ACEOF
25108
25109 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25110 break
25111 elif $ac_last_try; then
25112 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25113 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25114 { (exit 1); exit 1; }; }
25115 else
25116 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25117 fi
25118 done
25119
25120 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25121 if test -n "$ac_eof"; then
25122 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25123 ac_eof=`expr $ac_eof + 1`
25124 fi
25125
25126 cat >>$CONFIG_STATUS <<_ACEOF
25127 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25129 _ACEOF
25130 sed '
25131 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25132 s/^/s,@/; s/!/@,|#_!!_#|/
25133 :n
25134 t n
25135 s/'"$ac_delim"'$/,g/; t
25136 s/$/\\/; p
25137 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25138 ' >>$CONFIG_STATUS <conf$$subs.sed
25139 rm -f conf$$subs.sed
25140 cat >>$CONFIG_STATUS <<_ACEOF
25141 CEOF$ac_eof
25142 _ACEOF
25143
25144
25145 ac_delim='%!_!# '
25146 for ac_last_try in false false false false false :; do
25147 cat >conf$$subs.sed <<_ACEOF
25148 configuration!$configuration$ac_delim
25149 canonical!$canonical$ac_delim
25150 srcdir!$srcdir$ac_delim
25151 lispdir!$lispdir$ac_delim
25152 locallisppath!$locallisppath$ac_delim
25153 lisppath!$lisppath$ac_delim
25154 x_default_search_path!$x_default_search_path$ac_delim
25155 etcdir!$etcdir$ac_delim
25156 archlibdir!$archlibdir$ac_delim
25157 bitmapdir!$bitmapdir$ac_delim
25158 gamedir!$gamedir$ac_delim
25159 gameuser!$gameuser$ac_delim
25160 c_switch_system!$c_switch_system$ac_delim
25161 c_switch_machine!$c_switch_machine$ac_delim
25162 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25163 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25164 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25165 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25166 machfile!$machfile$ac_delim
25167 opsysfile!$opsysfile$ac_delim
25168 ns_appdir!$ns_appdir$ac_delim
25169 ns_appbindir!$ns_appbindir$ac_delim
25170 ns_appresdir!$ns_appresdir$ac_delim
25171 ns_appsrc!$ns_appsrc$ac_delim
25172 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25173 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25174 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25175 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25176 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25177 LTLIBOBJS!$LTLIBOBJS$ac_delim
25178 _ACEOF
25179
25180 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25181 break
25182 elif $ac_last_try; then
25183 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25184 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25185 { (exit 1); exit 1; }; }
25186 else
25187 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25188 fi
25189 done
25190
25191 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25192 if test -n "$ac_eof"; then
25193 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25194 ac_eof=`expr $ac_eof + 1`
25195 fi
25196
25197 cat >>$CONFIG_STATUS <<_ACEOF
25198 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25200 _ACEOF
25201 sed '
25202 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25203 s/^/s,@/; s/!/@,|#_!!_#|/
25204 :n
25205 t n
25206 s/'"$ac_delim"'$/,g/; t
25207 s/$/\\/; p
25208 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25209 ' >>$CONFIG_STATUS <conf$$subs.sed
25210 rm -f conf$$subs.sed
25211 cat >>$CONFIG_STATUS <<_ACEOF
25212 :end
25213 s/|#_!!_#|//g
25214 CEOF$ac_eof
25215 _ACEOF
25216
25217
25218 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25219 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25220 # trailing colons and then remove the whole line if VPATH becomes empty
25221 # (actually we leave an empty line to preserve line numbers).
25222 if test "x$srcdir" = x.; then
25223 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25224 s/:*\$(srcdir):*/:/
25225 s/:*\${srcdir}:*/:/
25226 s/:*@srcdir@:*/:/
25227 s/^\([^=]*=[ ]*\):*/\1/
25228 s/:*$//
25229 s/^[^=]*=[ ]*$//
25230 }'
25231 fi
25232
25233 cat >>$CONFIG_STATUS <<\_ACEOF
25234 fi # test -n "$CONFIG_FILES"
25235
25236
25237 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25238 do
25239 case $ac_tag in
25240 :[FHLC]) ac_mode=$ac_tag; continue;;
25241 esac
25242 case $ac_mode$ac_tag in
25243 :[FHL]*:*);;
25244 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25245 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25246 { (exit 1); exit 1; }; };;
25247 :[FH]-) ac_tag=-:-;;
25248 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25249 esac
25250 ac_save_IFS=$IFS
25251 IFS=:
25252 set x $ac_tag
25253 IFS=$ac_save_IFS
25254 shift
25255 ac_file=$1
25256 shift
25257
25258 case $ac_mode in
25259 :L) ac_source=$1;;
25260 :[FH])
25261 ac_file_inputs=
25262 for ac_f
25263 do
25264 case $ac_f in
25265 -) ac_f="$tmp/stdin";;
25266 *) # Look for the file first in the build tree, then in the source tree
25267 # (if the path is not absolute). The absolute path cannot be DOS-style,
25268 # because $ac_f cannot contain `:'.
25269 test -f "$ac_f" ||
25270 case $ac_f in
25271 [\\/$]*) false;;
25272 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25273 esac ||
25274 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25275 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25276 { (exit 1); exit 1; }; };;
25277 esac
25278 ac_file_inputs="$ac_file_inputs $ac_f"
25279 done
25280
25281 # Let's still pretend it is `configure' which instantiates (i.e., don't
25282 # use $as_me), people would be surprised to read:
25283 # /* config.h. Generated by config.status. */
25284 configure_input="Generated from "`IFS=:
25285 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25286 if test x"$ac_file" != x-; then
25287 configure_input="$ac_file. $configure_input"
25288 { echo "$as_me:$LINENO: creating $ac_file" >&5
25289 echo "$as_me: creating $ac_file" >&6;}
25290 fi
25291
25292 case $ac_tag in
25293 *:-:* | *:-) cat >"$tmp/stdin";;
25294 esac
25295 ;;
25296 esac
25297
25298 ac_dir=`$as_dirname -- "$ac_file" ||
25299 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25300 X"$ac_file" : 'X\(//\)[^/]' \| \
25301 X"$ac_file" : 'X\(//\)$' \| \
25302 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25303 echo X"$ac_file" |
25304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25305 s//\1/
25306 q
25307 }
25308 /^X\(\/\/\)[^/].*/{
25309 s//\1/
25310 q
25311 }
25312 /^X\(\/\/\)$/{
25313 s//\1/
25314 q
25315 }
25316 /^X\(\/\).*/{
25317 s//\1/
25318 q
25319 }
25320 s/.*/./; q'`
25321 { as_dir="$ac_dir"
25322 case $as_dir in #(
25323 -*) as_dir=./$as_dir;;
25324 esac
25325 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25326 as_dirs=
25327 while :; do
25328 case $as_dir in #(
25329 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25330 *) as_qdir=$as_dir;;
25331 esac
25332 as_dirs="'$as_qdir' $as_dirs"
25333 as_dir=`$as_dirname -- "$as_dir" ||
25334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25335 X"$as_dir" : 'X\(//\)[^/]' \| \
25336 X"$as_dir" : 'X\(//\)$' \| \
25337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25338 echo X"$as_dir" |
25339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25340 s//\1/
25341 q
25342 }
25343 /^X\(\/\/\)[^/].*/{
25344 s//\1/
25345 q
25346 }
25347 /^X\(\/\/\)$/{
25348 s//\1/
25349 q
25350 }
25351 /^X\(\/\).*/{
25352 s//\1/
25353 q
25354 }
25355 s/.*/./; q'`
25356 test -d "$as_dir" && break
25357 done
25358 test -z "$as_dirs" || eval "mkdir $as_dirs"
25359 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25360 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25361 { (exit 1); exit 1; }; }; }
25362 ac_builddir=.
25363
25364 case "$ac_dir" in
25365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25366 *)
25367 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25368 # A ".." for each directory in $ac_dir_suffix.
25369 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25370 case $ac_top_builddir_sub in
25371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25373 esac ;;
25374 esac
25375 ac_abs_top_builddir=$ac_pwd
25376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25377 # for backward compatibility:
25378 ac_top_builddir=$ac_top_build_prefix
25379
25380 case $srcdir in
25381 .) # We are building in place.
25382 ac_srcdir=.
25383 ac_top_srcdir=$ac_top_builddir_sub
25384 ac_abs_top_srcdir=$ac_pwd ;;
25385 [\\/]* | ?:[\\/]* ) # Absolute name.
25386 ac_srcdir=$srcdir$ac_dir_suffix;
25387 ac_top_srcdir=$srcdir
25388 ac_abs_top_srcdir=$srcdir ;;
25389 *) # Relative name.
25390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25391 ac_top_srcdir=$ac_top_build_prefix$srcdir
25392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25393 esac
25394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25395
25396
25397 case $ac_mode in
25398 :F)
25399 #
25400 # CONFIG_FILE
25401 #
25402
25403 case $INSTALL in
25404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25405 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25406 esac
25407 _ACEOF
25408
25409 cat >>$CONFIG_STATUS <<\_ACEOF
25410 # If the template does not know about datarootdir, expand it.
25411 # FIXME: This hack should be removed a few years after 2.60.
25412 ac_datarootdir_hack=; ac_datarootdir_seen=
25413
25414 case `sed -n '/datarootdir/ {
25415 p
25416 q
25417 }
25418 /@datadir@/p
25419 /@docdir@/p
25420 /@infodir@/p
25421 /@localedir@/p
25422 /@mandir@/p
25423 ' $ac_file_inputs` in
25424 *datarootdir*) ac_datarootdir_seen=yes;;
25425 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25426 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25427 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25428 _ACEOF
25429 cat >>$CONFIG_STATUS <<_ACEOF
25430 ac_datarootdir_hack='
25431 s&@datadir@&$datadir&g
25432 s&@docdir@&$docdir&g
25433 s&@infodir@&$infodir&g
25434 s&@localedir@&$localedir&g
25435 s&@mandir@&$mandir&g
25436 s&\\\${datarootdir}&$datarootdir&g' ;;
25437 esac
25438 _ACEOF
25439
25440 # Neutralize VPATH when `$srcdir' = `.'.
25441 # Shell code in configure.ac might set extrasub.
25442 # FIXME: do we really want to maintain this feature?
25443 cat >>$CONFIG_STATUS <<_ACEOF
25444 sed "$ac_vpsub
25445 $extrasub
25446 _ACEOF
25447 cat >>$CONFIG_STATUS <<\_ACEOF
25448 :t
25449 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25450 s&@configure_input@&$configure_input&;t t
25451 s&@top_builddir@&$ac_top_builddir_sub&;t t
25452 s&@srcdir@&$ac_srcdir&;t t
25453 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25454 s&@top_srcdir@&$ac_top_srcdir&;t t
25455 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25456 s&@builddir@&$ac_builddir&;t t
25457 s&@abs_builddir@&$ac_abs_builddir&;t t
25458 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25459 s&@INSTALL@&$ac_INSTALL&;t t
25460 $ac_datarootdir_hack
25461 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25462
25463 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25464 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25465 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25466 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25467 which seems to be undefined. Please make sure it is defined." >&5
25468 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25469 which seems to be undefined. Please make sure it is defined." >&2;}
25470
25471 rm -f "$tmp/stdin"
25472 case $ac_file in
25473 -) cat "$tmp/out"; rm -f "$tmp/out";;
25474 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25475 esac
25476 ;;
25477 :H)
25478 #
25479 # CONFIG_HEADER
25480 #
25481 _ACEOF
25482
25483 # Transform confdefs.h into a sed script `conftest.defines', that
25484 # substitutes the proper values into config.h.in to produce config.h.
25485 rm -f conftest.defines conftest.tail
25486 # First, append a space to every undef/define line, to ease matching.
25487 echo 's/$/ /' >conftest.defines
25488 # Then, protect against being on the right side of a sed subst, or in
25489 # an unquoted here document, in config.status. If some macros were
25490 # called several times there might be several #defines for the same
25491 # symbol, which is useless. But do not sort them, since the last
25492 # AC_DEFINE must be honored.
25493 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25494 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25495 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25496 # PARAMS is the parameter list in the macro definition--in most cases, it's
25497 # just an empty string.
25498 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25499 ac_dB='\\)[ (].*,\\1define\\2'
25500 ac_dC=' '
25501 ac_dD=' ,'
25502
25503 uniq confdefs.h |
25504 sed -n '
25505 t rset
25506 :rset
25507 s/^[ ]*#[ ]*define[ ][ ]*//
25508 t ok
25509 d
25510 :ok
25511 s/[\\&,]/\\&/g
25512 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25513 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25514 ' >>conftest.defines
25515
25516 # Remove the space that was appended to ease matching.
25517 # Then replace #undef with comments. This is necessary, for
25518 # example, in the case of _POSIX_SOURCE, which is predefined and required
25519 # on some systems where configure will not decide to define it.
25520 # (The regexp can be short, since the line contains either #define or #undef.)
25521 echo 's/ $//
25522 s,^[ #]*u.*,/* & */,' >>conftest.defines
25523
25524 # Break up conftest.defines:
25525 ac_max_sed_lines=50
25526
25527 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25528 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25529 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25530 # et cetera.
25531 ac_in='$ac_file_inputs'
25532 ac_out='"$tmp/out1"'
25533 ac_nxt='"$tmp/out2"'
25534
25535 while :
25536 do
25537 # Write a here document:
25538 cat >>$CONFIG_STATUS <<_ACEOF
25539 # First, check the format of the line:
25540 cat >"\$tmp/defines.sed" <<\\CEOF
25541 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25542 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25543 b
25544 :def
25545 _ACEOF
25546 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25547 echo 'CEOF
25548 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25549 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25550 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25551 grep . conftest.tail >/dev/null || break
25552 rm -f conftest.defines
25553 mv conftest.tail conftest.defines
25554 done
25555 rm -f conftest.defines conftest.tail
25556
25557 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25558 cat >>$CONFIG_STATUS <<\_ACEOF
25559 if test x"$ac_file" != x-; then
25560 echo "/* $configure_input */" >"$tmp/config.h"
25561 cat "$ac_result" >>"$tmp/config.h"
25562 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25563 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25564 echo "$as_me: $ac_file is unchanged" >&6;}
25565 else
25566 rm -f $ac_file
25567 mv "$tmp/config.h" $ac_file
25568 fi
25569 else
25570 echo "/* $configure_input */"
25571 cat "$ac_result"
25572 fi
25573 rm -f "$tmp/out12"
25574 ;;
25575
25576 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25577 echo "$as_me: executing $ac_file commands" >&6;}
25578 ;;
25579 esac
25580
25581
25582 case $ac_file$ac_mode in
25583 "default":C)
25584
25585 ### Make the necessary directories, if they don't exist.
25586 for dir in etc lisp ; do
25587 test -d ${dir} || mkdir ${dir}
25588 done
25589
25590 # Build src/Makefile from ${srcdir}/src/Makefile.c
25591 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25592 # This must be done after src/config.h is built, since we rely on that file.
25593
25594 echo creating src/epaths.h
25595 ${MAKE-make} epaths-force
25596
25597 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25598 # `..' to `. .' unless invoked with -traditional
25599
25600 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25601 CPPFLAGS="$CPPFLAGS -traditional"
25602 fi
25603
25604 echo creating lib-src/Makefile
25605 ( cd lib-src
25606 rm -f junk.c junk1.c junk2.c
25607 sed -e '/start of cpp stuff/q' \
25608 < Makefile.c > junk1.c
25609 sed -e '1,/start of cpp stuff/d'\
25610 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25611 < Makefile.c > junk.c
25612 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25613 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25614 cat junk1.c junk2.c > Makefile.new
25615 rm -f junk.c junk1.c junk2.c
25616 chmod 444 Makefile.new
25617 mv -f Makefile.new Makefile
25618 )
25619
25620 echo creating src/Makefile
25621 ( cd src
25622 rm -f junk.c junk1.c junk2.c
25623 sed -e '/start of cpp stuff/q' \
25624 < Makefile.c > junk1.c
25625 sed -e '1,/start of cpp stuff/d'\
25626 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25627 < Makefile.c > junk.c
25628 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25629 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25630 cat junk1.c junk2.c > Makefile.new
25631 rm -f junk.c junk1.c junk2.c
25632 chmod 444 Makefile.new
25633 mv -f Makefile.new Makefile
25634 )
25635
25636 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25637 echo creating src/.gdbinit
25638 echo source $srcdir/src/.gdbinit > src/.gdbinit
25639 fi
25640
25641 ;;
25642
25643 esac
25644 done # for ac_tag
25645
25646
25647 { (exit 0); exit 0; }
25648 _ACEOF
25649 chmod +x $CONFIG_STATUS
25650 ac_clean_files=$ac_clean_files_save
25651
25652
25653 # configure is writing to config.log, and then calls config.status.
25654 # config.status does its own redirection, appending to config.log.
25655 # Unfortunately, on DOS this fails, as config.log is still kept open
25656 # by configure, so config.status won't be able to write to it; its
25657 # output is simply discarded. So we exec the FD to /dev/null,
25658 # effectively closing config.log, so it can be properly (re)opened and
25659 # appended to by config.status. When coming back to configure, we
25660 # need to make the FD available again.
25661 if test "$no_create" != yes; then
25662 ac_cs_success=:
25663 ac_config_status_args=
25664 test "$silent" = yes &&
25665 ac_config_status_args="$ac_config_status_args --quiet"
25666 exec 5>/dev/null
25667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25668 exec 5>>config.log
25669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25670 # would make configure fail if this is the last instruction.
25671 $ac_cs_success || { (exit 1); exit 1; }
25672 fi
25673
25674